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
)
8 extern int __old_getspent_r (struct spwd
*__result_buf
, char *__buffer
,
9 size_t __buflen
, struct spwd
**__result
);
10 extern int __getspnam_r (__const
char *__name
, struct spwd
*__result_buf
,
11 char *__buffer
, size_t __buflen
,
12 struct spwd
**__result
);
13 extern int __old_getspnam_r (__const
char *__name
, struct spwd
*__result_buf
,
14 char *__buffer
, size_t __buflen
,
15 struct spwd
**__result
);
16 extern int __sgetspent_r (__const
char *__string
,
17 struct spwd
*__result_buf
, char *__buffer
,
18 size_t __buflen
, struct spwd
**__result
);
19 extern int __fgetspent_r (FILE *__stream
, struct spwd
*__result_buf
,
20 char *__buffer
, size_t __buflen
,
21 struct spwd
**__result
);
22 extern int __lckpwdf (void);
23 extern int __ulckpwdf (void);
26 extern int _nss_files_parse_spent (char *line
, struct spwd
*result
,
27 struct parser_data
*data
,
28 size_t datalen
, int *errnop
);
30 #define DECLARE_NSS_PROTOTYPES(service) \
31 extern enum nss_status _nss_ ## service ## _setspent (int); \
32 extern enum nss_status _nss_ ## service ## _endspent (void); \
33 extern enum nss_status _nss_ ## service ## _getspent_r \
34 (struct spwd *pwd, char *buffer, size_t buflen, \
36 extern enum nss_status _nss_ ## service ## _getspnam_r \
37 (const char *name, struct spwd *pwd, \
38 char *buffer, size_t buflen, int *errnop);
40 DECLARE_NSS_PROTOTYPES (compat
)
41 DECLARE_NSS_PROTOTYPES (files
)
42 DECLARE_NSS_PROTOTYPES (hesiod
)
43 DECLARE_NSS_PROTOTYPES (nis
)
44 DECLARE_NSS_PROTOTYPES (nisplus
)
46 #undef DECLARE_NSS_PROTOTYPES