11 weak_alias(setpwent, endpwent);
13 struct passwd *getpwent()
16 static struct passwd pw;
18 if (!f) f = fopen("/etc/passwd", "rb");
20 return __getpwent_a(f, &pw, &line, &size);
23 struct passwd *getpwuid(uid_t uid)
27 while ((pw=getpwent()) && pw->pw_uid != uid);
32 struct passwd *getpwnam(const char *name)
36 while ((pw=getpwent()) && strcmp(pw->pw_name, name));