Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 13 of 13) sorted by relevance

/libuv/test/
H A Dtest-ping-pong.c306 uv_os_sock_t fds[2]; in socketpair_pinger_new() local
321 ASSERT_EQ(uv_guess_handle((uv_file) fds[0]), UV_NAMED_PIPE); in socketpair_pinger_new()
322 ASSERT_EQ(uv_guess_handle((uv_file) fds[1]), UV_NAMED_PIPE); in socketpair_pinger_new()
327 ASSERT_OK(uv_tcp_open(&pinger->stream.tcp, fds[1])); in socketpair_pinger_new()
333 ASSERT_OK(uv_tcp_open(ponger, fds[0])); in socketpair_pinger_new()
347 uv_file fds[2]; in pipe2_pinger_new() local
352 ASSERT_OK(uv_pipe(fds, UV_NONBLOCK_PIPE, UV_NONBLOCK_PIPE)); in pipe2_pinger_new()
353 ASSERT_EQ(uv_guess_handle(fds[0]), UV_NAMED_PIPE); in pipe2_pinger_new()
354 ASSERT_EQ(uv_guess_handle(fds[1]), UV_NAMED_PIPE); in pipe2_pinger_new()
359 ASSERT_OK(uv_pipe_open(ponger, fds[0])); in pipe2_pinger_new()
[all …]
H A Dtest-pipe-sendmsg.c110 int fds[2]; in TEST_IMPL() local
118 ASSERT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds)); in TEST_IMPL()
123 ASSERT_OK(uv_pipe_open(&p, fds[1])); in TEST_IMPL()
148 set_nonblocking(fds[1]); in TEST_IMPL()
152 r = sendmsg(fds[0], &msg, 0); in TEST_IMPL()
159 close(fds[0]); in TEST_IMPL()
H A Drunner-unix.c247 fd_set fds; in process_wait() local
314 FD_ZERO(&fds); in process_wait()
315 FD_SET(args.pipe[0], &fds); in process_wait()
317 r = select(args.pipe[0] + 1, &fds, NULL, NULL, &tv); in process_wait()
/libuv/src/unix/
H A Dpipe.c502 int uv_pipe(uv_os_fd_t fds[2], int read_flags, int write_flags) { in uv_pipe()
519 fds[0] = temp[0]; in uv_pipe()
520 fds[1] = temp[1]; in uv_pipe()
542 fds[0] = temp[0]; in uv_pipe()
543 fds[1] = temp[1]; in uv_pipe()
553 int uv__make_pipe(int fds[2], int flags) { in uv__make_pipe()
554 return uv_pipe(fds, in uv__make_pipe()
H A Dstream.c284 int fds[2]; in uv__stream_try_select() local
327 if (fds[1] > max_fd) in uv__stream_try_select()
328 max_fd = fds[1]; in uv__stream_try_select()
361 s->fake_fd = fds[0]; in uv__stream_try_select()
362 s->int_fd = fds[1]; in uv__stream_try_select()
386 uv__close(fds[0]); in uv__stream_try_select()
387 uv__close(fds[1]); in uv__stream_try_select()
395 uv__close(fds[0]); in uv__stream_try_select()
396 uv__close(fds[1]); in uv__stream_try_select()
588 memmove(queued_fds->fds, in uv_accept()
[all …]
H A Dtcp.c630 int uv_socketpair(int type, int protocol, uv_os_sock_t fds[2], int flags0, int flags1) { in uv_socketpair()
644 fds[0] = temp[0]; in uv_socketpair()
645 fds[1] = temp[1]; in uv_socketpair()
665 fds[0] = temp[0]; in uv_socketpair()
666 fds[1] = temp[1]; in uv_socketpair()
H A Dinternal.h185 int fds[1]; member
385 int uv__make_pipe(int fds[2], int flags);
H A Dprocess.c188 static int uv__process_init_stdio(uv_stdio_container_t* container, int fds[2]) { in uv__process_init_stdio()
203 return uv_socketpair(SOCK_STREAM, 0, fds, 0, 0); in uv__process_init_stdio()
215 fds[1] = fd; in uv__process_init_stdio()
/libuv/docs/src/
H A Dpipe.rst166 .. c:function:: int uv_pipe(uv_file fds[2], int read_flags, int write_flags)
169 Data may be written to `fds[1]` and read from `fds[0]`.
/libuv/src/win/
H A Dtcp.c1567 int uv_socketpair(int type, int protocol, uv_os_sock_t fds[2], int flags0, int flags1) { in uv_socketpair()
1651 fds[0] = client0; in uv_socketpair()
1652 fds[1] = client1; in uv_socketpair()
H A Dpipe.c349 int uv_pipe(uv_file fds[2], int read_flags, int write_flags) { in uv_pipe()
365 (uintptr_t) &fds[0]); in uv_pipe()
388 fds[0] = temp[0]; in uv_pipe()
389 fds[1] = temp[1]; in uv_pipe()
/libuv/
H A DChangeLog888 * kqueue: skip EVFILT_PROC when invalidating fds (chucksilvers)
2665 * unix: close signal pipe fds on unload (Ben Noordhuis)
3873 * unix: report errors for unpollable fds (Ben Noordhuis)
4336 * aix: always deregister closing fds from epoll (Michael)
4365 * unix: reject non-tty fds in uv_tty_init() (Ben Noordhuis)
4394 * unix: don't close the fds we just setup (Sam Roberts)
5205 * linux: always deregister closing fds from epoll (Geoffry Song)
5257 * linux: always deregister closing fds from epoll (Geoffry Song)
5317 * process: don't close stdio fds during spawn (Tonis Tiigi)
5485 * unix: set close-on-exec flag on received fds (Ben Noordhuis)
[all …]
/libuv/include/
H A Duv.h514 UV_EXTERN int uv_pipe(uv_file fds[2], int read_flags, int write_flags);

Completed in 50 milliseconds