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 1182Shell 87Rust 63Markdown 541592 Definiciones

⎇ 4190c7b43e5bd323a9b166340cfa16cd324ca2e4 recipes/tv_usec.patch 46 líneas · 1.7 KB Historia crudo

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

1Fix types on 32-bit
2
3--- a/tests/futimesat.c
4+++ b/tests/futimesat.c
5@@ -100,7 +100,7 @@ main(void)
6 	tv[0].tv_sec = 0xdeadbeefU;
7 	tv[0].tv_usec = 0xfacefeedU;
8 	tv[1].tv_sec = (typeof(tv[1].tv_sec)) 0xcafef00ddeadbeefLL;
9-	tv[1].tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL;
10+	tv[1].tv_usec = (typeof(tv[1].tv_usec)) 0xbadc0dedfacefeedLL;
11 
12 	k_futimesat(kfdcwd, kfname, (uintptr_t) tv);
13 	printf("futimesat(AT_FDCWD, %s, [", qname);
14--- a/tests/xettimeofday.c
15+++ b/tests/xettimeofday.c
16@@ -58,7 +58,7 @@ main(void)
17 	       tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1));
18 
19 	tv->tv_sec = (typeof(tv->tv_sec)) 0xcafef00ddeadbeefLL;
20-	tv->tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL;
21+	tv->tv_usec = (typeof(tv->tv_usec)) 0xbadc0dedfacefeedLL;
22 	assert(syscall(__NR_settimeofday, tv, tz) == -1);
23 	printf("settimeofday({tv_sec=%lld, tv_usec=%llu}"
24 	       ", {tz_minuteswest=%d, tz_dsttime=%d}) = %s\n",
25--- a/tests/xselect.c
26+++ b/tests/xselect.c
27@@ -214,7 +214,7 @@ main(void)
28 	 */
29 	*l_rs = (1UL << fds[0]) | (1UL << fds[1]);
30 	tv_in.tv_sec = (typeof(tv_in.tv_sec)) 0xcafef00ddeadbeefLL;
31-	tv_in.tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL;
32+	tv_in.tv_usec = (typeof(tv_in.tv_usec)) 0xbadc0dedfacefeedLL;
33 	memcpy(tv, &tv_in, sizeof(tv_in));
34 	rc = xselect(nfds, a_rs, a_rs, a_rs, a_tv);
35 	if (rc < 0) {
36--- a/tests/xutimes.c
37+++ b/tests/xutimes.c
38@@ -87,7 +87,7 @@ main(void)
39 	tv[0].tv_sec = 0xdeadbeefU;
40 	tv[0].tv_usec = 0xfacefeedU;
41 	tv[1].tv_sec = (typeof(tv[1].tv_sec)) 0xcafef00ddeadbeefLL;
42-	tv[1].tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL;
43+	tv[1].tv_usec = (typeof(tv[1].tv_usec)) 0xbadc0dedfacefeedLL;
44 
45 	k_utimes(kfname, (uintptr_t) tv);
46 	printf("%s(%s, [", TEST_SYSCALL_STR, qname);