aboutsummaryrefslogtreecommitdiff
path: root/include/shadow.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/shadow.h')
-rw-r--r--include/shadow.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/shadow.h b/include/shadow.h
index b7d49f7cfc..5bbaac3543 100644
--- a/include/shadow.h
+++ b/include/shadow.h
@@ -15,4 +15,24 @@ extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf,
struct spwd **__result);
extern int __lckpwdf (void);
extern int __ulckpwdf (void);
+
+#define DECLARE_NSS_PROTOTYPES(service) \
+extern enum nss_status _nss_ ## service ## _setspent (int); \
+extern enum nss_status _nss_ ## service ## _endspent (void); \
+extern enum nss_status _nss_ ## service ## _getspent_r \
+ (struct spwd *pwd, char *buffer, size_t buflen, \
+ int *errnop); \
+extern enum nss_status _nss_ ## service ## _getspnam_r \
+ (const char *name, struct spwd *pwd, \
+ char *buffer, size_t buflen, int *errnop);
+
+DECLARE_NSS_PROTOTYPES (compat)
+DECLARE_NSS_PROTOTYPES (files)
+DECLARE_NSS_PROTOTYPES (hesiod)
+DECLARE_NSS_PROTOTYPES (nis)
+DECLARE_NSS_PROTOTYPES (nisplus)
+
+#undef DECLARE_NSS_PROTOTYPES
+
+
#endif