Home
last modified time | relevance | path

Searched refs:pipe_fds (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/tools/testing/selftests/pidfd/
H A Dpidfd_test.c297 int pipe_fds[2]; in test_pidfd_send_signal_recycled_pid_fail() local
301 ret = pipe2(pipe_fds, O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
310 close(pipe_fds[1]); in test_pidfd_send_signal_recycled_pid_fail()
311 (void)read(pipe_fds[0], &c, 1); in test_pidfd_send_signal_recycled_pid_fail()
312 close(pipe_fds[0]); in test_pidfd_send_signal_recycled_pid_fail()
321 close(pipe_fds[0]); in test_pidfd_send_signal_recycled_pid_fail()
323 close(pipe_fds[1]); in test_pidfd_send_signal_recycled_pid_fail()
/linux-6.15/arch/um/os-Linux/skas/
H A Dprocess.c191 int pipe_fds[2]; in userspace_tramp() local
221 if (pipe(pipe_fds)) in userspace_tramp()
224 if (dup2(pipe_fds[0], 0) < 0) in userspace_tramp()
226 close(pipe_fds[0]); in userspace_tramp()
229 ret = write(pipe_fds[1], &init_data, sizeof(init_data)); in userspace_tramp()
230 close(pipe_fds[1]); in userspace_tramp()
/linux-6.15/tools/testing/selftests/exec/
H A Dcheck-exec.c74 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-6.15/tools/testing/selftests/mm/
H A Dprotection_keys.c1052 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-6.15/tools/testing/selftests/landlock/
H A Dfs_test.c3559 int pipe_fds[2]; in TEST_F_FORK() local
3582 ASSERT_EQ(0, pipe2(pipe_fds, O_CLOEXEC)); in TEST_F_FORK()
3583 ASSERT_EQ(1, write(pipe_fds[1], ".", 1)) in TEST_F_FORK()
3587 ASSERT_EQ(1, read(pipe_fds[0], &buf, 1)); in TEST_F_FORK()
3591 proc_fd = open_proc_fd(_metadata, pipe_fds[1], O_WRONLY | O_CLOEXEC); in TEST_F_FORK()
3596 pipe_fds[1], strerror(errno)); in TEST_F_FORK()
3601 proc_fd = open_proc_fd(_metadata, pipe_fds[0], O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3607 pipe_fds[1], strerror(errno)); in TEST_F_FORK()
3611 ASSERT_EQ(0, close(pipe_fds[0])); in TEST_F_FORK()
3612 ASSERT_EQ(0, close(pipe_fds[1])); in TEST_F_FORK()
/linux-6.15/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3853 int dup_fd, pipe_fds[2]; in TEST() local
3856 ASSERT_GE(pipe(pipe_fds), 0); in TEST()
3858 dup_fd = dup(pipe_fds[0]); in TEST()
3860 EXPECT_NE(pipe_fds[0], dup_fd); in TEST()
3863 ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0); in TEST()