summaryrefslogtreecommitdiff
path: root/src/pwd/_pwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pwd/_pwd.h')
-rw-r--r--src/pwd/_pwd.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/pwd/_pwd.h b/src/pwd/_pwd.h
deleted file mode 100644
index b5d666bf..00000000
--- a/src/pwd/_pwd.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef ___PWD_H__
-#define ___PWD_H__
-
-#include <sys/types.h>
-#include <pwd.h>
-#include <stdio.h>
-
-struct __pwd {
- FILE *db;
- struct passwd pwd;
- struct passwd * (*getpwent)(void);
-};
-
-extern struct __pwd __pwd;
-
-#ifndef _XOPEN_SOURCE
-#define setpwent() (__pwd.db == NULL ? (void)0 : (void)rewind(__pwd.db))
-
-#define endpwent() do { \
- if (__pwd.db) { \
- fclose(__pwd.db); \
- __pwd.db = NULL; \
- } \
-} while (0)
-
-#define getpwent __pwd.getpwent
-#endif
-
-#endif