2 Unix SMB/CIFS implementation.
3 nss includes for the nss tester
4 Copyright (C) Kai Blin 2007
6 ** NOTE! The following LGPL license applies to the nsstest
7 ** header. This does NOT imply that all of Samba is released
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 3 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Library General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
30 #ifdef HAVE_NSS_COMMON_H
36 #include <nss_common.h>
37 #include <nss_dbdefs.h>
40 typedef nss_status_t NSS_STATUS
;
42 #define NSS_STATUS_SUCCESS NSS_SUCCESS
43 #define NSS_STATUS_NOTFOUND NSS_NOTFOUND
44 #define NSS_STATUS_UNAVAIL NSS_UNAVAIL
45 #define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
47 #elif defined(HAVE_NSS_H)
54 typedef enum nss_status NSS_STATUS
;
56 #elif defined(HAVE_NS_API_H)
63 #define _DATUM_DEFINED
70 NSS_STATUS_SUCCESS
=NS_SUCCESS
,
71 NSS_STATUS_NOTFOUND
=NS_NOTFOUND
,
72 NSS_STATUS_UNAVAIL
=NS_UNAVAIL
,
73 NSS_STATUS_TRYAGAIN
=NS_TRYAGAIN
76 #define NSD_MEM_STATIC 0
77 #define NSD_MEM_VOLATILE 1
78 #define NSD_MEM_DYNAMIC 2
80 #elif defined(HPUX) && defined(HAVE_NSSWITCH_H)
86 #define NSS_STATUS_SUCCESS NSS_SUCCESS
87 #define NSS_STATUS_NOTFOUND NSS_NOTFOUND
88 #define NSS_STATUS_UNAVAIL NSS_UNAVAIL
89 #define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
105 typedef nss_status_t NSS_STATUS
;
107 #else /* Nothing's defined. Neither solaris nor gnu nor sun nor hp */
111 NSS_STATUS_SUCCESS
=0,
112 NSS_STATUS_NOTFOUND
=1,
113 NSS_STATUS_UNAVAIL
=2,
114 NSS_STATUS_TRYAGAIN
=3
119 #endif /* _NSSTEST_H */