]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: use custom structs timespec and timeval
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 20 Dec 2025 13:55:52 +0000 (14:55 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 4 Jan 2026 09:29:02 +0000 (10:29 +0100)
commitf5aa863aea6c1ec20b85cc0b0a22e99597f0cb50
tree85d321863cf634712c40a74b02d6e838a66fd97f
parent47c17d97681d9c5d080acfdb273fa0856c930e74
tools/nolibc: use custom structs timespec and timeval

A custom 'struct timespec' and 'struct timeval' will be necessary for
64-bit time types on 32-bit architectures. <linux/time.h> will define
other time-related types in terms of the custom 'struct timespec'.

Add custom struct definitions which for now mirror exactly the ones from
the UAPI headers, but provide the foundation for further changes.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251220-nolibc-uapi-types-v3-8-c662992f75d7@weissschuh.net
tools/include/nolibc/arch-s390.h
tools/include/nolibc/types.h