linux-yocto/tools
Thomas Weißschuh c8db5c7a00 tools/nolibc: define time_t in terms of __kernel_old_time_t
[ Upstream commit d5094bcb5b ]

Nolibc assumes that the kernel ABI is using a time values that are as
large as a long integer. For most ABIs this holds true.
But for x32 this is not correct, as it uses 32bit longs but 64bit times.

Also the 'struct stat' implementation of nolibc relies on timespec::tv_sec
and time_t being the same type. While timespec::tv_sec comes from the
kernel and is of type __kernel_old_time_t, time_t is defined within nolibc.

Switch to the __kernel_old_time_t to always get the correct type.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20250712-nolibc-x32-v1-1-6d81cb798710@weissschuh.net
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-20 18:30:23 +02:00
..
accounting
arch x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-17 18:37:14 +02:00
bootconfig
bpf bpftool: Fix memory leak in dump_xx_nlmsg on realloc failure 2025-08-15 12:13:40 +02:00
build tools/build: Don't pass test log files to linker 2025-05-29 11:02:08 +02:00
certs
cgroup memcg_slabinfo: Fix use of PG_slab 2025-08-15 12:13:46 +02:00
counter
crypto
debugging
firewire
firmware
gpio
hv tools/hv: fcopy: Fix incorrect file path conversion 2025-08-01 09:48:40 +01:00
iio
include tools/nolibc: define time_t in terms of __kernel_old_time_t 2025-08-20 18:30:23 +02:00
kvm/kvm_stat
laptop
leds
lib perf tools: Fix use-after-free in help_unknown_cmd() 2025-08-15 12:13:51 +02:00
memory-model
mm
net tools: ynl-gen: validate 0 len strings from kernel 2025-05-29 11:03:12 +02:00
objtool objtool/rust: add one more noreturn Rust function for Rust 1.89.0 2025-07-24 08:56:22 +02:00
pci
pcmcia
perf perf record: Cache build-ID of hit DSOs only 2025-08-15 12:13:58 +02:00
power tools/power turbostat: Fix AMD package-energy reporting 2025-06-19 15:32:21 +02:00
rcu
sched_ext
scripts
sound
spi
testing selftests/futex: Define SYS_futex on 32-bit architectures with 64-bit time_t 2025-08-20 18:30:22 +02:00
thermal
time
tracing
usb
verification tools/rv: Do not skip idle in trace 2025-08-15 12:13:46 +02:00
virtio
wmi
workqueue
writeback
Makefile