Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/sched_ext/
H A Dinit_enable_count.c27 int pipe_fds[2]; in run_test() local
29 SCX_FAIL_IF(pipe(pipe_fds) < 0, "Failed to create pipe"); in run_test()
59 close(pipe_fds[1]); in run_test()
60 if (read(pipe_fds[0], &buf, 1) < 0) in run_test()
62 close(pipe_fds[0]); in run_test()
66 close(pipe_fds[0]); in run_test()
72 close(pipe_fds[1]); in run_test()
/linux/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/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/tools/testing/selftests/mm/
H A Dprotection_keys.c1050 int pipe_fds[2]; in test_kernel_gup_of_access_disabled_region() local
1052 pipe_ret = pipe(pipe_fds); in test_kernel_gup_of_access_disabled_region()
1060 vmsplice_ret = vmsplice(pipe_fds[1], &iov, 1, SPLICE_F_GIFT); in test_kernel_gup_of_access_disabled_region()
1064 close(pipe_fds[0]); in test_kernel_gup_of_access_disabled_region()
1065 close(pipe_fds[1]); in test_kernel_gup_of_access_disabled_region()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3869 int dup_fd, pipe_fds[2]; in TEST()
3872 ASSERT_GE(pipe(pipe_fds), 0); in TEST()
3874 dup_fd = dup(pipe_fds[0]); in TEST()
3876 EXPECT_NE(pipe_fds[0], dup_fd); in TEST()
3879 ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0); in TEST()
4846 int pipe_fds[2]; in TEST()
4868 ASSERT_EQ(pipe(pipe_fds), 0); in TEST()
4884 close(pipe_fds[0]); in TEST()
4903 if (write(pipe_fds[1], &c, sizeof(c)) != 1) { in TEST()
4919 close(pipe_fds[ in TEST()
3863 int dup_fd, pipe_fds[2]; TEST() local
4840 int pipe_fds[2]; TEST() local
[all...]
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c3415 int pipe_fds[2]; in test_make_file()
3434 ASSERT_EQ(0, pipe2(pipe_fds, O_CLOEXEC)); in test_make_file()
3435 ASSERT_EQ(1, write(pipe_fds[1], ".", 1)) in test_make_file()
3439 ASSERT_EQ(1, read(pipe_fds[0], &buf, 1)); in test_make_file()
3443 proc_fd = open_proc_fd(_metadata, pipe_fds[1], O_WRONLY | O_CLOEXEC); in test_make_file()
3448 pipe_fds[1], strerror(errno)); in test_make_file()
3453 proc_fd = open_proc_fd(_metadata, pipe_fds[0], O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3459 pipe_fds[1], strerror(errno)); in TEST_F_FORK()
3463 ASSERT_EQ(0, close(pipe_fds[0])); in TEST_F_FORK()
3464 ASSERT_EQ(0, close(pipe_fds[ in TEST_F_FORK()
3615 int pipe_fds[2]; TEST_F_FORK() local
[all...]