Fix typo.
[glibc.git] / include / shadow.h
blob0ae6b2111abe44c55aa98e80afda0b24af764232
1 #ifndef _SHADOW_H
2 #include <shadow/shadow.h>
4 /* Now define the internal interfaces. */
5 extern int __getspent_r (struct spwd *__result_buf, char *__buffer,
6 size_t __buflen, struct spwd **__result);
7 extern int __old_getspent_r (struct spwd *__result_buf, char *__buffer,
8 size_t __buflen, struct spwd **__result);
9 extern int __getspnam_r (__const char *__name, struct spwd *__result_buf,
10 char *__buffer, size_t __buflen,
11 struct spwd **__result);
12 extern int __old_getspnam_r (__const char *__name, struct spwd *__result_buf,
13 char *__buffer, size_t __buflen,
14 struct spwd **__result);
15 extern int __sgetspent_r (__const char *__string,
16 struct spwd *__result_buf, char *__buffer,
17 size_t __buflen, struct spwd **__result);
18 extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf,
19 char *__buffer, size_t __buflen,
20 struct spwd **__result);
21 extern int __lckpwdf (void);
22 extern int __ulckpwdf (void);
24 struct parser_data;
25 extern int _nss_files_parse_spent (char *line, struct spwd *result,
26 struct parser_data *data,
27 size_t datalen, int *errnop);
29 #define DECLARE_NSS_PROTOTYPES(service) \
30 extern enum nss_status _nss_ ## service ## _setspent (int); \
31 extern enum nss_status _nss_ ## service ## _endspent (void); \
32 extern enum nss_status _nss_ ## service ## _getspent_r \
33 (struct spwd *pwd, char *buffer, size_t buflen, \
34 int *errnop); \
35 extern enum nss_status _nss_ ## service ## _getspnam_r \
36 (const char *name, struct spwd *pwd, \
37 char *buffer, size_t buflen, int *errnop);
39 DECLARE_NSS_PROTOTYPES (compat)
40 DECLARE_NSS_PROTOTYPES (files)
41 DECLARE_NSS_PROTOTYPES (hesiod)
42 DECLARE_NSS_PROTOTYPES (nis)
43 DECLARE_NSS_PROTOTYPES (nisplus)
45 #undef DECLARE_NSS_PROTOTYPES
48 #endif