first attempt at enabling stack protector support
[musl.git] / include / grp.h
blob518518512c99149526f1c831cf3b95620ace4f1d
1 #ifndef _GRP_H
2 #define _GRP_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #define __NEED_size_t
9 #define __NEED_gid_t
11 #include <bits/alltypes.h>
13 struct group
15 char *gr_name;
16 char *gr_passwd;
17 gid_t gr_gid;
18 char **gr_mem;
21 struct group *getgrgid(gid_t);
22 struct group *getgrnam(const char *);
24 int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
25 int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
27 struct group *getgrent(void);
28 void endgrent(void);
29 void setgrent(void);
31 #ifdef _GNU_SOURCE
32 int getgrouplist(const char *, gid_t, gid_t *, int *);
33 int setgroups(size_t, const gid_t *);
34 int initgroups(const char *, gid_t);
35 #endif
37 #ifdef __cplusplus
39 #endif
41 #endif