[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[Samba.git] / source / nsswitch / winbind_nss.h
blob3bef6ca59541b15e64f030d12b231a28cb66e031
1 /*
2 Unix SMB/CIFS implementation.
4 A common place to work out how to define NSS_STATUS on various
5 platforms.
7 Copyright (C) Tim Potter 2000
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public
11 License as published by the Free Software Foundation; either
12 version 2 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
19 You should have received a copy of the GNU Library General Public
20 License along with this library; if not, write to the
21 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
25 #ifndef _NSSWITCH_NSS_H
26 #define _NSSWITCH_NSS_H
28 #ifdef HAVE_NSS_COMMON_H
30 /*
31 * Sun Solaris
34 #include "nsswitch/winbind_nss_solaris.h"
36 #elif HAVE_NSS_H
39 * Linux (glibc)
42 #include <nss.h>
43 typedef enum nss_status NSS_STATUS;
45 #elif HAVE_NS_API_H
48 * SGI IRIX
51 #include "nsswitch/winbind_nss_irix.h"
53 #elif defined(HPUX) && defined(HAVE_NSSWITCH_H)
55 /* HP-UX 11 */
57 #include "nsswitch/winbind_nss_hpux.h"
59 #elif defined(__NetBSD__) && defined(HAVE_GETPWENT_R)
62 * NetBSD 3 and newer
65 #include "nsswitch/winbind_nss_netbsd.h"
67 #else /* Nothing's defined. Neither gnu nor netbsd nor sun nor hp */
69 typedef enum
71 NSS_STATUS_SUCCESS=0,
72 NSS_STATUS_NOTFOUND=1,
73 NSS_STATUS_UNAVAIL=2,
74 NSS_STATUS_TRYAGAIN=3
75 } NSS_STATUS;
77 #endif
79 #endif /* _NSSWITCH_NSS_H */