(_nss_nis_getservbyname_r): Pass pointer to int as last parameter of yp_match.
[kopensolaris-gnu/glibc.git] / nis / nss-nisplus.h
index c8b51d6..f2247c7 100644 (file)
@@ -1,5 +1,4 @@
 /* Copyright (C) 1997 Free Software Foundation, Inc.
-
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@uni-paderborn.de>, 1997.
 
@@ -32,12 +31,12 @@ static enum nss_status niserr2nss_tab[] =
   [NIS_SUCCESS] = NSS_STATUS_SUCCESS,
   [NIS_S_SUCCESS] = NSS_STATUS_SUCCESS,
   [NIS_NOTFOUND] = NSS_STATUS_NOTFOUND,
-  [NIS_S_NOTFOUND] = NSS_STATUS_TRYAGAIN,
+  [NIS_S_NOTFOUND] = NSS_STATUS_NOTFOUND,
   [NIS_CACHEEXPIRED] = NSS_STATUS_UNAVAIL,
-  [NIS_NAMEUNREACHABLE] = NSS_STATUS_TRYAGAIN,
+  [NIS_NAMEUNREACHABLE] = NSS_STATUS_UNAVAIL,
   [NIS_UNKNOWNOBJ] = NSS_STATUS_NOTFOUND,
   [NIS_TRYAGAIN] = NSS_STATUS_TRYAGAIN,
-  [NIS_SYSTEMERROR] = NSS_STATUS_UNAVAIL,      /* Maybe TRYAGAIN ? */
+  [NIS_SYSTEMERROR] = NSS_STATUS_UNAVAIL,
   [NIS_CHAINBROKEN] = NSS_STATUS_UNAVAIL,
   [NIS_PERMISSION] = NSS_STATUS_UNAVAIL,
   [NIS_NOTOWNER] = NSS_STATUS_UNAVAIL,
@@ -75,7 +74,7 @@ static enum nss_status niserr2nss_tab[] =
   [NIS_SRVAUTH] = NSS_STATUS_UNAVAIL,
   [NIS_CLNTAUTH] = NSS_STATUS_UNAVAIL,
   [NIS_NOFILESPACE] = NSS_STATUS_UNAVAIL,
-  [NIS_NOPROC] = NSS_STATUS_TRYAGAIN,
+  [NIS_NOPROC] = NSS_STATUS_UNAVAIL,
   [NIS_DUMPLATER] = NSS_STATUS_UNAVAIL
 };
 #define NISERR_COUNT (sizeof (niserr2nss_tab) / sizeof (niserr2nss_tab[0]))