projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
execvp has to do ENOEXEC recovery even if `/' in the path
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
getpwuid.c
#ifndef lint
static char
sccsid
[] =
"@(#)getpwuid.c 5.1 (Berkeley) %G%"
;
#endif not lint
#include <pwd.h>
struct
passwd
*
getpwuid
(
uid
)
register
uid
;
{
register
struct
passwd
*
p
;
struct
passwd
*
getpwent
();
setpwent
();
while
( (
p
=
getpwent
()) &&
p
->
pw_uid
!=
uid
);
endpwent
();
return
(
p
);
}