HomeSort by relevance Sort by last modified time
    Searched refs:pipe_fd (Results 1 - 25 of 30) sorted by null

1 2

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
23-1.c 32 int pipe_fd[2]; local
35 if (pipe(pipe_fd) == -1) {
40 pa = mmap(NULL, 1024, PROT_READ, MAP_SHARED, pipe_fd[0], 0);
44 close(pipe_fd[0]);
45 close(pipe_fd[1]);
56 close(pipe_fd[0]);
57 close(pipe_fd[1]);
  /external/ltp/testcases/kernel/containers/pidns/
pidns13.c 53 int pipe_fd[2]; variable
90 if (close(pipe_fd[1]) == -1) {
91 tst_resm(TBROK, "cinit1: close(pipe_fd[1]) failed");
95 if (fcntl(pipe_fd[0], F_SETOWN, pid) == -1) {
99 if (fcntl(pipe_fd[0], F_SETSIG, SIGUSR1) == -1) {
103 if (fcntl(pipe_fd[0], F_SETFL,
104 fcntl(pipe_fd[0], F_GETFL) | O_ASYNC) == -1) {
132 if (info.si_fd == pipe_fd[0] && info.si_code == POLL_IN)
140 close(pipe_fd[0]);
145 if (close(pipe_fd[0]) == -1)
    [all...]
  /external/strace/tests/
ppoll.c 73 int pipe_fd[4]; local
102 if (pipe(pipe_fd) || pipe(pipe_fd + 2))
109 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND },
110 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND },
111 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI },
112 { .fd = pipe_fd[3], .events = POLLOUT }
137 pipe_fd[0], pipe_fd[1], POLLWRNORM_str,
139 pipe_fd[2], pipe_fd[3]
    [all...]
  /external/strace/tests-m32/
ppoll.c 73 int pipe_fd[4]; local
102 if (pipe(pipe_fd) || pipe(pipe_fd + 2))
109 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND },
110 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND },
111 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI },
112 { .fd = pipe_fd[3], .events = POLLOUT }
137 pipe_fd[0], pipe_fd[1], POLLWRNORM_str,
139 pipe_fd[2], pipe_fd[3]
    [all...]
  /external/strace/tests-mx32/
ppoll.c 73 int pipe_fd[4]; local
102 if (pipe(pipe_fd) || pipe(pipe_fd + 2))
109 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND },
110 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND },
111 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI },
112 { .fd = pipe_fd[3], .events = POLLOUT }
137 pipe_fd[0], pipe_fd[1], POLLWRNORM_str,
139 pipe_fd[2], pipe_fd[3]
    [all...]
  /external/ltp/testcases/kernel/syscalls/fstatfs/
fstatfs01.c 57 static int pipe_fd; variable
64 {&pipe_fd, "fstatfs() on a pipe"},
110 pipe_fd = pipe[0];
119 if (pipe_fd > 0 && close(pipe_fd))
120 tst_resm(TWARN | TERRNO, "close(pipe_fd) failed");
  /external/ltp/testcases/kernel/syscalls/cma/
process_vm_readv02.c 39 static int pipe_fd[2]; variable
59 if (pipe(pipe_fd) < 0)
112 SAFE_CLOSE(tst_exit, pipe_fd[0]);
114 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf));
115 SAFE_CLOSE(tst_exit, pipe_fd[1]);
128 SAFE_CLOSE(tst_exit, pipe_fd[1]);
129 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ);
130 SAFE_CLOSE(tst_exit, pipe_fd[0]);
process_vm_writev02.c 48 static int pipe_fd[2]; variable
68 if (pipe(pipe_fd) < 0)
125 SAFE_CLOSE(tst_exit, pipe_fd[0]);
127 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf));
128 SAFE_CLOSE(tst_exit, pipe_fd[1]);
158 SAFE_CLOSE(tst_exit, pipe_fd[1]);
159 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, bufsz);
160 SAFE_CLOSE(tst_exit, pipe_fd[0]);
process_vm_readv03.c 51 static int pipe_fd[2]; variable
74 if (pipe(pipe_fd) < 0)
156 SAFE_CLOSE(tst_exit, pipe_fd[0]);
158 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf));
159 SAFE_CLOSE(tst_exit, pipe_fd[1]);
173 SAFE_CLOSE(tst_exit, pipe_fd[1]);
174 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ);
175 SAFE_CLOSE(tst_exit, pipe_fd[0]);
  /external/ltp/testcases/kernel/syscalls/writev/
writev01.c 35 static int pipe_fd[2]; variable
104 .pfd = &(pipe_fd[1]),
122 SAFE_PIPE(pipe_fd);
123 SAFE_CLOSE(pipe_fd[0]);
  /external/ltp/testcases/kernel/syscalls/sigrelse/
