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/.
This commit is contained in:
Red Bear OS
2026-06-27 09:19:26 +03:00
commit 1b3e94a20d
2014 changed files with 155365 additions and 0 deletions
@@ -0,0 +1,30 @@
malloc (size 0): (OK)
malloc: pointer: (not NULL), error value: 0 = Success
malloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
calloc (size 0): (OK)
calloc: pointer: (not NULL), error value: 0 = Success
calloc (overflowing): pointer: (nil), error value: 12 = Out of memory
realloc (size 0): (OK)
realloc: pointer: (not NULL), error value: 0 = Success
realloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
reallocarray: pointer: (not NULL), error value: 0 = Success
reallocarray (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
memalign (size 0): (OK)
memalign: pointer: (alignment OK), error value: 0 = Success
memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
memalign (alignment 0): pointer: (nil), error value: 22 = Invalid argument
memalign (alignment 3): pointer: (nil), error value: 22 = Invalid argument
aligned_alloc (size % alignment == 0): pointer: (alignment OK), error value: 0 = Success
aligned_alloc (size % alignment != 0): pointer: (nil), error value: 22 = Invalid argument
valloc (size 0): (OK)
valloc: pointer: (alignment OK), error value: 0 = Success
valloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
posix_memalign: pointer: (alignment OK), error value: 0 = Success
posix_memalign (alignment 0): pointer: (nil), error value: 22 = Invalid argument
posix_memalign (non-power-of-two multiple of sizeof(void *)): pointer: (nil), error value: 22 = Invalid argument
posix_memalign (size 0): (OK)
posix_memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
pvalloc (size 0): (OK)
pvalloc: pointer: (alignment OK), error value: 0 = Success
pvalloc (2 pages): pointer: (alignment OK), error value: 0 = Success
pvalloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory