Searched refs:unix_fd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/net/af_unix/ |
H A D | diag_uid.c | 22 int unix_fd; in FIXTURE() local 57 self->unix_fd = socket(AF_UNIX, SOCK_STREAM, 0); in FIXTURE_SETUP() 58 ASSERT_NE(self->unix_fd, -1); in FIXTURE_SETUP() 60 ret = fstat(self->unix_fd, &file_stat); in FIXTURE_SETUP() 66 ret = getsockopt(self->unix_fd, SOL_SOCKET, SO_COOKIE, &self->cookie, &optlen); in FIXTURE_SETUP() 73 close(self->unix_fd); in FIXTURE_TEARDOWN()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_iter_setsockopt_unix.c | 72 int err, unix_fd, iter_fd; in test_bpf_iter_setsockopt_unix() local 79 unix_fd = create_unix_socket(skel); in test_bpf_iter_setsockopt_unix() 80 if (!ASSERT_NEQ(unix_fd, -1, "create_unix_server")) in test_bpf_iter_setsockopt_unix() 97 test_sndbuf(skel, unix_fd); in test_bpf_iter_setsockopt_unix()
|