/illumos-gate/usr/src/boot/lib/libstand/ |
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);
|
H A D | netif.c | 281 socktodesc(sock) 282 int sock; 284 if (sock >= SOPEN_MAX) { 288 return (&sockets[sock]); 324 netif_close(sock) 325 int sock; 327 if (sock >= SOPEN_MAX) { 331 netif_detach(sockets[sock].io_netif); 332 sockets[sock].io_netif = (struct netif *)0;
|
/illumos-gate/usr/src/lib/libsocket/socket/ |
H A D | sockatmark.c | 39 _sockatmark(int sock) argument 43 if (ioctl(sock, SIOCATMARK, &val) == -1)
|
H A D | weaks.c | 82 _bind(int sock, struct sockaddr *addr, int addrlen) argument 84 return (_so_bind(sock, addr, addrlen, SOV_SOCKBSD)); 88 _listen(int sock, int backlog) argument 90 return (_so_listen(sock, backlog, SOV_DEFAULT)); 94 _accept(int sock, struct sockaddr *addr, int *addrlen) argument 96 return (_so_accept(sock, addr, addrlen, SOV_DEFAULT, 0)); 100 _accept4(int sock, struct sockaddr *addr, int *addrlen, int flags) argument 102 return (_so_accept(sock, addr, addrlen, SOV_DEFAULT, flags)); 106 _connect(int sock, struct sockaddr *addr, int addrlen) argument 108 return (_so_connect(sock, add 112 _shutdown(int sock, int how) argument 118 _recv(int sock, char *buf, int len, int flags) argument 124 _recvfrom(int sock, char *buf, int len, int flags, struct sockaddr *addr, int *addrlen) argument 132 _recvmsg(int sock, struct msghdr *msg, int flags) argument 138 _send(int sock, char *buf, int len, int flags) argument 144 _sendmsg(int sock, struct msghdr *msg, int flags) argument 150 _sendto(int sock, char *buf, int len, int flags, struct sockaddr *addr, int *addrlen) argument 158 _getpeername(int sock, struct sockaddr *name, int *namelen) argument 164 _getsockname(int sock, struct sockaddr *name, int *namelen) argument 170 _getsockopt(int sock, int level, int optname, char *optval, int *optlen) argument 214 _setsockopt(int sock, int level, int optname, char *optval, int optlen) argument 221 __xnet_bind(int sock, const struct sockaddr *addr, socklen_t addrlen) argument 228 __xnet_listen(int sock, int backlog) argument 234 __xnet_connect(int sock, const struct sockaddr *addr, socklen_t addrlen) argument 240 __xnet_recvmsg(int sock, struct msghdr *msg, int flags) argument 246 __xnet_sendmsg(int sock, const struct msghdr *msg, int flags) argument 252 __xnet_sendto(int sock, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen) argument 260 __xnet_getsockopt(int sock, int level, int option_name, void *option_value, socklen_t *option_lenp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | selfcheck.c | 117 int sock; local 123 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { 131 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { 143 (void) close(sock); 150 (void) close(sock); 160 if (ioctl(sock, SIOCGLIFCONF, (char *)lifc) < 0) { 162 (void) close(sock); 168 (void) close(sock); 176 int sock; local 179 sock [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_settid.c | 45 struct sockaddr_in6 sock; local 47 int socklen = sizeof (sock); 60 /* get sock name */ 61 if (getsockname(fd, (struct sockaddr *)&sock, (socklen_t *)&socklen) 67 rv = do_ipv6_address(&peer, &sock); 70 (struct sockaddr_in *)&sock); 76 do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock) argument 96 ai.ai_termid.at_port = ((peer->sin6_port<<16) | (sock->sin6_port)); 108 do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock) argument 124 ai.ai_termid.port = (peer->sin_port<<16 | sock [all...] |
/illumos-gate/usr/src/lib/libsendfile/common/ |
H A D | sendfile.c | 45 _sendfilev(int sock, const struct sendfilevec *vec, int sfvcnt, size_t *xferred) argument 50 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, vec, 63 _sendfile(int sock, int fd, off_t *off, size_t len) argument 74 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, &sfv, 93 _sendfilev64(int sock, const struct sendfilevec64 *vec, int sfvcnt, argument 99 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, vec, 112 _sendfile64(int sock, int fd, off64_t *off, size_t len) argument 123 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, &sfv,
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | info.h | 32 typedef void (*rdsv3_info_func)(struct rsock *sock, unsigned int len, 42 int rdsv3_info_ioctl(struct rsock *sock, int optname, char *optval,
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_opipe.c | 51 ksocket_t sock; local 53 if (ksocket_socket(&sock, AF_UNIX, SOCK_STREAM, 0, 65 opipe->p_socket = sock; 278 ksocket_t sock; local 286 sock = opipe->p_socket; 290 (void) ksocket_shutdown(sock, SHUT_RDWR, of->f_cr); 291 (void) ksocket_close(sock, of->f_cr); 308 ksocket_t sock; local 318 sock = opipe->p_socket; 319 if (sock ! 358 ksocket_t sock; local 407 ksocket_t sock; local [all...] |
H A D | smb_net.c | 61 ksocket_t sock; local 64 err = ksocket_socket(&sock, domain, type, protocol, KSOCKET_SLEEP, 70 return (sock); 184 rc = ksocket_sendmsg(s->sock, &msg, 0, &sent, CRED());
|
/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | svc_tcp.c | 89 * xprt = svctcp_create(sock, send_buf_size, recv_buf_size); 96 * If sock<0 then a socket is created, else sock is used. 97 * If the socket, sock is not bound to a port then svctcp_create 108 svctcp_create(sock, sendsize, recvsize) 109 register int sock; 119 if (sock == RPC_ANYSOCK) { 120 if ((sock = _socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) { 129 if (bindresvport(sock, &addr)) { 131 (void) _bind(sock, (struc 228 int sock; local 296 register int sock = xprt->xp_sock; local [all...] |
H A D | svc_udp.c | 93 * xprt = svcudp_create(sock); 95 * If sock<0 then a socket is created, else sock is used. 96 * If the socket, sock is not bound to a port then svcudp_create 105 svcudp_bufcreate(sock, sendsz, recvsz) 106 register int sock; 115 if (sock == RPC_ANYSOCK) { 116 if ((sock = _socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { 125 if (bindresvport(sock, &addr)) { 127 (void) _bind(sock, (struc [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_getsockname.c | 41 int syscall, int sock, struct sockaddr *name, socklen_t *namelen) 43 sysret_t rval; /* return value from get{sock|peer}name() */ 44 argdes_t argd[4]; /* arg descriptors for get{sock|peer}name() */ 48 adp = &argd[0]; /* sock argument */ 49 adp->arg_value = sock; 95 int sock, struct sockaddr *name, socklen_t *namelen) 98 return (_so_getsockname(sock, name, namelen, SOV_DEFAULT)); 100 return (get_sock_peer_name(Pr, SYS_getsockname, sock, name, namelen)); 108 int sock, struct sockaddr *name, socklen_t *namelen) 111 return (_so_getpeername(sock, nam 40 get_sock_peer_name(struct ps_prochandle *Pr, int syscall, int sock, struct sockaddr *name, socklen_t *namelen) argument 94 pr_getsockname(struct ps_prochandle *Pr, int sock, struct sockaddr *name, socklen_t *namelen) argument 107 pr_getpeername(struct ps_prochandle *Pr, int sock, struct sockaddr *name, socklen_t *namelen) argument 117 pr_getsockopt(struct ps_prochandle *Pr, int sock, int level, int optname, void *optval, int *optlen) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | eloop.c | 42 eloop_register_read_sock(int sock, argument 43 void (*handler)(int sock, void *eloop_ctx, 53 tmp[eloop.reader_count].sock = sock; 59 if (sock > eloop.max_sock) 60 eloop.max_sock = sock; 66 eloop_unregister_read_sock(int sock) argument 74 if (eloop.readers[i].sock == sock) 257 pfds[i].fd = eloop.readers[i].sock; [all...] |
H A D | eloop.h | 25 int sock; member in struct:eloop_sock
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | dev_net.c | 47 * RPC/mountd - nfs_mount(sock, ip, path) 85 static int net_getparams(int sock); 250 net_getparams(int sock) argument 263 bootp(sock, BOOTP_NONE); 276 if (rarp_getipaddress(sock)) { 283 if (bp_whoami(sock)) { 298 if (bp_getfile(sock, "gateway", &gateip, buf) == 0) { 315 if (bp_getfile(sock, "root", &rootip, rootpath)) {
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 127 send_ocsp_request(int sock, char *reqfile, char *hostname) argument 160 if ((n = write(sock, req_header, bytes)) < 0) { 167 if ((n = write(sock, buf, bytes)) < 0) { 216 get_encoded_response(int sock, KMF_RESPONSE_TYPE resptype, int filefd, argument 247 if ((sock_flag = fcntl(sock, F_GETFL, 0)) == -1) { 251 if (fcntl(sock, F_SETFL, sock_flag) == -1) { 256 pfd.fd = sock; 288 bytes = read(sock, buf + offset, buf_incre); 446 bytes = read(sock, buf + offset, buf_incre); 487 int sock, respf local 546 send_download_request(int sock, char *hostname, int port, boolean_t is_proxy, char *loc) argument 580 int sock; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | foreachaddr.c | 197 int sock; member in struct:__anon2530 214 P.sock = -1; 221 P.sock = socket (P.af, USE_TYPE, USE_PROTO); 222 if (P.sock < 0) { 231 code = ioctl (P.sock, SIOCGLIFNUM, &P.lifnum); 247 code = get_lifconf (P.af, P.sock, &P.buf_size, P.buf); 262 if (ioctl (P.sock, SIOCGLIFFLAGS, (char *)&lifreq) < 0) { 312 if (P.sock != -1) 323 if (P.sock >= 0) { 341 closesocket(P.sock); [all...] |
/illumos-gate/usr/src/lib/libsctp/common/ |
H A D | sctp.c | 66 sctp_bindx(int sock, void *addrs, int addrcnt, int flags) argument 90 return (setsockopt(sock, IPPROTO_SCTP, SCTP_ADD_ADDR, addrs, 93 return (setsockopt(sock, IPPROTO_SCTP, SCTP_REM_ADDR, addrs, 105 sctp_getpaddrs(int sock, sctp_assoc_t id, void **addrs) argument 123 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) { 141 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) { 166 sctp_getladdrs(int sock, sctp_assoc_t id, void **addrs) argument 184 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) { 202 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) { 227 sctp_opt_info(int sock, sctp_assoc_ argument 248 sctp_peeloff(int sock, sctp_assoc_t id) argument [all...] |
/illumos-gate/usr/src/lib/libwrap/ |
H A D | workarounds.c | 129 int fix_recvfrom(sock, buf, buflen, flags, from, fromlen) 130 int sock; 141 if ((ret = recvfrom(sock, buf, buflen, flags, from, fromlen)) >= 0) { 169 int fix_getpeername(sock, sa, len) 170 int sock; 177 if ((ret = getpeername(sock, sa, len)) >= 0
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | network.c | 114 setreuseaddr(int sock, int value) argument 116 return setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &value, sizeof(value)); 121 setv6only(int sock, int value) argument 123 return setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &value, sizeof(value)); 288 add_fd (struct socksetup *data, int sock, enum kdc_conn_type conntype, 310 newconn->fd = sock; 320 add_udp_fd (struct socksetup *data, int sock) 322 return add_fd(data, sock, CONN_UDP, process_packet); 326 add_tcp_listener_fd (struct socksetup *data, int sock) 328 return add_fd(data, sock, CONN_TCP_LISTENE 285 add_fd(struct socksetup *data, int sock, enum kdc_conn_type conntype, void (*service)(struct connection *, const char *, int)) argument 317 add_udp_fd(struct socksetup *data, int sock) argument 323 add_tcp_listener_fd(struct socksetup *data, int sock) argument 329 add_tcp_data_fd(struct socksetup *data, int sock) argument 349 setnbio(int sock) argument 366 int sock; local 505 int sock = -1, i; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | startup.c | 388 int sock; local 396 sock = socket(AF_INET6, SOCK_DGRAM, 0); 397 if (sock == -1) 400 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BOUND_IF, (char *)&ifindex, 408 if (setsockopt(sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, (char *)&hops, 415 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (char *)&hops, 422 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, (char *)&off, 431 if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, 441 if (setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, (char *)&on, 448 if (setsockopt(sock, SOL_SOCKE [all...] |
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-port.c | 108 sock_connect(int sock, char *host, int timeout) argument 164 if (connect(sock, (struct sockaddr *)&sin, sizeof (sin)) < 0) { 179 return (sock); 411 send_data_file(int sock, char *dfname, char *name) argument 430 if (send_lpd_message(sock, "\003%d %s\n", st.st_size, dfname) < 0) 435 if (sendfile(sock, fd, &off, st.st_size) != st.st_size) 441 if (send_lpd_message(sock, "") < 0) 449 send_control_file(int sock, char *data, int id) argument 479 if (send_lpd_message(sock, "\002%d cfA%.3d%s\n", len, id, host) < 0) 483 if (write(sock, dat 496 submit_job(int sock, char *printer, int job_id, char *path) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ipaddrsel.c | 76 int opt, status, sock, count; local 111 if ((sock = socket(PF_INET6, SOCK_DGRAM, 0)) == -1) { 120 status = setpolicy(sock, policy_table, count); 124 status = setpolicy(sock, NULL, 0); 128 status = printpolicy(sock); 132 (void) close(sock); 328 * setpolicy(sock, new_policy, count) 332 * the number of entries in the table; sock should be an open INET6 336 setpolicy(int sock, ip6_asp_t *new_policy, int count) argument 338 if (strioctl(sock, SIOCSIP6ADDRPOLIC 355 printpolicy(int sock) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socksyscalls.c | 173 getsonode(int sock, int *errorp, file_t **fpp) argument 179 if ((fp = getf(sock)) == NULL) { 187 releasef(sock); 202 releasef(sock); 557 bind(int sock, struct sockaddr *name, socklen_t namelen, int version) argument 563 sock, (void *)name, namelen)); 565 if ((so = getsonode(sock, &error, NULL)) == NULL) 577 releasef(sock); 597 releasef(sock); 608 listen(int sock, in argument 629 accept(int sock, struct sockaddr *name, socklen_t *namelenp, int version, int flags) argument 775 connect(int sock, struct sockaddr *name, socklen_t namelen, int version) argument 810 shutdown(int sock, int how, int version) argument 833 recvit(int sock, struct nmsghdr *msg, struct uio *uiop, int flags, socklen_t *namelenp, socklen_t *controllenp, int *flagsp) argument 952 recv(int sock, void *buffer, size_t len, int flags) argument 981 recvfrom(int sock, void *buffer, size_t len, int flags, struct sockaddr *name, socklen_t *namelenp) argument 1023 recvmsg(int sock, struct nmsghdr *msg, int flags) argument 1139 sendit(int sock, struct nmsghdr *msg, struct uio *uiop, int flags) argument 1226 send(int sock, void *buffer, size_t len, int flags) argument 1265 sendmsg(int sock, struct nmsghdr *msg, int flags) argument 1376 sendto(int sock, void *buffer, size_t len, int flags, struct sockaddr *name, socklen_t namelen) argument 1414 getpeername(int sock, struct sockaddr *name, socklen_t *namelenp, int version) argument 1451 getsockname(int sock, struct sockaddr *name, socklen_t *namelenp, int version) argument 1489 getsockopt(int sock, int level, int option_name, void *option_value, socklen_t *option_lenp, int version) argument 1541 setsockopt(int sock, int level, int option_name, void *option_value, socklen_t option_len, int version) argument 2969 recv32(int32_t sock, caddr32_t buffer, size32_t len, int32_t flags) argument 2975 recvfrom32(int32_t sock, caddr32_t buffer, size32_t len, int32_t flags, caddr32_t name, caddr32_t namelenp) argument 2983 send32(int32_t sock, caddr32_t buffer, size32_t len, int32_t flags) argument 2989 sendto32(int32_t sock, caddr32_t buffer, size32_t len, int32_t flags, caddr32_t name, socklen_t namelen) argument [all...] |