Searched refs:sock (Results 1 – 3 of 3) sorted by relevance
/bionic/libc/dns/resolv/ |
D | res_send.c | 161 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) in connect_with_timeout() argument 950 origflags = fcntl(sock, F_GETFL, 0); in connect_with_timeout() 951 fcntl(sock, F_SETFL, origflags | O_NONBLOCK); in connect_with_timeout() 953 res = __connect(sock, nsap, salen); in connect_with_timeout() 963 __libc_format_log(ANDROID_LOG_DEBUG, "libc", " %d send_vc\n", sock); in connect_with_timeout() 966 res = retrying_select(sock, &rset, &wset, &finish); in connect_with_timeout() 972 fcntl(sock, F_SETFL, origflags); in connect_with_timeout() 975 " %d connect_with_timeout returning %d\n", sock, res); in connect_with_timeout() [all …]
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 417 int sock; in android_getaddrinfo_proxy() local 436 sock = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in android_getaddrinfo_proxy() 437 if (sock < 0) { in android_getaddrinfo_proxy() 441 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); in android_getaddrinfo_proxy() 446 if (TEMP_FAILURE_RETRY(connect(sock, in android_getaddrinfo_proxy() 449 close(sock); in android_getaddrinfo_proxy() 456 proxy = fdopen(sock, "r+"); in android_getaddrinfo_proxy() 1779 int sock; in _find_src_addr() local 1795 sock = socket(addr->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP); in _find_src_addr() 1796 if (sock == -1) { in _find_src_addr() [all …]
|
/bionic/libc/dns/ |
D | gethnamaddr.c | 538 int sock; in android_open_proxy() local 542 sock = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in android_open_proxy() 543 if (sock < 0) { in android_open_proxy() 547 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); in android_open_proxy() 551 if (TEMP_FAILURE_RETRY(connect(sock, in android_open_proxy() 554 close(sock); in android_open_proxy() 558 return fdopen(sock, "r+"); in android_open_proxy()
|