/external/strace/tests-mx32/ |
D | ppoll.c | 77 int pipe_fd[4]; in main() local 114 if (pipe(pipe_fd) || pipe(pipe_fd + 2)) in main() 121 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main() 122 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND }, in main() 123 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main() 124 { .fd = pipe_fd[3], .events = POLLOUT } in main() 150 pipe_fd[0], pipe_fd[1], POLLWRNORM_str, in main() 152 pipe_fd[2], pipe_fd[3], in main() 155 (unsigned int) sigset_size, rc, pipe_fd[1], POLLWRNORM_str, in main() 156 pipe_fd[3], (unsigned int) ts->tv_sec, in main() [all …]
|
/external/strace/tests/ |
D | ppoll.c | 77 int pipe_fd[4]; in main() local 114 if (pipe(pipe_fd) || pipe(pipe_fd + 2)) in main() 121 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main() 122 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND }, in main() 123 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main() 124 { .fd = pipe_fd[3], .events = POLLOUT } in main() 150 pipe_fd[0], pipe_fd[1], POLLWRNORM_str, in main() 152 pipe_fd[2], pipe_fd[3], in main() 155 (unsigned int) sigset_size, rc, pipe_fd[1], POLLWRNORM_str, in main() 156 pipe_fd[3], (unsigned int) ts->tv_sec, in main() [all …]
|
/external/strace/tests-m32/ |
D | ppoll.c | 77 int pipe_fd[4]; in main() local 114 if (pipe(pipe_fd) || pipe(pipe_fd + 2)) in main() 121 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main() 122 { .fd = pipe_fd[1], .events = POLLOUT | POLLWRNORM | POLLWRBAND }, in main() 123 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main() 124 { .fd = pipe_fd[3], .events = POLLOUT } in main() 150 pipe_fd[0], pipe_fd[1], POLLWRNORM_str, in main() 152 pipe_fd[2], pipe_fd[3], in main() 155 (unsigned int) sigset_size, rc, pipe_fd[1], POLLWRNORM_str, in main() 156 pipe_fd[3], (unsigned int) ts->tv_sec, in main() [all …]
|
/external/ltp/testcases/kernel/containers/pidns/ |
D | pidns13.c | 53 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/ |
D | 23-1.c | 31 int pipe_fd[2]; in main() local 34 if (pipe(pipe_fd) == -1) { in main() 39 pa = mmap(NULL, 1024, PROT_READ, MAP_SHARED, pipe_fd[0], 0); in main() 43 close(pipe_fd[0]); in main() 44 close(pipe_fd[1]); in main() 55 close(pipe_fd[0]); in main() 56 close(pipe_fd[1]); in main()
|
/external/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm_readv02.c | 39 static int pipe_fd[2]; variable 58 SAFE_PIPE(cleanup, pipe_fd); in main() 108 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_alloc() 110 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf) + 1); in child_alloc() 111 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_alloc() 124 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_invoke() 125 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ); in child_invoke() 126 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_invoke()
|
D | process_vm_writev02.c | 49 static int pipe_fd[2]; variable 68 SAFE_PIPE(cleanup, pipe_fd); in main() 122 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_init_and_verify() 124 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf) + 1); in child_init_and_verify() 125 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_init_and_verify() 155 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_write() 156 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, bufsz); in child_write() 157 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_write()
|
D | process_vm_readv03.c | 52 static int pipe_fd[2]; variable 74 SAFE_PIPE(cleanup, pipe_fd); in main() 153 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_alloc() 155 SAFE_WRITE(tst_exit, 1, pipe_fd[1], buf, strlen(buf) + 1); in child_alloc() 156 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_alloc() 170 SAFE_CLOSE(tst_exit, pipe_fd[1]); in fetch_remote_addrs() 171 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ); in fetch_remote_addrs() 172 SAFE_CLOSE(tst_exit, pipe_fd[0]); in fetch_remote_addrs()
|
/external/ltp/testcases/kernel/syscalls/fstatfs/ |
D | fstatfs01.c | 57 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/ |
D | 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]); 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() 309 if ((array = (int *)read_pipe(pipe_fd[0])) == NULL) { in parent() 345 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent() 426 if (write_pipe(pipe_fd[1], note) < 0) { in child() 510 if (write_pipe(pipe_fd[1], note) < 0) { in child() 771 SAFE_PIPE(cleanup, pipe_fd); in setup() 777 if (fcntl(pipe_fd[0], F_SETFL, O_NONBLOCK) == -1) in setup()
|
/external/ltp/testcases/kernel/syscalls/writev/ |
D | writev01.c | 35 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/libbrillo/brillo/ |
D | process_unittest.cc | 216 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F() local 217 EXPECT_GE(pipe_fd, 0); in TEST_F() 221 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F() 235 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F() local 236 EXPECT_GE(pipe_fd, 0); in TEST_F() 240 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F() 253 int pipe_fd = process_.GetPipe(STDOUT_FILENO); in TEST_F() local 254 EXPECT_GE(pipe_fd, 0); in TEST_F() 258 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
|
/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_new_file_test.c | 94 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 …]
|
D | tomoyo_file_test.c | 92 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()
|
D | tomoyo_new_test.c | 102 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/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/ |
D | gtest-death-test.cc | 839 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/libaom/libaom/third_party/googletest/src/googletest/src/ |
D | gtest-death-test.cc | 839 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/mesa3d/src/gtest/src/ |
D | gtest-death-test.cc | 839 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/llvm/utils/unittest/googletest/src/ |
D | gtest-death-test.cc | 794 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/swiftshader/third_party/LLVM/utils/unittest/googletest/ |
D | gtest-death-test.cc | 792 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/ |
D | launch_posix.cc | 569 int pipe_fd[2]; in GetAppOutputInternal() local 570 if (pipe(pipe_fd) < 0) in GetAppOutputInternal() 577 close(pipe_fd[0]); in GetAppOutputInternal() 578 close(pipe_fd[1]); in GetAppOutputInternal() 600 fd_shuffle1.push_back(InjectionArc(pipe_fd[1], STDOUT_FILENO, true)); in GetAppOutputInternal() 601 fd_shuffle1.push_back(InjectionArc(include_stderr ? pipe_fd[1] : dev_null, in GetAppOutputInternal() 631 close(pipe_fd[1]); in GetAppOutputInternal() 638 HANDLE_EINTR(read(pipe_fd[0], buffer, sizeof(buffer))); in GetAppOutputInternal() 643 close(pipe_fd[0]); in GetAppOutputInternal()
|
/external/google-breakpad/src/testing/gtest/src/ |
D | gtest-death-test.cc | 830 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/libvpx/libvpx/third_party/googletest/src/src/ |
D | gtest-death-test.cc | 1053 int pipe_fd[2]; in AssumeRole() local 1054 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 1071 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole() 1072 set_write_fd(pipe_fd[1]); in AssumeRole() 1083 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() 1084 set_read_fd(pipe_fd[0]); in AssumeRole() 1346 int pipe_fd[2]; in AssumeRole() local 1347 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 1350 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole() 1359 + StreamableToString(pipe_fd[1]); in AssumeRole() [all …]
|
/external/googletest/googletest/src/ |
D | gtest-death-test.cc | 1111 int pipe_fd[2]; in AssumeRole() local 1112 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 1129 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole() 1130 set_write_fd(pipe_fd[1]); in AssumeRole() 1141 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() 1142 set_read_fd(pipe_fd[0]); in AssumeRole() 1406 int pipe_fd[2]; in AssumeRole() local 1407 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 1410 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole() 1419 + StreamableToString(pipe_fd[1]); in AssumeRole() [all …]
|
/external/perf_data_converter/src/quipper/ |
D | perf_parser_test.cc | 726 int pipe_fd[2]; in Start() local 728 CHECK_EQ(pipe(pipe_fd), 0) << "pipe: " << strerror(errno); in Start() 733 close(pipe_fd[0]); in Start() 739 CHECK_EQ(write(pipe_fd[1], &nonce, sizeof(nonce)), in Start() 741 close(pipe_fd[1]); in Start() 745 close(pipe_fd[1]); in Start() 748 ssize_t sz = read(pipe_fd[0], &nonce, sizeof(nonce)); in Start() 751 close(pipe_fd[0]); in Start()
|