From 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 22:22:16 +0100 Subject: Add bin/true and bin/false implementations - Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code. --- lib/libc/include/libc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libc/include/libc.h') diff --git a/lib/libc/include/libc.h b/lib/libc/include/libc.h index 3f5f2644..d59c2b3c 100644 --- a/lib/libc/include/libc.h +++ b/lib/libc/include/libc.h @@ -1,14 +1,13 @@ #ifndef __LIBC_LIBC_H #define __LIBC_LIBC_H -#include <__locale.h> #include #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) -#define unused __attribute__((unused)) +#define __unused __attribute__((unused)) #define aligned(type) __attribute__((aligned(__alignof__(type)))) -#define weak __attribute__((__weak__)) +#define __weak __attribute__((__weak__)) #define weak_reference(old, new) \ extern __typeof(old) new __attribute__((__weak__, __alias__(#old))) @@ -21,7 +20,6 @@ static struct { volatile atomic_flag malloc; volatile atomic_flag environ; } lock; - struct __locale_t locale; } libc = { .lock = { ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT } }; #endif -- cgit v1.2.3