Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 8 of 8) sorted by relevance

/xnu-11215/tests/
H A Duipc_kevent.c29 int sockets[2] = { -1 }; in test_kevent() local
36 int flags = fcntl(sockets[0], F_GETFL); in test_kevent()
49 result = write(sockets[0], buf, sizeof(buf)); in test_kevent()
59 close(sockets[0]); in test_kevent()
60 close(sockets[1]); in test_kevent()
67 int sockets[2] = { -1 }; in test_kevent_lowat() local
74 int flags = fcntl(sockets[0], F_GETFL); in test_kevent_lowat()
85 write(sockets[0], buf, sizeof(buf)); in test_kevent_lowat()
102 result = write(sockets[0], large_buf, 512); in test_kevent_lowat()
132 close(sockets[0]); in test_kevent_lowat()
[all …]
H A Dpwrite.c98 int sockets[2]; variable
99 int result = socketpair(AF_UNIX, SOCK_STREAM, 0, sockets);
102 test_pwrite_should_fail(sockets[0], ESPIPE);
103 test_pwrite_should_fail(sockets[1], ESPIPE);
105 T_ASSERT_POSIX_SUCCESS(close(sockets[0]), "Closed socket 0");
106 T_ASSERT_POSIX_SUCCESS(close(sockets[1]), "Closed socket 1");
H A Dpread.c130 int sockets[2]; variable
131 int result = socketpair(AF_UNIX, SOCK_STREAM, 0, sockets);
134 test_pread_should_fail(sockets[0], ESPIPE);
135 test_pread_should_fail(sockets[1], ESPIPE);
137 T_ASSERT_POSIX_SUCCESS(close(sockets[0]), "Closed socket 0");
138 T_ASSERT_POSIX_SUCCESS(close(sockets[1]), "Closed socket 1");
H A Drecvmsg_x_test.c219 int sockets[2]; variable
221 T_EXPECT_POSIX_SUCCESS(socketpair(AF_UNIX, SOCK_DGRAM, 0, sockets), "socketpair");
225 write(sockets[0], buffer, bufsize);
226 write(sockets[0], NULL, 0);
227 write(sockets[0], buffer, bufsize);
255 ssize_t received = recvmsg_x(sockets[1], headers, 3, 0);
H A Dnet_tuntests.c905 setblocking(sockets[si], false); in setup_sockets()
910 cleanup_sockets(int sockets[SO_TC_MAX]) in cleanup_sockets()
914 sockets[si] = -1; in cleanup_sockets()
974 int sockets[SO_TC_MAX]; in xfer_1_packet_singly() local
983 setup_sockets(sockets, type); in xfer_1_packet_singly()
988 send_one_packet(sockets[si], type); in xfer_1_packet_singly()
1025 cleanup_sockets(sockets); in xfer_1_packet_singly()
1066 int sockets[SO_TC_MAX]; in xfer_1_packet_together() local
1075 setup_sockets(sockets, type); in xfer_1_packet_together()
1080 send_one_packet(sockets[si], type); in xfer_1_packet_together()
[all …]
/xnu-11215/bsd/conf/
H A Dfiles21 OPTIONS/sockets optional sockets
149 bsd/miscfs/fifofs/fifo_vnops.c optional fifo sockets
170 bsd/net/init.c optional sockets bound-checks
421 bsd/kern/kpi_mbuf.c optional sockets
445 bsd/kern/sys_socket.c optional sockets bound-checks
446 bsd/kern/sys_domain.c optional sockets bound-checks
462 bsd/kern/uipc_mbuf.c optional sockets
463 bsd/kern/uipc_mbuf2.c optional sockets
464 bsd/kern/uipc_proto.c optional sockets bound-checks
469 bsd/kern/vsock_domain.c optional sockets
[all …]
/xnu-11215/bsd/net/
H A Draw_usrreq.c95 int sockets = 0; in raw_input() local
135 sockets++; in raw_input()
147 sockets++; in raw_input()
/xnu-11215/libsyscall/mach/
H A Derr_kern.sub145 "(os/unix) operation is not supported on sockets",