s3:ctdbd_conn: fix ctdbd_public_ip_foreach() for ipv6 addresses
[Samba.git] / nsswitch / winbind_nss_linux.h
bloba85e09dd2fd648cfa87de81f4baa441ddadbcd92
1 /*
2 Unix SMB/CIFS implementation.
4 Winbind daemon for ntdom nss module
6 Copyright (C) Tim Potter 2000
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 3 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef _WINBIND_NSS_LINUX_H
23 #define _WINBIND_NSS_LINUX_H
25 #ifndef _PUBLIC_ON_LINUX_
26 /* If _PUBLIC_ON_LINUX_ is not defined via the wscript_build
27 * section we should mark the symbols as _PRIVATE_ because
28 * the Linux symbols are only used internally in order to
29 * implement the glue for other platforms on top.
31 #define _PUBLIC_ON_LINUX_ _PRIVATE_
32 #endif
34 NSS_STATUS _nss_winbind_setpwent(void);
35 NSS_STATUS _nss_winbind_endpwent(void);
36 NSS_STATUS _nss_winbind_getpwent_r(struct passwd *result, char *buffer,
37 size_t buflen, int *errnop);
38 NSS_STATUS _nss_winbind_getpwuid_r(uid_t uid, struct passwd *result,
39 char *buffer, size_t buflen, int *errnop);
40 NSS_STATUS _nss_winbind_getpwnam_r(const char *name, struct passwd *result,
41 char *buffer, size_t buflen, int *errnop);
42 NSS_STATUS _nss_winbind_setgrent(void);
43 NSS_STATUS _nss_winbind_endgrent(void);
44 NSS_STATUS _nss_winbind_getgrent_r(struct group *result, char *buffer,
45 size_t buflen, int *errnop);
46 NSS_STATUS _nss_winbind_getgrlst_r(struct group *result, char *buffer,
47 size_t buflen, int *errnop);
48 NSS_STATUS _nss_winbind_getgrnam_r(const char *name, struct group *result,
49 char *buffer, size_t buflen, int *errnop);
50 NSS_STATUS _nss_winbind_getgrgid_r(gid_t gid, struct group *result, char *buffer,
51 size_t buflen, int *errnop);
52 NSS_STATUS _nss_winbind_initgroups_dyn(const char *user, gid_t group, long int *start,
53 long int *size, gid_t **groups,
54 long int limit, int *errnop);
56 #endif /* _WINBIND_NSS_LINUX_H */