From e02edb7044253c49f0a866ff469ae7f3097dc129 Mon Sep 17 00:00:00 2001
From: Mike Welles <[EMAIL REDACTED]>
Date: Wed, 3 Feb 1999 19:53:27 +0000
Subject: [PATCH] v3.4beta037iptc release
---
.#README-ITPC | 1 +
Makefile | 505 +++
README-IPTC | 41 +
config.log | 7164 +++++++++++++++++++++++++++++++++++++++++
libtiff/Makefile | 342 ++
libtiff/mkversion.c | 0
libtiff/port.h | 32 +
libtiff/tif_acorn.c | 0
libtiff/tif_dir.c | 37 +
libtiff/tif_dir.h | 14 +-
libtiff/tif_dirinfo.c | 15 +
libtiff/tif_print.c | 10 +
libtiff/tiff.h | 4 +
libtiff/tiffconf.h | 4 +
man/Makefile | 398 +++
port/install.sh | 246 ++
tiff.h | 421 +++
tools/Makefile | 251 ++
18 files changed, 9483 insertions(+), 2 deletions(-)
create mode 120000 .#README-ITPC
create mode 100644 Makefile
create mode 100644 README-IPTC
create mode 100644 config.log
create mode 100644 libtiff/Makefile
mode change 100755 => 100644 libtiff/mkversion.c
create mode 100644 libtiff/port.h
mode change 100755 => 100644 libtiff/tif_acorn.c
create mode 100644 man/Makefile
create mode 100644 port/install.sh
create mode 100644 tiff.h
create mode 100644 tools/Makefile
diff --git a/.#README-ITPC b/.#README-ITPC
new file mode 120000
index 00000000..9440129f
--- /dev/null
+++ b/.#README-ITPC
@@ -0,0 +1 @@
+mike@kurtz.fake.716:931250841
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..891a2358
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,505 @@
+#! smake
+# $Header: /d1/sam/tiff/RCS/Makefile.in,v 1.62 1997/08/29 23:24:06 sam Exp $
+#
+# Warning, this file was automatically created by the TIFF configure script
+#
+# Tag Image File Format Library
+#
+# Copyright (c) 1988-1997 Sam Leffler
+# Copyright (c) 1991-1997 Silicon Graphics, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+#
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+#
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+# OF THIS SOFTWARE.
+#
+
+SRCDIR = .
+
+#
+# VERSION: v3.4beta037
+# DATE: Wed Feb 3 19:53:27 EST 1999
+# TARGET: i586-unknown-linux
+# CCOMPILER: /usr/bin/gcc
+#
+
+SHELL = /bin/sh
+NULL =
+ECHO = echo
+GENDIST = ${TOOLROOT}/usr/sbin/gendist
+INSTALL = ${SHELL} ../port/install.sh
+
+all default:
+ @if [ "no" = yes ]; then \
+ ${ECHO} "= "port; cd port; ${MAKE}; \
+ else \
+ true; \
+ fi
+ @${ECHO} "= "libtiff; cd libtiff; ${MAKE}
+ @${ECHO} "= "tools; cd tools; ${MAKE}
+ @${ECHO} "= "man; cd man; ${MAKE}
+
+install:
+ @${ECHO} "= "libtiff; cd libtiff; ${MAKE} install
+ @${ECHO} "= "tools; cd tools; ${MAKE} install
+ @${ECHO} "= "man; cd man; ${MAKE} install
+ @if [ "no" = yes ]; then \
+ ${ECHO} "= "html; cd html; ${MAKE} install; \
+ else \
+ true; \
+ fi
+
+clean:
+ @if [ "no" = yes ]; then \
+ ${ECHO} "= "port; cd port; ${MAKE} clean; \
+ else \
+ true; \
+ fi
+ @${ECHO} "= "libtiff; cd libtiff; ${MAKE} clean
+ @${ECHO} "= "tools; cd tools; ${MAKE} clean
+ @${ECHO} "= "man; cd man; ${MAKE} clean
+# -cd contrib/dbs; ${MAKE} clean
+# -cd contrib/dbs/xtiff; ${MAKE} clean
+
+clobber distclean: clean
+ rm -f Makefile libtiff/port.h config.log
+ rm -f libtiff/Makefile
+ rm -f tools/Makefile
+ rm -f man/Makefile
+ rm -f port/Makefile port/install.sh
+ rm -f html/Makefile
+
+#
+# The folllowing rule creates a binary distribution for IRIX.
+#
+installLink::
+ if [ /usr/local/lib != /usr/lib ]; then \
+ ${INSTALL} -idb tiff.sw.tools -F /usr/lib \
+ -lns /usr/local/lib/libtiff.a -O libtiff.a; \
+ else \
+ true; \
+ fi
+product::
+ test -d dist || mkdir dist
+ rm -f dist/rawidb
+ SRC=`pwd` RAWIDB=`pwd`/dist/rawidb ${MAKE} install installLink
+ rm -f dist/idb
+ sort -u +4 dist/rawidb > dist/idb
+ ${GENDIST} -v -dist dist -idb dist/idb \
+ -sbase `pwd` -spec ${SRCDIR}/dist/tiff.spec
+
+#
+# These rules are used to create the source distribution images
+#
+
+HOST = sgi
+COMPRESS= gzip
+ZIPSUF = gz
+
+TIFFFILES=\
+ configure \
+ config.guess \
+ config.sub \
+ config.site \
+ Makefile.in \
+ README \
+ VERSION \
+ COPYRIGHT \
+ TODO \
+ dist/tiff.spec \
+ dist/newalpha \
+ dist/newversion \
+ libtiff/Makefile.in \
+ libtiff/Makefile.lcc \
+ libtiff/t4.h \
+ libtiff/tiff.h \
+ libtiff/tiffcomp.h \
+ libtiff/tiffconf.h \
+ libtiff/tiffio.h \
+ libtiff/tiffiop.h \
+ libtiff/uvcode.h \
+ libtiff/mkg3states.c \
+ libtiff/mkspans.c \
+ libtiff/mkversion.c \
+ libtiff/tif_acorn.c \
+ libtiff/tif_apple.c \
+ libtiff/tif_atari.c \
+ libtiff/tif_aux.c \
+ libtiff/tif_close.c \
+ libtiff/tif_codec.c \
+ libtiff/tif_compress.c \
+ libtiff/tif_dir.h \
+ libtiff/tif_dir.c \
+ libtiff/tif_dirinfo.c \
+ libtiff/tif_dirread.c \
+ libtiff/tif_dirwrite.c \
+ libtiff/tif_dumpmode.c \
+ libtiff/tif_error.c \
+ libtiff/tif_fax3.c \
+ libtiff/tif_fax3.h \
+ libtiff/tif_flush.c \
+ libtiff/tif_getimage.c \
+ libtiff/tif_jpeg.c \
+ libtiff/tif_luv.c \
+ libtiff/tif_lzw.c \
+ libtiff/tif_msdos.c \
+ libtiff/tif_next.c \
+ libtiff/tif_open.c \
+ libtiff/tif_packbits.c \
+ libtiff/tif_pixarlog.c \
+ libtiff/tif_predict.h \
+ libtiff/tif_predict.c \
+ libtiff/tif_print.c \
+ libtiff/tif_read.c \
+ libtiff/tif_strip.c \
+ libtiff/tif_swab.c \
+ libtiff/tif_thunder.c \
+ libtiff/tif_tile.c \
+ libtiff/tif_unix.c \
+ libtiff/tif_version.c \
+ libtiff/tif_vms.c \
+ libtiff/tif_warning.c \
+ libtiff/tif_win3.c \
+ libtiff/tif_win32.c \
+ libtiff/tif_write.c \
+ libtiff/tif_zip.c \
+ port/Makefile.in \
+ port/getopt.c \
+ port/install.sh.in \
+ port/irix/so_locations \
+ port/strcasecmp.c \
+ port/strtoul.c \
+ tools/Makefile.in \
+ tools/Makefile.lcc \
+ tools/fax2tiff.c \
+ tools/fax2ps.c \
+ tools/gif2tiff.c \
+ tools/pal2rgb.c \
+ tools/ppm2tiff.c \
+ tools/ras2tiff.c \
+ tools/rasterfile.h \
+ tools/rgb2ycbcr.c \
+ tools/sgi2tiff.c \
+ tools/sgigt.c \
+ tools/sgisv.c \
+ tools/thumbnail.c \
+ tools/tiff2bw.c \
+ tools/tiff2ps.c \
+ tools/tiffcmp.c \
+ tools/tiffcp.c \
+ tools/tiffdither.c \
+ tools/tiffdump.c \
+ tools/tiffinfo.c \
+ tools/tiffmedian.c \
+ tools/tiffsplit.c \
+ tools/ycbcr.c \
+ man/Makefile.in \
+ man/fax2tiff.1 \
+ man/fax2ps.1 \
+ man/gif2tiff.1 \
+ man/pal2rgb.1 \
+ man/ppm2tiff.1 \
+ man/ras2tiff.1 \
+ man/rgb2ycbcr.1 \
+ man/sgi2tiff.1 \
+ man/thumbnail.1 \
+ man/tiff2bw.1 \
+ man/tiff2ps.1 \
+ man/tiffcmp.1 \
+ man/tiffcp.1 \
+ man/tiffdither.1 \
+ man/tiffdump.1 \
+ man/tiffgt.1 \
+ man/tiffinfo.1 \
+ man/tiffmedian.1 \
+ man/tiffsplit.1 \
+ man/tiffsv.1 \
+ man/TIFFClose.3t \
+ man/TIFFError.3t \
+ man/TIFFFlush.3t \
+ man/TIFFGetField.3t \
+ man/TIFFOpen.3t \
+ man/TIFFPrintDirectory.3t \
+ man/TIFFReadDirectory.3t \
+ man/TIFFReadEncodedStrip.3t \
+ man/TIFFReadEncodedTile.3t \
+ man/TIFFReadRGBAImage.3t \
+ man/TIFFReadRawStrip.3t \
+ man/TIFFReadRawTile.3t \
+ man/TIFFReadScanline.3t \
+ man/TIFFReadTile.3t \
+ man/TIFFRGBAImage.3t \
+ man/TIFFSetDirectory.3t \
+ man/TIFFSetField.3t \
+ man/TIFFWarning.3t \
+ man/TIFFWriteDirectory.3t \
+ man/TIFFWriteEncodedStrip.3t \
+ man/TIFFWriteEncodedTile.3t \
+ man/TIFFWriteRawStrip.3t \
+ man/TIFFWriteRawTile.3t \
+ man/TIFFWriteScanline.3t \
+ man/libtiff.3t \
+ man/TIFFbuffer.3t \
+ man/TIFFcodec.3t \
+ man/TIFFmemory.3t \
+ man/TIFFquery.3t \
+ man/TIFFsize.3t \
+ man/TIFFstrip.3t \
+ man/TIFFswab.3t \
+ man/TIFFtile.3t \
+ html/Makefile.in \
+ html/bugs.html \
+ html/build.html \
+ html/contrib.html \
+ html/document.html \
+ html/images.html \
+ html/index.html \
+ html/internals.html \
+ html/intro.html \
+ html/libtiff.html \
+ html/misc.html \
+ html/support.html \
+ html/tools.html \
+ html/v3.4beta036.html \
+ html/v3.4beta035.html \
+ html/v3.4beta034.html \
+ html/v3.4beta033.html \
+ html/v3.4beta032.html \
+ html/v3.4beta031.html \
+ html/v3.4beta029.html \
+ html/v3.4beta028.html \
+ html/v3.4beta024.html \
+ html/v3.4beta018.html \
+ html/v3.4beta016.html \
+ html/v3.4beta007.html \
+ ${NULL}
+OTHERFILES=\
+ html/images/back.gif \
+ html/images/bali.jpg \
+ html/images/cat.gif \
+ html/images/cover.jpg \
+ html/images/cramps.gif \
+ html/images/dave.gif \
+ html/images/info.gif \
+ html/images/jello.jpg \
+ html/images/jim.gif \
+ html/images/note.gif \
+ html/images/oxford.gif \
+ html/images/quad.jpg \
+ html/images/ring.gif \
+ html/images/smallliz.jpg \
+ html/images/strike.gif \
+ html/images/warning.gif \
+ ${NULL}
+CONTRIBFILES=\
+ contrib/dbs/README \
+ contrib/dbs/Imakefile \
+ contrib/dbs/tiff-bi.c \
+ contrib/dbs/tiff-grayscale.c \
+ contrib/dbs/tiff-palette.c \
+ contrib/dbs/tiff-rgb.c \
+ contrib/dbs/xtiff/README \
+ contrib/dbs/xtiff/Imakefile \
+ contrib/dbs/xtiff/patchlevel.h \
+ contrib/dbs/xtiff/xtiff.c \
+ contrib/dbs/xtiff/xtifficon.h \
+ contrib/ras/README \
+ contrib/ras/ras2tif.c \
+ contrib/ras/tif2ras.c \
+ contrib/vms/libtiff/makevms.com \
+ contrib/vms/libtiff/tiff.opt \
+ contrib/vms/libtiff/tiffshraxp.opt \
+ contrib/vms/libtiff/tiffshrvax.opt \
+ contrib/vms/libtiff/tiffvec.mar \
+ contrib/vms/tools/makevms.com \
+ contrib/tags/README \
+ contrib/tags/Makefile.gcc \
+ contrib/tags/Makefile.mpw \
+ contrib/tags/listtif.c \
+ contrib/tags/maketif.c \
+ contrib/tags/xtif_dir.c \
+ contrib/tags/xtiffio.h \
+ contrib/tags/xtiffiop.h \
+ contrib/mac-mpw/README \
+ contrib/mac-mpw/BUILD.mpw \
+ contrib/mac-mpw/libtiff.make \
+ contrib/mac-mpw/mactrans.c \
+ contrib/mac-mpw/port.make \
+ contrib/mac-mpw/tools.make \
+ contrib/mac-mpw/top.make \
+ contrib/acorn/ReadMe \
+ contrib/acorn/Makefile \
+ contrib/acorn/SetVars \
+ contrib/acorn/cleanlib \
+ contrib/acorn/convert \
+ contrib/acorn/install \
+ contrib/win32/README \
+ contrib/win32/dllshell.c \
+ contrib/win32/libtiff.def \
+ contrib/win95/README \
+ contrib/win95/Makefile.w95 \
+ contrib/win95/tiff2dib.c \
+ contrib/winnt/README \
+ contrib/winnt/README.console \
+ contrib/winnt/fax3sm.c \
+ contrib/winnt/libtiff.def \
+ contrib/winnt/libtiff.mak \
+ contrib/winnt/libtiff.vcp \
+ contrib/winnt/version.h \
+ contrib/mac-cw/README \
+ contrib/mac-cw/Makefile.script \
+ contrib/mac-cw/mac_main.c \
+ contrib/mac-cw/mac_main.h \
+ contrib/mac-cw/metrowerks.note \
+ contrib/mac-cw/mkg3_main.c \
+ contrib/mac-cw/version.h \
+ contrib/dosdjgpp/README \
+ contrib/dosdjgpp/Makefile.lib \
+ contrib/dosdjgpp/Makefile.tools \
+ contrib/dosdjgpp/Makefile.top \
+ contrib/dosdjgpp/conf.bat \
+ contrib/dosdjgpp/port.h \
+ contrib/mfs/README \
+ contrib/mfs/mfs_file.c \
+ contrib/pds/README \
+ contrib/pds/tif_imageiter.c \
+ contrib/pds/tif_imageiter.h \
+ contrib/pds/tif_pdsdirread.c \
+ contrib/pds/tif_pdsdirwrite.c \
+ ${NULL}
+DISTFILES=\
+ ${TIFFFILES} \
+ dist/tiff.alpha \
+ dist/tiff.version \
+ ${OTHERFILES} \
+ ${CONTRIBFILES} \
+ ${NULL}
+
+CONFIG=\
+ -with-CC=cc \
+ -with-GCOPTS=" " \
+ -with-JPEG=yes \
+ -with-DIR_JPEG=../src/jpeg-5a \
+ -with-ZIP=yes \
+ -with-DIR_LIBGZ=../src/zlib \
+ ${NULL}
+
+rcsclean:
+ rcsclean ${TIFFFILES} && co ${TIFFFILES}
+
+alpha:
+ (cd ${SRCDIR}/dist; sh newversion)
+ -${MAKE} clean
+ ${MAKE} alpha.stamp
+ ${SRCDIR}/configure ${CONFIG}
+ ${MAKE} product
+ ${MAKE} alpha.tar
+
+# stamp relevant files according to current alpha
+alpha.stamp:
+ VERSION="Alpha037"; \
+ NOW=`date`; \
+ for i in ${TIFFFILES}; do \
+ REV=`rlog -h -d"$$NOW" ${SRCDIR}/$$i|fgrep 'head:'|awk '{print $$2}'`;\
+ rcs "-N$$VERSION:$$REV" "-sExp:$$REV" ${SRCDIR}/$$i && co -sExp ${SRCDIR}/$$i; \
+ done
+
+purge-old-alphas:
+ VERSIONS=`awk 'BEGIN { \
+ for (i=1; i<=037; i++) printf " -nAlpha%03d",i;\
+ exit \
+ }'`; \
+ for i in ${TIFFFILES}; do \
+ echo rcs $$VERSIONS ${SRCDIR}/$$i; \
+ rcs $$VERSIONS ${SRCDIR}/$$i && co ${SRCDIR}/$$i; \
+ done
+
+alphadiff:
+ -@for i in ${TIFFFILES}; do \
+ rcsdiff -r${ALPHA} ${SRCDIR}/$$i; \
+ done
+
+# create alpha distribution archive
+alpha.tar:
+ VERSION="v3.4beta037"; \
+ rm -f tiff-$$VERSION $$VERSION $$VERSION-tar; \
+ ln -s ${SRCDIR} tiff-$$VERSION; \
+ (for i in ${DISTFILES}; do \
+ echo $$i; \
+ done) | sed "s;.*;tiff-$$VERSION/&;" >$$VERSION; \
+ tar cvf $$VERSION-tar `cat $$VERSION`; \
+ rm -f tiff-$$VERSION-tar.${ZIPSUF}; \
+ cat $$VERSION-tar | ${COMPRESS} >tiff-$$VERSION-tar.${ZIPSUF}; \
+ rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;
+
+release:
+ (cd ${SRCDIR}/dist; sh newversion)
+ -${MAKE} clean
+ ${MAKE} release.stamp
+ ${SRCDIR}/configure ${CONFIG}
+ ${MAKE} product
+ ${MAKE} release.tar
+
+release.stamp:
+ NOW=`date`; \
+ for i in ${TIFFFILES}; do \
+ REV=`rlog -h -d"$$NOW" ${SRCDIR}/$$i|fgrep 'head:'|awk '{print $$2}'`;\
+ rcs "-NRelease3_4_beta:$$REV" "-sRel:$$REV" ${SRCDIR}/$$i && co -sRel ${SRCDIR}/$$i; \
+ done
+
+# create release distribution archive
+release.tar:
+ VERSION="v3.4beta037"; \
+ rm -f tiff-$$VERSION $$VERSION $$VERSION-tar; \
+ ln -s ${SRCDIR} tiff-$$VERSION; \
+ (for i in ${DISTFILES}; do \
+ echo $$i; \
+ done) | sed "s;.*;tiff-$$VERSION/&;" >$$VERSION; \
+ tar cvf $$VERSION-tar `cat $$VERSION`; \
+ rm -f tiff-$$VERSION-tar.${ZIPSUF}; \
+ cat $$VERSION-tar | ${COMPRESS} >tiff-$$VERSION-tar.${ZIPSUF}; \
+ rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;
+
+#
+# Create a package of the test images.
+#
+
+PICS=\
+ pics/README \
+ pics/cramps.tif \
+ pics/cramps-tile.tif \
+ pics/fax2d.tif \
+ pics/g3test.tif \
+ pics/jello.tif \
+ pics/jim___cg.tif \
+ pics/jim___dg.tif \
+ pics/jim___gg.tif \
+ pics/jim___ah.tif \
+ pics/strike.tif \
+ pics/oxford.tif \
+ pics/quad-lzw.tif \
+ pics/quad-tile.tif \
+ pics/text.tif \
+ pics/ycbcr-cat.tif \
+ pics/smallliz.tif \
+ pics/zackthecat.tif \
+ pics/fax2d.g3 \
+ pics/g3test.g3 \
+ ${NULL}
+
+pics.tar:
+ tar cvf - ${PICS} | ${COMPRESS} > tiffpics.tar.${ZIPSUF}
diff --git a/README-IPTC b/README-IPTC
new file mode 100644
index 00000000..c70f5ff5
--- /dev/null
+++ b/README-IPTC
@@ -0,0 +1,41 @@
+To: sam@engr.sgi.com
+cc: adam@onshore.com
+cc: billr@corbis.com
+cc: magick@wizards.dupont.com
+Subject: libtiff fork
+X-Mailer: VM 6.63 under Emacs 20.3.2
+--text follows this line--
+
+I've finished merging a forked libtiff that was being shipped with
+ImageMagick (that added IPTC newsphoto support) with the last libtiff
+release (tiff-v3.4beta037). I'm going to make this available at
+ftp://ftp.onshore.com/pub/libtiff (as tiff-v3.4beta037-IPTC).
+
+I'm very reluctant to fork code, and I woud refrain, but for the following:
+
+ 1. Repeated mail to you about the patches has gone unanswered.
+
+ 2. I keep getting mail from people strugging to get IPTC newphoto support
+ to work properly with ImageMagick.
+
+ 3. The NT source distibution was already shipping with a forked version.
+
+In order for the situation to be less confusing, I'm going to make an
+archive of the forked version available.
+
+I very much would like for there not to be a fork. Are you still
+maintaining libtiff? If not, is there a current maintainer?
+
+I'm willing to adopt it if there isn't. I'd hate to see such an
+important library fragment. It's extremely likely that onShore
+(http://onshore.com/), will donate web space, bandwidth, and listserv
+services if so.
+
+
+
+------------------------------------------------------
+M. L. Welles mike@onShore.com
+ http://fifth.net/
+-------------------------------------------------------
+
+
diff --git a/config.log b/config.log
new file mode 100644
index 00000000..c77a759d
--- /dev/null
+++ b/config.log
@@ -0,0 +1,7164 @@
+Wed Feb 3 19:53:27 EST 1999
+Running configure with arguments:
+
+This file contains information that is captured from running the configure
+script. Lines that begin with a "+" are command lines echoed by the
+shell. Other lines are the output of commands; usually the contents of
+test case files or the output from compilers. If configure does the
+wrong thing, you can use the information captured here to aid in debugging.
+
+++ . ./config.site
+++ cat dummy.c
+main(int argc, char* argv) { exit(0); }
+++ cat xgnu.c
+#ifdef __GNUC__
+yes;
+#endif
+++ gcc -E xgnu.c
+++ egrep yes
+yes;
+++ gcc -o dummy dummy.c
+++ /usr/bin/gcc -g -c dummy.c
+++ make -f confMakefile t
+/usr/bin/gcc -E t.c
+# 1 "t.c"
+# 1 "/usr/include/sys/types.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/features.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 117 "/usr/include/features.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/sys/cdefs.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/features.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 222 "/usr/include/features.h" 3
+
+# 22 "/usr/include/sys/cdefs.h" 2 3
+
+
+
+
+
+
+
+
+
+
+# 54 "/usr/include/sys/cdefs.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 86 "/usr/include/sys/cdefs.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 205 "/usr/include/features.h" 2 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/gnu/stubs.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 219 "/usr/include/features.h" 2 3
+
+
+
+
+# 26 "/usr/include/sys/types.h" 2 3
+
+
+
+
+# 1 "/usr/include/gnu/types.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+typedef unsigned char __u_char;
+typedef unsigned short __u_short;
+typedef unsigned int __u_int;
+typedef unsigned long __u_long;
+
+typedef unsigned long long int __u_quad_t;
+typedef long long int __quad_t;
+# 41 "/usr/include/gnu/types.h" 3
+
+typedef __quad_t *__qaddr_t;
+
+typedef __u_quad_t __dev_t;
+typedef __u_int __uid_t;
+typedef __u_int __gid_t;
+typedef __u_long __ino_t;
+typedef __u_int __mode_t;
+typedef __u_int __nlink_t;
+typedef long int __off_t;
+typedef __quad_t __loff_t;
+typedef int __pid_t;
+typedef int __ssize_t;
+
+typedef struct
+ {
+ int __val[2];
+ } __fsid_t;
+
+
+typedef int __daddr_t;
+typedef char *__caddr_t;
+typedef long int __time_t;
+typedef long int __swblk_t;
+
+typedef long int __clock_t;
+
+
+typedef unsigned long int __fd_mask;
+
+
+
+
+
+
+
+
+
+
+typedef struct
+ {
+
+ __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask)) ];
+ } __fd_set;
+
+
+typedef int __key_t;
+
+typedef unsigned short int __ipc_pid_t;
+
+
+# 30 "/usr/include/sys/types.h" 2 3
+
+
+
+typedef __u_char u_char;
+typedef __u_short u_short;
+typedef __u_int u_int;
+typedef __u_long u_long;
+typedef __quad_t quad_t;
+typedef __u_quad_t u_quad_t;
+typedef __fsid_t fsid_t;
+
+
+typedef __dev_t dev_t;
+typedef __gid_t gid_t;
+typedef __ino_t ino_t;
+typedef __mode_t mode_t;
+typedef __nlink_t nlink_t;
+typedef __off_t off_t;
+typedef __loff_t loff_t;
+typedef __pid_t pid_t;
+typedef __uid_t uid_t;
+
+
+typedef __ssize_t ssize_t;
+
+
+
+
+typedef __daddr_t daddr_t;
+typedef __caddr_t caddr_t;
+
+
+
+typedef __key_t key_t;
+
+
+
+# 1 "/usr/include/time.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 56 "/usr/include/time.h" 3
+
+
+
+# 68 "/usr/include/time.h" 3
+
+
+
+
+
+
+
+
+
+
+typedef __time_t time_t;
+
+
+
+
+
+# 97 "/usr/include/time.h" 3
+
+
+
+
+
+# 125 "/usr/include/time.h" 3
+
+
+
+# 281 "/usr/include/time.h" 3
+
+
+
+# 67 "/usr/include/sys/types.h" 2 3
+
+
+
+# 1 "/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h" 1 3
+
+
+
+
+
+
+
+
+# 17 "/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 59 "/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 129 "/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+typedef unsigned int size_t;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 256 "/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h" 3
+
+
+
+
+# 288 "/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 70 "/usr/include/sys/types.h" 2 3
+
+
+
+
+typedef unsigned long int ulong;
+typedef unsigned short int ushort;
+typedef unsigned int uint;
+
+
+
+
+# 95 "/usr/include/sys/types.h" 3
+
+
+
+
+
+
+
+
+typedef int int8_t __attribute__ ((__mode__ ( __QI__ ))) ;
+typedef unsigned int u_int8_t __attribute__ ((__mode__ ( __QI__ ))) ;
+typedef int int16_t __attribute__ ((__mode__ ( __HI__ ))) ;
+typedef unsigned int u_int16_t __attribute__ ((__mode__ ( __HI__ ))) ;
+typedef int int32_t __attribute__ ((__mode__ ( __SI__ ))) ;
+typedef unsigned int u_int32_t __attribute__ ((__mode__ ( __SI__ ))) ;
+typedef int int64_t __attribute__ ((__mode__ ( __DI__ ))) ;
+typedef unsigned int u_int64_t __attribute__ ((__mode__ ( __DI__ ))) ;
+
+typedef int register_t __attribute__ ((__mode__ (__word__)));
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/endian.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/bytesex.h" 1 3
+
+
+
+# 34 "/usr/include/endian.h" 2 3
+
+
+
+
+
+
+
+
+
+
+# 123 "/usr/include/sys/types.h" 2 3
+
+
+
+# 1 "/usr/include/sys/select.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/selectbits.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 50 "/usr/include/selectbits.h" 3
+
+# 65 "/usr/include/selectbits.h" 3
+
+
+
+# 31 "/usr/include/sys/select.h" 2 3
+
+
+
+
+# 1 "/usr/include/time.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 56 "/usr/include/time.h" 3
+
+
+
+# 68 "/usr/include/time.h" 3
+
+
+
+# 80 "/usr/include/time.h" 3
+
+
+
+
+
+
+
+
+
+
+
+struct timespec
+ {
+ long int tv_sec;
+ long int tv_nsec;
+ };
+
+
+
+
+
+
+# 125 "/usr/include/time.h" 3
+
+
+
+# 281 "/usr/include/time.h" 3
+
+
+
+# 35 "/usr/include/sys/select.h" 2 3
+
+
+
+
+
+
+
+
+struct timeval;
+
+typedef __fd_mask fd_mask;
+
+
+typedef __fd_set fd_set;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+extern int __select (int __nfds, __fd_set *__readfds,
+ __fd_set *__writefds, __fd_set *__exceptfds,
+ struct timeval *__timeout) ;
+extern int select (int __nfds, __fd_set *__readfds,
+ __fd_set *__writefds, __fd_set *__exceptfds,
+ struct timeval *__timeout) ;
+
+
+
+
+extern int __pselect (int __nfds, __fd_set *__readfds,
+ __fd_set *__writefds, __fd_set *__exceptfds,
+ struct timespec *__timeout) ;
+extern int pselect (int __nfds, __fd_set *__readfds,
+ __fd_set *__writefds, __fd_set *__exceptfds,
+ struct timespec *__timeout) ;
+
+
+
+
+
+# 126 "/usr/include/sys/types.h" 2 3
+
+
+
+
+
+
+
+# 1 "t.c" 2
+
+++ cat t.c
+#include "sys/types.h"
+#include "stdlib.h"
+++ make -f confMakefile t
+typedef long int __off_t;
+typedef __quad_t __loff_t;
+typedef __off_t off_t;
+typedef __loff_t loff_t;
+++ cat t.c
+#include "sys/types.h"
+#include "stdlib.h"
+++ make -f confMakefile t
+typedef int __ssize_t;
+typedef __ssize_t ssize_t;
+typedef unsigned int size_t;
+ size_t __statelen) ;
+ size_t __statelen) ;
+ size_t __statelen, struct random_data *__buf) ;
+ size_t __statelen, struct random_data *__buf) ;
+extern void * malloc (size_t __size) ;
+extern void * realloc (void * __ptr, size_t __size) ;
+extern void * calloc (size_t __nmemb, size_t __size) ;
+extern void * __alloca (size_t __size) ;
+extern void * alloca (size_t __size) ;
+extern void * valloc (size_t __size) ;
+ size_t __nmemb, size_t __size,
+extern void qsort (void * __base, size_t __nmemb, size_t __size,
+ int *__sign, char *__buf, size_t __len) ;
+ int *__sign, char *__buf, size_t __len) ;
+ int *__sign, char *__buf, size_t __len) ;
+ int *__sign, char *__buf, size_t __len) ;
+extern int mblen (__const char *__s, size_t __n) ;
+extern int mbtowc (wchar_t *__pwc, __const char *__s, size_t __n) ;
+extern size_t mbstowcs (wchar_t *__pwcs, __const char *__s, size_t __n) ;
+extern size_t wcstombs (char *__s, __const wchar_t *__pwcs, size_t __n) ;
+++ cat t.c
+#include "sys/types.h"
+++ make -f confMakefile t
+typedef unsigned char __u_char;
+typedef __u_char u_char;
+++ cat t.c
+#include "sys/types.h"
+++ make -f confMakefile t
+typedef unsigned short __u_short;
+typedef __u_short u_short;
+++ cat t.c
+#include "sys/types.h"
+++ make -f confMakefile t
+typedef unsigned int __u_int;
+typedef __u_int __uid_t;
+typedef __u_int __gid_t;
+typedef __u_int __mode_t;
+typedef __u_int __nlink_t;
+typedef __u_int u_int;
+typedef unsigned int u_int8_t __attribute__ ((__mode__ ( __QI__ ))) ;
+typedef unsigned int u_int16_t __attribute__ ((__mode__ ( __HI__ ))) ;
+typedef unsigned int u_int32_t __attribute__ ((__mode__ ( __SI__ ))) ;
+typedef unsigned int u_int64_t __attribute__ ((__mode__ ( __DI__ ))) ;
+++ cat t.c
+#include "sys/types.h"
+++ make -f confMakefile t
+typedef unsigned long __u_long;
+typedef __u_long __ino_t;
+typedef __u_long u_long;
+++ cat t.c
+main() { int one = 1; char* cp = (char*)&one; exit(*cp!=0); }
+++ make -f confMakefile t
+/usr/bin/gcc t.c
+++ make -f confMakefile t
+/usr/bin/gcc t.c -lm
+++ cat t.c
+/* this was lifted from GNU autoconf */
+/* Thanks to Mike Haertel and Jim Avera for this test. */
+#include <sys/types.h>
+#include <fcntl.h>
+#include <sys/mman.h>
+#if defined(__osf__) || defined(_AIX)
+# define valloc malloc
+#endif
+char *valloc(), *malloc();
+
+int
+main()
+{
+ char *buf1, *buf2, *buf3;
+ int i = getpagesize(), j;
+ int i2 = getpagesize()*2;
+ int fd;
+
+ buf1 = (char *)valloc(i2);
+ buf2 = (char *)valloc(i);
+ buf3 = (char *)malloc(i2);
+ for (j = 0; j < i2; ++j)
+ *(buf1 + j) = rand();
+ fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
+ write(fd, buf1, i2);
+ mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
+ for (j = 0; j < i; ++j)
+ if (*(buf1 + j) != *(buf2 + j))
+ exit(1);
+ lseek(fd, (long)i, 0);
+ read(fd, buf2, i); /* read into mapped memory -- file should not change */
+ /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
+ lseek(fd, (long)0, 0);
+ read(fd, buf3, i2);
+ for (j = 0; j < i2; ++j)
+ if (*(buf1 + j) != *(buf3 + j))
+ exit(1);
+ exit(0);
+}
+++ make -f confMakefile t
+/usr/bin/gcc t.c -lm
+++ cat t.c
+#include "sys/mman.h"
+++ make -f confMakefile t
+extern __caddr_t __mmap (__caddr_t __addr, size_t __len, int __prot, int __flags, int __fd, __off_t __offset) ;
+extern __caddr_t mmap (__caddr_t __addr, size_t __len, int __prot, int __flags, int __fd, __off_t __offset) ;
+++ make -f confMakefile t
+/usr/bin/gcc -E t.c
+# 1 "t.c"
+# 1 "/usr/include/stdio.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/libio.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/features.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 117 "/usr/include/features.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/sys/cdefs.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/features.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 222 "/usr/include/features.h" 3
+
+# 22 "/usr/include/sys/cdefs.h" 2 3
+
+
+
+
+
+
+
+
+
+
+# 54 "/usr/include/sys/cdefs.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 86 "/usr/include/sys/cdefs.h" 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 205 "/usr/include/features.h" 2 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 1 "/usr/include/gnu/stubs.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# 219 "/usr/include/features.h" 2 3
+
+
+
+
+# 29 "/usr/include/libio.h" 2 3
+
+
+# 1 "/usr/include/_G_config.h" 1 3
+
+
+
+
+
+
+
+
+# 1 "/usr/include/gnu/types.h" 1 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+typedef unsigned char __u_char;
+typedef unsigned short __u_short;
+typedef unsigned int __u_int;
+typedef unsigned long __u_long;
+
+typedef unsigned long long int __u_quad_t;
+typedef long long int __quad_t;
+# 41 "/usr/include/gnu/types.h" 3
+
+typedef __quad_t *__qaddr_t;
+
+typedef __u_quad_t __dev_t;
+typedef __u_int __uid_t;
+typedef __u_int __gid_t;
+typedef __u_long __ino_t;
+typedef __u_int __mode_t;
+typedef __u_int __nlink_t;
+typedef long int __off_t;
+typedef __quad_t __loff_t;
+typedef int __pid_t;
+typedef int __ssize_t;
+
+typedef struct
+ {
+ int __val[2];
+ } __fsid_t;
+
+
+typedef int __daddr_t;
+typedef char *__caddr_t;
+typedef long int __time_t;
+typedef long int __swblk_t;
+
+typedef long int __clock_t;
+
+
+typedef unsigned long int __fd_mask;
+
+
+
+
+
+
+
+
+
+
+typedef struct
+ {
+
+ __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask)) ];
+ } __fd_set;
+
+
+typedef int __key_t;
+
+typedef unsigned short int __ipc_pid_t;
+
+
+# 9 "/usr
(Patch may be truncated, please check the link at the top of this post.)