Searched refs:ipc_sockets (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_file_handle_test.c | 43 int ipc_sockets[2]; in FIXTURE_SETUP() local 50 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP() 57 close(ipc_sockets[0]); in FIXTURE_SETUP() 59 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 62 close(ipc_sockets[1]); in FIXTURE_SETUP() 68 close(ipc_sockets[1]); in FIXTURE_SETUP() 69 ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1); in FIXTURE_SETUP() 70 close(ipc_sockets[0]); in FIXTURE_SETUP() 72 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP() 79 close(ipc_sockets[0]); in FIXTURE_SETUP() [all …]
|
H A D | pidfd_setns_test.c | 139 int ipc_sockets[2]; in FIXTURE_SETUP() local 200 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP() 215 close(ipc_sockets[0]); in FIXTURE_SETUP() 242 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 245 close(ipc_sockets[1]); in FIXTURE_SETUP() 251 close(ipc_sockets[1]); in FIXTURE_SETUP() 252 ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1); in FIXTURE_SETUP() 253 close(ipc_sockets[0]); in FIXTURE_SETUP() 255 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP() 269 close(ipc_sockets[0]); in FIXTURE_SETUP() [all …]
|