Searched refs:pipe_fd (Results 1 – 8 of 8) sorted by relevance
| /freebsd-13.1/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_log.c | 33 int pipe_fd[2]; member 48 _ctx.pipe_fd[0] = -1; in zed_log_init() 49 _ctx.pipe_fd[1] = -1; in zed_log_init() 69 if ((_ctx.pipe_fd[0] != -1) || (_ctx.pipe_fd[1] != -1)) in zed_log_pipe_open() 73 if (pipe(_ctx.pipe_fd) < 0) in zed_log_pipe_open() 87 if (_ctx.pipe_fd[0] < 0) in zed_log_pipe_close_reads() 92 if (close(_ctx.pipe_fd[0]) < 0) in zed_log_pipe_close_reads() 97 _ctx.pipe_fd[0] = -1; in zed_log_pipe_close_reads() 112 if (_ctx.pipe_fd[1] < 0) in zed_log_pipe_close_writes() 122 _ctx.pipe_fd[1] = -1; in zed_log_pipe_close_writes() [all …]
|
| /freebsd-13.1/contrib/openbsm/bin/auditfilterd/ |
| H A D | auditfilterd.c | 218 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()
|
| /freebsd-13.1/contrib/opie/ |
| H A D | popen.c | 101 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;
|
| /freebsd-13.1/contrib/netbsd-tests/kernel/ |
| H A D | t_lockf.c | 125 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()
|
| /freebsd-13.1/contrib/googletest/googletest/src/ |
| H A D | gtest-death-test.cc | 1053 int pipe_fd[2]; in AssumeRole() local 1054 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 1071 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole() 1072 set_write_fd(pipe_fd[1]); in AssumeRole() 1083 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() 1084 set_read_fd(pipe_fd[0]); in AssumeRole() 1346 int pipe_fd[2]; in AssumeRole() local 1347 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 1359 + StreamableToString(pipe_fd[1]); in AssumeRole() 1373 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() [all …]
|
| /freebsd-13.1/tests/sys/kqueue/libkqueue/ |
| H A D | proc.c | 82 int pipe_fd[2]; in proc_track() local 90 if (pipe(pipe_fd)) { in proc_track() 103 result = read(pipe_fd[1], test_id, 1); in proc_track() 144 result = write(pipe_fd[0], test_id, 1); in proc_track()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | ConnectionFileDescriptorPosix.cpp | 562 const int pipe_fd = m_pipe.GetReadFileDescriptor(); in BytesAvailable() local 577 const bool have_pipe_fd = pipe_fd >= 0; in BytesAvailable() 580 select_helper.FDSetRead(pipe_fd); in BytesAvailable() 614 if (select_helper.FDIsSetRead(pipe_fd)) { in BytesAvailable() 619 ssize_t bytes_read = llvm::sys::RetryAfterSignal(-1, ::read, pipe_fd, &c, 1); in BytesAvailable()
|
| /freebsd-13.1/sbin/dhclient/ |
| H A D | dhclient.c | 376 int pipe_fd[2]; in main() local 502 if (pipe(pipe_fd) == -1) in main() 505 fork_privchld(pipe_fd[0], pipe_fd[1]); in main() 512 close(pipe_fd[0]); in main() 513 privfd = pipe_fd[1]; in main()
|