summaryrefslogtreecommitdiff
path: root/mit-pthreads/gen/pwd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'mit-pthreads/gen/pwd_internal.h')
-rw-r--r--mit-pthreads/gen/pwd_internal.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/mit-pthreads/gen/pwd_internal.h b/mit-pthreads/gen/pwd_internal.h
new file mode 100644
index 00000000000..10fdab6cc4e
--- /dev/null
+++ b/mit-pthreads/gen/pwd_internal.h
@@ -0,0 +1,29 @@
+#ifndef _PWD_INTERNAL_H_
+#define _PWD_INTERNAL_H_
+
+#if 0 /* Turn this off for now until we suck in ndbm or use gdbm -- SNL */
+#ifndef DBM_PWD_SUPPORT
+#if !defined(__alpha) && !defined(linux) && !defined(hpux)
+#define DBM_PWD_SUPPORT 1
+#endif /* !alpha && !linux && !hpux */
+#endif /* !DBM_PWD_SUPPORT */
+#endif
+
+#ifdef DBM_PWD_SUPPORT
+#include <ndbm.h>
+#endif /* DBM_PWD_SUPPORT */
+
+typedef struct pwf_context {
+ FILE *pwf;
+ char line[BUFSIZ+1];
+ struct passwd passwd;
+ int pw_stayopen;
+ char *pw_file;
+#ifdef DBM_PWD_SUPPORT
+ DBM *pw_db;
+#endif /* DBM_PWD_SUPPORT */
+} pwf_context_t;
+
+pwf_context_t *_pw_get_data __P_((void));
+
+#endif /* _PWD_INTERNAL_H_ */