0.3.0: converge relibc to upstream 0.6.0 + Red Bear patches

This commit is contained in:
2026-07-06 19:13:08 +03:00
parent 1a0edd8eeb
commit 4ef7e57571
1466 changed files with 75236 additions and 13644 deletions
@@ -0,0 +1,42 @@
Correct a64l: azAZ9. = 194301926
Correct a64l: azA = 53222
l64a(0):
l64a(1): /
l64a(2): 0
l64a(11): 9
l64a(12): A
l64a(37): Z
l64a(38): a
l64a(63): z
l64a(64): ./
l64a(65): //
l64a(4095): zz
l64a(4096): ../
l64a(262143): zzz
l64a(262144): .../
l64a(16777215): zzzz
l64a(16777216): ..../
l64a(1073741823): zzzzz
l64a(1073741824): ...../
l64a(2147483647): zzzzz/
a64l(l64a(0)): 0
a64l(l64a(1)): 1
a64l(l64a(2)): 2
a64l(l64a(11)): 11
a64l(l64a(12)): 12
a64l(l64a(37)): 37
a64l(l64a(38)): 38
a64l(l64a(63)): 63
a64l(l64a(64)): 64
a64l(l64a(65)): 65
a64l(l64a(4095)): 4095
a64l(l64a(4096)): 4096
a64l(l64a(262143)): 262143
a64l(l64a(262144)): 262144
a64l(l64a(16777215)): 16777215
a64l(l64a(16777216)): 16777216
a64l(l64a(1073741823)): 1073741823
a64l(l64a(1073741824)): 1073741824
a64l(l64a(2147483647)): 2147483647
l64a(x) (lower 32 bits of x are 1985229328): E61Jq/
a64l(l64a(x)) (lower 32 bits of x are 1985229328): 1985229328
@@ -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
@@ -0,0 +1,2 @@
-3.140000
inf
@@ -0,0 +1,6 @@
-42
555
1234567890
-42
555
1234567890
@@ -0,0 +1,8 @@
It's working!!
Updates accordingly.
in place
TEST=in place
Value overwritten and not in place because it's really long
TEST=in place
Value overwritten and not in place because it's really long
Value deleted successfully!
@@ -0,0 +1,3 @@
Start unchanged: 0
End unchanged: 0
Read & Write Successful
@@ -0,0 +1,2 @@
Before: 23 16 8 4 42 15
After: 4 8 15 16 23 42
@@ -0,0 +1,8 @@
67141780
201425341
201425341
67141780
264204
271585844
264204
271585844
@@ -0,0 +1,14 @@
lrand48 (uninitialized): 0 2116118 89401895 379337186 782977366 196130996 198207689 1046291021 1131187612 975888346
drand48 (seeded with srand48): 0.750266 0.607593 0.567593 0.799563 0.984984 0.205670 0.625922 0.794426 0.369416 0.854100
lrand48 (seeded with srand48): 1611183183 1304796356 1218897288 1717049088 2115236938 441672110 1344158015 1706017430 793314380 1834165927
mrand48 (seeded with srand48): -1072600929 -1685374584 -1857172720 -860869119 -64493420 883344220 -1606651266 -882932436 1586628760 -626635441
erand48: 0.210555 0.014158 0.111353 0.658369 0.103767 0.180385 0.945033 0.745768 0.290272 0.111716
nrand48: 514983590 590935818 1480794144 1496813112 2133865028 1816766485 2095074020 126058208 909762120 14734916
jrand48: -1066398599 903693914 -1922375113 -2090140830 1218074962 1662411059 -722435322 764426686 -874142666 -1454656015
seed48_return: [40c0, 4d4f, daa6]
lrand48 (seeded with seed48): 386486647 2049879217 706208537 1265096744 1586830881 1884641178 1566935266 1256810805 875501172 1670187935
xsubi restored froom seed48 return value: [40c0, 4d4f, daa6]
nrand48 (from xsubi value returned by seed48): 1654466549 509433115 2007628085 1022767111 1935848687 967444157 1967758021 686622820 989863078 1688030308
lrand48 (with parameters from lcong48): 2015972364 2009368981 971134301 317520085 149004773 538917235 242519436 1066970146 991527304 1588277058
lrand48 (seeded with srand48 after lcong48 call): 1611183183 1304796356 1218897288 1717049088 2115236938 441672110 1344158015 1706017430 793314380 1834165927
lrand48 (seeded with seed48 after lcong48 call): 386486647 2049879217 706208537 1265096744 1586830881 1884641178 1566935266 1256810805 875501172 1670187935
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,196 @@
d: 0.000000 Endptr: "a 1 hello"
d: 1.000000 Endptr: " hello"
d: 1.000000 Endptr: " hello 2"
d: 10.123000 Endptr: ""
d: 10.123000 Endptr: ""
d: -5.300000 Endptr: ""
d: 16.071045 Endptr: ""
d: 1.136719 Endptr: ""
d: 3.128906 Endptr: ""
d: 100000.000000 Endptr: ""
d: 100000.000000 Endptr: ""
d: 0.000010 Endptr: ""
d: 100000.000000 Endptr: " "
d: 100000.000000 Endptr: " "
d: 0.000010 Endptr: " "
d: 10000000000.000000 Endptr: ""
d: 1.000000 Endptr: "eXXXX"
d: 1.000000 Endptr: "e"
d: 1.000000 Endptr: "e "
d: 10000000000.000000 Endptr: ""
d: 1.000000 Endptr: "e+XXXX"
d: 1.000000 Endptr: "e+"
d: 1.000000 Endptr: "e+ "
d: 0.000000 Endptr: ""
d: 1.000000 Endptr: "e-XXXX"
d: 1.000000 Endptr: "e-"
d: 1.000000 Endptr: "e- "
d: -100000.000000 Endptr: ""
d: -100000.000000 Endptr: ""
d: -0.000010 Endptr: ""
d: -100000.000000 Endptr: " "
d: -100000.000000 Endptr: " "
d: -0.000010 Endptr: " "
d: -10000000000.000000 Endptr: ""
d: -1.000000 Endptr: "eXXXX"
d: -1.000000 Endptr: "e"
d: -1.000000 Endptr: "e "
d: -10000000000.000000 Endptr: ""
d: -1.000000 Endptr: "e+XXXX"
d: -1.000000 Endptr: "e+"
d: -1.000000 Endptr: "e+ "
d: -0.000000 Endptr: ""
d: -1.000000 Endptr: "e-XXXX"
d: -1.000000 Endptr: "e-"
d: -1.000000 Endptr: "e- "
d: 1234000.000000 Endptr: ""
d: 1234000.000000 Endptr: ""
d: 0.000123 Endptr: ""
d: 1234000.000000 Endptr: " "
d: 1234000.000000 Endptr: " "
d: 0.000123 Endptr: " "
d: 123400000000.000000 Endptr: ""
d: 12.340000 Endptr: "eXXXX"
d: 12.340000 Endptr: "e"
d: 12.340000 Endptr: "e "
d: 123400000000.000000 Endptr: ""
d: 12.340000 Endptr: "e+XXXX"
d: 12.340000 Endptr: "e+"
d: 12.340000 Endptr: "e+ "
d: 0.000000 Endptr: ""
d: 12.340000 Endptr: "e-XXXX"
d: 12.340000 Endptr: "e-"
d: 12.340000 Endptr: "e- "
d: -1234000.000000 Endptr: ""
d: -1234000.000000 Endptr: ""
d: -0.000123 Endptr: ""
d: -1234000.000000 Endptr: " "
d: -1234000.000000 Endptr: " "
d: -0.000123 Endptr: " "
d: -123400000000.000000 Endptr: ""
d: -12.340000 Endptr: "eXXXX"
d: -12.340000 Endptr: "e"
d: -12.340000 Endptr: "e "
d: -123400000000.000000 Endptr: ""
d: -12.340000 Endptr: "e+XXXX"
d: -12.340000 Endptr: "e+"
d: -12.340000 Endptr: "e+ "
d: -0.000000 Endptr: ""
d: -12.340000 Endptr: "e-XXXX"
d: -12.340000 Endptr: "e-"
d: -12.340000 Endptr: "e- "
d: 192.000000 Endptr: ""
d: -192.000000 Endptr: ""
d: 0.005859 Endptr: ""
d: -0.005859 Endptr: ""
d: 10.000000 Endptr: ""
d: 0.156250 Endptr: ""
d: -10.000000 Endptr: ""
d: -0.156250 Endptr: ""
d: 16.062500 Endptr: ""
d: 16.062500 Endptr: ""
d: -16.062500 Endptr: ""
d: -16.062500 Endptr: ""
d: 0.500000 Endptr: ""
d: 5.000000 Endptr: ""
d: 50.000000 Endptr: ""
d: 500.000000 Endptr: ""
d: 5000.000000 Endptr: ""
d: 50000.000000 Endptr: ""
d: 500000.000000 Endptr: ""
d: 5000000.000000 Endptr: ""
d: 50000000.000000 Endptr: ""
d: 500000000.000000 Endptr: ""
d: 5000000000.000000 Endptr: ""
d: 50000000000.000000 Endptr: ""
d: 500000000000.000000 Endptr: ""
d: 5000000000000.000000 Endptr: ""
d: 50000000000000.000000 Endptr: ""
d: 500000000000000.000000 Endptr: ""
d: 5000000000000000.000000 Endptr: ""
d: 50000000000000000.000000 Endptr: ""
d: 500000000000000000.000000 Endptr: ""
d: 5000000000000000000.000000 Endptr: ""
d: 50000000000000000000.000000 Endptr: ""
d: 500000000000000000000.000000 Endptr: ""
d: 5000000000000000000000.000000 Endptr: ""
d: 49999999999999995805696.000000 Endptr: ""
d: 499999999999999991611392.000000 Endptr: ""
d: 5000000000000000452984832.000000 Endptr: ""
d: 50000000000000002382364672.000000 Endptr: ""
d: 500000000000000006643777536.000000 Endptr: ""
d: 4999999999999999791559868416.000000 Endptr: ""
d: 49999999999999995716575428608.000000 Endptr: ""
d: 500000000000000009942312419328.000000 Endptr: ""
d: 4999999999999999817948147482624.000000 Endptr: ""
d: 50000000000000002683081102196736.000000 Endptr: ""
d: 499999999999999972787615493521408.000000 Endptr: ""
d: 4999999999999999727876154935214080.000000 Endptr: ""
d: 49999999999999998431683053958987776.000000 Endptr: ""
d: 500000000000000021210318687008980992.000000 Endptr: ""
d: 4999999999999999769381329101060571136.000000 Endptr: ""
d: 49999999999999998874404911728017014784.000000 Endptr: ""
d: -0.500000 Endptr: ""
d: -5.000000 Endptr: ""
d: -50.000000 Endptr: ""
d: -500.000000 Endptr: ""
d: -5000.000000 Endptr: ""
d: -50000.000000 Endptr: ""
d: -500000.000000 Endptr: ""
d: -5000000.000000 Endptr: ""
d: -50000000.000000 Endptr: ""
d: -500000000.000000 Endptr: ""
d: -5000000000.000000 Endptr: ""
d: -50000000000.000000 Endptr: ""
d: -500000000000.000000 Endptr: ""
d: -5000000000000.000000 Endptr: ""
d: -50000000000000.000000 Endptr: ""
d: -500000000000000.000000 Endptr: ""
d: -5000000000000000.000000 Endptr: ""
d: -50000000000000000.000000 Endptr: ""
d: -500000000000000000.000000 Endptr: ""
d: -5000000000000000000.000000 Endptr: ""
d: -50000000000000000000.000000 Endptr: ""
d: -500000000000000000000.000000 Endptr: ""
d: -5000000000000000000000.000000 Endptr: ""
d: -49999999999999995805696.000000 Endptr: ""
d: -499999999999999991611392.000000 Endptr: ""
d: -5000000000000000452984832.000000 Endptr: ""
d: -50000000000000002382364672.000000 Endptr: ""
d: -500000000000000006643777536.000000 Endptr: ""
d: -4999999999999999791559868416.000000 Endptr: ""
d: -49999999999999995716575428608.000000 Endptr: ""
d: -500000000000000009942312419328.000000 Endptr: ""
d: -4999999999999999817948147482624.000000 Endptr: ""
d: -50000000000000002683081102196736.000000 Endptr: ""
d: -499999999999999972787615493521408.000000 Endptr: ""
d: -4999999999999999727876154935214080.000000 Endptr: ""
d: -49999999999999998431683053958987776.000000 Endptr: ""
d: -500000000000000021210318687008980992.000000 Endptr: ""
d: -4999999999999999769381329101060571136.000000 Endptr: ""
d: -49999999999999998874404911728017014784.000000 Endptr: ""
d: -0.000000 Endptr: ""
d: inf Endptr: ""
d: inf Endptr: ""
d: inf Endptr: ""
d: inf Endptr: " foobarbaz"
d: inf Endptr: ""
d: inf Endptr: ""
d: inf Endptr: ""
d: inf Endptr: " foobarbaz"
d: -inf Endptr: ""
d: -inf Endptr: ""
d: -inf Endptr: ""
d: -inf Endptr: " foobarbaz"
d: nan Endptr: "0.1e5"
d: nan Endptr: "-37"
d: nan Endptr: "1.05"
d: nan Endptr: " foo bar baz"
d: nan Endptr: "0.1e5"
d: nan Endptr: "-37"
d: nan Endptr: "1.05"
d: nan Endptr: " foo bar baz"
d: nan Endptr: "0.1e5"
d: nan Endptr: "-37"
d: nan Endptr: "1.05"
d: nan Endptr: " foo bar baz"
@@ -0,0 +1,26 @@
-42
endptr ""
555
endptr ""
1234567890
endptr " "
-42
endptr ""
555
endptr ""
1234567890
endptr " "
38acf
endptr "g"
abcdef12
endptr ""
cafebeef
endptr ""
731
endptr "89"
731
endptr "89"
0
endptr "b"
0
endptr "b"
@@ -0,0 +1,26 @@
-42
endptr ""
555
endptr ""
1234567890
endptr " "
-42
endptr ""
555
endptr ""
1234567890
endptr " "
38acf
endptr "g"
abcdef12
endptr ""
21000004
endptr ""
731
endptr "89"
731
endptr "89"
0
endptr "b"
0
endptr "b"
@@ -0,0 +1,2 @@
shell found: 1
test of system