summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-03-11 00:19:29 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-03-11 00:19:29 +0000
commit3d6867efa1ff6affc33a90fb013fa1c83a75762b (patch)
tree56a9f0716b7fe9d16168533e9816ee2de9f82efd /sys
parentc27cdb05873953546496dff6e0a1fc748e75ee00 (diff)
Add a <machine/varargs.h> skeleton for userland.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/varargs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/arch/hppa/include/varargs.h b/sys/arch/hppa/include/varargs.h
new file mode 100644
index 00000000000..2555f3f6ed8
--- /dev/null
+++ b/sys/arch/hppa/include/varargs.h
@@ -0,0 +1,17 @@
+/* $OpenBSD: varargs.h,v 1.1 2002/03/11 00:19:28 miod Exp $ */
+
+#ifndef _MACHINE_VARARGS_H_
+#define _MACHINE_VARARGS_H_
+
+#include <machine/stdarg.h>
+
+#define __va_ellipsis ...
+
+#define va_alist __builtin_va_alist
+#define va_dcl long __builtin_va_list; __va_ellipsis
+
+#undef va_start
+#define va_start(ap) \
+ ((ap) = (va_list)&__builtin_va_alist)
+
+#endif /* !_MACHINE_VARARGS_H */