364: res_init();
365: len_host = strlen(hostname);
366: len_domain = strlen(_nres.defdname);
367: if (len_host > len_domain &&
593:
594: if (statp->dnsrch[1] < statp->dnsrch[0] + strlen(statp->dnsrch[0])) {
595: return 1;
664: }
665: cp = statp->dnsrch[i-1] + strlen(statp->dnsrch[i-1]) + 1;
666: strncpy(cp, domain,
708: for (j = i + 1; statp->dnsrch[j] != NULL; j++) {
709: len = strlen(statp->dnsrch[j]) + 1;
710: for (k = 0; k < len; k++) {
749: if (res_check_onlylocaldomain(statp) == 1) {
750: *len += sizeof(char*) + strlen(statp->defdname) + 1;
751: if (domains == NULL) {
762: for (i = 0; statp->dnsrch[i] != NULL; i++) {
763: *len += sizeof(char*) + strlen(statp->dnsrch[i]) + 1;
764: if (*len <= size) {
774: strcpy(domains[i], statp->dnsrch[i]);
775: cp += strlen(statp->dnsrch[i]) + 1;
776: }