Searched refs:sock (Results 1 - 3 of 3) sorted by relevance

/bionic/libc/dns/resolv/
H A Dres_send.c161 static int connect_with_timeout(int sock, const struct sockaddr *nsap,
163 static int retrying_select(const int sock, fd_set *readset, fd_set *writeset,
944 connect_with_timeout(int sock, const struct sockaddr *nsap, socklen_t salen, int sec) argument
950 origflags = fcntl(sock, F_GETFL, 0);
951 fcntl(sock, F_SETFL, origflags | O_NONBLOCK);
953 res = __connect(sock, nsap, salen);
963 __libc_format_log(ANDROID_LOG_DEBUG, "libc", " %d send_vc\n", sock);
966 res = retrying_select(sock, &rset, &wset, &finish);
972 fcntl(sock, F_SETFL, origflags);
975 " %d connect_with_timeout returning %d\n", sock, re
981 retrying_select(const int sock, fd_set *readset, fd_set *writeset, const struct timespec *finish) argument
[all...]
/bionic/libc/dns/net/
H A Dgetaddrinfo.c417 int sock; local
436 sock = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
437 if (sock < 0) {
441 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
446 if (TEMP_FAILURE_RETRY(connect(sock,
449 close(sock);
456 proxy = fdopen(sock, "r+");
1779 int sock; local
1795 sock = socket(addr->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP);
1796 if (sock
[all...]
/bionic/libc/dns/
H A Dgethnamaddr.c538 int sock; local
542 sock = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
543 if (sock < 0) {
547 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
551 if (TEMP_FAILURE_RETRY(connect(sock,
554 close(sock);
558 return fdopen(sock, "r+");

Completed in 96 milliseconds