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

Side by Side Diff: fusl/include/utmp.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/utime.h ('k') | fusl/include/utmpx.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 _UTMP_H
2 #define _UTMP_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <utmpx.h>
9
10 #define ACCOUNTING 9
11 #define UT_NAMESIZE 32
12 #define UT_HOSTSIZE 256
13 #define UT_LINESIZE 32
14
15 struct lastlog {
16 time_t ll_time;
17 char ll_line[UT_LINESIZE];
18 char ll_host[UT_HOSTSIZE];
19 };
20
21 #define ut_time ut_tv.tv_sec
22 #define ut_name ut_user
23 #define ut_addr ut_addr_v6[0]
24 #define utmp utmpx
25 #define utmpname(x) (-1)
26 #define e_exit __e_exit
27 #define e_termination __e_termination
28
29 void endutent(void);
30 struct utmp *getutent(void);
31 struct utmp *getutid(const struct utmp *);
32 struct utmp *getutline(const struct utmp *);
33 struct utmp *pututline(const struct utmp *);
34 void setutent(void);
35
36 void updwtmp(const char *, const struct utmp *);
37
38 int login_tty(int);
39
40 #define _PATH_UTMP "/dev/null/utmp"
41 #define _PATH_WTMP "/dev/null/wtmp"
42
43 #define UTMP_FILE _PATH_UTMP
44 #define WTMP_FILE _PATH_WTMP
45 #define UTMP_FILENAME _PATH_UTMP
46 #define WTMP_FILENAME _PATH_WTMP
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif
OLDNEW
« no previous file with comments | « fusl/include/utime.h ('k') | fusl/include/utmpx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698