Home
last modified time | relevance | path

Searched refs:pipe_fds (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-eintr-handling.c42 int pipe_fds[2]; variable
54 nwritten = write(pipe_fds[1], test_buf, sizeof(test_buf)); in thread_main()
76 ASSERT(0 == pipe(pipe_fds)); in TEST_IMPL()
79 nread = uv_fs_read(loop, &read_req, pipe_fds[0], &iov, 1, -1, NULL); in TEST_IMPL()
86 ASSERT(0 == close(pipe_fds[0])); in TEST_IMPL()
87 ASSERT(0 == close(pipe_fds[1])); in TEST_IMPL()
H A Dtest-fs.c3670 int pipe_fds[2]; in test_fs_partial() local
3698 ASSERT(0 == pipe(pipe_fds)); in test_fs_partial()
3700 ctx.fd = pipe_fds[doread]; in test_fs_partial()
3710 result = uv_fs_read(loop, &read_req, pipe_fds[0], read_iovs, iovcount, -1, NULL); in test_fs_partial()
3724 result = uv_fs_write(loop, &write_req, pipe_fds[1], iovs, iovcount, -1, NULL); in test_fs_partial()
3735 ASSERT(0 == close(pipe_fds[1])); in test_fs_partial()
3740 result = uv_fs_read(loop, &read_req, pipe_fds[0], iovs, 1, -1, NULL); in test_fs_partial()
3744 ASSERT(0 == close(pipe_fds[0])); in test_fs_partial()
/netbsd-src/lib/libisns/
H A Disns_util.c54 return (int)write(cfg_p->pipe_fds[1], &cmd_type, 1); in isns_issue_cmd()
69 return (int)isns_file_writev(cfg_p->pipe_fds[1], iov, 2); in isns_issue_cmd_with_data()
97 cfg_p->pipe_fds[0] = -1; in isns_new_config()
98 cfg_p->pipe_fds[1] = -1; in isns_new_config()
144 if (cfg_p->pipe_fds[0] != -1) in isns_destroy_config()
145 close(cfg_p->pipe_fds[0]); in isns_destroy_config()
146 if (cfg_p->pipe_fds[1] != -1) in isns_destroy_config()
147 close(cfg_p->pipe_fds[1]); in isns_destroy_config()
H A Disns.c73 if ((rval = pipe(cfg_p->pipe_fds)) != 0) { in isns_init()
85 rval = isns_change_kevent_list(cfg_p, (uintptr_t)cfg_p->pipe_fds[0], in isns_init()
H A Disns_config.h61 int pipe_fds[2]; member
H A Disns_thread.c137 rbytes = read(cfg_p->pipe_fds[0], &cmd_type, in isns_kevent_pipe()
153 rbytes = read(cfg_p->pipe_fds[0], &trans_id, in isns_kevent_pipe()
/netbsd-src/tests/lib/libc/sys/
H A Dt_posix_fadvise.c92 int pipe_fds[2]; in ATF_TC_BODY() local
99 RL(pipe(pipe_fds)); in ATF_TC_BODY()
118 CE(posix_fadvise(pipe_fds[0], 0, 0, POSIX_FADV_NORMAL), ESPIPE); in ATF_TC_BODY()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_linux_test.cc260 int pipe_fds[2]; in TEST() local
261 ASSERT_EQ(0, pipe(pipe_fds)); in TEST()
269 /* stdin */ kInvalidFd, /* stdout */ pipe_fds[1]); in TEST()
281 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST()
291 internal_close(pipe_fds[0]); in TEST()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dsocket.c397 int pipe_fds[2]; member
950 cc = write(mgr->threads[threadid].pipe_fds[1], buf, in select_poke()
982 cc = read(thread->pipe_fds[0], buf, sizeof(buf)); in select_readmsg()
1858 if (thread->maxfd < thread->pipe_fds[0]) { in socketclose()
1859 thread->maxfd = thread->pipe_fds[0]; in socketclose()
3320 if (events[i].ident == (uintptr_t)thread->pipe_fds[0]) { in process_fds()
3352 if (events[i].data.fd == thread->pipe_fds[0]) { in process_fds()
3396 if (events[i].fd == thread->pipe_fds[0]) { in process_fds()
3420 if (i == thread->pipe_fds[0] || i == thread->pipe_fds[1]) { in process_fds()
3505 ctlfd = thread->pipe_fds[0]; in netthread()
[all …]
/netbsd-src/usr.bin/make/
H A Djob.c533 int pipe_fds[2]; in JobSigUnlock()
535 if (pipe(pipe_fds) == -1)
540 fd = fcntl(pipe_fds[i], F_DUPFD, minfd); in JobCreatePipe()
542 close(pipe_fds[i]); in JobCreatePipe()
543 pipe_fds[i] = fd; in JobCreatePipe()
547 job->inPipe = pipe_fds[0]; in JobCreatePipe()
548 job->outPipe = pipe_fds[1]; in JobCreatePipe()
539 int pipe_fds[2]; JobCreatePipe() local