/freebsd-current/stand/libsa/ |
H A D | bootparam.h | 3 int bp_whoami(int sock); 4 int bp_getfile(int sock, char *key, struct in_addr *addrp, char *path);
|
/freebsd-current/contrib/wpa/src/drivers/ |
H A D | linux_ioctl.h | 12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 13 int linux_iface_up(int sock, const char *ifname); 14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 16 int linux_br_add(int sock, const char *brname); 17 int linux_br_del(int sock, const char *brname); 18 int linux_br_add_if(int sock, const char *brname, const char *ifname); 19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
|
/freebsd-current/lib/libnv/ |
H A D | msgio.h | 41 int cred_send(int sock); 42 int cred_recv(int sock, struct cmsgcred *cred); 44 int fd_send(int sock, const int *fds, size_t nfds); 45 int fd_recv(int sock, int *fds, size_t nfds); 47 int buf_send(int sock, void *buf, size_t size); 48 int buf_recv(int sock, void *buf, size_t size, int flags);
|
/freebsd-current/contrib/sendmail/contrib/ |
H A D | socketmapClient.pl | 14 my $sock; 17 $sock = new IO::Socket::INET ( 23 $sock = new IO::Socket::UNIX ( 31 die "Could not create socket: $!\n" unless $sock; 35 netstringWrite($sock, $request); 36 $sock->flush(); 37 my $response = netstringRead($sock); 42 $sock->close(); 45 my $sock = shift; 48 print $sock lengt [all...] |
H A D | socketmapServer.pl | 11 my $sock; 14 $sock = new IO::Socket::INET ( 23 $sock = new IO::Socket::UNIX ( 32 while(my $client = $sock->accept()) { 38 $sock->close(); 45 $sock->close(); 76 my $sock = shift; 79 print $sock length($data).':'.$data.','; 83 my $sock = shift; 86 my $dataLength = <$sock>; [all...] |
/freebsd-current/tools/regression/sockets/shutdown/ |
H A D | shutdown.c | 41 struct sockaddr_in sock; local 59 bzero(&sock, sizeof(sock)); 60 sock.sin_len = sizeof(sock); 61 sock.sin_family = AF_INET; 62 sock.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 63 sock.sin_port = 0; 65 if (bind(listen_sock, (struct sockaddr *)&sock, sizeof(sock)) < [all...] |
/freebsd-current/tools/regression/sockets/unix_socket/ |
H A D | unix_socket.c | 43 int sock, socks[2]; local 45 sock = socket(PF_LOCAL, SOCK_STREAM, 0); 46 if (sock < 0) 48 close(sock); 50 sock = socket(PF_LOCAL, SOCK_DGRAM, 0); 51 if (sock < 0) 53 close(sock); 55 sock = socket(PF_LOCAL, SOCK_RAW, 0); 56 if (sock >= 0) { 57 close(sock); [all...] |
/freebsd-current/tools/regression/sockets/listen_backlog/ |
H A D | listen_backlog.c | 67 socket_get_backlog(int sock, int *backlogp, const char *testclass, argument 74 if (getsockopt(sock, SOL_SOCKET, SO_LISTENQLIMIT, &i, &len) < 0) { 103 int backlog_retrieved, sock; local 105 sock = socket(domain, type, protocol); 106 if (sock < 0) { 109 close(sock); 113 if (socket_get_backlog(sock, &backlog_retrieved, testclass, test, 115 close(sock); 123 close(sock); 127 if (listen(sock, backlo 162 int sock; local 225 int backlog_retrieved, sock; local 288 int sock; local 343 int i, ret, sock; local [all...] |
/freebsd-current/crypto/heimdal/lib/kadm5/ |
H A D | send_recv.c | 44 krb5_storage *sock; local 46 assert(context->sock != -1); 62 sock = krb5_storage_from_fd(context->sock); 63 if(sock == NULL) { 69 ret = krb5_store_data(sock, out); 72 krb5_storage_free(sock); 82 krb5_storage *sock; local 84 sock = krb5_storage_from_fd(context->sock); [all...] |
/freebsd-current/tools/regression/sockets/rtsocket/ |
H A D | rtsocket.c | 44 int sock, socks[2]; local 46 sock = socket(PF_ROUTE, SOCK_STREAM, 0); 47 if (sock >= 0) { 48 close(sock); 50 sock); 56 sock = socket(PF_ROUTE, SOCK_DGRAM, 0); 57 if (sock >= 0) { 58 close(sock); 60 sock); 66 sock [all...] |
/freebsd-current/crypto/openssl/crypto/bio/ |
H A D | bio_sock2.c | 43 int sock = -1; local 48 sock = socket(domain, socktype, protocol); 49 if (sock == -1) { 63 ktls_enable(sock); 67 return sock; 72 * @sock: the socket to connect with 90 int BIO_connect(int sock, const BIO_ADDR *addr, int options) argument 94 if (sock == -1) { 99 if (!BIO_socket_nbio(sock, (options & BIO_SOCK_NONBLOCK) != 0)) 103 if (setsockopt(sock, SOL_SOCKE 159 BIO_bind(int sock, const BIO_ADDR *addr, int options) argument 233 BIO_listen(int sock, const BIO_ADDR *addr, int options) argument 345 BIO_closesocket(int sock) argument [all...] |
/freebsd-current/contrib/ofed/libibverbs/ |
H A D | nl1_compat.h | 20 static inline void nl_socket_disable_seq_check(struct nl_sock *sock) argument 22 nl_disable_sequence_check(sock); 48 static inline void nl_socket_free(struct nl_sock *sock) argument 50 nl_close(sock); 58 #define rtnl_link_alloc_cache(sock, family, result) ( \ 59 *result = rtnl_link_alloc_cache(sock), \ 63 #define rtnl_route_alloc_cache(sock, family, flags, result) ( \ 64 *result = rtnl_route_alloc_cache(sock), \ 68 #define rtnl_neigh_alloc_cache(sock, result) ( \ 69 *result = rtnl_neigh_alloc_cache(sock), \ [all...] |
/freebsd-current/tools/regression/netinet/ipsockopt/ |
H A D | ipsockopt.c | 75 int sock; local 84 sock = socket(PF_INET, type, 0); 89 return (sock); 112 test_ip_options(int sock, const char *socktypename) argument 122 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) 138 if (setsockopt(sock, IPPROTO_IP, IP_OPTIONS, &new_options, 152 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) 182 if (setsockopt(sock, IPPROTO_IP, IP_OPTIONS, NULL, 0) < 0) 192 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) 215 int flag[2], sock; local 389 test_ip_uchar(int sock, const char *socktypename, int option, const char *optionname, int initial) argument 529 test_ip_boolean(int sock, const char *socktypename, int option, char *optionname, int initial, int rootonly) argument 639 test_ip_multicast_membership(int sock, const char *socktypename) argument 712 test_ip_multicast_if(int sock, const char *socktypename) argument 725 test_ip_multicast_vif(int sock, const char *socktypename) argument 741 int i, sock, socktype; local [all...] |
/freebsd-current/tools/regression/sockets/listen_kqueue/ |
H A D | listen_kqueue.c | 52 int kq, sock, opt, pid, nev, fd; local 57 if ((sock = socket(PF_INET, SOCK_STREAM, 0)) == -1) 60 EV_SET(&ev[0], sock, EVFILT_READ, EV_ADD | EV_CLEAR, 0, 0, NULL); 61 EV_SET(&ev[1], sock, EVFILT_WRITE, EV_ADD | EV_CLEAR, 0, 0, NULL); 64 if (setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)) == -1) 70 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1) 77 if (bind(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) 79 if (listen(sock, 0x80) == -1) 82 if (ioctl(sock, FIONBIO, &opt) == -1) 92 if (close(sock) [all...] |
/freebsd-current/crypto/heimdal/appl/test/ |
H A D | nt_gss_common.h | 36 void nt_write_token (int sock, gss_buffer_t buf); 37 void nt_read_token (int sock, gss_buffer_t buf);
|
/freebsd-current/contrib/ntp/ntpq/ |
H A D | libntpq_subs.c | 33 char ntpq_decodeaddrtype(sockaddr_u *sock) argument 35 return decodeaddrtype(sock);
|
/freebsd-current/tools/regression/sockets/sigpipe/ |
H A D | sigpipe.c | 86 test_send(const char *testname, int sock) argument 92 len = send(sock, &ch, sizeof(ch), 0); 102 test_write(const char *testname, int sock) argument 108 len = write(sock, &ch, sizeof(ch)); 216 tcp_pair(u_short port, int sock[2]) argument 244 sock[0] = accept_sock; 245 sock[1] = connect_sock; 252 int sock[2]; local 269 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sock) < 0) 271 test_send_wantsignal("test_send_wantsignal(PF_LOCAL)", sock[ [all...] |
/freebsd-current/contrib/openbsm/bin/auditdistd/ |
H A D | proto_common.c | 52 blocking_socket(int sock) argument 56 flags = fcntl(sock, F_GETFL); 62 proto_descriptor_send(int sock, int fd) argument 68 PJDLOG_ASSERT(sock >= 0); 85 if (sendmsg(sock, &msg, 0) == -1) 92 proto_common_send(int sock, const unsigned char *data, size_t size, int fd) argument 98 PJDLOG_ASSERT(sock >= 0); 105 if (shutdown(sock, SHUT_RD) == -1) 115 done = send(sock, data, sendsize, MSG_NOSIGNAL); 144 if (errno == EAGAIN && blocking_socket(sock)) 162 proto_descriptor_recv(int sock, int *fdp) argument 193 proto_common_recv(int sock, unsigned char *data, size_t size, int *fdp) argument [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | zfs_diff-socket.c | 30 struct sockaddr_un sock; local 39 size = sizeof (sock.sun_path); 40 (void) snprintf(sock.sun_path, size, "%s", path); 42 sock.sun_family = AF_UNIX; 47 if (bind(fd, (struct sockaddr *)&sock, sizeof (struct sockaddr_un))) {
|
/freebsd-current/tools/regression/netinet/rawconnect/ |
H A D | rawconnect.c | 54 int sock; local 65 sock = socket(PF_INET, SOCK_RAW, IPPROTO_IP); 66 if (sock == -1) 69 if (connect(sock, (struct sockaddr *)&sin, sizeof(sin)) == -1) 72 close(sock);
|
/freebsd-current/tools/regression/sockets/fstat/ |
H A D | fstat.c | 44 int sock; local 46 sock = socket(domain, type, protocol); 47 if (sock < 0) 50 if (fstat(sock, &sb) < 0) 54 close(sock);
|
/freebsd-current/sbin/hastd/ |
H A D | proto_common.c | 52 blocking_socket(int sock) argument 56 flags = fcntl(sock, F_GETFL); 62 proto_descriptor_send(int sock, int fd) argument 68 PJDLOG_ASSERT(sock >= 0); 85 if (sendmsg(sock, &msg, 0) == -1) 92 proto_common_send(int sock, const unsigned char *data, size_t size, int fd) argument 98 PJDLOG_ASSERT(sock >= 0); 105 if (shutdown(sock, SHUT_RD) == -1) 115 done = send(sock, data, sendsize, MSG_NOSIGNAL); 144 if (errno == EAGAIN && blocking_socket(sock)) 162 proto_descriptor_recv(int sock, int *fdp) argument 193 proto_common_recv(int sock, unsigned char *data, size_t size, int *fdp) argument [all...] |
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | socket.h | 277 void (*attach)(isc_socket_t *sock, 280 isc_result_t (*bind)(isc_socket_t *sock, isc_sockaddr_t *sockaddr, 282 isc_result_t (*sendto)(isc_socket_t *sock, isc_region_t *region, 286 isc_result_t (*connect)(isc_socket_t *sock, isc_sockaddr_t *addr, 289 isc_result_t (*recv)(isc_socket_t *sock, isc_region_t *region, 292 void (*cancel)(isc_socket_t *sock, isc_task_t *task, 294 isc_result_t (*getsockname)(isc_socket_t *sock, 296 isc_sockettype_t (*gettype)(isc_socket_t *sock); 297 void (*ipv6only)(isc_socket_t *sock, isc_boolean_t yes); 298 isc_result_t (*fdwatchpoke)(isc_socket_t *sock, in [all...] |
/freebsd-current/tools/regression/sockets/reconnect/ |
H A D | reconnect.c | 67 int sock; local 73 sock = socket(PF_LOCAL, SOCK_DGRAM, 0); 74 if (sock == -1) 76 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &sock, sizeof(sock)); 77 if (bind(sock, sstosa(&ifsun), sizeof(ifsun)) < 0) 80 return sock; 84 connect_uds_server(int sock, const char *path) argument 91 e = connect(sock, sstos [all...] |
/freebsd-current/crypto/openssh/ |
H A D | authfd.h | 45 void ssh_close_authentication_socket(int sock); 47 int ssh_lock_agent(int sock, int lock, const char *password); 48 int ssh_fetch_identitylist(int sock, struct ssh_identitylist **idlp); 50 int ssh_add_identity_constrained(int sock, struct sshkey *key, 54 int ssh_agent_has_key(int sock, const struct sshkey *key); 55 int ssh_remove_identity(int sock, const struct sshkey *key); 56 int ssh_update_card(int sock, int add, const char *reader_id, 61 int ssh_remove_all_identities(int sock, int version); 63 int ssh_agent_sign(int sock, const struct sshkey *key, 67 int ssh_agent_bind_hostkey(int sock, cons [all...] |