]> andersk Git - nss_nonlocal.git/blob - nsswitch-internal.h
Guard one-time initialization with memory barriers
[nss_nonlocal.git] / nsswitch-internal.h
1 /*
2  * nsswitch_internal.h
3  * Prototypes for some internal glibc functions that we use.  Shhh.
4  */
5
6 #ifndef NSSWITCH_INTERNAL_H
7 #define NSSWITCH_INTERNAL_H
8
9 #include "config.h"
10
11 /* glibc/config.h.in */
12 #if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
13 # define internal_function __attribute__ ((regparm (3), stdcall))
14 #else
15 # define internal_function
16 #endif
17
18 /* glibc/nss/nsswitch.h */
19 typedef struct service_user service_user;
20
21 extern int __nss_next (service_user **ni, const char *fct_name, void **fctp,
22                        int status, int all_values);
23 extern int __nss_database_lookup (const char *database,
24                                   const char *alternative_name,
25                                   const char *defconfig, service_user **ni);
26 extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
27
28 /* glibc/nss/XXX-lookup.c */
29 extern int __nss_passwd_lookup (service_user **ni, const char *fct_name,
30                                 void **fctp) internal_function;
31 extern int __nss_group_lookup (service_user **ni, const char *fct_name,
32                                 void **fctp) internal_function;
33
34 #endif /* NSSWITCH_INTERNAL_H */
This page took 0.428065 seconds and 5 git commands to generate.