From ceacd60e5da242add0e76c67bad05065cbc8b952 Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Fri, 11 Mar 2011 15:17:09 +0000 Subject: Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do. Okay guenther@, millert@. --- sys/arch/alpha/include/endian.h | 8 ++++---- sys/arch/amd64/include/endian.h | 8 ++++---- sys/arch/arm/include/endian.h | 7 ++++++- sys/arch/hp300/include/endian.h | 8 ++++---- sys/arch/hppa/include/endian.h | 8 ++++---- sys/arch/hppa64/include/endian.h | 8 ++++---- sys/arch/i386/include/endian.h | 8 ++++---- sys/arch/m68k/include/endian.h | 8 ++++---- sys/arch/m88k/include/endian.h | 8 ++++---- sys/arch/mac68k/include/endian.h | 8 ++++---- sys/arch/mips64/include/endian.h | 8 ++++---- sys/arch/mvme68k/include/endian.h | 8 ++++---- sys/arch/powerpc/include/endian.h | 8 ++++---- sys/arch/sh/include/endian.h | 8 ++++---- sys/arch/sparc/include/endian.h | 8 ++++---- sys/arch/sparc64/include/endian.h | 8 ++++---- sys/arch/vax/include/endian.h | 8 ++++---- 17 files changed, 70 insertions(+), 65 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/alpha/include/endian.h b/sys/arch/alpha/include/endian.h index 49b4f4dcdd3..5ebf5b94a44 100644 --- a/sys/arch/alpha/include/endian.h +++ b/sys/arch/alpha/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.12 2005/12/13 00:35:22 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.13 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,12 +24,12 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _ALPHA_ENDIAN_H_ -#define _ALPHA_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #define _BYTE_ORDER _LITTLE_ENDIAN #include #define __STRICT_ALIGNMENT -#endif /* _ALPHA_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/amd64/include/endian.h b/sys/arch/amd64/include/endian.h index 7cdd9bfb1e6..fcfc49cd013 100644 --- a/sys/arch/amd64/include/endian.h +++ b/sys/arch/amd64/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:22 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.4 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,8 +24,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _I386_ENDIAN_H_ -#define _I386_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #ifdef __GNUC__ @@ -59,4 +59,4 @@ #define _BYTE_ORDER _LITTLE_ENDIAN #include -#endif /* _I386_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/arm/include/endian.h b/sys/arch/arm/include/endian.h index 75f93114cc3..1e834f9e0df 100644 --- a/sys/arch/arm/include/endian.h +++ b/sys/arch/arm/include/endian.h @@ -1,4 +1,7 @@ -/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.4 2011/03/11 15:17:08 pirofti Exp $ */ + +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #ifdef __ARMEB__ #define _BYTE_ORDER _BIG_ENDIAN @@ -7,3 +10,5 @@ #endif #define __STRICT_ALIGNMENT #include + +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/hp300/include/endian.h b/sys/arch/hp300/include/endian.h index aadb88454d7..b54e4558a3b 100644 --- a/sys/arch/hp300/include/endian.h +++ b/sys/arch/hp300/include/endian.h @@ -1,10 +1,10 @@ -/* $OpenBSD: endian.h,v 1.3 1997/11/09 23:05:05 niklas Exp $ */ +/* $OpenBSD: endian.h,v 1.4 2011/03/11 15:17:08 pirofti Exp $ */ /* $NetBSD: endian.h,v 1.6 1994/10/26 07:26:22 cgd Exp $ */ -#ifndef _HP300_ENDIAN_H_ -#define _HP300_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ /* Just use the common m68k definition */ #include -#endif /* _HP300_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/hppa/include/endian.h b/sys/arch/hppa/include/endian.h index c374e90f092..0b61d7e2790 100644 --- a/sys/arch/hppa/include/endian.h +++ b/sys/arch/hppa/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.10 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.11 2011/03/11 15:17:08 pirofti Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -26,12 +26,12 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _HPPA_ENDIAN_H_ -#define _HPPA_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #define _BYTE_ORDER _BIG_ENDIAN #include #define __STRICT_ALIGNMENT -#endif /* !_HPPA_ENDIAN_H_ */ +#endif /* !_MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/hppa64/include/endian.h b/sys/arch/hppa64/include/endian.h index 06909204a77..e3eccb65cb3 100644 --- a/sys/arch/hppa64/include/endian.h +++ b/sys/arch/hppa64/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.2 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.3 2011/03/11 15:17:08 pirofti Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -17,12 +17,12 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef _HPPA64_ENDIAN_H_ -#define _HPPA64_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #define _BYTE_ORDER _BIG_ENDIAN #include #define __STRICT_ALIGNMENT -#endif /* !_HPPA64_ENDIAN_H_ */ +#endif /* !_MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/i386/include/endian.h b/sys/arch/i386/include/endian.h index c9f05de0e8a..34a3ae7ba0e 100644 --- a/sys/arch/i386/include/endian.h +++ b/sys/arch/i386/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.15 2007/05/29 18:18:20 tom Exp $ */ +/* $OpenBSD: endian.h,v 1.16 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,8 +24,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _I386_ENDIAN_H_ -#define _I386_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #ifdef __GNUC__ @@ -57,4 +57,4 @@ #define _BYTE_ORDER _LITTLE_ENDIAN #include -#endif /* _I386_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/m68k/include/endian.h b/sys/arch/m68k/include/endian.h index e341404cf14..990cf74cb7a 100644 --- a/sys/arch/m68k/include/endian.h +++ b/sys/arch/m68k/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.15 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.16 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,8 +24,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _M68K_ENDIAN_H_ -#define _M68K_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #ifdef __GNUC__ @@ -55,4 +55,4 @@ #define _BYTE_ORDER _BIG_ENDIAN #include -#endif /* _M68K_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/m88k/include/endian.h b/sys/arch/m88k/include/endian.h index dd5d886e685..8cc0485cbea 100644 --- a/sys/arch/m88k/include/endian.h +++ b/sys/arch/m88k/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.4 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,13 +24,13 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef __M88K_ENDIAN_H__ -#define __M88K_ENDIAN_H__ +#ifndef __MACHINE_ENDIAN_H__ +#define __MACHINE_ENDIAN_H__ #define _BYTE_ORDER _BIG_ENDIAN #include #define __STRICT_ALIGNMENT -#endif /* __M88K_ENDIAN_H__ */ +#endif /* __MACHINE_ENDIAN_H__ */ diff --git a/sys/arch/mac68k/include/endian.h b/sys/arch/mac68k/include/endian.h index 1893ed3dbc7..edbab908236 100644 --- a/sys/arch/mac68k/include/endian.h +++ b/sys/arch/mac68k/include/endian.h @@ -1,9 +1,9 @@ -/* $OpenBSD: endian.h,v 1.3 1997/11/09 23:05:09 niklas Exp $ */ +/* $OpenBSD: endian.h,v 1.4 2011/03/11 15:17:08 pirofti Exp $ */ /* $NetBSD: endian.h,v 1.5 1994/10/26 08:46:28 cgd Exp $ */ -#ifndef _MAC68K_ENDIAN_H_ -#define _MAC68K_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #include -#endif /* _MAC68K_ENDIAN_H */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/mips64/include/endian.h b/sys/arch/mips64/include/endian.h index 4995fd19899..093c0bc100e 100644 --- a/sys/arch/mips64/include/endian.h +++ b/sys/arch/mips64/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.5 2006/02/27 23:35:59 miod Exp $ */ +/* $OpenBSD: endian.h,v 1.6 2011/03/11 15:17:08 pirofti Exp $ */ /* * Copyright (c) 2001-2002 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -26,8 +26,8 @@ * */ -#ifndef _MIPS64_ENDIAN_H_ -#define _MIPS64_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #if defined(__MIPSEL__) #define _BYTE_ORDER _LITTLE_ENDIAN @@ -44,4 +44,4 @@ #define __STRICT_ALIGNMENT -#endif /* _MIPS64_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/mvme68k/include/endian.h b/sys/arch/mvme68k/include/endian.h index f30117c7c8a..74423184dcf 100644 --- a/sys/arch/mvme68k/include/endian.h +++ b/sys/arch/mvme68k/include/endian.h @@ -1,9 +1,9 @@ -/* $OpenBSD: endian.h,v 1.4 1997/11/09 23:05:10 niklas Exp $ */ +/* $OpenBSD: endian.h,v 1.5 2011/03/11 15:17:08 pirofti Exp $ */ -#ifndef _MVME68K_ENDIAN_H_ -#define _MVME68K_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ /* Just use the common m68k definition */ #include -#endif /* _MVME68K_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/powerpc/include/endian.h b/sys/arch/powerpc/include/endian.h index b4f7cce7b32..5372139b261 100644 --- a/sys/arch/powerpc/include/endian.h +++ b/sys/arch/powerpc/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.14 2005/12/13 14:13:53 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.15 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,8 +24,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _POWERPC_ENDIAN_H_ -#define _POWERPC_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #undef _BIG_ENDIAN /* XXX - gcc may define _BIG_ENDIAN too */ #define _BYTE_ORDER _BIG_ENDIAN @@ -33,4 +33,4 @@ #define __STRICT_ALIGNMENT -#endif /* _POWERPC_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/sh/include/endian.h b/sys/arch/sh/include/endian.h index 9615f567cd1..58c69dae57a 100644 --- a/sys/arch/sh/include/endian.h +++ b/sys/arch/sh/include/endian.h @@ -1,10 +1,10 @@ -/* $OpenBSD: endian.h,v 1.1 2006/10/06 21:02:55 miod Exp $ */ +/* $OpenBSD: endian.h,v 1.2 2011/03/11 15:17:08 pirofti Exp $ */ /* $NetBSD: endian.h,v 1.4 2000/03/17 00:09:25 mycroft Exp $ */ /* Written by Manuel Bouyer. Public domain */ -#ifndef _SH_ENDIAN_H_ -#define _SH_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #ifdef __GNUC__ @@ -40,4 +40,4 @@ #define __STRICT_ALIGNMENT -#endif /* !_SH_ENDIAN_H_ */ +#endif /* !_MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/sparc/include/endian.h b/sys/arch/sparc/include/endian.h index 82f6ad18685..530925bf188 100644 --- a/sys/arch/sparc/include/endian.h +++ b/sys/arch/sparc/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.12 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.13 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,12 +24,12 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _SPARC_ENDIAN_H_ -#define _SPARC_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #define _BYTE_ORDER _BIG_ENDIAN #include #define __STRICT_ALIGNMENT -#endif /* _SPARC_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/sparc64/include/endian.h b/sys/arch/sparc64/include/endian.h index 1dfdb42972d..fbe3710afe3 100644 --- a/sys/arch/sparc64/include/endian.h +++ b/sys/arch/sparc64/include/endian.h @@ -1,11 +1,11 @@ -/* $OpenBSD: endian.h,v 1.2 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.3 2011/03/11 15:17:08 pirofti Exp $ */ -#ifndef _SPARC64_ENDIAN_H_ -#define _SPARC64_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #define _BYTE_ORDER _BIG_ENDIAN #include #define __STRICT_ALIGNMENT -#endif /* _SPARC64_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/vax/include/endian.h b/sys/arch/vax/include/endian.h index 6c0578df68b..f81c35714b0 100644 --- a/sys/arch/vax/include/endian.h +++ b/sys/arch/vax/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.13 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.14 2011/03/11 15:17:08 pirofti Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -24,8 +24,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _VAX_ENDIAN_H_ -#define _VAX_ENDIAN_H_ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ #ifdef __GNUC__ @@ -59,4 +59,4 @@ #define _BYTE_ORDER _LITTLE_ENDIAN #include -#endif /* _VAX_ENDIAN_H_ */ +#endif /* _MACHINE_ENDIAN_H_ */ -- cgit v1.2.3