# 1 "CHECK.c" #pragma GCC set_debug_pwd "/mnt/gmirror/ports/sysutils/heirloom/work/heirloom-070227/libcommon" # 1 "" # 1 "" # 1 "CHECK.c" # 24 "CHECK.c" # 1 "/usr/include/stdlib.h" 1 3 4 # 61 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 62 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/_types.h" 1 3 4 # 27 "/usr/include/_types.h" 3 4 # 1 "/usr/include/sys/_types.h" 1 3 4 # 27 "/usr/include/sys/_types.h" 3 4 # 1 "/usr/include/machine/_types.h" 1 3 4 # 28 "/usr/include/machine/_types.h" 3 4 # 1 "/usr/include/i386/_types.h" 1 3 4 # 31 "/usr/include/i386/_types.h" 3 4 typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef unsigned short __int16_t; typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; typedef long long __int64_t; typedef unsigned long long __uint64_t; typedef long __darwin_intptr_t; typedef unsigned int __darwin_natural_t; # 64 "/usr/include/i386/_types.h" 3 4 typedef int __darwin_ct_rune_t; typedef union { char __mbstate8[128]; long long _mbstateL; } __mbstate_t; typedef __mbstate_t __darwin_mbstate_t; typedef int __darwin_ptrdiff_t; typedef long unsigned int __darwin_size_t; typedef __builtin_va_list __darwin_va_list; typedef int __darwin_wchar_t; typedef __darwin_wchar_t __darwin_rune_t; typedef int __darwin_wint_t; typedef unsigned long __darwin_clock_t; typedef __uint32_t __darwin_socklen_t; typedef long __darwin_ssize_t; typedef long __darwin_time_t; # 29 "/usr/include/machine/_types.h" 2 3 4 # 28 "/usr/include/sys/_types.h" 2 3 4 struct mcontext; struct mcontext64; # 60 "/usr/include/sys/_types.h" 3 4 struct __darwin_pthread_handler_rec { void (*__routine)(void *); void *__arg; struct __darwin_pthread_handler_rec *__next; }; struct _opaque_pthread_attr_t { long __sig; char __opaque[36]; }; struct _opaque_pthread_cond_t { long __sig; char __opaque[24]; }; struct _opaque_pthread_condattr_t { long __sig; char __opaque[4]; }; struct _opaque_pthread_mutex_t { long __sig; char __opaque[40]; }; struct _opaque_pthread_mutexattr_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_once_t { long __sig; char __opaque[4]; }; struct _opaque_pthread_rwlock_t { long __sig; char __opaque[124]; }; struct _opaque_pthread_rwlockattr_t { long __sig; char __opaque[12]; }; struct _opaque_pthread_t { long __sig; struct __darwin_pthread_handler_rec *__cleanup_stack; char __opaque[596]; }; # 96 "/usr/include/sys/_types.h" 3 4 typedef __int64_t __darwin_blkcnt_t; typedef __int32_t __darwin_blksize_t; typedef __int32_t __darwin_dev_t; typedef unsigned int __darwin_fsblkcnt_t; typedef unsigned int __darwin_fsfilcnt_t; typedef __uint32_t __darwin_gid_t; typedef __uint32_t __darwin_id_t; typedef __uint32_t __darwin_ino_t; typedef __darwin_natural_t __darwin_mach_port_name_t; typedef __darwin_mach_port_name_t __darwin_mach_port_t; typedef struct mcontext *__darwin_mcontext_t; typedef struct mcontext64 *__darwin_mcontext64_t; typedef __uint16_t __darwin_mode_t; typedef __int64_t __darwin_off_t; typedef __int32_t __darwin_pid_t; typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t; typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t; typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t; typedef unsigned long __darwin_pthread_key_t; typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t; typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t; typedef struct _opaque_pthread_once_t __darwin_pthread_once_t; typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t; typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t; typedef struct _opaque_pthread_t *__darwin_pthread_t; typedef __uint32_t __darwin_sigset_t; typedef __int32_t __darwin_suseconds_t; typedef __uint32_t __darwin_uid_t; typedef __uint32_t __darwin_useconds_t; typedef unsigned char __darwin_uuid_t[16]; struct sigaltstack { void *ss_sp; __darwin_size_t ss_size; int ss_flags; }; typedef struct sigaltstack __darwin_stack_t; struct ucontext { int uc_onstack; __darwin_sigset_t uc_sigmask; __darwin_stack_t uc_stack; struct ucontext *uc_link; __darwin_size_t uc_mcsize; __darwin_mcontext_t uc_mcontext; }; typedef struct ucontext __darwin_ucontext_t; struct ucontext64 { int uc_onstack; __darwin_sigset_t uc_sigmask; __darwin_stack_t uc_stack; struct ucontext64 *uc_link; __darwin_size_t uc_mcsize; __darwin_mcontext64_t uc_mcontext64; }; typedef struct ucontext64 __darwin_ucontext64_t; # 28 "/usr/include/_types.h" 2 3 4 typedef int __darwin_nl_item; typedef int __darwin_wctrans_t; typedef unsigned long __darwin_wctype_t; # 63 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/sys/wait.h" 1 3 4 # 73 "/usr/include/sys/wait.h" 3 4 typedef enum { P_ALL, P_PID, P_PGID } idtype_t; typedef __darwin_pid_t pid_t; typedef __darwin_id_t id_t; # 110 "/usr/include/sys/wait.h" 3 4 # 1 "/usr/include/sys/signal.h" 1 3 4 # 67 "/usr/include/sys/signal.h" 3 4 # 1 "/usr/include/sys/appleapiopts.h" 1 3 4 # 68 "/usr/include/sys/signal.h" 2 3 4 # 1 "/usr/include/machine/signal.h" 1 3 4 # 29 "/usr/include/machine/signal.h" 3 4 # 1 "/usr/include/i386/signal.h" 1 3 4 # 31 "/usr/include/i386/signal.h" 3 4 typedef int sig_atomic_t; # 46 "/usr/include/i386/signal.h" 3 4 struct sigcontext { int sc_onstack; int sc_mask; unsigned int sc_eax; unsigned int sc_ebx; unsigned int sc_ecx; unsigned int sc_edx; unsigned int sc_edi; unsigned int sc_esi; unsigned int sc_ebp; unsigned int sc_esp; unsigned int sc_ss; unsigned int sc_eflags; unsigned int sc_eip; unsigned int sc_cs; unsigned int sc_ds; unsigned int sc_es; unsigned int sc_fs; unsigned int sc_gs; }; # 30 "/usr/include/machine/signal.h" 2 3 4 # 74 "/usr/include/sys/signal.h" 2 3 4 # 139 "/usr/include/sys/signal.h" 3 4 typedef __darwin_mcontext_t mcontext_t; typedef __darwin_mcontext64_t mcontext64_t; # 156 "/usr/include/sys/signal.h" 3 4 typedef __darwin_pthread_attr_t pthread_attr_t; typedef __darwin_sigset_t sigset_t; typedef __darwin_size_t size_t; typedef __darwin_ucontext_t ucontext_t; typedef __darwin_ucontext64_t ucontext64_t; typedef __darwin_uid_t uid_t; union sigval { int sival_int; void *sival_ptr; }; struct sigevent { int sigev_notify; int sigev_signo; union sigval sigev_value; void (*sigev_notify_function)(union sigval); pthread_attr_t *sigev_notify_attributes; }; typedef struct __siginfo { int si_signo; int si_errno; int si_code; pid_t si_pid; uid_t si_uid; int si_status; void *si_addr; union sigval si_value; long si_band; unsigned long pad[7]; } siginfo_t; # 297 "/usr/include/sys/signal.h" 3 4 union __sigaction_u { void (*__sa_handler)(int); void (*__sa_sigaction)(int, struct __siginfo *, void *); }; struct __sigaction { union __sigaction_u __sigaction_u; void (*sa_tramp)(void *, int, int, siginfo_t *, void *); sigset_t sa_mask; int sa_flags; }; struct sigaction { union __sigaction_u __sigaction_u; sigset_t sa_mask; int sa_flags; }; # 355 "/usr/include/sys/signal.h" 3 4 typedef void (*sig_t)(int); # 364 "/usr/include/sys/signal.h" 3 4 typedef __darwin_stack_t stack_t; # 377 "/usr/include/sys/signal.h" 3 4 struct sigvec { void (*sv_handler)(int); int sv_mask; int sv_flags; }; # 396 "/usr/include/sys/signal.h" 3 4 struct sigstack { char *ss_sp; int ss_onstack; }; # 418 "/usr/include/sys/signal.h" 3 4 void (*signal(int, void (*)(int)))(int); # 111 "/usr/include/sys/wait.h" 2 3 4 # 1 "/usr/include/sys/resource.h" 1 3 4 # 74 "/usr/include/sys/resource.h" 3 4 struct timeval { __darwin_time_t tv_sec; __darwin_suseconds_t tv_usec; }; # 90 "/usr/include/sys/resource.h" 3 4 typedef __int64_t rlim_t; # 135 "/usr/include/sys/resource.h" 3 4 struct rusage { struct timeval ru_utime; struct timeval ru_stime; # 146 "/usr/include/sys/resource.h" 3 4 long ru_maxrss; long ru_ixrss; long ru_idrss; long ru_isrss; long ru_minflt; long ru_majflt; long ru_nswap; long ru_inblock; long ru_oublock; long ru_msgsnd; long ru_msgrcv; long ru_nsignals; long ru_nvcsw; long ru_nivcsw; }; # 207 "/usr/include/sys/resource.h" 3 4 struct rlimit { rlim_t rlim_cur; rlim_t rlim_max; }; int getpriority(int, id_t); int getrlimit(int, struct rlimit *); int getrusage(int, struct rusage *); int setpriority(int, id_t, int); int setrlimit(int, const struct rlimit *); # 112 "/usr/include/sys/wait.h" 2 3 4 # 182 "/usr/include/sys/wait.h" 3 4 # 1 "/usr/include/machine/endian.h" 1 3 4 # 32 "/usr/include/machine/endian.h" 3 4 # 1 "/usr/include/i386/endian.h" 1 3 4 # 92 "/usr/include/i386/endian.h" 3 4 # 1 "/usr/include/sys/_endian.h" 1 3 4 # 103 "/usr/include/sys/_endian.h" 3 4 # 1 "/usr/local/include/stdint.h" 1 3 4 # 12 "/usr/local/include/stdint.h" 3 4 # 1 "/usr/include/stddef.h" 1 3 4 # 74 "/usr/include/stddef.h" 3 4 typedef __darwin_ptrdiff_t ptrdiff_t; # 91 "/usr/include/stddef.h" 3 4 typedef __darwin_wchar_t wchar_t; # 100 "/usr/include/stddef.h" 3 4 typedef __darwin_wint_t wint_t; # 13 "/usr/local/include/stdint.h" 2 3 4 # 110 "/usr/local/include/stdint.h" 3 4 typedef long long int64_t; typedef unsigned long long uint64_t; # 157 "/usr/local/include/stdint.h" 3 4 typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef char int8_t; typedef short int16_t; typedef int int32_t; # 221 "/usr/local/include/stdint.h" 3 4 typedef int8_t int_least8_t; typedef int16_t int_least16_t; typedef int32_t int_least32_t; typedef int64_t int_least64_t; typedef uint8_t uint_least8_t; typedef uint16_t uint_least16_t; typedef uint32_t uint_least32_t; typedef uint64_t uint_least64_t; typedef int8_t int_fast8_t; typedef int int_fast16_t; typedef int32_t int_fast32_t; typedef int64_t int_fast64_t; typedef uint8_t uint_fast8_t; typedef unsigned uint_fast16_t; typedef uint32_t uint_fast32_t; typedef uint64_t uint_fast64_t; typedef int64_t intmax_t; typedef uint64_t uintmax_t; # 272 "/usr/local/include/stdint.h" 3 4 typedef unsigned long uintptr_t; typedef long intptr_t; # 104 "/usr/include/sys/_endian.h" 2 3 4 # 1 "/usr/include/machine/byte_order.h" 1 3 4 # 29 "/usr/include/machine/byte_order.h" 3 4 # 1 "/usr/include/architecture/byte_order.h" 1 3 4 # 34 "/usr/include/architecture/byte_order.h" 3 4 # 1 "/usr/include/libkern/OSByteOrder.h" 1 3 4 # 37 "/usr/include/libkern/OSByteOrder.h" 3 4 # 1 "/usr/include/libkern/i386/OSByteOrder.h" 1 3 4 # 34 "/usr/include/libkern/i386/OSByteOrder.h" 3 4 static inline uint16_t _OSSwapInt16( uint16_t data ) { __asm__ ("xchgb %b0, %h0" : "+q" (data)); return data; } static inline uint32_t _OSSwapInt32( uint32_t data ) { __asm__ ("bswap %0" : "+r" (data)); return data; } static inline uint64_t _OSSwapInt64( uint64_t data ) { union { uint64_t ull; uint32_t ul[2]; } u; u.ul[0] = data >> 32; u.ul[1] = data & 0xffffffff; u.ul[0] = _OSSwapInt32(u.ul[0]); u.ul[1] = _OSSwapInt32(u.ul[1]); return u.ull; } static inline uint16_t OSReadSwapInt16( const volatile void * base, uintptr_t offset ) { uint16_t result; result = *(volatile uint16_t *)((uintptr_t)base + offset); return _OSSwapInt16(result); } static inline uint32_t OSReadSwapInt32( const volatile void * base, uintptr_t offset ) { uint32_t result; result = *(volatile uint32_t *)((uintptr_t)base + offset); return _OSSwapInt32(result); } static inline uint64_t OSReadSwapInt64( const volatile void * base, uintptr_t offset ) { const volatile uint32_t * inp; union ullc { uint64_t ull; uint32_t ul[2]; } outv; inp = (const volatile uint32_t *)((uintptr_t)base + offset); outv.ul[0] = inp[1]; outv.ul[1] = inp[0]; outv.ul[0] = _OSSwapInt32(outv.ul[0]); outv.ul[1] = _OSSwapInt32(outv.ul[1]); return outv.ull; } static inline void OSWriteSwapInt16( volatile void * base, uintptr_t offset, uint16_t data ) { *(volatile uint16_t *)((uintptr_t)base + offset) = _OSSwapInt16(data); } static inline void OSWriteSwapInt32( volatile void * base, uintptr_t offset, uint32_t data ) { *(volatile uint32_t *)((uintptr_t)base + offset) = _OSSwapInt32(data); } static inline void OSWriteSwapInt64( volatile void * base, uintptr_t offset, uint64_t data ) { *(volatile uint64_t *)((uintptr_t)base + offset) = _OSSwapInt64(data); } # 38 "/usr/include/libkern/OSByteOrder.h" 2 3 4 enum { OSUnknownByteOrder, OSLittleEndian, OSBigEndian }; static inline int32_t OSHostByteOrder(void) { return OSLittleEndian; } # 334 "/usr/include/libkern/OSByteOrder.h" 3 4 static inline uint16_t OSReadBigInt16( const volatile void * base, uintptr_t offset ) { return OSReadSwapInt16(base, offset); } static inline uint32_t OSReadBigInt32( const volatile void * base, uintptr_t offset ) { return OSReadSwapInt32(base, offset); } static inline uint64_t OSReadBigInt64( const volatile void * base, uintptr_t offset ) { return OSReadSwapInt64(base, offset); } static inline void OSWriteBigInt16( volatile void * base, uintptr_t offset, uint16_t data ) { OSWriteSwapInt16(base, offset, data); } static inline void OSWriteBigInt32( volatile void * base, uintptr_t offset, uint32_t data ) { OSWriteSwapInt32(base, offset, data); } static inline void OSWriteBigInt64( volatile void * base, uintptr_t offset, uint64_t data ) { OSWriteSwapInt64(base, offset, data); } static inline uint16_t OSReadLittleInt16( const volatile void * base, uintptr_t offset ) { return *(volatile uint16_t *)((uintptr_t)base + offset); } static inline uint32_t OSReadLittleInt32( const volatile void * base, uintptr_t offset ) { return *(volatile uint32_t *)((uintptr_t)base + offset); } static inline uint64_t OSReadLittleInt64( const volatile void * base, uintptr_t offset ) { return *(volatile uint64_t *)((uintptr_t)base + offset); } static inline void OSWriteLittleInt16( volatile void * base, uintptr_t offset, uint16_t data ) { *(volatile uint16_t *)((uintptr_t)base + offset) = data; } static inline void OSWriteLittleInt32( volatile void * base, uintptr_t offset, uint32_t data ) { *(volatile uint32_t *)((uintptr_t)base + offset) = data; } static inline void OSWriteLittleInt64( volatile void * base, uintptr_t offset, uint64_t data ) { *(volatile uint64_t *)((uintptr_t)base + offset) = data; } # 486 "/usr/include/libkern/OSByteOrder.h" 3 4 static inline uint16_t OSSwapHostToLittleInt16( uint16_t data ) { return data; } static inline uint32_t OSSwapHostToLittleInt32( uint32_t data ) { return data; } static inline uint64_t OSSwapHostToLittleInt64( uint64_t data ) { return data; } # 533 "/usr/include/libkern/OSByteOrder.h" 3 4 static inline uint16_t OSSwapLittleToHostInt16( uint16_t data ) { return data; } static inline uint32_t OSSwapLittleToHostInt32( uint32_t data ) { return data; } static inline uint64_t OSSwapLittleToHostInt64( uint64_t data ) { return data; } # 35 "/usr/include/architecture/byte_order.h" 2 3 4 typedef unsigned long NXSwappedFloat; typedef unsigned long long NXSwappedDouble; static __inline__ unsigned short NXSwapShort( unsigned short inv ) { return (unsigned short)(__builtin_constant_p((uint16_t)inv) ? ((((uint16_t)((uint16_t)inv) & 0xff00) >> 8) | (((uint16_t)((uint16_t)inv) & 0x00ff) << 8)) : _OSSwapInt16((uint16_t)inv)); } static __inline__ unsigned int NXSwapInt( unsigned int inv ) { return (unsigned int)(__builtin_constant_p((uint32_t)inv) ? ((((uint32_t)((uint32_t)inv) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)inv) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)inv) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)inv) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)inv)); } static __inline__ unsigned long NXSwapLong( unsigned long inv ) { return (unsigned long)(__builtin_constant_p((uint32_t)inv) ? ((((uint32_t)((uint32_t)inv) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)inv) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)inv) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)inv) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)inv)); } static __inline__ unsigned long long NXSwapLongLong( unsigned long long inv ) { return (unsigned long long)(__builtin_constant_p((uint64_t)inv) ? ((((uint64_t)((uint64_t)inv) & 0xff00000000000000ULL) >> 56) | (((uint64_t)((uint64_t)inv) & 0x00ff000000000000ULL) >> 40) | (((uint64_t)((uint64_t)inv) & 0x0000ff0000000000ULL) >> 24) | (((uint64_t)((uint64_t)inv) & 0x000000ff00000000ULL) >> 8) | (((uint64_t)((uint64_t)inv) & 0x00000000ff000000ULL) << 8) | (((uint64_t)((uint64_t)inv) & 0x0000000000ff0000ULL) << 24) | (((uint64_t)((uint64_t)inv) & 0x000000000000ff00ULL) << 40) | (((uint64_t)((uint64_t)inv) & 0x00000000000000ffULL) << 56)) : _OSSwapInt64((uint64_t)inv)); } static __inline__ NXSwappedFloat NXConvertHostFloatToSwapped(float x) { union fconv { float number; NXSwappedFloat sf; } u; u.number = x; return u.sf; } static __inline__ float NXConvertSwappedFloatToHost(NXSwappedFloat x) { union fconv { float number; NXSwappedFloat sf; } u; u.sf = x; return u.number; } static __inline__ NXSwappedDouble NXConvertHostDoubleToSwapped(double x) { union dconv { double number; NXSwappedDouble sd; } u; u.number = x; return u.sd; } static __inline__ double NXConvertSwappedDoubleToHost(NXSwappedDouble x) { union dconv { double number; NXSwappedDouble sd; } u; u.sd = x; return u.number; } static __inline__ NXSwappedFloat NXSwapFloat(NXSwappedFloat x) { return (NXSwappedFloat)(__builtin_constant_p((uint32_t)x) ? ((((uint32_t)((uint32_t)x) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)x) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)x) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)x) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)x)); } static __inline__ NXSwappedDouble NXSwapDouble(NXSwappedDouble x) { return (NXSwappedDouble)(__builtin_constant_p((uint64_t)x) ? ((((uint64_t)((uint64_t)x) & 0xff00000000000000ULL) >> 56) | (((uint64_t)((uint64_t)x) & 0x00ff000000000000ULL) >> 40) | (((uint64_t)((uint64_t)x) & 0x0000ff0000000000ULL) >> 24) | (((uint64_t)((uint64_t)x) & 0x000000ff00000000ULL) >> 8) | (((uint64_t)((uint64_t)x) & 0x00000000ff000000ULL) << 8) | (((uint64_t)((uint64_t)x) & 0x0000000000ff0000ULL) << 24) | (((uint64_t)((uint64_t)x) & 0x000000000000ff00ULL) << 40) | (((uint64_t)((uint64_t)x) & 0x00000000000000ffULL) << 56)) : _OSSwapInt64((uint64_t)x)); } enum NXByteOrder { NX_UnknownByteOrder, NX_LittleEndian, NX_BigEndian }; static __inline__ enum NXByteOrder NXHostByteOrder(void) { return NX_LittleEndian; } static __inline__ unsigned short NXSwapBigShortToHost( unsigned short x ) { return (unsigned short)(__builtin_constant_p((uint16_t)x) ? ((((uint16_t)((uint16_t)x) & 0xff00) >> 8) | (((uint16_t)((uint16_t)x) & 0x00ff) << 8)) : _OSSwapInt16((uint16_t)x)); } static __inline__ unsigned int NXSwapBigIntToHost( unsigned int x ) { return (unsigned int)(__builtin_constant_p((uint32_t)x) ? ((((uint32_t)((uint32_t)x) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)x) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)x) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)x) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)x)); } static __inline__ unsigned long NXSwapBigLongToHost( unsigned long x ) { return (unsigned long)(__builtin_constant_p((uint32_t)x) ? ((((uint32_t)((uint32_t)x) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)x) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)x) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)x) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)x)); } static __inline__ unsigned long long NXSwapBigLongLongToHost( unsigned long long x ) { return (unsigned long long)(__builtin_constant_p((uint64_t)x) ? ((((uint64_t)((uint64_t)x) & 0xff00000000000000ULL) >> 56) | (((uint64_t)((uint64_t)x) & 0x00ff000000000000ULL) >> 40) | (((uint64_t)((uint64_t)x) & 0x0000ff0000000000ULL) >> 24) | (((uint64_t)((uint64_t)x) & 0x000000ff00000000ULL) >> 8) | (((uint64_t)((uint64_t)x) & 0x00000000ff000000ULL) << 8) | (((uint64_t)((uint64_t)x) & 0x0000000000ff0000ULL) << 24) | (((uint64_t)((uint64_t)x) & 0x000000000000ff00ULL) << 40) | (((uint64_t)((uint64_t)x) & 0x00000000000000ffULL) << 56)) : _OSSwapInt64((uint64_t)x)); } static __inline__ double NXSwapBigDoubleToHost( NXSwappedDouble x ) { return NXConvertSwappedDoubleToHost((NXSwappedDouble)(__builtin_constant_p((uint64_t)x) ? ((((uint64_t)((uint64_t)x) & 0xff00000000000000ULL) >> 56) | (((uint64_t)((uint64_t)x) & 0x00ff000000000000ULL) >> 40) | (((uint64_t)((uint64_t)x) & 0x0000ff0000000000ULL) >> 24) | (((uint64_t)((uint64_t)x) & 0x000000ff00000000ULL) >> 8) | (((uint64_t)((uint64_t)x) & 0x00000000ff000000ULL) << 8) | (((uint64_t)((uint64_t)x) & 0x0000000000ff0000ULL) << 24) | (((uint64_t)((uint64_t)x) & 0x000000000000ff00ULL) << 40) | (((uint64_t)((uint64_t)x) & 0x00000000000000ffULL) << 56)) : _OSSwapInt64((uint64_t)x))); } static __inline__ float NXSwapBigFloatToHost( NXSwappedFloat x ) { return NXConvertSwappedFloatToHost((NXSwappedFloat)(__builtin_constant_p((uint32_t)x) ? ((((uint32_t)((uint32_t)x) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)x) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)x) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)x) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)x))); } static __inline__ unsigned short NXSwapHostShortToBig( unsigned short x ) { return (unsigned short)(__builtin_constant_p((uint16_t)x) ? ((((uint16_t)((uint16_t)x) & 0xff00) >> 8) | (((uint16_t)((uint16_t)x) & 0x00ff) << 8)) : _OSSwapInt16((uint16_t)x)); } static __inline__ unsigned int NXSwapHostIntToBig( unsigned int x ) { return (unsigned int)(__builtin_constant_p((uint32_t)x) ? ((((uint32_t)((uint32_t)x) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)x) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)x) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)x) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)x)); } static __inline__ unsigned long NXSwapHostLongToBig( unsigned long x ) { return (unsigned long)(__builtin_constant_p((uint32_t)x) ? ((((uint32_t)((uint32_t)x) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)x) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)x) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)x) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)x)); } static __inline__ unsigned long long NXSwapHostLongLongToBig( unsigned long long x ) { return (unsigned long long)(__builtin_constant_p((uint64_t)x) ? ((((uint64_t)((uint64_t)x) & 0xff00000000000000ULL) >> 56) | (((uint64_t)((uint64_t)x) & 0x00ff000000000000ULL) >> 40) | (((uint64_t)((uint64_t)x) & 0x0000ff0000000000ULL) >> 24) | (((uint64_t)((uint64_t)x) & 0x000000ff00000000ULL) >> 8) | (((uint64_t)((uint64_t)x) & 0x00000000ff000000ULL) << 8) | (((uint64_t)((uint64_t)x) & 0x0000000000ff0000ULL) << 24) | (((uint64_t)((uint64_t)x) & 0x000000000000ff00ULL) << 40) | (((uint64_t)((uint64_t)x) & 0x00000000000000ffULL) << 56)) : _OSSwapInt64((uint64_t)x)); } static __inline__ NXSwappedDouble NXSwapHostDoubleToBig( double x ) { return (NXSwappedDouble)(__builtin_constant_p((uint64_t)NXConvertHostDoubleToSwapped(x)) ? ((((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0xff00000000000000ULL) >> 56) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x00ff000000000000ULL) >> 40) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x0000ff0000000000ULL) >> 24) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x000000ff00000000ULL) >> 8) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x00000000ff000000ULL) << 8) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x0000000000ff0000ULL) << 24) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x000000000000ff00ULL) << 40) | (((uint64_t)((uint64_t)NXConvertHostDoubleToSwapped(x)) & 0x00000000000000ffULL) << 56)) : _OSSwapInt64((uint64_t)NXConvertHostDoubleToSwapped(x))); } static __inline__ NXSwappedFloat NXSwapHostFloatToBig( float x ) { return (NXSwappedFloat)(__builtin_constant_p((uint32_t)NXConvertHostFloatToSwapped(x)) ? ((((uint32_t)((uint32_t)NXConvertHostFloatToSwapped(x)) & 0xff000000) >> 24) | (((uint32_t)((uint32_t)NXConvertHostFloatToSwapped(x)) & 0x00ff0000) >> 8) | (((uint32_t)((uint32_t)NXConvertHostFloatToSwapped(x)) & 0x0000ff00) << 8) | (((uint32_t)((uint32_t)NXConvertHostFloatToSwapped(x)) & 0x000000ff) << 24)) : _OSSwapInt32((uint32_t)NXConvertHostFloatToSwapped(x))); } static __inline__ unsigned short NXSwapLittleShortToHost( unsigned short x ) { return (unsigned short)OSSwapLittleToHostInt16((uint16_t)x); } static __inline__ unsigned int NXSwapLittleIntToHost( unsigned int x ) { return (unsigned int)OSSwapLittleToHostInt32((uint32_t)x); } static __inline__ unsigned long NXSwapLittleLongToHost( unsigned long x ) { return (unsigned long)OSSwapLittleToHostInt32((uint32_t)x); } static __inline__ unsigned long long NXSwapLittleLongLongToHost( unsigned long long x ) { return (unsigned long long)OSSwapLittleToHostInt64((uint64_t)x); } static __inline__ double NXSwapLittleDoubleToHost( NXSwappedDouble x ) { return NXConvertSwappedDoubleToHost((NXSwappedDouble)OSSwapLittleToHostInt64((uint64_t)x)); } static __inline__ float NXSwapLittleFloatToHost( NXSwappedFloat x ) { return NXConvertSwappedFloatToHost((NXSwappedFloat)OSSwapLittleToHostInt32((uint32_t)x)); } static __inline__ unsigned short NXSwapHostShortToLittle( unsigned short x ) { return (unsigned short)OSSwapHostToLittleInt16((uint16_t)x); } static __inline__ unsigned int NXSwapHostIntToLittle( unsigned int x ) { return (unsigned int)OSSwapHostToLittleInt32((uint32_t)x); } static __inline__ unsigned long NXSwapHostLongToLittle( unsigned long x ) { return (unsigned long)OSSwapHostToLittleInt32((uint32_t)x); } static __inline__ unsigned long long NXSwapHostLongLongToLittle( unsigned long long x ) { return (unsigned long long)OSSwapHostToLittleInt64((uint64_t)x); } static __inline__ NXSwappedDouble NXSwapHostDoubleToLittle( double x ) { return (NXSwappedDouble)OSSwapHostToLittleInt64((uint64_t)NXConvertHostDoubleToSwapped(x)); } static __inline__ NXSwappedFloat NXSwapHostFloatToLittle( float x ) { return (NXSwappedFloat)OSSwapHostToLittleInt32((uint32_t)NXConvertHostFloatToSwapped(x)); } # 30 "/usr/include/machine/byte_order.h" 2 3 4 # 105 "/usr/include/sys/_endian.h" 2 3 4 uint16_t ntohs(uint16_t); uint16_t htons(uint16_t); uint32_t ntohl(uint32_t); uint32_t htonl(uint32_t); # 93 "/usr/include/i386/endian.h" 2 3 4 # 33 "/usr/include/machine/endian.h" 2 3 4 # 183 "/usr/include/sys/wait.h" 2 3 4 union wait { int w_status; struct { unsigned int w_Termsig:7, w_Coredump:1, w_Retcode:8, w_Filler:16; } w_T; struct { unsigned int w_Stopval:8, w_Stopsig:8, w_Filler:16; } w_S; }; # 240 "/usr/include/sys/wait.h" 3 4 pid_t wait(int *); pid_t waitpid(pid_t, int *, int); int waitid(idtype_t, id_t, siginfo_t *, int); pid_t wait3(int *, int, struct rusage *); pid_t wait4(pid_t, int *, int, struct rusage *); # 65 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/alloca.h" 1 3 4 # 35 "/usr/include/alloca.h" 3 4 void *alloca(size_t); # 67 "/usr/include/stdlib.h" 2 3 4 # 80 "/usr/include/stdlib.h" 3 4 typedef __darwin_ct_rune_t ct_rune_t; typedef __darwin_rune_t rune_t; # 96 "/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long quot; long rem; } ldiv_t; typedef struct { long long quot; long long rem; } lldiv_t; # 133 "/usr/include/stdlib.h" 3 4 extern int __mb_cur_max; # 143 "/usr/include/stdlib.h" 3 4 void abort(void) __attribute__((__noreturn__)); int abs(int) __attribute__((__const__)); int atexit(void (*)(void)); double atof(const char *); int atoi(const char *); long atol(const char *); long long atoll(const char *); void *bsearch(const void *, const void *, size_t, size_t, int (*)(const void *, const void *)); void *calloc(size_t, size_t); div_t div(int, int) __attribute__((__const__)); void exit(int) __attribute__((__noreturn__)); void free(void *); char *getenv(const char *); long labs(long) __attribute__((__const__)); ldiv_t ldiv(long, long) __attribute__((__const__)); long long llabs(long long); lldiv_t lldiv(long long, long long); void *malloc(size_t); int mblen(const char *, size_t); size_t mbstowcs(wchar_t * , const char * , size_t); int mbtowc(wchar_t * , const char * , size_t); void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); int rand(void); void *realloc(void *, size_t); void srand(unsigned); double strtod(const char *, char **); float strtof(const char *, char **); long strtol(const char *, char **, int); long double strtold(const char *, char **) ; long long strtoll(const char *, char **, int); unsigned long strtoul(const char *, char **, int); unsigned long long strtoull(const char *, char **, int); int system(const char *); size_t wcstombs(char * , const wchar_t * , size_t); int wctomb(char *, wchar_t); void _Exit(int) __attribute__((__noreturn__)); long a64l(const char *); double drand48(void); char *ecvt(double, int, int *, int *); double erand48(unsigned short[3]); char *fcvt(double, int, int *, int *); char *gcvt(double, int, char *); int getsubopt(char **, char * const *, char **); int grantpt(int); char *initstate(unsigned long, char *, long); long jrand48(unsigned short[3]); char *l64a(long); void lcong48(unsigned short[7]); long lrand48(void); char *mktemp(char *); int mkstemp(char *); long mrand48(void); long nrand48(unsigned short[3]); int posix_openpt(int); char *ptsname(int); int putenv(char *) ; long random(void); char *realpath(const char *, char *resolved_path); unsigned short *seed48(unsigned short[3]); int setenv(const char *, const char *, int) ; int setkey(const char *); char *setstate(const char *); void srand48(long); void srandom(unsigned long); int unlockpt(int); void unsetenv(const char *); # 1 "/usr/include/machine/types.h" 1 3 4 # 32 "/usr/include/machine/types.h" 3 4 # 1 "/usr/include/i386/types.h" 1 3 4 # 76 "/usr/include/i386/types.h" 3 4 typedef unsigned char u_int8_t; typedef short int16_t; typedef unsigned short u_int16_t; typedef int int32_t; typedef unsigned int u_int32_t; typedef long long int64_t; typedef unsigned long long u_int64_t; typedef int32_t register_t; typedef __darwin_intptr_t intptr_t; typedef unsigned long int uintptr_t; typedef u_int32_t user_addr_t; typedef u_int32_t user_size_t; typedef int32_t user_ssize_t; typedef int32_t user_long_t; typedef u_int32_t user_ulong_t; typedef int32_t user_time_t; # 33 "/usr/include/machine/types.h" 2 3 4 # 249 "/usr/include/stdlib.h" 2 3 4 typedef __darwin_dev_t dev_t; typedef __darwin_mode_t mode_t; u_int32_t arc4random(void); void arc4random_addrandom(unsigned char *dat, int datlen); void arc4random_stir(void); char *cgetcap(char *, const char *, int); int cgetclose(void); int cgetent(char **, char **, const char *); int cgetfirst(char **, char **); int cgetmatch(const char *, const char *); int cgetnext(char **, char **); int cgetnum(char *, const char *, long *); int cgetset(const char *); int cgetstr(char *, const char *, char **); int cgetustr(char *, const char *, char **); int daemon(int, int); char *devname(dev_t, mode_t); char *devname_r(dev_t, mode_t, char *buf, int len); char *getbsize(int *, long *); int getloadavg(double [], int); const char *getprogname(void); int heapsort(void *, size_t, size_t, int (*)(const void *, const void *)); int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); void qsort_r(void *, size_t, size_t, void *, int (*)(void *, const void *, const void *)); int radixsort(const unsigned char **, int, const unsigned char *, unsigned); void setprogname(const char *); int sradixsort(const unsigned char **, int, const unsigned char *, unsigned); void sranddev(void); void srandomdev(void); int rand_r(unsigned *); void *reallocf(void *, size_t); long long strtoq(const char *, char **, int); unsigned long long strtouq(const char *, char **, int); extern char *suboptarg; void *valloc(size_t); # 25 "CHECK.c" 2 # 77 "CHECK.c" int alloca_h = 1; int malloc_h = 1; int utmpx_h = 1;