]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools/nolibc: add limits.h shim header
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 26 Feb 2025 11:44:48 +0000 (12:44 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 3 Mar 2025 19:00:12 +0000 (20:00 +0100)
limits.h is a widely used standard header.  Missing it from nolibc requires
adoption effort to port applications.

Add a shim header which includes the global nolibc.h header.
It makes all nolibc symbols available.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-9-28e14e031ed8@linutronix.de
tools/include/nolibc/Makefile
tools/include/nolibc/limits.h [new file with mode: 0644]

index a1f55fb24bb38c1f49c653af5825e8bcc569a56d..c1299a053145786da89001a5f95f5527ffbe2fa4 100644 (file)
@@ -30,6 +30,7 @@ all_files := \
                crt.h \
                ctype.h \
                errno.h \
+               limits.h \
                nolibc.h \
                signal.h \
                stackprotector.h \
diff --git a/tools/include/nolibc/limits.h b/tools/include/nolibc/limits.h
new file mode 100644 (file)
index 0000000..306d414
--- /dev/null
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
+/*
+ * Shim limits.h header for NOLIBC.
+ * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de>
+ */
+
+#include "nolibc.h"