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