From cac872957e8c9e3fc13904c1c55eee0253ec1382 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 17 Feb 2013 13:21:56 -0500 Subject: 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. --- include/grp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/grp.h') 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 *); -- cgit v1.2.1