/external/avahi/avahi-utils/ |
sigint.c | 37 static int pipe_fds[2] = { -1, -1 }; variable 55 write(pipe_fds[1], &s, sizeof(s)); 59 if (pipe_fds[0] >= 0) 60 close(pipe_fds[0]); 61 if (pipe_fds[1] >= 0) 62 close(pipe_fds[1]); 64 pipe_fds[0] = pipe_fds[1] = -1; 72 assert(fd == pipe_fds[0]); 88 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1) [all...] |
/external/libchrome/sandbox/linux/services/ |
scoped_process_unittest.cc | 75 int pipe_fds[2]; local 76 ASSERT_EQ(0, pipe(pipe_fds)); 77 base::ScopedFD read_end_closer(pipe_fds[0]); 78 base::ScopedFD write_end_closer(pipe_fds[1]); 84 pipe_fds[1] = -1; 86 ASSERT_EQ(0, fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK)); 90 ASSERT_EQ(0, read(pipe_fds[0], &c, 1)); 110 int pipe_fds[2]; local 111 ASSERT_EQ(0, pipe(pipe_fds)); 112 base::ScopedFD read_end_closer(pipe_fds[0]) [all...] |
/device/google/dragon/crash_collector/ |
crash_dispatcher.cc | 47 int pipe_fds[2]; local 48 if (pipe(pipe_fds) == -1) { 66 if (close(pipe_fds[1]) != 0 && errno != EINTR) { 70 if (TEMP_FAILURE_RETRY(dup2(pipe_fds[0], STDIN_FILENO)) != 0) { 79 if (close(pipe_fds[0]) != 0 && errno != EINTR) { 83 if (!android::base::WriteFully(pipe_fds[1], buf_head, sizeof(buf_head))) { 97 if (!android::base::WriteFully(pipe_fds[1], buf, rv)) {
|
/external/libcap/progs/old/ |
sucap.c | 58 int pipe_fds[2]; local 96 if (pipe(pipe_fds)) { 130 close(pipe_fds[0]); 152 close(pipe_fds[1]); /* Child hangs in blocking read */ 183 close(pipe_fds[1]); 186 wait_on_fd(pipe_fds[0]);
|
/bionic/tests/ |
fcntl_test.cpp | 158 int pipe_fds[2]; local 159 ASSERT_EQ(0, pipe(pipe_fds)); 166 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); 169 ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_MOVE); 172 close(pipe_fds[0]); 173 close(pipe_fds[1]); 178 int pipe_fds[2]; local 179 ASSERT_EQ(0, pipe(pipe_fds)); 186 ssize_t bytes_written = vmsplice(pipe_fds[1], v, sizeof(v)/sizeof(iovec), 0); 188 close(pipe_fds[1]) [all...] |
/system/core/adb/ |
sysdeps_win32_test.cpp | 134 int pipe_fds[2]; local 135 EXPECT_EQ(0, _pipe(pipe_fds, 64, _O_BINARY)); 136 EXPECT_EQ(0, unix_isatty(pipe_fds[0])); 137 EXPECT_EQ(0, unix_isatty(pipe_fds[1])); 138 EXPECT_EQ(0, _close(pipe_fds[0])); 139 EXPECT_EQ(0, _close(pipe_fds[1]));
|
/external/libdaemon/libdaemon/ |
dfork.c | 138 int pipe_fds[2] = {-1, -1}; local 172 if (pipe(pipe_fds) < 0) { 187 close(pipe_fds[0]); 188 close(pipe_fds[1]); 205 if (close(pipe_fds[0]) < 0) { 211 if (move_fd_up(&pipe_fds[1]) < 0) 288 if (atomic_write(pipe_fds[1], &dpid, sizeof(dpid)) != sizeof(dpid)) { 293 if (close(pipe_fds[1]) < 0) { 302 close(pipe_fds[1]); 309 if (atomic_write(pipe_fds[1], &dpid, sizeof(dpid)) != sizeof(dpid) [all...] |
/system/webservd/webservd/ |
request.cc | 101 int pipe_fds[2] = {-1, -1}; variable 102 CHECK_EQ(0, pipe(pipe_fds)); 103 request_data_pipe_out_ = base::File{pipe_fds[0]}; 106 pipe_fds[1], true, nullptr); 145 int pipe_fds[2] = {-1, -1}; local 146 CHECK_EQ(0, pipe(pipe_fds)); 147 file = base::File{pipe_fds[1]}; 150 pipe_fds[0], true, nullptr);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_pty.py | 221 pipe_fds = os.pipe() 222 self.fds.extend(pipe_fds) 223 return pipe_fds
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_pty.py | 221 pipe_fds = os.pipe() 222 self.fds.extend(pipe_fds) 223 return pipe_fds
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 221 pipe_fds = os.pipe() 222 self.fds.extend(pipe_fds) 223 return pipe_fds
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 221 pipe_fds = os.pipe() 222 self.fds.extend(pipe_fds) 223 return pipe_fds
|
/external/minijail/ |
libminijail.c | 953 static void parent_setup_complete(int *pipe_fds) 955 close(pipe_fds[0]); 956 close(pipe_fds[1]); 963 static void wait_for_parent_setup(int *pipe_fds) 967 close(pipe_fds[1]); 970 if (read(pipe_fds[0], &buf, 1) != 0) 972 close(pipe_fds[0]); 1629 int pipe_fds[2]; local [all...] |
/hardware/ti/omap4xxx/hwc/ |
hwc.c | 134 int pipe_fds[2]; /* pipe to event thread */ member in struct:omap4_hwc_device [all...] |