mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 08:42:28 +00:00
Stub out getutline and pututline
This commit is contained in:
parent
3b791d2f44
commit
2af7c802b6
1 changed files with 9 additions and 24 deletions
|
@ -20,22 +20,9 @@
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/runtime/utmpx.h"
|
#include "libc/runtime/utmpx.h"
|
||||||
|
|
||||||
void setutent(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void endutent(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void endutxent(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) {
|
void updwtmpx(const char *x, const struct utmpx *y) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,10 +33,6 @@ struct utmpx *pututxline(const struct utmpx *p) {
|
||||||
void setutxent(void) {
|
void setutxent(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct utmp *getutid(const struct utmp *x) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct utmpx *getutxent(void) {
|
struct utmpx *getutxent(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -67,10 +50,12 @@ int __utmpxname() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int utmpname(const char *x) {
|
__weak_reference(endutxent, endutent);
|
||||||
return __utmpxname();
|
__weak_reference(setutxent, setutent);
|
||||||
}
|
__weak_reference(getutxent, getutent);
|
||||||
|
__weak_reference(getutxid, getutid);
|
||||||
int utmpxname(const char *x) {
|
__weak_reference(getutxline, getutline);
|
||||||
return __utmpxname();
|
__weak_reference(pututxline, pututline);
|
||||||
}
|
__weak_reference(updwtmpx, updwtmp);
|
||||||
|
__weak_reference(__utmpxname, utmpname);
|
||||||
|
__weak_reference(__utmpxname, utmpxname);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue