2 #include <shadow/shadow.h>
6 /* Now define the internal interfaces. */
7 extern int __getspent_r (struct spwd
*__result_buf
, char *__buffer
,
8 size_t __buflen
, struct spwd
**__result
)
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
);
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 extern int __fgetspent_r (FILE *__stream
, struct spwd
*__result_buf
,
22 char *__buffer
, size_t __buflen
,
23 struct spwd
**__result
);
24 extern int __lckpwdf (void);
25 extern int __ulckpwdf (void);
28 extern int _nss_files_parse_spent (char *line
, struct spwd
*result
,
29 struct parser_data
*data
,
30 size_t datalen
, int *errnop
);
31 libc_hidden_proto (_nss_files_parse_spent
)
33 #define DECLARE_NSS_PROTOTYPES(service) \
34 extern enum nss_status _nss_ ## service ## _setspent (int); \
35 extern enum nss_status _nss_ ## service ## _endspent (void); \
36 extern enum nss_status _nss_ ## service ## _getspent_r \
37 (struct spwd *pwd, char *buffer, size_t buflen, \
39 extern enum nss_status _nss_ ## service ## _getspnam_r \
40 (const char *name, struct spwd *pwd, \
41 char *buffer, size_t buflen, int *errnop);
43 DECLARE_NSS_PROTOTYPES (compat
)
44 DECLARE_NSS_PROTOTYPES (files
)
45 DECLARE_NSS_PROTOTYPES (hesiod
)
46 DECLARE_NSS_PROTOTYPES (nis
)
47 DECLARE_NSS_PROTOTYPES (nisplus
)
49 #undef DECLARE_NSS_PROTOTYPES
52 # endif /* !_ISOMAC */