/osnet-11/usr/src/lib/libdscp/ |
H A D | libdscp.h | 60 int dscpBind(int domain, int sockfd, int port); 61 int dscpSecure(int domain, int sockfd);
|
H A D | libdscp.c | 64 dscpBind(int domain_id, int sockfd, int port) argument 73 if ((sockfd < 0) || (port >= IPPORT_RESERVED)) { 99 if (bind(sockfd, (struct sockaddr *)&addr, len) < 0) { 113 if (bind(sockfd, (struct sockaddr *)&addr6, len6) < 0) { 134 dscpSecure(int domain_id, int sockfd) argument 139 if (sockfd < 0) { 157 if (setsockopt(sockfd, IPPROTO_IP, IP_SEC_OPT, (const char *)&opt, 245 int sockfd; local 266 if ((sockfd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) { 275 if (ioctl(sockfd, SIOCGLIFFLAG [all...] |
/osnet-11/usr/src/lib/libstmfproxy/common/ |
H A D | stmftransport.c | 53 int sockfd; member in struct:_s_handle 63 return (recv(sh->sockfd, buf, len, MSG_WAITALL)); 71 return (send(sh->sockfd, buf, len, 0)); 122 sh->sockfd = new_sfd; 171 sh->sockfd = sfd;
|
/osnet-11/usr/src/lib/auditd_plugins/remote/ |
H A D | transport.c | 52 static int sockfd = -1; variable 188 if (send_token(&sockfd, &out_buf) < 0) { 193 if (recv_token(sockfd, &in_buf) < 0) { 356 if (send_token(&sockfd, &send_tok) < 0) { 383 if (recv_token(sockfd, &recv_tok) < 0) { 503 connect_timeout(int sockfd, struct sockaddr *name, int namelen) argument 512 flags = fcntl(sockfd, F_GETFL, 0); 513 if (fcntl(sockfd, F_SETFL, flags | O_NONBLOCK) == -1) { 516 if (connect(sockfd, name, namelen)) { 523 fds.fd = sockfd; [all...] |
/osnet-11/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientstub.c | 242 dnssd_sock_t sockfd; // connected socket between client and daemon member in struct:_DNSServiceRef_t 384 sdr->sockfd = socket(AF_DNSSD, SOCK_STREAM, 0); 385 if (sdr->sockfd == dnssd_InvalidSocket) { free(sdr); return NULL; } 396 int err = connect(sdr->sockfd, (struct sockaddr *) &saddr, sizeof(saddr)); 407 dnssd_close(sdr->sockfd); 408 sdr->sockfd = dnssd_InvalidSocket; 427 if (!hdr || sdr->sockfd < 0) return kDNSServiceErr_Unknown; 472 if (write_all(sdr->sockfd, msg, datalen + sizeof(ipc_msg_hdr)) < 0) 477 if (reuse_sd) errsd = sdr->sockfd; 513 return (int) sdRef->sockfd; [all...] |
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | os-ip.c | 244 nsldapi_os_connect_with_to(LBER_SOCKET sockfd, struct sockaddr *saptr, argument 272 ioctlsocket(sockfd, FIONBIO, &nonblock); 274 flags = fcntl(sockfd, F_GETFL, 0); 275 fcntl(sockfd, F_SETFL, flags | O_NONBLOCK); 279 if ((n = connect(sockfd, saptr, salen)) < 0) 298 FD_SET(sockfd, &rset); 336 if ((n = select(sockfd +1, &rset, &wset, &eset, 342 if (FD_ISSET(sockfd, &wset) || FD_ISSET(sockfd, &rset)) { 344 if (getsockopt(sockfd, SOL_SOCKE [all...] |
/osnet-11/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 63 int sockfd, opt, herrno; local 77 if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) < 0) { 82 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (char *)&opt, 84 (void) close(sockfd); 88 if (connect(sockfd, (struct sockaddr *)&sin, sizeof (sin)) < 0) { 89 (void) close(sockfd); 93 return (sockfd);
|
/osnet-11/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 194 int sockfd; local 217 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 223 pfd[0].fd = sockfd; 228 (void) close(sockfd); 243 if (sendmsg(sockfd, msg, 0) < 0) { 260 if (recvfrom(sockfd, reply, mtu, 0, NULL, NULL) < 0) { 302 (void) close(sockfd); 571 SLPError slp_tcp_read(int sockfd, char **reply) { argument 581 if ((nread = read(sockfd, p, 5)) < 0) { 607 if ((nread = read(sockfd, [all...] |
/osnet-11/usr/src/lib/nsswitch/mdns/common/ |
H A D | mdns_common.c | 74 int sockfd; local 91 (sockfd = DNSServiceRefSockFD(ref)) == NULL) { 100 FD_SET(sockfd, &readfds); 105 ret = select(sockfd + 1, &readfds, NULL, NULL, &tv); 106 if (!((ret > 0) && FD_ISSET(sockfd, &readfds) &&
|
/osnet-11/usr/src/lib/libecp/common/ |
H A D | ecp_impl.c | 221 struct ether_addr *src_addr, uint16_t subtype, int sockfd, 244 ecp_instp->ecp_sockfd = sockfd; 220 ecp_init(struct ether_addr *dst_addr, struct ether_addr *src_addr, uint16_t subtype, int sockfd, int num_of_tries, ecp_ulp_cb_t ecp_ulp_cb, void *arg, int log, int *errorp) argument
|