/dports/net/samba412/samba-4.12.15/lib/pthreadpool/ |
H A D | pthreadpool_pipe.c | 29 int pipe_fds[2]; member 59 close(pool->pipe_fds[0]); in pthreadpool_pipe_init() 60 close(pool->pipe_fds[1]); in pthreadpool_pipe_init() 101 close(pool->pipe_fds[0]); in pthreadpool_pipe_destroy() 102 pool->pipe_fds[0] = -1; in pthreadpool_pipe_destroy() 104 close(pool->pipe_fds[1]); in pthreadpool_pipe_destroy() 105 pool->pipe_fds[1] = -1; in pthreadpool_pipe_destroy() 123 close(pool->pipe_fds[0]); in pthreadpool_pipe_reinit() 124 pool->pipe_fds[0] = -1; in pthreadpool_pipe_reinit() 126 close(pool->pipe_fds[1]); in pthreadpool_pipe_reinit() [all …]
|
/dports/benchmarks/stress-ng/stress-ng-0.13.09/ |
H A D | stress-poll.c | 104 pipe_fds_t *pipe_fds; in stress_poll() local 109 pipe_fds = calloc((size_t)max_fds, sizeof(*pipe_fds)); in stress_poll() 110 if (!pipe_fds) { in stress_poll() 119 free(pipe_fds); in stress_poll() 124 if (pipe(pipe_fds[i].fd) < 0) { in stress_poll() 135 free(pipe_fds); in stress_poll() 160 (void)close(pipe_fds[i].fd[0]); in stress_poll() 180 (void)close(pipe_fds[i].fd[1]); in stress_poll() 296 maxfd = pipe_fds[i].fd[0]; in stress_poll() 332 maxfd = pipe_fds[i].fd[0]; in stress_poll() [all …]
|
/dports/net/py-avahi/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-gtk/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-libdns/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-sharp/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-qt5/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-app/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-autoipd/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-gtk3/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/net/avahi-header/avahi-0.8/avahi-utils/ |
H A D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 59 if (pipe_fds[0] >= 0) in close_pipe_fds() 60 close(pipe_fds[0]); in close_pipe_fds() 61 if (pipe_fds[1] >= 0) in close_pipe_fds() 62 close(pipe_fds[1]); in close_pipe_fds() 64 pipe_fds[0] = pipe_fds[1] = -1; in close_pipe_fds() 72 assert(fd == pipe_fds[0]); in watch_callback() 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); in sigint_install() 90 if (pipe(pipe_fds) < 0) { in sigint_install() 95 set_nonblock(pipe_fds[0]); in sigint_install() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/sandbox/linux/services/ |
H A D | scoped_process_unittest.cc | 75 int pipe_fds[2]; in TEST() local 76 ASSERT_EQ(0, pipe(pipe_fds)); in TEST() 77 base::ScopedFD read_end_closer(pipe_fds[0]); in TEST() 78 base::ScopedFD write_end_closer(pipe_fds[1]); in TEST() 84 pipe_fds[1] = -1; in TEST() 90 ASSERT_EQ(0, read(pipe_fds[0], &c, 1)); in TEST() 110 int pipe_fds[2]; in TEST() local 111 ASSERT_EQ(0, pipe(pipe_fds)); in TEST() 112 base::ScopedFD read_end_closer(pipe_fds[0]); in TEST() 113 base::ScopedFD write_end_closer(pipe_fds[1]); in TEST() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/sandbox/linux/services/ |
H A D | scoped_process_unittest.cc | 75 int pipe_fds[2]; in TEST() local 76 ASSERT_EQ(0, pipe(pipe_fds)); in TEST() 77 base::ScopedFD read_end_closer(pipe_fds[0]); in TEST() 78 base::ScopedFD write_end_closer(pipe_fds[1]); in TEST() 84 pipe_fds[1] = -1; in TEST() 90 ASSERT_EQ(0, read(pipe_fds[0], &c, 1)); in TEST() 110 int pipe_fds[2]; in TEST() local 111 ASSERT_EQ(0, pipe(pipe_fds)); in TEST() 112 base::ScopedFD read_end_closer(pipe_fds[0]); in TEST() 113 base::ScopedFD write_end_closer(pipe_fds[1]); in TEST() [all …]
|
/dports/devel/gnome-builder/gnome-builder-41.3/src/plugins/flatpak/ |
H A D | gbp-flatpak-client.c | 78 g_assert (pipe_fds[0].read >= 0); in G_DEFINE_FINAL_TYPE() 79 g_assert (pipe_fds[0].write >= 0); in G_DEFINE_FINAL_TYPE() 80 g_assert (pipe_fds[1].read >= 0); in G_DEFINE_FINAL_TYPE() 90 pipe_fds[0].read = -1; in G_DEFINE_FINAL_TYPE() 93 pipe_fds[1].write = -1; in G_DEFINE_FINAL_TYPE() 113 pipe_fds[1].read = -1; in G_DEFINE_FINAL_TYPE() 116 pipe_fds[0].write = -1; in G_DEFINE_FINAL_TYPE() 136 if (pipe_fds[0].read != -1) close (pipe_fds[0].read); in G_DEFINE_FINAL_TYPE() 137 if (pipe_fds[0].write != -1) close (pipe_fds[0].write); in G_DEFINE_FINAL_TYPE() 138 if (pipe_fds[1].read != -1) close (pipe_fds[1].read); in G_DEFINE_FINAL_TYPE() [all …]
|
/dports/net/libwebsockets/libwebsockets-v4.2.2/lib/plat/windows/ |
H A D | windows-spawn.c | 121 if (lsp->pipe_fds[n][!!(n == 0)]) { in lws_spawn_piped_destroy() 123 lsp->pipe_fds[n][n == 0] = NULL; in lws_spawn_piped_destroy() 376 lsp->pipe_fds[n][0] = NULL; in lws_spawn_piped() 377 lsp->pipe_fds[n][1] = NULL; in lws_spawn_piped() 390 if (!CreatePipe(&lsp->pipe_fds[n][0], &lsp->pipe_fds[n][1], in lws_spawn_piped() 431 lsp->pipe_fds[n][!!(n == 0)], in lws_spawn_piped() 432 lsp->pipe_fds[n][!(n == 0)]); in lws_spawn_piped() 541 if (lsp->pipe_fds[n][0] >= 0) in lws_spawn_piped() 542 CloseHandle(lsp->pipe_fds[n][0]); in lws_spawn_piped() 543 if (lsp->pipe_fds[n][1] >= 0) in lws_spawn_piped() [all …]
|
/dports/net-p2p/transmission-cli/transmission-3.00/libtransmission/ |
H A D | subprocess-posix.c | 136 int pipe_fds[2]; in tr_spawn_async() local 138 if (pipe(pipe_fds) == -1) in tr_spawn_async() 144 if (fcntl(pipe_fds[1], F_SETFD, fcntl(pipe_fds[1], F_GETFD) | FD_CLOEXEC) == -1) in tr_spawn_async() 147 close(pipe_fds[0]); in tr_spawn_async() 148 close(pipe_fds[1]); in tr_spawn_async() 162 close(pipe_fds[0]); in tr_spawn_async() 164 if (!tr_spawn_async_in_child(cmd, env, work_dir, pipe_fds[1])) in tr_spawn_async() 170 close(pipe_fds[1]); in tr_spawn_async() 172 return tr_spawn_async_in_parent(pipe_fds[0], error); in tr_spawn_async()
|
/dports/net-p2p/transmission-daemon/transmission-3.00/libtransmission/ |
H A D | subprocess-posix.c | 136 int pipe_fds[2]; in tr_spawn_async() local 138 if (pipe(pipe_fds) == -1) in tr_spawn_async() 144 if (fcntl(pipe_fds[1], F_SETFD, fcntl(pipe_fds[1], F_GETFD) | FD_CLOEXEC) == -1) in tr_spawn_async() 147 close(pipe_fds[0]); in tr_spawn_async() 148 close(pipe_fds[1]); in tr_spawn_async() 162 close(pipe_fds[0]); in tr_spawn_async() 164 if (!tr_spawn_async_in_child(cmd, env, work_dir, pipe_fds[1])) in tr_spawn_async() 170 close(pipe_fds[1]); in tr_spawn_async() 172 return tr_spawn_async_in_parent(pipe_fds[0], error); in tr_spawn_async()
|
/dports/net-p2p/transmission-qt/transmission-3.00/libtransmission/ |
H A D | subprocess-posix.c | 136 int pipe_fds[2]; in tr_spawn_async() local 138 if (pipe(pipe_fds) == -1) in tr_spawn_async() 144 if (fcntl(pipe_fds[1], F_SETFD, fcntl(pipe_fds[1], F_GETFD) | FD_CLOEXEC) == -1) in tr_spawn_async() 147 close(pipe_fds[0]); in tr_spawn_async() 148 close(pipe_fds[1]); in tr_spawn_async() 162 close(pipe_fds[0]); in tr_spawn_async() 164 if (!tr_spawn_async_in_child(cmd, env, work_dir, pipe_fds[1])) in tr_spawn_async() 170 close(pipe_fds[1]); in tr_spawn_async() 172 return tr_spawn_async_in_parent(pipe_fds[0], error); in tr_spawn_async()
|
/dports/net-p2p/transmission-gtk/transmission-3.00/libtransmission/ |
H A D | subprocess-posix.c | 136 int pipe_fds[2]; in tr_spawn_async() local 138 if (pipe(pipe_fds) == -1) in tr_spawn_async() 144 if (fcntl(pipe_fds[1], F_SETFD, fcntl(pipe_fds[1], F_GETFD) | FD_CLOEXEC) == -1) in tr_spawn_async() 147 close(pipe_fds[0]); in tr_spawn_async() 148 close(pipe_fds[1]); in tr_spawn_async() 162 close(pipe_fds[0]); in tr_spawn_async() 164 if (!tr_spawn_async_in_child(cmd, env, work_dir, pipe_fds[1])) in tr_spawn_async() 170 close(pipe_fds[1]); in tr_spawn_async() 172 return tr_spawn_async_in_parent(pipe_fds[0], error); in tr_spawn_async()
|
/dports/net-p2p/transmission-utils/transmission-3.00/libtransmission/ |
H A D | subprocess-posix.c | 136 int pipe_fds[2]; in tr_spawn_async() local 138 if (pipe(pipe_fds) == -1) in tr_spawn_async() 144 if (fcntl(pipe_fds[1], F_SETFD, fcntl(pipe_fds[1], F_GETFD) | FD_CLOEXEC) == -1) in tr_spawn_async() 147 close(pipe_fds[0]); in tr_spawn_async() 148 close(pipe_fds[1]); in tr_spawn_async() 162 close(pipe_fds[0]); in tr_spawn_async() 164 if (!tr_spawn_async_in_child(cmd, env, work_dir, pipe_fds[1])) in tr_spawn_async() 170 close(pipe_fds[1]); in tr_spawn_async() 172 return tr_spawn_async_in_parent(pipe_fds[0], error); in tr_spawn_async()
|
/dports/www/transmission-web/transmission-3.00/libtransmission/ |
H A D | subprocess-posix.c | 136 int pipe_fds[2]; in tr_spawn_async() local 138 if (pipe(pipe_fds) == -1) in tr_spawn_async() 144 if (fcntl(pipe_fds[1], F_SETFD, fcntl(pipe_fds[1], F_GETFD) | FD_CLOEXEC) == -1) in tr_spawn_async() 147 close(pipe_fds[0]); in tr_spawn_async() 148 close(pipe_fds[1]); in tr_spawn_async() 162 close(pipe_fds[0]); in tr_spawn_async() 164 if (!tr_spawn_async_in_child(cmd, env, work_dir, pipe_fds[1])) in tr_spawn_async() 170 close(pipe_fds[1]); in tr_spawn_async() 172 return tr_spawn_async_in_parent(pipe_fds[0], error); in tr_spawn_async()
|
/dports/net/rsync/rsync-3.2.3/support/ |
H A D | savetransfer.c | 108 int pipe_fds[2], ret; 111 if (pipe(pipe_fds) < 0) { 123 ret = dup2(pipe_fds[1], STDOUT_FILENO); 125 ret = dup2(pipe_fds[0], STDIN_FILENO); 130 close(pipe_fds[0]); 131 close(pipe_fds[1]); 140 ret = dup2(pipe_fds[0], STDIN_FILENO); 142 ret = dup2(pipe_fds[1], STDOUT_FILENO); 147 close(pipe_fds[0]); 148 close(pipe_fds[1]);
|
/dports/x11/foot/foot/ |
H A D | spawn.c | 22 int pipe_fds[2] = {-1, -1}; in spawn() local 23 if (pipe2(pipe_fds, O_CLOEXEC) < 0) { in spawn() 36 close(pipe_fds[0]); in spawn() 77 (void)!write(pipe_fds[1], &errno_copy, sizeof(errno_copy)); in spawn() 82 close(pipe_fds[1]); in spawn() 87 ssize_t ret = read(pipe_fds[0], &errno_copy, sizeof(errno_copy)); in spawn() 88 close(pipe_fds[0]); in spawn() 104 if (pipe_fds[0] != -1) in spawn() 105 close(pipe_fds[0]); in spawn() 106 if (pipe_fds[1] != -1) in spawn() [all …]
|
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/router/src/harness/tests/ |
H A D | test_net_ts_impl_file.cc | 59 auto pipe_fds = std::move(pipe_ec.value()); in TEST() local 61 EXPECT_TRUE(net::impl::file::close(pipe_fds.first)); in TEST() 62 EXPECT_TRUE(net::impl::file::close(pipe_fds.second)); in TEST() 80 auto pipe_fds = std::move(pipe_ec.value()); in TEST() local 82 auto fcntl_res = net::impl::file::fcntl(pipe_fds.first, in TEST() 91 fcntl_res = net::impl::file::fcntl(pipe_fds.second, in TEST() 98 EXPECT_TRUE(net::impl::file::close(pipe_fds.first)); in TEST() 99 EXPECT_TRUE(net::impl::file::close(pipe_fds.second)); in TEST()
|
/dports/textproc/mgdiff/mgdiff/ |
H A D | spawn.c | 47 int pipe_fds[2]; in spawn_diff() local 54 if (pipe (pipe_fds) == -1) { in spawn_diff() 66 if (dup (pipe_fds[1]) == -1) { in spawn_diff() 72 if (dup (pipe_fds[1]) == -1) { in spawn_diff() 78 (void) close (pipe_fds[0]); in spawn_diff() 125 (void) close (pipe_fds[1]); in spawn_diff() 129 return (fdopen (pipe_fds[0], "r")); in spawn_diff()
|