unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
@ 2014-02-20 14:58 Klaus Zeitler
  2014-02-21  8:54 ` Paul Eggert
  0 siblings, 1 reply; 15+ messages in thread
From: Klaus Zeitler @ 2014-02-20 14:58 UTC (permalink / raw)
  To: 16825

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

Building emacs 24.3 on powerpc-apple-darwin gives me the
following error:

--- snip ---

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT careadlinkat.o -MD -MP -MF .deps/careadlinkat.Tpo -c -o careadlinkat.o careadlinkat.c
In file included from unistd.h:43,
                 from careadlinkat.h:24,
                 from careadlinkat.c:23:
/usr/include/unistd.h:240: error: conflicting types for `rpl_readlink'
unistd.h:1559: error: previous declaration of `rpl_readlink'

--- snip ---


Looking at the 2 definitions of readlink I see in /usr/include/unistd.h:

int	 readlink(const char *, char *, int);


and in emacs-24.3/lib/unistd.h

_GL_FUNCDECL_RPL (readlink, ssize_t,
                  (const char *file, char *buf, size_t bufsize)
                  _GL_ARG_NONNULL ((1, 2)));


So it seems the 3rd parameter is different. Also I wonder why we include
2 different unistd.h files in the first place.


Attached is the complete configure/compile log.


[-- Attachment #2: expmakeout.powerpc-apple-darwin --]
[-- Type: application/octet-stream, Size: 46470 bytes --]

+ ./configure --prefix=/opt/exp/lib/gnuemacs2 --with-x-toolkit=gtk2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/exp/gnu/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... powerpc-apple-darwin7.9.0
checking host system type... powerpc-apple-darwin7.9.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking whether gcc -std=gnu99 accepts -g3 -O2... yes
checking whether ln -s works... yes
checking for install-info... /usr/bin/install-info
checking for gzip... /usr/bin/gzip
checking for makeinfo... /usr/bin/makeinfo
checking for -znocombreloc... no
checking for pkg-config... /opt/exp/gnu/bin/pkg-config
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking for _oss_ioctl in -lossaudio... no
checking for alsa >= 1.0.0... no
checking for linux/version.h... no
checking for sys/systeminfo.h... no
checking for stdio_ext.h... no
checking for fcntl.h... yes
checking for coff.h... no
checking for pty.h... no
checking for sys/vlimit.h... no
checking for sys/resource.h... yes
checking for sys/utsname.h... yes
checking for pwd.h... yes
checking for utmp.h... yes
checking for dirent.h... yes
checking for util.h... yes
checking for sys/socket.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for pthread.h... yes
checking for malloc/malloc.h... yes
checking for maillock.h... no
checking for sys/un.h... yes
checking for execinfo.h... no
checking for getopt.h... yes
checking for sys/time.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for sys/select.h... yes
checking for sys/stat.h... (cached) yes
checking for utime.h... yes
checking if personality LINUX32 can be set... no
checking for term.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether sys_siglist is declared... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for speed_t... yes
checking for net/if.h... yes
checking for ifaddrs.h... yes
checking for net/if_dl.h... yes
checking for struct ifreq.ifr_flags... yes
checking for struct ifreq.ifr_hwaddr... no
checking for struct ifreq.ifr_netmask... no
checking for struct ifreq.ifr_broadaddr... yes
checking for struct ifreq.ifr_addr... yes
checking for struct ifreq.ifr_addr.sa_len... yes
checking whether we are using GNU Make... yes
checking whether gcc understands -MMD -MF... yes
checking for long file names... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking whether malloc is Doug Lea style... no
checking for getpagesize... yes
checking for working mmap... yes
checking for dnet_ntoa in -ldnet... no
checking for main in -lXbsd... no
checking for pthread_self in -lpthread... yes
checking for cma_open in -lpthreads... no
checking for Xkb... yes
checking for XrmSetDatabase... yes
checking for XScreenResourceString... yes
checking for XScreenNumberOfScreen... yes
checking X11 version 6... 6 or newer
checking for librsvg-2.0 >= 2.11.0... no
checking for Wand >= 6.2.8... no
checking for gtk+-2.0 >= 2.10 glib-2.0 >= 2.10... yes CFLAGS='-D_REENTRANT -I/opt/exp/gnu/include/gtk-2.0 -I/opt/exp/gnu/lib/gtk-2.0/include -I/opt/exp/gnu/include/atk-1.0 -I/opt/exp/gnu/include/cairo -I/opt/exp/gnu/include/pango-1.0 -I/opt/exp/gnu/include/glib-2.0 -I/opt/exp/gnu/lib/glib-2.0/include -I/opt/exp/gnu/include/pixman-1 -I/opt/exp/gnu/include -I/opt/exp/gnu/include/freetype2 -I/opt/exp/gnu/include/libpng12 -I/opt/exp/gnu/include  ' LIBS='-L/opt/exp/gnu/lib -L/opt/exp/gnu/lib -L/opt/exp/gnu/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl  '
checking for gtk_main... yes
checking whether GTK_TYPE_FILE_SELECTION is declared... yes
checking for gtk_file_selection_new... yes
checking for gtk_widget_get_window... yes
checking for gtk_widget_set_has_window... no
checking for gtk_dialog_get_action_area... yes
checking for gtk_widget_get_sensitive... no
checking for gtk_widget_get_mapped... no
checking for gtk_adjustment_get_page_size... yes
checking for gtk_orientable_set_orientation... yes
checking for gtk_window_set_has_resize_grip... no
checking for dbus-1 >= 1.0... no
checking for gio-2.0 >= 2.26... no
checking for gconf-2.0 >= 2.13... no
checking for lgetfilecon in -lselinux... no
checking for gnutls >= 2.6.6... no
checking for gnutls_certificate_set_verify_function... no
checking for fontconfig >= 2.2.0... yes CFLAGS='-I/opt/exp/gnu/include  ' LIBS='-L/opt/exp/gnu/lib -lfontconfig  '
checking for xft >= 0.13.0... yes CFLAGS='-I/opt/exp/gnu/include -I/opt/exp/gnu/include/freetype2 -I/opt/exp/gnu/include  ' LIBS='-L/opt/exp/gnu/lib -L/usr/X11R6/lib -lXft -lfreetype -lz -lXrender -lX11 -lfontconfig  '
checking for XRenderQueryExtension in -lXrender... yes
checking X11/Xft/Xft.h usability... no
checking X11/Xft/Xft.h presence... no
checking for X11/Xft/Xft.h... no
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for XpmReadFileToPixmap in -lXpm... yes
checking for XpmReturnAllocPixels preprocessor define... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking for jpeg_destroy_compress in -ljpeg... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_get_channels in -lpng... yes
checking whether png_longjmp is declared... no
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking for EGifPutExtensionLast in -lgif... yes
checking gpm.h usability... no
checking gpm.h presence... no
checking for gpm.h... no
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes
checking for SmcOpenConnection in -lSM... yes
checking for libxml-2.0 > 2.6.17... yes CFLAGS='-I/opt/exp/gnu/include/libxml2  ' LIBS='-L/opt/exp/gnu/lib -lxml2  '
checking for htmlReadMemory in -lxml2... yes
checking whether netdb declares h_errno... yes
checking for sqrt in -lm... yes
checking for maillock in -lmail... no
checking for maillock in -llockfile... no
checking for liblockfile.so... no
checking for gethostname... yes
checking for closedir... yes
checking for getrusage... yes
checking for get_current_dir_name... no
checking for lrand48... yes
checking for setsid... yes
checking for fpathconf... yes
checking for select... yes
checking for euidaccess... no
checking for getpagesize... (cached) yes
checking for setlocale... yes
checking for utimes... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for setpgid... yes
checking for getcwd... yes
checking for shutdown... yes
checking for getaddrinfo... yes
checking for __fpending... no
checking for strsignal... yes
checking for setitimer... yes
checking for sendto... yes
checking for recvfrom... yes
checking for getsockname... yes
checking for getpeername... yes
checking for getifaddrs... yes
checking for freeifaddrs... yes
checking for gai_strerror... yes
checking for mkstemp... yes
checking for getline... no
checking for getdelim... no
checking for fsync... yes
checking for sync... yes
checking for difftime... yes
checking for posix_memalign... no
checking for getpwent... yes
checking for endpwent... yes
checking for getgrent... yes
checking for endgrent... yes
checking for touchlock... no
checking for cfmakeraw... yes
checking for cfsetspeed... yes
checking for copysign... yes
checking for __executable_start... no
checking for getwd... yes
checking for random... yes
checking for rint... yes
checking for __builtin_unwind_init... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether getpgrp requires zero arguments... yes
checking for grantpt... no
checking for getpt... no
checking for posix_openpt... no
checking for library containing tputs... -ltinfo
checking for tzset... yes
checking for readlinkat... no
checking for gettimeofday... yes
checking for nanotime... no
checking for lstat... yes
checking for alarm... yes
checking for pselect... yes
checking for pthread_sigmask... yes
checking for readlink... yes
checking for strtoimax... yes
checking for strtoumax... yes
checking for symlink... yes
checking for localtime_r... yes
checking for futimes... yes
checking for futimesat... no
checking for futimens... no
checking for utimensat... no
checking for lutimes... no
checking whether localtime caches TZ... no
checking for socket... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking whether system supports dynamic ptys... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for snprintf... yes
checking for nl_langinfo and CODESET... yes
checking for mbstate_t... yes
checking for C restricted array declarations... yes
checking whether we are using the GNU C library... no
checking for _setjmp... yes
checking for usable FIONREAD... yes
checking for usable SIGIO... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether byte ordering is bigendian... yes
checking for inline... inline
checking whether strtold conforms to C99... yes
checking if environ is properly declared... no
checking for st_dm_mode in struct stat... no
checking whether strmode is declared... yes
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for getopt.h... (cached) yes
checking for getopt_long_only... no
checking whether getenv is declared... yes
checking for C/C++ restrict keyword... __restrict
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for bit size of ptrdiff_t... 32
checking for bit size of size_t... 32
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... yes
checking for ptrdiff_t integer literal suffix...
checking for size_t integer literal suffix... ul
checking for sig_atomic_t integer literal suffix...
checking for wchar_t integer literal suffix...
checking for wint_t integer literal suffix...
checking whether lstat correctly handles trailing slash... no
checking whether <sys/select.h> is self-contained... no
checking for sigset_t... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wchar_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct tm.tm_gmtoff... yes
checking whether strtoimax is declared... yes
checking whether strtoumax is declared... yes
checking whether stat file-mode macros are broken... no
checking for mode_t... yes
checking for struct timespec in <time.h>... yes
checking whether the utimes function works... yes
checking for struct utimbuf... yes
checking for alloca as a compiler built-in... yes
checking for library containing clock_gettime... no
checking for clock_gettime... no
checking for clock_settime... no
checking whether dup2 works... yes
checking for getloadavg... yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking whether getloadavg is declared... yes
checking whether gettimeofday clobbers localtime buffer... no
checking for gettimeofday with POSIX signature... almost
checking for working mktime... no
checking whether signature of pselect conforms to POSIX... no
checking whether pselect detects invalid fds... yes
checking whether pthread_sigmask works without -lpthread... yes
checking whether pthread_sigmask returns error numbers... no
checking whether pthread_sigmask unblocks signals correctly... guessing yes
checking whether readlink signature is correct... no
checking whether readlink handles trailing slash correctly... no
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking for socklen_t... yes
checking for ssize_t... yes
checking for struct stat.st_atim.tv_nsec... no
checking for struct stat.st_atimespec.tv_nsec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for working stdalign.h... no
checking for va_copy... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether strtoimax works... yes
checking whether symlink handles trailing slash correctly... no
checking whether <sys/select.h> is self-contained... (cached) no
checking for nlink_t... yes
checking whether localtime_r is declared... yes
checking whether localtime_r is compatible with its POSIX signature... yes
checking for library containing timer_settime... no
checking for timer_settime... no
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing slashes on files... no

Configured for `powerpc-apple-darwin7.9.0'.

  Where should the build process find the source code?    /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3
  What compiler should emacs be built with?               gcc -std=gnu99 -g3 -O2
  Should Emacs use the GNU version of malloc?             no
    (The GNU allocators don't work with this system configuration.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK2
  Where do we find X Windows header files?                /usr/X11R6/include
  Where do we find X Windows libraries?                   /usr/X11R6/lib
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use -lpng?                                   yes
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use imagemagick?                             no
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs use toolkit scroll bars?                     yes


configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib-src/Makefile
config.status: creating oldXMenu/Makefile
config.status: creating doc/emacs/Makefile
config.status: creating doc/misc/Makefile
config.status: creating doc/lispintro/Makefile
config.status: creating doc/lispref/Makefile
config.status: creating src/Makefile
config.status: creating lwlib/Makefile
config.status: creating lisp/Makefile
config.status: creating leim/Makefile
config.status: creating nextstep/Makefile
config.status: creating admin/unidata/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing mkdirs commands
config.status: executing epaths commands
creating src/epaths.h
config.status: executing gdbinit commands
+ [ powerpc-apple-darwin = sparc-sun-solaris ]
+ make
[ -r "/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src/config.in" ] || ( cd /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3 && autoheader )
cd lib && make all                          \
  CC='gcc -std=gnu99' CFLAGS='-g3 -O2' CPPFLAGS='-I/opt/exp/gnu/include' \
  LDFLAGS='-L/opt/exp/gnu/libb -L/usr/X11R6/lib' MAKE='make'
rm -f alloca.h-t alloca.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  cat /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/alloca.in.h; \
} > alloca.h-t && \
mv -f alloca.h-t alloca.h
rm -f execinfo.h-t execinfo.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  cat /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/execinfo.in.h; \
} > execinfo.h-t && \
mv execinfo.h-t execinfo.h
rm -f getopt.h-t getopt.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''HAVE_GETOPT_H''@|1|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_GETOPT_H''@|<getopt.h>|g' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/getopt.in.h; \
} > getopt.h-t && \
mv -f getopt.h-t getopt.h
rm -f inttypes.h-t inttypes.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's/@''HAVE_INTTYPES_H''@/1/g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_INTTYPES_H''@|<inttypes.h>|g' \
      -e 's/@''PRI_MACROS_BROKEN''@/0/g' \
      -e 's/@''APPLE_UNIVERSAL_BUILD''@/0/g' \
      -e 's/@''HAVE_LONG_LONG_INT''@/1/g' \
      -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/1/g' \
      -e 's/@''PRIPTR_PREFIX''@/__PRIPTR_PREFIX/g' \
      -e 's/@''GNULIB_IMAXABS''@/0/g' \
      -e 's/@''GNULIB_IMAXDIV''@/0/g' \
      -e 's/@''GNULIB_STRTOIMAX''@/1/g' \
      -e 's/@''GNULIB_STRTOUMAX''@/1/g' \
      -e 's/@''HAVE_DECL_IMAXABS''@/1/g' \
      -e 's/@''HAVE_DECL_IMAXDIV''@/1/g' \
      -e 's/@''HAVE_DECL_STRTOIMAX''@/1/g' \
      -e 's/@''HAVE_DECL_STRTOUMAX''@/1/g' \
      -e 's/@''REPLACE_STRTOIMAX''@/0/g' \
      -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/1/g' \
      -e 's/@''INT64_MAX_EQ_LONG_MAX''@/defined _LP64/g' \
      -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/1/g' \
      -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/defined _LP64/g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/inttypes.in.h; \
} > inttypes.h-t && \
mv inttypes.h-t inttypes.h
rm -f signal.h-t signal.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_SIGNAL_H''@|<signal.h>|g' \
      -e 's|@''GNULIB_PTHREAD_SIGMASK''@|1|g' \
      -e 's|@''GNULIB_RAISE''@|0|g' \
      -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/0/g' \
      -e 's/@''GNULIB_SIGPROCMASK''@/0/g' \
      -e 's/@''GNULIB_SIGACTION''@/0/g' \
      -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|1|g' \
      -e 's|@''HAVE_PTHREAD_SIGMASK''@|1|g' \
      -e 's|@''HAVE_RAISE''@|1|g' \
      -e 's|@''HAVE_SIGSET_T''@|1|g' \
      -e 's|@''HAVE_SIGINFO_T''@|1|g' \
      -e 's|@''HAVE_SIGACTION''@|1|g' \
      -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|1|g' \
      -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|1|g' \
      -e 's|@''HAVE_SIGHANDLER_T''@|0|g' \
      -e 's|@''REPLACE_PTHREAD_SIGMASK''@|1|g' \
      -e 's|@''REPLACE_RAISE''@|0|g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/signal.in.h; \
} > signal.h-t && \
mv signal.h-t signal.h
rm -f stdalign.h-t stdalign.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  cat /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/stdalign.in.h; \
} > stdalign.h-t && \
mv stdalign.h-t stdalign.h
rm -f stdint.h-t stdint.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's/@''HAVE_STDINT_H''@/1/g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_STDINT_H''@|<stdint.h>|g' \
      -e 's/@''HAVE_SYS_TYPES_H''@/1/g' \
      -e 's/@''HAVE_INTTYPES_H''@/1/g' \
      -e 's/@''HAVE_SYS_INTTYPES_H''@/0/g' \
      -e 's/@''HAVE_SYS_BITYPES_H''@/0/g' \
      -e 's/@''HAVE_WCHAR_H''@/1/g' \
      -e 's/@''HAVE_LONG_LONG_INT''@/1/g' \
      -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/1/g' \
      -e 's/@''APPLE_UNIVERSAL_BUILD''@/0/g' \
      -e 's/@''BITSIZEOF_PTRDIFF_T''@/32/g' \
      -e 's/@''PTRDIFF_T_SUFFIX''@//g' \
      -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/32/g' \
      -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/1/g' \
      -e 's/@''SIG_ATOMIC_T_SUFFIX''@//g' \
      -e 's/@''BITSIZEOF_SIZE_T''@/32/g' \
      -e 's/@''SIZE_T_SUFFIX''@/ul/g' \
      -e 's/@''BITSIZEOF_WCHAR_T''@/32/g' \
      -e 's/@''HAVE_SIGNED_WCHAR_T''@/1/g' \
      -e 's/@''WCHAR_T_SUFFIX''@//g' \
      -e 's/@''BITSIZEOF_WINT_T''@/32/g' \
      -e 's/@''HAVE_SIGNED_WINT_T''@/1/g' \
      -e 's/@''WINT_T_SUFFIX''@//g' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/stdint.in.h; \
} > stdint.h-t && \
mv stdint.h-t stdint.h
rm -f stdio.h-t stdio.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_STDIO_H''@|<stdio.h>|g' \
      -e 's/@''GNULIB_DPRINTF''@/0/g' \
      -e 's/@''GNULIB_FCLOSE''@/0/g' \
      -e 's/@''GNULIB_FDOPEN''@/0/g' \
      -e 's/@''GNULIB_FFLUSH''@/0/g' \
      -e 's/@''GNULIB_FGETC''@/1/g' \
      -e 's/@''GNULIB_FGETS''@/1/g' \
      -e 's/@''GNULIB_FOPEN''@/0/g' \
      -e 's/@''GNULIB_FPRINTF''@/1/g' \
      -e 's/@''GNULIB_FPRINTF_POSIX''@/0/g' \
      -e 's/@''GNULIB_FPURGE''@/0/g' \
      -e 's/@''GNULIB_FPUTC''@/1/g' \
      -e 's/@''GNULIB_FPUTS''@/1/g' \
      -e 's/@''GNULIB_FREAD''@/1/g' \
      -e 's/@''GNULIB_FREOPEN''@/0/g' \
      -e 's/@''GNULIB_FSCANF''@/1/g' \
      -e 's/@''GNULIB_FSEEK''@/0/g' \
      -e 's/@''GNULIB_FSEEKO''@/0/g' \
      -e 's/@''GNULIB_FTELL''@/0/g' \
      -e 's/@''GNULIB_FTELLO''@/0/g' \
      -e 's/@''GNULIB_FWRITE''@/1/g' \
      -e 's/@''GNULIB_GETC''@/1/g' \
      -e 's/@''GNULIB_GETCHAR''@/1/g' \
      -e 's/@''GNULIB_GETDELIM''@/0/g' \
      -e 's/@''GNULIB_GETLINE''@/0/g' \
      -e 's/@''GNULIB_OBSTACK_PRINTF''@/0/g' \
      -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/0/g' \
      -e 's/@''GNULIB_PCLOSE''@/0/g' \
      -e 's/@''GNULIB_PERROR''@/0/g' \
      -e 's/@''GNULIB_POPEN''@/0/g' \
      -e 's/@''GNULIB_PRINTF''@/1/g' \
      -e 's/@''GNULIB_PRINTF_POSIX''@/0/g' \
      -e 's/@''GNULIB_PUTC''@/1/g' \
      -e 's/@''GNULIB_PUTCHAR''@/1/g' \
      -e 's/@''GNULIB_PUTS''@/1/g' \
      -e 's/@''GNULIB_REMOVE''@/0/g' \
      -e 's/@''GNULIB_RENAME''@/0/g' \
      -e 's/@''GNULIB_RENAMEAT''@/0/g' \
      -e 's/@''GNULIB_SCANF''@/1/g' \
      -e 's/@''GNULIB_SNPRINTF''@/0/g' \
      -e 's/@''GNULIB_SPRINTF_POSIX''@/0/g' \
      -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/0/g' \
      -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/0/g' \
      -e 's/@''GNULIB_TMPFILE''@/0/g' \
      -e 's/@''GNULIB_VASPRINTF''@/0/g' \
      -e 's/@''GNULIB_VDPRINTF''@/0/g' \
      -e 's/@''GNULIB_VFPRINTF''@/1/g' \
      -e 's/@''GNULIB_VFPRINTF_POSIX''@/0/g' \
      -e 's/@''GNULIB_VFSCANF''@/0/g' \
      -e 's/@''GNULIB_VSCANF''@/0/g' \
      -e 's/@''GNULIB_VPRINTF''@/1/g' \
      -e 's/@''GNULIB_VPRINTF_POSIX''@/0/g' \
      -e 's/@''GNULIB_VSNPRINTF''@/0/g' \
      -e 's/@''GNULIB_VSPRINTF_POSIX''@/0/g' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/stdio.in.h | \
  sed -e 's|@''HAVE_DECL_FPURGE''@|1|g' \
      -e 's|@''HAVE_DECL_FSEEKO''@|1|g' \
      -e 's|@''HAVE_DECL_FTELLO''@|1|g' \
      -e 's|@''HAVE_DECL_GETDELIM''@|1|g' \
      -e 's|@''HAVE_DECL_GETLINE''@|1|g' \
      -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|1|g' \
      -e 's|@''HAVE_DECL_SNPRINTF''@|1|g' \
      -e 's|@''HAVE_DECL_VSNPRINTF''@|1|g' \
      -e 's|@''HAVE_DPRINTF''@|1|g' \
      -e 's|@''HAVE_FSEEKO''@|1|g' \
      -e 's|@''HAVE_FTELLO''@|1|g' \
      -e 's|@''HAVE_PCLOSE''@|1|g' \
      -e 's|@''HAVE_POPEN''@|1|g' \
      -e 's|@''HAVE_RENAMEAT''@|1|g' \
      -e 's|@''HAVE_VASPRINTF''@|1|g' \
      -e 's|@''HAVE_VDPRINTF''@|1|g' \
      -e 's|@''REPLACE_DPRINTF''@|0|g' \
      -e 's|@''REPLACE_FCLOSE''@|0|g' \
      -e 's|@''REPLACE_FDOPEN''@|0|g' \
      -e 's|@''REPLACE_FFLUSH''@|0|g' \
      -e 's|@''REPLACE_FOPEN''@|0|g' \
      -e 's|@''REPLACE_FPRINTF''@|0|g' \
      -e 's|@''REPLACE_FPURGE''@|0|g' \
      -e 's|@''REPLACE_FREOPEN''@|0|g' \
      -e 's|@''REPLACE_FSEEK''@|0|g' \
      -e 's|@''REPLACE_FSEEKO''@|0|g' \
      -e 's|@''REPLACE_FTELL''@|0|g' \
      -e 's|@''REPLACE_FTELLO''@|0|g' \
      -e 's|@''REPLACE_GETDELIM''@|0|g' \
      -e 's|@''REPLACE_GETLINE''@|0|g' \
      -e 's|@''REPLACE_OBSTACK_PRINTF''@|0|g' \
      -e 's|@''REPLACE_PERROR''@|0|g' \
      -e 's|@''REPLACE_POPEN''@|0|g' \
      -e 's|@''REPLACE_PRINTF''@|0|g' \
      -e 's|@''REPLACE_REMOVE''@|0|g' \
      -e 's|@''REPLACE_RENAME''@|0|g' \
      -e 's|@''REPLACE_RENAMEAT''@|0|g' \
      -e 's|@''REPLACE_SNPRINTF''@|0|g' \
      -e 's|@''REPLACE_SPRINTF''@|0|g' \
      -e 's|@''REPLACE_STDIO_READ_FUNCS''@|0|g' \
      -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|0|g' \
      -e 's|@''REPLACE_TMPFILE''@|0|g' \
      -e 's|@''REPLACE_VASPRINTF''@|0|g' \
      -e 's|@''REPLACE_VDPRINTF''@|0|g' \
      -e 's|@''REPLACE_VFPRINTF''@|0|g' \
      -e 's|@''REPLACE_VPRINTF''@|0|g' \
      -e 's|@''REPLACE_VSNPRINTF''@|0|g' \
      -e 's|@''REPLACE_VSPRINTF''@|0|g' \
      -e 's|@''ASM_SYMBOL_PREFIX''@||g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h'; \
} > stdio.h-t && \
mv stdio.h-t stdio.h
rm -f stdlib.h-t stdlib.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_STDLIB_H''@|<stdlib.h>|g' \
      -e 's/@''GNULIB__EXIT''@/0/g' \
      -e 's/@''GNULIB_ATOLL''@/0/g' \
      -e 's/@''GNULIB_CALLOC_POSIX''@/0/g' \
      -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/0/g' \
      -e 's/@''GNULIB_GETLOADAVG''@/1/g' \
      -e 's/@''GNULIB_GETSUBOPT''@/0/g' \
      -e 's/@''GNULIB_GRANTPT''@/0/g' \
      -e 's/@''GNULIB_MALLOC_POSIX''@/0/g' \
      -e 's/@''GNULIB_MBTOWC''@/0/g' \
      -e 's/@''GNULIB_MKDTEMP''@/0/g' \
      -e 's/@''GNULIB_MKOSTEMP''@/0/g' \
      -e 's/@''GNULIB_MKOSTEMPS''@/0/g' \
      -e 's/@''GNULIB_MKSTEMP''@/0/g' \
      -e 's/@''GNULIB_MKSTEMPS''@/0/g' \
      -e 's/@''GNULIB_POSIX_OPENPT''@/0/g' \
      -e 's/@''GNULIB_PTSNAME''@/0/g' \
      -e 's/@''GNULIB_PTSNAME_R''@/0/g' \
      -e 's/@''GNULIB_PUTENV''@/0/g' \
      -e 's/@''GNULIB_RANDOM''@/0/g' \
      -e 's/@''GNULIB_RANDOM_R''@/0/g' \
      -e 's/@''GNULIB_REALLOC_POSIX''@/0/g' \
      -e 's/@''GNULIB_REALPATH''@/0/g' \
      -e 's/@''GNULIB_RPMATCH''@/0/g' \
      -e 's/@''GNULIB_SETENV''@/0/g' \
      -e 's/@''GNULIB_STRTOD''@/0/g' \
      -e 's/@''GNULIB_STRTOLL''@/0/g' \
      -e 's/@''GNULIB_STRTOULL''@/0/g' \
      -e 's/@''GNULIB_SYSTEM_POSIX''@/0/g' \
      -e 's/@''GNULIB_UNLOCKPT''@/0/g' \
      -e 's/@''GNULIB_UNSETENV''@/0/g' \
      -e 's/@''GNULIB_WCTOMB''@/0/g' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/stdlib.in.h | \
  sed -e 's|@''HAVE__EXIT''@|1|g' \
      -e 's|@''HAVE_ATOLL''@|1|g' \
      -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|1|g' \
      -e 's|@''HAVE_DECL_GETLOADAVG''@|1|g' \
      -e 's|@''HAVE_GETSUBOPT''@|1|g' \
      -e 's|@''HAVE_GRANTPT''@|1|g' \
      -e 's|@''HAVE_MKDTEMP''@|1|g' \
      -e 's|@''HAVE_MKOSTEMP''@|1|g' \
      -e 's|@''HAVE_MKOSTEMPS''@|1|g' \
      -e 's|@''HAVE_MKSTEMP''@|1|g' \
      -e 's|@''HAVE_MKSTEMPS''@|1|g' \
      -e 's|@''HAVE_POSIX_OPENPT''@|1|g' \
      -e 's|@''HAVE_PTSNAME''@|1|g' \
      -e 's|@''HAVE_PTSNAME_R''@|1|g' \
      -e 's|@''HAVE_RANDOM''@|1|g' \
      -e 's|@''HAVE_RANDOM_H''@|1|g' \
      -e 's|@''HAVE_RANDOM_R''@|1|g' \
      -e 's|@''HAVE_REALPATH''@|1|g' \
      -e 's|@''HAVE_RPMATCH''@|1|g' \
      -e 's|@''HAVE_DECL_SETENV''@|1|g' \
      -e 's|@''HAVE_STRTOD''@|1|g' \
      -e 's|@''HAVE_STRTOLL''@|1|g' \
      -e 's|@''HAVE_STRTOULL''@|1|g' \
      -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|1|g' \
      -e 's|@''HAVE_SYS_LOADAVG_H''@|0|g' \
      -e 's|@''HAVE_UNLOCKPT''@|1|g' \
      -e 's|@''HAVE_DECL_UNSETENV''@|1|g' \
      -e 's|@''REPLACE_CALLOC''@|0|g' \
      -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|0|g' \
      -e 's|@''REPLACE_MALLOC''@|0|g' \
      -e 's|@''REPLACE_MBTOWC''@|0|g' \
      -e 's|@''REPLACE_MKSTEMP''@|0|g' \
      -e 's|@''REPLACE_PTSNAME''@|0|g' \
      -e 's|@''REPLACE_PTSNAME_R''@|0|g' \
      -e 's|@''REPLACE_PUTENV''@|0|g' \
      -e 's|@''REPLACE_RANDOM_R''@|0|g' \
      -e 's|@''REPLACE_REALLOC''@|0|g' \
      -e 's|@''REPLACE_REALPATH''@|0|g' \
      -e 's|@''REPLACE_SETENV''@|0|g' \
      -e 's|@''REPLACE_STRTOD''@|0|g' \
      -e 's|@''REPLACE_UNSETENV''@|0|g' \
      -e 's|@''REPLACE_WCTOMB''@|0|g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _Noreturn/r /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/build-aux/snippet/_Noreturn.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h'; \
} > stdlib.h-t && \
mv stdlib.h-t stdlib.h
/opt/exp/gnu/bin/mkdir -p sys
rm -f sys/select.h-t sys/select.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_SYS_SELECT_H''@|<sys/select.h>|g' \
      -e 's|@''HAVE_SYS_SELECT_H''@|1|g' \
      -e 's/@''GNULIB_PSELECT''@/1/g' \
      -e 's/@''GNULIB_SELECT''@/0/g' \
      -e 's|@''HAVE_WINSOCK2_H''@|0|g' \
      -e 's|@''HAVE_PSELECT''@|1|g' \
      -e 's|@''REPLACE_PSELECT''@|1|g' \
      -e 's|@''REPLACE_SELECT''@|0|g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/sys_select.in.h; \
} > sys/select.h-t && \
mv sys/select.h-t sys/select.h
/opt/exp/gnu/bin/mkdir -p sys
rm -f sys/stat.h-t sys/stat.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_SYS_STAT_H''@|<sys/stat.h>|g' \
      -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|0|g' \
      -e 's/@''GNULIB_FCHMODAT''@/0/g' \
      -e 's/@''GNULIB_FSTAT''@/0/g' \
      -e 's/@''GNULIB_FSTATAT''@/0/g' \
      -e 's/@''GNULIB_FUTIMENS''@/0/g' \
      -e 's/@''GNULIB_LCHMOD''@/0/g' \
      -e 's/@''GNULIB_LSTAT''@/1/g' \
      -e 's/@''GNULIB_MKDIRAT''@/0/g' \
      -e 's/@''GNULIB_MKFIFO''@/0/g' \
      -e 's/@''GNULIB_MKFIFOAT''@/0/g' \
      -e 's/@''GNULIB_MKNOD''@/0/g' \
      -e 's/@''GNULIB_MKNODAT''@/0/g' \
      -e 's/@''GNULIB_STAT''@/1/g' \
      -e 's/@''GNULIB_UTIMENSAT''@/0/g' \
      -e 's|@''HAVE_FCHMODAT''@|1|g' \
      -e 's|@''HAVE_FSTATAT''@|1|g' \
      -e 's|@''HAVE_FUTIMENS''@|1|g' \
      -e 's|@''HAVE_LCHMOD''@|1|g' \
      -e 's|@''HAVE_LSTAT''@|1|g' \
      -e 's|@''HAVE_MKDIRAT''@|1|g' \
      -e 's|@''HAVE_MKFIFO''@|1|g' \
      -e 's|@''HAVE_MKFIFOAT''@|1|g' \
      -e 's|@''HAVE_MKNOD''@|1|g' \
      -e 's|@''HAVE_MKNODAT''@|1|g' \
      -e 's|@''HAVE_UTIMENSAT''@|1|g' \
      -e 's|@''REPLACE_FSTAT''@|0|g' \
      -e 's|@''REPLACE_FSTATAT''@|0|g' \
      -e 's|@''REPLACE_FUTIMENS''@|0|g' \
      -e 's|@''REPLACE_LSTAT''@|1|g' \
      -e 's|@''REPLACE_MKDIR''@|0|g' \
      -e 's|@''REPLACE_MKFIFO''@|0|g' \
      -e 's|@''REPLACE_MKNOD''@|0|g' \
      -e 's|@''REPLACE_STAT''@|1|g' \
      -e 's|@''REPLACE_UTIMENSAT''@|0|g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/sys_stat.in.h; \
} > sys/stat.h-t && \
mv sys/stat.h-t sys/stat.h
/opt/exp/gnu/bin/mkdir -p sys
rm -f sys/time.h-t sys/time.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's/@''HAVE_SYS_TIME_H''@/1/g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_SYS_TIME_H''@|<sys/time.h>|g' \
      -e 's/@''GNULIB_GETTIMEOFDAY''@/1/g' \
      -e 's|@''HAVE_WINSOCK2_H''@|0|g' \
      -e 's/@''HAVE_GETTIMEOFDAY''@/1/g' \
      -e 's/@''HAVE_STRUCT_TIMEVAL''@/1/g' \
      -e 's/@''REPLACE_GETTIMEOFDAY''@/0/g' \
      -e 's/@''REPLACE_STRUCT_TIMEVAL''@/0/g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/sys_time.in.h; \
} > sys/time.h-t && \
mv sys/time.h-t sys/time.h
rm -f time.h-t time.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_TIME_H''@|<time.h>|g' \
      -e 's/@''GNULIB_MKTIME''@/1/g' \
      -e 's/@''GNULIB_NANOSLEEP''@/0/g' \
      -e 's/@''GNULIB_STRPTIME''@/0/g' \
      -e 's/@''GNULIB_TIMEGM''@/0/g' \
      -e 's/@''GNULIB_TIME_R''@/1/g' \
      -e 's|@''HAVE_DECL_LOCALTIME_R''@|1|g' \
      -e 's|@''HAVE_NANOSLEEP''@|1|g' \
      -e 's|@''HAVE_STRPTIME''@|1|g' \
      -e 's|@''HAVE_TIMEGM''@|1|g' \
      -e 's|@''REPLACE_LOCALTIME_R''@|0|g' \
      -e 's|@''REPLACE_MKTIME''@|1|g' \
      -e 's|@''REPLACE_NANOSLEEP''@|GNULIB_PORTCHECK|g' \
      -e 's|@''REPLACE_TIMEGM''@|GNULIB_PORTCHECK|g' \
      -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|0|g' \
      -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|0|g' \
      -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|1|g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/time.in.h; \
} > time.h-t && \
mv time.h-t time.h
rm -f unistd.h-t unistd.h && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
      -e 's|@''HAVE_UNISTD_H''@|1|g' \
      -e 's|@''INCLUDE_NEXT''@|include_next|g' \
      -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
      -e 's|@''PRAGMA_COLUMNS''@||g' \
      -e 's|@''NEXT_UNISTD_H''@|<unistd.h>|g' \
      -e 's|@''WINDOWS_64_BIT_OFF_T''@|0|g' \
      -e 's/@''GNULIB_CHDIR''@/0/g' \
      -e 's/@''GNULIB_CHOWN''@/0/g' \
      -e 's/@''GNULIB_CLOSE''@/0/g' \
      -e 's/@''GNULIB_DUP''@/0/g' \
      -e 's/@''GNULIB_DUP2''@/1/g' \
      -e 's/@''GNULIB_DUP3''@/0/g' \
      -e 's/@''GNULIB_ENVIRON''@/1/g' \
      -e 's/@''GNULIB_EUIDACCESS''@/0/g' \
      -e 's/@''GNULIB_FACCESSAT''@/0/g' \
      -e 's/@''GNULIB_FCHDIR''@/0/g' \
      -e 's/@''GNULIB_FCHOWNAT''@/0/g' \
      -e 's/@''GNULIB_FDATASYNC''@/0/g' \
      -e 's/@''GNULIB_FSYNC''@/0/g' \
      -e 's/@''GNULIB_FTRUNCATE''@/0/g' \
      -e 's/@''GNULIB_GETCWD''@/0/g' \
      -e 's/@''GNULIB_GETDOMAINNAME''@/0/g' \
      -e 's/@''GNULIB_GETDTABLESIZE''@/0/g' \
      -e 's/@''GNULIB_GETGROUPS''@/0/g' \
      -e 's/@''GNULIB_GETHOSTNAME''@/0/g' \
      -e 's/@''GNULIB_GETLOGIN''@/0/g' \
      -e 's/@''GNULIB_GETLOGIN_R''@/0/g' \
      -e 's/@''GNULIB_GETPAGESIZE''@/0/g' \
      -e 's/@''GNULIB_GETUSERSHELL''@/0/g' \
      -e 's/@''GNULIB_GROUP_MEMBER''@/0/g' \
      -e 's/@''GNULIB_ISATTY''@/0/g' \
      -e 's/@''GNULIB_LCHOWN''@/0/g' \
      -e 's/@''GNULIB_LINK''@/0/g' \
      -e 's/@''GNULIB_LINKAT''@/0/g' \
      -e 's/@''GNULIB_LSEEK''@/0/g' \
      -e 's/@''GNULIB_PIPE''@/0/g' \
      -e 's/@''GNULIB_PIPE2''@/0/g' \
      -e 's/@''GNULIB_PREAD''@/0/g' \
      -e 's/@''GNULIB_PWRITE''@/0/g' \
      -e 's/@''GNULIB_READ''@/0/g' \
      -e 's/@''GNULIB_READLINK''@/1/g' \
      -e 's/@''GNULIB_READLINKAT''@/0/g' \
      -e 's/@''GNULIB_RMDIR''@/0/g' \
      -e 's/@''GNULIB_SETHOSTNAME''@/0/g' \
      -e 's/@''GNULIB_SLEEP''@/0/g' \
      -e 's/@''GNULIB_SYMLINK''@/1/g' \
      -e 's/@''GNULIB_SYMLINKAT''@/0/g' \
      -e 's/@''GNULIB_TTYNAME_R''@/0/g' \
      -e 's/@''GNULIB_UNISTD_H_GETOPT''@/01/g' \
      -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/0/g' \
      -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/0/g' \
      -e 's/@''GNULIB_UNLINK''@/0/g' \
      -e 's/@''GNULIB_UNLINKAT''@/0/g' \
      -e 's/@''GNULIB_USLEEP''@/0/g' \
      -e 's/@''GNULIB_WRITE''@/0/g' \
      < /Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib/unistd.in.h | \
  sed -e 's|@''HAVE_CHOWN''@|1|g' \
      -e 's|@''HAVE_DUP2''@|1|g' \
      -e 's|@''HAVE_DUP3''@|1|g' \
      -e 's|@''HAVE_EUIDACCESS''@|1|g' \
      -e 's|@''HAVE_FACCESSAT''@|1|g' \
      -e 's|@''HAVE_FCHDIR''@|1|g' \
      -e 's|@''HAVE_FCHOWNAT''@|1|g' \
      -e 's|@''HAVE_FDATASYNC''@|1|g' \
      -e 's|@''HAVE_FSYNC''@|1|g' \
      -e 's|@''HAVE_FTRUNCATE''@|1|g' \
      -e 's|@''HAVE_GETDTABLESIZE''@|1|g' \
      -e 's|@''HAVE_GETGROUPS''@|1|g' \
      -e 's|@''HAVE_GETHOSTNAME''@|1|g' \
      -e 's|@''HAVE_GETLOGIN''@|1|g' \
      -e 's|@''HAVE_GETPAGESIZE''@|1|g' \
      -e 's|@''HAVE_GROUP_MEMBER''@|1|g' \
      -e 's|@''HAVE_LCHOWN''@|1|g' \
      -e 's|@''HAVE_LINK''@|1|g' \
      -e 's|@''HAVE_LINKAT''@|1|g' \
      -e 's|@''HAVE_PIPE''@|1|g' \
      -e 's|@''HAVE_PIPE2''@|1|g' \
      -e 's|@''HAVE_PREAD''@|1|g' \
      -e 's|@''HAVE_PWRITE''@|1|g' \
      -e 's|@''HAVE_READLINK''@|1|g' \
      -e 's|@''HAVE_READLINKAT''@|1|g' \
      -e 's|@''HAVE_SETHOSTNAME''@|1|g' \
      -e 's|@''HAVE_SLEEP''@|1|g' \
      -e 's|@''HAVE_SYMLINK''@|1|g' \
      -e 's|@''HAVE_SYMLINKAT''@|1|g' \
      -e 's|@''HAVE_UNLINKAT''@|1|g' \
      -e 's|@''HAVE_USLEEP''@|1|g' \
      -e 's|@''HAVE_DECL_ENVIRON''@|0|g' \
      -e 's|@''HAVE_DECL_FCHDIR''@|1|g' \
      -e 's|@''HAVE_DECL_FDATASYNC''@|1|g' \
      -e 's|@''HAVE_DECL_GETDOMAINNAME''@|1|g' \
      -e 's|@''HAVE_DECL_GETLOGIN_R''@|1|g' \
      -e 's|@''HAVE_DECL_GETPAGESIZE''@|1|g' \
      -e 's|@''HAVE_DECL_GETUSERSHELL''@|1|g' \
      -e 's|@''HAVE_DECL_SETHOSTNAME''@|1|g' \
      -e 's|@''HAVE_DECL_TTYNAME_R''@|1|g' \
      -e 's|@''HAVE_OS_H''@|0|g' \
      -e 's|@''HAVE_SYS_PARAM_H''@|0|g' \
  | \
  sed -e 's|@''REPLACE_CHOWN''@|0|g' \
      -e 's|@''REPLACE_CLOSE''@|0|g' \
      -e 's|@''REPLACE_DUP''@|0|g' \
      -e 's|@''REPLACE_DUP2''@|0|g' \
      -e 's|@''REPLACE_FCHOWNAT''@|0|g' \
      -e 's|@''REPLACE_FTRUNCATE''@|0|g' \
      -e 's|@''REPLACE_GETCWD''@|0|g' \
      -e 's|@''REPLACE_GETDOMAINNAME''@|0|g' \
      -e 's|@''REPLACE_GETLOGIN_R''@|0|g' \
      -e 's|@''REPLACE_GETGROUPS''@|0|g' \
      -e 's|@''REPLACE_GETPAGESIZE''@|0|g' \
      -e 's|@''REPLACE_ISATTY''@|0|g' \
      -e 's|@''REPLACE_LCHOWN''@|0|g' \
      -e 's|@''REPLACE_LINK''@|0|g' \
      -e 's|@''REPLACE_LINKAT''@|0|g' \
      -e 's|@''REPLACE_LSEEK''@|0|g' \
      -e 's|@''REPLACE_PREAD''@|0|g' \
      -e 's|@''REPLACE_PWRITE''@|0|g' \
      -e 's|@''REPLACE_READ''@|0|g' \
      -e 's|@''REPLACE_READLINK''@|1|g' \
      -e 's|@''REPLACE_RMDIR''@|0|g' \
      -e 's|@''REPLACE_SLEEP''@|0|g' \
      -e 's|@''REPLACE_SYMLINK''@|1|g' \
      -e 's|@''REPLACE_TTYNAME_R''@|0|g' \
      -e 's|@''REPLACE_UNLINK''@|0|g' \
      -e 's|@''REPLACE_UNLINKAT''@|0|g' \
      -e 's|@''REPLACE_USLEEP''@|0|g' \
      -e 's|@''REPLACE_WRITE''@|0|g' \
      -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|0|g' \
      -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|0|g' \
      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
      -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h'; \
} > unistd.h-t && \
mv unistd.h-t unistd.h
make  all-am
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT allocator.o -MD -MP -MF .deps/allocator.Tpo -c -o allocator.o allocator.c
mv -f .deps/allocator.Tpo .deps/allocator.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c
mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT c-strcasecmp.o -MD -MP -MF .deps/c-strcasecmp.Tpo -c -o c-strcasecmp.o c-strcasecmp.c
mv -f .deps/c-strcasecmp.Tpo .deps/c-strcasecmp.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT c-strncasecmp.o -MD -MP -MF .deps/c-strncasecmp.Tpo -c -o c-strncasecmp.o c-strncasecmp.c
mv -f .deps/c-strncasecmp.Tpo .deps/c-strncasecmp.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT careadlinkat.o -MD -MP -MF .deps/careadlinkat.Tpo -c -o careadlinkat.o careadlinkat.c
In file included from unistd.h:43,
                 from careadlinkat.h:24,
                 from careadlinkat.c:23:
