summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/nolibc.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-08-30 18:07:12 +0300
committerThomas Weißschuh <linux@weissschuh.net>2023-10-12 22:13:52 +0300
commitb56a9492d058ac93252e4373f8c87c69df6912ff (patch)
tree4305ff360e951745ecd7345d658e729c557a00ed /tools/include/nolibc/nolibc.h
parent921992229b1f06df6b649860e4a5f3def1489866 (diff)
downloadlinux-b56a9492d058ac93252e4373f8c87c69df6912ff.tar.xz
tools/nolibc: add stdarg.h header
This allows nolic to work with `-nostdinc` avoiding any reliance on system headers. The implementation has been lifted from musl libc 1.2.4. There is already an implementation of stdarg.h in include/linux/stdarg.h but that is GPL licensed and therefore not suitable for nolibc. The used compiler builtins have been validated to be at least available since GCC 4.1.2 and clang 3.0.0. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/include/nolibc/nolibc.h')
-rw-r--r--tools/include/nolibc/nolibc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h
index 1f8d821000ac..989e707263a4 100644
--- a/tools/include/nolibc/nolibc.h
+++ b/tools/include/nolibc/nolibc.h
@@ -74,10 +74,10 @@
* -I../nolibc -o hello hello.c -lgcc
*
* The available standard (but limited) include files are:
- * ctype.h, errno.h, signal.h, stdio.h, stdlib.h, string.h, time.h
+ * ctype.h, errno.h, signal.h, stdarg.h, stdio.h, stdlib.h, string.h, time.h
*
* In addition, the following ones are expected to be provided by the compiler:
- * float.h, stdarg.h, stddef.h
+ * float.h, stddef.h
*
* The following ones which are part to the C standard are not provided:
* assert.h, locale.h, math.h, setjmp.h, limits.h