* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
2014-02-21 8:54 ` Paul Eggert
2014-02-21 9:16 ` Jan Djärv
@ 2014-02-24 15:37 ` Klaus Zeitler
2014-02-24 18:42 ` Paul Eggert
1 sibling, 1 reply; 15+ messages in thread
From: Klaus Zeitler @ 2014-02-24 15:37 UTC (permalink / raw)
To: Paul Eggert; +Cc: 16825
[-- Attachment #1: Type: text/plain, Size: 737 bytes --]
>>>>> "Paul" == Paul Eggert <eggert@cs.ucla.edu> writes:
Paul>
Paul> Just to confirm, are you running Mac OS X 10.3.9 ("Panther")?
"uname -a" says:
Darwin osxexp2 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
Paul> Could you please the output of gcc -E on that file? Something
Paul> like this:
Paul>
Paul> gcc -E -std=gnu99 -DHAVE_CONFIG_H -I. \
Paul> -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib \
Paul> -I../src \
Paul> -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src \
Paul> -I/opt/exp/gnu/include -g3 -O2 careadlinkat.c
here's the preprocessor output:
[-- Attachment #2: careadlinkat.i --]
[-- Type: application/octet-stream, Size: 159580 bytes --]
# 1 "careadlinkat.c"
#pragma GCC set_debug_pwd "/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib"
# 1 "<built-in>"
#define __STDC_VERSION__ 199901L
#define __GXX_ABI_VERSION 102
#define __SIZE_TYPE__ long unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ int
#define __WINT_TYPE__ unsigned int
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __WCHAR_MAX__ 2147483647
#define __CHAR_BIT__ 8
#define __FLT_EVAL_METHOD__ 0
#define __FLT_RADIX__ 2
#define __FLT_MANT_DIG__ 24
#define __FLT_DIG__ 6
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX_10_EXP__ 38
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN__ 1.17549435e-38F
#define __FLT_EPSILON__ 1.19209290e-7F
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __DBL_MANT_DIG__ 53
#define __DBL_DIG__ 15
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX_10_EXP__ 308
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __LDBL_MANT_DIG__ 53
#define __LDBL_DIG__ 15
#define __LDBL_MIN_EXP__ (-1021)
#define __LDBL_MIN_10_EXP__ (-307)
#define __LDBL_MAX_EXP__ 1024
#define __LDBL_MAX_10_EXP__ 308
#define __DECIMAL_DIG__ 17
#define __LDBL_MAX__ 1.7976931348623157e+308L
#define __LDBL_MIN__ 2.2250738585072014e-308L
#define __LDBL_EPSILON__ 2.2204460492503131e-16L
#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
#define __REGISTER_PREFIX__
#define __USER_LABEL_PREFIX__ _
#define __VERSION__ "3.3 20030304 (Apple Computer, Inc. build 1495)"
#define __OPTIMIZE__ 1
#define __STDC_HOSTED__ 1
#define __FINITE_MATH_ONLY__ 0
#define _ARCH_PPC 1
#define __BIG_ENDIAN__ 1
#define _BIG_ENDIAN 1
#define __ppc__ 1
#define __POWERPC__ 1
#define __NATURAL_ALIGNMENT__ 1
#define __MACH__ 1
#define __APPLE__ 1
# 1 "<command line>"
#define __GNUC__ 3
#define __GNUC_MINOR__ 3
#define __GNUC_PATCHLEVEL__ 0
#define __APPLE_CC__ 1495
#define __DYNAMIC__ 1
#define HAVE_CONFIG_H 1
# 1 "careadlinkat.c"
# 21 "careadlinkat.c"
# 1 "../src/config.h" 1
# 29 "../src/config.h"
#define EMACS_CONFIG_H
#define AMPERSAND_FULL_NAME 1
#define BITSIZEOF_PTRDIFF_T 32
#define BITSIZEOF_SIG_ATOMIC_T 32
#define BITSIZEOF_SIZE_T 32
#define BITSIZEOF_WCHAR_T 32
#define BITSIZEOF_WINT_T 32
# 64 "../src/config.h"
#define BSD4_2
#define BSD_SYSTEM
# 81 "../src/config.h"
#define CLASH_DETECTION 1
#define COPYRIGHT "Copyright (C) 2013 Free Software Foundation, Inc."
# 98 "../src/config.h"
#define DARWIN_OS
# 107 "../src/config.h"
#define DEFAULT_SOUND_DEVICE "/dev/dsp"
# 116 "../src/config.h"
#define DIRECTORY_SEP '/'
#define DONT_REOPEN_PTY 1
# 133 "../src/config.h"
#define EMACS_CONFIGURATION "powerpc-apple-darwin7.9.0"
#define EMACS_CONFIG_OPTIONS " '--prefix=/opt/exp/lib/gnuemacs2' '--with-x-toolkit=gtk2' 'CC=gcc' 'LDFLAGS=-L/opt/exp/gnu/libb' 'CPPFLAGS=-I/opt/exp/gnu/include'"
#define FIRST_PTY_LETTER 'p'
#define _FORTIFY_SOURCE 2
# 179 "../src/config.h"
#define GC_SETJMP_WORKS 1
#define GETPGRP_VOID 1
#define GETTIMEOFDAY_TIMEZONE struct timezone
#define GNULIB_FSCANF 1
#define GNULIB_SCANF 1
# 219 "../src/config.h"
#define HAVE_ALARM 1
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA_H 1
#define HAVE_C99_STRTOLD 1
#define HAVE_CFMAKERAW 1
#define HAVE_CFSETSPEED 1
# 248 "../src/config.h"
#define HAVE_CLOSEDIR 1
# 257 "../src/config.h"
#define HAVE_COPYSIGN 1
# 282 "../src/config.h"
#define HAVE_DECL_GETENV 1
#define HAVE_DECL_LOCALTIME_R 1
#define HAVE_DECL_STRMODE 1
#define HAVE_DECL_STRTOIMAX 1
# 306 "../src/config.h"
#define HAVE_DECL_STRTOUMAX 1
#define HAVE_DECL_SYS_SIGLIST 1
# 327 "../src/config.h"
#define HAVE_DIFFTIME 1
#define HAVE_DIRENT_H 1
#define HAVE_DUP2 1
#define HAVE_ENDGRENT 1
#define HAVE_ENDPWENT 1
# 351 "../src/config.h"
#define HAVE_FCNTL_H 1
#define HAVE_FORK 1
#define HAVE_FPATHCONF 1
#define HAVE_FREEIFADDRS 1
#define HAVE_FSEEKO 1
#define HAVE_FSYNC 1
#define HAVE_FUTIMES 1
#define HAVE_GAI_STRERROR 1
#define HAVE_GETADDRINFO 1
#define HAVE_GETCWD 1
#define HAVE_GETGRENT 1
#define HAVE_GETHOSTNAME 1
#define HAVE_GETIFADDRS 1
#define HAVE_GETOPT_H 1
#define HAVE_GETPAGESIZE 1
#define HAVE_GETPEERNAME 1
#define HAVE_GETPWENT 1
#define HAVE_GETRLIMIT 1
#define HAVE_GETRUSAGE 1
#define HAVE_GETSOCKNAME 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_GETWD 1
#define HAVE_GIF 1
# 469 "../src/config.h"
#define HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE 1
#define HAVE_GTK_DIALOG_GET_ACTION_AREA 1
#define HAVE_GTK_FILE_SELECTION_NEW 1
#define HAVE_GTK_MAIN 1
#define HAVE_GTK_ORIENTABLE_SET_ORIENTATION 1
# 490 "../src/config.h"
#define HAVE_GTK_WIDGET_GET_WINDOW 1
# 502 "../src/config.h"
#define HAVE_H_ERRNO 1
#define HAVE_IFADDRS_H 1
#define HAVE_INET_SOCKETS 1
#define HAVE_INTTYPES_H 1
#define HAVE_JPEG 1
# 544 "../src/config.h"
#define HAVE_LANGINFO_CODESET 1
# 586 "../src/config.h"
#define HAVE_LIBM 1
# 613 "../src/config.h"
#define HAVE_LIBXML2 1
# 622 "../src/config.h"
#define HAVE_LOCALTIME_R 1
#define HAVE_LONG_FILE_NAMES 1
#define HAVE_LONG_LONG_INT 1
#define HAVE_LRAND48 1
#define HAVE_LSTAT 1
# 658 "../src/config.h"
#define HAVE_MALLOC_MALLOC_H 1
#define HAVE_MBSTATE_T 1
#define HAVE_MEMORY_H 1
#define HAVE_MENUS 1
#define HAVE_MKSTEMP 1
#define HAVE_MMAP 1
#define HAVE_MOUSE 1
#define HAVE_NET_IF_DL_H 1
#define HAVE_NET_IF_H 1
# 706 "../src/config.h"
#define HAVE_PNG 1
#define HAVE_PNG_H 1
# 721 "../src/config.h"
#define HAVE_PSELECT 1
#define HAVE_PTHREAD 1
#define HAVE_PTHREAD_H 1
#define HAVE_PTHREAD_SIGMASK 1
#define HAVE_PTYS 1
#define HAVE_PWD_H 1
#define HAVE_RANDOM 1
#define HAVE_READLINK 1
#define HAVE_RECVFROM 1
#define HAVE_RINT 1
#define HAVE_SELECT 1
#define HAVE_SENDTO 1
#define HAVE_SETITIMER 1
#define HAVE_SETLOCALE 1
#define HAVE_SETPGID 1
#define HAVE_SETRLIMIT 1
#define HAVE_SETSID 1
#define HAVE_SHUTDOWN 1
#define HAVE_SIGNED_SIG_ATOMIC_T 1
#define HAVE_SIGNED_WCHAR_T 1
#define HAVE_SIGNED_WINT_T 1
#define HAVE_SIGSET_T 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETS 1
# 818 "../src/config.h"
#define HAVE_SPEED_T 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRSIGNAL 1
#define HAVE_STRTOIMAX 1
# 848 "../src/config.h"
#define HAVE_STRTOUMAX 1
#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
#define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
# 875 "../src/config.h"
#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
# 893 "../src/config.h"
#define HAVE_STRUCT_TM_TM_ZONE 1
#define HAVE_STRUCT_UTIMBUF 1
#define HAVE_SYMLINK 1
#define HAVE_SYNC 1
# 918 "../src/config.h"
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_STAT_H 1
# 942 "../src/config.h"
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_UN_H 1
#define HAVE_SYS_UTSNAME_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_TERM_H 1
#define HAVE_TIFF 1
#define HAVE_TM_GMTOFF 1
#define HAVE_TM_ZONE 1
# 983 "../src/config.h"
#define HAVE_TZSET 1
#define HAVE_UNISTD_H 1
#define HAVE_UNSIGNED_LONG_LONG_INT 1
#define HAVE_UTIL_H 1
#define HAVE_UTIMES 1
#define HAVE_UTIME_H 1
#define HAVE_UTMP_H 1
#define HAVE_VFORK 1
#define HAVE_WCHAR_H 1
#define HAVE_WCHAR_T 1
#define HAVE_WINDOW_SYSTEM 1
#define HAVE_WORKING_FORK 1
#define HAVE_WORKING_UTIMES 1
#define HAVE_WORKING_VFORK 1
#define HAVE_X11 1
#define HAVE_X11R6 1
#define HAVE_X11R6_XIM 1
# 1056 "../src/config.h"
#define HAVE_XIM 1
#define HAVE_XKBGETKEYBOARD 1
#define HAVE_XPM 1
#define HAVE_XRMSETDATABASE 1
#define HAVE_XSCREENNUMBEROFSCREEN 1
#define HAVE_XSCREENRESOURCESTRING 1
#define HAVE_X_I18N 1
#define HAVE_X_SM 1
#define HAVE_X_WINDOWS 1
#define HAVE__BOOL 1
#define HAVE__SETJMP 1
#define HAVE___BUILTIN_UNWIND_INIT 1
# 1110 "../src/config.h"
#define INTERRUPT_INPUT 1
#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
#define IS_DEVICE_SEP(_c_) 0
#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
# 1144 "../src/config.h"
#define MAIL_USE_FLOCK 1
# 1153 "../src/config.h"
#define MAIL_USE_POP 1
# 1181 "../src/config.h"
#define NULL_DEVICE "/dev/null"
#define ORDINARY_LINK 1
#define PACKAGE "emacs"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "emacs"
#define PACKAGE_STRING "emacs 24.3"
#define PACKAGE_TARNAME "emacs"
#define PACKAGE_URL ""
#define PACKAGE_VERSION "24.3"
#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
#define PNG_DEPSTRUCT
#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1
# 1233 "../src/config.h"
#define PTRDIFF_T_SUFFIX
#define PTY_ITERATION int i; for (i = 0; i < 1; i++)
#define PTY_NAME_SPRINTF
#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)
#define PTY_TTY_NAME_SPRINTF
#define READLINK_TRAILING_SLASH_BUG 1
# 1260 "../src/config.h"
#define REPLACE_FUNC_STAT_FILE 1
#define SEPCHAR ':'
# 1275 "../src/config.h"
#define SIGNALS_VIA_CHARACTERS 1
#define SIG_ATOMIC_T_SUFFIX
#define SIZE_T_SUFFIX ul
# 1300 "../src/config.h"
#define STDC_HEADERS 1
#define SYSTEM_MALLOC 1
#define SYSTEM_TYPE "darwin"
#define TAB3 OXTABS
#define TERMINFO 1
#define TERM_HEADER "gtkutil.h"
#define TIME_WITH_SYS_TIME 1
# 1350 "../src/config.h"
#define USABLE_FIONREAD 1
#define USABLE_SIGIO 1
#define USER_FULL_NAME pw->pw_gecos
#define USE_GTK 1
# 1371 "../src/config.h"
#define USE_TOOLKIT_SCROLL_BARS 1
#define USE_XIM 1
# 1393 "../src/config.h"
#define VERSION "24.3"
#define WCHAR_T_SUFFIX
#define WINT_T_SUFFIX
# 1414 "../src/config.h"
#define WORDS_BIGENDIAN 1
# 1426 "../src/config.h"
#define XRegisterIMInstantiateCallback_arg6 XPointer
#define _DARWIN_USE_64_BIT_INODE 1
# 1460 "../src/config.h"
#define _Noreturn __attribute__ ((__noreturn__))
# 1484 "../src/config.h"
#define _ALL_SOURCE 1
#define _DARWIN_C_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define __EXTENSIONS__ 1
#define __GETOPT_PREFIX rpl_
#define __restrict_arr __restrict
# 1539 "../src/config.h"
#define _GL_INLINE extern inline
#define _GL_EXTERN_INLINE extern
# 1562 "../src/config.h"
#define _GL_INLINE_HEADER_BEGIN
#define _GL_INLINE_HEADER_END
#define gl_va_copy(a,b) ((a) = (b))
# 1601 "../src/config.h"
#define my_strftime nstrftime
# 1612 "../src/config.h"
#define restrict __restrict
# 1630 "../src/config.h"
#define subprocesses 1
# 1639 "../src/config.h"
#define _GL_UNUSED __attribute__ ((__unused__))
#define _UNUSED_PARAMETER_ _GL_UNUSED
#define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
#define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
# 1668 "../src/config.h"
# 1 "../src/conf_post.h" 1
# 37 "../src/conf_post.h"
# 1 "alloca.h" 1
# 25 "alloca.h"
#define _GL_ALLOCA_H
# 40 "alloca.h"
#define alloca __builtin_alloca
# 38 "../src/conf_post.h" 2
# 68 "../src/conf_post.h"
#undef HAVE_WORKING_VFORK
#define vfork fork
# 189 "../src/conf_post.h"
# 1 "/usr/include/string.h" 1 3 4
# 59 "/usr/include/string.h" 3 4
#define _STRING_H_
# 1 "/usr/include/machine/ansi.h" 1 3 4
# 30 "/usr/include/machine/ansi.h" 3 4
#define _MACHINE_ANSI_H_
# 1 "/usr/include/ppc/ansi.h" 1 3 4
# 37 "/usr/include/ppc/ansi.h" 3 4
#define _ANSI_H_
# 48 "/usr/include/ppc/ansi.h" 3 4
#define _BSD_CLOCK_T_ unsigned long
#define _BSD_PTRDIFF_T_ __PTRDIFF_TYPE__
#define _BSD_SIZE_T_ __SIZE_TYPE__
#define _BSD_SSIZE_T_ int
#define _BSD_TIME_T_ long
#define _BSD_VA_LIST_ __builtin_va_list
#define _BSD_RUNE_T_ _BSD_CT_RUNE_T_
#define _BSD_WCHAR_T_ _BSD_CT_RUNE_T_
#define _BSD_WINT_T_ _BSD_CT_RUNE_T_
#define _BSD_MBSTATE_T_ __mbstate_t
#define _BSD_SOCKLEN_T_ int32_t
# 87 "/usr/include/ppc/ansi.h" 3 4
#define _BSD_CT_RUNE_T_ int
typedef union {
char __mbstate8[128];
long long _mbstateL;
} __mbstate_t;
# 34 "/usr/include/machine/ansi.h" 2 3 4
# 61 "/usr/include/string.h" 2 3 4
#define _BSD_SIZE_T_DEFINED_
typedef long unsigned int size_t;
#define NULL 0
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 62 "/usr/include/sys/cdefs.h" 3 4
#define _CDEFS_H_
#define __BEGIN_DECLS
#define __END_DECLS
# 80 "/usr/include/sys/cdefs.h" 3 4
#define __P(protos) protos
#define __CONCAT(x,y) x ## y
#define __STRING(x) #x
#define __const const
#define __signed signed
#define __volatile volatile
# 134 "/usr/include/sys/cdefs.h" 3 4
#define __dead2 __attribute__((__noreturn__))
#define __pure2 __attribute__((__const__))
#define __unused __attribute__((__unused__))
# 152 "/usr/include/sys/cdefs.h" 3 4
#define __dead
#define __pure
#define __IDSTRING(name,string) static const char name[] __unused = string
#define __COPYRIGHT(s) __IDSTRING(copyright,s)
#define __RCSID(s) __IDSTRING(rcsid,s)
#define __SCCSID(s) __IDSTRING(sccsid,s)
#define __PROJECT_VERSION(s) __IDSTRING(project_version,s)
# 72 "/usr/include/string.h" 2 3 4
void *memchr(const void *, int, size_t);
int memcmp(const void *, const void *, size_t);
void *memcpy(void *, const void *, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
char *stpcpy(char *, const char *);
char *strcasestr(const char *, const char *);
char *strcat(char *, const char *);
char *strchr(const char *, int);
int strcmp(const char *, const char *);
int strcoll(const char *, const char *);
char *strcpy(char *, const char *);
size_t strcspn(const char *, const char *);
char *strerror(int);
int strerror_r(int, char *, size_t);
size_t strlen(const char *);
char *strncat(char *, const char *, size_t);
int strncmp(const char *, const char *, size_t);
char *strncpy(char *, const char *, size_t);
char *strnstr(const char *, const char *, size_t);
char *strpbrk(const char *, const char *);
char *strrchr(const char *, int);
size_t strspn(const char *, const char *);
char *strstr(const char *, const char *);
char *strtok(char *, const char *);
size_t strxfrm(char *, const char *, size_t);
int bcmp(const void *, const void *, size_t);
void bcopy(const void *, void *, size_t);
void bzero(void *, size_t);
int ffs(int);
char *index(const char *, int);
void *memccpy(void *, const void *, int, size_t);
char *rindex(const char *, int);
int strcasecmp(const char *, const char *);
char *strdup(const char *);
size_t strlcat(char *, const char *, size_t);
size_t strlcpy(char *, const char *, size_t);
void strmode(int, char *);
int strncasecmp(const char *, const char *, size_t);
char *strsep(char **, const char *);
char *strsignal(int sig);
char *strtok_r(char *, const char *, char **);
void swab(const void *, void *, size_t);
# 190 "../src/conf_post.h" 2
# 1 "stdlib.h" 1
# 21 "stdlib.h" 3
# 35 "stdlib.h" 3
# 1 "/usr/include/stdlib.h" 1 3 4
# 59 "/usr/include/stdlib.h" 3 4
#define _STDLIB_H_
# 1 "/usr/include/machine/types.h" 1 3 4
# 26 "/usr/include/machine/types.h" 3 4
#define _BSD_MACHINE_TYPES_H_
# 1 "/usr/include/ppc/types.h" 1 3 4
# 61 "/usr/include/ppc/types.h" 3 4
#define _MACHTYPES_H_
typedef signed char int8_t;
typedef unsigned char u_int8_t;
typedef short int16_t;
typedef unsigned short u_int16_t;
typedef int int32_t;
typedef unsigned int u_int32_t;
typedef long long int64_t;
typedef unsigned long long u_int64_t;
typedef int32_t register_t;
typedef long int intptr_t;
typedef unsigned long int uintptr_t;
#define __offsetof(type,field) ((size_t)(&((type *)0)->field))
# 31 "/usr/include/machine/types.h" 2 3 4
# 63 "/usr/include/stdlib.h" 2 3 4
# 74 "/usr/include/stdlib.h" 3 4
#define _BSD_CT_RUNE_T_DEFINED_
typedef int ct_rune_t;
#define _BSD_RUNE_T_DEFINED_
typedef int rune_t;
#define _BSD_WCHAR_T_DEFINED_
typedef int wchar_t;
#define _BSD_WINT_T_DEFINED_
typedef int wint_t;
typedef struct {
int quot;
int rem;
} div_t;
typedef struct {
long quot;
long rem;
} ldiv_t;
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define RAND_MAX 0x7fffffff
extern int __mb_cur_max;
#define MB_CUR_MAX __mb_cur_max
void abort(void) __attribute__((__noreturn__));
int abs(int) __attribute__((__const__));
int atexit(void (*)(void));
double atof(const char *);
int atoi(const char *);
long atol(const char *);
void *bsearch(const void *, const void *, size_t,
size_t, int (*)(const void *, const void *));
void *calloc(size_t, size_t);
div_t div(int, int) __attribute__((__const__));
void exit(int) __attribute__((__noreturn__));
void free(void *);
char *getenv(const char *);
long labs(long) __attribute__((__const__));
ldiv_t ldiv(long, long) __attribute__((__const__));
void *malloc(size_t);
int mblen(const char *, size_t);
size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t);
int mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
void qsort(void *, size_t, size_t,
int (*)(const void *, const void *));
int rand(void);
void *realloc(void *, size_t);
void srand(unsigned);
double strtod(const char *, char **);
float strtof(const char *, char **);
long strtol(const char *, char **, int);
long double
strtold(const char *, char **);
unsigned long
strtoul(const char *, char **, int);
int system(const char *);
void *valloc(size_t);
int wctomb(char *, wchar_t);
size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t);
int putenv(const char *);
int setenv(const char *, const char *, int);
u_int32_t
arc4random(void);
void arc4random_addrandom(unsigned char *dat, int datlen);
void arc4random_stir(void);
double drand48(void);
double erand48(unsigned short[3]);
long jrand48(unsigned short[3]);
void lcong48(unsigned short[7]);
long lrand48(void);
long mrand48(void);
long nrand48(unsigned short[3]);
unsigned short
*seed48(unsigned short[3]);
void srand48(long);
char *cgetcap(char *, const char *, int);
int cgetclose(void);
int cgetent(char **, char **, const char *);
int cgetfirst(char **, char **);
int cgetmatch(const char *, const char *);
int cgetnext(char **, char **);
int cgetnum(char *, const char *, long *);
int cgetset(const char *);
int cgetstr(char *, const char *, char **);
int cgetustr(char *, const char *, char **);
int daemon(int, int);
char *devname(int, int);
char *getbsize(int *, long *);
int getloadavg(double [], int);
const char
*getprogname(void);
long a64l(const char *);
char *l64a(long);
int heapsort(void *, size_t, size_t,
int (*)(const void *, const void *));
char *initstate(unsigned long, char *, long);
int mergesort(void *, size_t, size_t,
int (*)(const void *, const void *));
void qsort_r(void *, size_t, size_t, void *,
int (*)(void *, const void *, const void *));
int radixsort(const unsigned char **, int, const unsigned char *,
unsigned);
void setprogname(const char *);
int sradixsort(const unsigned char **, int, const unsigned char *,
unsigned);
void sranddev(void);
void srandomdev(void);
int rand_r(unsigned *);
long random(void);
void *reallocf(void *, size_t);
char *realpath(const char *, char resolved_path[]);
char *setstate(char *);
void srandom(unsigned long);
typedef struct {
long long quot;
long long rem;
} lldiv_t;
long long
atoll(const char *);
long long
llabs(long long);
lldiv_t lldiv(long long, long long);
long long
strtoll(const char *, char **, int);
unsigned long long
strtoull(const char *, char **, int);
long long
strtoq(const char *, char **, int);
unsigned long long
strtouq(const char *, char **, int);
void unsetenv(const char *);
# 36 "stdlib.h" 2 3
#define _GL_STDLIB_H
# 1 "/usr/include/stddef.h" 1 3 4
# 62 "/usr/include/stddef.h" 3 4
#define __STDDEF_H__
typedef int ptrdiff_t;
# 104 "/usr/include/stddef.h" 3 4
#define offsetof(type,member) __offsetof(type, member)
# 42 "stdlib.h" 2 3
# 101 "stdlib.h" 3
#define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
# 120 "stdlib.h" 3
#define _GL_CXXDEFS_H
# 186 "stdlib.h" 3
#define _GL_EXTERN_C extern
# 196 "stdlib.h" 3
#define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) _GL_FUNCDECL_RPL_1 (rpl_ ##func, rettype, parameters_and_attributes)
#define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) _GL_EXTERN_C rettype rpl_func parameters_and_attributes
# 208 "stdlib.h" 3
#define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) _GL_EXTERN_C rettype func parameters_and_attributes
# 217 "stdlib.h" 3
#define _GL_CXXALIAS_RPL(func,rettype,parameters) _GL_CXXALIAS_RPL_1 (func, rpl_ ##func, rettype, parameters)
# 227 "stdlib.h" 3
#define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
# 245 "stdlib.h" 3
#define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
# 270 "stdlib.h" 3
#define _GL_CXXALIAS_SYS(func,rettype,parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
# 288 "stdlib.h" 3
#define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) _GL_EXTERN_C int _gl_cxxalias_dummy
# 313 "stdlib.h" 3
#define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) _GL_EXTERN_C int _gl_cxxalias_dummy
# 341 "stdlib.h" 3
#define _GL_CXXALIASWARN(func) _GL_EXTERN_C int _gl_cxxalias_dummy
# 369 "stdlib.h" 3
#define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) _GL_EXTERN_C int _gl_cxxalias_dummy
# 381 "stdlib.h" 3
#define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
# 399 "stdlib.h" 3
#define _GL_WARN_ON_USE(function,message) _GL_WARN_EXTERN_C int _gl_warn_on_use
# 420 "stdlib.h" 3
#define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) _GL_WARN_EXTERN_C int _gl_warn_on_use
# 431 "stdlib.h" 3
#define _GL_WARN_EXTERN_C extern
# 538 "stdlib.h" 3
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 191 "../src/conf_post.h" 2
#define NO_INLINE __attribute__((noinline))
#define EXTERNALLY_VISIBLE
#define ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
# 214 "../src/conf_post.h"
#define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter,first_argument) ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
#define ATTRIBUTE_CONST _GL_ATTRIBUTE_CONST
#define INLINE _GL_INLINE
#define EXTERN_INLINE _GL_EXTERN_INLINE
#define INLINE_HEADER_BEGIN _GL_INLINE_HEADER_BEGIN
#define INLINE_HEADER_END _GL_INLINE_HEADER_END
# 238 "../src/conf_post.h"
#define IF_LINT(Code)
#define lint_assume(cond) ((void) (0 && (cond)))
# 1669 "../src/config.h" 2
# 22 "careadlinkat.c" 2
# 1 "careadlinkat.h" 1
# 21 "careadlinkat.h"
#define _GL_CAREADLINKAT_H
# 1 "/usr/include/fcntl.h" 1 3 4
# 23 "/usr/include/fcntl.h" 3 4
# 1 "/usr/include/sys/fcntl.h" 1 3 4
# 65 "/usr/include/sys/fcntl.h" 3 4
#define _SYS_FCNTL_H_
# 74 "/usr/include/sys/fcntl.h" 3 4
# 1 "/usr/include/sys/types.h" 1 3 4
# 64 "/usr/include/sys/types.h" 3 4
#define _SYS_TYPES_H_
# 1 "/usr/include/sys/appleapiopts.h" 1 3 4
# 24 "/usr/include/sys/appleapiopts.h" 3 4
#define __SYS_APPLEAPIOPTS_H__
#define __APPLE_API_STANDARD
#define __APPLE_API_STABLE
#define __APPLE_API_EVOLVING
#define __APPLE_API_UNSTABLE
#define __APPLE_API_PRIVATE
#define __APPLE_API_OBSOLETE
# 67 "/usr/include/sys/types.h" 2 3 4
# 75 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/machine/endian.h" 1 3 4
# 26 "/usr/include/machine/endian.h" 3 4
#define _BSD_MACHINE_ENDIAN_H_
# 1 "/usr/include/ppc/endian.h" 1 3 4
# 59 "/usr/include/ppc/endian.h" 3 4
#define _PPC_ENDIAN_H_
#define _QUAD_HIGHWORD 0
#define _QUAD_LOWWORD 1
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#define PDP_ENDIAN 3412
#define BYTE_ORDER BIG_ENDIAN
unsigned long htonl (unsigned long);
unsigned short htons (unsigned short);
unsigned long ntohl (unsigned long);
unsigned short ntohs (unsigned short);
#define ntohl(x) (x)
#define ntohs(x) (x)
#define htonl(x) (x)
#define htons(x) (x)
#define NTOHL(x) (x)
#define NTOHS(x) (x)
#define HTONL(x) (x)
#define HTONS(x) (x)
# 31 "/usr/include/machine/endian.h" 2 3 4
# 76 "/usr/include/sys/types.h" 2 3 4
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef u_int64_t u_quad_t;
typedef int64_t quad_t;
typedef quad_t * qaddr_t;
typedef char * caddr_t;
typedef int32_t daddr_t;
typedef int32_t dev_t;
typedef u_int32_t fixpt_t;
typedef u_int32_t gid_t;
typedef u_int32_t in_addr_t;
typedef u_int16_t in_port_t;
typedef u_int32_t ino_t;
typedef long key_t;
typedef u_int16_t mode_t;
typedef u_int16_t nlink_t;
typedef quad_t off_t;
typedef int32_t pid_t;
typedef quad_t rlim_t;
typedef int32_t segsz_t;
typedef int32_t swblk_t;
typedef u_int32_t uid_t;
typedef u_int32_t useconds_t;
#define major(x) ((int32_t)(((u_int32_t)(x) >> 24) & 0xff))
#define minor(x) ((int32_t)((x) & 0xffffff))
#define makedev(x,y) ((dev_t)(((x) << 24) | (y)))
#define _BSD_CLOCK_T_DEFINED_
typedef unsigned long clock_t;
# 127 "/usr/include/sys/types.h" 3 4
#define _BSD_SSIZE_T_DEFINED_
typedef int ssize_t;
#define _BSD_TIME_T_DEFINED_
typedef long time_t;
#define NBBY 8
#define FD_SETSIZE 1024
typedef int32_t fd_mask;
#define NFDBITS (sizeof(fd_mask) * NBBY)
#define howmany(x,y) (((x) + ((y) - 1)) / (y))
typedef struct fd_set {
fd_mask fds_bits[(((1024) + (((sizeof(fd_mask) * 8)) - 1)) / ((sizeof(fd_mask) * 8)))];
} fd_set;
#define FD_SET(n,p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
#define FD_CLR(n,p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
#define FD_ISSET(n,p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
#define FD_COPY(f,t) bcopy(f, t, sizeof(*(f)))
#define FD_ZERO(p) bzero(p, sizeof(*(p)))
# 183 "/usr/include/sys/types.h" 3 4
struct _pthread_handler_rec
{
void (*routine)(void *);
void *arg;
struct _pthread_handler_rec *next;
};
#define __PTHREAD_SIZE__ 596
#define __PTHREAD_ATTR_SIZE__ 36
#define __PTHREAD_MUTEXATTR_SIZE__ 8
#define __PTHREAD_MUTEX_SIZE__ 40
#define __PTHREAD_CONDATTR_SIZE__ 4
#define __PTHREAD_COND_SIZE__ 24
#define __PTHREAD_ONCE_SIZE__ 4
#define __PTHREAD_RWLOCK_SIZE__ 124
#define __PTHREAD_RWLOCKATTR_SIZE__ 12
typedef struct _opaque_pthread_t { long sig; struct _pthread_handler_rec *cleanup_stack; char opaque[596];} *pthread_t;
typedef struct _opaque_pthread_attr_t { long sig; char opaque[36]; } pthread_attr_t;
typedef struct _opaque_pthread_mutexattr_t { long sig; char opaque[8]; } pthread_mutexattr_t;
typedef struct _opaque_pthread_mutex_t { long sig; char opaque[40]; } pthread_mutex_t;
typedef struct _opaque_pthread_condattr_t { long sig; char opaque[4]; } pthread_condattr_t;
typedef struct _opaque_pthread_cond_t { long sig; char opaque[24]; } pthread_cond_t;
typedef struct _opaque_pthread_rwlockattr_t { long sig; char opaque[12]; } pthread_rwlockattr_t;
typedef struct _opaque_pthread_rwlock_t { long sig; char opaque[124]; } pthread_rwlock_t;
typedef struct { long sig; char opaque[4]; } pthread_once_t;
typedef unsigned long pthread_key_t;
# 75 "/usr/include/sys/fcntl.h" 2 3 4
# 85 "/usr/include/sys/fcntl.h" 3 4
#define O_RDONLY 0x0000
#define O_WRONLY 0x0001
#define O_RDWR 0x0002
#define O_ACCMODE 0x0003
# 99 "/usr/include/sys/fcntl.h" 3 4
#define FREAD 0x0001
#define FWRITE 0x0002
#define O_NONBLOCK 0x0004
#define O_APPEND 0x0008
#define O_SHLOCK 0x0010
#define O_EXLOCK 0x0020
#define O_ASYNC 0x0040
#define O_FSYNC 0x0080
#define O_NOFOLLOW 0x0100
#define O_CREAT 0x0200
#define O_TRUNC 0x0400
#define O_EXCL 0x0800
#define O_EVTONLY 0x8000
#define O_NOCTTY 0
# 143 "/usr/include/sys/fcntl.h" 3 4
#define FAPPEND O_APPEND
#define FASYNC O_ASYNC
#define FFSYNC O_FSYNC
#define FNONBLOCK O_NONBLOCK
#define FNDELAY O_NONBLOCK
#define O_NDELAY O_NONBLOCK
#define CPF_OVERWRITE 1
#define CPF_IGNORE_MODE 2
#define CPF_MASK (CPF_OVERWRITE|CPF_IGNORE_MODE)
#define F_DUPFD 0
#define F_GETFD 1
#define F_SETFD 2
#define F_GETFL 3
#define F_SETFL 4
#define F_GETOWN 5
#define F_SETOWN 6
#define F_GETLK 7
#define F_SETLK 8
#define F_SETLKW 9
#define F_CHKCLEAN 41
#define F_PREALLOCATE 42
#define F_SETSIZE 43
#define F_RDADVISE 44
#define F_RDAHEAD 45
#define F_READBOOTSTRAP 46
#define F_WRITEBOOTSTRAP 47
#define F_NOCACHE 48
#define F_LOG2PHYS 49
#define F_GETPATH 50
#define F_FULLFSYNC 51
#define FD_CLOEXEC 1
#define F_RDLCK 1
#define F_UNLCK 2
#define F_WRLCK 3
# 205 "/usr/include/sys/fcntl.h" 3 4
#define F_ALLOCATECONTIG 0x00000002
#define F_ALLOCATEALL 0x00000004
#define F_PEOFPOSMODE 3
#define F_VOLPOSMODE 4
struct flock {
off_t l_start;
off_t l_len;
pid_t l_pid;
short l_type;
short l_whence;
};
struct radvisory {
off_t ra_offset;
int ra_count;
};
#define LOCK_SH 0x01
#define LOCK_EX 0x02
#define LOCK_NB 0x04
#define LOCK_UN 0x08
typedef struct fstore {
u_int32_t fst_flags;
int fst_posmode;
off_t fst_offset;
off_t fst_length;
off_t fst_bytesalloc;
} fstore_t;
typedef struct fbootstraptransfer {
off_t fbt_offset;
size_t fbt_length;
void *fbt_buffer;
} fbootstraptransfer_t;
# 279 "/usr/include/sys/fcntl.h" 3 4
struct log2phys {
u_int32_t l2p_flags;
off_t l2p_contigbytes;
off_t l2p_devoffset;
};
#define O_POPUP 0x80000000
#define O_ALERT 0x20000000
int open (const char *, int, ...);
int creat (const char *, mode_t);
int fcntl (int, int, ...);
int flock (int, int);
# 24 "/usr/include/fcntl.h" 2 3 4
# 24 "careadlinkat.h" 2
# 1 "unistd.h" 1
# 20 "unistd.h" 3
# 43 "unistd.h" 3
# 1 "/usr/include/unistd.h" 1 3 4
# 69 "/usr/include/unistd.h" 3 4
#define _UNISTD_H_
# 1 "/usr/include/sys/unistd.h" 1 3 4
# 59 "/usr/include/sys/unistd.h" 3 4
#define _SYS_UNISTD_H_
#define _POSIX_JOB_CONTROL
# 74 "/usr/include/sys/unistd.h" 3 4
#define _POSIX_VERSION 198808L
#define _POSIX2_VERSION 199212L
#define _POSIX_CHOWN_RESTRICTED 1
#define _POSIX_NO_TRUNC 1
#define _POSIX_VDISABLE ((unsigned char)'\377')
#define _POSIX_THREADS
#define _POSIX_THREAD_ATTR_STACKADDR
#define _POSIX_THREAD_ATTR_STACKSIZE
#define _POSIX_THREAD_PRIORITY_SCHEDULING
#define _POSIX_THREAD_PRIO_INHERIT
#define _POSIX_THREAD_PRIO_PROTECT
#define _POSIX_THREAD_KEYS_MAX 128
#define F_OK 0
#define X_OK 0x01
#define W_OK 0x02
#define R_OK 0x04
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#define L_SET SEEK_SET
#define L_INCR SEEK_CUR
#define L_XTND SEEK_END
#define _PC_LINK_MAX 1
#define _PC_MAX_CANON 2
#define _PC_MAX_INPUT 3
#define _PC_NAME_MAX 4
#define _PC_PATH_MAX 5
#define _PC_PIPE_BUF 6
#define _PC_CHOWN_RESTRICTED 7
#define _PC_NO_TRUNC 8
#define _PC_VDISABLE 9
#define _PC_NAME_CHARS_MAX 10
#define _PC_CASE_SENSITIVE 11
#define _PC_CASE_PRESERVING 12
#define _CS_PATH 1
#define _POSIX_ASYNCHRONOUS_IO
# 74 "/usr/include/unistd.h" 2 3 4
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#define _POSIX_THREADS
#define F_ULOCK 0
#define F_LOCK 1
#define F_TLOCK 2
#define F_TEST 3
#define _SC_ARG_MAX 1
#define _SC_CHILD_MAX 2
#define _SC_CLK_TCK 3
#define _SC_NGROUPS_MAX 4
#define _SC_OPEN_MAX 5
#define _SC_JOB_CONTROL 6
#define _SC_SAVED_IDS 7
#define _SC_VERSION 8
#define _SC_BC_BASE_MAX 9
#define _SC_BC_DIM_MAX 10
#define _SC_BC_SCALE_MAX 11
#define _SC_BC_STRING_MAX 12
#define _SC_COLL_WEIGHTS_MAX 13
#define _SC_EXPR_NEST_MAX 14
#define _SC_LINE_MAX 15
#define _SC_RE_DUP_MAX 16
#define _SC_2_VERSION 17
#define _SC_2_C_BIND 18
#define _SC_2_C_DEV 19
#define _SC_2_CHAR_TERM 20
#define _SC_2_FORT_DEV 21
#define _SC_2_FORT_RUN 22
#define _SC_2_LOCALEDEF 23
#define _SC_2_SW_DEV 24
#define _SC_2_UPE 25
#define _SC_STREAM_MAX 26
#define _SC_TZNAME_MAX 27
#define _SC_ASYNCHRONOUS_IO 28
#define _SC_PAGESIZE 29
#define _SC_AIO_LISTIO_MAX 42
#define _SC_AIO_MAX 43
#define _SC_AIO_PRIO_DELTA_MAX 44
void _Exit(int) __attribute__((__noreturn__));
void _exit(int) __attribute__((__noreturn__));
int access(const char *, int);
unsigned int alarm(unsigned int);
int chdir(const char *);
int chown(const char *, uid_t, gid_t);
int close(int);
size_t confstr(int, char *, size_t);
int dup(int);
int dup2(int, int);
int execl(const char *, const char *, ...);
int execle(const char *, const char *, ...);
int execlp(const char *, const char *, ...);
int execv(const char *, char * const *);
int execve(const char *, char * const *, char * const *);
int execvp(const char *, char * const *);
pid_t fork(void);
long fpathconf(int, int);
char *getcwd(char *, size_t);
int getdomainname(char *, int);
gid_t getegid(void);
uid_t geteuid(void);
gid_t getgid(void);
int getgroups(int, gid_t []);
char *getlogin(void);
int getlogin_r(char *, int);
pid_t getpgrp(void);
pid_t getpid(void);
pid_t getppid(void);
uid_t getuid(void);
int isatty(int);
int link(const char *, const char *);
off_t lseek(int, off_t, int);
long pathconf(const char *, int);
int pause(void);
int pipe(int *);
ssize_t read(int, void *, size_t);
int rmdir(const char *);
int setdomainname(const char *, int);
int setgid(gid_t);
int setpgid(pid_t, pid_t);
pid_t setsid(void);
int setuid(uid_t);
unsigned int sleep(unsigned int);
long sysconf(int);
pid_t tcgetpgrp(int);
int tcsetpgrp(int, pid_t);
char *ttyname(int);
char *ttyname_r(int, char *, size_t);
int unlink(const char *);
ssize_t write(int, const void *, size_t);
extern char *optarg;
extern int optind, opterr, optopt, optreset;
int getopt(int, char * const [], const char *);
struct timespec;
struct timeval;
int acct(const char *);
int async_daemon(void);
char *brk(const char *);
int chroot(const char *);
char *crypt(const char *, const char *);
int des_cipher(const char *, char *, long, int);
int des_setkey(const char *key);
int encrypt(char *, int);
void endusershell(void);
int fchdir(int);
int fchown(int, int, int);
char *fflagstostr(u_long);
int fsync(int);
int ftruncate(int, off_t);
int getdtablesize(void);
int getgrouplist(const char *, int, int *, int *);
long gethostid(void);
int gethostname(char *, int);
mode_t getmode(const void *, mode_t);
int getpagesize(void) __attribute__((__const__));
char *getpass(const char *);
int getpgid(pid_t _pid);
int getsid(pid_t _pid);
char *getusershell(void);
char *getwd(char *);
int lockf(int, int, off_t);
int initgroups(const char *, int);
int iruserok(unsigned long, int, const char *, const char *);
int issetugid(void);
char *mkdtemp(char *);
int mknod(const char *, mode_t, dev_t);
int mkstemp(char *);
int mkstemps(char *, int);
char *mktemp(char *);
int nfssvc(int, void *);
int nice(int);
ssize_t pread(int, void *, size_t, off_t);
# 1 "signal.h" 1 3 4
# 21 "signal.h" 3
# 43 "signal.h" 3
#define _GL_ALREADY_INCLUDING_SIGNAL_H
# 52 "signal.h" 3
# 1 "/usr/include/signal.h" 1 3 4
# 59 "/usr/include/signal.h" 3 4
#define _USER_SIGNAL_H
# 1 "/usr/include/sys/signal.h" 1 3 4
# 64 "/usr/include/sys/signal.h" 3 4
#define _SYS_SIGNAL_H_
#define NSIG 32
# 1 "/usr/include/machine/signal.h" 1 3 4
# 23 "/usr/include/machine/signal.h" 3 4
#define _BSD_MACHINE_SIGNAL_H_
# 1 "/usr/include/ppc/signal.h" 1 3 4
# 27 "/usr/include/ppc/signal.h" 3 4
#define _PPC_SIGNAL_ 1
typedef int sig_atomic_t;
#define SV_SAVE_REGS 0x1000
# 50 "/usr/include/ppc/signal.h" 3 4
typedef enum {
REGS_SAVED_NONE,
REGS_SAVED_CALLER,
REGS_SAVED_ALL
} regs_saved_t;
# 66 "/usr/include/ppc/signal.h" 3 4
struct sigcontext {
int sc_onstack;
int sc_mask;
int sc_ir;
int sc_psw;
int sc_sp;
void *sc_regs;
};
# 28 "/usr/include/machine/signal.h" 2 3 4
# 73 "/usr/include/sys/signal.h" 2 3 4
#define SIGHUP 1
#define SIGINT 2
#define SIGQUIT 3
#define SIGILL 4
#define SIGTRAP 5
#define SIGABRT 6
#define SIGIOT SIGABRT
#define SIGEMT 7
#define SIGFPE 8
#define SIGKILL 9
#define SIGBUS 10
#define SIGSEGV 11
#define SIGSYS 12
#define SIGPIPE 13
#define SIGALRM 14
#define SIGTERM 15
#define SIGURG 16
#define SIGSTOP 17
#define SIGTSTP 18
#define SIGCONT 19
#define SIGCHLD 20
#define SIGTTIN 21
#define SIGTTOU 22
#define SIGIO 23
#define SIGXCPU 24
#define SIGXFSZ 25
#define SIGVTALRM 26
#define SIGPROF 27
#define SIGWINCH 28
#define SIGINFO 29
#define SIGUSR1 30
#define SIGUSR2 31
# 128 "/usr/include/sys/signal.h" 3 4
#define SIG_DFL (void (*)())0
#define SIG_IGN (void (*)())1
#define SIG_ERR (void (*)())-1
typedef unsigned int sigset_t;
union sigval {
int sigval_int;
void *sigval_ptr;
};
#define SIGEV_NONE 0
#define SIGEV_SIGNAL 1
#define SIGEV_THREAD 3
struct sigevent {
int sigev_notify;
int sigev_signo;
union sigval sigev_value;
void (*sigev_notify_function)(union sigval);
pthread_attr_t *sigev_notify_attributes;
};
typedef struct __siginfo {
int si_signo;
int si_errno;
int si_code;
int si_pid;
unsigned int si_uid;
int si_status;
void *si_addr;
union sigval si_value;
long si_band;
unsigned int pad[7];
} siginfo_t;
# 184 "/usr/include/sys/signal.h" 3 4
#define ILL_NOOP 0
#define ILL_ILLOPC 1
#define ILL_ILLTRP 2
#define ILL_PRVOPC 3
#define FPE_NOOP 0
#define FPE_FLTDIV 1
#define FPE_FLTOVF 2
#define FPE_FLTUND 3
#define FPE_FLTRES 4
#define FPE_FLTINV 5
#define SEGV_NOOP 0
#define SEGV_MAPERR 1
#define SEGV_ACCERR 2
#define BUS_NOOP 0
#define BUS_ADRALN 1
#define CLD_NOOP 0
#define CLD_EXITED 1
#define CLD_KILLED 2
#define CLD_DUMPED 3
#define CLD_TRAPPED 4
#define CLD_STOPPED 5
#define CLD_CONTINUED 6
union __sigaction_u {
void (*__sa_handler)(int);
void (*__sa_sigaction)(int, struct __siginfo *,
void *);
};
struct __sigaction {
union __sigaction_u __sigaction_u;
void (*sa_tramp)(void *, int, int, siginfo_t *, void *);
sigset_t sa_mask;
int sa_flags;
};
struct sigaction {
union __sigaction_u __sigaction_u;
sigset_t sa_mask;
int sa_flags;
};
#define sa_handler __sigaction_u.__sa_handler
#define sa_sigaction __sigaction_u.__sa_sigaction
#define SA_ONSTACK 0x0001
#define SA_RESTART 0x0002
#define SA_DISABLE 0x0004
#define SA_RESETHAND 0x0004
#define SA_NODEFER 0x0010
#define SA_NOCLDWAIT 0x0020
#define SA_SIGINFO 0x0040
#define SA_USERTRAMP 0x0100
#define SA_64REGSET 0x0200
#define SA_NOCLDSTOP 0x0008
#define SIG_BLOCK 1
#define SIG_UNBLOCK 2
#define SIG_SETMASK 3
#define SI_USER 0x10001
#define SI_QUEUE 0x10002
#define SI_TIMER 0x10003
#define SI_ASYNCIO 0x10004
#define SI_MESGQ 0x10005
typedef void (*sig_t) (int);
struct sigaltstack {
char *ss_sp;
int ss_size;
int ss_flags;
};
typedef struct sigaltstack stack_t;
#define SS_ONSTACK 0x0001
#define SS_DISABLE 0x0004
#define MINSIGSTKSZ 32768
#define SIGSTKSZ 131072
struct sigvec {
void (*sv_handler)(int);
int sv_mask;
int sv_flags;
};
#define SV_ONSTACK SA_ONSTACK
#define SV_INTERRUPT SA_RESTART
#define SV_RESETHAND SA_RESETHAND
#define SV_NODEFER SA_NODEFER
#define SV_NOCLDSTOP SA_NOCLDSTOP
#define SV_SIGINFO SA_SIGINFO
#define sv_onstack sv_flags
struct sigstack {
char *ss_sp;
int ss_onstack;
};
#define sigmask(m) (1 << ((m)-1))
# 339 "/usr/include/sys/signal.h" 3 4
#define BADSIG SIG_ERR
# 348 "/usr/include/sys/signal.h" 3 4
void (*signal (int, void (*) (int))) (int);
# 64 "/usr/include/signal.h" 2 3 4
extern const char *const sys_signame[32];
extern const char *const sys_siglist[32];
int raise(int);
int kill(pid_t, int);
int sigaction(int, const struct sigaction *, struct sigaction *);
int sigaddset(sigset_t *, int);
int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
int sigdelset(sigset_t *, int);
int sigemptyset(sigset_t *);
int sigfillset(sigset_t *);
int sigismember(const sigset_t *, int);
int sigpending(sigset_t *);
int sigprocmask(int, const sigset_t *, sigset_t *);
int sigsuspend(const sigset_t *);
int sigwait(const sigset_t *, int *);
int killpg(pid_t, int);
int sigblock(int);
int siginterrupt(int, int);
int sighold(int);
int sigrelse(int);
int sigpause(int);
int sigreturn(struct sigcontext *);
int sigsetmask(int);
int sigvec(int, struct sigvec *, struct sigvec *);
void psignal(unsigned int, const char *);
#define sigaddset(set,signo) (*(set) |= 1 << ((signo) - 1), 0)
#define sigdelset(set,signo) (*(set) &= ~(1 << ((signo) - 1)), 0)
#define sigemptyset(set) (*(set) = 0, 0)
#define sigfillset(set) (*(set) = ~(sigset_t)0, 0)
#define sigismember(set,signo) ((*(set) & (1 << ((signo) - 1))) != 0)
# 53 "signal.h" 2 3
#undef _GL_ALREADY_INCLUDING_SIGNAL_H
#define _GL_SIGNAL_H
# 1 "/usr/include/pthread.h" 1 3 4
# 53 "/usr/include/pthread.h" 3 4
#define _POSIX_PTHREAD_H
# 1 "/usr/include/pthread_impl.h" 1 3 4
# 25 "/usr/include/pthread_impl.h" 3 4
#define _PTHREAD_IMPL_H_
# 37 "/usr/include/pthread_impl.h" 3 4
#define _PTHREAD_MUTEX_SIG_init 0x32AAABA7
#define _PTHREAD_COND_SIG_init 0x3CB0B1BB
#define _PTHREAD_ONCE_SIG_init 0x30B1BCBA
#define SCHED_OTHER 1
#define SCHED_FIFO 4
#define SCHED_RR 2
#define __SCHED_PARAM_SIZE__ 4
# 57 "/usr/include/pthread.h" 2 3 4
# 1 "/usr/include/errno.h" 1 3 4
# 23 "/usr/include/errno.h" 3 4
# 1 "/usr/include/sys/errno.h" 1 3 4
# 64 "/usr/include/sys/errno.h" 3 4
#define _SYS_ERRNO_H_
extern int * __error (void);
#define errno (*__error())
#define EPERM 1
#define ENOENT 2
#define ESRCH 3
#define EINTR 4
#define EIO 5
#define ENXIO 6
#define E2BIG 7
#define ENOEXEC 8
#define EBADF 9
#define ECHILD 10
#define EDEADLK 11
#define ENOMEM 12
#define EACCES 13
#define EFAULT 14
#define ENOTBLK 15
#define EBUSY 16
#define EEXIST 17
#define EXDEV 18
#define ENODEV 19
#define ENOTDIR 20
#define EISDIR 21
#define EINVAL 22
#define ENFILE 23
#define EMFILE 24
#define ENOTTY 25
#define ETXTBSY 26
#define EFBIG 27
#define ENOSPC 28
#define ESPIPE 29
#define EROFS 30
#define EMLINK 31
#define EPIPE 32
#define EDOM 33
#define ERANGE 34
#define EAGAIN 35
#define EWOULDBLOCK EAGAIN
#define EINPROGRESS 36
#define EALREADY 37
#define ENOTSOCK 38
#define EDESTADDRREQ 39
#define EMSGSIZE 40
#define EPROTOTYPE 41
#define ENOPROTOOPT 42
#define EPROTONOSUPPORT 43
#define ESOCKTNOSUPPORT 44
#define ENOTSUP 45
#define EOPNOTSUPP ENOTSUP
#define EPFNOSUPPORT 46
#define EAFNOSUPPORT 47
#define EADDRINUSE 48
#define EADDRNOTAVAIL 49
#define ENETDOWN 50
#define ENETUNREACH 51
#define ENETRESET 52
#define ECONNABORTED 53
#define ECONNRESET 54
#define ENOBUFS 55
#define EISCONN 56
#define ENOTCONN 57
#define ESHUTDOWN 58
#define ETOOMANYREFS 59
#define ETIMEDOUT 60
#define ECONNREFUSED 61
#define ELOOP 62
#define ENAMETOOLONG 63
#define EHOSTDOWN 64
#define EHOSTUNREACH 65
#define ENOTEMPTY 66
#define EPROCLIM 67
#define EUSERS 68
#define EDQUOT 69
#define ESTALE 70
#define EREMOTE 71
#define EBADRPC 72
#define ERPCMISMATCH 73
#define EPROGUNAVAIL 74
#define EPROGMISMATCH 75
#define EPROCUNAVAIL 76
#define ENOLCK 77
#define ENOSYS 78
#define EFTYPE 79
#define EAUTH 80
#define ENEEDAUTH 81
#define EPWROFF 82
#define EDEVERR 83
#define EOVERFLOW 84
#define EBADEXEC 85
#define EBADARCH 86
#define ESHLIBVERS 87
#define EBADMACHO 88
#define ECANCELED 89
#define EIDRM 90
#define ENOMSG 91
#define EILSEQ 92
#define ENOATTR 93
#define ELAST 93
# 24 "/usr/include/errno.h" 2 3 4
# 59 "/usr/include/pthread.h" 2 3 4
# 1 "/usr/include/sched.h" 1 3 4
# 25 "/usr/include/sched.h" 3 4
#define _SCHED_H_
struct sched_param { int sched_priority; char opaque[4]; };
extern int sched_yield(void);
extern int sched_get_priority_min(int);
extern int sched_get_priority_max(int);
# 60 "/usr/include/pthread.h" 2 3 4
# 1 "time.h" 1 3 4
# 21 "time.h" 3
# 37 "time.h" 3
#define _GL_TIME_H
# 1 "/usr/include/time.h" 1 3 4
# 64 "/usr/include/time.h" 3 4
#define _TIME_H_
# 88 "/usr/include/time.h" 3 4
#define _TIMESPEC_DECLARED
struct timespec {
time_t tv_sec;
long tv_nsec;
};
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
long tm_gmtoff;
char *tm_zone;
};
# 1 "/usr/include/gcc/darwin/3.3/machine/limits.h" 1 3 4
#define _LIMITS_H___
# 24 "/usr/include/gcc/darwin/3.3/machine/limits.h" 3 4
# 1 "/usr/include/ppc/limits.h" 1 3 4
# 43 "/usr/include/ppc/limits.h" 3 4
#define _PPC_LIMITS_H_
#define CHAR_BIT 8
#define MB_LEN_MAX 6
#define CLK_TCK 100
# 60 "/usr/include/ppc/limits.h" 3 4
#define SCHAR_MAX 127
#define SCHAR_MIN (-128)
#define UCHAR_MAX 255
#define CHAR_MAX 127
#define CHAR_MIN (-128)
#define USHRT_MAX 65535
#define SHRT_MAX 32767
#define SHRT_MIN (-32768)
#define UINT_MAX 0xffffffff
#define INT_MAX 2147483647
#define INT_MIN (-2147483647-1)
#define ULONG_MAX 0xffffffff
#define LONG_MAX 2147483647
#define LONG_MIN (-2147483647-1)
#define ULLONG_MAX 0xffffffffffffffffULL
#define LLONG_MAX 0x7fffffffffffffffLL
#define LLONG_MIN (-0x7fffffffffffffffLL-1)
#define SSIZE_MAX INT_MAX
#define SIZE_T_MAX UINT_MAX
#define UQUAD_MAX ULLONG_MAX
#define QUAD_MAX LLONG_MAX
#define QUAD_MIN LLONG_MIN
#define LONG_BIT 32
#define WORD_BIT 32
# 25 "/usr/include/gcc/darwin/3.3/machine/limits.h" 2 3 4
#undef MB_LEN_MAX
#define MB_LEN_MAX 6
#undef CHAR_BIT
#define CHAR_BIT __CHAR_BIT__
#undef SCHAR_MIN
#define SCHAR_MIN (-SCHAR_MAX - 1)
#undef SCHAR_MAX
#define SCHAR_MAX __SCHAR_MAX__
#undef UCHAR_MAX
#define UCHAR_MAX (SCHAR_MAX * 2 + 1)
# 69 "/usr/include/gcc/darwin/3.3/machine/limits.h" 3 4
#undef CHAR_MIN
#define CHAR_MIN SCHAR_MIN
#undef CHAR_MAX
#define CHAR_MAX SCHAR_MAX
#undef SHRT_MIN
#define SHRT_MIN (-SHRT_MAX - 1)
#undef SHRT_MAX
#define SHRT_MAX __SHRT_MAX__
#undef USHRT_MAX
#define USHRT_MAX (SHRT_MAX * 2 + 1)
#undef INT_MIN
#define INT_MIN (-INT_MAX - 1)
#undef INT_MAX
#define INT_MAX __INT_MAX__
#undef UINT_MAX
#define UINT_MAX (INT_MAX * 2U + 1U)
#undef LONG_MIN
#define LONG_MIN (-LONG_MAX - 1L)
#undef LONG_MAX
#define LONG_MAX __LONG_MAX__
#undef ULONG_MAX
#define ULONG_MAX (LONG_MAX * 2UL + 1UL)
#undef LLONG_MIN
#define LLONG_MIN (-LLONG_MAX - 1LL)
#undef LLONG_MAX
#define LLONG_MAX __LONG_LONG_MAX__
#undef ULLONG_MAX
#define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
#define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
#define LONG_LONG_MAX __LONG_LONG_MAX__
#define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1ULL)
# 110 "/usr/include/time.h" 2 3 4
#define CLOCKS_PER_SEC (CLK_TCK)
extern char *tzname[];
char *asctime(const struct tm *);
clock_t clock(void);
char *ctime(const time_t *);
double difftime(time_t, time_t);
struct tm *gmtime(const time_t *);
struct tm *localtime(const time_t *);
time_t mktime(struct tm *);
size_t strftime(char *, size_t, const char *, const struct tm *);
time_t time(time_t *);
void tzset(void);
char *asctime_r(const struct tm *, char *);
char *ctime_r(const time_t *, char *);
struct tm *gmtime_r(const time_t *, struct tm *);
struct tm *localtime_r(const time_t *, struct tm *);
time_t posix2time(time_t);
char *strptime(const char *, const char *, struct tm *);
char *timezone(int, int);
void tzsetwall(void);
time_t time2posix(time_t);
time_t timelocal(struct tm * const);
time_t timegm(struct tm * const);
int nanosleep(const struct timespec *, struct timespec *);
# 40 "time.h" 2 3
# 407 "time.h" 3
struct __time_t_must_be_integral {
unsigned int __floating_time_t_unsupported : (time_t) 1;
};
#define GNULIB_defined_struct_time_t_must_be_integral 1
# 442 "time.h" 3
#define mktime rpl_mktime
extern time_t rpl_mktime (struct tm *__tp) __attribute__ ((__nonnull__ (1)));
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 472 "time.h" 3
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 494 "time.h" 3
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 61 "/usr/include/pthread.h" 2 3 4
# 1 "unistd.h" 1 3 4
# 20 "unistd.h" 3
# 43 "unistd.h" 3
# 1 "/usr/include/unistd.h" 1 3 4
# 44 "unistd.h" 2 3
# 55 "unistd.h" 3
#define _GL_UNISTD_H
# 83 "unistd.h" 3
# 1 "stdlib.h" 1 3
# 21 "stdlib.h" 3
# 84 "unistd.h" 2 3
# 128 "unistd.h" 3
# 1 "getopt.h" 1 3
# 24 "getopt.h" 3
#define _GL_SYSTEM_GETOPT
# 1 "/usr/include/getopt.h" 1 3 4
# 62 "/usr/include/getopt.h" 3 4
#define _GETOPT_H_
# 1 "unistd.h" 1 3 4
# 20 "unistd.h" 3
# 66 "/usr/include/getopt.h" 2 3 4
#define no_argument 0
#define required_argument 1
#define optional_argument 2
struct option {
const char *name;
int has_arg;
int *flag;
int val;
};
int getopt_long(int, char * const *, const char *, const struct option *, int *);
# 33 "getopt.h" 2 3
#undef _GL_SYSTEM_GETOPT
#define _GL_GETOPT_H 1
# 66 "getopt.h" 3
#define __GETOPT_CONCAT(x,y) x ## y
#define __GETOPT_XCONCAT(x,y) __GETOPT_CONCAT (x, y)
#define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
#define getopt __GETOPT_ID (getopt)
#define getopt_long __GETOPT_ID (getopt_long)
#define getopt_long_only __GETOPT_ID (getopt_long_only)
#define optarg __GETOPT_ID (optarg)
#define opterr __GETOPT_ID (opterr)
#define optind __GETOPT_ID (optind)
#define optopt __GETOPT_ID (optopt)
#define option __GETOPT_ID (option)
#define _getopt_internal __GETOPT_ID (getopt_internal)
# 98 "getopt.h" 3
#define __getopt_argv_const
# 112 "getopt.h" 3
# 1 "/usr/include/ctype.h" 1 3 4
# 67 "/usr/include/ctype.h" 3 4
#define _CTYPE_H_
# 1 "/usr/include/runetype.h" 1 3 4
# 62 "/usr/include/runetype.h" 3 4
#define _RUNETYPE_H_
# 98 "/usr/include/runetype.h" 3 4
#define _CACHED_RUNES (1 <<8 )
#define _CRMASK (~(_CACHED_RUNES - 1))
typedef struct {
rune_t min;
rune_t max;
rune_t map;
unsigned long *types;
} _RuneEntry;
typedef struct {
int nranges;
_RuneEntry *ranges;
} _RuneRange;
typedef struct {
char magic[8];
char encoding[32];
rune_t (*sgetrune)
(const char *, size_t, char const **);
int (*sputrune)
(rune_t, char *, size_t, char **);
rune_t invalid_rune;
unsigned long runetype[(1 <<8 )];
rune_t maplower[(1 <<8 )];
rune_t mapupper[(1 <<8 )];
_RuneRange runetype_ext;
_RuneRange maplower_ext;
_RuneRange mapupper_ext;
void *variable;
int variable_len;
} _RuneLocale;
#define _RUNE_MAGIC_1 "RuneMagi"
extern _RuneLocale _DefaultRuneLocale;
extern _RuneLocale *_CurrentRuneLocale;
# 70 "/usr/include/ctype.h" 2 3 4
#define _CTYPE_A 0x00000100L
#define _CTYPE_C 0x00000200L
#define _CTYPE_D 0x00000400L
#define _CTYPE_G 0x00000800L
#define _CTYPE_L 0x00001000L
#define _CTYPE_P 0x00002000L
#define _CTYPE_S 0x00004000L
#define _CTYPE_U 0x00008000L
#define _CTYPE_X 0x00010000L
#define _CTYPE_B 0x00020000L
#define _CTYPE_R 0x00040000L
#define _CTYPE_I 0x00080000L
#define _CTYPE_T 0x00100000L
#define _CTYPE_Q 0x00200000L
#define _CTYPE_SW0 0x20000000L
#define _CTYPE_SW1 0x40000000L
#define _CTYPE_SW2 0x80000000L
#define _CTYPE_SW3 0xc0000000L
#define _A _CTYPE_A
#define _C _CTYPE_C
#define _D _CTYPE_D
#define _G _CTYPE_G
#define _L _CTYPE_L
#define _P _CTYPE_P
#define _S _CTYPE_S
#define _U _CTYPE_U
#define _X _CTYPE_X
#define _B _CTYPE_B
#define _R _CTYPE_R
#define _I _CTYPE_I
#define _T _CTYPE_T
#define _Q _CTYPE_Q
#define _SW0 _CTYPE_SW0
#define _SW1 _CTYPE_SW1
#define _SW2 _CTYPE_SW2
#define _SW3 _CTYPE_SW3
int isalnum(int);
int isalpha(int);
int iscntrl(int);
int isdigit(int);
int isgraph(int);
int islower(int);
int isprint(int);
int ispunct(int);
int isspace(int);
int isupper(int);
int isxdigit(int);
int tolower(int);
int toupper(int);
int digittoint(int);
int isascii(int);
int isblank(int);
int ishexnumber(int);
int isideogram(int);
int isnumber(int);
int isphonogram(int);
int isrune(int);
int isspecial(int);
int toascii(int);
#define isalnum(c) __istype((c), (_CTYPE_A|_CTYPE_D))
#define isalpha(c) __istype((c), _CTYPE_A)
#define iscntrl(c) __istype((c), _CTYPE_C)
#define isdigit(c) __isctype((c), _CTYPE_D)
#define isgraph(c) __istype((c), _CTYPE_G)
#define islower(c) __istype((c), _CTYPE_L)
#define isprint(c) __istype((c), _CTYPE_R)
#define ispunct(c) __istype((c), _CTYPE_P)
#define isspace(c) __istype((c), _CTYPE_S)
#define isupper(c) __istype((c), _CTYPE_U)
#define isxdigit(c) __isctype((c), _CTYPE_X)
#define tolower(c) __tolower(c)
#define toupper(c) __toupper(c)
#define digittoint(c) __maskrune((c), 0xFF)
#define isascii(c) ((c & ~0x7F) == 0)
#define isblank(c) __istype((c), _CTYPE_B)
#define ishexnumber(c) __istype((c), _CTYPE_X)
#define isideogram(c) __istype((c), _CTYPE_I)
#define isnumber(c) __istype((c), _CTYPE_D)
#define isphonogram(c) __istype((c), _CTYPE_Q)
#define isrune(c) __istype((c), 0xFFFFFF00L)
#define isspecial(c) __istype((c), _CTYPE_T)
#define toascii(c) ((c) & 0x7F)
unsigned long ___runetype(int);
int ___tolower(int);
int ___toupper(int);
# 192 "/usr/include/ctype.h" 3 4
static __inline int
__maskrune(int _c, unsigned long _f)
{
return ((_c < 0 || _c >= (1 <<8 )) ? ___runetype(_c) :
_CurrentRuneLocale->runetype[_c]) & _f;
}
static __inline int
__istype(int c, unsigned long f)
{
return !!(__maskrune(c, f));
}
static __inline int
__isctype(int _c, unsigned long _f)
{
return (_c < 0 || _c >= (1 <<8 )) ? 0 :
!!(_DefaultRuneLocale.runetype[_c] & _f);
}
static __inline int
__toupper(int _c)
{
return (_c < 0 || _c >= (1 <<8 )) ? ___toupper(_c) :
_CurrentRuneLocale->mapupper[_c];
}
static __inline int
__tolower(int _c)
{
return (_c < 0 || _c >= (1 <<8 )) ? ___tolower(_c) :
_CurrentRuneLocale->maplower[_c];
}
# 113 "getopt.h" 2 3
#define __GNUC_PREREQ(maj,min) (0)
#define __THROW
# 148 "getopt.h" 3
extern char *rpl_optarg;
# 162 "getopt.h" 3
extern int rpl_optind;
extern int rpl_opterr;
extern int rpl_optopt;
# 196 "getopt.h" 3
struct rpl_option
{
const char *name;
int has_arg;
int *flag;
int val;
};
#define GNULIB_defined_struct_option 1
#define no_argument 0
#define required_argument 1
#define optional_argument 2
# 241 "getopt.h" 3
extern int rpl_getopt (int ___argc, char *const *___argv, const char *__shortopts)
__attribute__ ((__nonnull__ (2, 3)));
extern int rpl_getopt_long (int ___argc, char * *___argv,
const char *__shortopts,
const struct rpl_option *__longopts, int *__longind)
__attribute__ ((__nonnull__ (2, 3)));
extern int rpl_getopt_long_only (int ___argc, char * *___argv,
const char *__shortopts,
const struct rpl_option *__longopts, int *__longind)
__attribute__ ((__nonnull__ (2, 3)));
# 129 "unistd.h" 2 3
# 659 "unistd.h" 3
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 705 "unistd.h" 3
# 1 "/usr/include/crt_externs.h" 1 3 4
# 36 "/usr/include/crt_externs.h" 3 4
extern char ***_NSGetArgv(void);
extern int *_NSGetArgc(void);
extern char ***_NSGetEnviron(void);
extern char **_NSGetProgname(void);
extern struct mach_header *_NSGetMachExecuteHeader(void);
# 706 "unistd.h" 2 3
#define environ (*_NSGetEnviron ())
# 1555 "unistd.h" 3
#define readlink rpl_readlink
extern ssize_t rpl_readlink (const char *file, char *buf, size_t bufsize) __attribute__ ((__nonnull__ (1, 2)));
extern int _gl_cxxalias_dummy;
# 1571 "unistd.h" 3
extern int _gl_cxxalias_dummy;
# 1679 "unistd.h" 3
#define symlink rpl_symlink
extern int rpl_symlink (char const *contents, char const *file) __attribute__ ((__nonnull__ (1, 2)));
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 62 "/usr/include/pthread.h" 2 3 4
# 1 "/usr/include/limits.h" 1 3 4
# 61 "/usr/include/limits.h" 3 4
#define _LIMITS_H_
# 1 "/usr/include/sys/syslimits.h" 1 3 4
# 60 "/usr/include/sys/syslimits.h" 3 4
#define _SYS_SYSLIMITS_H_
#define ARG_MAX (256 * 1024)
#define CHILD_MAX 100
#define GID_MAX 2147483647U
#define LINK_MAX 32767
#define MAX_CANON 255
#define MAX_INPUT 255
#define NAME_MAX 255
#define NGROUPS_MAX 16
#define UID_MAX 2147483647U
#define OPEN_MAX 10240
#define PATH_MAX 1024
#define PIPE_BUF 512
#define BC_BASE_MAX INT_MAX
#define BC_DIM_MAX 65535
#define BC_SCALE_MAX INT_MAX
#define BC_STRING_MAX INT_MAX
#define COLL_WEIGHTS_MAX 2
#define EQUIV_CLASS_MAX 2
#define EXPR_NEST_MAX 32
#define LINE_MAX 2048
#define RE_DUP_MAX 255
# 65 "/usr/include/limits.h" 2 3 4
#define _POSIX_ARG_MAX 4096
#define _POSIX_CHILD_MAX 6
#define _POSIX_LINK_MAX 8
#define _POSIX_MAX_CANON 255
#define _POSIX_MAX_INPUT 255
#define _POSIX_NAME_MAX 14
#define _POSIX_NGROUPS_MAX 0
#define _POSIX_OPEN_MAX 16
#define _POSIX_PATH_MAX 255
#define _POSIX_PIPE_BUF 512
#define _POSIX_SSIZE_MAX 32767
#define _POSIX_STREAM_MAX 8
#define _POSIX_TZNAME_MAX 3
#define _POSIX2_BC_BASE_MAX 99
#define _POSIX2_BC_DIM_MAX 2048
#define _POSIX2_BC_SCALE_MAX 99
#define _POSIX2_BC_STRING_MAX 1000
#define _POSIX2_COLL_WEIGHTS_MAX 2
#define _POSIX2_EQUIV_CLASS_MAX 2
#define _POSIX2_EXPR_NEST_MAX 32
#define _POSIX2_LINE_MAX 2048
#define _POSIX2_RE_DUP_MAX 255
#define PTHREAD_STACK_MIN 8192
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
#define PTHREAD_KEYS_MAX 128
#define PASS_MAX 128
#define NL_ARGMAX 9
#define NL_LANGMAX 14
#define NL_MSGMAX 32767
#define NL_NMAX 1
#define NL_SETMAX 255
#define NL_TEXTMAX 255
# 63 "/usr/include/pthread.h" 2 3 4
# 1 "signal.h" 1 3 4
# 21 "signal.h" 3
# 64 "/usr/include/pthread.h" 2 3 4
# 1 "/usr/include/mach/mach_types.h" 1 3 4
# 62 "/usr/include/mach/mach_types.h" 3 4
#define _MACH_MACH_TYPES_H_
# 1 "stdint.h" 1 3 4
# 28 "stdint.h" 3
#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
# 78 "stdint.h" 3
# 1 "/usr/include/gcc/darwin/3.3/stdint.h" 1 3 4
# 22 "/usr/include/gcc/darwin/3.3/stdint.h" 3 4
#define _STDINT_H_
# 34 "/usr/include/gcc/darwin/3.3/stdint.h" 3 4
typedef u_int8_t uint8_t;
typedef u_int16_t uint16_t;
typedef u_int32_t uint32_t;
typedef u_int64_t uint64_t;
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;
typedef int8_t int_fast8_t;
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef int64_t int_fast64_t;
typedef uint8_t uint_fast8_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;
# 68 "/usr/include/gcc/darwin/3.3/stdint.h" 3 4
typedef long long intmax_t;
typedef unsigned long long uintmax_t;
# 88 "/usr/include/gcc/darwin/3.3/stdint.h" 3 4
#define INT8_MAX 127
#define INT16_MAX 32767
#define INT32_MAX 2147483647
#define INT64_MAX 9223372036854775807LL
#define INT8_MIN -128
#define INT16_MIN -32768
#define INT32_MIN (-INT32_MAX-1)
#define INT64_MIN (-INT64_MAX-1)
#define UINT8_MAX 255
#define UINT16_MAX 65535
#define UINT32_MAX 4294967295U
#define UINT64_MAX 18446744073709551615ULL
#define INT_LEAST8_MIN INT8_MIN
#define INT_LEAST16_MIN INT16_MIN
#define INT_LEAST32_MIN INT32_MIN
#define INT_LEAST64_MIN INT64_MIN
#define INT_LEAST8_MAX INT8_MAX
#define INT_LEAST16_MAX INT16_MAX
#define INT_LEAST32_MAX INT32_MAX
#define INT_LEAST64_MAX INT64_MAX
#define UINT_LEAST8_MAX UINT8_MAX
#define UINT_LEAST16_MAX UINT16_MAX
#define UINT_LEAST32_MAX UINT32_MAX
#define UINT_LEAST64_MAX UINT64_MAX
#define INT_FAST8_MIN INT8_MIN
#define INT_FAST16_MIN INT16_MIN
#define INT_FAST32_MIN INT32_MIN
#define INT_FAST64_MIN INT64_MIN
#define INT_FAST8_MAX INT8_MAX
#define INT_FAST16_MAX INT16_MAX
#define INT_FAST32_MAX INT32_MAX
#define INT_FAST64_MAX INT64_MAX
#define UINT_FAST8_MAX UINT8_MAX
#define UINT_FAST16_MAX UINT16_MAX
#define UINT_FAST32_MAX UINT32_MAX
#define UINT_FAST64_MAX UINT64_MAX
#define INTPTR_MIN INT32_MIN
#define INTPTR_MAX INT32_MAX
#define UINTPTR_MAX UINT32_MAX
#define INTMAX_MIN INT64_MIN
#define INTMAX_MAX INT64_MAX
#define UINTMAX_MAX UINT64_MAX
#define PTRDIFF_MIN INT32_MIN
#define PTRDIFF_MAX INT32_MAX
#define SIZE_MAX UINT32_MAX
#define WCHAR_MIN 0
#define WCHAR_MAX __WCHAR_MAX__
# 188 "/usr/include/gcc/darwin/3.3/stdint.h" 3 4
#define INT8_C(v) ((int8_t)v)
#define INT16_C(v) ((int16_t)v)
#define INT32_C(v) (v ## L)
#define INT64_C(v) (v ## LL)
#define UINT8_C(v) ((uint8_t)v)
#define UINT16_C(v) ((uint16_t)v)
#define UINT32_C(v) (v ## UL)
#define UINT64_C(v) (v ## ULL)
#define INTMAX_C(v) (v ## LL)
#define UINTMAX_C(v) (v ## ULL)
# 79 "stdint.h" 2 3
#define _GL_STDINT_H
# 102 "stdint.h" 3
# 1 "inttypes.h" 1 3
# 26 "inttypes.h" 3
# 41 "inttypes.h" 3
# 1 "/usr/include/gcc/darwin/3.3/inttypes.h" 1 3 4
# 31 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
#define _INTTYPES_H_
# 1 "stdint.h" 1 3 4
# 36 "/usr/include/gcc/darwin/3.3/inttypes.h" 2 3 4
# 61 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
#define __PRI_8_LENGTH_MODIFIER__ ""
#define __PRI_64_LENGTH_MODIFIER__ "q"
#define PRId8 __PRI_8_LENGTH_MODIFIER__ "d"
#define PRIi8 __PRI_8_LENGTH_MODIFIER__ "i"
#define PRIo8 __PRI_8_LENGTH_MODIFIER__ "o"
#define PRIu8 __PRI_8_LENGTH_MODIFIER__ "u"
#define PRIx8 __PRI_8_LENGTH_MODIFIER__ "x"
#define PRIX8 __PRI_8_LENGTH_MODIFIER__ "X"
#define PRId16 "hd"
#define PRIi16 "hi"
#define PRIo16 "ho"
#define PRIu16 "hu"
#define PRIx16 "hx"
#define PRIX16 "hX"
#define PRId32 "d"
#define PRIi32 "i"
#define PRIo32 "o"
#define PRIu32 "u"
#define PRIx32 "x"
#define PRIX32 "X"
#define PRId64 __PRI_64_LENGTH_MODIFIER__ "d"
#define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i"
#define PRIo64 __PRI_64_LENGTH_MODIFIER__ "o"
#define PRIu64 __PRI_64_LENGTH_MODIFIER__ "u"
#define PRIx64 __PRI_64_LENGTH_MODIFIER__ "x"
#define PRIX64 __PRI_64_LENGTH_MODIFIER__ "X"
#define PRIdLEAST8 PRId8
#define PRIiLEAST8 PRIi8
#define PRIoLEAST8 PRIo8
#define PRIuLEAST8 PRIu8
#define PRIxLEAST8 PRIx8
#define PRIXLEAST8 PRIX8
#define PRIdLEAST16 PRId16
#define PRIiLEAST16 PRIi16
#define PRIoLEAST16 PRIo16
#define PRIuLEAST16 PRIu16
#define PRIxLEAST16 PRIx16
#define PRIXLEAST16 PRIX16
#define PRIdLEAST32 PRId32
#define PRIiLEAST32 PRIi32
#define PRIoLEAST32 PRIo32
#define PRIuLEAST32 PRIu32
#define PRIxLEAST32 PRIx32
#define PRIXLEAST32 PRIX32
#define PRIdLEAST64 PRId64
#define PRIiLEAST64 PRIi64
#define PRIoLEAST64 PRIo64
#define PRIuLEAST64 PRIu64
#define PRIxLEAST64 PRIx64
#define PRIXLEAST64 PRIX64
#define PRIdFAST8 PRId32
#define PRIiFAST8 PRIi32
#define PRIoFAST8 PRIo32
#define PRIuFAST8 PRIu32
#define PRIxFAST8 PRIx32
#define PRIXFAST8 PRIX32
#define PRIdFAST16 PRId32
#define PRIiFAST16 PRIi32
#define PRIoFAST16 PRIo32
#define PRIuFAST16 PRIu32
#define PRIxFAST16 PRIx32
#define PRIXFAST16 PRIX32
#define PRIdFAST32 PRId32
#define PRIiFAST32 PRIi32
#define PRIoFAST32 PRIo32
#define PRIuFAST32 PRIu32
#define PRIxFAST32 PRIx32
#define PRIXFAST32 PRIX32
#define PRIdFAST64 PRId64
#define PRIiFAST64 PRIi64
#define PRIoFAST64 PRIo64
#define PRIuFAST64 PRIu64
#define PRIxFAST64 PRIx64
#define PRIXFAST64 PRIX64
#define PRIdPTR PRId32
#define PRIiPTR PRIi32
#define PRIoPTR PRIo32
#define PRIuPTR PRIu32
#define PRIxPTR PRIx32
#define PRIXPTR PRIX32
#define PRIdMAX PRId64
#define PRIiMAX PRIi64
#define PRIoMAX PRIo64
#define PRIuMAX PRIu64
#define PRIxMAX PRIx64
#define PRIXMAX PRIX64
# 171 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
#define SCNd16 "hd"
#define SCNi16 "hi"
#define SCNo16 "ho"
#define SCNu16 "hu"
#define SCNx16 "hx"
#define SCNd32 "ld"
#define SCNi32 "li"
#define SCNo32 "lo"
#define SCNu32 "lu"
#define SCNx32 "lx"
# 199 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
#define SCNdLEAST16 SCNd16
#define SCNiLEAST16 SCNi16
#define SCNoLEAST16 SCNo16
#define SCNuLEAST16 SCNu16
#define SCNxLEAST16 SCNx16
#define SCNdLEAST32 SCNd32
#define SCNiLEAST32 SCNi32
#define SCNoLEAST32 SCNo32
#define SCNuLEAST32 SCNu32
#define SCNxLEAST32 SCNx32
# 219 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
#define SCNdFAST8 SCNd32
#define SCNiFAST8 SCNi32
#define SCNoFAST8 SCNo32
#define SCNuFAST8 SCNu32
#define SCNxFAST8 SCNx32
#define SCNdFAST16 SCNd32
#define SCNiFAST16 SCNi32
#define SCNoFAST16 SCNo32
#define SCNuFAST16 SCNu32
#define SCNxFAST16 SCNx32
#define SCNdFAST32 SCNd32
#define SCNiFAST32 SCNi32
#define SCNoFAST32 SCNo32
#define SCNuFAST32 SCNu32
#define SCNxFAST32 SCNx32
# 245 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
#define SCNdPTR SCNd32
#define SCNiPTR SCNi32
#define SCNoPTR SCNo32
#define SCNuPTR SCNu32
#define SCNxPTR SCNx32
# 261 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
extern intmax_t imaxabs(intmax_t j);
typedef struct {
intmax_t quot;
intmax_t rem;
} imaxdiv_t;
extern imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
extern intmax_t strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base);
extern uintmax_t strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base);
# 286 "/usr/include/gcc/darwin/3.3/inttypes.h" 3 4
extern intmax_t wcstoimax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base);
extern uintmax_t wcstoumax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base);
# 42 "inttypes.h" 2 3
# 103 "stdint.h" 2 3
# 116 "stdint.h" 3
#undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
#define _STDINT_MIN(signed,bits,zero) ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero))
#define _STDINT_MAX(signed,bits,zero) ((signed) ? ~ _STDINT_MIN (signed, bits, zero) : ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
# 142 "stdint.h" 3
typedef signed char gl_int8_t;
typedef unsigned char gl_uint8_t;
#define int8_t gl_int8_t
#define uint8_t gl_uint8_t
typedef short int gl_int16_t;
typedef unsigned short int gl_uint16_t;
#define int16_t gl_int16_t
#define uint16_t gl_uint16_t
typedef int gl_int32_t;
typedef unsigned int gl_uint32_t;
#define int32_t gl_int32_t
#define uint32_t gl_uint32_t
# 168 "stdint.h" 3
#define GL_INT64_T
# 191 "stdint.h" 3
#define GL_UINT64_T
# 212 "stdint.h" 3
#define _UINT8_T
#define _UINT32_T
#define _UINT64_T
# 231 "stdint.h" 3
#define int_least8_t int8_t
#define uint_least8_t uint8_t
#define int_least16_t int16_t
#define uint_least16_t uint16_t
#define int_least32_t int32_t
#define uint_least32_t uint32_t
#define int_least64_t int64_t
#define uint_least64_t uint64_t
# 263 "stdint.h" 3
typedef signed char gl_int_fast8_t;
typedef unsigned char gl_uint_fast8_t;
typedef long int gl_int_fast32_t;
typedef unsigned long int gl_uint_fast32_t;
typedef gl_int_fast32_t gl_int_fast16_t;
typedef gl_uint_fast32_t gl_uint_fast16_t;
#define int_fast8_t gl_int_fast8_t
#define uint_fast8_t gl_uint_fast8_t
#define int_fast16_t gl_int_fast16_t
#define uint_fast16_t gl_uint_fast16_t
#define int_fast32_t gl_int_fast32_t
#define uint_fast32_t gl_uint_fast32_t
#define int_fast64_t int64_t
#define uint_fast64_t uint64_t
typedef long int gl_intptr_t;
typedef unsigned long int gl_uintptr_t;
#define intptr_t gl_intptr_t
#define uintptr_t gl_uintptr_t
# 340 "stdint.h" 3
typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
? 1 : -1];
#define GNULIB_defined_stdint_types 1
# 353 "stdint.h" 3
#undef INT8_MIN
#undef INT8_MAX
#undef UINT8_MAX
#define INT8_MIN (~ INT8_MAX)
#define INT8_MAX 127
#define UINT8_MAX 255
#undef INT16_MIN
#undef INT16_MAX
#undef UINT16_MAX
#define INT16_MIN (~ INT16_MAX)
#define INT16_MAX 32767
#define UINT16_MAX 65535
#undef INT32_MIN
#undef INT32_MAX
#undef UINT32_MAX
#define INT32_MIN (~ INT32_MAX)
#define INT32_MAX 2147483647
#define UINT32_MAX 4294967295U
# 391 "stdint.h" 3
#undef INT_LEAST8_MIN
#undef INT_LEAST8_MAX
#undef UINT_LEAST8_MAX
#define INT_LEAST8_MIN INT8_MIN
#define INT_LEAST8_MAX INT8_MAX
#define UINT_LEAST8_MAX UINT8_MAX
#undef INT_LEAST16_MIN
#undef INT_LEAST16_MAX
#undef UINT_LEAST16_MAX
#define INT_LEAST16_MIN INT16_MIN
#define INT_LEAST16_MAX INT16_MAX
#define UINT_LEAST16_MAX UINT16_MAX
#undef INT_LEAST32_MIN
#undef INT_LEAST32_MAX
#undef UINT_LEAST32_MAX
#define INT_LEAST32_MIN INT32_MIN
#define INT_LEAST32_MAX INT32_MAX
#define UINT_LEAST32_MAX UINT32_MAX
#undef INT_LEAST64_MIN
#undef INT_LEAST64_MAX
#define INT_LEAST64_MIN INT64_MIN
#define INT_LEAST64_MAX INT64_MAX
#undef UINT_LEAST64_MAX
#define UINT_LEAST64_MAX UINT64_MAX
# 430 "stdint.h" 3
#undef INT_FAST8_MIN
#undef INT_FAST8_MAX
#undef UINT_FAST8_MAX
#define INT_FAST8_MIN SCHAR_MIN
#define INT_FAST8_MAX SCHAR_MAX
#define UINT_FAST8_MAX UCHAR_MAX
#undef INT_FAST16_MIN
#undef INT_FAST16_MAX
#undef UINT_FAST16_MAX
#define INT_FAST16_MIN INT_FAST32_MIN
#define INT_FAST16_MAX INT_FAST32_MAX
#define UINT_FAST16_MAX UINT_FAST32_MAX
#undef INT_FAST32_MIN
#undef INT_FAST32_MAX
#undef UINT_FAST32_MAX
#define INT_FAST32_MIN LONG_MIN
#define INT_FAST32_MAX LONG_MAX
#define UINT_FAST32_MAX ULONG_MAX
#undef INT_FAST64_MIN
#undef INT_FAST64_MAX
#define INT_FAST64_MIN INT64_MIN
#define INT_FAST64_MAX INT64_MAX
#undef UINT_FAST64_MAX
#define UINT_FAST64_MAX UINT64_MAX
#undef INTPTR_MIN
#undef INTPTR_MAX
#undef UINTPTR_MAX
#define INTPTR_MIN LONG_MIN
#define INTPTR_MAX LONG_MAX
#define UINTPTR_MAX ULONG_MAX
# 502 "stdint.h" 3
#undef PTRDIFF_MIN
#undef PTRDIFF_MAX
# 513 "stdint.h" 3
#define PTRDIFF_MIN _STDINT_MIN (1, 32, 0)
#define PTRDIFF_MAX _STDINT_MAX (1, 32, 0)
#define SIG_ATOMIC_MIN _STDINT_MIN (1, 32, 0)
#define SIG_ATOMIC_MAX _STDINT_MAX (1, 32, 0)
#undef SIZE_MAX
#define SIZE_MAX _STDINT_MAX (0, 32, 0ul)
# 558 "stdint.h" 3
#undef WCHAR_MIN
#undef WCHAR_MAX
#define WCHAR_MIN _STDINT_MIN (1, 32, 0)
#define WCHAR_MAX _STDINT_MAX (1, 32, 0)
#define WINT_MIN _STDINT_MIN (1, 32, 0)
#define WINT_MAX _STDINT_MAX (1, 32, 0)
# 581 "stdint.h" 3
#undef INT8_C
#undef UINT8_C
#define INT8_C(x) x
#define UINT8_C(x) x
#undef INT16_C
#undef UINT16_C
#define INT16_C(x) x
#define UINT16_C(x) x
#undef INT32_C
#undef UINT32_C
#define INT32_C(x) x
#define UINT32_C(x) x ## U
#undef INT64_C
#undef UINT64_C
#define INT64_C(x) x ##LL
#define UINT64_C(x) x ##ULL
# 65 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/host_info.h" 1 3 4
# 60 "/usr/include/mach/host_info.h" 3 4
#define _MACH_HOST_INFO_H_
# 1 "/usr/include/mach/vm_statistics.h" 1 3 4
# 61 "/usr/include/mach/vm_statistics.h" 3 4
#define VM_STATISTICS_H_
# 1 "/usr/include/mach/machine/vm_types.h" 1 3 4
# 23 "/usr/include/mach/machine/vm_types.h" 3 4
#define _MACH_MACHINE_VM_TYPES_H_
# 1 "/usr/include/mach/ppc/vm_types.h" 1 3 4
# 62 "/usr/include/mach/ppc/vm_types.h" 3 4
#define _MACH_PPC_VM_TYPES_H_
# 77 "/usr/include/mach/ppc/vm_types.h" 3 4
typedef unsigned int natural_t;
# 86 "/usr/include/mach/ppc/vm_types.h" 3 4
typedef int integer_t;
typedef natural_t vm_offset_t;
typedef natural_t vm_size_t;
#define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
# 28 "/usr/include/mach/machine/vm_types.h" 2 3 4
# 64 "/usr/include/mach/vm_statistics.h" 2 3 4
struct vm_statistics {
integer_t free_count;
integer_t active_count;
integer_t inactive_count;
integer_t wire_count;
integer_t zero_fill_count;
integer_t reactivations;
integer_t pageins;
integer_t pageouts;
integer_t faults;
integer_t cow_faults;
integer_t lookups;
integer_t hits;
};
typedef struct vm_statistics *vm_statistics_t;
typedef struct vm_statistics vm_statistics_data_t;
#define VM_PAGE_QUERY_PAGE_PRESENT 0x1
#define VM_PAGE_QUERY_PAGE_FICTITIOUS 0x2
#define VM_PAGE_QUERY_PAGE_REF 0x4
#define VM_PAGE_QUERY_PAGE_DIRTY 0x8
# 99 "/usr/include/mach/vm_statistics.h" 3 4
struct pmap_statistics {
integer_t resident_count;
integer_t wired_count;
};
typedef struct pmap_statistics *pmap_statistics_t;
#define VM_FLAGS_FIXED 0x0
#define VM_FLAGS_ANYWHERE 0x1
#define VM_FLAGS_ALIAS_MASK 0xFF000000
#define VM_GET_FLAGS_ALIAS(flags,alias) (alias) = ((flags) & VM_FLAGS_ALIAS_MASK) >> 24
#define VM_SET_FLAGS_ALIAS(flags,alias) (flags) = (((flags) & ~VM_FLAGS_ALIAS_MASK) | (((alias) & ~VM_FLAGS_ALIAS_MASK) << 24))
#define VM_MEMORY_MALLOC 1
#define VM_MEMORY_MALLOC_SMALL 2
#define VM_MEMORY_MALLOC_LARGE 3
#define VM_MEMORY_MALLOC_HUGE 4
#define VM_MEMORY_SBRK 5
#define VM_MEMORY_REALLOC 6
#define VM_MEMORY_MALLOC_TINY 7
#define VM_MEMORY_ANALYSIS_TOOL 10
#define VM_MEMORY_MACH_MSG 20
#define VM_MEMORY_IOKIT 21
#define VM_MEMORY_STACK 30
#define VM_MEMORY_GUARD 31
#define VM_MEMORY_SHARED_PMAP 32
#define VM_MEMORY_DYLIB 33
#define VM_MEMORY_APPKIT 40
#define VM_MEMORY_FOUNDATION 41
#define VM_MEMORY_COREGRAPHICS 42
#define VM_MEMORY_CARBON 43
#define VM_MEMORY_JAVA 44
#define VM_MEMORY_ATS 50
#define VM_MEMORY_DYLD 60
#define VM_MEMORY_DYLD_MALLOC 61
#define VM_MEMORY_APPLICATION_SPECIFIC_1 240
#define VM_MEMORY_APPLICATION_SPECIFIC_16 255
#define VM_MAKE_TAG(tag) (tag<<24)
# 63 "/usr/include/mach/host_info.h" 2 3 4
# 1 "/usr/include/mach/machine.h" 1 3 4
# 55 "/usr/include/mach/machine.h" 3 4
#define _MACH_MACHINE_H_
# 1 "/usr/include/mach/boolean.h" 1 3 4
# 120 "/usr/include/mach/boolean.h" 3 4
#define BOOLEAN_H_
# 1 "/usr/include/mach/machine/boolean.h" 1 3 4
# 23 "/usr/include/mach/machine/boolean.h" 3 4
#define _MACH_MACHINE_BOOLEAN_H_
# 1 "/usr/include/mach/ppc/boolean.h" 1 3 4
# 127 "/usr/include/mach/ppc/boolean.h" 3 4
#define _MACH_PPC_BOOLEAN_H_
typedef int boolean_t;
# 28 "/usr/include/mach/machine/boolean.h" 2 3 4
# 128 "/usr/include/mach/boolean.h" 2 3 4
# 138 "/usr/include/mach/boolean.h" 3 4
#define TRUE 1
#define FALSE 0
# 61 "/usr/include/mach/machine.h" 2 3 4
# 71 "/usr/include/mach/machine.h" 3 4
struct machine_info {
integer_t major_version;
integer_t minor_version;
integer_t max_cpus;
integer_t avail_cpus;
vm_size_t memory_size;
};
typedef struct machine_info *machine_info_t;
typedef struct machine_info machine_info_data_t;
typedef integer_t cpu_type_t;
typedef integer_t cpu_subtype_t;
#define CPU_STATE_MAX 4
#define CPU_STATE_USER 0
#define CPU_STATE_SYSTEM 1
#define CPU_STATE_IDLE 2
#define CPU_STATE_NICE 3
#define CPU_TYPE_ANY ((cpu_type_t) -1)
#define CPU_TYPE_VAX ((cpu_type_t) 1)
#define CPU_TYPE_MC680x0 ((cpu_type_t) 6)
#define CPU_TYPE_I386 ((cpu_type_t) 7)
#define CPU_TYPE_MC98000 ((cpu_type_t) 10)
#define CPU_TYPE_HPPA ((cpu_type_t) 11)
#define CPU_TYPE_MC88000 ((cpu_type_t) 13)
#define CPU_TYPE_SPARC ((cpu_type_t) 14)
#define CPU_TYPE_I860 ((cpu_type_t) 15)
#define CPU_TYPE_POWERPC ((cpu_type_t) 18)
# 136 "/usr/include/mach/machine.h" 3 4
#define CPU_SUBTYPE_MULTIPLE ((cpu_subtype_t) -1)
#define CPU_SUBTYPE_LITTLE_ENDIAN ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_BIG_ENDIAN ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_VAX_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_VAX780 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_VAX785 ((cpu_subtype_t) 2)
#define CPU_SUBTYPE_VAX750 ((cpu_subtype_t) 3)
#define CPU_SUBTYPE_VAX730 ((cpu_subtype_t) 4)
#define CPU_SUBTYPE_UVAXI ((cpu_subtype_t) 5)
#define CPU_SUBTYPE_UVAXII ((cpu_subtype_t) 6)
#define CPU_SUBTYPE_VAX8200 ((cpu_subtype_t) 7)
#define CPU_SUBTYPE_VAX8500 ((cpu_subtype_t) 8)
#define CPU_SUBTYPE_VAX8600 ((cpu_subtype_t) 9)
#define CPU_SUBTYPE_VAX8650 ((cpu_subtype_t) 10)
#define CPU_SUBTYPE_VAX8800 ((cpu_subtype_t) 11)
#define CPU_SUBTYPE_UVAXIII ((cpu_subtype_t) 12)
# 176 "/usr/include/mach/machine.h" 3 4
#define CPU_SUBTYPE_MC680x0_ALL ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_MC68030 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_MC68040 ((cpu_subtype_t) 2)
#define CPU_SUBTYPE_MC68030_ONLY ((cpu_subtype_t) 3)
#define CPU_SUBTYPE_I386_ALL ((cpu_subtype_t) 3)
#define CPU_SUBTYPE_386 ((cpu_subtype_t) 3)
#define CPU_SUBTYPE_486 ((cpu_subtype_t) 4)
#define CPU_SUBTYPE_486SX ((cpu_subtype_t) 4 + 128)
#define CPU_SUBTYPE_586 ((cpu_subtype_t) 5)
#define CPU_SUBTYPE_INTEL(f,m) ((cpu_subtype_t) (f) + ((m) << 4))
#define CPU_SUBTYPE_PENT CPU_SUBTYPE_INTEL(5, 0)
#define CPU_SUBTYPE_PENTPRO CPU_SUBTYPE_INTEL(6, 1)
#define CPU_SUBTYPE_PENTII_M3 CPU_SUBTYPE_INTEL(6, 3)
#define CPU_SUBTYPE_PENTII_M5 CPU_SUBTYPE_INTEL(6, 5)
#define CPU_SUBTYPE_INTEL_FAMILY(x) ((x) & 15)
#define CPU_SUBTYPE_INTEL_FAMILY_MAX 15
#define CPU_SUBTYPE_INTEL_MODEL(x) ((x) >> 4)
#define CPU_SUBTYPE_INTEL_MODEL_ALL 0
#define CPU_SUBTYPE_MIPS_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_MIPS_R2300 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_MIPS_R2600 ((cpu_subtype_t) 2)
#define CPU_SUBTYPE_MIPS_R2800 ((cpu_subtype_t) 3)
#define CPU_SUBTYPE_MIPS_R2000a ((cpu_subtype_t) 4)
#define CPU_SUBTYPE_MIPS_R2000 ((cpu_subtype_t) 5)
#define CPU_SUBTYPE_MIPS_R3000a ((cpu_subtype_t) 6)
#define CPU_SUBTYPE_MIPS_R3000 ((cpu_subtype_t) 7)
#define CPU_SUBTYPE_MC98000_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_MC98601 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_HPPA_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_HPPA_7100 ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_HPPA_7100LC ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_MC88000_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_MC88100 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_MC88110 ((cpu_subtype_t) 2)
#define CPU_SUBTYPE_SPARC_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_I860_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_I860_860 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_POWERPC_ALL ((cpu_subtype_t) 0)
#define CPU_SUBTYPE_POWERPC_601 ((cpu_subtype_t) 1)
#define CPU_SUBTYPE_POWERPC_602 ((cpu_subtype_t) 2)
#define CPU_SUBTYPE_POWERPC_603 ((cpu_subtype_t) 3)
#define CPU_SUBTYPE_POWERPC_603e ((cpu_subtype_t) 4)
#define CPU_SUBTYPE_POWERPC_603ev ((cpu_subtype_t) 5)
#define CPU_SUBTYPE_POWERPC_604 ((cpu_subtype_t) 6)
#define CPU_SUBTYPE_POWERPC_604e ((cpu_subtype_t) 7)
#define CPU_SUBTYPE_POWERPC_620 ((cpu_subtype_t) 8)
#define CPU_SUBTYPE_POWERPC_750 ((cpu_subtype_t) 9)
#define CPU_SUBTYPE_POWERPC_7400 ((cpu_subtype_t) 10)
#define CPU_SUBTYPE_POWERPC_7450 ((cpu_subtype_t) 11)
#define CPU_SUBTYPE_POWERPC_Max ((cpu_subtype_t) 10)
#define CPU_SUBTYPE_POWERPC_SCVger ((cpu_subtype_t) 11)
#define CPU_SUBTYPE_POWERPC_970 ((cpu_subtype_t) 100)
# 64 "/usr/include/mach/host_info.h" 2 3 4
# 1 "/usr/include/mach/time_value.h" 1 3 4
# 52 "/usr/include/mach/time_value.h" 3 4
#define TIME_VALUE_H_
# 62 "/usr/include/mach/time_value.h" 3 4
struct time_value {
integer_t seconds;
integer_t microseconds;
};
typedef struct time_value time_value_t;
#define TIME_MICROS_MAX (1000000)
#define time_value_add_usec(val,micros) { if (((val)->microseconds += (micros)) >= TIME_MICROS_MAX) { (val)->microseconds -= TIME_MICROS_MAX; (val)->seconds++; } }
#define time_value_add(result,addend) { (result)->microseconds += (addend)->microseconds; (result)->seconds += (addend)->seconds; if ((result)->microseconds >= TIME_MICROS_MAX) { (result)->microseconds -= TIME_MICROS_MAX; (result)->seconds++; } }
# 106 "/usr/include/mach/time_value.h" 3 4
typedef struct mapped_time_value {
integer_t seconds;
integer_t microseconds;
integer_t check_seconds;
} mapped_time_value_t;
# 66 "/usr/include/mach/host_info.h" 2 3 4
typedef integer_t *host_info_t;
#define HOST_INFO_MAX (1024)
typedef integer_t host_info_data_t[(1024)];
#define KERNEL_VERSION_MAX (512)
typedef char kernel_version_t[(512)];
#define KERNEL_BOOT_INFO_MAX (4096)
typedef char kernel_boot_info_t[(4096)];
#define KERNEL_BOOTMAGIC_MAX (8192)
typedef integer_t host_flavor_t;
#define HOST_BASIC_INFO 1
#define HOST_SCHED_INFO 3
#define HOST_RESOURCE_SIZES 4
#define HOST_PRIORITY_INFO 5
#define HOST_SEMAPHORE_TRAPS 7
#define HOST_MACH_MSG_TRAP 8
struct host_basic_info {
integer_t max_cpus;
integer_t avail_cpus;
vm_size_t memory_size;
cpu_type_t cpu_type;
cpu_subtype_t cpu_subtype;
};
typedef struct host_basic_info host_basic_info_data_t;
typedef struct host_basic_info *host_basic_info_t;
#define HOST_BASIC_INFO_COUNT (sizeof(host_basic_info_data_t)/sizeof(integer_t))
struct host_sched_info {
integer_t min_timeout;
integer_t min_quantum;
};
typedef struct host_sched_info host_sched_info_data_t;
typedef struct host_sched_info *host_sched_info_t;
#define HOST_SCHED_INFO_COUNT (sizeof(host_sched_info_data_t)/sizeof(integer_t))
struct kernel_resource_sizes {
vm_size_t task;
vm_size_t thread;
vm_size_t port;
vm_size_t memory_region;
vm_size_t memory_object;
};
typedef struct kernel_resource_sizes kernel_resource_sizes_data_t;
typedef struct kernel_resource_sizes *kernel_resource_sizes_t;
#define HOST_RESOURCE_SIZES_COUNT (sizeof(kernel_resource_sizes_data_t)/sizeof(integer_t))
struct host_priority_info {
integer_t kernel_priority;
integer_t system_priority;
integer_t server_priority;
integer_t user_priority;
integer_t depress_priority;
integer_t idle_priority;
integer_t minimum_priority;
integer_t maximum_priority;
};
typedef struct host_priority_info host_priority_info_data_t;
typedef struct host_priority_info *host_priority_info_t;
#define HOST_PRIORITY_INFO_COUNT (sizeof(host_priority_info_data_t)/sizeof(integer_t))
#define HOST_LOAD_INFO 1
#define HOST_VM_INFO 2
#define HOST_CPU_LOAD_INFO 3
struct host_load_info {
integer_t avenrun[3];
integer_t mach_factor[3];
};
typedef struct host_load_info host_load_info_data_t;
typedef struct host_load_info *host_load_info_t;
#define HOST_LOAD_INFO_COUNT (sizeof(host_load_info_data_t)/sizeof(integer_t))
#define HOST_VM_INFO_COUNT (sizeof(vm_statistics_data_t)/sizeof(integer_t))
struct host_cpu_load_info {
unsigned long cpu_ticks[4];
};
typedef struct host_cpu_load_info host_cpu_load_info_data_t;
typedef struct host_cpu_load_info *host_cpu_load_info_t;
#define HOST_CPU_LOAD_INFO_COUNT (sizeof (host_cpu_load_info_data_t) / sizeof (integer_t))
# 67 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/host_notify.h" 1 3 4
# 32 "/usr/include/mach/host_notify.h" 3 4
#define _MACH_HOST_NOTIFY_H_
#define HOST_NOTIFY_CALENDAR_CHANGE 0
#define HOST_NOTIFY_TYPE_MAX 0
#define HOST_CALENDAR_CHANGED_REPLYID 950
# 68 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/host_special_ports.h" 1 3 4
# 59 "/usr/include/mach/host_special_ports.h" 3 4
#define _MACH_HOST_SPECIAL_PORTS_H_
#define HOST_SECURITY_PORT 0
#define HOST_PORT 1
#define HOST_PRIV_PORT 2
#define HOST_IO_MASTER_PORT 3
#define HOST_MAX_SPECIAL_KERNEL_PORT 7
#define HOST_DYNAMIC_PAGER_PORT (1 + HOST_MAX_SPECIAL_KERNEL_PORT)
#define HOST_AUDIT_CONTROL_PORT (2 + HOST_MAX_SPECIAL_KERNEL_PORT)
#define HOST_USER_NOTIFICATION_PORT (3 + HOST_MAX_SPECIAL_KERNEL_PORT)
#define HOST_MAX_SPECIAL_PORT (8 + HOST_MAX_SPECIAL_KERNEL_PORT)
#define HOST_LOCAL_NODE -1
# 95 "/usr/include/mach/host_special_ports.h" 3 4
#define host_get_host_port(host,port) (host_get_special_port((host), HOST_LOCAL_NODE, HOST_PORT, (port)))
#define host_set_host_port(host,port) (KERN_INVALID_ARGUMENT)
#define host_get_host_priv_port(host,port) (host_get_special_port((host), HOST_LOCAL_NODE, HOST_PRIV_PORT, (port)))
#define host_set_host_priv_port(host,port) (KERN_INVALID_ARGUMENT)
#define host_get_io_master_port(host,port) (host_get_special_port((host), HOST_LOCAL_NODE, HOST_IO_MASTER_PORT, (port)))
#define host_set_io_master_port(host,port) (KERN_INVALID_ARGUMENT)
#define host_get_dynamic_pager_port(host,port) (host_get_special_port((host), HOST_LOCAL_NODE, HOST_DYNAMIC_PAGER_PORT, (port)))
#define host_set_dynamic_pager_port(host,port) (host_set_special_port((host), HOST_DYNAMIC_PAGER_PORT, (port)))
#define host_get_audit_control_port(host,port) (host_get_special_port((host), HOST_LOCAL_NODE, HOST_AUDIT_CONTROL_PORT, (port)))
#define host_set_audit_control_port(host,port) (host_set_special_port((host), HOST_AUDIT_CONTROL_PORT, (port)))
#define host_get_user_notification_port(host,port) (host_get_special_port((host), HOST_LOCAL_NODE, HOST_USER_NOTIFICATION_PORT, (port)))
#define host_set_user_notification_port(host,port) (host_set_special_port((host), HOST_USER_NOTIFICATION_PORT, (port)))
# 69 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/memory_object_types.h" 1 3 4
# 60 "/usr/include/mach/memory_object_types.h" 3 4
#define _MACH_MEMORY_OBJECT_TYPES_H_
# 1 "/usr/include/mach/port.h" 1 3 4
# 62 "/usr/include/mach/port.h" 3 4
#define _MACH_PORT_H_
# 91 "/usr/include/mach/port.h" 3 4
typedef natural_t port_name_t;
typedef port_name_t *port_name_array_t;
typedef port_name_t port_t;
# 106 "/usr/include/mach/port.h" 3 4
#define PORT_NULL ((port_t) 0)
#define PORT_DEAD ((port_t) ~0)
#define PORT_VALID(name) (((port_t)(name) != PORT_NULL) && ((port_t)(name) != PORT_DEAD))
# 117 "/usr/include/mach/port.h" 3 4
typedef port_t mach_port_t;
typedef port_t *mach_port_array_t;
typedef port_name_t mach_port_name_t;
typedef mach_port_name_t *mach_port_name_array_t;
#define MACH_PORT_NULL 0
#define MACH_PORT_DEAD ((mach_port_name_t) ~0)
#define MACH_PORT_VALID(name) (((name) != MACH_PORT_NULL) && ((name) != MACH_PORT_DEAD))
# 145 "/usr/include/mach/port.h" 3 4
#define MACH_PORT_INDEX(name) ((name) >> 8)
#define MACH_PORT_GEN(name) (((name) & 0xff) << 24)
#define MACH_PORT_MAKE(index,gen) (((index) << 8) | (gen) >> 24)
# 165 "/usr/include/mach/port.h" 3 4
typedef natural_t mach_port_right_t;
#define MACH_PORT_RIGHT_SEND ((mach_port_right_t) 0)
#define MACH_PORT_RIGHT_RECEIVE ((mach_port_right_t) 1)
#define MACH_PORT_RIGHT_SEND_ONCE ((mach_port_right_t) 2)
#define MACH_PORT_RIGHT_PORT_SET ((mach_port_right_t) 3)
#define MACH_PORT_RIGHT_DEAD_NAME ((mach_port_right_t) 4)
#define MACH_PORT_RIGHT_NUMBER ((mach_port_right_t) 5)
typedef natural_t mach_port_type_t;
typedef mach_port_type_t *mach_port_type_array_t;
#define MACH_PORT_TYPE(right) ((mach_port_type_t)(((mach_port_type_t) 1) << ((right) + ((mach_port_right_t) 16))))
#define MACH_PORT_TYPE_NONE ((mach_port_type_t) 0L)
#define MACH_PORT_TYPE_SEND MACH_PORT_TYPE(MACH_PORT_RIGHT_SEND)
#define MACH_PORT_TYPE_RECEIVE MACH_PORT_TYPE(MACH_PORT_RIGHT_RECEIVE)
#define MACH_PORT_TYPE_SEND_ONCE MACH_PORT_TYPE(MACH_PORT_RIGHT_SEND_ONCE)
#define MACH_PORT_TYPE_PORT_SET MACH_PORT_TYPE(MACH_PORT_RIGHT_PORT_SET)
#define MACH_PORT_TYPE_DEAD_NAME MACH_PORT_TYPE(MACH_PORT_RIGHT_DEAD_NAME)
#define MACH_PORT_TYPE_SEND_RECEIVE (MACH_PORT_TYPE_SEND|MACH_PORT_TYPE_RECEIVE)
#define MACH_PORT_TYPE_SEND_RIGHTS (MACH_PORT_TYPE_SEND|MACH_PORT_TYPE_SEND_ONCE)
#define MACH_PORT_TYPE_PORT_RIGHTS (MACH_PORT_TYPE_SEND_RIGHTS|MACH_PORT_TYPE_RECEIVE)
#define MACH_PORT_TYPE_PORT_OR_DEAD (MACH_PORT_TYPE_PORT_RIGHTS|MACH_PORT_TYPE_DEAD_NAME)
#define MACH_PORT_TYPE_ALL_RIGHTS (MACH_PORT_TYPE_PORT_OR_DEAD|MACH_PORT_TYPE_PORT_SET)
#define MACH_PORT_TYPE_DNREQUEST 0x80000000
typedef natural_t mach_port_urefs_t;
typedef integer_t mach_port_delta_t;
typedef natural_t mach_port_seqno_t;
typedef natural_t mach_port_mscount_t;
typedef natural_t mach_port_msgcount_t;
typedef natural_t mach_port_rights_t;
#define MACH_PORT_SRIGHTS_NONE 0
#define MACH_PORT_SRIGHTS_PRESENT 1
typedef unsigned int mach_port_srights_t;
typedef struct mach_port_status {
mach_port_name_t mps_pset;
mach_port_seqno_t mps_seqno;
mach_port_mscount_t mps_mscount;
mach_port_msgcount_t mps_qlimit;
mach_port_msgcount_t mps_msgcount;
mach_port_rights_t mps_sorights;
boolean_t mps_srights;
boolean_t mps_pdrequest;
boolean_t mps_nsrequest;
unsigned int mps_flags;
} mach_port_status_t;
#define MACH_PORT_QLIMIT_DEFAULT ((mach_port_msgcount_t) 5)
#define MACH_PORT_QLIMIT_MAX ((mach_port_msgcount_t) 16)
typedef struct mach_port_limits {
mach_port_msgcount_t mpl_qlimit;
} mach_port_limits_t;
typedef integer_t *mach_port_info_t;
typedef int mach_port_flavor_t;
#define MACH_PORT_LIMITS_INFO 1
#define MACH_PORT_RECEIVE_STATUS 2
#define MACH_PORT_DNREQUESTS_SIZE 3
#define MACH_PORT_LIMITS_INFO_COUNT (sizeof(mach_port_limits_t)/sizeof(natural_t))
#define MACH_PORT_RECEIVE_STATUS_COUNT (sizeof(mach_port_status_t)/sizeof(natural_t))
#define MACH_PORT_DNREQUESTS_SIZE_COUNT 1
typedef struct mach_port_qos {
boolean_t name:1;
boolean_t prealloc:1;
boolean_t pad1:30;
natural_t len;
} mach_port_qos_t;
# 68 "/usr/include/mach/memory_object_types.h" 2 3 4
# 1 "/usr/include/mach/vm_types.h" 1 3 4
# 27 "/usr/include/mach/vm_types.h" 3 4
#define MACH_VM_TYPES_H_
typedef vm_offset_t pointer_t;
typedef vm_offset_t vm_address_t;
typedef uint64_t vm_object_offset_t;
typedef uint64_t addr64_t;
# 57 "/usr/include/mach/vm_types.h" 3 4
typedef gl_uint32_t reg64_t;
typedef gl_uint32_t ppnum_t;
typedef mach_port_t vm_map_t;
#define VM_MAP_NULL ((vm_map_t) 0)
typedef mach_port_t upl_t;
typedef mach_port_t vm_named_entry_t;
#define UPL_NULL ((upl_t) 0)
#define VM_NAMED_ENTRY_NULL ((vm_named_entry_t) 0)
# 69 "/usr/include/mach/memory_object_types.h" 2 3 4
#define VM_64_BIT_DATA_OBJECTS
typedef unsigned long long memory_object_offset_t;
typedef unsigned long long memory_object_size_t;
typedef mach_port_t memory_object_t;
typedef mach_port_t memory_object_control_t;
typedef memory_object_t *memory_object_array_t;
typedef mach_port_t memory_object_name_t;
typedef mach_port_t memory_object_default_t;
#define MEMORY_OBJECT_NULL ((memory_object_t) 0)
#define MEMORY_OBJECT_CONTROL_NULL ((memory_object_control_t) 0)
#define MEMORY_OBJECT_NAME_NULL ((memory_object_name_t) 0)
#define MEMORY_OBJECT_DEFAULT_NULL ((memory_object_default_t) 0)
typedef int memory_object_copy_strategy_t;
#define MEMORY_OBJECT_COPY_NONE 0
#define MEMORY_OBJECT_COPY_CALL 1
#define MEMORY_OBJECT_COPY_DELAY 2
#define MEMORY_OBJECT_COPY_TEMPORARY 3
#define MEMORY_OBJECT_COPY_SYMMETRIC 4
# 132 "/usr/include/mach/memory_object_types.h" 3 4
#define MEMORY_OBJECT_COPY_INVALID 5
# 142 "/usr/include/mach/memory_object_types.h" 3 4
typedef int memory_object_return_t;
#define MEMORY_OBJECT_RETURN_NONE 0
#define MEMORY_OBJECT_RETURN_DIRTY 1
#define MEMORY_OBJECT_RETURN_ALL 2
#define MEMORY_OBJECT_RETURN_ANYTHING 3
#define MEMORY_OBJECT_DATA_FLUSH 0x1
#define MEMORY_OBJECT_DATA_NO_CHANGE 0x2
#define MEMORY_OBJECT_DATA_PURGE 0x4
#define MEMORY_OBJECT_COPY_SYNC 0x8
#define MEMORY_OBJECT_DATA_SYNC 0x10
#define MEMORY_OBJECT_INFO_MAX (1024)
typedef int *memory_object_info_t;
typedef int memory_object_flavor_t;
typedef int memory_object_info_data_t[(1024)];
#define MEMORY_OBJECT_PERFORMANCE_INFO 11
#define MEMORY_OBJECT_ATTRIBUTE_INFO 14
#define MEMORY_OBJECT_BEHAVIOR_INFO 15
#define OLD_MEMORY_OBJECT_BEHAVIOR_INFO 10
#define OLD_MEMORY_OBJECT_ATTRIBUTE_INFO 12
struct old_memory_object_behave_info {
memory_object_copy_strategy_t copy_strategy;
boolean_t temporary;
boolean_t invalidate;
};
struct old_memory_object_attr_info {
boolean_t object_ready;
boolean_t may_cache;
memory_object_copy_strategy_t copy_strategy;
};
typedef struct old_memory_object_behave_info *old_memory_object_behave_info_t;
typedef struct old_memory_object_behave_info old_memory_object_behave_info_data_t;
typedef struct old_memory_object_attr_info *old_memory_object_attr_info_t;
typedef struct old_memory_object_attr_info old_memory_object_attr_info_data_t;
#define OLD_MEMORY_OBJECT_BEHAVE_INFO_COUNT (sizeof(old_memory_object_behave_info_data_t)/sizeof(int))
#define OLD_MEMORY_OBJECT_ATTR_INFO_COUNT (sizeof(old_memory_object_attr_info_data_t)/sizeof(int))
struct memory_object_perf_info {
vm_size_t cluster_size;
boolean_t may_cache;
};
struct memory_object_attr_info {
memory_object_copy_strategy_t copy_strategy;
vm_offset_t cluster_size;
boolean_t may_cache_object;
boolean_t temporary;
};
struct memory_object_behave_info {
memory_object_copy_strategy_t copy_strategy;
boolean_t temporary;
boolean_t invalidate;
boolean_t silent_overwrite;
boolean_t advisory_pageout;
};
typedef struct memory_object_behave_info *memory_object_behave_info_t;
typedef struct memory_object_behave_info memory_object_behave_info_data_t;
typedef struct memory_object_perf_info *memory_object_perf_info_t;
typedef struct memory_object_perf_info memory_object_perf_info_data_t;
typedef struct memory_object_attr_info *memory_object_attr_info_t;
typedef struct memory_object_attr_info memory_object_attr_info_data_t;
#define MEMORY_OBJECT_BEHAVE_INFO_COUNT (sizeof(memory_object_behave_info_data_t)/sizeof(int))
#define MEMORY_OBJECT_PERF_INFO_COUNT (sizeof(memory_object_perf_info_data_t)/sizeof(int))
#define MEMORY_OBJECT_ATTR_INFO_COUNT (sizeof(memory_object_attr_info_data_t)/sizeof(int))
#define invalid_memory_object_flavor(f) (f != MEMORY_OBJECT_ATTRIBUTE_INFO && f != MEMORY_OBJECT_PERFORMANCE_INFO && f != OLD_MEMORY_OBJECT_BEHAVIOR_INFO && f != MEMORY_OBJECT_BEHAVIOR_INFO && f != OLD_MEMORY_OBJECT_ATTRIBUTE_INFO)
# 253 "/usr/include/mach/memory_object_types.h" 3 4
#define MEMORY_OBJECT_TERMINATE_IDLE 0x1
#define MEMORY_OBJECT_RESPECT_CACHE 0x2
#define MEMORY_OBJECT_RELEASE_NO_OP 0x4
#define MAX_UPL_TRANSFER 256
struct upl_page_info {
vm_offset_t phys_addr;
unsigned int
pageout:1,
absent:1,
dirty:1,
precious:1,
device:1,
:0;
};
typedef struct upl_page_info upl_page_info_t;
typedef upl_page_info_t *upl_page_info_array_t;
typedef upl_page_info_array_t upl_page_list_ptr_t;
#define MAP_MEM_NOOP 0
#define MAP_MEM_COPYBACK 1
#define MAP_MEM_IO 2
#define MAP_MEM_WTHRU 3
#define MAP_MEM_WCOMB 4
#define GET_MAP_MEM(flags) ((((unsigned int)(flags)) >> 24) & 0xFF)
#define SET_MAP_MEM(caching,flags) ((flags) = ((((unsigned int)(caching)) << 24) & 0xFF000000) | ((flags) & 0xFFFFFF));
#define MAP_MEM_ONLY 0x10000
#define MAP_MEM_NAMED_CREATE 0x20000
#define UPL_FLAGS_NONE 0x0
#define UPL_COPYOUT_FROM 0x1
#define UPL_PRECIOUS 0x2
#define UPL_NO_SYNC 0x4
#define UPL_CLEAN_IN_PLACE 0x8
#define UPL_NOBLOCK 0x10
#define UPL_RET_ONLY_DIRTY 0x20
#define UPL_SET_INTERNAL 0x40
#define UPL_QUERY_OBJECT_TYPE 0x80
#define UPL_RET_ONLY_ABSENT 0x100
#define UPL_FILE_IO 0x200
#define UPL_SET_LITE 0x400
#define UPL_SET_INTERRUPTIBLE 0x800
#define UPL_SET_IO_WIRE 0x1000
#define UPL_FOR_PAGEOUT 0x2000
#define UPL_WILL_BE_DUMPED 0x4000
#define UPL_ABORT_RESTART 0x1
#define UPL_ABORT_UNAVAILABLE 0x2
#define UPL_ABORT_ERROR 0x4
#define UPL_ABORT_FREE_ON_EMPTY 0x8
#define UPL_ABORT_DUMP_PAGES 0x10
#define UPL_ABORT_NOTIFY_EMPTY 0x20
#define UPL_CHECK_DIRTY 0x1
#define UPL_IOSYNC 0x1
#define UPL_NOCOMMIT 0x2
#define UPL_NORDAHEAD 0x4
#define UPL_COMMIT_FREE_ON_EMPTY 0x1
#define UPL_COMMIT_CLEAR_DIRTY 0x2
#define UPL_COMMIT_SET_DIRTY 0x4
#define UPL_COMMIT_INACTIVATE 0x8
#define UPL_COMMIT_NOTIFY_EMPTY 0x10
#define UPL_DEV_MEMORY 0x1
#define UPL_PHYS_CONTIG 0x2
#define UPL_DEVICE_PAGE(upl) (((upl)[(index)].phys_addr != 0) ? (!((upl)[0].device)) : FALSE)
#define UPL_PAGE_PRESENT(upl,index) ((upl)[(index)].phys_addr != 0)
#define UPL_PHYS_PAGE(upl,index) (((upl)[(index)].phys_addr != 0) ? ((upl)[(index)].phys_addr) : (vm_offset_t)NULL)
#define UPL_DIRTY_PAGE(upl,index) (((upl)[(index)].phys_addr != 0) ? ((upl)[(index)].dirty) : FALSE)
#define UPL_PRECIOUS_PAGE(upl,index) (((upl)[(index)].phys_addr != 0) ? ((upl)[(index)].precious) : FALSE)
#define UPL_VALID_PAGE(upl,index) (((upl)[(index)].phys_addr != 0) ? (!((upl)[(index)].absent)) : FALSE)
#define UPL_PAGEOUT_PAGE(upl,index) (((upl)[(index)].phys_addr != 0) ? ((upl)[(index)].pageout) : FALSE)
#define UPL_SET_PAGE_FREE_ON_COMMIT(upl,index) if ((upl)[(index)].phys_addr != 0) ((upl)[(index)].pageout) = TRUE
#define UPL_CLR_PAGE_FREE_ON_COMMIT(upl,index) if ((upl)[(index)].phys_addr != 0) ((upl)[(index)].pageout) = FALSE
# 386 "/usr/include/mach/memory_object_types.h" 3 4
#define UPL_POP_DIRTY 0x1
#define UPL_POP_PAGEOUT 0x2
#define UPL_POP_PRECIOUS 0x4
#define UPL_POP_ABSENT 0x8
#define UPL_POP_BUSY 0x10
#define UPL_POP_PHYSICAL 0x10000000
#define UPL_POP_DUMP 0x20000000
#define UPL_POP_SET 0x40000000
#define UPL_POP_CLR 0x80000000
# 405 "/usr/include/mach/memory_object_types.h" 3 4
#define UPL_ROP_ABSENT 0x01
#define UPL_ROP_PRESENT 0x02
#define UPL_ROP_DUMP 0x04
# 72 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/exception_types.h" 1 3 4
# 54 "/usr/include/mach/exception_types.h" 3 4
#define _MACH_EXCEPTION_TYPES_H_
# 1 "/usr/include/mach/machine/exception.h" 1 3 4
# 23 "/usr/include/mach/machine/exception.h" 3 4
#define _MACH_MACHINE_EXCEPTION_H_
# 1 "/usr/include/mach/ppc/exception.h" 1 3 4
# 49 "/usr/include/mach/ppc/exception.h" 3 4
#define _MACH_PPC_EXCEPTION_H_
#define EXC_TYPES_COUNT 10
#define EXCEPTION_CODE_MAX 2
#define EXC_PPC_INVALID_SYSCALL 1
#define EXC_PPC_UNIPL_INST 2
#define EXC_PPC_PRIVINST 3
#define EXC_PPC_PRIVREG 4
#define EXC_PPC_TRACE 5
#define EXC_PPC_PERFMON 6
#define EXC_PPC_VM_PROT_READ 0x101
#define EXC_PPC_BADSPACE 0x102
#define EXC_PPC_UNALIGNED 0x103
#define EXC_PPC_OVERFLOW 1
#define EXC_PPC_ZERO_DIVIDE 2
#define EXC_PPC_FLT_INEXACT 3
#define EXC_PPC_FLT_ZERO_DIVIDE 4
#define EXC_PPC_FLT_UNDERFLOW 5
#define EXC_PPC_FLT_OVERFLOW 6
#define EXC_PPC_FLT_NOT_A_NUMBER 7
#define EXC_PPC_NOEMULATION 8
#define EXC_PPC_ALTIVECASSIST 9
#define EXC_PPC_TRAP 1
#define EXC_PPC_MIGRATE 0x10100
#define EXC_PPC_BREAKPOINT EXC_PPC_TRAP
#define EXC_MASK_MACHINE 0
# 28 "/usr/include/mach/machine/exception.h" 2 3 4
# 57 "/usr/include/mach/exception_types.h" 2 3 4
#define EXC_BAD_ACCESS 1
#define EXC_BAD_INSTRUCTION 2
#define EXC_ARITHMETIC 3
#define EXC_EMULATION 4
#define EXC_SOFTWARE 5
#define EXC_BREAKPOINT 6
#define EXC_SYSCALL 7
#define EXC_MACH_SYSCALL 8
#define EXC_RPC_ALERT 9
#define EXCEPTION_DEFAULT 1
#define EXCEPTION_STATE 2
#define EXCEPTION_STATE_IDENTITY 3
# 114 "/usr/include/mach/exception_types.h" 3 4
#define EXC_MASK_BAD_ACCESS (1 << EXC_BAD_ACCESS)
#define EXC_MASK_BAD_INSTRUCTION (1 << EXC_BAD_INSTRUCTION)
#define EXC_MASK_ARITHMETIC (1 << EXC_ARITHMETIC)
#define EXC_MASK_EMULATION (1 << EXC_EMULATION)
#define EXC_MASK_SOFTWARE (1 << EXC_SOFTWARE)
#define EXC_MASK_BREAKPOINT (1 << EXC_BREAKPOINT)
#define EXC_MASK_SYSCALL (1 << EXC_SYSCALL)
#define EXC_MASK_MACH_SYSCALL (1 << EXC_MACH_SYSCALL)
#define EXC_MASK_RPC_ALERT (1 << EXC_RPC_ALERT)
#define EXC_MASK_ALL (EXC_MASK_BAD_ACCESS | EXC_MASK_BAD_INSTRUCTION | EXC_MASK_ARITHMETIC | EXC_MASK_EMULATION | EXC_MASK_SOFTWARE | EXC_MASK_BREAKPOINT | EXC_MASK_SYSCALL | EXC_MASK_MACH_SYSCALL | EXC_MASK_RPC_ALERT | EXC_MASK_MACHINE)
# 136 "/usr/include/mach/exception_types.h" 3 4
#define FIRST_EXCEPTION 1
#define EXC_SOFT_SIGNAL 0x10003
# 1 "/usr/include/mach/thread_status.h" 1 3 4
# 63 "/usr/include/mach/thread_status.h" 3 4
#define THREAD_STATUS_H_
# 1 "/usr/include/mach/machine/thread_status.h" 1 3 4
# 23 "/usr/include/mach/machine/thread_status.h" 3 4
#define _MACH_MACHINE_THREAD_STATUS_H_
# 1 "/usr/include/mach/ppc/thread_status.h" 1 3 4
# 27 "/usr/include/mach/ppc/thread_status.h" 3 4
#define _MACH_PPC_THREAD_STATUS_H_
# 40 "/usr/include/mach/ppc/thread_status.h" 3 4
#define PPC_THREAD_STATE 1
#define PPC_FLOAT_STATE 2
#define PPC_EXCEPTION_STATE 3
#define PPC_VECTOR_STATE 4
#define PPC_THREAD_STATE64 5
#define PPC_EXCEPTION_STATE64 6
#define THREAD_STATE_NONE 7
# 55 "/usr/include/mach/ppc/thread_status.h" 3 4
#define VALID_THREAD_STATE_FLAVOR(x) ((x == PPC_THREAD_STATE) || (x == PPC_FLOAT_STATE) || (x == PPC_EXCEPTION_STATE) || (x == PPC_VECTOR_STATE) || (x == PPC_THREAD_STATE64) || (x == PPC_EXCEPTION_STATE64) || (x == THREAD_STATE_NONE))
# 64 "/usr/include/mach/ppc/thread_status.h" 3 4
typedef struct ppc_thread_state {
unsigned int srr0;
unsigned int srr1;
unsigned int r0;
unsigned int r1;
unsigned int r2;
unsigned int r3;
unsigned int r4;
unsigned int r5;
unsigned int r6;
unsigned int r7;
unsigned int r8;
unsigned int r9;
unsigned int r10;
unsigned int r11;
unsigned int r12;
unsigned int r13;
unsigned int r14;
unsigned int r15;
unsigned int r16;
unsigned int r17;
unsigned int r18;
unsigned int r19;
unsigned int r20;
unsigned int r21;
unsigned int r22;
unsigned int r23;
unsigned int r24;
unsigned int r25;
unsigned int r26;
unsigned int r27;
unsigned int r28;
unsigned int r29;
unsigned int r30;
unsigned int r31;
unsigned int cr;
unsigned int xer;
unsigned int lr;
unsigned int ctr;
unsigned int mq;
unsigned int vrsave;
} ppc_thread_state_t;
#pragma pack(4)
typedef struct ppc_thread_state64 {
unsigned long long srr0;
unsigned long long srr1;
unsigned long long r0;
unsigned long long r1;
unsigned long long r2;
unsigned long long r3;
unsigned long long r4;
unsigned long long r5;
unsigned long long r6;
unsigned long long r7;
unsigned long long r8;
unsigned long long r9;
unsigned long long r10;
unsigned long long r11;
unsigned long long r12;
unsigned long long r13;
unsigned long long r14;
unsigned long long r15;
unsigned long long r16;
unsigned long long r17;
unsigned long long r18;
unsigned long long r19;
unsigned long long r20;
unsigned long long r21;
unsigned long long r22;
unsigned long long r23;
unsigned long long r24;
unsigned long long r25;
unsigned long long r26;
unsigned long long r27;
unsigned long long r28;
unsigned long long r29;
unsigned long long r30;
unsigned long long r31;
unsigned int cr;
unsigned long long xer;
unsigned long long lr;
unsigned long long ctr;
unsigned int vrsave;
} ppc_thread_state64_t;
#pragma pack()
typedef struct ppc_float_state {
double fpregs[32];
unsigned int fpscr_pad;
unsigned int fpscr;
} ppc_float_state_t;
typedef struct ppc_vector_state {
unsigned long save_vr[32][4];
unsigned long save_vscr[4];
unsigned int save_pad5[4];
unsigned int save_vrvalid;
unsigned int save_pad6[7];
} ppc_vector_state_t;
# 182 "/usr/include/mach/ppc/thread_status.h" 3 4
typedef struct ppc_thread_state ppc_saved_state_t;
# 198 "/usr/include/mach/ppc/thread_status.h" 3 4
typedef struct ppc_exception_state {
unsigned long dar;
unsigned long dsisr;
unsigned long exception;
unsigned long pad0;
unsigned long pad1[4];
} ppc_exception_state_t;
#pragma pack(4)
typedef struct ppc_exception_state64 {
unsigned long long dar;
unsigned long dsisr;
unsigned long exception;
unsigned long pad1[4];
} ppc_exception_state64_t;
#pragma pack()
#define PPC_THREAD_STATE_COUNT (sizeof(struct ppc_thread_state) / sizeof(int))
#define PPC_THREAD_STATE64_COUNT (sizeof(struct ppc_thread_state64) / sizeof(int))
#define PPC_EXCEPTION_STATE_COUNT (sizeof(struct ppc_exception_state) / sizeof(int))
#define PPC_EXCEPTION_STATE64_COUNT (sizeof(struct ppc_exception_state64) / sizeof(int))
#define PPC_FLOAT_STATE_COUNT (sizeof(struct ppc_float_state) / sizeof(int))
#define PPC_VECTOR_STATE_COUNT (sizeof(struct ppc_vector_state) / sizeof(int))
#define MACHINE_THREAD_STATE PPC_THREAD_STATE
#define MACHINE_THREAD_STATE_COUNT PPC_THREAD_STATE_COUNT
#define THREAD_MACHINE_STATE_MAX THREAD_STATE_MAX
# 28 "/usr/include/mach/machine/thread_status.h" 2 3 4
# 71 "/usr/include/mach/thread_status.h" 2 3 4
# 1 "/usr/include/mach/machine/thread_state.h" 1 3 4
# 23 "/usr/include/mach/machine/thread_state.h" 3 4
#define _MACH_MACHINE_THREAD_STATE_H_
# 1 "/usr/include/mach/ppc/thread_state.h" 1 3 4
# 26 "/usr/include/mach/ppc/thread_state.h" 3 4
#define _MACH_PPC_THREAD_STATE_H_
#define PPC_THREAD_STATE_MAX (144)
#define THREAD_STATE_MAX PPC_THREAD_STATE_MAX
# 28 "/usr/include/mach/machine/thread_state.h" 2 3 4
# 72 "/usr/include/mach/thread_status.h" 2 3 4
typedef natural_t *thread_state_t;
typedef int thread_state_data_t[(144)];
#define THREAD_STATE_FLAVOR_LIST 0
typedef int thread_state_flavor_t;
typedef thread_state_flavor_t *thread_state_flavor_array_t;
# 148 "/usr/include/mach/exception_types.h" 2 3 4
typedef int exception_type_t;
typedef integer_t exception_data_type_t;
typedef int exception_behavior_t;
typedef integer_t *exception_data_t;
typedef unsigned int exception_mask_t;
typedef exception_mask_t *exception_mask_array_t;
typedef exception_behavior_t *exception_behavior_array_t;
typedef thread_state_flavor_t *exception_flavor_array_t;
typedef mach_port_t *exception_port_array_t;
# 73 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/processor_info.h" 1 3 4
# 62 "/usr/include/mach/processor_info.h" 3 4
#define _MACH_PROCESSOR_INFO_H_
# 1 "/usr/include/mach/machine/processor_info.h" 1 3 4
# 23 "/usr/include/mach/machine/processor_info.h" 3 4
#define _MACH_MACHINE_PROCESSOR_INFO_H_
# 1 "/usr/include/mach/ppc/processor_info.h" 1 3 4
# 30 "/usr/include/mach/ppc/processor_info.h" 3 4
#define _MACH_PPC_PROCESSOR_INFO_H_
#define PROCESSOR_PM_SET_REGS 1
#define PROCESSOR_PM_SET_MMCR 2
#define PROCESSOR_PM_CLR_PMC 3
typedef union {
unsigned int word;
struct {
unsigned int dis : 1;
unsigned int dp : 1;
unsigned int du : 1;
unsigned int dms : 1;
unsigned int dmr : 1;
unsigned int reserved3 : 1;
unsigned int reserved4 : 1;
unsigned int reserved5 : 2;
unsigned int reserved6 : 1;
unsigned int threshold : 6;
unsigned int reserved7 : 1;
unsigned int reserved8 : 1;
unsigned int reserved9 : 1;
unsigned int pmc1select : 7;
unsigned int pmc2select : 6;
}bits;
}mmcr0_t;
typedef union {
unsigned int word;
struct {
unsigned int pmc3select : 5;
unsigned int pmc4select : 5;
unsigned int reserved : 22;
}bits;
}mmcr1_t;
typedef union {
unsigned int word;
struct {
unsigned int threshmult : 1;
unsigned int reserved : 31;
}bits;
}mmcr2_t;
typedef union {
unsigned int word;
struct {
unsigned int ov : 1;
unsigned int cv : 31;
}bits;
}pmcn_t;
struct processor_pm_regs {
union {
mmcr0_t mmcr0;
mmcr1_t mmcr1;
mmcr2_t mmcr2;
}u;
pmcn_t pmc[2];
};
typedef struct processor_pm_regs processor_pm_regs_data_t;
typedef struct processor_pm_regs *processor_pm_regs_t;
#define PROCESSOR_PM_REGS_COUNT (sizeof(processor_pm_regs_data_t) / sizeof (unsigned int))
#define PROCESSOR_PM_REGS_COUNT_POWERPC_750 (PROCESSOR_PM_REGS_COUNT * 2 )
#define PROCESSOR_PM_REGS_COUNT_POWERPC_7400 (PROCESSOR_PM_REGS_COUNT * 3 )
typedef unsigned int processor_temperature_data_t;
typedef unsigned int *processor_temperature_t;
#define PROCESSOR_TEMPERATURE_COUNT 1
union processor_control_data {
processor_pm_regs_data_t cmd_pm_regs[3];
};
struct processor_control_cmd {
integer_t cmd_op;
cpu_type_t cmd_cpu_type;
cpu_subtype_t cmd_cpu_subtype;
union processor_control_data u;
};
typedef struct processor_control_cmd processor_control_cmd_data_t;
typedef struct processor_control_cmd *processor_control_cmd_t;
#define cmd_pm_regs u.cmd_pm_regs;
#define cmd_pm_ctls u.cmd_pm_ctls;
#define PROCESSOR_CONTROL_CMD_COUNT (((sizeof(processor_control_cmd_data_t)) - (sizeof(union processor_control_data))) / sizeof (integer_t))
#define PERFMON_MMCR0(x) ((x)[0].u.mmcr0.word)
#define PERFMON_PMC1(x) ((x)[0].pmc[0].word)
#define PERFMON_PMC2(x) ((x)[0].pmc[1].word)
#define PERFMON_MMCR1(x) ((x)[1].u.mmcr1.word)
#define PERFMON_PMC3(x) ((x)[1].pmc[0].word)
#define PERFMON_PMC4(x) ((x)[1].pmc[1].word)
#define PERFMON_MMCR2(x) ((x)[2].u.mmcr2.word)
#define PERFMON_DIS(x) ((x)[0].u.mmcr0.bits.dis)
#define PERFMON_DP(x) ((x)[0].u.mmcr0.bits.dp)
#define PERFMON_DU(x) ((x)[0].u.mmcr0.bits.du)
#define PERFMON_DMS(x) ((x)[0].u.mmcr0.bits.dms)
#define PERFMON_DMR(x) ((x)[0].u.mmcr0.bits.dmr)
#define PERFMON_THRESHOLD(x) ((x)[0].u.mmcr0.bits.threshold)
#define PERFMON_PMC1SELECT(x) ((x)[0].u.mmcr0.bits.pmc1select)
#define PERFMON_PMC2SELECT(x) ((x)[0].u.mmcr0.bits.pmc2select)
#define PERFMON_PMC3SELECT(x) ((x)[1].u.mmcr1.bits.pmc3select)
#define PERFMON_PMC4SELECT(x) ((x)[1].u.mmcr1.bits.pmc4select)
#define PERFMON_THRESHMULT(x) ((x)[2].u.mmcr2.bits.threshmult)
#define PERFMON_PMC1_CV(x) ((x)[0].u.pmc[0].bits.cv)
#define PERFMON_PMC2_CV(x) ((x)[0].u.pmc[1].bits.cv)
#define PERFMON_PMC3_CV(x) ((x)[1].u.pmc[0].bits.cv)
#define PERFMON_PMC4_CV(x) ((x)[1].u.pmc[1].bits.cv)
# 28 "/usr/include/mach/machine/processor_info.h" 2 3 4
# 66 "/usr/include/mach/processor_info.h" 2 3 4
typedef integer_t *processor_info_t;
typedef integer_t *processor_info_array_t;
#define PROCESSOR_INFO_MAX (1024)
typedef integer_t processor_info_data_t[(1024)];
typedef integer_t *processor_set_info_t;
#define PROCESSOR_SET_INFO_MAX (1024)
typedef integer_t processor_set_info_data_t[(1024)];
typedef int processor_flavor_t;
#define PROCESSOR_BASIC_INFO 1
#define PROCESSOR_CPU_LOAD_INFO 2
#define PROCESSOR_PM_REGS_INFO 0x10000001
#define PROCESSOR_TEMPERATURE 0x10000002
struct processor_basic_info {
cpu_type_t cpu_type;
cpu_subtype_t cpu_subtype;
boolean_t running;
int slot_num;
boolean_t is_master;
};
typedef struct processor_basic_info processor_basic_info_data_t;
typedef struct processor_basic_info *processor_basic_info_t;
#define PROCESSOR_BASIC_INFO_COUNT (sizeof(processor_basic_info_data_t)/sizeof(natural_t))
struct processor_cpu_load_info {
unsigned long cpu_ticks[4];
};
typedef struct processor_cpu_load_info processor_cpu_load_info_data_t;
typedef struct processor_cpu_load_info *processor_cpu_load_info_t;
#define PROCESSOR_CPU_LOAD_INFO_COUNT (sizeof(processor_cpu_load_info_data_t)/sizeof(natural_t))
#define LOAD_SCALE 1000
typedef int processor_set_flavor_t;
#define PROCESSOR_SET_BASIC_INFO 5
struct processor_set_basic_info {
int processor_count;
int default_policy;
};
typedef struct processor_set_basic_info processor_set_basic_info_data_t;
typedef struct processor_set_basic_info *processor_set_basic_info_t;
#define PROCESSOR_SET_BASIC_INFO_COUNT (sizeof(processor_set_basic_info_data_t)/sizeof(natural_t))
#define PROCESSOR_SET_LOAD_INFO 4
struct processor_set_load_info {
int task_count;
int thread_count;
integer_t load_average;
integer_t mach_factor;
};
typedef struct processor_set_load_info processor_set_load_info_data_t;
typedef struct processor_set_load_info *processor_set_load_info_t;
#define PROCESSOR_SET_LOAD_INFO_COUNT (sizeof(processor_set_load_info_data_t)/sizeof(natural_t))
#define PROCESSOR_SET_ENABLED_POLICIES 3
#define PROCESSOR_SET_ENABLED_POLICIES_COUNT (sizeof(policy_t)/sizeof(natural_t))
#define PROCESSOR_SET_TIMESHARE_DEFAULT 10
#define PROCESSOR_SET_TIMESHARE_LIMITS 11
#define PROCESSOR_SET_RR_DEFAULT 20
#define PROCESSOR_SET_RR_LIMITS 21
#define PROCESSOR_SET_FIFO_DEFAULT 30
#define PROCESSOR_SET_FIFO_LIMITS 31
# 75 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/task_info.h" 1 3 4
# 62 "/usr/include/mach/task_info.h" 3 4
#define TASK_INFO_H_
# 1 "/usr/include/mach/policy.h" 1 3 4
# 54 "/usr/include/mach/policy.h" 3 4
#define _MACH_POLICY_H_
# 72 "/usr/include/mach/policy.h" 3 4
typedef int policy_t;
typedef integer_t *policy_info_t;
typedef integer_t *policy_base_t;
typedef integer_t *policy_limit_t;
# 84 "/usr/include/mach/policy.h" 3 4
#define POLICY_NULL 0
#define POLICY_TIMESHARE 1
#define POLICY_RR 2
#define POLICY_FIFO 4
#define __NEW_SCHEDULING_FRAMEWORK__
#define POLICYCLASS_FIXEDPRI (POLICY_RR | POLICY_FIFO)
#define invalid_policy(policy) ((policy) != POLICY_TIMESHARE && (policy) != POLICY_RR && (policy) != POLICY_FIFO)
# 108 "/usr/include/mach/policy.h" 3 4
struct policy_timeshare_base {
integer_t base_priority;
};
struct policy_timeshare_limit {
integer_t max_priority;
};
struct policy_timeshare_info {
integer_t max_priority;
integer_t base_priority;
integer_t cur_priority;
boolean_t depressed;
integer_t depress_priority;
};
typedef struct policy_timeshare_base *policy_timeshare_base_t;
typedef struct policy_timeshare_limit *policy_timeshare_limit_t;
typedef struct policy_timeshare_info *policy_timeshare_info_t;
typedef struct policy_timeshare_base policy_timeshare_base_data_t;
typedef struct policy_timeshare_limit policy_timeshare_limit_data_t;
typedef struct policy_timeshare_info policy_timeshare_info_data_t;
#define POLICY_TIMESHARE_BASE_COUNT (sizeof(struct policy_timeshare_base)/sizeof(integer_t))
#define POLICY_TIMESHARE_LIMIT_COUNT (sizeof(struct policy_timeshare_limit)/sizeof(integer_t))
#define POLICY_TIMESHARE_INFO_COUNT (sizeof(struct policy_timeshare_info)/sizeof(integer_t))
struct policy_rr_base {
integer_t base_priority;
integer_t quantum;
};
struct policy_rr_limit {
integer_t max_priority;
};
struct policy_rr_info {
integer_t max_priority;
integer_t base_priority;
integer_t quantum;
boolean_t depressed;
integer_t depress_priority;
};
typedef struct policy_rr_base *policy_rr_base_t;
typedef struct policy_rr_limit *policy_rr_limit_t;
typedef struct policy_rr_info *policy_rr_info_t;
typedef struct policy_rr_base policy_rr_base_data_t;
typedef struct policy_rr_limit policy_rr_limit_data_t;
typedef struct policy_rr_info policy_rr_info_data_t;
#define POLICY_RR_BASE_COUNT (sizeof(struct policy_rr_base)/sizeof(integer_t))
#define POLICY_RR_LIMIT_COUNT (sizeof(struct policy_rr_limit)/sizeof(integer_t))
#define POLICY_RR_INFO_COUNT (sizeof(struct policy_rr_info)/sizeof(integer_t))
struct policy_fifo_base {
integer_t base_priority;
};
struct policy_fifo_limit {
integer_t max_priority;
};
struct policy_fifo_info {
integer_t max_priority;
integer_t base_priority;
boolean_t depressed;
integer_t depress_priority;
};
typedef struct policy_fifo_base *policy_fifo_base_t;
typedef struct policy_fifo_limit *policy_fifo_limit_t;
typedef struct policy_fifo_info *policy_fifo_info_t;
typedef struct policy_fifo_base policy_fifo_base_data_t;
typedef struct policy_fifo_limit policy_fifo_limit_data_t;
typedef struct policy_fifo_info policy_fifo_info_data_t;
#define POLICY_FIFO_BASE_COUNT (sizeof(struct policy_fifo_base)/sizeof(integer_t))
#define POLICY_FIFO_LIMIT_COUNT (sizeof(struct policy_fifo_limit)/sizeof(integer_t))
#define POLICY_FIFO_INFO_COUNT (sizeof(struct policy_fifo_info)/sizeof(integer_t))
struct policy_bases {
policy_timeshare_base_data_t ts;
policy_rr_base_data_t rr;
policy_fifo_base_data_t fifo;
};
struct policy_limits {
policy_timeshare_limit_data_t ts;
policy_rr_limit_data_t rr;
policy_fifo_limit_data_t fifo;
};
struct policy_infos {
policy_timeshare_info_data_t ts;
policy_rr_info_data_t rr;
policy_fifo_info_data_t fifo;
};
typedef struct policy_bases policy_base_data_t;
typedef struct policy_limits policy_limit_data_t;
typedef struct policy_infos policy_info_data_t;
# 67 "/usr/include/mach/task_info.h" 2 3 4
typedef natural_t task_flavor_t;
typedef integer_t *task_info_t;
#define TASK_INFO_MAX (1024)
typedef integer_t task_info_data_t[(1024)];
#define TASK_BASIC_INFO 4
struct task_basic_info {
integer_t suspend_count;
vm_size_t virtual_size;
vm_size_t resident_size;
time_value_t user_time;
time_value_t system_time;
policy_t policy;
};
typedef struct task_basic_info task_basic_info_data_t;
typedef struct task_basic_info *task_basic_info_t;
#define TASK_BASIC_INFO_COUNT (sizeof(task_basic_info_data_t) / sizeof(natural_t))
#define TASK_EVENTS_INFO 2
struct task_events_info {
integer_t faults;
integer_t pageins;
integer_t cow_faults;
integer_t messages_sent;
integer_t messages_received;
integer_t syscalls_mach;
integer_t syscalls_unix;
integer_t csw;
};
typedef struct task_events_info task_events_info_data_t;
typedef struct task_events_info *task_events_info_t;
#define TASK_EVENTS_INFO_COUNT (sizeof(task_events_info_data_t) / sizeof(natural_t))
#define TASK_THREAD_TIMES_INFO 3
struct task_thread_times_info {
time_value_t user_time;
time_value_t system_time;
};
typedef struct task_thread_times_info task_thread_times_info_data_t;
typedef struct task_thread_times_info *task_thread_times_info_t;
#define TASK_THREAD_TIMES_INFO_COUNT (sizeof(task_thread_times_info_data_t) / sizeof(natural_t))
#define TASK_SCHED_TIMESHARE_INFO 10
#define TASK_SCHED_RR_INFO 11
#define TASK_SCHED_FIFO_INFO 12
#define TASK_SCHED_INFO 14
#define TASK_SECURITY_TOKEN 13
#define TASK_SECURITY_TOKEN_COUNT (sizeof(security_token_t) / sizeof(natural_t))
#define TASK_AUDIT_TOKEN 15
#define TASK_AUDIT_TOKEN_COUNT (sizeof(audit_token_t) / sizeof(natural_t))
# 76 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/task_policy.h" 1 3 4
# 35 "/usr/include/mach/task_policy.h" 3 4
#define _MACH_TASK_POLICY_H_
# 1 "/usr/include/mach/mach_types.h" 1 3 4
# 38 "/usr/include/mach/task_policy.h" 2 3 4
# 56 "/usr/include/mach/task_policy.h" 3 4
typedef natural_t task_policy_flavor_t;
typedef integer_t *task_policy_t;
# 109 "/usr/include/mach/task_policy.h" 3 4
#define TASK_CATEGORY_POLICY 1
enum task_role {
TASK_RENICED = -1,
TASK_UNSPECIFIED = 0,
TASK_FOREGROUND_APPLICATION,
TASK_BACKGROUND_APPLICATION,
TASK_CONTROL_APPLICATION,
TASK_GRAPHICS_SERVER
};
typedef enum task_role task_role_t;
struct task_category_policy {
task_role_t role;
};
typedef struct task_category_policy task_category_policy_data_t;
typedef struct task_category_policy *task_category_policy_t;
#define TASK_CATEGORY_POLICY_COUNT (sizeof (task_category_policy_data_t) / sizeof (integer_t))
# 77 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/task_special_ports.h" 1 3 4
# 62 "/usr/include/mach/task_special_ports.h" 3 4
#define _MACH_TASK_SPECIAL_PORTS_H_
typedef int task_special_port_t;
#define TASK_KERNEL_PORT 1
#define TASK_HOST_PORT 2
#define TASK_BOOTSTRAP_PORT 4
#define TASK_WIRED_LEDGER_PORT 5
#define TASK_PAGED_LEDGER_PORT 6
#define task_get_wired_ledger_port(task,port) (task_get_special_port((task), TASK_WIRED_LEDGER_PORT, (port)))
#define task_set_wired_ledger_port(task,port) (task_set_special_port((task), TASK_WIRED_LEDGER_PORT, (port)))
#define task_get_paged_ledger_port(task,port) (task_get_special_port((task), TASK_PAGED_LEDGER_PORT, (port)))
#define task_set_paged_ledger_port(task,port) (task_set_special_port((task), TASK_PAGED_LEDGER_PORT, (port)))
# 99 "/usr/include/mach/task_special_ports.h" 3 4
#define task_get_kernel_port(task,port) (task_get_special_port((task), TASK_KERNEL_PORT, (port)))
#define task_set_kernel_port(task,port) (task_set_special_port((task), TASK_KERNEL_PORT, (port)))
#define task_get_host_port(task,port) (task_get_special_port((task), TASK_HOST_PORT, (port)))
#define task_set_host_port(task,port) (task_set_special_port((task), TASK_HOST_PORT, (port)))
#define task_get_bootstrap_port(task,port) (task_get_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
#define task_set_bootstrap_port(task,port) (task_set_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
# 78 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/thread_info.h" 1 3 4
# 64 "/usr/include/mach/thread_info.h" 3 4
#define _MACH_THREAD_INFO_H_
# 76 "/usr/include/mach/thread_info.h" 3 4
typedef natural_t thread_flavor_t;
typedef integer_t *thread_info_t;
#define THREAD_INFO_MAX (1024)
typedef integer_t thread_info_data_t[(1024)];
#define THREAD_BASIC_INFO 3
struct thread_basic_info {
time_value_t user_time;
time_value_t system_time;
integer_t cpu_usage;
policy_t policy;
integer_t run_state;
integer_t flags;
integer_t suspend_count;
integer_t sleep_time;
};
typedef struct thread_basic_info thread_basic_info_data_t;
typedef struct thread_basic_info *thread_basic_info_t;
#define THREAD_BASIC_INFO_COUNT (sizeof(thread_basic_info_data_t) / sizeof(natural_t))
#define TH_USAGE_SCALE 1000
#define TH_STATE_RUNNING 1
#define TH_STATE_STOPPED 2
#define TH_STATE_WAITING 3
#define TH_STATE_UNINTERRUPTIBLE 4
#define TH_STATE_HALTED 5
#define TH_FLAGS_SWAPPED 0x1
#define TH_FLAGS_IDLE 0x2
#define THREAD_SCHED_TIMESHARE_INFO 10
#define THREAD_SCHED_RR_INFO 11
#define THREAD_SCHED_FIFO_INFO 12
# 79 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/thread_policy.h" 1 3 4
# 35 "/usr/include/mach/thread_policy.h" 3 4
#define _MACH_THREAD_POLICY_H_
# 56 "/usr/include/mach/thread_policy.h" 3 4
typedef natural_t thread_policy_flavor_t;
typedef integer_t *thread_policy_t;
# 89 "/usr/include/mach/thread_policy.h" 3 4
#define THREAD_STANDARD_POLICY 1
struct thread_standard_policy {
natural_t no_data;
};
typedef struct thread_standard_policy thread_standard_policy_data_t;
typedef struct thread_standard_policy *thread_standard_policy_t;
#define THREAD_STANDARD_POLICY_COUNT 0
# 112 "/usr/include/mach/thread_policy.h" 3 4
#define THREAD_EXTENDED_POLICY 1
struct thread_extended_policy {
boolean_t timeshare;
};
typedef struct thread_extended_policy thread_extended_policy_data_t;
typedef struct thread_extended_policy *thread_extended_policy_t;
#define THREAD_EXTENDED_POLICY_COUNT (sizeof (thread_extended_policy_data_t) / sizeof (integer_t))
# 151 "/usr/include/mach/thread_policy.h" 3 4
#define THREAD_TIME_CONSTRAINT_POLICY 2
struct thread_time_constraint_policy {
gl_uint32_t period;
gl_uint32_t computation;
gl_uint32_t constraint;
boolean_t preemptible;
};
typedef struct thread_time_constraint_policy thread_time_constraint_policy_data_t;
typedef struct thread_time_constraint_policy *thread_time_constraint_policy_t;
#define THREAD_TIME_CONSTRAINT_POLICY_COUNT (sizeof (thread_time_constraint_policy_data_t) / sizeof (integer_t))
# 179 "/usr/include/mach/thread_policy.h" 3 4
#define THREAD_PRECEDENCE_POLICY 3
struct thread_precedence_policy {
integer_t importance;
};
typedef struct thread_precedence_policy thread_precedence_policy_data_t;
typedef struct thread_precedence_policy *thread_precedence_policy_t;
#define THREAD_PRECEDENCE_POLICY_COUNT (sizeof (thread_precedence_policy_data_t) / sizeof (integer_t))
# 80 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/thread_special_ports.h" 1 3 4
# 62 "/usr/include/mach/thread_special_ports.h" 3 4
#define _MACH_THREAD_SPECIAL_PORTS_H_
#define THREAD_KERNEL_PORT 1
#define thread_get_kernel_port(thread,port) (thread_get_special_port((thread), THREAD_KERNEL_PORT, (port)))
#define thread_set_kernel_port(thread,port) (thread_set_special_port((thread), THREAD_KERNEL_PORT, (port)))
# 81 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/clock_types.h" 1 3 4
# 38 "/usr/include/mach/clock_types.h" 3 4
#define _MACH_CLOCK_TYPES_H_
typedef int alarm_type_t;
typedef int sleep_type_t;
typedef int clock_id_t;
typedef int clock_flavor_t;
typedef int *clock_attr_t;
typedef int clock_res_t;
struct mach_timespec {
unsigned int tv_sec;
clock_res_t tv_nsec;
};
typedef struct mach_timespec mach_timespec_t;
#define SYSTEM_CLOCK 0
#define CALENDAR_CLOCK 1
#define REALTIME_CLOCK 0
#define CLOCK_GET_TIME_RES 1
#define CLOCK_ALARM_CURRES 3
#define CLOCK_ALARM_MINRES 4
#define CLOCK_ALARM_MAXRES 5
#define NSEC_PER_USEC 1000
#define USEC_PER_SEC 1000000
#define NSEC_PER_SEC 1000000000
#define BAD_MACH_TIMESPEC(t) ((t)->tv_nsec < 0 || (t)->tv_nsec >= NSEC_PER_SEC)
#define CMP_MACH_TIMESPEC(t1,t2) ((t1)->tv_sec > (t2)->tv_sec ? +NSEC_PER_SEC : ((t1)->tv_sec < (t2)->tv_sec ? -NSEC_PER_SEC : (t1)->tv_nsec - (t2)->tv_nsec))
#define ADD_MACH_TIMESPEC(t1,t2) do { if (((t1)->tv_nsec += (t2)->tv_nsec) >= NSEC_PER_SEC) { (t1)->tv_nsec -= NSEC_PER_SEC; (t1)->tv_sec += 1; } (t1)->tv_sec += (t2)->tv_sec; } while (0)
# 109 "/usr/include/mach/clock_types.h" 3 4
#define SUB_MACH_TIMESPEC(t1,t2) do { if (((t1)->tv_nsec -= (t2)->tv_nsec) < 0) { (t1)->tv_nsec += NSEC_PER_SEC; (t1)->tv_sec -= 1; } (t1)->tv_sec -= (t2)->tv_sec; } while (0)
# 121 "/usr/include/mach/clock_types.h" 3 4
#define ALRMTYPE 0xff
#define TIME_ABSOLUTE 0x00
#define TIME_RELATIVE 0x01
#define BAD_ALRMTYPE(t) (((t) &~ TIME_RELATIVE) != 0)
# 84 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/vm_attributes.h" 1 3 4
# 65 "/usr/include/mach/vm_attributes.h" 3 4
#define VM_ATTRIBUTES_H_
typedef unsigned int vm_machine_attribute_t;
#define MATTR_CACHE 1
#define MATTR_MIGRATE 2
#define MATTR_REPLICATE 4
typedef int vm_machine_attribute_val_t;
#define MATTR_VAL_OFF 0
#define MATTR_VAL_ON 1
#define MATTR_VAL_GET 2
#define MATTR_VAL_CACHE_FLUSH 6
#define MATTR_VAL_DCACHE_FLUSH 7
#define MATTR_VAL_ICACHE_FLUSH 8
#define MATTR_VAL_CACHE_SYNC 9
#define MATTR_VAL_CACHE_SYNC 9
#define MATTR_VAL_GET_INFO 10
# 85 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/vm_inherit.h" 1 3 4
# 61 "/usr/include/mach/vm_inherit.h" 3 4
#define VM_INHERIT_H_
typedef unsigned int vm_inherit_t;
#define VM_INHERIT_SHARE ((vm_inherit_t) 0)
#define VM_INHERIT_COPY ((vm_inherit_t) 1)
#define VM_INHERIT_NONE ((vm_inherit_t) 2)
#define VM_INHERIT_DONATE_COPY ((vm_inherit_t) 3)
#define VM_INHERIT_DEFAULT VM_INHERIT_COPY
#define VM_INHERIT_LAST_VALID VM_INHERIT_NONE
# 86 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/vm_behavior.h" 1 3 4
# 33 "/usr/include/mach/vm_behavior.h" 3 4
#define _MACH_VM_BEHAVIOR_H_
typedef int vm_behavior_t;
# 51 "/usr/include/mach/vm_behavior.h" 3 4
#define VM_BEHAVIOR_DEFAULT ((vm_behavior_t) 0)
#define VM_BEHAVIOR_RANDOM ((vm_behavior_t) 1)
#define VM_BEHAVIOR_SEQUENTIAL ((vm_behavior_t) 2)
#define VM_BEHAVIOR_RSEQNTL ((vm_behavior_t) 3)
#define VM_BEHAVIOR_WILLNEED ((vm_behavior_t) 4)
#define VM_BEHAVIOR_DONTNEED ((vm_behavior_t) 5)
# 87 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/vm_prot.h" 1 3 4
# 61 "/usr/include/mach/vm_prot.h" 3 4
#define VM_PROT_H_
typedef int vm_prot_t;
#define VM_PROT_NONE ((vm_prot_t) 0x00)
#define VM_PROT_READ ((vm_prot_t) 0x01)
#define VM_PROT_WRITE ((vm_prot_t) 0x02)
#define VM_PROT_EXECUTE ((vm_prot_t) 0x04)
#define VM_PROT_DEFAULT (VM_PROT_READ|VM_PROT_WRITE)
#define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
#define VM_PROT_NO_CHANGE ((vm_prot_t) 0x08)
# 108 "/usr/include/mach/vm_prot.h" 3 4
#define VM_PROT_COPY ((vm_prot_t) 0x10)
# 121 "/usr/include/mach/vm_prot.h" 3 4
#define VM_PROT_WANTS_COPY ((vm_prot_t) 0x10)
# 88 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/vm_sync.h" 1 3 4
# 58 "/usr/include/mach/vm_sync.h" 3 4
#define VM_SYNC_H_
typedef unsigned vm_sync_t;
#define VM_SYNC_ASYNCHRONOUS ((vm_sync_t) 0x01)
#define VM_SYNC_SYNCHRONOUS ((vm_sync_t) 0x02)
#define VM_SYNC_INVALIDATE ((vm_sync_t) 0x04)
#define VM_SYNC_KILLPAGES ((vm_sync_t) 0x08)
#define VM_SYNC_DEACTIVATE ((vm_sync_t) 0x10)
# 90 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/vm_region.h" 1 3 4
# 33 "/usr/include/mach/vm_region.h" 3 4
#define _MACH_VM_REGION_H_
# 46 "/usr/include/mach/vm_region.h" 3 4
#define VM_REGION_INFO_MAX (1024)
typedef int *vm_region_info_t;
typedef int *vm_region_info_64_t;
typedef int *vm_region_recurse_info_t;
typedef int *vm_region_recurse_info_64_t;
typedef int vm_region_flavor_t;
typedef int vm_region_info_data_t[(1024)];
#define VM_REGION_BASIC_INFO 10
struct vm_region_basic_info_64 {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
boolean_t shared;
boolean_t reserved;
vm_object_offset_t offset;
vm_behavior_t behavior;
unsigned short user_wired_count;
};
typedef struct vm_region_basic_info_64 *vm_region_basic_info_64_t;
typedef struct vm_region_basic_info_64 vm_region_basic_info_data_64_t;
#define VM_REGION_BASIC_INFO_COUNT_64 (sizeof(vm_region_basic_info_data_64_t)/sizeof(int))
struct vm_region_basic_info {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
boolean_t shared;
boolean_t reserved;
vm_offset_t offset;
vm_behavior_t behavior;
unsigned short user_wired_count;
};
typedef struct vm_region_basic_info *vm_region_basic_info_t;
typedef struct vm_region_basic_info vm_region_basic_info_data_t;
#define VM_REGION_BASIC_INFO_COUNT (sizeof(vm_region_basic_info_data_t)/sizeof(int))
#define VM_REGION_EXTENDED_INFO 11
#define SM_COW 1
#define SM_PRIVATE 2
#define SM_EMPTY 3
#define SM_SHARED 4
#define SM_TRUESHARED 5
#define SM_PRIVATE_ALIASED 6
#define SM_SHARED_ALIASED 7
# 116 "/usr/include/mach/vm_region.h" 3 4
struct vm_region_extended_info {
vm_prot_t protection;
unsigned int user_tag;
unsigned int pages_resident;
unsigned int pages_shared_now_private;
unsigned int pages_swapped_out;
unsigned int pages_dirtied;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
};
typedef struct vm_region_extended_info *vm_region_extended_info_t;
typedef struct vm_region_extended_info vm_region_extended_info_data_t;
#define VM_REGION_EXTENDED_INFO_COUNT (sizeof(vm_region_extended_info_data_t)/sizeof(int))
#define VM_REGION_TOP_INFO 12
struct vm_region_top_info {
unsigned int obj_id;
unsigned int ref_count;
unsigned int private_pages_resident;
unsigned int shared_pages_resident;
unsigned char share_mode;
};
typedef struct vm_region_top_info *vm_region_top_info_t;
typedef struct vm_region_top_info vm_region_top_info_data_t;
#define VM_REGION_TOP_INFO_COUNT (sizeof(vm_region_top_info_data_t)/sizeof(int))
# 173 "/usr/include/mach/vm_region.h" 3 4
struct vm_region_submap_info {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
vm_offset_t offset;
unsigned int user_tag;
unsigned int pages_resident;
unsigned int pages_shared_now_private;
unsigned int pages_swapped_out;
unsigned int pages_dirtied;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
boolean_t is_submap;
vm_behavior_t behavior;
vm_offset_t object_id;
unsigned short user_wired_count;
};
typedef struct vm_region_submap_info *vm_region_submap_info_t;
typedef struct vm_region_submap_info vm_region_submap_info_data_t;
#define VM_REGION_SUBMAP_INFO_COUNT (sizeof(vm_region_submap_info_data_t)/sizeof(int))
struct vm_region_submap_info_64 {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
vm_object_offset_t offset;
unsigned int user_tag;
unsigned int pages_resident;
unsigned int pages_shared_now_private;
unsigned int pages_swapped_out;
unsigned int pages_dirtied;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
boolean_t is_submap;
vm_behavior_t behavior;
vm_offset_t object_id;
unsigned short user_wired_count;
};
typedef struct vm_region_submap_info_64 *vm_region_submap_info_64_t;
typedef struct vm_region_submap_info_64 vm_region_submap_info_data_64_t;
#define VM_REGION_SUBMAP_INFO_COUNT_64 (sizeof(vm_region_submap_info_data_64_t)/sizeof(int))
struct vm_read_entry {
vm_address_t address;
vm_size_t size;
};
#define VM_MAP_ENTRY_MAX (256)
typedef struct vm_read_entry vm_read_entry_t[(256)];
# 92 "/usr/include/mach/mach_types.h" 2 3 4
# 1 "/usr/include/mach/kmod.h" 1 3 4
# 31 "/usr/include/mach/kmod.h" 3 4
#define _MACH_KMOD_H_
# 1 "/usr/include/mach/kern_return.h" 1 3 4
# 62 "/usr/include/mach/kern_return.h" 3 4
#define _MACH_KERN_RETURN_H_
# 1 "/usr/include/mach/machine/kern_return.h" 1 3 4
# 23 "/usr/include/mach/machine/kern_return.h" 3 4
#define _MACH_MACHINE_KERN_RETURN_H_
# 1 "/usr/include/mach/ppc/kern_return.h" 1 3 4
# 132 "/usr/include/mach/ppc/kern_return.h" 3 4
#define _MACH_PPC_KERN_RETURN_H_
typedef int kern_return_t;
# 28 "/usr/include/mach/machine/kern_return.h" 2 3 4
# 65 "/usr/include/mach/kern_return.h" 2 3 4
#define KERN_SUCCESS 0
#define KERN_INVALID_ADDRESS 1
#define KERN_PROTECTION_FAILURE 2
#define KERN_NO_SPACE 3
#define KERN_INVALID_ARGUMENT 4
#define KERN_FAILURE 5
#define KERN_RESOURCE_SHORTAGE 6
#define KERN_NOT_RECEIVER 7
#define KERN_NO_ACCESS 8
#define KERN_MEMORY_FAILURE 9
#define KERN_MEMORY_ERROR 10
#define KERN_ALREADY_IN_SET 11
#define KERN_NOT_IN_SET 12
#define KERN_NAME_EXISTS 13
#define KERN_ABORTED 14
#define KERN_INVALID_NAME 15
#define KERN_INVALID_TASK 16
#define KERN_INVALID_RIGHT 17
#define KERN_INVALID_VALUE 18
#define KERN_UREFS_OVERFLOW 19
#define KERN_INVALID_CAPABILITY 20
#define KERN_RIGHT_EXISTS 21
#define KERN_INVALID_HOST 22
#define KERN_MEMORY_PRESENT 23
#define KERN_MEMORY_DATA_MOVED 24
# 197 "/usr/include/mach/kern_return.h" 3 4
#define KERN_MEMORY_RESTART_COPY 25
#define KERN_INVALID_PROCESSOR_SET 26
#define KERN_POLICY_LIMIT 27
#define KERN_INVALID_POLICY 28
#define KERN_INVALID_OBJECT 29
#define KERN_ALREADY_WAITING 30
#define KERN_DEFAULT_SET 31
#define KERN_EXCEPTION_PROTECTED 32
#define KERN_INVALID_LEDGER 33
#define KERN_INVALID_MEMORY_CONTROL 34
#define KERN_INVALID_SECURITY 35
#define KERN_NOT_DEPRESSED 36
#define KERN_TERMINATED 37
#define KERN_LOCK_SET_DESTROYED 38
#define KERN_LOCK_UNSTABLE 39
#define KERN_LOCK_OWNED 40
#define KERN_LOCK_OWNED_SELF 41
#define KERN_SEMAPHORE_DESTROYED 42
#define KERN_RPC_SERVER_TERMINATED 43
#define KERN_RPC_TERMINATE_ORPHAN 44
#define KERN_RPC_CONTINUE_ORPHAN 45
#define KERN_NOT_SUPPORTED 46
#define KERN_NODE_DOWN 47
#define KERN_NOT_WAITING 48
#define KERN_OPERATION_TIMED_OUT 49
#define KERN_RETURN_MAX 0x100
# 35 "/usr/include/mach/kmod.h" 2 3 4
#define KMOD_CNTL_START 1
#define KMOD_CNTL_STOP 2
#define KMOD_CNTL_RETAIN 3
#define KMOD_CNTL_RELEASE 4
#define KMOD_CNTL_GET_CMD 5
#define KMOD_PACK_IDS(from,to) (((unsigned long)from << 16) | (unsigned long)to)
#define KMOD_UNPACK_FROM_ID(i) ((unsigned long)i >> 16)
#define KMOD_UNPACK_TO_ID(i) ((unsigned long)i & 0xffff)
#define KMOD_MAX_NAME 64
typedef int kmod_t;
typedef int kmod_control_flavor_t;
typedef void* kmod_args_t;
typedef struct kmod_reference {
struct kmod_reference *next;
struct kmod_info *info;
} kmod_reference_t;
#define KMOD_RETURN_SUCCESS KERN_SUCCESS
#define KMOD_RETURN_FAILURE KERN_FAILURE
typedef kern_return_t kmod_start_func_t(struct kmod_info *ki, void *data);
typedef kern_return_t kmod_stop_func_t(struct kmod_info *ki, void *data);
typedef struct kmod_info {
struct kmod_info *next;
int info_version;
int id;
char name[64];
char version[64];
int reference_count;
kmod_reference_t *reference_list;
vm_address_t address;
vm_size_t size;
vm_size_t hdr_size;
kmod_start_func_t *start;
kmod_stop_func_t *stop;
} kmod_info_t;
typedef kmod_info_t *kmod_info_array_t;
#define KMOD_INFO_NAME kmod_info
#define KMOD_INFO_VERSION 1
#define KMOD_DECL(name,version) static kmod_start_func_t name ## _module_start; static kmod_stop_func_t name ## _module_stop; kmod_info_t KMOD_INFO_NAME = { 0, KMOD_INFO_VERSION, -1, { #name }, { version }, -1, 0, 0, 0, 0, name ## _module_start, name ## _module_stop };
#define KMOD_EXPLICIT_DECL(name,version,start,stop) kmod_info_t KMOD_INFO_NAME = { 0, KMOD_INFO_VERSION, -1, { #name }, { version }, -1, 0, 0, 0, 0, start, stop };
#define KMOD_LIB_DECL(name,version) kmod_info_t KMOD_INFO_NAME = { 0, KMOD_INFO_VERSION, -1, { #name }, { version }, -1, 0, 0, 0, 0, kmod_default_start, kmod_default_stop };
# 127 "/usr/include/mach/kmod.h" 3 4
#define KMOD_LOAD_EXTENSION_PACKET 1
#define KMOD_LOAD_WITH_DEPENDENCIES_PACKET 2
#define KMOD_IOKIT_START_RANGE_PACKET 0x1000
#define KMOD_IOKIT_END_RANGE_PACKET 0x1fff
typedef struct kmod_load_extension_cmd {
int type;
char name[64];
} kmod_load_extension_cmd_t;
typedef struct kmod_load_with_dependencies_cmd {
int type;
char name[64];
char dependencies[1][64];
} kmod_load_with_dependencies_cmd_t;
typedef struct kmod_generic_cmd {
int type;
char data[1];
} kmod_generic_cmd_t;
# 93 "/usr/include/mach/mach_types.h" 2 3 4
typedef mach_port_t task_t;
typedef mach_port_t thread_t;
typedef mach_port_t thread_act_t;
typedef mach_port_t ipc_space_t;
typedef mach_port_t host_t;
typedef mach_port_t host_priv_t;
typedef mach_port_t host_security_t;
typedef mach_port_t processor_t;
typedef mach_port_t processor_set_t;
typedef mach_port_t processor_set_control_t;
typedef mach_port_t semaphore_t;
typedef mach_port_t lock_set_t;
typedef mach_port_t ledger_t;
typedef mach_port_t alarm_t;
typedef mach_port_t clock_serv_t;
typedef mach_port_t clock_ctrl_t;
typedef processor_set_t processor_set_name_t;
typedef mach_port_t clock_reply_t;
typedef mach_port_t bootstrap_t;
typedef mach_port_t mem_entry_name_port_t;
typedef mach_port_t exception_handler_t;
typedef exception_handler_t *exception_handler_array_t;
typedef mach_port_t vm_task_entry_t;
typedef mach_port_t io_master_t;
typedef mach_port_t UNDServerRef;
# 143 "/usr/include/mach/mach_types.h" 3 4
typedef task_t *task_array_t;
typedef thread_t *thread_array_t;
typedef processor_set_t *processor_set_array_t;
typedef processor_set_t *processor_set_name_array_t;
typedef processor_t *processor_array_t;
typedef thread_act_t *thread_act_array_t;
typedef ledger_t *ledger_array_t;
# 158 "/usr/include/mach/mach_types.h" 3 4
typedef task_t task_port_t;
typedef task_array_t task_port_array_t;
typedef thread_t thread_port_t;
typedef thread_array_t thread_port_array_t;
typedef ipc_space_t ipc_space_port_t;
typedef host_t host_name_t;
typedef host_t host_name_port_t;
typedef processor_set_t processor_set_port_t;
typedef processor_set_t processor_set_name_port_t;
typedef processor_set_array_t processor_set_name_port_array_t;
typedef processor_set_t processor_set_control_port_t;
typedef processor_t processor_port_t;
typedef processor_array_t processor_port_array_t;
typedef thread_act_t thread_act_port_t;
typedef thread_act_array_t thread_act_port_array_t;
typedef semaphore_t semaphore_port_t;
typedef lock_set_t lock_set_port_t;
typedef ledger_t ledger_port_t;
typedef ledger_array_t ledger_port_array_t;
typedef alarm_t alarm_port_t;
typedef clock_serv_t clock_serv_port_t;
typedef clock_ctrl_t clock_ctrl_port_t;
typedef exception_handler_t exception_port_t;
typedef exception_handler_array_t exception_port_arrary_t;
#define TASK_NULL ((task_t) 0)
#define THREAD_NULL ((thread_t) 0)
#define THR_ACT_NULL ((thread_act_t) 0)
#define IPC_SPACE_NULL ((ipc_space_t) 0)
#define HOST_NULL ((host_t) 0)
#define HOST_PRIV_NULL ((host_priv_t)0)
#define HOST_SECURITY_NULL ((host_security_t)0)
#define PROCESSOR_SET_NULL ((processor_set_t) 0)
#define PROCESSOR_NULL ((processor_t) 0)
#define SEMAPHORE_NULL ((semaphore_t) 0)
#define LOCK_SET_NULL ((lock_set_t) 0)
#define LEDGER_NULL ((ledger_t) 0)
#define ALARM_NULL ((alarm_t) 0)
#define CLOCK_NULL ((clock_t) 0)
#define UND_SERVER_NULL ((UNDServerRef) 0)
typedef integer_t ledger_item_t;
typedef vm_offset_t *emulation_vector_t;
typedef char *user_subsystem_t;
# 1 "/usr/include/mach/std_types.h" 1 3 4
# 58 "/usr/include/mach/std_types.h" 3 4
#define STD_TYPES_H_
# 209 "/usr/include/mach/mach_types.h" 2 3 4
# 67 "/usr/include/pthread.h" 2 3 4
# 96 "/usr/include/pthread.h" 3 4
# 107 "/usr/include/pthread.h" 3 4
#define pthread_cleanup_push(func,val) { struct _pthread_handler_rec __handler; pthread_t __self = pthread_self(); __handler.routine = func; __handler.arg = val; __handler.next = __self->cleanup_stack; __self->cleanup_stack = &__handler;
# 116 "/usr/include/pthread.h" 3 4
#define pthread_cleanup_pop(execute) __self->cleanup_stack = __handler.next; if (execute) (__handler.routine)(__handler.arg); }
# 126 "/usr/include/pthread.h" 3 4
#define PTHREAD_CREATE_JOINABLE 1
#define PTHREAD_CREATE_DETACHED 2
#define PTHREAD_INHERIT_SCHED 1
#define PTHREAD_EXPLICIT_SCHED 2
#define PTHREAD_CANCEL_ENABLE 0x01
#define PTHREAD_CANCEL_DISABLE 0x00
#define PTHREAD_CANCEL_DEFERRED 0x02
#define PTHREAD_CANCEL_ASYNCHRONOUS 0x00
#define PTHREAD_SCOPE_SYSTEM 1
#define PTHREAD_SCOPE_PROCESS 2
#define PTHREAD_PROCESS_SHARED 1
#define PTHREAD_PROCESS_PRIVATE 2
# 153 "/usr/include/pthread.h" 3 4
#define PTHREAD_PRIO_NONE 0
#define PTHREAD_PRIO_INHERIT 1
#define PTHREAD_PRIO_PROTECT 2
#define PTHREAD_MUTEX_NORMAL 0
#define PTHREAD_MUTEX_ERRORCHECK 1
#define PTHREAD_MUTEX_RECURSIVE 2
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
#define PTHREAD_MUTEX_INITIALIZER {_PTHREAD_MUTEX_SIG_init, {0}}
# 178 "/usr/include/pthread.h" 3 4
#define PTHREAD_COND_INITIALIZER {_PTHREAD_COND_SIG_init, {0}}
#define PTHREAD_ONCE_INIT {_PTHREAD_ONCE_SIG_init, {0}}
# 1 "sys/time.h" 1 3 4
# 23 "sys/time.h" 3
# 35 "sys/time.h" 3
#define _GL_SYS_TIME_H
# 1 "/usr/include/sys/time.h" 1 3 4
# 59 "/usr/include/sys/time.h" 3 4
#define _SYS_TIME_H_
# 68 "/usr/include/sys/time.h" 3 4
struct timeval {
gl_int32_t tv_sec;
gl_int32_t tv_usec;
};
# 84 "/usr/include/sys/time.h" 3 4
#define TIMEVAL_TO_TIMESPEC(tv,ts) { (ts)->tv_sec = (tv)->tv_sec; (ts)->tv_nsec = (tv)->tv_usec * 1000; }
#define TIMESPEC_TO_TIMEVAL(tv,ts) { (tv)->tv_sec = (ts)->tv_sec; (tv)->tv_usec = (ts)->tv_nsec / 1000; }
struct timezone {
int tz_minuteswest;
int tz_dsttime;
};
#define DST_NONE 0
#define DST_USA 1
#define DST_AUST 2
#define DST_WET 3
#define DST_MET 4
#define DST_EET 5
#define DST_CAN 6
#define time_second time.tv_sec
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timercmp(tvp,uvp,cmp) (((tvp)->tv_sec == (uvp)->tv_sec) ? ((tvp)->tv_usec cmp (uvp)->tv_usec) : ((tvp)->tv_sec cmp (uvp)->tv_sec))
#define timeradd(tvp,uvp,vvp) do { (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; if ((vvp)->tv_usec >= 1000000) { (vvp)->tv_sec++; (vvp)->tv_usec -= 1000000; } } while (0)
# 123 "/usr/include/sys/time.h" 3 4
#define timersub(tvp,uvp,vvp) do { (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; if ((vvp)->tv_usec < 0) { (vvp)->tv_sec--; (vvp)->tv_usec += 1000000; } } while (0)
# 133 "/usr/include/sys/time.h" 3 4
#define timevalcmp(l,r,cmp) timercmp(l, r, cmp)
#define ITIMER_REAL 0
#define ITIMER_VIRTUAL 1
#define ITIMER_PROF 2
struct itimerval {
struct timeval it_interval;
struct timeval it_value;
};
struct clockinfo {
int hz;
int tick;
int tickadj;
int stathz;
int profhz;
};
# 176 "/usr/include/sys/time.h" 3 4
# 1 "time.h" 1 3 4
# 21 "time.h" 3
# 177 "/usr/include/sys/time.h" 2 3 4
int adjtime (const struct timeval *, struct timeval *);
int futimes (int, const struct timeval *);
int getitimer (int, struct itimerval *);
int gettimeofday (struct timeval *, struct timezone *);
int setitimer (int, const struct itimerval *, struct itimerval *);
int settimeofday (const struct timeval *, const struct timezone *);
int utimes (const char *, const struct timeval *);
# 39 "sys/time.h" 2 3
# 414 "sys/time.h" 3
extern int _gl_cxxalias_dummy;
extern int _gl_cxxalias_dummy;
# 191 "/usr/include/pthread.h" 2 3 4
int pthread_attr_destroy(pthread_attr_t *attr);
int pthread_attr_getdetachstate(const pthread_attr_t *attr,
int *detachstate);
int pthread_attr_getinheritsched(const pthread_attr_t *attr,
int *inheritsched);
int pthread_attr_getschedparam(const pthread_attr_t *attr,
struct sched_param *param);
int pthread_attr_getschedpolicy(const pthread_attr_t *attr,
int *policy);
int pthread_attr_getstackaddr(const pthread_attr_t *attr,
void **stackaddr);
int pthread_attr_getstacksize(const pthread_attr_t *attr,
size_t *stacksize);
int pthread_attr_getstack(const pthread_attr_t *attr,
void **stackaddr, size_t *stacksize);
int pthread_attr_getguardsize(const pthread_attr_t *attr,
size_t *guardsize);
int pthread_attr_init(pthread_attr_t *attr);
int pthread_attr_setdetachstate(pthread_attr_t *attr,
int detachstate);
int pthread_attr_setinheritsched(pthread_attr_t *attr,
int inheritsched);
int pthread_attr_setschedparam(pthread_attr_t *attr,
const struct sched_param *param);
int pthread_attr_setschedpolicy(pthread_attr_t *attr,
int policy);
int pthread_attr_setstackaddr(pthread_attr_t *attr,
void *stackaddr);
int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);
int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize);
int pthread_attr_setstack(pthread_attr_t *attr,
void *stackaddr, size_t stacksize);
int pthread_cancel(pthread_t thread);
int pthread_setcancelstate(int state, int *oldstate);
int pthread_setcanceltype(int type, int *oldtype);
void pthread_testcancel(void);
int pthread_cond_broadcast(pthread_cond_t *cond);
int pthread_cond_destroy(pthread_cond_t *cond);
int pthread_cond_init(pthread_cond_t *cond,
const pthread_condattr_t *attr);
int pthread_cond_signal(pthread_cond_t *cond);
int pthread_cond_wait(pthread_cond_t *cond,
pthread_mutex_t *mutex);
int pthread_cond_timedwait(pthread_cond_t *cond,
pthread_mutex_t *mutex,
const struct timespec *abstime);
int pthread_condattr_init(pthread_condattr_t *attr);
int pthread_condattr_destroy(pthread_condattr_t *attr);
int pthread_condattr_getpshared(const pthread_condattr_t *attr,
int *pshared);
int pthread_condattr_setpshared(pthread_condattr_t *attr,
int pshared);
int pthread_create(pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)(void *),
void *arg);
int pthread_detach(pthread_t thread);
int pthread_equal(pthread_t t1,
pthread_t t2);
void pthread_exit(void *value_ptr) __attribute__((__noreturn__));
int pthread_kill(pthread_t, int);
int pthread_sigmask(int, const sigset_t *, sigset_t *);
int pthread_getschedparam(pthread_t thread,
int *policy,
struct sched_param *param);
int pthread_join(pthread_t thread,
void **value_ptr);
int pthread_mutex_destroy(pthread_mutex_t *mutex);
int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex,
int *prioceiling);
int pthread_mutex_init(pthread_mutex_t *mutex,
const pthread_mutexattr_t *attr);
int pthread_mutex_lock(pthread_mutex_t *mutex);
int pthread_mutex_setprioceiling(pthread_mutex_t *mutex,
int prioceiling,
int *old_prioceiling);
int pthread_mutex_trylock(pthread_mutex_t *mutex);
int pthread_mutex_unlock(pthread_mutex_t *mutex);
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);
int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr,
int *prioceiling);
int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr,
int *protocol);
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr,
int *pshared);
int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr,
int *type);
int pthread_mutexattr_init(pthread_mutexattr_t *attr);
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr,
int prioceiling);
int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr,
int protocol);
int pthread_mutexattr_settype(pthread_mutexattr_t *attr,
int type);
int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,
int pshared);
int pthread_once(pthread_once_t *once_control,
void (*init_routine)(void));
pthread_t pthread_self(void);
int pthread_setschedparam(pthread_t thread,
int policy,
const struct sched_param *param);
int pthread_key_create(pthread_key_t *key,
void (*destructor)(void *));
int pthread_key_delete(pthread_key_t key);
int pthread_setspecific(pthread_key_t key,
const void *value);
void *pthread_getspecific(pthread_key_t key);
int pthread_attr_getscope(pthread_attr_t *, int *);
int pthread_attr_setscope(pthread_attr_t *, int);
int pthread_getconcurrency(void);
int pthread_setconcurrency(int);
int pthread_rwlock_destroy(pthread_rwlock_t * rwlock);
int pthread_rwlock_init(pthread_rwlock_t * rwlock,
const pthread_rwlockattr_t *attr);
int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);
int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);
int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);
int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock);
int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);
int pthread_rwlockattr_init(pthread_rwlockattr_t *attr);
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr,
int *pshared);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr,
int pshared);
int pthread_is_threaded_np(void);
int pthread_main_np(void);
mach_port_t pthread_mach_thread_np(pthread_t);
size_t pthread_get_stacksize_np(pthread_t);
void * pthread_get_stackaddr_np(pthread_t);
int pthread_cond_signal_thread_np(pthread_cond_t *, pthread_t);
int pthread_cond_timedwait_relative_np(pthread_cond_t *cond,
pthread_mutex_t *mutex,
const struct timespec *reltime);
int pthread_create_suspended_np(pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)(void *),
void *arg);
void pthread_yield_np(void);
# 66 "signal.h" 2 3
# 411 "signal.h" 3
typedef void (*sighandler_t) (int);
#define GNULIB_defined_sighandler_t 1
# 443 "signal.h" 3
#define pthread_sigmask rpl_pthread_sigmask
extern int rpl_pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask);
extern int _gl_cxxalias_dummy;
# 457 "signal.h" 3
extern int _gl_cxxalias_dummy;
# 232 "/usr/include/unistd.h" 2 3 4
int profil(char *, int, int, int);
int pselect(int, fd_set *, fd_set *, fd_set *,
const struct timespec *, const sigset_t *);
ssize_t pwrite(int, const void *, size_t, off_t);
int rcmd(char **, int, const char *, const char *, const char *, int *);
int rpl_readlink(const char *, char *, int);
int reboot(int);
int revoke(const char *);
int rresvport(int *);
int rresvport_af(int *, int);
int ruserok(const char *, int, const char *, const char *);
char *sbrk(int);
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
int setegid(gid_t);
int seteuid(uid_t);
int setgroups(int, const gid_t *);
void sethostid(long);
int sethostname(const char *, int);
int setkey(const char *);
int setlogin(const char *);
void *setmode(const char *);
int setpgrp(pid_t pid, pid_t pgrp);
int setregid(gid_t, gid_t);
int setreuid(uid_t, uid_t);
int setrgid(gid_t);
int setruid(uid_t);
void setusershell(void);
int strtofflags(char **, u_long *, u_long *);
int swapon(const char *);
int rpl_symlink(const char *, const char *);
void sync(void);
int syscall(int, ...);
int truncate(const char *, off_t);
int ttyslot(void);
unsigned int ualarm(unsigned int, unsigned int);
int undelete(const char *);
int unwhiteout(const char *);
int usleep(unsigned int);
void *valloc(size_t);
pid_t fork(void);
extern char *suboptarg;
int getsubopt(char **, char * const *, char **);
int getattrlist(const char*,void*,void*,size_t,unsigned long);
int setattrlist(const char*,void*,void*,size_t,unsigned long);
int exchangedata(const char*,const char*,unsigned long);
int checkuseraccess(const char*,uid_t,gid_t*,int,int,unsigned long);
int getdirentriesattr(int,void*,void*,size_t,unsigned long*,unsigned long*,unsigned long*,unsigned long);
int searchfs(const char*,void*,void*,unsigned long,unsigned long,void*);
int fsctl(const char *,unsigned long,void*,unsigned long);
# 44 "unistd.h" 2 3
# 25 "careadlinkat.h" 2
struct allocator;
# 49 "careadlinkat.h"
char *careadlinkat (int fd, char const *filename,
char *buffer, size_t buffer_size,
struct allocator const *alloc,
ssize_t (*preadlinkat) (int, char const *,
char *, size_t));
# 66 "careadlinkat.h"
#define AT_FDCWD (-3041965)
ssize_t careadlinkatcwd (int fd, char const *filename,
char *buffer, size_t buffer_size);
# 24 "careadlinkat.c" 2
# 1 "/usr/include/errno.h" 1 3 4
# 26 "careadlinkat.c" 2
# 1 "stdlib.h" 1
# 21 "stdlib.h" 3
# 28 "careadlinkat.c" 2
# 1 "unistd.h" 1
# 20 "unistd.h" 3
# 30 "careadlinkat.c" 2
# 40 "careadlinkat.c"
# 1 "allocator.h" 1
# 21 "allocator.h"
#define _GL_ALLOCATOR_H
struct allocator
{
# 37 "allocator.h"
void *(*allocate) (size_t);
void *(*reallocate) (void *, size_t);
void (*free) (void *);
void (*die) (size_t);
};
extern struct allocator const stdlib_allocator;
# 41 "careadlinkat.c" 2
ssize_t
careadlinkatcwd (int fd, char const *filename, char *buffer,
size_t buffer_size)
{
if (fd != (-3041965))
abort ();
return rpl_readlink (filename, buffer, buffer_size);
}
# 78 "careadlinkat.c"
char *
careadlinkat (int fd, char const *filename,
char *buffer, size_t buffer_size,
struct allocator const *alloc,
ssize_t (*preadlinkat) (int, char const *, char *, size_t))
{
char *buf;
size_t buf_size;
size_t buf_size_max =
2147483647 < ((0) ? ~ ((0) ? (- ((0ul) + 1) << ((32) ? (32) - 1 : 0)) : (0ul)) : ((((0ul) + 1) << ((32) ? (32) - 1 - (0) : 0)) - 1) * 2 + 1) ? (size_t) 2147483647 + 1 : ((0) ? ~ ((0) ? (- ((0ul) + 1) << ((32) ? (32) - 1 : 0)) : (0ul)) : ((((0ul) + 1) << ((32) ? (32) - 1 - (0) : 0)) - 1) * 2 + 1);
char stack_buf[1024];
if (! alloc)
alloc = &stdlib_allocator;
if (! buffer_size)
{
buffer = stack_buf;
buffer_size = sizeof stack_buf;
}
buf = buffer;
buf_size = buffer_size;
do
{
ssize_t link_length = preadlinkat (fd, filename, buf, buf_size);
size_t link_size;
if (link_length < 0)
{
int readlinkat_errno = (*__error());
if (readlinkat_errno != 34)
{
if (buf != buffer)
{
alloc->free (buf);
(*__error()) = readlinkat_errno;
}
return 0;
}
}
link_size = link_length;
if (link_size < buf_size)
{
buf[link_size++] = '\0';
if (buf == stack_buf)
{
char *b = (char *) alloc->allocate (link_size);
buf_size = link_size;
if (! b)
break;
memcpy (b, buf, link_size);
buf = b;
}
else if (link_size < buf_size && buf != buffer && alloc->reallocate)
{
char *b = (char *) alloc->reallocate (buf, link_size);
if (b)
buf = b;
}
return buf;
}
if (buf != buffer)
alloc->free (buf);
if (buf_size <= buf_size_max / 2)
buf_size *= 2;
else if (buf_size < buf_size_max)
buf_size = buf_size_max;
else if (buf_size_max < ((0) ? ~ ((0) ? (- ((0ul) + 1) << ((32) ? (32) - 1 : 0)) : (0ul)) : ((((0ul) + 1) << ((32) ? (32) - 1 - (0) : 0)) - 1) * 2 + 1))
{
(*__error()) = 63;
return 0;
}
else
break;
buf = (char *) alloc->allocate (buf_size);
}
while (buf);
if (alloc->die)
alloc->die (buf_size);
(*__error()) = 12;
return 0;
}
[-- Attachment #3: Type: text/plain, Size: 1157 bytes --]
--
-------------------------------------------------------------------
| Klaus Zeitler Alcatel-Lucent |
| Lorenzstrasse 10 D-70435 Stuttgart, Germany |
| Department: MS/E Building: 004 Office: 1/62 |
| Telefon: +49 711 821 43898 |
| Email: klaus.zeitler@alcatel-lucent.com |
| |
| Alcatel-Lucent Deutschland AG |
| Sitz der Gesellschaft: Stuttgart · Amtsgericht Stuttgart HRB 4026 |
| Vorsitzender des Aufsichtsrates: Michael Oppenhoff |
| Vorstand: Wilhelm Dresselhaus (Chairman) · Hans-Jörg Daub · |
| Andreas Gehe |
-------------------------------------------------------------------
---
The most likely way for the world to be destroyed, most experts agree,
is by accident. That's where we come in; we're computer professionals.
We cause accidents. -- Nathaniel Borenstein
^ permalink raw reply [flat|nested] 15+ messages in thread