aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib/libg++/g++-include/pwd.h
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
commita16f65c7d117419bd266c28a1901ef129a337569 (patch)
tree2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /gnu/lib/libg++/g++-include/pwd.h
parent8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff)
Diffstat (limited to 'gnu/lib/libg++/g++-include/pwd.h')
-rw-r--r--gnu/lib/libg++/g++-include/pwd.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/lib/libg++/g++-include/pwd.h b/gnu/lib/libg++/g++-include/pwd.h
new file mode 100644
index 000000000000..f33d7ee4141e
--- /dev/null
+++ b/gnu/lib/libg++/g++-include/pwd.h
@@ -0,0 +1,36 @@
+#ifndef _pwd_h
+
+// the Interviews-based standard kludge again
+
+extern "C" {
+
+#ifdef __pwd_h_recursive
+#include_next <pwd.h>
+#else
+#define getpwent c_proto_getpwent
+#define getpwuid c_proto_getpwuid
+#define getpwnam c_proto_getpwnam
+#define setpwent c_proto_setpwent
+#define endpwent c_proto_endpwent
+
+#define __pwd_h_recursive
+#include_next <pwd.h>
+
+#define _pwd_h 1
+
+#undef getpwent
+#undef getpwuid
+#undef getpwnam
+#undef setpwent
+#undef endpwent
+
+extern struct passwd* getpwent();
+extern struct passwd* getpwuid(int);
+extern struct passwd* getpwnam(const char*);
+extern int setpwent();
+extern int endpwent();
+
+#endif
+}
+
+#endif