Searched refs:pipe_fds (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/exec/ |
H A D | check-exec.c | 74 int pipe_fds[2], socket_fds[2]; in FIXTURE() local 160 ASSERT_EQ(0, pipe(self->pipe_fds)); in FIXTURE_SETUP() 162 path_template, self->pipe_fds[0]); in FIXTURE_SETUP()
|
/linux/tools/testing/selftests/mm/ |
H A D | protection_keys.c | 1052 int pipe_fds[2]; in test_kernel_gup_of_access_disabled_region() local 1054 pipe_ret = pipe(pipe_fds); in test_kernel_gup_of_access_disabled_region() 1062 vmsplice_ret = vmsplice(pipe_fds[1], &iov, 1, SPLICE_F_GIFT); in test_kernel_gup_of_access_disabled_region() 1066 close(pipe_fds[0]); in test_kernel_gup_of_access_disabled_region() 1067 close(pipe_fds[1]); in test_kernel_gup_of_access_disabled_region()
|
/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 3599 int pipe_fds[2]; in TEST_F_FORK() local 3622 ASSERT_EQ(0, pipe2(pipe_fds, O_CLOEXEC)); in TEST_F_FORK() 3623 ASSERT_EQ(1, write(pipe_fds[1], ".", 1)) in TEST_F_FORK() 3627 ASSERT_EQ(1, read(pipe_fds[0], &buf, 1)); in TEST_F_FORK() 3631 proc_fd = open_proc_fd(_metadata, pipe_fds[1], O_WRONLY | O_CLOEXEC); in TEST_F_FORK() 3636 pipe_fds[1], strerror(errno)); in TEST_F_FORK() 3641 proc_fd = open_proc_fd(_metadata, pipe_fds[0], O_RDONLY | O_CLOEXEC); in TEST_F_FORK() 3647 pipe_fds[1], strerror(errno)); in TEST_F_FORK() 3651 ASSERT_EQ(0, close(pipe_fds[0])); in TEST_F_FORK() 3652 ASSERT_EQ(0, close(pipe_fds[ in TEST_F_FORK() [all...] |
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 3850 int dup_fd, pipe_fds[2]; in TEST() local 3853 ASSERT_GE(pipe(pipe_fds), 0); in TEST() 3855 dup_fd = dup(pipe_fds[0]); in TEST() 3857 EXPECT_NE(pipe_fds[0], dup_fd); in TEST() 3860 ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0); in TEST()
|