retval = yperr2nss (yp_match (domain, "mail.aliases", name, strlen (name),
for (i = 0; i < namlen; ++i) name2[i] = tolower (name[i]); name2[i] = '\0';  retval = yperr2nss (yp_match (domain, "mail.aliases", name2, namlen,
_nss_nis_getaliasbyname_r (const char *name, struct aliasent *alias,			   char *buffer, size_t buflen, int *errnop){  enum nss_status retval;  int parse_res;  char *domain;  char *result;  int len;  char *p;  if (name == NULL)    {      *errnop = EINVAL;      return NSS_STATUS_UNAVAIL;    }  if (yp_get_default_domain (&domain))    return NSS_STATUS_UNAVAIL;  retval = yperr2nss (yp_match (domain, "mail.aliases", name, strlen (name),				&result, &len));  if (retval != NSS_STATUS_SUCCESS)    {      if (retval == NSS_STATUS_TRYAGAIN)	*errnop = errno;      return retval;    }  if ((size_t) (len + 1) > buflen)    {      free (result);      *errnop = ERANGE;      return NSS_STATUS_TRYAGAIN;    }  p = strncpy (buffer, result, len);  buffer[len] = '\0';  while (isspace (*p))    ++p;  free (result);  alias->alias_local = 0;  parse_res = _nss_nis_parse_aliasent (name, p, alias, buffer, buflen, errnop);  if (parse_res < 1)    {      if (parse_res == -1)	return NSS_STATUS_TRYAGAIN;      else	return NSS_STATUS_NOTFOUND;    }  return NSS_STATUS_SUCCESS;}