getpwent_r
int getpwent_r(struct passwd *, char *, size_t, struct passwd **);
return (getpwent_r(pwd, buffer, bufsize, res));