summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-12-30 05:01:37 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-12-30 05:01:37 +0000
commite707938ee54d291657561650400fae34c1403b14 (patch)
treee9cacb3b02ad925396397cfd70e404f18b1f9c61 /sys/arch
parent8a5e33cc1aa57a9fbe22527e19dabae2c6073039 (diff)
add a simple __va_copy inside ifdef lint, from tim van der molen.
ok guenther
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/include/stdarg.h3
-rw-r--r--sys/arch/amd64/include/stdarg.h3
-rw-r--r--sys/arch/hppa/include/stdarg.h3
-rw-r--r--sys/arch/hppa64/include/stdarg.h3
-rw-r--r--sys/arch/i386/include/stdarg.h3
-rw-r--r--sys/arch/sparc64/include/stdarg.h3
6 files changed, 12 insertions, 6 deletions
diff --git a/sys/arch/alpha/include/stdarg.h b/sys/arch/alpha/include/stdarg.h
index 167d5cd44b8..1cb7f986c45 100644
--- a/sys/arch/alpha/include/stdarg.h
+++ b/sys/arch/alpha/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.11 2008/10/23 21:25:07 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.12 2010/12/30 05:01:36 tedu Exp $ */
/* $NetBSD: stdarg.h,v 1.4 1996/10/09 21:13:05 cgd Exp $ */
/*-
@@ -45,6 +45,7 @@ typedef __va_list va_list;
#ifdef lint
#define va_start(ap,lastarg) ((ap) = (ap))
+#define __va_copy(dst, src) ((dst) = (src))
#else
#define va_start(ap, last) \
(__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0)
diff --git a/sys/arch/amd64/include/stdarg.h b/sys/arch/amd64/include/stdarg.h
index c6826fae588..9e97937198c 100644
--- a/sys/arch/amd64/include/stdarg.h
+++ b/sys/arch/amd64/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.6 2008/10/23 21:25:07 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.7 2010/12/30 05:01:36 tedu Exp $ */
/* $NetBSD: stdarg.h,v 1.2 2003/04/28 23:16:17 bjh21 Exp $ */
/*-
@@ -49,6 +49,7 @@ typedef __va_list va_list;
#ifdef lint
#define va_start(ap,lastarg) ((ap) = (ap))
+#define __va_copy(dst, src) ((dst) = (src))
#else
#define va_start(ap, last) \
((ap) = (va_list)&(last) + __va_size(last))
diff --git a/sys/arch/hppa/include/stdarg.h b/sys/arch/hppa/include/stdarg.h
index 1fe03b6d9e6..9587297195e 100644
--- a/sys/arch/hppa/include/stdarg.h
+++ b/sys/arch/hppa/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.9 2008/10/23 21:25:07 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.10 2010/12/30 05:01:36 tedu Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,6 +41,7 @@ typedef __va_list va_list;
#ifdef lint
#define va_start(ap,lastarg) ((ap) = (ap))
+#define __va_copy(dst, src) ((dst) = (src))
#else
#define va_start(ap,lastarg) ((ap) = (va_list)__builtin_saveregs())
#endif /* lint */
diff --git a/sys/arch/hppa64/include/stdarg.h b/sys/arch/hppa64/include/stdarg.h
index 34c0a91b7ce..1282b18740b 100644
--- a/sys/arch/hppa64/include/stdarg.h
+++ b/sys/arch/hppa64/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.6 2008/10/23 21:25:07 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.7 2010/12/30 05:01:36 tedu Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,6 +41,7 @@ typedef __va_list va_list;
#ifdef lint
#define va_start(ap,lastarg) ((ap) = (ap))
+#define __va_copy(dst, src) ((dst) = (src))
#else
#define va_start(ap,lastarg) ((ap) = (va_list)__builtin_saveregs())
#endif /* lint */
diff --git a/sys/arch/i386/include/stdarg.h b/sys/arch/i386/include/stdarg.h
index bad72654e06..9c4ec1b1714 100644
--- a/sys/arch/i386/include/stdarg.h
+++ b/sys/arch/i386/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.13 2008/10/23 21:25:07 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.14 2010/12/30 05:01:36 tedu Exp $ */
/* $NetBSD: stdarg.h,v 1.12 1995/12/25 23:15:31 mycroft Exp $ */
/*-
@@ -45,6 +45,7 @@ typedef __va_list va_list;
#ifdef lint
#define va_start(ap,lastarg) ((ap) = (ap))
+#define __va_copy(dst, src) ((dst) = (src))
#else
#define va_start(ap, last) \
((ap) = (va_list)__builtin_next_arg(last))
diff --git a/sys/arch/sparc64/include/stdarg.h b/sys/arch/sparc64/include/stdarg.h
index 159be232467..97ad19f0886 100644
--- a/sys/arch/sparc64/include/stdarg.h
+++ b/sys/arch/sparc64/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.7 2008/10/23 21:25:08 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.8 2010/12/30 05:01:36 tedu Exp $ */
/* $NetBSD: stdarg.h,v 1.11 2000/07/23 21:36:56 mycroft Exp $ */
/*
@@ -57,6 +57,7 @@ typedef __va_list va_list;
#ifdef lint
#define va_start(ap,lastarg) ((ap) = (ap))
+#define __va_copy(dst, src) ((dst) = (src))
#else
#define va_start(ap, last) \
(__builtin_next_arg(last), (ap) = (va_list)__builtin_saveregs())