Home
last modified time | relevance | path

Searched refs:dummy_pipe_fds (Results 1 – 8 of 8) sorted by relevance

/third_party/libwebsockets/lib/plat/unix/
Dunix-pipe.c37 pt->dummy_pipe_fds[0] = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); in lws_plat_pipe_create()
38 pt->dummy_pipe_fds[1] = -1; in lws_plat_pipe_create()
40 n = pt->dummy_pipe_fds[0] < 0 ? -1 : 0; in lws_plat_pipe_create()
44 n = pipe2(pt->dummy_pipe_fds, O_NONBLOCK); in lws_plat_pipe_create()
46 n = pipe(pt->dummy_pipe_fds); in lws_plat_pipe_create()
53 if (fcntl(pt->dummy_pipe_fds[0], F_SETFL, O_NONBLOCK) < 0) in lws_plat_pipe_create()
55 else if (pt->dummy_pipe_fds[1] >= 0) { in lws_plat_pipe_create()
56 if (fcntl(pt->dummy_pipe_fds[1], F_SETFL, O_NONBLOCK) < 0) in lws_plat_pipe_create()
71 return eventfd_write(pt->dummy_pipe_fds[0], value); in lws_plat_pipe_signal()
76 n = (int)write(pt->dummy_pipe_fds[1], &buf, 1); in lws_plat_pipe_signal()
[all …]
/third_party/libwebsockets/lib/plat/windows/
Dwindows-pipe.c40 lws_sockfd_type *fd = pt->dummy_pipe_fds; in lws_plat_pipe_create()
101 lws_sockfd_type *fd = pt->dummy_pipe_fds; in lws_plat_pipe_signal()
121 if (pt->dummy_pipe_fds[0] && pt->dummy_pipe_fds[0] != LWS_SOCK_INVALID) in lws_plat_pipe_close()
122 closesocket(pt->dummy_pipe_fds[0]); in lws_plat_pipe_close()
123 if (pt->dummy_pipe_fds[1] && pt->dummy_pipe_fds[1] != LWS_SOCK_INVALID) in lws_plat_pipe_close()
124 closesocket(pt->dummy_pipe_fds[1]); in lws_plat_pipe_close()
126 pt->dummy_pipe_fds[0] = pt->dummy_pipe_fds[1] = LWS_SOCK_INVALID; in lws_plat_pipe_close()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-pipe.c32 lws_sockfd_type *fd = pt->dummy_pipe_fds; in lws_plat_pipe_create()
93 lws_sockfd_type *fd = pt->dummy_pipe_fds; in lws_plat_pipe_signal()
118 lws_sockfd_type *fd = pt->dummy_pipe_fds; in lws_plat_pipe_close()
/third_party/libwebsockets/lib/plat/optee/
Dnetwork.c171 if (pt->fds[n].fd == pt->dummy_pipe_fds[0]) { in _lws_plat_service_tsi()
/third_party/libwebsockets/lib/core/
Dcontext.c1691 if ((pt->dummy_pipe_fds[0] || pt->dummy_pipe_fds[1]) in lws_pt_destroy()
1693 && ((int)pt->dummy_pipe_fds[0] != -1 || (int)pt->dummy_pipe_fds[1] != -1) in lws_pt_destroy()
/third_party/libwebsockets/lib/core-net/
Dclose.c907 if (pt->dummy_pipe_fds[0] == wsi->desc.sockfd) in __lws_close_free_wsi_final()
908 pt->dummy_pipe_fds[0] = LWS_SOCK_INVALID; in __lws_close_free_wsi_final()
Dprivate-lib-core-net.h343 lws_sockfd_type dummy_pipe_fds[2]; member
Dvhost.c1142 wsi->desc.sockfd = context->pt[n].dummy_pipe_fds[0];