about summary refs log tree commit diff
path: root/include/pwd.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-01-29 11:54:18 -0500
committerRich Felker <dalias@aerifal.cx>2012-01-29 11:54:18 -0500
commit5e9314ff03076a94316d4e66efd082548c065f3d (patch)
tree171936f8613c00e4b491ede1f8ae1e34cff61b4f /include/pwd.h
parent4619901ec4b82d233a24e26ef3df01ddadc2d013 (diff)
downloadmusl-5e9314ff03076a94316d4e66efd082548c065f3d.tar.gz
musl-5e9314ff03076a94316d4e66efd082548c065f3d.tar.xz
musl-5e9314ff03076a94316d4e66efd082548c065f3d.zip
add fgetpwent (nonstandard function)
based on patch by Jeremy Huntwork
Diffstat (limited to 'include/pwd.h')
-rw-r--r--include/pwd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 38e856d3..fbdda3e7 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -9,6 +9,10 @@ extern "C" {
 #define __NEED_uid_t
 #define __NEED_gid_t
 
+#ifdef _GNU_SOURCE
+#define __NEED_FILE
+#endif
+
 #include <bits/alltypes.h>
 
 struct passwd
@@ -33,6 +37,7 @@ int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **)
 
 #ifdef _GNU_SOURCE
 char *getpass(const char *);
+struct passwd *fgetpwent(FILE *);
 #endif
 
 #ifdef __cplusplus