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