Don't assume that $(inst_zonedir) is a subdir of $(inst_datadir).
[glibc/pb-stable.git] / nscd / nscd_proto.h
blobf8c9d98cdd3c7b70c1c8ef8ca13af1a81dda2fbe
1 /* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #ifndef _NSCD_PROTO_H
21 #define _NSCD_PROTO_H 1
23 #include <grp.h>
24 #include <netdb.h>
25 #include <pwd.h>
27 /* Variables for communication between NSCD handler functions and NSS. */
28 extern int __nss_not_use_nscd_passwd;
29 extern int __nss_not_use_nscd_group;
30 extern int __nss_not_use_nscd_hosts;
32 extern int __nscd_getpwnam_r (const char *name, struct passwd *resultbuf,
33 char *buffer, size_t buflen);
34 extern int __nscd_getpwuid_r (uid_t uid, struct passwd *resultbuf,
35 char *buffer, size_t buflen);
36 extern int __nscd_getgrnam_r (const char *name, struct group *resultbuf,
37 char *buffer, size_t buflen);
38 extern int __nscd_getgrgid_r (uid_t uid, struct group *resultbuf,
39 char *buffer, size_t buflen);
40 extern int __nscd_gethostbyname_r (const char *name,
41 struct hostent *resultbuf,
42 char *buffer, size_t buflen,
43 int *h_errnop);
44 extern int __nscd_gethostbyname2_r (const char *name, int af,
45 struct hostent *resultbuf,
46 char *buffer, size_t buflen,
47 int *h_errnop);
48 extern int __nscd_gethostbyaddr_r (const void *addr, socklen_t len, int type,
49 struct hostent *resultbuf,
50 char *buffer, size_t buflen,
51 int *h_errnop);
53 #endif /* _NSCD_PROTO_H */