]> andersk Git - nss_nonlocal.git/blame - nsswitch-internal.h
Replace recursive nss calls with explicit iteration over the nss chain.
[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
472f4aaf
AK
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
2349565b 18/* glibc/nss/nsswitch.h */
f6903667
AK
19typedef struct service_user service_user;
20
2349565b
AK
21extern int __nss_next (service_user **ni, const char *fct_name, void **fctp,
22 int status, int all_values);
23extern int __nss_database_lookup (const char *database,
24 const char *alternative_name,
25 const char *defconfig, service_user **ni);
26extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
f6903667 27
30fb3957
AK
28/* glibc/nss/XXX-lookup.c */
29extern int __nss_passwd_lookup (service_user **ni, const char *fct_name,
30 void **fctp) internal_function;
31extern int __nss_group_lookup (service_user **ni, const char *fct_name,
32 void **fctp) internal_function;
33
f6903667 34#endif /* NSSWITCH_INTERNAL_H */
This page took 0.061991 seconds and 5 git commands to generate.