Lines Matching refs:sockfd
283 int sockfd; in uv__interface_addresses_v6() local
296 if (0 > (sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP))) in uv__interface_addresses_v6()
302 uv__close(sockfd); in uv__interface_addresses_v6()
309 if (ioctl(sockfd, SIOCGIFCONF6, &ifc) == -1) { in uv__interface_addresses_v6()
315 uv__close(sockfd); in uv__interface_addresses_v6()
336 uv__close(sockfd); in uv__interface_addresses_v6()
344 uv__close(sockfd); in uv__interface_addresses_v6()
373 uv__close(sockfd); in uv__interface_addresses_v6()
398 uv__close(sockfd); in uv__interface_addresses_v6()
405 int sockfd; in uv_interface_addresses() local
429 sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP); in uv_interface_addresses()
430 if (0 > sockfd) { in uv_interface_addresses()
441 uv__close(sockfd); in uv_interface_addresses()
447 if (ioctl(sockfd, SIOCGIFCONF, &ifc) == -1) { in uv_interface_addresses()
451 uv__close(sockfd); in uv_interface_addresses()
470 if (ioctl(sockfd, SIOCGIFFLAGS, &flg) == -1) { in uv_interface_addresses()
474 uv__close(sockfd); in uv_interface_addresses()
486 uv__close(sockfd); in uv_interface_addresses()
498 uv__close(sockfd); in uv_interface_addresses()
524 if (ioctl(sockfd, SIOCGIFFLAGS, &flg) == -1) { in uv_interface_addresses()
527 uv__close(sockfd); in uv_interface_addresses()
546 uv__close(sockfd); in uv_interface_addresses()
556 if (ioctl(sockfd, SIOCGIFNETMASK, p) == -1) { in uv_interface_addresses()
559 uv__close(sockfd); in uv_interface_addresses()
573 uv__close(sockfd); in uv_interface_addresses()