lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef _SHADOW_H |
| 2 | #include <shadow/shadow.h> |
| 3 | |
| 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 | attribute_hidden; |
| 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); |
| 24 | |
| 25 | struct parser_data; |
| 26 | extern int _nss_files_parse_spent (char *line, struct spwd *result, |
| 27 | struct parser_data *data, |
| 28 | size_t datalen, int *errnop); |
| 29 | libc_hidden_proto (_nss_files_parse_spent) |
| 30 | |
| 31 | #define DECLARE_NSS_PROTOTYPES(service) \ |
| 32 | extern enum nss_status _nss_ ## service ## _setspent (int); \ |
| 33 | extern enum nss_status _nss_ ## service ## _endspent (void); \ |
| 34 | extern enum nss_status _nss_ ## service ## _getspent_r \ |
| 35 | (struct spwd *pwd, char *buffer, size_t buflen, \ |
| 36 | int *errnop); \ |
| 37 | extern enum nss_status _nss_ ## service ## _getspnam_r \ |
| 38 | (const char *name, struct spwd *pwd, \ |
| 39 | char *buffer, size_t buflen, int *errnop); |
| 40 | |
| 41 | DECLARE_NSS_PROTOTYPES (compat) |
| 42 | DECLARE_NSS_PROTOTYPES (files) |
| 43 | DECLARE_NSS_PROTOTYPES (hesiod) |
| 44 | DECLARE_NSS_PROTOTYPES (nis) |
| 45 | DECLARE_NSS_PROTOTYPES (nisplus) |
| 46 | |
| 47 | #undef DECLARE_NSS_PROTOTYPES |
| 48 | |
| 49 | |
| 50 | #endif |