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
+23
View File
@@ -0,0 +1,23 @@
#include <stdio.h>
#include <unistd.h>
#include "test_helpers.h"
int main(void) {
const char *msg = "Hello, %s";
int fd = dup(STDOUT_FILENO);
ERROR_IF(dup, fd, == -1);
int result = dprintf(fd, msg, "world");
ERROR_IF(dprintf, result, != sizeof("Hello, world") - 1);
UNEXP_IF(dprintf, result, < 0);
result = dprintf(fd, "\na\n");
UNEXP_IF(dprintf, result, < 0);
ERROR_IF(dprintf, result, != sizeof("\na\n") - 1);
close(fd);
return 0;
}