summaryrefslogtreecommitdiff
path: root/lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 17:28:52 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 18:24:51 -0500
commitf5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch)
tree93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp
parentbd5969fc876a10b18613302db7087ef3c40f18e1 (diff)
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp')
-rw-r--r--lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp b/lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp
deleted file mode 100644
index b9b61fc..0000000
--- a/lib/mlibc/options/glibc/generic/stdio_ext-stubs.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-
-#include <stdio_ext.h>
-#include <bits/ensure.h>
-#include <mlibc/debug.hpp>
-
-size_t __fbufsize(FILE *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-
-size_t __fpending(FILE *file_base) {
- __ensure(file_base->__dirty_end >= file_base->__dirty_begin);
- return file_base->__dirty_end - file_base->__dirty_begin;
-}
-
-int __flbf(FILE *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-int __freadable(FILE *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-int __fwritable(FILE *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-
-int __freading(FILE *file_base) {
- return file_base->__io_mode == 0;
-}
-
-int __fwriting(FILE *file_base) {
- return file_base->__io_mode == 1;
-}
-
-int __fsetlocking(FILE *, int) {
- mlibc::infoLogger() << "mlibc: __fsetlocking() is a no-op" << frg::endlog;
- return FSETLOCKING_INTERNAL;
-}
-
-void _flushlbf(void) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-
-// The following functions are defined by musl.
-
-size_t __freadahead(FILE *file_base) {
- if(file_base->__io_mode != 0) {
- mlibc::infoLogger() << "mlibc: __freadahead() called but file is not open for reading" << frg::endlog;
- return 0;
- }
- return file_base->__valid_limit - file_base->__offset;
-}
-const char *__freadptr(FILE *, size_t *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-void __fseterr(FILE *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
-}
-