/freebsd-9.3-release/usr.sbin/nscd/ |
H A D | singletons.h | 38 int sockfd; member in struct:runtime_env
|
H A D | nscdcli.h | 38 int sockfd; member in struct:nscd_connection_
|
H A D | nscdcli.c | 75 s_result = write(connection->sockfd, 112 s_result = read(connection->sockfd, 161 EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD, 167 result = (sendmsg(connection->sockfd, &cred_hdr, 0) == -1) ? -1 169 EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD, 211 retval->sockfd = client_socket; 216 EV_SET(&eventlist, retval->sockfd, EVFILT_WRITE, EV_ADD, 223 EV_SET(&eventlist, retval->sockfd, EVFILT_READ, EV_ADD, 238 close(connection->sockfd);
|
H A D | query.h | 79 int sockfd; /* the unix socket to read/write */ member in struct:query_state
|
H A D | nscd.c | 170 retval->sockfd = socket(PF_LOCAL, SOCK_STREAM, 0); 182 if (bind(retval->sockfd, (struct sockaddr *)&serv_addr, 184 close(retval->sockfd); 200 listen(retval->sockfd, -1); 201 fcntl(retval->sockfd, F_SETFL, O_NONBLOCK); 206 EV_SET(&eventlist, retval->sockfd, EVFILT_READ, EV_ADD | EV_ONESHOT, 221 close(env->sockfd); 503 if ((int)event_data->ident == env->sockfd) { 507 EV_SET(eventlist, s_runtime_env->sockfd,
|
H A D | query.c | 181 if (recvmsg(qstate->sockfd, &cred_hdr, 0) == -1) { 1190 result = read(qstate->sockfd, buf, nbytes); 1212 result = write(qstate->sockfd, buf, nbytes); 1224 init_query_state(int sockfd, size_t kevent_watermark, uid_t euid, gid_t egid) argument 1232 retval->sockfd = sockfd;
|
/freebsd-9.3-release/tools/regression/kqueue/ |
H A D | read.c | 22 int sockfd[2]; variable 31 if (read(sockfd[0], &buf[0], 1) < 1) 39 if (write(sockfd[1], ".", 1) < 1) 51 EV_SET(&kev, sockfd[0], EVFILT_READ, EV_ADD, 0, 0, &sockfd[0]); 66 EV_SET(&kev, sockfd[0], EVFILT_READ, EV_ADD, 0, 0, &sockfd[0]); 95 EV_SET(&kev, sockfd[0], EVFILT_READ, EV_ADD | EV_CLEAR, 0, 0, &sockfd[0]); 112 EV_SET(&kev, sockfd[ [all...] |
/freebsd-9.3-release/tools/tools/nxge/ |
H A D | xge_info.c | 62 if((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 144 if(ioctl(sockfd, SIOCGPRIVATE_0, &ifreqp) < 0) { 159 if(ioctl(sockfd, SIOCGPRIVATE_0, &ifreqp) < 0) { 202 if(ioctl(sockfd, SIOCGPRIVATE_0, &ifreqp) < 0) { 240 if(ioctl(sockfd, SIOCGPRIVATE_0, &ifreqp) < 0) { 276 if(ioctl(sockfd, SIOCGPRIVATE_0, &ifreqp) < 0) { 317 if(ioctl(sockfd, SIOCGPRIVATE_0, &ifreqp) < 0) { 363 if(ioctl(sockfd, SIOCGPRIVATE_1, &ifreqp) < 0) { 403 if(ioctl(sockfd, SIOCGPRIVATE_1, &ifreqp) < 0) { 445 if(ioctl(sockfd, SIOCGPRIVATE_ [all...] |
H A D | xge_info.h | 78 int sockfd, indexer, buffer_size = 0; variable
|
/freebsd-9.3-release/contrib/ofed/libibverbs/examples/ |
H A D | rc_pingpong.c | 149 int sockfd = -1; local 165 sockfd = socket(t->ai_family, t->ai_socktype, t->ai_protocol); 166 if (sockfd >= 0) { 167 if (!connect(sockfd, t->ai_addr, t->ai_addrlen)) 169 close(sockfd); 170 sockfd = -1; 177 if (sockfd < 0) { 184 if (write(sockfd, msg, sizeof msg) != sizeof msg) { 189 if (read(sockfd, msg, sizeof msg) != sizeof msg) { 195 write(sockfd, "don 224 int sockfd = -1, connfd; local [all...] |
H A D | uc_pingpong.c | 137 int sockfd = -1; local 153 sockfd = socket(t->ai_family, t->ai_socktype, t->ai_protocol); 154 if (sockfd >= 0) { 155 if (!connect(sockfd, t->ai_addr, t->ai_addrlen)) 157 close(sockfd); 158 sockfd = -1; 165 if (sockfd < 0) { 172 if (write(sockfd, msg, sizeof msg) != sizeof msg) { 177 if (read(sockfd, msg, sizeof msg) != sizeof msg) { 183 write(sockfd, "don 212 int sockfd = -1, connfd; local [all...] |
H A D | ud_pingpong.c | 136 int sockfd = -1; local 152 sockfd = socket(t->ai_family, t->ai_socktype, t->ai_protocol); 153 if (sockfd >= 0) { 154 if (!connect(sockfd, t->ai_addr, t->ai_addrlen)) 156 close(sockfd); 157 sockfd = -1; 164 if (sockfd < 0) { 171 if (write(sockfd, msg, sizeof msg) != sizeof msg) { 176 if (read(sockfd, msg, sizeof msg) != sizeof msg) { 182 write(sockfd, "don 210 int sockfd = -1, connfd; local [all...] |
H A D | srq_pingpong.c | 158 int sockfd = -1; local 174 sockfd = socket(t->ai_family, t->ai_socktype, t->ai_protocol); 175 if (sockfd >= 0) { 176 if (!connect(sockfd, t->ai_addr, t->ai_addrlen)) 178 close(sockfd); 179 sockfd = -1; 186 if (sockfd < 0) { 194 if (write(sockfd, msg, sizeof msg) != sizeof msg) { 207 r = read(sockfd, msg + n, sizeof msg - n); 222 write(sockfd, "don 246 int sockfd = -1, connfd; local [all...] |
/freebsd-9.3-release/tools/tools/vxge/ |
H A D | vxge_info.c | 36 static int sockfd; variable 106 sockfd = socket(AF_INET, SOCK_DGRAM, 0); 107 if (sockfd < 0) { 312 err = ioctl(sockfd, SIOCGPRIVATE_1, &ifr); 345 err = ioctl(sockfd, SIOCGPRIVATE_1, &ifr); 377 err = ioctl(sockfd, SIOCGPRIVATE_1, &ifr); 410 err = ioctl(sockfd, SIOCGPRIVATE_1, &ifr); 449 err = ioctl(sockfd, SIOCGPRIVATE_1, &ifr); 488 err = ioctl(sockfd, SIOCGPRIVATE_1, &ifr); 511 err = ioctl(sockfd, SIOCGPRIVATE_ [all...] |
/freebsd-9.3-release/lib/libstand/ |
H A D | bootparam.c | 107 bp_whoami(sockfd) 108 int sockfd; 139 if (!(d = socktodesc(sockfd))) { 140 RPC_PRINTF(("bp_whoami: bad socket. %d\n", sockfd)); 236 bp_getfile(sockfd, key, serv_addr, pathname) 237 int sockfd; 256 if (!(d = socktodesc(sockfd))) { 257 RPC_PRINTF(("bp_getfile: bad socket. %d\n", sockfd));
|
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/ |
H A D | proto_tls.c | 269 tls_loop(int sockfd, SSL *tcpssl) argument 279 FD_SET(sockfd, &fds); 281 maxfd = MAX(sockfd, tcpfd); 289 if (FD_ISSET(sockfd, &fds)) 290 tcp_recv_ssl_send(sockfd, tcpssl); 292 ssl_recv_tcp_send(tcpssl, sockfd); 346 int sockfd, tcpfd; local 356 sockfd = startfd; 412 nonblock(sockfd); 422 switch (send(sockfd, 571 int error, sockfd; local 657 int sockfd, tcpfd, ret; local 712 int startfd, sockfd, tcpfd, safefd; local [all...] |
/freebsd-9.3-release/lib/libc/include/ |
H A D | nscachedcli.h | 63 int sockfd; member in struct:cached_connection_
|
/freebsd-9.3-release/lib/libc/net/ |
H A D | nscachedcli.c | 78 s_result = _sendto(connection->sockfd, data + result, 121 s_result = _read(connection->sockfd, data + result, 172 EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD, 179 result = (_sendmsg(connection->sockfd, &cred_hdr, 181 EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD, 222 retval->sockfd = client_socket; 227 EV_SET(&eventlist, retval->sockfd, EVFILT_WRITE, EV_ADD, 0, 0, NULL); 233 EV_SET(&eventlist, retval->sockfd, EVFILT_READ, EV_ADD, 0, 0, NULL); 244 _close(connection->sockfd);
|
/freebsd-9.3-release/tools/regression/sockets/unix_passfd/ |
H A D | unix_passfd.c | 97 sendfd(const char *test, int sockfd, int sendfd) argument 127 len = sendmsg(sockfd, &msghdr, 0); 135 recvfd(const char *test, int sockfd, int *recvfd) argument 169 len = recvmsg(sockfd, &msghdr, 0);
|
/freebsd-9.3-release/usr.sbin/faithd/ |
H A D | faithd.c | 96 static int sockfd = 0; variable 166 sockfd = socket(PF_ROUTE, SOCK_RAW, PF_UNSPEC); 167 if (sockfd < 0) { 329 sockfd = socket(PF_ROUTE, SOCK_RAW, PF_UNSPEC); 330 if (sockfd < 0) { 384 if (sockfd) { 386 pfd[1].fd = sockfd; 389 if (sockfd >= FD_SETSIZE) 391 FD_SET(sockfd, &rfds); 392 maxfd = (maxfd < sockfd) [all...] |
/freebsd-9.3-release/contrib/ntp/ntpdc/ |
H A D | ntpdc.c | 181 static SOCKET sockfd; /* fd socket is opened on */ variable 480 closesocket(sockfd); 510 sockfd = socket(ai->ai_family, SOCK_DGRAM, 0); 511 if (sockfd == INVALID_SOCKET) { 521 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, 529 if (connect(sockfd, (struct sockaddr *)&hostaddr, 532 if (connect(sockfd, ai->ai_addr, ai->ai_addrlen) == -1) 557 if (send(sockfd, xdata, xdatalen, 0) == -1) { 638 FD_SET(sockfd, &fds); 639 n = select(sockfd [all...] |
/freebsd-9.3-release/crypto/openssh/ |
H A D | sshconnect.c | 357 timeout_connect(int sockfd, const struct sockaddr *serv_addr, argument 368 result = connect(sockfd, serv_addr, addrlen); 372 set_nonblock(sockfd); 373 rc = connect(sockfd, serv_addr, addrlen); 375 unset_nonblock(sockfd); 384 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), 386 FD_SET(sockfd, fdset); 390 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); 408 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, 418 unset_nonblock(sockfd); [all...] |
/freebsd-9.3-release/contrib/libpcap/ |
H A D | pcap-sita.c | 312 int sockfd; local 332 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 336 if (connect(sockfd, (struct sockaddr *)u->serv_addr, sizeof(struct sockaddr_in)) < 0) { 340 if (flag == LIVE) u->fd = sockfd; 341 else u->find_fd = sockfd; 343 return sockfd; /* return the non-zero file descriptor as a 'success' indicator */
|
/freebsd-9.3-release/contrib/ntp/ntpq/ |
H A D | ntpq.c | 345 SOCKET sockfd; /* fd socket is opened on */ variable 699 closesocket(sockfd); 733 sockfd = socket(ai->ai_family, ai->ai_socktype, 735 if (sockfd == INVALID_SOCKET) { 745 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, 754 (connect(sockfd, (struct sockaddr *)&hostaddr, 757 (connect(sockfd, (struct sockaddr *)ai->ai_addr, 821 if (send(sockfd, xdata, xdatalen, 0) == -1) { 896 FD_SET(sockfd, &fds); 897 n = select(sockfd [all...] |
/freebsd-9.3-release/contrib/ntp/ntpdate/ |
H A D | ntpdate.c | 1321 SOCKET sockfd; local 1323 sockfd = socket(AF(dst), SOCK_DGRAM, 0); 1324 if (sockfd == -1) { 1328 if (connect(sockfd, &dst->sa, SOCKLEN(dst))) { 1329 closesocket(sockfd); 1332 closesocket(sockfd);
|