linux-kernelorg-stable/tools
Thomas Weißschuh d5094bcb5b tools/nolibc: define time_t in terms of __kernel_old_time_t
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>
2025-07-13 16:58:34 +02:00
..
accounting
arch perf tools improvements and fixes for Linux v6.16: 2025-06-03 15:11:44 -07:00
bootconfig
bpf
build
certs
cgroup
counter
crypto
debugging
firewire
firmware
gpio
hv
iio
include tools/nolibc: define time_t in terms of __kernel_old_time_t 2025-07-13 16:58:34 +02:00
kvm/kvm_stat
laptop
leds
lib perf tools improvements and fixes for Linux v6.16: 2025-06-03 15:11:44 -07:00
memory-model
mm
net
objtool Rust changes for v6.16 2025-06-04 21:18:37 -07:00
pcmcia
perf RISC-V Patches for the 6.16 Merge Window, Part 1 2025-06-06 18:05:18 -07:00
power turbostat v2025.06.08 2025-06-08 11:44:41 -07:00
rcu
sched_ext
scripts tools/build: Fix s390(x) cross-compilation with clang 2025-07-08 09:19:23 +02:00
sound
spi
testing selftests/nolibc: show failed run if test process crashes 2025-07-09 18:28:36 +02:00
thermal
time
tracing
usb
verification
virtio
wmi
workqueue
writeback
Makefile