-
Notifications
You must be signed in to change notification settings - Fork 6
/
nsswitch-internal.h
40 lines (33 loc) · 1.19 KB
/
nsswitch-internal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* nsswitch_internal.h
* Prototypes for some internal glibc functions that we use. Shhh.
*/
#ifndef NSSWITCH_INTERNAL_H
#define NSSWITCH_INTERNAL_H
#include <features.h>
#include "config.h"
/* glibc/config.h.in */
#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
#endif
/* glibc/nss/nsswitch.h */
typedef struct service_user service_user;
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 */