Lines Matching defs:EXT
127 #define EXT(res) ((res)->_u._ext)
190 if (EXT(statp).ext == NULL)
313 if (statp->nscount == 0 || EXT(statp).ext == NULL) {
338 if (EXT(statp).nscount != 0) {
343 if (EXT(statp).nscount != statp->nscount)
349 (struct sockaddr *)&EXT(statp).ext->nsaddrs[ns])) {
354 if (EXT(statp).nssocks[ns] == -1)
357 if (_getpeername(EXT(statp).nssocks[ns],
370 EXT(statp).nscount = 0;
377 if (EXT(statp).nscount == 0) {
379 EXT(statp).nstimes[ns] = RES_MAXTIME;
380 EXT(statp).nssocks[ns] = -1;
383 EXT(statp).ext->nsaddrs[ns].sin =
386 EXT(statp).nscount = statp->nscount;
401 if (EXT(statp).ext != NULL)
402 inu = EXT(statp).ext->nsaddrs[0];
404 fd = EXT(statp).nssocks[0];
405 nstime = EXT(statp).nstimes[0];
407 if (EXT(statp).ext != NULL)
408 EXT(statp).ext->nsaddrs[ns] =
409 EXT(statp).ext->nsaddrs[ns + 1];
411 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
412 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
414 if (EXT(statp).ext != NULL)
415 EXT(statp).ext->nsaddrs[lastns] = inu;
417 EXT(statp).nssocks[lastns] = fd;
418 EXT(statp).nstimes[lastns] = nstime;
602 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
604 * - EXT(statp).ext->nsaddrs[n] holds an address that is larger
608 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
613 * EXT(statp).ext->nsaddrs[n].
851 if (EXT(statp).nssocks[ns] == -1) {
852 EXT(statp).nssocks[ns] = _socket(nsap->sa_family,
855 if (EXT(statp).nssocks[ns] > highestFD) {
860 if (EXT(statp).nssocks[ns] < 0) {
895 _connect(EXT(statp).nssocks[ns], nsap, nsaplen) < 0) {
905 s = EXT(statp).nssocks[ns];