/freebsd-11.0-release/contrib/libpcap/ |
H A D | pcap-sita.c | 307 int sockfd; local 327 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 331 if (connect(sockfd, (struct sockaddr *)u->serv_addr, sizeof(struct sockaddr_in)) < 0) { 335 if (flag == LIVE) u->fd = sockfd; 336 else u->find_fd = sockfd; 338 return sockfd; /* return the non-zero file descriptor as a 'success' indicator */
|
H A D | pcap-bpf.c | 1498 int sockfd; local 1624 sockfd = socket(AF_INET, SOCK_DGRAM, 0); 1625 if (sockfd != -1) { 1628 if (ioctl(sockfd, SIOCGIFFLAGS, 1644 close(sockfd);
|
/freebsd-11.0-release/usr.sbin/nscd/ |
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-11.0-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, 832 if (send(sockfd, xdata, xdatalen, 0) == -1) { 910 FD_SET(sockfd, &fds); 911 n = select(sockfd [all...] |
H A D | libntpq.c | 269 return closesocket(sockfd);
|
/freebsd-11.0-release/contrib/ntp/ntpdate/ |
H A D | ntpdate.c | 1323 SOCKET sockfd; local 1325 sockfd = socket(AF(dst), SOCK_DGRAM, 0); 1326 if (sockfd == -1) { 1330 if (connect(sockfd, &dst->sa, SOCKLEN(dst))) { 1331 closesocket(sockfd); 1334 closesocket(sockfd);
|
/freebsd-11.0-release/sys/netinet/libalias/ |
H A D | alias_db.c | 326 int sockfd; /* socket descriptor */ member in struct:alias_link 647 if (GetSocket(la, port_net, &lnk->sockfd, lnk->link_type)) { 674 GetSocket(struct libalias *la, u_short port_net, int *sockfd, int link_type) argument 696 fprintf(stderr, "socket() error %d\n", *sockfd); 709 *sockfd = sock; 881 if (lnk->sockfd != -1) { 883 close(lnk->sockfd); 949 lnk->sockfd = -1;
|
/freebsd-11.0-release/contrib/ntp/sntp/libevent/ |
H A D | util-internal.h | 444 evutil_socket_t evutil_accept4_(evutil_socket_t sockfd, struct sockaddr *addr,
|
H A D | evutil.c | 2531 evutil_accept4_(evutil_socket_t sockfd, struct sockaddr *addr, argument 2536 result = accept4(sockfd, addr, addrlen, flags); 2546 result = accept(sockfd, addr, addrlen);
|
/freebsd-11.0-release/sys/kern/ |
H A D | kern_sendfile.c | 517 vn_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, argument 544 error = sendfile_getsock(td, sockfd, &sock_fp, &so); 864 error = kern_writev(td, sockfd, trl_uio);
|
H A D | kern_descrip.c | 3957 badfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, argument 4043 invfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, argument
|
/freebsd-11.0-release/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks2.c | 1409 WRAPPER2(int, bind, int sockfd, struct sockaddr *addr, socklen_t addrlen) argument 1413 return bind (sockfd, addr, addrlen); 1417 WRAPPER2(int, connect, int sockfd, const struct sockaddr *addr, argument 1423 return connect (sockfd, addr, addrlen);
|
/freebsd-11.0-release/contrib/ofed/libsdp/src/ |
H A D | port.c | 121 typedef int (*connect_func_t) (int sockfd, 127 typedef int (*bind_func_t) (int sockfd,
|
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors.inc | 2193 INTERCEPTOR(int, getsockopt, int sockfd, int level, int optname, void *optval, 2196 COMMON_INTERCEPTOR_ENTER(ctx, getsockopt, sockfd, level, optname, optval, 2202 int res = REAL(getsockopt)(sockfd, level, optname, optval, optlen); 2341 INTERCEPTOR(int, getpeername, int sockfd, void *addr, unsigned *addrlen) { 2343 COMMON_INTERCEPTOR_ENTER(ctx, getpeername, sockfd, addr, addrlen); 2349 int res = REAL(getpeername)(sockfd, addr, addrlen);
|