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

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

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 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
OLDNEW
1 #ifndef _PWD_H 1 #ifndef _PWD_H
2 #define _PWD_H 2 #define _PWD_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 9
10 #define __NEED_size_t 10 #define __NEED_size_t
11 #define __NEED_uid_t 11 #define __NEED_uid_t
12 #define __NEED_gid_t 12 #define __NEED_gid_t
13 13
14 #ifdef _GNU_SOURCE 14 #ifdef _GNU_SOURCE
15 #define __NEED_FILE 15 #define __NEED_FILE
16 #endif 16 #endif
17 17
18 #include <bits/alltypes.h> 18 #include <bits/alltypes.h>
19 19
20 struct passwd 20 struct passwd {
21 { 21 char* pw_name;
22 » char *pw_name; 22 char* pw_passwd;
23 » char *pw_passwd; 23 uid_t pw_uid;
24 » uid_t pw_uid; 24 gid_t pw_gid;
25 » gid_t pw_gid; 25 char* pw_gecos;
26 » char *pw_gecos; 26 char* pw_dir;
27 » char *pw_dir; 27 char* pw_shell;
28 » char *pw_shell;
29 }; 28 };
30 29
31 void setpwent (void); 30 void setpwent(void);
32 void endpwent (void); 31 void endpwent(void);
33 struct passwd *getpwent (void); 32 struct passwd* getpwent(void);
34 33
35 struct passwd *getpwuid (uid_t); 34 struct passwd* getpwuid(uid_t);
36 struct passwd *getpwnam (const char *); 35 struct passwd* getpwnam(const char*);
37 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **); 36 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 **) ; 37 int getpwnam_r(const char*, struct passwd*, char*, size_t, struct passwd**);
39 38
40 #ifdef _GNU_SOURCE 39 #ifdef _GNU_SOURCE
41 struct passwd *fgetpwent(FILE *); 40 struct passwd* fgetpwent(FILE*);
42 int putpwent(const struct passwd *, FILE *); 41 int putpwent(const struct passwd*, FILE*);
43 #endif 42 #endif
44 43
45 #ifdef __cplusplus 44 #ifdef __cplusplus
46 } 45 }
47 #endif 46 #endif
48 47
49 #endif 48 #endif
OLDNEW
« fusl/arch/aarch64/atomic_arch.h ('K') | « fusl/include/pty.h ('k') | fusl/include/regex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698