Lines Matching defs:sockfd
2781 int sockfd = -1;
2819 sockfd = socket(PF_ROUTE, SOCK_RAW, 0);
2820 if (sockfd < 0)
2825 if (write(sockfd, (char *)&m_rtmsg, l) < 0)
2831 l = read(sockfd, (char *)&m_rtmsg, sizeof(m_rtmsg));
2833 close(sockfd);
2834 sockfd = -1;
2883 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
2884 if (sockfd < 0)
2894 if (ioctl(sockfd, SIOCGIFNETMASK, (char *)&ifr) < 0)
2899 close(sockfd);
2900 sockfd = -1;
2915 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
2916 if (sockfd < 0)
2925 if (ioctl(sockfd, SIOCGIFCONF, (char *)&ifc) < 0)
2930 close(sockfd);
2931 sockfd = -1;
2953 if (sockfd >= 0)
2954 close(sockfd);