git: 8d93877c013f - stable/14 - Add sys/stdarg.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Jul 2025 20:35:08 UTC
The branch stable/14 has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=8d93877c013fa3bc00b8b9841e545a941e80b2ca
commit 8d93877c013fa3bc00b8b9841e545a941e80b2ca
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-07-02 20:24:45 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-07-02 20:34:44 +0000
Add sys/stdarg.h
While the type of va_list and implementation of va_*() psuedo functions
varies (sometimes greatly) by architecture, they will always be defined
by the compiler in a consistant way that does not require machine
dependent handling.
MFC after: 1 week
Reviewed by: imp
Exp-run by: antoine (PR 286274)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
(cherry picked from commit 2d92a5abefc9cf6aa81fb7d23f8fcca4f1d6026d)
---
include/Makefile | 4 ++--
sys/sys/stdarg.h | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/Makefile b/include/Makefile
index f5985ebf091a..0ecf72177427 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -40,9 +40,9 @@ INCS= a.out.h ar.h assert.h bitstring.h byteswap.h \
.PATH: ${SRCTOP}/contrib/libc-vis
INCS+= vis.h
-MHDRS= float.h floatingpoint.h stdarg.h
+MHDRS= float.h floatingpoint.h
-PHDRS= _semaphore.h
+PHDRS= _semaphore.h stdarg.h
LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \
syslog.h ucontext.h
diff --git a/sys/sys/stdarg.h b/sys/sys/stdarg.h
new file mode 100644
index 000000000000..d9266d12c7e1
--- /dev/null
+++ b/sys/sys/stdarg.h
@@ -0,0 +1,6 @@
+#ifndef __SYS_STDARG_H__
+#define __SYS_STDARG_H__
+
+#include <sys/_stdarg.h>
+
+#endif /* __SYS_STDARG_H__ */