]> andersk Git - nss_nonlocal.git/blobdiff - nsswitch-internal.h
Guard one-time initialization with memory barriers
[nss_nonlocal.git] / nsswitch-internal.h
index 94ed968cba2b393cd16664de3c6baf78f2d59c41..4a2e91dcf6e1c8bd8bc64007c2f9d51459051055 100644 (file)
@@ -6,21 +6,29 @@
 #ifndef NSSWITCH_INTERNAL_H
 #define NSSWITCH_INTERNAL_H
 
-typedef struct service_user service_user;
+#include "config.h"
 
-extern int
-__nss_next (service_user **ni, const char *fct_name, void **fctp, int status,
-            int all_values);
+/* glibc/config.h.in */
+#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
+# define internal_function __attribute__ ((regparm (3), stdcall))
+#else
+# define internal_function
+#endif
 
-extern int
-__nss_database_lookup (const char *database,
-                      const char *alternative_name,
-                      const char *defconfig, service_user **ni);
+/* glibc/nss/nsswitch.h */
+typedef struct service_user service_user;
 
-extern int
-__nss_configure_lookup (const char *dbname, const char *service_line);
+extern int __nss_next (service_user **ni, const char *fct_name, void **fctp,
+                      int status, int all_values);
+extern int __nss_database_lookup (const char *database,
+                                 const char *alternative_name,
+                                 const char *defconfig, service_user **ni);
+extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
 
-extern void
-*__nss_lookup_function (service_user *ni, const char *fct_name);
+/* glibc/nss/XXX-lookup.c */
+extern int __nss_passwd_lookup (service_user **ni, const char *fct_name,
+                               void **fctp) internal_function;
+extern int __nss_group_lookup (service_user **ni, const char *fct_name,
+                               void **fctp) internal_function;
 
 #endif /* NSSWITCH_INTERNAL_H */
This page took 0.256577 seconds and 4 git commands to generate.