diff options
31 files changed, 0 insertions, 832 deletions
diff --git a/distrib/sets/lists/comp/md.alpha b/distrib/sets/lists/comp/md.alpha index c95d69db480..7e0bd2f05d1 100644 --- a/distrib/sets/lists/comp/md.alpha +++ b/distrib/sets/lists/comp/md.alpha @@ -48,7 +48,6 @@ ./usr/include/alpha/setjmp.h ./usr/include/alpha/signal.h ./usr/include/alpha/spinlock.h -./usr/include/alpha/stdarg.h ./usr/include/alpha/sysarch.h ./usr/include/alpha/tc_machdep.h ./usr/include/alpha/tcb.h diff --git a/distrib/sets/lists/comp/md.amd64 b/distrib/sets/lists/comp/md.amd64 index f21492d7c32..a6285256811 100644 --- a/distrib/sets/lists/comp/md.amd64 +++ b/distrib/sets/lists/comp/md.amd64 @@ -72,7 +72,6 @@ ./usr/include/amd64/smbiosvar.h ./usr/include/amd64/specialreg.h ./usr/include/amd64/spinlock.h -./usr/include/amd64/stdarg.h ./usr/include/amd64/sysarch.h ./usr/include/amd64/tcb.h ./usr/include/amd64/trap.h diff --git a/distrib/sets/lists/comp/md.arm64 b/distrib/sets/lists/comp/md.arm64 index 0dac8d177d1..d0065a8418f 100644 --- a/distrib/sets/lists/comp/md.arm64 +++ b/distrib/sets/lists/comp/md.arm64 @@ -50,7 +50,6 @@ ./usr/include/arm64/smbiosvar.h ./usr/include/arm64/softintr.h ./usr/include/arm64/spinlock.h -./usr/include/arm64/stdarg.h ./usr/include/arm64/sysarch.h ./usr/include/arm64/tcb.h ./usr/include/arm64/trap.h diff --git a/distrib/sets/lists/comp/md.armv7 b/distrib/sets/lists/comp/md.armv7 index 5132d4c9402..ac0b868e3af 100644 --- a/distrib/sets/lists/comp/md.armv7 +++ b/distrib/sets/lists/comp/md.armv7 @@ -47,7 +47,6 @@ ./usr/include/arm/signal.h ./usr/include/arm/softintr.h ./usr/include/arm/spinlock.h -./usr/include/arm/stdarg.h ./usr/include/arm/swi.h ./usr/include/arm/sysarch.h ./usr/include/arm/sysreg.h @@ -99,7 +98,6 @@ ./usr/include/armv7/setjmp.h ./usr/include/armv7/signal.h ./usr/include/armv7/spinlock.h -./usr/include/armv7/stdarg.h ./usr/include/armv7/sysarch.h ./usr/include/armv7/tcb.h ./usr/include/armv7/trap.h diff --git a/distrib/sets/lists/comp/md.hppa b/distrib/sets/lists/comp/md.hppa index eb7e9db3fff..adb52d3deeb 100644 --- a/distrib/sets/lists/comp/md.hppa +++ b/distrib/sets/lists/comp/md.hppa @@ -51,7 +51,6 @@ ./usr/include/hppa/signal.h ./usr/include/hppa/som.h ./usr/include/hppa/spinlock.h -./usr/include/hppa/stdarg.h ./usr/include/hppa/tcb.h ./usr/include/hppa/trap.h ./usr/include/hppa/vmparam.h diff --git a/distrib/sets/lists/comp/md.i386 b/distrib/sets/lists/comp/md.i386 index b2d8ef0074f..145a99d4cc0 100644 --- a/distrib/sets/lists/comp/md.i386 +++ b/distrib/sets/lists/comp/md.i386 @@ -71,7 +71,6 @@ ./usr/include/i386/smbiosvar.h ./usr/include/i386/specialreg.h ./usr/include/i386/spinlock.h -./usr/include/i386/stdarg.h ./usr/include/i386/sysarch.h ./usr/include/i386/tcb.h ./usr/include/i386/trap.h diff --git a/distrib/sets/lists/comp/md.landisk b/distrib/sets/lists/comp/md.landisk index 9db5723d849..c246f1c0c9a 100644 --- a/distrib/sets/lists/comp/md.landisk +++ b/distrib/sets/lists/comp/md.landisk @@ -43,7 +43,6 @@ ./usr/include/landisk/setjmp.h ./usr/include/landisk/signal.h ./usr/include/landisk/spinlock.h -./usr/include/landisk/stdarg.h ./usr/include/landisk/tcb.h ./usr/include/landisk/trap.h ./usr/include/landisk/vmparam.h @@ -96,7 +95,6 @@ ./usr/include/sh/sh_opcode.h ./usr/include/sh/signal.h ./usr/include/sh/spinlock.h -./usr/include/sh/stdarg.h ./usr/include/sh/tcb.h ./usr/include/sh/tmureg.h ./usr/include/sh/trap.h diff --git a/distrib/sets/lists/comp/md.loongson b/distrib/sets/lists/comp/md.loongson index cfb799c6901..61f0e92eaa8 100644 --- a/distrib/sets/lists/comp/md.loongson +++ b/distrib/sets/lists/comp/md.loongson @@ -54,7 +54,6 @@ ./usr/include/loongson/setjmp.h ./usr/include/loongson/signal.h ./usr/include/loongson/spinlock.h -./usr/include/loongson/stdarg.h ./usr/include/loongson/sysarch.h ./usr/include/loongson/tcb.h ./usr/include/loongson/trap.h @@ -103,7 +102,6 @@ ./usr/include/mips64/setjmp.h ./usr/include/mips64/signal.h ./usr/include/mips64/spinlock.h -./usr/include/mips64/stdarg.h ./usr/include/mips64/sysarch.h ./usr/include/mips64/tcb.h ./usr/include/mips64/trap.h diff --git a/distrib/sets/lists/comp/md.luna88k b/distrib/sets/lists/comp/md.luna88k index d4c314c812f..7043b0224f5 100644 --- a/distrib/sets/lists/comp/md.luna88k +++ b/distrib/sets/lists/comp/md.luna88k @@ -52,7 +52,6 @@ ./usr/include/luna88k/setjmp.h ./usr/include/luna88k/signal.h ./usr/include/luna88k/spinlock.h -./usr/include/luna88k/stdarg.h ./usr/include/luna88k/tcb.h ./usr/include/luna88k/trap.h ./usr/include/luna88k/vmparam.h @@ -96,7 +95,6 @@ ./usr/include/m88k/setjmp.h ./usr/include/m88k/signal.h ./usr/include/m88k/spinlock.h -./usr/include/m88k/stdarg.h ./usr/include/m88k/tcb.h ./usr/include/m88k/trap.h ./usr/include/m88k/vmparam.h diff --git a/distrib/sets/lists/comp/md.macppc b/distrib/sets/lists/comp/md.macppc index cff7d6bdf84..b1d6109ea50 100644 --- a/distrib/sets/lists/comp/md.macppc +++ b/distrib/sets/lists/comp/md.macppc @@ -50,7 +50,6 @@ ./usr/include/macppc/setjmp.h ./usr/include/macppc/signal.h ./usr/include/macppc/spinlock.h -./usr/include/macppc/stdarg.h ./usr/include/macppc/tcb.h ./usr/include/macppc/trap.h ./usr/include/macppc/vmparam.h @@ -94,7 +93,6 @@ ./usr/include/powerpc/setjmp.h ./usr/include/powerpc/signal.h ./usr/include/powerpc/spinlock.h -./usr/include/powerpc/stdarg.h ./usr/include/powerpc/tcb.h ./usr/include/powerpc/trap.h ./usr/include/ppc-asm.h diff --git a/distrib/sets/lists/comp/md.octeon b/distrib/sets/lists/comp/md.octeon index 417180a4b7d..c9c13778338 100644 --- a/distrib/sets/lists/comp/md.octeon +++ b/distrib/sets/lists/comp/md.octeon @@ -47,7 +47,6 @@ ./usr/include/mips64/setjmp.h ./usr/include/mips64/signal.h ./usr/include/mips64/spinlock.h -./usr/include/mips64/stdarg.h ./usr/include/mips64/sysarch.h ./usr/include/mips64/tcb.h ./usr/include/mips64/trap.h @@ -102,7 +101,6 @@ ./usr/include/octeon/setjmp.h ./usr/include/octeon/signal.h ./usr/include/octeon/spinlock.h -./usr/include/octeon/stdarg.h ./usr/include/octeon/sysarch.h ./usr/include/octeon/tcb.h ./usr/include/octeon/trap.h diff --git a/distrib/sets/lists/comp/md.sgi b/distrib/sets/lists/comp/md.sgi index d74aa8d3e56..2b394841682 100644 --- a/distrib/sets/lists/comp/md.sgi +++ b/distrib/sets/lists/comp/md.sgi @@ -47,7 +47,6 @@ ./usr/include/mips64/setjmp.h ./usr/include/mips64/signal.h ./usr/include/mips64/spinlock.h -./usr/include/mips64/stdarg.h ./usr/include/mips64/sysarch.h ./usr/include/mips64/tcb.h ./usr/include/mips64/trap.h @@ -98,7 +97,6 @@ ./usr/include/sgi/setjmp.h ./usr/include/sgi/signal.h ./usr/include/sgi/spinlock.h -./usr/include/sgi/stdarg.h ./usr/include/sgi/sysarch.h ./usr/include/sgi/tcb.h ./usr/include/sgi/trap.h diff --git a/distrib/sets/lists/comp/md.sparc64 b/distrib/sets/lists/comp/md.sparc64 index ddc1d7d2535..002e8597538 100644 --- a/distrib/sets/lists/comp/md.sparc64 +++ b/distrib/sets/lists/comp/md.sparc64 @@ -57,7 +57,6 @@ ./usr/include/sparc64/signal.h ./usr/include/sparc64/sparc64.h ./usr/include/sparc64/spinlock.h -./usr/include/sparc64/stdarg.h ./usr/include/sparc64/tcb.h ./usr/include/sparc64/trap.h ./usr/include/sparc64/vmparam.h diff --git a/sys/arch/alpha/include/stdarg.h b/sys/arch/alpha/include/stdarg.h deleted file mode 100644 index f0449618ff4..00000000000 --- a/sys/arch/alpha/include/stdarg.h +++ /dev/null @@ -1,60 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.14 2014/03/11 19:45:27 guenther Exp $ */ -/* $NetBSD: stdarg.h,v 1.4 1996/10/09 21:13:05 cgd Exp $ */ - -/*- - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _MACHINE_STDARG_H_ -#define _MACHINE_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#define __va_size(type) \ - (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) - -#define va_start(ap, last) \ - (__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0) - -#define __REAL_TYPE_CLASS 8 -#define __va_arg_offset(ap, type) \ - ((__builtin_classify_type(*(type *)0) == __REAL_TYPE_CLASS && \ - (ap).offset <= (6 * 8) ? -(6 * 8) : 0) - __va_size(type)) - -#define va_arg(ap, type) \ - (*(type *)((ap).offset += __va_size(type), \ - (ap).base + (ap).offset + __va_arg_offset(ap, type))) - -#define va_end(ap) - -#endif /* !_MACHINE_STDARG_H_ */ diff --git a/sys/arch/amd64/include/stdarg.h b/sys/arch/amd64/include/stdarg.h deleted file mode 100644 index aa35064b853..00000000000 --- a/sys/arch/amd64/include/stdarg.h +++ /dev/null @@ -1,58 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.9 2014/03/11 19:45:27 guenther Exp $ */ -/* $NetBSD: stdarg.h,v 1.2 2003/04/28 23:16:17 bjh21 Exp $ */ - -/*- - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _MACHINE_STDARG_H_ -#define _MACHINE_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> /* for __va_list */ - -/* - * NOTE: this file is only used by non-GNU compilers - */ - -typedef __va_list va_list; - -#define __va_size(type) \ - (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) - -#define va_start(ap, last) \ - ((ap) = (va_list)&(last) + __va_size(last)) - -#define va_arg(ap, type) \ - (*(type *)((ap) += __va_size(type), (ap) - __va_size(type))) - -#define va_end(ap) - -#endif /* !_MACHINE_STDARG_H_ */ diff --git a/sys/arch/arm/include/stdarg.h b/sys/arch/arm/include/stdarg.h deleted file mode 100644 index 0bcb8df025c..00000000000 --- a/sys/arch/arm/include/stdarg.h +++ /dev/null @@ -1,56 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.9 2011/03/23 16:54:34 pirofti Exp $ */ -/* $NetBSD: stdarg.h,v 1.7 2003/08/07 16:26:53 agc Exp $ */ - -/* - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _ARM_STDARG_H_ -#define _ARM_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; -#ifdef __lint__ -#define __builtin_next_arg(t) ((t) ? 0 : 0) -#define __builtin_stdarg_start(a, l) ((a) = ((l) ? 0 : 0)) -#define __builtin_va_arg(a, t) ((a) ? 0 : 0) -#define __builtin_va_end /* nothing */ -#define __builtin_va_copy(d, s) ((d) = (s)) -#endif - -#define va_start(ap, last) __builtin_stdarg_start((ap), (last)) - -#define va_arg(ap, type) __builtin_va_arg((ap), type) -#define va_end(ap) __builtin_va_end((ap)) -#define __va_copy(dest, src) __builtin_va_copy((dest), (src)) - -#endif /* !_ARM_STDARG_H_ */ diff --git a/sys/arch/arm64/include/stdarg.h b/sys/arch/arm64/include/stdarg.h deleted file mode 100644 index cbe800f8439..00000000000 --- a/sys/arch/arm64/include/stdarg.h +++ /dev/null @@ -1,56 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.1 2016/12/17 23:38:33 patrick Exp $ */ -/* $NetBSD: stdarg.h,v 1.7 2003/08/07 16:26:53 agc Exp $ */ - -/* - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _MACHINE_STDARG_H_ -#define _MACHINE_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; -#ifdef __lint__ -#define __builtin_next_arg(t) ((t) ? 0 : 0) -#define __builtin_stdarg_start(a, l) ((a) = ((l) ? 0 : 0)) -#define __builtin_va_arg(a, t) ((a) ? 0 : 0) -#define __builtin_va_end /* nothing */ -#define __builtin_va_copy(d, s) ((d) = (s)) -#endif - -#define va_start(ap, last) __builtin_stdarg_start((ap), (last)) - -#define va_arg(ap, type) __builtin_va_arg((ap), type) -#define va_end(ap) __builtin_va_end((ap)) -#define __va_copy(dest, src) __builtin_va_copy((dest), (src)) - -#endif /* !_MACHINE_STDARG_H_ */ diff --git a/sys/arch/armv7/include/stdarg.h b/sys/arch/armv7/include/stdarg.h deleted file mode 100644 index efa9b53b589..00000000000 --- a/sys/arch/armv7/include/stdarg.h +++ /dev/null @@ -1,4 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.1 2013/09/04 14:38:29 patrick Exp $ */ -/* $NetBSD: stdarg.h,v 1.3 2001/11/25 15:55:58 thorpej Exp $ */ - -#include <arm/stdarg.h> diff --git a/sys/arch/hppa/include/stdarg.h b/sys/arch/hppa/include/stdarg.h deleted file mode 100644 index dfb118039a9..00000000000 --- a/sys/arch/hppa/include/stdarg.h +++ /dev/null @@ -1,54 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.11 2014/03/11 19:45:27 guenther Exp $ */ - -/*- - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _MACHINE_STDARG_H_ -#define _MACHINE_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#define va_start(ap,lastarg) ((ap) = (va_list)__builtin_saveregs()) - -#define va_arg(ap,type) \ - (sizeof(type) > 8 ? \ - ((ap = (va_list) ((char *)ap - sizeof (int))), \ - (*((type *) (void *) (*((int *) (ap)))))): \ - ((ap = (va_list) ((long)((char *)ap - sizeof (type)) & \ - (sizeof(type) > 4 ? ~0x7 : ~0x3))),\ - (*((type *) (void *) ((char *)ap + ((8 - sizeof(type)) % 4)))))) - -#define va_end(ap) - -#endif /* !_MACHINE_STDARG_H */ diff --git a/sys/arch/i386/include/stdarg.h b/sys/arch/i386/include/stdarg.h deleted file mode 100644 index e242591dd67..00000000000 --- a/sys/arch/i386/include/stdarg.h +++ /dev/null @@ -1,54 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.16 2014/03/11 19:45:27 guenther Exp $ */ -/* $NetBSD: stdarg.h,v 1.12 1995/12/25 23:15:31 mycroft Exp $ */ - -/*- - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _MACHINE_STDARG_H_ -#define _MACHINE_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#define __va_size(type) \ - (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) - -#define va_start(ap, last) \ - ((ap) = (va_list)__builtin_next_arg(last)) - -#define va_arg(ap, type) \ - (*(type *)((ap) += __va_size(type), (ap) - __va_size(type))) - -#define va_end(ap) - -#endif /* !_MACHINE_STDARG_H_ */ diff --git a/sys/arch/landisk/include/stdarg.h b/sys/arch/landisk/include/stdarg.h deleted file mode 100644 index 8ef6540879e..00000000000 --- a/sys/arch/landisk/include/stdarg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.2 2009/11/24 11:59:59 jasper Exp $ */ - -#include <sh/stdarg.h> diff --git a/sys/arch/loongson/include/stdarg.h b/sys/arch/loongson/include/stdarg.h deleted file mode 100644 index e1b6eb75fea..00000000000 --- a/sys/arch/loongson/include/stdarg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.1 2009/07/31 09:26:26 miod Exp $ */ -/* public domain */ -#include <mips64/stdarg.h> diff --git a/sys/arch/luna88k/include/stdarg.h b/sys/arch/luna88k/include/stdarg.h deleted file mode 100644 index 684b2663141..00000000000 --- a/sys/arch/luna88k/include/stdarg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.3 2004/04/26 14:31:08 miod Exp $ */ -/* public domain */ -#include <m88k/stdarg.h> diff --git a/sys/arch/m88k/include/stdarg.h b/sys/arch/m88k/include/stdarg.h deleted file mode 100644 index 63b13410656..00000000000 --- a/sys/arch/m88k/include/stdarg.h +++ /dev/null @@ -1,16 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.3 2011/03/23 16:54:35 pirofti Exp $ */ - -#ifndef _M88K_STDARG_H_ -#define _M88K_STDARG_H_ - -#include <machine/_types.h> - -#ifndef _STDARG_H -#define _STDARG_H -#endif - -#include <machine/va-m88k.h> - -typedef __va_list va_list; - -#endif /* _M88K_STDARG_H_ */ diff --git a/sys/arch/macppc/include/stdarg.h b/sys/arch/macppc/include/stdarg.h deleted file mode 100644 index 09c1b9eaa2f..00000000000 --- a/sys/arch/macppc/include/stdarg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.1 2001/09/01 15:49:06 drahn Exp $ */ - -#include <powerpc/stdarg.h> diff --git a/sys/arch/mips64/include/stdarg.h b/sys/arch/mips64/include/stdarg.h deleted file mode 100644 index d569959c0c4..00000000000 --- a/sys/arch/mips64/include/stdarg.h +++ /dev/null @@ -1,247 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.8 2011/03/23 16:54:36 pirofti Exp $ */ - -/*- - * Copyright (c) 1992, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _MIPS64_STDARG_H_ -#define _MIPS64_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#ifndef __GNUC_VA_LIST -#define __GNUC_VA_LIST -#if defined (__mips_eabi) && ! defined (__mips_soft_float) && ! defined (__mips_single_float) - -typedef struct { - /* Pointer to FP regs. */ - char *__fp_regs; - /* Number of FP regs remaining. */ - int __fp_left; - /* Pointer to GP regs followed by stack parameters. */ - char *__gp_regs; -} __gnuc_va_list; - -#else /* ! (defined (__mips_eabi) && ! defined (__mips_soft_float) && ! defined (__mips_single_float)) */ - -typedef char * __gnuc_va_list; - -#endif /* ! (defined (__mips_eabi) && ! defined (__mips_soft_float) && ! defined (__mips_single_float)) */ -#endif /* not __GNUC_VA_LIST */ - -/* If this is for internal libc use, don't define anything but __gnuc_va_list */ - -#ifndef _MIPS64_STDARG_H_ -#define _MIPS64_STDARG_H_ -enum { - __no_type_class = -1, - __void_type_class, - __integer_type_class, - __char_type_class, - __enumeral_type_class, - __boolean_type_class, - __pointer_type_class, - __reference_type_class, - __offset_type_class, - __real_type_class, - __complex_type_class, - __function_type_class, - __method_type_class, - __record_type_class, - __union_type_class, - __array_type_class, - __string_type_class, - __set_type_class, - __file_type_class, - __lang_type_class -}; -#endif - -#define __va_ellipsis ... - -#ifdef __mips64__ -#define __va_rounded_size(__TYPE) \ - (((sizeof (__TYPE) + 8 - 1) / 8) * 8) -#else -#define __va_rounded_size(__TYPE) \ - (((sizeof (__TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int)) -#endif - -#ifdef __mips64__ -#define __va_reg_size 8 -#else -#define __va_reg_size 4 -#endif - -#if defined (__mips_eabi) -#if ! defined (__mips_soft_float) && ! defined (__mips_single_float) -#ifdef __mips64__ -#define va_start(__AP, __LASTARG) \ - (__AP.__gp_regs = ((char *) __builtin_next_arg (__LASTARG) \ - - (__builtin_args_info (2) < 8 \ - ? (8 - __builtin_args_info (2)) * __va_reg_size \ - : 0)), \ - __AP.__fp_left = 8 - __builtin_args_info (3), \ - __AP.__fp_regs = __AP.__gp_regs - __AP.__fp_left * __va_reg_size) -#else /* ! defined (__mips64__) */ -#define va_start(__AP, __LASTARG) \ - (__AP.__gp_regs = ((char *) __builtin_next_arg (__LASTARG) \ - - (__builtin_args_info (2) < 8 \ - ? (8 - __builtin_args_info (2)) * __va_reg_size \ - : 0)), \ - __AP.__fp_left = (8 - __builtin_args_info (3)) / 2, \ - __AP.__fp_regs = __AP.__gp_regs - __AP.__fp_left * 8, \ - __AP.__fp_regs = (char *) ((int) __AP.__fp_regs & -8)) -#endif /* ! defined (__mips64__) */ -#else /* ! (! defined (__mips_soft_float) && ! defined (__mips_single_float) ) */ -#define va_start(__AP, __LASTARG) \ - (__AP = ((__gnuc_va_list) __builtin_next_arg (__LASTARG) \ - - (__builtin_args_info (2) >= 8 ? 0 \ - : (8 - __builtin_args_info (2)) * __va_reg_size))) -#endif /* ! (! defined (__mips_soft_float) && ! defined (__mips_single_float) ) */ -#else /* ! defined (__mips_eabi) */ -#define va_start(__AP, __LASTARG) \ - (__AP = (__gnuc_va_list) __builtin_next_arg (__LASTARG)) -#endif /* ! (defined (__mips_eabi) && ! defined (__mips_soft_float) && ! defined (__mips_single_float)) */ - -#ifndef va_end -void va_end (__gnuc_va_list); /* Defined in libgcc.a */ -#endif -#define va_end(__AP) - -#if defined (__mips_eabi) - -#if ! defined (__mips_soft_float) && ! defined (__mips_single_float) -#ifdef __mips64__ -#define __va_next_addr(__AP, __type) \ - ((__builtin_classify_type (*(__type *) 0) == __real_type_class \ - && __AP.__fp_left > 0) \ - ? (--__AP.__fp_left, (__AP.__fp_regs += 8) - 8) \ - : (__AP.__gp_regs += __va_reg_size) - __va_reg_size) -#else -#define __va_next_addr(__AP, __type) \ - ((__builtin_classify_type (*(__type *) 0) == __real_type_class \ - && __AP.__fp_left > 0) \ - ? (--__AP.__fp_left, (__AP.__fp_regs += 8) - 8) \ - : (((__builtin_classify_type (* (__type *) 0) < __record_type_class \ - && __alignof__ (__type) > 4) \ - ? __AP.__gp_regs = (char *) (((int) __AP.__gp_regs + 8 - 1) & -8) \ - : (char *) 0), \ - (__builtin_classify_type (* (__type *) 0) >= __record_type_class \ - ? (__AP.__gp_regs += __va_reg_size) - __va_reg_size \ - : ((__AP.__gp_regs += __va_rounded_size (__type)) \ - - __va_rounded_size (__type))))) -#endif -#else /* ! (! defined (__mips_soft_float) && ! defined (__mips_single_float)) */ -#ifdef __mips64__ -#define __va_next_addr(__AP, __type) \ - ((__AP += __va_reg_size) - __va_reg_size) -#else -#define __va_next_addr(__AP, __type) \ - (((__builtin_classify_type (* (__type *) 0) < __record_type_class \ - && __alignof__ (__type) > 4) \ - ? __AP = (char *) (((__PTRDIFF_TYPE__) __AP + 8 - 1) & -8) \ - : (char *) 0), \ - (__builtin_classify_type (* (__type *) 0) >= __record_type_class \ - ? (__AP += __va_reg_size) - __va_reg_size \ - : ((__AP += __va_rounded_size (__type)) \ - - __va_rounded_size (__type)))) -#endif -#endif /* ! (! defined (__mips_soft_float) && ! defined (__mips_single_float)) */ - -#ifdef __MIPSEB__ -#define va_arg(__AP, __type) \ - ((__va_rounded_size (__type) <= __va_reg_size) \ - ? *(__type *) (void *) (__va_next_addr (__AP, __type) \ - + __va_reg_size \ - - sizeof (__type)) \ - : (__builtin_classify_type (*(__type *) 0) >= __record_type_class \ - ? **(__type **) (void *) (__va_next_addr (__AP, __type) \ - + __va_reg_size \ - - sizeof (char *)) \ - : *(__type *) (void *) __va_next_addr (__AP, __type))) -#else -#define va_arg(__AP, __type) \ - ((__va_rounded_size (__type) <= __va_reg_size) \ - ? *(__type *) (void *) __va_next_addr (__AP, __type) \ - : (__builtin_classify_type (* (__type *) 0) >= __record_type_class \ - ? **(__type **) (void *) __va_next_addr (__AP, __type) \ - : *(__type *) (void *) __va_next_addr (__AP, __type))) -#endif - -#else /* ! defined (__mips_eabi) */ - -/* We cast to void * and then to TYPE * because this avoids - a warning about increasing the alignment requirement. */ -/* The __mips64__ cases are reversed from the 32 bit cases, because the standard - 32 bit calling convention left-aligns all parameters smaller than a word, - whereas the __mips64__ calling convention does not (and hence they are - right aligned). */ -#ifdef __mips64__ -#ifdef __MIPSEB__ -#define va_arg(__AP, __type) \ - ((__type *) (void *) (__AP = (char *) \ - ((((__PTRDIFF_TYPE__)__AP + 8 - 1) & -8) \ - + __va_rounded_size (__type))))[-1] -#else -#define va_arg(__AP, __type) \ - ((__AP = (char *) ((((__PTRDIFF_TYPE__)__AP + 8 - 1) & -8) \ - + __va_rounded_size (__type))), \ - *(__type *) (void *) (__AP - __va_rounded_size (__type))) -#endif - -#else /* not __mips64__ */ - -#ifdef __MIPSEB__ -/* For big-endian machines. */ -#define va_arg(__AP, __type) \ - ((__AP = (char *) ((__alignof__ (__type) > 4 \ - ? ((__PTRDIFF_TYPE__)__AP + 8 - 1) & -8 \ - : ((__PTRDIFF_TYPE__)__AP + 4 - 1) & -4) \ - + __va_rounded_size (__type))), \ - *(__type *) (void *) (__AP - __va_rounded_size (__type))) -#else -/* For little-endian machines. */ -#define va_arg(__AP, __type) \ - ((__type *) (void *) (__AP = (char *) ((__alignof__(__type) > 4 \ - ? ((__PTRDIFF_TYPE__)__AP + 8 - 1) & -8 \ - : ((__PTRDIFF_TYPE__)__AP + 4 - 1) & -4) \ - + __va_rounded_size(__type))))[-1] -#endif -#endif -#endif /* ! defined (__mips_eabi) */ - -/* Copy __gnuc_va_list into another variable of this type. */ -#define __va_copy(dest, src) (dest) = (src) - -#endif /* !_MIPS64_STDARG_H_ */ diff --git a/sys/arch/octeon/include/stdarg.h b/sys/arch/octeon/include/stdarg.h deleted file mode 100644 index 54e4d09f509..00000000000 --- a/sys/arch/octeon/include/stdarg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.1 2010/09/20 06:32:30 syuu Exp $ */ -/* public domain */ -#include <mips64/stdarg.h> diff --git a/sys/arch/powerpc/include/stdarg.h b/sys/arch/powerpc/include/stdarg.h deleted file mode 100644 index f6c7fe841da..00000000000 --- a/sys/arch/powerpc/include/stdarg.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.7 2008/11/08 19:49:24 kettenis Exp $ */ - -/* - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _POWERPC_STDARG_H_ -#define _POWERPC_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#ifdef __lint__ -#define va_start(ap, last) ((ap) = (ap)) -#define va_arg(ap, type) (*(type *)(void *)&ap) -#define va_end(ap) -#define __va_copy(dst, src) ((dst) = (src)) -#else -# error "Unsupported compiler" -#endif - -#endif /* !_POWERPC_STDARG_H_ */ diff --git a/sys/arch/sgi/include/stdarg.h b/sys/arch/sgi/include/stdarg.h deleted file mode 100644 index 06447d60e61..00000000000 --- a/sys/arch/sgi/include/stdarg.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.1 2004/08/06 21:12:19 pefo Exp $ */ - -/* Use Mips generic include file */ - -#include <mips64/stdarg.h> diff --git a/sys/arch/sh/include/stdarg.h b/sys/arch/sh/include/stdarg.h deleted file mode 100644 index 9b51419cb51..00000000000 --- a/sys/arch/sh/include/stdarg.h +++ /dev/null @@ -1,56 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.3 2011/03/02 18:31:58 matthew Exp $ */ -/* $NetBSD: stdarg.h,v 1.9 2006/05/21 22:39:04 uwe Exp $ */ - -/* - * Copyright (c) 1991, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdarg.h 8.1 (Berkeley) 6/10/93 - */ - -#ifndef _SH_STDARG_H_ -#define _SH_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#ifdef __lint__ -#define __builtin_next_arg(t) ((t) ? 0 : 0) -#define __builtin_stdarg_start(a, l) ((a) = ((l) ? 0 : 0)) -#define __builtin_va_arg(a, t) ((t)((a) ? 0 : 0)) -#define __builtin_va_end /* nothing */ -#define __builtin_va_copy(d, s) ((d) = (s)) -#endif - -#define va_start(ap, last) __builtin_stdarg_start((ap), (last)) -#define va_arg(ap, type) __builtin_va_arg((ap), type) -#define va_end(ap) __builtin_va_end((ap)) -#define __va_copy(dest, src) __builtin_va_copy((dest), (src)) - -#endif /* !_SH_STDARG_H_ */ diff --git a/sys/arch/sparc64/include/stdarg.h b/sys/arch/sparc64/include/stdarg.h deleted file mode 100644 index d69e93b6054..00000000000 --- a/sys/arch/sparc64/include/stdarg.h +++ /dev/null @@ -1,80 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.10 2014/03/11 19:45:27 guenther Exp $ */ -/* $NetBSD: stdarg.h,v 1.11 2000/07/23 21:36:56 mycroft Exp $ */ - -/* - * Copyright (c) 1992, 1993 - * The Regents of the University of California. All rights reserved. - * - * This software was developed by the Computer Systems Engineering group - * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and - * contributed to Berkeley. - * - * All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Lawrence Berkeley Laboratory. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: @(#)stdarg.h 8.2 (Berkeley) 9/27/93 - */ - -#ifndef _MACHINE_STDARG_H_ -#define _MACHINE_STDARG_H_ - -#include <sys/cdefs.h> -#include <machine/_types.h> - -typedef __va_list va_list; - -#define va_start(ap, last) \ - (__builtin_next_arg(last), (ap) = (va_list)__builtin_saveregs()) - -#define va_end(ap) - -/* - * For sparcv9 code. - */ -#define __va_arg8(ap, type) \ - (*(type *)(void *)((ap) += 8, (ap) - 8)) -#define __va_arg16(ap, type) \ - (*(type *)(void *)((ap) = (va_list)(((unsigned long)(ap) + 31) & -16),\ - (ap) - 16)) -#define __va_int(ap, type) \ - (*(type *)(void *)((ap) += 8, (ap) - sizeof(type))) - -#define __REAL_TYPE_CLASS 8 -#define __RECORD_TYPE_CLASS 12 -#define va_arg(ap, type) \ - (__builtin_classify_type(*(type *)0) == __REAL_TYPE_CLASS ? \ - (__alignof__(type) == 16 ? __va_arg16(ap, type) : \ - __va_arg8(ap, type)) : \ - (__builtin_classify_type(*(type *)0) < __RECORD_TYPE_CLASS ? \ - __va_int(ap, type) : \ - (sizeof(type) <= 8 ? __va_arg8(ap, type) : \ - (sizeof(type) <= 16 ? __va_arg16(ap, type) : \ - *__va_arg8(ap, type *))))) - -#endif /* !_MACHINE_STDARG_H_ */ |