2 Copyright © 2004-2017, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
8 #include "__posixc_intbase.h"
11 /*****************************************************************************
17 struct passwd
*getpwuid(
23 Returns the database entry for the user with specified uid.
30 Function is not re-entrant. Results will be overwritten by
41 ******************************************************************************/
43 struct PosixCIntBase
*PosixCBase
=
44 (struct PosixCIntBase
*)__aros_getbase_PosixCBase();
46 __fill_passwd(&PosixCBase
->pwd
, uid
);
48 if (PosixCBase
->pwd
.pw_uid
== uid
)
49 return &PosixCBase
->pwd
;