Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Side by Side Diff: fusl/include/grp.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/glob.h ('k') | fusl/include/iconv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _GRP_H
2 #define _GRP_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #define __NEED_size_t
11 #define __NEED_gid_t
12
13 #ifdef _GNU_SOURCE
14 #define __NEED_FILE
15 #endif
16
17 #include <bits/alltypes.h>
18
19 struct group
20 {
21 char *gr_name;
22 char *gr_passwd;
23 gid_t gr_gid;
24 char **gr_mem;
25 };
26
27 struct group *getgrgid(gid_t);
28 struct group *getgrnam(const char *);
29
30 int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
31 int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
32
33 struct group *getgrent(void);
34 void endgrent(void);
35 void setgrent(void);
36
37 #ifdef _GNU_SOURCE
38 struct group *fgetgrent(FILE *stream);
39 int putgrent(const struct group *, FILE *);
40 #endif
41
42 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
43 int getgrouplist(const char *, gid_t, gid_t *, int *);
44 int setgroups(size_t, const gid_t *);
45 int initgroups(const char *, gid_t);
46 #endif
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif
OLDNEW
« no previous file with comments | « fusl/include/glob.h ('k') | fusl/include/iconv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698