/external/ltp/testcases/kernel/containers/pidns/ |
D | pidns13.c | 54 int pipe_fd[2]; variable 91 if (close(pipe_fd[1]) == -1) { in child_fn() 96 if (fcntl(pipe_fd[0], F_SETOWN, pid) == -1) { in child_fn() 100 if (fcntl(pipe_fd[0], F_SETSIG, SIGUSR1) == -1) { in child_fn() 104 if (fcntl(pipe_fd[0], F_SETFL, in child_fn() 105 fcntl(pipe_fd[0], F_GETFL) | O_ASYNC) == -1) { in child_fn() 133 if (info.si_fd == pipe_fd[0] && info.si_code == POLL_IN) in child_fn() 141 close(pipe_fd[0]); in child_fn() 146 if (close(pipe_fd[0]) == -1) { in child_fn() 155 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 | 32 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/ |
D | process_vm_readv02.c | 39 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()
|
D | process_vm_writev02.c | 48 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()
|
D | process_vm_readv03.c | 51 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/ |
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() 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() 509 if (write_pipe(pipe_fd[1], note) < 0) { in child() 770 SAFE_PIPE(cleanup, pipe_fd); in setup() 776 if (fcntl(pipe_fd[0], F_SETFL, O_NONBLOCK) == -1) in setup()
|
/external/protobuf/gtest/src/ |
D | gtest-death-test.cc | 744 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/ |
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/v8/testing/gtest/src/ |
D | gtest-death-test.cc | 837 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/ |
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/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/mesa3d/src/gtest/src/ |
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/libvpx/libvpx/third_party/googletest/src/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/googletest/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/libchrome/base/process/ |
D | launch_posix.cc | 542 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/ |
D | gtest-death-test.cc | 828 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/ |
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/libbrillo/brillo/ |
D | process_unittest.cc | 206 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()
|
/external/protobuf/gtest/fused-src/gtest/ |
D | gtest-all.cc | 6783 int pipe_fd[2]; in AssumeRole() local 6784 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 6801 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole() 6802 set_write_fd(pipe_fd[1]); in AssumeRole() 6812 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() 6813 set_read_fd(pipe_fd[0]); in AssumeRole() 6989 int pipe_fd[2]; in AssumeRole() local 6990 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 6993 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole() 7002 file_, line_, death_test_index, pipe_fd[1]); in AssumeRole() [all …]
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/fused-src/gtest/ |
D | gtest-all.cc | 7322 int pipe_fd[2]; in AssumeRole() local 7323 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 7340 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole() 7341 set_write_fd(pipe_fd[1]); in AssumeRole() 7352 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() 7353 set_read_fd(pipe_fd[0]); in AssumeRole() 7606 int pipe_fd[2]; in AssumeRole() local 7607 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 7610 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole() 7619 + StreamableToString(pipe_fd[1]); in AssumeRole() [all …]
|
/external/fmtlib/test/ |
D | gmock-gtest-all.cc | 7322 int pipe_fd[2]; in AssumeRole() local 7323 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 7340 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); in AssumeRole() 7341 set_write_fd(pipe_fd[1]); in AssumeRole() 7352 GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); in AssumeRole() 7353 set_read_fd(pipe_fd[0]); in AssumeRole() 7606 int pipe_fd[2]; in AssumeRole() local 7607 GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); in AssumeRole() 7610 GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); in AssumeRole() 7619 + StreamableToString(pipe_fd[1]); in AssumeRole() [all …]
|
/external/autotest/client/tests/ltp/patches/ |
D | sysctl.patch | 239 int pipe_fd[2] = { EOF, EOF };
|