Home | History | Annotate | Download | only in mDNSPosix

Lines Matching defs:sockfd

95 	int sockfd = -1;
104 sockfd = socket(AF_INET6, SOCK_DGRAM, 0);
105 if (sockfd < 0) {
174 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) {
207 if (sockfd != -1) {
208 assert(close(sockfd) == 0);
218 int sockfd, sockf6, len, lastlen, flags, myflags;
235 sockfd = -1;
240 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
241 if (sockfd < 0) {
254 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
297 if (ioctl(sockfd, SIOCGIFFLAGS, &ifrcopy) < 0) {
321 if ( 0 >= ioctl(sockfd, SIOCGIFINDEX, &ifrcopy))
342 if (ioctl(sockfd, SIOCGIFNETMASK, &ifrcopy) < 0) {
372 if (ioctl(sockfd, SIOCGIFBRDADDR, &ifrcopy) < 0) {
391 if (ioctl(sockfd, SIOCGIFDSTADDR, &ifrcopy) < 0) {
475 if (sockfd != -1) {
476 junk = close(sockfd);