Searched refs:pipe_fds (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 244 int pipe_fds[2]; in test_pidfd_send_signal_recycled_pid_fail() local 248 ret = pipe2(pipe_fds, O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail() 257 close(pipe_fds[1]); in test_pidfd_send_signal_recycled_pid_fail() 258 (void)read(pipe_fds[0], &c, 1); in test_pidfd_send_signal_recycled_pid_fail() 259 close(pipe_fds[0]); in test_pidfd_send_signal_recycled_pid_fail() 268 close(pipe_fds[0]); in test_pidfd_send_signal_recycled_pid_fail() 270 close(pipe_fds[1]); in test_pidfd_send_signal_recycled_pid_fail()
|
/Linux-v6.1/tools/testing/selftests/vm/ |
D | protection_keys.c | 1128 int pipe_fds[2]; in test_kernel_gup_of_access_disabled_region() local 1130 pipe_ret = pipe(pipe_fds); in test_kernel_gup_of_access_disabled_region() 1138 vmsplice_ret = vmsplice(pipe_fds[1], &iov, 1, SPLICE_F_GIFT); in test_kernel_gup_of_access_disabled_region() 1142 close(pipe_fds[0]); in test_kernel_gup_of_access_disabled_region() 1143 close(pipe_fds[1]); in test_kernel_gup_of_access_disabled_region()
|
/Linux-v6.1/tools/testing/selftests/landlock/ |
D | fs_test.c | 3104 int pipe_fds[2]; in TEST_F_FORK() local 3127 ASSERT_EQ(0, pipe2(pipe_fds, O_CLOEXEC)); in TEST_F_FORK() 3128 ASSERT_EQ(1, write(pipe_fds[1], ".", 1)) in TEST_F_FORK() 3132 ASSERT_EQ(1, read(pipe_fds[0], &buf, 1)); in TEST_F_FORK() 3136 proc_fd = open_proc_fd(_metadata, pipe_fds[1], O_WRONLY | O_CLOEXEC); in TEST_F_FORK() 3141 pipe_fds[1], strerror(errno)); in TEST_F_FORK() 3146 proc_fd = open_proc_fd(_metadata, pipe_fds[0], O_RDONLY | O_CLOEXEC); in TEST_F_FORK() 3152 pipe_fds[1], strerror(errno)); in TEST_F_FORK() 3156 ASSERT_EQ(0, close(pipe_fds[0])); in TEST_F_FORK() 3157 ASSERT_EQ(0, close(pipe_fds[1])); in TEST_F_FORK()
|
/Linux-v6.1/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3816 int dup_fd, pipe_fds[2]; in TEST() local 3819 ASSERT_GE(pipe(pipe_fds), 0); in TEST() 3821 dup_fd = dup(pipe_fds[0]); in TEST() 3823 EXPECT_NE(pipe_fds[0], dup_fd); in TEST() 3826 ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0); in TEST()
|