Usermode/libpsocket - Header wrapping, byte ordering functions
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / grp.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * grp.h
6  * - Group Management
7  */
8 #ifndef _LIBPOSIX__GRP_H_
9 #define _LIBPOSIX__GRP_H_
10
11 #include <sys/types.h>
12
13 struct group
14 {
15         char    *gr_name;
16         char    *gr_password;
17         gid_t   gr_gid;
18         char    **gr_mem;       // Members
19 };
20
21 extern int      initgroups(const char *user, gid_t group);
22 extern struct group *getgrnam(const char *name);
23 extern struct group *getgrgid(gid_t gid);
24 extern int      getgrnam_r(const char *name, struct group *grp, char *buf, size_t buflen, struct group **result);
25 extern int      getgrgid_r(gid_t gid, struct group *grp, char *buf, size_t buflen, struct group **result);
26
27 #endif
28

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