Home
last modified time | relevance | path

Searched refs:pipe_fd (Results 1 – 25 of 29) sorted by relevance

12

/external/strace/tests-mx32/
Dppoll.c73 int pipe_fd[4]; in main() local
102 if (pipe(pipe_fd) || pipe(pipe_fd + 2)) in main()
109 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
110 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND }, in main()
111 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main()
112 { .fd = pipe_fd[3], .events = POLLOUT } in main()
137 pipe_fd[0], pipe_fd[1], POLLWRNORM_str, in main()
139 pipe_fd[2], pipe_fd[3], in main()
142 (unsigned int) sigset_size, rc, pipe_fd[1], POLLWRNORM_str, in main()
143 pipe_fd[3], (unsigned int) ts->tv_sec, in main()
[all …]
/external/strace/tests-m32/
Dppoll.c73 int pipe_fd[4]; in main() local
102 if (pipe(pipe_fd) || pipe(pipe_fd + 2)) in main()
109 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
110 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND }, in main()
111 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main()
112 { .fd = pipe_fd[3], .events = POLLOUT } in main()
137 pipe_fd[0], pipe_fd[1], POLLWRNORM_str, in main()
139 pipe_fd[2], pipe_fd[3], in main()
142 (unsigned int) sigset_size, rc, pipe_fd[1], POLLWRNORM_str, in main()
143 pipe_fd[3], (unsigned int) ts->tv_sec, in main()
[all …]
/external/strace/tests/
Dppoll.c73 int pipe_fd[4]; in main() local
102 if (pipe(pipe_fd) || pipe(pipe_fd + 2)) in main()
109 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
110 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND }, in main()
111 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main()
112 { .fd = pipe_fd[3], .events = POLLOUT } in main()
137 pipe_fd[0], pipe_fd[1], POLLWRNORM_str, in main()
139 pipe_fd[2], pipe_fd[3], in main()
142 (unsigned int) sigset_size, rc, pipe_fd[1], POLLWRNORM_str, in main()
143 pipe_fd[3], (unsigned int) ts->tv_sec, in main()
[all …]
/external/ltp/testcases/kernel/containers/pidns/
Dpidns13.c53 int pipe_fd[2]; variable
90 if (close(pipe_fd[1]) == -1) { in child_fn()
95 if (fcntl(pipe_fd[0], F_SETOWN, pid) == -1) { in child_fn()
99 if (fcntl(pipe_fd[0], F_SETSIG, SIGUSR1) == -1) { in child_fn()
103 if (fcntl(pipe_fd[0], F_SETFL, in child_fn()
104 fcntl(pipe_fd[0], F_GETFL) | O_ASYNC) == -1) { in child_fn()
132 if (info.si_fd == pipe_fd[0] && info.si_code == POLL_IN) in child_fn()
140 close(pipe_fd[0]); in child_fn()
145 if (close(pipe_fd[0]) == -1) { in child_fn()
154 if (write(pipe_fd[1], "test\n", 5) == -1) { in child_fn()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D23-1.c32 int pipe_fd[2]; in main() local
35 if (pipe(pipe_fd) == -1) { in main()
40 pa = mmap(NULL, 1024, PROT_READ, MAP_SHARED, pipe_fd[0], 0); in main()
44 close(pipe_fd[0]); in main()
45 close(pipe_fd[1]); in main()
56 close(pipe_fd[0]); in main()
57 close(pipe_fd[1]); in main()
/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_readv02.c39 static int pipe_fd[2]; variable
59 if (pipe(pipe_fd) < 0) in main()
112 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_alloc()
114 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf)); in child_alloc()
115 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_alloc()
128 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_invoke()
129 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ); in child_invoke()
130 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_invoke()
Dprocess_vm_writev02.c48 static int pipe_fd[2]; variable
68 if (pipe(pipe_fd) < 0) in main()
125 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_init_and_verify()
127 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf)); in child_init_and_verify()
128 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_init_and_verify()
158 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_write()
159 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, bufsz); in child_write()
160 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_write()
Dprocess_vm_readv03.c51 static int pipe_fd[2]; variable
74 if (pipe(pipe_fd) < 0) in main()
156 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_alloc()
158 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf)); in child_alloc()
159 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_alloc()
173 SAFE_CLOSE(tst_exit, pipe_fd[1]); in fetch_remote_addrs()
174 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ); in fetch_remote_addrs()
175 SAFE_CLOSE(tst_exit, pipe_fd[0]); in fetch_remote_addrs()
/external/ltp/testcases/kernel/syscalls/fstatfs/
Dfstatfs01.c57 static int pipe_fd; variable
64 {&pipe_fd, "fstatfs() on a pipe"},
110 pipe_fd = pipe[0]; in setup()
119 if (pipe_fd > 0 && close(pipe_fd)) in cleanup()
/external/ltp/testcases/kernel/syscalls/sigrelse/
Dsigrelse01.c165 static int pipe_fd[2]; /* file descriptors for pipe parent read */ variable
196 maybe_run_child(&child, "dd", &pipe_fd[1], &pipe_fd2[0]); in main()
219 if (self_exec(argv[0], "dd", pipe_fd[1], pipe_fd2[0]) < in main()
252 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent()
310 if ((array = (int *)read_pipe(pipe_fd[0])) == NULL) { in parent()
346 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent()
427 if (write_pipe(pipe_fd[1], note) < 0) { in child()
511 if (write_pipe(pipe_fd[1], note) < 0) { in child()
772 SAFE_PIPE(cleanup, pipe_fd); in setup()
778 if (fcntl(pipe_fd[0], F_SETFL, O_NONBLOCK) == -1) in setup()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev01.c35 static int pipe_fd[2]; variable
104 .pfd = &(pipe_fd[1]),
122 SAFE_PIPE(pipe_fd); in setup()
123 SAFE_CLOSE(pipe_fd[0]); in setup()
/external/protobuf/gtest/src/
Dgtest-death-test.cc744 int pipe_fd[2]; in AssumeRole() local
745 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
762 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
763 set_write_fd(pipe_fd[1]); in AssumeRole()
773 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
774 set_read_fd(pipe_fd[0]); in AssumeRole()
950 int pipe_fd[2]; in AssumeRole() local
951 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
954 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
963 file_, line_, death_test_index, pipe_fd[1]); in AssumeRole()
[all …]
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_file_test.c92 int pipe_fd[2] = { EOF, EOF }; in stage_file_test() local
96 if (pipe(pipe_fd) == -1) in stage_file_test()
100 if (write(pipe_fd[1], &errno, sizeof(errno)) == -1) in stage_file_test()
104 close(pipe_fd[1]); in stage_file_test()
105 (void)read(pipe_fd[0], &error, sizeof(error)); in stage_file_test()
Dtomoyo_new_file_test.c94 int pipe_fd[2] = { EOF, EOF }; in stage_file_test() local
156 if (pipe(pipe_fd) == -1) in stage_file_test()
160 if (write(pipe_fd[1], &errno, sizeof(errno)) == -1) in stage_file_test()
164 close(pipe_fd[1]); in stage_file_test()
165 (void)read(pipe_fd[0], &error, sizeof(error)); in stage_file_test()
166 close(pipe_fd[0]); in stage_file_test()
173 if (pipe(pipe_fd) == -1) in stage_file_test()
177 if (write(pipe_fd[1], &errno, sizeof(errno)) == -1) in stage_file_test()
181 close(pipe_fd[1]); in stage_file_test()
182 (void)read(pipe_fd[0], &error, sizeof(error)); in stage_file_test()
[all …]
Dtomoyo_new_test.c102 int pipe_fd[2] = { EOF, EOF }; in test_execute_bin_true() local
103 if (pipe(pipe_fd) == -1) in test_execute_bin_true()
109 if (write(pipe_fd[1], &error, sizeof(error)) == -1) in test_execute_bin_true()
117 close(pipe_fd[1]); in test_execute_bin_true()
118 (void)read(pipe_fd[0], &error, sizeof(error)); in test_execute_bin_true()
119 close(pipe_fd[0]); in test_execute_bin_true()
/external/llvm/utils/unittest/googletest/src/
Dgtest-death-test.cc794 int pipe_fd[2]; in AssumeRole() local
795 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
812 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
813 set_write_fd(pipe_fd[1]); in AssumeRole()
823 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
824 set_read_fd(pipe_fd[0]); in AssumeRole()
1006 int pipe_fd[2]; in AssumeRole() local
1007 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1010 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1019 file_, line_, death_test_index, pipe_fd[1]); in AssumeRole()
[all …]
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-death-test.cc839 int pipe_fd[2]; in AssumeRole() local
840 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
857 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
858 set_write_fd(pipe_fd[1]); in AssumeRole()
869 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
870 set_read_fd(pipe_fd[0]); in AssumeRole()
1130 int pipe_fd[2]; in AssumeRole() local
1131 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1134 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1143 + StreamableToString(pipe_fd[1]); in AssumeRole()
[all …]
/external/googletest/googletest/src/
Dgtest-death-test.cc839 int pipe_fd[2]; in AssumeRole() local
840 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
857 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
858 set_write_fd(pipe_fd[1]); in AssumeRole()
869 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
870 set_read_fd(pipe_fd[0]); in AssumeRole()
1129 int pipe_fd[2]; in AssumeRole() local
1130 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1133 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1142 + StreamableToString(pipe_fd[1]); in AssumeRole()
[all …]
/external/v8/testing/gtest/src/
Dgtest-death-test.cc837 int pipe_fd[2]; in AssumeRole() local
838 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
855 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
856 set_write_fd(pipe_fd[1]); in AssumeRole()
867 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
868 set_read_fd(pipe_fd[0]); in AssumeRole()
1128 int pipe_fd[2]; in AssumeRole() local
1129 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1132 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1141 + StreamableToString(pipe_fd[1]); in AssumeRole()
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
Dgtest-death-test.cc792 int pipe_fd[2]; in AssumeRole() local
793 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
810 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
811 set_write_fd(pipe_fd[1]); in AssumeRole()
821 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
822 set_read_fd(pipe_fd[0]); in AssumeRole()
1003 int pipe_fd[2]; in AssumeRole() local
1004 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1007 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1016 file_, line_, death_test_index, pipe_fd[1]); in AssumeRole()
[all …]
/external/libchrome/base/process/
Dlaunch_posix.cc542 int pipe_fd[2]; in GetAppOutputInternal() local
554 if (pipe(pipe_fd) < 0) in GetAppOutputInternal()
559 close(pipe_fd[0]); in GetAppOutputInternal()
560 close(pipe_fd[1]); in GetAppOutputInternal()
580 fd_shuffle1.push_back(InjectionArc(pipe_fd[1], STDOUT_FILENO, true)); in GetAppOutputInternal()
582 include_stderr ? pipe_fd[1] : dev_null, in GetAppOutputInternal()
610 close(pipe_fd[1]); in GetAppOutputInternal()
617 HANDLE_EINTR(read(pipe_fd[0], buffer, sizeof(buffer))); in GetAppOutputInternal()
622 close(pipe_fd[0]); in GetAppOutputInternal()
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest-death-test.cc828 int pipe_fd[2]; in AssumeRole() local
829 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
846 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
847 set_write_fd(pipe_fd[1]); in AssumeRole()
858 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
859 set_read_fd(pipe_fd[0]); in AssumeRole()
1112 int pipe_fd[2]; in AssumeRole() local
1113 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1116 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1125 + StreamableToString(pipe_fd[1]); in AssumeRole()
[all …]
/external/mesa3d/src/gtest/src/
Dgtest-death-test.cc828 int pipe_fd[2]; in AssumeRole() local
829 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
846 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
847 set_write_fd(pipe_fd[1]); in AssumeRole()
858 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
859 set_read_fd(pipe_fd[0]); in AssumeRole()
1112 int pipe_fd[2]; in AssumeRole() local
1113 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1116 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1125 + StreamableToString(pipe_fd[1]); in AssumeRole()
[all …]
/external/google-breakpad/src/testing/gtest/src/
Dgtest-death-test.cc830 int pipe_fd[2]; in AssumeRole() local
831 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
848 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole()
849 set_write_fd(pipe_fd[1]); in AssumeRole()
860 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole()
861 set_read_fd(pipe_fd[0]); in AssumeRole()
1106 int pipe_fd[2]; in AssumeRole() local
1107 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole()
1110 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole()
1119 file_, line_, death_test_index, pipe_fd[1]); in AssumeRole()
[all …]
/external/libbrillo/brillo/
Dprocess_unittest.cc206 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F() local
207 EXPECT_GE(pipe_fd, 0); in TEST_F()
210 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
234 int pipe_fd = process_.GetPipe(STDOUT_FILENO); in TEST_F() local
235 EXPECT_GE(pipe_fd, 0); in TEST_F()
238 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()

12