| /freebsd-12.1/share/doc/psd/20.ipctut/ |
| H A D | socketpair.c | 46 int sockets[2], child; 49 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) { 57 close(sockets[0]); 58 if (read(sockets[1], buf, 1024, 0) < 0) 61 if (write(sockets[1], DATA2, sizeof(DATA2)) < 0) 63 close(sockets[1]); 65 close(sockets[1]); 66 if (write(sockets[0], DATA1, sizeof(DATA1)) < 0) 68 if (read(sockets[0], buf, 1024, 0) < 0) 71 close(sockets[0]);
|
| H A D | pipe.c | 44 int sockets[2], child; 47 if (pipe(sockets) < 0) { 58 close(sockets[1]); 59 if (read(sockets[0], buf, 1024) < 0) 62 close(sockets[0]); 65 close(sockets[0]); 66 if (write(sockets[1], DATA, sizeof(DATA)) < 0) 68 close(sockets[1]);
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | ssh-agent.c | 116 SocketEntry *sockets = NULL; variable 704 e = &sockets[socknum]; in process_message() 807 sockets[i].fd = fd; in new_socket() 814 sockets[i].type = type; in new_socket() 819 sockets = xreallocarray(sockets, new_alloc, sizeof(sockets[0])); in new_socket() 821 sockets[i].type = AUTH_UNUSED; in new_socket() 823 sockets[old_alloc].fd = fd; in new_socket() 976 switch (sockets[i].type) { in prepare_poll() 995 switch (sockets[i].type) { in prepare_poll() 1002 pfd[j].fd = sockets[i].fd; in prepare_poll() [all …]
|
| /freebsd-12.1/lib/libifconfig/ |
| H A D | libifconfig_internal.c | 89 if (h->sockets[addressfamily] != -1) { in ifconfig_socket() 90 *s = h->sockets[addressfamily]; in ifconfig_socket() 95 h->sockets[addressfamily] = socket(addressfamily, SOCK_DGRAM, 0); in ifconfig_socket() 96 if (h->sockets[addressfamily] == -1) { in ifconfig_socket() 102 *s = h->sockets[addressfamily]; in ifconfig_socket()
|
| H A D | libifconfig_internal.h | 54 int sockets[AF_MAX + 1]; member
|
| H A D | libifconfig.c | 87 h->sockets[i] = -1; in ifconfig_open() 98 if (h->sockets[i] != -1) { in ifconfig_close() 99 (void)close(h->sockets[i]); in ifconfig_close()
|
| /freebsd-12.1/sys/amd64/vmm/ |
| H A D | x86.c | 97 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local 147 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 245 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 283 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 383 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 395 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 473 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
|
| /freebsd-12.1/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() 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() 733 process (realms, keytab, sockets[i], in doit() 741 close(sockets[i]); in doit() [all …]
|
| /freebsd-12.1/stand/libsa/ |
| H A D | netif.c | 50 struct iodesc sockets[SOPEN_MAX]; variable 271 return (&sockets[sock]); in socktodesc() 282 for (fd = 0, s = sockets; fd < SOPEN_MAX; fd++, s++) in netif_open() 312 netif_detach(sockets[sock].io_netif); in netif_close() 313 sockets[sock].io_netif = (struct netif *)0; in netif_close()
|
| H A D | net.h | 99 extern struct iodesc sockets[SOPEN_MAX];
|
| /freebsd-12.1/sys/netgraph/bluetooth/socket/ |
| H A D | ng_btsocket.c | 237 SYSCTL_NODE(_net_bluetooth_hci, OID_AUTO, sockets, CTLFLAG_RW, 239 SYSCTL_NODE(_net_bluetooth_l2cap, OID_AUTO, sockets, CTLFLAG_RW, 241 SYSCTL_NODE(_net_bluetooth_rfcomm, OID_AUTO, sockets, CTLFLAG_RW, 243 SYSCTL_NODE(_net_bluetooth_sco, OID_AUTO, sockets, CTLFLAG_RW,
|
| /freebsd-12.1/sbin/natd/ |
| H A D | README | 8 This is a simple daemon based on FreeBSD divert sockets 20 1) Get FreeBSD 2.2 - I think the divert sockets are 38 Archie Cobbs <[email protected]> Divert sockets
|
| /freebsd-12.1/tools/regression/sockets/unix_cmsg/ |
| H A D | README | 7 (control information) for PF_LOCAL sockets (local domain or Unix domain 8 sockets). There are tests for stream and datagram sockets. 55 For SOCK_STREAM sockets: 115 For SOCK_DGRAM sockets:
|
| /freebsd-12.1/crypto/openssl/doc/man3/ |
| H A D | SSL_state_string.pod | 29 When using non-blocking sockets, the function call performing the handshake 33 For both blocking or non-blocking sockets, the details state information
|
| /freebsd-12.1/contrib/unbound/contrib/ |
| H A D | unbound.socket.in | 6 WantedBy=sockets.target
|
| /freebsd-12.1/tools/regression/tmpfs/ |
| H A D | t_sockets | 44 ${Src_Dir}/h_tools sockets a
|
| H A D | t_readdir | 54 ${Src_Dir}/h_tools sockets sock || die
|
| /freebsd-12.1/usr.sbin/bhyve/ |
| H A D | bhyverun.h | 39 extern uint16_t cores, sockets, threads;
|
| H A D | bhyverun.c | 166 uint16_t cores, maxcpus, sockets, threads; variable 320 sockets = s; in topology_parse() 969 error = vm_set_topology(ctx, sockets, cores, threads, maxcpus); in do_open() 993 sockets = cores = threads = 1; in main()
|
| /freebsd-12.1/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-12.1/tests/sys/aio/ |
| H A D | aio_test.c | 453 int sockets[2]; in aio_unix_socketpair_test() local 457 ATF_REQUIRE_MSG(socketpair(PF_UNIX, SOCK_STREAM, 0, sockets) != -1, in aio_unix_socketpair_test() 460 aio_context_init(&ac, sockets[0], sockets[1], UNIX_SOCKETPAIR_LEN); in aio_unix_socketpair_test() 473 close(sockets[0]); in aio_unix_socketpair_test() 474 close(sockets[1]); in aio_unix_socketpair_test()
|
| /freebsd-12.1/lib/libvmmapi/ |
| H A D | vmmapi.h | 225 int vm_set_topology(struct vmctx *ctx, uint16_t sockets, uint16_t cores, 227 int vm_get_topology(struct vmctx *ctx, uint16_t *sockets, uint16_t *cores,
|
| /freebsd-12.1/contrib/bsnmp/ |
| H A D | NEWS | 135 Local stream sockets that check the clients privileges. 166 Implement listening on unix domain sockets. The client must bind 168 sockets are considered to be more secure, because it is much
|
| /freebsd-12.1/contrib/apr/network_io/unix/ |
| H A D | sockopt.c | 35 #error Please teach APR how to make sockets blocking on your platform. in soblock() 61 #error Please teach APR how to make sockets non-blocking on your platform. in sononblock()
|
| /freebsd-12.1/contrib/apr/ |
| H A D | apr.mak | 104 -@erase "$(INTDIR)\sockets.obj" 211 "$(INTDIR)\sockets.obj" \ 318 -@erase "$(INTDIR)\sockets.obj" 425 "$(INTDIR)\sockets.obj" \ 532 -@erase "$(INTDIR)\sockets.obj" 639 "$(INTDIR)\sockets.obj" \ 746 -@erase "$(INTDIR)\sockets.obj" 853 "$(INTDIR)\sockets.obj" \ 960 -@erase "$(INTDIR)\sockets.obj" 1067 "$(INTDIR)\sockets.obj" \ [all …]
|