/linux/tools/testing/selftests/landlock/ |
H A D | scoped_abstract_unix_test.c | 107 stream_client = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F() 109 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 142 stream_server = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F() 144 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 207 stream_server = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F() 209 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 238 stream_client = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F() 240 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 356 stream_client = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F() 358 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() [all …]
|
H A D | net_test.c | 70 case AF_UNIX: in set_service() 131 case AF_UNIX: in get_addrlen() 200 case AF_UNIX: in bind_variant_addrlen() 236 case AF_UNIX: in connect_variant_addrlen() 337 .domain = AF_UNIX, in FIXTURE_VARIANT_ADD() 347 .domain = AF_UNIX, in FIXTURE_VARIANT_ADD() 397 .domain = AF_UNIX, in FIXTURE_VARIANT_ADD() 407 .domain = AF_UNIX, in FIXTURE_VARIANT_ADD() 459 if (srv->protocol.domain == AF_UNIX) { in test_bind_and_connect() 772 if (self->srv0.protocol.domain == AF_UNIX && in TEST_F() [all …]
|
H A D | scoped_signal_test.c | 406 client_socket = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F() 445 server_socket = socket(AF_UNIX, SOCK_STREAM, 0); in TEST_F()
|
/linux/tools/testing/selftests/filesystems/epoll/ |
H A D | epoll_wakeup_test.c | 169 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 200 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 231 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 232 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() 269 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 270 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() 308 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 347 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 387 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 388 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sock_addr.c | 1015 AF_UNIX, 1031 AF_UNIX, 1047 AF_UNIX, 1193 AF_UNIX, 1209 AF_UNIX, 1403 AF_UNIX, 1419 AF_UNIX, 1435 AF_UNIX, 1533 AF_UNIX, 1549 AF_UNIX, [all …]
|
H A D | skc_to_unix_sock.c | 31 sockfd = socket(AF_UNIX, SOCK_STREAM, 0); in test_skc_to_unix_sock() 36 sockaddr.sun_family = AF_UNIX; in test_skc_to_unix_sock()
|
H A D | bpf_iter_setsockopt_unix.c | 13 .sun_family = AF_UNIX, in create_unix_socket() 19 fd = socket(AF_UNIX, SOCK_STREAM, 0); in create_unix_socket()
|
H A D | sockmap_basic.c | 661 stream = xsocket(AF_UNIX, SOCK_STREAM, 0); in test_sockmap_unconnected_unix() 665 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_unconnected_unix() 693 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_many_socket() 714 err = socketpair(AF_UNIX, SOCK_STREAM, 0, stream); in test_sockmap_many_socket() 762 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_many_maps() 783 err = socketpair(AF_UNIX, SOCK_STREAM, 0, stream); in test_sockmap_many_maps() 833 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_same_sock() 854 err = socketpair(AF_UNIX, SOCK_STREAM, 0, stream); in test_sockmap_same_sock()
|
H A D | sockmap_listen.c | 1239 case AF_UNIX: in family_str() 1438 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected() 1442 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected() 1482 family_name = family_str(AF_UNIX); in test_unix_redir() 1509 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, sfd)) in vsock_unix_redir_connectible() 1709 if (socketpair(AF_UNIX, type | SOCK_NONBLOCK, 0, sfd)) in inet_unix_redir_to_connected() 1765 if (socketpair(AF_UNIX, type | SOCK_NONBLOCK, 0, sfd)) in unix_inet_redir_to_connected()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | lsm_cgroup.c | 18 #ifndef AF_UNIX 19 #define AF_UNIX 1 macro 155 if (family == AF_UNIX) in BPF_PROG()
|
/linux/tools/testing/selftests/net/af_unix/ |
H A D | scm_rights.c | 127 .sun_family = AF_UNIX, in create_listeners() 133 self->fd[i] = socket(AF_UNIX, SOCK_STREAM, 0); in create_listeners() 147 self->fd[i + 1] = socket(AF_UNIX, SOCK_STREAM, 0); in create_listeners() 165 ret = socketpair(AF_UNIX, variant->type, 0, self->fd + i); in create_socketpairs()
|
H A D | diag_uid.c | 57 self->unix_fd = socket(AF_UNIX, SOCK_STREAM, 0); in FIXTURE_SETUP() 90 .sdiag_family = AF_UNIX, in send_request() 124 ASSERT_EQ(udr->sdiag_family, AF_UNIX); in render_response()
|
H A D | test_unix_oob.c |
|
H A D | scm_pidfd.c | 280 addr->listen_addr.sun_family = AF_UNIX; in fill_sockaddr() 304 cfd = socket(AF_UNIX, variant->type, 0); in client() 379 self->server = socket(AF_UNIX, variant->type, 0); in TEST_F()
|
H A D | unix_connect.c | 104 self->family = AF_UNIX; in FIXTURE_SETUP()
|
/linux/arch/um/drivers/ |
H A D | daemon_user.c | 43 sun->sun_family = AF_UNIX; in new_addr() 56 pri->control = socket(AF_UNIX, SOCK_STREAM, 0); in connect_to_switch() 72 fd = socket(AF_UNIX, SOCK_DGRAM, 0); in connect_to_switch()
|
/linux/arch/arm/kernel/ |
H A D | sys_oabi-compat.c | 435 sa_family == AF_UNIX) in sys_oabi_bind() 445 sa_family == AF_UNIX) in sys_oabi_connect() 458 sa_family == AF_UNIX) in sys_oabi_sendto() 473 sa_family == AF_UNIX) in sys_oabi_sendmsg()
|
/linux/arch/um/os-Linux/drivers/ |
H A D | ethertap_user.c | 147 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, data_fds); in etap_open() 155 err = socketpair(AF_UNIX, SOCK_STREAM, 0, control_fds); in etap_open()
|
/linux/tools/testing/selftests/proc/ |
H A D | setns-dcache.c | 61 if (socket(AF_UNIX, SOCK_STREAM, 0) == -1) { in main()
|
/linux/net/unix/ |
H A D | diag.c | 124 rep->udiag_family = AF_UNIX; in sk_diag_fill() 305 .family = AF_UNIX,
|
/linux/include/linux/ |
H A D | socket.h | 191 #define AF_UNIX 1 /* Unix domain sockets */ macro 248 #define PF_UNIX AF_UNIX
|
/linux/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 191 #define AF_UNIX 1 /* Unix domain sockets */ macro 192 #define AF_LOCAL 1 /* POSIX name for AF_UNIX */ 248 #define PF_UNIX AF_UNIX
|
/linux/security/apparmor/include/ |
H A D | net.h | 63 ((SK) && (F) != AF_UNIX) ? LSM_AUDIT_DATA_NET : \
|
/linux/arch/um/os-Linux/ |
H A D | helper.c | 53 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in run_helper()
|
/linux/net/wireless/ |
H A D | wext-spy.c | 92 address[i].sa_family = AF_UNIX; in iw_handler_get_spy()
|