]> andersk Git - nss_nonlocal.git/blobdiff - nsswitch-internal.h
Switch from __nss_next API to __nss_next2 API
[nss_nonlocal.git] / nsswitch-internal.h
index 3d064a89206ea272dd29b35d60f7698c17f36f63..d61914c4c2b205e2e775dc24aac60cf830a46827 100644 (file)
@@ -6,10 +6,13 @@
 #ifndef NSSWITCH_INTERNAL_H
 #define NSSWITCH_INTERNAL_H
 
+#include <features.h>
 #include "config.h"
 
 /* glibc/config.h.in */
-#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
+#if __GLIBC_PREREQ(2, 27)
+# define internal_function
+#elif defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
 # define internal_function __attribute__ ((regparm (3), stdcall))
 #else
 # define internal_function
 /* glibc/nss/nsswitch.h */
 typedef struct service_user service_user;
 
-extern int __nss_next (service_user **ni, const char *fct_name, void **fctp,
-                      int status, int all_values);
+extern int __nss_next2 (service_user **ni, const char *fct_name,
+                       const char *fct2_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);
 
+/* glibc/nss/XXX-lookup.c */
+extern int __nss_passwd_lookup2 (service_user **ni, const char *fct_name,
+                                const char *fct2_name, void **fctp)
+    internal_function;
+extern int __nss_group_lookup2 (service_user **ni, const char *fct_name,
+                               const char *fct2_name, void **fctp)
+    internal_function;
+
 #endif /* NSSWITCH_INTERNAL_H */
This page took 0.417965 seconds and 4 git commands to generate.