summaryrefslogtreecommitdiff
path: root/src/pwd/__pwd.c
diff options
context:
space:
mode:
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)
+*/