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

  /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/bt/osi/test/
eager_reader_test.cpp 75 pipe(pipefd);
84 int pipefd[2]; member in class:EagerReaderTest
118 eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "test_thread");
124 eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "test_thread");
129 write(pipefd[1], small_data, strlen(small_data));
137 eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "test_thread");
142 write(pipefd[1], large_data, strlen(large_data));
  /external/parameter-framework/test/test-platform/
main.cpp 88 int pipefd[2]; local
90 if (pipe(pipefd) == -1) {
111 close(pipefd[0]);
129 notifyParent(pipefd[1], false);
134 notifyParent(pipefd[1], true);
149 close(pipefd[1]);
154 if (not utility::fullRead(pipefd[0], &msgFromChild, sizeof(msgFromChild))) {
  /bootable/recovery/
install.cpp 76 int pipefd[2]; local
77 pipe(pipefd);
129 sprintf(temp, "%d", pipefd[1]);
137 close(pipefd[0]);
142 close(pipefd[1]);
147 FILE* from_child = fdopen(pipefd[0], "r");
  /bionic/tests/
dlext_test.cpp 419 int pipefd[2]; local
420 ASSERT_NOERROR(pipe(pipefd));
gtest_main.cpp 535 int pipefd[2]; local
536 int ret = pipe2(pipefd, O_NONBLOCK);
547 close(pipefd[0]);
550 dup2(pipefd[1], STDOUT_FILENO);
551 dup2(pipefd[1], STDERR_FILENO);
561 close(pipefd[1]);
563 child_proc.child_read_fd = 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...]
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/src/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/squashfs-tools/squashfs-tools/
pseudo.c 220 int res, pipefd[2]; local
222 res = pipe(pipefd);
235 close(pipefd[0]);
237 res = dup(pipefd[1]);
245 close(pipefd[1]);
246 return pipefd[0];
249 close(pipefd[0]);
250 close(pipefd[1]);
action.c 2527 int pipefd[2]; local
    [all...]
  /system/netd/server/
TetherController.cpp 134 int pipefd[2]; local
136 if (pipe(pipefd) < 0) {
147 close(pipefd[0]);
148 close(pipefd[1]);
153 close(pipefd[1]);
154 if (pipefd[0] != STDIN_FILENO) {
155 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) {
159 close(pipefd[0]);
190 close(pipefd[0]);
192 mDaemonFd = pipefd[1]
    [all...]
  /external/toybox/toys/pending/
tar.c 287 int pipefd[2]; local
290 if (pipe(pipefd) == -1) error_exit("pipe");
298 xclose(pipefd[1]); /* Close unused write*/
299 dup2(pipefd[0], 0);
303 xclose(pipefd[0]); /* Close unused read end */
304 dup2(pipefd[1], tar_hdl->src_fd); //write to pipe
318 int pipefd[2], status = 0; local
322 if (pipe(pipefd) == -1) error_exit("pipe");
346 xclose(pipefd[1]); // Close unused write
347 dup2(pipefd[0], 0)
502 int pipefd[2]; local
    [all...]
  /frameworks/native/libs/binder/tests/
binderLibTest.cpp 65 int pipefd[2]; local
76 ret = pipe(pipefd);
81 snprintf(strpipefd1, sizeof(strpipefd1), "%d", pipefd[1]);
87 close(pipefd[0]);
90 write(pipefd[1], &status, sizeof(status));
94 close(pipefd[1]);
95 ret = read(pipefd[0], &status, sizeof(status));
97 close(pipefd[0]);
611 int pipefd[2]; local
615 ret = pipe2(pipefd, O_NONBLOCK)
    [all...]
  /cts/tests/tests/os/jni/seccomp-tests/tests/
seccomp_bpf_tests.c 926 int pipefd[2]; local
931 ASSERT_EQ(0, pipe(pipefd));
938 close(pipefd[0]);
939 tracer(_metadata, pipefd[1], tracee, func, args);
942 close(pipefd[1]);
944 read(pipefd[0], &sync, 1);
945 close(pipefd[0]);
1781 int pipefd[2]; local
    [all...]
  /external/ppp/pppd/
main.c 801 int pipefd[2]; local
805 if (pipe(pipefd) == -1)
806 pipefd[0] = pipefd[1] = -1;
833 close(pipefd[1]);
834 complete_read(pipefd[0], numbuf, 1);
835 close(pipefd[0]);
1594 int fd, pipefd[2]; local
    [all...]
  /external/compiler-rt/lib/msan/tests/
msan_test.cc 761 int* pipefd = new int[2]; local
762 int res = pipe(pipefd);
764 EXPECT_NOT_POISONED(pipefd[0]);
765 EXPECT_NOT_POISONED(pipefd[1]);
766 close(pipefd[0]);
767 close(pipefd[1]);
771 int* pipefd = new int[2]; local
772 int res = pipe2(pipefd, O_NONBLOCK);
774 EXPECT_NOT_POISONED(pipefd[0]);
775 EXPECT_NOT_POISONED(pipefd[1])
791 int* pipefd = new int[2]; local
816 int* pipefd = new int[2]; local
842 int* pipefd = new int[2]; local
    [all...]

Completed in 729 milliseconds