1 #ifndef _GRP_H_ 2 #define _GRP_H_ 3 /* 4 ** Distributed under the terms of the Haiku License. 5 */ 6 7 8 #include <sys/types.h> 9 10 11 struct group { 12 char *gr_name; 13 char *gr_passwd; 14 int gr_gid; 15 char **gr_mem; 16 }; 17 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 extern struct group *getgrgid(gid_t gid); 24 extern struct group *getgrnam(const char *name); 25 extern int getgrgid_r(gid_t gid, struct group *group, char *buffer, 26 size_t bufferSize, struct group **_result); 27 extern int getgrnam_r(const char *name, struct group *group, char *buffer, 28 size_t bufferSize, struct group **_result); 29 30 extern struct group *getgrent(void); 31 extern void setgrent(void); 32 extern void endgrent(void); 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif /* _GRP_H_ */ 39