/freebsd/share/doc/psd/20.ipctut/ |
H A D | socketpair.c | 44 int sockets[2], child; 47 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) { 55 close(sockets[0]); 56 if (read(sockets[1], buf, 1024, 0) < 0) 59 if (write(sockets[1], DATA2, sizeof(DATA2)) < 0) 61 close(sockets[1]); 63 close(sockets[1]); 64 if (write(sockets[0], DATA1, sizeof(DATA1)) < 0) 66 if (read(sockets[0], buf, 1024, 0) < 0) 69 close(sockets[0]);
|
H A D | pipe.c | 42 int sockets[2], child; 45 if (pipe(sockets) < 0) { 56 close(sockets[1]); 57 if (read(sockets[0], buf, 1024) < 0) 60 close(sockets[0]); 63 close(sockets[0]); 64 if (write(sockets[1], DATA, sizeof(DATA)) < 0) 66 close(sockets[1]);
|
/freebsd/tests/sys/kern/ |
H A D | ktls_test.c | 1182 int kq, sockets[2]; in test_ktls_transmit_app_data() local 1195 ATF_REQUIRE_MSG(open_sockets(tc, sockets), "failed to create sockets"); in test_ktls_transmit_app_data() 1197 ATF_REQUIRE(setsockopt(sockets[1], IPPROTO_TCP, TCP_TXTLS_ENABLE, en, in test_ktls_transmit_app_data() 1199 check_tls_mode(tc, sockets[1], TCP_TXTLS_MODE); in test_ktls_transmit_app_data() 1201 EV_SET(&ev, sockets[0], EVFILT_READ, EV_ADD, 0, 0, NULL); in test_ktls_transmit_app_data() 1203 EV_SET(&ev, sockets[1], EVFILT_WRITE, EV_ADD, 0, 0, NULL); in test_ktls_transmit_app_data() 1294 close_sockets(sockets); in test_ktls_transmit_app_data() 1332 int sockets[2]; in test_ktls_transmit_control() local 1343 ATF_REQUIRE_MSG(open_sockets(tc, sockets), "faile in test_ktls_transmit_control() 1392 int sockets[2]; test_ktls_transmit_empty_fragment() local 1501 int kq, sockets[2]; test_ktls_receive_app_data() local 1621 int sockets[2]; test_ktls_receive_corrupted_record() local 1710 int sockets[2]; test_ktls_receive_truncated_record() local 1751 int sockets[2]; test_ktls_receive_bad_major() local 1793 int sockets[2]; test_ktls_receive_bad_minor() local 1835 int sockets[2]; test_ktls_receive_bad_type() local 1878 int sockets[2]; test_ktls_receive_bad_size() local 2163 int sockets[2]; test_ktls_invalid_transmit_cipher_suite() local 2659 int sockets[2]; test_ktls_invalid_receive_cipher_suite() local 2698 int sockets[2]; test_ktls_unsupported_receive_cipher_suite() local [all...] |
H A D | sonewconn_overflow.py | 46 self.sockets = [] 61 self.sockets.append(s) 65 for s in self.sockets:
|
/freebsd/crypto/openssh/regress/misc/fuzz-harness/ |
H A D | agent_fuzz_helper.c | 126 if (sockets[i].type != AUTH_UNUSED) in cleanup_sockettab() 127 close_socket(sockets + i); in cleanup_sockettab() 129 free(sockets); in cleanup_sockettab() 130 sockets = NULL; in cleanup_sockettab() 145 assert(sockets[0].type == AUTH_CONNECTION); in reset_sockettab() 146 assert(sockets[0].fd == fd); in reset_sockettab() 166 (void)sshbuf_put(sockets[0].input, s, slen); in test_one() 168 olen = sshbuf_len(sockets[0].input); in test_one() 170 nlen = sshbuf_len(sockets[0].input); in test_one()
|
/freebsd/contrib/libder/tests/ |
H A D | fuzz_stream.c | 55 int sockets[2]; in fuzz_fd() local 60 &sockets[0]); in fuzz_fd() 66 sdata.socket = sockets[1]; in fuzz_fd() 70 close(sockets[0]); in fuzz_fd() 71 close(sockets[1]); in fuzz_fd() 76 close(sockets[0]); in fuzz_fd() 80 close(sockets[1]); in fuzz_fd() 90 obj = libder_read_fd(ctx, sockets[0], &readsz); in fuzz_fd() 105 close(sockets[0]); in fuzz_fd()
|
/freebsd/lib/libifconfig/ |
H A D | libifconfig_internal.c | 87 if (h->sockets[addressfamily] != -1) { in ifconfig_socket() 88 *s = h->sockets[addressfamily]; in ifconfig_socket() 93 h->sockets[addressfamily] = socket(addressfamily, SOCK_DGRAM, 0); in ifconfig_socket() 94 if (h->sockets[addressfamily] == -1) { in ifconfig_socket() 100 *s = h->sockets[addressfamily]; in ifconfig_socket()
|
H A D | libifconfig_internal.h | 52 int sockets[AF_MAX + 1]; member
|
/freebsd/tests/sys/common/ |
H A D | net_receiver.py | 56 sockets = [] 65 sockets.append(s) 66 inputs = sockets 86 sockets = [] 94 sockets.append(s) 95 inputs = sockets
|
/freebsd/crypto/openssh/ |
H A D | ssh-agent.c | 137 SocketEntry *sockets = NULL; variable 1826 e = &sockets[socknum]; in process_message() 1933 if (sockets[i].type == AUTH_UNUSED) { in new_socket() 1934 sockets[i].fd = fd; in new_socket() 1935 if ((sockets[i].input = sshbuf_new()) == NULL || in new_socket() 1936 (sockets[i].output = sshbuf_new()) == NULL || in new_socket() 1937 (sockets[i].request = sshbuf_new()) == NULL) in new_socket() 1939 sockets[i].type = type; in new_socket() 1944 sockets = xrecallocarray(sockets, old_alloc, new_alloc, in new_socket() 1945 sizeof(sockets[0])); in new_socket() [all …]
|
/freebsd/stand/libsa/ |
H A D | netif.c | 56 static socket_list_t sockets = TAILQ_HEAD_INITIALIZER(sockets); variable 281 TAILQ_FOREACH(s, &sockets, io_link) { in socktodesc_impl() 326 last = TAILQ_LAST(&sockets, socket_list); in netif_open() 329 TAILQ_INSERT_TAIL(&sockets, s, io_link); in netif_open() 369 TAILQ_FOREACH_REVERSE_SAFE(last, &sockets, socket_list, io_link, s) { in netif_close() 372 TAILQ_REMOVE(&sockets, last, io_link); in netif_close()
|
/freebsd/sys/amd64/vmm/ |
H A D | x86.c | 85 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local 140 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 238 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 257 logical_cpus = sockets * threads * cores; in x86_emulate_cpuid() 286 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 386 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 398 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 488 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
|
/freebsd/crypto/heimdal/kpasswd/ |
H A D | kpasswdd.c | 654 int *sockets; in doit() local 676 sockets = malloc (n * sizeof(*sockets)); in doit() 677 if (sockets == NULL) in doit() 686 sockets[i] = socket (sa->sa_family, SOCK_DGRAM, 0); in doit() 687 if (sockets[i] < 0) in doit() 689 if (bind (sockets[i], sa, sa_size) < 0) { in doit() 700 maxfd = max (maxfd, sockets[i]); in doit() 703 FD_SET(sockets[i], &real_fdset); in doit() 720 if (FD_ISSET(sockets[i], &fdset)) { in doit() 724 retx = recvfrom(sockets[i], buf, sizeof(buf), 0, in doit() [all …]
|
/freebsd/sys/netgraph/bluetooth/socket/ |
H A D | ng_btsocket.c | 190 SYSCTL_NODE(_net_bluetooth_hci, OID_AUTO, sockets, 193 SYSCTL_NODE(_net_bluetooth_l2cap, OID_AUTO, sockets, 196 SYSCTL_NODE(_net_bluetooth_rfcomm, OID_AUTO, sockets, 199 SYSCTL_NODE(_net_bluetooth_sco, OID_AUTO, sockets,
|
/freebsd/sbin/natd/ |
H A D | README | 7 This is a simple daemon based on FreeBSD divert sockets 19 1) Get FreeBSD 2.2 - I think the divert sockets are 37 Archie Cobbs <archie@whistle.com> Divert sockets
|
/freebsd/sys/riscv/vmm/ |
H A D | vmm.c | 131 uint16_t sockets; /* (o) num of sockets */ member 387 vm->sockets = 1; in vm_create() 402 vm_get_topology(struct vm *vm, uint16_t *sockets, uint16_t *cores, in vm_get_topology() argument 405 *sockets = vm->sockets; in vm_get_topology() 418 vm_set_topology(struct vm *vm, uint16_t sockets, uint16_t cores, in vm_set_topology() argument 422 if ((sockets * cores * threads) > vm->maxcpus) in vm_set_topology() 424 vm->sockets = sockets; in vm_set_topology()
|
/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | README | 6 (control information) for PF_LOCAL sockets (local domain or Unix domain 7 sockets). There are tests for stream and datagram sockets. 54 For SOCK_STREAM sockets: 114 For SOCK_DGRAM sockets:
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | SSL_state_string.pod | 29 When using nonblocking sockets, the function call performing the handshake 33 For both blocking or nonblocking sockets, the details state information
|
/freebsd/sys/arm64/vmm/ |
H A D | vmm.c | 137 uint16_t sockets; /* (o) num of sockets */ member 492 vm->sockets = 1; in vm_create() 507 vm_get_topology(struct vm *vm, uint16_t *sockets, uint16_t *cores, in vm_get_topology() argument 510 *sockets = vm->sockets; in vm_get_topology() 523 vm_set_topology(struct vm *vm, uint16_t sockets, uint16_t cores, in vm_set_topology() argument 527 if ((sockets * cores * threads) > vm->maxcpus) in vm_set_topology() 529 vm->sockets = sockets; in vm_set_topology()
|
/freebsd/contrib/unbound/contrib/ |
H A D | unbound.socket.in | 6 WantedBy=sockets.target
|
/freebsd/contrib/libpcap/rpcapd/ |
H A D | rpcapd.socket | 9 WantedBy=sockets.target
|
/freebsd/contrib/wpa/wpa_supplicant/doc/docbook/ |
H A D | wpa_gui.sgml | 21 <arg>-p <replaceable>path to ctrl sockets</replaceable></arg> 47 <listitem><para>Change the path where control sockets should
|
/freebsd/tools/regression/tmpfs/ |
H A D | t_sockets | 43 ${Src_Dir}/h_tools sockets a
|
/freebsd/contrib/netbsd-tests/fs/tmpfs/ |
H A D | t_sockets.sh | 37 atf_check -s eq:0 -o empty -e empty $(atf_get_srcdir)/h_tools sockets a
|
/freebsd/usr.sbin/bhyvectl/ |
H A D | bhyvectl.c | 484 uint16_t sockets, cores, threads, maxcpus; in main() local 486 vm_get_topology(ctx, &sockets, &cores, &threads, &maxcpus); in main() 488 "maxcpus=%hu\n", sockets, cores, threads, maxcpus); in main()
|