sigrelse01.c 165 static int pipe_fd[2]; /* file descriptors for pipe parent read */ variable
196 maybe_run_child(&child, "dd", &pipe_fd[1], &pipe_fd2[0]);
219 if (self_exec(argv[0], "dd", pipe_fd[1], pipe_fd2[0]) <
252 if ((str = read_pipe(pipe_fd[0])) == NULL) {
310 if ((array = (int *)read_pipe(pipe_fd[0])) == NULL) {
346 if ((str = read_pipe(pipe_fd[0])) == NULL) {
427 if (write_pipe(pipe_fd[1], note) < 0) {
511 if (write_pipe(pipe_fd[1], note) < 0) {
772 SAFE_PIPE(cleanup, pipe_fd);
778 if (fcntl(pipe_fd[0], F_SETFL, O_NONBLOCK) == -1
    [all...]
  /external/ltp/testcases/kernel/security/tomoyo/
tomoyo_file_test.c 92 int pipe_fd[2] = { EOF, EOF }; local
96 if (pipe(pipe_fd) == -1)
100 if (write(pipe_fd[1], &errno, sizeof(errno)) == -1)
104 close(pipe_fd[1]);
105 (void)read(pipe_fd[0], &error, sizeof(error));
tomoyo_new_file_test.c 94 int pipe_fd[2] = { EOF, EOF }; local
156 if (pipe(pipe_fd) == -1)
160 if (write(pipe_fd[1], &errno, sizeof(errno)) == -1)
164 close(pipe_fd[1]);
165 (void)read(pipe_fd[0], &error, sizeof(error));
166 close(pipe_fd[0]);
173 if (pipe(pipe_fd) == -1)
177 if (write(pipe_fd[1], &errno, sizeof(errno)) == -1)
181 close(pipe_fd[1]);
182 (void)read(pipe_fd[0], &error, sizeof(error))
    [all...]
tomoyo_new_test.c 102 int pipe_fd[2] = { EOF, EOF }; local
103 if (pipe(pipe_fd) == -1)
109 if (write(pipe_fd[1], &error, sizeof(error)) == -1)
117 close(pipe_fd[1]);
118 (void)read(pipe_fd[0], &error, sizeof(error));
119 close(pipe_fd[0]);
  /external/libchrome/base/process/
launch_posix.cc 542 int pipe_fd[2]; local
554 if (pipe(pipe_fd) < 0)
559 close(pipe_fd[0]);
560 close(pipe_fd[1]);
580 fd_shuffle1.push_back(InjectionArc(pipe_fd[1], STDOUT_FILENO, true));
582 include_stderr ? pipe_fd[1] : dev_null,
610 close(pipe_fd[1]);
617 HANDLE_EINTR(read(pipe_fd[0], buffer, sizeof(buffer)));
622 close(pipe_fd[0]);
  /external/libbrillo/brillo/
process_unittest.cc 206 int pipe_fd = process_.GetPipe(STDERR_FILENO); local
207 EXPECT_GE(pipe_fd, 0);
210 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents));
234 int pipe_fd = process_.GetPipe(STDOUT_FILENO); local
235 EXPECT_GE(pipe_fd, 0);
238 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents));
  /external/google-breakpad/src/testing/gtest/src/
gtest-death-test.cc 830 int pipe_fd[2]; local
831 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
848 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
849 set_write_fd(pipe_fd[1]);
860 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
861 set_read_fd(pipe_fd[0]);
1106 int pipe_fd[2]; local
    [all...]
  /external/googletest/googletest/src/
gtest-death-test.cc 839 int pipe_fd[2]; local
840 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
857 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
858 set_write_fd(pipe_fd[1]);
1129 int pipe_fd[2]; local
    [all...]
  /external/libvpx/libvpx/third_party/googletest/src/src/
gtest-death-test.cc 839 int pipe_fd[2]; local
840 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
857 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
858 set_write_fd(pipe_fd[1]);
1130 int pipe_fd[2]; local
    [all...]
  /external/llvm/utils/unittest/googletest/src/
gtest-death-test.cc 794 int pipe_fd[2]; local
795 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
812 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
813 set_write_fd(pipe_fd[1]);
823 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
824 set_read_fd(pipe_fd[0]);
1006 int pipe_fd[2]; local
    [all...]
  /external/mesa3d/src/gtest/src/
gtest-death-test.cc 828 int pipe_fd[2]; local
829 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
846 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
847 set_write_fd(pipe_fd[1]);
858 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
859 set_read_fd(pipe_fd[0]);
1112 int pipe_fd[2]; local
    [all...]
  /external/protobuf/gtest/src/
gtest-death-test.cc 744 int pipe_fd[2]; local
745 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
762 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
763 set_write_fd(pipe_fd[1]);
773 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
774 set_read_fd(pipe_fd[0]);
950 int pipe_fd[2]; local
    [all...]
  /external/swiftshader/third_party/LLVM/utils/unittest/googletest/
gtest-death-test.cc 792 int pipe_fd[2]; local
793 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
810 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
811 set_write_fd(pipe_fd[1]);
821 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
822 set_read_fd(pipe_fd[0]);
1003 int pipe_fd[2]; local
    [all...]
  /external/v8/testing/gtest/src/
gtest-death-test.cc 837 int pipe_fd[2]; local
838 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
855 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
856 set_write_fd(pipe_fd[1]);
1128 int pipe_fd[2]; local
    [all...]
  /external/vulkan-validation-layers/tests/gtest-1.7.0/src/
gtest-death-test.cc 828 int pipe_fd[2]; local
829 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);
846 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
847 set_write_fd(pipe_fd[1]);
858 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
859 set_read_fd(pipe_fd[0]);
1112 int pipe_fd[2]; local
    [all...]

Completed in 2369 milliseconds

1 2