Home | History | Annotate | Download | only in resolv

Lines Matching refs:ext

225 	statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext));
226 if (statp->_u._ext.ext != NULL) {
227 memset(statp->_u._ext.ext, 0, sizeof(*statp->_u._ext.ext));
228 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr;
229 strcpy(statp->_u._ext.ext->nsuffix, "ip6.arpa");
230 strcpy(statp->_u._ext.ext->nsuffix2, "ip6.int");
345 sizeof(statp->_u._ext.ext->nsaddrs[0]);
359 if (statp->_u._ext.ext != NULL) {
360 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
485 struct __res_state_ext *ext = statp->_u._ext.ext;
558 if (ext == NULL)
561 i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix) - 1);
562 strncpy(ext->nsuffix, cp, (size_t)i);
563 ext->nsuffix[i] = '\0';
566 if (ext == NULL)
569 i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix2) - 1);
570 strncpy(ext->nsuffix2, cp, (size_t)i);
571 ext->nsuffix2[i] = '\0';
676 if (statp->_u._ext.ext != NULL)
677 free(statp->_u._ext.ext);
679 statp->_u._ext.ext = NULL;
684 if (statp->_u._ext.ext)
685 return (statp->_u._ext.ext->nsuffix);
691 if (statp->_u._ext.ext)
692 return (statp->_u._ext.ext->nsuffix2);
712 if (statp->_u._ext.ext)
713 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
728 if (statp->_u._ext.ext)
729 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
756 if (statp->_u._ext.ext)
757 family = statp->_u._ext.ext->nsaddrs[i].sin.sin_family;
764 if (statp->_u._ext.ext)
766 &statp->_u._ext.ext->nsaddrs[i],
776 if (statp->_u._ext.ext)
778 &statp->_u._ext.ext->nsaddrs[i],