Stub out getutline and pututline

This commit is contained in:
Justine Tunney 2023-10-31 21:58:39 -07:00
parent 3b791d2f44
commit 2af7c802b6
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -20,22 +20,9 @@
#include "libc/errno.h"
#include "libc/runtime/utmpx.h"
void setutent(void) {
}
void endutent(void) {
}
void endutxent(void) {
}
struct utmp *getutent(void) {
return 0;
}
void updwtmp(const char *x, const struct utmp *y) {
}
void updwtmpx(const char *x, const struct utmpx *y) {
}
@ -46,10 +33,6 @@ struct utmpx *pututxline(const struct utmpx *p) {
void setutxent(void) {
}
struct utmp *getutid(const struct utmp *x) {
return 0;
}
struct utmpx *getutxent(void) {
return 0;
}
@ -67,10 +50,12 @@ int __utmpxname() {
return -1;
}
int utmpname(const char *x) {
return __utmpxname();
}
int utmpxname(const char *x) {
return __utmpxname();
}
__weak_reference(endutxent, endutent);
__weak_reference(setutxent, setutent);
__weak_reference(getutxent, getutent);
__weak_reference(getutxid, getutid);
__weak_reference(getutxline, getutline);
__weak_reference(pututxline, pututline);
__weak_reference(updwtmpx, updwtmp);
__weak_reference(__utmpxname, utmpname);
__weak_reference(__utmpxname, utmpxname);