ae4bf077d566aa3ad4fe8ea05f5bec537e3e40d3
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / pwd.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * pwd.h
6  * - Password Structure
7  */
8 #ifndef _LIBPOSIX__PWD_H_
9 #define _LIBPOSIX__PWD_H_
10
11 #include <sys/types.h>  // gid_t/uid_t
12
13 struct passwd
14 {
15         char    *pw_name;
16         uid_t   pw_uid;
17         gid_t   pw_gid;
18         char    *pw_dir;
19         char    *pw_shell;
20         char    *pw_passwd;
21 };
22
23 extern struct passwd    *getpwnam(const char *);
24 extern struct passwd    *getpwuid(uid_t);
25 extern int      getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **);
26 extern int      getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
27 extern void     endpwent(void);
28 extern struct passwd    *getpwent(void);
29 extern void     setpwent(void);
30
31 #endif
32

UCC git Repository :: git.ucc.asn.au