Usermode/libpsocket - Header wrapping, byte ordering functions
[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 <stddef.h>     // size_t
12 #include <sys/types.h>  // gid_t/uid_t
13
14 struct passwd
15 {
16         char    *pw_name;
17         uid_t   pw_uid;
18         gid_t   pw_gid;
19         char    *pw_dir;
20         char    *pw_shell;
21         char    *pw_passwd;
22 };
23
24 extern struct passwd    *getpwnam(const char *);
25 extern struct passwd    *getpwuid(uid_t);
26 extern int      getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **);
27 extern int      getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
28 extern void     endpwent(void);
29 extern struct passwd    *getpwent(void);
30 extern void     setpwent(void);
31
32 #endif
33

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