/external/strace/test/ |
wait_must_be_interruptible.c | 53 int pipefd[2]; local 57 pipe(pipefd); 60 if (pipefd[1] != 1) { 61 dup2(pipefd[1], 1); 62 close(pipefd[1]); 67 if (pipefd[0] != 0) { 68 dup2(pipefd[0], 0); 69 close(pipefd[0]);
|
/external/chromium_org/net/test/spawned_test_server/ |
local_test_server_posix.cc | 117 int pipefd[2]; local 118 if (pipe(pipefd) != 0) { 124 child_fd_.reset(pipefd[0]); 125 base::ScopedFD write_closer(pipefd[1]); 127 map_write_fd.push_back(std::make_pair(pipefd[1], pipefd[1])); 129 python_command.AppendArg("--startup-pipe=" + base::IntToString(pipefd[1]));
|
/external/chromium_org/sandbox/linux/seccomp-bpf-helpers/ |
baseline_policy_unittest.cc | 85 int pipefd[2]; local 86 int sys_ret = pipe(pipefd); 88 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1]));
|
/bootable/recovery/ |
install.cpp | 75 int pipefd[2]; local 76 pipe(pipefd); 116 sprintf(temp, "%d", pipefd[1]); 124 close(pipefd[0]); 129 close(pipefd[1]); 134 FILE* from_child = fdopen(pipefd[0], "r");
|
/external/chromium_org/chrome/browser/ |
chrome_browser_main_posix.cc | 265 int pipefd[2]; local 266 int ret = pipe(pipefd); 271 g_shutdown_pipe_read_fd = pipefd[0]; 272 g_shutdown_pipe_write_fd = pipefd[1];
|
/system/netd/server/ |
TetherController.cpp | 115 int pipefd[2]; local 117 if (pipe(pipefd) < 0) { 128 close(pipefd[0]); 129 close(pipefd[1]); 134 close(pipefd[1]); 135 if (pipefd[0] != STDIN_FILENO) { 136 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) { 140 close(pipefd[0]); 169 close(pipefd[0]); 171 mDaemonFd = pipefd[1] [all...] |
/bionic/tests/ |
dlext_test.cpp | 267 int pipefd[2]; local 268 ASSERT_NOERROR(pipe(pipefd));
|
/cts/suite/audio_quality/test/ |
RemoteAudioFakeTcpTest.cpp | 59 int pipefd[2]; local 60 if (pipe(pipefd) == -1) { 64 LOGD("pipe %d %d", pipefd[0], pipefd[1]); 65 mSocket = pipefd[0]; 66 mPipeWrFd = pipefd[1];
|
/external/chromium_org/components/nacl/loader/ |
nacl_helper_linux.cc | 58 int pipefd[2]; local 59 PCHECK(0 == pipe(pipefd)); 60 PCHECK(-1 != dup2(pipefd[0], file_descriptor)); 61 PCHECK(0 == IGNORE_EINTR(close(pipefd[0]))); 62 PCHECK(0 == IGNORE_EINTR(close(pipefd[1])));
|
/external/chromium_org/content/renderer/media/android/ |
audio_decoder_android.cc | 68 int pipefd[2]; local 70 if (pipe(pipefd)) 73 read_fd_ = pipefd[0]; 74 write_fd_ = pipefd[1];
|
/external/dnsmasq/src/ |
helper.c | 56 int i, pipefd[2]; local 61 if (pipe(pipefd) == -1 || !fix_fd(pipefd[1]) || (pid = fork()) == -1) 69 close(pipefd[0]); /* close reader side */ 70 return pipefd[1]; 106 max_fd != STDIN_FILENO && max_fd != pipefd[0] && max_fd != event_fd) 118 if (!read_write(pipefd[0], (unsigned char *)&data, sizeof(data), 1)) 142 if (!read_write(pipefd[0], buf, data.clid_len, 1)) 158 if (!read_write(pipefd[0], buf, 275 close(pipefd[0]) [all...] |
dnsmasq.c | 78 int piperead, pipefd[2], err_pipe[2]; local 274 safe_pipe(pipefd, 1); 276 piperead = pipefd[0]; 277 pipewrite = pipefd[1]; [all...] |
/external/libpcap/ |
pcap-canusb-linux.c | 290 int pipefd[2]; local 292 if (pipe(pipefd) == -1) 295 this->rdpipe = pipefd[0]; 296 this->wrpipe = pipefd[1];
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
code-reading.c | 333 int pipefd[2]; local 337 if (pipe(pipefd) < 0) { 341 close(pipefd[1]); 342 close(pipefd[0]);
|
/external/ppp/pppd/ |
main.c | 798 int pipefd[2]; local 802 if (pipe(pipefd) == -1) 803 pipefd[0] = pipefd[1] = -1; 830 close(pipefd[1]); 831 complete_read(pipefd[0], numbuf, 1); 832 close(pipefd[0]); 1513 int fd, pipefd[2]; local [all...] |
/external/compiler-rt/lib/msan/tests/ |
msan_test.cc | 718 int* pipefd = new int[2]; local 719 int res = pipe(pipefd); 721 EXPECT_NOT_POISONED(pipefd[0]); 722 EXPECT_NOT_POISONED(pipefd[1]); 723 close(pipefd[0]); 724 close(pipefd[1]); 728 int* pipefd = new int[2]; local 729 int res = pipe2(pipefd, O_NONBLOCK); 731 EXPECT_NOT_POISONED(pipefd[0]); 732 EXPECT_NOT_POISONED(pipefd[1]) 748 int* pipefd = new int[2]; local 771 int* pipefd = new int[2]; local 796 int* pipefd = new int[2]; local [all...] |