Updated PCI IDs to latest snapshot.
[tangerine.git] / compiler / clib / include / pwd.h
blobc1456f1a467b87fd0aa3a37a03bba5a279d541b6
1 #ifndef _PWD_H_
2 #define _PWD_H_
4 /*
5 Copyright © 2003, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <sys/_types.h>
10 #include <sys/cdefs.h>
13 Implementation Note:
14 You do not need to define size_t in this file. (POSIX)
17 #ifndef __AROS_GID_T_DECLARED
18 #define __AROS_GID_T_DECLARED
19 typedef __gid_t gid_t;
20 #endif
22 #ifndef __AROS_UID_T_DECLARED
23 #define __AROS_UID_T_DECLARED
24 typedef __uid_t uid_t;
25 #endif
27 struct passwd
29 char *pw_name; /* Username */
30 char *pw_passwd; /* Password */
31 uid_t pw_uid; /* User ID */
32 gid_t pw_gid; /* Group ID */
33 char *pw_gecos; /* Real name */
34 char *pw_dir; /* Home directory */
35 char *pw_shell; /* Shell */
38 __BEGIN_DECLS
40 struct passwd *getpwuid(uid_t uid);
41 struct passwd *getpwnam(const char *name);
43 #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
44 /* NOTIMPL int getpwnam_r(const char *name, struct passwd *pwd, char *buffer,
45 size_t bufsize, struct passwd **result); */
46 /* NOTIMPL int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize,
47 struct passwd **result); */
48 #endif
50 #if __XSI_VISIBLE
51 void endpwent(void);
52 struct passwd *getpwent(void);
53 void setpwent(void);
54 #endif
56 __END_DECLS
58 #endif /* _PWD_H_ */