public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* objc/3503: ice on objc source
@ 2001-07-01 8:16 Jachym 'Freza' Holecek
0 siblings, 0 replies; only message in thread
From: Jachym 'Freza' Holecek @ 2001-07-01 8:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 3503
>Category: objc
>Synopsis: ice on libFoundation-090 source
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sun Jul 01 08:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Jachym Holecek
>Release: 3.0
>Organization:
none
>Environment:
System: Linux gloom 2.4.5 #4 Tue May 29 15:04:16 CEST 2001 i686 unknown
Architecture: i686
host: i686-freza-linux-gnu
build: i686-freza-linux-gnu
target: i686-freza-linux-gnu
configured with: ../gcc-3.0/configure --host=i686-freza-linux-gnu --enable-haifa --with-gnu-as --with-gnu-ld --enable-threads --enable-cpp --enable-languages=c++,f77,objc --with-dwarf2 --prefix=/usr --enable-shared
>Description:
The compiler crashes on the common.m and Defaults.m file from the
libFoundation-090 package, like this:
; make
Making all in Foundation...
make[1]: Entering directory `/tmp/libFoundation/libFoundation/Foundation'
make[2]: Entering directory `/tmp/libFoundation/libFoundation/Foundation'
gcc -fPIC -fgnu-runtime -I.. -g -O2 -Wall -DDEBUG -c common.m -o shared_obj/common.o
common.m: In function `handler':
common.m:87: Internal compiler error in make_decl_rtl, at varasm.c:591
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make[2]: *** [shared_obj/common.o] Error 1
make[2]: Leaving directory `/tmp/libFoundation/libFoundation/Foundation'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/tmp/libFoundation/libFoundation/Foundation'
Making all in Resources...
make[1]: Entering directory `/tmp/libFoundation/libFoundation/Resources'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/libFoundation/libFoundation/Resources'
Making all in examples...
make[1]: Entering directory `/tmp/libFoundation/libFoundation/examples'
gcc -fgnu-runtime -I.. -g -O2 -Wall -DDEBUG -c Defaults.m -o obj/Defaults.o
Defaults.m: In function `handler':
Defaults.m:137: Internal compiler error in make_decl_rtl, at varasm.c:591
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make[1]: *** [obj/Defaults.o] Error 1
make[1]: Leaving directory `/tmp/libFoundation/libFoundation/examples'
make: *** [all] Error 2
>How-To-Repeat:
I attach the preprocessed common.m source. Just do gcc file.m
>Fix:
Unknown...
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="file.m"
# 28 "Foundation/common.m"
# 1 "Foundation/common.h" 1
# 31 "Foundation/common.h"
# 1 "config.h" 1
# 221 "config.h"
# 1 "config/generic/generic.h" 1
# 222 "config.h" 2
# 32 "Foundation/common.h" 2
# 1 "/usr/include/string.h" 1 3
# 26 "/usr/include/string.h" 3
# 1 "/usr/include/features.h" 1 3
# 283 "/usr/include/features.h" 3
# 1 "/usr/include/sys/cdefs.h" 1 3
# 284 "/usr/include/features.h" 2 3
# 311 "/usr/include/features.h" 3
# 1 "/usr/include/gnu/stubs.h" 1 3
# 312 "/usr/include/features.h" 2 3
# 27 "/usr/include/string.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 199 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 3
typedef unsigned int size_t;
# 34 "/usr/include/string.h" 2 3
extern void *memcpy (void *__restrict __dest,
__const void *__restrict __src, size_t __n) ;
extern void *memmove (void *__dest, __const void *__src, size_t __n)
;
extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
int __c, 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)
__attribute__ ((__pure__));
extern void *memchr (__const void *__s, int __c, size_t __n)
__attribute__ ((__pure__));
# 77 "/usr/include/string.h" 3
extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
;
extern char *strncpy (char *__restrict __dest,
__const char *__restrict __src, size_t __n) ;
extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
;
extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
size_t __n) ;
extern int strcmp (__const char *__s1, __const char *__s2)
__attribute__ ((__pure__));
extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
__attribute__ ((__pure__));
extern int strcoll (__const char *__s1, __const char *__s2)
__attribute__ ((__pure__));
extern size_t strxfrm (char *__restrict __dest,
__const char *__restrict __src, size_t __n) ;
# 120 "/usr/include/string.h" 3
extern char *strdup (__const char *__s) __attribute__ ((__malloc__));
# 155 "/usr/include/string.h" 3
extern char *strchr (__const char *__s, int __c) __attribute__ ((__pure__));
extern char *strrchr (__const char *__s, int __c) __attribute__ ((__pure__));
# 167 "/usr/include/string.h" 3
extern size_t strcspn (__const char *__s, __const char *__reject)
__attribute__ ((__pure__));
extern size_t strspn (__const char *__s, __const char *__accept)
__attribute__ ((__pure__));
extern char *strpbrk (__const char *__s, __const char *__accept)
__attribute__ ((__pure__));
extern char *strstr (__const char *__haystack, __const char *__needle)
__attribute__ ((__pure__));
# 187 "/usr/include/string.h" 3
extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
;
extern char *__strtok_r (char *__restrict __s,
__const char *__restrict __delim,
char **__restrict __save_ptr) ;
extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
char **__restrict __save_ptr) ;
# 218 "/usr/include/string.h" 3
extern size_t strlen (__const char *__s) __attribute__ ((__pure__));
# 229 "/usr/include/string.h" 3
extern char *strerror (int __errnum) ;
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) ;
extern void __bzero (void *__s, size_t __n) ;
extern void bcopy (__const void *__src, void *__dest, size_t __n) ;
extern void bzero (void *__s, size_t __n) ;
extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
__attribute__ ((__pure__));
extern char *index (__const char *__s, int __c) __attribute__ ((__pure__));
extern char *rindex (__const char *__s, int __c) __attribute__ ((__pure__));
extern int ffs (int __i) __attribute__ ((const));
# 272 "/usr/include/string.h" 3
extern int strcasecmp (__const char *__s1, __const char *__s2)
__attribute__ ((__pure__));
extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
__attribute__ ((__pure__));
# 294 "/usr/include/string.h" 3
extern char *strsep (char **__restrict __stringp,
__const char *__restrict __delim) ;
# 35 "Foundation/common.h" 2
# 1 "/usr/include/strings.h" 1 3
# 39 "Foundation/common.h" 2
# 1 "/usr/include/memory.h" 1 3
# 26 "/usr/include/memory.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/memory.h" 2 3
# 43 "Foundation/common.h" 2
# 51 "Foundation/common.h"
# 1 "/usr/include/stdlib.h" 1 3
# 25 "/usr/include/stdlib.h" 3
# 1 "/usr/include/features.h" 1 3
# 26 "/usr/include/stdlib.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 287 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 3
typedef long int wchar_t;
# 34 "/usr/include/stdlib.h" 2 3
# 94 "/usr/include/stdlib.h" 3
typedef struct
{
int quot;
int rem;
} div_t;
typedef struct
{
long int quot;
long int rem;
} ldiv_t;
# 133 "/usr/include/stdlib.h" 3
extern size_t __ctype_get_mb_cur_max (void) ;
extern double atof (__const char *__nptr) __attribute__ ((__pure__));
extern int atoi (__const char *__nptr) __attribute__ ((__pure__));
extern long int atol (__const char *__nptr) __attribute__ ((__pure__));
__extension__ extern long long int atoll (__const char *__nptr)
__attribute__ ((__pure__));
extern double strtod (__const char *__restrict __nptr,
char **__restrict __endptr) ;
# 163 "/usr/include/stdlib.h" 3
extern long int strtol (__const char *__restrict __nptr,
char **__restrict __endptr, int __base) ;
extern unsigned long int strtoul (__const char *__restrict __nptr,
char **__restrict __endptr, int __base)
;
__extension__
extern long long int strtoq (__const char *__restrict __nptr,
char **__restrict __endptr, int __base) ;
__extension__
extern unsigned long long int strtouq (__const char *__restrict __nptr,
char **__restrict __endptr, int __base)
;
__extension__
extern long long int strtoll (__const char *__restrict __nptr,
char **__restrict __endptr, int __base) ;
__extension__
extern unsigned long long int strtoull (__const char *__restrict __nptr,
char **__restrict __endptr, int __base)
;
# 250 "/usr/include/stdlib.h" 3
extern double __strtod_internal (__const char *__restrict __nptr,
char **__restrict __endptr, int __group)
;
extern float __strtof_internal (__const char *__restrict __nptr,
char **__restrict __endptr, int __group)
;
extern long double __strtold_internal (__const char *__restrict __nptr,
char **__restrict __endptr,
int __group) ;
extern long int __strtol_internal (__const char *__restrict __nptr,
char **__restrict __endptr,
int __base, int __group) ;
extern unsigned long int __strtoul_internal (__const char *__restrict __nptr,
char **__restrict __endptr,
int __base, int __group) ;
__extension__
extern long long int __strtoll_internal (__const char *__restrict __nptr,
char **__restrict __endptr,
int __base, int __group) ;
__extension__
extern unsigned long long int __strtoull_internal (__const char *
__restrict __nptr,
char **__restrict __endptr,
int __base, int __group)
;
# 385 "/usr/include/stdlib.h" 3
extern char *l64a (long int __n) ;
extern long int a64l (__const char *__s) __attribute__ ((__pure__));
# 1 "/usr/include/sys/types.h" 1 3
# 26 "/usr/include/sys/types.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/sys/types.h" 2 3
# 1 "/usr/include/bits/types.h" 1 3
# 26 "/usr/include/bits/types.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/bits/types.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 30 "/usr/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;
__extension__ typedef unsigned long long int __u_quad_t;
__extension__ typedef long long int __quad_t;
# 49 "/usr/include/bits/types.h" 3
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;
__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_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 __u_long __rlim_t;
typedef __u_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 unsigned int __useconds_t;
typedef long int __suseconds_t;
typedef long int __swblk_t;
typedef long int __clock_t;
typedef int __clockid_t;
typedef int __timer_t;
typedef int __key_t;
typedef unsigned short int __ipc_pid_t;
typedef long int __blksize_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_quad_t __ino64_t;
typedef __loff_t __off64_t;
typedef long int __t_scalar_t;
typedef unsigned long int __t_uscalar_t;
typedef int __intptr_t;
typedef unsigned int __socklen_t;
# 1 "/usr/include/bits/pthreadtypes.h" 1 3
# 23 "/usr/include/bits/pthreadtypes.h" 3
# 1 "/usr/include/bits/sched.h" 1 3
# 68 "/usr/include/bits/sched.h" 3
struct __sched_param
{
int __sched_priority;
};
# 24 "/usr/include/bits/pthreadtypes.h" 2 3
struct _pthread_fastlock
{
long int __status;
int __spinlock;
};
typedef struct _pthread_descr_struct *_pthread_descr;
typedef struct __pthread_attr_s
{
int __detachstate;
int __schedpolicy;
struct __sched_param __schedparam;
int __inheritsched;
int __scope;
size_t __guardsize;
int __stackaddr_set;
void *__stackaddr;
size_t __stacksize;
} pthread_attr_t;
typedef struct
{
struct _pthread_fastlock __c_lock;
_pthread_descr __c_waiting;
} pthread_cond_t;
typedef struct
{
int __dummy;
} pthread_condattr_t;
typedef unsigned int pthread_key_t;
typedef struct
{
int __m_reserved;
int __m_count;
_pthread_descr __m_owner;
int __m_kind;
struct _pthread_fastlock __m_lock;
} pthread_mutex_t;
typedef struct
{
int __mutexkind;
} pthread_mutexattr_t;
typedef int pthread_once_t;
# 140 "/usr/include/bits/pthreadtypes.h" 3
typedef unsigned long int pthread_t;
# 144 "/usr/include/bits/types.h" 2 3
# 31 "/usr/include/sys/types.h" 2 3
typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;
typedef __loff_t loff_t;
typedef __ino_t ino_t;
# 58 "/usr/include/sys/types.h" 3
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;
# 96 "/usr/include/sys/types.h" 3
typedef __pid_t pid_t;
typedef __id_t id_t;
typedef __ssize_t ssize_t;
typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;
typedef __key_t key_t;
# 126 "/usr/include/sys/types.h" 3
# 1 "/usr/include/time.h" 1 3
# 67 "/usr/include/time.h" 3
# 1 "/usr/include/bits/types.h" 1 3
# 68 "/usr/include/time.h" 2 3
typedef __time_t time_t;
# 79 "/usr/include/time.h" 3
# 1 "/usr/include/bits/types.h" 1 3
# 80 "/usr/include/time.h" 2 3
typedef __clockid_t clockid_t;
# 91 "/usr/include/time.h" 3
# 1 "/usr/include/bits/types.h" 1 3
# 92 "/usr/include/time.h" 2 3
typedef __timer_t timer_t;
# 127 "/usr/include/sys/types.h" 2 3
# 140 "/usr/include/sys/types.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 141 "/usr/include/sys/types.h" 2 3
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
# 184 "/usr/include/sys/types.h" 3
typedef int int8_t __attribute__ ((__mode__ (__QI__)));
typedef int int16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef int int64_t __attribute__ ((__mode__ (__DI__)));
typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
typedef int register_t __attribute__ ((__mode__ (__word__)));
# 206 "/usr/include/sys/types.h" 3
# 1 "/usr/include/endian.h" 1 3
# 22 "/usr/include/endian.h" 3
# 1 "/usr/include/features.h" 1 3
# 23 "/usr/include/endian.h" 2 3
# 37 "/usr/include/endian.h" 3
# 1 "/usr/include/bits/endian.h" 1 3
# 38 "/usr/include/endian.h" 2 3
# 207 "/usr/include/sys/types.h" 2 3
# 1 "/usr/include/sys/select.h" 1 3
# 25 "/usr/include/sys/select.h" 3
# 1 "/usr/include/features.h" 1 3
# 26 "/usr/include/sys/select.h" 2 3
# 1 "/usr/include/bits/types.h" 1 3
# 29 "/usr/include/sys/select.h" 2 3
# 1 "/usr/include/bits/select.h" 1 3
# 32 "/usr/include/sys/select.h" 2 3
# 1 "/usr/include/bits/sigset.h" 1 3
# 23 "/usr/include/bits/sigset.h" 3
typedef int __sig_atomic_t;
typedef struct
{
unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
} __sigset_t;
# 35 "/usr/include/sys/select.h" 2 3
typedef __sigset_t sigset_t;
# 1 "/usr/include/time.h" 1 3
# 106 "/usr/include/time.h" 3
struct timespec
{
long int tv_sec;
long int tv_nsec;
};
# 44 "/usr/include/sys/select.h" 2 3
# 1 "/usr/include/bits/time.h" 1 3
# 63 "/usr/include/bits/time.h" 3
# 1 "/usr/include/bits/types.h" 1 3
# 64 "/usr/include/bits/time.h" 2 3
struct timeval
{
__time_t tv_sec;
__suseconds_t tv_usec;
};
# 46 "/usr/include/sys/select.h" 2 3
typedef long int __fd_mask;
typedef struct
{
__fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
} fd_set;
typedef __fd_mask fd_mask;
# 96 "/usr/include/sys/select.h" 3
extern int select (int __nfds, fd_set *__restrict __readfds,
fd_set *__restrict __writefds,
fd_set *__restrict __exceptfds,
struct timeval *__restrict __timeout) ;
# 210 "/usr/include/sys/types.h" 2 3
# 1 "/usr/include/sys/sysmacros.h" 1 3
# 213 "/usr/include/sys/types.h" 2 3
# 224 "/usr/include/sys/types.h" 3
typedef __blkcnt_t blkcnt_t;
typedef __fsblkcnt_t fsblkcnt_t;
typedef __fsfilcnt_t fsfilcnt_t;
# 392 "/usr/include/stdlib.h" 2 3
extern long int random (void) ;
extern void srandom (unsigned int __seed) ;
extern char *initstate (unsigned int __seed, char *__statebuf,
size_t __statelen) ;
extern char *setstate (char *__statebuf) ;
struct random_data
{
int32_t *fptr;
int32_t *rptr;
int32_t *state;
int rand_type;
int rand_deg;
int rand_sep;
int32_t *end_ptr;
};
extern int random_r (struct random_data *__restrict __buf,
int32_t *__restrict __result) ;
extern int srandom_r (unsigned int __seed, struct random_data *__buf) ;
extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
size_t __statelen,
struct random_data *__restrict __buf) ;
extern int setstate_r (char *__restrict __statebuf,
struct random_data *__restrict __buf) ;
extern int rand (void) ;
extern void srand (unsigned int __seed) ;
extern int rand_r (unsigned int *__seed) ;
extern double drand48 (void) ;
extern double erand48 (unsigned short int __xsubi[3]) ;
extern long int lrand48 (void) ;
extern long int nrand48 (unsigned short int __xsubi[3]) ;
extern long int mrand48 (void) ;
extern long int jrand48 (unsigned short int __xsubi[3]) ;
extern void srand48 (long int __seedval) ;
extern unsigned short int *seed48 (unsigned short int __seed16v[3]) ;
extern void lcong48 (unsigned short int __param[7]) ;
struct drand48_data
{
unsigned short int __x[3];
unsigned short int __old_x[3];
unsigned short int __c;
unsigned short int __init;
unsigned long long int __a;
};
extern int drand48_r (struct drand48_data *__restrict __buffer,
double *__restrict __result) ;
extern int erand48_r (unsigned short int __xsubi[3],
struct drand48_data *__restrict __buffer,
double *__restrict __result) ;
extern int lrand48_r (struct drand48_data *__restrict __buffer,
long int *__restrict __result) ;
extern int nrand48_r (unsigned short int __xsubi[3],
struct drand48_data *__restrict __buffer,
long int *__restrict __result) ;
extern int mrand48_r (struct drand48_data *__restrict __buffer,
long int *__restrict __result) ;
extern int jrand48_r (unsigned short int __xsubi[3],
struct drand48_data *__restrict __buffer,
long int *__restrict __result) ;
extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
;
extern int seed48_r (unsigned short int __seed16v[3],
struct drand48_data *__buffer) ;
extern int lcong48_r (unsigned short int __param[7],
struct drand48_data *__buffer) ;
# 528 "/usr/include/stdlib.h" 3
extern void *malloc (size_t __size) __attribute__ ((__malloc__));
extern void *calloc (size_t __nmemb, size_t __size)
__attribute__ ((__malloc__));
extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__malloc__));
extern void free (void *__ptr) ;
extern void cfree (void *__ptr) ;
# 1 "/usr/include/alloca.h" 1 3
# 22 "/usr/include/alloca.h" 3
# 1 "/usr/include/features.h" 1 3
# 23 "/usr/include/alloca.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 26 "/usr/include/alloca.h" 2 3
extern void *alloca (size_t __size) ;
# 548 "/usr/include/stdlib.h" 2 3
extern void *valloc (size_t __size) __attribute__ ((__malloc__));
# 562 "/usr/include/stdlib.h" 3
extern void abort (void) __attribute__ ((__noreturn__));
extern int atexit (void (*__func) (void)) ;
extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
;
extern void exit (int __status) __attribute__ ((__noreturn__));
# 588 "/usr/include/stdlib.h" 3
extern char *getenv (__const char *__name) ;
extern char *__secure_getenv (__const char *__name) ;
extern int putenv (char *__string) ;
extern int setenv (__const char *__name, __const char *__value, int __replace)
;
extern int unsetenv (__const char *__name) ;
extern int clearenv (void) ;
# 624 "/usr/include/stdlib.h" 3
extern char *mktemp (char *__template) ;
extern int mkstemp (char *__template) ;
# 651 "/usr/include/stdlib.h" 3
extern char *mkdtemp (char *__template) ;
extern int system (__const char *__command) ;
# 673 "/usr/include/stdlib.h" 3
extern char *realpath (__const char *__restrict __name,
char *__restrict __resolved) ;
typedef int (*__compar_fn_t) (__const void *, __const void *);
# 690 "/usr/include/stdlib.h" 3
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) __attribute__ ((__const__));
extern long int labs (long int __x) __attribute__ ((__const__));
# 711 "/usr/include/stdlib.h" 3
extern div_t div (int __numer, int __denom)
__attribute__ ((__const__));
extern ldiv_t ldiv (long int __numer, long int __denom)
__attribute__ ((__const__));
# 729 "/usr/include/stdlib.h" 3
extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
int *__restrict __sign) ;
extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
int *__restrict __sign) ;
extern char *gcvt (double __value, int __ndigit, char *__buf) ;
extern char *qecvt (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign) ;
extern char *qfcvt (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign) ;
extern char *qgcvt (long double __value, int __ndigit, char *__buf) ;
extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
int *__restrict __sign, char *__restrict __buf,
size_t __len) ;
extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
int *__restrict __sign, char *__restrict __buf,
size_t __len) ;
extern int qecvt_r (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign,
char *__restrict __buf, size_t __len) ;
extern int qfcvt_r (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign,
char *__restrict __buf, size_t __len) ;
extern int mblen (__const char *__s, size_t __n) ;
extern int mbtowc (wchar_t *__restrict __pwc,
__const char *__restrict __s, size_t __n) ;
extern int wctomb (char *__s, wchar_t __wchar) ;
extern size_t mbstowcs (wchar_t *__restrict __pwcs,
__const char *__restrict __s, size_t __n) ;
extern size_t wcstombs (char *__restrict __s,
__const wchar_t *__restrict __pwcs, size_t __n)
;
extern int rpmatch (__const char *__response) ;
# 859 "/usr/include/stdlib.h" 3
extern int getloadavg (double __loadavg[], int __nelem) ;
# 52 "Foundation/common.h" 2
# 64 "Foundation/common.h"
# 1 "/usr/include/unistd.h" 1 3
# 26 "/usr/include/unistd.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/unistd.h" 2 3
# 175 "/usr/include/unistd.h" 3
# 1 "/usr/include/bits/posix_opt.h" 1 3
# 176 "/usr/include/unistd.h" 2 3
# 190 "/usr/include/unistd.h" 3
# 1 "/usr/include/bits/types.h" 1 3
# 191 "/usr/include/unistd.h" 2 3
# 199 "/usr/include/unistd.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 200 "/usr/include/unistd.h" 2 3
# 240 "/usr/include/unistd.h" 3
typedef __intptr_t intptr_t;
typedef __socklen_t socklen_t;
# 260 "/usr/include/unistd.h" 3
extern int access (__const char *__name, int __type) ;
# 290 "/usr/include/unistd.h" 3
extern __off_t lseek (int __fd, __off_t __offset, int __whence) ;
# 306 "/usr/include/unistd.h" 3
extern int close (int __fd) ;
extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ;
extern ssize_t write (int __fd, __const void *__buf, size_t __n) ;
# 353 "/usr/include/unistd.h" 3
extern int pipe (int __pipedes[2]) ;
# 362 "/usr/include/unistd.h" 3
extern unsigned int alarm (unsigned int __seconds) ;
# 371 "/usr/include/unistd.h" 3
extern unsigned int sleep (unsigned int __seconds) ;
extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
;
extern int usleep (__useconds_t __useconds) ;
extern int pause (void) ;
extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
;
extern int fchown (int __fd, __uid_t __owner, __gid_t __group) ;
extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
;
extern int chdir (__const char *__path) ;
extern int fchdir (int __fd) ;
# 423 "/usr/include/unistd.h" 3
extern char *getcwd (char *__buf, size_t __size) ;
# 436 "/usr/include/unistd.h" 3
extern char *getwd (char *__buf) ;
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[]) ;
# 467 "/usr/include/unistd.h" 3
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 int nice (int __inc) ;
extern void _exit (int __status) __attribute__ ((__noreturn__));
# 1 "/usr/include/bits/confname.h" 1 3
# 25 "/usr/include/bits/confname.h" 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,
_PC_REC_INCR_XFER_SIZE,
_PC_REC_MAX_XFER_SIZE,
_PC_REC_MIN_XFER_SIZE,
_PC_REC_XFER_ALIGN
};
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_IOV_MAX = _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,
_SC_ADVISORY_INFO,
_SC_BARRIERS,
_SC_BASE,
_SC_C_LANG_SUPPORT,
_SC_C_LANG_SUPPORT_R,
_SC_CLOCK_SELECTION,
_SC_CPUTIME,
_SC_THREAD_CPUTIME,
_SC_DEVICE_IO,
_SC_DEVICE_SPECIFIC,
_SC_DEVICE_SPECIFIC_R,
_SC_FD_MGMT,
_SC_FIFO,
_SC_PIPE,
_SC_FILE_ATTRIBUTES,
_SC_FILE_LOCKING,
_SC_FILE_SYSTEM,
_SC_MONOTONIC_CLOCK,
_SC_MULTIPLE_PROCESS,
_SC_SINGLE_PROCESS,
_SC_NETWORKING,
_SC_READER_WRITER_LOCKS,
_SC_SPIN_LOCKS,
_SC_REGEXP,
_SC_REGEX_VERSION,
_SC_SHELL,
_SC_SIGNALS,
_SC_SPAWN,
_SC_SPORADIC_SERVER,
_SC_THREAD_SPORADIC_SERVER,
_SC_SYSTEM_DATABASE,
_SC_SYSTEM_DATABASE_R,
_SC_TIMEOUTS,
_SC_TYPED_MEMORY_OBJECTS,
_SC_USER_GROUPS,
_SC_USER_GROUPS_R,
_SC_2_PBS,
_SC_2_PBS_ACCOUNTING,
_SC_2_PBS_LOCATE,
_SC_2_PBS_MESSAGE,
_SC_2_PBS_TRACK,
_SC_SYMLOOP,
_SC_STREAMS,
_SC_2_PBS_CHECKPOINT
};
enum
{
_CS_PATH
# 506 "/usr/include/bits/confname.h" 3
};
# 501 "/usr/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) __attribute__ ((__const__));
extern size_t confstr (int __name, char *__buf, size_t __len) ;
extern __pid_t getpid (void) ;
extern __pid_t getppid (void) ;
extern __pid_t getpgrp (void) ;
# 536 "/usr/include/unistd.h" 3
extern __pid_t __getpgid (__pid_t __pid) ;
# 545 "/usr/include/unistd.h" 3
extern int setpgid (__pid_t __pid, __pid_t __pgid) ;
# 562 "/usr/include/unistd.h" 3
extern int setpgrp (void) ;
# 580 "/usr/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[]) ;
# 613 "/usr/include/unistd.h" 3
extern int setuid (__uid_t __uid) ;
extern int setreuid (__uid_t __ruid, __uid_t __euid) ;
extern int seteuid (__uid_t __uid) ;
extern int setgid (__gid_t __gid) ;
extern int setregid (__gid_t __rgid, __gid_t __egid) ;
extern int setegid (__gid_t __gid) ;
extern __pid_t fork (void) ;
extern __pid_t vfork (void) ;
extern char *ttyname (int __fd) ;
extern int ttyname_r (int __fd, char *__buf, size_t __buflen) ;
extern int isatty (int __fd) ;
extern int ttyslot (void) ;
extern int link (__const char *__from, __const char *__to) ;
extern int symlink (__const char *__from, __const char *__to) ;
extern int readlink (__const char *__restrict __path, char *__restrict __buf,
size_t __len) ;
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) ;
# 717 "/usr/include/unistd.h" 3
extern int setlogin (__const char *__name) ;
# 726 "/usr/include/unistd.h" 3
# 1 "/usr/include/getopt.h" 1 3
# 47 "/usr/include/getopt.h" 3
extern char *optarg;
# 61 "/usr/include/getopt.h" 3
extern int optind;
extern int opterr;
extern int optopt;
# 145 "/usr/include/getopt.h" 3
extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
# 727 "/usr/include/unistd.h" 2 3
# 735 "/usr/include/unistd.h" 3
extern int gethostname (char *__name, socklen_t __len) ;
extern int sethostname (__const char *__name, size_t __len) ;
extern int sethostid (long int __id) ;
extern int getdomainname (char *__name, size_t __len) ;
extern int setdomainname (__const char *__name, size_t __len) ;
extern int vhangup (void) ;
extern int revoke (__const char *__file) ;
extern int profil (unsigned short int *__sample_buffer, size_t __size,
size_t __offset, unsigned int __scale) ;
extern int acct (__const char *__name) ;
extern char *getusershell (void) ;
extern void endusershell (void) ;
extern void setusershell (void) ;
extern int daemon (int __nochdir, int __noclose) ;
extern int chroot (__const char *__path) ;
extern char *getpass (__const char *__prompt) ;
extern int fsync (int __fd) ;
extern long int gethostid (void) ;
extern void sync (void) ;
extern int getpagesize (void) __attribute__ ((__const__));
extern int truncate (__const char *__file, __off_t __length) ;
# 840 "/usr/include/unistd.h" 3
extern int ftruncate (int __fd, __off_t __length) ;
# 856 "/usr/include/unistd.h" 3
extern int getdtablesize (void) ;
# 865 "/usr/include/unistd.h" 3
extern int brk (void *__addr) ;
extern void *sbrk (intptr_t __delta) ;
# 886 "/usr/include/unistd.h" 3
extern long int syscall (long int __sysno, ...) ;
# 906 "/usr/include/unistd.h" 3
extern int lockf (int __fd, int __cmd, __off_t __len) ;
# 937 "/usr/include/unistd.h" 3
extern int fdatasync (int __fildes) ;
# 982 "/usr/include/unistd.h" 3
extern int pthread_atfork (void (*__prepare) (void),
void (*__parent) (void),
void (*__child) (void)) ;
# 65 "Foundation/common.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 1 3
# 36 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
# 1 "/usr/include/features.h" 1 3
# 37 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 43 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 2 3
# 1 "/usr/include/bits/types.h" 1 3
# 45 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 2 3
# 53 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
typedef struct _IO_FILE FILE;
# 63 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
typedef struct _IO_FILE __FILE;
# 73 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
# 1 "/usr/include/libio.h" 1 3
# 30 "/usr/include/libio.h" 3
# 1 "/usr/include/_G_config.h" 1 3
# 9 "/usr/include/_G_config.h" 3
# 1 "/usr/include/bits/types.h" 1 3
# 10 "/usr/include/_G_config.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 312 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 3
typedef unsigned int wint_t;
# 15 "/usr/include/_G_config.h" 2 3
# 24 "/usr/include/_G_config.h" 3
# 1 "/usr/include/wchar.h" 1 3
# 48 "/usr/include/wchar.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 49 "/usr/include/wchar.h" 2 3
# 1 "/usr/include/bits/wchar.h" 1 3
# 51 "/usr/include/wchar.h" 2 3
# 67 "/usr/include/wchar.h" 3
typedef struct
{
int __count;
union
{
wint_t __wch;
char __wchb[4];
} __value;
} __mbstate_t;
# 25 "/usr/include/_G_config.h" 2 3
typedef struct
{
__off_t __pos;
__mbstate_t __state;
} _G_fpos_t;
typedef struct
{
__off64_t __pos;
__mbstate_t __state;
} _G_fpos64_t;
# 44 "/usr/include/_G_config.h" 3
# 1 "/usr/include/gconv.h" 1 3
# 26 "/usr/include/gconv.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/gconv.h" 2 3
# 1 "/usr/include/wchar.h" 1 3
# 48 "/usr/include/wchar.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 49 "/usr/include/wchar.h" 2 3
# 1 "/usr/include/bits/wchar.h" 1 3
# 51 "/usr/include/wchar.h" 2 3
# 29 "/usr/include/gconv.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 31 "/usr/include/gconv.h" 2 3
enum
{
__GCONV_OK = 0,
__GCONV_NOCONV,
__GCONV_NODB,
__GCONV_NOMEM,
__GCONV_EMPTY_INPUT,
__GCONV_FULL_OUTPUT,
__GCONV_ILLEGAL_INPUT,
__GCONV_INCOMPLETE_INPUT,
__GCONV_ILLEGAL_DESCRIPTOR,
__GCONV_INTERNAL_ERROR
};
enum
{
__GCONV_IS_LAST = 0x0001,
__GCONV_IGNORE_ERRORS = 0x0002
};
struct __gconv_step;
struct __gconv_step_data;
struct __gconv_loaded_object;
struct __gconv_trans_data;
typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
__const unsigned char **, __const unsigned char *,
unsigned char **, size_t *, int, int);
typedef int (*__gconv_init_fct) (struct __gconv_step *);
typedef void (*__gconv_end_fct) (struct __gconv_step *);
typedef int (*__gconv_trans_fct) (struct __gconv_step *,
struct __gconv_step_data *, void *,
__const unsigned char *,
__const unsigned char **,
__const unsigned char *, unsigned char **,
size_t *);
typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
__const unsigned char *,
unsigned char *, unsigned char *);
typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
size_t *);
typedef int (*__gconv_trans_init_fct) (void **, const char *);
typedef void (*__gconv_trans_end_fct) (void *);
struct __gconv_trans_data
{
__gconv_trans_fct __trans_fct;
__gconv_trans_context_fct __trans_context_fct;
__gconv_trans_end_fct __trans_end_fct;
void *__data;
struct __gconv_trans_data *__next;
};
struct __gconv_step
{
struct __gconv_loaded_object *__shlib_handle;
__const char *__modname;
int __counter;
char *__from_name;
char *__to_name;
__gconv_fct __fct;
__gconv_init_fct __init_fct;
__gconv_end_fct __end_fct;
int __min_needed_from;
int __max_needed_from;
int __min_needed_to;
int __max_needed_to;
int __stateful;
void *__data;
};
struct __gconv_step_data
{
unsigned char *__outbuf;
unsigned char *__outbufend;
int __flags;
int __invocation_counter;
int __internal_use;
__mbstate_t *__statep;
__mbstate_t __state;
struct __gconv_trans_data *__trans;
};
typedef struct __gconv_info
{
size_t __nsteps;
struct __gconv_step *__steps;
__extension__ struct __gconv_step_data __data [];
} *__gconv_t;
# 45 "/usr/include/_G_config.h" 2 3
typedef union
{
struct __gconv_info __cd;
struct
{
struct __gconv_info __cd;
struct __gconv_step_data __data;
} __combined;
} _G_iconv_t;
typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
# 31 "/usr/include/libio.h" 2 3
# 51 "/usr/include/libio.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 43 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 3
typedef __builtin_va_list __gnuc_va_list;
# 52 "/usr/include/libio.h" 2 3
# 158 "/usr/include/libio.h" 3
struct _IO_jump_t; struct _IO_FILE;
# 168 "/usr/include/libio.h" 3
typedef void _IO_lock_t;
struct _IO_marker {
struct _IO_marker *_next;
struct _IO_FILE *_sbuf;
int _pos;
# 191 "/usr/include/libio.h" 3
};
enum __codecvt_result
{
__codecvt_ok,
__codecvt_partial,
__codecvt_error,
__codecvt_noconv
};
# 259 "/usr/include/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;
signed char _vtable_offset;
char _shortbuf[1];
_IO_lock_t *_lock;
# 303 "/usr/include/libio.h" 3
__off64_t _offset;
void *__pad1;
void *__pad2;
int _mode;
char _unused2[15 * sizeof (int) - 2 * sizeof (void *)];
};
typedef struct _IO_FILE _IO_FILE;
struct _IO_FILE_plus;
extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
# 342 "/usr/include/libio.h" 3
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
size_t __n);
typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
typedef int __io_close_fn (void *__cookie);
# 394 "/usr/include/libio.h" 3
extern int __underflow (_IO_FILE *) ;
extern int __uflow (_IO_FILE *) ;
extern int __overflow (_IO_FILE *, int) ;
extern wint_t __wunderflow (_IO_FILE *) ;
extern wint_t __wuflow (_IO_FILE *) ;
extern wint_t __woverflow (_IO_FILE *, wint_t) ;
# 424 "/usr/include/libio.h" 3
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 *) ;
# 454 "/usr/include/libio.h" 3
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
__gnuc_va_list, int *__restrict) ;
extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
__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 *) ;
# 74 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 2 3
# 88 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
typedef _G_fpos_t fpos_t;
# 137 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
# 1 "/usr/include/bits/stdio_lim.h" 1 3
# 138 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/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) ;
# 169 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern char *tmpnam (char *__s) ;
extern char *tmpnam_r (char *__s) ;
# 186 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern char *tempnam (__const char *__dir, __const char *__pfx)
__attribute__ ((__malloc__));
extern int fclose (FILE *__stream) ;
extern int fflush (FILE *__stream) ;
extern int fflush_unlocked (FILE *__stream) ;
# 209 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern FILE *fopen (__const char *__restrict __filename,
__const char *__restrict __modes) ;
extern FILE *freopen (__const char *__restrict __filename,
__const char *__restrict __modes,
FILE *__restrict __stream) ;
# 239 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern FILE *fdopen (int __fd, __const char *__modes) ;
# 262 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) ;
extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
int __modes, size_t __n) ;
extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
size_t __size) ;
extern void setlinebuf (FILE *__stream) ;
extern int fprintf (FILE *__restrict __stream,
__const char *__restrict __format, ...) ;
extern int printf (__const char *__restrict __format, ...) ;
extern int sprintf (char *__restrict __s,
__const char *__restrict __format, ...) ;
extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg) ;
extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg)
;
extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg) ;
extern int snprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__format__ (__printf__, 3, 0)));
# 333 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern int fscanf (FILE *__restrict __stream,
__const char *__restrict __format, ...) ;
extern int scanf (__const char *__restrict __format, ...) ;
extern int sscanf (__const char *__restrict __s,
__const char *__restrict __format, ...) ;
# 359 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern int fgetc (FILE *__stream) ;
extern int getc (FILE *__stream) ;
extern int getchar (void) ;
extern int getc_unlocked (FILE *__stream) ;
extern int getchar_unlocked (void) ;
extern int fgetc_unlocked (FILE *__stream) ;
extern int fputc (int __c, FILE *__stream) ;
extern int putc (int __c, FILE *__stream) ;
extern int putchar (int __c) ;
extern int fputc_unlocked (int __c, FILE *__stream) ;
extern int putc_unlocked (int __c, FILE *__stream) ;
extern int putchar_unlocked (int __c) ;
extern int getw (FILE *__stream) ;
extern int putw (int __w, FILE *__stream) ;
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
;
# 425 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern char *gets (char *__s) ;
# 449 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern int fputs (__const char *__restrict __s, FILE *__restrict __stream)
;
# 459 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern int puts (__const char *__s) ;
extern int ungetc (int __c, FILE *__stream) ;
extern size_t fread (void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) ;
extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __s) ;
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) ;
extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) ;
extern int fseek (FILE *__stream, long int __off, int __whence) ;
extern long int ftell (FILE *__stream) ;
extern void rewind (FILE *__stream) ;
# 503 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos)
;
extern int fsetpos (FILE *__stream, __const fpos_t *__pos) ;
# 539 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern void clearerr (FILE *__stream) ;
extern int feof (FILE *__stream) ;
extern int ferror (FILE *__stream) ;
extern void clearerr_unlocked (FILE *__stream) ;
extern int feof_unlocked (FILE *__stream) ;
extern int ferror_unlocked (FILE *__stream) ;
extern void perror (__const char *__s) ;
extern int sys_nerr;
extern __const char *__const sys_errlist[];
# 570 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern int fileno (FILE *__stream) ;
extern int fileno_unlocked (FILE *__stream) ;
extern FILE *popen (__const char *__command, __const char *__modes) ;
extern int pclose (FILE *__stream) ;
extern char *ctermid (char *__s) ;
# 617 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 3
extern void flockfile (FILE *__stream) ;
extern int ftrylockfile (FILE *__stream) ;
extern void funlockfile (FILE *__stream) ;
# 68 "Foundation/common.h" 2
# 1 "/usr/include/sys/types.h" 1 3
# 69 "Foundation/common.h" 2
# 1 "/usr/include/sys/stat.h" 1 3
# 26 "/usr/include/sys/stat.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/sys/stat.h" 2 3
# 1 "/usr/include/bits/types.h" 1 3
# 29 "/usr/include/sys/stat.h" 2 3
# 98 "/usr/include/sys/stat.h" 3
# 1 "/usr/include/bits/stat.h" 1 3
# 36 "/usr/include/bits/stat.h" 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;
__blksize_t 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/include/sys/stat.h" 2 3
# 200 "/usr/include/sys/stat.h" 3
extern int stat (__const char *__restrict __file,
struct stat *__restrict __buf) ;
extern int fstat (int __fd, struct stat *__buf) ;
# 228 "/usr/include/sys/stat.h" 3
extern int lstat (__const char *__restrict __file,
struct stat *__restrict __buf) ;
# 249 "/usr/include/sys/stat.h" 3
extern int chmod (__const char *__file, __mode_t __mode) ;
extern int fchmod (int __fd, __mode_t __mode) ;
extern __mode_t umask (__mode_t __mask) ;
# 268 "/usr/include/sys/stat.h" 3
extern int mkdir (__const char *__path, __mode_t __mode) ;
extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
;
extern int mkfifo (__const char *__path, __mode_t __mode) ;
# 306 "/usr/include/sys/stat.h" 3
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) ;
# 337 "/usr/include/sys/stat.h" 3
extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
__dev_t *__dev) ;
extern __inline__ int stat (__const char *__path,
struct stat *__statbuf)
{
return __xstat (3, __path, __statbuf);
}
extern __inline__ int lstat (__const char *__path,
struct stat *__statbuf)
{
return __lxstat (3, __path, __statbuf);
}
extern __inline__ int fstat (int __fd, struct stat *__statbuf)
{
return __fxstat (3, __fd, __statbuf);
}
extern __inline__ int mknod (__const char *__path, __mode_t __mode,
__dev_t __dev)
{
return __xmknod (1, __path, __mode, &__dev);
}
# 70 "Foundation/common.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 1 3
# 11 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/syslimits.h" 1 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 1 3
# 130 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 3
# 1 "/usr/include/limits.h" 1 3
# 26 "/usr/include/limits.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/limits.h" 2 3
# 144 "/usr/include/limits.h" 3
# 1 "/usr/include/bits/posix1_lim.h" 1 3
# 126 "/usr/include/bits/posix1_lim.h" 3
# 1 "/usr/include/bits/local_lim.h" 1 3
# 36 "/usr/include/bits/local_lim.h" 3
# 1 "/usr/include/linux/limits.h" 1 3
# 37 "/usr/include/bits/local_lim.h" 2 3
# 127 "/usr/include/bits/posix1_lim.h" 2 3
# 145 "/usr/include/limits.h" 2 3
# 1 "/usr/include/bits/posix2_lim.h" 1 3
# 149 "/usr/include/limits.h" 2 3
# 131 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 2 3
# 8 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/syslimits.h" 2 3
# 12 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 2 3
# 71 "Foundation/common.h" 2
# 1 "/usr/include/fcntl.h" 1 3
# 26 "/usr/include/fcntl.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/fcntl.h" 2 3
# 1 "/usr/include/bits/fcntl.h" 1 3
# 25 "/usr/include/bits/fcntl.h" 3
# 1 "/usr/include/sys/types.h" 1 3
# 26 "/usr/include/bits/fcntl.h" 2 3
# 136 "/usr/include/bits/fcntl.h" 3
struct flock
{
short int l_type;
short int l_whence;
__off_t l_start;
__off_t l_len;
__pid_t l_pid;
};
# 34 "/usr/include/fcntl.h" 2 3
# 60 "/usr/include/fcntl.h" 3
extern int fcntl (int __fd, int __cmd, ...) ;
extern int open (__const char *__file, int __oflag, ...) ;
# 83 "/usr/include/fcntl.h" 3
extern int creat (__const char *__file, __mode_t __mode) ;
# 72 "Foundation/common.h" 2
# 1 "/usr/include/pwd.h" 1 3
# 26 "/usr/include/pwd.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/pwd.h" 2 3
# 1 "/usr/include/bits/types.h" 1 3
# 31 "/usr/include/pwd.h" 2 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 34 "/usr/include/pwd.h" 2 3
# 50 "/usr/include/pwd.h" 3
struct passwd
{
char *pw_name;
char *pw_passwd;
__uid_t pw_uid;
__gid_t pw_gid;
char *pw_gecos;
char *pw_dir;
char *pw_shell;
};
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdio.h" 1 3
# 65 "/usr/include/pwd.h" 2 3
extern void setpwent (void) ;
extern void endpwent (void) ;
extern struct passwd *getpwent (void) ;
extern struct passwd *fgetpwent (FILE *__stream) ;
extern int putpwent (__const struct passwd *__restrict __p,
FILE *__restrict __f) ;
extern struct passwd *getpwuid (__uid_t __uid) ;
extern struct passwd *getpwnam (__const char *__name) ;
# 111 "/usr/include/pwd.h" 3
extern int getpwent_r (struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result) ;
extern int getpwuid_r (__uid_t __uid,
struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result) ;
extern int getpwnam_r (__const char *__restrict __name,
struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result) ;
extern int fgetpwent_r (FILE *__restrict __stream,
struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result) ;
# 75 "Foundation/common.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 110 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 3
typedef __gnuc_va_list va_list;
# 77 "Foundation/common.h" 2
# 95 "Foundation/common.h"
@class NSString;
@class NSData;
static inline void *Malloc(int) __attribute__((unused));
static inline void *MallocAtomic(int) __attribute__((unused));
static inline void Free(void*) __attribute__((unused));
static inline void *Calloc(int, int) __attribute__((unused));
static inline void *CallocAtomic(int, int) __attribute__((unused));
static inline void *Realloc(void*, int) __attribute__((unused));
static inline int Strlen(const char*) __attribute__((unused));
static inline char* Strdup(const char*) __attribute__((unused));
static inline char* Strcpy (char*, const char*) __attribute__((unused));
static inline char* Strncpy (char*, const char*, unsigned)
__attribute__((unused));
static inline char* Strcat (char*, const char*) __attribute__((unused));
static inline char* Strncat (char*, const char*, unsigned)
__attribute__((unused));
static inline int Strcmp(const char*, const char*) __attribute__((unused));
static inline int Strncmp(const char*, const char*, unsigned)
__attribute__((unused));
static inline int Atoi(const char*) __attribute__((unused));
static inline long Atol(const char*) __attribute__((unused));
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSObject.h"
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 1 3
# 34 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 3
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 1 3
# 147 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stddef.h" 3
typedef int ptrdiff_t;
# 35 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 2 3
typedef unsigned char BOOL;
# 51 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 3
typedef const struct objc_selector
{
void *sel_id;
const char *sel_types;
} *SEL;
inline static BOOL
sel_eq (SEL s1, SEL s2)
{
if (s1 == 0 || s2 == 0)
return s1 == s2;
else
return s1->sel_id == s2->sel_id;
}
typedef struct objc_object {
struct objc_class* class_pointer;
} *id;
typedef id (*IMP)(id, SEL, ...);
typedef char *STR;
# 97 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 3
typedef struct objc_class *MetaClass;
typedef struct objc_class *Class;
struct objc_class {
MetaClass class_pointer;
struct objc_class* super_class;
const char* name;
long version;
unsigned long info;
long instance_size;
struct objc_ivar_list* ivars;
struct objc_method_list* methods;
struct sarray * dtable;
struct objc_class* subclass_list;
struct objc_class* sibling_class;
struct objc_protocol_list *protocols;
void* gc_object_type;
};
# 141 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 3
@class Protocol;
typedef void* retval_t;
typedef void(*apply_t)(void);
typedef union {
char *arg_ptr;
char arg_regs[sizeof (char*)];
} *arglist_t;
IMP objc_msg_lookup(id receiver, SEL op);
# 30 "Foundation/NSObject.h" 2
# 39 "Foundation/NSObject.h"
typedef double NSTimeInterval;
@class Protocol;
@class NSZone;
@class NSString;
@class NSCoder;
@class NSArchiver;
@class NSMethodSignature;
@class NSInvocation;
@protocol NSObject
- (Class)class;
- (Class)superclass;
- (NSZone*)zone;
- (BOOL)isProxy;
- (BOOL)isKindOfClass:(Class)aClass;
- (BOOL)isMemberOfClass:(Class)aClass;
- (BOOL)conformsToProtocol:(Protocol*)aProtocol;
- (BOOL)respondsToSelector:(SEL)aSelector;
- (id)autorelease;
- (oneway void)release;
- (id)retain;
- (unsigned int)retainCount;
- (unsigned)hash;
- (BOOL)isEqual:(id)anObject;
- (id)self;
- (id)performSelector:(SEL)aSelector;
- (id)performSelector:(SEL)aSelector withObject:(id)anObject;
- (id)performSelector:(SEL)aSelector withObject:(id)anObject
withObject:(id)anotherObject;
- (NSString*)description;
@end
@protocol NSCopying
- (id)copyWithZone:(NSZone*)zone;
@end
@protocol NSMutableCopying
- (id)mutableCopyWithZone:(NSZone*)zone;
@end
@protocol NSCoding
- (void)encodeWithCoder:(NSCoder*)aCoder;
- (id)initWithCoder:(NSCoder*)aDecoder;
@end
@interface NSObject <NSObject>
{
Class isa;
}
+ (void)initialize;
+ (id)alloc;
+ (id)allocWithZone:(NSZone*)zone;
+ (id)new;
- (void)dealloc;
- (id)init;
+ (BOOL)instancesRespondToSelector:(SEL)aSelector;
+ (BOOL)conformsToProtocol:(Protocol*)aProtocol;
+ (IMP)instanceMethodForSelector:(SEL)aSelector;
- (IMP)methodForSelector:(SEL)aSelector;
+ (NSMethodSignature*)instanceMethodSignatureForSelector:(SEL)aSelector;
- (NSMethodSignature*)methodSignatureForSelector:(SEL)aSelector;
+ (void)poseAsClass:(Class)aClass;
- (void)doesNotRecognizeSelector:(SEL)aSelector;
+ (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget
selector:(SEL)aSelector
object:(id)anObject;
- (void)performSelector:(SEL)aSelector
withObject:(id)anObject
afterDelay:(NSTimeInterval)delay;
- (void)forwardInvocation:(NSInvocation*)anInvocation;
- (id)awakeAfterUsingCoder:(NSCoder*)aDecoder;
- (Class)classForArchiver;
- (Class)classForCoder;
- (id)replacementObjectForArchiver:(NSArchiver*)anArchiver;
- (id)replacementObjectForCoder:(NSCoder*)anEncoder;
+ (void)setVersion:(int)version;
+ (int)version;
- (id)copy;
- (id)mutableCopy;
- (NSString*)stringRepresentation;
@end
@interface NSObject (GNU)
- (Class)transmuteClassTo:(Class)aClassObject;
- subclassResponsibility:(SEL)aSel;
- shouldNotImplement:(SEL)aSel;
- notImplemented:(SEL)aSel;
@end
typedef enum _NSComparisonResult {
NSOrderedAscending = -1,
NSOrderedSame = 0,
NSOrderedDescending = 1
} NSComparisonResult;
enum {NSNotFound = 0x7fffffff};
# 217 "Foundation/NSObject.h"
@protocol GCFinalization
- (void)gcFinalize;
@end
# 228 "Foundation/NSObject.h"
extern BOOL _usesBoehmGC;
# 271 "Foundation/NSObject.h"
# 1 "Foundation/NSZone.h" 1
# 28 "Foundation/NSZone.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSZone.h" 2
@class NSString;
@interface NSZone : NSObject
{
unsigned refCount;
NSString *name;
}
+ (void)setDefaultZone:(NSZone*)zone;
+ (NSZone*)defaultZone;
+ (NSZone*)zoneFromPointer:(void*)pointer;
+ (BOOL)checkZone;
+ (id)allocZoneInstance;
- initForSize:(unsigned)startSize granularity:(unsigned)granularity
canFree:(BOOL)canFree;
- (void*)malloc:(unsigned)size;
- (void*)mallocAtomic:(unsigned)size;
- (void*)calloc:(unsigned)numElems byteSize:(unsigned)byteSize;
- (void*)callocAtomic:(unsigned)numElems byteSize:(unsigned)byteSize;
- (void*)realloc:(void*)pointer size:(unsigned)size;
- (void)recycle;
- (BOOL)pointerInZone:(void*)pointer;
- (void)freePointer:(void*)pointer;
- (void)setName:(NSString*)name;
- (NSString*)name;
- (BOOL)checkZone;
@end
static inline NSZone *NSCreateZone(unsigned, unsigned, BOOL)
__attribute__((unused));
static inline NSZone *NSDefaultMallocZone(void) __attribute__((unused));
static inline NSZone *NSZoneFromPointer(void *) __attribute__((unused));
static inline void *NSZoneMalloc(NSZone*, unsigned) __attribute__((unused));
static inline void *NSZoneMallocAtomic(NSZone*, unsigned)
__attribute__((unused));
static inline void *NSZoneCalloc(NSZone*, unsigned, unsigned)
__attribute__((unused));
static inline void *NSZoneCallocAtomic(NSZone*, unsigned, unsigned)
__attribute__((unused));
static inline void *NSZoneRealloc(NSZone*, void*, unsigned)
__attribute__((unused));
static inline void NSRecycleZone(NSZone*) __attribute__((unused));
static inline void NSZoneFree(NSZone*, void*) __attribute__((unused));
static inline void NSSetZoneName(NSZone*, NSString*) __attribute__((unused));
static inline NSString *NSZoneName(NSZone*) __attribute__((unused));
static inline
NSZone *NSCreateZone(unsigned startSize, unsigned granularity, BOOL canFree)
{
return [[NSZone alloc] initForSize:startSize
granularity:granularity canFree:canFree];
}
static inline
NSZone *NSDefaultMallocZone(void)
{
return [NSZone defaultZone];
}
static inline
NSZone *NSZoneFromPointer(void *pointer)
{
return [NSZone zoneFromPointer:pointer];
}
static inline
void *NSZoneMalloc(NSZone *zone, unsigned size)
{
return zone
? [zone malloc:size]
: [[NSZone defaultZone] malloc:size];
}
static inline
void *NSZoneMallocAtomic(NSZone *zone, unsigned size)
{
return zone
? [zone mallocAtomic:size]
: [[NSZone defaultZone] mallocAtomic:size];
}
static inline
void *NSZoneCalloc(NSZone *zone, unsigned numElems, unsigned byteSize)
{
return zone
? [zone calloc:numElems byteSize:byteSize]
: [[NSZone defaultZone] calloc:numElems byteSize:byteSize];
}
static inline
void *NSZoneCallocAtomic(NSZone *zone, unsigned numElems, unsigned byteSize)
{
return zone
? [zone callocAtomic:numElems byteSize:byteSize]
: [[NSZone defaultZone] callocAtomic:numElems byteSize:byteSize];
}
static inline
void *NSZoneRealloc(NSZone *zone, void *pointer, unsigned size)
{
return zone
? [zone realloc:pointer size:size]
: [[NSZone defaultZone] realloc:pointer size:size];
}
static inline
void NSRecycleZone(NSZone *zone)
{
zone ? [zone recycle] : [[NSZone defaultZone] recycle];
}
static inline
void NSZoneFree(NSZone *zone, void *pointer)
{
zone ? [zone freePointer:pointer]
: [[NSZone defaultZone] freePointer:pointer];
}
static inline
void NSSetZoneName(NSZone *zone, NSString *name)
{
zone ? [zone setName:name] : [[NSZone defaultZone] setName:name];
}
static inline
NSString *NSZoneName(NSZone *zone)
{
return zone ? [zone name] : [[NSZone defaultZone] name];
}
# 272 "Foundation/NSObject.h" 2
# 1 "Foundation/NSString.h" 1
# 28 "Foundation/NSString.h"
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/limits.h" 1 3
# 29 "Foundation/NSString.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 30 "Foundation/NSString.h" 2
# 1 "Foundation/NSObject.h" 1
# 31 "Foundation/NSString.h" 2
# 1 "Foundation/NSRange.h" 1
# 28 "Foundation/NSRange.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSRange.h" 2
typedef struct _NSRange
{
unsigned int location;
unsigned int length;
} NSRange;
@class NSString;
extern NSRange NSUnionRange(NSRange range1, NSRange range2);
extern NSRange NSIntersectionRange(NSRange range1, NSRange range2);
extern NSString* NSStringFromRange(NSRange range);
extern NSRange NSSRangeFromString(NSString* string);
extern BOOL NSEqualRanges(NSRange range1, NSRange range2);
static inline unsigned NSMaxRange(NSRange) __attribute__((unused));
static inline BOOL NSLocationInRange(unsigned, NSRange)
__attribute__((unused));
static inline NSRange
NSMakeRange(unsigned int location, unsigned int length)
__attribute__((unused));
static inline NSRange
NSMakeRange(unsigned int location, unsigned int length)
{
NSRange range;
range.location = location;
range.length = length;
return range;
}
static inline unsigned
NSMaxRange(NSRange range)
{
return range.location + range.length;
}
static inline BOOL
NSLocationInRange(unsigned location, NSRange range)
{
return (location >= range.location) && (location < NSMaxRange(range));
}
# 32 "Foundation/NSString.h" 2
@class NSDictionary;
@class NSMutableDictionary;
@class NSArray;
@class NSData;
@class NSCharacterSet;
typedef unsigned NSStringEncoding;
enum {
NSASCIIStringEncoding = 1,
NSNEXTSTEPStringEncoding = 2,
NSJapaneseEUCStringEncoding = 3,
NSUTF8StringEncoding = 4,
NSISOLatin1StringEncoding = 5,
NSSymbolStringEncoding = 6,
NSNonLossyASCIIStringEncoding = 7,
NSShiftJISStringEncoding = 8,
NSISOLatin2StringEncoding = 9,
NSUnicodeStringEncoding = 10,
NSAdobeStandardCyrillicStringEncoding = 11,
NSWinLatin1StringEncoding = 12,
};
# 68 "Foundation/NSString.h"
enum {
NSCaseInsensitiveSearch = 1,
NSLiteralSearch = 2,
NSBackwardsSearch = 4,
NSAnchoredSearch = 8
};
typedef unsigned short unichar;
# 87 "Foundation/NSString.h"
@interface NSString : NSObject <NSCoding, NSCopying, NSMutableCopying>
- (unsigned int)length;
- (unichar)characterAtIndex:(unsigned int)index;
- (void)getCharacters:(unichar*)buffer;
- (void)getCharacters:(unichar*)buffer range:(NSRange)aRange;
- (NSString*)stringByAppendingString:(NSString*)aString;
- (NSString*)stringByAppendingFormat:(NSString*)format,...;
- (NSString*)stringByAppendingFormat:(NSString*)format
arguments:(va_list)argList;
- (NSString*)stringByPrependingString:(NSString*)aString;
- (NSString*)stringByPrependingFormat:(NSString*)format,...;
- (NSString*)stringByPrependingFormat:(NSString*)format
arguments:(va_list)argList;
- (NSArray*)componentsSeparatedByString:(NSString*)separator;
- (NSString*)substringFromIndex:(unsigned int)index;
- (NSString*)substringWithRange:(NSRange)aRange;
- (NSString*)substringFromRange:(NSRange)aRange;
- (NSString*)substringToIndex:(unsigned int)index;
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet*)aSet;
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet*)aSet
options:(unsigned int)mask;
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet*)aSet
options:(unsigned int)mask range:(NSRange)aRange;
- (NSRange)rangeOfString:(NSString*)string;
- (NSRange)rangeOfString:(NSString*)string options:(unsigned int)mask;
- (NSRange)rangeOfString:(NSString*)aString
options:(unsigned int)mask range:(NSRange)aRange;
- (unsigned int)indexOfString:(NSString*)substring;
- (unsigned int)indexOfString:(NSString*)substring fromIndex:(unsigned)index;
- (unsigned int)indexOfString:(NSString*)substring range:(NSRange)aRange;
- (NSRange)rangeOfComposedCharacterSequenceAtIndex:(unsigned int)anIndex;
- propertyList;
- (NSMutableDictionary*)propertyListFromStringsFileFormat;
- (NSComparisonResult)caseInsensitiveCompare:(NSString*)aString;
- (NSComparisonResult)compare:(id)aString;
- (NSComparisonResult)compare:(NSString*)aString options:(unsigned int)mask;
- (NSComparisonResult)compare:(NSString*)aString
options:(unsigned int)mask range:(NSRange)aRange;
- (BOOL)hasPrefix:(NSString*)aString;
- (BOOL)hasSuffix:(NSString*)aString;
- (BOOL)isEqual:(id)anObject;
- (BOOL)isEqualToString:(NSString*)aString;
- (unsigned)hash;
- (NSString*)commonPrefixWithString:(NSString*)aString
options:(unsigned int)mask;
- (NSString*)capitalizedString;
- (NSString*)lowercaseString;
- (NSString*)uppercaseString;
- (const char*)cString;
- (unsigned int)cStringLength;
- (void)getCString:(char*)buffer;
- (void)getCString:(char*)buffer maxLength:(unsigned int)maxLength;
- (void)getCString:(char*)buffer maxLength:(unsigned int)maxLength
range:(NSRange)aRange remainingRange:(NSRange*)leftoverRange;
- (double)doubleValue;
- (float)floatValue;
- (int)intValue;
+ (NSStringEncoding*)availableStringEncodings;
+ (NSStringEncoding)defaultCStringEncoding;
+ (NSString*)localizedNameOfStringEncoding:(NSStringEncoding)encoding;
- (BOOL)canBeConvertedToEncoding:(NSStringEncoding)encoding;
- (NSData*)dataUsingEncoding:(NSStringEncoding)encoding;
- (NSData*)dataUsingEncoding:(NSStringEncoding)encoding
allowLossyConversion:(BOOL)flag;
- (NSStringEncoding)fastestEncoding;
- (NSStringEncoding)smallestEncoding;
- (BOOL)getBytes:(void*)bytes maxLength:(unsigned int)maxLength
inEncoding:(NSStringEncoding)encoding
allowLossesInConversion:(BOOL)allowLossesInConversion
fromRange:(NSRange)fromRange
usedRange:(NSRange*)usedRange
remainingRange:(NSRange*)remainingRange;
- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag;
@end
@interface NSString(NSStringCreation)
+ (id)localizedStringWithFormat:(NSString*)format,...;
+ (id)stringWithCharacters:(const unichar*)chars
length:(unsigned int)length;
+ (id)stringWithCharactersNoCopy:(unichar*)chars
length:(unsigned int)length freeWhenDone:(BOOL)flag;
+ (id)stringWithString:(NSString*)aString;
+ (id)stringWithCString:(const char*)byteString;
+ (NSString*)stringWithCString:(const char*)byteString
length:(unsigned int)length;
+ (id)stringWithCStringNoCopy:(char*)byteString
freeWhenDone:(BOOL)flag;
+ (NSString*)stringWithCStringNoCopy:(char*)byteString
length:(unsigned int)length freeWhenDone:(BOOL)flag;
+ (id)stringWithFormat:(NSString*)format,...;
+ (id)stringWithFormat:(NSString*)format arguments:(va_list)argList;
+ (id)stringWithContentsOfFile:(NSString*)path;
+ (id)string;
@end
@interface NSString(NSStringInitialization)
- init;
- initWithCharacters:(const unichar*)chars length:(unsigned int)length;
- initWithCharactersNoCopy:(unichar*)chars length:(unsigned int)length
freeWhenDone:(BOOL)flag;
- initWithCString:(const char*)byteString;
- initWithCString:(const char*)byteString length:(unsigned int)length;
- initWithCStringNoCopy:(char*)byteString freeWhenDone:(BOOL)flag;
- initWithCStringNoCopy:(char*)byteString length:(unsigned int)length
freeWhenDone:(BOOL)flag;
- initWithString:(NSString*)aString;
- initWithFormat:(NSString*)format, ...;
- initWithFormat:(NSString*)format arguments:(va_list)argList;
- initWithFormat:(NSString*)format
locale:(NSDictionary*)dictionary, ...;
- initWithFormat:(NSString*)format
locale:(NSDictionary*)dictionary arguments:(va_list)argList;
- initWithData:(NSData*)data encoding:(NSStringEncoding)encoding;
- initWithContentsOfFile:(NSString*)path;
@end
# 242 "Foundation/NSString.h"
@interface NSMutableString : NSString
- (void)replaceCharactersInRange:(NSRange)aRange
withString:(NSString*)aString;
- (void)appendFormat:(NSString*)format,...;
- (void)appendFormat:(NSString*)format arguments:(va_list)argList;
- (void)appendString:(NSString*)aString;
- (void)prependFormat:(NSString*)format,...;
- (void)prependFormat:(NSString*)format arguments:(va_list)argList;
- (void)prependString:(NSString*)aString;
- (void)deleteCharactersInRange:(NSRange)range;
- (void)insertString:(NSString*)aString atIndex:(unsigned)index;
- (void)setString:(NSString*)aString;
@end
@interface NSMutableString(NSStringCreation)
+ (id)stringWithCapacity:(unsigned int)capacity;
+ (id)string;
@end
@interface NSMutableString(NSStringInitialization)
- initWithCapacity:(unsigned int)capacity;
@end
extern NSString* NSStringBoundsError;
# 1 "Foundation/NSConcreteString.h" 1
# 34 "Foundation/NSConcreteString.h"
@interface NSTemporaryString : NSObject
{
NSZone* _zone;
id next;
}
+ allocWithZone:(NSZone*)zone;
- (NSZone*)zone;
- init;
- initWithCharacters:(const unichar*)chars length:(unsigned int)length;
- initWithCharactersNoCopy:(unichar*)chars length:(unsigned int)length
freeWhenDone:(BOOL)flag;
- initWithCString:(const char*)byteString;
- initWithCString:(const char*)byteString length:(unsigned int)length;
- initWithCStringNoCopy:(char*)byteString freeWhenDone:(BOOL)flag;
- initWithCStringNoCopy:(char*)byteString length:(unsigned int)length
freeWhenDone:(BOOL)flag;
- initWithString:(NSString*)aString;
- initWithFormat:(NSString*)format, ...;
- initWithFormat:(NSString*)format arguments:(va_list)argList;
- initWithFormat:(NSString*)format
locale:(NSDictionary*)dictionary, ...;
- initWithFormat:(NSString*)format
locale:(NSDictionary*)dictionary arguments:(va_list)argList;
- initWithData:(NSData*)data encoding:(NSStringEncoding)encoding;
- initWithContentsOfFile:(NSString*)path;
@end
@interface NSMutableTemporaryString : NSTemporaryString
- initWithCapacity:(unsigned int)capacity;
@end
@interface NS8BitString : NSString
- (void)getCharacters:(unichar*)buffer range:(NSRange)aRange;
- (NSString*)substringWithRange:(NSRange)aRange;
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet*)aSet
options:(unsigned int)mask range:(NSRange)aRange;
- (NSRange)rangeOfString:(NSString*)aString
options:(unsigned int)mask range:(NSRange)aRange;
- (NSComparisonResult)compare:(NSString*)aString
options:(unsigned int)mask range:(NSRange)aRange;
- (unsigned)hash;
- (NSString*)commonPrefixWithString:(NSString*)aString
options:(unsigned int)mask;
- (NSString*)capitalizedString;
- (NSData*)dataUsingEncoding:(NSStringEncoding)encoding
allowLossyConversion:(BOOL)flag;
- (NSString*)lowercaseString;
- (NSString*)uppercaseString;
- (void)getCString:(char*)buffer maxLength:(unsigned int)maxLength
range:(NSRange)aRange remainingRange:(NSRange*)leftoverRange;
- (BOOL)writeToFile:(NSString*)path atomically:(BOOL)flag;
- (NSString*)stringRepresentation;
@end
@interface NS8BitString(NS8BitString)
- initWithCString:(char*)byteString
length:(unsigned int)length copy:(BOOL)flag;
- (const char*)cString;
- (unsigned int)cStringLength;
- (char*)__compact8BitBytes;
@end
@interface NSMutable8BitString : NSMutableString
@end
@interface NSMutable8BitString(NS8BitString)
- initWithCString:(char*)byteString
length:(unsigned int)length copy:(BOOL)flag;
- initWithCapacity:(unsigned int)capacity;
- (char*)__compact8BitBytes;
@end
@interface NSInline8BitString : NS8BitString
{
int cLength;
char cString[1];
}
+ allocForCapacity:(unsigned int)length zone:(NSZone*)zone;
@end
@interface NSNonOwned8BitString : NS8BitString
{
char* cString;
unsigned int cLength;
}
@end
@interface NSOwned8BitString : NSNonOwned8BitString
@end
@interface NXConstantString : NSNonOwned8BitString
@end
@interface NSNonOwnedOpen8BitString : NSNonOwned8BitString
@end
@interface NSOwnedOpen8BitString : NSOwned8BitString
@end
@interface NSRange8BitString : NSNonOwnedOpen8BitString
{
NS8BitString* parent;
}
- initWithString:(NSString*)aParent
bytes:(char*)bytes length:(unsigned int)length;
@end
@interface NSMutableSimple8BitString : NSMutable8BitString
{
char* cString;
unsigned int cLength;
unsigned int cCapacity;
}
@end
# 275 "Foundation/NSString.h" 2
# 1 "Foundation/NSPathUtilities.h" 1
# 32 "Foundation/NSPathUtilities.h"
extern NSString* NSUserName(void);
extern NSString* NSHomeDirectory(void);
extern NSString* NSHomeDirectoryForUser(NSString* userName);
extern NSString* NSFullUserName();
extern NSString* NSTemporaryDirectory();
@interface NSString(FilePathMethods)
+ (NSString*)pathWithComponents:(NSArray*)components;
- (NSArray*)pathComponents;
- (unsigned int)completePathIntoString:(NSString**)outputName
caseSensitive:(BOOL)flag matchesIntoArray:(NSArray**)outputArray
filterTypes:(NSArray*)filterTypes;
- (const char *)fileSystemRepresentation;
- (BOOL)getFileSystemRepresentation:(char*)buffer
maxLength:(unsigned int)maxLength;
- (BOOL)isAbsolutePath;
- (NSString*)lastPathComponent;
- (NSString*)pathExtension;
- (NSString*)stringByAbbreviatingWithTildeInPath;
- (NSString*)stringByAppendingPathComponent:(NSString*)aString;
- (NSString*)stringByAppendingPathExtension:(NSString*)aString;
- (NSString*)stringByDeletingLastPathComponent;
- (NSString*)stringByDeletingPathExtension;
- (NSString*)stringByExpandingTildeInPath;
- (NSString*)stringByResolvingSymlinksInPath;
- (NSString*)stringByStandardizingPath;
- (NSArray *)stringsByAppendingPaths:(NSArray *)paths;
@end
# 276 "Foundation/NSString.h" 2
# 273 "Foundation/NSObject.h" 2
# 1 "Foundation/NSUtilities.h" 1
# 31 "Foundation/NSUtilities.h"
# 1 "Foundation/NSObject.h" 1
# 32 "Foundation/NSUtilities.h" 2
# 1 "Foundation/NSObjCRuntime.h" 1
# 28 "Foundation/NSObjCRuntime.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSObjCRuntime.h" 2
@class NSString;
Class NSClassFromString(NSString *aClassName);
SEL NSSelectorFromString(NSString *aSelectorName);
NSString *NSStringFromClass(Class aClass);
NSString *NSStringFromSelector(SEL aSelector);
# 33 "Foundation/NSUtilities.h" 2
# 1 "Foundation/NSHashTable.h" 1
# 28 "Foundation/NSHashTable.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSHashTable.h" 2
@class NSArray;
struct _NSHashTable;
typedef struct _NSHashTableCallBacks {
unsigned (*hash)(struct _NSHashTable *table, const void *anObject);
BOOL (*isEqual)(struct _NSHashTable *table,
const void *anObject1, const void *anObject2);
void (*retain)(struct _NSHashTable *table, const void *anObject);
void (*release)(struct _NSHashTable *table, void *anObject);
NSString *(*describe)(struct _NSHashTable *table, const void *anObject);
} NSHashTableCallBacks;
struct _NSHashNode {
void *key;
struct _NSHashNode *next;
};
typedef struct _NSHashTable {
struct _NSHashNode **nodes;
unsigned int hashSize;
unsigned int itemsCount;
NSHashTableCallBacks callbacks;
NSZone* zone;
BOOL keysInvisible;
} NSHashTable;
typedef struct _NSHashEnumerator {
struct _NSHashTable *table;
struct _NSHashNode *node;
int bucket;
} NSHashEnumerator;
extern const NSHashTableCallBacks NSIntHashCallBacks;
extern const NSHashTableCallBacks NSNonOwnedPointerHashCallBacks;
extern const NSHashTableCallBacks NSNonRetainedObjectHashCallBacks;
extern const NSHashTableCallBacks NSObjectHashCallBacks;
extern const NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks;
extern const NSHashTableCallBacks NSOwnedPointerHashCallBacks;
extern const NSHashTableCallBacks NSPointerToStructHashCallBacks;
NSHashTable *NSCreateHashTable(NSHashTableCallBacks callBacks,
unsigned capacity);
NSHashTable *NSCreateHashTableWithZone(NSHashTableCallBacks callBacks,
unsigned capacity, NSZone *zone);
NSHashTable *NSCopyHashTableWithZone(NSHashTable *table,
NSZone *zone);
NSHashTable *NSCreateHashTableInvisibleKeys(NSHashTableCallBacks callBacks,
unsigned capacity);
void NSFreeHashTable(NSHashTable *table);
void NSResetHashTable(NSHashTable *table);
BOOL NSCompareHashTables(NSHashTable *table1, NSHashTable *table2);
unsigned NSCountHashTable(NSHashTable *table);
void *NSHashGet(NSHashTable *table, const void *pointer);
NSArray *NSAllHashTableObjects(NSHashTable *table);
NSHashEnumerator NSEnumerateHashTable(NSHashTable *table);
void *NSNextHashEnumeratorItem(NSHashEnumerator *enumerator);
void NSHashInsert(NSHashTable *table, const void *pointer);
void NSHashInsertKnownAbsent(NSHashTable *table, const void *pointer);
void *NSHashInsertIfAbsent(NSHashTable *table, const void *pointer);
void NSHashRemove(NSHashTable *table, const void *pointer);
NSString *NSStringFromHashTable(NSHashTable *table);
# 34 "Foundation/NSUtilities.h" 2
# 1 "Foundation/NSMapTable.h" 1
# 28 "Foundation/NSMapTable.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSMapTable.h" 2
@class NSArray;
struct _NSMapTable;
struct _NSMapNode {
void *key;
void *value;
struct _NSMapNode *next;
};
typedef struct _NSMapTableKeyCallBacks {
unsigned (*hash)(struct _NSMapTable *table, const void *anObject);
BOOL (*isEqual)(struct _NSMapTable *table, const void *anObject1,
const void *anObject2);
void (*retain)(struct _NSMapTable *table, const void *anObject);
void (*release)(struct _NSMapTable *table, void *anObject);
NSString *(*describe)(struct _NSMapTable *table, const void *anObject);
const void *notAKeyMarker;
} NSMapTableKeyCallBacks;
typedef struct _NSMapTableValueCallBacks {
void (*retain)(struct _NSMapTable *table, const void *anObject);
void (*release)(struct _NSMapTable *table, void *anObject);
NSString *(*describe)(struct _NSMapTable *table, const void *anObject);
} NSMapTableValueCallBacks;
typedef struct _NSMapTable {
struct _NSMapNode **nodes;
unsigned int hashSize;
unsigned int itemsCount;
NSMapTableKeyCallBacks keyCallbacks;
NSMapTableValueCallBacks valueCallbacks;
NSZone *zone;
BOOL keysInvisible;
BOOL valuesInvisible;
} NSMapTable;
typedef struct NSMapEnumerator {
struct _NSMapTable *table;
struct _NSMapNode *node;
int bucket;
} NSMapEnumerator;
extern const NSMapTableKeyCallBacks NSIntMapKeyCallBacks;
extern const NSMapTableValueCallBacks NSIntMapValueCallBacks;
extern const NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks;
extern const NSMapTableKeyCallBacks NSNonOwnedCStringMapKeyCallBacks;
extern const NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks;
extern const NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks;
extern const NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks;
extern const NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks;
extern const NSMapTableKeyCallBacks NSObjectMapKeyCallBacks;
extern const NSMapTableValueCallBacks NSObjectMapValueCallBacks;
extern const NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks;
extern const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks;
NSMapTable *NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks,
NSMapTableValueCallBacks valueCallBacks,
unsigned capacity);
NSMapTable *NSCreateMapTableWithZone(NSMapTableKeyCallBacks keyCallBacks,
NSMapTableValueCallBacks valueCallBacks,
unsigned capacity,
NSZone *zone);
NSMapTable* NSCreateMapTableInvisibleKeysOrValues (
NSMapTableKeyCallBacks keyCallBacks,
NSMapTableValueCallBacks valueCallBacks,
unsigned capacity,
BOOL keysInvisible,
BOOL valuesInvisible);
NSMapTable *NSCopyMapTableWithZone(NSMapTable *table, NSZone *zone);
void NSFreeMapTable(NSMapTable *table);
void NSResetMapTable(NSMapTable *table);
BOOL NSCompareMapTables(NSMapTable *table1, NSMapTable *table2);
unsigned NSCountMapTable(NSMapTable *table);
BOOL NSMapMember(NSMapTable *table, const void *key,
void **originalKey,
void **value);
void *NSMapGet(NSMapTable *table, const void *key);
NSMapEnumerator NSEnumerateMapTable(NSMapTable *table);
BOOL NSNextMapEnumeratorPair(NSMapEnumerator *enumerator,
void **key,
void **value);
NSArray *NSAllMapTableKeys(NSMapTable *table);
NSArray *NSAllMapTableValues(NSMapTable *table);
void NSMapInsert(NSMapTable *table, const void *key, const void *value);
void *NSMapInsertIfAbsent(NSMapTable *table,
const void *key,
const void *value);
void NSMapInsertKnownAbsent(NSMapTable *table,
const void *key,
const void *value);
void NSMapRemove(NSMapTable *table, const void *key);
NSString *NSStringFromMapTable(NSMapTable *table);
# 35 "Foundation/NSUtilities.h" 2
# 1 "Foundation/NSEnumerator.h" 1
# 28 "Foundation/NSEnumerator.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSEnumerator.h" 2
@interface NSEnumerator : NSObject
- (id)nextObject;
@end
# 36 "Foundation/NSUtilities.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 1 3
# 38 "Foundation/NSUtilities.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 39 "Foundation/NSUtilities.h" 2
@class NSObject;
@class NSString;
@class NSZone;
@class NSArray;
unsigned NSPageSize(void);
unsigned NSLogPageSize(void);
unsigned NSRoundDownToMultipleOfPageSize(unsigned byteCount);
unsigned NSRoundUpToMultipleOfPageSize(unsigned byteCount);
void* NSAllocateMemoryPages(unsigned byteCount);
void NSDeallocateMemoryPages(void* pointer, unsigned byteCount);
void NSCopyMemoryPages(const void* source, void* destination, unsigned byteCount);
NSObject* NSAllocateObject(Class aClass, unsigned extraBytes, NSZone* zone);
NSObject* NSCopyObject(NSObject* anObject, unsigned extraBytes, NSZone* zone);
void NSDeallocateObject(NSObject* anObject);
NSZone* NSZoneFromObject(NSObject* anObject);
BOOL NSShouldRetainWithZone(NSObject* anObject, NSZone* requestedZone);
void NSLog(NSString* format, ...);
void NSLogv(NSString* format, va_list args);
BOOL NSDecrementExtraRefCountWasZero(id anObject);
void NSIncrementExtraRefCount(id anObject);
unsigned NSGetExtraRefCount(id anObject);
unsigned __NSHashObject(void* table, const void* anObject);
unsigned __NSHashPointer(void* table, const void* anObject);
unsigned __NSHashInteger(void* table, const void* anObject);
unsigned __NSHashCString(void* table, const void* anObject);
BOOL __NSCompareObjects(void* table,
const void* anObject1, const void* anObject2);
BOOL __NSComparePointers(void* table,
const void* anObject1, const void* anObject2);
BOOL __NSCompareInts(void* table,
const void* anObject1, const void* anObject2);
BOOL __NSCompareCString(void* table,
const void* anObject1, const void* anObject2);
void __NSRetainNothing(void* table, const void* anObject);
void __NSRetainObjects(void* table, const void* anObject);
void __NSReleaseNothing(void* table, void* anObject);
void __NSReleaseObjects(void* table, void* anObject);
void __NSReleasePointers(void* table, void* anObject);
NSString* __NSDescribeObjects(void* table, const void* anObject);
NSString* __NSDescribePointers(void* table, const void* anObject);
NSString* __NSDescribeInts(void* table, const void* anObject);
# 274 "Foundation/NSObject.h" 2
# 1 "Foundation/NSProcessInfo.h" 1
# 28 "Foundation/NSProcessInfo.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSProcessInfo.h" 2
@class NSArray;
@class NSMutableArray;
@class NSDictionary;
@class NSData;
@interface NSProcessInfo : NSObject
+ (void)initializeWithArguments:(char**)argv
count:(int)argc
environment:(char**)env;
+ (NSString*)operatingSystem;
+ (NSProcessInfo*)processInfo;
- (NSArray*)arguments;
- (NSDictionary*)environment;
- (NSString*)hostName;
- (NSString*)processName;
- (NSString*)globallyUniqueString;
- (void)setProcessName:(NSString*)newName;
@end
# 275 "Foundation/NSObject.h" 2
# 120 "Foundation/common.h" 2
# 180 "Foundation/common.h"
# 1 "Foundation/NSZone.h" 1
# 181 "Foundation/common.h" 2
static inline void *Malloc(int size)
{
return [[NSZone defaultZone] malloc:size];
}
static inline void *MallocAtomic(int size)
{
return [[NSZone defaultZone] mallocAtomic:size];
}
static inline void Free(void* p)
{
return [[NSZone zoneFromPointer:p] freePointer:p];
}
static inline void *Calloc(int elem, int size)
{
return [[NSZone defaultZone] calloc:elem byteSize:size];
}
static inline void *CallocAtomic(int elem, int size)
{
return [[NSZone defaultZone] callocAtomic:elem byteSize:size];
}
static inline void *Realloc(void* p, int size)
{
return [[NSZone zoneFromPointer:p] realloc:p size:size];
}
static inline int Strlen(const char* s)
{
return s ? strlen(s) : 0;
}
static inline char* Strdup(const char* s)
{
return s ? strcpy(MallocAtomic(strlen(s) + 1), s) : ((void *)0);
}
static inline char* Strcpy (char* d, const char* s)
{
return s && d ? strcpy(d, s) : d;
}
static inline char* Strncpy (char* d, const char* s, unsigned size)
{
return s && d ? strncpy(d, s, size) : d;
}
static inline char* Strcat (char* d, const char* s)
{
return s && d ? strcat(d, s) : d;
}
static inline char* Strncat (char* d, const char* s , unsigned size)
{
return s && d ? strncat(d, s , size) : d;
}
static inline int Strcmp(const char* p, const char* q)
{
if(!p) {
if(!q)
return 0;
else return -1;
}
else {
if(!q)
return 1;
else return strcmp(p, q);
}
}
static inline int Strncmp(const char* p, const char* q, unsigned size)
{
if(!p) {
if(!q)
return 0;
else return -1;
}
else {
if(!q)
return 1;
else return strncmp(p, q, size);
}
}
static inline int Atoi(const char* str)
{
return str ? atoi(str) : 0;
}
static inline long Atol(const char *str)
{
return str ? atol(str) : 0;
}
extern char* Ltoa(long nr, char *str, int base);
extern void vaRelease(id obj, ...);
extern unsigned hashjb(const char* name, int len);
extern NSString* Asprintf(NSString* format, ...);
extern NSString* Avsprintf(NSString* format, va_list args);
BOOL writeToFile(NSString* path, NSData* data, BOOL atomically);
char* Tmpnam(char* s);
# 29 "Foundation/common.m" 2
# 1 "Foundation/NSString.h" 1
# 30 "Foundation/common.m" 2
# 1 "Foundation/NSData.h" 1
# 28 "Foundation/NSData.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSData.h" 2
# 1 "Foundation/NSRange.h" 1
# 30 "Foundation/NSData.h" 2
# 1 "Foundation/NSSerialization.h" 1
# 28 "Foundation/NSSerialization.h"
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/objc/objc.h" 1 3
# 29 "Foundation/NSSerialization.h" 2
@class NSData;
@class NSMutableData;
@protocol NSObjCTypeSerializationCallBack
- (void)deserializeObjectAt:(id*)object
ofObjCType:(const char*)type
fromData:(NSData*)data
atCursor:(unsigned int*)cursor;
- (void)serializeObjectAt:(id*)object
ofObjCType:(const char*)type
intoData:(NSMutableData*)data;
@end
# 31 "Foundation/NSData.h" 2
@class NSZone;
@interface NSData : NSObject <NSCoding, NSCopying, NSMutableCopying>
+ (id)allocWithZone:(NSZone*)zone;
+ (id)data;
+ (id)dataWithBytes:(const void*)bytes
length:(unsigned int)length;
+ (id)dataWithBytesNoCopy:(void*)bytes
length:(unsigned int)length;
+ (id)dataWithContentsOfFile:(NSString*)path;
+ (id)dataWithContentsOfMappedFile:(NSString*)path;
+ (id)dataWithData:(NSData*)aData;
- (id)initWithBytes:(const void*)bytes
length:(unsigned int)length;
- (id)initWithBytesNoCopy:(void*)bytes
length:(unsigned int)length;
- (id)initWithContentsOfFile:(NSString*)path;
- (id)initWithContentsOfMappedFile:(NSString*)path;
- (id)initWithData:(NSData*)data;
- (const void*)bytes;
- (NSString*)description;
- (void)getBytes:(void*)buffer;
- (void)getBytes:(void*)buffer
length:(unsigned int)length;
- (void)getBytes:(void*)buffer
range:(NSRange)aRange;
- (NSData*)subdataWithRange:(NSRange)aRange;
- (BOOL)isEqualToData:(NSData*)other;
- (unsigned int)length;
- (BOOL)writeToFile:(NSString*)path
atomically:(BOOL)useAuxiliaryFile;
- (unsigned int)deserializeAlignedBytesLengthAtCursor:(unsigned int*)cursor;
- (void)deserializeBytes:(void*)buffer
length:(unsigned int)bytes
atCursor:(unsigned int*)cursor;
- (void)deserializeDataAt:(void*)data
ofObjCType:(const char*)type
atCursor:(unsigned int*)cursor
context:(id <NSObjCTypeSerializationCallBack>)callback;
- (int)deserializeIntAtCursor:(unsigned int*)cursor;
- (int)deserializeIntAtIndex:(unsigned int)index;
- (void)deserializeInts:(int*)intBuffer
count:(unsigned int)numInts
atCursor:(unsigned int*)cursor;
- (void)deserializeInts:(int*)intBuffer
count:(unsigned int)numInts
atIndex:(unsigned int)index;
@end
@interface NSMutableData : NSData
+ (id)allocWithZone:(NSZone*)zone;
+ (id)dataWithCapacity:(unsigned int)numBytes;
+ (id)dataWithLength:(unsigned int)length;
- (id)initWithCapacity:(unsigned int)capacity;
- (id)initWithLength:(unsigned int)length;
- (void)increaseLengthBy:(unsigned int)extraLength;
- (void*)mutableBytes;
- (void)setLength:(unsigned int)length;
- (void)appendBytes:(const void*)bytes
length:(unsigned int)length;
- (void)appendData:(NSData*)other;
- (void)replaceBytesInRange:(NSRange)aRange
withBytes:(const void*)bytes;
- (void)resetBytesInRange:(NSRange)aRange;
- (void)setData:(NSData*)aData;
- (void)serializeAlignedBytesLength:(unsigned int)length;
- (void)serializeDataAt:(const void*)data
ofObjCType:(const char*)type
context:(id <NSObjCTypeSerializationCallBack>)callback;
- (void)serializeInt:(int)value;
- (void)serializeInt:(int)value
atIndex:(unsigned int)index;
- (void)serializeInts:(int*)intBuffer
count:(unsigned int)numInts;
- (void)serializeInts:(int*)intBuffer
count:(unsigned int)numInts
atIndex:(unsigned int)index;
@end
# 31 "Foundation/common.m" 2
# 1 "Foundation/NSPosixFileDescriptor.h" 1
# 28 "Foundation/NSPosixFileDescriptor.h"
# 1 "/usr/include/sys/types.h" 1 3
# 29 "Foundation/NSPosixFileDescriptor.h" 2
# 1 "/usr/include/sys/stat.h" 1 3
# 30 "Foundation/NSPosixFileDescriptor.h" 2
# 1 "/usr/include/fcntl.h" 1 3
# 31 "Foundation/NSPosixFileDescriptor.h" 2
# 1 "Foundation/NSObject.h" 1
# 33 "Foundation/NSPosixFileDescriptor.h" 2
# 1 "Foundation/NSRange.h" 1
# 34 "Foundation/NSPosixFileDescriptor.h" 2
@class NSData;
@class NSString;
typedef enum {
NSPosixNoActivity = 0,
NSPosixReadableActivity = 1,
NSPosixWritableActivity = 2,
NSPosixExceptionalActivity = 4
} NSPosixFileActivities;
@interface NSPosixFileDescriptor : NSObject
{
int fd;
id delegate;
unsigned fileActivity;
BOOL owned;
}
+ descriptorWithStandardInput;
+ descriptorWithStandardOutput;
+ descriptorWithStandardError;
- initWithFileDescriptor:(int)fileDescriptor;
- initWithPath:(NSString*)aPath;
- initWithPath:(NSString*)aPath flags:(int)flags;
- initWithPath:(NSString*)aPath flags:(int)flags createMode:(int)mode;
- (int)fileDescriptor;
- (NSData*)readEntireFile;
- (NSData*)readFileRange:(NSRange)aRange;
- (NSData*)readFileLength:(long)length;
- (NSData*)readRestOfFile;
- (void)readBytes:(void*)bytes range:(NSRange)range;
- (void)writeData:(NSData*)aData;
- (void)writeData:(NSData*)aData range:(NSRange)aRange;
- (void)writeString:(NSString*)string;
- (void)writeString:(NSString*)string range:(NSRange)aRange;
- (int unsigned)fileLength;
- (int unsigned)filePosition;
- (void)seekToEnd;
- (void)seekToPosition:(long)aPosition;
- (void)truncateAtPosition:(long)aPosition;
- (NSData*)mapFileRange:(NSRange)range;
- (void)synchronizeFile;
- (void)monitorFileActivity:(NSPosixFileActivities)activity;
- (void)monitorActivity:(NSPosixFileActivities)activity delegate:(id)delegate;
- (void)ceaseMonitoringFileActivity;
- (NSPosixFileActivities)fileActivity;
- delegate;
- (void)setDelegate:(id)delegate;
@end
@interface NSObject (NSPosixFileDescriptorDelegateMethod)
- (void)activity:(NSPosixFileActivities)activity
posixFileDescriptor:(NSPosixFileDescriptor*)fileDescriptor;
@end
extern NSString* NSPosixFileOperationException;
# 32 "Foundation/common.m" 2
# 1 "Foundation/NSFileManager.h" 1
# 28 "Foundation/NSFileManager.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSFileManager.h" 2
# 1 "Foundation/NSUtilities.h" 1
# 30 "Foundation/NSFileManager.h" 2
# 1 "Foundation/NSDictionary.h" 1
# 28 "Foundation/NSDictionary.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSDictionary.h" 2
# 1 "Foundation/NSUtilities.h" 1
# 30 "Foundation/NSDictionary.h" 2
@class NSString;
@class NSArray;
@class NSEnumerator;
@interface NSDictionary : NSObject <NSCoding, NSCopying, NSMutableCopying>
+ (id)allocWithZone:(NSZone*)zone;
+ (id)dictionary;
+ (id)dictionaryWithContentsOfFile:(NSString*)path;
+ (id)dictionaryWithObjects:(NSArray*)objects forKeys:(NSArray*)keys;
+ (id)dictionaryWithObjects:(id*)objects forKeys:(id*)keys
count:(unsigned int)count;
+ (id)dictionaryWithObjectsAndKeys:(id)firstObject, ...;
+ (id)dictionaryWithDictionary:(NSDictionary*)aDict;
+ (id)dictionaryWithObject:object forKey:key;
- (id)initWithContentsOfFile:(NSString*)path;
- (id)initWithDictionary:(NSDictionary*)dictionary;
- (id)initWithDictionary:(NSDictionary*)dictionary copyItems:(BOOL)flag;
- (id)initWithObjectsAndKeys:(id)firstObject,...;
- (id)initWithObjects:(NSArray*)objects forKeys:(NSArray*)keys;
- (id)initWithObjects:(id*)objects forKeys:(id*)keys
count:(unsigned int)count;
- (NSArray*)allKeys;
- (NSArray*)allKeysForObject:(id)object;
- (NSArray*)allValues;
- (NSEnumerator*)keyEnumerator;
- (NSEnumerator*)objectEnumerator;
- (id)objectForKey:(id)aKey;
- (NSArray*)objectsForKeys:(NSArray*)keys notFoundMarker:notFoundObj;
- (unsigned int)count;
- (BOOL)isEqualToDictionary:(NSDictionary*)other;
- (NSString*)description;
- (NSString*)descriptionInStringsFileFormat;
- (NSString*)descriptionWithLocale:(NSDictionary*)localeDictionary;
- (NSString*)descriptionWithLocale:(NSDictionary*)localeDictionary
indent:(unsigned int)level;
- (BOOL)writeToFile:(NSString*)path atomically:(BOOL)useAuxiliaryFile;
- (unsigned)hash;
- (BOOL)isEqual:(id)anObject;
@end
@interface NSDictionary(NSDictionaryExtensions)
- (id)initWithObjectsAndKeys:(id)firstObject arguments:(va_list)argList;
@end;
@interface NSMutableDictionary : NSDictionary
+ (id)allocWithZone:(NSZone*)zone;
+ (id)dictionaryWithCapacity:(unsigned int)aNumItems;
- (id)initWithCapacity:(unsigned int)aNumItems;
- (void)addEntriesFromDictionary:(NSDictionary*)otherDictionary;
- (void)removeAllObjects;
- (void)removeObjectForKey:(id)theKey;
- (void)removeObjectsForKeys:(NSArray*)keyArray;
- (void)setObject:(id)anObject forKey:(id)aKey;
- (void)setDictionary:(NSDictionary*)otherDictionary;
@end
# 31 "Foundation/NSFileManager.h" 2
@class NSNumber;
@class NSString;
@class NSData;
@class NSDate;
@class NSArray;
@class NSMutableArray;
@class NSDirectoryEnumerator;
@interface NSFileManager : NSObject
+ (NSFileManager*)defaultManager;
- (BOOL)changeCurrentDirectoryPath:(NSString*)path;
- (BOOL)createDirectoryAtPath:(NSString*)path
attributes:(NSDictionary*)attributes;
- (NSString*)currentDirectoryPath;
- (BOOL)copyPath:(NSString*)source toPath:(NSString*)destination
handler:handler;
- (BOOL)movePath:(NSString*)source toPath:(NSString*)destination
handler:handler;
- (BOOL)linkPath:(NSString*)source toPath:(NSString*)destination
handler:handler;
- (BOOL)removeFileAtPath:(NSString*)path
handler:handler;
- (BOOL)createFileAtPath:(NSString*)path contents:(NSData*)contents
attributes:(NSDictionary*)attributes;
- (NSData*)contentsAtPath:(NSString*)path;
- (BOOL)contentsEqualAtPath:(NSString*)path1 andPath:(NSString*)path2;
- (BOOL)fileExistsAtPath:(NSString*)path;
- (BOOL)fileExistsAtPath:(NSString*)path isDirectory:(BOOL*)isDirectory;
- (BOOL)isReadableFileAtPath:(NSString*)path;
- (BOOL)isWritableFileAtPath:(NSString*)path;
- (BOOL)isExecutableFileAtPath:(NSString*)path;
- (BOOL)isDeletableFileAtPath:(NSString*)path;
- (NSDictionary*)fileAttributesAtPath:(NSString*)path traverseLink:(BOOL)flag;
- (NSDictionary*)fileSystemAttributesAtPath:(NSString*)path;
- (BOOL)changeFileAttributes:(NSDictionary*)attributes atPath:(NSString*)path;
- (NSArray*)directoryContentsAtPath:(NSString*)path;
- (NSDirectoryEnumerator*)enumeratorAtPath:(NSString*)path;
- (NSArray*)subpathsAtPath:(NSString*)path;
- (BOOL)createSymbolicLinkAtPath:(NSString*)path
pathContent:(NSString*)otherPath;
- (NSString*)pathContentOfSymbolicLinkAtPath:(NSString*)path;
- (const char*)fileSystemRepresentationWithPath:(NSString*)path;
- (NSString*)stringWithFileSystemRepresentation:(const char*)string
length:(unsigned int)len;
@end
@interface NSObject (NSFileManagerHandler)
- (BOOL)fileManager:(NSFileManager*)fileManager
shouldProceedAfterError:(NSDictionary*)errorDictionary;
- (void)fileManager:(NSFileManager*)fileManager
willProcessPath:(NSString*)path;
@end
@interface NSDirectoryEnumerator : NSEnumerator
{
NSMutableArray* enumStack;
NSMutableArray* pathStack;
NSString* currentFileName;
NSString* currentFilePath;
NSString* topPath;
struct {
BOOL isRecursive:1;
BOOL isFollowing:1;
} flags;
}
- initWithDirectoryPath:(NSString*)path
recurseIntoSubdirectories:(BOOL)recurse
followSymlinks:(BOOL)follow
prefixFiles:(BOOL)prefix;
- (NSDictionary*)directoryAttributes;
- (NSDictionary*)fileAttributes;
- (void)skipDescendents;
@end
extern NSString* NSFileSize;
extern NSString* NSFileModificationDate;
extern NSString* NSFileOwnerAccountNumber;
extern NSString* NSFileOwnerAccountName;
extern NSString* NSFileGroupOwnerAccountNumber;
extern NSString* NSFileReferenceCount;
extern NSString* NSFileIdentifier;
extern NSString* NSFileDeviceIdentifier;
extern NSString* NSFilePosixPermissions;
extern NSString* NSFileType;
extern NSString* NSFileTypeDirectory;
extern NSString* NSFileTypeRegular;
extern NSString* NSFileTypeSymbolicLink;
extern NSString* NSFileTypeSocket;
extern NSString* NSFileTypeFifo;
extern NSString* NSFileTypeCharacterSpecial;
extern NSString* NSFileTypeBlockSpecial;
extern NSString* NSFileTypeUnknown;
extern NSString* NSFileSystemSize;
extern NSString* NSFileSystemFreeSize;
extern NSString* NSFileSystemNodes;
extern NSString* NSFileSystemFreeNodes;
extern NSString* NSFileSystemNumber;
@interface NSDictionary(NSFileAttributes)
- (NSNumber*)fileSize;
- (NSString*)fileType;
- (NSNumber*)fileOwnerAccountNumber;
- (NSNumber*)fileGroupOwnerAccountNumber;
- (NSDate*)fileModificationDate;
- (NSNumber*)filePosixPermissions;
@end
# 33 "Foundation/common.m" 2
# 1 "Foundation/NSException.h" 1
# 28 "Foundation/NSException.h"
# 1 "/usr/include/setjmp.h" 1 3
# 26 "/usr/include/setjmp.h" 3
# 1 "/usr/include/features.h" 1 3
# 27 "/usr/include/setjmp.h" 2 3
# 1 "/usr/include/bits/setjmp.h" 1 3
# 36 "/usr/include/bits/setjmp.h" 3
typedef int __jmp_buf[6];
# 31 "/usr/include/setjmp.h" 2 3
# 1 "/usr/include/bits/sigset.h" 1 3
# 32 "/usr/include/setjmp.h" 2 3
typedef struct __jmp_buf_tag
{
__jmp_buf __jmpbuf;
int __mask_was_saved;
__sigset_t __saved_mask;
} jmp_buf[1];
extern int setjmp (jmp_buf __env) ;
extern int _setjmp (jmp_buf __env) ;
extern int __sigsetjmp (jmp_buf __env, int __savemask) ;
# 73 "/usr/include/setjmp.h" 3
extern void longjmp (jmp_buf __env, int __val)
__attribute__ ((__noreturn__));
extern void _longjmp (jmp_buf __env, int __val)
__attribute__ ((__noreturn__));
typedef jmp_buf sigjmp_buf;
# 98 "/usr/include/setjmp.h" 3
extern void siglongjmp (sigjmp_buf __env, int __val)
__attribute__ ((__noreturn__));
# 29 "Foundation/NSException.h" 2
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 30 "Foundation/NSException.h" 2
# 1 "Foundation/NSString.h" 1
# 31 "Foundation/NSException.h" 2
# 1 "Foundation/NSArray.h" 1
# 28 "Foundation/NSArray.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSArray.h" 2
# 1 "Foundation/NSRange.h" 1
# 30 "Foundation/NSArray.h" 2
@class NSString;
@class NSEnumerator;
@class NSDictionary;
@interface NSArray : NSObject <NSCoding, NSCopying, NSMutableCopying>
+ (id)allocWithZone:(NSZone*)zone;
+ (id)array;
+ (id)arrayWithObject:(id)anObject;
+ (id)arrayWithObjects:(id)firstObj,...;
+ (id)arrayWithArray:(NSArray*)anotherArray;
+ (id)arrayWithContentsOfFile:(NSString*)fileName;
+ (id)arrayWithObjects:(id*)objects count:(unsigned int)count;
- (id)initWithArray:(NSArray*)anotherArray;
- (id)initWithArray:(NSArray*)anotherArray copyItems:(BOOL)flag;
- (id)initWithObjects:(id)firstObj,...;
- (id)initWithObjects:(id*)objects count:(unsigned int)count;
- (id)initWithContentsOfFile:(NSString*)fileName;
- (BOOL)containsObject:(id)anObject;
- (unsigned int)count;
- (unsigned int)indexOfObject:(id)anObject;
- (unsigned int)indexOfObjectIdenticalTo:(id)anObject;
- (unsigned int)indexOfObject:(id)anObject inRange:(NSRange)aRange;
- (unsigned int)indexOfObjectIdenticalTo:(id)anObject inRange:(NSRange)aRange;
- (id)lastObject;
- (id)objectAtIndex:(unsigned int)index;
- (NSEnumerator*)objectEnumerator;
- (NSEnumerator*)reverseObjectEnumerator;
- (void)makeObjectsPerformSelector:(SEL)aSelector;
- (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(id)anObject;
- (void)makeObjectsPerform:(SEL)aSelector;
- (void)makeObjectsPerform:(SEL)aSelector withObject:(id)anObject;
- (id)firstObjectCommonWithArray:(NSArray*)otherArray;
- (BOOL)isEqualToArray:(NSArray*)otherArray;
- (NSArray*)arrayByAddingObject:(id)anObject;
- (NSArray*)arrayByAddingObjectsFromArray:(NSArray*)anotherArray;
- (NSArray*)sortedArrayUsingFunction:
(int(*)(id element1, id element2, void *userData))comparator
context:(void*)context;
- (NSArray*)sortedArrayUsingSelector:(SEL)comparator;
- (NSArray*)subarrayWithRange:(NSRange)range;
- (NSString*)componentsJoinedByString:(NSString*)separator;
- (NSString*)description;
- (NSString*)stringRepresentation;
- (NSString*)descriptionWithLocale:(NSDictionary*)locale;
- (NSString*)descriptionWithLocale:(NSDictionary*)locale
indent:(unsigned int)level;
- (BOOL)writeToFile:(NSString*)fileName atomically:(BOOL)flag;
- (unsigned)hash;
- (BOOL)isEqual:(id)anObject;
@end
@interface NSArray (NSArrayExtensions)
- (void)makeObjectsPerform:(SEL)aSelector
withObject:(id)anObject1 withObject:(id)anObject2;
- (NSArray*)map:(SEL)aSelector;
- (NSArray*)map:(SEL)aSelector with:anObject;
- (NSArray*)map:(SEL)aSelector with:anObject with:otherObject;
- (NSArray*)arrayWithObjectsThat:(BOOL(*)(id anObject))comparator;
- (NSArray*)map:(id(*)(id anObject))function
objectsThat:(BOOL(*)(id anObject))comparator;
@end
@interface NSMutableArray : NSArray
+ (id)allocWithZone:(NSZone*)zone;
+ (id)arrayWithCapacity:(unsigned int)aNumItems;
- (id)initWithCapacity:(unsigned int)aNumItems;
- (id)init;
- (void)addObject:(id)anObject;
- (void)addObjectsFromArray:(NSArray*)anotherArray;
- (void)insertObject:(id)anObject atIndex:(unsigned int)index;
- (void)removeAllObjects;
- (void)removeLastObject;
- (void)removeObject:(id)anObject;
- (void)removeObjectAtIndex:(unsigned int)index;
- (void)removeObjectIdenticalTo:(id)anObject;
- (void)removeObjectsFromIndices:(unsigned int*)indices
numIndices:(unsigned int)count;
- (void)removeObjectsInArray:(NSArray*)otherArray;
- (void)removeObject:(id)anObject inRange:(NSRange)aRange;
- (void)removeObjectIdenticalTo:(id)anObject inRange:(NSRange)aRange;
- (void)removeObjectsInRange:(NSRange)aRange;
- (void)sortUsingFunction:(int (*)(id ,id ,void*))compare
context:(void*)context;
- (void)sortUsingSelector:(SEL)comparator;
- (void)replaceObjectAtIndex:(unsigned int)index withObject:(id)anObject;
- (void)replaceObjectsInRange:(NSRange)rRange
withObjectsFromArray:(NSArray*)anArray;
- (void)replaceObjectsInRange:(NSRange)rRange
withObjectsFromArray:(NSArray*)anArray range:(NSRange)aRange;
- (void)setArray:(NSArray*)otherArray;
@end
@interface NSMutableArray (NSMutableArrayExtensions)
- (void)removeObjectsFrom:(unsigned int)index count:(unsigned int)count;
- (void)removeObjectsThat:(BOOL(*)(id anObject))comparator;
@end
# 32 "Foundation/NSException.h" 2
@class NSDictionary;
@interface NSException : NSObject
{
NSString* name;
NSString* reason;
NSDictionary* userInfo;
}
+ (NSException*)exceptionWithName:(NSString*)name
reason:(NSString*)reason
userInfo:(NSDictionary*)userInfo;
+ (void)raise:(NSString *)name
format:(NSString *)format,...;
+ (void)raise:(NSString*)name
format:(NSString*)format
arguments:(va_list)argList;
- (id)initWithName:(NSString*)name
reason:(NSString*)reason
userInfo:(NSDictionary*)userInfo;
- (void)raise;
- (NSString*)name;
- (NSString*)reason;
- (NSDictionary*)userInfo;
@end
@interface NSException (Extensions)
- (BOOL)exceptionIsKindOfClass:(Class)class;
- (BOOL)exceptionIsIn:(NSArray*)exceptions;
- (NSString*)errorString;
- initWithFormat:(NSString*)format, ...;
- initWithFormat:(NSString*)format arguments:(va_list)ap;
- setName:(NSString*)name;
- setReason:(NSString*)reason;
- setUserInfo:(NSDictionary*)userInfo;
@end
typedef void NSUncaughtExceptionHandler(NSException *exception);
NSUncaughtExceptionHandler *NSGetUncaughtExceptionHandler(void);
void NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler *handler);
extern NSString *NSInconsistentArchiveException;
extern NSString *NSGenericException;
extern NSString *NSInternalInconsistencyException;
extern NSString *NSInvalidArgumentException;
extern NSString *NSMallocException;
extern NSString *NSRangeException;
# 106 "Foundation/NSException.h"
typedef void (*THandlerFunction)(id);
typedef struct _NSHandler
{
struct _NSHandler* previousHandler;
jmp_buf jmpState;
THandlerFunction handler;
} NSHandler;
extern void _NSAddHandler(NSHandler *handler);
extern void _NSRemoveHandler(NSHandler *handler);
# 209 "Foundation/NSException.h"
@interface FoundationException : NSException
@end
@interface AssertException : FoundationException
@end
@interface NSAssertionHandler : NSObject
+ (NSAssertionHandler*)currentHandler;
- (void)handleFailureInFunction:(NSString*)functionName
file:(NSString*)fileName
lineNumber:(int)line
description:(NSString*)format,...;
- (void)handleFailureInMethod:(SEL)selector
object:(id)object
file:(NSString*)fileName
lineNumber:(int)line
description:(NSString*)format,...;
@end
# 34 "Foundation/common.m" 2
# 1 "Foundation/NSThread.h" 1
# 28 "Foundation/NSThread.h"
# 1 "Foundation/NSObject.h" 1
# 29 "Foundation/NSThread.h" 2
@class NSDate;
@class NSString;
@class NSMutableDictionary;
enum {
NSInteractiveThreadPriority,
NSBackgroundThreadPriority,
NSLowThreadPriority
};
@interface NSThread : NSObject
{
id threadDictionary;
BOOL isRunning;
id target;
SEL selector;
id arg;
id privateThreadData;
}
+ (NSThread*)currentThread;
+ (void)exit;
+ (BOOL)isMultiThreaded;
+ (void)sleepUntilDate:(NSDate*)aDate;
+ (void)detachNewThreadSelector:(SEL)aSelector
toTarget:(id)aTarget withObject:(id)anArgument;
- (NSMutableDictionary*)threadDictionary;
- (id)_privateThreadData;
@end
extern NSString* NSWillBecomeMultiThreadedNotification;
extern NSString* NSThreadWillExitNotification;
# 35 "Foundation/common.m" 2
# 1 "Foundation/PrivateThreadData.h" 1
# 28 "Foundation/PrivateThreadData.h"
# 1 "Foundation/common.h" 1
# 29 "Foundation/PrivateThreadData.h" 2
# 1 "Foundation/NSException.h" 1
# 30 "Foundation/PrivateThreadData.h" 2
@class NSAutoreleasePool;
@class NSNotificationCenter;
@class NSNotificationQueue;
@class NSRunLoop;
@interface PrivateThreadData : NSObject
{
id autoreleaseStack;
void* exceptionStack;
NSRunLoop* runLoop;
struct _InstanceList* notificationQueues;
NSNotificationQueue* defaultQueue;
NSNotificationCenter* defaultCenter;
id temporaryStringsPool;
id temporaryMutableStringsPool;
}
- (void)threadWillStart;
- (void)threadExit;
- (NSAutoreleasePool*)threadDefaultAutoreleasePool;
- (void)setThreadDefaultAutoreleasePool:(NSAutoreleasePool*)pool;
- (void*)threadDefaultExceptionHandler;
- (void)setThreadDefaultExceptionHandler:(void*)handler;
- (void)setUncaughtExceptionHandler:(NSUncaughtExceptionHandler*)handler;
- (NSUncaughtExceptionHandler*)uncaughtExceptionHandler;
- (NSRunLoop*)threadRunLoop;
- (void)setThreadRunLoop:(NSRunLoop*)aLoop;
- (struct _InstanceList*)threadNotificationQueues;
- (void)setThreadNotificationQueues:(struct _InstanceList*)theQueues;
- (NSNotificationQueue*)defaultNotificationQueue;
- (void)setDefaultNotificationQueue:(NSNotificationQueue*)aQueue;
- (NSNotificationCenter*)defaultNotificationCenter;
- (void)setDefaultNotificationCenter:(NSNotificationCenter*)center;
- (id)temporaryString;
- (void)addTemporaryString:(id)anObject;
- (void)setTemporaryStringsPool:(id)anObject;
- (id)temporaryMutableString;
- (void)addTemporaryMutableString:(id)anObject;
- (void)setTemporaryMutableStringsPool:(id)anObject;
@end
# 37 "Foundation/common.m" 2
# 1 "Foundation/NSCalendarDateScanf.h" 1
# 28 "Foundation/NSCalendarDateScanf.h"
# 1 "extensions/FormatScanner.h" 1
# 28 "extensions/FormatScanner.h"
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 29 "extensions/FormatScanner.h" 2
# 1 "Foundation/NSObject.h" 1
# 30 "extensions/FormatScanner.h" 2
@class NSString;
# 52 "extensions/FormatScanner.h"
typedef enum {
FS_ALTERNATE_FORM = 1,
FS_ZERO = 2,
FS_MINUS_SIGN = 4,
FS_PLUS_SIGN = 8,
FS_BLANK = 16
} FormatScannerFlags;
@interface FormatScanner : NSObject
{
int specifierLen, specifierSize;
char* currentSpecifier;
id handler;
unsigned flags;
int width;
int precision;
char modifier;
char characterSpecifier;
BOOL allowFlags:1;
BOOL allowWidth:1;
BOOL allowPeriod:1;
BOOL allowPrecision:1;
BOOL allowModifier:1;
}
- (BOOL)parseFormatString:(NSString*)format context:(void*)context;
- (BOOL)handleOrdinaryString:(NSString*)string;
- (BOOL)handleFormatSpecifierWithContext:(void*)context;
- (void)setFormatScannerHandler:(id)anObject;
- (id)formatScannerHandler;
- (unsigned int)flags;
- (int)width;
- (int)precision;
- (char)modifier;
- (char)characterSpecifier;
- (const char*)currentSpecifier;
- setAllowFlags:(BOOL)flag;
- setAllowWidth:(BOOL)flag;
- setAllowPeriod:(BOOL)flag;
- setAllowPrecision:(BOOL)flag;
- setAllowModifier:(BOOL)flag;
- setAllowOnlySpecifier:(BOOL)flag;
- (BOOL)allowFlags;
- (BOOL)allowWidth;
- (BOOL)allowPeriod;
- (BOOL)allowPrecision;
- (BOOL)allowModifier;
@end
# 29 "Foundation/NSCalendarDateScanf.h" 2
@class NSString;
@class NSMutableString;
@class NSDictionary;
@class NSTimeZone;
@class NSScanner;
@interface NSCalendarDateScanf : FormatScanner
{
NSDictionary* locale;
NSMutableString* scannedString;
NSScanner* scanner;
NSScanner* temporary;
int year;
int month;
int day;
int hour;
int minute;
int second;
NSTimeZone* timeZone;
BOOL hourIsUnder12;
BOOL isPM;
}
- (BOOL)handleOrdinaryString:(NSString*)string;
- (BOOL)handleFormatSpecifierWithContext:(void*)context;
- setString:(NSString*)description withLocale:(NSDictionary*)locale;
- (int)year;
- (int)month;
- (int)day;
- (int)hour;
- (int)minute;
- (int)second;
- (NSTimeZone*)timeZone;
@end
# 38 "Foundation/common.m" 2
# 1 "Foundation/exceptions/GeneralExceptions.h" 1
# 28 "Foundation/exceptions/GeneralExceptions.h"
# 1 "extensions/support.h" 1
# 29 "Foundation/exceptions/GeneralExceptions.h" 2
# 1 "extensions/exceptions/FoundationException.h" 1
# 25 "extensions/exceptions/FoundationException.h"
# 1 "Foundation/exceptions/FoundationException.h" 1
# 28 "Foundation/exceptions/FoundationException.h"
# 1 "Foundation/NSException.h" 1
# 29 "Foundation/exceptions/FoundationException.h" 2
# 26 "extensions/exceptions/FoundationException.h" 2
# 30 "Foundation/exceptions/GeneralExceptions.h" 2
@class NSString;
@class MemoryExhaustedException;
extern MemoryExhaustedException* memoryExhaustedException;
@interface MemoryExhaustedException : FoundationException
{
void** pointer;
unsigned size;
}
- setPointer:(void**)pointer memorySize:(unsigned)size;
@end
@interface MemoryDeallocationException : FoundationException
{
void** pointer;
unsigned size;
}
- setPointer:(void**)pointer memorySize:(unsigned)size;
@end
@interface MemoryCopyException : FoundationException
@end
@interface FileNotFoundException : FoundationException
- initWithFilename:(NSString*)f;
- (NSString*)filename;
@end
@interface SyntaxErrorException : FoundationException
@end
@interface UnknownTypeException : NSException
- initForType:(const char*)type;
@end
@interface UnknownClassException : NSException
- setClassName:(NSString*)className;
@end
@interface ObjcRuntimeException : FoundationException
@end
@interface InternalInconsistencyException : NSException
@end
@interface InvalidArgumentException : NSException
- initWithReason:(NSString*)aReason;
@end
@interface IndexOutOfRangeException : FoundationException
- initForSize:(int)size index:(int)pos;
@end
@interface RangeException : IndexOutOfRangeException
- initWithReason:(NSString*)aReason size:(int)size index:(int)index;
@end
@interface InvalidUseOfMethodException : NSException
@end
@interface PosixFileOperationException : NSException
@end
# 40 "Foundation/common.m" 2
# 1 "extensions/PrintfFormatScanner.h" 1
# 28 "extensions/PrintfFormatScanner.h"
# 1 "extensions/FormatScanner.h" 1
# 29 "extensions/PrintfFormatScanner.h" 2
@class NSMutableString;
@interface PrintfFormatScanner : FormatScanner
{
NSMutableString* result;
}
- (NSString*)stringWithFormat:(NSString*)format arguments:(va_list)args;
@end
# 41 "Foundation/common.m" 2
# 1 "extensions/PrintfScannerHandler.h" 1
# 28 "extensions/PrintfScannerHandler.h"
# 1 "/usr/lib/gcc-lib/i686-freza-linux-gnu/3.0/include/stdarg.h" 1 3
# 29 "extensions/PrintfScannerHandler.h" 2
# 1 "extensions/DefaultScannerHandler.h" 1
# 28 "extensions/DefaultScannerHandler.h"
# 1 "Foundation/NSObject.h" 1
# 29 "extensions/DefaultScannerHandler.h" 2
@class NSString;
@class FormatScanner;
@interface DefaultScannerHandler : NSObject
{
IMP specHandler[256];
}
- (NSString*)stringForArgument:(va_list*)arg scanner:aFormatScanner;
- (NSString*)unknownSpecifier:(va_list*)arg scanner:scanner;
@end
# 30 "extensions/PrintfScannerHandler.h" 2
@class NSString;
@class FormatScanner;
@interface PrintfScannerHandler : DefaultScannerHandler
- (NSString*)convertInt:(va_list*)pInt scanner:(FormatScanner*)scanner;
- (NSString*)convertChar:(va_list*)pChar scanner:(FormatScanner*)scanner;
- (NSString*)convertString:(va_list*)pString scanner:(FormatScanner*)scanner;
- (NSString*)convertFloat:(va_list*)pFloat scanner:(FormatScanner*)scanner;
- (NSString*)convertPointer:(va_list*)pPointer scanner:(FormatScanner*)scanner;
@end
@interface FSObjectFormat : PrintfScannerHandler
- (NSString*)convertObject:(va_list*)pId scanner:scanner;
@end
# 42 "Foundation/common.m" 2
void vaRelease(id obj, ...)
{
va_list args;
id next_obj;
__builtin_stdarg_start((args),obj);
next_obj = obj;
while(next_obj) {
[next_obj release];
next_obj = __builtin_va_arg(args, id);
}
__builtin_va_end(args);
}
BOOL writeToFile(NSString* path, NSData* data, BOOL atomically)
{
NSString* filename;
NSPosixFileDescriptor* file;
volatile BOOL result = (BOOL)1;
*(&filename) = atomically ? [path stringByAppendingString:@"~"] : path;
file = [[[NSPosixFileDescriptor alloc] initWithPath:filename flags:02|0100 createMode:0666] autorelease];
if (!file)
return (BOOL)0;
{ auto void handler(); NSHandler exceptionHandler; int _dummy = ({ __label__ _quit; if(!_setjmp (exceptionHandler.jmpState)) { exceptionHandler.handler = handler; _NSAddHandler(&exceptionHandler); {
[file writeData:data];
if(atomically) {
NSFileManager* fileManager = [NSFileManager defaultManager];
[fileManager removeFileAtPath:path handler:(id)0];
result = [fileManager movePath:filename toPath:path handler:(id)0];
}
} _NSRemoveHandler(&exceptionHandler); handler((id)0); goto _quit; }; _quit: 0; }); void handler(NSException* localException) { BOOL _caught = (BOOL)0; if(localException) _NSRemoveHandler(&exceptionHandler); if(!localException) { _dummy++;
} else if([localException exceptionIsKindOfClass:[PosixFileOperationException class]]) { _caught = (BOOL)1; {
result = (BOOL)0;
if (atomically)
[[NSFileManager defaultManager]
removeFileAtPath:filename handler:(id)0];
}
} if(!localException) return; if(!_caught) [localException raise]; else { [localException release]; longjmp(exceptionHandler.jmpState, 1); } } }
return result;
}
char *Ltoa(long nr, char *str, int base)
{
char buff[34], rest, is_negative;
int ptr;
ptr = 32;
buff[33] = '\0';
if(nr < 0) {
is_negative = 1;
nr = -nr;
}
else
is_negative = 0;
while(nr != 0) {
rest = nr % base;
if(rest > 9)
rest += 'A' - 10;
else
rest += '0';
buff[ptr--] = rest;
nr /= base;
}
if(ptr == 32)
buff[ptr--] = '0';
if(is_negative)
buff[ptr--] = '-';
Strcpy(str, &buff[ptr+1]);
return(str);
}
unsigned hashjb(const char* name, int len)
{
register unsigned long hash = 0, i = 0;
register unsigned char ch;
for (; (ch = *name++); i ^= 1) {
if (i)
hash *= ch;
else
hash += ch;
}
hash += ((hash & 0xffff0000) >> 16);
hash += ((hash & 0x0000ff00) >> 8);
return hash & (len - 1);
}
NSString* Asprintf(NSString* format, ...)
{
id string;
va_list ap;
__builtin_stdarg_start((ap),format);
string = Avsprintf(format, ap);
__builtin_va_end(ap);
return string;
}
NSString* Avsprintf(NSString* format, va_list args)
{
id objectFormat, formatScanner, string;
objectFormat = [FSObjectFormat new];
formatScanner = [PrintfFormatScanner new];
[formatScanner setFormatScannerHandler:objectFormat];
string = [formatScanner stringWithFormat:format arguments:args];
[objectFormat release];
[formatScanner release];
return string;
}
void __raiseMemoryException (void* pointer, int size)
{
[[memoryExhaustedException setPointer:&pointer memorySize:size] raise];
}
--FL5UXtIhxfXey3p5--
>Release-Note:
>Audit-Trail:
>Unformatted:
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-01 8:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-01 8:16 objc/3503: ice on objc source Jachym 'Freza' Holecek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).