From 872cf03f26c2801ae6c3008ce5fa0d7856f5f85d Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 14 Dec 2025 18:10:13 +0100 Subject: libc: implement err/warn functions --- lib/libc/stdlib/abort.c | 3 ++- lib/libc/stdlib/free.c | 2 +- lib/libc/stdlib/getenv.c | 2 +- lib/libc/stdlib/malloc.c | 2 +- lib/libc/stdlib/realloc.c | 2 +- lib/libc/stdlib/setenv.c | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c index 99001570..466329d1 100644 --- a/lib/libc/stdlib/abort.c +++ b/lib/libc/stdlib/abort.c @@ -1,6 +1,7 @@ + #include <__thread.h> // for __thread_self #include // for LIBC_LOCK -#include // for (anonymous struct)::(anonymous), (anonymous) +#include // for libc, libc::(anonymous) #include // for SIGABRT, sigaction, SIGKILL, SIG_DFL #include // for abort #include // for __syscall, __syscall_2, __syscall_4 diff --git a/lib/libc/stdlib/free.c b/lib/libc/stdlib/free.c index e08b0170..ab656633 100644 --- a/lib/libc/stdlib/free.c +++ b/lib/libc/stdlib/free.c @@ -1,5 +1,5 @@ #include // for LIBC_UNLOCK, LIBC_LOCK -#include // for (anonymous struct)::(anonymous), (anonymous) +#include // for libc, libc::(anonymous) #include // for page, page::(anonymous), __malloc_pvec, LARGE_... #include // for NULL #include // for uintptr_t diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 17975574..41517e2f 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -1,5 +1,5 @@ #include // for LIBC_UNLOCK, LIBC_LOCK -#include // for (anonymous struct)::(anonymous), (anonymous), libc +#include // for libc, libc::(anonymous), weak_reference #include // for NULL #include // for getenv, secure_getenv diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 344c9623..556fcbd1 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -2,7 +2,7 @@ #include // for LIBC_UNLOCK, LIBC_LOCK #include // for __weak -#include // for (anonymous struct)::(anonymous), (anonymous) +#include // for libc, libc::(anonymous) #include // for page, page::(anonymous), class, global_size_c... #include // for atomic_flag_clear #include // for uint32_t, uint8_t, uintptr_t diff --git a/lib/libc/stdlib/realloc.c b/lib/libc/stdlib/realloc.c index 4722ac5e..dca8cac2 100644 --- a/lib/libc/stdlib/realloc.c +++ b/lib/libc/stdlib/realloc.c @@ -2,7 +2,7 @@ #include // for LIBC_UNLOCK, LIBC_LOCK #include // for EINVAL, errno -#include // for (anonymous struct)::(anonymous), (anonymous), libc +#include // for libc, libc::(anonymous) #include // for page, page::(anonymous), __malloc_pvec #include // for uintptr_t #include // for free, malloc, realloc diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c index 004a29bd..3dfe3d22 100644 --- a/lib/libc/stdlib/setenv.c +++ b/lib/libc/stdlib/setenv.c @@ -1,7 +1,7 @@ #include "stddef.h" // for NULL #include // for LIBC_LOCK, LIBC_UNLOCK -#include // for (anonymous), libc, (anonymous struct)::(anonymous) +#include // for libc, libc::(anonymous), libc::LIBC_ENVP_TOUCHED #include // for malloc, realloc, setenv #include // for strlen, size_t, memcpy, strcpy, strchr, strncmp -- cgit v1.2.3