diff --git a/userspace/libraries/LibC/CMakeLists.txt b/userspace/libraries/LibC/CMakeLists.txt index 5105a70b2f..8f4f73f599 100644 --- a/userspace/libraries/LibC/CMakeLists.txt +++ b/userspace/libraries/LibC/CMakeLists.txt @@ -3,7 +3,9 @@ set(LIBC_SOURCES assert.cpp ctype.cpp dirent.cpp + dlfcn.cpp fcntl.cpp + ftw.cpp grp.cpp inttypes.cpp locale.cpp @@ -31,6 +33,8 @@ set(LIBC_SOURCES termios.cpp time.cpp unistd.cpp + utime.cpp + wchar.cpp icxxabi.cpp arch/${BANAN_ARCH}/setjmp.S diff --git a/userspace/libraries/LibC/dlfcn.cpp b/userspace/libraries/LibC/dlfcn.cpp new file mode 100644 index 0000000000..e1dc052cf4 --- /dev/null +++ b/userspace/libraries/LibC/dlfcn.cpp @@ -0,0 +1,23 @@ +#include + +#include + +int dlclose(void*) +{ + ASSERT_NOT_REACHED(); +} + +char* dlerror(void) +{ + ASSERT_NOT_REACHED(); +} + +void* dlopen(const char*, int) +{ + ASSERT_NOT_REACHED(); +} + +void* dlsym(void* __restrict, const char* __restrict) +{ + ASSERT_NOT_REACHED(); +} diff --git a/userspace/libraries/LibC/ftw.cpp b/userspace/libraries/LibC/ftw.cpp new file mode 100644 index 0000000000..ca428ffd1b --- /dev/null +++ b/userspace/libraries/LibC/ftw.cpp @@ -0,0 +1,13 @@ +#include + +#include + +int ftw(const char*, int (*)(const char*, const struct stat*, int), int) +{ + ASSERT_NOT_REACHED(); +} + +int nftw(const char*, int (*)(const char*, const struct stat*, int, struct FTW*), int, int) +{ + ASSERT_NOT_REACHED(); +} diff --git a/userspace/libraries/LibC/utime.cpp b/userspace/libraries/LibC/utime.cpp new file mode 100644 index 0000000000..9112603b6c --- /dev/null +++ b/userspace/libraries/LibC/utime.cpp @@ -0,0 +1,8 @@ +#include + +#include + +int utime(const char*, const struct utimbuf*) +{ + ASSERT_NOT_REACHED(); +} diff --git a/userspace/libraries/LibC/wchar.cpp b/userspace/libraries/LibC/wchar.cpp new file mode 100644 index 0000000000..81d42fc3a6 --- /dev/null +++ b/userspace/libraries/LibC/wchar.cpp @@ -0,0 +1,8 @@ +#include + +#include + +size_t mbrtowc(wchar_t* __restrict, const char* __restrict, size_t, mbstate_t* __restrict) +{ + ASSERT_NOT_REACHED(); +}