Home
last modified time | relevance | path

Searched refs:filefd (Results 1 – 22 of 22) sorted by relevance

/third_party/libwebsockets/minimal-examples/raw/minimal-raw-serial/
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, TCSANOW, &tio); in callback_raw_test()
[all …]
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-file/
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, buf, sizeof(buf)); in callback_raw_test()
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
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/
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/
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()
/third_party/libwebsockets/lib/plat/windows/
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/
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/plugins/
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/raw/minimal-raw-audio/
Daudio.c30 int filefd; member
59 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/
Daudio.c53 int filefd; member
148 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
/third_party/libwebsockets/include/libwebsockets/
Dlws-adopt.h79 lws_filefd_type filefd; member
/third_party/libwebsockets/lib/event-libs/libev/
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/event-libs/libevent/
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/minimal-examples/raw/minimal-raw-netcat/
Dminimal-raw-netcat.c239 sock.filefd = 0; in main()
/third_party/libwebsockets/lib/core-net/
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()
Doutput.c341 n = (int)write((int)(lws_intptr_t)wsi->desc.filefd, buf, in lws_ssl_capable_write_no_ssl()
Dadopt.c371 if (lws_plat_set_nonblocking(fd.filefd)) { in lws_adopt_descriptor_vhost2()
/third_party/libwebsockets/lib/event-libs/sdevent/
Dsdevent.c343 wsi->desc.filefd, in sock_accept_sd()
/third_party/libwebsockets/lib/event-libs/glib/
Dglib.c280 fd = wsi->desc.filefd; in elops_accept_glib()
/third_party/libwebsockets/lib/event-libs/libuv/
Dlibuv.c516 (int)(lws_intptr_t)wsi->desc.filefd); in elops_accept_uv()
/third_party/toybox/generated/
Dglobals.h153 int filefd; member
/third_party/libwebsockets/READMEs/
DREADME.coding.md698 u.filefd = your_open_file_fd;