/illumos-gate/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;
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | listen.c | 120 open_socket(int port_no, int *sockfd) argument 129 *sockfd = socket(AF_INET, SOCK_STREAM, 0); 130 if (*sockfd < 0) { 140 if (setsockopt(*sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on))) { 159 if (bind(*sockfd, (struct sockaddr *)&addr, 187 if (listen(*sockfd, VNTSD_MAX_SOCKETS) == -1) { 194 D1(stderr, "t@%d open_socket() sockfd=%d\n", thr_self(), *sockfd); 200 create_console_thread(vntsd_group_t *groupp, int sockfd) argument 209 groupp->tcp_port, sockfd); [all...] |
H A D | vntsd.h | 266 int sockfd; /* connection socket */ member in struct:vntsd_client 302 int sockfd; /* listen socket */ member in struct:vntsd_group
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | tcp_misc.c | 146 tcp_print(int sockfd, caddr_t pa, np_tcpjob_t *tcpjob) argument 156 if ((xfer = xfer_file(sockfd, pa, 161 if ((shutdown(sockfd, 1)) != 0) { 177 nr = read(sockfd, &c, 1);
|
H A D | net.c | 52 bsd_print(int sockfd, caddr_t pa, np_bsdjob_t * bsdjob) argument 64 if (netpr_send_message(sockfd, "%c%s\n", XFER_REQUEST, 74 if ((xfer_cfAfile(sockfd, bsdjob->np_cfAfile, 87 if ((netpr_send_message(sockfd, "%c%d %s\n", XFER_DATA, filesize, 96 if ((xfer = xfer_file(sockfd, pa, filesize, bsdjob->np_timeout)) != 0) { 101 if ((net = netpr_send_message(sockfd, "", NULL)) != 0) { 116 if ((xfer_cfAfile(sockfd, bsdjob->np_cfAfile, 131 xfer_file(int sockfd, caddr_t pa, int filesize, int seed) argument 152 nw = write(sockfd, pa, ctr); 195 xfer_cfAfile(int sockfd, cha argument [all...] |
H A D | netpr.c | 168 int sockfd; local 405 if ((sockfd = net_open(destination, 20)) < 0) { 415 if ((sockfd = tcp_open(destination, tcpjob, 20)) == -1) { 428 if ((setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, 434 if ((jobstatus = bsd_print(sockfd, pa, bsdjob)) != 0) { 444 tcp_print(sockfd, pa, tcpjob)) != 0) { 455 (void) close(sockfd);
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-misc.c | 80 recvfd(int sockfd) argument 87 if (ioctl(sockfd, I_RECVFD, &recv_fd) == 0) 115 if (recvmsg(sockfd, &msg, 0) < 0)
|
H A D | lpd-port.c | 62 sendfd(int sockfd, int fd) argument 64 syslog(LOG_DEBUG, "sendfd(%d, %d)", sockfd, fd); 67 return (ioctl(sockfd, I_SENDFD, fd)); 98 return (sendmsg(sockfd, &msg, 0));
|
/illumos-gate/usr/src/lib/libdscp/ |
H A D | libdscp.c | 66 dscpBind(int domain_id, int sockfd, int port) argument 75 if ((sockfd < 0) || (port >= IPPORT_RESERVED)) { 101 if (bind(sockfd, (struct sockaddr *)&addr, len) < 0) { 115 if (bind(sockfd, (struct sockaddr *)&addr6, len6) < 0) { 136 dscpSecure(int domain_id, int sockfd) argument 141 if (sockfd < 0) { 159 if (setsockopt(sockfd, IPPROTO_IP, IP_SEC_OPT, (const char *)&opt, 247 int sockfd; local 268 if ((sockfd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) { 277 if (ioctl(sockfd, SIOCGLIFFLAG [all...] |
/illumos-gate/usr/src/lib/print/mod_ipp/ |
H A D | mod_ipp.c | 211 int sockfd = -1; local 310 (void) apr_os_sock_get(&sockfd, csd); 313 sockfd = ap_bfileno(r->connection->client, B_RD); 315 if (sockfd != -1) { 317 PAPI_ATTR_EXCL, "peer-socket", sockfd);
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_eng.c | 377 int eidx, cidx, sockfd; local 452 sockfd = vs_eng_connect(eng_ctx->vse_host, eng_ctx->vse_port); 455 if (sockfd == -1) { 457 sockfd = vs_eng_connect(eng_ctx->vse_host, eng_ctx->vse_port); 460 if (sockfd == -1) { 489 cxn->vsc_sockfd = sockfd; 490 eng_ctx->vse_sockfd = sockfd; 695 * Returns: sockfd or -1 (error) 700 int rc, sockfd, opt_nodelay, opt_keepalive, opt_reuseaddr, err_num; local 704 if ((sockfd 755 nbio_connect(int sockfd, const struct sockaddr *sa, int sa_len) argument [all...] |
/illumos-gate/usr/src/lib/nsswitch/mdns/common/ |
H A D | mdns_common.c | 77 int sockfd; local 94 (sockfd = DNSServiceRefSockFD(ref)) == NULL) { 102 FD_SET(sockfd, &readfds); 107 ret = select(sockfd + 1, &readfds, NULL, NULL, &tv); 108 if (!((ret > 0) && FD_ISSET(sockfd, &readfds) &&
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 197 int sockfd; local 220 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 226 pfd[0].fd = sockfd; 231 (void) close(sockfd); 246 if (sendmsg(sockfd, msg, 0) < 0) { 263 if (recvfrom(sockfd, reply, mtu, 0, NULL, NULL) < 0) { 305 (void) close(sockfd); 574 SLPError slp_tcp_read(int sockfd, char **reply) { argument 584 if ((nread = read(sockfd, p, 5)) < 0) { 610 if ((nread = read(sockfd, [all...] |
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 68 int sockfd, opt, herrno; local 82 if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) < 0) { 87 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (char *)&opt, 89 (void) close(sockfd); 93 if (connect(sockfd, (struct sockaddr *)&sin, sizeof (sin)) < 0) { 94 (void) close(sockfd); 98 return (sockfd);
|
/illumos-gate/usr/src/lib/auditd_plugins/remote/ |
H A D | transport.c | 54 static int sockfd = -1; variable 190 if (send_token(&sockfd, &out_buf) < 0) { 195 if (recv_token(sockfd, &in_buf) < 0) { 357 if (send_token(&sockfd, &send_tok) < 0) { 385 if (recv_token(sockfd, &recv_tok) < 0) { 507 connect_timeout(int sockfd, struct sockaddr *name, int namelen) argument 516 flags = fcntl(sockfd, F_GETFL, 0); 517 if (fcntl(sockfd, F_SETFL, flags | O_NONBLOCK) == -1) { 520 if (connect(sockfd, name, namelen)) { 526 fds.fd = sockfd; [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.c | 97 int sockfd = -1; local 106 sockfd = socket(AF_INET6, SOCK_DGRAM, 0); 107 if (sockfd < 0) { 171 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) { 205 if (sockfd != -1) { 206 assert(close(sockfd) == 0); 238 select_src_ifi_info_solaris(int sockfd, int numifs, argument 274 if (ioctl(sockfd, SIOCGLIFFLAGS, &lifrcopy) < 0) { 361 int sockfd; local 378 sockfd 529 int sockfd, sockf6, len, lastlen, flags, myflags; local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | os-ip.c | 245 nsldapi_os_connect_with_to(LBER_SOCKET sockfd, struct sockaddr *saptr, argument 273 ioctlsocket(sockfd, FIONBIO, &nonblock); 275 flags = fcntl(sockfd, F_GETFL, 0); 276 fcntl(sockfd, F_SETFL, flags | O_NONBLOCK); 280 if ((n = connect(sockfd, saptr, salen)) < 0) 299 FD_SET(sockfd, &rset); 337 if ((n = select(sockfd +1, &rset, &wset, &eset, 343 if (FD_ISSET(sockfd, &wset) || FD_ISSET(sockfd, &rset)) { 345 if (getsockopt(sockfd, SOL_SOCKE [all...] |
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 258 int sockfd = -1; local 265 if ((sockfd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { 275 if (connect(sockfd, (struct sockaddr *)&servaddr, 280 masterfd = sockfd; 325 (void) close(sockfd);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 262 int sockfd; local 357 sockfd = (af == AF_INET) ? ifsock_v4 : ifsock_v6; 360 if (ioctl(sockfd, SIOCGLIFFLAGS, &lifreq) == -1) { 384 if (ioctl(sockfd, SIOCGLIFGROUPNAME, &lifreq) == -1) {
|
/illumos-gate/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientstub.c | 134 #define DNSServiceRefValid(X) (dnssd_SocketValid((X)->sockfd) && (((X)->sockfd ^ (X)->validator) == ValidatorBits)) 146 dnssd_sock_t sockfd; // Connected socket between client and daemon member in struct:_DNSServiceRef_t 408 // then sockfd could legitimately contain a failing value (e.g. dnssd_InvalidSocket) 409 if ((x->sockfd ^ x->validator) != ValidatorBits) 412 syslog(LOG_WARNING, "dnssd_clientstub attempt to dispose invalid DNSServiceRef %p %08X %08X", x, x->sockfd, x->validator); 419 x->sockfd = dnssd_InvalidSocket; 470 (*ref), (*ref)->sockfd, (*ref)->validator, (*ref)->op); 497 sdr->sockfd = dnssd_InvalidSocket; 498 sdr->validator = sdr->sockfd [all...] |