1 #include <pwd.h> 2 #include <grp.h> 3 #include <shadow.h> 4 #include <stdio.h> 5 #include <errno.h> 6 #include <stdint.h> 7 #include <stdlib.h> 8 #include <string.h> 9 #include <limits.h> 10 11 hidden int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res); 12 hidden int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct passwd **res); 13 hidden int __getgrent_a(FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, struct group **res); 14 hidden int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res); 15 hidden int __parsespent(char *s, struct spwd *sp); 16