retval = yperr2nss (yp_match (domain, "networks.byname", name, strlen (name), &result, &len));
if (buflen < sizeof *data + 1) { *herrnop = NETDB_INTERNAL; *errnop = ERANGE; return NSS_STATUS_TRYAGAIN; } else {  size_t namlen = strlen (name); char name2[namlen + 1]; int i;  for (i = 0; i < namlen; ++i) name2[i] = tolower (name[i]); name2[i] = '\0';  retval = yperr2nss (yp_match (domain, "networks.byname", name2, namlen, &result, &len)); }
_nss_nis_getnetbyname_r (const char *name, struct netent *net, char *buffer,			 size_t buflen, int *errnop, int *herrnop){  enum nss_status retval;  struct parser_data *data = (void *) buffer;  char *domain, *result, *p;  int len, parse_res;  if (name == NULL)    {      *errnop = EINVAL;      *herrnop = NETDB_INTERNAL;      return NSS_STATUS_UNAVAIL;    }  if (yp_get_default_domain (&domain))    return NSS_STATUS_UNAVAIL;  retval = yperr2nss (yp_match (domain, "networks.byname", name,                                strlen (name), &result, &len));  if (retval != NSS_STATUS_SUCCESS)    {      if (retval == NSS_STATUS_TRYAGAIN)	{	  *errnop = errno;	  *herrnop = NETDB_INTERNAL;	}      return retval;    }  if ((size_t) (len + 1) > buflen)    {      free (result);      *errnop = ERANGE;      *herrnop = NETDB_INTERNAL;      return NSS_STATUS_TRYAGAIN;    }  p = strncpy (buffer, result, len);  buffer[len] = '\0';  while (isspace (*p))    ++p;  free (result);  parse_res = _nss_files_parse_netent (p, net, data, buflen, errnop);  if (parse_res < 1)    {      *herrnop = NETDB_INTERNAL;      if (parse_res == -1)	return NSS_STATUS_TRYAGAIN;      else        return NSS_STATUS_NOTFOUND;    }  else    return NSS_STATUS_SUCCESS;}