/third_party/libwebsockets/minimal-examples/raw/minimal-raw-serial/ |
D | minimal-raw-file.c | 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() [all …]
|
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-file/ |
D | minimal-raw-file.c | 22 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/ |
D | vmsplice02.c | 36 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/ltp/testcases/kernel/syscalls/renameat/ |
D | renameat01.c | 78 static int filefd; variable 98 { &filefd, TESTFILE, &filefd, NEW_TESTFILE, ENOTDIR }, 171 filefd = SAFE_OPEN(cleanup, TESTFILE4, in setup() 242 if (filefd > 0 && close(filefd) < 0) in cleanup()
|
/third_party/libwebsockets/lib/plat/windows/ |
D | windows-spawn.c | 130 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/ |
D | implicitclass.c | 102 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/ |
D | protocol_lws_raw_test.c | 150 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/ |
D | audio.c | 30 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/ |
D | audio.c | 53 int filefd; member 148 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-adopt.h | 79 lws_filefd_type filefd; member
|
/third_party/libwebsockets/lib/event-libs/libev/ |
D | libev.c | 292 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/ |
D | libevent.c | 276 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/ |
D | minimal-raw-netcat.c | 239 sock.filefd = 0; in main()
|
/third_party/libwebsockets/lib/core-net/ |
D | dummy-callback.c | 766 written = (int)write(args->stdwsi[LWS_STDIN]->desc.filefd, in lws_callback_http_dummy() 809 args->stdwsi[LWS_STDIN]->desc.filefd > 0) { in lws_callback_http_dummy()
|
D | output.c | 341 n = (int)write((int)(lws_intptr_t)wsi->desc.filefd, buf, in lws_ssl_capable_write_no_ssl()
|
D | adopt.c | 371 if (lws_plat_set_nonblocking(fd.filefd)) { in lws_adopt_descriptor_vhost2()
|
/third_party/libwebsockets/lib/event-libs/sdevent/ |
D | sdevent.c | 343 wsi->desc.filefd, in sock_accept_sd()
|
/third_party/libwebsockets/lib/event-libs/glib/ |
D | glib.c | 280 fd = wsi->desc.filefd; in elops_accept_glib()
|
/third_party/libwebsockets/lib/event-libs/libuv/ |
D | libuv.c | 515 (int)(lws_intptr_t)wsi->desc.filefd); in elops_accept_uv()
|
/third_party/libwebsockets/READMEs/ |
D | README.coding.md | 698 u.filefd = your_open_file_fd;
|