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

Side by Side Diff: fusl/src/legacy/utmpx.c

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 #include <utmpx.h> 1 #include <utmpx.h>
2 #include <stddef.h> 2 #include <stddef.h>
3 #include <errno.h> 3 #include <errno.h>
4 #include "libc.h" 4 #include "libc.h"
5 5
6 void endutxent(void) 6 void endutxent(void) {}
7 { 7
8 void setutxent(void) {}
9
10 struct utmpx* getutxent(void) {
11 return NULL;
8 } 12 }
9 13
10 void setutxent(void) 14 struct utmpx* getutxid(const struct utmpx* ut) {
11 { 15 return NULL;
12 } 16 }
13 17
14 struct utmpx *getutxent(void) 18 struct utmpx* getutxline(const struct utmpx* ut) {
15 { 19 return NULL;
16 » return NULL;
17 } 20 }
18 21
19 struct utmpx *getutxid(const struct utmpx *ut) 22 struct utmpx* pututxline(const struct utmpx* ut) {
20 { 23 return NULL;
21 » return NULL;
22 } 24 }
23 25
24 struct utmpx *getutxline(const struct utmpx *ut) 26 void updwtmpx(const char* f, const struct utmpx* u) {}
25 {
26 » return NULL;
27 }
28 27
29 struct utmpx *pututxline(const struct utmpx *ut) 28 int __utmpxname(const char* f) {
30 { 29 errno = ENOTSUP;
31 » return NULL; 30 return -1;
32 }
33
34 void updwtmpx(const char *f, const struct utmpx *u)
35 {
36 }
37
38 int __utmpxname(const char *f)
39 {
40 » errno = ENOTSUP;
41 » return -1;
42 } 31 }
43 32
44 weak_alias(endutxent, endutent); 33 weak_alias(endutxent, endutent);
45 weak_alias(setutxent, setutent); 34 weak_alias(setutxent, setutent);
46 weak_alias(getutxent, getutent); 35 weak_alias(getutxent, getutent);
47 weak_alias(getutxid, getutid); 36 weak_alias(getutxid, getutid);
48 weak_alias(getutxline, getutline); 37 weak_alias(getutxline, getutline);
49 weak_alias(pututxline, pututline); 38 weak_alias(pututxline, pututline);
50 weak_alias(updwtmpx, updwtmp); 39 weak_alias(updwtmpx, updwtmp);
51 weak_alias(__utmpxname, utmpname); 40 weak_alias(__utmpxname, utmpname);
52 weak_alias(__utmpxname, utmpxname); 41 weak_alias(__utmpxname, utmpxname);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698