diff options
Diffstat (limited to 'libc-top-half/musl/src/passwd/fgetgrent.c')
-rw-r--r-- | libc-top-half/musl/src/passwd/fgetgrent.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/passwd/fgetgrent.c b/libc-top-half/musl/src/passwd/fgetgrent.c new file mode 100644 index 0000000..7d045fd --- /dev/null +++ b/libc-top-half/musl/src/passwd/fgetgrent.c @@ -0,0 +1,12 @@ +#define _GNU_SOURCE +#include "pwf.h" + +struct group *fgetgrent(FILE *f) +{ + static char *line, **mem; + static struct group gr; + struct group *res; + size_t size=0, nmem=0; + __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); + return res; +} |