diff options
author | Bruce Korb <korbb@gcc.gnu.org> | 2000-07-19 14:18:31 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2000-07-19 14:18:31 +0000 |
commit | 4e62ab0ba341f401cf1afb66fe81191a456d520c (patch) | |
tree | f41ad3f2de03277bbbd703a652e516b76d47d851 /gcc/fixinc/tests/base/sys | |
parent | e02ecf39cb7be7329db65c450cafba75e7c2ec84 (diff) | |
download | gcc-4e62ab0ba341f401cf1afb66fe81191a456d520c.zip gcc-4e62ab0ba341f401cf1afb66fe81191a456d520c.tar.gz gcc-4e62ab0ba341f401cf1afb66fe81191a456d520c.tar.bz2 |
Newly modified test results
From-SVN: r35134
Diffstat (limited to 'gcc/fixinc/tests/base/sys')
-rw-r--r-- | gcc/fixinc/tests/base/sys/asm.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/byteorder.h | 152 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/file.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/ioctl.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/limits.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/mman.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/param.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/signal.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/spinlock.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/stat.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/time.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/times.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/types.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/utsname.h | 9 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/sys/wait.h | 9 |
15 files changed, 278 insertions, 0 deletions
diff --git a/gcc/fixinc/tests/base/sys/asm.h b/gcc/fixinc/tests/base/sys/asm.h index 7d940fb..658830a 100644 --- a/gcc/fixinc/tests/base/sys/asm.h +++ b/gcc/fixinc/tests/base/sys/asm.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/asm.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( IRIX_ASM_APOSTROPHE_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/byteorder.h b/gcc/fixinc/tests/base/sys/byteorder.h new file mode 100644 index 0000000..46ca752 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/byteorder.h @@ -0,0 +1,152 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/byteorder.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + +#ifndef _SYS_BYTEORDER_H +#define _SYS_BYTEORDER_H + +/* Functions to convert `short' and `long' quantities from host byte order + to (internet) network byte order (i.e. big-endian). + + Written by Ron Guilmette (rfg@ncd.com). + + This isn't actually used by GCC. It is installed by fixinc.svr4. + + For big-endian machines these functions are essentially no-ops. + + For little-endian machines, we define the functions using specialized + asm sequences in cases where doing so yields better code (e.g. i386). */ + +#if !defined (__GNUC__) && !defined (__GNUG__) +#error You lose! This file is only useful with GNU compilers. +#endif + +#ifndef __BYTE_ORDER__ +/* Byte order defines. These are as defined on UnixWare 1.1, but with + double underscores added at the front and back. */ +#define __LITTLE_ENDIAN__ 1234 +#define __BIG_ENDIAN__ 4321 +#define __PDP_ENDIAN__ 3412 +#endif + +#ifdef __STDC__ +static __inline__ unsigned long htonl (unsigned long); +static __inline__ unsigned short htons (unsigned int); +static __inline__ unsigned long ntohl (unsigned long); +static __inline__ unsigned short ntohs (unsigned int); +#endif /* defined (__STDC__) */ + +#if defined (__i386__) + +#ifndef __BYTE_ORDER__ +#define __BYTE_ORDER__ __LITTLE_ENDIAN__ +#endif + +/* Convert a host long to a network long. */ + +/* We must use a new-style function definition, so that this will also + be valid for C++. */ +static __inline__ unsigned long +htonl (unsigned long __arg) +{ + register unsigned long __result; + + __asm__ ("xchg%B0 %b0,%h0 + ror%L0 $16,%0 + xchg%B0 %b0,%h0" : "=q" (__result) : "0" (__arg)); + return __result; +} + +/* Convert a host short to a network short. */ + +static __inline__ unsigned short +htons (unsigned int __arg) +{ + register unsigned short __result; + + __asm__ ("xchg%B0 %b0,%h0" : "=q" (__result) : "0" (__arg)); + return __result; +} + +#elif ((defined (__i860__) && !defined (__i860_big_endian__)) \ + || defined (__ns32k__) || defined (__vax__) \ + || defined (__spur__) || defined (__arm__)) + +#ifndef __BYTE_ORDER__ +#define __BYTE_ORDER__ __LITTLE_ENDIAN__ +#endif + +/* For other little-endian machines, using C code is just as efficient as + using assembly code. */ + +/* Convert a host long to a network long. */ + +static __inline__ unsigned long +htonl (unsigned long __arg) +{ + register unsigned long __result; + + __result = (__arg >> 24) & 0x000000ff; + __result |= (__arg >> 8) & 0x0000ff00; + __result |= (__arg << 8) & 0x00ff0000; + __result |= (__arg << 24) & 0xff000000; + return __result; +} + +/* Convert a host short to a network short. */ + +static __inline__ unsigned short +htons (unsigned int __arg) +{ + register unsigned short __result; + + __result = (__arg << 8) & 0xff00; + __result |= (__arg >> 8) & 0x00ff; + return __result; +} + +#else /* must be a big-endian machine */ + +#ifndef __BYTE_ORDER__ +#define __BYTE_ORDER__ __BIG_ENDIAN__ +#endif + +/* Convert a host long to a network long. */ + +static __inline__ unsigned long +htonl (unsigned long __arg) +{ + return __arg; +} + +/* Convert a host short to a network short. */ + +static __inline__ unsigned short +htons (unsigned int __arg) +{ + return __arg; +} + +#endif /* big-endian */ + +/* Convert a network long to a host long. */ + +static __inline__ unsigned long +ntohl (unsigned long __arg) +{ + return htonl (__arg); +} + +/* Convert a network short to a host short. */ + +static __inline__ unsigned short +ntohs (unsigned int __arg) +{ + return htons (__arg); +} +#endif diff --git a/gcc/fixinc/tests/base/sys/file.h b/gcc/fixinc/tests/base/sys/file.h index 9fb5765..c5016a4 100644 --- a/gcc/fixinc/tests/base/sys/file.h +++ b/gcc/fixinc/tests/base/sys/file.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/file.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( HP_SYSFILE_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/ioctl.h b/gcc/fixinc/tests/base/sys/ioctl.h index 86d3418..8e260a5 100644 --- a/gcc/fixinc/tests/base/sys/ioctl.h +++ b/gcc/fixinc/tests/base/sys/ioctl.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/ioctl.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( ULTRIX_NESTED_IOCTL_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/limits.h b/gcc/fixinc/tests/base/sys/limits.h index af0c840..cd8ba2a 100644 --- a/gcc/fixinc/tests/base/sys/limits.h +++ b/gcc/fixinc/tests/base/sys/limits.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/limits.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( LIMITS_IFNDEFS_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/mman.h b/gcc/fixinc/tests/base/sys/mman.h index 16403a0..90b10f4 100644 --- a/gcc/fixinc/tests/base/sys/mman.h +++ b/gcc/fixinc/tests/base/sys/mman.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/mman.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #ifndef FIXINC_CXX_UNREADY_CHECK #define FIXINC_CXX_UNREADY_CHECK 1 diff --git a/gcc/fixinc/tests/base/sys/param.h b/gcc/fixinc/tests/base/sys/param.h index c252d24..e0c839b 100644 --- a/gcc/fixinc/tests/base/sys/param.h +++ b/gcc/fixinc/tests/base/sys/param.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/param.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( AUX_ASM_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/signal.h b/gcc/fixinc/tests/base/sys/signal.h index e0eab7a..9e4fdb8 100644 --- a/gcc/fixinc/tests/base/sys/signal.h +++ b/gcc/fixinc/tests/base/sys/signal.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/signal.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( AIX_VOLATILE_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/spinlock.h b/gcc/fixinc/tests/base/sys/spinlock.h index 8194224..a25f650 100644 --- a/gcc/fixinc/tests/base/sys/spinlock.h +++ b/gcc/fixinc/tests/base/sys/spinlock.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/spinlock.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( HP_INLINE_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/stat.h b/gcc/fixinc/tests/base/sys/stat.h index 1315de0..46a4623 100644 --- a/gcc/fixinc/tests/base/sys/stat.h +++ b/gcc/fixinc/tests/base/sys/stat.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/stat.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( M88K_BAD_S_IF_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/time.h b/gcc/fixinc/tests/base/sys/time.h index 86a7340..931f424 100644 --- a/gcc/fixinc/tests/base/sys/time.h +++ b/gcc/fixinc/tests/base/sys/time.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/time.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( HPUX_SYSTIME_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/times.h b/gcc/fixinc/tests/base/sys/times.h index bb3f6ef..2de7d78 100644 --- a/gcc/fixinc/tests/base/sys/times.h +++ b/gcc/fixinc/tests/base/sys/times.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/times.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( SCO_UTIME_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/types.h b/gcc/fixinc/tests/base/sys/types.h index bcbea56..fd78b01 100644 --- a/gcc/fixinc/tests/base/sys/types.h +++ b/gcc/fixinc/tests/base/sys/types.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/types.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( GNU_TYPES_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/utsname.h b/gcc/fixinc/tests/base/sys/utsname.h index 2fd2f20..5f06415 100644 --- a/gcc/fixinc/tests/base/sys/utsname.h +++ b/gcc/fixinc/tests/base/sys/utsname.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/utsname.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( ULTRIX_FIX_FIXPROTO_CHECK ) diff --git a/gcc/fixinc/tests/base/sys/wait.h b/gcc/fixinc/tests/base/sys/wait.h index feb4414..c0edf05 100644 --- a/gcc/fixinc/tests/base/sys/wait.h +++ b/gcc/fixinc/tests/base/sys/wait.h @@ -1,3 +1,12 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/wait.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + #if defined( AIX_SYSWAIT_CHECK ) |