/netbsd-src/external/mit/libuv/dist/test/ |
H A D | test-pipe-set-fchmod.c | 27 uv_pipe_t pipe_handle; in TEST_IMPL() local 36 r = uv_pipe_init(loop, &pipe_handle, 0); in TEST_IMPL() 39 r = uv_pipe_bind(&pipe_handle, TEST_PIPENAME); in TEST_IMPL() 44 r = uv_pipe_chmod(&pipe_handle, UV_READABLE); in TEST_IMPL() 57 r = uv_pipe_chmod(&pipe_handle, UV_WRITABLE); in TEST_IMPL() 66 r = uv_pipe_chmod(&pipe_handle, UV_WRITABLE | UV_READABLE); in TEST_IMPL() 81 r = uv_pipe_chmod(&pipe_handle, 12345678); in TEST_IMPL() 84 uv_close((uv_handle_t*)&pipe_handle, NULL); in TEST_IMPL() 85 r = uv_pipe_chmod(&pipe_handle, UV_WRITABLE | UV_READABLE); in TEST_IMPL()
|
H A D | test-pipe-pending-instances.c | 34 uv_pipe_t pipe_handle; in TEST_IMPL() local 39 r = uv_pipe_init(loop, &pipe_handle, 0); in TEST_IMPL() 42 uv_pipe_pending_instances(&pipe_handle, 8); in TEST_IMPL() 44 r = uv_pipe_bind(&pipe_handle, TEST_PIPENAME); in TEST_IMPL() 47 uv_pipe_pending_instances(&pipe_handle, 16); in TEST_IMPL() 49 r = uv_listen((uv_stream_t*)&pipe_handle, 128, connection_cb); in TEST_IMPL() 52 uv_close((uv_handle_t*)&pipe_handle, NULL); in TEST_IMPL()
|
H A D | test-close-fd.c | 52 uv_pipe_t pipe_handle; in TEST_IMPL() local 59 ASSERT(0 == uv_pipe_init(uv_default_loop(), &pipe_handle, 0)); in TEST_IMPL() 60 ASSERT(0 == uv_pipe_open(&pipe_handle, fd[0])); in TEST_IMPL() 73 ASSERT(0 == uv_read_start((uv_stream_t *) &pipe_handle, alloc_cb, read_cb)); in TEST_IMPL() 76 ASSERT(0 == uv_is_active((const uv_handle_t *) &pipe_handle)); in TEST_IMPL() 77 ASSERT(0 == uv_read_start((uv_stream_t *) &pipe_handle, alloc_cb, read_cb)); in TEST_IMPL() 80 ASSERT(0 != uv_is_closing((const uv_handle_t *) &pipe_handle)); in TEST_IMPL()
|
H A D | test-pipe-set-non-blocking.c | 69 uv_pipe_t pipe_handle; in TEST_IMPL() local 80 ASSERT(0 == uv_pipe_init(uv_default_loop(), &pipe_handle, 0)); in TEST_IMPL() 82 ASSERT(0 == uv_pipe_open(&pipe_handle, fd[1])); in TEST_IMPL() 83 ASSERT(0 == uv_stream_set_blocking((uv_stream_t*) &pipe_handle, 1)); in TEST_IMPL() 100 n = uv_try_write((uv_stream_t*) &pipe_handle, &buf, 1); in TEST_IMPL() 103 ASSERT(0 == uv_write(&write_req, (uv_stream_t*) &pipe_handle, &buf, 1, write_cb)); in TEST_IMPL() 113 uv_close((uv_handle_t*) &pipe_handle, NULL); in TEST_IMPL()
|
H A D | test-pipe-connect-prepare.c | 39 static uv_pipe_t pipe_handle; variable 54 uv_close((uv_handle_t*)&pipe_handle, close_cb); in connect_cb() 60 uv_pipe_connect(&conn_req, &pipe_handle, BAD_PIPENAME, connect_cb); in prepare_cb() 67 r = uv_pipe_init(uv_default_loop(), &pipe_handle, 0); in TEST_IMPL()
|
H A D | test-pipe-connect-multiple.c | 35 uv_pipe_t pipe_handle; member 92 r = uv_pipe_init(loop, &clients[i].pipe_handle, 0); in TEST_IMPL() 95 &clients[i].pipe_handle, in TEST_IMPL()
|
H A D | test-spawn.c | 1096 HANDLE pipe_handle; in TEST_IMPL() local 1114 pipe_handle = CreateNamedPipeA(name, in TEST_IMPL() 1122 ASSERT(pipe_handle != INVALID_HANDLE_VALUE); in TEST_IMPL() 1643 uv_pipe_t pipe_handle; in TEST_IMPL() local 1667 ASSERT(0 == uv_pipe_init(uv_default_loop(), &pipe_handle, 0)); in TEST_IMPL() 1668 ASSERT(0 == uv_pipe_open(&pipe_handle, fd[0])); in TEST_IMPL() 1672 ASSERT(0 == uv_read_start((uv_stream_t*) &pipe_handle, on_alloc, on_read_once)); in TEST_IMPL() 1684 uv_close((uv_handle_t*) &pipe_handle, close_cb); in TEST_IMPL()
|
/netbsd-src/usr.sbin/rpc.pcnfsd/ |
H A D | pcnfsd_misc.c | 348 static FILE *pipe_handle; variable 354 fclose(pipe_handle); in myhandler() 459 pipe_handle = fdopen(parent_fd, "r"); in su_popen() 460 return (pipe_handle); in su_popen()
|