92519c2e570734fbe68ef26a37f713809bc0a349
[musl] / include / utmp.h
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
14 #define ut_time ut_tv.tv_sec
15 #define ut_name ut_user
16 #define ut_exit __ut_exit
17 #define e_termination __e_termination
18 #define e_exit __e_exit
19 #define utmp utmpx
20 #define utmpname(x) (-1)
21
22 void         endutent(void);
23 struct utmp *getutent(void);
24 struct utmp *getutid(const struct utmp *);
25 struct utmp *getutline(const struct utmp *);
26 struct utmp *pututline(const struct utmp *);
27 void         setutent(void);
28
29 void updwtmp(const char *, const struct utmp *);
30
31 #define _PATH_UTMP "/dev/null"
32 #define _PATH_WTMP "/dev/null"
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif