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/posix/generic/posix_locale.cpp | 37 ------------------------ 1 file changed, 37 deletions(-) delete mode 100644 lib/mlibc/options/posix/generic/posix_locale.cpp (limited to 'lib/mlibc/options/posix/generic/posix_locale.cpp') diff --git a/lib/mlibc/options/posix/generic/posix_locale.cpp b/lib/mlibc/options/posix/generic/posix_locale.cpp deleted file mode 100644 index bd8710a..0000000 --- a/lib/mlibc/options/posix/generic/posix_locale.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include - -namespace { - -bool newlocale_seen = false; -bool uselocale_seen = false; - -} - -locale_t newlocale(int, const char *, locale_t) { - // Due to all of the locale functions being stubs, the locale will not be used - if(!newlocale_seen) { - mlibc::infoLogger() << "mlibc: newlocale() is a no-op" << frg::endlog; - newlocale_seen = true; - } - return nullptr; -} - -void freelocale(locale_t) { - mlibc::infoLogger() << "mlibc: freelocale() is a no-op" << frg::endlog; - return; -} - -locale_t uselocale(locale_t) { - if(!uselocale_seen) { - mlibc::infoLogger() << "mlibc: uselocale() is a no-op" << frg::endlog; - uselocale_seen = true; - } - return nullptr; -} - -locale_t duplocale(locale_t) { - mlibc::infoLogger() << "mlibc: duplocale() is a no-op" << frg::endlog; - return nullptr; -} -- cgit v1.2.3