]>
Commit | Line | Data |
---|---|---|
04277e02 | 1 | /* Copyright (C) 1996-2019 Free Software Foundation, Inc. |
48a92e9d UD |
2 | This file is part of the GNU C Library. |
3 | ||
4 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
5 | modify it under the terms of the GNU Lesser General Public |
6 | License as published by the Free Software Foundation; either | |
7 | version 2.1 of the License, or (at your option) any later version. | |
48a92e9d UD |
8 | |
9 | The GNU C Library is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 12 | Lesser General Public License for more details. |
48a92e9d | 13 | |
41bdb6e2 | 14 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
15 | License along with the GNU C Library; if not, see |
16 | <http://www.gnu.org/licenses/>. */ | |
48a92e9d | 17 | |
48a92e9d UD |
18 | #include "nss-nis.h" |
19 | #include "nsswitch.h" | |
20 | ||
21 | ||
22 | /* Convert YP error number to NSS error number. */ | |
23 | const enum nss_status __yperr2nss_tab[] = | |
24 | { | |
25 | [YPERR_SUCCESS] = NSS_STATUS_SUCCESS, | |
26 | [YPERR_BADARGS] = NSS_STATUS_UNAVAIL, | |
27 | [YPERR_RPC] = NSS_STATUS_UNAVAIL, | |
28 | [YPERR_DOMAIN] = NSS_STATUS_UNAVAIL, | |
29 | [YPERR_MAP] = NSS_STATUS_UNAVAIL, | |
30 | [YPERR_KEY] = NSS_STATUS_NOTFOUND, | |
31 | [YPERR_YPERR] = NSS_STATUS_UNAVAIL, | |
32 | [YPERR_RESRC] = NSS_STATUS_TRYAGAIN, | |
33 | [YPERR_NOMORE] = NSS_STATUS_NOTFOUND, | |
34 | [YPERR_PMAP] = NSS_STATUS_UNAVAIL, | |
35 | [YPERR_YPBIND] = NSS_STATUS_UNAVAIL, | |
36 | [YPERR_YPSERV] = NSS_STATUS_UNAVAIL, | |
37 | [YPERR_NODOM] = NSS_STATUS_UNAVAIL, | |
38 | [YPERR_BADDB] = NSS_STATUS_UNAVAIL, | |
39 | [YPERR_VERS] = NSS_STATUS_UNAVAIL, | |
40 | [YPERR_ACCESS] = NSS_STATUS_UNAVAIL, | |
41 | [YPERR_BUSY] = NSS_STATUS_TRYAGAIN | |
42 | }; | |
43 | const unsigned int __yperr2nss_count = (sizeof (__yperr2nss_tab) | |
44 | / sizeof (__yperr2nss_tab[0])); |