From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/options/linux/generic/utmpx.cpp | 45 ------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 lib/mlibc/options/linux/generic/utmpx.cpp (limited to 'lib/mlibc/options/linux/generic/utmpx.cpp') diff --git a/lib/mlibc/options/linux/generic/utmpx.cpp b/lib/mlibc/options/linux/generic/utmpx.cpp deleted file mode 100644 index 4742567..0000000 --- a/lib/mlibc/options/linux/generic/utmpx.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include -#include -#include -#include - -void updwtmpx(const char *, const struct utmpx *) { - // Empty as musl does - mlibc::infoLogger() << "\e[31mmlibc: updwtmpx() is a stub\e[39m" << frg::endlog; -} - -void endutxent(void) { - // Empty as musl does - mlibc::infoLogger() << "\e[31mmlibc: endutxent() is a stub\e[39m" << frg::endlog; -} - -void setutxent(void) { - // Empty as musl does - mlibc::infoLogger() << "\e[31mmlibc: setutxent() is a stub\e[39m" << frg::endlog; -} - -struct utmpx *getutxent(void) { - // return NULL as musl does - mlibc::infoLogger() << "\e[31mmlibc: getutxent() is a stub\e[39m" << frg::endlog; - return NULL; -} - -struct utmpx *pututxline(const struct utmpx *) { - // return NULL as musl does - mlibc::infoLogger() << "\e[31mmlibc: pututxline() is a stub\e[39m" << frg::endlog; - return NULL; -} - -int utmpxname(const char *) { - // return -1 as musl does - mlibc::infoLogger() << "\e[31mmlibc: utmpxname() is a stub\e[39m" << frg::endlog; - errno = ENOSYS; - return -1; -} - -struct utmpx *getutxid(const struct utmpx *) { - // return NULL as musl does - mlibc::infoLogger() << "\e[31mmlibc: getutxid() is a stub\e[39m" << frg::endlog; - return NULL; -} -- cgit v1.2.3