* Replaced <sys/cdefs.h> include with <aros/system.h> in most places (AROSTCP is...
[AROS.git] / compiler / clib / include / grp.h
blobde6d5c33c3f9d8d2c306f41815d69057d9270b49
1 #ifndef _GRP_H_
2 #define _GRP_H_
4 /*
5 Copyright © 2003-2011, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <aros/system.h>
12 Implementation Note:
13 You do not need to define size_t in this file. (POSIX)
16 #include <aros/types/size_t.h>
17 #include <aros/types/gid_t.h>
19 struct group
21 char *gr_name; /* Group name */
22 char *gr_passwd; /* Group password */
23 gid_t gr_gid; /* Group ID */
24 char **gr_mem; /* Group members */
27 __BEGIN_DECLS
29 struct group *getgrgid(gid_t gid);
30 struct group *getgrnam(const char *name);
32 /* NOTIMPL int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize,
33 struct group **result); */
34 /* NOTIMPL int getgrname_r(const char *name, struct group *grp, char *buffer,
35 size_t bufsize, struct group **resule); */
37 struct group *getgrent(void);
38 void endgrent(void);
39 void setgrent(void);
41 __END_DECLS
43 #endif /* _GRP_H_ */