summaryrefslogtreecommitdiff
path: root/src/pwd/__pwd.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-14 16:27:35 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-14 16:27:35 -0400
commit22f4c7005e9ca07a493f84eac2f529ec369649f3 (patch)
tree93f4ece4d9abe128705ad42c7842605b04e0869e /src/pwd/__pwd.c
parenta4a288cb5dedb82def5e2c2193bd6e9f4a399194 (diff)
add __pwd.c for <pwd.h> internal state
Diffstat (limited to 'src/pwd/__pwd.c')
-rw-r--r--src/pwd/__pwd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pwd/__pwd.c b/src/pwd/__pwd.c
new file mode 100644
index 00000000..c6fb7787
--- /dev/null
+++ b/src/pwd/__pwd.c
@@ -0,0 +1,18 @@
+#include "_pwd.h"
+
+#ifndef _XOPEN_SOURCE
+#undef getpwent
+#define getpwent __getpwent
+#include "getpwent.c"
+#endif
+
+struct __pwd __pwd =
+{
+ NULL,
+ { 0 },
+ getpwent,
+};
+
+/*
+POSIX(1)
+*/