/usr/include/unistd.h:240: error: conflicting types for `rpl_readlink'
unistd.h:1559: error: previous declaration of `rpl_readlink'
make[4]: *** [careadlinkat.o] Error 1
make[3]: *** [all] Error 2
make[2]: *** [lib] Error 2

[-- Attachment #3: Type: text/plain, Size: 1012 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                                            |
 -------------------------------------------------------------------
---
You can only be young once. But you can always be immature. -- Dave Barry

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-20 14:58 bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin Klaus Zeitler
@ 2014-02-21  8:54 ` Paul Eggert
  2014-02-21  9:16   ` Jan Djärv
  2014-02-24 15:37   ` Klaus Zeitler
  0 siblings, 2 replies; 15+ messages in thread
From: Paul Eggert @ 2014-02-21  8:54 UTC (permalink / raw)
  To: Klaus.Zeitler; +Cc: 16825

Emacs uses a unistd.h wrapper to work around porting issues to various 
platforms.  One issue is that older Mac OS X releases have a non-POSIX 
API for 'readlink'.

Just to confirm, are you running Mac OS X 10.3.9 ("Panther")?

Could you please the output of gcc -E on that file?  Something like this:

gcc -E -std=gnu99 -DHAVE_CONFIG_H -I. \
-I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib \
-I../src \
-I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src \
-I/opt/exp/gnu/include   -g3 -O2 careadlinkat.c





^ permalink raw reply	[flat|nested] 15+ messages in thread

* 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-21 16:57     ` Glenn Morris
  2014-02-24 15:37   ` Klaus Zeitler
  1 sibling, 1 reply; 15+ messages in thread
From: Jan Djärv @ 2014-02-21  9:16 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Klaus.Zeitler@alcatel-lucent.com, 16825@debbugs.gnu.org

Hi. 

> 21 feb 2014 kl. 09:54 skrev Paul Eggert <eggert@cs.ucla.edu>:
> 
> Emacs uses a unistd.h wrapper to work around porting issues to various platforms.  One issue is that older Mac OS X releases have a non-POSIX API for 'readlink'.
> 
> Just to confirm, are you running Mac OS X 10.3.9 ("Panther")?
> 

Emacs trunk refuses to build on anything older than 10.4, so why bother?

    Jan D. 

> Could you please the output of gcc -E on that file?  Something like this:
> 
> gcc -E -std=gnu99 -DHAVE_CONFIG_H -I. \
> -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib \
> -I../src \
> -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src \
> -I/opt/exp/gnu/include   -g3 -O2 careadlinkat.c
> 
> 





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-21  9:16   ` Jan Djärv
@ 2014-02-21 16:57     ` Glenn Morris
  2014-02-21 22:41       ` Jan Djärv
  0 siblings, 1 reply; 15+ messages in thread
From: Glenn Morris @ 2014-02-21 16:57 UTC (permalink / raw)
  To: Jan Djärv
  Cc: Klaus.Zeitler@alcatel-lucent.com, Paul Eggert,
	16825@debbugs.gnu.org

Jan Djärv wrote:

>> Just to confirm, are you running Mac OS X 10.3.9 ("Panther")?
>
> Emacs trunk refuses to build on anything older than 10.4, so why bother?

So does 24.3, if I read configure.ac correctly, but only for NS builds.

But looks like the OP's doing an X11 build, not an NS build.

Should the X11 build also refuse to run on old OS X?

(Should NS be the default on OS X?)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-21 16:57     ` Glenn Morris
@ 2014-02-21 22:41       ` Jan Djärv
  0 siblings, 0 replies; 15+ messages in thread
From: Jan Djärv @ 2014-02-21 22:41 UTC (permalink / raw)
  To: Glenn Morris
  Cc: Klaus.Zeitler@alcatel-lucent.com, Paul Eggert,
	16825@debbugs.gnu.org

Hi. 

> 21 feb 2014 kl. 17:57 skrev Glenn Morris <rgm@gnu.org>:
> 
> Jan Djärv wrote:
> 
>>> Just to confirm, are you running Mac OS X 10.3.9 ("Panther")?
>> 
>> Emacs trunk refuses to build on anything older than 10.4, so why bother?
> 
> So does 24.3, if I read configure.ac correctly, but only for NS builds.
> 
> But looks like the OP's doing an X11 build, not an NS build.
> 
> Should the X11 build also refuse to run on old OS X?
> 

Not if it works. I have no access to OSX < 10.6. 

> (Should NS be the default on OS X?)

I think so.

      Jan D. 




^ permalink raw reply	[flat|nested] 15+ messages in thread

* 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

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-24 15:37   ` Klaus Zeitler
@ 2014-02-24 18:42     ` Paul Eggert
  2014-02-25 10:11       ` Klaus Zeitler
  0 siblings, 1 reply; 15+ messages in thread
From: Paul Eggert @ 2014-02-24 18:42 UTC (permalink / raw)
  To: Klaus.Zeitler; +Cc: 16825

[-- Attachment #1: Type: text/plain, Size: 63 bytes --]

Thanks, can you please try the attached patch for Emacs 24.3?


[-- Attachment #2: darwin.diff --]
[-- Type: text/x-patch, Size: 1038 bytes --]

--- emacs-24.3/lib/unistd.in.h	2012-11-02 00:00:03.000000000 -0700
+++ emacs-24.3-darwin/lib/unistd.in.h	2014-02-24 10:42:15.703125069 -0800
@@ -37,9 +37,23 @@
 /* Normal invocation.  */
 #elif !defined _@GUARD_PREFIX@_UNISTD_H
 
+#ifdef _GL_INCLUDING_UNISTD_H
+/* Special invocation convention:
+   - On Mac OS X 10.3.9 we have a sequence of nested includes
+     <unistd.h> -> <signal.h> -> <pthread.h> -> <unistd.h>
+     In this situation, the functions are not yet declared, therefore we cannot
+     provide the C++ aliases.  */
+
+#@INCLUDE_NEXT@ @NEXT_UNISTD_H@
+
+#else
+/* Normal invocation convention.  */
+
 /* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_UNISTD_H@
+# define _GL_INCLUDING_UNISTD_H
 # @INCLUDE_NEXT@ @NEXT_UNISTD_H@
+# undef _GL_INCLUDING_UNISTD_H
 #endif
 
 /* Get all possible declarations of gethostname().  */
@@ -1532,4 +1546,5 @@ _GL_CXXALIASWARN (write);
 
 
 #endif /* _@GUARD_PREFIX@_UNISTD_H */
+#endif /* _GL_INCLUDING_UNISTD_H */
 #endif /* _@GUARD_PREFIX@_UNISTD_H */

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-24 18:42     ` Paul Eggert
@ 2014-02-25 10:11       ` Klaus Zeitler
  2014-02-25 19:38         ` Paul Eggert
  2014-02-25 19:43         ` Glenn Morris
  0 siblings, 2 replies; 15+ messages in thread
From: Klaus Zeitler @ 2014-02-25 10:11 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 16825

>>>>> "Paul" == Paul Eggert <eggert@cs.ucla.edu> writes:
    Paul> 
    Paul> Thanks, can you please try the attached patch for Emacs 24.3?

yes, that works, I could compile now. But I ran into another problem
when emacs gets dumped:
unexec: not enough room for load commands for new __DATA segments.

Not sure if I should add this to the same bug number, but anyway here goes:

Dumping under the name emacs
--- List of All Regions ---
   address     size prot maxp
         0   0x1000 none none
    0x1000 0x1d8000 r x  rwx 
  0x1d9000 0x1ac000 rw   rwx 
  0x385000  0x54000 rw   rwx 
  0x3d9000 0x546000 r    rwx 
  0x91f000   0x5000 rw   rwx 
  0x924000   0x3000 r x  rwx 
  0x927000   0x1000 rw   rwx 
  0x928000   0x1000 r    rwx 
  0x929000   0xa000 rw   rwx 
  0x933000   0x1000 r    rw  
  0x936000   0x6000 r x  rwx 
  0x93c000   0x1000 rw   rwx 
  0x93d000  0x10000 r    rwx 
  0x94d000   0x7000 r x  rwx 
  0x954000   0x1000 rw   rwx 
  0x955000   0x4000 r    rwx 
  0x95c000  0x35000 r x  rwx 
  0x991000   0x1000 rw   rwx 
  0x992000   0x7000 r    rwx 
  0x999000   0x4000 r x  rwx 
  0x99d000   0x1000 rw   rwx 
  0x99e000   0x2000 r    rwx 
  0x9a0000   0x6000 r x  rwx 
  0x9a6000   0x1000 rw   rwx 
  0x9a7000   0x2000 r    rwx 
  0x9a9000   0xf000 rw   rwx 
  0x9b8000  0x14000 r x  rwx 
  0x9cc000   0x2000 rw   rwx 
  0x9ce000   0x9000 r    rwx 
  0x9d7000   0xe000 r x  rwx 
  0x9e5000   0x1000 rw   rwx 
  0x9e6000   0x4000 r    rwx 
  0x9ea000   0xb000 r x  rwx 
  0x9f5000   0x1000 rw   rwx 
  0x9f6000   0x3000 r    rwx 
  0x9f9000   0x5000 rw   rwx 
  0xa00000 0x105000 rw   rwx 
  0xb05000  0x46000 r x  rwx 
  0xb4b000   0x2000 rw   rwx 
  0xb4d000   0x1000 rw   rwx 
  0xb4e000  0x82000 r    rwx 
  0xbd0000  0x1d000 r x  rwx 
  0xbed000   0x1000 rw   rwx 
  0xbee000   0x5000 r    rwx 
  0xbf3000   0xa000 rw   rwx 
  0xc00000 0x105000 rw   rwx 
  0xd05000  0x24000 r x  rwx 
  0xd29000   0x1000 rw   rwx 
  0xd2a000   0x9000 r    rwx 
  0xd33000  0x1e000 rw   rwx 
  0xd51000  0x1e000 rw   rwx 
  0xd6f000   0x9000 rw   rwx 
  0xd78000  0x35000 r x  rwx 
  0xdad000   0x2000 rw   rwx 
  0xdaf000   0xe000 r    rwx 
  0xdbd000  0x1e000 rw   rwx 
  0xddb000  0x14000 rw   rwx 
  0xdf0000  0x2a000 r x  rwx 
  0xe1a000   0x1000 rw   rwx 
  0xe1b000  0xc0000 r    rwx 
  0xedb000  0xa7000 r x  rwx 
  0xf82000   0x3000 rw   rwx 
  0xf85000  0x1b000 r    rwx 
  0xfa0000  0x35000 r x  rwx 
  0xfd5000   0x1000 rw   rwx 
  0xfd6000   0x7000 r    rwx 
  0xfdd000  0x1e000 rw   rwx 
  0xffb000   0x5000 rw   rwx 
 0x1000000   0x2000 rw   rwx 
 0x1002000 0x806000 rw   rwx 
--- List of Regions to be Dumped ---
   address     size prot maxp
         0   0x1000 none none
    0x1000 0x1d8000 r x  rwx 
  0x1d9000 0x200000 rw   rwx 
  0x3d9000 0x546000 r    rwx 
  0x91f000   0x5000 rw   rwx 
  0x924000   0x3000 r x  rwx 
  0x927000   0x1000 rw   rwx 
  0x928000   0x1000 r    rwx 
  0x929000   0xa000 rw   rwx 
  0x933000   0x1000 r    rw  
  0x936000   0x6000 r x  rwx 
  0x93c000   0x1000 rw   rwx 
  0x93d000  0x10000 r    rwx 
  0x94d000   0x7000 r x  rwx 
  0x954000   0x1000 rw   rwx 
  0x955000   0x4000 r    rwx 
  0x95c000  0x35000 r x  rwx 
  0x991000   0x1000 rw   rwx 
  0x992000   0x7000 r    rwx 
  0x999000   0x4000 r x  rwx 
  0x99d000   0x1000 rw   rwx 
  0x99e000   0x2000 r    rwx 
  0x9a0000   0x6000 r x  rwx 
  0x9a6000   0x1000 rw   rwx 
  0x9a7000   0x2000 r    rwx 
  0x9a9000   0xf000 rw   rwx 
  0x9b8000  0x14000 r x  rwx 
  0x9cc000   0x2000 rw   rwx 
  0x9ce000   0x9000 r    rwx 
  0x9d7000   0xe000 r x  rwx 
  0x9e5000   0x1000 rw   rwx 
  0x9e6000   0x4000 r    rwx 
  0x9ea000   0xb000 r x  rwx 
  0x9f5000   0x1000 rw   rwx 
  0x9f6000   0x3000 r    rwx 
  0x9f9000   0x5000 rw   rwx 
  0xa00000 0x105000 rw   rwx 
  0xb05000  0x46000 r x  rwx 
  0xb4b000   0x3000 rw   rwx 
  0xb4e000  0x82000 r    rwx 
  0xbd0000  0x1d000 r x  rwx 
  0xbed000   0x1000 rw   rwx 
  0xbee000   0x5000 r    rwx 
  0xbf3000   0xa000 rw   rwx 
  0xc00000 0x105000 rw   rwx 
  0xd05000  0x24000 r x  rwx 
  0xd29000   0x1000 rw   rwx 
  0xd2a000   0x9000 r    rwx 
  0xd33000  0x45000 rw   rwx 
  0xd78000  0x35000 r x  rwx 
  0xdad000   0x2000 rw   rwx 
  0xdaf000   0xe000 r    rwx 
  0xdbd000  0x32000 rw   rwx 
  0xdf0000  0x2a000 r x  rwx 
  0xe1a000   0x1000 rw   rwx 
  0xe1b000  0xc0000 r    rwx 
  0xedb000  0xa7000 r x  rwx 
  0xf82000   0x3000 rw   rwx 
  0xf85000  0x1b000 r    rwx 
  0xfa0000  0x35000 r x  rwx 
  0xfd5000   0x1000 rw   rwx 
  0xfd6000   0x7000 r    rwx 
  0xfdd000 0x82b000 rw   rwx 
--- Header Information ---
Magic = 0xfeedface
CPUType = 18
CPUSubType = 0
FileType = 0x2
NCmds = 39
SizeOfCmds = 4444
Flags = 0x00000085
Highest address of load commands in input file: 0x91f000
Lowest offset of all sections in __TEXT segment:   0x1808
--- List of Load Commands in Input File ---
# cmd              cmdsize name                address     size
0 LC_SEGMENT             56 __PAGEZERO                0   0x1000
1 LC_SEGMENT            668 __TEXT               0x1000 0x1d8000
                           __text               0x2808 0x1b70c0
                           __picsymbol_stub   0x1b98c8        0
                           __symbol_stub      0x1b98c8        0
                           __picsymbolstub1   0x1b98c8   0x5880
                           __cstring          0x1bf148  0x1876c
                           __literal4         0x1d78b4     0x20
                           __literal8         0x1d78d8    0x158
                           __const            0x1d7a30    0xaa8
                           __eh_frame         0x1d84d8     0x6c
2 LC_SEGMENT            532 __DATA             0x1d9000 0x200000
                           __data             0x1d9000 0x1a8d68
                           __la_symbol_ptr    0x381d68    0xb10
                           __nl_symbol_ptr    0x382878    0x9bc
                           __dyld             0x383234     0x1c
                           __const            0x383250   0x1c80
                           __bss              0x384ed0  0x50bbc
                           __common           0x3d5a90   0x2e39
3 LC_SEGMENT             56 __LINKEDIT         0x3d9000 0x546000
4 LC_LOAD_DYLINKER       28
5 LC_LOAD_DYLIB          60
6 LC_LOAD_DYLIB          60
7 LC_LOAD_DYLIB          56
8 LC_LOAD_DYLIB          48
9 LC_LOAD_DYLIB          52
10 LC_LOAD_DYLIB          56
11 LC_LOAD_DYLIB          56
12 LC_LOAD_DYLIB         132
13 LC_LOAD_DYLIB         132
14 LC_LOAD_DYLIB          60
15 LC_LOAD_DYLIB         128
16 LC_LOAD_DYLIB         132
17 LC_LOAD_DYLIB         132
18 LC_LOAD_DYLIB         136
19 LC_LOAD_DYLIB         124
20 LC_LOAD_DYLIB         128
21 LC_LOAD_DYLIB          60
22 LC_LOAD_DYLIB          64
23 LC_LOAD_DYLIB         132
24 LC_LOAD_DYLIB         132
25 LC_LOAD_DYLIB         132
26 LC_LOAD_DYLIB         128
27 LC_LOAD_DYLIB         128
28 LC_LOAD_DYLIB          56
29 LC_LOAD_DYLIB          56
30 LC_LOAD_DYLIB          56
31 LC_LOAD_DYLIB          60
32 LC_LOAD_DYLIB          56
33 LC_LOAD_DYLIB         128
34 LC_LOAD_DYLIB         128
35 LC_SYMTAB              24
36 LC_DYSYMTAB            80
37 LC_TWOLEVEL_HINTS      16
38 LC_UNIXTHREAD         176
 0x3600000 (sz:   0x2783/  0x5000)
 0x3500000 (sz:  0x3bf44/0x100000)
 0x5000000 (sz:   0x503e/  0x8000)
 0x4800000 (sz: 0x503c00/0x800000)
  0xffb000 (sz:   0x3fff/  0x5000)
 0x1ff5000 (sz:   0x3fff/  0x5000)
  0xbf8000 (sz:   0x3fff/  0x5000)
  0xff6000 (sz:   0x3fff/  0x5000)
 0x1ff0000 (sz:   0x3fff/  0x5000)
  0xbf3000 (sz:   0x3fff/  0x5000)
  0xff1000 (sz:   0x3fff/  0x5000)
 0x1feb000 (sz:   0x3fff/  0x5000)
  0xfec000 (sz:   0x3fff/  0x5000)
 0x1fe6000 (sz:   0x3fff/  0x5000)
  0xfe7000 (sz:   0x3fff/  0x5000)
 0x1fe1000 (sz:   0x3fff/  0x5000)
  0xfe2000 (sz:   0x3fff/  0x5000)
 0x1fdc000 (sz:   0x3fff/  0x5000)
  0xfdd000 (sz:   0x3fff/  0x5000)
 0x1fd7000 (sz:   0x3fff/  0x5000)
 0x1fca000 (sz:     0x74/  0x9000)
 0x1fc5000 (sz:   0x3fff/  0x5000)
 0x1fc0000 (sz:   0x3fff/  0x5000)
 0x1fbb000 (sz:   0x3fff/  0x5000)
 0x1f75000 (sz:   0x3fff/  0x5000)
 0x1f70000 (sz:   0x3fff/  0x5000)
 0x1f6b000 (sz:   0x3fff/  0x5000)
 0x1f66000 (sz:   0x3fff/  0x5000)
 0x1f61000 (sz:   0x3fff/  0x5000)
 0x1f5c000 (sz:   0x3fff/  0x5000)
 0x1f53000 (sz:   0x3fff/  0x5000)
 0x1f4c000 (sz:   0x3fff/  0x5000)
 0x1f47000 (sz:   0x3fff/  0x5000)
 0x1f42000 (sz:   0x3fff/  0x5000)
 0x1f3d000 (sz:   0x3fff/  0x5000)
 0x1f35000 (sz:   0x3fff/  0x5000)
 0x1f30000 (sz:   0x3fff/  0x5000)
 0x1f2b000 (sz:   0x3fff/  0x5000)
 0x1f26000 (sz:   0x3fff/  0x5000)
 0x1f21000 (sz:   0x3fff/  0x5000)
 0x1f1a000 (sz:   0x3fff/  0x5000)
 0x1b19000 (sz:   0x3fff/  0x5000)
 0x1f15000 (sz:   0x3fff/  0x5000)
 0x1b14000 (sz:   0x3fff/  0x5000)
 0x1f10000 (sz:   0x3fff/  0x5000)
 0x1b0f000 (sz:   0x3fff/  0x5000)
 0x1f0b000 (sz:   0x3fff/  0x5000)
 0x1b0a000 (sz:   0x3fff/  0x5000)
 0x1f06000 (sz:   0x3fff/  0x5000)
 0x1b05000 (sz:   0x3fff/  0x5000)
 0x1f01000 (sz:   0x3fff/  0x5000)
 0x32fb000 (sz:   0x3fff/  0x5000)
 0x1afd000 (sz:   0x3fff/  0x5000)
 0x1efc000 (sz:   0x3fff/  0x5000)
 0x32f6000 (sz:   0x3fff/  0x5000)
 0x1af8000 (sz:   0x3fff/  0x5000)
 0x1ef7000 (sz:   0x3fff/  0x5000)
 0x32ed000 (sz:   0x3fff/  0x5000)
 0x1af3000 (sz:   0x3fff/  0x5000)
 0x1ef2000 (sz:   0x3fff/  0x5000)
 0x32e8000 (sz:   0x3fff/  0x5000)
 0x1aee000 (sz:   0x3fff/  0x5000)
 0x1eed000 (sz:   0x3fff/  0x5000)
 0x1ae9000 (sz:   0x3fff/  0x5000)
 0x1ee8000 (sz:   0x3fff/  0x5000)
 0x32e2000 (sz:   0x3fff/  0x5000)
 0x1ae4000 (sz:   0x3fff/  0x5000)
 0x1ee3000 (sz:   0x3fff/  0x5000)
 0x32dd000 (sz:   0x3fff/  0x5000)
 0x1adf000 (sz:   0x3fff/  0x5000)
 0x1ede000 (sz:   0x3fff/  0x5000)
 0x32d8000 (sz:   0x3fff/  0x5000)
 0x1ada000 (sz:   0x3fff/  0x5000)
 0x1ed9000 (sz:   0x3fff/  0x5000)
 0x32d3000 (sz:   0x3fff/  0x5000)
 0x1ad5000 (sz:   0x3fff/  0x5000)
 0x1ed4000 (sz:   0x3fff/  0x5000)
 0x32ce000 (sz:   0x3fff/  0x5000)
 0x1ad0000 (sz:   0x3fff/  0x5000)
 0x32c9000 (sz:   0x3fff/  0x5000)
 0x1ecd000 (sz:   0x3fff/  0x5000)
 0x1acb000 (sz:   0x3fff/  0x5000)
 0x32c4000 (sz:   0x3fff/  0x5000)
 0x1ac6000 (sz:   0x3fff/  0x5000)
 0x32bf000 (sz:   0x3fff/  0x5000)
 0x1ac0000 (sz:   0x3fff/  0x5000)
 0x32b8000 (sz:   0x3fff/  0x5000)
 0x1abb000 (sz:   0x3fff/  0x5000)
 0x32b3000 (sz:   0x3fff/  0x5000)
 0x32ae000 (sz:   0x3fff/  0x5000)
 0x32a9000 (sz:   0x3fff/  0x5000)
 0x3628000 (sz:   0x3fff/  0x5000)
 0x3623000 (sz:   0x3fff/  0x5000)
 0x361e000 (sz:   0x3fff/  0x5000)
 0x3619000 (sz:   0x3fff/  0x5000)
 0x3614000 (sz:   0x3fff/  0x5000)
 0x360f000 (sz:   0x3fff/  0x5000)
 0x360a000 (sz:   0x3fff/  0x5000)
 0x3605000 (sz:   0x3fff/  0x5000)
  0x9f9000 (sz:   0x3fff/  0x5000)
  0xdea000 (sz:   0x3fff/  0x5000)
  0xde5000 (sz:   0x3fff/  0x5000)
  0xde0000 (sz:   0x3fff/  0x5000)
  0xddb000 (sz:   0x3fff/  0x5000)
  0xdd6000 (sz:   0x3fff/  0x5000)
  0xdd1000 (sz:   0x3fff/  0x5000)
  0xdcc000 (sz:   0x3fff/  0x5000)
  0xdc7000 (sz:   0x3fff/  0x5000)
  0xdc2000 (sz:   0x3fff/  0x5000)
 0x1dba000 (sz:   0x3fff/  0x5000)
  0xdbd000 (sz:   0x3fff/  0x5000)
 0x1db5000 (sz:   0x3fff/  0x5000)
 0x1db0000 (sz:   0x3fff/  0x5000)
  0x9b3000 (sz:   0x3fff/  0x5000)
 0x1dab000 (sz:   0x3fff/  0x5000)
  0x9ae000 (sz:   0x3fff/  0x5000)
 0x1da6000 (sz:   0x3fff/  0x5000)
  0x9a9000 (sz:   0x3fff/  0x5000)
 0x1da1000 (sz:   0x3fff/  0x5000)
 0x1d9c000 (sz:   0x3fff/  0x5000)
 0x1d97000 (sz:   0x3fff/  0x5000)
 0x1d92000 (sz:   0x3fff/  0x5000)
 0x1d8d000 (sz:   0x3fff/  0x5000)
 0x1d88000 (sz:   0x3fff/  0x5000)
 0x1d83000 (sz:   0x3fff/  0x5000)
 0x1d7e000 (sz:   0x3fff/  0x5000)
 0x1d78000 (sz:   0x3fff/  0x5000)
  0xd74000 (sz:   0x3e38/  0x4000)
 0x1d70000 (sz:   0x3fff/  0x5000)
  0xd6f000 (sz:   0x3fff/  0x5000)
 0x1d68000 (sz:   0x3fff/  0x5000)
  0xd6a000 (sz:   0x3fff/  0x5000)
 0x1d63000 (sz:   0x3fff/  0x5000)
  0xd65000 (sz:   0x3fff/  0x5000)
 0x1d5e000 (sz:   0x3fff/  0x5000)
  0xd60000 (sz:   0x3fff/  0x5000)
 0x1d59000 (sz:   0x3fff/  0x5000)
  0xd5b000 (sz:   0x3fff/  0x5000)
 0x1d54000 (sz:   0x3fff/  0x5000)
  0xd56000 (sz:   0x3fff/  0x5000)
 0x1d4f000 (sz:   0x3fff/  0x5000)
  0xd51000 (sz:   0x3fff/  0x5000)
 0x1d4a000 (sz:   0x3fff/  0x5000)
  0xd4c000 (sz:   0x3fff/  0x5000)
  0xd47000 (sz:   0x3fff/  0x5000)
 0x1d43000 (sz:   0x63c7/  0x7000)
  0xd42000 (sz:   0x3fff/  0x5000)
 0x1d3c000 (sz:   0x63bb/  0x7000)
  0xd3d000 (sz:   0x3fff/  0x5000)
 0x1d37000 (sz:   0x3fff/  0x5000)
  0xd38000 (sz:   0x3fff/  0x5000)
 0x1d32000 (sz:   0x3fff/  0x5000)
  0xd33000 (sz:   0x3fff/  0x5000)
 0x1d2d000 (sz:   0x3fff/  0x5000)
  0x92e000 (sz:   0x3fff/  0x5000)
 0x1d28000 (sz:   0x3fff/  0x5000)
  0x929000 (sz:   0x3fff/  0x5000)
 0x1d23000 (sz:   0x3fff/  0x5000)
  0x91f000 (sz:   0x3fff/  0x5000)
 0x1d1a000 (sz:   0x3fff/  0x5000)
 0x1d15000 (sz:   0x3fff/  0x5000)
 0x1d10000 (sz:   0x3fff/  0x5000)
 0x1d0b000 (sz:   0x3fff/  0x5000)
 0x1d06000 (sz:   0x3fff/  0x5000)
 0x1d01000 (sz:   0x3fff/  0x5000)
 0x34fa000 (sz:   0x3fff/  0x5000)
 0x1cfc000 (sz:   0x3fff/  0x5000)
 0x34f3000 (sz:   0x3fff/  0x5000)
 0x1cf7000 (sz:   0x3fff/  0x5000)
 0x34ee000 (sz:   0x3fff/  0x5000)
 0x1cf2000 (sz:   0x3fff/  0x5000)
 0x1ced000 (sz:   0x3fff/  0x5000)
 0x1ce8000 (sz:   0x3fff/  0x5000)
 0x34df000 (sz:   0x3fff/  0x5000)
 0x1ce3000 (sz:   0x3fff/  0x5000)
 0x34da000 (sz:   0x3fff/  0x5000)
 0x1cde000 (sz:   0x3fff/  0x5000)
 0x34d5000 (sz:   0x3fff/  0x5000)
 0x1cd9000 (sz:   0x3fff/  0x5000)
 0x34d0000 (sz:   0x3fff/  0x5000)
 0x1cd4000 (sz:   0x3fff/  0x5000)
 0x34cb000 (sz:   0x3fff/  0x5000)
 0x1ccf000 (sz:   0x3fff/  0x5000)
 0x34c6000 (sz:   0x3fff/  0x5000)
 0x1cca000 (sz:   0x3fff/  0x5000)
 0x34c1000 (sz:   0x3fff/  0x5000)
 0x1cc5000 (sz:   0x3fff/  0x5000)
 0x34bc000 (sz:   0x3fff/  0x5000)
 0x1cc0000 (sz:   0x3fff/  0x5000)
 0x34b7000 (sz:   0x3fff/  0x5000)
 0x1cbb000 (sz:   0x3fff/  0x5000)
 0x34b2000 (sz:   0x3fff/  0x5000)
 0x1cb6000 (sz:   0x3fff/  0x5000)
 0x34ad000 (sz:   0x3fff/  0x5000)
 0x1cb1000 (sz:   0x3fff/  0x5000)
 0x34a8000 (sz:   0x3fff/  0x5000)
 0x34a3000 (sz:   0x3fff/  0x5000)
 0x349e000 (sz:   0x3fff/  0x5000)
 0x3499000 (sz:   0x3fff/  0x5000)
 0x3494000 (sz:   0x3fff/  0x5000)
 0x348f000 (sz:   0x3fff/  0x5000)
 0x348a000 (sz:   0x3fff/  0x5000)
 0x3485000 (sz:   0x3fff/  0x5000)
 0x3480000 (sz:   0x3fff/  0x5000)
 0x347b000 (sz:   0x3fff/  0x5000)
 0x3476000 (sz:   0x3fff/  0x5000)
 0x3471000 (sz:   0x3fff/  0x5000)
 0x346c000 (sz:   0x3fff/  0x5000)
 0x3465000 (sz:   0x3fff/  0x5000)
 0x3460000 (sz:   0x3fff/  0x5000)
 0x345b000 (sz:   0x3fff/  0x5000)
 0x3456000 (sz:   0x3fff/  0x5000)
 0x3451000 (sz:   0x3fff/  0x5000)
 0x344b000 (sz:   0x3fff/  0x5000)
 0x3446000 (sz:   0x3fff/  0x5000)
 0x3441000 (sz:   0x3fff/  0x5000)
 0x343c000 (sz:   0x3fff/  0x5000)
 0x3437000 (sz:   0x3fff/  0x5000)
 0x3432000 (sz:   0x3fff/  0x5000)
 0x342d000 (sz:   0x3fff/  0x5000)
 0x3428000 (sz:   0x3fff/  0x5000)
 0x3423000 (sz:   0x3fff/  0x5000)
 0x341e000 (sz:   0x3fff/  0x5000)
 0x3419000 (sz:   0x3fff/  0x5000)
 0x3414000 (sz:   0x3fff/  0x5000)
 0x340f000 (sz:   0x3fff/  0x5000)
 0x340a000 (sz:   0x3fff/  0x5000)
 0x3405000 (sz:   0x3fff/  0x5000)
 0x1ffa000 (sz:   0x3fff/  0x5000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO       @        0 (       0/  0x1000 @          0)
Writing segment __TEXT           @        0 (0x1d8000/0x1d8000 @     0x1000)
Writing segment __DATA           @ 0x1d8000 (0x200000/0x200000 @   0x1d9000)
        section __data           at 0x1d8000 - 0x380d68 (sz: 0x1a8d68)
        section __la_symbol_ptr  at 0x380d68 - 0x381878 (sz:    0xb10)
        section __nl_symbol_ptr  at 0x381878 - 0x382234 (sz:    0x9bc)
        section __dyld           at 0x382234 - 0x382250 (sz:     0x1c)
        section __const          at 0x382250 - 0x383ed0 (sz:   0x1c80)
        section __bss            at 0x383ed0 - 0x3d4a8c (sz:  0x50bbc)
        section __common         at 0x3d4a90 - 0x3d78c9 (sz:   0x2e39)
Writing segment __DATA           @ 0x3d8000 (  0x3fff/  0x5000 @   0x91f000)
Writing segment __DATA           @ 0x3dc000 (  0x8fff/  0xa000 @   0x929000)
Writing segment __DATA           @ 0x3e5000 (  0xdfff/  0xf000 @   0x9a9000)
Writing segment __DATA           @ 0x3f3000 (  0x3fff/  0x5000 @   0x9f9000)
Writing segment __DATA           @ 0x3f7000 (  0x8fff/  0xa000 @   0xbf3000)
Writing segment __DATA           @ 0x400000 ( 0x44e38/ 0x45000 @   0xd33000)
Writing segment __DATA           @ 0x445000 ( 0x30fff/ 0x32000 @   0xdbd000)
Writing segment __DATA           @ 0x476000 ( 0x21fff/ 0x23000 @   0xfdd000)
Writing segment __DATA           @ 0x498000 (  0x8fff/  0xa000 @  0x1abb000)
Writing segment __DATA           @ 0x4a1000 ( 0x3afff/ 0x3c000 @  0x1ac6000)
Writing segment __DATA      unexec: not enough room for load commands for new __DATA segments
     @ 0x4dc000 ( 0x17fff/ 0x19000 @  0x1b05000)
Writing segment __DATA           @ 0x4f4000 ( 0x6cfff/ 0x6e000 @  0x1cb1000)
Writing segment __DATA           @ 0x561000 ( 0x48fff/ 0x4a000 @  0x1d23000)
Writing segment __DATA           @ 0x5aa000 (  0x3fff/  0x5000 @  0x1d70000)
Writing segment __DATA           @ 0x5ae000 (  0x3fff/  0x5000 @  0x1d78000)
Writing segment __DATA           @ 0x5b2000 ( 0x3ffff/ 0x41000 @  0x1d7e000)
Writing segment __DATA           @ 0x5f2000 (  0x3fff/  0x5000 @  0x1ecd000)
Writing segment __DATA           @ 0x5f6000 ( 0x49fff/ 0x4b000 @  0x1ed4000)
Writing segment __DATA           @ 0x640000 ( 0x17fff/ 0x19000 @  0x1f21000)
Writing segment __DATA           @ 0x658000 ( 0x12fff/ 0x14000 @  0x1f3d000)
Writing segment __DATA           @ 0x66b000 (  0x3fff/  0x5000 @  0x1f53000)
Writing segment __DATA           @ 0x66f000 ( 0x1cfff/ 0x1e000 @  0x1f5c000)
Writing segment __DATA           @ 0x68c000 (  0xf074/ 0x18000 @  0x1fbb000)
Writing segment __DATA           @ 0x69c000 ( 0x26fff/ 0x28000 @  0x1fd7000)
Writing segment __DATA           @ 0x6c3000 ( 0x12fff/ 0x14000 @  0x32a9000)
Writing segment __DATA           @ 0x6d6000 ( 0x26fff/ 0x28000 @  0x32bf000)
Writing segment __DATA           @ 0x6fd000 (  0x8fff/  0xa000 @  0x32e8000)
Writing segment __DATA           @ 0x706000 (  0x8fff/  0xa000 @  0x32f6000)
Writing segment __DATA           @ 0x70f000 ( 0x49fff/ 0x4b000 @  0x3405000)
Writing segment __DATA           @ 0x759000 ( 0x17fff/ 0x19000 @  0x3451000)
Writing segment __DATA           @ 0x771000 ( 0x76fff/ 0x78000 @  0x346c000)
Writing segment __DATA           @ 0x7e8000 (  0x8fff/  0xa000 @  0x34ee000)
Writing segment __DATA           @ 0x7f1000 (  0x3fff/  0x5000 @  0x34fa000)
Writing segment __DATA           @ 0x7f5000 ( 0x3bf44/0x100000 @  0x3500000)
Writing segment __DATA           @ 0x831000 (  0x2783/  0x5000 @  0x3600000)
Writing segment __DATA           @ 0x834000 ( 0x26fff/ 0x28000 @  0x3605000)
Writing segment __DATA           @ 0x85b000 (0x503c00/0x800000 @  0x4800000)
Writing segment __DATA           @ 0xd5f000 (  0x503e/  0x8000 @  0x5000000)
Writing segment __LINKEDIT       @ 0xd65000 (0x5456dc/0x546000 @   0x3d9000)
Writing LC_LOAD_DYLINKER  command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_SYMTAB command
Fixed up 3/3 external relocation entries in data segment.
Writing LC_DYSYMTAB command
Writing LC_TWOLEVEL_HINTS command
Writing LC_UNIXTHREAD     command
make[3]: *** [bootstrap-emacs] Error 1
make[2]: *** [src] Error 2
+ /opt/exp/bin/rxvt
+ DISPLAY=149.204.137.221:0.0
expmake: error: target(s) gnuemacs2cpiogz.powerpc-apple-darwin not returned



-- 
 -------------------------------------------------------------------
|  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                                            |
 -------------------------------------------------------------------
---
I often quote myself; it adds spice to my conversation. -- G. B. Shaw





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-25 10:11       ` Klaus Zeitler
@ 2014-02-25 19:38         ` Paul Eggert
  2014-02-26 15:51           ` Klaus Zeitler
  2014-02-25 19:43         ` Glenn Morris
  1 sibling, 1 reply; 15+ messages in thread
From: Paul Eggert @ 2014-02-25 19:38 UTC (permalink / raw)
  To: Klaus.Zeitler; +Cc: 16825

On 02/25/2014 02:11 AM, Klaus Zeitler wrote:
> unexec: not enough room for load commands for new __DATA segments.
Please try changing this line in src/Makefile:

LD_SWITCH_SYSTEM_TEMACS= ... 690 ...

so that the 690 is something larger.  This is a hexadecimal number that 
is a multiple of (decimal) 56.  Please try 6C8, 700, etc., until you 
find a number that works, and let us know.  After editing src/Makefile, 
remove src/temacs and then type 'make'.

I don't use Mac OS X, by the way; I'm merely deriving this suggestion 
from David Reitter's email 
<http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00462.html>.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-25 10:11       ` Klaus Zeitler
  2014-02-25 19:38         ` Paul Eggert
@ 2014-02-25 19:43         ` Glenn Morris
  2014-02-25 19:54           ` bug#14585: " Paul Eggert
  1 sibling, 1 reply; 15+ messages in thread
From: Glenn Morris @ 2014-02-25 19:43 UTC (permalink / raw)
  To: Klaus.Zeitler; +Cc: Paul Eggert, 16825

Klaus Zeitler wrote:

> unexec: not enough room for load commands for new __DATA segments.
>
> Not sure if I should add this to the same bug number, but anyway here goes:

I think this is

http://debbugs.gnu.org/14585





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#14585: bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-25 19:43         ` Glenn Morris
@ 2014-02-25 19:54           ` Paul Eggert
  0 siblings, 0 replies; 15+ messages in thread
From: Paul Eggert @ 2014-02-25 19:54 UTC (permalink / raw)
  To: Glenn Morris, Klaus.Zeitler; +Cc: 16825-done, 14585

On 02/25/2014 11:43 AM, Glenn Morris wrote:
> I think this is
>
> http://debbugs.gnu.org/14585

Yes, thanks, that sounds right, so let's continue the conversation about 
this problem at <14585@debbugs.gnu.org>. I'll mark16825 as done, since 
its bug is fixed now.

Peter Dyballa, can you please try the following suggestion for 
Bug#14585?  It's taken from <http://bugs.gnu.org/16825#29>.  Thanks.

---

Please try changing this line in src/Makefile:

LD_SWITCH_SYSTEM_TEMACS= ... 690 ...

so that the 690 is something larger.  This is a hexadecimal number that 
is a multiple of (decimal) 56.  Please try 6C8, 700, etc., until you 
find a number that works, and let us know.  After editing src/Makefile, 
remove src/temacs and then type 'make'.

I don't use Mac OS X, by the way; I'm merely deriving this suggestion 
from David Reitter's email 
<http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00462.html>.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-25 19:38         ` Paul Eggert
@ 2014-02-26 15:51           ` Klaus Zeitler
  2014-02-26 18:50             ` Paul Eggert
  0 siblings, 1 reply; 15+ messages in thread
From: Klaus Zeitler @ 2014-02-26 15:51 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 16825

>>>>> "Paul" == Paul Eggert <eggert@cs.ucla.edu> writes:
    Paul> 
    Paul> On 02/25/2014 02:11 AM, Klaus Zeitler wrote:
    >> unexec: not enough room for load commands for new __DATA segments.
    Paul> Please try changing this line in src/Makefile:
    Paul> 
    Paul> LD_SWITCH_SYSTEM_TEMACS= ... 690 ...
    Paul> 
    Paul> so that the 690 is something larger. This is a hexadecimal
    Paul> number that is a multiple of (decimal) 56. Please try 6C8,
    Paul> 700, etc., until you find a number that works, and let us
    Paul> know. After editing src/Makefile, remove src/temacs and then
    Paul> type 'make'.

I needed to go all they way up to 818 till I could dump temacs.
But the emacs that I got doesn't run. When I start it, I get a bus
error.
In gdb I see:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x975f6980 in strcmp ()
(gdb) bt
#0  0x975f6980 in strcmp ()
#1  0x84acdf64 in FcPatternPosition ()
#2  0x84acdfc4 in FcPatternFindElt ()
#3  0x84ace758 in FcPatternGet ()
#4  0x84ac7d90 in FcDefaultSubstitute ()
#5  0x009662b4 in pango_cairo_fc_font_map_context_substitute ()
#6  0x00a2f650 in pango_fc_default_substitute ()
#7  0x00a2f974 in pango_fc_font_map_get_patterns ()
#8  0x00a2fcb4 in pango_fc_font_map_load_fontset ()
#9  0x00ba0b50 in pango_font_map_load_fontset ()
#10 0x00b9eefc in itemize_state_update_for_new_run ()
#11 0x00b9efdc in itemize_state_process_run ()
#12 0x00b9f378 in pango_itemize_with_base_dir ()
#13 0x00ba8340 in pango_layout_check_lines ()
#14 0x00ba66d0 in pango_layout_get_extents_internal ()
#15 0x00ba6a9c in pango_layout_get_extents ()
#16 0x029348b0 in gtk_label_size_request ()
#17 0x028155f4 in gtk_accel_label_size_request ()
#18 0x00efe1f0 in g_cclosure_marshal_VOID__BOXED ()
#19 0x00ede910 in g_type_class_meta_marshal ()
#20 0x00ede508 in g_closure_invoke ()
#21 0x00efc350 in signal_emit_unlocked_R ()
#22 0x00efb7d4 in g_signal_emit_valist ()
#23 0x00efbdbc in g_signal_emit_by_name ()
#24 0x029f40b4 in do_size_request ()
#25 0x029f4678 in _gtk_size_group_compute_requisition ()
#26 0x02afad54 in gtk_widget_size_request ()
#27 0x029622d8 in gtk_menu_item_size_request ()
#28 0x00efe1f0 in g_cclosure_marshal_VOID__BOXED ()
#29 0x00ede910 in g_type_class_meta_marshal ()
#30 0x00ede508 in g_closure_invoke ()
#31 0x00efc350 in signal_emit_unlocked_R ()
#32 0x00efb7d4 in g_signal_emit_valist ()
#33 0x00efbdbc in g_signal_emit_by_name ()
#34 0x029f40b4 in do_size_request ()
#35 0x029f4678 in _gtk_size_group_compute_requisition ()
#36 0x02afad54 in gtk_widget_size_request ()
#37 0x0295dff0 in gtk_menu_bar_size_request ()
#38 0x00efe1f0 in g_cclosure_marshal_VOID__BOXED ()
#39 0x00ede910 in g_type_class_meta_marshal ()
#40 0x00ede508 in g_closure_invoke ()
#41 0x00efc350 in signal_emit_unlocked_R ()
#42 0x00efb7d4 in g_signal_emit_valist ()
#43 0x00efbdbc in g_signal_emit_by_name ()
#44 0x029f40b4 in do_size_request ()
#45 0x029f4678 in _gtk_size_group_compute_requisition ()
#46 0x02afad54 in gtk_widget_size_request ()
#47 0x000b9be0 in xg_update_frame_menubar (f=0x48c9988) at gtkutil.c:3341
#48 0x0004ab98 in set_frame_menubar (f=0x48c9988, first_time=2225949536, deep_p=4278124287) at xmenu.c:1261
#49 0x000aa7e8 in Fx_create_frame (parms=9571494) at xfns.c:3393
#50 0x00134528 in Ffuncall (nargs=-4, args=0x0) at eval.c:2778
#51 0x0016ad40 in exec_byte_code (bytestr=1969516915, vector=4020956, maxdepth=-16843009, args_template=4021072, nargs=9571494, args=0x0) at bytecode.c:900
#52 0x00134c54 in funcall_lambda (fun=0, nargs=9571494, arg_vector=0x48c998d) at eval.c:3010
#53 0x001346bc in Ffuncall (nargs=-4, args=0x0) at eval.c:2839
#54 0x0016ad40 in exec_byte_code (bytestr=1969516915, vector=4020956, maxdepth=-16843009, args_template=4021072, nargs=9571494, args=0x0) at bytecode.c:900
#55 0x00134c54 in funcall_lambda (fun=0, nargs=9571494, arg_vector=0x48c998d) at eval.c:3010
#56 0x001346bc in Ffuncall (nargs=-4, args=0x0) at eval.c:2839
#57 0x0016ad40 in exec_byte_code (bytestr=1969516915, vector=4020956, maxdepth=-16843009, args_template=4021072, nargs=9571494, args=0x0) at bytecode.c:900
#58 0x00134c54 in funcall_lambda (fun=0, nargs=9571494, arg_vector=0x48c998d) at eval.c:3010
#59 0x001346bc in Ffuncall (nargs=-4, args=0x0) at eval.c:2839
#60 0x0016ad40 in exec_byte_code (bytestr=1969516915, vector=4020956, maxdepth=-16843009, args_template=4021072, nargs=9571494, args=0x0) at bytecode.c:900
#61 0x001346bc in Ffuncall (nargs=-4, args=0x0) at eval.c:2839
#62 0x0016ad40 in exec_byte_code (bytestr=1969516915, vector=4020956, maxdepth=-16843009, args_template=4021072, nargs=9571494, args=0x0) at bytecode.c:900
#63 0x001348a4 in apply_lambda (fun=92466176, args=4020956) at eval.c:2887
#64 0x00133638 in eval_sub (form=4020956) at eval.c:2218
#65 0x00132f20 in Feval (form=4020956, lexical=-2069017760) at eval.c:2005
#66 0x00131a88 in internal_condition_case (bfun=0xc006c <top_level_2>, handlers=75539826, hfun=0xbfc08 <cmd_error>) at eval.c:1289
#67 0x000c00f0 in top_level_1 (ignore=-4) at keyboard.c:1185
#68 0x001314c4 in internal_catch (tag=-4, func=0xc0098 <top_level_1>, arg=75504162) at eval.c:1060
#69 0x000bff90 in command_loop () at keyboard.c:1146
#70 0x000bf6c0 in recursive_edit_1 () at keyboard.c:779
#71 0x000bf864 in Frecursive_edit () at keyboard.c:843
#72 0x000bde08 in main (argc=4020956, argv=0x3d5b50) at emacs.c:1528
(gdb)

-- 
 -------------------------------------------------------------------
|  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                                            |
 -------------------------------------------------------------------
---
Jone's Motto: Friends come and go, but enemies accumulate.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-26 15:51           ` Klaus Zeitler
@ 2014-02-26 18:50             ` Paul Eggert
  2014-02-27  8:36               ` Klaus Zeitler
  0 siblings, 1 reply; 15+ messages in thread
From: Paul Eggert @ 2014-02-26 18:50 UTC (permalink / raw)
  To: Klaus.Zeitler; +Cc: 16825

That looks like it could be a font problem.  Sorry, I don't use Mac OS X 
so I can't be much help with that.  I see a similar problem reported here:

https://mail.gnome.org/archives/dia-list/2007-October/msg00072.html

but no solution.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-26 18:50             ` Paul Eggert
@ 2014-02-27  8:36               ` Klaus Zeitler
  2014-02-27 20:57                 ` Paul Eggert
  0 siblings, 1 reply; 15+ messages in thread
From: Klaus Zeitler @ 2014-02-27  8:36 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 16825

>>>>> "Paul" == Paul Eggert <eggert@cs.ucla.edu> writes:
    Paul> 
    Paul> That looks like it could be a font problem. Sorry, I don't use
    Paul> Mac OS X so I can't be much help with that.

Neither do I, I've only tried to build it for colleagues. So shall we
close this bug? And should I write a another one for the new problem?
Looks if they're using a fairly old OS version:
Darwin osxexp2 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005
Does it even make much sense to investigate this?

-- 
 -------------------------------------------------------------------
|  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                                            |
 -------------------------------------------------------------------
---
It may be that your whole purpose in life
is simply to serve as a warning to others.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
  2014-02-27  8:36               ` Klaus Zeitler
@ 2014-02-27 20:57                 ` Paul Eggert
  0 siblings, 0 replies; 15+ messages in thread
From: Paul Eggert @ 2014-02-27 20:57 UTC (permalink / raw)
  To: Klaus.Zeitler; +Cc: 16825

On 02/27/2014 12:36 AM, Klaus Zeitler wrote:
> So shall we close this bug?
I already closed bug 16825, as the original bug is fixed.

> And should I write a another one for the new problem?
> Looks if they're using a fairly old OS version:
> Darwin osxexp2 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005
> Does it even make much sense to investigate this?
It is pretty old, yes, released April 2005.  I assume your colleagues 
are prevented from running newer versions as they are running old 
hardware or something, but hardware like that is pretty old (e.g., 
PowerBook G3 3rd generation, introduced May 1999) so it's not clear that 
it's worth the bother.  At this point it's up to you as to whether to 
investigate it; I can't help much as I don't use Mac OS X at all.





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-02-27 20:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 14:58 bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin Klaus Zeitler
2014-02-21  8:54 ` Paul Eggert
2014-02-21  9:16   ` Jan Djärv
2014-02-21 16:57     ` Glenn Morris
2014-02-21 22:41       ` Jan Djärv
2014-02-24 15:37   ` Klaus Zeitler
2014-02-24 18:42     ` Paul Eggert
2014-02-25 10:11       ` Klaus Zeitler
2014-02-25 19:38         ` Paul Eggert
2014-02-26 15:51           ` Klaus Zeitler
2014-02-26 18:50             ` Paul Eggert
2014-02-27  8:36               ` Klaus Zeitler
2014-02-27 20:57                 ` Paul Eggert
2014-02-25 19:43         ` Glenn Morris
2014-02-25 19:54           ` bug#14585: " Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).