Usermode - A few tweaks to POSIX emulation for dropbear
[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 };
21
22 extern struct passwd    *getpwnam(const char *);
23 extern struct passwd    *getpwuid(uid_t);
24 extern int      getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **);
25 extern int      getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
26 extern void     endpwent(void);
27 extern struct passwd    *getpwent(void);
28 extern void     setpwent(void);
29
30 #endif
31

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