Lines Matching refs:ext
236 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit()
237 if (statp->_u._ext.ext != NULL) { in __res_vinit()
238 memset(statp->_u._ext.ext, 0, sizeof(*statp->_u._ext.ext)); in __res_vinit()
239 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit()
240 strcpy(statp->_u._ext.ext->nsuffix, "ip6.arpa"); in __res_vinit()
241 strcpy(statp->_u._ext.ext->nsuffix2, "ip6.int"); in __res_vinit()
356 sizeof(statp->_u._ext.ext->nsaddrs[0]); in __res_vinit()
370 if (statp->_u._ext.ext != NULL) { in __res_vinit()
371 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], in __res_vinit()
496 struct __res_state_ext *ext = statp->_u._ext.ext; in res_setoptions() local
569 if (ext == NULL) in res_setoptions()
572 i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix) - 1); in res_setoptions()
573 strncpy(ext->nsuffix, cp, (size_t)i); in res_setoptions()
574 ext->nsuffix[i] = '\0'; in res_setoptions()
577 if (ext == NULL) in res_setoptions()
580 i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix2) - 1); in res_setoptions()
581 strncpy(ext->nsuffix2, cp, (size_t)i); in res_setoptions()
582 ext->nsuffix2[i] = '\0'; in res_setoptions()
689 if (statp->_u._ext.ext != NULL) in res_ndestroy()
690 free(statp->_u._ext.ext); in res_ndestroy()
692 statp->_u._ext.ext = NULL; in res_ndestroy()
698 if (statp->_u._ext.ext) in res_get_nibblesuffix()
699 return (statp->_u._ext.ext->nsuffix); in res_get_nibblesuffix()
706 if (statp->_u._ext.ext) in res_get_nibblesuffix2()
707 return (statp->_u._ext.ext->nsuffix2); in res_get_nibblesuffix2()
728 if (statp->_u._ext.ext) in res_setservers()
729 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], in res_setservers()
742 if (statp->_u._ext.ext) in res_setservers()
743 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], in res_setservers()
771 if (statp->_u._ext.ext) in res_getservers()
772 family = statp->_u._ext.ext->nsaddrs[i].sin.sin_family; in res_getservers()
779 if (statp->_u._ext.ext) in res_getservers()
781 &statp->_u._ext.ext->nsaddrs[i], in res_getservers()
791 if (statp->_u._ext.ext) in res_getservers()
793 &statp->_u._ext.ext->nsaddrs[i], in res_getservers()