]> andersk Git - nss_nonlocal.git/blame - nsswitch-internal.h
Switch from __nss_next API to __nss_next2 API
[nss_nonlocal.git] / nsswitch-internal.h
CommitLineData
f6903667
AK
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
df16cf04 9#include <features.h>
472f4aaf
AK
10#include "config.h"
11
12/* glibc/config.h.in */
df16cf04
AK
13#if __GLIBC_PREREQ(2, 27)
14# define internal_function
15#elif defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
472f4aaf
AK
16# define internal_function __attribute__ ((regparm (3), stdcall))
17#else
18# define internal_function
19#endif
20
2349565b 21/* glibc/nss/nsswitch.h */
f6903667
AK
22typedef struct service_user service_user;
23
d52c3f35
AK
24extern int __nss_next2 (service_user **ni, const char *fct_name,
25 const char *fct2_name, void **fctp, int status,
26 int all_values);
2349565b
AK
27extern int __nss_database_lookup (const char *database,
28 const char *alternative_name,
29 const char *defconfig, service_user **ni);
30extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
f6903667 31
30fb3957 32/* glibc/nss/XXX-lookup.c */
d52c3f35
AK
33extern int __nss_passwd_lookup2 (service_user **ni, const char *fct_name,
34 const char *fct2_name, void **fctp)
35 internal_function;
36extern int __nss_group_lookup2 (service_user **ni, const char *fct_name,
37 const char *fct2_name, void **fctp)
38 internal_function;
30fb3957 39
f6903667 40#endif /* NSSWITCH_INTERNAL_H */
This page took 0.822719 seconds and 5 git commands to generate.