Home
last modified time | relevance | path

Searched refs:filefd (Results 1 - 21 of 21) sorted by relevance

/third_party/libwebsockets/minimal-examples/raw/minimal-raw-serial/
H A Dminimal-raw-file.c30 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, TCSANO in callback_raw_test()
[all...]
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-file/
H A Dminimal-raw-file.c22 int filefd; member
41 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
42 if (vhd->filefd == -1) { in callback_raw_test()
47 u.filefd = (lws_filefd_type)(long long)vhd->filefd; in callback_raw_test()
52 close(vhd->filefd); in callback_raw_test()
53 vhd->filefd = -1; in callback_raw_test()
60 if (vhd && vhd->filefd != -1) in callback_raw_test()
61 close(vhd->filefd); in callback_raw_test()
72 n = (int)read(vhd->filefd, bu in callback_raw_test()
[all...]
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
H A Dvmsplice02.c36 static int filefd; variable
47 { &filefd, &ivc, 1, EBADF },
53 filefd = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT, 0644); in setup()
86 if (filefd > 0) in cleanup()
87 SAFE_CLOSE(filefd); in cleanup()
/third_party/toybox/toys/net/
H A Dftpget.c53 int filefd;
80 if (TT.filefd >= 0) { in xread2line()
81 xclose(TT.filefd); in xread2line()
113 if (TT.filefd >= 0) { in ftp_line()
114 xclose(TT.filefd); in ftp_line()
132 TT.filefd = -1; in ftpget_main()
234 TT.filefd = ii; in ftpget_main()
279 if (TT.filefd >= 0) { in ftpget_main()
280 xclose(TT.filefd); in ftpget_main()
/third_party/ltp/testcases/kernel/syscalls/renameat/
H A Drenameat01.c78 static int filefd; variable
98 { &filefd, TESTFILE, &filefd, NEW_TESTFILE, ENOTDIR },
165 filefd = SAFE_OPEN(cleanup, TESTFILE4, in setup()
236 if (filefd > 0 && close(filefd) < 0) in cleanup()
237 tst_resm(TWARN | TERRNO, "close filefd failed"); in cleanup()
/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-spawn.c130 lsp->stdwsi[n]->desc.filefd = NULL; in lws_spawn_piped_destroy()
273 CloseHandle(lsp->stdwsi[LWS_STDOUT]->desc.filefd); in windows_pipe_poll_hack()
275 lsp->stdwsi[LWS_STDOUT]->desc.filefd = NULL; in windows_pipe_poll_hack()
282 CloseHandle(lsp->stdwsi[LWS_STDIN]->desc.filefd); in windows_pipe_poll_hack()
284 lsp->stdwsi[LWS_STDIN]->desc.filefd = NULL; in windows_pipe_poll_hack()
312 CloseHandle(wsi1->desc.filefd); in windows_pipe_poll_hack()
317 lsp->stdwsi[LWS_STDERR]->desc.filefd = NULL; in windows_pipe_poll_hack()
426 lsp->stdwsi[n]->desc.filefd = lsp->pipe_fds[n][!n]; in lws_spawn_piped()
438 lsp->stdwsi[n]->desc.filefd = lsp->pipe_fds[n][!!(n == 0)]; in lws_spawn_piped()
/third_party/cups-filters/backend/
H A Dimplicitclass.c102 int outbuflen, filefd, savestdout, exit_status, dup_status; in main() local
333 filefd = cupsTempFd(tempfile_filter, sizeof(tempfile_filter)); in main()
341 dup_status = dup2(filefd, 1); in main()
346 close(filefd); in main()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-audio/
H A Daudio.c30 int filefd; member
59 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
/third_party/libwebsockets/plugins/
H A Dprotocol_lws_raw_test.c150 u.filefd = vhd->fifo; in callback_raw_test()
229 u.filefd = vhd->fifo; in callback_raw_test()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/
H A Daudio.c53 int filefd; member
148 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-adopt.h79 lws_filefd_type filefd; member
130 * \param fd: union with either .sockfd or .filefd set
151 lws_sock_file_fd_type fd; /**< union with either .sockfd or .filefd set */
166 * - fd: union with either .sockfd or .filefd set
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-netcat/
H A Dminimal-raw-netcat.c239 sock.filefd = 0; in main()
/third_party/libwebsockets/lib/event-libs/libevent/
H A Dlibevent.c276 fd = (evutil_socket_t)(ev_intptr_t) wsi->desc.filefd; in elops_accept_event()
428 fd = (evutil_socket_t) wsi->desc.filefd; in elops_init_vhost_listen_wsi_event()
/third_party/libwebsockets/lib/event-libs/libev/
H A Dlibev.c292 fd = wsi->desc.filefd; in elops_accept_ev()
393 fd = wsi->desc.filefd; in elops_init_vhost_listen_wsi_ev()
/third_party/libwebsockets/lib/core-net/
H A Doutput.c341 n = (int)write((int)(lws_intptr_t)wsi->desc.filefd, buf, in lws_ssl_capable_write_no_ssl()
H A Ddummy-callback.c768 written = (int)write(args->stdwsi[LWS_STDIN]->desc.filefd, in lws_callback_http_dummy()
811 args->stdwsi[LWS_STDIN]->desc.filefd > 0) { in lws_callback_http_dummy()
H A Dadopt.c371 if (lws_plat_set_nonblocking(fd.filefd)) { in lws_adopt_descriptor_vhost2()
372 lwsl_wsi_err(new_wsi, "unable to set filefd nonblocking"); in lws_adopt_descriptor_vhost2()
/third_party/libwebsockets/lib/event-libs/glib/
H A Dglib.c280 fd = wsi->desc.filefd; in elops_accept_glib()
/third_party/libwebsockets/lib/event-libs/sdevent/
H A Dsdevent.c343 wsi->desc.filefd, in sock_accept_sd()
/third_party/libwebsockets/lib/event-libs/libuv/
H A Dlibuv.c516 (int)(lws_intptr_t)wsi->desc.filefd); in elops_accept_uv()
/third_party/toybox/generated/
H A Dglobals.h153 int filefd; member

Completed in 18 milliseconds