diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
| commit | 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch) | |
| tree | ae0285dd15042d1e9236a5ce2e60daf65acbdca0 /lib/libc/include/libc.h | |
| parent | fc00c656c96528112d05cf0edf8631bd5eaea446 (diff) | |
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.
Diffstat (limited to 'lib/libc/include/libc.h')
| -rw-r--r-- | lib/libc/include/libc.h | 6 |
1 files changed, 2 insertions, 4 deletions
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 <stdatomic.h> #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 |
