Home
last modified time | relevance | path

Searched refs:AF_UNIX (Results 1 – 25 of 52) sorted by relevance

123

/linux/tools/testing/selftests/landlock/
H A Dscoped_abstract_unix_test.c107 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 Dnet_test.c70 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 Dscoped_signal_test.c406 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 Depoll_wakeup_test.c169 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 Dsock_addr.c1015 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 Dskc_to_unix_sock.c31 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 Dbpf_iter_setsockopt_unix.c13 .sun_family = AF_UNIX, in create_unix_socket()
19 fd = socket(AF_UNIX, SOCK_STREAM, 0); in create_unix_socket()
H A Dsockmap_basic.c661 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 Dsockmap_listen.c1239 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 Dlsm_cgroup.c18 #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 Dscm_rights.c127 .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 Ddiag_uid.c57 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 Dtest_unix_oob.c
H A Dscm_pidfd.c280 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 Dunix_connect.c104 self->family = AF_UNIX; in FIXTURE_SETUP()
/linux/arch/um/drivers/
H A Ddaemon_user.c43 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 Dsys_oabi-compat.c435 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 Dethertap_user.c147 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 Dsetns-dcache.c61 if (socket(AF_UNIX, SOCK_STREAM, 0) == -1) { in main()
/linux/net/unix/
H A Ddiag.c124 rep->udiag_family = AF_UNIX; in sk_diag_fill()
305 .family = AF_UNIX,
/linux/include/linux/
H A Dsocket.h191 #define AF_UNIX 1 /* Unix domain sockets */ macro
248 #define PF_UNIX AF_UNIX
/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h191 #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 Dnet.h63 ((SK) && (F) != AF_UNIX) ? LSM_AUDIT_DATA_NET : \
/linux/arch/um/os-Linux/
H A Dhelper.c53 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in run_helper()
/linux/net/wireless/
H A Dwext-spy.c92 address[i].sa_family = AF_UNIX; in iw_handler_get_spy()

123