18 #include <bits/alltypes.h>
30 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
33 struct passwd
*getpwent (void);
36 struct passwd
*getpwuid (uid_t
);
37 struct passwd
*getpwnam (const char *);
38 int getpwuid_r (uid_t
, struct passwd
*, char *, size_t, struct passwd
**);
39 int getpwnam_r (const char *, struct passwd
*, char *, size_t, struct passwd
**);
42 struct passwd
*fgetpwent(FILE *);
43 int putpwent(const struct passwd
*, FILE *);