HomeSort by: relevance | last modified time | path
    Searched defs:sockfd (Results 1 - 21 of 21) sorted by relevancy

  /src/external/ibm-public/postfix/dist/src/util/
vstream_popen.c 201 int sockfd[2]; local
214 if (duplex_pipe(sockfd) < 0)
219 (void) close(sockfd[0]);
220 (void) close(sockfd[1]);
224 if (close(sockfd[1]))
227 if (sockfd[0] != fd)
228 if (DUP2(sockfd[0], fd) < 0)
230 if (sockfd[0] >= 2 && close(sockfd[0]))
270 if (close(sockfd[0])
    [all...]
  /src/external/mit/libuv/dist/docs/code/uvwget/
main.c 13 curl_socket_t sockfd; member in struct:curl_context_s
16 curl_context_t *create_curl_context(curl_socket_t sockfd) {
21 context->sockfd = sockfd;
23 int r = uv_poll_init_socket(loop, &context->poll_handle, sockfd);
93 curl_multi_socket_action(curl_handle, context->sockfd, flags, &running_handles);
  /src/external/mit/libuv/dist/src/unix/
pipe.c 69 int sockfd; local
125 sockfd = err;
131 if (bind(sockfd, (struct sockaddr*)&saddr, addrlen)) {
137 uv__close(sockfd);
144 handle->io_watcher.fd = sockfd;
tcp.c 65 int sockfd; local
68 sockfd = uv__socket(domain, SOCK_STREAM, 0);
69 if (sockfd < 0)
70 return sockfd;
72 err = uv__stream_open((uv_stream_t*) handle, sockfd, flags);
74 uv__close(sockfd);
79 return maybe_bind_socket(sockfd);
86 int sockfd; local
92 sockfd = uv__stream_fd(handle);
93 if (sockfd == -1
    [all...]
sunos.c 782 int sockfd; local
807 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
808 if (sockfd < 0)
811 if (ioctl(sockfd, SIOCGARP, (char*)&arpreq) == -1) {
812 uv__close(sockfd);
816 uv__close(sockfd);
udp.c 312 struct sockaddr_in sockfd; local
313 unsigned int sockfd_len = sizeof(sockfd);
314 if (getsockname(fd, (struct sockaddr*) &sockfd, &sockfd_len) == -1)
316 if (sockfd.sin_family == AF_UNIX) {
os390.c 283 int sockfd; local
296 if (0 > (sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP)))
302 uv__close(sockfd);
309 if (ioctl(sockfd, SIOCGIFCONF6, &ifc) == -1) {
315 uv__close(sockfd);
336 uv__close(sockfd);
344 uv__close(sockfd);
373 uv__close(sockfd);
398 uv__close(sockfd);
405 int sockfd; local
    [all...]
aix.c 1118 int sockfd, sock6fd, inet6, i, r, size = 1; local
1132 if (0 > (sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP))) {
1142 if (ioctl(sockfd, SIOCGSIZIFCONF, &size) == -1) {
1153 if (ioctl(sockfd, SIOCGIFCONF, &ifc) == -1) {
1173 if (ioctl(sockfd, SIOCGIFFLAGS, &flg) == -1) {
1210 if (ioctl(sockfd, SIOCGIFFLAGS, &flg) == -1)
1240 if (ioctl(sockfd, SIOCGIFNETMASK, p) == -1)
1282 if (sockfd != -1)
1283 uv__close(sockfd);
core.c 507 int sockfd; local
511 sockfd = socket(domain, type | SOCK_NONBLOCK | SOCK_CLOEXEC, protocol);
512 if (sockfd != -1)
513 return sockfd;
519 sockfd = socket(domain, type, protocol);
520 if (sockfd == -1)
523 err = uv__nonblock(sockfd, 1);
525 err = uv__cloexec(sockfd, 1);
528 uv__close(sockfd);
535 setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on))
    [all...]
  /src/external/mpl/bind/dist/bin/named/
fuzz.c 62 int sockfd; local
94 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
95 RUNTIME_CHECK(sockfd != -1);
128 close(sockfd);
142 sent = sendto(sockfd, buf, length, 0,
150 (void)recvfrom(sockfd, buf, 65536, MSG_DONTWAIT, NULL, NULL);
161 close(sockfd);
272 int sockfd; local
338 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
339 RUNTIME_CHECK(sockfd != -1)
608 int sockfd; local
    [all...]
  /src/sys/arch/usermode/include/
thunk.h 131 int thunk_gdb_accept(int sockfd);
234 int sockfd; member in struct:__anon2159
  /src/usr.sbin/faithd/
faithd.c 89 static int sockfd = 0; variable
154 sockfd = socket(PF_ROUTE, SOCK_RAW, PF_UNSPEC);
155 if (sockfd < 0) {
321 sockfd = socket(PF_ROUTE, SOCK_RAW, PF_UNSPEC);
322 if (sockfd < 0) {
362 if (sockfd) {
363 pfd[1].fd = sockfd;
818 len = read(sockfd, msg, sizeof(msg));
830 (void)close(sockfd);
831 sockfd = 0
    [all...]
  /src/external/apache2/llvm/dist/clang/tools/libclang/
CIndexCodeCompletion.cpp 836 int sockfd = socket(AF_INET, SOCK_DGRAM, 0); local
837 if (sockfd < 0)
840 sendto(sockfd, res.data(), res.size(), 0,
842 close(sockfd);
  /src/external/bsd/libpcap/dist/
pcap-bpf.c 1900 int sockfd; local
1998 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
1999 if (sockfd != -1) {
2000 status = device_exists(sockfd,
2013 close(sockfd);
pcap-sita.c 323 int sockfd; local
343 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
347 if (connect(sockfd, (struct sockaddr *)u->serv_addr, sizeof(struct sockaddr_in)) < 0) {
351 if (flag == LIVE) u->fd = sockfd;
352 else u->find_fd = sockfd;
354 return sockfd; /* return the non-zero file descriptor as a 'success' indicator */
  /src/external/bsd/ntp/dist/ntpdate/
ntpdate.c 1326 SOCKET sockfd; local
1328 sockfd = socket(AF(dst), SOCK_DGRAM, 0);
1329 if (sockfd == -1) {
1333 if (connect(sockfd, &dst->sa, SOCKLEN(dst))) {
1334 closesocket(sockfd);
1337 closesocket(sockfd);
  /src/sys/arch/usermode/usermode/
thunk.c 989 rfb->sockfd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
990 if (rfb->sockfd == -1) {
1000 if (bind(rfb->sockfd, (struct sockaddr *)&sin, sizeof(sin)) == -1) {
1003 close(rfb->sockfd);
1007 if (listen(rfb->sockfd, 1) != 0) {
1010 close(rfb->sockfd);
1021 int sockfd; local
1025 sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
1026 if (sockfd < 0) {
1037 if (bind(sockfd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
    [all...]
  /src/external/apache2/mDNSResponder/dist/mDNSPosix/
mDNSPosix.c 1546 int sockfd = socket(AF_INET6, SOCK_DGRAM, 0); local
1547 if (sockfd >= 0)
1551 if (ioctl(sockfd, SIOCGIFHWADDR, &ifr) != -1)
1559 close(sockfd);
  /src/external/apache2/mDNSResponder/dist/mDNSShared/
dnssd_clientstub.c 174 #define DNSServiceRefValid(X) (dnssd_SocketValid((X)->sockfd) && (((X)->sockfd ^ (X)->validator) == ValidatorBits))
192 dnssd_sock_t sockfd; // Connected socket between client and daemon member in struct:_DNSServiceRef_t
666 // then sockfd could legitimately contain a failing value (e.g. dnssd_InvalidSocket)
667 if ((x->sockfd ^ x->validator) != ValidatorBits)
674 x->sockfd = dnssd_InvalidSocket;
730 (*ref), (*ref)->sockfd, (*ref)->validator, (*ref)->op);
760 sdr->sockfd = dnssd_InvalidSocket;
761 sdr->validator = sdr->sockfd ^ ValidatorBits;
792 sdr->sockfd = (*ref)->sockfd; // Inherit primary's socke
    [all...]
  /src/external/bsd/ntp/dist/ntpdc/
ntpdc.c 183 static SOCKET sockfd; /* fd socket is opened on */ variable
509 closesocket(sockfd);
539 sockfd = socket(ai->ai_family, SOCK_DGRAM, 0);
540 if (sockfd == INVALID_SOCKET) {
550 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF,
558 if (connect(sockfd, (struct sockaddr *)&hostaddr,
561 if (connect(sockfd, ai->ai_addr, ai->ai_addrlen) == -1)
586 if (send(sockfd, xdata, xdatalen, 0) == -1) {
667 FD_SET(sockfd, &fds);
668 n = select(sockfd+1, &fds, NULL, NULL, &tvo)
    [all...]
  /src/external/bsd/ntp/dist/ntpq/
ntpq.c 370 SOCKET sockfd; /* fd socket is opened on */ variable
778 closesocket(sockfd);
812 sockfd = socket(ai->ai_family, ai->ai_socktype,
814 if (sockfd == INVALID_SOCKET) {
824 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF,
833 (connect(sockfd, (struct sockaddr *)&hostaddr,
836 (connect(sockfd, (struct sockaddr *)ai->ai_addr,
911 if (send(sockfd, xdata, xdatalen, 0) == -1) {
989 FD_SET(sockfd, &fds);
990 n = select(sockfd+1, &fds, NULL, NULL, &tvo)
    [all...]

Completed in 58 milliseconds