fix typo in setpriority syscall wrapper
[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 struct lastlog {
15         time_t ll_time;
16         char ll_line[UT_LINESIZE];
17         char ll_host[UT_HOSTSIZE];
18 };
19
20 #define ut_time ut_tv.tv_sec
21 #define ut_name ut_user
22 #define utmp utmpx
23 #define utmpname(x) (-1)
24
25 void         endutent(void);
26 struct utmp *getutent(void);
27 struct utmp *getutid(const struct utmp *);
28 struct utmp *getutline(const struct utmp *);
29 struct utmp *pututline(const struct utmp *);
30 void         setutent(void);
31
32 void updwtmp(const char *, const struct utmp *);
33
34 #define _PATH_UTMP "/dev/null"
35 #define _PATH_WTMP "/dev/null"
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif