while (*cp) {  while (*cp == ' ' || *cp == '\t') cp++;  if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { i = atoi(cp + sizeof("ndots:") - 1); if (i <= RES_MAXNDOTS) statp->ndots = i; else statp->ndots = RES_MAXNDOTS; #ifdef DEBUG if (statp->options & RES_DEBUG) printf(";;\tndots=%d\n", statp->ndots);
static void res_setoptions (res_state, const char *, const char *)     internal_function;#ifdef RESOLVSORTstatic const char sort_mask[] = "/&";#define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL)static u_int32_t net_mask __P((struct in_addr));#endif#if !defined(isascii)	/* XXX - could be a function */# define isascii(c) (!(c & 0200))#endif/* * Resolver state default settings. *//* * Set up default settings.  If the configuration file exist, the values * there will have precedence.  Otherwise, the server address is set to * INADDR_ANY and the default domain name comes from the gethostname(). * * An interrim version of this code (BIND 4.9, pre-4.4BSD) used 127.0.0.1 * rather than INADDR_ANY ("0.0.0.0") as the default name server address * since it was noted that INADDR_ANY actually meant ``the first interface * you "ifconfig"'d at boot time'' and if this was a SLIP or PPP interface, * it had to be "up" in order for you to reach your own name server.  It * was later decided that since the recommended practice is to always * install local static routes through 127.0.0.1 for all your network * interfaces, that we could solve this problem without a code change. * * The configuration file should always be used, since it is the only way * to specify a default domain.  If you are running a server on your local * machine, you should say "nameserver 0.0.0.0" or "nameserver 127.0.0.1" * in the configuration file. * * Return 0 if completes successfully, -1 on error */intres_ninit(res_state statp) {	extern int __res_vinit(res_state, int);	return (__res_vinit(statp, 0));}