# 1 "grbTest.cpp" # 1 "../../lib/sysfuncs.h" 1 # 1 "/usr/local/include/sys/stat.h" 1 3 # 1 "/usr/local/include/features.h" 1 3 # 137 "/usr/local/include/features.h" 3 # 165 "/usr/local/include/features.h" 3 # 195 "/usr/local/include/features.h" 3 # 1 "/usr/local/include/sys/cdefs.h" 1 3 # 47 "/usr/local/include/sys/cdefs.h" 3 # 69 "/usr/local/include/sys/cdefs.h" 3 # 103 "/usr/local/include/sys/cdefs.h" 3 # 138 "/usr/local/include/sys/cdefs.h" 3 # 249 "/usr/local/include/features.h" 2 3 # 1 "/usr/local/include/gnu/stubs.h" 1 3 # 277 "/usr/local/include/features.h" 2 3 # 26 "/usr/local/include/sys/stat.h" 2 3 # 1 "/usr/local/include/bits/types.h" 1 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 typedef unsigned int size_t; # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 29 "/usr/local/include/bits/types.h" 2 3 typedef unsigned char __u_char; typedef unsigned short __u_short; typedef unsigned int __u_int; typedef unsigned long __u_long; typedef struct { long int __val[2]; } __quad_t; typedef struct { __u_long __val[2]; } __u_quad_t; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; typedef __quad_t *__qaddr_t; typedef __u_quad_t __dev_t; typedef __u_int __uid_t; typedef __u_int __gid_t; typedef __u_long __ino_t; typedef __u_int __mode_t; typedef __u_int __nlink_t; typedef long int __off_t; typedef __quad_t __loff_t; typedef int __pid_t; typedef int __ssize_t; typedef long int __rlim_t; typedef __quad_t __rlim64_t; typedef __u_int __id_t; typedef struct { int __val[2]; } __fsid_t; typedef int __daddr_t; typedef char *__caddr_t; typedef long int __time_t; typedef long int __swblk_t; typedef long int __clock_t; typedef unsigned long int __fd_mask; typedef struct { __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask)) ]; } __fd_set; typedef int __key_t; typedef unsigned short int __ipc_pid_t; typedef long int __blkcnt_t; typedef __quad_t __blkcnt64_t; typedef __u_long __fsblkcnt_t; typedef __u_quad_t __fsblkcnt64_t; typedef __u_long __fsfilcnt_t; typedef __u_quad_t __fsfilcnt64_t; typedef __u_long __ino64_t; typedef __loff_t __off64_t; typedef int __t_scalar_t; typedef unsigned int __t_uscalar_t; typedef int __intptr_t; # 28 "/usr/local/include/sys/stat.h" 2 3 # 78 "/usr/local/include/sys/stat.h" 3 extern "C" { # 1 "/usr/local/include/bits/stat.h" 1 3 struct stat { __dev_t st_dev; unsigned short int __pad1; __ino_t st_ino; __mode_t st_mode; __nlink_t st_nlink; __uid_t st_uid; __gid_t st_gid; __dev_t st_rdev; unsigned short int __pad2; __off_t st_size; unsigned long int st_blksize; __blkcnt_t st_blocks; __time_t st_atime; unsigned long int __unused1; __time_t st_mtime; unsigned long int __unused2; __time_t st_ctime; unsigned long int __unused3; unsigned long int __unused4; unsigned long int __unused5; }; # 99 "/usr/local/include/bits/stat.h" 3 # 89 "/usr/local/include/sys/stat.h" 2 3 # 108 "/usr/local/include/sys/stat.h" 3 # 131 "/usr/local/include/sys/stat.h" 3 extern int stat (const char *__file, struct stat *__buf) ; extern int fstat (int __fd, struct stat *__buf) ; # 195 "/usr/local/include/sys/stat.h" 3 # 217 "/usr/local/include/sys/stat.h" 3 extern int chmod (const char *__file, __mode_t __mode) ; extern __mode_t umask (__mode_t __mask) ; extern int mkdir (const char *__path, __mode_t __mode) ; extern int mkfifo (const char *__path, __mode_t __mode) ; extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) ; extern int __xstat (int __ver, const char *__filename, struct stat *__stat_buf) ; extern int __lxstat (int __ver, const char *__filename, struct stat *__stat_buf) ; # 299 "/usr/local/include/sys/stat.h" 3 extern int __xmknod (int __ver, const char *__path, __mode_t __mode, __dev_t *__dev) ; # 363 "/usr/local/include/sys/stat.h" 3 } # 28 "../../lib/sysfuncs.h" 2 # 1 "../../config.h" 1 # 35 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/alloca.h" 1 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 25 "/usr/local/include/alloca.h" 2 3 extern "C" { extern void * alloca (size_t __size) ; } # 45 "../../lib/sysfuncs.h" 2 # 54 "../../lib/sysfuncs.h" # 1 "/usr/local/include/sys/types.h" 1 3 extern "C" { # 40 "/usr/local/include/sys/types.h" 3 typedef __loff_t loff_t; typedef __ino_t ino_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __pid_t pid_t; typedef __ssize_t ssize_t; # 1 "/usr/local/include/time.h" 1 3 # 51 "/usr/local/include/time.h" 3 # 62 "/usr/local/include/time.h" 3 typedef __time_t time_t; # 89 "/usr/local/include/time.h" 3 # 279 "/usr/local/include/time.h" 3 # 121 "/usr/local/include/sys/types.h" 2 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 124 "/usr/local/include/sys/types.h" 2 3 typedef char int8_t; typedef short int int16_t; typedef int int32_t; typedef unsigned char u_int8_t; typedef unsigned short int u_int16_t; typedef unsigned int u_int32_t; typedef int register_t; # 184 "/usr/local/include/sys/types.h" 3 # 197 "/usr/local/include/sys/types.h" 3 typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; } # 57 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/stdlib.h" 1 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 33 "/usr/local/include/stdlib.h" 2 3 extern "C" { typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; # 65 "/usr/local/include/stdlib.h" 3 extern size_t __ctype_get_mb_cur_max (void) ; extern double atof (const char *__nptr) ; extern int atoi (const char *__nptr) ; extern long int atol (const char *__nptr) ; extern double strtod (const char * __nptr, char ** __endptr) ; extern long int strtol (const char * __nptr, char ** __endptr, int __base) ; extern unsigned long int strtoul (const char * __nptr, char ** __endptr, int __base) ; # 126 "/usr/local/include/stdlib.h" 3 # 140 "/usr/local/include/stdlib.h" 3 # 190 "/usr/local/include/stdlib.h" 3 extern double __strtod_internal (const char * __nptr, char ** __endptr, int __group) ; extern float __strtof_internal (const char * __nptr, char ** __endptr, int __group) ; extern long double __strtold_internal (const char * __nptr, char ** __endptr, int __group) ; extern long int __strtol_internal (const char * __nptr, char ** __endptr, int __base, int __group) ; extern unsigned long int __strtoul_internal (const char * __nptr, char ** __endptr, int __base, int __group) ; # 236 "/usr/local/include/stdlib.h" 3 # 326 "/usr/local/include/stdlib.h" 3 # 392 "/usr/local/include/stdlib.h" 3 extern int rand (void) ; extern void srand (unsigned int __seed) ; # 467 "/usr/local/include/stdlib.h" 3 extern void * malloc (size_t __size) ; extern void * calloc (size_t __nmemb, size_t __size) ; extern void * realloc (void * __ptr, size_t __size) ; extern void free (void * __ptr) ; extern void abort (void) ; extern int atexit (void (*__func) (void)) ; extern void exit (int __status) ; extern char *getenv (const char *__name) ; extern char *__secure_getenv (const char *__name) ; # 551 "/usr/local/include/stdlib.h" 3 # 574 "/usr/local/include/stdlib.h" 3 extern int system (const char *__command) ; # 597 "/usr/local/include/stdlib.h" 3 typedef int (*__compar_fn_t) (const void * , const void * ) ; extern void * bsearch (const void * __key, const void * __base, size_t __nmemb, size_t __size, __compar_fn_t __compar) ; extern void qsort (void * __base, size_t __nmemb, size_t __size, __compar_fn_t __compar) ; extern int abs (int __x) ; extern long int labs (long int __x) ; extern div_t div (int __numer, int __denom) ; extern ldiv_t ldiv (long int __numer, long int __denom) ; # 690 "/usr/local/include/stdlib.h" 3 extern int mblen (const char *__s, size_t __n) ; extern int mbtowc (wchar_t * __pwc, const char * __s, size_t __n) ; extern int wctomb (char *__s, wchar_t __wchar) ; extern size_t mbstowcs (wchar_t * __pwcs, const char * __s, size_t __n) ; extern size_t wcstombs (char * __s, const wchar_t * __pwcs, size_t __n) ; # 732 "/usr/local/include/stdlib.h" 3 # 756 "/usr/local/include/stdlib.h" 3 # 766 "/usr/local/include/stdlib.h" 3 } # 63 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/math.h" 1 3 extern "C" { # 1 "/usr/local/include/bits/huge_val.h" 1 3 static union { unsigned char __c[8]; double __d; } __huge_val = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; # 68 "/usr/local/include/bits/huge_val.h" 3 # 33 "/usr/local/include/math.h" 2 3 # 1 "/usr/local/include/bits/mathdef.h" 1 3 # 45 "/usr/local/include/bits/mathdef.h" 3 # 40 "/usr/local/include/math.h" 2 3 # 1 "/usr/local/include/bits/mathcalls.h" 1 3 extern double acos (double __x) ; extern double __acos (double __x) ; extern double asin (double __x) ; extern double __asin (double __x) ; extern double atan (double __x) ; extern double __atan (double __x) ; extern double atan2 (double __y, double __x) ; extern double __atan2 (double __y, double __x) ; extern double cos (double __x) ; extern double __cos (double __x) ; extern double sin (double __x) ; extern double __sin (double __x) ; extern double tan (double __x) ; extern double __tan (double __x) ; extern double cosh (double __x) ; extern double __cosh (double __x) ; extern double sinh (double __x) ; extern double __sinh (double __x) ; extern double tanh (double __x) ; extern double __tanh (double __x) ; extern double exp (double __x) ; extern double __exp (double __x) ; extern double frexp (double __x, int *__exponent) ; extern double __frexp (double __x, int *__exponent) ; extern double ldexp (double __x, int __exponent) ; extern double __ldexp (double __x, int __exponent) ; extern double log (double __x) ; extern double __log (double __x) ; extern double log10 (double __x) ; extern double __log10 (double __x) ; extern double modf (double __x, double *__iptr) ; extern double __modf (double __x, double *__iptr) ; # 129 "/usr/local/include/bits/mathcalls.h" 3 extern double pow (double __x, double __y) ; extern double __pow (double __x, double __y) ; extern double sqrt (double __x) ; extern double __sqrt (double __x) ; extern double ceil (double __x) ; extern double __ceil (double __x) ; extern double fabs (double __x) ; extern double __fabs (double __x) ; extern double floor (double __x) ; extern double __floor (double __x) ; extern double fmod (double __x, double __y) ; extern double __fmod (double __x, double __y) ; extern int __isinf (double __value) ; # 200 "/usr/local/include/bits/mathcalls.h" 3 # 224 "/usr/local/include/bits/mathcalls.h" 3 # 272 "/usr/local/include/bits/mathcalls.h" 3 # 330 "/usr/local/include/bits/mathcalls.h" 3 # 63 "/usr/local/include/math.h" 2 3 # 105 "/usr/local/include/math.h" 3 # 232 "/usr/local/include/math.h" 3 # 249 "/usr/local/include/math.h" 3 # 291 "/usr/local/include/math.h" 3 # 317 "/usr/local/include/math.h" 3 # 336 "/usr/local/include/math.h" 3 # 407 "/usr/local/include/math.h" 3 } # 64 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/assert.h" 1 3 # 32 "/usr/local/include/assert.h" 3 # 56 "/usr/local/include/assert.h" 3 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) ; extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) ; } # 85 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/ctype.h" 1 3 extern "C" { # 1 "/usr/local/include/endian.h" 1 3 # 1 "/usr/local/include/bits/endian.h" 1 3 # 35 "/usr/local/include/endian.h" 2 3 # 40 "/usr/local/include/ctype.h" 2 3 enum { _ISupper = (( 0 ) < 8 ? ((1 << ( 0 )) << 8) : ((1 << ( 0 )) >> 8)) , _ISlower = (( 1 ) < 8 ? ((1 << ( 1 )) << 8) : ((1 << ( 1 )) >> 8)) , _ISalpha = (( 2 ) < 8 ? ((1 << ( 2 )) << 8) : ((1 << ( 2 )) >> 8)) , _ISdigit = (( 3 ) < 8 ? ((1 << ( 3 )) << 8) : ((1 << ( 3 )) >> 8)) , _ISxdigit = (( 4 ) < 8 ? ((1 << ( 4 )) << 8) : ((1 << ( 4 )) >> 8)) , _ISspace = (( 5 ) < 8 ? ((1 << ( 5 )) << 8) : ((1 << ( 5 )) >> 8)) , _ISprint = (( 6 ) < 8 ? ((1 << ( 6 )) << 8) : ((1 << ( 6 )) >> 8)) , _ISgraph = (( 7 ) < 8 ? ((1 << ( 7 )) << 8) : ((1 << ( 7 )) >> 8)) , _ISblank = (( 8 ) < 8 ? ((1 << ( 8 )) << 8) : ((1 << ( 8 )) >> 8)) , _IScntrl = (( 9 ) < 8 ? ((1 << ( 9 )) << 8) : ((1 << ( 9 )) >> 8)) , _ISpunct = (( 10 ) < 8 ? ((1 << ( 10 )) << 8) : ((1 << ( 10 )) >> 8)) , _ISalnum = (( 11 ) < 8 ? ((1 << ( 11 )) << 8) : ((1 << ( 11 )) >> 8)) }; extern const unsigned short int *__ctype_b; extern const __int32_t *__ctype_tolower; extern const __int32_t *__ctype_toupper; extern int isalnum (int) ; extern int isalpha (int) ; extern int iscntrl (int) ; extern int isdigit (int) ; extern int islower (int) ; extern int isgraph (int) ; extern int isprint (int) ; extern int ispunct (int) ; extern int isspace (int) ; extern int isupper (int) ; extern int isxdigit (int) ; extern int tolower (int __c) ; extern int toupper (int __c) ; # 125 "/usr/local/include/ctype.h" 3 # 164 "/usr/local/include/ctype.h" 3 # 186 "/usr/local/include/ctype.h" 3 # 273 "/usr/local/include/ctype.h" 3 } # 98 "../../lib/sysfuncs.h" 2 # 112 "../../lib/sysfuncs.h" # 1 "/usr/local/include/string.h" 1 3 extern "C" { # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 33 "/usr/local/include/string.h" 2 3 extern void * memcpy (void * __dest, const void * __src, size_t __n) ; extern void * memmove (void * __dest, const void * __src, size_t __n) ; extern void * memset (void * __s, int __c, size_t __n) ; extern int memcmp (const void * __s1, const void * __s2, size_t __n) ; extern void * memchr (const void * __s, int __c, size_t __n) ; extern char *strcpy (char * __dest, const char * __src) ; extern char *strncpy (char * __dest, const char * __src, size_t __n) ; extern char *strcat (char * __dest, const char * __src) ; extern char *strncat (char * __dest, const char * __src, size_t __n) ; extern int strcmp (const char *__s1, const char *__s2) ; extern int strncmp (const char *__s1, const char *__s2, size_t __n) ; extern int strcoll (const char *__s1, const char *__s2) ; extern size_t strxfrm (char * __dest, const char * __src, size_t __n) ; # 107 "/usr/local/include/string.h" 3 # 143 "/usr/local/include/string.h" 3 extern char *strchr (const char *__s, int __c) ; extern char *strrchr (const char *__s, int __c) ; extern size_t strcspn (const char *__s, const char *__reject) ; extern size_t strspn (const char *__s, const char *__accept) ; extern char *strpbrk (const char *__s, const char *__accept) ; extern char *strstr (const char *__haystack, const char *__needle) ; extern char *strtok (char * __s, const char * __delim) ; extern char *__strtok_r (char * __s, const char * __delim, char ** __save_ptr) ; # 203 "/usr/local/include/string.h" 3 extern size_t strlen (const char *__s) ; extern char *strerror (int __errnum) ; extern void __bzero (void * __s, size_t __n) ; # 267 "/usr/local/include/string.h" 3 # 277 "/usr/local/include/string.h" 3 # 319 "/usr/local/include/string.h" 3 # 348 "/usr/local/include/string.h" 3 } # 122 "../../lib/sysfuncs.h" 2 inline void *bcopy(void *s, void *d, int n) { return memcpy(d, s, n); } inline int bcmp(void *s1, void *s2, int n) { return memcmp(s1, s2, n); } inline void bzero(void *m, int n) { memset(m, 0, n); } # 164 "../../lib/sysfuncs.h" # 1 "/usr/local/include/errno.h" 1 3 extern "C" { # 1 "/usr/local/include/bits/errno.h" 1 3 # 1 "/usr/include/linux/errno.h" 1 3 # 1 "/usr/include/asm/errno.h" 1 3 # 4 "/usr/include/linux/errno.h" 2 3 # 14 "/usr/include/linux/errno.h" 3 # 25 "/usr/local/include/bits/errno.h" 2 3 extern int errno; extern int *__errno_location (void) ; # 36 "/usr/local/include/errno.h" 2 3 } # 175 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/fcntl.h" 1 3 extern "C" { # 1 "/usr/local/include/bits/fcntl.h" 1 3 struct flock { short int l_type; short int l_whence; __off_t l_start; __off_t l_len; __pid_t l_pid; }; # 131 "/usr/local/include/bits/fcntl.h" 3 # 33 "/usr/local/include/fcntl.h" 2 3 # 49 "/usr/local/include/fcntl.h" 3 extern int __fcntl (int __fd, int __cmd, ...) ; extern int fcntl (int __fd, int __cmd, ...) ; extern int __open (const char *__file, int __oflag, ...) ; extern int open (const char *__file, int __oflag, ...) ; extern int creat (const char *__file, __mode_t __mode) ; # 126 "/usr/local/include/fcntl.h" 3 } # 183 "../../lib/sysfuncs.h" 2 # 217 "../../lib/sysfuncs.h" # 1 "/usr/local/include/sys/param.h" 1 3 # 1 "/usr/local/include/limits.h" 1 3 # 23 "/usr/local/include/sys/param.h" 2 3 # 1 "/usr/include/linux/limits.h" 1 3 # 24 "/usr/local/include/sys/param.h" 2 3 # 1 "/usr/include/linux/param.h" 1 3 # 1 "/usr/include/asm/param.h" 1 3 # 4 "/usr/include/linux/param.h" 2 3 # 25 "/usr/local/include/sys/param.h" 2 3 # 267 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/unistd.h" 1 3 extern "C" { # 1 "/usr/local/include/bits/posix_opt.h" 1 3 # 175 "/usr/local/include/unistd.h" 2 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 199 "/usr/local/include/unistd.h" 2 3 # 231 "/usr/local/include/unistd.h" 3 extern int access (const char *__name, int __type) ; extern __off_t __lseek (int __fd, __off_t __offset, int __whence) ; extern __off_t lseek (int __fd, __off_t __offset, int __whence) ; # 289 "/usr/local/include/unistd.h" 3 extern int __close (int __fd) ; extern int close (int __fd) ; extern ssize_t __read (int __fd, void * __buf, size_t __nbytes) ; extern ssize_t read (int __fd, void * __buf, size_t __nbytes) ; extern ssize_t __write (int __fd, const void * __buf, size_t __n) ; extern ssize_t write (int __fd, const void * __buf, size_t __n) ; # 343 "/usr/local/include/unistd.h" 3 extern int pipe (int __pipedes[2]) ; extern unsigned int alarm (unsigned int __seconds) ; extern unsigned int sleep (unsigned int __seconds) ; # 380 "/usr/local/include/unistd.h" 3 extern int pause (void) ; extern int chown (const char *__file, __uid_t __owner, __gid_t __group) ; # 402 "/usr/local/include/unistd.h" 3 extern int chdir (const char *__path) ; extern char *getcwd (char *__buf, size_t __size) ; extern int dup (int __fd) ; extern int dup2 (int __fd, int __fd2) ; extern char **__environ; extern int execve (const char *__path, char * const __argv[], char * const __envp[]) ; extern int execv (const char *__path, char * const __argv[]) ; extern int execle (const char *__path, const char *__arg, ...) ; extern int execl (const char *__path, const char *__arg, ...) ; extern int execvp (const char *__file, char * const __argv[]) ; extern int execlp (const char *__file, const char *__arg, ...) ; extern void _exit (int __status) ; # 1 "/usr/local/include/bits/confname.h" 1 3 enum { _PC_LINK_MAX, _PC_MAX_CANON, _PC_MAX_INPUT, _PC_NAME_MAX, _PC_PATH_MAX, _PC_PIPE_BUF, _PC_CHOWN_RESTRICTED, _PC_NO_TRUNC, _PC_VDISABLE, _PC_SYNC_IO, _PC_ASYNC_IO, _PC_PRIO_IO, _PC_SOCK_MAXBUF, _PC_FILESIZEBITS }; enum { _SC_ARG_MAX, _SC_CHILD_MAX, _SC_CLK_TCK, _SC_NGROUPS_MAX, _SC_OPEN_MAX, _SC_STREAM_MAX, _SC_TZNAME_MAX, _SC_JOB_CONTROL, _SC_SAVED_IDS, _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS, _SC_AIO_LISTIO_MAX, _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX, _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_VERSION, _SC_PAGESIZE, _SC_RTSIG_MAX, _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, _SC_TIMER_MAX, _SC_BC_BASE_MAX, _SC_BC_DIM_MAX, _SC_BC_SCALE_MAX, _SC_BC_STRING_MAX, _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_EXPR_NEST_MAX, _SC_LINE_MAX, _SC_RE_DUP_MAX, _SC_CHARCLASS_NAME_MAX, _SC_2_VERSION, _SC_2_C_BIND, _SC_2_C_DEV, _SC_2_FORT_DEV, _SC_2_FORT_RUN, _SC_2_SW_DEV, _SC_2_LOCALEDEF, _SC_PII, _SC_PII_XTI, _SC_PII_SOCKET, _SC_PII_INTERNET, _SC_PII_OSI, _SC_POLL, _SC_SELECT, _SC_UIO_MAXIOV, _SC_PII_INTERNET_STREAM, _SC_PII_INTERNET_DGRAM, _SC_PII_OSI_COTS, _SC_PII_OSI_CLTS, _SC_PII_OSI_M, _SC_T_IOV_MAX, _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_TTY_NAME_MAX, _SC_THREAD_DESTRUCTOR_ITERATIONS, _SC_THREAD_KEYS_MAX, _SC_THREAD_STACK_MIN, _SC_THREAD_THREADS_MAX, _SC_THREAD_ATTR_STACKADDR, _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT, _SC_THREAD_PROCESS_SHARED, _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES, _SC_ATEXIT_MAX, _SC_PASS_MAX, _SC_XOPEN_VERSION, _SC_XOPEN_XCU_VERSION, _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N, _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, _SC_2_UPE, _SC_XOPEN_XPG2, _SC_XOPEN_XPG3, _SC_XOPEN_XPG4, _SC_CHAR_BIT, _SC_CHAR_MAX, _SC_CHAR_MIN, _SC_INT_MAX, _SC_INT_MIN, _SC_LONG_BIT, _SC_WORD_BIT, _SC_MB_LEN_MAX, _SC_NZERO, _SC_SSIZE_MAX, _SC_SCHAR_MAX, _SC_SCHAR_MIN, _SC_SHRT_MAX, _SC_SHRT_MIN, _SC_UCHAR_MAX, _SC_UINT_MAX, _SC_ULONG_MAX, _SC_USHRT_MAX, _SC_NL_ARGMAX, _SC_NL_LANGMAX, _SC_NL_MSGMAX, _SC_NL_NMAX, _SC_NL_SETMAX, _SC_NL_TEXTMAX, _SC_XBS5_ILP32_OFF32, _SC_XBS5_ILP32_OFFBIG, _SC_XBS5_LP64_OFF64, _SC_XBS5_LPBIG_OFFBIG, _SC_XOPEN_LEGACY, _SC_XOPEN_REALTIME, _SC_XOPEN_REALTIME_THREADS }; # 408 "/usr/local/include/bits/confname.h" 3 # 497 "/usr/local/include/unistd.h" 2 3 extern long int pathconf (const char *__path, int __name) ; extern long int fpathconf (int __fd, int __name) ; extern long int sysconf (int __name) ; extern __pid_t __getpid (void) ; extern __pid_t getpid (void) ; extern __pid_t getppid (void) ; extern __pid_t getpgrp (void) ; extern __pid_t __getpgid (__pid_t __pid) ; extern int __setpgid (__pid_t __pid, __pid_t __pgid) ; extern int setpgid (__pid_t __pid, __pid_t __pgid) ; # 574 "/usr/local/include/unistd.h" 3 extern __pid_t setsid (void) ; extern __uid_t getuid (void) ; extern __uid_t geteuid (void) ; extern __gid_t getgid (void) ; extern __gid_t getegid (void) ; extern int getgroups (int __size, __gid_t __list[]) ; extern int setuid (__uid_t __uid) ; extern int setgid (__gid_t __gid) ; extern __pid_t __fork (void) ; extern __pid_t fork (void) ; extern char *ttyname (int __fd) ; extern int ttyname_r (int __fd, char *__buf, size_t __buflen) ; extern int isatty (int __fd) ; extern int link (const char *__from, const char *__to) ; # 688 "/usr/local/include/unistd.h" 3 extern int unlink (const char *__name) ; extern int rmdir (const char *__path) ; extern __pid_t tcgetpgrp (int __fd) ; extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) ; extern char *getlogin (void) ; # 798 "/usr/local/include/unistd.h" 3 # 853 "/usr/local/include/unistd.h" 3 # 871 "/usr/local/include/unistd.h" 3 # 887 "/usr/local/include/unistd.h" 3 # 917 "/usr/local/include/unistd.h" 3 # 940 "/usr/local/include/unistd.h" 3 # 968 "/usr/local/include/unistd.h" 3 # 983 "/usr/local/include/unistd.h" 3 # 1002 "/usr/local/include/unistd.h" 3 } # 272 "../../lib/sysfuncs.h" 2 # 1 "/usr/local/include/stdio.h" 1 3 extern "C" { # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 33 "/usr/local/include/stdio.h" 2 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 1 3 typedef void *__gnuc_va_list; # 122 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 3 # 209 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 3 # 38 "/usr/local/include/stdio.h" 2 3 typedef struct _IO_FILE FILE; # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 1 3 # 1 "/usr/local/include/_G_config.h" 1 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 269 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 typedef unsigned int wint_t; # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 14 "/usr/local/include/_G_config.h" 2 3 typedef int _G_int16_t ; typedef int _G_int32_t ; typedef unsigned int _G_uint16_t ; typedef unsigned int _G_uint32_t ; # 30 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 2 3 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 1 3 # 122 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 3 # 209 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 3 # 50 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 2 3 # 67 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 3 # 104 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 3 struct _IO_jump_t; struct _IO_FILE; # 174 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 3 typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; # 207 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/libio.h" 3 }; struct _IO_FILE { int _flags; char* _IO_read_ptr; char* _IO_read_end; char* _IO_read_base; char* _IO_write_base; char* _IO_write_ptr; char* _IO_write_end; char* _IO_buf_base; char* _IO_buf_end; char *_IO_save_base; char *_IO_backup_base; char *_IO_save_end; struct _IO_marker *_markers; struct _IO_FILE *_chain; int _fileno; int _blksize; __off_t _old_offset; unsigned short _cur_column; char _unused; char _shortbuf[1]; void * _lock; __off64_t _offset; int _unused2[16]; }; struct _IO_FILE_plus; extern struct _IO_FILE_plus _IO_2_1_stdin_ , _IO_2_1_stdout_ , _IO_2_1_stderr_ ; typedef struct { __ssize_t (*read) (struct _IO_FILE *, void *, __ssize_t ) ; __ssize_t (*write) (struct _IO_FILE *, const void *, __ssize_t ) ; __off_t (*seek) (struct _IO_FILE *, __off_t , int) ; int (*close) (struct _IO_FILE *) ; } _IO_cookie_io_functions_t; struct _IO_cookie_file { struct _IO_FILE file; const void *vtable; void *cookie; _IO_cookie_io_functions_t io_functions; }; extern "C" { extern int __underflow (_IO_FILE *) ; extern int __uflow (_IO_FILE *) ; extern int __overflow (_IO_FILE *, int) ; extern int _IO_getc (_IO_FILE *__fp) ; extern int _IO_putc (int __c, _IO_FILE *__fp) ; extern int _IO_feof (_IO_FILE *__fp) ; extern int _IO_ferror (_IO_FILE *__fp) ; extern int _IO_peekc_locked (_IO_FILE *__fp) ; extern void _IO_flockfile (_IO_FILE *) ; extern void _IO_funlockfile (_IO_FILE *) ; extern int _IO_ftrylockfile (_IO_FILE *) ; extern int _IO_vfscanf (_IO_FILE *, const char *, __gnuc_va_list , int *) ; extern int _IO_vfprintf (_IO_FILE *, const char *, __gnuc_va_list ) ; extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t ) ; extern size_t _IO_sgetn (_IO_FILE *, void *, size_t ) ; extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t , int, int) ; extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t , int) ; extern void _IO_free_backup_area (_IO_FILE *) ; } # 57 "/usr/local/include/stdio.h" 2 3 typedef __off_t fpos_t; # 1 "/usr/local/include/bits/stdio_lim.h" 1 3 # 110 "/usr/local/include/stdio.h" 2 3 extern FILE *stdin; extern FILE *stdout; extern FILE *stderr; extern int remove (const char *__filename) ; extern int rename (const char *__old, const char *__new) ; extern FILE *tmpfile (void) ; extern char *tmpnam (char *__s) ; # 157 "/usr/local/include/stdio.h" 3 extern int fclose (FILE *__stream) ; extern int fflush (FILE *__stream) ; extern FILE *fopen (const char * __filename, const char * __modes) ; extern FILE *freopen (const char * __filename, const char * __modes, FILE * __stream) ; # 197 "/usr/local/include/stdio.h" 3 # 223 "/usr/local/include/stdio.h" 3 extern void setbuf (FILE * __stream, char * __buf) ; extern int setvbuf (FILE * __stream, char * __buf, int __modes, size_t __n) ; # 243 "/usr/local/include/stdio.h" 3 extern int fprintf (FILE * __stream, const char * __format, ...) ; extern int printf (const char * __format, ...) ; extern int sprintf (char * __s, const char * __format, ...) ; extern int vfprintf (FILE * __s, const char * __format, __gnuc_va_list __arg) ; extern int vprintf (const char * __format, __gnuc_va_list __arg) ; extern int vsprintf (char * __s, const char * __format, __gnuc_va_list __arg) ; # 281 "/usr/local/include/stdio.h" 3 # 302 "/usr/local/include/stdio.h" 3 extern int fscanf (FILE * __stream, const char * __format, ...) ; extern int scanf (const char * __format, ...) ; extern int sscanf (const char * __s, const char * __format, ...) ; # 330 "/usr/local/include/stdio.h" 3 extern int fgetc (FILE *__stream) ; extern int getc (FILE *__stream) ; extern int getchar (void) ; extern int fputc (int __c, FILE *__stream) ; extern int putc (int __c, FILE *__stream) ; extern int putchar (int __c) ; extern char *fgets (char * __s, int __n, FILE * __stream) ; extern char *gets (char *__s) ; # 420 "/usr/local/include/stdio.h" 3 extern int fputs (const char * __s, FILE * __stream) ; extern int puts (const char *__s) ; extern int ungetc (int __c, FILE *__stream) ; extern size_t fread (void * __ptr, size_t __size, size_t __n, FILE * __stream) ; extern size_t fwrite (const void * __ptr, size_t __size, size_t __n, FILE * __s) ; extern int fseek (FILE *__stream, long int __off, int __whence) ; extern long int ftell (FILE *__stream) ; extern void rewind (FILE *__stream) ; extern int fgetpos (FILE * __stream, fpos_t * __pos) ; extern int fsetpos (FILE *__stream, const fpos_t *__pos) ; # 519 "/usr/local/include/stdio.h" 3 # 529 "/usr/local/include/stdio.h" 3 extern void clearerr (FILE *__stream) ; extern int feof (FILE *__stream) ; extern int ferror (FILE *__stream) ; extern void perror (const char *__s) ; # 603 "/usr/local/include/stdio.h" 3 # 618 "/usr/local/include/stdio.h" 3 } # 286 "../../lib/sysfuncs.h" 2 # 1 "../../lib/pathmax.h" 1 # 1 "/usr/local/include/limits.h" 1 3 # 123 "/usr/local/include/limits.h" 3 # 29 "../../lib/pathmax.h" 2 # 296 "../../lib/sysfuncs.h" 2 # 1 "../../lib/getopt.h" 1 extern "C" { extern char *optarg; extern int optind; extern int opterr; extern int optopt; struct option { const char *name; int has_arg; int *flag; int val; }; extern int getopt (int argc, char *const *argv, const char *shortopts); extern int getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind); extern int getopt_long_only (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind); extern int _getopt_internal (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind, int long_only); } # 300 "../../lib/sysfuncs.h" 2 void error (int, int, const char *,...) ; void * xmalloc (size_t) ; void * xrealloc (void * , size_t) ; char *xstrdup (const char *) ; # 3 "grbTest.cpp" 2 # 1 "/usr/local/include/sys/time.h" 1 3 # 1 "/usr/local/include/time.h" 1 3 extern "C" { # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 1 3 # 19 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 61 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 131 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 188 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 271 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 283 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 317 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stddef.h" 3 # 38 "/usr/local/include/time.h" 2 3 # 1 "/usr/local/include/bits/time.h" 1 3 # 59 "/usr/local/include/bits/time.h" 3 # 42 "/usr/local/include/time.h" 2 3 typedef __clock_t clock_t; # 73 "/usr/local/include/time.h" 3 # 89 "/usr/local/include/time.h" 3 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long int __tm_gmtoff; const char *__tm_zone; }; extern clock_t clock (void) ; extern time_t time (time_t *__timer) ; extern double difftime (time_t __time1, time_t __time0) ; extern time_t mktime (struct tm *__tp) ; extern size_t strftime (char * __s, size_t __maxsize, const char * __format, const struct tm * __tp) ; extern struct tm *gmtime (const time_t *__timer) ; extern struct tm *localtime (const time_t *__timer) ; # 167 "/usr/local/include/time.h" 3 extern char *asctime (const struct tm *__tp) ; extern char *ctime (const time_t *__timer) ; # 187 "/usr/local/include/time.h" 3 extern char *__tzname[2]; extern int __daylight; extern long int __timezone; # 235 "/usr/local/include/time.h" 3 # 264 "/usr/local/include/time.h" 3 # 274 "/usr/local/include/time.h" 3 } # 24 "/usr/local/include/sys/time.h" 2 3 # 1 "/usr/local/include/sys/select.h" 1 3 # 1 "/usr/local/include/bits/select.h" 1 3 # 57 "/usr/local/include/bits/select.h" 3 # 31 "/usr/local/include/sys/select.h" 2 3 # 1 "/usr/local/include/bits/sigset.h" 1 3 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int))) ]; } __sigset_t; # 125 "/usr/local/include/bits/sigset.h" 3 # 34 "/usr/local/include/sys/select.h" 2 3 extern "C" { struct timeval; typedef __fd_mask fd_mask; typedef __fd_set fd_set; extern int __select (int __nfds, __fd_set *__readfds, __fd_set *__writefds, __fd_set *__exceptfds, struct timeval *__timeout) ; extern int select (int __nfds, __fd_set *__readfds, __fd_set *__writefds, __fd_set *__exceptfds, struct timeval *__timeout) ; # 91 "/usr/local/include/sys/select.h" 3 } # 25 "/usr/local/include/sys/time.h" 2 3 # 1 "/usr/local/include/bits/time.h" 1 3 # 43 "/usr/local/include/bits/time.h" 3 struct timeval { __time_t tv_sec; __time_t tv_usec; }; # 28 "/usr/local/include/sys/time.h" 2 3 extern "C" { struct timezone { int tz_minuteswest; int tz_dsttime; }; extern int gettimeofday (struct timeval *__tv, struct timezone *__tz) ; extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) ; extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) ; enum __itimer_which { ITIMER_REAL = 0, ITIMER_VIRTUAL = 1, ITIMER_PROF = 2 }; struct itimerval { struct timeval it_interval; struct timeval it_value; }; extern int getitimer (enum __itimer_which __which, struct itimerval *__value) ; extern int setitimer (enum __itimer_which __which, const struct itimerval *__new, struct itimerval *__old) ; extern int utimes (const char *__file, struct timeval __tvp[2]) ; # 133 "/usr/local/include/sys/time.h" 3 # 142 "/usr/local/include/sys/time.h" 3 } # 18 "grbTest.cpp" 2 # 1 "/usr/local/include/sys/resource.h" 1 3 # 1 "/usr/local/include/bits/resource.h" 1 3 # 1 "/usr/include/asm/resource.h" 1 3 # 37 "/usr/include/asm/resource.h" 3 # 24 "/usr/local/include/bits/resource.h" 2 3 enum __rlimit_resource { _RLIMIT_CPU = 0 , RLIMIT_CPU = _RLIMIT_CPU, _RLIMIT_FSIZE = 1 , RLIMIT_FSIZE = _RLIMIT_FSIZE, _RLIMIT_DATA = 2 , RLIMIT_DATA = _RLIMIT_DATA, _RLIMIT_STACK = 3 , RLIMIT_STACK = _RLIMIT_STACK, _RLIMIT_CORE = 4 , RLIMIT_CORE = _RLIMIT_CORE, _RLIMIT_RSS = 5 , RLIMIT_RSS = _RLIMIT_RSS, _RLIMIT_NOFILE = 7 , RLIMIT_NOFILE = _RLIMIT_NOFILE, RLIMIT_OFILE = RLIMIT_NOFILE, _RLIMIT_AS = 9 , RLIMIT_AS = _RLIMIT_AS, _RLIMIT_NPROC = 6 , RLIMIT_NPROC = _RLIMIT_NPROC, _RLIMIT_MEMLOCK = 8 , RLIMIT_MEMLOCK = _RLIMIT_MEMLOCK, RLIMIT_NLIMITS = 10 , RLIM_NLIMITS = RLIMIT_NLIMITS }; typedef __rlim_t rlim_t; struct rlimit { rlim_t rlim_cur; rlim_t rlim_max; }; # 149 "/usr/local/include/bits/resource.h" 3 enum __rusage_who { RUSAGE_SELF = 0, RUSAGE_CHILDREN = -1, RUSAGE_BOTH = -2 }; # 1 "/usr/local/include/bits/time.h" 1 3 # 43 "/usr/local/include/bits/time.h" 3 # 58 "/usr/local/include/bits/time.h" 3 # 168 "/usr/local/include/bits/resource.h" 2 3 struct rusage { struct timeval ru_utime; struct timeval ru_stime; long int ru_maxrss; long int ru_ixrss; long int ru_idrss; long int ru_isrss; long int ru_minflt; long int ru_majflt; long int ru_nswap; long int ru_inblock; long int ru_oublock; long int ru_msgsnd; long int ru_msgrcv; long int ru_nsignals; long int ru_nvcsw; long int ru_nivcsw; }; enum __priority_which { PRIO_PROCESS = 0, PRIO_PGRP = 1, PRIO_USER = 2 }; # 25 "/usr/local/include/sys/resource.h" 2 3 extern "C" { extern int getrlimit (enum __rlimit_resource __resource, struct rlimit *__rlimits) ; # 42 "/usr/local/include/sys/resource.h" 3 extern int setrlimit (enum __rlimit_resource __resource, const struct rlimit *__rlimits) ; # 62 "/usr/local/include/sys/resource.h" 3 extern int getrusage (enum __rusage_who __who, struct rusage *__usage) ; extern int getpriority (enum __priority_which __which, int __who) ; extern int setpriority (enum __priority_which __which, int __who, int __prio) ; } # 20 "grbTest.cpp" 2 extern "C" { # 1 "../../lib/rx.h" 1 typedef unsigned int RX_subset; typedef RX_subset * rx_Bitset; typedef void (*rx_bitset_iterator) (void *, int member_index); typedef int (*rx_sp_comparer) (void * a, void * b); struct rx_sp_node { void * key; void * data; struct rx_sp_node * kids[2]; }; typedef void (*rx_sp_key_data_freer) (struct rx_sp_node *); struct rx_hash_item { struct rx_hash_item * next_same_hash; struct rx_hash * table; unsigned long hash; void * data; void * binding; }; struct rx_hash { struct rx_hash * parent; int refs; struct rx_hash * children[13]; struct rx_hash_item * buckets [13]; int bucket_size [13]; }; struct rx_hash_rules; typedef int (*rx_hash_eq)(void *, void *); typedef struct rx_hash * (*rx_alloc_hash)(struct rx_hash_rules *); typedef void (*rx_free_hash)(struct rx_hash *, struct rx_hash_rules *); typedef struct rx_hash_item * (*rx_alloc_hash_item)(struct rx_hash_rules *, void *); typedef void (*rx_free_hash_item)(struct rx_hash_item *, struct rx_hash_rules *); struct rx_hash_rules { rx_hash_eq eq; rx_alloc_hash hash_alloc; rx_free_hash free_hash; rx_alloc_hash_item hash_item_alloc; rx_free_hash_item free_hash_item; }; struct rx_cache; struct rx_superset; struct rx; struct rx_se_list; typedef int (*rx_se_list_order) (struct rx *, struct rx_se_list *, struct rx_se_list *); struct rx { int rx_id; struct rx_cache * cache; int local_cset_size; void * buffer; unsigned long allocated; unsigned long reserved; int nodec; int epsnodec; struct rx_hash se_list_memo; struct rx_hash set_list_memo; void ** instruction_table; struct rx_nfa_state *nfa_states; struct rx_nfa_state *start; rx_se_list_order se_list_cmp; struct rx_superset * start_set; }; enum rexp_node_type { r_cset, r_concat, r_alternate, r_opt, r_star, r_2phase_star, r_side_effect, r_data }; typedef void * rx_side_effect; struct rexp_node { enum rexp_node_type type; union { rx_Bitset cset; rx_side_effect side_effect; struct { struct rexp_node *left; struct rexp_node *right; } pair; void * data; } params; }; struct rx_nfa_state { struct rx_nfa_state *next; int id; struct rx_nfa_edge *edges; struct rx_possible_future *futures; unsigned int is_final:1; unsigned int is_start:1; unsigned int eclosure_needed:1; unsigned int mark:1; }; enum rx_nfa_etype { ne_cset, ne_epsilon, ne_side_effect }; struct rx_nfa_edge { struct rx_nfa_edge *next; enum rx_nfa_etype type; struct rx_nfa_state *dest; union { rx_Bitset cset; rx_side_effect side_effect; } params; }; struct rx_nfa_state_set { struct rx_nfa_state * car; struct rx_nfa_state_set * cdr; }; struct rx_se_list { rx_side_effect car; struct rx_se_list * cdr; }; struct rx_possible_future { struct rx_possible_future *next; struct rx_se_list * effects; struct rx_nfa_state_set * destset; }; enum rx_opcode { rx_backtrack_point = 0, rx_do_side_effects = rx_backtrack_point + 1, rx_cache_miss = rx_do_side_effects + 1, rx_next_char = rx_cache_miss + 1, rx_backtrack = rx_next_char + 1, rx_error_inx = rx_backtrack + 1, rx_num_instructions = rx_error_inx + 1 }; extern void * rx_id_instruction_table[rx_num_instructions]; struct rx_inx { void * data; void * data_2; void * inx; void * fnord; }; struct rx_superset { int refs; int id; struct rx_nfa_state * car; struct rx_superset * cdr; struct rx_superstate * superstate; struct rx * starts_for; struct rx_hash_item hash_item; }; struct rx_super_edge { struct rx_super_edge *next; struct rx_inx rx_backtrack_frame; int cset_size; rx_Bitset cset; struct rx_distinct_future *options; }; struct rx_superstate { int rx_id; int locks; struct rx_superstate * next_recyclable; struct rx_superstate * prev_recyclable; struct rx_distinct_future * transition_refs; struct rx_superset * contents; struct rx_super_edge * edges; int is_semifree; int trans_size; struct rx_inx transitions[1 ]; }; struct rx_distinct_future { struct rx_distinct_future * next_same_super_edge[2]; struct rx_distinct_future * next_same_dest; struct rx_distinct_future * prev_same_dest; struct rx_superstate * present; struct rx_superstate * future; struct rx_super_edge * edge; struct rx_inx future_frame; struct rx_inx side_effects_frame; struct rx_se_list * effects; }; struct rx_blocklist { struct rx_blocklist * next; int bytes; }; struct rx_freelist { struct rx_freelist * next; }; struct rx_cache; typedef void (*rx_morecore_fn)(struct rx_cache *); struct rx_cache { struct rx_hash_rules superset_hash_rules; struct rx_blocklist * memory; struct rx_blocklist * memory_pos; int bytes_left; char * memory_addr; rx_morecore_fn morecore; struct rx_freelist * free_superstates; struct rx_freelist * free_transition_classes; struct rx_freelist * free_discernable_futures; struct rx_freelist * free_supersets; struct rx_freelist * free_hash; struct rx_superstate * lru_superstate; struct rx_superstate * semifree_superstate; struct rx_superset * empty_superset; int superstates; int semifree_superstates; int hits; int misses; int superstates_allowed; int local_cset_size; void ** instruction_table; struct rx_hash superset_table; }; struct rx_string_position { const unsigned char * pos; const unsigned char * string; const unsigned char * end; int offset; int size; int search_direction; int search_end; }; enum rx_get_burst_return { rx_get_burst_continuation, rx_get_burst_error, rx_get_burst_ok, rx_get_burst_no_more }; typedef enum rx_get_burst_return (*rx_get_burst_fn) (struct rx_string_position * pos, void * app_closure, int stop); enum rx_back_check_return { rx_back_check_continuation, rx_back_check_error, rx_back_check_pass, rx_back_check_fail }; typedef enum rx_back_check_return (*rx_back_check_fn) (struct rx_string_position * pos, int lparen, int rparen, unsigned char * translate, void * app_closure, int stop); typedef int (*rx_fetch_char_fn) (struct rx_string_position * pos, int offset, void * app_closure, int stop); enum rx_search_return { rx_search_continuation = -4, rx_search_error = -3, rx_search_soft_fail = -2, rx_search_fail = -1 }; extern const char *re_error_msg[]; typedef enum { REG_NOERROR = 0, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE, REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN, REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND, REG_ESIZE, REG_ERPAREN } reg_errcode_t; enum re_side_effects { # 1 "../../lib/rx.h" 1 # 3674 "../../lib/rx.h" re_se_try = -1 , re_se_pushback = re_se_try - 1 , re_se_push0 = re_se_pushback -1 , re_se_pushpos = re_se_push0 - 1 , re_se_chkpos = re_se_pushpos -1 , re_se_poppos = re_se_chkpos - 1 , re_se_at_dot = re_se_poppos - 1 , re_se_syntax = re_se_at_dot - 1 , re_se_not_syntax = re_se_syntax - 1 , re_se_begbuf = re_se_not_syntax - 1 , re_se_hat = re_se_begbuf - 1 , re_se_wordbeg = re_se_hat - 1 , re_se_wordbound = re_se_wordbeg - 1 , re_se_notwordbound = re_se_wordbound - 1 , re_se_wordend = re_se_notwordbound - 1 , re_se_endbuf = re_se_wordend - 1 , re_se_dollar = re_se_endbuf - 1 , re_se_fail = re_se_dollar - 1 , re_se_win = 0 , re_se_lparen = re_se_win + 1 , re_se_rparen = re_se_lparen + 1 , re_se_backref = re_se_rparen + 1 , re_se_iter = re_se_backref + 1 , re_se_end_iter = re_se_iter + 1 , re_se_tv = re_se_end_iter + 1 , # 1182 "../../lib/rx.h" 2 re_floogle_flap = 65533 }; struct re_se_params { enum re_side_effects se; int op1; int op2; }; typedef unsigned reg_syntax_t; struct re_pattern_buffer { struct rx rx; reg_syntax_t syntax; unsigned int no_sub:1; unsigned int not_bol:1; unsigned int not_eol:1; unsigned int newline_anchor:1; unsigned int least_subs:1; unsigned int match_regs_on_stack:1; unsigned int search_regs_on_stack:1; unsigned int is_anchored:1; unsigned int begbuf_only:1; unsigned int regs_allocated:2; unsigned char * translate; char * syntax_parens; size_t re_nsub; void * buffer; unsigned long allocated; char *fastmap; unsigned int fastmap_accurate:1; unsigned int can_match_empty:1; struct rx_nfa_state * start; struct re_se_params *se_params; rx_Bitset fastset; }; typedef int regoff_t; struct re_registers { unsigned num_regs; regoff_t *start; regoff_t *end; }; typedef struct re_pattern_buffer regex_t; typedef struct { regoff_t rm_so; regoff_t rm_eo; } regmatch_t; extern reg_syntax_t re_syntax_options; extern int rx_cache_bound; extern char rx_version_string[]; # 1691 "../../lib/rx.h" extern int re_search_2 (struct re_pattern_buffer *rxb, const char * string1, int size1, const char * string2, int size2, int startpos, int range, struct re_registers *regs, int stop); extern int re_search (struct re_pattern_buffer * rxb, const char *string, int size, int startpos, int range, struct re_registers *regs); extern int re_match_2 (struct re_pattern_buffer * rxb, const char * string1, int size1, const char * string2, int size2, int pos, struct re_registers *regs, int stop); extern int re_match (struct re_pattern_buffer * rxb, const char * string, int size, int pos, struct re_registers *regs); extern reg_syntax_t re_set_syntax (reg_syntax_t syntax); extern void re_set_registers (struct re_pattern_buffer *bufp, struct re_registers *regs, unsigned num_regs, regoff_t * starts, regoff_t * ends); extern const char * re_compile_pattern (const char *pattern, int length, struct re_pattern_buffer * rxb); extern int re_compile_fastmap (struct re_pattern_buffer * rxb); extern char * re_comp (const char *s); extern int re_exec (const char *s); extern int regcomp (regex_t * preg, const char * pattern, int cflags); extern int regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags); extern size_t regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size); extern void regfree (regex_t *preg); # 1748 "../../lib/rx.h" # 3670 "../../lib/rx.h" # 3731 "../../lib/rx.h" # 31 "grbTest.cpp" 2 } # 1 "../../lib/non_ansi.h" 1 extern "C" int fileno(FILE *); extern "C" int ftruncate(int, long); extern "C" int pclose(FILE *); extern "C" FILE *popen(const char *command, const char *type); extern "C" int getpagesize(); extern "C" int strcasecmp(const char *, const char *); # 36 "grbTest.cpp" 2 # 1 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 1 3 void va_end (__gnuc_va_list); # 175 "/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/2.95.1/include/stdarg.h" 3 typedef __gnuc_va_list va_list; # 38 "grbTest.cpp" 2 # 1 "/usr/local/include/signal.h" 1 3 extern "C" { # 1 "/usr/local/include/bits/sigset.h" 1 3 # 33 "/usr/local/include/bits/sigset.h" 3 # 98 "/usr/local/include/bits/sigset.h" 3 extern int __sigismember (const __sigset_t *, int); extern int __sigaddset (__sigset_t *, int); extern int __sigdelset (__sigset_t *, int); # 122 "/usr/local/include/bits/sigset.h" 3 # 33 "/usr/local/include/signal.h" 2 3 typedef __sig_atomic_t sig_atomic_t; # 1 "/usr/local/include/bits/signum.h" 1 3 # 56 "/usr/local/include/signal.h" 2 3 typedef void (*__sighandler_t) (int) ; extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) ; extern int raise (int __sig) ; extern int __sigpause (int __sig_or_mask, int __is_sig) ; # 164 "/usr/local/include/signal.h" 3 # 259 "/usr/local/include/signal.h" 3 # 299 "/usr/local/include/signal.h" 3 # 322 "/usr/local/include/signal.h" 3 # 342 "/usr/local/include/signal.h" 3 extern int __libc_current_sigrtmin (void) ; extern int __libc_current_sigrtmax (void) ; } # 39 "grbTest.cpp" 2 # 1 "../../lib/messages.h" 1 extern char *msg_prefix; void FatalError (int ExitCode, const char *fmt,...); extern "C" void Message (const char *fmt,...); # 42 "grbTest.cpp" 2 # 1 "../../lib/timing.h" 1 # 1 "/usr/local/include/sys/times.h" 1 3 extern "C" { struct tms { clock_t tms_utime; clock_t tms_stime; clock_t tms_cutime; clock_t tms_cstime; }; extern clock_t times (struct tms *__buffer) ; } # 30 "../../lib/timing.h" 2 # 50 "../../lib/timing.h" typedef struct { double RealTime, CPUTime; } ProgTime; double RealTime (void); double CPUTime (double *user, double *sys); void GetTime (ProgTime * StartTime); char *ElapsedTime (ProgTime * StartTime, ProgTime * FinishTime); char *cputime_string (clock_t clk); # 43 "grbTest.cpp" 2 # 1 "../../lib/memlib.h" 1 typedef void *(*Malloc_func) (size_t); typedef void *(*Realloc_func) (void *, size_t); typedef void (*Free_func) (void *); typedef char *(*Strdup_func) (const char *); extern Malloc_func Xmalloc; extern Realloc_func Xrealloc; extern Free_func Xfree; extern Strdup_func Xstrdup; # 44 "grbTest.cpp" 2 # 1 "../../lib/local_strings.h" 1 int arg_atoi (char *str); int compare (unsigned char * s1, unsigned char * s2); int casecompare (unsigned char * s1, unsigned char * s2); unsigned char *copy_string (unsigned char * src_str); char *str255_to_string (unsigned char * str255, char *str); int prefixlen (unsigned char * s1, unsigned char * s2); char *char2str (unsigned char c); char *word2str (unsigned char * s); char *de_escape_string (char *s); # 45 "grbTest.cpp" 2 # 1 "../../lib/filestats.h" 1 typedef struct FileStats { unsigned long NumSeeks; unsigned long NumReads; unsigned long NumBytes; } FileStats; typedef struct { FILE *f; char *pathname; char *name; FileStats Current; FileStats Cumulative; } File; File *Fopen (char *name, char *mode, unsigned long magic); size_t Fread (void *ptr, size_t size, size_t nitems, File * F); int Fseek (File * F, long offset, int ptrname); void Rewind (File * F); int Fclose (File * F); void ZeroFileStats (File * F); # 47 "grbTest.cpp" 2 # 1 "invf.h" 1 struct invf_dict_header { unsigned long lookback; unsigned long dict_size; unsigned long total_bytes; unsigned long index_string_bytes; double input_bytes; unsigned long num_of_docs; unsigned long static_num_of_docs; unsigned long num_of_words; unsigned long stemmer_num; unsigned long stem_method; }; struct stem_dict_header { unsigned long lookback; unsigned long block_size; unsigned long num_blocks; unsigned long blocks_start; unsigned long index_chars; unsigned long num_of_docs; unsigned long static_num_of_docs; unsigned long num_of_words; unsigned long stemmer_num; unsigned long stem_method; unsigned long indexed; }; struct invf_file_header { unsigned long no_of_words; unsigned long no_of_ptrs; unsigned long skip_mode; unsigned long params[16]; unsigned long InvfLevel; }; struct stem_idx_header { unsigned long lookback; unsigned long block_size; unsigned long num_blocks; unsigned long blocks_start; unsigned long index_chars; unsigned long num_of_words; }; # 48 "grbTest.cpp" 2 # 1 "text.h" 1 # 1 "../../lib/huffman.h" 1 typedef struct huff_data { int num_codes; int mincodelen; int maxcodelen; int lencount[31 + 1]; unsigned long min_code[31 + 1]; char *clens; } huff_data; huff_data *Generate_Huffman_Data (int num, long *freqs, huff_data * data, unsigned long * mem); unsigned long *Generate_Huffman_Codes (huff_data * data, unsigned long * mem); unsigned long **Generate_Huffman_Vals (huff_data * data, unsigned long * mem); int Write_Huffman_Data (FILE * f, huff_data * hd); int Read_Huffman_Data (FILE * f, huff_data * hd, unsigned long * mem, unsigned long * disk); int F_Read_Huffman_Data (File * f, huff_data * hd, unsigned long * mem, unsigned long * disk); double Calculate_Huffman_Size (int num, long *freqs, long *counts); # 95 "../../lib/huffman.h" # 111 "../../lib/huffman.h" # 29 "text.h" 2 typedef struct compression_dict_header { unsigned long dict_type; unsigned long novel_method; unsigned long params[15 ]; unsigned long num_words[2]; unsigned long num_word_chars[2]; unsigned long lookback; } compression_dict_header; typedef struct comp_frags_header { huff_data hd; unsigned long uncompressed_size; unsigned long huff_words_size[31 + 1]; } comp_frags_header; typedef struct compressed_text_header { unsigned long num_of_docs; unsigned long num_of_words; double num_of_bytes; double ratio; unsigned long length_of_longest_doc; unsigned long dummy; } compressed_text_header; typedef struct compression_stats_header { unsigned long num_docs; unsigned long dummy; double num_bytes; } compression_stats_header; typedef struct frags_stats_header { unsigned long num_frags; unsigned long mem_for_frags; } frags_stats_header; typedef struct aux_frags_header { unsigned long num_frags; unsigned long mem_for_frags; } aux_frags_header; # 49 "grbTest.cpp" 2 # 1 "mg.h" 1 # 50 "grbTest.cpp" 2 # 1 "lists.h" 1 typedef struct DocEntry { float Weight; int DocNum; unsigned long SeekPos; unsigned long Len; char *CompTextBuffer; struct DocEntry *Next; short or_included; } DocEntry; typedef struct DocList { int num; int total_retrieved; int is_approx; DocEntry DE[1]; } DocList; DocList *MakeDocList (int num); DocList *ResizeDocList (DocList * d, int num); DocList *IntersectLists (DocList * List1, DocList * List2); DocList *DiffLists (DocList * List1, DocList * List2); DocList *MergeLists (DocList * List1, DocList * List2); DocList *AddToDocList(DocList *List, int res); void ReduceList_OrIncluded(DocList *List); inline void DocEntry_init(DocEntry *d, int doc, float weight) { d->DocNum = doc; d->Weight = weight; d->SeekPos = 0; d->Len = 0; d->CompTextBuffer = ((void *)0) ; d->Next = ((void *)0) ; d->or_included = 0; } inline int DocList_isEmpty(DocList *List) { return (List == ((void *)0) || List->num == 0); } inline int DocList_size(DocList *List) { return List->num; } inline void DocList_resize(DocList *List, int n) { List->num = n; } inline DocEntry *DocList_member(DocList *List, int at) { return &List->DE[at]; } inline DocEntry *DocList_nextMember(DocList *List, DocEntry *entry) { entry ++; return entry; } inline int DocList_memberValid(DocList *List, DocEntry *entry) { return (entry < (List->DE + List->num)); } inline DocEntry *DocList_lastMember(DocList *List) { return DocList_member(List, List->num - 1); } inline void DocList_setMember(DocList *List, int at, DocEntry entry) { List->DE[at] = entry; } inline void DocList_moveMember(DocList *List, int to, int from) { List->DE[to] = List->DE[from]; } inline void DocList_addMember(DocList *List, DocEntry entry) { List->DE[List->num] = entry; List->num ++; } inline void DocList_addMember1(DocList *List, int doc, float weight) { DocEntry_init(DocList_member(List, List->num), doc, weight); List->num ++; } inline unsigned long *DocList_memberSeekPtr(DocList *List, int doc) { return &List->DE[doc].SeekPos; } inline unsigned long *DocList_memberLenPtr(DocList *List, int doc) { return &List->DE[doc].Len; } inline int DocList_memberDocNum(DocList *List, int doc) { return List->DE[doc].DocNum; } # 51 "grbTest.cpp" 2 # 1 "backend.h" 1 # 1 "term_lists.h" 1 typedef struct WordEntry { int word_num; unsigned long count; unsigned long doc_count; unsigned long max_doc_count; unsigned long invf_ptr; unsigned long invf_len; } WordEntry; typedef struct TermEntry { WordEntry WE; int Count; unsigned char *Word; unsigned char *Stem; int require_match; } TermEntry; typedef struct TermList { int list_size; int num; TermEntry TE[1]; } TermList; void ConvertTermsToString (TermList * query_term_list, char *str); int AddTermEntry (TermList ** query_term_list, TermEntry * te); int AddTerm (TermList ** query_term_list, unsigned char * Word, int Count, int word_num, unsigned long count, unsigned long doc_count, unsigned long invf_ptr, unsigned long invf_len, int stemmer_num); extern "C" void ResetTermList (TermList ** tl); void FreeTermList (TermList ** the_tl); void PrintWordEntry (WordEntry * we, FILE * file); void PrintTermEntry (TermEntry * te, FILE * file); void PrintTermList (TermList * tl, FILE * file); TermList *MakeTermList (int n); # 32 "backend.h" 2 # 1 "query_term_list.h" 1 typedef struct QueryTermEntry { int Count; unsigned char *Term; int stem_method; } QueryTermEntry; typedef struct QueryTermList { int list_size; int num; QueryTermEntry QTE[1]; } QueryTermList; void ConvertQueryTermsToString (QueryTermList * query_term_list, char *str); extern "C" int AddQueryTerm (QueryTermList ** query_term_list, unsigned char * Term, int Count, int stem_method); extern "C" void ResetQueryTermList (QueryTermList ** tl); void FreeQueryTermList (QueryTermList ** the_qtl); QueryTermList *MakeQueryTermList (int n); # 33 "backend.h" 2 typedef struct invf_data { File *InvfFile; unsigned long N; unsigned long Nstatic; struct invf_file_header ifh; } invf_data; typedef struct __idx_data { unsigned long Start; float Weight; } __idx_data; typedef struct text_data { File *TextFile; File *TextIdxFile; File *TextIdxWgtFile; long current_pos; __idx_data *idx_data; compressed_text_header cth; } text_data; typedef struct auxiliary_dict { aux_frags_header afh[2]; unsigned char *word_data[2]; unsigned char **words[2]; int blk_start[2][33], blk_end[2][33]; } auxiliary_dict; typedef struct compression_dict { compression_dict_header cdh; comp_frags_header *cfh[2]; unsigned long MemForCompDict; unsigned char ***values[2]; unsigned char *escape[2]; huff_data *chars_huff[2]; unsigned long **chars_vals[2]; huff_data *lens_huff[2]; unsigned long **lens_vals[2]; auxiliary_dict *ad; int fast_loaded; } compression_dict; typedef struct stemmed_idx { File *stem_idx_file; struct stem_idx_header sih; unsigned char ** strchr ; unsigned long *pos; int active; unsigned char *buffer; unsigned long MemForStemIdx; } stemmed_idx; typedef struct stemmed_dict { File *stem_file; struct stem_dict_header sdh; unsigned char ** strchr ; unsigned long *pos; int active; unsigned char *buffer; unsigned long MemForStemDict; stemmed_idx *stem1; stemmed_idx *stem2; stemmed_idx *stem3; } stemmed_dict; typedef struct approx_weights_data { double L; double B; unsigned long *DocWeights; char bits; float *table; unsigned long mask; unsigned long MemForWeights; unsigned long num_of_docs; } approx_weights_data; typedef struct RankedQueryInfo { int QueryFreqs; int Exact; long MaxDocsToRetrieve; long MaxParasToRetrieve; int Sort; char AccumMethod; long MaxAccums; long MaxTerms; int StopAtMaxAccum; long HashTblSize; char *skip_dump; } RankedQueryInfo; typedef struct BooleanQueryInfo { long MaxDocsToRetrieve; } BooleanQueryInfo; typedef struct query_data { stemmed_dict *sd; compression_dict *cd; approx_weights_data *awd; invf_data *id; text_data *td; char *pathname; char *textpathname; File *File_text; File *File_comp_dict; File *File_aux_dict; File *File_fast_comp_dict; File *File_text_idx_wgt; File *File_text_idx; File *File_stem; File *File_stem1; File *File_stem2; File *File_stem3; File *File_invf; File *File_weight_approx; unsigned long mem_in_use, max_mem_in_use; unsigned long num_of_ptrs, tot_num_of_ptrs; unsigned long num_of_terms, tot_num_of_terms; unsigned long num_of_accum, tot_num_of_accum; unsigned long num_of_ans, tot_num_of_ans; unsigned long hops_taken, tot_hops_taken; unsigned long text_idx_lookups, tot_text_idx_lookups; unsigned long max_buffers; unsigned doc_pos; unsigned buf_in_use; DocList *DL; TermList *TL; unsigned char *TextBuffer; int TextBufferLen; QueryTermList *QTL; int allfiles; } query_data; typedef struct InitQueryTimes { ProgTime Start; ProgTime StemDict; ProgTime ApproxWeights; ProgTime CompDict; ProgTime Invf; ProgTime Text; } InitQueryTimes; query_data *InitQuerySystem (char *dir, char *name, char *textname, InitQueryTimes * iqt); void ChangeMemInUse (query_data * qd, long delta); void FinishQuerySystem (query_data * qd); void ResetFileStats (query_data * qd); void TransFileStats (query_data * qd); void ChangeMemInUse (query_data * qd, long delta); void RankedQuery (query_data * qd, char *Query, RankedQueryInfo * rqi); void BooleanQuery (query_data * qd, char *Query, BooleanQueryInfo * bqi, int stem_method); void DocnumsQuery (query_data * qd, char *QueryLine); void FreeTextBuffer (query_data * qd); # 52 "grbTest.cpp" 2 # 1 "DocEntry.h" 1 void FreeQueryDocs (query_data * qd); int LoadCompressedText (query_data * qd, int max_mem); int GetDocNum (query_data * qd); float GetDocWeight (query_data * qd); long GetDocCompLength (query_data * qd); unsigned char *GetDocText (query_data * qd, unsigned long *len); DocEntry *GetDocChain (query_data * qd); int NextDoc (query_data * qd); int DocEntry_compare(void *a, void *b); # 53 "grbTest.cpp" 2 # 1 "environment.h" 1 char get_output_type (void); char get_query_type (void); extern char *ConstraintErrorStr; int SetEnv (char *name, char *data, char *(*Constraint) (char *, char *)); char *GetEnv (char *name); char *GetDefEnv (char *name, char *def); int UnsetEnv (char *name, int Force); char *de_escape_string (char *s); int PushEnv (void); int PopEnv (void); int EnvStackHeight (void); char *GetEnvName (int i); int BooleanEnv (char *data, int def); long IntEnv (char *data, long def); void InitEnv (void); void UninitEnv (void); # 54 "grbTest.cpp" 2 # 1 "globals.h" 1 extern FILE *OutFile; extern FILE *InFile; # 55 "grbTest.cpp" 2 # 1 "read_line.h" 1 void Init_ReadLine (void); void WritePrompt (void); char *GetMultiLine (void); # 56 "grbTest.cpp" 2 # 1 "mg_errors.h" 1 extern int mg_errno; extern char *mg_error_data; extern char *mg_errorstrs[]; void MgErrorData (char *s); void MgErrorDeinit (void); # 57 "grbTest.cpp" 2 # 1 "commands.h" 1 extern char *CommandsErrorStr; char *ProcessCommands (char *line, query_data * qd); void read_mgrc_file (void); # 58 "grbTest.cpp" 2 # 1 "text_get.h" 1 double FetchDocStart (query_data * qd, unsigned long DN, unsigned long * seek_pos, unsigned long * len); unsigned long FetchInitialParagraph (text_data * td, unsigned long ParaNum); int FetchCompressed (query_data * qd, char **DocBuff, DocEntry * DocEnt); text_data *LoadTextData (File * text, File * text_idx_wgt, File * text_idx); void FreeTextData (text_data * td); int GetPosLens (query_data * qd, DocEntry * Docs, int num); int LoadBuffers (query_data * qd, DocEntry * Docs, int max_mem, int num); void FreeBuffers (query_data * qd, DocEntry * Docs, int num); compression_dict *LoadCompDict (File * text_comp_dict, File * text_aux_dict, File * text_fast_comp_dict); void FreeCompDict (compression_dict * cd); int DecodeText (compression_dict * cd, unsigned char * s_in, int l_in, unsigned char * s_out, int *l_out); # 59 "grbTest.cpp" 2 void main() { int I; if (((( ( 0 ) ) & 0170000 ) == ( 0100000 )) || S_IFREG) { I = 0; } else { I = 1; } }