summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-02-17 13:21:56 -0500
committerRich Felker <dalias@aerifal.cx>2013-02-17 13:21:56 -0500
commitcac872957e8c9e3fc13904c1c55eee0253ec1382 (patch)
treef3b6fb0402b32ea47469412f0f1baa2b4239a63b /include
parentb9e08308f4d1fccc188408b223e6820194a5fadf (diff)
downloadmusl-cac872957e8c9e3fc13904c1c55eee0253ec1382.tar.gz
musl-cac872957e8c9e3fc13904c1c55eee0253ec1382.tar.bz2
musl-cac872957e8c9e3fc13904c1c55eee0253ec1382.tar.xz
musl-cac872957e8c9e3fc13904c1c55eee0253ec1382.zip
add fgetgrent function
based on patch by Isaac Dunham, moved to its own file to avoid increasing bss on static linked programs not using this nonstandard function but using the standard getgrent function, and vice versa.
Diffstat (limited to 'include')
-rw-r--r--include/grp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grp.h b/include/grp.h
index 030d7f82..cb40e07e 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -30,6 +30,10 @@ struct group *getgrent(void);
void endgrent(void);
void setgrent(void);
+#ifdef _GNU_SOURCE
+struct group *fgetgrent(FILE *stream);
+#endif
+
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
int getgrouplist(const char *, gid_t, gid_t *, int *);
int setgroups(size_t, const gid_t *);