remove or make static various unused __-prefixed symbols
[musl.git] / src / legacy / utmpx.c
blob3c9836792936c8ea21d20838946b3416f45f3f1b
1 #define _GNU_SOURCE
2 #include <utmpx.h>
3 #include <stddef.h>
4 #include <errno.h>
5 #include "libc.h"
7 void endutxent(void)
11 void setutxent(void)
15 struct utmpx *getutxent(void)
17 return NULL;
20 struct utmpx *getutxid(const struct utmpx *ut)
22 return NULL;
25 struct utmpx *getutxline(const struct utmpx *ut)
27 return NULL;
30 struct utmpx *pututxline(const struct utmpx *ut)
32 return NULL;
35 void updwtmpx(const char *f, const struct utmpx *u)
39 static int __utmpxname(const char *f)
41 errno = ENOTSUP;
42 return -1;
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);