2 Copyright © 2004-2016, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
11 /*****************************************************************************
17 struct passwd
*getpwuid(
29 Function is not re-entrant. Results will be overwritten by
40 ******************************************************************************/
42 static struct passwd _return
;
44 if (_user
.ur_uid
== uid
)
46 _return
.pw_name
= _user
.ur_name
;
47 _return
.pw_uid
= _user
.ur_uid
;
48 _return
.pw_dir
= _user
.ur_dir
;
49 _return
.pw_shell
= _user
.ur_shell
;
50 _return
.pw_passwd
= _user
.ur_passwd
;
51 _return
.pw_gecos
= _user
.ur_gecos
;