]> andersk Git - nss_nonlocal.git/blame_incremental - nsswitch-internal.h
Update internal glibc functions ABI for glibc 2.27
[nss_nonlocal.git] / nsswitch-internal.h
... / ...
CommitLineData
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 <features.h>
10#include "config.h"
11
12/* glibc/config.h.in */
13#if __GLIBC_PREREQ(2, 27)
14# define internal_function
15#elif defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
16# define internal_function __attribute__ ((regparm (3), stdcall))
17#else
18# define internal_function
19#endif
20
21/* glibc/nss/nsswitch.h */
22typedef struct service_user service_user;
23
24extern int __nss_next (service_user **ni, const char *fct_name, void **fctp,
25 int status, int all_values);
26extern int __nss_database_lookup (const char *database,
27 const char *alternative_name,
28 const char *defconfig, service_user **ni);
29extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
30
31/* glibc/nss/XXX-lookup.c */
32extern int __nss_passwd_lookup (service_user **ni, const char *fct_name,
33 void **fctp) internal_function;
34extern int __nss_group_lookup (service_user **ni, const char *fct_name,
35 void **fctp) internal_function;
36
37#endif /* NSSWITCH_INTERNAL_H */
This page took 0.025373 seconds and 5 git commands to generate.