diff options
Diffstat (limited to 'include/grp.h')
| -rw-r--r-- | include/grp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/grp.h b/include/grp.h new file mode 100644 index 00000000..02f023af --- /dev/null +++ b/include/grp.h @@ -0,0 +1,21 @@ +#ifndef __GRP_H +#define __GRP_H + +typedef __SIZE_TYPE__ size_t; +typedef __UINT32_TYPE__ gid_t; + +struct group { + char *gr_name; + gid_t gr_gid; + char **gr_mem; +}; + +void endgrent(void); +struct group *getgrent(void); +struct group *getgrgid(gid_t); +int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); +struct group *getgrnam(const char *); +int getgrnam_r(const char *, struct group *, char *, size_t, struct group **); +void setgrent(void); + +#endif |
