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

Side by Side Diff: fusl/include/pwd.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/pty.h ('k') | fusl/include/regex.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 _PWD_H
2 #define _PWD_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #define __NEED_size_t
11 #define __NEED_uid_t
12 #define __NEED_gid_t
13
14 #ifdef _GNU_SOURCE
15 #define __NEED_FILE
16 #endif
17
18 #include <bits/alltypes.h>
19
20 struct passwd
21 {
22 char *pw_name;
23 char *pw_passwd;
24 uid_t pw_uid;
25 gid_t pw_gid;
26 char *pw_gecos;
27 char *pw_dir;
28 char *pw_shell;
29 };
30
31 void setpwent (void);
32 void endpwent (void);
33 struct passwd *getpwent (void);
34
35 struct passwd *getpwuid (uid_t);
36 struct passwd *getpwnam (const char *);
37 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
38 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **) ;
39
40 #ifdef _GNU_SOURCE
41 struct passwd *fgetpwent(FILE *);
42 int putpwent(const struct passwd *, FILE *);
43 #endif
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif
OLDNEW
« no previous file with comments | « fusl/include/pty.h ('k') | fusl/include/regex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698