Lines Matching refs:filefd
30 int filefd; member
64 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
65 if (vhd->filefd == -1) { in callback_raw_test()
71 tcflush(vhd->filefd, TCIOFLUSH); in callback_raw_test()
74 if (ioctl(vhd->filefd, TIOCGSERIAL, &s_s) == 0) { in callback_raw_test()
76 ioctl(vhd->filefd, TIOCSSERIAL, &s_s); in callback_raw_test()
83 if (tcgetattr(vhd->filefd, &tio)) { in callback_raw_test()
84 close(vhd->filefd); in callback_raw_test()
85 vhd->filefd = -1; in callback_raw_test()
119 tcsetattr(vhd->filefd, TCSANOW, &tio); in callback_raw_test()
121 u.filefd = (lws_filefd_type)(long long)vhd->filefd; in callback_raw_test()
126 close(vhd->filefd); in callback_raw_test()
127 vhd->filefd = -1; in callback_raw_test()
135 if (vhd && vhd->filefd != -1) in callback_raw_test()
136 close(vhd->filefd); in callback_raw_test()
149 n = (int)read(vhd->filefd, buf, sizeof(buf)); in callback_raw_test()