/frameworks/av/services/minijail/ |
minijail.cpp | 34 int pipefd[2]; local 35 if (pipe(pipefd) == -1) { 40 base::unique_fd write_end(pipefd[1]); 53 return pipefd[0];
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
linux_dumper_unittest_helper.cc | 59 int pipefd = *static_cast<int *>(data); local 63 if (write(pipefd, &byte, sizeof(byte)) != sizeof(byte)) { 79 int pipefd = atoi(argv[1]); local 90 pthread_create(&threads[i], &thread_attributes, &thread_function, &pipefd); 92 thread_function(&pipefd);
|
/system/core/libprocinfo/ |
process_test.cpp | 90 int pipefd[2]; local 91 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); 96 close(pipefd[1]); 98 TEMP_FAILURE_RETRY(read(pipefd[0], &buf, 1));
|
/external/linux-kselftest/tools/testing/selftests/kcmp/ |
kcmp_test.c | 36 int pipefd[2]; local 50 if (pipe(pipefd)) { 64 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) { 69 fddup = dup2(pipefd[1], duped_num); 143 ret = sys_kcmp(pid1, pid1, KCMP_EPOLL_TFD, pipefd[1],
|
/external/ltp/testcases/kernel/containers/pidns/ |
pidns12.c | 50 int pipefd[2]; variable 85 close(pipefd[0]); 97 if (write(pipefd[1], "c:go\0", 5) != 5) { 104 close(pipefd[1]); 132 if (pipe(pipefd) == -1) { 142 close(pipefd[1]); 145 read(pipefd[0], buf, 5); 164 close(pipefd[0]);
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
pipe08.c | 67 int pipefd[2]; /* fds for pipe read/write */ local 81 TEST(pipe(pipefd)); 88 if ((close_stat = close(pipefd[0])) == -1) { 100 written = write(pipefd[1], wrbuf, length);
|
pipe09.c | 80 int pipefd[2]; /* fds for pipe read/write */ local 94 TEST(pipe(pipefd)); 106 if (close(pipefd[0]) != 0) { 107 tst_resm(TWARN, "pipefd[0] close failed, " 113 if (write(pipefd[1], "A", 1) != 1) { 133 if (close(pipefd[0]) != 0) { 134 perror("pipefd[0] close failed"); 139 if (write(pipefd[1], "B", 1) != 1) { 155 if (close(pipefd[1]) != 0) { 157 "pipefd[1] close failed") [all...] |
/external/strace/tests/ |
attach-f-p.c | 53 typedef int pipefd[2]; typedef 54 static pipefd pipes[N];
|
ioctl_nsfs.c | 98 int *pipefd = (int *) arg; local 99 close(pipefd[1]); 101 if (read(pipefd[0], &pipefd[1], 1)) 116 int pipefd[2]; local 119 if (pipe(pipefd)) 123 CLONE_NEWUSER | CLONE_UNTRACED | SIGCHLD, pipefd); 128 close(pipefd[0]); 130 close(pipefd[1]);
|
/external/strace/tests-m32/ |
attach-f-p.c | 53 typedef int pipefd[2]; typedef 54 static pipefd pipes[N];
|
ioctl_nsfs.c | 98 int *pipefd = (int *) arg; local 99 close(pipefd[1]); 101 if (read(pipefd[0], &pipefd[1], 1)) 116 int pipefd[2]; local 119 if (pipe(pipefd)) 123 CLONE_NEWUSER | CLONE_UNTRACED | SIGCHLD, pipefd); 128 close(pipefd[0]); 130 close(pipefd[1]);
|
/external/strace/tests-mx32/ |
attach-f-p.c | 53 typedef int pipefd[2]; typedef 54 static pipefd pipes[N];
|
ioctl_nsfs.c | 98 int *pipefd = (int *) arg; local 99 close(pipefd[1]); 101 if (read(pipefd[0], &pipefd[1], 1)) 116 int pipefd[2]; local 119 if (pipe(pipefd)) 123 CLONE_NEWUSER | CLONE_UNTRACED | SIGCHLD, pipefd); 128 close(pipefd[0]); 130 close(pipefd[1]);
|
/art/libartbase/base/unix_file/ |
fd_file_test.cc | 278 int pipefd[2]; local 279 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); 281 FdFile file(pipefd[1], true); 285 close(pipefd[0]);
|
/external/ltp/testcases/kernel/syscalls/setrlimit/ |
setrlimit01.c | 126 int pipefd[2]; local 128 SAFE_PIPE(NULL, pipefd); 142 close(pipefd[0]); /* close unused read end */ 154 if (write(pipefd[1], &bytes, sizeof(bytes)) 158 close(pipefd[1]); /* EOF */ 179 close(pipefd[1]); /* close unused write end */ 180 if (read(pipefd[0], &bytes, sizeof(bytes)) < sizeof(bytes)) 183 close(pipefd[0]);
|
/system/core/base/include/android-base/ |
unique_fd.h | 102 int pipefd[2]; local 105 if (pipe2(pipefd, O_CLOEXEC) != 0) { 109 if (pipe(pipefd) != 0) { 113 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) != 0) { 114 close(pipefd[0]); 115 close(pipefd[1]); 120 read->reset(pipefd[0]); 121 write->reset(pipefd[1]);
|
/build/kati/ |
fileutil.cc | 84 int pipefd[2]; local 85 if (pipe(pipefd) != 0) 90 close(pipefd[1]); 98 ssize_t r = HANDLE_EINTR(read(pipefd[0], buf, 4096)); 110 close(pipefd[0]); 114 close(pipefd[0]); 116 if (dup2(pipefd[1], 2) < 0) 124 if (dup2(pipefd[1], 1) < 0) 126 close(pipefd[1]);
|
/external/adhd/cras/src/tests/ |
cras_router.c | 26 static int pipefd[2]; variable 32 return write(pipefd[1], "1", 1); 134 if (pipe(pipefd) == -1) { 184 FD_SET(pipefd[0], &poll_set); 185 pselect(pipefd[0] + 1, &poll_set, NULL, NULL, NULL, NULL); 191 close(pipefd[0]); 192 close(pipefd[1]);
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
sendmsg02.c | 63 static void client(int id, int pipefd[]) 72 close(pipefd[0]); 93 write(pipefd[1], &fd, 1); 98 close(pipefd[1]); 101 static void server(int id, int pipefd[]) 106 close(pipefd[1]); 116 read(pipefd[0], &fd, 1); 120 close(pipefd[0]); 125 int i, status, pipefd[2]; local 141 if (pipe(pipefd) < 0) [all...] |
/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/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...] |
/external/libchrome/base/ |
logging_unittest.cc | 317 int pipefd[2]; local 318 ASSERT_EQ(0, pipe(pipefd)); 324 close(pipefd[0]); // Close reader (parent) end. 325 g_child_crash_pipe = pipefd[1]; 330 close(pipefd[1]); // Close writer (child) end. 332 int res = HANDLE_EINTR(read(pipefd[0], child_crash_addr, sizeof(uintptr_t)));
|
/external/ltp/testcases/kernel/logging/kmsg/ |
kmsg01.c | 195 int pipefd[2]; local 198 if (pipe(pipefd) != 0) 208 close(pipefd[0]); 210 if (write(pipefd[1], "", 1) == -1) 221 close(pipefd[1]); 224 SAFE_CLOSE(pipefd[1]); 228 TEST(timed_read(pipefd[0], timeout_usec)); 230 SAFE_CLOSE(pipefd[0]);
|
/external/squashfs-tools/squashfs-tools/ |
pseudo.c | 221 int res, pipefd[2]; local 223 res = pipe(pipefd); 236 close(pipefd[0]); 238 res = dup(pipefd[1]); 246 close(pipefd[1]); 247 return pipefd[0]; 250 close(pipefd[0]); 251 close(pipefd[1]);
|
/external/wayland/tests/ |
test-runner.c | 288 int pipefd[2]; local 290 if (pipe(pipefd) == -1) { 298 close(pipefd[0]); 299 close(pipefd[1]); 306 close(pipefd[1]); /* Close unused write end */ 307 read(pipefd[0], &buf, 1); 308 close(pipefd[0]); 319 close(pipefd[0]); 330 write(pipefd[1], "-", 1); 333 write(pipefd[1], "+", 1) [all...] |