gioser

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1430Shell 145Markdown 87Rust 852973 Definiciones

⎇ 3786b4de9f64ef894661d9dde2ebca6d9dc4a299 recipes/off64.patch 39 líneas · 1.0 KB Historia crudo

base-system-2: promover 7 tier-2 a canónicas + repo firmado 8d37d4576 · sergio ·

1off_t is always 64-bit with musl
2
3--- a/tests/readahead.c
4+++ b/tests/readahead.c
5@@ -42,7 +42,7 @@ static const int fds[] = {
6 	0x7fffffff,
7 };
8 
9-static const off64_t offsets[] = {
10+static const off_t offsets[] = {
11 	-0x8000000000000000LL,
12 	-0x5060708090a0b0c0LL,
13 	-1LL,
14--- a/tests/sync_file_range.c
15+++ b/tests/sync_file_range.c
16@@ -20,8 +20,8 @@ int
17 main(void)
18 {
19 	const int fd = -1;
20-	const off64_t offset = 0xdeadbeefbadc0dedULL;
21-	const off64_t nbytes = 0xfacefeedcafef00dULL;
22+	const off_t offset = 0xdeadbeefbadc0dedULL;
23+	const off_t nbytes = 0xfacefeedcafef00dULL;
24 	const unsigned int flags = -1;
25 
26 	int rc = sync_file_range(fd, offset, nbytes, flags);
27--- a/tests/sync_file_range2.c
28+++ b/tests/sync_file_range2.c
29@@ -20,8 +20,8 @@ int
30 main(void)
31 {
32 	const int fd = -1;
33-	const off64_t offset = 0xdeadbeefbadc0ded;
34-	const off64_t nbytes = 0xfacefeedcafef00d;
35+	const off_t offset = 0xdeadbeefbadc0ded;
36+	const off_t nbytes = 0xfacefeedcafef00d;
37 	const unsigned int flags = -1;
38 
39 	int rc = sync_file_range(fd, offset, nbytes, flags);