elf: Refactor process_envvars
[glibc.git] / include / shadow.h
blobbbb8be2ff040d047fac9ecafd4e1f6c749646391
1 #ifndef _SHADOW_H
2 #include <nss/shadow.h>
4 # ifndef _ISOMAC
6 /* Now define the internal interfaces. */
7 extern int __getspent_r (struct spwd *__result_buf, char *__buffer,
8 size_t __buflen, struct spwd **__result)
9 attribute_hidden;
10 extern int __old_getspent_r (struct spwd *__result_buf, char *__buffer,
11 size_t __buflen, struct spwd **__result);
12 extern int __getspnam_r (const char *__name, struct spwd *__result_buf,
13 char *__buffer, size_t __buflen,
14 struct spwd **__result) attribute_hidden;
15 extern int __old_getspnam_r (const char *__name, struct spwd *__result_buf,
16 char *__buffer, size_t __buflen,
17 struct spwd **__result);
18 extern int __sgetspent_r (const char *__string,
19 struct spwd *__result_buf, char *__buffer,
20 size_t __buflen, struct spwd **__result)
21 attribute_hidden;
22 extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf,
23 char *__buffer, size_t __buflen,
24 struct spwd **__result) attribute_hidden;
25 extern int __lckpwdf (void);
26 extern int __ulckpwdf (void);
28 #define DECLARE_NSS_PROTOTYPES(service) \
29 extern enum nss_status _nss_ ## service ## _setspent (int); \
30 extern enum nss_status _nss_ ## service ## _endspent (void); \
31 extern enum nss_status _nss_ ## service ## _getspent_r \
32 (struct spwd *pwd, char *buffer, size_t buflen, \
33 int *errnop); \
34 extern enum nss_status _nss_ ## service ## _getspnam_r \
35 (const char *name, struct spwd *pwd, \
36 char *buffer, size_t buflen, int *errnop);
38 DECLARE_NSS_PROTOTYPES (compat)
39 DECLARE_NSS_PROTOTYPES (files)
40 DECLARE_NSS_PROTOTYPES (hesiod)
42 #undef DECLARE_NSS_PROTOTYPES
45 # endif /* !_ISOMAC */
46 #endif