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()
115 tcsetattr(vhd->filefd, TCSANOW, &tio); in callback_raw_test()
117 u.filefd = (lws_filefd_type)(long long)vhd->filefd; in callback_raw_test()
122 close(vhd->filefd); in callback_raw_test()
123 vhd->filefd = -1; in callback_raw_test()
131 if (vhd && vhd->filefd != -1) in callback_raw_test()
132 close(vhd->filefd); in callback_raw_test()
145 n = read(vhd->filefd, buf, sizeof(buf)); in callback_raw_test()