diff --git a/Userland/Libraries/LibC/dlfcn.cpp b/Userland/Libraries/LibC/dlfcn.cpp index 04f742fcc30..f15fd2807b0 100644 --- a/Userland/Libraries/LibC/dlfcn.cpp +++ b/Userland/Libraries/LibC/dlfcn.cpp @@ -67,7 +67,7 @@ void* dlopen(const char* filename, int flags) // FIXME: Return the handle for "the main executable" // The Serenity Kernel will keep a mapping of the main elf binary resident in memory, // But a future dynamic loader might have a different idea/way of letting us access this information - ASSERT_NOT_REACHED(); + TODO(); } auto basename = LexicalPath(filename).basename(); diff --git a/Userland/Libraries/LibC/mntent.cpp b/Userland/Libraries/LibC/mntent.cpp index c1f234bfb2e..110f118f47c 100644 --- a/Userland/Libraries/LibC/mntent.cpp +++ b/Userland/Libraries/LibC/mntent.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include @@ -31,7 +32,8 @@ extern "C" { struct mntent* getmntent(FILE*) { - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement getmntent()"); + TODO(); return nullptr; } } diff --git a/Userland/Libraries/LibC/signal.cpp b/Userland/Libraries/LibC/signal.cpp index a7a7ede8ba7..55da42a04d3 100644 --- a/Userland/Libraries/LibC/signal.cpp +++ b/Userland/Libraries/LibC/signal.cpp @@ -24,12 +24,12 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include #include #include -#include #include #include @@ -184,8 +184,8 @@ void siglongjmp(jmp_buf env, int val) int sigsuspend(const sigset_t*) { - dbgprintf("FIXME: Implement sigsuspend()\n"); - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement sigsuspend()"); + TODO(); } static const char* signal_names[] = { diff --git a/Userland/Libraries/LibC/stdio.cpp b/Userland/Libraries/LibC/stdio.cpp index 1cdf9d4a732..1338b82f4eb 100644 --- a/Userland/Libraries/LibC/stdio.cpp +++ b/Userland/Libraries/LibC/stdio.cpp @@ -25,7 +25,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include #include #include #include @@ -1071,7 +1071,8 @@ int dbgputstr(const char* characters, ssize_t length) char* tmpnam(char*) { - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement tmpnam()"); + TODO(); } FILE* popen(const char* command, const char* type) diff --git a/Userland/Libraries/LibC/stdlib.cpp b/Userland/Libraries/LibC/stdlib.cpp index d8cf82758a4..cddf548c25b 100644 --- a/Userland/Libraries/LibC/stdlib.cpp +++ b/Userland/Libraries/LibC/stdlib.cpp @@ -801,7 +801,8 @@ ldiv_t ldiv(long numerator, long denominator) size_t mbstowcs(wchar_t*, const char*, size_t) { - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement mbstowcs()"); + TODO(); } int mbtowc(wchar_t* wch, const char* data, [[maybe_unused]] size_t data_size) @@ -821,7 +822,8 @@ int mbtowc(wchar_t* wch, const char* data, [[maybe_unused]] size_t data_size) int wctomb(char*, wchar_t) { - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement wctomb()"); + TODO(); } size_t wcstombs(char* dest, const wchar_t* src, size_t max) diff --git a/Userland/Libraries/LibC/time.cpp b/Userland/Libraries/LibC/time.cpp index 73f1a4234d1..d9f4778d059 100644 --- a/Userland/Libraries/LibC/time.cpp +++ b/Userland/Libraries/LibC/time.cpp @@ -366,7 +366,8 @@ int nanosleep(const struct timespec* requested_sleep, struct timespec* remaining int clock_getres(clockid_t, struct timespec*) { - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement clock_getres()"); + TODO(); } double difftime(time_t t1, time_t t0) diff --git a/Userland/Libraries/LibC/ulimit.cpp b/Userland/Libraries/LibC/ulimit.cpp index 1ab9b7dc3a6..3dda35ce578 100644 --- a/Userland/Libraries/LibC/ulimit.cpp +++ b/Userland/Libraries/LibC/ulimit.cpp @@ -24,7 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include #include #include #include @@ -33,13 +33,14 @@ extern "C" { long ulimit([[maybe_unused]] int cmd, [[maybe_unused]] long newlimit) { - ASSERT_NOT_REACHED(); + dbgln("FIXME: Implement getrusage()"); + TODO(); return -1; } int getrusage([[maybe_unused]] int who, [[maybe_unused]] struct rusage* usage) { - dbgln("LibC: getrusage is not implemented"); + dbgln("FIXME: Implement getrusage()"); return -1; } } diff --git a/Userland/Libraries/LibC/unistd.cpp b/Userland/Libraries/LibC/unistd.cpp index 404a944406b..0cb18dea8b1 100644 --- a/Userland/Libraries/LibC/unistd.cpp +++ b/Userland/Libraries/LibC/unistd.cpp @@ -771,7 +771,7 @@ ssize_t pread(int fd, void* buf, size_t count, off_t offset) char* getpass(const char* prompt) { dbgln("FIXME: getpass('{}')", prompt); - ASSERT_NOT_REACHED(); + TODO(); } long sysconf(int name)