source: trunk/libs/newlib/src/newlib/libc/sys/linux/net/nscd/nscd_proto.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.7 KB
Line 
1/* Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
2   This file is part of the GNU C Library.
3   Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998.
4
5   The GNU C Library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9
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   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library; if not, write to the Free
17   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18   02111-1307 USA.  */
19
20#ifndef _NSCD_PROTO_H
21#define _NSCD_PROTO_H 1
22
23#include <grp.h>
24#include <netdb.h>
25#include <pwd.h>
26
27/* Interval in which we transfer retry to contact the NSCD.  */
28#define NSS_NSCD_RETRY  100
29
30/* Type needed in the interfaces.  */
31struct nscd_ai_result;
32
33
34/* Variables for communication between NSCD handler functions and NSS.  */
35extern int __nss_not_use_nscd_passwd attribute_hidden;
36extern int __nss_not_use_nscd_group attribute_hidden;
37extern int __nss_not_use_nscd_hosts attribute_hidden;
38
39extern int __nscd_getpwnam_r (const char *name, struct passwd *resultbuf,
40                              char *buffer, size_t buflen,
41                              struct passwd **result);
42extern int __nscd_getpwuid_r (uid_t uid, struct passwd *resultbuf,
43                              char *buffer,  size_t buflen,
44                              struct passwd **result);
45extern int __nscd_getgrnam_r (const char *name, struct group *resultbuf,
46                              char *buffer, size_t buflen,
47                              struct group **result);
48extern int __nscd_getgrgid_r (gid_t gid, struct group *resultbuf,
49                              char *buffer,  size_t buflen,
50                              struct group **result);
51extern int __nscd_gethostbyname_r (const char *name,
52                                   struct hostent *resultbuf,
53                                   char *buffer, size_t buflen,
54                                   struct hostent **result, int *h_errnop);
55extern int __nscd_gethostbyname2_r (const char *name, int af,
56                                    struct hostent *resultbuf,
57                                    char *buffer, size_t buflen,
58                                    struct hostent **result, int *h_errnop);
59extern int __nscd_gethostbyaddr_r (const void *addr, socklen_t len, int type,
60                                   struct hostent *resultbuf,
61                                   char *buffer, size_t buflen,
62                                   struct hostent **result, int *h_errnop);
63extern int __nscd_getai (const char *key, struct nscd_ai_result **result,
64                         int *h_errnop);
65extern int __nscd_getgrouplist (const char *user, gid_t group, long int *size,
66                                gid_t **groupsp, long int limit);
67#endif /* _NSCD_PROTO_H */
Note: See TracBrowser for help on using the repository browser.