Red Bear OS
4eabdf2016
relibc: integrate upstream wchar.h include ordering + stdbool.h POSIX fix
...
Two upstream improvements integrated:
1. wchar.h cbindgen.toml — adopt upstream include ordering:
- Remove redundant wchar_t redefinition (now provided by bits/wchar-t.h)
- Define wint_t BEFORE #include <stddef.h> (conflict with GCC __need_wint_t)
- Drop sys_includes, use no_includes=true (all includes in after_includes)
- Cleaner circular-dependency breaking (wchar.h → stdio.h → inttypes.h → wchar.h)
2. stdbool.h — fix to POSIX standard:
- Change 'typedef _Bool bool' to '#define bool _Bool' (C mode)
- Remove 'typedef bool _Bool' (C++ mode, not in POSIX)
- Only emit bool/true/false defines in C++ when __cplusplus < 201103L
2026-06-29 01:34:09 +03:00
Red Bear OS
826a984fdb
relibc: move stddef header from C to cbindgen (integrate upstream 3be84f4b)
...
Cherry-pick upstream commit 3be84f4b (auronandace, 2026-06-24):
- Delete hand-written include/stddef.h
- Create src/header/stddef/ with cbindgen.toml + mod.rs
- Create src/header/bits_wchar-t/ with cbindgen.toml + mod.rs
- Create src/header/bits_size-t/ with cbindgen.toml + mod.rs
- Create src/header/bits_null/ with cbindgen.toml + mod.rs
- Update src/header/mod.rs: add bits_* modules, uncomment stddef
The generated stddef.h now includes modular bits_* sub-headers:
#include <bits/wchar-t.h> — wchar_t with _WCHAR_T guard + __WCHAR_TYPE__
#include <bits/size-t.h> — size_t from Rust usize via cbindgen [export]
#include <bits/null.h> — NULL: nullptr (C++11), 0L (C++), (void*)0 (C)
This fixes the wchar_t circular include issue structurally.
2026-06-29 01:28:57 +03:00
Red Bear OS
08cf1e6e0a
fix: add wchar_t definition to stddef.h (C mode only, C++ has it as keyword)
...
POSIX requires stddef.h to define wchar_t. Previously it was missing,
which broke inttypes.h (wcstoimax/strtoimax use wchar_t). Fixed by
adding guarded by since
C++ has wchar_t as a built-in keyword.
2026-06-29 01:00:35 +03:00
Red Bear OS
047e7c09da
Add __fseterr and __freadahead to stdio ext (P3-stdio-fseterr patch)
2026-06-27 09:22:51 +03:00
Red Bear OS
1b3e94a20d
Red Bear OS relibc baseline
...
From release 0.1.0 pre-patched archive.
This includes all Red Bear modifications previously maintained
as patches in local/patches/relibc/.
2026-06-27 09:19:26 +03:00