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
+15
View File
@@ -1,3 +1,4 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h> // free()
#include <math.h> // INFINITY, NAN constants
@@ -64,6 +65,9 @@ int main(void) {
printf("%G\n", 0.00001);
printf("%E\n", 0.00001);
printf("%2$0*1$.*3$lf\n", 9, 1234.56, 2);
printf("%2$0*1$.*3$Lf\n", 9, 1234.56L, 2);
double nonfinites[] = {INFINITY, -INFINITY, NAN, -NAN};
char *float_formats[] = {"%e", "%E", "%f", "%F", "%g", "%G"};
puts("\nNon-finite float madness:");
@@ -90,4 +94,15 @@ int main(void) {
res = asprintf(&s, "test %s %d", "string", 2);
printf("printed: %s, value: %d\n", s, res);
free(s);
errno = EOWNERDEAD;
printf("\n%%m: %m\n");
puts("\nC23:");
printf("Binary %%b: %b\n", 4);
printf("Binary %%b alternate: %#b\n", 4);
printf("Binary %%B: %B\n", 4);
printf("Binary %%B alternate: %#B\n", 4);
return EXIT_SUCCESS;
}