Home | History | Annotate | Download | only in resolv

Lines Matching defs:EXT

133 #define EXT(res) ((res)->_u._ext)
251 if (EXT(statp).ext == NULL)
403 if (EXT(statp).nscount != 0) {
408 if (EXT(statp).nscount != statp->nscount) {
414 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) {
419 if (EXT(statp).nssocks[ns] == -1)
422 if (getpeername(EXT(statp).nssocks[ns],
436 EXT(statp).nscount = 0;
443 if (EXT(statp).nscount == 0) {
445 EXT(statp).nstimes[ns] = RES_MAXTIME;
446 EXT(statp).nssocks[ns] = -1;
449 EXT(statp).ext->nsaddrs[ns].sin =
452 EXT(statp).nscount = statp->nscount;
467 if (EXT(statp).ext != NULL)
468 inu = EXT(statp).ext->nsaddrs[0];
470 fd = EXT(statp).nssocks[0];
471 nstime = EXT(statp).nstimes[0];
473 if (EXT(statp).ext != NULL)
474 EXT(statp).ext->nsaddrs[ns] =
475 EXT(statp).ext->nsaddrs[ns + 1];
477 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
478 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
480 if (EXT(statp).ext != NULL)
481 EXT(statp).ext->nsaddrs[lastns] = inu;
483 EXT(statp).nssocks[lastns] = fd;
484 EXT(statp).nstimes[lastns] = nstime;
720 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
722 * - EXT(statp).ext->nsaddrs[n] holds an address that is larger
726 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
731 * EXT(statp).ext->nsaddrs[n].
1105 if (EXT(statp).nssocks[ns] == -1) {
1106 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, 0);
1107 if (EXT(statp).nssocks[ns] > highestFD) {
1111 if (EXT(statp).nssocks[ns] < 0) {
1127 fchown(EXT(statp).nssocks[ns], AID_DNS, -1);
1129 if (setsockopt(EXT(statp).nssocks[ns], SOL_SOCKET,
1147 if (random_bind(EXT(statp).nssocks[ns], nsap->sa_family) < 0) {
1153 if (__connect(EXT(statp).nssocks[ns], nsap, (socklen_t)nsaplen) < 0) {
1164 s = EXT(statp).nssocks[ns];