cleanup types stuff in headers, fix missing u_int*_t in sys/types.h
[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 ut_time ut_tv.tv_sec
11 #define ut_name ut_user
12 #define ut_exit __ut_exit
13 #define e_termination __e_termination
14 #define e_exit __e_exit
15 #define utmp utmpx
16 #define utmpname(x) (-1)
17
18 void         endutent(void);
19 struct utmp *getutent(void);
20 struct utmp *getutid(const struct utmp *);
21 struct utmp *getutline(const struct utmp *);
22 struct utmp *pututline(const struct utmp *);
23 void         setutent(void);
24
25 void updwtmp(const char *, const struct utmp *);
26
27 #define _PATH_UTMP "/dev/null"
28 #define _PATH_WTMP "/dev/null"
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif