Skip to content

Commit 5caaa0a

Browse files
t-8chKAGA-KOKO
authored andcommitted
tools/nolibc: add limits.h shim header
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
1 parent 1a59f5d commit 5caaa0a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tools/include/nolibc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ all_files := \
3030
crt.h \
3131
ctype.h \
3232
errno.h \
33+
limits.h \
3334
nolibc.h \
3435
signal.h \
3536
stackprotector.h \

tools/include/nolibc/limits.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
2+
/*
3+
* Shim limits.h header for NOLIBC.
4+
* Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de>
5+
*/
6+
7+
#include "nolibc.h"

0 commit comments

Comments
 (0)