Searched refs:pipe_fds (Results 1 – 6 of 6) sorted by relevance
/external/avahi/avahi-utils/ |
D | sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 55 write(pipe_fds[1], &s, sizeof(s)); in handler() 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() [all …]
|
/external/libchrome/sandbox/linux/services/ |
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() 86 ASSERT_EQ(0, fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK)); 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() [all …]
|
/external/libcap/progs/old/ |
D | sucap.c | 58 int pipe_fds[2]; in main() local 96 if (pipe(pipe_fds)) { in main() 130 close(pipe_fds[0]); in main() 152 close(pipe_fds[1]); /* Child hangs in blocking read */ in main() 183 close(pipe_fds[1]); in main() 186 wait_on_fd(pipe_fds[0]); in main()
|
/external/libdaemon/libdaemon/ |
D | dfork.c | 138 int pipe_fds[2] = {-1, -1}; in daemon_fork() local 172 if (pipe(pipe_fds) < 0) { in daemon_fork() 187 close(pipe_fds[0]); in daemon_fork() 188 close(pipe_fds[1]); in daemon_fork() 205 if (close(pipe_fds[0]) < 0) { in daemon_fork() 211 if (move_fd_up(&pipe_fds[1]) < 0) in daemon_fork() 288 if (atomic_write(pipe_fds[1], &dpid, sizeof(dpid)) != sizeof(dpid)) { in daemon_fork() 293 if (close(pipe_fds[1]) < 0) { in daemon_fork() 302 close(pipe_fds[1]); in daemon_fork() 309 if (atomic_write(pipe_fds[1], &dpid, sizeof(dpid)) != sizeof(dpid)) in daemon_fork() [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/ |
D | pipe_select_interrupter.ipp | 39 int pipe_fds[2]; 40 if (pipe(pipe_fds) == 0) 42 read_descriptor_ = pipe_fds[0]; 44 write_descriptor_ = pipe_fds[1];
|
/external/minijail/ |
D | libminijail.c | 953 static void parent_setup_complete(int *pipe_fds) in parent_setup_complete() argument 955 close(pipe_fds[0]); in parent_setup_complete() 956 close(pipe_fds[1]); in parent_setup_complete() 963 static void wait_for_parent_setup(int *pipe_fds) in wait_for_parent_setup() argument 967 close(pipe_fds[1]); in wait_for_parent_setup() 970 if (read(pipe_fds[0], &buf, 1) != 0) in wait_for_parent_setup() 972 close(pipe_fds[0]); in wait_for_parent_setup() 1629 int pipe_fds[2]; in minijail_run_internal() local 1676 if (setup_pipe(pipe_fds)) in minijail_run_internal() 1803 close(pipe_fds[0]); /* read endpoint */ in minijail_run_internal() [all …]
|