5 static struct passwd pw
;
14 weak_alias(setpwent
, endpwent
);
16 struct passwd
*getpwent()
19 if (!f
) f
= fopen("/etc/passwd", "rbe");
21 __getpwent_a(f
, &pw
, &line
, &size
, &res
);
25 struct passwd
*getpwuid(uid_t uid
)
28 __getpw_a(0, uid
, &pw
, &line
, &size
, &res
);
32 struct passwd
*getpwnam(const char *name
)
35 __getpw_a(name
, 0, &pw
, &line
, &size
, &res
);