Searched refs:sk_pair (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/tools/testing/selftests/pidfd/ |
D | pidfd_getfd_test.c | 136 int ret, sk_pair[2]; in FIXTURE_SETUP() local 138 ASSERT_EQ(0, socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair)) { in FIXTURE_SETUP() 141 self->sk = sk_pair[0]; in FIXTURE_SETUP() 147 close(sk_pair[0]); in FIXTURE_SETUP() 148 if (child(sk_pair[1])) in FIXTURE_SETUP() 153 close(sk_pair[1]); in FIXTURE_SETUP() 162 ret = recv(sk_pair[0], &self->remote_fd, sizeof(self->remote_fd), 0); in FIXTURE_SETUP()
|
/linux-6.1.9/samples/seccomp/ |
D | user-trap.c | 203 int sk_pair[2], ret = 1, status, listener; in main() local 206 if (socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair) < 0) { in main() 237 if (send_fd(sk_pair[1], listener) < 0) in main() 273 listener = recv_fd(sk_pair[0]); in main() 372 close(sk_pair[0]); in main() 373 close(sk_pair[1]); in main()
|
/linux-6.1.9/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3527 int status, listener, sk_pair[2]; in TEST() local 3537 ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0); in TEST() 3547 close(sk_pair[0]); in TEST() 3548 handled = sk_pair[1]; in TEST() 3563 close(sk_pair[1]); in TEST() 3575 EXPECT_EQ(read(sk_pair[0], &c, 1), 1); in TEST() 4466 int listener, status, sk_pair[2]; in TEST() local 4481 ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0); in TEST() 4497 close(sk_pair[0]); in TEST() 4498 handled = sk_pair[1]; in TEST() [all …]
|