HomeSort by relevance Sort by last modified time
    Searched defs:pipefd (Results 1 - 25 of 44) sorted by null

1 2

  /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/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 79 int pipefd[2]; /* fds for pipe read/write */ local
93 TEST(pipe(pipefd));
105 if (close(pipefd[0]) != 0) {
106 tst_resm(TWARN, "pipefd[0] close failed, "
112 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) {
156 if (close(pipefd[1]) != 0) {
158 "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/runtime/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 125 int pipefd[2]; local
127 if (pipe(pipefd) == -1)
142 close(pipefd[0]); /* close unused read end */
154 if (write(pipefd[1], &bytes, sizeof(bytes))
158 close(pipefd[1]); /* EOF */
180 close(pipefd[1]); /* close unused write end */
181 if (read(pipefd[0], &bytes, sizeof(bytes)) < sizeof(bytes))
184 close(pipefd[0]);
  /build/kati/
fileutil.cc 82 int pipefd[2]; local
83 if (pipe(pipefd) != 0)
88 close(pipefd[1]);
96 ssize_t r = HANDLE_EINTR(read(pipefd[0], buf, 4096));
108 close(pipefd[0]);
112 close(pipefd[0]);
114 if (dup2(pipefd[1], 2) < 0)
122 if (dup2(pipefd[1], 1) < 0)
124 close(pipefd[1]);
  /external/libchrome/sandbox/linux/seccomp-bpf-helpers/
baseline_policy_unittest.cc 75 int pipefd[2]; local
76 int sys_ret = pipe(pipefd);
78 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1]));
  /external/ltp/testcases/kernel/syscalls/sendmsg/
sendmsg02.c 62 static void client(int id, int pipefd[])
71 close(pipefd[0]);
92 write(pipefd[1], &fd, 1);
97 close(pipefd[1]);
100 static void server(int id, int pipefd[])
105 close(pipefd[1]);
115 read(pipefd[0], &fd, 1);
119 close(pipefd[0]);
124 int i, status, pipefd[2]; local
140 if (pipe(pipefd) < 0)
    [all...]
  /bionic/tests/
sys_ptrace_test.cpp 397 int pipefd[2]; local
398 if (pipe2(pipefd, O_CLOEXEC) != 0) {
402 worker_pipe_read.reset(pipefd[0]);
403 worker_pipe_write.reset(pipefd[1]);
  /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/ltp/testcases/kernel/logging/kmsg/
kmsg01.c 202 int pipefd[2]; local
205 if (pipe(pipefd) != 0)
215 close(pipefd[0]);
217 if (write(pipefd[1], "", 1) == -1)
228 close(pipefd[1]);
231 SAFE_CLOSE(cleanup, pipefd[1]);
235 TEST(timed_read(pipefd[0], timeout_sec));
237 SAFE_CLOSE(cleanup, 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]);
  /system/extras/simpleperf/
cmd_record_test.cpp 426 int pipefd[2]; local
427 ASSERT_EQ(0, pipe(pipefd));
428 int read_fd = pipefd[0];
429 int write_fd = pipefd[1];
  /system/netd/server/
TetherController.cpp 154 int pipefd[2]; local
156 if (pipe(pipefd) < 0) {
167 close(pipefd[0]);
168 close(pipefd[1]);
173 close(pipefd[1]);
174 if (pipefd[0] != STDIN_FILENO) {
175 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) {
179 close(pipefd[0]);
217 close(pipefd[0]);
219 mDaemonFd = pipefd[1]
    [all...]
  /bionic/libc/kernel/uapi/linux/
auto_dev-ioctl.h 44 __s32 pipefd; member in struct:args_setpipefd

Completed in 2204 milliseconds

1 2