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/__locale.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/__locale.h')
| -rw-r--r-- | lib/libc/include/__locale.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/libc/include/__locale.h b/lib/libc/include/__locale.h deleted file mode 100644 index 0a709c78..00000000 --- a/lib/libc/include/__locale.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef __LIBC_LOCALE_H -#define __LIBC_LOCALE_H - -#include <locale.h> -#include <stdint.h> - -typedef __SIZE_TYPE__ size_t; - -struct __locale_t { - struct __locale_map { - const void *map; - size_t map_size; - char name[24]; - } maps[6]; -}; - -typedef struct __locale_t *locale_t; - -static const struct __locale_t __c_locale = { 0 }; - -static const struct __locale_t __utf8_locale = { - .maps[LC_CTYPE] = { .map = &((const uint32_t[]){ 0x950412de, 0, -1, -1, - -1 }), - .map_size = sizeof(uint32_t) * 5, - .name = "C.UTF-8" }, -}; - -#undef MB_CUR_MAX -#define MB_CUR_MAX (((locale_t) & __utf8_locale) ? 4 : 1) - -static inline int __mb_cur_max(void) -{ - return MB_CUR_MAX; -} - -static inline int __locale_allocated(locale_t loc) -{ - return loc != (locale_t)&__c_locale && loc != (locale_t)&__utf8_locale; -} - -#endif |
