Home
last modified time | relevance | path

Searched refs:pipe_fd (Results 1 – 5 of 5) sorted by relevance

/NextBSD/contrib/openbsm/bin/auditfilterd/
HDauditfilterd.c218 mainloop_pipe(const char *conffile, const char *pipefile __unused, int pipe_fd) in mainloop_pipe() argument
250 reclen = read(pipe_fd, record, MAX_AUDIT_RECORD_SIZE); in mainloop_pipe()
266 int pipe_fd; in main() local
313 pipe_fd = open(pipefile, O_RDONLY); in main()
314 if (pipe_fd < 0) in main()
316 if (fstat(pipe_fd, &sb) < 0) in main()
346 mainloop_pipe(conffile, pipefile, pipe_fd); in main()
/NextBSD/contrib/opie/
HDpopen.c101 static int pipe_fd; variable
169 iop = fdopen(pipe_fd = pdes[0], type);
172 iop = fdopen(pipe_fd = pdes[1], type);
196 if ((child_pid < 0) || (fileno(iop) != pipe_fd))
206 pipe_fd = -1;
/NextBSD/contrib/llvm/tools/lldb/source/Host/posix/
HDConnectionFileDescriptorPosix.cpp598 const int pipe_fd = m_pipe.GetReadFileDescriptor(); in BytesAvailable() local
608 const bool have_pipe_fd = pipe_fd >= 0; in BytesAvailable()
612 assert(pipe_fd < FD_SETSIZE); in BytesAvailable()
617 const int nfds = std::max<int>(handle, pipe_fd) + 1; in BytesAvailable()
632 FD_SET(pipe_fd, FD_SET_DATA(read_fds)); in BytesAvailable()
641 … static_cast<void *>(this), nfds, handle, pipe_fd, static_cast<void *>(tv_ptr)); in BytesAvailable()
658 … static_cast<void *>(this), nfds, handle, pipe_fd, static_cast<void *>(tv_ptr), num_set_fds, in BytesAvailable()
697 if (have_pipe_fd && FD_ISSET(pipe_fd, FD_SET_DATA(read_fds))) in BytesAvailable()
707 bytes_read = ::read(pipe_fd, buffer, sizeof(buffer)); in BytesAvailable()
/NextBSD/contrib/netbsd-tests/kernel/
HDt_lockf.c125 int pipe_fd[2]; in ATF_TC_BODY() local
139 ATF_REQUIRE_MSG(pipe(pipe_fd) == 0, "pipe: %s", strerror(errno)); in ATF_TC_BODY()
151 if (write(pipe_fd[1], &pipe_out, 1) != 1) in ATF_TC_BODY()
162 ATF_REQUIRE_MSG(read(pipe_fd[0], &pipe_in, 1) == 1, in ATF_TC_BODY()
/NextBSD/sbin/dhclient/
HDdhclient.c345 int pipe_fd[2]; in main() local
469 if (pipe(pipe_fd) == -1) in main()
472 fork_privchld(pipe_fd[0], pipe_fd[1]); in main()
479 close(pipe_fd[0]); in main()
480 privfd = pipe_fd[1]; in main()