#!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 1999-07-07 23:45 PDT by . # Source directory was `/net/knick/project/reb/src/base/tar'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 8221 -r--r--r-- tar-1.13/README # 10 -rw-rw-r-- tar-1.13/stamp-h.in # 11651 -r--r--r-- tar-1.13/ABOUT-NLS # 732 -r--r--r-- tar-1.13/AUTHORS # 85570 -r--r--r-- tar-1.13/BACKLOG # 17989 -r--r--r-- tar-1.13/COPYING # 50363 -rw-rw-r-- tar-1.13/ChangeLog # 7831 -r--r--r-- tar-1.13/INSTALL # 2484 -r--r--r-- tar-1.13/Makefile.am # 13933 -rw-rw-r-- tar-1.13/Makefile.in # 7340 -r--r--r-- tar-1.13/NEWS # 18002 -r--r--r-- tar-1.13/THANKS # 809 -r--r--r-- tar-1.13/TODO # 2571 -r--r--r-- tar-1.13/acconfig.h # 31952 -rw-rw-r-- tar-1.13/acinclude.m4 # 37120 -rw-rw-r-- tar-1.13/aclocal.m4 # 29612 -r--r--r-- tar-1.13/config.guess # 11992 -rw-rw-r-- tar-1.13/config.h.in # 20453 -r--r--r-- tar-1.13/config.sub # 187588 -rwxrwxr-x tar-1.13/configure # 8182 -r--r--r-- tar-1.13/configure.in # 5603 -r-xr-xr-x tar-1.13/install-sh # 6274 -r-xr-xr-x tar-1.13/missing # 722 -r-xr-xr-x tar-1.13/mkinstalldirs # 5015 -r--r--r-- tar-1.13/PORTS # 30361 -r--r--r-- tar-1.13/rebox.el # 5297 -r--r--r-- tar-1.13/doc/ChangeLog # 2268 -r--r--r-- tar-1.13/doc/Makefile.am # 11443 -rw-rw-r-- tar-1.13/doc/Makefile.in # 2679 -r-xr-xr-x tar-1.13/doc/mdate-sh # 62 -rw-rw-r-- tar-1.13/doc/stamp-vti # 194985 -r--r--r-- tar-1.13/doc/texinfo.tex # 62 -rw-rw-r-- tar-1.13/doc/version.texi # 354435 -r--r--r-- tar-1.13/doc/tar.texi # 2652 -r-xr-xr-x tar-1.13/doc/convtexi.pl # 16892 -r--r--r-- tar-1.13/doc/getdate.texi # 9241 -rw-rw-r-- tar-1.13/doc/header.texi # 5082 -r--r--r-- tar-1.13/doc/tar.info # 49886 -r--r--r-- tar-1.13/doc/tar.info-1 # 48095 -r--r--r-- tar-1.13/doc/tar.info-2 # 46870 -r--r--r-- tar-1.13/doc/tar.info-3 # 50628 -r--r--r-- tar-1.13/doc/tar.info-4 # 46417 -r--r--r-- tar-1.13/doc/tar.info-5 # 46857 -r--r--r-- tar-1.13/doc/tar.info-6 # 46626 -r--r--r-- tar-1.13/doc/tar.info-7 # 14724 -r--r--r-- tar-1.13/doc/tar.info-8 # 8095 -r--r--r-- tar-1.13/lib/ChangeLog # 1819 -r--r--r-- tar-1.13/lib/Makefile.am # 19451 -rw-rw-r-- tar-1.13/lib/Makefile.in # 14245 -r--r--r-- tar-1.13/lib/alloca.c # 4226 -r--r--r-- tar-1.13/lib/execlp.c # 2111 -r--r--r-- tar-1.13/lib/fileblocks.c # 5663 -r--r--r-- tar-1.13/lib/fnmatch.c # 1676 -r--r--r-- tar-1.13/lib/ftruncate.c # 54651 -rw-rw-r-- tar-1.13/lib/getdate.c # 1478 -r--r--r-- tar-1.13/lib/lchown.c # 1132 -r--r--r-- tar-1.13/lib/malloc.c # 940 -r--r--r-- tar-1.13/lib/memset.c # 2927 -r--r--r-- tar-1.13/lib/mkdir.c # 1274 -r--r--r-- tar-1.13/lib/realloc.c # 2813 -r--r--r-- tar-1.13/lib/rename.c # 1942 -r--r--r-- tar-1.13/lib/rmdir.c # 2629 -r--r--r-- tar-1.13/lib/strstr.c # 11501 -r--r--r-- tar-1.13/lib/strtol.c # 891 -r--r--r-- tar-1.13/lib/strtoul.c # 1104 -r--r--r-- tar-1.13/lib/strtoull.c # 1586 -r--r--r-- tar-1.13/lib/strtoumax.c # 2123 -r--r--r-- tar-1.13/lib/utime.c # 2629 -r--r--r-- tar-1.13/lib/addext.c # 8390 -r--r--r-- tar-1.13/lib/argmatch.c # 7426 -r--r--r-- tar-1.13/lib/backupfile.c # 1658 -r--r--r-- tar-1.13/lib/basename.c # 6356 -r--r--r-- tar-1.13/lib/error.c # 3019 -r--r--r-- tar-1.13/lib/exclude.c # 1836 -r--r--r-- tar-1.13/lib/full-write.c # 25769 -r--r--r-- tar-1.13/lib/getdate.y # 30070 -r--r--r-- tar-1.13/lib/getopt.c # 4550 -r--r--r-- tar-1.13/lib/getopt1.c # 12177 -r--r--r-- tar-1.13/lib/modechange.c # 3028 -r--r--r-- tar-1.13/lib/msleep.c # 9045 -r--r--r-- tar-1.13/lib/quotearg.c # 1487 -r--r--r-- tar-1.13/lib/safe-read.c # 1908 -r--r--r-- tar-1.13/lib/xgetcwd.c # 2731 -r--r--r-- tar-1.13/lib/xmalloc.c # 1318 -r--r--r-- tar-1.13/lib/xstrdup.c # 5669 -r--r--r-- tar-1.13/lib/xstrtol.c # 110 -r--r--r-- tar-1.13/lib/xstrtoul.c # 1042 -r--r--r-- tar-1.13/lib/xstrtoumax.c # 4586 -r--r--r-- tar-1.13/lib/argmatch.h # 1901 -r--r--r-- tar-1.13/lib/backupfile.h # 195 -r--r--r-- tar-1.13/lib/basename.h # 2672 -r--r--r-- tar-1.13/lib/error.h # 1306 -r--r--r-- tar-1.13/lib/exclude.h # 2436 -r--r--r-- tar-1.13/lib/fnmatch.h # 5861 -r--r--r-- tar-1.13/lib/getopt.h # 1301 -r--r--r-- tar-1.13/lib/getdate.h # 626 -r--r--r-- tar-1.13/lib/getpagesize.h # 188 -r--r--r-- tar-1.13/lib/lchown.h # 2446 -r--r--r-- tar-1.13/lib/modechange.h # 1720 -r--r--r-- tar-1.13/lib/pathmax.h # 4111 -r--r--r-- tar-1.13/lib/quotearg.h # 281 -r--r--r-- tar-1.13/lib/safe-read.h # 2003 -r--r--r-- tar-1.13/lib/xalloc.h # 1693 -r--r--r-- tar-1.13/lib/xstrtol.h # 15118 -r--r--r-- tar-1.13/lib/mktime.c # 1440 -r--r--r-- tar-1.13/lib/stpcpy.c # 35362 -r--r--r-- tar-1.13/intl/ChangeLog # 6512 -r--r--r-- tar-1.13/intl/Makefile.in # 2693 -r--r--r-- tar-1.13/intl/linux-msg.sed # 2421 -r--r--r-- tar-1.13/intl/po2tbl.sed.in # 2814 -r--r--r-- tar-1.13/intl/xopen-msg.sed # 3205 -r--r--r-- tar-1.13/intl/gettext.h # 2182 -r--r--r-- tar-1.13/intl/gettextP.h # 1787 -r--r--r-- tar-1.13/intl/hash-string.h # 5733 -r--r--r-- tar-1.13/intl/libgettext.h # 2413 -r--r--r-- tar-1.13/intl/loadinfo.h # 5331 -r--r--r-- tar-1.13/intl/bindtextdom.c # 16512 -r--r--r-- tar-1.13/intl/dcgettext.c # 1786 -r--r--r-- tar-1.13/intl/dgettext.c # 1939 -r--r--r-- tar-1.13/intl/gettext.c # 5852 -r--r--r-- tar-1.13/intl/finddomain.c # 6117 -r--r--r-- tar-1.13/intl/loadmsgcat.c # 10101 -r--r--r-- tar-1.13/intl/localealias.c # 3265 -r--r--r-- tar-1.13/intl/textdomain.c # 10404 -r--r--r-- tar-1.13/intl/l10nflist.c # 4616 -r--r--r-- tar-1.13/intl/explodename.c # 1646 -r--r--r-- tar-1.13/intl/intl-compat.c # 6625 -r--r--r-- tar-1.13/intl/cat-compat.c # 41 -r--r--r-- tar-1.13/intl/VERSION # 332 -r--r--r-- tar-1.13/m4/Makefile.am # 4988 -rw-rw-r-- tar-1.13/m4/Makefile.in # 2980 -r--r--r-- tar-1.13/m4/ccstdc.m4 # 984 -r--r--r-- tar-1.13/m4/d-ino.m4 # 10582 -r--r--r-- tar-1.13/m4/gettext.m4 # 621 -r--r--r-- tar-1.13/m4/inttypes_h.m4 # 615 -r--r--r-- tar-1.13/m4/isc-posix.m4 # 389 -r--r--r-- tar-1.13/m4/jm-mktime.m4 # 3611 -r--r--r-- tar-1.13/m4/largefile.m4 # 884 -r--r--r-- tar-1.13/m4/lcmessage.m4 # 1016 -r--r--r-- tar-1.13/m4/malloc.m4 # 3959 -r--r--r-- tar-1.13/m4/mktime.m4 # 1410 -r--r--r-- tar-1.13/m4/progtest.m4 # 1043 -r--r--r-- tar-1.13/m4/realloc.m4 # 583 -r--r--r-- tar-1.13/m4/uintmax_t.m4 # 466 -r--r--r-- tar-1.13/m4/ulonglong.m4 # 971 -r--r--r-- tar-1.13/m4/utimbuf.m4 # 329 -r--r--r-- tar-1.13/m4/utime.m4 # 882 -r--r--r-- tar-1.13/m4/utimes.m4 # 627 -r--r--r-- tar-1.13/m4/xstrtoumax.m4 # 156646 -r--r--r-- tar-1.13/src/ChangeLog # 1385 -r--r--r-- tar-1.13/src/Makefile.am # 15268 -rw-rw-r-- tar-1.13/src/Makefile.in # 1529 -r--r--r-- tar-1.13/src/ansi2knr.1 # 18704 -r--r--r-- tar-1.13/src/ansi2knr.c # 10934 -r--r--r-- tar-1.13/src/rmt.c # 4777 -r--r--r-- tar-1.13/src/arith.c # 44605 -r--r--r-- tar-1.13/src/buffer.c # 22294 -r--r--r-- tar-1.13/src/compare.c # 41901 -r--r--r-- tar-1.13/src/create.c # 8656 -r--r--r-- tar-1.13/src/delete.c # 28412 -r--r--r-- tar-1.13/src/extract.c # 19282 -r--r--r-- tar-1.13/src/incremen.c # 28260 -r--r--r-- tar-1.13/src/list.c # 3643 -r--r--r-- tar-1.13/src/mangle.c # 12123 -r--r--r-- tar-1.13/src/misc.c # 20821 -r--r--r-- tar-1.13/src/names.c # 5730 -r--r--r-- tar-1.13/src/open3.c # 19180 -r--r--r-- tar-1.13/src/rtapelib.c # 34553 -r--r--r-- tar-1.13/src/tar.c # 5762 -r--r--r-- tar-1.13/src/update.c # 4330 -r--r--r-- tar-1.13/src/arith.h # 16028 -r--r--r-- tar-1.13/src/common.h # 3513 -r--r--r-- tar-1.13/src/rmt.h # 13735 -r--r--r-- tar-1.13/src/system.h # 8960 -r--r--r-- tar-1.13/src/tar.h # 6878 -r--r--r-- tar-1.13/scripts/ChangeLog # 869 -r--r--r-- tar-1.13/scripts/Makefile.am # 5653 -rw-rw-r-- tar-1.13/scripts/Makefile.in # 183 -r--r--r-- tar-1.13/scripts/WARNING # 2678 -r--r--r-- tar-1.13/scripts/backup-specs # 3238 -r-xr-xr-x tar-1.13/scripts/dump-remind # 6526 -r-xr-xr-x tar-1.13/scripts/level-0 # 6646 -r-xr-xr-x tar-1.13/scripts/level-1 # 1015 -r--r--r-- tar-1.13/scripts/weekly.new # 6898 -r--r--r-- tar-1.13/po/Makefile.in.in # 437 -r--r--r-- tar-1.13/po/POTFILES.in # 29776 -rw-rw-r-- tar-1.13/po/tar.pot # 10 -rw-rw-r-- tar-1.13/po/stamp-cat-id # 46645 -rw-rw-r-- tar-1.13/po/cs.po # 50112 -rw-rw-r-- tar-1.13/po/de.po # 76252 -rw-rw-r-- tar-1.13/po/es.po # 50653 -rw-rw-r-- tar-1.13/po/fr.po # 47305 -rw-rw-r-- tar-1.13/po/it.po # 42202 -rw-rw-r-- tar-1.13/po/ko.po # 48210 -rw-rw-r-- tar-1.13/po/nl.po # 45775 -rw-rw-r-- tar-1.13/po/no.po # 46418 -rw-rw-r-- tar-1.13/po/pl.po # 52500 -rw-rw-r-- tar-1.13/po/pt.po # 46907 -rw-rw-r-- tar-1.13/po/ru.po # 48638 -rw-rw-r-- tar-1.13/po/sl.po # 45790 -rw-rw-r-- tar-1.13/po/sv.po # 31428 -rw-rw-r-- tar-1.13/po/cs.gmo # 31757 -rw-rw-r-- tar-1.13/po/de.gmo # 32838 -rw-rw-r-- tar-1.13/po/es.gmo # 34841 -rw-rw-r-- tar-1.13/po/fr.gmo # 29020 -rw-rw-r-- tar-1.13/po/it.gmo # 22638 -rw-rw-r-- tar-1.13/po/ko.gmo # 31056 -rw-rw-r-- tar-1.13/po/nl.gmo # 30528 -rw-rw-r-- tar-1.13/po/no.gmo # 30543 -rw-rw-r-- tar-1.13/po/pl.gmo # 16905 -rw-rw-r-- tar-1.13/po/pt.gmo # 31588 -rw-rw-r-- tar-1.13/po/ru.gmo # 30723 -rw-rw-r-- tar-1.13/po/sl.gmo # 30505 -rw-rw-r-- tar-1.13/po/sv.gmo # 18227 -rw-rw-r-- tar-1.13/po/cat-id-tbl.c # 4898 -r--r--r-- tar-1.13/tests/ChangeLog # 1429 -r--r--r-- tar-1.13/tests/Makefile.am # 10051 -rw-rw-r-- tar-1.13/tests/Makefile.in # 196 -r-xr-xr-x tar-1.13/tests/preset.in # 4704 -r--r--r-- tar-1.13/tests/genfile.c # 289 -r-xr-xr-x tar-1.13/tests/after # 230 -r-xr-xr-x tar-1.13/tests/before # 545 -r-xr-xr-x tar-1.13/tests/version.sh # 1223 -r-xr-xr-x tar-1.13/tests/ignfail.sh # 218 -r-xr-xr-x tar-1.13/tests/extrac01.sh # 227 -r-xr-xr-x tar-1.13/tests/extrac02.sh # 269 -r-xr-xr-x tar-1.13/tests/extrac03.sh # 203 -r-xr-xr-x tar-1.13/tests/old.sh # 713 -r-xr-xr-x tar-1.13/tests/volume.sh # 268 -r-xr-xr-x tar-1.13/tests/gzip.sh # 199 -r-xr-xr-x tar-1.13/tests/append.sh # 265 -r-xr-xr-x tar-1.13/tests/delete01.sh # 315 -r-xr-xr-x tar-1.13/tests/delete02.sh # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi touch -am 1231235999 $$.touch >/dev/null 2>&1 if test ! -f 1231235999 && test -f $$.touch; then shar_touch=touch else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 1231235999 $$.touch # if mkdir _sh15121; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= tar-1.13/README ============== if test ! -d 'tar-1.13'; then $echo 'x -' 'creating directory' 'tar-1.13' mkdir 'tar-1.13' fi if test -f 'tar-1.13/README' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/README' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/README' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/README' && Please glance through *all* sections of this `README' file before starting configuration. Also make sure you read files `ABOUT-NLS' and `INSTALL' if you are not familiar with them already. X If you got the `tar' distribution in `shar' format, timestamps ought to be properly restored, do not ignore such complaints at `unshar' time. X GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. It includes multivolume support, the ability to archive sparse files, automatic archive compression/decompression, remote archives and special features that allow `tar' to be used for incremental and full backups. This distribution also includes `rmt', the remote tape server. The `mt' tape drive control program is in the GNU `cpio' distribution. X GNU `tar' is derived from John Gilmore's public domain `tar'. X See file `ABOUT-NLS' for how to customize this program to your language. See file `BACKLOG' for a summary of pending mail and articles. See file `COPYING' for copying conditions. See file `INSTALL' for compilation and installation instructions. See file `PORTS' for various ports of GNU tar to non-Unix systems. See file `NEWS' for a list of major changes in the current release. See file `THANKS' for a list of contributors. X Besides those configure options documented in files `INSTALL' and `ABOUT-NLS', a few extra options may be accepted after `./configure': X * `--with-dmalloc' is a debugging option for looking at memory management problems, it prerequires Gray Watson's package, which is available as `ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz'. X The default archive device is now `stdin' on read and `stdout' on write. The installer can still override this by presetting `DEFAULT_ARCHIVE' in the environment before configuring (the behavior of `-[0-7]' or `-[0-7]lmh' options in `tar' are then derived automatically). Similarly, `DEFAULT_BLOCKING' can be preset to something else than 20. X For comprehensive modifications to GNU tar, you might need tools beyond those used in simple installations. Fully install GNU m4 1.4 first, and only then, Autoconf 2.13 or later. Install Perl, then Automake 1.4 or later. You might need Bison 1.26 or later, and GNU tar itself. All are available on GNU archive sites, like in ftp://ftp.gnu.org/pub/gnu/. X Send bug reports to `tar-bugs@gnu.org'. (Beware, old-timers: it is `@gnu', not `@prep'; and not `bug-gnu-utils' anymore.) A bug report is an adequate description of the problem: your input, what you expected, what you got, and why this is wrong. Diffs are welcome, but they only describe a solution, from which the problem might be uneasy to infer. If needed, submit actual data files with your report. Small data files are preferred. Big files may sometimes be necessary, but do not send them to the report address; rather take special arrangement with the maintainer. X Your feedback will help us to make a better and more portable package. Consider documentation errors as bugs, and report them as such. If you develop anything pertaining to `tar' or have suggestions, let us know and share your findings by writing at `tar-forum@iro.umontreal.ca'. X X.--------------------. | Installation hints | `--------------------' X Here are a few hints which might help installing `tar' on some systems. X * Static linking. X Some platform will, by default, prepare a smaller `tar' executable which depends on shared libraries. Since GNU `tar' may be used for system-level backups and disaster recovery, installers might prefer to force static linking, making a bigger `tar' executable maybe, but able to work standalone, in situations where shared libraries are not available. The way to achieve static linking varies between systems. Set LDFLAGS to a value from the table below, before configuration (see `INSTALL'). X X Platform Compiler LDFLAGS X X (any) Gnu C -static X AIX (vendor) "-bnso -bI:/lib/syscalls.exp" X HPUX (vendor) -Wl,-a,archive X IRIX (vendor) -non_shared X OSF (vendor) -non_shared X SCO 3.2v5 (vendor) -dn X Solaris (vendor) -Bstatic X SunOS (vendor) -Bstatic X * Failed `incremen.sh'. X In an NFS environment, lack of synchronisation between machine clocks might create difficulties to any tool comparing dates and file timestamps, like `tar' in incremental dumps. This has been a recurrent problem in GNU Makefiles for the last few years. We would like a general solution. X * BSD compatibility matters. X Set LIBS to `-lbsd' before configuration (see `INSTALL') if the linker complains about undefined `valloc' (AIX) or `bsd_ioctl' (Slackware). Also set CPPFLAGS to `-I/usr/include/bsd/sys' before configuration to solve dirent problems (NeXT), or to `-I/usr/include/bsd' if is not found (Slackware). X * `union wait' problems. X Configuration of `union wait' does not always take the best decision. If you have this problem, edit file `config.cache' after configuration, find the line about `tar_cv_header_union_wait', change `yes' by `no' or vice-versa, execute `./config.status', then launch `make'. X * `%lld' unsupported in `printf'. X GNU C has `long long', but the underneath C library might not support the `%lld' format. If you have this problem, edit file `config.cache' after configuration, find the line about `ac_cv_sizeof_long_long, change `8' by `0', execute `./config.status', then launch `make'. X * FreeBSD users -- `configure' fails. X It has been reported that `configure' does not run on FreeBSD 2.1.7, because of a buggy `sh'. It works using `bash', however. X * ISC users -- `S_*' symbols undefined. X On ISC 4.1mu, POSIX environment, set CFLAGS to `-posix' and CPPFLAGS to `-D_SYSV3' before configuration (see `INSTALL'). This will trigger the definition of a few `S_' prefixed symbols from . X * Ultrix users -- broken `make'. X It seems that Ultrix make does not correctly handle shell commands having logical connectives in them. Use `s5make' if you have it, try `PROG_ENV=SYSTEM_FIVE make' (works on Ultrix 4.4), or install GNU Make. X X.------------------. | Special topics. | `------------------' X Here are a few special matters about GNU `tar', not related to build matters. See previous section for such. X * File attributes. X About *security*, it is probable that future releases of `tar' will have some behaviour changed. There are many pending suggestions to choose from. Today, extracting an archive not being `root', `tar' will restore suid/sgid bits on files but owned by the extracting user. `root' automatically gets a lot of special priviledges, `-p' might later become required to get them. X GNU `tar' does not properly restore symlink attributes. Various systems implement flavours of symbolic links showing different behaviour and properties. We did not successfully sorted all these out yet. Currently, the `lchown' call will be used if available, but that's all. X * POSIX compliance. X GNU `tar' implements an early draft of the POSIX 1003.1 `ustar' standard which is different from the final standard. This will be progressively corrected over the incoming few years. Don't be mislead by the mere existence of the --posix option. Later releases will become able to read truly POSIX archives, and also to produce them under option. (Also, if you look at the internals, don't take the GNU extensions you see for granted, as they are planned to change.) GNU tar 2.0 will produce POSIX archives by default, but there is a long way before we get there. X * What's next? X The emphasis from 1.11.2 to 1.12 has been on solving the main portability, execution or usability bugs. This was accompanied all over with an internal cleanup in the sources, and the reassembly of a `tar' manual. X The `BACKLOG' file shows an approximative priorisation of the many pending problems and suggestions. Besides pending problems and all other matters listed above, the cleanup is planned to continue and extend to the general organisation of the code, preparing a long time in advance for a possible merge of the `cpio' and `tar' distributions, into some common `paxutils'. We also want to address some long-awaited performance issues (for example: double buffering) or enhancements (for example: per-file compression). SHAR_EOF $shar_touch -am 0628192699 'tar-1.13/README' && chmod 0444 'tar-1.13/README' || $echo 'restore of' 'tar-1.13/README' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/README:' 'MD5 check failed' 1b5d2394c13d2c31596f901c029d1319 tar-1.13/README SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/README'`" test 8221 -eq "$shar_count" || $echo 'tar-1.13/README:' 'original size' '8221,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/stamp-h.in ============== if test -f 'tar-1.13/stamp-h.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/stamp-h.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/stamp-h.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/stamp-h.in' && timestamp SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/stamp-h.in' && chmod 0664 'tar-1.13/stamp-h.in' || $echo 'restore of' 'tar-1.13/stamp-h.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/stamp-h.in:' 'MD5 check failed' 1ded054093de910d9786c62bc4fe8cc6 tar-1.13/stamp-h.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/stamp-h.in'`" test 10 -eq "$shar_count" || $echo 'tar-1.13/stamp-h.in:' 'original size' '10,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/ABOUT-NLS ============== if test -f 'tar-1.13/ABOUT-NLS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/ABOUT-NLS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/ABOUT-NLS' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/ABOUT-NLS' && Notes on the Free Translation Project ************************************* X X Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that will gradually become able to speak many languages. A few packages already provide translations for their messages. X X If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do *not* need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. X X Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work at translations should contact the appropriate team. X X When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. X One advise in advance ===================== X X If you want to exploit the full power of internationalization, you should configure it using X X ./configure --with-included-gettext X to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias or message inheritance) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. X X So you need not provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. X INSTALL Matters =============== X X Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. X X By default, this package will be installed to allow translation of messages. It will automatically detect whether the system provides usable `catgets' (if using this is selected by the installer) or `gettext' functions. If neither is available, the GNU `gettext' own library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is *not* required. Installers may use special options at configuration time for changing the default behaviour. The commands: X X ./configure --with-included-gettext X ./configure --with-catgets X ./configure --disable-nls X will respectively bypass any pre-existing `catgets' or `gettext' to use the internationalizing routines provided within this package, enable the use of the `catgets' functions (if found on the locale system), or else, *totally* disable translation of messages. X X When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might be not what is desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use X X ./configure --with-included-gettext X to prevent auto-detection. X X By default the configuration process will not test for the `catgets' function and therefore they will not be used. The reasons are already given above: the emulation on top of `catgets' cannot provide all the extensions provided by the GNU `gettext' library. If you nevertheless want to use the `catgets' functions use X X ./configure --with-catgets X to enable the test for `catgets' (this causes no harm if `catgets' is not available on your system). If you really select this option we would like to hear about the reasons because we cannot think of any good one ourself. X X Internationalized packages have usually many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. X Using This Package ================== X X As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate ISO 639 `LL' two-letter code prior to using the programs in the package. For example, let's suppose that you speak German. At the shell prompt, merely execute `setenv LANG de' (in `csh'), `export LANG; LANG=de' (in `sh') or `export LANG=de' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. X X An operating system might already offer message localization for many of its programs, while other programs have been installed locally with the full capabilities of GNU `gettext'. Just using `gettext' extended syntax for `LANG' would break proper localization of already available operating system programs. In this case, users should set both `LANGUAGE' and `LANG' variables in their environment, as programs using GNU `gettext' give preference to `LANGUAGE'. For example, some Swedish users would rather read translations in German than English for when Swedish is not available. This is easily accomplished by setting `LANGUAGE' to `sv:de' while leaving `LANG' to `sv'. X Translating Teams ================= X X For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list, courtesy of Linux International. You may reach your translation team at the address `LL@li.org', replacing LL by the two-letter ISO 639 code for your language. Language codes are *not* the same as the country codes given in ISO 3166. The following translation teams exist, as of December 1997: X X Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en', X Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian X `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja', X Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish X `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es', X Swedish `sv', and Turkish `tr'. X For example, you may reach the Chinese translation team by writing to `zh@li.org'. X X If you'd like to volunteer to *work* at translating messages, you should become a member of the translating team for your own language. The subscribing address is *not* the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: X X subscribe X X Keep in mind that team members are expected to participate *actively* in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. X X The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. X Available Packages ================== X X Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of December 1997. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination. X X Ready PO files cs da de en es fi fr it ja ko nl no pl pt ru sl sv X .----------------------------------------------------. X bash | [] [] [] | 3 X bison | [] [] [] | 3 X clisp | [] [] [] [] | 4 X cpio | [] [] [] [] [] [] | 6 X diffutils | [] [] [] [] [] | 5 X enscript | [] [] [] [] [] [] | 6 X fileutils | [] [] [] [] [] [] [] [] [] [] | 10 X findutils | [] [] [] [] [] [] [] [] [] | 9 X flex | [] [] [] [] | 4 X gcal | [] [] [] [] [] | 5 X gettext | [] [] [] [] [] [] [] [] [] [] [] | 12 X grep | [] [] [] [] [] [] [] [] [] [] | 10 X hello | [] [] [] [] [] [] [] [] [] [] [] | 11 X id-utils | [] [] [] | 3 X indent | [] [] [] [] [] | 5 X libc | [] [] [] [] [] [] [] | 7 X m4 | [] [] [] [] [] [] | 6 X make | [] [] [] [] [] [] | 6 X music | [] [] | 2 X ptx | [] [] [] [] [] [] [] [] | 8 X recode | [] [] [] [] [] [] [] [] [] | 9 X sh-utils | [] [] [] [] [] [] [] [] | 8 X sharutils | [] [] [] [] [] [] | 6 X tar | [] [] [] [] [] [] [] [] [] [] [] | 11 X texinfo | [] [] [] | 3 X textutils | [] [] [] [] [] [] [] [] [] | 9 X wdiff | [] [] [] [] [] [] [] [] | 8 X `----------------------------------------------------' X 17 languages cs da de en es fi fr it ja ko nl no pl pt ru sl sv X 27 packages 6 4 25 1 18 1 26 2 1 12 20 9 19 7 4 7 17 179 X X Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. X X For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. X X If December 1997 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. X SHAR_EOF $shar_touch -am 0430230598 'tar-1.13/ABOUT-NLS' && chmod 0444 'tar-1.13/ABOUT-NLS' || $echo 'restore of' 'tar-1.13/ABOUT-NLS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/ABOUT-NLS:' 'MD5 check failed' ef11564ccd2881c65a06c9b0d6f7deec tar-1.13/ABOUT-NLS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/ABOUT-NLS'`" test 11651 -eq "$shar_count" || $echo 'tar-1.13/ABOUT-NLS:' 'original size' '11651,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/AUTHORS ============== if test -f 'tar-1.13/AUTHORS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/AUTHORS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/AUTHORS' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/AUTHORS' && Authors of GNU tar. X The following contributions warranted legal paper exchanges with the Free Software Foundation. Also see files ChangeLog and THANKS. X TAR Jay Fenlason Assigns his changes. X TAR Richard E Salz 1993-03-11 Disclaims changes to getdate.y. X TAR MANUAL (?) Amy Gorin (US 1963) 1995-01-10 Assigns the Tar Manual. X TAR Francois Pinard Canada 1949 1996-02-01 Assigns past and future changes. X TAR Melissa Weisshaus US 1966 1997-04-09 Assigns changes to the manual and future changes. melissa@gnu.ai.mit.edu X TAR Thomas Michael Innis Bushnell US 1967 1997-04-09 Assigns changes. thomas@gnu.ai.mit.edu X TAR Thomas Michael Innis Bushnell US 1967 1997-04-09 Assigns changes to manual. thomas@gnu.ai.mit.edu SHAR_EOF $shar_touch -am 0418123297 'tar-1.13/AUTHORS' && chmod 0444 'tar-1.13/AUTHORS' || $echo 'restore of' 'tar-1.13/AUTHORS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/AUTHORS:' 'MD5 check failed' ce4d3aaf246049b3c48382c69d234b84 tar-1.13/AUTHORS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/AUTHORS'`" test 732 -eq "$shar_count" || $echo 'tar-1.13/AUTHORS:' 'original size' '732,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/BACKLOG ============== if test -f 'tar-1.13/BACKLOG' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/BACKLOG' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/BACKLOG' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/BACKLOG M(R!3=6UM87)Y(&]F('!E;F1I;F<@96UA:6P@9F]R($=.52!T87(@,2XQ,BX* M(R!,87-T('5P9&%T960@;VX@,3DY-RTP-"TR-2X*"B,@5&AI2!E M>'!E8W0*(R!S;VUE(&9E961B86-K(&9R;VT@;64N("!5;G1I;"!T:&5N+"!P M;&5A7,@<')A8W1I M8V%L+"!N;W(@9F%I2P@=&\@=VET:&AO;&0@ M80HC(')E;&5AG5D;SH@4F5;,ETZ(%EO=7(@5]S=')I;F<@86YD"C$P+B`Q M.3DU+3`V+3$Y(%)O8F5R="!,:7!E.B!293H@4&%T8V@@=&\@9VYU('1A<@HQ M,2X@,3DY-2TP-RTP-2!3=&5F86X@0F]H;3H@4F4Z($)U9R!I;B!T87(M,2XQ M,2XX"C$R+B`Q.3DU+3`Y+3(P($IO97)G96X@2&%E9V&5L($AA8F5R;6%N;CH@0G5G M(&EN(&=N=2UT87(@,2TQ,2XR"C$X+B`Q.3DV+3`T+3$Y($EA;B!*86-K6]U(&9I M;F0@=&AE('-Y;6)O;&EC(&QI;FMS('1O(&9I;&4*(#(N(#$Y.3$M,3(M,#8@ M4&%U;"!%9V=E2=S(')E<&]R=&5D(&)U9W,@:6X@1TY5('1A M`H@."X@,3DY-BTP.2TP-"!Z=VEC:WDZ(%)E.B!;1G)A M;N=O:7,@4&EN87)D(#QP:6YA2`\8VIF0&YE=&%X',N8V\*,3(N(#$Y.38M,3`M M,38@4FEC:&%R9"!3=&%L;&UA;CH@4$]325@@8V]M<&QI86YC92!T97-TF%R+D1O0U,N554N4T4Z(%)E M.B!T87(@,2XQ,2XR"B`W*B`Q.3DT+3`Y+3$U(&MW>FA`9VYU+F%I+FUI="YE M9'4Z(&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H@4F4Z($=.52!T87(@,2XQ,2XQ-"!P3H@0V]M<&EL92!E"YC M(&EN('1A7-I8W,N=6)C+F-A.B!'3E4@=&%R(#$N,3$N,CH@&%N9')E($]L:79A.B!293H@1TY5(%1A&%N9&5R(%8N($QU:WEA;F]V.B!293H@02!F96%T M=7)E('1O(&%D9`H*&D*(#0N(#$Y.33H@4F4Z(%5N9&5S:7)A8FQE(&)E:&%V:6]R(&]F('1A M<@H@,RX@,3DY-RTP-"TQ,"!"0H*2!3=6)S>7-T96TZ(%)E M='5R;F5D(&UA:6PZ(%5S97(@=6YK;F]W;@H@-BX@,3DY-RTP-"TR,"!-86EL M($1E;&EV97)Y(%-U8G-Y2!3=6)S>7-T96TZ(%)E='5R;F5D(&UA:6PZ(%5S97(@=6YK M;F]W;@H@.2X@,3DY-RTP-"TR,R!-86EL($1E;&EV97)Y(%-U8G-Y2!3=6)S>7-T96TZ(%)E='5R;F5D(&UA M:6PZ($AO&5S"B!T ` end SHAR_EOF $shar_touch -am 0425172197 'tar-1.13/BACKLOG' && chmod 0444 'tar-1.13/BACKLOG' || $echo 'restore of' 'tar-1.13/BACKLOG' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/BACKLOG:' 'MD5 check failed' 0548a1b38f507adaffdda6e2613ad445 tar-1.13/BACKLOG SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/BACKLOG'`" test 85570 -eq "$shar_count" || $echo 'tar-1.13/BACKLOG:' 'original size' '85570,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/COPYING ============== if test -f 'tar-1.13/COPYING' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/COPYING' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/COPYING' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/COPYING' && X GNU GENERAL PUBLIC LICENSE X Version 2, June 1991 X X Copyright (C) 1989, 1991 Free Software Foundation, Inc. X 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA X Everyone is permitted to copy and distribute verbatim copies X of this license document, but changing it is not allowed. X X Preamble X X The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. X X When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. X X To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. X X For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. X X We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. X X Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. X X Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. X X The precise terms and conditions for copying, distribution and modification follow. X X GNU GENERAL PUBLIC LICENSE X TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION X X 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". X Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. X X 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. X You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. X X 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: X X a) You must cause the modified files to carry prominent notices X stating that you changed the files and the date of any change. X X b) You must cause any work that you distribute or publish, that in X whole or in part contains or is derived from the Program or any X part thereof, to be licensed as a whole at no charge to all third X parties under the terms of this License. X X c) If the modified program normally reads commands interactively X when run, you must cause it, when started running for such X interactive use in the most ordinary way, to print or display an X announcement including an appropriate copyright notice and a X notice that there is no warranty (or else, saying that you provide X a warranty) and that users may redistribute the program under X these conditions, and telling the user how to view a copy of this X License. (Exception: if the Program itself is interactive but X does not normally print such an announcement, your work based on X the Program is not required to print an announcement.) X These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. X Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. X In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. X X 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: X X a) Accompany it with the complete corresponding machine-readable X source code, which must be distributed under the terms of Sections X 1 and 2 above on a medium customarily used for software interchange; or, X X b) Accompany it with a written offer, valid for at least three X years, to give any third party, for a charge no more than your X cost of physically performing source distribution, a complete X machine-readable copy of the corresponding source code, to be X distributed under the terms of Sections 1 and 2 above on a medium X customarily used for software interchange; or, X X c) Accompany it with the information you received as to the offer X to distribute corresponding source code. (This alternative is X allowed only for noncommercial distribution and only if you X received the program in object code or executable form with such X an offer, in accord with Subsection b above.) X The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. X If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. X X 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. X X 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. X X 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. X X 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. X If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. X It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. X This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. X X 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. X X 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. X Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. X X 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. X X NO WARRANTY X X 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. X X 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. X X END OF TERMS AND CONDITIONS X X How to Apply These Terms to Your New Programs X X If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. X X To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. X X X Copyright (C) 19yy X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2 of the License, or X (at your option) any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software X Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA X X Also add information on how to contact you by electronic and paper mail. X If the program is interactive, make it output a short notice like this when it starts in an interactive mode: X X Gnomovision version 69, Copyright (C) 19yy name of author X Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. X This is free software, and you are welcome to redistribute it X under certain conditions; type `show c' for details. X The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. X You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: X X Yoyodyne, Inc., hereby disclaims all copyright interest in the program X `Gnomovision' (which makes passes at compilers) written by James Hacker. X X , 1 April 1989 X Ty Coon, President of Vice X This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. SHAR_EOF $shar_touch -am 0704123897 'tar-1.13/COPYING' && chmod 0444 'tar-1.13/COPYING' || $echo 'restore of' 'tar-1.13/COPYING' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/COPYING:' 'MD5 check failed' c93c0550bd3173f4504b2cbd8991e50b tar-1.13/COPYING SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/COPYING'`" test 17989 -eq "$shar_count" || $echo 'tar-1.13/COPYING:' 'original size' '17989,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/ChangeLog ============== if test -f 'tar-1.13/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/ChangeLog M,3DY.2TP-RTP."`@4&%U;"!%9V=E&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GII M<#(@;W!T:6]N'0@=F5R2!C:&5C:VEN9R!F;W(@9V5T8V]N9@H)=VET:"!!0U]#2$5#2U]4 M3T],(&%N9"!B>2!D:71C:&EN9R!U;F%M92!I;B!F879O3H@57!D871E('1O(&9I;&5U=&EL M'0N8RP*"6EN=&PO M97AP;&]D96YA;64N8RP@:6YT;"]F:6YD9&]M86EN+F,L(&EN=&PO9V5T=&5X M="YC+`H):6YT;"]G971T97AT+F@L(&EN=&PO9V5T=&5X=%`N:"P@:6YT;"]H M87-H+7-T7)I9VAT+@H*"2H@3D574SH@,2XQ,BXV-#`P-`H*,3DY.2TP,BTP,2`@ M4&%U;"!%9V=E2!W97)E('1R87-H:6YG('1H92!T87(@9FEL92!H96%D M97(N"@H)*B!SFEP M,B!O%]T(&9O"P@:6YS M=&%L;"US:"P@;6ES2!03U-)6"XQ+3$Y.38@'1R86-T+F,@*'-E=%]S=&%T*3H@8VAM M;V0@869T97(@8VAO=VX@979E;B!W:&5N(&YO="!R;V]T.PH):68@=V4@87)E M('5S:6YG("TM2!I;G-T86QL M871I;VYS+"!R97AE8R!I'!L:6-I="!E;F%B M;&EN9RX*"2A(059%7TE.5%194$537T@L($A!5D5?4U1?1E-465!%7U-44DE. M1RP@9&%D9')?="P@;6%J;W)?="P@;6EN;W)?="P*"7-S:7IE7W0I.@H)3F5W M(&UA8W)O6YA;64@=VAI;&4*"6-H96-K M:6YG(&9O7,@;F\@=V]R:VEN9R!C;W!Y('=A2X*"5)E<&]R M=&5D(&)Y($)R=6YO($AA:6)L92P@0G)Y86YT($9U:FEM;W1O+"!*;VAN($1A M=FED($%N9VQI;BP*"4MA=F5H(%(N($=H87II+"!,875R96YT($-A:6QL870M M5F%L;&5T+"!386MA:2!+:7EO=&%K82!A;F0*"5-A;G1I86=O(%9I;&$@1&]N M8V5L+@H*,3DY-RTP-"TQ,2`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER M;RYU;6]N=')E86PN8V$^"@H)*B!C;VYF:6=U6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070@=&AE('-A;64@=&EM92P@2P*"4IO:&X@3"X@0VAM:65L97=S:VDL($MA60N M"@H)*B!C;VYF:6=UF5D M(&)Y(&UO=FEN9R!E;G1R:65S(')E;&%T960@=&\*"7-C&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/ChangeLog:' 'MD5 check failed' f61d316c8f0ad43dbe285742bd46ac84 tar-1.13/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/ChangeLog'`" test 50363 -eq "$shar_count" || $echo 'tar-1.13/ChangeLog:' 'original size' '50363,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/INSTALL ============== if test -f 'tar-1.13/INSTALL' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/INSTALL' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/INSTALL' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/INSTALL' && Basic Installation ================== X X These are generic installation instructions. X X The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). X X If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. X X The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. X The simplest way to compile this package is: X X 1. `cd' to the directory containing the package's source code and type X `./configure' to configure the package for your system. If you're X using `csh' on an old version of System V, you might need to type X `sh ./configure' instead to prevent `csh' from trying to execute X `configure' itself. X X Running `configure' takes awhile. While running, it prints some X messages telling which features it is checking for. X X 2. Type `make' to compile the package. X X 3. Optionally, type `make check' to run any self-tests that come with X the package. X X 4. Type `make install' to install the programs and any data files and X documentation. X X 5. You can remove the program binaries and object files from the X source code directory by typing `make clean'. To also remove the X files that `configure' created (so you can compile the package for X a different kind of computer), type `make distclean'. There is X also a `make maintainer-clean' target, but that is intended mainly X for the package's developers. If you use it, you may have to get X all sorts of other programs in order to regenerate files that came X with the distribution. X Compilers and Options ===================== X X Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: X CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure X Or on systems that have the `env' program, you can do it like this: X env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure X Compiling For Multiple Architectures ==================================== X X You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. X X If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. X Installation Names ================== X X By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. X X You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. X X In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. X X If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. X Optional Features ================= X X Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. X X For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. X Specifying the System Type ========================== X X There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: X CPU-COMPANY-SYSTEM X See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. X X If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. X Sharing Defaults ================ X X If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. X Operation Controls ================== X X `configure' recognizes the following options to control how it operates. X `--cache-file=FILE' X Use and save the results of the tests in FILE instead of X `./config.cache'. Set FILE to `/dev/null' to disable caching, for X debugging `configure'. X `--help' X Print a summary of the options to `configure', and exit. X `--quiet' `--silent' `-q' X Do not print messages saying which checks are being made. To X suppress all normal output, redirect it to `/dev/null' (any error X messages will still be shown). X `--srcdir=DIR' X Look for the package's source code in directory DIR. Usually X `configure' can determine that directory automatically. X `--version' X Print the version of Autoconf used to generate the `configure' X script, and exit. X `configure' also accepts some other, not widely useful, options. SHAR_EOF $shar_touch -am 0623044097 'tar-1.13/INSTALL' && chmod 0444 'tar-1.13/INSTALL' || $echo 'restore of' 'tar-1.13/INSTALL' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/INSTALL:' 'MD5 check failed' 0d6be33865b76025c20b48bcac87adb7 tar-1.13/INSTALL SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/INSTALL'`" test 7831 -eq "$shar_count" || $echo 'tar-1.13/INSTALL:' 'original size' '7831,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/Makefile.am ============== if test -f 'tar-1.13/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/Makefile.am' && # Main Makefile for GNU tar. # Copyright 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits dist-shar X BABYL = rmail/* admin/*/RMAIL EXTRA_DIST = PORTS rebox.el ACLOCAL_AMFLAGS = SUBDIRS = doc lib intl m4 src scripts po tests X all-local: $(CONFIG_HEADER) X id: ID X ID: X cd lib && $(MAKE) $@ X cd src && $(MAKE) $@ X # This is a bit of a hack; there must be a better way. M4DIR = $(srcdir)/m4 ACINCLUDE_INPUTS = $(M4DIR)/ccstdc.m4 $(M4DIR)/d-ino.m4 $(M4DIR)/gettext.m4 \ X $(M4DIR)/inttypes_h.m4 $(M4DIR)/isc-posix.m4 $(M4DIR)/jm-mktime.m4 \ X $(M4DIR)/largefile.m4 $(M4DIR)/lcmessage.m4 $(M4DIR)/malloc.m4 \ X $(M4DIR)/mktime.m4 $(M4DIR)/progtest.m4 $(M4DIR)/realloc.m4 \ X $(M4DIR)/uintmax_t.m4 $(M4DIR)/ulonglong.m4 $(M4DIR)/utimbuf.m4 \ X $(M4DIR)/utime.m4 $(M4DIR)/utimes.m4 $(M4DIR)/xstrtoumax.m4 X $(srcdir)/acinclude.m4 : $(ACINCLUDE_INPUTS) X cat $(ACINCLUDE_INPUTS) >$(srcdir)/acinclude.m4 X dist-zoo: $(DISTFILES) X rm -rf $(distdir) X mkdir $(distdir) X distdir=`cd $(distdir) && pwd` \ X && cd $(srcdir) \ X && automake --include-deps --output-dir=$$distdir X @for file in $(DISTFILES); do \ X test -f $(distdir)/$$file \ X || cp -p $(srcdir)/$$file $(distdir)/$$file; \ X done X for subdir in $(SUBDIRS); do \ X test -d $(distdir)/$$subdir \ X || mkdir $(distdir)/$$subdir \ X || exit 1; \ X chmod 777 $(distdir)/$$subdir; \ X (cd $$subdir && $(MAKE) dist) || exit 1; \ X done X @sublist="$(DIST_SUBDIRS)"; \ X for dir in $$sublist; do \ X echo copying directory $$dir; \ X tar -chf - $$dir | (cd $(distdir) && tar -xBpf -); \ X done X chmod -R a+r $(distdir) X find $(distdir) -type f | xargs dosfn # find $(distdir) -type f | xargs recode :ibmpc X mv $(distdir) $(PACKAGE) X find $(PACKAGE) -type f | zoo ahIq $(PACKAGE).zoo X rm -rf $(PACKAGE) SHAR_EOF $shar_touch -am 0702174299 'tar-1.13/Makefile.am' && chmod 0444 'tar-1.13/Makefile.am' || $echo 'restore of' 'tar-1.13/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/Makefile.am:' 'MD5 check failed' e10716c25c84dbd5ac2543907ace842a tar-1.13/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/Makefile.am'`" test 2484 -eq "$shar_count" || $echo 'tar-1.13/Makefile.am:' 'original size' '2484,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/Makefile.in ============== if test -f 'tar-1.13/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/Makefile.in' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/Makefile.in M(R!-86ME9FEL92YI;B!G96YE2!B>2!A=71O M;6%K92`Q+C0@9G)O;2!-86ME9FEL92YA;0H*(R!#;W!Y2!L87<[('=I=&AO=70*(R!E=F5N('1H92!I;7!L:65D('=A6]U(&-A;B!R961I0HC(&ET('5N9&5R('1H92!T97)M2!L871E2!O9@HC($U%4D-(04Y404)) M3$E462!O"`]($!P&5C9&ER(#T@0&QI8F5X96-D M:7)`"F1A=&%D:7(@/2!`9&%T861I7-C;VYF M9&ER0`IS:&%R961S=&%T961I2X*331$25(@/2`D*'-R8V1I6]U(')U;B!@;6%K92B`B)"1F86EL(@H* M;6]S=&QY8VQE86XM&ET M(#$[.R!ER!F:6QEGAF M("0H9&ES=&1I@H)+7)M("UR9B`D*&1I&5C.B!I;G-T86QL+65X96,M M&5C+6%M(&EN2!R97%U:7)E('-P96-I86P@=&]O M;',@=&\@&5C+7)E8W5R&5C+7)E8W5R6-L96%N+71A9W,@7`ID:7-T8VQE86XM=&%G&5C+6%M(&EN M6-L96%N(&1I2`D)&1I$)P9B`M*3L@7`H)9&]N90H)8VAM;V0@+5(@ M82MR("0H9&ES=&1I&%R M9W,@9&]S9FX*(PEF:6YD("0H9&ES=&1I7!E(&8@?"!Z;V\@86A)<2`D*%!!0TM!1T4I+GIO;PH) M&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/Makefile.in:' 'MD5 check failed' 22068063e5aaa9497e53a00eb6dcfeb4 tar-1.13/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/Makefile.in'`" test 13933 -eq "$shar_count" || $echo 'tar-1.13/Makefile.in:' 'original size' '13933,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/NEWS ============== if test -f 'tar-1.13/NEWS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/NEWS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/NEWS' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/NEWS M1TY5('1A&5S(&%N9"!P;W)T:6YG(&9I>&5S+@HJ(%1H:7,@&5S(&EN('1H:7,@2!H879E;B=T(&)E96X@;65R9V5D('EE="X**B!!;B!I;G1E2!W:71H('!A>'5T:6QS+@H@(%!L96%S92!T6UO2!O=F5R('1H92!Q=6]T:6YG(&1O;F4@ M8GD@=&AE('-H96QL+@H*3W5T<'5T(&9O'0N"BH@365S6UB;VQI8R!N86UE2!A='1E;7!T(&1E;&5T:6YG M(&5X:7-T:6YG(&9I;&5S('=H96X@:6X@=&AE('=A>2X**B!/<'1I;VX@+2UU M;FQI;FLM9FER2X**B!/ M<'1I;VX@+2UN=6UE'1R M86-T('-Y;6)O;&EC(&QI;FMS(&%S(&AA"!A;F0@+2UV97)S:6]N+6-O M;G1R;VP@;W!T:6]N&EN9F\@;6%N=6%L+@HJ(%1H92!D979I8V4@ M9&5F875L=',@=&\@2!T:&4@:6YS=&%L;&5R+@HJ($]P=&EO;B`M+7-P87)S92`H+5,I('-H;W5L M9"!W;W)K(&]N(&UO3L@;F]T:6-E&%M<&QE(&]F(&$*1%5-4%]214U) M3D1?4T-225!4+@H**B!3=7!E&5D+@H**B!);F-O;7!A=&EB:6QI='D@<')O8FQE;7,@ M=VET:"!A(&)U9R!O;B!3;VQAFEP(&%N9"`M>BD[(&-A;&QS M(&=Z:7`@:6YS=&5A9`IO9B!C;VUP2!A;GD*8V]M<')E&5S+@H,"E9E&5S+@H**B!.;W<@=7-E2`M5"!T;R!B90IN=6QL+71E6]U M(&-A;B!N;W<@9VEV92!M=6QT:7!L92`M9B!A6]U(&1O;B=T('1E;&P@ M:70*=VAA="!T;R!D=6UP+@H**B!7:&5N(&5X=')A8W1I;F<@9&ER96-T;W)I M97,L('1A6]U(&YO"FQO;F=E'1R86-T('1O(&AI="!T:&4@96YD(&]F('1H92!T87!E(&9O<@IL;VYG M(&YA;65S('1O('=O&-L=61E+69R;VT@9&]E&-L=61E('5S M960@=&\@9&\N"@HJ($5X:70@'1R86-T+"!T:&4@;&%B96P@:7,@;F]W(&$@2!&96YL87-O;BX*"BH@4V5E($-H86YG94QO9R!F;W(@;6]R92!D971A %:6QS+@I& ` end SHAR_EOF $shar_touch -am 0707210999 'tar-1.13/NEWS' && chmod 0444 'tar-1.13/NEWS' || $echo 'restore of' 'tar-1.13/NEWS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/NEWS:' 'MD5 check failed' e72eab89bd36c468aae595d9c8fc63b9 tar-1.13/NEWS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/NEWS'`" test 7340 -eq "$shar_count" || $echo 'tar-1.13/NEWS:' 'original size' '7340,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/THANKS ============== if test -f 'tar-1.13/THANKS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/THANKS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/THANKS' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/THANKS M1TY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=&5M<&QE+F5D=0I+96QL>2!3=&5P:&5N M6-L;VYE+G-T86YF;W)D+F5D=0I,875R96YT($-A:6QL870M5F%L M;&5T"6-A:6QL871`;F]E+FQY;VXN8V5M86=R968N9G(*3&%U6YU;4!C M96YN87,N;FAM9FPN9V]V"DUAD!C"!(86EL<&5R M:6X)"6UA>$!N:6,N9V%C+F5D=0I-87AI;64@5&%K6=N=7,N8V]M"DUI8VAA96P@4"!5FUA;FXN86,N:6P*36EK92!-=75S2YA8RYU:PI0875L($YE=F%I"0EP86QI*T!OF1I='(Q+F%R M8W,N86,N870*4&5T97(@4V5E8F%C:`D)60)"5(N2RY, M;&]Y9$!C4!P86YI>"YC;VT*4F]B97)T($4N($)R;W=N"0EB0D)8F]B9D!U;FEX+F%D=F%N2!':6%N;FEN:0D)7,N8V]M"E)O9&5R:6-H(%-C:'5P<`D)6)OGEB;W)R84!C7,N:WEO=&\M=2YA8RYJ<`I3 M86T@4FEC:&%R9',)"7-A;4!B;'5E2YE9'4* M4V5T:"!2;V)E7,N8V]M"E-T97!H96X@ M2B!"979A;@D)'1E8V@N8V\N=6L*5&AE($MI;F<)"65L=FES0&=N=2YO6)OG1`=6YI<&QE>"YC;RYU:PI4 M:6UO=&AY($HN($QE90D)=&EM;&5E0&YE=&-O;2YC;VT*5&EM;W1H>2!&;W-S M=6T)"69O"YC;VT*5&]M M(%%U:6YN"0ET0D) M=')O;65Y0&1R:7`N8V]L;W)A9&\N961U"E1O2!2=61O;'!H"0ER=61T61E<@D)=G-N>61EG5D;PD)4T=2,#`T,3-`;FEF M='ES97)V92YO&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/THANKS:' 'MD5 check failed' 4c880b6edcaaa26c1e4bc761c8e51f52 tar-1.13/THANKS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/THANKS'`" test 18002 -eq "$shar_count" || $echo 'tar-1.13/THANKS:' 'original size' '18002,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/TODO ============== if test -f 'tar-1.13/TODO' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/TODO' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/TODO' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/TODO' && * TODO file for GNU tar -*- outline -*- X Tell if you feel like volunteering for any of these ideas, listed more or less in decreasing order of priority. Some TODO items are implicit from received email. See file BACKLOG. Significant contributions require written assignments and disclaimers. X X.* create.c: diagnostics missing when `goto badfile'. X.* compare.c: confusion between stderr and stdlis, WARN and ERROR. X.* --ignore-failed-read might have been defeated. X.* Better clean sources for list.c, extract.c, create.c and buffer.c. X.* revise all NAMSIZ references, too often related to short buffers. X.* current_link_name, current_file_name not always quoted when printed. X.* Take over script maintenance, implement a `restore' script. X.* Make a debugging feature out of all `#if 0'. SHAR_EOF $shar_touch -am 0701224199 'tar-1.13/TODO' && chmod 0444 'tar-1.13/TODO' || $echo 'restore of' 'tar-1.13/TODO' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/TODO:' 'MD5 check failed' b25686d3002f038e88e3c33a13829da9 tar-1.13/TODO SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/TODO'`" test 809 -eq "$shar_count" || $echo 'tar-1.13/TODO:' 'original size' '809,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/acconfig.h ============== if test -f 'tar-1.13/acconfig.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/acconfig.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/acconfig.h' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/acconfig.h M+RH@4W!E8VEA;"!D969I;FET:6]NF4@ M9F]R(&%R8VAI=F5S+B`@*B\*(W5N9&5F($1%1D%53%1?0DQ/0TM)3D<*"B\J M($1E9FEN92!T;R`Q(&EF(&1E;G-I='D@;6%Y(&)E(&EN9&EC871E9"!B>2!; M;&UH72!A="!E;F0@;V8@9&5V:6-E+B`@*B\*(W5N9&5F($1%3E-)5%E?3$54 M5$52"@HO*B!$969I;F4@=&\@82!S=')I;F<@9VEV:6YG('1H92!P6]U(&QA8VL@82`S+6%R M9W5M96YT('9E&ES=',L(&]R(&EF('EO=2!H879E(#QN M971D8BYH/BX@("HO"B-U;F1E9B!(059%7U)405!%3$E""@HO*B!$969I;F4@ M=&\@,2!I9B!M:VYO9"!F=6YC=&EO;B!I&ES=',@86YD(&1E8VQA7,O='EP97,N:#X@9&]E7,O='EP97,N:#X@9&]E M6]U2X@("HO"B-U M;F1E9B!214U/5$5?4TA%3$P*"B\J($1E9FEN92!T;R!@:6YT)R!I9B`\&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/acconfig.h:' 'MD5 check failed' 30455c8ee687cfc838b2c217d5de2fc6 tar-1.13/acconfig.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/acconfig.h'`" test 2571 -eq "$shar_count" || $echo 'tar-1.13/acconfig.h:' 'original size' '2571,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/acinclude.m4 ============== if test -f 'tar-1.13/acinclude.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/acinclude.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/acinclude.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/acinclude.m4' && # The following is taken from automake 1.4, # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" # because only the former supports 64-bit integral types on HP-UX 10.20. X ## ----------------------------------------- ## ## ANSIfy the C compiler whenever possible. ## ## From Franc,ois Pinard ## ## ----------------------------------------- ## X # serial 2 X # @defmac AC_PROG_CC_STDC # @maindex PROG_CC_STDC # @ovindex CC # If the C compiler in not in ANSI C mode by default, try to add an option # to output variable @code{CC} to make it so. This macro tries various # options that select ANSI C on some system or another. It considers the # compiler to be in ANSI C mode if it handles function prototypes correctly. # # If you use this macro, you should check after calling it whether the C # compiler has been set to accept ANSI C; if not, the shell variable # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source # code in ANSI C, you can make an un-ANSIfied copy of it by using the # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac X AC_DEFUN(AM_PROG_CC_STDC, [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require dnl a magic option to avoid problems with ANSI preprocessor commands dnl like #elif. dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X AC_TRY_COMPILE( [#include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; ], [ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ], [am_cv_prog_cc_stdc="$ac_arg"; break]) done CC="$ac_save_CC" ]) if test -z "$am_cv_prog_cc_stdc"; then X AC_MSG_RESULT([none needed]) else X AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) #serial 2 X dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl X AC_DEFUN(jm_STRUCT_DIRENT_D_INO, X [AC_REQUIRE([AC_HEADER_DIRENT])dnl X AC_CACHE_CHECK([for d_ino member in directory struct], X jm_cv_struct_dirent_d_ino, X [AC_TRY_LINK(dnl X [ #include #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X ], X [struct dirent dp; dp.d_ino = 0;], X X jm_cv_struct_dirent_d_ino=yes, X jm_cv_struct_dirent_d_ino=no) X ] X ) X if test $jm_cv_struct_dirent_d_ino = yes; then X AC_DEFINE(D_INO_IN_DIRENT, 1, X [Define if there is a member named d_ino in the struct describing X directory headers.]) X fi X ] ) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 107 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_WITH_NLS, X [AC_MSG_CHECKING([whether NLS is requested]) X dnl Default is enabled NLS X AC_ARG_ENABLE(nls, X [ --disable-nls do not use Native Language Support], X USE_NLS=$enableval, USE_NLS=yes) X AC_MSG_RESULT($USE_NLS) X AC_SUBST(USE_NLS) X X USE_INCLUDED_LIBINTL=no X X dnl If we use NLS figure out what method X if test "$USE_NLS" = "yes"; then X AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) X AC_MSG_CHECKING([whether included gettext is requested]) X AC_ARG_WITH(included-gettext, X [ --with-included-gettext use the GNU gettext library included here], X nls_cv_force_use_gnu_gettext=$withval, X nls_cv_force_use_gnu_gettext=no) X AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X dnl User does not insist on using GNU NLS library. Figure out what X dnl to use. If gettext or catgets are available (in this order) we X dnl use this. Else we have to fall back to GNU NLS library. X dnl catgets is only used if permitted by option --with-catgets. X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X AC_CHECK_HEADER(libintl.h, X [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, X [AC_TRY_LINK([#include ], [return (int) gettext ("")], X gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) X X if test "$gt_cv_func_gettext_libc" != "yes"; then X AC_CHECK_LIB(intl, bindtextdomain, X [AC_CHECK_LIB(intl, gettext)]) X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X AC_DEFINE(HAVE_GETTEXT, 1, X [Define to 1 if you have gettext and don't want to use GNU gettext.]) X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl X if test "$MSGFMT" != "no"; then X AC_CHECK_FUNCS(dcgettext) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; X return _nl_msg_cat_cntr], X [CATOBJEXT=.gmo X DATADIRNAME=share], X [CATOBJEXT=.mo X DATADIRNAME=lib]) X INSTOBJEXT=.mo X fi X fi X ]) X X if test "$CATOBJEXT" = "NONE"; then X AC_MSG_CHECKING([whether catgets can be used]) X AC_ARG_WITH(catgets, X [ --with-catgets use catgets functions if available], X nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) X AC_MSG_RESULT($nls_cv_use_catgets) X X if test "$nls_cv_use_catgets" = "yes"; then X dnl No gettext in C library. Try catgets next. X AC_CHECK_LIB(i, main) X AC_CHECK_FUNC(catgets, X [AC_DEFINE(HAVE_CATGETS, 1, X [Define as 1 if you have catgets and don't want to use GNU gettext.]) X INTLOBJS="\$(CATOBJS)" X AC_PATH_PROG(GENCAT, gencat, no)dnl X if test "$GENCAT" != "no"; then X AC_PATH_PROG(GMSGFMT, gmsgfmt, no) X if test "$GMSGFMT" = "no"; then X AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) X fi X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi]) X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X dnl Neither gettext nor catgets in included in the C library. X dnl Fall back on GNU gettext library. X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X dnl Mark actions used to generate GNU NLS library. X INTLOBJS="\$(GETTOBJS)" X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_SUBST(MSGFMT) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X dnl Test whether we really found GNU xgettext. X if test "$XGETTEXT" != ":"; then X dnl If it is no GNU xgettext we define it as : so that the X dnl Makefiles still can work. X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X AC_MSG_RESULT( X [found xgettext program is not GNU xgettext; ignore it]) X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) X AC_OUTPUT_COMMANDS( X [case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac]) X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X dnl These rules are solely for the distribution goal. While doing this X dnl we only have to keep exactly one list of the available catalogs X dnl in configure.in. X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X dnl Make all variables we use known to autoconf. X AC_SUBST(USE_INCLUDED_LIBINTL) X AC_SUBST(CATALOGS) X AC_SUBST(CATOBJEXT) X AC_SUBST(DATADIRNAME) X AC_SUBST(GMOFILES) X AC_SUBST(INSTOBJEXT) X AC_SUBST(INTLDEPS) X AC_SUBST(INTLLIBS) X AC_SUBST(INTLOBJS) X AC_SUBST(POFILES) X AC_SUBST(POSUB) X ]) X AC_DEFUN(AM_GNU_GETTEXT, X [AC_REQUIRE([AC_PROG_MAKE_SET])dnl X AC_REQUIRE([AC_PROG_CC])dnl X AC_REQUIRE([AC_PROG_RANLIB])dnl X AC_REQUIRE([AC_ISC_POSIX])dnl X AC_REQUIRE([AC_HEADER_STDC])dnl X AC_REQUIRE([AC_C_CONST])dnl X AC_REQUIRE([AC_C_INLINE])dnl X AC_REQUIRE([AC_TYPE_OFF_T])dnl X AC_REQUIRE([AC_TYPE_SIZE_T])dnl X AC_REQUIRE([AC_FUNC_ALLOCA])dnl X AC_REQUIRE([AC_FUNC_MMAP])dnl X X AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) X AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X AC_CHECK_FUNCS(stpcpy) X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) X fi X X AM_LC_MESSAGES X AM_WITH_NLS X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X AC_MSG_CHECKING(for catalogs to be installed) X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X AC_MSG_RESULT($LINGUAS) X fi X X dnl Construct list of names of catalog files to be constructed. X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X dnl The reference to in the installed file X dnl must be resolved because we cannot expect the users of this X dnl to define HAVE_LOCALE_H. X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X AC_SUBST(INCLUDE_LOCALE_H) X X dnl Determine which catalog format we have (if any is needed) X dnl For now we know about two different formats: X dnl Linux libc-5 and the normal X/Open format X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) X X dnl Transform the SED scripts while copying because some dumb SEDs X dnl cannot handle comments. X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X dnl po2tbl.sed is always needed. X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X dnl In the intl/Makefile.in we have a special dependency which makes X dnl only sense for gettext. We comment this out for non-gettext X dnl packages. X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X AC_SUBST(GT_NO) X AC_SUBST(GT_YES) X X dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly X dnl find the mkinstalldirs script in another subdir but ($top_srcdir). X dnl Try to locate is. X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X AC_SUBST(MKINSTALLDIRS) X X dnl *** For now the libtool support in intl/Makefile is not for real. X l= X AC_SUBST(l) X X dnl Generate list of files to be processed by xgettext which will X dnl be included in po/Makefile. X test -d po || mkdir po X changequote(, )dnl X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X changequote([, ])dnl X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X ]) #serial 3 X dnl From Paul Eggert. X # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. X AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ X AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, X [AC_TRY_COMPILE( X [#include #include ], X [uintmax_t i = (uintmax_t) -1;], X jm_ac_cv_header_inttypes_h=yes, X jm_ac_cv_header_inttypes_h=no)]) X if test $jm_ac_cv_header_inttypes_h = yes; then X AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , X and declares uintmax_t. ]) X fi ]) #serial 1 dnl This test replaces the one in autoconf. dnl Currently this macro should have the same name as the autoconf macro dnl because gettext's gettext.m4 (distributed in the automake package) dnl still uses it. Otherwise, the use in gettext.m4 makes autoheader dnl give these diagnostics: dnl configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX dnl configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX X undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, X [ X dnl This test replaces the obsolescent AC_ISC_POSIX kludge. X AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) X ] ) #serial 7 X dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. X AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl X X dnl mktime.c uses localtime_r if it exists. Check for it. X AC_CHECK_FUNCS(localtime_r) X X if test $ac_cv_func_working_mktime = no; then X AC_DEFINE_UNQUOTED(mktime, rpl_mktime, X [Define to rpl_mktime if the replacement function should be used.]) X fi ]) #serial 4 X dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. dnl For more details about this brain damage please see: dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html X dnl Written by Paul Eggert . X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, X [AC_CACHE_CHECK([for $1 value to request large file support], X ac_cv_sys_largefile_$1, X [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { X ac_cv_sys_largefile_$1=no X ifelse($1, CFLAGS, X [case "$host_os" in X # IRIX 6.2 and later require cc -n32. changequote(, )dnl X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) X CC="$ac_save_CC" X esac]) X }])]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, X [case $2 in X no) ;; X ?*) X case "[$]$1" in X '') $1=$2 ;; X *) $1=[$]$1' '$2 ;; X esac ;; X esac]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT) AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE, X [AC_CACHE_CHECK([for $1], $2, X [$2=no changequote(, )dnl X $4 X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D$1) X $2=1 ;; X -D$1=*) X $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done changequote([, ])dnl X ]) X if test "[$]$2" != no; then X AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) X fi]) X AC_DEFUN(AC_SYS_LARGEFILE, X [AC_REQUIRE([AC_CANONICAL_HOST]) X AC_ARG_ENABLE(largefile, X [ --disable-largefile omit support for large files]) X if test "$enable_largefile" != no; then X AC_CHECK_TOOL(GETCONF, getconf) X AC_SYS_LARGEFILE_FLAGS(CFLAGS) X AC_SYS_LARGEFILE_FLAGS(LDFLAGS) X AC_SYS_LARGEFILE_FLAGS(LIBS) X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; X *) X AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; X esac X done X AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") X AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") X AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, X ac_cv_sys_file_offset_bits, X [Number of bits in a file offset, on hosts where this is settable.] X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_file_offset_bits=64 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, X ac_cv_sys_largefile_source, X [Define to make fseeko etc. visible, on some hosts.], X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, X ac_cv_sys_large_files, X [Define for large files, on AIX-style hosts.], X [case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac]) X fi X ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 2 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_LC_MESSAGES, X [if test $ac_cv_header_locale_h = yes; then X AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, X [AC_TRY_LINK([#include ], [return LC_MESSAGES], X am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) X if test $am_cv_val_LC_MESSAGES = yes; then X AC_DEFINE(HAVE_LC_MESSAGES, 1, X [Define if your locale.h file contains LC_MESSAGES.]) X fi X fi]) #serial 3 X dnl From Jim Meyering. dnl Determine whether malloc accepts 0 as its argument. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_MALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken malloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, X [Define if the malloc check has been performed. ]) X X AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, X [AC_TRY_RUN([ X char *malloc (); X int X main () X { X exit (malloc (0) ? 0 : 1); X } X ], X jm_cv_func_working_malloc=yes, X jm_cv_func_working_malloc=no, X dnl When crosscompiling, assume malloc is broken. X jm_cv_func_working_malloc=no) X ]) X if test $jm_cv_func_working_malloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS malloc.$ac_objext" X AC_DEFINE_UNQUOTED(malloc, rpl_malloc, X [Define to rpl_malloc if the replacement function should be used.]) X fi ]) #serial 1 X dnl From Paul Eggert dnl Check for a working mktime. dnl This is a preview of what should appear in the next public autoconf release. X AC_DEFUN(AC_FUNC_MKTIME, [AC_REQUIRE([AC_HEADER_TIME])dnl AC_CHECK_HEADERS(sys/time.h unistd.h) AC_CHECK_FUNCS(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_TRY_RUN( changequote(<<, >>)dnl < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } >>, changequote([, ])dnl ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no, ac_cv_func_working_mktime=no)]) if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 1 X dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in X /*) X ac_cv_path_$1="[$]$1" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in ifelse([$5], , $PATH, [$5]); do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if [$3]; then X ac_cv_path_$1="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl X ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then X AC_MSG_RESULT([$]$1) else X AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) #serial 3 X dnl From Jim Meyering. dnl Determine whether realloc works when both arguments are 0. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_REALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken realloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, X [Define if the realloc check has been performed. ]) X X AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, X [AC_TRY_RUN([ X char *realloc (); X int X main () X { X exit (realloc (0, 0) ? 0 : 1); X } X ], X jm_cv_func_working_realloc=yes, X jm_cv_func_working_realloc=no, X dnl When crosscompiling, assume realloc is broken. X jm_cv_func_working_realloc=no) X ]) X if test $jm_cv_func_working_realloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS realloc.$ac_objext" X AC_DEFINE_UNQUOTED(realloc, rpl_realloc, X [Define to rpl_realloc if the replacement function should be used.]) X fi ]) #serial 3 X dnl From Paul Eggert. X AC_PREREQ(2.13) X # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. X AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X if test $jm_ac_cv_header_inttypes_h = no; then X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' X if doesn't define.]) X fi ]) #serial 1 X dnl From Paul Eggert. X AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ X AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, X [AC_TRY_COMPILE([], X [unsigned long long i = (unsigned long long) -1;], X ac_cv_type_unsigned_long_long=yes, X ac_cv_type_unsigned_long_long=no)]) X if test $ac_cv_type_unsigned_long_long = yes; then X AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, X [Define if you have the unsigned long long type.]) X fi ]) #serial 2 X dnl From Jim Meyering X dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- dnl usually in . dnl Some systems have utime.h but don't declare the struct anywhere. X AC_DEFUN(jm_STRUCT_UTIMBUF, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([AC_HEADER_TIME]) X AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, X [AC_TRY_COMPILE( X [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif X ], X [static struct utimbuf x; x.actime = x.modtime;], X fu_cv_sys_struct_utimbuf=yes, X fu_cv_sys_struct_utimbuf=no) X ]) X X if test $fu_cv_sys_struct_utimbuf = yes; then X AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . X Some systems have utime.h but don't declare the struct anywhere. ]) X fi ]) #serial 1 X dnl From Jim Meyering dnl Replace the utime function on systems that need it. X dnl FIXME X AC_DEFUN(jm_FUNC_UTIME, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([jm_STRUCT_UTIMBUF]) X AC_REQUIRE([AC_FUNC_UTIME_NULL]) X X if test $ac_cv_func_utime_null = no; then X jm_FUNC_UTIMES_NULL X AC_REPLACE_FUNCS(utime) X fi ]) #serial 3 X dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. X AC_DEFUN(jm_FUNC_UTIMES_NULL, [AC_CACHE_CHECK(whether utimes accepts a null argument, ac_cv_func_utimes_null, [rm -f conftestdata; > conftestdata AC_TRY_RUN([ /* In case stat has been defined to rpl_stat, undef it here. */ #undef stat #include #include main() { struct stat s, t; exit(!(stat ("conftestdata", &s) == 0 && utimes("conftestdata", (long *)0) == 0 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120)); }], X ac_cv_func_utimes_null=yes, X ac_cv_func_utimes_null=no, X ac_cv_func_utimes_null=no) rm -f core core.* *.core]) X X if test $ac_cv_func_utimes_null = yes; then X AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, X [Define if utimes accepts a null argument]) X fi X ] ) #serial 1 X # autoconf tests required for use of xstrtoumax.c X AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X AC_CHECK_HEADERS(stdlib.h) X AC_REPLACE_FUNCS(strtoumax) X X dnl We don't need (and can't compile) the replacement strtoull X dnl unless the type `unsigned long long' exists. X dnl Also, only the replacement strtoumax invokes strtoull, X dnl so we need the replacement strtoull only if strtoumax does not exist. X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X AC_REPLACE_FUNCS(strtoull) X ;; X esac X ]) SHAR_EOF $shar_touch -am 0705000999 'tar-1.13/acinclude.m4' && chmod 0664 'tar-1.13/acinclude.m4' || $echo 'restore of' 'tar-1.13/acinclude.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/acinclude.m4:' 'MD5 check failed' 0ac5c15de09c100def9fd1fc25644c79 tar-1.13/acinclude.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/acinclude.m4'`" test 31952 -eq "$shar_count" || $echo 'tar-1.13/acinclude.m4:' 'original size' '31952,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/aclocal.m4 ============== if test -f 'tar-1.13/aclocal.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/aclocal.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/aclocal.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/aclocal.m4' && dnl aclocal.m4 generated automatically by aclocal 1.4 X dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. X dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. X # The following is taken from automake 1.4, # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" # because only the former supports 64-bit integral types on HP-UX 10.20. X X # serial 2 X # @defmac AC_PROG_CC_STDC # @maindex PROG_CC_STDC # @ovindex CC # If the C compiler in not in ANSI C mode by default, try to add an option # to output variable @code{CC} to make it so. This macro tries various # options that select ANSI C on some system or another. It considers the # compiler to be in ANSI C mode if it handles function prototypes correctly. # # If you use this macro, you should check after calling it whether the C # compiler has been set to accept ANSI C; if not, the shell variable # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source # code in ANSI C, you can make an un-ANSIfied copy of it by using the # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac X AC_DEFUN(AM_PROG_CC_STDC, [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require dnl a magic option to avoid problems with ANSI preprocessor commands dnl like #elif. dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X AC_TRY_COMPILE( [#include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; ], [ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ], [am_cv_prog_cc_stdc="$ac_arg"; break]) done CC="$ac_save_CC" ]) if test -z "$am_cv_prog_cc_stdc"; then X AC_MSG_RESULT([none needed]) else X AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) #serial 2 X dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl X AC_DEFUN(jm_STRUCT_DIRENT_D_INO, X [AC_REQUIRE([AC_HEADER_DIRENT])dnl X AC_CACHE_CHECK([for d_ino member in directory struct], X jm_cv_struct_dirent_d_ino, X [AC_TRY_LINK(dnl X [ #include #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X ], X [struct dirent dp; dp.d_ino = 0;], X X jm_cv_struct_dirent_d_ino=yes, X jm_cv_struct_dirent_d_ino=no) X ] X ) X if test $jm_cv_struct_dirent_d_ino = yes; then X AC_DEFINE(D_INO_IN_DIRENT, 1, X [Define if there is a member named d_ino in the struct describing X directory headers.]) X fi X ] ) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 107 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_WITH_NLS, X [AC_MSG_CHECKING([whether NLS is requested]) X dnl Default is enabled NLS X AC_ARG_ENABLE(nls, X [ --disable-nls do not use Native Language Support], X USE_NLS=$enableval, USE_NLS=yes) X AC_MSG_RESULT($USE_NLS) X AC_SUBST(USE_NLS) X X USE_INCLUDED_LIBINTL=no X X dnl If we use NLS figure out what method X if test "$USE_NLS" = "yes"; then X AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) X AC_MSG_CHECKING([whether included gettext is requested]) X AC_ARG_WITH(included-gettext, X [ --with-included-gettext use the GNU gettext library included here], X nls_cv_force_use_gnu_gettext=$withval, X nls_cv_force_use_gnu_gettext=no) X AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X dnl User does not insist on using GNU NLS library. Figure out what X dnl to use. If gettext or catgets are available (in this order) we X dnl use this. Else we have to fall back to GNU NLS library. X dnl catgets is only used if permitted by option --with-catgets. X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X AC_CHECK_HEADER(libintl.h, X [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, X [AC_TRY_LINK([#include ], [return (int) gettext ("")], X gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) X X if test "$gt_cv_func_gettext_libc" != "yes"; then X AC_CHECK_LIB(intl, bindtextdomain, X [AC_CHECK_LIB(intl, gettext)]) X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X AC_DEFINE(HAVE_GETTEXT, 1, X [Define to 1 if you have gettext and don't want to use GNU gettext.]) X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl X if test "$MSGFMT" != "no"; then X AC_CHECK_FUNCS(dcgettext) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; X return _nl_msg_cat_cntr], X [CATOBJEXT=.gmo X DATADIRNAME=share], X [CATOBJEXT=.mo X DATADIRNAME=lib]) X INSTOBJEXT=.mo X fi X fi X ]) X X if test "$CATOBJEXT" = "NONE"; then X AC_MSG_CHECKING([whether catgets can be used]) X AC_ARG_WITH(catgets, X [ --with-catgets use catgets functions if available], X nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) X AC_MSG_RESULT($nls_cv_use_catgets) X X if test "$nls_cv_use_catgets" = "yes"; then X dnl No gettext in C library. Try catgets next. X AC_CHECK_LIB(i, main) X AC_CHECK_FUNC(catgets, X [AC_DEFINE(HAVE_CATGETS, 1, X [Define as 1 if you have catgets and don't want to use GNU gettext.]) X INTLOBJS="\$(CATOBJS)" X AC_PATH_PROG(GENCAT, gencat, no)dnl X if test "$GENCAT" != "no"; then X AC_PATH_PROG(GMSGFMT, gmsgfmt, no) X if test "$GMSGFMT" = "no"; then X AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) X fi X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi]) X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X dnl Neither gettext nor catgets in included in the C library. X dnl Fall back on GNU gettext library. X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X dnl Mark actions used to generate GNU NLS library. X INTLOBJS="\$(GETTOBJS)" X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_SUBST(MSGFMT) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X dnl Test whether we really found GNU xgettext. X if test "$XGETTEXT" != ":"; then X dnl If it is no GNU xgettext we define it as : so that the X dnl Makefiles still can work. X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X AC_MSG_RESULT( X [found xgettext program is not GNU xgettext; ignore it]) X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) X AC_OUTPUT_COMMANDS( X [case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac]) X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X dnl These rules are solely for the distribution goal. While doing this X dnl we only have to keep exactly one list of the available catalogs X dnl in configure.in. X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X dnl Make all variables we use known to autoconf. X AC_SUBST(USE_INCLUDED_LIBINTL) X AC_SUBST(CATALOGS) X AC_SUBST(CATOBJEXT) X AC_SUBST(DATADIRNAME) X AC_SUBST(GMOFILES) X AC_SUBST(INSTOBJEXT) X AC_SUBST(INTLDEPS) X AC_SUBST(INTLLIBS) X AC_SUBST(INTLOBJS) X AC_SUBST(POFILES) X AC_SUBST(POSUB) X ]) X AC_DEFUN(AM_GNU_GETTEXT, X [AC_REQUIRE([AC_PROG_MAKE_SET])dnl X AC_REQUIRE([AC_PROG_CC])dnl X AC_REQUIRE([AC_PROG_RANLIB])dnl X AC_REQUIRE([AC_ISC_POSIX])dnl X AC_REQUIRE([AC_HEADER_STDC])dnl X AC_REQUIRE([AC_C_CONST])dnl X AC_REQUIRE([AC_C_INLINE])dnl X AC_REQUIRE([AC_TYPE_OFF_T])dnl X AC_REQUIRE([AC_TYPE_SIZE_T])dnl X AC_REQUIRE([AC_FUNC_ALLOCA])dnl X AC_REQUIRE([AC_FUNC_MMAP])dnl X X AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) X AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X AC_CHECK_FUNCS(stpcpy) X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) X fi X X AM_LC_MESSAGES X AM_WITH_NLS X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X AC_MSG_CHECKING(for catalogs to be installed) X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X AC_MSG_RESULT($LINGUAS) X fi X X dnl Construct list of names of catalog files to be constructed. X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X dnl The reference to in the installed file X dnl must be resolved because we cannot expect the users of this X dnl to define HAVE_LOCALE_H. X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X AC_SUBST(INCLUDE_LOCALE_H) X X dnl Determine which catalog format we have (if any is needed) X dnl For now we know about two different formats: X dnl Linux libc-5 and the normal X/Open format X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) X X dnl Transform the SED scripts while copying because some dumb SEDs X dnl cannot handle comments. X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X dnl po2tbl.sed is always needed. X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X dnl In the intl/Makefile.in we have a special dependency which makes X dnl only sense for gettext. We comment this out for non-gettext X dnl packages. X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X AC_SUBST(GT_NO) X AC_SUBST(GT_YES) X X dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly X dnl find the mkinstalldirs script in another subdir but ($top_srcdir). X dnl Try to locate is. X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X AC_SUBST(MKINSTALLDIRS) X X dnl *** For now the libtool support in intl/Makefile is not for real. X l= X AC_SUBST(l) X X dnl Generate list of files to be processed by xgettext which will X dnl be included in po/Makefile. X test -d po || mkdir po X changequote(, )dnl X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X changequote([, ])dnl X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X ]) #serial 3 X dnl From Paul Eggert. X # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. X AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ X AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, X [AC_TRY_COMPILE( X [#include #include ], X [uintmax_t i = (uintmax_t) -1;], X jm_ac_cv_header_inttypes_h=yes, X jm_ac_cv_header_inttypes_h=no)]) X if test $jm_ac_cv_header_inttypes_h = yes; then X AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , X and declares uintmax_t. ]) X fi ]) #serial 1 dnl This test replaces the one in autoconf. dnl Currently this macro should have the same name as the autoconf macro dnl because gettext's gettext.m4 (distributed in the automake package) dnl still uses it. Otherwise, the use in gettext.m4 makes autoheader dnl give these diagnostics: dnl configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX dnl configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX X undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, X [ X dnl This test replaces the obsolescent AC_ISC_POSIX kludge. X AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) X ] ) #serial 7 X dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. X AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl X X dnl mktime.c uses localtime_r if it exists. Check for it. X AC_CHECK_FUNCS(localtime_r) X X if test $ac_cv_func_working_mktime = no; then X AC_DEFINE_UNQUOTED(mktime, rpl_mktime, X [Define to rpl_mktime if the replacement function should be used.]) X fi ]) #serial 4 X dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. dnl For more details about this brain damage please see: dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html X dnl Written by Paul Eggert . X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, X [AC_CACHE_CHECK([for $1 value to request large file support], X ac_cv_sys_largefile_$1, X [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { X ac_cv_sys_largefile_$1=no X ifelse($1, CFLAGS, X [case "$host_os" in X # IRIX 6.2 and later require cc -n32. changequote(, )dnl X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) X CC="$ac_save_CC" X esac]) X }])]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, X [case $2 in X no) ;; X ?*) X case "[$]$1" in X '') $1=$2 ;; X *) $1=[$]$1' '$2 ;; X esac ;; X esac]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT) AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE, X [AC_CACHE_CHECK([for $1], $2, X [$2=no changequote(, )dnl X $4 X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D$1) X $2=1 ;; X -D$1=*) X $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done changequote([, ])dnl X ]) X if test "[$]$2" != no; then X AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) X fi]) X AC_DEFUN(AC_SYS_LARGEFILE, X [AC_REQUIRE([AC_CANONICAL_HOST]) X AC_ARG_ENABLE(largefile, X [ --disable-largefile omit support for large files]) X if test "$enable_largefile" != no; then X AC_CHECK_TOOL(GETCONF, getconf) X AC_SYS_LARGEFILE_FLAGS(CFLAGS) X AC_SYS_LARGEFILE_FLAGS(LDFLAGS) X AC_SYS_LARGEFILE_FLAGS(LIBS) X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; X *) X AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; X esac X done X AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") X AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") X AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, X ac_cv_sys_file_offset_bits, X [Number of bits in a file offset, on hosts where this is settable.] X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_file_offset_bits=64 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, X ac_cv_sys_largefile_source, X [Define to make fseeko etc. visible, on some hosts.], X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, X ac_cv_sys_large_files, X [Define for large files, on AIX-style hosts.], X [case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac]) X fi X ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 2 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_LC_MESSAGES, X [if test $ac_cv_header_locale_h = yes; then X AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, X [AC_TRY_LINK([#include ], [return LC_MESSAGES], X am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) X if test $am_cv_val_LC_MESSAGES = yes; then X AC_DEFINE(HAVE_LC_MESSAGES, 1, X [Define if your locale.h file contains LC_MESSAGES.]) X fi X fi]) #serial 3 X dnl From Jim Meyering. dnl Determine whether malloc accepts 0 as its argument. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_MALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken malloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, X [Define if the malloc check has been performed. ]) X X AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, X [AC_TRY_RUN([ X char *malloc (); X int X main () X { X exit (malloc (0) ? 0 : 1); X } X ], X jm_cv_func_working_malloc=yes, X jm_cv_func_working_malloc=no, X dnl When crosscompiling, assume malloc is broken. X jm_cv_func_working_malloc=no) X ]) X if test $jm_cv_func_working_malloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS malloc.$ac_objext" X AC_DEFINE_UNQUOTED(malloc, rpl_malloc, X [Define to rpl_malloc if the replacement function should be used.]) X fi ]) #serial 1 X dnl From Paul Eggert dnl Check for a working mktime. dnl This is a preview of what should appear in the next public autoconf release. X AC_DEFUN(AC_FUNC_MKTIME, [AC_REQUIRE([AC_HEADER_TIME])dnl AC_CHECK_HEADERS(sys/time.h unistd.h) AC_CHECK_FUNCS(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_TRY_RUN( changequote(<<, >>)dnl < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } >>, changequote([, ])dnl ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no, ac_cv_func_working_mktime=no)]) if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 1 X dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in X /*) X ac_cv_path_$1="[$]$1" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in ifelse([$5], , $PATH, [$5]); do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if [$3]; then X ac_cv_path_$1="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl X ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then X AC_MSG_RESULT([$]$1) else X AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) #serial 3 X dnl From Jim Meyering. dnl Determine whether realloc works when both arguments are 0. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_REALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken realloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, X [Define if the realloc check has been performed. ]) X X AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, X [AC_TRY_RUN([ X char *realloc (); X int X main () X { X exit (realloc (0, 0) ? 0 : 1); X } X ], X jm_cv_func_working_realloc=yes, X jm_cv_func_working_realloc=no, X dnl When crosscompiling, assume realloc is broken. X jm_cv_func_working_realloc=no) X ]) X if test $jm_cv_func_working_realloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS realloc.$ac_objext" X AC_DEFINE_UNQUOTED(realloc, rpl_realloc, X [Define to rpl_realloc if the replacement function should be used.]) X fi ]) #serial 3 X dnl From Paul Eggert. X AC_PREREQ(2.13) X # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. X AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X if test $jm_ac_cv_header_inttypes_h = no; then X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' X if doesn't define.]) X fi ]) #serial 1 X dnl From Paul Eggert. X AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ X AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, X [AC_TRY_COMPILE([], X [unsigned long long i = (unsigned long long) -1;], X ac_cv_type_unsigned_long_long=yes, X ac_cv_type_unsigned_long_long=no)]) X if test $ac_cv_type_unsigned_long_long = yes; then X AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, X [Define if you have the unsigned long long type.]) X fi ]) #serial 2 X dnl From Jim Meyering X dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- dnl usually in . dnl Some systems have utime.h but don't declare the struct anywhere. X AC_DEFUN(jm_STRUCT_UTIMBUF, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([AC_HEADER_TIME]) X AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, X [AC_TRY_COMPILE( X [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif X ], X [static struct utimbuf x; x.actime = x.modtime;], X fu_cv_sys_struct_utimbuf=yes, X fu_cv_sys_struct_utimbuf=no) X ]) X X if test $fu_cv_sys_struct_utimbuf = yes; then X AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . X Some systems have utime.h but don't declare the struct anywhere. ]) X fi ]) #serial 1 X dnl From Jim Meyering dnl Replace the utime function on systems that need it. X dnl FIXME X AC_DEFUN(jm_FUNC_UTIME, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([jm_STRUCT_UTIMBUF]) X AC_REQUIRE([AC_FUNC_UTIME_NULL]) X X if test $ac_cv_func_utime_null = no; then X jm_FUNC_UTIMES_NULL X AC_REPLACE_FUNCS(utime) X fi ]) #serial 3 X dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. X AC_DEFUN(jm_FUNC_UTIMES_NULL, [AC_CACHE_CHECK(whether utimes accepts a null argument, ac_cv_func_utimes_null, [rm -f conftestdata; > conftestdata AC_TRY_RUN([ /* In case stat has been defined to rpl_stat, undef it here. */ #undef stat #include #include main() { struct stat s, t; exit(!(stat ("conftestdata", &s) == 0 && utimes("conftestdata", (long *)0) == 0 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120)); }], X ac_cv_func_utimes_null=yes, X ac_cv_func_utimes_null=no, X ac_cv_func_utimes_null=no) rm -f core core.* *.core]) X X if test $ac_cv_func_utimes_null = yes; then X AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, X [Define if utimes accepts a null argument]) X fi X ] ) #serial 1 X # autoconf tests required for use of xstrtoumax.c X AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X AC_CHECK_HEADERS(stdlib.h) X AC_REPLACE_FUNCS(strtoumax) X X dnl We don't need (and can't compile) the replacement strtoull X dnl unless the type `unsigned long long' exists. X dnl Also, only the replacement strtoumax invokes strtoull, X dnl so we need the replacement strtoull only if strtoumax does not exist. X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X AC_REPLACE_FUNCS(strtoull) X ;; X esac X ]) X # Like AC_CONFIG_HEADER, but automatically create stamp file. X AC_DEFUN(AM_CONFIG_HEADER, [AC_PREREQ([2.12]) AC_CONFIG_HEADER([$1]) dnl When config.status generates a header, we must update the stamp-h file. dnl This file resides in the same directory as the config header dnl that is generated. We must strip everything past the first ":", dnl and everything past the last "/". AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, <>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, <>; do X case " <<$>>CONFIG_HEADERS " in X *" <<$>>am_file "*<<)>> X echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx X ;; X esac X am_indx=`expr "<<$>>am_indx" + 1` done<<>>dnl>>) changequote([,]))]) X # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. X # serial 1 X dnl Usage: dnl AM_INIT_AUTOMAKE(package,version, [no-define]) X AC_DEFUN(AM_INIT_AUTOMAKE, [AC_REQUIRE([AC_PROG_INSTALL]) PACKAGE=[$1] AC_SUBST(PACKAGE) VERSION=[$2] AC_SUBST(VERSION) dnl test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then X AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi ifelse([$3],, AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) AC_REQUIRE([AM_SANITY_CHECK]) AC_REQUIRE([AC_ARG_PROGRAM]) dnl FIXME This is truly gross. missing_dir=`cd $ac_aux_dir && pwd` AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) AC_REQUIRE([AC_PROG_MAKE_SET])]) X # # Check to make sure that the build environment is sane. # X AC_DEFUN(AM_SANITY_CHECK, [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftestfile # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( X set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` X if test "[$]*" = "X"; then X # -L didn't work. X set X `ls -t $srcdir/configure conftestfile` X fi X if test "[$]*" != "X $srcdir/configure conftestfile" \ X && test "[$]*" != "X conftestfile $srcdir/configure"; then X X # If neither matched, then we have a broken ls. This can happen X # if, for instance, CONFIG_SHELL is bash and it inherits a X # broken ls alias from the environment. This has actually X # happened. Such a system could not be considered "sane". X AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) X fi X X test "[$]2" = conftestfile X ) then X # Ok. X : else X AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi rm -f conftest* AC_MSG_RESULT(yes)]) X dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) dnl The program must properly implement --version. AC_DEFUN(AM_MISSING_PROG, [AC_MSG_CHECKING(for working $2) # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if ($2 --version) < /dev/null > /dev/null 2>&1; then X $1=$2 X AC_MSG_RESULT(found) else X $1="$3/missing $2" X AC_MSG_RESULT(missing) fi AC_SUBST($1)]) X X # serial 1 X AC_DEFUN(AM_C_PROTOTYPES, [AC_REQUIRE([AM_PROG_CC_STDC]) AC_REQUIRE([AC_PROG_CPP]) AC_MSG_CHECKING([for function prototypes]) if test "$am_cv_prog_cc_stdc" != no; then X AC_MSG_RESULT(yes) X AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes]) X U= ANSI2KNR= else X AC_MSG_RESULT(no) X U=_ ANSI2KNR=./ansi2knr X # Ensure some checks needed by ansi2knr itself. X AC_HEADER_STDC X AC_CHECK_HEADERS(string.h) fi AC_SUBST(U)dnl AC_SUBST(ANSI2KNR)dnl ]) X X # serial 1 X AC_DEFUN(AM_WITH_DMALLOC, [AC_MSG_CHECKING(if malloc debugging is wanted) AC_ARG_WITH(dmalloc, [ --with-dmalloc use dmalloc, as in X ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz], [if test "$withval" = yes; then X AC_MSG_RESULT(yes) X AC_DEFINE(WITH_DMALLOC,1, X [Define if using the dmalloc debugging malloc package]) X LIBS="$LIBS -ldmalloc" X LDFLAGS="$LDFLAGS -g" else X AC_MSG_RESULT(no) fi], [AC_MSG_RESULT(no)]) ]) X SHAR_EOF $shar_touch -am 0707012499 'tar-1.13/aclocal.m4' && chmod 0664 'tar-1.13/aclocal.m4' || $echo 'restore of' 'tar-1.13/aclocal.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/aclocal.m4:' 'MD5 check failed' c362e72943f835f2717daf64fbff2d2c tar-1.13/aclocal.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/aclocal.m4'`" test 37120 -eq "$shar_count" || $echo 'tar-1.13/aclocal.m4:' 'original size' '37120,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/config.guess ============== if test -f 'tar-1.13/config.guess' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/config.guess' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/config.guess' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/config.guess' && #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. X # Written by Per Bothner . # The master version of this file is at the FSF in /home/gd/gnu/lib. # Please send patches to the Autoconf mailing list . # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit system type (host/target name). # # Only a few systems have been added to this list; please add others # (but try to keep the structure clean). # X # Use $HOST_CC if defined. $CC may point to a cross-compiler if test x"$CC_FOR_BUILD" = x; then X if test x"$HOST_CC" != x; then X CC_FOR_BUILD="$HOST_CC" X else X if test x"$CC" != x; then X CC_FOR_BUILD="$CC" X else X CC_FOR_BUILD=cc X fi X fi fi X X # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 8/24/94.) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then X PATH=$PATH:/.attbin ; export PATH fi X UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown X dummy=dummy-$$ trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 X # Note: order is significant - the case branches are not exclusive. X case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in X alpha:OSF1:*:*) X if test $UNAME_RELEASE = "V4.0"; then X UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` X fi X # A Vn.n version is a released version. X # A Tn.n version is a released field test version. X # A Xn.n version is an unreleased experimental baselevel. X # 1.2 uses "1.2" for uname -r. X cat <$dummy.s X .globl main X .ent main main: X .frame \$30,0,\$26,0 X .prologue 0 X .long 0x47e03d80 # implver $0 X lda \$2,259 X .long 0x47e20c21 # amask $2,$1 X srl \$1,8,\$2 X sll \$2,2,\$2 X sll \$0,3,\$0 X addl \$1,\$0,\$0 X addl \$2,\$0,\$0 X ret \$31,(\$26),1 X .end main EOF X $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null X if test "$?" = 0 ; then X ./$dummy X case "$?" in X 7) X UNAME_MACHINE="alpha" X ;; X 15) X UNAME_MACHINE="alphaev5" X ;; X 14) X UNAME_MACHINE="alphaev56" X ;; X 10) X UNAME_MACHINE="alphapca56" X ;; X 16) X UNAME_MACHINE="alphaev6" X ;; X esac X fi X rm -f $dummy.s $dummy X echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` X exit 0 ;; X 21064:Windows_NT:50:3) X echo alpha-dec-winnt3.5 X exit 0 ;; X Amiga*:UNIX_System_V:4.0:*) X echo m68k-cbm-sysv4 X exit 0;; X amiga:NetBSD:*:*) X echo m68k-cbm-netbsd${UNAME_RELEASE} X exit 0 ;; X amiga:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X *:[Aa]miga[Oo][Ss]:*:*) X echo ${UNAME_MACHINE}-unknown-amigaos X exit 0 ;; X arc64:OpenBSD:*:*) X echo mips64el-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X arc:OpenBSD:*:*) X echo mipsel-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X hkmips:OpenBSD:*:*) X echo mips-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X pmax:OpenBSD:*:*) X echo mipsel-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X sgi:OpenBSD:*:*) X echo mips-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X wgrisc:OpenBSD:*:*) X echo mipsel-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) X echo arm-acorn-riscix${UNAME_RELEASE} X exit 0;; X arm32:NetBSD:*:*) X echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` X exit 0 ;; X SR2?01:HI-UX/MPP:*:*) X echo hppa1.1-hitachi-hiuxmpp X exit 0;; X Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) X # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. X if test "`(/bin/universe) 2>/dev/null`" = att ; then X echo pyramid-pyramid-sysv3 X else X echo pyramid-pyramid-bsd X fi X exit 0 ;; X NILE*:*:*:dcosx) X echo pyramid-pyramid-svr4 X exit 0 ;; X sun4H:SunOS:5.*:*) X echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) X echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X i86pc:SunOS:5.*:*) X echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X sun4*:SunOS:6*:*) X # According to config.sub, this is the proper way to canonicalize X # SunOS6. Hard to guess exactly what SunOS6 will be like, but X # it's likely to be more like Solaris than SunOS4. X echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X sun4*:SunOS:*:*) X case "`/usr/bin/arch -k`" in X Series*|S4*) X UNAME_RELEASE=`uname -v` X ;; X esac X # Japanese Language versions have a version number like `4.1.3-JL'. X echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` X exit 0 ;; X sun3*:SunOS:*:*) X echo m68k-sun-sunos${UNAME_RELEASE} X exit 0 ;; X sun*:*:4.2BSD:*) X UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` X test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 X case "`/bin/arch`" in X sun3) X echo m68k-sun-sunos${UNAME_RELEASE} X ;; X sun4) X echo sparc-sun-sunos${UNAME_RELEASE} X ;; X esac X exit 0 ;; X aushp:SunOS:*:*) X echo sparc-auspex-sunos${UNAME_RELEASE} X exit 0 ;; X atari*:NetBSD:*:*) X echo m68k-atari-netbsd${UNAME_RELEASE} X exit 0 ;; X atari*:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X # The situation for MiNT is a little confusing. The machine name X # can be virtually everything (everything which is not X # "atarist" or "atariste" at least should have a processor X # > m68000). The system name ranges from "MiNT" over "FreeMiNT" X # to the lowercase version "mint" (or "freemint"). Finally X # the system name "TOS" denotes a system which is actually not X # MiNT. But MiNT is downward compatible to TOS, so this should X # be no problem. X atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) X echo m68k-atari-mint${UNAME_RELEASE} X exit 0 ;; X atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) X echo m68k-atari-mint${UNAME_RELEASE} X exit 0 ;; X *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) X echo m68k-atari-mint${UNAME_RELEASE} X exit 0 ;; X milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) X echo m68k-milan-mint${UNAME_RELEASE} X exit 0 ;; X hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) X echo m68k-hades-mint${UNAME_RELEASE} X exit 0 ;; X *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) X echo m68k-unknown-mint${UNAME_RELEASE} X exit 0 ;; X sun3*:NetBSD:*:*) X echo m68k-sun-netbsd${UNAME_RELEASE} X exit 0 ;; X sun3*:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X mac68k:NetBSD:*:*) X echo m68k-apple-netbsd${UNAME_RELEASE} X exit 0 ;; X mac68k:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X mvme68k:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X mvme88k:OpenBSD:*:*) X echo m88k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X powerpc:machten:*:*) X echo powerpc-apple-machten${UNAME_RELEASE} X exit 0 ;; X macppc:NetBSD:*:*) X echo powerpc-apple-netbsd${UNAME_RELEASE} X exit 0 ;; X RISC*:Mach:*:*) X echo mips-dec-mach_bsd4.3 X exit 0 ;; X RISC*:ULTRIX:*:*) X echo mips-dec-ultrix${UNAME_RELEASE} X exit 0 ;; X VAX*:ULTRIX*:*:*) X echo vax-dec-ultrix${UNAME_RELEASE} X exit 0 ;; X 2020:CLIX:*:* | 2430:CLIX:*:*) X echo clipper-intergraph-clix${UNAME_RELEASE} X exit 0 ;; X mips:*:*:UMIPS | mips:*:*:RISCos) X sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus X int main (int argc, char *argv[]) { #else X int main (argc, argv) int argc; char *argv[]; { #endif X #if defined (host_mips) && defined (MIPSEB) X #if defined (SYSTYPE_SYSV) X printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); X #endif X #if defined (SYSTYPE_SVR4) X printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); X #endif X #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) X printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); X #endif X #endif X exit (-1); X } EOF X $CC_FOR_BUILD $dummy.c -o $dummy \ X && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ X && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X echo mips-mips-riscos${UNAME_RELEASE} X exit 0 ;; X Night_Hawk:Power_UNIX:*:*) X echo powerpc-harris-powerunix X exit 0 ;; X m88k:CX/UX:7*:*) X echo m88k-harris-cxux7 X exit 0 ;; X m88k:*:4*:R4*) X echo m88k-motorola-sysv4 X exit 0 ;; X m88k:*:3*:R3*) X echo m88k-motorola-sysv3 X exit 0 ;; X AViiON:dgux:*:*) X # DG/UX returns AViiON for all architectures X UNAME_PROCESSOR=`/usr/bin/uname -p` X if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then X if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ X -o ${TARGET_BINARY_INTERFACE}x = x ] ; then X echo m88k-dg-dgux${UNAME_RELEASE} X else X echo m88k-dg-dguxbcs${UNAME_RELEASE} X fi X else echo i586-dg-dgux${UNAME_RELEASE} X fi X exit 0 ;; X M88*:DolphinOS:*:*) # DolphinOS (SVR3) X echo m88k-dolphin-sysv3 X exit 0 ;; X M88*:*:R3*:*) X # Delta 88k system running SVR3 X echo m88k-motorola-sysv3 X exit 0 ;; X XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) X echo m88k-tektronix-sysv3 X exit 0 ;; X Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) X echo m68k-tektronix-bsd X exit 0 ;; X *:IRIX*:*:*) X echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` X exit 0 ;; X ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. X echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id X exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' X i?86:AIX:*:*) X echo i386-ibm-aix X exit 0 ;; X *:AIX:2:3) X if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then X sed 's/^ //' << EOF >$dummy.c X #include X X main() X { X if (!__power_pc()) X exit(1); X puts("powerpc-ibm-aix3.2.5"); X exit(0); X } EOF X $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X echo rs6000-ibm-aix3.2.5 X elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then X echo rs6000-ibm-aix3.2.4 X else X echo rs6000-ibm-aix3.2 X fi X exit 0 ;; X *:AIX:*:4) X IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` X if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then X IBM_ARCH=rs6000 X else X IBM_ARCH=powerpc X fi X if [ -x /usr/bin/oslevel ] ; then X IBM_REV=`/usr/bin/oslevel` X else X IBM_REV=4.${UNAME_RELEASE} X fi X echo ${IBM_ARCH}-ibm-aix${IBM_REV} X exit 0 ;; X *:AIX:*:*) X echo rs6000-ibm-aix X exit 0 ;; X ibmrt:4.4BSD:*|romp-ibm:BSD:*) X echo romp-ibm-bsd4.4 X exit 0 ;; X ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and X echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to X exit 0 ;; # report: romp-ibm BSD 4.3 X *:BOSX:*:*) X echo rs6000-bull-bosx X exit 0 ;; X DPX/2?00:B.O.S.:*:*) X echo m68k-bull-sysv3 X exit 0 ;; X 9000/[34]??:4.3bsd:1.*:*) X echo m68k-hp-bsd X exit 0 ;; X hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) X echo m68k-hp-bsd4.4 X exit 0 ;; X 9000/[34678]??:HP-UX:*:*) X case "${UNAME_MACHINE}" in X 9000/31? ) HP_ARCH=m68000 ;; X 9000/[34]?? ) HP_ARCH=m68k ;; X 9000/6?? | 9000/7?? | 9000/80[024] | 9000/8?[136790] | 9000/892 ) X sed 's/^ //' << EOF >$dummy.c X #include X #include X X int main () X { X #if defined(_SC_KERNEL_BITS) X long bits = sysconf(_SC_KERNEL_BITS); X #endif X long cpu = sysconf (_SC_CPU_VERSION); X X switch (cpu) X { X case CPU_PA_RISC1_0: puts ("hppa1.0"); break; X case CPU_PA_RISC1_1: puts ("hppa1.1"); break; X case CPU_PA_RISC2_0: X #if defined(_SC_KERNEL_BITS) X switch (bits) X { X case 64: puts ("hppa2.0w"); break; X case 32: puts ("hppa2.0n"); break; X default: puts ("hppa2.0"); break; X } break; X #else /* !defined(_SC_KERNEL_BITS) */ X puts ("hppa2.0"); break; X #endif X default: puts ("hppa1.0"); break; X } X exit (0); X } EOF X ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` X rm -f $dummy.c $dummy X esac X HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` X echo ${HP_ARCH}-hp-hpux${HPUX_REV} X exit 0 ;; X 3050*:HI-UX:*:*) X sed 's/^ //' << EOF >$dummy.c X #include X int X main () X { X long cpu = sysconf (_SC_CPU_VERSION); X /* The order matters, because CPU_IS_HP_MC68K erroneously returns X true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct X results, however. */ X if (CPU_IS_PA_RISC (cpu)) X { X switch (cpu) X { X case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; X case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; X case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; X default: puts ("hppa-hitachi-hiuxwe2"); break; X } X } X else if (CPU_IS_HP_MC68K (cpu)) X puts ("m68k-hitachi-hiuxwe2"); X else puts ("unknown-hitachi-hiuxwe2"); X exit (0); X } EOF X $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X echo unknown-hitachi-hiuxwe2 X exit 0 ;; X 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) X echo hppa1.1-hp-bsd X exit 0 ;; X 9000/8??:4.3bsd:*:*) X echo hppa1.0-hp-bsd X exit 0 ;; X *9??*:MPE*:*:*) X echo hppa1.0-hp-mpeix X exit 0 ;; X hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) X echo hppa1.1-hp-osf X exit 0 ;; X hp8??:OSF1:*:*) X echo hppa1.0-hp-osf X exit 0 ;; X i?86:OSF1:*:*) X if [ -x /usr/sbin/sysversion ] ; then X echo ${UNAME_MACHINE}-unknown-osf1mk X else X echo ${UNAME_MACHINE}-unknown-osf1 X fi X exit 0 ;; X parisc*:Lites*:*:*) X echo hppa1.1-hp-lites X exit 0 ;; X C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) X echo c1-convex-bsd X exit 0 ;; X C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) X if getsysinfo -f scalar_acc X then echo c32-convex-bsd X else echo c2-convex-bsd X fi X exit 0 ;; X C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) X echo c34-convex-bsd X exit 0 ;; X C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) X echo c38-convex-bsd X exit 0 ;; X C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) X echo c4-convex-bsd X exit 0 ;; X CRAY*X-MP:*:*:*) X echo xmp-cray-unicos X exit 0 ;; X CRAY*Y-MP:*:*:*) X echo ymp-cray-unicos${UNAME_RELEASE} X exit 0 ;; X CRAY*[A-Z]90:*:*:*) X echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ X | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ X -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ X exit 0 ;; X CRAY*TS:*:*:*) X echo t90-cray-unicos${UNAME_RELEASE} X exit 0 ;; X CRAY*T3E:*:*:*) X echo t3e-cray-unicosmk${UNAME_RELEASE} X exit 0 ;; X CRAY-2:*:*:*) X echo cray2-cray-unicos X exit 0 ;; X F300:UNIX_System_V:*:*) X FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` X FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` X echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" X exit 0 ;; X F301:UNIX_System_V:*:*) X echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` X exit 0 ;; X hp3[0-9][05]:NetBSD:*:*) X echo m68k-hp-netbsd${UNAME_RELEASE} X exit 0 ;; X hp300:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X sparc*:BSD/OS:*:*) X echo sparc-unknown-bsdi${UNAME_RELEASE} X exit 0 ;; X i?86:BSD/386:*:* | i?86:BSD/OS:*:*) X echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} X exit 0 ;; X *:BSD/OS:*:*) X echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} X exit 0 ;; X *:FreeBSD:*:*) X if test -x /usr/bin/objformat; then X if test "elf" = "`/usr/bin/objformat`"; then X echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` X exit 0 X fi X fi X echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` X exit 0 ;; X *:NetBSD:*:*) X echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` X exit 0 ;; X *:OpenBSD:*:*) X echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` X exit 0 ;; X i*:CYGWIN*:*) X echo ${UNAME_MACHINE}-pc-cygwin X exit 0 ;; X i*:MINGW*:*) X echo ${UNAME_MACHINE}-pc-mingw32 X exit 0 ;; X p*:CYGWIN*:*) X echo powerpcle-unknown-cygwin X exit 0 ;; X prep*:SunOS:5.*:*) X echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X *:GNU:*:*) X echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` X exit 0 ;; X *:Linux:*:*) X # uname on the ARM produces all sorts of strangeness, and we need to X # filter it out. X case "$UNAME_MACHINE" in X armv*) UNAME_MACHINE=$UNAME_MACHINE ;; X arm* | sa110*) UNAME_MACHINE="arm" ;; X esac X X # The BFD linker knows what the default object file format is, so X # first see if it will tell us. cd to the root directory to prevent X # problems with other programs or directories called `ld' in the path. X ld_help_string=`cd /; ld --help 2>&1` X ld_supported_emulations=`echo $ld_help_string \ X | sed -ne '/supported emulations:/!d X s/[ ][ ]*/ /g X s/.*supported emulations: *// X s/ .*// X p'` X case "$ld_supported_emulations" in X i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; X i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; X sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; X armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; X m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; X elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; X esac X X if test "${UNAME_MACHINE}" = "alpha" ; then X sed 's/^ //' <$dummy.s X .globl main X .ent main X main: X .frame \$30,0,\$26,0 X .prologue 0 X .long 0x47e03d80 # implver $0 X lda \$2,259 X .long 0x47e20c21 # amask $2,$1 X srl \$1,8,\$2 X sll \$2,2,\$2 X sll \$0,3,\$0 X addl \$1,\$0,\$0 X addl \$2,\$0,\$0 X ret \$31,(\$26),1 X .end main EOF X LIBC="" X $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null X if test "$?" = 0 ; then X ./$dummy X case "$?" in X 7) X UNAME_MACHINE="alpha" X ;; X 15) X UNAME_MACHINE="alphaev5" X ;; X 14) X UNAME_MACHINE="alphaev56" X ;; X 10) X UNAME_MACHINE="alphapca56" X ;; X 16) X UNAME_MACHINE="alphaev6" X ;; X esac X X objdump --private-headers $dummy | \ X grep ld.so.1 > /dev/null X if test "$?" = 0 ; then X LIBC="libc1" X fi X fi X rm -f $dummy.s $dummy X echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 X elif test "${UNAME_MACHINE}" = "mips" ; then X cat >$dummy.c </dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X else X # Either a pre-BFD a.out linker (linux-gnuoldld) X # or one that does not give us useful --help. X # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. X # If ld does not provide *any* "supported emulations:" X # that means it is gnuoldld. X echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" X test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 X X case "${UNAME_MACHINE}" in X i?86) X VENDOR=pc; X ;; X *) X VENDOR=unknown; X ;; X esac X # Determine whether the default compiler is a.out or elf X cat >$dummy.c < #ifdef __cplusplus X int main (int argc, char *argv[]) { #else X int main (argc, argv) int argc; char *argv[]; { #endif #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 X printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); # else X printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif # else X printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif #else X printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); #endif X return 0; } EOF X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X fi ;; # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions # are messed up and put the nodename in both sysname and nodename. X i?86:DYNIX/ptx:4*:*) X echo i386-sequent-sysv4 X exit 0 ;; X i?86:UNIX_SV:4.2MP:2.*) X # Unixware is an offshoot of SVR4, but it has its own version X # number series starting with 2... X # I am not positive that other SVR4 systems won't match this, X # I just have to hope. -- rms. X # Use sysv4.2uw... so that sysv4* matches it. X echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} X exit 0 ;; X i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) X if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then X echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} X else X echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} X fi X exit 0 ;; X i?86:*:3.2:*) X if test -f /usr/options/cb.name; then X UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then X UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` X (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 X (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ X && UNAME_MACHINE=i586 X echo ${UNAME_MACHINE}-pc-sco$UNAME_REL X else X echo ${UNAME_MACHINE}-pc-sysv32 X fi X exit 0 ;; X i?86:UnixWare:*:*) X if /bin/uname -X 2>/dev/null >/dev/null ; then X (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ X && UNAME_MACHINE=i586 X fi X echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION} X exit 0 ;; X pc:*:*:*) X # uname -m prints for DJGPP always 'pc', but it prints nothing about X # the processor, so we play safe by assuming i386. X echo i386-pc-msdosdjgpp X exit 0 ;; X Intel:Mach:3*:*) X echo i386-pc-mach3 X exit 0 ;; X paragon:*:*:*) X echo i860-intel-osf1 X exit 0 ;; X i860:*:4.*:*) # i860-SVR4 X if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then X echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 X else # Add other i860-SVR4 vendors below as they are discovered. X echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 X fi X exit 0 ;; X mini*:CTIX:SYS*5:*) X # "miniframe" X echo m68010-convergent-sysv X exit 0 ;; X M68*:*:R3V[567]*:*) X test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; X 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) X OS_REL='' X test -r /etc/.relid \ X && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` X /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ X && echo i486-ncr-sysv4.3${OS_REL} && exit 0 X /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ X && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; X 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) X /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ X && echo i486-ncr-sysv4 && exit 0 ;; X m68*:LynxOS:2.*:*) X echo m68k-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X mc68030:UNIX_System_V:4.*:*) X echo m68k-atari-sysv4 X exit 0 ;; X i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) X echo i386-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X TSUNAMI:LynxOS:2.*:*) X echo sparc-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) X echo rs6000-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X SM[BE]S:UNIX_SV:*:*) X echo mips-dde-sysv${UNAME_RELEASE} X exit 0 ;; X RM*:ReliantUNIX-*:*:*) X echo mips-sni-sysv4 X exit 0 ;; X RM*:SINIX-*:*:*) X echo mips-sni-sysv4 X exit 0 ;; X *:SINIX-*:*:*) X if uname -p 2>/dev/null >/dev/null ; then X UNAME_MACHINE=`(uname -p) 2>/dev/null` X echo ${UNAME_MACHINE}-sni-sysv4 X else X echo ns32k-sni-sysv X fi X exit 0 ;; X PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort X # says X echo i586-unisys-sysv4 X exit 0 ;; X *:UNIX_System_V:4*:FTX*) X # From Gerald Hewes . X # How about differentiating between stratus architectures? -djm X echo hppa1.1-stratus-sysv4 X exit 0 ;; X *:*:*:FTX*) X # From seanf@swdc.stratus.com. X echo i860-stratus-sysv4 X exit 0 ;; X mc68*:A/UX:*:*) X echo m68k-apple-aux${UNAME_RELEASE} X exit 0 ;; X news*:NEWS-OS:*:6*) X echo mips-sony-newsos6 X exit 0 ;; X R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) X if [ -d /usr/nec ]; then X echo mips-nec-sysv${UNAME_RELEASE} X else X echo mips-unknown-sysv${UNAME_RELEASE} X fi X exit 0 ;; X BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. X echo powerpc-be-beos X exit 0 ;; X BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. X echo powerpc-apple-beos X exit 0 ;; X BePC:BeOS:*:*) # BeOS running on Intel PC compatible. X echo i586-pc-beos X exit 0 ;; X SX-4:SUPER-UX:*:*) X echo sx4-nec-superux${UNAME_RELEASE} X exit 0 ;; X SX-5:SUPER-UX:*:*) X echo sx5-nec-superux${UNAME_RELEASE} X exit 0 ;; X Power*:Rhapsody:*:*) X echo powerpc-apple-rhapsody${UNAME_RELEASE} X exit 0 ;; X *:Rhapsody:*:*) X echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} X exit 0 ;; esac X #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 X cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) X /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, X I don't know.... */ X printf ("mips-sony-bsd\n"); exit (0); #else #include X printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 X "4" #else X "" #endif X ); exit (0); #endif #endif X #if defined (__arm) && defined (__acorn) && defined (__unix) X printf ("arm-acorn-riscix"); exit (0); #endif X #if defined (hp300) && !defined (hpux) X printf ("m68k-hp-bsd\n"); exit (0); #endif X #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif X int version; X version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; X if (version < 4) X printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); X else X printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); X exit (0); #endif X #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) X printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) X printf ("ns32k-encore-mach\n"); exit (0); #else X printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif X #if defined (__386BSD__) X printf ("i386-pc-bsd\n"); exit (0); #endif X #if defined (sequent) #if defined (i386) X printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) X printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif X #if defined (_SEQUENT_) X struct utsname un; X X uname(&un); X X if (strncmp(un.version, "V2", 2) == 0) { X printf ("i386-sequent-ptx2\n"); exit (0); X } X if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ X printf ("i386-sequent-ptx1\n"); exit (0); X } X printf ("i386-sequent-ptx\n"); exit (0); X #endif X #if defined (vax) #if !defined (ultrix) X printf ("vax-dec-bsd\n"); exit (0); #else X printf ("vax-dec-ultrix\n"); exit (0); #endif #endif X #if defined (alliant) && defined (i860) X printf ("i860-alliant-bsd\n"); exit (0); #endif X X exit (1); } EOF X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy X # Apollos put the system type in the environment. X test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } X # Convex versions that predate uname can use getsysinfo(1) X if [ -x /usr/convex/getsysinfo ] then X case `getsysinfo -f cpu_type` in X c1*) X echo c1-convex-bsd X exit 0 ;; X c2*) X if getsysinfo -f scalar_acc X then echo c32-convex-bsd X else echo c2-convex-bsd X fi X exit 0 ;; X c34*) X echo c34-convex-bsd X exit 0 ;; X c38*) X echo c38-convex-bsd X exit 0 ;; X c4*) X echo c4-convex-bsd X exit 0 ;; X esac fi X #echo '(Unable to guess system type)' 1>&2 X exit 1 SHAR_EOF $shar_touch -am 0420192299 'tar-1.13/config.guess' && chmod 0444 'tar-1.13/config.guess' || $echo 'restore of' 'tar-1.13/config.guess' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/config.guess:' 'MD5 check failed' ba1c02e4530453e06dc7eecdff82c2ca tar-1.13/config.guess SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/config.guess'`" test 29612 -eq "$shar_count" || $echo 'tar-1.13/config.guess:' 'original size' '29612,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/config.h.in ============== if test -f 'tar-1.13/config.h.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/config.h.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/config.h.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/config.h.in' && /* config.h.in. Generated automatically from configure.in by autoheader. */ X /* Define if on AIX 3. X System headers sometimes define this. X We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE #undef _ALL_SOURCE #endif X /* Define if using alloca.c. */ #undef C_ALLOCA X /* Define to empty if the keyword does not work. */ #undef const X /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. X This function is required for alloca.c support on those systems. */ #undef CRAY_STACKSEG_END X /* Define to `int' if doesn't define. */ #undef gid_t X /* Define if you have alloca, as a function or macro. */ #undef HAVE_ALLOCA X /* Define if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H X /* Define if you don't have vprintf but do have _doprnt. */ #undef HAVE_DOPRNT X /* Define if your system has a working fnmatch function. */ #undef HAVE_FNMATCH X /* Define if you have a working `mmap' system call. */ #undef HAVE_MMAP X /* Define if your struct stat has st_blksize. */ #undef HAVE_ST_BLKSIZE X /* Define if your struct stat has st_blocks. */ #undef HAVE_ST_BLOCKS X /* Define if you have the vprintf function. */ #undef HAVE_VPRINTF X /* Define as __inline if that's what the C compiler calls it. */ #undef inline X /* Define if major, minor, and makedev are declared in . */ #undef MAJOR_IN_MKDEV X /* Define if major, minor, and makedev are declared in . */ #undef MAJOR_IN_SYSMACROS X /* Define if on MINIX. */ #undef _MINIX X /* Define to `int' if doesn't define. */ #undef mode_t X /* Define to `long' if doesn't define. */ #undef off_t X /* Define to `int' if doesn't define. */ #undef pid_t X /* Define if the system does not provide POSIX.1 features except X with this defined. */ #undef _POSIX_1_SOURCE X /* Define if you need to in order for stat and other things to work. */ #undef _POSIX_SOURCE X /* Define as the return type of signal handlers (int or void). */ #undef RETSIGTYPE X /* Define to `unsigned' if doesn't define. */ #undef size_t X /* If using the C implementation of alloca, define if you know the X direction of stack growth for your system; otherwise it will be X automatically deduced at run-time. X STACK_DIRECTION > 0 => grows toward higher addresses X STACK_DIRECTION < 0 => grows toward lower addresses X STACK_DIRECTION = 0 => direction of growth unknown X */ #undef STACK_DIRECTION X /* Define if the `S_IS*' macros in do not work properly. */ #undef STAT_MACROS_BROKEN X /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS X /* Define if you can safely include both and . */ #undef TIME_WITH_SYS_TIME X /* Define to `int' if doesn't define. */ #undef uid_t X /* This is unconditionally defined for setting a GNU environment. */ #undef _GNU_SOURCE X /* Define to `int' if doesn't define. */ #undef daddr_t X /* Define to a string giving the full name of the default archive file. */ #undef DEFAULT_ARCHIVE X /* Define to a number giving the default blocking size for archives. */ #undef DEFAULT_BLOCKING X /* Define to 1 if density may be indicated by [lmh] at end of device. */ #undef DENSITY_LETTER X /* Define to a string giving the prefix of the default device, without the X part specifying the unit and density. */ #undef DEVICE_PREFIX X /* Define to 1 if you lack a 3-argument version of open, and want to X emulate it with system calls you do have. */ #undef EMUL_OPEN3 X /* Define to 1 if you have getgrgid(3). */ #undef HAVE_GETGRGID X /* Define to 1 if you have getpwuid(3). */ #undef HAVE_GETPWUID X /* Define to 1 if mknod function is available. */ #undef HAVE_MKNOD X /* Define if struct stat has a char st_fstype[] member. */ #undef HAVE_ST_FSTYPE_STRING X /* Define if `union wait' is the type of the first arg to wait functions. */ #undef HAVE_UNION_WAIT X /* Define to 1 if utime.h exists and declares struct utimbuf. */ #undef HAVE_UTIME_H X /* Define to `int' if doesn't define. */ #undef major_t X /* Define to `int' if doesn't define. */ #undef minor_t X /* Define to mt_model (v.g., for DG/UX), else to mt_type. */ #undef MTIO_CHECK_FIELD X /* Define to the full path of your rsh, if any. */ #undef REMOTE_SHELL X /* Define to `int' if doesn't define. */ #undef ssize_t X /* The number of bytes in a long long. */ #undef SIZEOF_LONG_LONG X /* The number of bytes in a unsigned long. */ #undef SIZEOF_UNSIGNED_LONG X /* Define if you have the __argz_count function. */ #undef HAVE___ARGZ_COUNT X /* Define if you have the __argz_next function. */ #undef HAVE___ARGZ_NEXT X /* Define if you have the __argz_stringify function. */ #undef HAVE___ARGZ_STRINGIFY X /* Define if you have the alarm function. */ #undef HAVE_ALARM X /* Define if you have the dcgettext function. */ #undef HAVE_DCGETTEXT X /* Define if you have the execlp function. */ #undef HAVE_EXECLP X /* Define if you have the fsync function. */ #undef HAVE_FSYNC X /* Define if you have the ftime function. */ #undef HAVE_FTIME X /* Define if you have the ftruncate function. */ #undef HAVE_FTRUNCATE X /* Define if you have the getcwd function. */ #undef HAVE_GETCWD X /* Define if you have the getpagesize function. */ #undef HAVE_GETPAGESIZE X /* Define if you have the isascii function. */ #undef HAVE_ISASCII X /* Define if you have the lchown function. */ #undef HAVE_LCHOWN X /* Define if you have the localtime_r function. */ #undef HAVE_LOCALTIME_R X /* Define if you have the memset function. */ #undef HAVE_MEMSET X /* Define if you have the mkdir function. */ #undef HAVE_MKDIR X /* Define if you have the mkfifo function. */ #undef HAVE_MKFIFO X /* Define if you have the munmap function. */ #undef HAVE_MUNMAP X /* Define if you have the nap function. */ #undef HAVE_NAP X /* Define if you have the napms function. */ #undef HAVE_NAPMS X /* Define if you have the poll function. */ #undef HAVE_POLL X /* Define if you have the putenv function. */ #undef HAVE_PUTENV X /* Define if you have the rename function. */ #undef HAVE_RENAME X /* Define if you have the rmdir function. */ #undef HAVE_RMDIR X /* Define if you have the select function. */ #undef HAVE_SELECT X /* Define if you have the setenv function. */ #undef HAVE_SETENV X /* Define if you have the setlocale function. */ #undef HAVE_SETLOCALE X /* Define if you have the stpcpy function. */ #undef HAVE_STPCPY X /* Define if you have the strcasecmp function. */ #undef HAVE_STRCASECMP X /* Define if you have the strchr function. */ #undef HAVE_STRCHR X /* Define if you have the strdup function. */ #undef HAVE_STRDUP X /* Define if you have the strerror function. */ #undef HAVE_STRERROR X /* Define if you have the strstr function. */ #undef HAVE_STRSTR X /* Define if you have the strtol function. */ #undef HAVE_STRTOL X /* Define if you have the strtoul function. */ #undef HAVE_STRTOUL X /* Define if you have the strtoull function. */ #undef HAVE_STRTOULL X /* Define if you have the strtoumax function. */ #undef HAVE_STRTOUMAX X /* Define if you have the usleep function. */ #undef HAVE_USLEEP X /* Define if you have the header file. */ #undef HAVE_ARGZ_H X /* Define if you have the header file. */ #undef HAVE_DIRENT_H X /* Define if you have the header file. */ #undef HAVE_FCNTL_H X /* Define if you have the header file. */ #undef HAVE_LIMITS_H X /* Define if you have the header file. */ #undef HAVE_LINUX_FD_H X /* Define if you have the header file. */ #undef HAVE_LOCALE_H X /* Define if you have the header file. */ #undef HAVE_MALLOC_H X /* Define if you have the header file. */ #undef HAVE_MEMORY_H X /* Define if you have the header file. */ #undef HAVE_NDIR_H X /* Define if you have the header file. */ #undef HAVE_NET_ERRNO_H X /* Define if you have the header file. */ #undef HAVE_NETDB_H X /* Define if you have the header file. */ #undef HAVE_NL_TYPES_H X /* Define if you have the header file. */ #undef HAVE_POLL_H X /* Define if you have the header file. */ #undef HAVE_SGTTY_H X /* Define if you have the header file. */ #undef HAVE_STDLIB_H X /* Define if you have the header file. */ #undef HAVE_STRING_H X /* Define if you have the header file. */ #undef HAVE_STROPTS_H X /* Define if you have the header file. */ #undef HAVE_SYS_BUF_H X /* Define if you have the header file. */ #undef HAVE_SYS_DEVICE_H X /* Define if you have the header file. */ #undef HAVE_SYS_DIR_H X /* Define if you have the header file. */ #undef HAVE_SYS_GENTAPE_H X /* Define if you have the header file. */ #undef HAVE_SYS_INET_H X /* Define if you have the header file. */ #undef HAVE_SYS_IO_TRIOCTL_H X /* Define if you have the header file. */ #undef HAVE_SYS_IOCCOM_H X /* Define if you have the header file. */ #undef HAVE_SYS_MTIO_H X /* Define if you have the header file. */ #undef HAVE_SYS_NDIR_H X /* Define if you have the header file. */ #undef HAVE_SYS_PARAM_H X /* Define if you have the header file. */ #undef HAVE_SYS_TAPE_H X /* Define if you have the header file. */ #undef HAVE_SYS_TIME_H X /* Define if you have the header file. */ #undef HAVE_SYS_TIMEB_H X /* Define if you have the header file. */ #undef HAVE_SYS_TPRINTF_H X /* Define if you have the header file. */ #undef HAVE_SYS_WAIT_H X /* Define if you have the header file. */ #undef HAVE_UNISTD_H X /* Define if you have the i library (-li). */ #undef HAVE_LIBI X /* Define if you have the intl library (-lintl). */ #undef HAVE_LIBINTL X /* Define if you have the nsl library (-lnsl). */ #undef HAVE_LIBNSL X /* Define if you have the socket library (-lsocket). */ #undef HAVE_LIBSOCKET X /* Name of package */ #undef PACKAGE X /* Version number of package */ #undef VERSION X /* Number of bits in a file offset, on hosts where this is settable. X case in X # HP-UX 10.20 and later X hpux10.2-90-9* | hpux11-9* | hpux2-90-9*) X ac_cv_sys_file_offset_bits=64 ;; X esac */ #undef _FILE_OFFSET_BITS X /* Define to make fseeko etc. visible, on some hosts. */ #undef _LARGEFILE_SOURCE X /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES X /* Define if compiler has function prototypes */ #undef PROTOTYPES X /* Define if exists, doesn't clash with , X and declares uintmax_t. */ #undef HAVE_INTTYPES_H X /* Define if there is a member named d_ino in the struct describing X directory headers. */ #undef D_INO_IN_DIRENT X /* Define if you have the unsigned long long type. */ #undef HAVE_UNSIGNED_LONG_LONG X /* Define to `unsigned long' or `unsigned long long' X if doesn't define. */ #undef uintmax_t X /* Define if the malloc check has been performed. */ #undef HAVE_DONE_WORKING_MALLOC_CHECK X /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc X /* Define to rpl_mktime if the replacement function should be used. */ #undef mktime X /* Define if the realloc check has been performed. */ #undef HAVE_DONE_WORKING_REALLOC_CHECK X /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc X /* Define if using the dmalloc debugging malloc package */ #undef WITH_DMALLOC X /* Define to 1 if you have the stpcpy function. */ #undef HAVE_STPCPY X /* Define if your locale.h file contains LC_MESSAGES. */ #undef HAVE_LC_MESSAGES X /* Define to 1 if NLS is requested. */ #undef ENABLE_NLS X /* Define to 1 if you have gettext and don't want to use GNU gettext. */ #undef HAVE_GETTEXT X /* Define as 1 if you have catgets and don't want to use GNU gettext. */ #undef HAVE_CATGETS X SHAR_EOF $shar_touch -am 0702194299 'tar-1.13/config.h.in' && chmod 0664 'tar-1.13/config.h.in' || $echo 'restore of' 'tar-1.13/config.h.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/config.h.in:' 'MD5 check failed' 65df91fe74e14bcf9a1737d8e6eed51b tar-1.13/config.h.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/config.h.in'`" test 11992 -eq "$shar_count" || $echo 'tar-1.13/config.h.in:' 'original size' '11992,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/config.sub ============== if test -f 'tar-1.13/config.sub' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/config.sub' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/config.sub' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/config.sub' && #! /bin/sh # Configuration validation subroutine script, version 1.1. # Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. X # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. X # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. X # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. X # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. X if [ x$1 = x ] then X echo Configuration name missing. 1>&2 X echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 X echo "or $0 ALIAS" 1>&2 X echo where ALIAS is a recognized configuration type. 1>&2 X exit 1 fi X # First pass through any local machine types. case $1 in X *local*) X echo $1 X exit 0 X ;; X *) X ;; esac X # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in X linux-gnu*) X os=-$maybe_os X basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` X ;; X *) X basic_machine=`echo $1 | sed 's/-[^-]*$//'` X if [ $basic_machine != $1 ] X then os=`echo $1 | sed 's/.*-/-/'` X else os=; fi X ;; esac X ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in X -sun*os*) X # Prevent following clause from handling this invalid input. X ;; X -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ X -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ X -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ X -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ X -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ X -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ X -apple) X os= X basic_machine=$1 X ;; X -hiux*) X os=-hiuxwe2 X ;; X -sco5) X os=sco3.2v5 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco4) X os=-sco3.2v4 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco3.2.[4-9]*) X os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco3.2v[4-9]*) X # Don't forget version if it is 3.2v4 or newer. X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco*) X os=-sco3.2v2 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -isc) X os=-isc2.2 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -clix*) X basic_machine=clipper-intergraph X ;; X -isc*) X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -lynx*) X os=-lynxos X ;; X -ptx*) X basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` X ;; X -windowsnt*) X os=`echo $os | sed -e 's/windowsnt/winnt/'` X ;; X -psos*) X os=-psos X ;; esac X # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in X # Recognize the basic CPU types without company name. X # Some are omitted here because they have special meanings below. X tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ X | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ X | 580 | i960 | h8300 \ X | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w \ X | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ X | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ X | 1750a | dsp16xx | pdp11 | mips64 | mipsel | mips64el \ X | mips64orion | mips64orionel | mipstx39 | mipstx39el \ X | sparc | sparclet | sparclite | sparc64 | v850) X basic_machine=$basic_machine-unknown X ;; X # We use `pc' rather than `unknown' X # because (1) that's what they normally are, and X # (2) the word "unknown" tends to confuse beginning users. X i[34567]86) X basic_machine=$basic_machine-pc X ;; X # Object if more than one company name word. X *-*-*) X echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 X exit 1 X ;; X # Recognize the basic CPU types with company name. X vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ X | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ X | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ X | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ X | xmp-* | ymp-* \ X | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ X | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67] \ X | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ X | clipper-* | orion-* \ X | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ X | sparc64-* | mips64-* | mipsel-* \ X | mips64el-* | mips64orion-* | mips64orionel-* \ X | mipstx39-* | mipstx39el-* \ X | f301-* | armv*-*) X ;; X # Recognize the various machine names and aliases which stand X # for a CPU type and a company and sometimes even an OS. X 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) X basic_machine=m68000-att X ;; X 3b*) X basic_machine=we32k-att X ;; X alliant | fx80) X basic_machine=fx80-alliant X ;; X altos | altos3068) X basic_machine=m68k-altos X ;; X am29k) X basic_machine=a29k-none X os=-bsd X ;; X amdahl) X basic_machine=580-amdahl X os=-sysv X ;; X amiga | amiga-*) X basic_machine=m68k-cbm X ;; X amigaos | amigados) X basic_machine=m68k-cbm X os=-amigaos X ;; X amigaunix | amix) X basic_machine=m68k-cbm X os=-sysv4 X ;; X apollo68) X basic_machine=m68k-apollo X os=-sysv X ;; X aux) X basic_machine=m68k-apple X os=-aux X ;; X balance) X basic_machine=ns32k-sequent X os=-dynix X ;; X convex-c1) X basic_machine=c1-convex X os=-bsd X ;; X convex-c2) X basic_machine=c2-convex X os=-bsd X ;; X convex-c32) X basic_machine=c32-convex X os=-bsd X ;; X convex-c34) X basic_machine=c34-convex X os=-bsd X ;; X convex-c38) X basic_machine=c38-convex X os=-bsd X ;; X cray | ymp) X basic_machine=ymp-cray X os=-unicos X ;; X cray2) X basic_machine=cray2-cray X os=-unicos X ;; X [ctj]90-cray) X basic_machine=c90-cray X os=-unicos X ;; X crds | unos) X basic_machine=m68k-crds X ;; X da30 | da30-*) X basic_machine=m68k-da30 X ;; X decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) X basic_machine=mips-dec X ;; X delta | 3300 | motorola-3300 | motorola-delta \ X | 3300-motorola | delta-motorola) X basic_machine=m68k-motorola X ;; X delta88) X basic_machine=m88k-motorola X os=-sysv3 X ;; X dpx20 | dpx20-*) X basic_machine=rs6000-bull X os=-bosx X ;; X dpx2* | dpx2*-bull) X basic_machine=m68k-bull X os=-sysv3 X ;; X ebmon29k) X basic_machine=a29k-amd X os=-ebmon X ;; X elxsi) X basic_machine=elxsi-elxsi X os=-bsd X ;; X encore | umax | mmax) X basic_machine=ns32k-encore X ;; X fx2800) X basic_machine=i860-alliant X ;; X genix) X basic_machine=ns32k-ns X ;; X gmicro) X basic_machine=tron-gmicro X os=-sysv X ;; X h3050r* | hiux*) X basic_machine=hppa1.1-hitachi X os=-hiuxwe2 X ;; X h8300hms) X basic_machine=h8300-hitachi X os=-hms X ;; X harris) X basic_machine=m88k-harris X os=-sysv3 X ;; X hp300-*) X basic_machine=m68k-hp X ;; X hp300bsd) X basic_machine=m68k-hp X os=-bsd X ;; X hp300hpux) X basic_machine=m68k-hp X os=-hpux X ;; X hp9k2[0-9][0-9] | hp9k31[0-9]) X basic_machine=m68000-hp X ;; X hp9k3[2-9][0-9]) X basic_machine=m68k-hp X ;; X hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) X basic_machine=hppa1.1-hp X ;; X hp9k8[0-9][0-9] | hp8[0-9][0-9]) X basic_machine=hppa1.0-hp X ;; X hppa-next) X os=-nextstep3 X ;; X hp3k9[0-9][0-9] | hp9[0-9][0-9]) X basic_machine=hppa1.0-hp X os=-mpeix X ;; X hp3k9[0-9][0-9] | hp9[0-9][0-9]) X basic_machine=hppa1.0-hp X os=-mpeix X ;; X i370-ibm* | ibm*) X basic_machine=i370-ibm X os=-mvs X ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? X i[34567]86v32) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-sysv32 X ;; X i[34567]86v4*) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-sysv4 X ;; X i[34567]86v) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-sysv X ;; X i[34567]86sol2) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-solaris2 X ;; X iris | iris4d) X basic_machine=mips-sgi X case $os in X -irix*) X ;; X *) X os=-irix4 X ;; X esac X ;; X isi68 | isi) X basic_machine=m68k-isi X os=-sysv X ;; X m88k-omron*) X basic_machine=m88k-omron X ;; X magnum | m3230) X basic_machine=mips-mips X os=-sysv X ;; X merlin) X basic_machine=ns32k-utek X os=-sysv X ;; X miniframe) X basic_machine=m68000-convergent X ;; X mipsel*-linux*) X basic_machine=mipsel-unknown X os=-linux-gnu X ;; X mips*-linux*) X basic_machine=mips-unknown X os=-linux-gnu X ;; X mips3*-*) X basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` X ;; X mips3*) X basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown X ;; X ncr3000) X basic_machine=i486-ncr X os=-sysv4 X ;; X netwinder) X basic_machine=armv4l-corel X os=-linux X ;; X news | news700 | news800 | news900) X basic_machine=m68k-sony X os=-newsos X ;; X news1000) X basic_machine=m68030-sony X os=-newsos X ;; X news-3600 | risc-news) X basic_machine=mips-sony X os=-newsos X ;; X next | m*-next ) X basic_machine=m68k-next X case $os in X -nextstep* ) X ;; X -ns2*) X os=-nextstep2 X ;; X *) X os=-nextstep3 X ;; X esac X ;; X nh3000) X basic_machine=m68k-harris X os=-cxux X ;; X nh[45]000) X basic_machine=m88k-harris X os=-cxux X ;; X nindy960) X basic_machine=i960-intel X os=-nindy X ;; X np1) X basic_machine=np1-gould X ;; X pa-hitachi) X basic_machine=hppa1.1-hitachi X os=-hiuxwe2 X ;; X paragon) X basic_machine=i860-intel X os=-osf X ;; X pbd) X basic_machine=sparc-tti X ;; X pbb) X basic_machine=m68k-tti X ;; X pc532 | pc532-*) X basic_machine=ns32k-pc532 X ;; X pentium | p5 | k5 | k6 | nexen) X basic_machine=i586-pc X ;; X pentiumpro | p6 | 6x86) X basic_machine=i686-pc X ;; X pentiumii | pentium2) X basic_machine=i786-pc X ;; X pentium-* | p5-* | k5-* | k6-* | nexen-*) X basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X pentiumpro-* | p6-* | 6x86-*) X basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X pentiumii-* | pentium2-*) X basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X pn) X basic_machine=pn-gould X ;; X power) basic_machine=rs6000-ibm X ;; X ppc) basic_machine=powerpc-unknown X ;; X ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X ppcle | powerpclittle | ppc-le | powerpc-little) X basic_machine=powerpcle-unknown X ;; X ppcle-* | powerpclittle-*) X basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X ps2) X basic_machine=i386-ibm X ;; X rm[46]00) X basic_machine=mips-siemens X ;; X rtpc | rtpc-*) X basic_machine=romp-ibm X ;; X sequent) X basic_machine=i386-sequent X ;; X sh) X basic_machine=sh-hitachi X os=-hms X ;; X sps7) X basic_machine=m68k-bull X os=-sysv2 X ;; X spur) X basic_machine=spur-unknown X ;; X sun2) X basic_machine=m68000-sun X ;; X sun2os3) X basic_machine=m68000-sun X os=-sunos3 X ;; X sun2os4) X basic_machine=m68000-sun X os=-sunos4 X ;; X sun3os3) X basic_machine=m68k-sun X os=-sunos3 X ;; X sun3os4) X basic_machine=m68k-sun X os=-sunos4 X ;; X sun4os3) X basic_machine=sparc-sun X os=-sunos3 X ;; X sun4os4) X basic_machine=sparc-sun X os=-sunos4 X ;; X sun4sol2) X basic_machine=sparc-sun X os=-solaris2 X ;; X sun3 | sun3-*) X basic_machine=m68k-sun X ;; X sun4) X basic_machine=sparc-sun X ;; X sun386 | sun386i | roadrunner) X basic_machine=i386-sun X ;; X symmetry) X basic_machine=i386-sequent X os=-dynix X ;; X tx39) X basic_machine=mipstx39-unknown X ;; X tx39el) X basic_machine=mipstx39el-unknown X ;; X tower | tower-32) X basic_machine=m68k-ncr X ;; X udi29k) X basic_machine=a29k-amd X os=-udi X ;; X ultra3) X basic_machine=a29k-nyu X os=-sym1 X ;; X vaxv) X basic_machine=vax-dec X os=-sysv X ;; X vms) X basic_machine=vax-dec X os=-vms X ;; X vpp*|vx|vx-*) X basic_machine=f301-fujitsu X ;; X vxworks960) X basic_machine=i960-wrs X os=-vxworks X ;; X vxworks68) X basic_machine=m68k-wrs X os=-vxworks X ;; X vxworks29k) X basic_machine=a29k-wrs X os=-vxworks X ;; X xmp) X basic_machine=xmp-cray X os=-unicos X ;; X xps | xps100) X basic_machine=xps100-honeywell X ;; X *mint | *MiNT) X basic_machine=m68k-atari X os=-mint X ;; X none) X basic_machine=none-none X os=-none X ;; X # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. X mips) X if [ x$os = x-linux-gnu ]; then X basic_machine=mips-unknown X else X basic_machine=mips-mips X fi X ;; X romp) X basic_machine=romp-ibm X ;; X rs6000) X basic_machine=rs6000-ibm X ;; X vax) X basic_machine=vax-dec X ;; X pdp11) X basic_machine=pdp11-dec X ;; X we32k) X basic_machine=we32k-att X ;; X sparc) X basic_machine=sparc-sun X ;; X cydra) X basic_machine=cydra-cydrome X ;; X orion) X basic_machine=orion-highlevel X ;; X orion105) X basic_machine=clipper-highlevel X ;; X *) X echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 X exit 1 X ;; esac X # Here we canonicalize certain aliases for manufacturers. case $basic_machine in X *-digital*) X basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` X ;; X *-commodore*) X basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` X ;; X *) X ;; esac X # Decode manufacturer-specific aliases for certain operating systems. X if [ x"$os" != x"" ] then case $os in X # First match some system type aliases X # that might get confused with valid system types. X # -solaris* is a basic system type, with this one exception. X -solaris1 | -solaris1.*) X os=`echo $os | sed -e 's|solaris1|sunos4|'` X ;; X -solaris) X os=-solaris2 X ;; X -svr4*) X os=-sysv4 X ;; X -unixware*) X os=-sysv4.2uw X ;; X -gnu/linux*) X os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` X ;; X # First accept the basic system types. X # The portable systems comes first. X # Each alternative MUST END IN A *, to match a version number. X # -sysv* is not here because it comes later, after sysvr4. X -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ X | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ X | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ X | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ X | -aos* \ X | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ X | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ X | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ X | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ X | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ X | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ X | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ X | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \ X | -openstep* | -mpeix* | -oskit*) X # Remember, each alternative MUST END IN *, to match a version number. X ;; X -linux*) X os=`echo $os | sed -e 's|linux|linux-gnu|'` X ;; X -sunos5*) X os=`echo $os | sed -e 's|sunos5|solaris2|'` X ;; X -sunos6*) X os=`echo $os | sed -e 's|sunos6|solaris3|'` X ;; X -osfrose*) X os=-osfrose X ;; X -osf*) X os=-osf X ;; X -utek*) X os=-bsd X ;; X -dynix*) X os=-bsd X ;; X -acis*) X os=-aos X ;; X -ctix* | -uts*) X os=-sysv X ;; X -ns2 ) X os=-nextstep2 X ;; X # Preserve the version number of sinix5. X -sinix5.*) X os=`echo $os | sed -e 's|sinix|sysv|'` X ;; X -sinix*) X os=-sysv4 X ;; X -triton*) X os=-sysv3 X ;; X -oss*) X os=-sysv3 X ;; X -svr4) X os=-sysv4 X ;; X -svr3) X os=-sysv3 X ;; X -sysvr4) X os=-sysv4 X ;; X # This must come after -sysvr4. X -sysv*) X ;; X -xenix) X os=-xenix X ;; X -*mint | -*MiNT) X os=-mint X ;; X -none) X ;; X *) X # Get rid of the `-' at the beginning of $os. X os=`echo $os | sed 's/[^-]*-//'` X echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 X exit 1 X ;; esac else X # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. X # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. X case $basic_machine in X *-acorn) X os=-riscix1.2 X ;; X arm*-corel) X os=-linux X ;; X arm*-semi) X os=-aout X ;; X pdp11-*) X os=-none X ;; X *-dec | vax-*) X os=-ultrix4.2 X ;; X m68*-apollo) X os=-domain X ;; X i386-sun) X os=-sunos4.0.2 X ;; X m68000-sun) X os=-sunos3 X # This also exists in the configure program, but was not the X # default. X # os=-sunos4 X ;; X *-tti) # must be before sparc entry or we get the wrong os. X os=-sysv3 X ;; X sparc-* | *-sun) X os=-sunos4.1.1 X ;; X *-be) X os=-beos X ;; X *-ibm) X os=-aix X ;; X *-hp) X os=-hpux X ;; X *-hitachi) X os=-hiux X ;; X i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) X os=-sysv X ;; X *-cbm) X os=-amigaos X ;; X *-dg) X os=-dgux X ;; X *-dolphin) X os=-sysv3 X ;; X m68k-ccur) X os=-rtu X ;; X m88k-omron*) X os=-luna X ;; X *-next ) X os=-nextstep X ;; X *-sequent) X os=-ptx X ;; X *-crds) X os=-unos X ;; X *-ns) X os=-genix X ;; X i370-*) X os=-mvs X ;; X *-next) X os=-nextstep3 X ;; X *-gould) X os=-sysv X ;; X *-highlevel) X os=-bsd X ;; X *-encore) X os=-bsd X ;; X *-sgi) X os=-irix X ;; X *-siemens) X os=-sysv4 X ;; X *-masscomp) X os=-rtu X ;; X f301-fujitsu) X os=-uxpv X ;; X *-atari*) X os=-mint X ;; X *) X os=-none X ;; esac fi X # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in X *-unknown) X case $os in X -riscix*) X vendor=acorn X ;; X -sunos*) X vendor=sun X ;; X -aix*) X vendor=ibm X ;; X -hpux*) X vendor=hp X ;; X -mpeix*) X vendor=hp X ;; X -mpeix*) X vendor=hp X ;; X -hiux*) X vendor=hitachi X ;; X -unos*) X vendor=crds X ;; X -dgux*) X vendor=dg X ;; X -luna*) X vendor=omron X ;; X -genix*) X vendor=ns X ;; X -mvs*) X vendor=ibm X ;; X -ptx*) X vendor=sequent X ;; X -vxsim* | -vxworks*) X vendor=wrs X ;; X -aux*) X vendor=apple X ;; X -*mint | -*MiNT) X vendor=atari X ;; X esac X basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` X ;; esac X echo $basic_machine$os SHAR_EOF $shar_touch -am 0420192299 'tar-1.13/config.sub' && chmod 0444 'tar-1.13/config.sub' || $echo 'restore of' 'tar-1.13/config.sub' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/config.sub:' 'MD5 check failed' 4b07b1f3926ad7c54599dcdd64d0a8aa tar-1.13/config.sub SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/config.sub'`" test 20453 -eq "$shar_count" || $echo 'tar-1.13/config.sub:' 'original size' '20453,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/configure ============== if test -f 'tar-1.13/configure' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/configure' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/configure' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/configure' && #! /bin/sh X # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. X # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help X --disable-largefile omit support for large files" ac_help="$ac_help X --with-dmalloc use dmalloc, as in X ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" ac_help="$ac_help X --disable-nls do not use Native Language Support" ac_help="$ac_help X --with-included-gettext use the GNU gettext library included here" ac_help="$ac_help X --with-catgets use catgets functions if available" X # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' X # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 X ac_prev= for ac_option do X X # If the previous option needs an argument, assign it. X if test -n "$ac_prev"; then X eval "$ac_prev=\$ac_option" X ac_prev= X continue X fi X X case "$ac_option" in X -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; X *) ac_optarg= ;; X esac X X # Accept the important Cygnus configure options, so we can diagnose typos. X X case "$ac_option" in X X -bindir | --bindir | --bindi | --bind | --bin | --bi) X ac_prev=bindir ;; X -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) X bindir="$ac_optarg" ;; X X -build | --build | --buil | --bui | --bu) X ac_prev=build ;; X -build=* | --build=* | --buil=* | --bui=* | --bu=*) X build="$ac_optarg" ;; X X -cache-file | --cache-file | --cache-fil | --cache-fi \ X | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) X ac_prev=cache_file ;; X -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ X | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) X cache_file="$ac_optarg" ;; X X -datadir | --datadir | --datadi | --datad | --data | --dat | --da) X ac_prev=datadir ;; X -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ X | --da=*) X datadir="$ac_optarg" ;; X X -disable-* | --disable-*) X ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then X { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X eval "enable_${ac_feature}=no" ;; X X -enable-* | --enable-*) X ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then X { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "enable_${ac_feature}='$ac_optarg'" ;; X X -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ X | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ X | --exec | --exe | --ex) X ac_prev=exec_prefix ;; X -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ X | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ X | --exec=* | --exe=* | --ex=*) X exec_prefix="$ac_optarg" ;; X X -gas | --gas | --ga | --g) X # Obsolete; use --with-gas. X with_gas=yes ;; X X -help | --help | --hel | --he) X # Omit some internal or obsolete options to make the list less imposing. X # This message is too long to be a string in the A/UX 3.1 sh. X cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: X --cache-file=FILE cache test results in FILE X --help print this message X --no-create do not create output files X --quiet, --silent do not print \`checking...' messages X --version print the version of autoconf that created configure Directory and file names: X --prefix=PREFIX install architecture-independent files in PREFIX X [$ac_default_prefix] X --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX X [same as prefix] X --bindir=DIR user executables in DIR [EPREFIX/bin] X --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] X --libexecdir=DIR program executables in DIR [EPREFIX/libexec] X --datadir=DIR read-only architecture-independent data in DIR X [PREFIX/share] X --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] X --sharedstatedir=DIR modifiable architecture-independent data in DIR X [PREFIX/com] X --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] X --libdir=DIR object code libraries in DIR [EPREFIX/lib] X --includedir=DIR C header files in DIR [PREFIX/include] X --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] X --infodir=DIR info documentation in DIR [PREFIX/info] X --mandir=DIR man documentation in DIR [PREFIX/man] X --srcdir=DIR find the sources in DIR [configure dir or ..] X --program-prefix=PREFIX prepend PREFIX to installed program names X --program-suffix=SUFFIX append SUFFIX to installed program names X --program-transform-name=PROGRAM X run sed PROGRAM on installed program names EOF X cat << EOF Host type: X --build=BUILD configure for building on BUILD [BUILD=HOST] X --host=HOST configure for HOST [guessed] X --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: X --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) X --enable-FEATURE[=ARG] include FEATURE [ARG=yes] X --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] X --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) X --x-includes=DIR X include files are in DIR X --x-libraries=DIR X library files are in DIR EOF X if test -n "$ac_help"; then X echo "--enable and --with options recognized:$ac_help" X fi X exit 0 ;; X X -host | --host | --hos | --ho) X ac_prev=host ;; X -host=* | --host=* | --hos=* | --ho=*) X host="$ac_optarg" ;; X X -includedir | --includedir | --includedi | --included | --include \ X | --includ | --inclu | --incl | --inc) X ac_prev=includedir ;; X -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ X | --includ=* | --inclu=* | --incl=* | --inc=*) X includedir="$ac_optarg" ;; X X -infodir | --infodir | --infodi | --infod | --info | --inf) X ac_prev=infodir ;; X -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) X infodir="$ac_optarg" ;; X X -libdir | --libdir | --libdi | --libd) X ac_prev=libdir ;; X -libdir=* | --libdir=* | --libdi=* | --libd=*) X libdir="$ac_optarg" ;; X X -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ X | --libexe | --libex | --libe) X ac_prev=libexecdir ;; X -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ X | --libexe=* | --libex=* | --libe=*) X libexecdir="$ac_optarg" ;; X X -localstatedir | --localstatedir | --localstatedi | --localstated \ X | --localstate | --localstat | --localsta | --localst \ X | --locals | --local | --loca | --loc | --lo) X ac_prev=localstatedir ;; X -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ X | --localstate=* | --localstat=* | --localsta=* | --localst=* \ X | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) X localstatedir="$ac_optarg" ;; X X -mandir | --mandir | --mandi | --mand | --man | --ma | --m) X ac_prev=mandir ;; X -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) X mandir="$ac_optarg" ;; X X -nfp | --nfp | --nf) X # Obsolete; use --without-fp. X with_fp=no ;; X X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) X no_create=yes ;; X X -no-recursion | --no-recursion | --no-recursio | --no-recursi \ X | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) X no_recursion=yes ;; X X -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ X | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ X | --oldin | --oldi | --old | --ol | --o) X ac_prev=oldincludedir ;; X -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ X | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ X | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) X oldincludedir="$ac_optarg" ;; X X -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) X ac_prev=prefix ;; X -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) X prefix="$ac_optarg" ;; X X -program-prefix | --program-prefix | --program-prefi | --program-pref \ X | --program-pre | --program-pr | --program-p) X ac_prev=program_prefix ;; X -program-prefix=* | --program-prefix=* | --program-prefi=* \ X | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) X program_prefix="$ac_optarg" ;; X X -program-suffix | --program-suffix | --program-suffi | --program-suff \ X | --program-suf | --program-su | --program-s) X ac_prev=program_suffix ;; X -program-suffix=* | --program-suffix=* | --program-suffi=* \ X | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) X program_suffix="$ac_optarg" ;; X X -program-transform-name | --program-transform-name \ X | --program-transform-nam | --program-transform-na \ X | --program-transform-n | --program-transform- \ X | --program-transform | --program-transfor \ X | --program-transfo | --program-transf \ X | --program-trans | --program-tran \ X | --progr-tra | --program-tr | --program-t) X ac_prev=program_transform_name ;; X -program-transform-name=* | --program-transform-name=* \ X | --program-transform-nam=* | --program-transform-na=* \ X | --program-transform-n=* | --program-transform-=* \ X | --program-transform=* | --program-transfor=* \ X | --program-transfo=* | --program-transf=* \ X | --program-trans=* | --program-tran=* \ X | --progr-tra=* | --program-tr=* | --program-t=*) X program_transform_name="$ac_optarg" ;; X X -q | -quiet | --quiet | --quie | --qui | --qu | --q \ X | -silent | --silent | --silen | --sile | --sil) X silent=yes ;; X X -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) X ac_prev=sbindir ;; X -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ X | --sbi=* | --sb=*) X sbindir="$ac_optarg" ;; X X -sharedstatedir | --sharedstatedir | --sharedstatedi \ X | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ X | --sharedst | --shareds | --shared | --share | --shar \ X | --sha | --sh) X ac_prev=sharedstatedir ;; X -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ X | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ X | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ X | --sha=* | --sh=*) X sharedstatedir="$ac_optarg" ;; X X -site | --site | --sit) X ac_prev=site ;; X -site=* | --site=* | --sit=*) X site="$ac_optarg" ;; X X -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) X ac_prev=srcdir ;; X -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) X srcdir="$ac_optarg" ;; X X -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ X | --syscon | --sysco | --sysc | --sys | --sy) X ac_prev=sysconfdir ;; X -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ X | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) X sysconfdir="$ac_optarg" ;; X X -target | --target | --targe | --targ | --tar | --ta | --t) X ac_prev=target ;; X -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) X target="$ac_optarg" ;; X X -v | -verbose | --verbose | --verbos | --verbo | --verb) X verbose=yes ;; X X -version | --version | --versio | --versi | --vers) X echo "configure generated by autoconf version 2.13" X exit 0 ;; X X -with-* | --with-*) X ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then X { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "with_${ac_package}='$ac_optarg'" ;; X X -without-* | --without-*) X ac_package=`echo $ac_option|sed -e 's/-*without-//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then X { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X eval "with_${ac_package}=no" ;; X X --x) X # Obsolete; use --with-x. X with_x=yes ;; X X -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ X | --x-incl | --x-inc | --x-in | --x-i) X ac_prev=x_includes ;; X -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ X | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) X x_includes="$ac_optarg" ;; X X -x-libraries | --x-libraries | --x-librarie | --x-librari \ X | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) X ac_prev=x_libraries ;; X -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ X | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) X x_libraries="$ac_optarg" ;; X X -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } X ;; X X *) X if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then X echo "configure: warning: $ac_option: invalid host type" 1>&2 X fi X if test "x$nonopt" != xNONE; then X { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } X fi X nonopt="$ac_option" X ;; X X esac done X if test -n "$ac_prev"; then X { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi X trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 X # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then X exec 6>/dev/null else X exec 6>&1 fi exec 5>./config.log X echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 X # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do X case "$ac_arg" in X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) ;; X -no-recursion | --no-recursion | --no-recursio | --no-recursi \ X | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; X *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) X ac_configure_args="$ac_configure_args '$ac_arg'" ;; X *) ac_configure_args="$ac_configure_args $ac_arg" ;; X esac done X # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi X # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h X # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=src/tar.c X # Find the source files, if location was not specified. if test -z "$srcdir"; then X ac_srcdir_defaulted=yes X # Try the directory containing this script, then its parent. X ac_prog=$0 X ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` X test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. X srcdir=$ac_confdir X if test ! -r $srcdir/$ac_unique_file; then X srcdir=.. X fi else X ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then X if test "$ac_srcdir_defaulted" = yes; then X { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } X else X { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } X fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` X # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then X if test "x$prefix" != xNONE; then X CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" X else X CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" X fi fi for ac_site_file in $CONFIG_SITE; do X if test -r "$ac_site_file"; then X echo "loading site script $ac_site_file" X . "$ac_site_file" X fi done X if test -r "$cache_file"; then X echo "loading cache $cache_file" X . $cache_file else X echo "creating cache $cache_file" X > $cache_file fi X ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross X ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then X # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. X if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then X ac_n= ac_c=' ' ac_t=' ' X else X ac_n=-n ac_c= ac_t= X fi else X ac_n= ac_c='\c' ac_t= fi X X X X X X ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do X if test -f $ac_dir/install-sh; then X ac_aux_dir=$ac_dir X ac_install_sh="$ac_aux_dir/install-sh -c" X break X elif test -f $ac_dir/install.sh; then X ac_aux_dir=$ac_dir X ac_install_sh="$ac_aux_dir/install.sh -c" X break X fi done if test -z "$ac_aux_dir"; then X { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. X X # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi X echo $ac_n "checking host system type""... $ac_c" 1>&6 echo "configure:566: checking host system type" >&5 X host_alias=$host case "$host_alias" in NONE) X case $nonopt in X NONE) X if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : X else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } X fi ;; X *) host_alias=$nonopt ;; X esac ;; esac X host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 X # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo "configure:598: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" X for ac_dir in $PATH; do X # Account for people who put trailing slashes in PATH elements. X case "$ac_dir/" in X /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; X *) X # OSF1 and SCO ODT 3.0 have their own names for install. X # Don't use installbsd from OSF since it installs stuff as root X # by default. X for ac_prog in ginstall scoinst install; do X if test -f $ac_dir/$ac_prog; then X if test $ac_prog = install && X grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then X # AIX install. It has an incompatible calling convention. X : X else X ac_cv_path_install="$ac_dir/$ac_prog -c" X break 2 X fi X fi X done X ;; X esac X done X IFS="$ac_save_IFS" X fi X if test "${ac_cv_path_install+set}" = set; then X INSTALL="$ac_cv_path_install" X else X # As a last resort, use the slow shell script. We don't cache a X # path for INSTALL within a source directory, because that will X # break other packages using the cache if that directory is X # removed, or if the path is relative. X INSTALL="$ac_install_sh" X fi fi echo "$ac_t""$INSTALL" 1>&6 X # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' X test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' X test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' X echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 echo "configure:651: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( X set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` X if test "$*" = "X"; then X # -L didn't work. X set X `ls -t $srcdir/configure conftestfile` X fi X if test "$*" != "X $srcdir/configure conftestfile" \ X && test "$*" != "X conftestfile $srcdir/configure"; then X X # If neither matched, then we have a broken ls. This can happen X # if, for instance, CONFIG_SHELL is bash and it inherits a X # broken ls alias from the environment. This has actually X # happened. Such a system could not be considered "sane". X { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } X fi X X test "$2" = conftestfile X ) then X # Ok. X : else X { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 if test "$program_transform_name" = s,x,x,; then X program_transform_name= else X # Double any \ or $. echo might interpret backslashes. X cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED X program_transform_name="`echo $program_transform_name|sed -f conftestsed`" X rm -f conftestsed fi test "$program_prefix" != NONE && X program_transform_name="s,^,${program_prefix},; $program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && X program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" X # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," X echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:708: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftestmake <<\EOF all: X @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then X eval ac_cv_prog_make_${ac_make}_set=yes else X eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then X echo "$ac_t""yes" 1>&6 X SET_MAKE= else X echo "$ac_t""no" 1>&6 X SET_MAKE="MAKE=${MAKE-make}" fi X X PACKAGE=tar X VERSION=1.13 X if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then X { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi cat >> confdefs.h <> confdefs.h <&6 echo "configure:754: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (aclocal --version) < /dev/null > /dev/null 2>&1; then X ACLOCAL=aclocal X echo "$ac_t""found" 1>&6 else X ACLOCAL="$missing_dir/missing aclocal" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 echo "configure:767: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoconf --version) < /dev/null > /dev/null 2>&1; then X AUTOCONF=autoconf X echo "$ac_t""found" 1>&6 else X AUTOCONF="$missing_dir/missing autoconf" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working automake""... $ac_c" 1>&6 echo "configure:780: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (automake --version) < /dev/null > /dev/null 2>&1; then X AUTOMAKE=automake X echo "$ac_t""found" 1>&6 else X AUTOMAKE="$missing_dir/missing automake" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 echo "configure:793: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoheader --version) < /dev/null > /dev/null 2>&1; then X AUTOHEADER=autoheader X echo "$ac_t""found" 1>&6 else X AUTOHEADER="$missing_dir/missing autoheader" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 echo "configure:806: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then X MAKEINFO=makeinfo X echo "$ac_t""found" 1>&6 else X MAKEINFO="$missing_dir/missing makeinfo" X echo "$ac_t""missing" 1>&6 fi X X cat >> confdefs.h <<\EOF #define _GNU_SOURCE 1 EOF X ALL_LINGUAS="cs de es fr it ko nl no pl pt ru sl sv" X # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:828: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_CC="gcc" X break X fi X done X IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X if test -z "$CC"; then X # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:858: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_prog_rejected=no X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then X ac_prog_rejected=yes X continue X fi X ac_cv_prog_CC="cc" X break X fi X done X IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then X # We found a bogon in the path, so make sure we never use it. X set dummy $ac_cv_prog_CC X shift X if test $# -gt 0; then X # We chose a different compiler from the bogus one. X # However, it has the same basename, so the bogon will be chosen X # first if we set CC to just the basename; use the full file name. X shift X set dummy "$ac_dir/$ac_word" "$@" X shift X ac_cv_prog_CC="$@" X fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X if test -z "$CC"; then X case "`uname -s`" in X *win32* | *WIN32*) X # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:909: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_CC="cl" X break X fi X done X IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X ;; X esac X fi X test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi X echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 X ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross X cat > conftest.$ac_ext << EOF X #line 952 "configure" #include "confdefs.h" X main(){return(0);} EOF if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X ac_cv_prog_cc_works=yes X # If we can't run a trivial program, we are probably using a cross compiler. X if (./conftest; exit) 2>/dev/null; then X ac_cv_prog_cc_cross=no X else X ac_cv_prog_cc_cross=yes X fi else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross X echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then X { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross X echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:988: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then X ac_cv_prog_gcc=yes else X ac_cv_prog_gcc=no fi fi X echo "$ac_t""$ac_cv_prog_gcc" 1>&6 X if test $ac_cv_prog_gcc = yes; then X GCC=yes else X GCC= fi X ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then X ac_cv_prog_cc_g=yes else X ac_cv_prog_cc_g=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then X CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then X if test "$GCC" = yes; then X CFLAGS="-g -O2" X else X CFLAGS="-g" X fi else X if test "$GCC" = yes; then X CFLAGS="-O2" X else X CFLAGS= X fi fi X echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:1048: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then X CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X # This must be in double quotes, not single quotes, because CPP may get X # substituted into the Makefile and "${CC-cc}" will confuse make. X CPP="${CC-cc} -E" X # On the NeXT, cc -E runs the code through the compiler's parser, X # not just through cpp. X cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X : else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP="${CC-cc} -E -traditional-cpp" X cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X : else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP="${CC-cc} -nologo -E" X cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X : else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* X ac_cv_prog_CPP="$CPP" fi X CPP="$ac_cv_prog_CPP" else X ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 X if test $ac_cv_prog_gcc = yes; then X echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 echo "configure:1129: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_pattern="Autoconf.*'x'" X cat > conftest.$ac_ext < Autoconf TIOCGETP EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "$ac_pattern" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_prog_gcc_traditional=yes else X rm -rf conftest* X ac_cv_prog_gcc_traditional=no fi rm -f conftest* X X X if test $ac_cv_prog_gcc_traditional = no; then X cat > conftest.$ac_ext < Autoconf TCGETA EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "$ac_pattern" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_prog_gcc_traditional=yes fi rm -f conftest* X X fi fi X echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 X if test $ac_cv_prog_gcc_traditional = yes; then X CC="$CC -traditional" X fi fi X echo $ac_n "checking for AIX""... $ac_c" 1>&6 echo "configure:1175: checking for AIX" >&5 cat > conftest.$ac_ext <&5 | X egrep "yes" >/dev/null 2>&1; then X rm -rf conftest* X echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF #define _ALL_SOURCE 1 EOF X else X rm -rf conftest* X echo "$ac_t""no" 1>&6 fi rm -f conftest* X X ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 echo "configure:1200: checking for minix/config.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X MINIX=yes else X echo "$ac_t""no" 1>&6 MINIX= fi X if test "$MINIX" = yes; then X cat >> confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF X X cat >> confdefs.h <<\EOF #define _POSIX_1_SOURCE 2 EOF X X cat >> confdefs.h <<\EOF #define _MINIX 1 EOF X fi X echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 echo "configure:1248: checking for Cygwin environment" >&5 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_cygwin=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_cygwin=no fi rm -f conftest* rm -f conftest* fi X echo "$ac_t""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 echo "configure:1281: checking for mingw32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_mingw32=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_mingw32=no fi rm -f conftest* rm -f conftest* fi X echo "$ac_t""$ac_cv_mingw32" 1>&6 MINGW32= test "$ac_cv_mingw32" = yes && MINGW32=yes X X echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 echo "configure:1312: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$CYGWIN" = yes || test "$MINGW32" = yes; then X ac_cv_exeext=.exe else X rm -f conftest* X echo 'int main () { return 0; }' > conftest.$ac_ext X ac_cv_exeext= X if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then X for file in conftest.*; do X case $file in X *.c | *.o | *.obj) ;; X *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; X esac X done X else X { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } X fi X rm -f conftest* X test x"${ac_cv_exeext}" = x && ac_cv_exeext=no fi fi X EXEEXT="" test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} echo "$ac_t""${ac_cv_exeext}" 1>&6 ac_exeext=$EXEEXT X # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1345: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$RANLIB"; then X ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_RANLIB="ranlib" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then X echo "$ac_t""$RANLIB" 1>&6 else X echo "$ac_t""no" 1>&6 fi X for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1377: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$YACC"; then X ac_cv_prog_YACC="$YACC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_YACC="$ac_prog" X break X fi X done X IFS="$ac_save_ifs" fi fi YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then X echo "$ac_t""$YACC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" X echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:1408: checking build system type" >&5 X build_alias=$build case "$build_alias" in NONE) X case $nonopt in X NONE) build_alias=$host_alias ;; X *) build_alias=$nonopt ;; X esac ;; esac X build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 X if test $host != $build; then X ac_tool_prefix=${host_alias}- else X ac_tool_prefix= fi X X X # Check whether --enable-largefile or --disable-largefile was given. if test "${enable_largefile+set}" = set; then X enableval="$enable_largefile" X : fi X X if test "$enable_largefile" != no; then X # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args. set dummy ${ac_tool_prefix}getconf; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1442: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$GETCONF"; then X ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_GETCONF="${ac_tool_prefix}getconf" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf" fi fi GETCONF="$ac_cv_prog_GETCONF" if test -n "$GETCONF"; then X echo "$ac_t""$GETCONF" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X X X echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6 echo "configure:1472: checking for CFLAGS value to request large file support" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || { X ac_cv_sys_largefile_CFLAGS=no X case "$host_os" in X # IRIX 6.2 and later require cc -n32. X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X : else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_sys_largefile_CFLAGS=no fi rm -f conftest* X CC="$ac_save_CC" X esac X } fi X echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6 X echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6 echo "configure:1510: checking for LDFLAGS value to request large file support" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || { X ac_cv_sys_largefile_LDFLAGS=no X X } fi X echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6 X echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6 echo "configure:1522: checking for LIBS value to request large file support" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || { X ac_cv_sys_largefile_LIBS=no X X } fi X echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6 X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X case "$ac_flag" in X no) ;; X ?*) X case "$CPPFLAGS" in X '') CPPFLAGS="$ac_flag" ;; X *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;; X esac ;; X esac ;; X *) X case "$ac_flag" in X no) ;; X ?*) X case "$CFLAGS" in X '') CFLAGS="$ac_flag" ;; X *) CFLAGS=$CFLAGS' '"$ac_flag" ;; X esac ;; X esac ;; X esac X done X case "$ac_cv_sys_largefile_LDFLAGS" in X no) ;; X ?*) X case "$LDFLAGS" in X '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;; X *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;; X esac ;; X esac X case "$ac_cv_sys_largefile_LIBS" in X no) ;; X ?*) X case "$LIBS" in X '') LIBS="$ac_cv_sys_largefile_LIBS" ;; X *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;; X esac ;; X esac X echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6 echo "configure:1577: checking for _FILE_OFFSET_BITS" >&5 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_file_offset_bits=no X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D_FILE_OFFSET_BITS) X ac_cv_sys_file_offset_bits=1 ;; X -D_FILE_OFFSET_BITS=*) X ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done X fi X echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 X if test "$ac_cv_sys_file_offset_bits" != no; then X cat >> confdefs.h <&6 echo "configure:1602: checking for _LARGEFILE_SOURCE" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_source=no X case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D_LARGEFILE_SOURCE) X ac_cv_sys_largefile_source=1 ;; X -D_LARGEFILE_SOURCE=*) X ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done X fi X echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 X if test "$ac_cv_sys_largefile_source" != no; then X cat >> confdefs.h <&6 echo "configure:1631: checking for _LARGE_FILES" >&5 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_large_files=no X case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D_LARGE_FILES) X ac_cv_sys_large_files=1 ;; X -D_LARGE_FILES=*) X ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done X fi X echo "$ac_t""$ac_cv_sys_large_files" 1>&6 X if test "$ac_cv_sys_large_files" != no; then X cat >> confdefs.h <&6 echo "configure:1663: checking for strerror in -lcposix" >&5 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lcposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X LIBS="$LIBS -lcposix" else X echo "$ac_t""no" 1>&6 fi X X X X X X echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 echo "configure:1708: checking for ${CC-cc} option to accept ANSI C" >&5 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X cat > conftest.$ac_ext < #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; X int main() { X return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; X ; return 0; } EOF if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X am_cv_prog_cc_stdc="$ac_arg"; break else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 fi rm -f conftest* done CC="$ac_save_CC" X fi X if test -z "$am_cv_prog_cc_stdc"; then X echo "$ac_t""none needed" 1>&6 else X echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac X X X echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 echo "configure:1787: checking for function prototypes" >&5 if test "$am_cv_prog_cc_stdc" != no; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define PROTOTYPES 1 EOF X X U= ANSI2KNR= else X echo "$ac_t""no" 1>&6 X U=_ ANSI2KNR=./ansi2knr X # Ensure some checks needed by ansi2knr itself. X echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:1800: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X ac_cv_header_stdc=yes else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X if test $ac_cv_header_stdc = yes; then X # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "memchr" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "free" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then X : else X cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } X EOF if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X : else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_header_stdc=no fi rm -fr conftest* fi X fi fi X echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then X cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF X fi X X for ac_hdr in string.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:1907: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X fi X echo $ac_n "checking for working const""... $ac_c" 1>&6 echo "configure:1946: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ X const int foo = 10; } X ; return 0; } EOF if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_c_const=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_c_const=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then X cat >> confdefs.h <<\EOF #define const EOF X fi X echo $ac_n "checking for inline""... $ac_c" 1>&6 echo "configure:2021: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_c_inline=$ac_kw; break else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 fi rm -f conftest* done X fi X echo "$ac_t""$ac_cv_c_inline" 1>&6 case "$ac_cv_c_inline" in X inline | yes) ;; X no) cat >> confdefs.h <<\EOF #define inline EOF X ;; X *) cat >> confdefs.h <&6 echo "configure:2061: checking size of unsigned long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_sizeof_unsigned_long=4 else X cat > conftest.$ac_ext < main() { X FILE *f=fopen("conftestval", "w"); X if (!f) exit(1); X fprintf(f, "%d\n", sizeof(unsigned long)); X exit(0); } EOF if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_sizeof_unsigned_long=`cat conftestval` else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_sizeof_unsigned_long=0 fi rm -fr conftest* fi X fi echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6 cat >> confdefs.h <&6 echo "configure:2100: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_sizeof_long_long=0 else X cat > conftest.$ac_ext < main() { X FILE *f=fopen("conftestval", "w"); X if (!f) exit(1); X fprintf(f, "%d\n", sizeof(long long)); X exit(0); } EOF if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_sizeof_long_long=`cat conftestval` else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_sizeof_long_long=0 fi rm -fr conftest* fi X fi echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 cat >> confdefs.h <&6 echo "configure:2147: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X X X X echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 echo "configure:2186: checking for inttypes.h" >&5 if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { uintmax_t i = (uintmax_t) -1; ; return 0; } EOF if { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X jm_ac_cv_header_inttypes_h=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X jm_ac_cv_header_inttypes_h=no fi rm -f conftest* fi X echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 X if test $jm_ac_cv_header_inttypes_h = yes; then X cat >> confdefs.h < seems to be # broken just require something like -D_XXX_SOURCE, where XXX might # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine. X echo $ac_n "checking for utime.h""... $ac_c" 1>&6 echo "configure:2225: checking for utime.h" >&5 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct utimbuf foo ; return 0; } EOF if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X tar_cv_header_utime_h=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_header_utime_h=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_header_utime_h" 1>&6 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF #define HAVE_UTIME_H 1 EOF X X if test $ac_cv_header_sys_mtio_h = yes; then X echo $ac_n "checking for remote tape header files""... $ac_c" 1>&6 echo "configure:2259: checking for remote tape header files" >&5 if eval "test \"`echo '$''{'tar_cv_header_rmt'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #endif #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X tar_cv_header_rmt=yes else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_header_rmt=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_header_rmt" 1>&6 X test $tar_cv_header_rmt = yes && RMT=rmt X fi X echo $ac_n "checking for getgrgid declaration""... $ac_c" 1>&6 echo "configure:2294: checking for getgrgid declaration" >&5 if eval "test \"`echo '$''{'tar_cv_header_getgrgid'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "getgrgid" >/dev/null 2>&1; then X rm -rf conftest* X tar_cv_header_getgrgid=yes else X rm -rf conftest* X tar_cv_header_getgrgid=no fi rm -f conftest* X fi X echo "$ac_t""$tar_cv_header_getgrgid" 1>&6 test $tar_cv_header_getgrgid = yes && cat >> confdefs.h <<\EOF #define HAVE_GETGRGID 1 EOF X X echo $ac_n "checking for getpwuid declaration""... $ac_c" 1>&6 echo "configure:2322: checking for getpwuid declaration" >&5 if eval "test \"`echo '$''{'tar_cv_header_getpwuid'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "getpwuid" >/dev/null 2>&1; then X rm -rf conftest* X tar_cv_header_getpwuid=yes else X rm -rf conftest* X tar_cv_header_getpwuid=no fi rm -f conftest* X fi X echo "$ac_t""$tar_cv_header_getpwuid" 1>&6 test $tar_cv_header_getpwuid = yes && cat >> confdefs.h <<\EOF #define HAVE_GETPWUID 1 EOF X X echo $ac_n "checking which ioctl field to test for reversed bytes""... $ac_c" 1>&6 echo "configure:2350: checking which ioctl field to test for reversed bytes" >&5 if eval "test \"`echo '$''{'tar_cv_header_mtio_check_field'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "mt_model" >/dev/null 2>&1; then X rm -rf conftest* X tar_cv_header_mtio_check_field=mt_model else X rm -rf conftest* X tar_cv_header_mtio_check_field=mt_type fi rm -f conftest* X fi X echo "$ac_t""$tar_cv_header_mtio_check_field" 1>&6 cat >> confdefs.h <&6 echo "configure:2382: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include <$ac_hdr> int main() { DIR *dirp = 0; ; return 0; } EOF if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X eval "ac_cv_header_dirent_$ac_safe=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_dirent_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 echo "configure:2420: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X LIBS="$LIBS -ldir" else X echo "$ac_t""no" 1>&6 fi X else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 echo "configure:2461: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X LIBS="$LIBS -lx" else X echo "$ac_t""no" 1>&6 fi X fi X echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 echo "configure:2503: checking whether sys/types.h defines makedev" >&5 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { return makedev(0, 0); ; return 0; } EOF if { (eval echo configure:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X ac_cv_header_sys_types_h_makedev=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_sys_types_h_makedev=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 X if test $ac_cv_header_sys_types_h_makedev = no; then ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 echo "configure:2533: checking for sys/mkdev.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define MAJOR_IN_MKDEV 1 EOF X else X echo "$ac_t""no" 1>&6 fi X X X if test $ac_cv_header_sys_mkdev_h = no; then ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 echo "configure:2571: checking for sys/sysmacros.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define MAJOR_IN_SYSMACROS 1 EOF X else X echo "$ac_t""no" 1>&6 fi X X fi fi X echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 echo "configure:2609: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include X #if defined(S_ISBLK) && defined(S_IFDIR) # if S_ISBLK (S_IFDIR) You lose. # endif #endif X #if defined(S_ISBLK) && defined(S_IFCHR) # if S_ISBLK (S_IFCHR) You lose. # endif #endif X #if defined(S_ISLNK) && defined(S_IFREG) # if S_ISLNK (S_IFREG) You lose. # endif #endif X #if defined(S_ISSOCK) && defined(S_IFREG) # if S_ISSOCK (S_IFREG) You lose. # endif #endif X EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "You lose" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_header_stat_broken=yes else X rm -rf conftest* X ac_cv_header_stat_broken=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 if test $ac_cv_header_stat_broken = yes; then X cat >> confdefs.h <<\EOF #define STAT_MACROS_BROKEN 1 EOF X fi X echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:2665: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X ac_cv_header_stdc=yes else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X if test $ac_cv_header_stdc = yes; then X # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "memchr" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "free" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then X : else X cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } X EOF if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X : else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_header_stdc=no fi rm -fr conftest* fi X fi fi X echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then X cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF X fi X echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 echo "configure:2769: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #include int main() { struct tm *tp; ; return 0; } EOF if { (eval echo configure:2783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_header_time=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_time=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_header_time" 1>&6 if test $ac_cv_header_time = yes; then X cat >> confdefs.h <<\EOF #define TIME_WITH_SYS_TIME 1 EOF X fi X echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 echo "configure:2804: checking for st_blksize in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct stat s; s.st_blksize; ; return 0; } EOF if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_struct_st_blksize=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_struct_st_blksize=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 if test $ac_cv_struct_st_blksize = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ST_BLKSIZE 1 EOF X fi X echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 echo "configure:2838: checking for st_blocks in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct stat s; s.st_blocks; ; return 0; } EOF if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_struct_st_blocks=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_struct_st_blocks=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 if test $ac_cv_struct_st_blocks = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ST_BLOCKS 1 EOF X else X LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" fi X X echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6 echo "configure:2874: checking for d_ino member in directory struct" >&5 if eval "test \"`echo '$''{'jm_cv_struct_dirent_d_ino'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X int main() { struct dirent dp; dp.d_ino = 0; ; return 0; } EOF if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X jm_cv_struct_dirent_d_ino=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X jm_cv_struct_dirent_d_ino=no fi rm -f conftest* X X fi X echo "$ac_t""$jm_cv_struct_dirent_d_ino" 1>&6 X if test $jm_cv_struct_dirent_d_ino = yes; then X cat >> confdefs.h <<\EOF #define D_INO_IN_DIRENT 1 EOF X X fi X X echo $ac_n "checking for st_fstype string in struct stat""... $ac_c" 1>&6 echo "configure:2926: checking for st_fstype string in struct stat" >&5 if eval "test \"`echo '$''{'diff_cv_st_fstype_string'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct stat s; s.st_fstype[0] = 'x'; ; return 0; } EOF if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X diff_cv_st_fstype_string=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X diff_cv_st_fstype_string=no fi rm -f conftest* fi X echo "$ac_t""$diff_cv_st_fstype_string" 1>&6 if test $diff_cv_st_fstype_string = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ST_FSTYPE_STRING 1 EOF X fi X echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 echo "configure:2960: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #ifdef signal #undef signal #endif #ifdef __cplusplus extern "C" void (*signal (int, void (*)(int)))(int); #else void (*signal ()) (); #endif X int main() { int i; ; return 0; } EOF if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_type_signal=void else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_type_signal=int fi rm -f conftest* fi X echo "$ac_t""$ac_cv_type_signal" 1>&6 cat >> confdefs.h <&6 echo "configure:3001: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_mode_t=yes else X rm -rf conftest* X ac_cv_type_mode_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_mode_t" 1>&6 if test $ac_cv_type_mode_t = no; then X cat >> confdefs.h <<\EOF #define mode_t int EOF X fi X echo $ac_n "checking for pid_t""... $ac_c" 1>&6 echo "configure:3034: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_pid_t=yes else X rm -rf conftest* X ac_cv_type_pid_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_pid_t" 1>&6 if test $ac_cv_type_pid_t = no; then X cat >> confdefs.h <<\EOF #define pid_t int EOF X fi X echo $ac_n "checking for off_t""... $ac_c" 1>&6 echo "configure:3067: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_off_t=yes else X rm -rf conftest* X ac_cv_type_off_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_off_t" 1>&6 if test $ac_cv_type_off_t = no; then X cat >> confdefs.h <<\EOF #define off_t long EOF X fi X echo $ac_n "checking for size_t""... $ac_c" 1>&6 echo "configure:3100: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_size_t=yes else X rm -rf conftest* X ac_cv_type_size_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_size_t" 1>&6 if test $ac_cv_type_size_t = no; then X cat >> confdefs.h <<\EOF #define size_t unsigned EOF X fi X echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 echo "configure:3133: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "uid_t" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_uid_t=yes else X rm -rf conftest* X ac_cv_type_uid_t=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_type_uid_t" 1>&6 if test $ac_cv_type_uid_t = no; then X cat >> confdefs.h <<\EOF #define uid_t int EOF X X cat >> confdefs.h <<\EOF #define gid_t int EOF X fi X echo $ac_n "checking for daddr_t""... $ac_c" 1>&6 echo "configure:3167: checking for daddr_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_daddr_t=yes else X rm -rf conftest* X ac_cv_type_daddr_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 if test $ac_cv_type_daddr_t = no; then X cat >> confdefs.h <<\EOF #define daddr_t long EOF X fi X echo $ac_n "checking for major_t""... $ac_c" 1>&6 echo "configure:3200: checking for major_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_major_t=yes else X rm -rf conftest* X ac_cv_type_major_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_major_t" 1>&6 if test $ac_cv_type_major_t = no; then X cat >> confdefs.h <<\EOF #define major_t int EOF X fi X echo $ac_n "checking for minor_t""... $ac_c" 1>&6 echo "configure:3233: checking for minor_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_minor_t=yes else X rm -rf conftest* X ac_cv_type_minor_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_minor_t" 1>&6 if test $ac_cv_type_minor_t = no; then X cat >> confdefs.h <<\EOF #define minor_t int EOF X fi X echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 echo "configure:3266: checking for ssize_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_ssize_t=yes else X rm -rf conftest* X ac_cv_type_ssize_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 if test $ac_cv_type_ssize_t = no; then X cat >> confdefs.h <<\EOF #define ssize_t int EOF X fi X X X echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 echo "configure:3300: checking for unsigned long long" >&5 if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_type_unsigned_long_long=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_type_unsigned_long_long=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 X if test $ac_cv_type_unsigned_long_long = yes; then X cat >> confdefs.h <<\EOF #define HAVE_UNSIGNED_LONG_LONG 1 EOF X X fi X X X X if test $jm_ac_cv_header_inttypes_h = no; then X X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X cat >> confdefs.h <&6 echo "configure:3352: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X X for ac_func in strtoumax do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3391: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done X X X X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X for ac_func in strtoull do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3451: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done X X X ;; X esac X X X for ac_func in fsync ftime getcwd isascii mkfifo nap napms poll \ select strerror strstr usleep do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3514: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X echo $ac_n "checking for mknod""... $ac_c" 1>&6 echo "configure:3568: checking for mknod" >&5 if eval "test \"`echo '$''{'tar_cv_func_mknod'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { mknod (0, 0, 0) ; return 0; } EOF if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X tar_cv_func_mknod=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_func_mknod=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_func_mknod" 1>&6 test $tar_cv_func_mknod = yes && cat >> confdefs.h <<\EOF #define HAVE_MKNOD 1 EOF X X # Whenever both -lsocket and -lnsl are needed, it seems to be always the # case that gethostbyname requires -lnsl. So, check -lnsl first, for it # to be in LIBS before the setsockopt checks are performed. *However*, # on SINIX-N 5.43, this is false, and gethostent seems to be a better # candidate. So, let's use it below instead of gethostbyname, and see. X echo $ac_n "checking for gethostent""... $ac_c" 1>&6 echo "configure:3607: checking for gethostent" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char gethostent(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostent) || defined (__stub___gethostent) choke me #else gethostent(); #endif X ; return 0; } EOF if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_gethostent=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_gethostent=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then X echo "$ac_t""yes" 1>&6 X : else X echo "$ac_t""no" 1>&6 fi X if test $ac_cv_func_gethostent = no; then X echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 echo "configure:3656: checking for gethostent in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X fi echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 echo "configure:3704: checking for setsockopt" >&5 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char setsockopt(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_setsockopt) || defined (__stub___setsockopt) choke me #else setsockopt(); #endif X ; return 0; } EOF if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_setsockopt=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_setsockopt=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then X echo "$ac_t""yes" 1>&6 X : else X echo "$ac_t""no" 1>&6 fi X if test $ac_cv_func_setsockopt = no; then X echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 echo "configure:3753: checking for setsockopt in -lsocket" >&5 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X fi X # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 echo "configure:3804: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X ac_cv_header_alloca_h=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_alloca_h=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF X fi X echo $ac_n "checking for alloca""... $ac_c" 1>&6 echo "configure:3837: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX X #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif X int main() { char *p = (char *) alloca(1); ; return 0; } EOF if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X ac_cv_func_alloca_works=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_func_alloca_works=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF X fi X if test $ac_cv_func_alloca_works = no; then X # The SVR3 libPW and SVR4 libucb both contain incompatible functions X # that cause trouble. Some versions do not even contain alloca or X # contain a buggy version. If you still want to use their alloca, X # use ar to extract alloca.o from them instead of compiling alloca.c. X ALLOCA=alloca.${ac_objext} X cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF X X echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 echo "configure:3902: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5 | X egrep "webecray" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_os_cray=yes else X rm -rf conftest* X ac_cv_os_cray=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do X echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3932: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <&6 fi X done fi X echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 echo "configure:3987: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_c_stack_direction=0 else X cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { X exit (find_stack_direction() < 0); } EOF if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_c_stack_direction=1 else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 echo "configure:4036: checking for working fnmatch" >&5 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X # Some versions of Solaris or SCO have a broken fnmatch function. # So we run a test program. If we are cross-compiling, take no chance. # Thanks to John Oleynick and Franc,ois Pinard for this test. if test "$cross_compiling" = yes; then X ac_cv_func_fnmatch_works=no else X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_func_fnmatch_works=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_func_fnmatch_works=no fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6 if test $ac_cv_func_fnmatch_works = yes; then X cat >> confdefs.h <<\EOF #define HAVE_FNMATCH 1 EOF X fi X test $ac_cv_func_fnmatch_works = yes || LIBOBJS="$LIBOBJS fnmatch.o" echo $ac_n "checking for vprintf""... $ac_c" 1>&6 echo "configure:4075: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char vprintf(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_vprintf) || defined (__stub___vprintf) choke me #else vprintf(); #endif X ; return 0; } EOF if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_vprintf=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_vprintf=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define HAVE_VPRINTF 1 EOF X else X echo "$ac_t""no" 1>&6 fi X if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 echo "configure:4127: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char _doprnt(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub__doprnt) || defined (__stub____doprnt) choke me #else _doprnt(); #endif X ; return 0; } EOF if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func__doprnt=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func__doprnt=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define HAVE_DOPRNT 1 EOF X else X echo "$ac_t""no" 1>&6 fi X fi X for ac_func in execlp ftruncate lchown memset mkdir rename rmdir \ X strtol strtoul do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4183: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done X X X X cat >> confdefs.h <&6 echo "configure:4244: checking for working malloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_malloc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X jm_cv_func_working_malloc=no else X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X jm_cv_func_working_malloc=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X jm_cv_func_working_malloc=no fi rm -fr conftest* fi X X fi X echo "$ac_t""$jm_cv_func_working_malloc" 1>&6 X if test $jm_cv_func_working_malloc = no; then X X LIBOBJS="$LIBOBJS malloc.$ac_objext" X cat >> confdefs.h <&6 echo "configure:4292: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X for ac_func in alarm do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4331: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X echo $ac_n "checking for working mktime""... $ac_c" 1>&6 echo "configure:4384: checking for working mktime" >&5 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_func_working_mktime=no else X cat > conftest.$ac_ext < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } X EOF if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_func_working_mktime=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_func_working_mktime=no fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi X X X for ac_func in localtime_r do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4565: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X X if test $ac_cv_func_working_mktime = no; then X cat >> confdefs.h <> confdefs.h <&6 echo "configure:4632: checking for working realloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_realloc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X jm_cv_func_working_realloc=no else X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X jm_cv_func_working_realloc=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X jm_cv_func_working_realloc=no fi rm -fr conftest* fi X X fi X echo "$ac_t""$jm_cv_func_working_realloc" 1>&6 X if test $jm_cv_func_working_realloc = no; then X X LIBOBJS="$LIBOBJS realloc.$ac_objext" X cat >> confdefs.h <&6 echo "configure:4682: checking for 3-argument open" >&5 if eval "test \"`echo '$''{'tar_cv_func_open3'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #else # include #endif int main() { int x = O_RDONLY ; return 0; } EOF if { (eval echo configure:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X tar_cv_func_open3=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_func_open3=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_func_open3" 1>&6 if test $tar_cv_func_open3 = no; then X cat >> confdefs.h <<\EOF #define EMUL_OPEN3 1 EOF X fi X # `union wait' is preferrably avoided. We merely assume below # that if `int pid;' fails, `union wait pid;' would have worked. # Directly trying `union wait pid;' is seeking for trouble, as # some POSIX systems are offering compatibility hacks generating # ugly diagnostics. Also, on some systems, WEXITSTATUS exists, # but fails when called on `union wait' variables. X echo $ac_n "checking for union wait""... $ac_c" 1>&6 echo "configure:4727: checking for union wait" >&5 if eval "test \"`echo '$''{'tar_cv_header_union_wait'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if HAVE_SYS_WAIT_H # include #endif int main() { int status; int pid; pid = wait (&status); ; return 0; } EOF if { (eval echo configure:4743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X tar_cv_header_union_wait=no else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_header_union_wait=yes fi rm -f conftest* fi X echo "$ac_t""$tar_cv_header_union_wait" 1>&6 test $tar_cv_header_union_wait = yes && cat >> confdefs.h <<\EOF #define HAVE_UNION_WAIT 1 EOF X X echo $ac_n "checking for remote shell""... $ac_c" 1>&6 echo "configure:4762: checking for remote shell" >&5 if eval "test \"`echo '$''{'tar_cv_path_RSH'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$RSH"; then X tar_cv_path_RSH=$RSH X else X tar_cv_path_RSH=no X for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \ X /usr/bin/nsh /usr/bin/rcmd X do X if test -f $ac_file; then X tar_cv_path_RSH=$ac_file X break X fi X done X fi fi X echo "$ac_t""$tar_cv_path_RSH" 1>&6 if test $tar_cv_path_RSH = no; then X for ac_hdr in netdb.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:4787: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X else X cat >> confdefs.h <&6 echo "configure:4831: checking for default archive" >&5 X if test -z "$DEFAULT_ARCHIVE"; then X DEFAULT_ARCHIVE=- else X if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then X echo "configure: warning: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" 1>&2 X fi X # FIXME: Look for DEFTAPE in . X # FIXME: Let DEVICE_PREFIX be configured from the environment. X # FIXME: Rearrange, here. X case $DEFAULT_ARCHIVE in X *[0-7][lmh]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'` X cat >> confdefs.h <> confdefs.h <<\EOF #define DENSITY_LETTER 1 EOF X X ;; X *[0-7]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'` X cat >> confdefs.h <> confdefs.h <&6 X echo $ac_n "checking for default blocking""... $ac_c" 1>&6 echo "configure:4870: checking for default blocking" >&5 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20} cat >> confdefs.h <&6 X echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 echo "configure:4879: checking if malloc debugging is wanted" >&5 # Check whether --with-dmalloc or --without-dmalloc was given. if test "${with_dmalloc+set}" = set; then X withval="$with_dmalloc" X if test "$withval" = yes; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define WITH_DMALLOC 1 EOF X X LIBS="$LIBS -ldmalloc" X LDFLAGS="$LDFLAGS -g" else X echo "$ac_t""no" 1>&6 fi else X echo "$ac_t""no" 1>&6 fi X X X for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:4904: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4943: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X echo $ac_n "checking for working mmap""... $ac_c" 1>&6 echo "configure:4996: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_func_mmap_fixed_mapped=no else X cat > conftest.$ac_ext < #include #include X /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef HAVE_UNISTD_H # include # endif X /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif X # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ X #endif /* no HAVE_GETPAGESIZE */ X #ifdef __cplusplus extern "C" { void *malloc(unsigned); } #else char *malloc(); #endif X int main() { X char *data, *data2, *data3; X int i, pagesize; X int fd; X X pagesize = getpagesize(); X X /* X * First, make a file with some known garbage in it. X */ X data = malloc(pagesize); X if (!data) X exit(1); X for (i = 0; i < pagesize; ++i) X *(data + i) = rand(); X umask(0); X fd = creat("conftestmmap", 0600); X if (fd < 0) X exit(1); X if (write(fd, data, pagesize) != pagesize) X exit(1); X close(fd); X X /* X * Next, try to mmap the file at a fixed address which X * already has something else allocated at it. If we can, X * also make sure that we see the same garbage. X */ X fd = open("conftestmmap", O_RDWR); X if (fd < 0) X exit(1); X data2 = malloc(2 * pagesize); X if (!data2) X exit(1); X data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); X if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, X MAP_PRIVATE | MAP_FIXED, fd, 0L)) X exit(1); X for (i = 0; i < pagesize; ++i) X if (*(data + i) != *(data2 + i)) X exit(1); X X /* X * Finally, make sure that changes to the mapped area X * do not percolate back to the file as seen by read(). X * (This is a bug on some variants of i386 svr4.0.) X */ X for (i = 0; i < pagesize; ++i) X *(data2 + i) = *(data2 + i) + 1; X data3 = malloc(pagesize); X if (!data3) X exit(1); X if (read(fd, data3, pagesize) != pagesize) X exit(1); X for (i = 0; i < pagesize; ++i) X if (*(data + i) != *(data3 + i)) X exit(1); X close(fd); X unlink("conftestmmap"); X exit(0); } X EOF if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_func_mmap_fixed_mapped=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_func_mmap_fixed_mapped=no fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then X cat >> confdefs.h <<\EOF #define HAVE_MMAP 1 EOF X fi X X X for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:5172: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X X for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:5212: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X for ac_func in stpcpy do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:5269: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X cat >> confdefs.h <<\EOF #define HAVE_STPCPY 1 EOF X X fi X X if test $ac_cv_header_locale_h = yes; then X echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 echo "configure:5331: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X am_cv_val_LC_MESSAGES=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X am_cv_val_LC_MESSAGES=no fi rm -f conftest* fi X echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 X if test $am_cv_val_LC_MESSAGES = yes; then X cat >> confdefs.h <<\EOF #define HAVE_LC_MESSAGES 1 EOF X X fi X fi X echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 echo "configure:5364: checking whether NLS is requested" >&5 X # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then X enableval="$enable_nls" X USE_NLS=$enableval else X USE_NLS=yes fi X X echo "$ac_t""$USE_NLS" 1>&6 X X X USE_INCLUDED_LIBINTL=no X X if test "$USE_NLS" = "yes"; then X cat >> confdefs.h <<\EOF #define ENABLE_NLS 1 EOF X X echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 echo "configure:5384: checking whether included gettext is requested" >&5 X # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then X withval="$with_included_gettext" X nls_cv_force_use_gnu_gettext=$withval else X nls_cv_force_use_gnu_gettext=no fi X X echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 echo "configure:5403: checking for libintl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 echo "configure:5430: checking for gettext in libc" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { return (int) gettext ("") ; return 0; } EOF if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X gt_cv_func_gettext_libc=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X gt_cv_func_gettext_libc=no fi rm -f conftest* fi X echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 X X if test "$gt_cv_func_gettext_libc" != "yes"; then X echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 echo "configure:5458: checking for bindtextdomain in -lintl" >&5 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 echo "configure:5493: checking for gettext in -lintl" >&5 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X else X echo "$ac_t""no" 1>&6 fi X X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X cat >> confdefs.h <<\EOF #define HAVE_GETTEXT 1 EOF X X # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5554: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$MSGFMT" in X /*) X ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then X ac_cv_path_MSGFMT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" X ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then X echo "$ac_t""$MSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X if test "$MSGFMT" != "no"; then X for ac_func in dcgettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:5588: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5643: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5679: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$XGETTEXT" in X /*) X ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then X ac_cv_path_XGETTEXT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" X ;; esac fi XXGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then X echo "$ac_t""$XGETTEXT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X CATOBJEXT=.gmo X DATADIRNAME=share else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CATOBJEXT=.mo X DATADIRNAME=lib fi rm -f conftest* X INSTOBJEXT=.mo X fi X fi X else X echo "$ac_t""no" 1>&6 fi X X X if test "$CATOBJEXT" = "NONE"; then X echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 echo "configure:5742: checking whether catgets can be used" >&5 X # Check whether --with-catgets or --without-catgets was given. if test "${with_catgets+set}" = set; then X withval="$with_catgets" X nls_cv_use_catgets=$withval else X nls_cv_use_catgets=no fi X X echo "$ac_t""$nls_cv_use_catgets" 1>&6 X X if test "$nls_cv_use_catgets" = "yes"; then X echo $ac_n "checking for main in -li""... $ac_c" 1>&6 echo "configure:5755: checking for main in -li" >&5 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-li $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X X echo $ac_n "checking for catgets""... $ac_c" 1>&6 echo "configure:5798: checking for catgets" >&5 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char catgets(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_catgets) || defined (__stub___catgets) choke me #else catgets(); #endif X ; return 0; } EOF if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_catgets=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_catgets=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define HAVE_CATGETS 1 EOF X X INTLOBJS="\$(CATOBJS)" X # Extract the first word of "gencat", so it can be a program name with args. set dummy gencat; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5848: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GENCAT" in X /*) X ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GENCAT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" X ;; esac fi GENCAT="$ac_cv_path_GENCAT" if test -n "$GENCAT"; then X echo "$ac_t""$GENCAT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X if test "$GENCAT" != "no"; then X # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5884: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X if test "$GMSGFMT" = "no"; then X # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5921: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X fi X # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5956: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$XGETTEXT" in X /*) X ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then X ac_cv_path_XGETTEXT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" X ;; esac fi XXGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then X echo "$ac_t""$XGETTEXT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi else X echo "$ac_t""no" 1>&6 fi X X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X INTLOBJS="\$(GETTOBJS)" X # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6014: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$MSGFMT" in X /*) X ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then X ac_cv_path_MSGFMT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" X ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then X echo "$ac_t""$MSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6048: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6084: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$XGETTEXT" in X /*) X ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then X ac_cv_path_XGETTEXT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" X ;; esac fi XXGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then X echo "$ac_t""$XGETTEXT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X if test "$XGETTEXT" != ":"; then X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X X X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X X X X X X X X X X X X X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 echo "configure:6181: checking for catalogs to be installed" >&5 X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X echo "$ac_t""$LINGUAS" 1>&6 X fi X X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X X X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 echo "configure:6209: checking for linux/version.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X msgformat=linux else X echo "$ac_t""no" 1>&6 msgformat=xopen fi X X X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X X X X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X X X l= X X X test -d po || mkdir po X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X X # This no-op line works around a bug in automake 1.4: # it doesn't recognize the assignment to LIBOBJS # in m4/malloc.m4 and m4/realloc.m4. : LIBOBJS="$LIBOBJS malloc.o realloc.o" X # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` X trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | X case `(ac_space=' '; set | grep ac_space) 2>&1` in X *ac_space=\ *) X # `set' does not quote correctly, so add quotes (double-quote substitution X # turns \\\\ into \\, and sed turns \\ into \). X sed -n \ X -e "s/'/'\\\\''/g" \ X -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" X ;; X *) X # `set' quotes correctly as required by POSIX, so do not add quotes. X sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' X ;; X esac >> confcache if cmp -s $cache_file confcache; then X : else X if test -w $cache_file; then X echo "updating cache $cache_file" X cat confcache > $cache_file X else X echo "not updating unwritable cache $cache_file" X fi fi rm -f confcache X trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 X test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' X # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then X ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi X trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 X DEFS=-DHAVE_CONFIG_H X # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} X echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. X ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do X case "\$ac_option" in X -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) X echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" X exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; X -version | --version | --versio | --versi | --vers | --ver | --ve | --v) X echo "$CONFIG_STATUS generated by autoconf version 2.13" X exit 0 ;; X -help | --help | --hel | --he | --h) X echo "\$ac_cs_usage"; exit 0 ;; X *) echo "\$ac_cs_usage"; exit 1 ;; X esac done X ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" X trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile \ m4/Makefile po/Makefile.in \ scripts/Makefile src/Makefile tests/Makefile tests/preset config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@PACKAGE@%$PACKAGE%g s%@VERSION@%$VERSION%g s%@ACLOCAL@%$ACLOCAL%g s%@AUTOCONF@%$AUTOCONF%g s%@AUTOMAKE@%$AUTOMAKE%g s%@AUTOHEADER@%$AUTOHEADER%g s%@MAKEINFO@%$MAKEINFO%g s%@SET_MAKE@%$SET_MAKE%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@EXEEXT@%$EXEEXT%g s%@RANLIB@%$RANLIB%g s%@YACC@%$YACC%g s%@build@%$build%g s%@build_alias@%$build_alias%g s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@GETCONF@%$GETCONF%g s%@U@%$U%g s%@ANSI2KNR@%$ANSI2KNR%g s%@RMT@%$RMT%g s%@LIBOBJS@%$LIBOBJS%g s%@ALLOCA@%$ALLOCA%g s%@USE_NLS@%$USE_NLS%g s%@MSGFMT@%$MSGFMT%g s%@GMSGFMT@%$GMSGFMT%g s%@XGETTEXT@%$XGETTEXT%g s%@GENCAT@%$GENCAT%g s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g s%@CATALOGS@%$CATALOGS%g s%@CATOBJEXT@%$CATOBJEXT%g s%@DATADIRNAME@%$DATADIRNAME%g s%@GMOFILES@%$GMOFILES%g s%@INSTOBJEXT@%$INSTOBJEXT%g s%@INTLDEPS@%$INTLDEPS%g s%@INTLLIBS@%$INTLLIBS%g s%@INTLOBJS@%$INTLOBJS%g s%@POFILES@%$POFILES%g s%@POSUB@%$POSUB%g s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g s%@GT_NO@%$GT_NO%g s%@GT_YES@%$GT_YES%g s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g s%@l@%$l%g X CEOF EOF X cat >> $CONFIG_STATUS <<\EOF X # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do X if test $ac_beg -gt 1; then X sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file X else X sed "${ac_end}q" conftest.subs > conftest.s$ac_file X fi X if test ! -s conftest.s$ac_file; then X ac_more_lines=false X rm -f conftest.s$ac_file X else X if test -z "$ac_sed_cmds"; then X ac_sed_cmds="sed -f conftest.s$ac_file" X else X ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" X fi X ac_file=`expr $ac_file + 1` X ac_beg=$ac_end X ac_end=`expr $ac_end + $ac_max_sed_cmds` X fi done if test -z "$ac_sed_cmds"; then X ac_sed_cmds=cat fi EOF X cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then X # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". X case "$ac_file" in X *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` X ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; X *) ac_file_in="${ac_file}.in" ;; X esac X X # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. X X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` X if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then X # The file is in a subdirectory. X test ! -d "$ac_dir" && mkdir "$ac_dir" X ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" X # A "../" for each directory in $ac_dir_suffix. X ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` X else X ac_dir_suffix= ac_dots= X fi X X case "$ac_given_srcdir" in X .) srcdir=. X if test -z "$ac_dots"; then top_srcdir=. X else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; X /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; X *) # Relative path. X srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" X top_srcdir="$ac_dots$ac_given_srcdir" ;; X esac X X case "$ac_given_INSTALL" in X [/$]*) INSTALL="$ac_given_INSTALL" ;; X *) INSTALL="$ac_dots$ac_given_INSTALL" ;; X esac X X echo creating "$ac_file" X rm -f "$ac_file" X configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." X case "$ac_file" in X *Makefile*) ac_comsub="1i\\ # $configure_input" ;; X *) ac_comsub= ;; X esac X X ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` X sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* X # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' X if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then X # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". X case "$ac_file" in X *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` X ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; X *) ac_file_in="${ac_file}.in" ;; X esac X X echo creating $ac_file X X rm -f conftest.frag conftest.in conftest.out X ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` X cat $ac_file_inputs > conftest.in X EOF X # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: # Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr X # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF X # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. X rm -f conftest.tail while : do X ac_lines=`grep -c . conftest.vals` X # grep -c gives empty output for an empty file on some AIX systems. X if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi X # Write a limited-size here document to conftest.frag. X echo ' cat > conftest.frag <> $CONFIG_STATUS X sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS X echo 'CEOF X sed -f conftest.frag conftest.in > conftest.out X rm -f conftest.in X mv conftest.out conftest.in ' >> $CONFIG_STATUS X sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail X rm -f conftest.vals X mv conftest.tail conftest.vals done rm -f conftest.vals X cat >> $CONFIG_STATUS <<\EOF X rm -f conftest.frag conftest.h X echo "/* $ac_file. Generated automatically by configure. */" > conftest.h X cat conftest.in >> conftest.h X rm -f conftest.in X if cmp -s $ac_file conftest.h 2>/dev/null; then X echo "$ac_file is unchanged" X rm -f conftest.h X else X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` X if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then X # The file is in a subdirectory. X test ! -d "$ac_dir" && mkdir "$ac_dir" X fi X rm -f $ac_file X mv conftest.h $ac_file X fi fi; done X EOF X cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF srcdir=$ac_given_srcdir while test -n "$ac_sources"; do X set $ac_dests; ac_dest=$1; shift; ac_dests=$* X set $ac_sources; ac_source=$1; shift; ac_sources=$* X X echo "linking $srcdir/$ac_source to $ac_dest" X X if test ! -r $srcdir/$ac_source; then X { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } X fi X rm -f $ac_dest X X # Make relative symlinks. X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` X if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then X # The dest file is in a subdirectory. X test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" X ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" X # A "../" for each directory in $ac_dest_dir_suffix. X ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` X else X ac_dest_dir_suffix= ac_dots= X fi X X case "$srcdir" in X [/$]*) ac_rel_source="$srcdir/$ac_source" ;; X *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; X esac X X # Make a symlink if possible; otherwise try a hard link. X if ln -s $ac_rel_source $ac_dest 2>/dev/null || X ln $srcdir/$ac_source $ac_dest; then : X else X { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } X fi done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac X Xexit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 X SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/configure' && chmod 0775 'tar-1.13/configure' || $echo 'restore of' 'tar-1.13/configure' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/configure:' 'MD5 check failed' 51358e2f0487f98a62da3e5afe696daf tar-1.13/configure SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/configure'`" test 187588 -eq "$shar_count" || $echo 'tar-1.13/configure:' 'original size' '187588,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/configure.in ============== if test -f 'tar-1.13/configure.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/configure.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/configure.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/configure.in' && # Configure template for GNU tar. # Copyright 1991, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X AC_INIT(src/tar.c) AM_CONFIG_HEADER(config.h) AC_PREREQ(2.12) AC_CANONICAL_HOST AM_INIT_AUTOMAKE(tar, 1.13) AC_DEFINE(_GNU_SOURCE) ALL_LINGUAS="cs de es fr it ko nl no pl pt ru sl sv" X AC_PROG_CC AC_PROG_GCC_TRADITIONAL AC_AIX AC_MINIX AC_EXEEXT AC_PROG_RANLIB AC_PROG_YACC AC_SYS_LARGEFILE AC_ISC_POSIX AM_C_PROTOTYPES AC_C_CONST AC_C_INLINE AC_CHECK_SIZEOF(unsigned long, 4) AC_CHECK_SIZEOF(long long, 0) X AC_CHECK_HEADERS(fcntl.h limits.h linux/fd.h memory.h net/errno.h poll.h \ sgtty.h string.h stropts.h \ sys/buf.h sys/device.h sys/gentape.h sys/inet.h sys/io/trioctl.h sys/ioccom.h \ sys/mtio.h sys/param.h sys/tprintf.h sys/tape.h sys/time.h sys/timeb.h \ sys/wait.h unistd.h) X jm_AC_HEADER_INTTYPES_H X # It seems that that many machines where seems to be # broken just require something like -D_XXX_SOURCE, where XXX might # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine. X AC_CACHE_CHECK(for utime.h, tar_cv_header_utime_h, X [AC_TRY_COMPILE([ #include #include ], [struct utimbuf foo], X tar_cv_header_utime_h=yes, tar_cv_header_utime_h=no)]) test $tar_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H) X if test $ac_cv_header_sys_mtio_h = yes; then X AC_CACHE_CHECK(for remote tape header files, tar_cv_header_rmt, X [AC_TRY_CPP([ #if HAVE_SGTTY_H # include #endif #include ], X tar_cv_header_rmt=yes, tar_cv_header_rmt=no)]) X test $tar_cv_header_rmt = yes && RMT=rmt X AC_SUBST(RMT) fi X AC_CACHE_CHECK(for getgrgid declaration, tar_cv_header_getgrgid, X [AC_EGREP_HEADER(getgrgid, grp.h, X tar_cv_header_getgrgid=yes, tar_cv_header_getgrgid=no)]) test $tar_cv_header_getgrgid = yes && AC_DEFINE(HAVE_GETGRGID) X AC_CACHE_CHECK(for getpwuid declaration, tar_cv_header_getpwuid, X [AC_EGREP_HEADER(getpwuid, pwd.h, X tar_cv_header_getpwuid=yes, tar_cv_header_getpwuid=no)]) test $tar_cv_header_getpwuid = yes && AC_DEFINE(HAVE_GETPWUID) X AC_CACHE_CHECK(which ioctl field to test for reversed bytes, X tar_cv_header_mtio_check_field, X [AC_EGREP_HEADER(mt_model, sys/mtio.h, X tar_cv_header_mtio_check_field=mt_model, X tar_cv_header_mtio_check_field=mt_type)]) AC_DEFINE_UNQUOTED(MTIO_CHECK_FIELD, $tar_cv_header_mtio_check_field) X AC_HEADER_DIRENT AC_HEADER_MAJOR AC_HEADER_STAT AC_HEADER_STDC AC_HEADER_TIME AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLOCKS jm_STRUCT_DIRENT_D_INO AC_MSG_CHECKING([for st_fstype string in struct stat]) AC_CACHE_VAL(diff_cv_st_fstype_string, X [AC_TRY_COMPILE([#include #include ], [struct stat s; s.st_fstype[0] = 'x';], X diff_cv_st_fstype_string=yes, X diff_cv_st_fstype_string=no)]) AC_MSG_RESULT($diff_cv_st_fstype_string) if test $diff_cv_st_fstype_string = yes; then X AC_DEFINE(HAVE_ST_FSTYPE_STRING) fi X AC_TYPE_SIGNAL AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_TYPE_UID_T AC_CHECK_TYPE(daddr_t, long) AC_CHECK_TYPE(major_t, int) AC_CHECK_TYPE(minor_t, int) AC_CHECK_TYPE(ssize_t, int) jm_AC_TYPE_UINTMAX_T jm_AC_PREREQ_XSTRTOUMAX X AC_CHECK_FUNCS(fsync ftime getcwd isascii mkfifo nap napms poll \ select strerror strstr usleep) X AC_CACHE_CHECK(for mknod, tar_cv_func_mknod, X [AC_TRY_LINK([ #include #include ], X [mknod (0, 0, 0)], X tar_cv_func_mknod=yes, tar_cv_func_mknod=no)]) test $tar_cv_func_mknod = yes && AC_DEFINE(HAVE_MKNOD) X # Whenever both -lsocket and -lnsl are needed, it seems to be always the # case that gethostbyname requires -lnsl. So, check -lnsl first, for it # to be in LIBS before the setsockopt checks are performed. *However*, # on SINIX-N 5.43, this is false, and gethostent seems to be a better # candidate. So, let's use it below instead of gethostbyname, and see. X AC_CHECK_FUNC(gethostent) if test $ac_cv_func_gethostent = no; then X AC_CHECK_LIB(nsl, gethostent) fi AC_CHECK_FUNC(setsockopt) if test $ac_cv_func_setsockopt = no; then X AC_CHECK_LIB(socket, setsockopt) fi X AC_FUNC_ALLOCA AC_FUNC_FNMATCH test $ac_cv_func_fnmatch_works = yes || LIBOBJS="$LIBOBJS fnmatch.o" AC_FUNC_VPRINTF AC_REPLACE_FUNCS(execlp ftruncate lchown memset mkdir rename rmdir \ X strtol strtoul) jm_FUNC_MALLOC jm_FUNC_MKTIME jm_FUNC_REALLOC test "$ac_cv_func_strstr" = yes || LIBOBJS="$LIBOBJS strstr.o" X # The 3-argument open happens to go along with the O_* defines, which # are easier to check for. X AC_CACHE_CHECK(for 3-argument open, tar_cv_func_open3, X [AC_TRY_COMPILE([ #if HAVE_FCNTL_H # include #else # include #endif], X [int x = O_RDONLY], X tar_cv_func_open3=yes, tar_cv_func_open3=no)]) if test $tar_cv_func_open3 = no; then X AC_DEFINE(EMUL_OPEN3) fi X # `union wait' is preferrably avoided. We merely assume below # that if `int pid;' fails, `union wait pid;' would have worked. # Directly trying `union wait pid;' is seeking for trouble, as # some POSIX systems are offering compatibility hacks generating # ugly diagnostics. Also, on some systems, WEXITSTATUS exists, # but fails when called on `union wait' variables. X AC_CACHE_CHECK(for union wait, tar_cv_header_union_wait, X [AC_TRY_COMPILE([ #include #if HAVE_SYS_WAIT_H # include #endif], X [int status; int pid; pid = wait (&status);], X tar_cv_header_union_wait=no, tar_cv_header_union_wait=yes)]) test $tar_cv_header_union_wait = yes && AC_DEFINE(HAVE_UNION_WAIT) X AC_CACHE_CHECK(for remote shell, tar_cv_path_RSH, X [if test -n "$RSH"; then X tar_cv_path_RSH=$RSH X else X tar_cv_path_RSH=no X for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \ X /usr/bin/nsh /usr/bin/rcmd X do X if test -f $ac_file; then X tar_cv_path_RSH=$ac_file X break X fi X done X fi]) if test $tar_cv_path_RSH = no; then X AC_CHECK_HEADERS(netdb.h) else X AC_DEFINE_UNQUOTED(REMOTE_SHELL, "$tar_cv_path_RSH") fi X AC_MSG_CHECKING(for default archive) X if test -z "$DEFAULT_ARCHIVE"; then X DEFAULT_ARCHIVE=- else X if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then X AC_MSG_WARN(DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system) X fi X # FIXME: Look for DEFTAPE in . X # FIXME: Let DEVICE_PREFIX be configured from the environment. X # FIXME: Rearrange, here. X case $DEFAULT_ARCHIVE in changequote(, )dnl X *[0-7][lmh]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'` changequote([, ])dnl X AC_DEFINE_UNQUOTED(DEVICE_PREFIX, "$device_prefix") X AC_DEFINE(DENSITY_LETTER) X ;; changequote(, )dnl X *[0-7]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'` changequote([, ])dnl X AC_DEFINE_UNQUOTED(DEVICE_PREFIX, "$device_prefix") X ;; X esac fi AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE, "$DEFAULT_ARCHIVE") AC_MSG_RESULT($DEFAULT_ARCHIVE) X AC_MSG_CHECKING(for default blocking) DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20} AC_DEFINE_UNQUOTED(DEFAULT_BLOCKING, $DEFAULT_BLOCKING) AC_MSG_RESULT($DEFAULT_BLOCKING) X AM_WITH_DMALLOC X AM_GNU_GETTEXT X # This no-op line works around a bug in automake 1.4: # it doesn't recognize the assignment to LIBOBJS # in m4/malloc.m4 and m4/realloc.m4. : LIBOBJS="$LIBOBJS malloc.o realloc.o" X # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` X AC_OUTPUT([Makefile doc/Makefile intl/Makefile lib/Makefile \ m4/Makefile po/Makefile.in \ scripts/Makefile src/Makefile tests/Makefile tests/preset]) SHAR_EOF $shar_touch -am 0707012499 'tar-1.13/configure.in' && chmod 0444 'tar-1.13/configure.in' || $echo 'restore of' 'tar-1.13/configure.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/configure.in:' 'MD5 check failed' a8d5f367a4c67d210c819b64be6b3258 tar-1.13/configure.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/configure.in'`" test 8182 -eq "$shar_count" || $echo 'tar-1.13/configure.in:' 'original size' '8182,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/install-sh ============== if test -f 'tar-1.13/install-sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/install-sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/install-sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/install-sh' && #!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. X X # set DOITPROG to echo to test this script X # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" X X # put in absolute paths if you don't have them in your path; or use env. vars. X mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" X transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" X while [ x"$1" != x ]; do X case $1 in X -c) instcmd="$cpprog" X shift X continue;; X X -d) dir_arg=true X shift X continue;; X X -m) chmodcmd="$chmodprog $2" X shift X shift X continue;; X X -o) chowncmd="$chownprog $2" X shift X shift X continue;; X X -g) chgrpcmd="$chgrpprog $2" X shift X shift X continue;; X X -s) stripcmd="$stripprog" X shift X continue;; X X -t=*) transformarg=`echo $1 | sed 's/-t=//'` X shift X continue;; X X -b=*) transformbasename=`echo $1 | sed 's/-b=//'` X shift X continue;; X X *) if [ x"$src" = x ] X then X src=$1 X else X # this colon is to work around a 386BSD /bin/sh bug X : X dst=$1 X fi X shift X continue;; X esac done X if [ x"$src" = x ] then X echo "install: no input file specified" X exit 1 else X true fi X if [ x"$dir_arg" != x ]; then X dst=$src X src="" X X if [ -d $dst ]; then X instcmd=: X chmodcmd="" X else X instcmd=$mkdirprog X fi else X # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. X X if [ -f $src -o -d $src ] X then X true X else X echo "install: $src does not exist" X exit 1 X fi X X if [ x"$dst" = x ] X then X echo "install: no destination specified" X exit 1 X else X true X fi X # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic X X if [ -d $dst ] X then X dst="$dst"/`basename $src` X else X true X fi fi X ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` X # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script X # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' X ' IFS="${IFS-${defaultIFS}}" X oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" X pathcomp='' X while [ $# -ne 0 ] ; do X pathcomp="${pathcomp}${1}" X shift X X if [ ! -d "${pathcomp}" ] ; X then X $mkdirprog "${pathcomp}" X else X true X fi X X pathcomp="${pathcomp}/" done fi X if [ x"$dir_arg" != x ] then X $doit $instcmd $dst && X X if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && X if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && X if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && X if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else X # If we're going to rename the final executable, determine the name now. X X if [ x"$transformarg" = x ] X then X dstfile=`basename $dst` X else X dstfile=`basename $dst $transformbasename | X sed $transformarg`$transformbasename X fi X # don't allow the sed command to completely eliminate the filename X X if [ x"$dstfile" = x ] X then X dstfile=`basename $dst` X else X true X fi X # Make a temp file name in the proper directory. X X dsttmp=$dstdir/#inst.$$# X # Move or copy the file name to the temp name X X $doit $instcmd $src $dsttmp && X X trap "rm -f ${dsttmp}" 0 && X # and set any options; do chmod last to preserve setuid bits X # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. X X if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && X if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && X if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && X if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && X # Now rename the file to the real destination. X X $doit $rmcmd -f $dstdir/$dstfile && X $doit $mvcmd $dsttmp $dstdir/$dstfile X fi && X X Xexit 0 SHAR_EOF $shar_touch -am 0302054499 'tar-1.13/install-sh' && chmod 0555 'tar-1.13/install-sh' || $echo 'restore of' 'tar-1.13/install-sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/install-sh:' 'MD5 check failed' 18d5e01e93fd52b4b765c92095c42b01 tar-1.13/install-sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/install-sh'`" test 5603 -eq "$shar_count" || $echo 'tar-1.13/install-sh:' 'original size' '5603,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/missing ============== if test -f 'tar-1.13/missing' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/missing' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/missing' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/missing' && #! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997 Free Software Foundation, Inc. # Franc,ois Pinard , 1996. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X if test $# -eq 0; then X echo 1>&2 "Try \`$0 --help' for more information" X exit 1 fi X case "$1" in X X -h|--h|--he|--hel|--help) X echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... X Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. X Options: X -h, --help display this help and exit X -v, --version output version information and exit X Supported PROGRAM values: X aclocal touch file \`aclocal.m4' X autoconf touch file \`configure' X autoheader touch file \`config.h.in' X automake touch all \`Makefile.in' files X bison create \`y.tab.[ch]', if possible, from existing .[ch] X flex create \`lex.yy.c', if possible, from existing .c X lex create \`lex.yy.c', if possible, from existing .c X makeinfo touch the output file X yacc create \`y.tab.[ch]', if possible, from existing .[ch]" X ;; X X -v|--v|--ve|--ver|--vers|--versi|--versio|--version) X echo "missing - GNU libit 0.0" X ;; X X -*) X echo 1>&2 "$0: Unknown \`$1' option" X echo 1>&2 "Try \`$0 --help' for more information" X exit 1 X ;; X X aclocal) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`acinclude.m4' or \`configure.in'. You might want X to install the \`Automake' and \`Perl' packages. Grab them from X any GNU archive site." X touch aclocal.m4 X ;; X X autoconf) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`configure.in'. You might want to install the X \`Autoconf' and \`GNU m4' packages. Grab them from any GNU X archive site." X touch configure X ;; X X autoheader) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`acconfig.h' or \`configure.in'. You might want X to install the \`Autoconf' and \`GNU m4' packages. Grab them X from any GNU archive site." X files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` X if test -z "$files"; then X files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` X test -z "$files" || files="$files.in" X else X files=`echo "$files" | sed -e 's/:/ /g'` X fi X test -z "$files" && files="config.h.in" X touch $files X ;; X X automake) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. X You might want to install the \`Automake' and \`Perl' packages. X Grab them from any GNU archive site." X find . -type f -name Makefile.am -print \ X | sed 's/^\(.*\).am$/touch \1.in/' \ X | sh X ;; X X bison|yacc) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified a \`.y' file. You may need the \`Bison' package X in order for those modifications to take effect. You can get X \`Bison' from any GNU archive site." X rm -f y.tab.c y.tab.h X if [ $# -ne 1 ]; then X eval LASTARG="\${$#}" X case "$LASTARG" in X *.y) X SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` X if [ -f "$SRCFILE" ]; then X cp "$SRCFILE" y.tab.c X fi X SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` X if [ -f "$SRCFILE" ]; then X cp "$SRCFILE" y.tab.h X fi X ;; X esac X fi X if [ ! -f y.tab.h ]; then X echo >y.tab.h X fi X if [ ! -f y.tab.c ]; then X echo 'main() { return 0; }' >y.tab.c X fi X ;; X X lex|flex) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified a \`.l' file. You may need the \`Flex' package X in order for those modifications to take effect. You can get X \`Flex' from any GNU archive site." X rm -f lex.yy.c X if [ $# -ne 1 ]; then X eval LASTARG="\${$#}" X case "$LASTARG" in X *.l) X SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` X if [ -f "$SRCFILE" ]; then X cp "$SRCFILE" lex.yy.c X fi X ;; X esac X fi X if [ ! -f lex.yy.c ]; then X echo 'main() { return 0; }' >lex.yy.c X fi X ;; X X makeinfo) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified a \`.texi' or \`.texinfo' file, or any other file X indirectly affecting the aspect of the manual. The spurious X call might also be the consequence of using a buggy \`make' (AIX, X DU, IRIX). You might want to install the \`Texinfo' package or X the \`GNU make' package. Grab either from any GNU archive site." X file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` X if test -z "$file"; then X file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` X file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` X fi X touch $file X ;; X X *) X echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your X system. You might have modified some files without having the X proper tools for further handling them. Check the \`README' file, X it often tells you about the needed prerequirements for installing X this package. You may also peek at any GNU archive site, in case X some other package would contain this missing \`$1' program." X exit 1 X ;; esac X Xexit 0 SHAR_EOF $shar_touch -am 0112215099 'tar-1.13/missing' && chmod 0555 'tar-1.13/missing' || $echo 'restore of' 'tar-1.13/missing' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/missing:' 'MD5 check failed' fef7dcbb4fbdb713bd60f665e8ae67a2 tar-1.13/missing SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/missing'`" test 6274 -eq "$shar_count" || $echo 'tar-1.13/missing:' 'original size' '6274,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/mkinstalldirs ============== if test -f 'tar-1.13/mkinstalldirs' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/mkinstalldirs' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/mkinstalldirs' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/mkinstalldirs' && #! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain X # $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ X errstatus=0 X for file do X set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` X shift X X pathcomp= X for d X do X pathcomp="$pathcomp$d" X case "$pathcomp" in X -* ) pathcomp=./$pathcomp ;; X esac X X if test ! -d "$pathcomp"; then X echo "mkdir $pathcomp" X X mkdir "$pathcomp" || lasterr=$? X X if test ! -d "$pathcomp"; then X errstatus=$lasterr X fi X fi X X pathcomp="$pathcomp/" X done done X exit $errstatus X # mkinstalldirs ends here SHAR_EOF $shar_touch -am 0114115599 'tar-1.13/mkinstalldirs' && chmod 0555 'tar-1.13/mkinstalldirs' || $echo 'restore of' 'tar-1.13/mkinstalldirs' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/mkinstalldirs:' 'MD5 check failed' d69600ffc4dd42fc930f4494b93f97ed tar-1.13/mkinstalldirs SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/mkinstalldirs'`" test 722 -eq "$shar_count" || $echo 'tar-1.13/mkinstalldirs:' 'original size' '722,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/PORTS ============== if test -f 'tar-1.13/PORTS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/PORTS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/PORTS' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/PORTS' && * Ports of GNU tar and other micro-tars -*- outline -*- X X Please write tar-bugs@gnu.org if you are aware of various ports X of GNU tar to non-Unix systems not listed here, or for corrections. X Please provide the goal system, a complete and stable URL, the maintainer X name and address, the tar version used as a base, and your comments. X X.* Amiga X X. + ftp://ftp.wustl.edu/systems/amiga/aminet/util/arc/GNUtar-1.11.8.lha X maintained by Enrico Forestieri X Based on tar 1.11.8. X X. + ftp://ftp.ninemoons.com/pub/ade/current/amiga-bin/tar-1.11.8-bin.lha X maintained by the ADE group X Based on tar 1.11.8, needs ixemul.library. X X. + ftp://ftp.wustl.edu/systems/amiga/aminet/util/arc/gnutar.lha X maintained by X X.* DEC alpha (NT) X X. + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip X maintained by Drew Bliss & Geoff Voelker X X.* DEC VAX (VMS) X X. + http://www.lp.se/free/vmstar/ X maintained by Richard Levitte X This is not GNU tar, but a separate implementation. X X. + maintained by William Bader X For V4.7. Based on an old PDtar. Requires compatible shared libraries X to run V5 or V6 executables. X X.* IBM/PC (DV/X) X X. + ftp://qdeck.com/ (?) X maintained by David Ronis X For Desqview/X. Everything works besides compression. Copy of hacked X sources available, some of DV/X's programmer's library also needed. X X.* IBM/PC (MSDOS) X X. + http://www.simtel.net/simtel.net/ X http://www.leo.org/pub/comp/platforms/pc/gnuish (Germany) X ftp://ftp.simtel.net/simtelnet/gnu X ftp://ftp.leo.org/pub/comp/platforms/pc/gnuish X maintained by Darrel Hankerson X You get many GNU tools, not only `tar'. The GNUish project is described X in `gnuish_t.htm'. X X. + The DJGPP development tools also include some `tar' utilities. X X. + ftp://ftp.mcs.com/mcsnet.users/les/dos-gnutar/ X maintained by Leslie Mikesell X Based on tar 1.11.2. Support for SCSI (via ASPI) and network (rsh over X packet driver). No support for win95 long file names. X X. + ftp://ftp.wu-wien.ac.at:pub/src/PCmisc/aspi-tar/* X maintained by Christoph Splittgerber X Based on tar 1.10. Support for SCSI (via ASPI). X X. + ftp://wuarchive (?) X Several DOS version based on PDtar. John Gilmore says X he has copies of several vintages saved. X X. + ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.exe X ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.taz X ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.zip X X. + ftp://ftp.cdrom.com/.4/os2/archiver/tar.zip X Based on PDtar. X X. + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip X maintained by Drew Bliss & Geoff Voelker X GNU tar for NT (intel and Alpha platforms). X X. + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip X maintained by Tillmann Steinbrecher X The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. X X. + http://people.darmstadt.netsurf.de/tst/tar.htm X maintained by Tillmann Steinbrecher X This is not a `tar' port, but an index of them. X X.* IBM/PC (OS/2) X X. + http://www.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtar254.zip X http://www.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtak254.zip X maintained by Andreas Kaiser X Version 2.54. Based on tar 1.10. The second archive contains SCSI X drivers (DAT streamers notably) and rmt-type programs. X X. + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip X maintained by Tillmann Steinbrecher X The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. X X.* IBM/PC (Win32: Windows 95, NT 3.5 or NT 4.0) X X. + ftp://ftp.cygnus.com:~ftp/pub/sac/win32/usersrc/* X maintained by Cygnus X GNU-Win32 B17.1 distribution. Download all files, `cat' them together, X and `untar' the result. You get many GNU tools, not only `tar'. X Based on tar 1.11.2. X X. + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip X maintained by Drew Bliss & Geoff Voelker X GNU tar for NT (intel and Alpha platforms). X X. + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip X maintained by Tillmann Steinbrecher X The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. X X.* IBM/PC (Windows 3.1) X X. + ftp://ftp.mcs.com/mcsnet.users/les/win-gnutar/ X maintained by Leslie Mikesell X Support for network (rsh over winsock). No support for win95 long X file names. X X. + ftp://ftp.gamesdomain.ru/.1/os/windows/programr/tar.zip X Based on GNU tar 1.11.2. X X.* Macintosh X X. + There is a tar in Stuffit Expander which is available many places and X comes with MacOS. It creates some spurious files but works on average. X X. + There is an excellent GNU tar bundled in Tenon MachTen, but it does not X seem to be available separately. SHAR_EOF $shar_touch -am 0701224199 'tar-1.13/PORTS' && chmod 0444 'tar-1.13/PORTS' || $echo 'restore of' 'tar-1.13/PORTS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/PORTS:' 'MD5 check failed' b72f02452a42d4094679a9c136815e60 tar-1.13/PORTS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/PORTS'`" test 5015 -eq "$shar_count" || $echo 'tar-1.13/PORTS:' 'original size' '5015,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/rebox.el ============== if test -f 'tar-1.13/rebox.el' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/rebox.el' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/rebox.el' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/rebox.el M.SL[($AA;F1L:6YG(&]F(&-O;6UE;G0@8F]X97,N"@H[.SL@0V]P>7)I9VAT M("A#*2`Q.3DQ+"`Y,BP@.3,L(#DT+"`Y-2P@.38L(#DW($9R964@4V]F='=A M2!T:&4*.SL[($9R M964@4V]F='=A2!O9@H[ M.SL@34520TA!3E1!0DE,2519(&]R($9)5$Y%4U,@1D]2($$@4$%25$E#54Q! M4B!055)03U-%+B`@4V5E('1H92!'3E4@1V5N97)A;`H[.SL@4'5B;&EC($QI M8V5N2!H86YD(BX@(%1H:7,@ M1TY5($5M86-S"CL[.R!,25-0(&-O9&4@96%S97,@;7D@;&EF92!O;B!T:&ES M(&%N9"!)(&9I;F0@:70@9F%I"UC;VUM96YT(&1I2!R969I;&QS M('1H92!T97AT+"!T:&5N(&%D:G5S=',@=&AE(&-O;6UE;G0*.SL[(&)O>"!S M='EL92X@(%1H92!F=6YC=&EO;B!R96)O>"UR96=I;VX@9&]E&5D(&-O;6UE;G0N("!.=6UE&5S(&%R90H[ M.SL@=7-E9"!T;R!A9&0@;W(@6QE("AL86YG=6%G92P@<75A;&ET>2!O<@H[.SL@='EP92DL(&]R('1O('!R M979E;G0@2!B92!U6QE+B`@02!S='EL92!I7!E"CL[.R`H=&AE('5N:71S(&1I9VET*2X)02!Z97)O(&]R(&YE M9V%T:79E(&9L86<@=F%L=64@8VAA;F=E6QE('1O(&ET'0L"CL[.R!U6QE(&EN=&5R86-T M:79E;'DN"@H[.SL@0F]X(&QA;F=U86=E(&ES(&%S"!Q=6%L:71Y(&EN9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* M.SL[(%)E<75E6QE(&EN=&5R86-T:79E;'DL('5S:6YG('1H M92!M:6YI8G5F9F5R+@H**&1E9G5N(')E8F]X+6%S:RUF;W(M2!T>7!E*0H@("`@*'=H:6QE M("AN;W0@;&%N9W5A9V4I"B`@("`@("AM97-S86=E(%)%0D]87TA%3%!?1D]2 M7TQ!3D=504=%*0H@("`@("`H2`_,"DI*2D* M("`@("AW:&EL92`H;F]T('%U86QI='DI"B`@("`@("AM97-S86=E(%)%0D]8 M7TA%3%!?1D]27U%504Q)5%DI"B`@("`@("AS971Q(&ME>2`H2`_,"D@*#P](&ME>2`H*R`_,"!2 M14)/6%]-05A?455!3$E462DI*0H)("`H2`_ M,"DI*2D*("`@("AW:&EL92`H;F]T('1Y<&4I"B`@("`@("AM97-S86=E(%)% M0D]87TA%3%!?1D]27U194$4I"B`@("`@("AS971Q(&ME>2`H2`_,"D@*#P](&ME>2`H*R`_,"!2 M14)/6%]-05A?5%E012DI*0H)("`H7!E("@M(&ME>2`_,"DI*2D* M("`@("@K("@J(#$P,"!L86YG=6%G92D@*"H@,3`@<75A;&ET>2D@='EP92DI M*0H*.SL[(%=R:71E('-O;64@5$585"!F;VQL;W=E9"!B>2!A;B!E9&ET960@ M4U193$4@=F%L=64@:6YT;R!T:&4@;6EN:6)U9F9E"US:&]W+7-T>6QE("AT97AT('-T>6QE*0H@("AM97-S86=E"B`@("AC;VYC M870@=&5X="`H9F]R;6%T("(@*"4P,V0I(B!S='EL92D*"2`@("(Z("(@*')E M8F]X+6AE;'`M"UH96QP+7-T2`H*B`H)2`H+R!S='EL92`Q,"D@,3`I(#$P*2D*"2`@("(L("(@*')E8F]X M+6AE;'`M7!E("@E('-T>6QE(#$P*2DI*2D*"CL[.R!6 M86QI9&%T92!&3$%'(&%N9"!U2!E"!S='EL92!A;F0* M.SL[(')E='5R;B!N:6PN"@HH9&5F=6X@"!S='EL92!I9B!R97%U97-T960N"@H@("AI9B`H86YD("AN=6UB97)P(&9L M86"UD969A=6QT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D=504=%7U1%6"D@ M(EQ<*"4K7%PI6R!<=%TJ)"(I*2D*"CL[.R!">2!L;V]K:6YG(&%T('1H92!T M97AT('-T87)T:6YG(&%T('1H92!C=7)S;W(@<&]S:71I;VXL(&=U97-S('1H M90H[.SL@;&%N9W5A9V4@:6X@=7-E+"!A;F0@"UR96=E>'`M'0@869T97(@96YD(&]F(&-O;6UE;G0B*2DI*0H@("`@("`H M96YD+6]F+6QI;F4I"B`@("`@("AI9B`H96]B<"D*"2`@*&EN2!T;R!E>'1E;F0@=&AE(&-O;6UE;G0@8FQO8VL@ M8F%C:W=A"UR96=E>'`M"UR96=E>'`M2!T>7!E*0H@ M("AR96)O>"US:&]W+7-T>6QE(")3='EL92(@*"L@;&%N9W5A9V4@<75A;&ET M>2!T>7!E*2D*"B`@*&QE="`H'@I"@H@("`@.SL@+2!D96-I9&4@=&AE(&5L96UE;G1S M(&]F('1H92!B;W@@8F5I;F<@<')O9'5C960*"B`@("`H8V]N9"`H*#T@;&%N M9W5A9V4@4D5"3UA?3$%.1U5!1T5?3D].12D*"2`@(#L[("T@<&QA;FEF>2!A M(&-O;6UE;G0@9F]R(&YO(&QA;F=U86=E(&EN('!A2!214)/6%]154%,25197U-)35!,15]/3D4I"@D) M("`[.R`M('!L86YI9GD@82!S:6UP;&4@8F]X"@H)"2`@*&-O;F0@*"@]('1Y M<&4@4D5"3UA?5%E015]/4$5.*0H)"0D@*'-E='$@;G<@(B(I("AS971Q('-W M("(B*0H)"0D@*'-E='$@=W<@(B(I("AS971Q(&5E("(B*2D*"0D)*"@]('1Y M<&4@4D5"3UA?5%E015](04Q&7U-)3D=,12D*"0D)("AS971Q(&YW("(B*0H) M"0D@*'-E='$@=W<@(GP@(BD@("`@("`@("`@("`@("AS971Q(&5E("(@?"(I M"@D)"2`H7!E(%)%0D]87U194$5?4TE.1TQ%*0H)"0D@*'-E='$@ M;G<@(BLM(BD@*'-E='$@;FX@/RTI("AS971Q(&YE("(M*R(I"@D)"2`H2!214)/6%]154%,25197U)/54Y$ M141?5$A2144I*0H)"2`@.SL@+2!P;&%N:69Y(&$@7!E(%)% M0D]87U194$5?2$%,1E]324Y'3$4I"@D)"2`H7!E(%)%0D]87U194$5?1$]5 M0DQ%*0H)"0D@*'-E='$@;G<@(B\J("(I("AS971Q(&YN(#\]*2`H2!214)/ M6%]154%,25197U)/54Y$141?5$A2144I*0H)"2`@.SL@+2!P;&%N:69Y(&$@ M7!E(%)%0D]87U194$5?2$%, M1E]324Y'3$4I"@D)("`H"DI"@D)("`H M2`Q,"DI M('@I*0H)"2`@*'-E='$@;G<@(B(I"@D)("`H"D@*'-E='$@ M"D@*'-E='$@'@I*0H)"2`H*#T@='EP92!214)/6%]465!%7T1/ M54),12D*"0D@("AS971Q(&5E("AC;VYC870@(B`B('AX*2D*"0D@("AS971Q M('AX("AM86ME+7-T2`Q,"DI('@I*0H)"2`@ M*'-E='$@;G<@>'@I("AS971Q(&YN('@I("AS971Q(&YE('AX*0H)"2`@*'-E M='$@'@I("AS971Q('-S('@I("AS971Q('-E('AX*2DI*2D*"B`@("`[ M.R`M('!O"DI*2D*"B`@("`H6QE(&-O;6UE;G0*"@D@("AS:VEP M+6-H87)S+69O6QE"!I M;B!T:&4@;F%R"UG=65S7!E M(#`I*0H*("`@("AU;G1A8FEF>2`H<&]I;G0M;6EN*2`H<&]I;G0M;6%X*2D* M"B`@("`[.R!296UO=F4@86QL('1H92!C;VUM96YT(&UA'0@2!T;R!T:&4*("`@(#L[(&QE9G0@9F]R M(&EN0H@("`@ M.SL@:6X@455!3$E462!A;F0@:71S('1Y<&4@:6X@5%E012X@("A,04Y'54%' M12!I&5S+@H@("`@("`[.R!&25A-13H@4F5C;V=N M:7IE(')E86QL>2!A;&P@8V%S97,@;V8@='EP92!A;F0@<75A;&ET>2X*"B`@ M("`@(#L[("T@"UR96=E>'`M96YD(&QA;F=U86=E*2!N:6P@="D*"2`@*')E<&QA8V4M M;6%T8V@@(B(@="!T*2DI"@H@("`@("`H:68@*#T@;&%N9W5A9V4@4D5"3UA? M3$%.1U5!1T5?0RD*"2`@*'!R;V=N"@D@("`@*&=O=&\M8VAA7%PH("I<7"E\7%PJ7%PH+BI<7"E<7"I\("HD M(B!N:6P@="D*"2`@("`@("AS971Q('%U86QI='D@4D5"3UA?455!3$E465]3 M5$%24D5$7T9/55(I"@D@("`@("`H7!E(%)%0D]87U194$5?1$]5 M0DQ%*0H)("`@("`@*')E<&QA8V4M;6%T8V@@(EQ<,2`@7%PR(B!T*2D*"@D@ M("`@*&=O=&\M8VAA7%PH("I<7"E<7"I<7"@N*EQ<*5Q<*B`J)"(@;FEL M('0I"@D@("`@("`H7%PH("I<7"E\7%PH+BI<7"E\("HD(B!N:6P@="D*"2`@("`@ M("AS971Q('%U86QI='D@4D5"3UA?455!3$E465]23U5.1$5$7U173RD*"2`@ M("`@("AR97!L86-E+6UA=&-H(")<7#$@7%PR(B!T*2D*"@D@("`@*&=O=&\M M8VAA"DI"B`@("`@("AP7!E(%)%0D]87U194$5?3U!%3BD*"0DH M7!E(%)%0D]87U194$5?2$%,1E]324Y'3$4I*0H)("`@("AR97!L M86-E+6UA=&-H("(B('0@="DI"@DH:68@*&QO;VMI;F"DI"B`@("`@("AS:VEP+6-H87)S M+6)A8VMW87)D(")<;B(I"B`@("`@("AI9B`H;&]O:VEN9RUA="`B7&Y<;BLB M*0H)("`H"D*"0D)("`H+2!P"UD969A=6QT M+7-T>6QE(#$P*2DI"@D@("@H>F5R;W`@='EP92D*"2`@("AS971Q('1Y<&4@ M,2DI*0H*("`@(#L[(%!O2!W86YT('1O(&MN;W<@86)O=70@=&AI6QE(BDI"@H@("`@*'-E='$@8RUM;V1E+71A M87)N82US='EL92!T*0H@("`@*'-E='$@8RUI;F1E;G0M;&5V96P@-"D*("`@ M("AS971Q(&,M8V]N=&EN=65D+7-T871E;65N="UO9F9S970@-"D*("`@("AS M971Q(&,M8G)A8V4M;V9F7,M:6YD96YT('0I"B`@("`H"UD969A M=6QT+7-T>6QE"@D@("@K(%)%0D]87U%504Q)5%E?4TE-4$Q%7T].12!214)/ M6%]465!%7TA!3$9?4TE.1TQ%*2D*("`@("AM97-S86=E(")#(&UO9&4Z(%1A M87)N82!S='EL92(I*2D*"CL[.R!296)O>"!T:&4@8W5R"UA6QE*2DI"B`@*&EF("AR96)O>"UV86QI9&%T92UF;&%G(&9L86"UF:6YD+6%N9"UN ?87)R;W&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/rebox.el:' 'MD5 check failed' d07a11e64f0e84d0438f690ce6fba566 tar-1.13/rebox.el SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/rebox.el'`" test 30361 -eq "$shar_count" || $echo 'tar-1.13/rebox.el:' 'original size' '30361,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/ChangeLog ============== if test ! -d 'tar-1.13/doc'; then $echo 'x -' 'creating directory' 'tar-1.13/doc' mkdir 'tar-1.13/doc' fi if test -f 'tar-1.13/doc/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/ChangeLog M,3DY-RTP-"TR,R`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N M=')E86PN8V$^"@H)*B!296QE87-E(#$N,3(N"@H)*B!-86ME9FEL92YA;2`H M15A44D%?1$E35"DZ(%)E;6]V92!T87(M;65W+G1E>&D@9F]R('1H92!R96QE M87-E+@H)*'1A&DN"@HQ.3DW+3`S M+3$V("!&2!O;B`M22!T;PH)"P@ M;F]W('1H870@075T;VUA:V4*"6AA;F1L97,@:70@875T;VUA=&EC86QL>2X* M"C$Y.38M,#&EN9F\N=&5X+"!U;G1I;"!!=71O;6%K90H) M9&]E2!* M;VYA=&AA;B!4:&]R;F)U2!#97-A M2!D M;V5S(&YO="!S:&%D;W<@=&AE(')E86P@;VYE+@H)*'1A&EN9F\N=&5X(&ES(&9O=6YD+"!A'!A;F0@=&%R+G1E>&EN9F\N"@HQ.3DU+3`V+3`W("!&&DN"@HQ.3DT+3$Q+3`W("!&&-L96%N*3H@1&5L971E9"P@;65R9V5D(&EN=&\@;6]S=&QY8VQE M86XN"@DH36%K969I;&4I.B!(879E("XO8V]N9FEG+G-T871U2!O;FQY+@H*,3DY-"TP."TR,2`@1G)A;N=O:7,@ M4&EN87)D("`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^"@H)*B!-86ME9FEL M92YI;CH@0V]R&DZ($YE=R!F:6QE+@H)*B!-86ME9FEL M92YI;CH@1&ES=')I8G5T92!I="X*"C$Y.30M,#@M,3<@($9R86[G;VES(%!I M;F%R9"`@/'!I;F%R9$!I&EN9F\N=&5X.B!.97&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/ChangeLog:' 'MD5 check failed' ba54d457c84c6dcb5edcb2ff87531d8d tar-1.13/doc/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/ChangeLog'`" test 5297 -eq "$shar_count" || $echo 'tar-1.13/doc/ChangeLog:' 'original size' '5297,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/Makefile.am ============== if test -f 'tar-1.13/doc/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/Makefile.am' && # Makefile for GNU tar documentation. # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits info_TEXINFOS = tar.texi X EXTRA_DIST = convtexi.pl getdate.texi header.texi X CLEANFILES = tmp-* X # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. # Just call `make dvi RENDITION=PROOF' if you want PROOF rendition. RENDITION = DISTRIB X tar.info: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi X tar.dvi: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \ X -I$(srcdir) tar.texi X rm -f tmp-tar.sed tmp-tar.info* X test $(RENDITION) = DISTRIB \ X || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/' X test $(RENDITION) = PUBLISH \ X || echo >>tmp-tar.sed '/^@smallbook/d' X sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi X rm -f tmp-tar.sed tmp-tar.tmp X TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi X mv tmp-tar.dvi $@ X header.texi: $(top_srcdir)/src/tar.h X sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \ X | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi SHAR_EOF $shar_touch -am 0424170897 'tar-1.13/doc/Makefile.am' && chmod 0444 'tar-1.13/doc/Makefile.am' || $echo 'restore of' 'tar-1.13/doc/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/Makefile.am:' 'MD5 check failed' 2bc8ae7677881048600e5f0a7492f090 tar-1.13/doc/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/Makefile.am'`" test 2268 -eq "$shar_count" || $echo 'tar-1.13/doc/Makefile.am:' 'original size' '2268,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/Makefile.in ============== if test -f 'tar-1.13/doc/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/Makefile.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/Makefile.in' && # Makefile.in generated automatically by automake 1.4 from Makefile.am X # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. X # Makefile for GNU tar documentation. # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X X SHELL = @SHELL@ X srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ X bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include X DESTDIR = X pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ X top_builddir = .. X ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ X INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ X NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = @host_alias@ host_triplet = @host@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CPP = @CPP@ DATADIRNAME = @DATADIRNAME@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETCONF = @GETCONF@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ INSTOBJEXT = @INSTOBJEXT@ INTLDEPS = @INTLDEPS@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ LIBOBJS = @LIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ PACKAGE = @PACKAGE@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ RMT = @RMT@ U = @U@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ YACC = @YACC@ l = @l@ X AUTOMAKE_OPTIONS = gnits info_TEXINFOS = tar.texi X EXTRA_DIST = convtexi.pl getdate.texi header.texi X CLEANFILES = tmp-* X # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. # Just call `make dvi RENDITION=PROOF' if you want PROOF rendition. RENDITION = DISTRIB mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = TEXI2DVI = texi2dvi INFO_DEPS = tar.info DVIS = tar.dvi TEXINFOS = tar.texi DIST_COMMON = ChangeLog Makefile.am Makefile.in mdate-sh stamp-vti \ texinfo.tex version.texi X X DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) X TAR = gtar GZIP_ENV = --best all: all-redirect X.SUFFIXES: X.SUFFIXES: .dvi .info .ps .texi .texinfo .txi $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) X cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps doc/Makefile X Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status X cd $(top_builddir) \ X && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status X X $(srcdir)/version.texi: stamp-vti X @: X $(srcdir)/stamp-vti: tar.texi $(top_srcdir)/configure.in X @echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/tar.texi`" > vti.tmp X @echo "@set EDITION $(VERSION)" >> vti.tmp X @echo "@set VERSION $(VERSION)" >> vti.tmp X @cmp -s vti.tmp $(srcdir)/version.texi \ X || (echo "Updating $(srcdir)/version.texi"; \ X cp vti.tmp $(srcdir)/version.texi) X -@rm -f vti.tmp X @cp $(srcdir)/version.texi $@ X mostlyclean-vti: X -rm -f vti.tmp X clean-vti: X distclean-vti: X maintainer-clean-vti: X -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi X tar.info: tar.texi version.texi tar.dvi: tar.texi version.texi X X DVIPS = dvips X X.texi.info: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texi.dvi: X TEXINPUTS=.:$$TEXINPUTS \ X MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< X X.texi: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texinfo.info: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texinfo: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texinfo.dvi: X TEXINPUTS=.:$$TEXINPUTS \ X MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< X X.txi.info: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.txi.dvi: X TEXINPUTS=.:$$TEXINPUTS \ X MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< X X.txi: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X.dvi.ps: X $(DVIPS) $< -o $@ X install-info-am: $(INFO_DEPS) X @$(NORMAL_INSTALL) X $(mkinstalldirs) $(DESTDIR)$(infodir) X @list='$(INFO_DEPS)'; \ X for file in $$list; do \ X d=$(srcdir); \ X for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ X if test -f $$d/$$ifile; then \ X echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \ X $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \ X else : ; fi; \ X done; \ X done X @$(POST_INSTALL) X @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ X list='$(INFO_DEPS)'; \ X for file in $$list; do \ X echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\ X install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\ X done; \ X else : ; fi X uninstall-info: X $(PRE_UNINSTALL) X @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ X ii=yes; \ X else ii=; fi; \ X list='$(INFO_DEPS)'; \ X for file in $$list; do \ X test -z "$ii" \ X || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \ X done X @$(NORMAL_UNINSTALL) X list='$(INFO_DEPS)'; \ X for file in $$list; do \ X (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ X done X dist-info: $(INFO_DEPS) X list='$(INFO_DEPS)'; \ X for base in $$list; do \ X d=$(srcdir); \ X for file in `cd $$d && eval echo $$base*`; do \ X test -f $(distdir)/$$file \ X || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ X || cp -p $$d/$$file $(distdir)/$$file; \ X done; \ X done X mostlyclean-aminfo: X -rm -f tar.aux tar.cp tar.cps tar.dvi tar.fn tar.fns tar.ky tar.kys \ X tar.ps tar.log tar.pg tar.toc tar.tp tar.tps tar.vr tar.vrs \ X tar.op tar.tr tar.cv tar.cn X clean-aminfo: X distclean-aminfo: X maintainer-clean-aminfo: X cd $(srcdir) && for i in $(INFO_DEPS); do \ X rm -f $$i; \ X if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \ X rm -f $$i-[0-9]*; \ X fi; \ X done tags: TAGS TAGS: X X distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) X subdir = doc X distdir: $(DISTFILES) X @for file in $(DISTFILES); do \ X d=$(srcdir); \ X if test -d $$d/$$file; then \ X cp -pr $$/$$file $(distdir)/$$file; \ X else \ X test -f $(distdir)/$$file \ X || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ X || cp -p $$d/$$file $(distdir)/$$file || :; \ X fi; \ X done X $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info info-am: $(INFO_DEPS) info: info-am dvi-am: $(DVIS) dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am X install-data-am: install-info-am install-data: install-data-am X install-am: all-am X @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-info uninstall: uninstall-am all-am: Makefile $(INFO_DEPS) all-redirect: all-am install-strip: X $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: X $(mkinstalldirs) $(DESTDIR)$(infodir) X X mostlyclean-generic: X clean-generic: X -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) X distclean-generic: X -rm -f Makefile $(CONFIG_CLEAN_FILES) X -rm -f config.cache config.log stamp-h stamp-h[0-9]* X maintainer-clean-generic: mostlyclean-am: mostlyclean-vti mostlyclean-aminfo mostlyclean-generic X mostlyclean: mostlyclean-am X clean-am: clean-vti clean-aminfo clean-generic mostlyclean-am X clean: clean-am X distclean-am: distclean-vti distclean-aminfo distclean-generic clean-am X distclean: distclean-am X maintainer-clean-am: maintainer-clean-vti maintainer-clean-aminfo \ X maintainer-clean-generic distclean-am X @echo "This command is intended for maintainers to use;" X @echo "it deletes files that may require special tools to rebuild." X maintainer-clean: maintainer-clean-am X X.PHONY: mostlyclean-vti distclean-vti clean-vti maintainer-clean-vti \ install-info-am uninstall-info mostlyclean-aminfo distclean-aminfo \ clean-aminfo maintainer-clean-aminfo tags distdir info-am info dvi-am \ dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean X X tar.info: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi X tar.dvi: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \ X -I$(srcdir) tar.texi X rm -f tmp-tar.sed tmp-tar.info* X test $(RENDITION) = DISTRIB \ X || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/' X test $(RENDITION) = PUBLISH \ X || echo >>tmp-tar.sed '/^@smallbook/d' X sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi X rm -f tmp-tar.sed tmp-tar.tmp X TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi X mv tmp-tar.dvi $@ X header.texi: $(top_srcdir)/src/tar.h X sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \ X | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi X # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. X.NOEXPORT: SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/doc/Makefile.in' && chmod 0664 'tar-1.13/doc/Makefile.in' || $echo 'restore of' 'tar-1.13/doc/Makefile.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/Makefile.in:' 'MD5 check failed' ae137786a2a34a4dcf07f1d250f94318 tar-1.13/doc/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/Makefile.in'`" test 11443 -eq "$shar_count" || $echo 'tar-1.13/doc/Makefile.in:' 'original size' '11443,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/mdate-sh ============== if test -f 'tar-1.13/doc/mdate-sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/mdate-sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/mdate-sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/mdate-sh' && #!/bin/sh # Get modification time of a file or directory and pretty-print it. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # written by Ulrich Drepper , June 1995 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X # Prevent date giving response in another language. LANG=C export LANG LC_ALL=C export LC_ALL LC_TIME=C export LC_TIME X # Get the extended ls output of the file or directory. # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. if ls -L /dev/null 1>/dev/null 2>&1; then X set - x`ls -L -l -d $1` else X set - x`ls -l -d $1` fi # The month is at least the fourth argument # (3 shifts here, the next inside the loop). shift shift shift X # Find the month. Next argument is day, followed by the year or time. month= until test $month do X shift X case $1 in X Jan) month=January; nummonth=1;; X Feb) month=February; nummonth=2;; X Mar) month=March; nummonth=3;; X Apr) month=April; nummonth=4;; X May) month=May; nummonth=5;; X Jun) month=June; nummonth=6;; X Jul) month=July; nummonth=7;; X Aug) month=August; nummonth=8;; X Sep) month=September; nummonth=9;; X Oct) month=October; nummonth=10;; X Nov) month=November; nummonth=11;; X Dec) month=December; nummonth=12;; X esac done X day=$2 X # Here we have to deal with the problem that the ls output gives either # the time of day or the year. case $3 in X *:*) set `date`; eval year=\$$# X case $2 in X Jan) nummonthtod=1;; X Feb) nummonthtod=2;; X Mar) nummonthtod=3;; X Apr) nummonthtod=4;; X May) nummonthtod=5;; X Jun) nummonthtod=6;; X Jul) nummonthtod=7;; X Aug) nummonthtod=8;; X Sep) nummonthtod=9;; X Oct) nummonthtod=10;; X Nov) nummonthtod=11;; X Dec) nummonthtod=12;; X esac X # For the first six month of the year the time notation can also X # be used for files modified in the last year. X if (expr $nummonth \> $nummonthtod) > /dev/null; X then X year=`expr $year - 1` X fi;; X *) year=$3;; esac X # The result. echo $day $month $year SHAR_EOF $shar_touch -am 0412153597 'tar-1.13/doc/mdate-sh' && chmod 0555 'tar-1.13/doc/mdate-sh' || $echo 'restore of' 'tar-1.13/doc/mdate-sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/mdate-sh:' 'MD5 check failed' 6e1ee45d6d5e2fc2cb985e1b933318b6 tar-1.13/doc/mdate-sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/mdate-sh'`" test 2679 -eq "$shar_count" || $echo 'tar-1.13/doc/mdate-sh:' 'original size' '2679,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/stamp-vti ============== if test -f 'tar-1.13/doc/stamp-vti' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/stamp-vti' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/stamp-vti' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/stamp-vti' && @set UPDATED 16 June 1999 @set EDITION 1.13 @set VERSION 1.13 SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/doc/stamp-vti' && chmod 0664 'tar-1.13/doc/stamp-vti' || $echo 'restore of' 'tar-1.13/doc/stamp-vti' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/stamp-vti:' 'MD5 check failed' 716d2198e7725f86474e5ce0e934a35f tar-1.13/doc/stamp-vti SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/stamp-vti'`" test 62 -eq "$shar_count" || $echo 'tar-1.13/doc/stamp-vti:' 'original size' '62,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/texinfo.tex ============== if test -f 'tar-1.13/doc/texinfo.tex' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/texinfo.tex' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/texinfo.tex' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/texinfo.tex' && % texinfo.tex -- TeX macros to handle Texinfo files. % % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % \def\texinfoversion{1999-04-25.15}% % % Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 % Free Software Foundation, Inc. % % This texinfo.tex file is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License as % published by the Free Software Foundation; either version 2, or (at % your option) any later version. % % This texinfo.tex file is distributed in the hope that it will be % useful, but WITHOUT ANY WARRANTY; without even the implied warranty % of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU % General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this texinfo.tex file; see the file COPYING. If not, write % to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, % Boston, MA 02111-1307, USA. % % In other words, you are welcome to use, share and improve this program. % You are forbidden to forbid anyone else to use, share and improve % what you give them. Help stamp out software-hoarding! % % Please try the latest version of texinfo.tex before submitting bug % reports; you can get the latest version from: % ftp://ftp.gnu.org/pub/gnu/texinfo.tex % (and all GNU mirrors, see http://www.gnu.org/order/ftp.html) % ftp://tug.org/tex/texinfo.tex % ftp://ctan.org/macros/texinfo/texinfo.tex % (and all CTAN mirrors, finger ctan@ctan.org for a list). % /home/gd/gnu/doc/texinfo.tex on the GNU machines. % The texinfo.tex in any given Texinfo distribution could well be out % of date, so if that's what you're using, please check. % There is a small home page for Texinfo at http://texinfo.org/. % % Send bug reports to bug-texinfo@gnu.org. Please include including a % complete document in each bug report with which we can reproduce the % problem. Patches are, of course, greatly appreciated. % % To process a Texinfo manual with TeX, it's most reliable to use the % texi2dvi shell script that comes with the distribution. For a simple % manual foo.texi, however, you can get away with this: % tex foo.texi % texindex foo.?? % tex foo.texi % tex foo.texi % dvips foo.dvi -o # or whatever, to process the dvi file; this makes foo.ps. % The extra runs of TeX get the cross-reference information correct. % Sometimes one run after texindex suffices, and sometimes you need more % than two; texi2dvi does it as many times as necessary. % % It is possible to adapt texinfo.tex for other languages. You can get % the existing language-specific files from ftp://ftp.gnu.org/gnu/texinfo/. X \message{Loading texinfo [version \texinfoversion]:} X % If in a .fmt file, print the version number % and turn on active characters that we couldn't do earlier because % they might have appeared in the input file name. \everyjob{\message{[Texinfo version \texinfoversion]}% X \catcode`+=\active \catcode`\_=\active} X % Save some parts of plain tex whose names we will redefine. \let\ptexb=\b \let\ptexbullet=\bullet \let\ptexc=\c \let\ptexcomma=\, \let\ptexdot=\. \let\ptexdots=\dots \let\ptexend=\end \let\ptexequiv=\equiv \let\ptexexclam=\! \let\ptexi=\i \let\ptexlbrace=\{ \let\ptexrbrace=\} \let\ptexstar=\* \let\ptext=\t X % We never want plain's outer \+ definition in Texinfo. % For @tex, we can use \tabalign. \let\+ = \relax X % Get ready for pdf. \newif\ifpdf \ifx\pdfoutput\undefined\else X \input pdfcolor X \pdfoutput=1 X \pdftrue \fi X \message{Basics,} \chardef\other=12 X % If this character appears in an error message or help string, it % starts a new line in the output. \newlinechar = `^^J X % Set up fixed words for English if not already set. \ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi \ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi \ifx\putwordfile\undefined \gdef\putwordfile{file}\fi \ifx\putwordin\undefined \gdef\putwordin{in}\fi \ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi \ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi \ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi \ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi \ifx\putwordNoTitle\undefined \gdef\putwordNoTitle{No Title}\fi \ifx\putwordof\undefined \gdef\putwordof{of}\fi \ifx\putwordon\undefined \gdef\putwordon{on}\fi \ifx\putwordpage\undefined \gdef\putwordpage{page}\fi \ifx\putwordsection\undefined \gdef\putwordsection{section}\fi \ifx\putwordSection\undefined \gdef\putwordSection{Section}\fi \ifx\putwordsee\undefined \gdef\putwordsee{see}\fi \ifx\putwordSee\undefined \gdef\putwordSee{See}\fi \ifx\putwordShortTOC\undefined \gdef\putwordShortTOC{Short Contents}\fi \ifx\putwordTOC\undefined \gdef\putwordTOC{Table of Contents}\fi % \ifx\putwordMJan\undefined \gdef\putwordMJan{January}\fi \ifx\putwordMFeb\undefined \gdef\putwordMFeb{February}\fi \ifx\putwordMMar\undefined \gdef\putwordMMar{March}\fi \ifx\putwordMApr\undefined \gdef\putwordMApr{April}\fi \ifx\putwordMMay\undefined \gdef\putwordMMay{May}\fi \ifx\putwordMJun\undefined \gdef\putwordMJun{June}\fi \ifx\putwordMJul\undefined \gdef\putwordMJul{July}\fi \ifx\putwordMAug\undefined \gdef\putwordMAug{August}\fi \ifx\putwordMSep\undefined \gdef\putwordMSep{September}\fi \ifx\putwordMOct\undefined \gdef\putwordMOct{October}\fi \ifx\putwordMNov\undefined \gdef\putwordMNov{November}\fi \ifx\putwordMDec\undefined \gdef\putwordMDec{December}\fi % \ifx\putwordDefmac\undefined \gdef\putwordDefmac{Macro}\fi \ifx\putwordDefspec\undefined \gdef\putwordDefspec{Special Form}\fi \ifx\putwordDefvar\undefined \gdef\putwordDefvar{Variable}\fi \ifx\putwordDefopt\undefined \gdef\putwordDefopt{User Option}\fi \ifx\putwordDeftypevar\undefined\gdef\putwordDeftypevar{Variable}\fi \ifx\putwordDeffunc\undefined \gdef\putwordDeffunc{Function}\fi \ifx\putwordDeftypefun\undefined\gdef\putwordDeftypefun{Function}\fi X % Ignore a token. % \def\gobble#1{} X \hyphenation{ap-pen-dix} \hyphenation{mini-buf-fer mini-buf-fers} \hyphenation{eshell} \hyphenation{white-space} X % Margin to add to right of even pages, to left of odd pages. \newdimen \bindingoffset \newdimen \normaloffset \newdimen\pagewidth \newdimen\pageheight X % Sometimes it is convenient to have everything in the transcript file % and nothing on the terminal. We don't just call \tracingall here, % since that produces some useless output on the terminal. % \def\gloggingall{\begingroup \globaldefs = 1 \loggingall \endgroup}% \ifx\eTeXversion\undefined \def\loggingall{\tracingcommands2 \tracingstats2 X \tracingpages1 \tracingoutput1 \tracinglostchars1 X \tracingmacros2 \tracingparagraphs1 \tracingrestores1 X \showboxbreadth\maxdimen\showboxdepth\maxdimen }% \else \def\loggingall{\tracingcommands3 \tracingstats2 X \tracingpages1 \tracingoutput1 \tracinglostchars1 X \tracingmacros2 \tracingparagraphs1 \tracingrestores1 X \tracingscantokens1 \tracingassigns1 \tracingifs1 X \tracinggroups1 \tracingnesting2 X \showboxbreadth\maxdimen\showboxdepth\maxdimen }% \fi X % For @cropmarks command. % Do @cropmarks to get crop marks. % \newif\ifcropmarks \let\cropmarks = \cropmarkstrue % % Dimensions to add cropmarks at corners. % Added by P. A. MacKay, 12 Nov. 1986 % \newdimen\outerhsize \newdimen\outervsize % set by the paper size routines \newdimen\cornerlong \cornerlong=1pc \newdimen\cornerthick \cornerthick=.3pt \newdimen\topandbottommargin \topandbottommargin=.75in X % Main output routine. \chardef\PAGE = 255 \output = {\onepageout{\pagecontents\PAGE}} X \newbox\headlinebox \newbox\footlinebox X % \onepageout takes a vbox as an argument. Note that \pagecontents % does insertions, but you have to call it yourself. \def\onepageout#1{% X \ifcropmarks \hoffset=0pt \else \hoffset=\normaloffset \fi X % X \ifodd\pageno \advance\hoffset by \bindingoffset X \else \advance\hoffset by -\bindingoffset\fi X % X % Do this outside of the \shipout so @code etc. will be expanded in X % the headline as they should be, not taken literally (outputting ''code). X \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}% X \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}% X % X {% X % Have to do this stuff outside the \shipout because we want it to X % take effect in \write's, yet the group defined by the \vbox ends X % before the \shipout runs. X % X \escapechar = `\\ % use backslash in output files. X \indexdummies % don't expand commands in the output. X \normalturnoffactive % \ in index entries must not stay \, e.g., if X % the page break happens to be in the middle of an example. X \shipout\vbox{% X \ifcropmarks \vbox to \outervsize\bgroup X \hsize = \outerhsize X \vskip-\topandbottommargin X \vtop to0pt{% X \line{\ewtop\hfil\ewtop}% X \nointerlineskip X \line{% X \vbox{\moveleft\cornerthick\nstop}% X \hfill X \vbox{\moveright\cornerthick\nstop}% X }% X \vss}% X \vskip\topandbottommargin X \line\bgroup X \hfil % center the page within the outer (page) hsize. X \ifodd\pageno\hskip\bindingoffset\fi X \vbox\bgroup X \fi X % X \unvbox\headlinebox X \pagebody{#1}% X \ifdim\ht\footlinebox > 0pt X % Only leave this space if the footline is nonempty. X % (We lessened \vsize for it in \oddfootingxxx.) X % The \baselineskip=24pt in plain's \makefootline has no effect. X \vskip 2\baselineskip X \unvbox\footlinebox X \fi X % X \ifpdf\pdfmkdest{\the\pageno}\fi X % X \ifcropmarks X \egroup % end of \vbox\bgroup X \hfil\egroup % end of (centering) \line\bgroup X \vskip\topandbottommargin plus1fill minus1fill X \boxmaxdepth = \cornerthick X \vbox to0pt{\vss X \line{% X \vbox{\moveleft\cornerthick\nsbot}% X \hfill X \vbox{\moveright\cornerthick\nsbot}% X }% X \nointerlineskip X \line{\ewbot\hfil\ewbot}% X }% X \egroup % \vbox from first cropmarks clause X \fi X }% end of \shipout\vbox X }% end of group with \turnoffactive X \advancepageno X \ifnum\outputpenalty>-20000 \else\dosupereject\fi } X \newinsert\margin \dimen\margin=\maxdimen X \def\pagebody#1{\vbox to\pageheight{\boxmaxdepth=\maxdepth #1}} {\catcode`\@ =11 \gdef\pagecontents#1{\ifvoid\topins\else\unvbox\topins\fi % marginal hacks, juha@viisa.uucp (Juha Takala) \ifvoid\margin\else % marginal info is present X \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi \dimen@=\dp#1 \unvbox#1 \ifvoid\footins\else\vskip\skip\footins\footnoterule \unvbox\footins\fi \ifr@ggedbottom \kern-\dimen@ \vfil \fi} } X % Here are the rules for the cropmarks. Note that they are % offset so that the space between them is truly \outerhsize or \outervsize % (P. A. MacKay, 12 November, 1986) % \def\ewtop{\vrule height\cornerthick depth0pt width\cornerlong} \def\nstop{\vbox X {\hrule height\cornerthick depth\cornerlong width\cornerthick}} \def\ewbot{\vrule height0pt depth\cornerthick width\cornerlong} \def\nsbot{\vbox X {\hrule height\cornerlong depth\cornerthick width\cornerthick}} X % Parse an argument, then pass it to #1. The argument is the rest of % the input line (except we remove a trailing comment). #1 should be a % macro which expects an ordinary undelimited TeX argument. % \def\parsearg#1{% X \let\next = #1% X \begingroup X \obeylines X \futurelet\temp\parseargx } X % If the next token is an obeyed space (from an @example environment or % the like), remove it and recurse. Otherwise, we're done. \def\parseargx{% X % \obeyedspace is defined far below, after the definition of \sepspaces. X \ifx\obeyedspace\temp X \expandafter\parseargdiscardspace X \else X \expandafter\parseargline X \fi } X % Remove a single space (as the delimiter token to the macro call). {\obeyspaces % X \gdef\parseargdiscardspace {\futurelet\temp\parseargx}} X {\obeylines % X \gdef\parseargline#1^^M{% X \endgroup % End of the group started in \parsearg. X % X % First remove any @c comment, then any @comment. X % Result of each macro is put in \toks0. X \argremovec #1\c\relax % X \expandafter\argremovecomment \the\toks0 \comment\relax % X % X % Call the caller's macro, saved as \next in \parsearg. X \expandafter\next\expandafter{\the\toks0}% X }% } X % Since all \c{,omment} does is throw away the argument, we can let TeX % do that for us. The \relax here is matched by the \relax in the call % in \parseargline; it could be more or less anything, its purpose is % just to delimit the argument to the \c. \def\argremovec#1\c#2\relax{\toks0 = {#1}} \def\argremovecomment#1\comment#2\relax{\toks0 = {#1}} X % \argremovec{,omment} might leave us with trailing spaces, though; e.g., % @end itemize @c foo % will have two active spaces as part of the argument with the % `itemize'. Here we remove all active spaces from #1, and assign the % result to \toks0. % % This loses if there are any *other* active characters besides spaces % in the argument -- _ ^ +, for example -- since they get expanded. % Fortunately, Texinfo does not define any such commands. (If it ever % does, the catcode of the characters in questionwill have to be changed % here.) But this means we cannot call \removeactivespaces as part of % \argremovec{,omment}, since @c uses \parsearg, and thus the argument % that \parsearg gets might well have any character at all in it. % \def\removeactivespaces#1{% X \begingroup X \ignoreactivespaces X \edef\temp{#1}% X \global\toks0 = \expandafter{\temp}% X \endgroup } X % Change the active space to expand to nothing. % \begingroup X \obeyspaces X \gdef\ignoreactivespaces{\obeyspaces\let =\empty} \endgroup X X \def\flushcr{\ifx\par\lisppar \def\next##1{}\else \let\next=\relax \fi \next} X %% These are used to keep @begin/@end levels from running away %% Call \inENV within environments (after a \begingroup) \newif\ifENV \ENVfalse \def\inENV{\ifENV\relax\else\ENVtrue\fi} \def\ENVcheck{% \ifENV\errmessage{Still within an environment; press RETURN to continue} \endgroup\fi} % This is not perfect, but it should reduce lossage X % @begin foo is the same as @foo, for now. \newhelp\EMsimple{Press RETURN to continue.} X \outer\def\begin{\parsearg\beginxxx} X \def\beginxxx #1{% \expandafter\ifx\csname #1\endcsname\relax {\errhelp=\EMsimple \errmessage{Undefined command @begin #1}}\else \csname #1\endcsname\fi} X % @end foo executes the definition of \Efoo. % \def\end{\parsearg\endxxx} \def\endxxx #1{% X \removeactivespaces{#1}% X \edef\endthing{\the\toks0}% X % X \expandafter\ifx\csname E\endthing\endcsname\relax X \expandafter\ifx\csname \endthing\endcsname\relax X % There's no \foo, i.e., no ``environment'' foo. X \errhelp = \EMsimple X \errmessage{Undefined command `@end \endthing'}% X \else X \unmatchedenderror\endthing X \fi X \else X % Everything's ok; the right environment has been started. X \csname E\endthing\endcsname X \fi } X % There is an environment #1, but it hasn't been started. Give an error. % \def\unmatchedenderror#1{% X \errhelp = \EMsimple X \errmessage{This `@end #1' doesn't have a matching `@#1'}% } X % Define the control sequence \E#1 to give an unmatched @end error. % \def\defineunmatchedend#1{% X \expandafter\def\csname E#1\endcsname{\unmatchedenderror{#1}}% } X X % Single-spacing is done by various environments (specifically, in % \nonfillstart and \quotations). \newskip\singlespaceskip \singlespaceskip = 12.5pt \def\singlespace{% X % Why was this kern here? It messes up equalizing space above and below X % environments. --karl, 6may93 X %{\advance \baselineskip by -\singlespaceskip X %\kern \baselineskip}% X \setleading \singlespaceskip } X %% Simple single-character @ commands X % @@ prints an @ % Kludge this until the fonts are right (grr). \def\@{{\tt\char64}} X % This is turned off because it was never documented % and you can use @w{...} around a quote to suppress ligatures. %% Define @` and @' to be the same as ` and ' %% but suppressing ligatures. %\def\`{{`}} %\def\'{{'}} X % Used to generate quoted braces. \def\mylbrace {{\tt\char123}} \def\myrbrace {{\tt\char125}} \let\{=\mylbrace \let\}=\myrbrace \begingroup X % Definitions to produce actual \{ & \} command in an index. X \catcode`\{ = 12 \catcode`\} = 12 X \catcode`\[ = 1 \catcode`\] = 2 X \catcode`\@ = 0 \catcode`\\ = 12 X @gdef@lbracecmd[\{]% X @gdef@rbracecmd[\}]% @endgroup X % Accents: @, @dotaccent @ringaccent @ubaraccent @udotaccent % Others are defined by plain TeX: @` @' @" @^ @~ @= @v @H. \let\, = \c \let\dotaccent = \. \def\ringaccent#1{{\accent23 #1}} \let\tieaccent = \t \let\ubaraccent = \b \let\udotaccent = \d X % Other special characters: @questiondown @exclamdown % Plain TeX defines: @AA @AE @O @OE @L (and lowercase versions) @ss. \def\questiondown{?`} \def\exclamdown{!`} X % Dotless i and dotless j, used for accents. \def\imacro{i} \def\jmacro{j} \def\dotless#1{% X \def\temp{#1}% X \ifx\temp\imacro \ptexi X \else\ifx\temp\jmacro \j X \else \errmessage{@dotless can be used only with i or j}% X \fi\fi } X % Be sure we're in horizontal mode when doing a tie, since we make space % equivalent to this in @example-like environments. Otherwise, a space % at the beginning of a line will start with \penalty -- and % since \penalty is valid in vertical mode, we'd end up putting the % penalty on the vertical list instead of in the new paragraph. {\catcode`@ = 11 X % Avoid using \@M directly, because that causes trouble X % if the definition is written into an index file. X \global\let\tiepenalty = \@M X \gdef\tie{\leavevmode\penalty\tiepenalty\ } } X % @: forces normal size whitespace following. \def\:{\spacefactor=1000 } X % @* forces a line break. \def\*{\hfil\break\hbox{}\ignorespaces} X % @. is an end-of-sentence period. \def\.{.\spacefactor=3000 } X % @! is an end-of-sentence bang. \def\!{!\spacefactor=3000 } X % @? is an end-of-sentence query. \def\?{?\spacefactor=3000 } X % @w prevents a word break. Without the \leavevmode, @w at the % beginning of a paragraph, when TeX is still in vertical mode, would % produce a whole line of output instead of starting the paragraph. \def\w#1{\leavevmode\hbox{#1}} X % @group ... @end group forces ... to be all on one page, by enclosing % it in a TeX vbox. We use \vtop instead of \vbox to construct the box % to keep its height that of a normal line. According to the rules for % \topskip (p.114 of the TeXbook), the glue inserted is % max (\topskip - \ht (first item), 0). If that height is large, % therefore, no glue is inserted, and the space between the headline and % the text is small, which looks bad. % \def\group{\begingroup X \ifnum\catcode13=\active \else X \errhelp = \groupinvalidhelp X \errmessage{@group invalid in context where filling is enabled}% X \fi X % X % The \vtop we start below produces a box with normal height and large X % depth; thus, TeX puts \baselineskip glue before it, and (when the X % next line of text is done) \lineskip glue after it. (See p.82 of X % the TeXbook.) Thus, space below is not quite equal to space X % above. But it's pretty close. X \def\Egroup{% X \egroup % End the \vtop. X \endgroup % End the \group. X }% X % X \vtop\bgroup X % We have to put a strut on the last line in case the @group is in X % the midst of an example, rather than completely enclosing it. X % Otherwise, the interline space between the last line of the group X % and the first line afterwards is too small. But we can't put the X % strut in \Egroup, since there it would be on a line by itself. X % Hence this just inserts a strut at the beginning of each line. X \everypar = {\strut}% X % X % Since we have a strut on every line, we don't need any of TeX's X % normal interline spacing. X \offinterlineskip X % X % OK, but now we have to do something about blank X % lines in the input in @example-like environments, which normally X % just turn into \lisppar, which will insert no space now that we've X % turned off the interline space. Simplest is to make them be an X % empty paragraph. X \ifx\par\lisppar X \edef\par{\leavevmode \par}% X % X % Reset ^^M's definition to new definition of \par. X \obeylines X \fi X % X % Do @comment since we are called inside an environment such as X % @example, where each end-of-line in the input causes an X % end-of-line in the output. We don't want the end-of-line after X % the `@group' to put extra space in the output. Since @group X % should appear on a line by itself (according to the Texinfo X % manual), we don't worry about eating any user text. X \comment } % % TeX puts in an \escapechar (i.e., `@') at the beginning of the help % message, so this ends up printing `@group can only ...'. % \newhelp\groupinvalidhelp{% group can only be used in environments such as @example,^^J% where each line of input produces a line of output.} X % @need space-in-mils % forces a page break if there is not space-in-mils remaining. X \newdimen\mil \mil=0.001in X \def\need{\parsearg\needx} X % Old definition--didn't work. %\def\needx #1{\par % %% This method tries to make TeX break the page naturally %% if the depth of the box does not fit. %{\baselineskip=0pt% %\vtop to #1\mil{\vfil}\kern -#1\mil\nobreak %\prevdepth=-1000pt %}} X \def\needx#1{% X % Go into vertical mode, so we don't make a big box in the middle of a X % paragraph. X \par X % X % Don't add any leading before our big empty box, but allow a page X % break, since the best break might be right here. X \allowbreak X \nointerlineskip X \vtop to #1\mil{\vfil}% X % X % TeX does not even consider page breaks if a penalty added to the X % main vertical list is 10000 or more. But in order to see if the X % empty box we just added fits on the page, we must make it consider X % page breaks. On the other hand, we don't want to actually break the X % page after the empty box. So we use a penalty of 9999. X % X % There is an extremely small chance that TeX will actually break the X % page at this \penalty, if there are no other feasible breakpoints in X % sight. (If the user is using lots of big @group commands, which X % almost-but-not-quite fill up a page, TeX will have a hard time doing X % good page breaking, for example.) However, I could not construct an X % example where a page broke at this \penalty; if it happens in a real X % document, then we can reconsider our strategy. X \penalty9999 X % X % Back up by the size of the box, whether we did a page break or not. X \kern -#1\mil X % X % Do not allow a page break right after this kern. X \nobreak } X % @br forces paragraph break X \let\br = \par X % @dots{} output an ellipsis using the current font. % We do .5em per period so that it has the same spacing in a typewriter % font as three actual period characters. % \def\dots{% X \leavevmode X \hbox to 1.5em{% X \hskip 0pt plus 0.25fil minus 0.25fil X .\hss.\hss.% X \hskip 0pt plus 0.5fil minus 0.5fil X }% } X % @enddots{} is an end-of-sentence ellipsis. % \def\enddots{% X \leavevmode X \hbox to 2em{% X \hskip 0pt plus 0.25fil minus 0.25fil X .\hss.\hss.\hss.% X \hskip 0pt plus 0.5fil minus 0.5fil X }% X \spacefactor=3000 } X X % @page forces the start of a new page % \def\page{\par\vfill\supereject} X % @exdent text.... % outputs text on separate line in roman font, starting at standard page margin X % This records the amount of indent in the innermost environment. % That's how much \exdent should take out. \newskip\exdentamount X % This defn is used inside fill environments such as @defun. \def\exdent{\parsearg\exdentyyy} \def\exdentyyy #1{{\hfil\break\hbox{\kern -\exdentamount{\rm#1}}\hfil\break}} X % This defn is used inside nofill environments such as @example. \def\nofillexdent{\parsearg\nofillexdentyyy} \def\nofillexdentyyy #1{{\advance \leftskip by -\exdentamount \leftline{\hskip\leftskip{\rm#1}}}} X % @inmargin{TEXT} puts TEXT in the margin next to the current paragraph. X \def\inmargin#1{% \strut\vadjust{\nobreak\kern-\strutdepth X \vtop to \strutdepth{\baselineskip\strutdepth\vss X \llap{\rightskip=\inmarginspacing \vbox{\noindent #1}}\null}}} \newskip\inmarginspacing \inmarginspacing=1cm \def\strutdepth{\dp\strutbox} X %\hbox{{\rm#1}}\hfil\break}} X % @include file insert text of that file as input. % Allow normal characters that we make active in the argument (a file name). \def\include{\begingroup X \catcode`\\=12 X \catcode`~=12 X \catcode`^=12 X \catcode`_=12 X \catcode`|=12 X \catcode`<=12 X \catcode`>=12 X \catcode`+=12 X \parsearg\includezzz} % Restore active chars for included file. \def\includezzz#1{\endgroup\begingroup X % Read the included file in a group so nested @include's work. X \def\thisfile{#1}% X \input\thisfile \endgroup} X \def\thisfile{} X % @center line outputs that line, centered X \def\center{\parsearg\centerzzz} \def\centerzzz #1{{\advance\hsize by -\leftskip \advance\hsize by -\rightskip \centerline{#1}}} X % @sp n outputs n lines of vertical space X \def\sp{\parsearg\spxxx} \def\spxxx #1{\vskip #1\baselineskip} X % @comment ...line which is ignored... % @c is the same as @comment % @ignore ... @end ignore is another way to write a comment X \def\comment{\begingroup \catcode`\^^M=\other% \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other% \commentxxx} {\catcode`\^^M=\other \gdef\commentxxx#1^^M{\endgroup}} X \let\c=\comment X % @paragraphindent NCHARS % We'll use ems for NCHARS, close enough. % We cannot implement @paragraphindent asis, though. % \def\asisword{asis} % no translation, these are keywords \def\noneword{none} % \def\paragraphindent{\parsearg\doparagraphindent} \def\doparagraphindent#1{% X \def\temp{#1}% X \ifx\temp\asisword X \else X \ifx\temp\noneword X \defaultparindent = 0pt X \else X \defaultparindent = #1em X \fi X \fi X \parindent = \defaultparindent } X % @exampleindent NCHARS % We'll use ems for NCHARS like @paragraphindent. % It seems @exampleindent asis isn't necessary, but % I preserve it to make it similar to @paragraphindent. \def\exampleindent{\parsearg\doexampleindent} \def\doexampleindent#1{% X \def\temp{#1}% X \ifx\temp\asisword X \else X \ifx\temp\noneword X \lispnarrowing = 0pt X \else X \lispnarrowing = #1em X \fi X \fi } X % @asis just yields its argument. Used with @table, for example. % \def\asis#1{#1} X % @math means output in math mode. % We don't use $'s directly in the definition of \math because control % sequences like \math are expanded when the toc file is written. Then, % we read the toc file back, the $'s will be normal characters (as they % should be, according to the definition of Texinfo). So we must use a % control sequence to switch into and out of math mode. % % This isn't quite enough for @math to work properly in indices, but it % seems unlikely it will ever be needed there. % \let\implicitmath = $ \def\math#1{\implicitmath #1\implicitmath} X % @bullet and @minus need the same treatment as @math, just above. \def\bullet{\implicitmath\ptexbullet\implicitmath} \def\minus{\implicitmath-\implicitmath} X % @refill is a no-op. \let\refill=\relax X % If working on a large document in chapters, it is convenient to % be able to disable indexing, cross-referencing, and contents, for test runs. % This is done with @novalidate (before @setfilename). % \newif\iflinks \linkstrue % by default we want the aux files. \let\novalidate = \linksfalse X % @setfilename is done at the beginning of every texinfo file. % So open here the files we need to have open while reading the input. % This makes it possible to make a .fmt file for texinfo. \def\setfilename{% X \iflinks X \readauxfile X \fi % \openindices needs to do some work in any case. X \openindices X \fixbackslash % Turn off hack to swallow `\input texinfo'. X \global\let\setfilename=\comment % Ignore extra @setfilename cmds. X % X % If texinfo.cnf is present on the system, read it. X % Useful for site-wide @afourpaper, etc. X % Just to be on the safe side, close the input stream before the \input. X \openin 1 texinfo.cnf X \ifeof1 \let\temp=\relax \else \def\temp{\input texinfo.cnf }\fi X \closein1 X \temp X % X \comment % Ignore the actual filename. } X % Called from \setfilename. % \def\openindices{% X \newindex{cp}% X \newcodeindex{fn}% X \newcodeindex{vr}% X \newcodeindex{tp}% X \newcodeindex{ky}% X \newcodeindex{pg}% } X % @bye. \outer\def\bye{\pagealignmacro\tracingstats=1\ptexend} X X \message{pdf,} % adobe `portable' document format X \newcount\tempnum \newcount\lnkcount \newtoks\filename \newcount\filenamelength \newcount\pgn X \ifpdf \def\pdfmkdest#1{\pdfdest name{#1@} xyz} \def\pdfmkpgn#1{#1@} X % Adding outlines to PDF; macros for calculating structure of outlines % come from Petr Olsak \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0% X \else \csname#1\endcsname \fi} \def\advancenumber#1{\tempnum=\expnumber{#1}\relax X \advance\tempnum by1 X \expandafter\xdef\csname#1\endcsname{\the\tempnum}} \def\pdfmakeoutlines{{% X \openin 1 \jobname.toc X \ifeof 1\else\bgroup X \closein 1 X \def\code##1{##1} X \def\file##1{##1} X \def\TeX##1{TeX} X \def\tt{} X \def\char{char} X \def\samp##1{##1} X \def\kbd##1{##1} X \def\key##1{##1} X \def\rawbackslashxx{\string\\} X \def\chapentry ##1##2##3{} X \def\unnumbchapentry ##1##2{} X \def\secentry ##1##2##3##4{\advancenumber{chap##2}} X \def\unnumbsecentry ##1##2{} X \def\subsecentry ##1##2##3##4##5{\advancenumber{sec##2.##3}} X \def\unnumbsubsecentry ##1##2{} X \def\subsubsecentry ##1##2##3##4##5##6{\advancenumber{subsec##2.##3.##4}} X \def\unnumbsubsubsecentry ##1##2{} X \input \jobname.toc X \def\chapentry ##1##2##3{% X \pdfoutline goto name{\pdfmkpgn{##3}}count-\expnumber{chap##2}{##1}} X \def\unnumbchapentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \def\secentry ##1##2##3##4{% X \pdfoutline goto name{\pdfmkpgn{##4}}count-\expnumber{sec##2.##3}{##1}} X \def\unnumbsecentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \def\subsecentry ##1##2##3##4##5{% X \pdfoutline goto name{\pdfmkpgn{##5}}count-\expnumber{subsec##2.##3.##4}{##1}} X \def\unnumbsubsecentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \def\subsubsecentry ##1##2##3##4##5##6{% X \pdfoutline goto name{\pdfmkpgn{##6}}{##1}} X \def\unnumbsubsubsecentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \input \jobname.toc X \egroup\fi }} \pdfmakeoutlines X \def\makelinks #1,{% X \def\params{#1}\def\E{END}% X \ifx\params\E X \let\nextmakelinks=\relax X \else X \let\nextmakelinks=\makelinks X \ifnum\lnkcount>0,\fi X \picknum{#1}% X \Blue\pdfannotlink attr{/Border [0 0 0]} X goto name{\pdfmkpgn{\the\pgn}}% X #1% X \advance\lnkcount by 1% X \Black\pdfendlink X \fi X \nextmakelinks } X \def\picknum#1{\expandafter\pn#1} \def\pn#1{% X \def\p{#1}% X \ifx\p\lbrace X \let\nextpn=\ppn X \else X \let\nextpn=\ppnn X \def\first{#1} X \fi X \nextpn } \def\ppn#1{\pgn=#1\gobble} \def\ppnn{\pgn=\first} \def\pdfmklnk#1{\lnkcount=0\makelinks #1,END,} X \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} \def\skipspaces#1{\def\PP{#1}\def\D{|}% X \ifx\PP\D\let\nextsp\relax X \else\let\nextsp\skipspaces X \ifx\p\space\else\addtokens{\filename}{\PP}% X \advance\filenamelength by 1 X \fi X \fi X \nextsp} \def\getfilename#1{\filenamelength=0\expandafter\skipspaces#1|\relax} X \def\pdflink#1{% X \leavevmode\Red X \begingroup X \normalturnoffactive\def\@{@}% X \pdfannotlink X attr{/Border [0 0 0]}% X user{/Subtype /Link /A << /S /URI /URI (#1) >>}% X \endgroup } X \else \let\pdflink = \gobble \fi % end \ifpdf X \message{fonts,} % Font-change commands. X % Texinfo sort of supports the sans serif font style, which plain TeX does not. % So we set up a \sf analogous to plain's \rm, etc. \newfam\sffam \def\sf{\fam=\sffam \tensf} \let\li = \sf % Sometimes we call it \li, not \sf. X % We don't need math for this one. \def\ttsl{\tenttsl} X % Use Computer Modern fonts at \magstephalf (11pt). \newcount\mainmagstep \mainmagstep=\magstephalf X % Set the font macro #1 to the font named #2, adding on the % specified font prefix (normally `cm'). % #3 is the font's design size, #4 is a scale factor \def\setfont#1#2#3#4{\font#1=\fontprefix#2#3 scaled #4} X % Use cm as the default font prefix. % To specify the font prefix, you must define \fontprefix % before you read in texinfo.tex. \ifx\fontprefix\undefined \def\fontprefix{cm} \fi % Support font families that don't use the same naming scheme as CM. \def\rmshape{r} \def\rmbshape{bx} %where the normal face is bold \def\bfshape{b} \def\bxshape{bx} \def\ttshape{tt} \def\ttbshape{tt} \def\ttslshape{sltt} \def\itshape{ti} \def\itbshape{bxti} \def\slshape{sl} \def\slbshape{bxsl} \def\sfshape{ss} \def\sfbshape{ss} \def\scshape{csc} \def\scbshape{csc} X \ifx\bigger\relax \let\mainmagstep=\magstep1 \setfont\textrm\rmshape{12}{1000} \setfont\texttt\ttshape{12}{1000} \else \setfont\textrm\rmshape{10}{\mainmagstep} \setfont\texttt\ttshape{10}{\mainmagstep} \fi % Instead of cmb10, you many want to use cmbx10. % cmbx10 is a prettier font on its own, but cmb10 % looks better when embedded in a line with cmr10. \setfont\textbf\bfshape{10}{\mainmagstep} \setfont\textit\itshape{10}{\mainmagstep} \setfont\textsl\slshape{10}{\mainmagstep} \setfont\textsf\sfshape{10}{\mainmagstep} \setfont\textsc\scshape{10}{\mainmagstep} \setfont\textttsl\ttslshape{10}{\mainmagstep} \font\texti=cmmi10 scaled \mainmagstep \font\textsy=cmsy10 scaled \mainmagstep X % A few fonts for @defun, etc. \setfont\defbf\bxshape{10}{\magstep1} %was 1314 \setfont\deftt\ttshape{10}{\magstep1} \def\df{\let\tentt=\deftt \let\tenbf = \defbf \bf} X % Fonts for indices and small examples (9pt). % We actually use the slanted font rather than the italic, % because texinfo normally uses the slanted fonts for that. % Do not make many font distinctions in general in the index, since they % aren't very useful. \setfont\ninett\ttshape{9}{1000} \setfont\ninettsl\ttslshape{10}{900} \setfont\indrm\rmshape{9}{1000} \setfont\indit\itshape{9}{1000} \setfont\indsl\slshape{9}{1000} \let\indtt=\ninett \let\indttsl=\ninettsl \let\indsf=\indrm \let\indbf=\indrm \setfont\indsc\scshape{10}{900} \font\indi=cmmi9 \font\indsy=cmsy9 X % Fonts for title page: \setfont\titlerm\rmbshape{12}{\magstep3} \setfont\titleit\itbshape{10}{\magstep4} \setfont\titlesl\slbshape{10}{\magstep4} \setfont\titlett\ttbshape{12}{\magstep3} \setfont\titlettsl\ttslshape{10}{\magstep4} \setfont\titlesf\sfbshape{17}{\magstep1} \let\titlebf=\titlerm \setfont\titlesc\scbshape{10}{\magstep4} \font\titlei=cmmi12 scaled \magstep3 \font\titlesy=cmsy10 scaled \magstep4 \def\authorrm{\secrm} X % Chapter (and unnumbered) fonts (17.28pt). \setfont\chaprm\rmbshape{12}{\magstep2} \setfont\chapit\itbshape{10}{\magstep3} \setfont\chapsl\slbshape{10}{\magstep3} \setfont\chaptt\ttbshape{12}{\magstep2} \setfont\chapttsl\ttslshape{10}{\magstep3} \setfont\chapsf\sfbshape{17}{1000} \let\chapbf=\chaprm \setfont\chapsc\scbshape{10}{\magstep3} \font\chapi=cmmi12 scaled \magstep2 \font\chapsy=cmsy10 scaled \magstep3 X % Section fonts (14.4pt). \setfont\secrm\rmbshape{12}{\magstep1} \setfont\secit\itbshape{10}{\magstep2} \setfont\secsl\slbshape{10}{\magstep2} \setfont\sectt\ttbshape{12}{\magstep1} \setfont\secttsl\ttslshape{10}{\magstep2} \setfont\secsf\sfbshape{12}{\magstep1} \let\secbf\secrm \setfont\secsc\scbshape{10}{\magstep2} \font\seci=cmmi12 scaled \magstep1 \font\secsy=cmsy10 scaled \magstep2 X % \setfont\ssecrm\bxshape{10}{\magstep1} % This size an font looked bad. % \setfont\ssecit\itshape{10}{\magstep1} % The letters were too crowded. % \setfont\ssecsl\slshape{10}{\magstep1} % \setfont\ssectt\ttshape{10}{\magstep1} % \setfont\ssecsf\sfshape{10}{\magstep1} X %\setfont\ssecrm\bfshape{10}{1315} % Note the use of cmb rather than cmbx. %\setfont\ssecit\itshape{10}{1315} % Also, the size is a little larger than %\setfont\ssecsl\slshape{10}{1315} % being scaled magstep1. %\setfont\ssectt\ttshape{10}{1315} %\setfont\ssecsf\sfshape{10}{1315} X %\let\ssecbf=\ssecrm X % Subsection fonts (13.15pt). \setfont\ssecrm\rmbshape{12}{\magstephalf} \setfont\ssecit\itbshape{10}{1315} \setfont\ssecsl\slbshape{10}{1315} \setfont\ssectt\ttbshape{12}{\magstephalf} \setfont\ssecttsl\ttslshape{10}{1315} \setfont\ssecsf\sfbshape{12}{\magstephalf} \let\ssecbf\ssecrm \setfont\ssecsc\scbshape{10}{\magstep1} \font\sseci=cmmi12 scaled \magstephalf \font\ssecsy=cmsy10 scaled 1315 % The smallcaps and symbol fonts should actually be scaled \magstep1.5, % but that is not a standard magnification. X % In order for the font changes to affect most math symbols and letters, % we have to define the \textfont of the standard families. Since % texinfo doesn't allow for producing subscripts and superscripts, we % don't bother to reset \scriptfont and \scriptscriptfont (which would % also require loading a lot more fonts). % \def\resetmathfonts{% X \textfont0 = \tenrm \textfont1 = \teni \textfont2 = \tensy X \textfont\itfam = \tenit \textfont\slfam = \tensl \textfont\bffam = \tenbf X \textfont\ttfam = \tentt \textfont\sffam = \tensf } X X % The font-changing commands redefine the meanings of \tenSTYLE, instead % of just \STYLE. We do this so that font changes will continue to work % in math mode, where it is the current \fam that is relevant in most % cases, not the current font. Plain TeX does \def\bf{\fam=\bffam % \tenbf}, for example. By redefining \tenbf, we obviate the need to % redefine \bf itself. \def\textfonts{% X \let\tenrm=\textrm \let\tenit=\textit \let\tensl=\textsl X \let\tenbf=\textbf \let\tentt=\texttt \let\smallcaps=\textsc X \let\tensf=\textsf \let\teni=\texti \let\tensy=\textsy \let\tenttsl=\textttsl X \resetmathfonts} \def\titlefonts{% X \let\tenrm=\titlerm \let\tenit=\titleit \let\tensl=\titlesl X \let\tenbf=\titlebf \let\tentt=\titlett \let\smallcaps=\titlesc X \let\tensf=\titlesf \let\teni=\titlei \let\tensy=\titlesy X \let\tenttsl=\titlettsl X \resetmathfonts \setleading{25pt}} \def\titlefont#1{{\titlefonts\rm #1}} \def\chapfonts{% X \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl X \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc X \let\tensf=\chapsf \let\teni=\chapi \let\tensy=\chapsy \let\tenttsl=\chapttsl X \resetmathfonts \setleading{19pt}} \def\secfonts{% X \let\tenrm=\secrm \let\tenit=\secit \let\tensl=\secsl X \let\tenbf=\secbf \let\tentt=\sectt \let\smallcaps=\secsc X \let\tensf=\secsf \let\teni=\seci \let\tensy=\secsy \let\tenttsl=\secttsl X \resetmathfonts \setleading{16pt}} \def\subsecfonts{% X \let\tenrm=\ssecrm \let\tenit=\ssecit \let\tensl=\ssecsl X \let\tenbf=\ssecbf \let\tentt=\ssectt \let\smallcaps=\ssecsc X \let\tensf=\ssecsf \let\teni=\sseci \let\tensy=\ssecsy \let\tenttsl=\ssecttsl X \resetmathfonts \setleading{15pt}} \let\subsubsecfonts = \subsecfonts % Maybe make sssec fonts scaled magstephalf? \def\indexfonts{% X \let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl X \let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc X \let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl X \resetmathfonts \setleading{12pt}} X % Set up the default fonts, so we can use them for creating boxes. % \textfonts X % Define these so they can be easily changed for other fonts. \def\angleleft{$\langle$} \def\angleright{$\rangle$} X % Count depth in font-changes, for error checks \newcount\fontdepth \fontdepth=0 X % Fonts for short table of contents. \setfont\shortcontrm\rmshape{12}{1000} \setfont\shortcontbf\bxshape{12}{1000} \setfont\shortcontsl\slshape{12}{1000} X %% Add scribe-like font environments, plus @l for inline lisp (usually sans %% serif) and @ii for TeX italic X % \smartitalic{ARG} outputs arg in italics, followed by an italic correction % unless the following character is such as not to need one. \def\smartitalicx{\ifx\next,\else\ifx\next-\else\ifx\next.\else\/\fi\fi\fi} \def\smartslanted#1{{\sl #1}\futurelet\next\smartitalicx} \def\smartitalic#1{{\it #1}\futurelet\next\smartitalicx} X \let\i=\smartitalic \let\var=\smartslanted \let\dfn=\smartslanted \let\emph=\smartitalic \let\cite=\smartslanted X \def\b#1{{\bf #1}} \let\strong=\b X % We can't just use \exhyphenpenalty, because that only has effect at % the end of a paragraph. Restore normal hyphenation at the end of the % group within which \nohyphenation is presumably called. % \def\nohyphenation{\hyphenchar\font = -1 \aftergroup\restorehyphenation} \def\restorehyphenation{\hyphenchar\font = `- } X \def\t#1{% X {\tt \rawbackslash \frenchspacing #1}% X \null } \let\ttfont=\t \def\samp#1{`\tclose{#1}'\null} \setfont\smallrm\rmshape{8}{1000} \font\smallsy=cmsy9 \def\key#1{{\smallrm\textfont2=\smallsy \leavevmode\hbox{% X \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{% X \vbox{\hrule\kern-0.4pt X \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}% X \kern-0.4pt\hrule}% X \kern-.06em\raise0.4pt\hbox{\angleright}}}} % The old definition, with no lozenge: %\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null} \def\ctrl #1{{\tt \rawbackslash \hat}#1} X % @file, @option are the same as @samp. \let\file=\samp \let\option=\samp X % @code is a modification of @t, % which makes spaces the same size as normal in the surrounding text. \def\tclose#1{% X {% X % Change normal interword space to be same as for the current font. X \spaceskip = \fontdimen2\font X % X % Switch to typewriter. X \tt X % X % But `\ ' produces the large typewriter interword space. X \def\ {{\spaceskip = 0pt{} }}% X % X % Turn off hyphenation. X \nohyphenation X % X \rawbackslash X \frenchspacing X #1% X }% X \null } X % We *must* turn on hyphenation at `-' and `_' in \code. % Otherwise, it is too hard to avoid overfull hboxes % in the Emacs manual, the Library manual, etc. X % Unfortunately, TeX uses one parameter (\hyphenchar) to control % both hyphenation at - and hyphenation within words. % We must therefore turn them both off (\tclose does that) % and arrange explicitly to hyphenate at a dash. % -- rms. { X \catcode`\-=\active X \catcode`\_=\active X % X \global\def\code{\begingroup X \catcode`\-=\active \let-\codedash X \catcode`\_=\active \let_\codeunder X \codex X } X % X % If we end up with any active - characters when handling the index, X % just treat them as a normal -. X \global\def\indexbreaks{\catcode`\-=\active \let-\realdash} } X \def\realdash{-} \def\codedash{-\discretionary{}{}{}} \def\codeunder{\ifusingtt{\normalunderscore\discretionary{}{}{}}{\_}} \def\codex #1{\tclose{#1}\endgroup} X %\let\exp=\tclose %Was temporary X % @kbd is like @code, except that if the argument is just one @key command, % then @kbd has no effect. X % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), % `example' (@kbd uses ttsl only inside of @example and friends), % or `code' (@kbd uses normal tty font always). \def\kbdinputstyle{\parsearg\kbdinputstylexxx} \def\kbdinputstylexxx#1{% X \def\arg{#1}% X \ifx\arg\worddistinct X \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% X \else\ifx\arg\wordexample X \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% X \else\ifx\arg\wordcode X \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% X \fi\fi\fi } \def\worddistinct{distinct} \def\wordexample{example} \def\wordcode{code} X % Default is kbdinputdistinct. (Too much of a hassle to call the macro, % the catcodes are wrong for parsearg to work.) \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl} X \def\xkey{\key} \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% \ifx\one\xkey\ifx\threex\three \key{#2}% \else{\tclose{\kbdfont\look}}\fi \else{\tclose{\kbdfont\look}}\fi} X % For @url, @env, @command quotes seem unnecessary, so use \code. \let\url=\code \let\env=\code \let\command=\code X % @uref (abbreviation for `urlref') takes an optional (comma-separated) % second argument specifying the text to display and an optional third % arg as text to display instead of (rather than in addition to) the url % itself. First (mandatory) arg is the url. Perhaps eventually put in % a hypertex \special here. % \def\uref#1{\douref #1,,,\finish} \def\douref#1,#2,#3,#4\finish{% X \pdflink{#1}% X \setbox0 = \hbox{\ignorespaces #3}% X \ifdim\wd0 > 0pt X \unhbox0 % third arg given, show only that X \else X \setbox0 = \hbox{\ignorespaces #2}% X \ifdim\wd0 > 0pt X \ifpdf X \unhbox0\ (\code{#1})% DVI: 2nd arg given, show both it and url X \else X \unhbox0 % PDF: 2nd arg given, show only it X \fi X \else X \code{#1}% only url given, so show it X \fi X \fi X % X \ifpdf X \Black\pdfendlink X \fi } X % rms does not like angle brackets --karl, 17may97. % So now @email is just like @uref, unless we are pdf. % %\def\email#1{\angleleft{\tt #1}\angleright} \ifpdf X \def\email#1{\doemail#1,,\finish} X \def\doemail#1,#2,#3\finish{% X \pdflink{mailto:#1}% X \setbox0 = \hbox{\ignorespaces #2}% X \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi X \Black\pdfendlink X } \else X \let\email=\uref \fi X % Check if we are currently using a typewriter font. Since all the % Computer Modern typewriter fonts have zero interword stretch (and % shrink), and it is reasonable to expect all typewriter fonts to have % this property, we can check that font parameter. % \def\ifmonospace{\ifdim\fontdimen3\font=0pt } X % Typeset a dimension, e.g., `in' or `pt'. The only reason for the % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt. % \def\dmn#1{\thinspace #1} X \def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par} X % @l was never documented to mean ``switch to the Lisp font'', % and it is not used as such in any manual I can find. We need it for % Polish suppressed-l. --karl, 22sep96. %\def\l#1{{\li #1}\null} X % Explicit font changes: @r, @sc, undocumented @ii. \def\r#1{{\rm #1}} % roman font \def\sc#1{{\smallcaps#1}} % smallcaps font \def\ii#1{{\it #1}} % italic font X % @acronym downcases the argument and prints in smallcaps. \def\acronym#1{{\smallcaps \lowercase{#1}}} X % @pounds{} is a sterling sign. \def\pounds{{\it\$}} X X \message{page headings,} X \newskip\titlepagetopglue \titlepagetopglue = 1.5in \newskip\titlepagebottomglue \titlepagebottomglue = 2pc X % First the title page. Must do @settitle before @titlepage. \newif\ifseenauthor \newif\iffinishedtitlepage X % Do an implicit @contents or @shortcontents after @end titlepage if the % user says @setcontentsaftertitlepage or @setshortcontentsaftertitlepage. % \newif\ifsetcontentsaftertitlepage X \let\setcontentsaftertitlepage = \setcontentsaftertitlepagetrue \newif\ifsetshortcontentsaftertitlepage X \let\setshortcontentsaftertitlepage = \setshortcontentsaftertitlepagetrue X \def\shorttitlepage{\parsearg\shorttitlepagezzz} \def\shorttitlepagezzz #1{\begingroup\hbox{}\vskip 1.5in \chaprm \centerline{#1}% X \endgroup\page\hbox{}\page} X \def\titlepage{\begingroup \parindent=0pt \textfonts X \let\subtitlerm=\tenrm X \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}% X % X \def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines}% X % X % Leave some space at the very top of the page. X \vglue\titlepagetopglue X % X % Now you can print the title using @title. X \def\title{\parsearg\titlezzz}% X \def\titlezzz##1{\leftline{\titlefonts\rm ##1} X % print a rule at the page bottom also. X \finishedtitlepagefalse X \vskip4pt \hrule height 4pt width \hsize \vskip4pt}% X % No rule at page bottom unless we print one at the top with @title. X \finishedtitlepagetrue X % X % Now you can put text using @subtitle. X \def\subtitle{\parsearg\subtitlezzz}% X \def\subtitlezzz##1{{\subtitlefont \rightline{##1}}}% X % X % @author should come last, but may come many times. X \def\author{\parsearg\authorzzz}% X \def\authorzzz##1{\ifseenauthor\else\vskip 0pt plus 1filll\seenauthortrue\fi X {\authorfont \leftline{##1}}}% X % X % Most title ``pages'' are actually two pages long, with space X % at the top of the second. We don't want the ragged left on the second. X \let\oldpage = \page X \def\page{% X \iffinishedtitlepage\else X \finishtitlepage X \fi X \oldpage X \let\page = \oldpage X \hbox{}}% % \def\page{\oldpage \hbox{}} } X \def\Etitlepage{% X \iffinishedtitlepage\else X \finishtitlepage X \fi X % It is important to do the page break before ending the group, X % because the headline and footline are only empty inside the group. X % If we use the new definition of \page, we always get a blank page X % after the title page, which we certainly don't want. X \oldpage X \endgroup X % X % If they want short, they certainly want long too. X \ifsetshortcontentsaftertitlepage X \shortcontents X \contents X \global\let\shortcontents = \relax X \global\let\contents = \relax X \fi X % X \ifsetcontentsaftertitlepage X \contents X \global\let\contents = \relax X \global\let\shortcontents = \relax X \fi X % X \HEADINGSon } X \def\finishtitlepage{% X \vskip4pt \hrule height 2pt width \hsize X \vskip\titlepagebottomglue X \finishedtitlepagetrue } X %%% Set up page headings and footings. X \let\thispage=\folio X \newtoks\evenheadline % headline on even pages \newtoks\oddheadline % headline on odd pages \newtoks\evenfootline % footline on even pages \newtoks\oddfootline % footline on odd pages X % Now make Tex use those variables \headline={{\textfonts\rm \ifodd\pageno \the\oddheadline X \else \the\evenheadline \fi}} \footline={{\textfonts\rm \ifodd\pageno \the\oddfootline X \else \the\evenfootline \fi}\HEADINGShook} \let\HEADINGShook=\relax X % Commands to set those variables. % For example, this is what @headings on does % @evenheading @thistitle|@thispage|@thischapter % @oddheading @thischapter|@thispage|@thistitle % @evenfooting @thisfile|| % @oddfooting ||@thisfile X \def\evenheading{\parsearg\evenheadingxxx} \def\oddheading{\parsearg\oddheadingxxx} \def\everyheading{\parsearg\everyheadingxxx} X \def\evenfooting{\parsearg\evenfootingxxx} \def\oddfooting{\parsearg\oddfootingxxx} \def\everyfooting{\parsearg\everyfootingxxx} X {\catcode`\@=0 % X \gdef\evenheadingxxx #1{\evenheadingyyy #1@|@|@|@|\finish} \gdef\evenheadingyyy #1@|#2@|#3@|#4\finish{% \global\evenheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} X \gdef\oddheadingxxx #1{\oddheadingyyy #1@|@|@|@|\finish} \gdef\oddheadingyyy #1@|#2@|#3@|#4\finish{% \global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} X \gdef\everyheadingxxx#1{\oddheadingxxx{#1}\evenheadingxxx{#1}}% X \gdef\evenfootingxxx #1{\evenfootingyyy #1@|@|@|@|\finish} \gdef\evenfootingyyy #1@|#2@|#3@|#4\finish{% \global\evenfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} X \gdef\oddfootingxxx #1{\oddfootingyyy #1@|@|@|@|\finish} \gdef\oddfootingyyy #1@|#2@|#3@|#4\finish{% X \global\oddfootline = {\rlap{\centerline{#2}}\line{#1\hfil#3}}% X % X % Leave some space for the footline. Hopefully ok to assume X % @evenfooting will not be used by itself. X \global\advance\pageheight by -\baselineskip X \global\advance\vsize by -\baselineskip } X \gdef\everyfootingxxx#1{\oddfootingxxx{#1}\evenfootingxxx{#1}} % }% unbind the catcode of @. X % @headings double turns headings on for double-sided printing. % @headings single turns headings on for single-sided printing. % @headings off turns them off. % @headings on same as @headings double, retained for compatibility. % @headings after turns on double-sided headings after this page. % @headings doubleafter turns on double-sided headings after this page. % @headings singleafter turns on single-sided headings after this page. % By default, they are off at the start of a document, % and turned `on' after @end titlepage. X \def\headings #1 {\csname HEADINGS#1\endcsname} X \def\HEADINGSoff{ \global\evenheadline={\hfil} \global\evenfootline={\hfil} \global\oddheadline={\hfil} \global\oddfootline={\hfil}} \HEADINGSoff % When we turn headings on, set the page number to 1. % For double-sided printing, put current file name in lower left corner, % chapter name on inside top of right hand pages, document % title on inside top of left hand pages, and page numbers on outside top % edge of all pages. \def\HEADINGSdouble{ \global\pageno=1 \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chapoddpage } \let\contentsalignmacro = \chappager X % For single-sided printing, chapter title goes across top left of page, % page number on top right. \def\HEADINGSsingle{ \global\pageno=1 \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chappager } \def\HEADINGSon{\HEADINGSdouble} X \def\HEADINGSafter{\let\HEADINGShook=\HEADINGSdoublex} \let\HEADINGSdoubleafter=\HEADINGSafter \def\HEADINGSdoublex{% \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chapoddpage } X \def\HEADINGSsingleafter{\let\HEADINGShook=\HEADINGSsinglex} \def\HEADINGSsinglex{% \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chappager } X % Subroutines used in generating headings % Produces Day Month Year style of output. \def\today{% X \number\day\space X \ifcase\month X \or\putwordMJan\or\putwordMFeb\or\putwordMMar\or\putwordMApr X \or\putwordMMay\or\putwordMJun\or\putwordMJul\or\putwordMAug X \or\putwordMSep\or\putwordMOct\or\putwordMNov\or\putwordMDec X \fi X \space\number\year} X % @settitle line... specifies the title of the document, for headings. % It generates no output of its own. \def\thistitle{\putwordNoTitle} \def\settitle{\parsearg\settitlezzz} \def\settitlezzz #1{\gdef\thistitle{#1}} X X \message{tables,} % Tables -- @table, @ftable, @vtable, @item(x), @kitem(x), @xitem(x). X % default indentation of table text \newdimen\tableindent \tableindent=.8in % default indentation of @itemize and @enumerate text \newdimen\itemindent \itemindent=.3in % margin between end of table item and start of table text. \newdimen\itemmargin \itemmargin=.1in X % used internally for \itemindent minus \itemmargin \newdimen\itemmax X % Note @table, @vtable, and @vtable define @item, @itemx, etc., with % these defs. % They also define \itemindex % to index the item name in whatever manner is desired (perhaps none). X \newif\ifitemxneedsnegativevskip X \def\itemxpar{\par\ifitemxneedsnegativevskip\nobreak\vskip-\parskip\nobreak\fi} X \def\internalBitem{\smallbreak \parsearg\itemzzz} \def\internalBitemx{\itemxpar \parsearg\itemzzz} X \def\internalBxitem "#1"{\def\xitemsubtopix{#1} \smallbreak \parsearg\xitemzzz} \def\internalBxitemx "#1"{\def\xitemsubtopix{#1} \itemxpar \parsearg\xitemzzz} X \def\internalBkitem{\smallbreak \parsearg\kitemzzz} \def\internalBkitemx{\itemxpar \parsearg\kitemzzz} X \def\kitemzzz #1{\dosubind {kw}{\code{#1}}{for {\bf \lastfunction}}% X \itemzzz {#1}} X \def\xitemzzz #1{\dosubind {kw}{\code{#1}}{for {\bf \xitemsubtopic}}% X \itemzzz {#1}} X \def\itemzzz #1{\begingroup % X \advance\hsize by -\rightskip X \advance\hsize by -\tableindent X \setbox0=\hbox{\itemfont{#1}}% X \itemindex{#1}% X \nobreak % This prevents a break before @itemx. X % X % If the item text does not fit in the space we have, put it on a line X % by itself, and do not allow a page break either before or after that X % line. We do not start a paragraph here because then if the next X % command is, e.g., @kindex, the whatsit would get put into the X % horizontal list on a line by itself, resulting in extra blank space. X \ifdim \wd0>\itemmax X % X % Make this a paragraph so we get the \parskip glue and wrapping, X % but leave it ragged-right. X \begingroup X \advance\leftskip by-\tableindent X \advance\hsize by\tableindent X \advance\rightskip by0pt plus1fil X \leavevmode\unhbox0\par X \endgroup X % X % We're going to be starting a paragraph, but we don't want the X % \parskip glue -- logically it's part of the @item we just started. X \nobreak \vskip-\parskip X % X % Stop a page break at the \parskip glue coming up. Unfortunately X % we can't prevent a possible page break at the following X % \baselineskip glue. X \nobreak X \endgroup X \itemxneedsnegativevskipfalse X \else X % The item text fits into the space. Start a paragraph, so that the X % following text (if any) will end up on the same line. X \noindent X % Do this with kerns and \unhbox so that if there is a footnote in X % the item text, it can migrate to the main vertical list and X % eventually be printed. X \nobreak\kern-\tableindent X \dimen0 = \itemmax \advance\dimen0 by \itemmargin \advance\dimen0 by -\wd0 X \unhbox0 X \nobreak\kern\dimen0 X \endgroup X \itemxneedsnegativevskiptrue X \fi } X \def\item{\errmessage{@item while not in a table}} \def\itemx{\errmessage{@itemx while not in a table}} \def\kitem{\errmessage{@kitem while not in a table}} \def\kitemx{\errmessage{@kitemx while not in a table}} \def\xitem{\errmessage{@xitem while not in a table}} \def\xitemx{\errmessage{@xitemx while not in a table}} X % Contains a kludge to get @end[description] to work. \def\description{\tablez{\dontindex}{1}{}{}{}{}} X % @table, @ftable, @vtable. \def\table{\begingroup\inENV\obeylines\obeyspaces\tablex} {\obeylines\obeyspaces% \gdef\tablex #1^^M{% \tabley\dontindex#1 \endtabley}} X \def\ftable{\begingroup\inENV\obeylines\obeyspaces\ftablex} {\obeylines\obeyspaces% \gdef\ftablex #1^^M{% \tabley\fnitemindex#1 \endtabley \def\Eftable{\endgraf\afterenvbreak\endgroup}% \let\Etable=\relax}} X \def\vtable{\begingroup\inENV\obeylines\obeyspaces\vtablex} {\obeylines\obeyspaces% \gdef\vtablex #1^^M{% \tabley\vritemindex#1 \endtabley \def\Evtable{\endgraf\afterenvbreak\endgroup}% \let\Etable=\relax}} X \def\dontindex #1{} \def\fnitemindex #1{\doind {fn}{\code{#1}}}% \def\vritemindex #1{\doind {vr}{\code{#1}}}% X {\obeyspaces % \gdef\tabley#1#2 #3 #4 #5 #6 #7\endtabley{\endgroup% \tablez{#1}{#2}{#3}{#4}{#5}{#6}}} X \def\tablez #1#2#3#4#5#6{% \aboveenvbreak % \begingroup % \def\Edescription{\Etable}% Necessary kludge. \let\itemindex=#1% \ifnum 0#3>0 \advance \leftskip by #3\mil \fi % \ifnum 0#4>0 \tableindent=#4\mil \fi % \ifnum 0#5>0 \advance \rightskip by #5\mil \fi % \def\itemfont{#2}% \itemmax=\tableindent % \advance \itemmax by -\itemmargin % \advance \leftskip by \tableindent % \exdentamount=\tableindent \parindent = 0pt \parskip = \smallskipamount \ifdim \parskip=0pt \parskip=2pt \fi% \def\Etable{\endgraf\afterenvbreak\endgroup}% \let\item = \internalBitem % \let\itemx = \internalBitemx % \let\kitem = \internalBkitem % \let\kitemx = \internalBkitemx % \let\xitem = \internalBxitem % \let\xitemx = \internalBxitemx % } X % This is the counter used by @enumerate, which is really @itemize X \newcount \itemno X \def\itemize{\parsearg\itemizezzz} X \def\itemizezzz #1{% X \begingroup % ended by the @end itemize X \itemizey {#1}{\Eitemize} } X \def\itemizey #1#2{% \aboveenvbreak % \itemmax=\itemindent % \advance \itemmax by -\itemmargin % \advance \leftskip by \itemindent % \exdentamount=\itemindent \parindent = 0pt % \parskip = \smallskipamount % \ifdim \parskip=0pt \parskip=2pt \fi% \def#2{\endgraf\afterenvbreak\endgroup}% \def\itemcontents{#1}% \let\item=\itemizeitem} X % Set sfcode to normal for the chars that usually have another value. % These are `.?!:;,' \def\frenchspacing{\sfcode46=1000 \sfcode63=1000 \sfcode33=1000 X \sfcode58=1000 \sfcode59=1000 \sfcode44=1000 } X % \splitoff TOKENS\endmark defines \first to be the first token in % TOKENS, and \rest to be the remainder. % \def\splitoff#1#2\endmark{\def\first{#1}\def\rest{#2}}% X % Allow an optional argument of an uppercase letter, lowercase letter, % or number, to specify the first label in the enumerated list. No % argument is the same as `1'. % \def\enumerate{\parsearg\enumeratezzz} \def\enumeratezzz #1{\enumeratey #1 \endenumeratey} \def\enumeratey #1 #2\endenumeratey{% X \begingroup % ended by the @end enumerate X % X % If we were given no argument, pretend we were given `1'. X \def\thearg{#1}% X \ifx\thearg\empty \def\thearg{1}\fi X % X % Detect if the argument is a single token. If so, it might be a X % letter. Otherwise, the only valid thing it can be is a number. X % (We will always have one token, because of the test we just made. X % This is a good thing, since \splitoff doesn't work given nothing at X % all -- the first parameter is undelimited.) X \expandafter\splitoff\thearg\endmark X \ifx\rest\empty X % Only one token in the argument. It could still be anything. X % A ``lowercase letter'' is one whose \lccode is nonzero. X % An ``uppercase letter'' is one whose \lccode is both nonzero, and X % not equal to itself. X % Otherwise, we assume it's a number. X % X % We need the \relax at the end of the \ifnum lines to stop TeX from X % continuing to look for a . X % X \ifnum\lccode\expandafter`\thearg=0\relax X \numericenumerate % a number (we hope) X \else X % It's a letter. X \ifnum\lccode\expandafter`\thearg=\expandafter`\thearg\relax X \lowercaseenumerate % lowercase letter X \else X \uppercaseenumerate % uppercase letter X \fi X \fi X \else X % Multiple tokens in the argument. We hope it's a number. X \numericenumerate X \fi } X % An @enumerate whose labels are integers. The starting integer is % given in \thearg. % \def\numericenumerate{% X \itemno = \thearg X \startenumeration{\the\itemno}% } X % The starting (lowercase) letter is in \thearg. \def\lowercaseenumerate{% X \itemno = \expandafter`\thearg X \startenumeration{% X % Be sure we're not beyond the end of the alphabet. X \ifnum\itemno=0 X \errmessage{No more lowercase letters in @enumerate; get a bigger X alphabet}% X \fi X \char\lccode\itemno X }% } X % The starting (uppercase) letter is in \thearg. \def\uppercaseenumerate{% X \itemno = \expandafter`\thearg X \startenumeration{% X % Be sure we're not beyond the end of the alphabet. X \ifnum\itemno=0 X \errmessage{No more uppercase letters in @enumerate; get a bigger X alphabet} X \fi X \char\uccode\itemno X }% } X % Call itemizey, adding a period to the first argument and supplying the % common last two arguments. Also subtract one from the initial value in % \itemno, since @item increments \itemno. % \def\startenumeration#1{% X \advance\itemno by -1 X \itemizey{#1.}\Eenumerate\flushcr } X % @alphaenumerate and @capsenumerate are abbreviations for giving an arg % to @enumerate. % \def\alphaenumerate{\enumerate{a}} \def\capsenumerate{\enumerate{A}} \def\Ealphaenumerate{\Eenumerate} \def\Ecapsenumerate{\Eenumerate} X % Definition of @item while inside @itemize. X \def\itemizeitem{% \advance\itemno by 1 {\let\par=\endgraf \smallbreak}% \ifhmode \errmessage{In hmode at itemizeitem}\fi {\parskip=0in \hskip 0pt \hbox to 0pt{\hss \itemcontents\hskip \itemmargin}% \vadjust{\penalty 1200}}% \flushcr} X % @multitable macros % Amy Hendrickson, 8/18/94, 3/6/96 % % @multitable ... @end multitable will make as many columns as desired. % Contents of each column will wrap at width given in preamble. Width % can be specified either with sample text given in a template line, % or in percent of \hsize, the current width of text on page. X % Table can continue over pages but will only break between lines. X % To make preamble: % % Either define widths of columns in terms of percent of \hsize: % @multitable @columnfractions .25 .3 .45 % @item ... % % Numbers following @columnfractions are the percent of the total % current hsize to be used for each column. You may use as many % columns as desired. X X % Or use a template: % @multitable {Column 1 template} {Column 2 template} {Column 3 template} % @item ... % using the widest term desired in each column. % % For those who want to use more than one line's worth of words in % the preamble, break the line within one argument and it % will parse correctly, i.e., % % @multitable {Column 1 template} {Column 2 template} {Column 3 % template} % Not: % @multitable {Column 1 template} {Column 2 template} % {Column 3 template} X % Each new table line starts with @item, each subsequent new column % starts with @tab. Empty columns may be produced by supplying @tab's % with nothing between them for as many times as empty columns are needed, % ie, @tab@tab@tab will produce two empty columns. X % @item, @tab, @multitable or @end multitable do not need to be on their % own lines, but it will not hurt if they are. X % Sample multitable: X % @multitable {Column 1 template} {Column 2 template} {Column 3 template} % @item first col stuff @tab second col stuff @tab third col % @item % first col stuff % @tab % second col stuff % @tab % third col % @item first col stuff @tab second col stuff % @tab Many paragraphs of text may be used in any column. % % They will wrap at the width determined by the template. % @item@tab@tab This will be in third column. % @end multitable X % Default dimensions may be reset by user. % @multitableparskip is vertical space between paragraphs in table. % @multitableparindent is paragraph indent in table. % @multitablecolmargin is horizontal space to be left between columns. % @multitablelinespace is space to leave between table items, baseline % to baseline. % 0pt means it depends on current normal line spacing. % \newskip\multitableparskip \newskip\multitableparindent \newdimen\multitablecolspace \newskip\multitablelinespace \multitableparskip=0pt \multitableparindent=6pt \multitablecolspace=12pt \multitablelinespace=0pt X % Macros used to set up halign preamble: % \let\endsetuptable\relax \def\xendsetuptable{\endsetuptable} \let\columnfractions\relax \def\xcolumnfractions{\columnfractions} \newif\ifsetpercent X % #1 is the part of the @columnfraction before the decimal point, which % is presumably either 0 or the empty string (but we don't check, we % just throw it away). #2 is the decimal part, which we use as the % percent of \hsize for this column. \def\pickupwholefraction#1.#2 {% X \global\advance\colcount by 1 X \expandafter\xdef\csname col\the\colcount\endcsname{.#2\hsize}% X \setuptable } X \newcount\colcount \def\setuptable#1{% X \def\firstarg{#1}% X \ifx\firstarg\xendsetuptable X \let\go = \relax X \else X \ifx\firstarg\xcolumnfractions X \global\setpercenttrue X \else X \ifsetpercent X \let\go\pickupwholefraction X \else X \global\advance\colcount by 1 X \setbox0=\hbox{#1\unskip }% Add a normal word space as a separator; X % typically that is always in the input, anyway. X \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}% X \fi X \fi X \ifx\go\pickupwholefraction X % Put the argument back for the \pickupwholefraction call, so X % we'll always have a period there to be parsed. X \def\go{\pickupwholefraction#1}% X \else X \let\go = \setuptable X \fi% X \fi X \go } X % This used to have \hskip1sp. But then the space in a template line is % not enough. That is bad. So let's go back to just & until we % encounter the problem it was intended to solve again. % --karl, nathan@acm.org, 20apr99. \def\tab{&} X % @multitable ... @end multitable definitions: % \def\multitable{\parsearg\dotable} \def\dotable#1{\bgroup X \vskip\parskip X \let\item\crcr X \tolerance=9500 X \hbadness=9500 X \setmultitablespacing X \parskip=\multitableparskip X \parindent=\multitableparindent X \overfullrule=0pt X \global\colcount=0 X \def\Emultitable{\global\setpercentfalse\cr\egroup\egroup}% X % X % To parse everything between @multitable and @item: X \setuptable#1 \endsetuptable X % X % \everycr will reset column counter, \colcount, at the end of X % each line. Every column entry will cause \colcount to advance by one. X % The table preamble X % looks at the current \colcount to find the correct column width. X \everycr{\noalign{% X % X % \filbreak%% keeps underfull box messages off when table breaks over pages. X % Maybe so, but it also creates really weird page breaks when the table X % breaks over pages. Wouldn't \vfil be better? Wait until the problem X % manifests itself, so it can be fixed for real --karl. X \global\colcount=0\relax}}% X % X % This preamble sets up a generic column definition, which will X % be used as many times as user calls for columns. X % \vtop will set a single line and will also let text wrap and X % continue for many paragraphs if desired. X \halign\bgroup&\global\advance\colcount by 1\relax X \multistrut\vtop{\hsize=\expandafter\csname col\the\colcount\endcsname X % X % In order to keep entries from bumping into each other X % we will add a \leftskip of \multitablecolspace to all columns after X % the first one. X % X % If a template has been used, we will add \multitablecolspace X % to the width of each template entry. X % X % If the user has set preamble in terms of percent of \hsize we will X % use that dimension as the width of the column, and the \leftskip X % will keep entries from bumping into each other. Table will start at X % left margin and final column will justify at right margin. X % X % Make sure we don't inherit \rightskip from the outer environment. X \rightskip=0pt X \ifnum\colcount=1 X % The first column will be indented with the surrounding text. X \advance\hsize by\leftskip X \else X \ifsetpercent \else X % If user has not set preamble in terms of percent of \hsize X % we will advance \hsize by \multitablecolspace. X \advance\hsize by \multitablecolspace X \fi X % In either case we will make \leftskip=\multitablecolspace: X \leftskip=\multitablecolspace X \fi X % Ignoring space at the beginning and end avoids an occasional spurious X % blank line, when TeX decides to break the line at the space before the X % box from the multistrut, so the strut ends up on a line by itself. X % For example: X % @multitable @columnfractions .11 .89 X % @item @code{#} X % @tab Legal holiday which is valid in major parts of the whole country. X % Is automatically provided with highlighting sequences respectively marking X % characters. X \noindent\ignorespaces##\unskip\multistrut}\cr } X \def\setmultitablespacing{% test to see if user has set \multitablelinespace. % If so, do nothing. If not, give it an appropriate dimension based on % current baselineskip. \ifdim\multitablelinespace=0pt %% strut to put in table in case some entry doesn't have descenders, %% to keep lines equally spaced \let\multistrut = \strut %% Test to see if parskip is larger than space between lines of %% table. If not, do nothing. %% If so, set to same dimension as multitablelinespace. \else \gdef\multistrut{\vrule height\multitablelinespace depth\dp0 width0pt\relax} \fi \ifdim\multitableparskip>\multitablelinespace \global\multitableparskip=\multitablelinespace \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller X %% than skip between lines in the table. \fi% \ifdim\multitableparskip=0pt \global\multitableparskip=\multitablelinespace \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller X %% than skip between lines in the table. \fi} X X \message{conditionals,} % Prevent errors for section commands. % Used in @ignore and in failing conditionals. \def\ignoresections{% X \let\chapter=\relax X \let\unnumbered=\relax X \let\top=\relax X \let\unnumberedsec=\relax X \let\unnumberedsection=\relax X \let\unnumberedsubsec=\relax X \let\unnumberedsubsection=\relax X \let\unnumberedsubsubsec=\relax X \let\unnumberedsubsubsection=\relax X \let\section=\relax X \let\subsec=\relax X \let\subsubsec=\relax X \let\subsection=\relax X \let\subsubsection=\relax X \let\appendix=\relax X \let\appendixsec=\relax X \let\appendixsection=\relax X \let\appendixsubsec=\relax X \let\appendixsubsection=\relax X \let\appendixsubsubsec=\relax X \let\appendixsubsubsection=\relax X \let\contents=\relax X \let\smallbook=\relax X \let\titlepage=\relax } X % Used in nested conditionals, where we have to parse the Texinfo source % and so want to turn off most commands, in case they are used % incorrectly. % \def\ignoremorecommands{% X \let\defcodeindex = \relax X \let\defcv = \relax X \let\deffn = \relax X \let\deffnx = \relax X \let\defindex = \relax X \let\defivar = \relax X \let\defmac = \relax X \let\defmethod = \relax X \let\defop = \relax X \let\defopt = \relax X \let\defspec = \relax X \let\deftp = \relax X \let\deftypefn = \relax X \let\deftypefun = \relax X \let\deftypeivar = \relax X \let\deftypevar = \relax X \let\deftypevr = \relax X \let\defun = \relax X \let\defvar = \relax X \let\defvr = \relax X \let\ref = \relax X \let\xref = \relax X \let\printindex = \relax X \let\pxref = \relax X \let\settitle = \relax X \let\setchapternewpage = \relax X \let\setchapterstyle = \relax X \let\everyheading = \relax X \let\evenheading = \relax X \let\oddheading = \relax X \let\everyfooting = \relax X \let\evenfooting = \relax X \let\oddfooting = \relax X \let\headings = \relax X \let\include = \relax X \let\lowersections = \relax X \let\down = \relax X \let\raisesections = \relax X \let\up = \relax X \let\set = \relax X \let\clear = \relax X \let\item = \relax } X % Ignore @ignore ... @end ignore. % \def\ignore{\doignore{ignore}} X % Ignore @ifinfo, @ifhtml, @ifnottex, @html, @menu, and @direntry text. % \def\ifinfo{\doignore{ifinfo}} \def\ifhtml{\doignore{ifhtml}} \def\ifnottex{\doignore{ifnottex}} \def\html{\doignore{html}} \def\menu{\doignore{menu}} \def\direntry{\doignore{direntry}} X % @dircategory CATEGORY -- specify a category of the dir file % which this file should belong to. Ignore this in TeX. \let\dircategory = \comment X % Ignore text until a line `@end #1'. % \def\doignore#1{\begingroup X % Don't complain about control sequences we have declared \outer. X \ignoresections X % X % Define a command to swallow text until we reach `@end #1'. X % This @ is a catcode 12 token (that is the normal catcode of @ in X % this texinfo.tex file). We change the catcode of @ below to match. X \long\def\doignoretext##1@end #1{\enddoignore}% X % X % Make sure that spaces turn into tokens that match what \doignoretext wants. X \catcode32 = 10 X % X % Ignore braces, too, so mismatched braces don't cause trouble. X \catcode`\{ = 9 X \catcode`\} = 9 X % X % We must not have @c interpreted as a control sequence. X \catcode`\@ = 12 X % X % Make the letter c a comment character so that the rest of the line X % will be ignored. This way, the document can have (for example) X % @c @end ifinfo X % and the @end ifinfo will be properly ignored. X % (We've just changed @ to catcode 12.) X \catcode`\c = 14 X % X % And now expand that command. X \doignoretext } X % What we do to finish off ignored text. % \def\enddoignore{\endgroup\ignorespaces}% X \newif\ifwarnedobs\warnedobsfalse \def\obstexwarn{% X \ifwarnedobs\relax\else X % We need to warn folks that they may have trouble with TeX 3.0. X % This uses \immediate\write16 rather than \message to get newlines. X \immediate\write16{} X \immediate\write16{WARNING: for users of Unix TeX 3.0!} X \immediate\write16{This manual trips a bug in TeX version 3.0 (tex hangs).} X \immediate\write16{If you are running another version of TeX, relax.} X \immediate\write16{If you are running Unix TeX 3.0, kill this TeX process.} X \immediate\write16{ Then upgrade your TeX installation if you can.} X \immediate\write16{ (See ftp://ftp.gnu.org/pub/gnu/TeX.README.)} X \immediate\write16{If you are stuck with version 3.0, run the} X \immediate\write16{ script ``tex3patch'' from the Texinfo distribution} X \immediate\write16{ to use a workaround.} X \immediate\write16{} X \global\warnedobstrue X \fi } X % **In TeX 3.0, setting text in \nullfont hangs tex. For a % workaround (which requires the file ``dummy.tfm'' to be installed), % uncomment the following line: %%%%%\font\nullfont=dummy\let\obstexwarn=\relax X % Ignore text, except that we keep track of conditional commands for % purposes of nesting, up to an `@end #1' command. % \def\nestedignore#1{% X \obstexwarn X % We must actually expand the ignored text to look for the @end X % command, so that nested ignore constructs work. Thus, we put the X % text into a \vbox and then do nothing with the result. To minimize X % the change of memory overflow, we follow the approach outlined on X % page 401 of the TeXbook: make the current font be a dummy font. X % X \setbox0 = \vbox\bgroup X % Don't complain about control sequences we have declared \outer. X \ignoresections X % X % Define `@end #1' to end the box, which will in turn undefine the X % @end command again. X \expandafter\def\csname E#1\endcsname{\egroup\ignorespaces}% X % X % We are going to be parsing Texinfo commands. Most cause no X % trouble when they are used incorrectly, but some commands do X % complicated argument parsing or otherwise get confused, so we X % undefine them. X % X % We can't do anything about stray @-signs, unfortunately; X % they'll produce `undefined control sequence' errors. X \ignoremorecommands X % X % Set the current font to be \nullfont, a TeX primitive, and define X % all the font commands to also use \nullfont. We don't use X % dummy.tfm, as suggested in the TeXbook, because not all sites X % might have that installed. Therefore, math mode will still X % produce output, but that should be an extremely small amount of X % stuff compared to the main input. X % X \nullfont X \let\tenrm = \nullfont \let\tenit = \nullfont \let\tensl = \nullfont X \let\tenbf = \nullfont \let\tentt = \nullfont \let\smallcaps = \nullfont X \let\tensf = \nullfont X % Similarly for index fonts (mostly for their use in X % smallexample) X \let\indrm = \nullfont \let\indit = \nullfont \let\indsl = \nullfont X \let\indbf = \nullfont \let\indtt = \nullfont \let\indsc = \nullfont X \let\indsf = \nullfont X % X % Don't complain when characters are missing from the fonts. X \tracinglostchars = 0 X % X % Don't bother to do space factor calculations. X \frenchspacing X % X % Don't report underfull hboxes. X \hbadness = 10000 X % X % Do minimal line-breaking. X \pretolerance = 10000 X % X % Do not execute instructions in @tex X \def\tex{\doignore{tex}}% X % Do not execute macro definitions. X % `c' is a comment character, so the word `macro' will get cut off. X \def\macro{\doignore{ma}}% } X % @set VAR sets the variable VAR to an empty value. % @set VAR REST-OF-LINE sets VAR to the value REST-OF-LINE. % % Since we want to separate VAR from REST-OF-LINE (which might be % empty), we can't just use \parsearg; we have to insert a space of our % own to delimit the rest of the line, and then take it out again if we % didn't need it. Make sure the catcode of space is correct to avoid % losing inside @example, for instance. % \def\set{\begingroup\catcode` =10 X \catcode`\-=12 \catcode`\_=12 % Allow - and _ in VAR. X \parsearg\setxxx} \def\setxxx#1{\setyyy#1 \endsetyyy} \def\setyyy#1 #2\endsetyyy{% X \def\temp{#2}% X \ifx\temp\empty \global\expandafter\let\csname SET#1\endcsname = \empty X \else \setzzz{#1}#2\endsetzzz % Remove the trailing space \setxxx inserted. X \fi X \endgroup } % Can't use \xdef to pre-expand #2 and save some time, since \temp or % \next or other control sequences that we've defined might get us into % an infinite loop. Consider `@set foo @cite{bar}'. \def\setzzz#1#2 \endsetzzz{\expandafter\gdef\csname SET#1\endcsname{#2}} X % @clear VAR clears (i.e., unsets) the variable VAR. % \def\clear{\parsearg\clearxxx} \def\clearxxx#1{\global\expandafter\let\csname SET#1\endcsname=\relax} X % @value{foo} gets the text saved in variable foo. { X \catcode`\_ = \active X % X % We might end up with active _ or - characters in the argument if X % we're called from @code, as @code{@value{foo-bar_}}. So \let any X % such active characters to their normal equivalents. X \gdef\value{\begingroup X \catcode`\-=12 \catcode`\_=12 X \indexbreaks \let_\normalunderscore X \valuexxx} } \def\valuexxx#1{\expandablevalue{#1}\endgroup} X % We have this subroutine so that we can handle at least some @value's % properly in indexes (we \let\value to this in \indexdummies). Ones % whose names contain - or _ still won't work, but we can't do anything % about that. The command has to be fully expandable, since the result % winds up in the index file. This means that if the variable's value % contains other Texinfo commands, it's almost certain it will fail % (although perhaps we could fix that with sufficient work to do a % one-level expansion on the result, instead of complete). % \def\expandablevalue#1{% X \expandafter\ifx\csname SET#1\endcsname\relax X {[No value for ``#1'']}% X \else X \csname SET#1\endcsname X \fi } X % @ifset VAR ... @end ifset reads the `...' iff VAR has been defined % with @set. % \def\ifset{\parsearg\ifsetxxx} \def\ifsetxxx #1{% X \expandafter\ifx\csname SET#1\endcsname\relax X \expandafter\ifsetfail X \else X \expandafter\ifsetsucceed X \fi } \def\ifsetsucceed{\conditionalsucceed{ifset}} \def\ifsetfail{\nestedignore{ifset}} \defineunmatchedend{ifset} X % @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been % defined with @set, or has been undefined with @clear. % \def\ifclear{\parsearg\ifclearxxx} \def\ifclearxxx #1{% X \expandafter\ifx\csname SET#1\endcsname\relax X \expandafter\ifclearsucceed X \else X \expandafter\ifclearfail X \fi } \def\ifclearsucceed{\conditionalsucceed{ifclear}} \def\ifclearfail{\nestedignore{ifclear}} \defineunmatchedend{ifclear} X % @iftex, @ifnothtml, @ifnotinfo always succeed; we read the text % following, through the first @end iftex (etc.). Make `@end iftex' % (etc.) valid only after an @iftex. % \def\iftex{\conditionalsucceed{iftex}} \def\ifnothtml{\conditionalsucceed{ifnothtml}} \def\ifnotinfo{\conditionalsucceed{ifnotinfo}} \defineunmatchedend{iftex} \defineunmatchedend{ifnothtml} \defineunmatchedend{ifnotinfo} X % We can't just want to start a group at @iftex (for example) and end it % at @end iftex, since then @set commands inside the conditional have no % effect (they'd get reverted at the end of the group). So we must % define \Eiftex to redefine itself to be its previous value. (We can't % just define it to fail again with an ``unmatched end'' error, since % the @ifset might be nested.) % \def\conditionalsucceed#1{% X \edef\temp{% X % Remember the current value of \E#1. X \let\nece{prevE#1} = \nece{E#1}% X % X % At the `@end #1', redefine \E#1 to be its previous value. X \def\nece{E#1}{\let\nece{E#1} = \nece{prevE#1}}% X }% X \temp } X % We need to expand lots of \csname's, but we don't want to expand the % control sequences after we've constructed them. % \def\nece#1{\expandafter\noexpand\csname#1\endcsname} X % @defininfoenclose. \let\definfoenclose=\comment X X \message{indexing,} % Index generation facilities X % Define \newwrite to be identical to plain tex's \newwrite % except not \outer, so it can be used within \newindex. {\catcode`\@=11 \gdef\newwrite{\alloc@7\write\chardef\sixt@@n}} X % \newindex {foo} defines an index named foo. % It automatically defines \fooindex such that % \fooindex ...rest of line... puts an entry in the index foo. % It also defines \fooindfile to be the number of the output channel for % the file that accumulates this index. The file's extension is foo. % The name of an index should be no more than 2 characters long % for the sake of vms. % \def\newindex#1{% X \iflinks X \expandafter\newwrite \csname#1indfile\endcsname X \openout \csname#1indfile\endcsname \jobname.#1 % Open the file X \fi X \expandafter\xdef\csname#1index\endcsname{% % Define @#1index X \noexpand\doindex{#1}} } X % @defindex foo == \newindex{foo} X \def\defindex{\parsearg\newindex} X % Define @defcodeindex, like @defindex except put all entries in @code. X \def\newcodeindex#1{% X \iflinks X \expandafter\newwrite \csname#1indfile\endcsname X \openout \csname#1indfile\endcsname \jobname.#1 X \fi X \expandafter\xdef\csname#1index\endcsname{% X \noexpand\docodeindex{#1}} } X \def\defcodeindex{\parsearg\newcodeindex} X % @synindex foo bar makes index foo feed into index bar. % Do this instead of @defindex foo if you don't want it as a separate index. % The \closeout helps reduce unnecessary open files; the limit on the % Acorn RISC OS is a mere 16 files. \def\synindex#1 #2 {% X \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname X \expandafter\closeout\csname#1indfile\endcsname X \expandafter\let\csname#1indfile\endcsname=\synindexfoo X \expandafter\xdef\csname#1index\endcsname{% define \xxxindex X \noexpand\doindex{#2}}% } X % @syncodeindex foo bar similar, but put all entries made for index foo % inside @code. \def\syncodeindex#1 #2 {% X \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname X \expandafter\closeout\csname#1indfile\endcsname X \expandafter\let\csname#1indfile\endcsname=\synindexfoo X \expandafter\xdef\csname#1index\endcsname{% define \xxxindex X \noexpand\docodeindex{#2}}% } X % Define \doindex, the driver for all \fooindex macros. % Argument #1 is generated by the calling \fooindex macro, % and it is "foo", the name of the index. X % \doindex just uses \parsearg; it calls \doind for the actual work. % This is because \doind is more useful to call from other macros. X % There is also \dosubind {index}{topic}{subtopic} % which makes an entry in a two-level index such as the operation index. X \def\doindex#1{\edef\indexname{#1}\parsearg\singleindexer} \def\singleindexer #1{\doind{\indexname}{#1}} X % like the previous two, but they put @code around the argument. \def\docodeindex#1{\edef\indexname{#1}\parsearg\singlecodeindexer} \def\singlecodeindexer #1{\doind{\indexname}{\code{#1}}} X \def\indexdummies{% \def\ { }% % Take care of the plain tex accent commands. \def\"{\realbackslash "}% \def\`{\realbackslash `}% \def\'{\realbackslash '}% \def\^{\realbackslash ^}% \def\~{\realbackslash ~}% \def\={\realbackslash =}% \def\b{\realbackslash b}% \def\c{\realbackslash c}% \def\d{\realbackslash d}% \def\u{\realbackslash u}% \def\v{\realbackslash v}% \def\H{\realbackslash H}% % Take care of the plain tex special European modified letters. \def\oe{\realbackslash oe}% \def\ae{\realbackslash ae}% \def\aa{\realbackslash aa}% \def\OE{\realbackslash OE}% \def\AE{\realbackslash AE}% \def\AA{\realbackslash AA}% \def\o{\realbackslash o}% \def\O{\realbackslash O}% \def\l{\realbackslash l}% \def\L{\realbackslash L}% \def\ss{\realbackslash ss}% % Take care of texinfo commands likely to appear in an index entry. % (Must be a way to avoid doing expansion at all, and thus not have to % laboriously list every single command here.) \def\@{@}% will be @@ when we switch to @ as escape char. % Need these in case \tex is in effect and \{ is a \delimiter again. % But can't use \lbracecmd and \rbracecmd because texindex assumes % braces and backslashes are used only as delimiters. \let\{ = \mylbrace \let\} = \myrbrace \def\_{{\realbackslash _}}% \def\w{\realbackslash w }% \def\bf{\realbackslash bf }% %\def\rm{\realbackslash rm }% \def\sl{\realbackslash sl }% \def\sf{\realbackslash sf}% \def\tt{\realbackslash tt}% \def\gtr{\realbackslash gtr}% \def\less{\realbackslash less}% \def\hat{\realbackslash hat}% \def\TeX{\realbackslash TeX}% \def\dots{\realbackslash dots }% \def\result{\realbackslash result}% \def\equiv{\realbackslash equiv}% \def\expansion{\realbackslash expansion}% \def\print{\realbackslash print}% \def\error{\realbackslash error}% \def\point{\realbackslash point}% \def\copyright{\realbackslash copyright}% \def\tclose##1{\realbackslash tclose {##1}}% \def\code##1{\realbackslash code {##1}}% \def\uref##1{\realbackslash uref {##1}}% \def\url##1{\realbackslash url {##1}}% \def\env##1{\realbackslash env {##1}}% \def\command##1{\realbackslash command {##1}}% \def\option##1{\realbackslash option {##1}}% \def\dotless##1{\realbackslash dotless {##1}}% \def\samp##1{\realbackslash samp {##1}}% \def\,##1{\realbackslash ,{##1}}% \def\t##1{\realbackslash t {##1}}% \def\r##1{\realbackslash r {##1}}% \def\i##1{\realbackslash i {##1}}% \def\b##1{\realbackslash b {##1}}% \def\sc##1{\realbackslash sc {##1}}% \def\cite##1{\realbackslash cite {##1}}% \def\key##1{\realbackslash key {##1}}% \def\file##1{\realbackslash file {##1}}% \def\var##1{\realbackslash var {##1}}% \def\kbd##1{\realbackslash kbd {##1}}% \def\dfn##1{\realbackslash dfn {##1}}% \def\emph##1{\realbackslash emph {##1}}% \def\acronym##1{\realbackslash acronym {##1}}% % % Handle some cases of @value -- where the variable name does not % contain - or _, and the value does not contain any % (non-fully-expandable) commands. \let\value = \expandablevalue % \unsepspaces % Turn off macro expansion \turnoffmacros } X % If an index command is used in an @example environment, any spaces % therein should become regular spaces in the raw index file, not the % expansion of \tie (\\leavevmode \penalty \@M \ ). {\obeyspaces X \gdef\unsepspaces{\obeyspaces\let =\space}} X % \indexnofonts no-ops all font-change commands. % This is used when outputting the strings to sort the index by. \def\indexdummyfont#1{#1} \def\indexdummytex{TeX} \def\indexdummydots{...} X \def\indexnofonts{% % Just ignore accents. \let\,=\indexdummyfont \let\"=\indexdummyfont \let\`=\indexdummyfont \let\'=\indexdummyfont \let\^=\indexdummyfont \let\~=\indexdummyfont \let\==\indexdummyfont \let\b=\indexdummyfont \let\c=\indexdummyfont \let\d=\indexdummyfont \let\u=\indexdummyfont \let\v=\indexdummyfont \let\H=\indexdummyfont \let\dotless=\indexdummyfont % Take care of the plain tex special European modified letters. \def\oe{oe}% \def\ae{ae}% \def\aa{aa}% \def\OE{OE}% \def\AE{AE}% \def\AA{AA}% \def\o{o}% \def\O{O}% \def\l{l}% \def\L{L}% \def\ss{ss}% \let\w=\indexdummyfont \let\t=\indexdummyfont \let\r=\indexdummyfont \let\i=\indexdummyfont \let\b=\indexdummyfont \let\emph=\indexdummyfont \let\strong=\indexdummyfont \let\cite=\indexdummyfont \let\sc=\indexdummyfont %Don't no-op \tt, since it isn't a user-level command % and is used in the definitions of the active chars like <, >, |... %\let\tt=\indexdummyfont \let\tclose=\indexdummyfont \let\code=\indexdummyfont \let\url=\indexdummyfont \let\uref=\indexdummyfont \let\env=\indexdummyfont \let\command=\indexdummyfont \let\option=\indexdummyfont \let\file=\indexdummyfont \let\samp=\indexdummyfont \let\kbd=\indexdummyfont \let\key=\indexdummyfont \let\var=\indexdummyfont \let\TeX=\indexdummytex \let\dots=\indexdummydots \def\@{@}% } X % To define \realbackslash, we must make \ not be an escape. % We must first make another character (@) an escape % so we do not become unable to do a definition. X {\catcode`\@=0 \catcode`\\=\other X @gdef@realbackslash{\}} X \let\indexbackslash=0 %overridden during \printindex. \let\SETmarginindex=\relax % put index entries in margin (undocumented)? X % For \ifx comparisons. \def\emptymacro{\empty} X % Most index entries go through here, but \dosubind is the general case. % \def\doind#1#2{\dosubind{#1}{#2}\empty} X % Workhorse for all \fooindexes. % #1 is name of index, #2 is stuff to put there, #3 is subentry -- % \empty if called from \doind, as we usually are. The main exception % is with defuns, which call us directly. % \def\dosubind#1#2#3{% X % Put the index entry in the margin if desired. X \ifx\SETmarginindex\relax\else X \insert\margin{\hbox{\vrule height8pt depth3pt width0pt #2}}% X \fi X {% X \count255=\lastpenalty X {% X \indexdummies % Must do this here, since \bf, etc expand at this stage X \escapechar=`\\ X {% X \let\folio = 0% We will expand all macros now EXCEPT \folio. X \def\rawbackslashxx{\indexbackslash}% \indexbackslash isn't defined now X % so it will be output as is; and it will print as backslash. X % X \def\thirdarg{#3}% X % X % If third arg is present, precede it with space in sort key. X \ifx\thirdarg\emptymacro X \let\subentry = \empty X \else X \def\subentry{ #3}% X \fi X % X % First process the index entry with all font commands turned X % off to get the string to sort by. X {\indexnofonts \xdef\indexsorttmp{#2\subentry}}% X % X % Now the real index entry with the fonts. X \toks0 = {#2}% X % X % If third (subentry) arg is present, add it to the index X % string. And include a space. X \ifx\thirdarg\emptymacro \else X \toks0 = \expandafter{\the\toks0 \space #3}% X \fi X % X % Set up the complete index entry, with both the sort key X % and the original text, including any font commands. We write X % three arguments to \entry to the .?? file, texindex reduces to X % two when writing the .??s sorted result. X \edef\temp{% X \write\csname#1indfile\endcsname{% X \realbackslash entry{\indexsorttmp}{\folio}{\the\toks0}}% X }% X % X % If a skip is the last thing on the list now, preserve it X % by backing up by \lastskip, doing the \write, then inserting X % the skip again. Otherwise, the whatsit generated by the X % \write will make \lastskip zero. The result is that sequences X % like this: X % @end defun X % @tindex whatever X % @defun ... X % will have extra space inserted, because the \medbreak in the X % start of the @defun won't see the skip inserted by the @end of X % the previous defun. X % X % But don't do any of this if we're not in vertical mode. We X % don't want to do a \vskip and prematurely end a paragraph. X % X % Avoid page breaks due to these extra skips, too. X % X \iflinks X \ifvmode X \skip0 = \lastskip X \ifdim\lastskip = 0pt \else \nobreak\vskip-\lastskip \fi X \fi X % X \temp % do the write X % X % X \ifvmode \ifdim\skip0 = 0pt \else \nobreak\vskip\skip0 \fi \fi X \fi X }% X }% X \penalty\count255 X }% } X % The index entry written in the file actually looks like % \entry {sortstring}{page}{topic} % or % \entry {sortstring}{page}{topic}{subtopic} % The texindex program reads in these files and writes files % containing these kinds of lines: % \initial {c} % before the first topic whose initial is c % \entry {topic}{pagelist} % for a topic that is used without subtopics % \primary {topic} % for the beginning of a topic that is used with subtopics % \secondary {subtopic}{pagelist} % for each subtopic. X % Define the user-accessible indexing commands % @findex, @vindex, @kindex, @cindex. X \def\findex {\fnindex} \def\kindex {\kyindex} \def\cindex {\cpindex} \def\vindex {\vrindex} \def\tindex {\tpindex} \def\pindex {\pgindex} X \def\cindexsub {\begingroup\obeylines\cindexsub} {\obeylines % \gdef\cindexsub "#1" #2^^M{\endgroup % \dosubind{cp}{#2}{#1}}} X % Define the macros used in formatting output of the sorted index material. X % @printindex causes a particular index (the ??s file) to get printed. % It does not print any chapter heading (usually an @unnumbered). % \def\printindex{\parsearg\doprintindex} \def\doprintindex#1{\begingroup X \dobreak \chapheadingskip{10000}% X % X \indexfonts \rm X \tolerance = 9500 X \indexbreaks X % X % See if the index file exists and is nonempty. X % Change catcode of @ here so that if the index file contains X % \initial {@} X % as its first line, TeX doesn't complain about mismatched braces X % (because it thinks @} is a control sequence). X \catcode`\@ = 11 X \openin 1 \jobname.#1s X \ifeof 1 X % \enddoublecolumns gets confused if there is no text in the index, X % and it loses the chapter title and the aux file entries for the X % index. The easiest way to prevent this problem is to make sure X % there is some text. X \putwordIndexNonexistent X \else X % X % If the index file exists but is empty, then \openin leaves \ifeof X % false. We have to make TeX try to read something from the file, so X % it can discover if there is anything in it. X \read 1 to \temp X \ifeof 1 X \putwordIndexIsEmpty X \else X % Index files are almost Texinfo source, but we use \ as the escape X % character. It would be better to use @, but that's too big a change X % to make right now. X \def\indexbackslash{\rawbackslashxx}% X \catcode`\\ = 0 X \escapechar = `\\ X \begindoublecolumns X \input \jobname.#1s X \enddoublecolumns X \fi X \fi X \closein 1 \endgroup} X % These macros are used by the sorted index file itself. % Change them to control the appearance of the index. X \def\initial#1{{% X % Some minor font changes for the special characters. X \let\tentt=\sectt \let\tt=\sectt \let\sf=\sectt X % X % Remove any glue we may have, we'll be inserting our own. X \removelastskip X % X % We like breaks before the index initials, so insert a bonus. X \penalty -300 X % X % Typeset the initial. Making this add up to a whole number of X % baselineskips increases the chance of the dots lining up from column X % to column. It still won't often be perfect, because of the stretch X % we need before each entry, but it's better. X % X % No shrink because it confuses \balancecolumns. X \vskip 1.67\baselineskip plus .5\baselineskip X \leftline{\secbf #1}% X \vskip .33\baselineskip plus .1\baselineskip X % X % Do our best not to break after the initial. X \nobreak }} X % This typesets a paragraph consisting of #1, dot leaders, and then #2 % flush to the right margin. It is used for index and table of contents % entries. The paragraph is indented by \leftskip. % \def\entry#1#2{\begingroup X % X % Start a new paragraph if necessary, so our assignments below can't X % affect previous text. X \par X % X % Do not fill out the last line with white space. X \parfillskip = 0in X % X % No extra space above this paragraph. X \parskip = 0in X % X % Do not prefer a separate line ending with a hyphen to fewer lines. X \finalhyphendemerits = 0 X % X % \hangindent is only relevant when the entry text and page number X % don't both fit on one line. In that case, bob suggests starting the X % dots pretty far over on the line. Unfortunately, a large X % indentation looks wrong when the entry text itself is broken across X % lines. So we use a small indentation and put up with long leaders. X % X % \hangafter is reset to 1 (which is the value we want) at the start X % of each paragraph, so we need not do anything with that. X \hangindent = 2em X % X % When the entry text needs to be broken, just fill out the first line X % with blank space. X \rightskip = 0pt plus1fil X % X % A bit of stretch before each entry for the benefit of balancing columns. X \vskip 0pt plus1pt X % X % Start a ``paragraph'' for the index entry so the line breaking X % parameters we've set above will have an effect. X \noindent X % X % Insert the text of the index entry. TeX will do line-breaking on it. X #1% X % The following is kludged to not output a line of dots in the index if X % there are no page numbers. The next person who breaks this will be X % cursed by a Unix daemon. X \def\tempa{{\rm }}% X \def\tempb{#2}% X \edef\tempc{\tempa}% X \edef\tempd{\tempb}% X \ifx\tempc\tempd\ \else% X % X % If we must, put the page number on a line of its own, and fill out X % this line with blank space. (The \hfil is overwhelmed with the X % fill leaders glue in \indexdotfill if the page number does fit.) X \hfil\penalty50 X \null\nobreak\indexdotfill % Have leaders before the page number. X % X % The `\ ' here is removed by the implicit \unskip that TeX does as X % part of (the primitive) \par. Without it, a spurious underfull X % \hbox ensues. X \ #2% The page number ends the paragraph. X \fi% X \par \endgroup} X % Like \dotfill except takes at least 1 em. \def\indexdotfill{\cleaders X \hbox{$\mathsurround=0pt \mkern1.5mu ${\it .}$ \mkern1.5mu$}\hskip 1em plus 1fill} X \def\primary #1{\line{#1\hfil}} X \newskip\secondaryindent \secondaryindent=0.5cm X \def\secondary #1#2{ {\parfillskip=0in \parskip=0in \hangindent =1in \hangafter=1 \noindent\hskip\secondaryindent\hbox{#1}\indexdotfill #2\par }} X % Define two-column mode, which we use to typeset indexes. % Adapted from the TeXbook, page 416, which is to say, % the manmac.tex format used to print the TeXbook itself. \catcode`\@=11 X \newbox\partialpage \newdimen\doublecolumnhsize X \def\begindoublecolumns{\begingroup % ended by \enddoublecolumns X % Grab any single-column material above us. X \output = {% X % X % Here is a possibility not foreseen in manmac: if we accumulate a X % whole lot of material, we might end up calling this \output X % routine twice in a row (see the doublecol-lose test, which is X % essentially a couple of indexes with @setchapternewpage off). In X % that case we just ship out what is in \partialpage with the normal X % output routine. Generally, \partialpage will be empty when this X % runs and this will be a no-op. See the indexspread.tex test case. X \ifvoid\partialpage \else X \onepageout{\pagecontents\partialpage}% X \fi X % X \global\setbox\partialpage = \vbox{% X % Unvbox the main output page. X \unvbox\PAGE X \kern-\topskip \kern\baselineskip X }% X }% X \eject % run that output routine to set \partialpage X % X % Use the double-column output routine for subsequent pages. X \output = {\doublecolumnout}% X % X % Change the page size parameters. We could do this once outside this X % routine, in each of @smallbook, @afourpaper, and the default 8.5x11 X % format, but then we repeat the same computation. Repeating a couple X % of assignments once per index is clearly meaningless for the X % execution time, so we may as well do it in one place. X % X % First we halve the line length, less a little for the gutter between X % the columns. We compute the gutter based on the line length, so it X % changes automatically with the paper format. The magic constant X % below is chosen so that the gutter has the same value (well, +-<1pt) X % as it did when we hard-coded it. X % X % We put the result in a separate register, \doublecolumhsize, so we X % can restore it in \pagesofar, after \hsize itself has (potentially) X % been clobbered. X % X \doublecolumnhsize = \hsize X \advance\doublecolumnhsize by -.04154\hsize X \divide\doublecolumnhsize by 2 X \hsize = \doublecolumnhsize X % X % Double the \vsize as well. (We don't need a separate register here, X % since nobody clobbers \vsize.) X \advance\vsize by -\ht\partialpage X \vsize = 2\vsize } X % The double-column output routine for all double-column pages except % the last. % \def\doublecolumnout{% X \splittopskip=\topskip \splitmaxdepth=\maxdepth X % Get the available space for the double columns -- the normal X % (undoubled) page height minus any material left over from the X % previous page. X \dimen@ = \vsize X \divide\dimen@ by 2 X % X % box0 will be the left-hand column, box2 the right. X \setbox0=\vsplit255 to\dimen@ \setbox2=\vsplit255 to\dimen@ X \onepageout\pagesofar X \unvbox255 X \penalty\outputpenalty } \def\pagesofar{% X % Re-output the contents of the output page -- any previous material, X % followed by the two boxes we just split, in box0 and box2. X \unvbox\partialpage X % X \hsize = \doublecolumnhsize X \wd0=\hsize \wd2=\hsize X \hbox to\pagewidth{\box0\hfil\box2}% } \def\enddoublecolumns{% X \output = {% X % Split the last of the double-column material. Leave it on the X % current page, no automatic page break. X \balancecolumns X % X % If we end up splitting too much material for the current page, X % though, there will be another page break right after this \output X % invocation ends. Having called \balancecolumns once, we do not X % want to call it again. Therefore, reset \output to its normal X % definition right away. (We hope \balancecolumns will never be X % called on to balance too much material, but if it is, this makes X % the output somewhat more palatable.) X \global\output = {\onepageout{\pagecontents\PAGE}}% X }% X \eject X \endgroup % started in \begindoublecolumns X % X % \pagegoal was set to the doubled \vsize above, since we restarted X % the current page. We're now back to normal single-column X % typesetting, so reset \pagegoal to the normal \vsize (after the X % \endgroup where \vsize got restored). X \pagegoal = \vsize } \def\balancecolumns{% X % Called at the end of the double column material. X \setbox0 = \vbox{\unvbox255}% like \box255 but more efficient, see p.120. X \dimen@ = \ht0 X \advance\dimen@ by \topskip X \advance\dimen@ by-\baselineskip X \divide\dimen@ by 2 % target to split to X %debug\message{final 2-column material height=\the\ht0, target=\the\dimen@.}% X \splittopskip = \topskip X % Loop until we get a decent breakpoint. X {% X \vbadness = 10000 X \loop X \global\setbox3 = \copy0 X \global\setbox1 = \vsplit3 to \dimen@ X \ifdim\ht3>\dimen@ X \global\advance\dimen@ by 1pt X \repeat X }% X %debug\message{split to \the\dimen@, column heights: \the\ht1, \the\ht3.}% X \setbox0=\vbox to\dimen@{\unvbox1}% X \setbox2=\vbox to\dimen@{\unvbox3}% X % X \pagesofar } \catcode`\@ = \other X X \message{sectioning,} % Chapters, sections, etc. X \newcount\chapno \newcount\secno \secno=0 \newcount\subsecno \subsecno=0 \newcount\subsubsecno \subsubsecno=0 X % This counter is funny since it counts through charcodes of letters A, B, ... % The \the is necessary, despite appearances, because \appendixletter is % expanded while writing the .toc file. \char\appendixno is not % expandable, thus it is written literally, thus all appendixes come out % with the same letter (or @) in the toc without it. \newcount\appendixno \appendixno = `\@ \def\appendixletter{\char\the\appendixno} X % Each @chapter defines this as the name of the chapter. % page headings and footings can use it. @section does likewise. \def\thischapter{} \def\thissection{} X \newcount\absseclevel % used to calculate proper heading level \newcount\secbase\secbase=0 % @raise/lowersections modify this count X % @raisesections: treat @section as chapter, @subsection as section, etc. \def\raisesections{\global\advance\secbase by -1} \let\up=\raisesections % original BFox name X % @lowersections: treat @chapter as section, @section as subsection, etc. \def\lowersections{\global\advance\secbase by 1} \let\down=\lowersections % original BFox name X % Choose a numbered-heading macro % #1 is heading level if unmodified by @raisesections or @lowersections % #2 is text for heading \def\numhead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel X \chapterzzz{#2} \or X \seczzz{#2} \or X \numberedsubseczzz{#2} \or X \numberedsubsubseczzz{#2} \else X \ifnum \absseclevel<0 X \chapterzzz{#2} X \else X \numberedsubsubseczzz{#2} X \fi \fi } X % like \numhead, but chooses appendix heading levels \def\apphead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel X \appendixzzz{#2} \or X \appendixsectionzzz{#2} \or X \appendixsubseczzz{#2} \or X \appendixsubsubseczzz{#2} \else X \ifnum \absseclevel<0 X \appendixzzz{#2} X \else X \appendixsubsubseczzz{#2} X \fi \fi } X % like \numhead, but chooses numberless heading levels \def\unnmhead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel X \unnumberedzzz{#2} \or X \unnumberedseczzz{#2} \or X \unnumberedsubseczzz{#2} \or X \unnumberedsubsubseczzz{#2} \else X \ifnum \absseclevel<0 X \unnumberedzzz{#2} X \else X \unnumberedsubsubseczzz{#2} X \fi \fi } X % @chapter, @appendix, @unnumbered. \def\thischaptername{No Chapter Title} \outer\def\chapter{\parsearg\chapteryyy} \def\chapteryyy #1{\numhead0{#1}} % normally numhead0 calls chapterzzz \def\chapterzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 \global\advance \chapno by 1 \message{\putwordChapter\space \the\chapno}% \chapmacro {#1}{\the\chapno}% \gdef\thissection{#1}% \gdef\thischaptername{#1}% % We don't substitute the actual chapter name into \thischapter % because we don't want its macros evaluated now. \xdef\thischapter{\putwordChapter{} \the\chapno: \noexpand\thischaptername}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}% X {\the\chapno}}}% \temp \donoderef \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec } X \outer\def\appendix{\parsearg\appendixyyy} \def\appendixyyy #1{\apphead0{#1}} % normally apphead0 calls appendixzzz \def\appendixzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 \global\advance \appendixno by 1 \message{\putwordAppendix\space \appendixletter}% \chapmacro {#1}{\putwordAppendix{} \appendixletter}% \gdef\thissection{#1}% \gdef\thischaptername{#1}% \xdef\thischapter{\putwordAppendix{} \appendixletter: \noexpand\thischaptername}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}% X {\putwordAppendix{} \appendixletter}}}% \temp \appendixnoderef \global\let\section = \appendixsec \global\let\subsection = \appendixsubsec \global\let\subsubsection = \appendixsubsubsec } X % @centerchap is like @unnumbered, but the heading is centered. \outer\def\centerchap{\parsearg\centerchapyyy} \def\centerchapyyy #1{{\let\unnumbchapmacro=\centerchapmacro \unnumberedyyy{#1}}} X % @top is like @unnumbered. \outer\def\top{\parsearg\unnumberedyyy} X \outer\def\unnumbered{\parsearg\unnumberedyyy} \def\unnumberedyyy #1{\unnmhead0{#1}} % normally unnmhead0 calls unnumberedzzz \def\unnumberedzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 % % This used to be simply \message{#1}, but TeX fully expands the % argument to \message. Therefore, if #1 contained @-commands, TeX % expanded them. For example, in `@unnumbered The @cite{Book}', TeX % expanded @cite (which turns out to cause errors because \cite is meant % to be executed, not expanded). % % Anyway, we don't want the fully-expanded definition of @cite to appear % as a result of the \message, we just want `@cite' itself. We use % \the to achieve this: TeX expands \the only once, % simply yielding the contents of . (We also do this for % the toc entries.) \toks0 = {#1}\message{(\the\toks0)}% % \unnumbchapmacro {#1}% \gdef\thischapter{#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbchapentry{\the\toks0}}}% \temp \unnumbnoderef \global\let\section = \unnumberedsec \global\let\subsection = \unnumberedsubsec \global\let\subsubsection = \unnumberedsubsubsec } X % Sections. \outer\def\numberedsec{\parsearg\secyyy} \def\secyyy #1{\numhead1{#1}} % normally calls seczzz \def\seczzz #1{% \subsecno=0 \subsubsecno=0 \global\advance \secno by 1 % \gdef\thissection{#1}\secheading {#1}{\the\chapno}{\the\secno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}% X {\the\chapno}{\the\secno}}}% \temp \donoderef \nobreak } X \outer\def\appendixsection{\parsearg\appendixsecyyy} \outer\def\appendixsec{\parsearg\appendixsecyyy} \def\appendixsecyyy #1{\apphead1{#1}} % normally calls appendixsectionzzz \def\appendixsectionzzz #1{% \subsecno=0 \subsubsecno=0 \global\advance \secno by 1 % \gdef\thissection{#1}\secheading {#1}{\appendixletter}{\the\secno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}% X {\appendixletter}{\the\secno}}}% \temp \appendixnoderef \nobreak } X \outer\def\unnumberedsec{\parsearg\unnumberedsecyyy} \def\unnumberedsecyyy #1{\unnmhead1{#1}} % normally calls unnumberedseczzz \def\unnumberedseczzz #1{% \plainsecheading {#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbsecentry{\the\toks0}}}% \temp \unnumbnoderef \nobreak } X % Subsections. \outer\def\numberedsubsec{\parsearg\numberedsubsecyyy} \def\numberedsubsecyyy #1{\numhead2{#1}} % normally calls numberedsubseczzz \def\numberedsubseczzz #1{% \gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 % \subsecheading {#1}{\the\chapno}{\the\secno}{\the\subsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}% X {\the\chapno}{\the\secno}{\the\subsecno}}}% \temp \donoderef \nobreak } X \outer\def\appendixsubsec{\parsearg\appendixsubsecyyy} \def\appendixsubsecyyy #1{\apphead2{#1}} % normally calls appendixsubseczzz \def\appendixsubseczzz #1{% \gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 % \subsecheading {#1}{\appendixletter}{\the\secno}{\the\subsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}% X {\appendixletter}{\the\secno}{\the\subsecno}}}% \temp \appendixnoderef \nobreak } X \outer\def\unnumberedsubsec{\parsearg\unnumberedsubsecyyy} \def\unnumberedsubsecyyy #1{\unnmhead2{#1}} %normally calls unnumberedsubseczzz \def\unnumberedsubseczzz #1{% \plainsubsecheading {#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsecentry% X {\the\toks0}}}% \temp \unnumbnoderef \nobreak } X % Subsubsections. \outer\def\numberedsubsubsec{\parsearg\numberedsubsubsecyyy} \def\numberedsubsubsecyyy #1{\numhead3{#1}} % normally numberedsubsubseczzz \def\numberedsubsubseczzz #1{% \gdef\thissection{#1}\global\advance \subsubsecno by 1 % \subsubsecheading {#1} X {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% X {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% \temp \donoderef \nobreak } X \outer\def\appendixsubsubsec{\parsearg\appendixsubsubsecyyy} \def\appendixsubsubsecyyy #1{\apphead3{#1}} % normally appendixsubsubseczzz \def\appendixsubsubseczzz #1{% \gdef\thissection{#1}\global\advance \subsubsecno by 1 % \subsubsecheading {#1} X {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% X {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% \temp \appendixnoderef \nobreak } X \outer\def\unnumberedsubsubsec{\parsearg\unnumberedsubsubsecyyy} \def\unnumberedsubsubsecyyy #1{\unnmhead3{#1}} %normally unnumberedsubsubseczzz \def\unnumberedsubsubseczzz #1{% \plainsubsubsecheading {#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsubsecentry% X {\the\toks0}}}% \temp \unnumbnoderef \nobreak } X % These are variants which are not "outer", so they can appear in @ifinfo. % Actually, they should now be obsolete; ordinary section commands should work. \def\infotop{\parsearg\unnumberedzzz} \def\infounnumbered{\parsearg\unnumberedzzz} \def\infounnumberedsec{\parsearg\unnumberedseczzz} \def\infounnumberedsubsec{\parsearg\unnumberedsubseczzz} \def\infounnumberedsubsubsec{\parsearg\unnumberedsubsubseczzz} X \def\infoappendix{\parsearg\appendixzzz} \def\infoappendixsec{\parsearg\appendixseczzz} \def\infoappendixsubsec{\parsearg\appendixsubseczzz} \def\infoappendixsubsubsec{\parsearg\appendixsubsubseczzz} X \def\infochapter{\parsearg\chapterzzz} \def\infosection{\parsearg\sectionzzz} \def\infosubsection{\parsearg\subsectionzzz} \def\infosubsubsection{\parsearg\subsubsectionzzz} X % These macros control what the section commands do, according % to what kind of chapter we are in (ordinary, appendix, or unnumbered). % Define them by default for a numbered chapter. \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec X % Define @majorheading, @heading and @subheading X % NOTE on use of \vbox for chapter headings, section headings, and such: % 1) We use \vbox rather than the earlier \line to permit % overlong headings to fold. % 2) \hyphenpenalty is set to 10000 because hyphenation in a % heading is obnoxious; this forbids it. % 3) Likewise, headings look best if no \parindent is used, and % if justification is not attempted. Hence \raggedright. X X \def\majorheading{\parsearg\majorheadingzzz} \def\majorheadingzzz #1{% {\advance\chapheadingskip by 10pt \chapbreak }% {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt\raggedright X \rm #1\hfill}}\bigskip \par\penalty 200} X \def\chapheading{\parsearg\chapheadingzzz} \def\chapheadingzzz #1{\chapbreak % {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt\raggedright X \rm #1\hfill}}\bigskip \par\penalty 200} X % @heading, @subheading, @subsubheading. \def\heading{\parsearg\plainsecheading} \def\subheading{\parsearg\plainsubsecheading} \def\subsubheading{\parsearg\plainsubsubsecheading} X % These macros generate a chapter, section, etc. heading only % (including whitespace, linebreaking, etc. around it), % given all the information in convenient, parsed form. X %%% Args are the skip and penalty (usually negative) \def\dobreak#1#2{\par\ifdim\lastskip<#1\removelastskip\penalty#2\vskip#1\fi} X \def\setchapterstyle #1 {\csname CHAPF#1\endcsname} X %%% Define plain chapter starts, and page on/off switching for it % Parameter controlling skip before chapter headings (if needed) X \newskip\chapheadingskip X \def\chapbreak{\dobreak \chapheadingskip {-4000}} \def\chappager{\par\vfill\supereject} \def\chapoddpage{\chappager \ifodd\pageno \else \hbox to 0pt{} \chappager\fi} X \def\setchapternewpage #1 {\csname CHAPPAG#1\endcsname} X \def\CHAPPAGoff{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chapbreak \global\let\pagealignmacro=\chappager} X \def\CHAPPAGon{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chappager \global\let\pagealignmacro=\chappager \global\def\HEADINGSon{\HEADINGSsingle}} X \def\CHAPPAGodd{ \global\let\contentsalignmacro = \chapoddpage \global\let\pchapsepmacro=\chapoddpage \global\let\pagealignmacro=\chapoddpage \global\def\HEADINGSon{\HEADINGSdouble}} X \CHAPPAGon X \def\CHAPFplain{ \global\let\chapmacro=\chfplain \global\let\unnumbchapmacro=\unnchfplain \global\let\centerchapmacro=\centerchfplain} X % Plain chapter opening. % #1 is the text, #2 the chapter number or empty if unnumbered. \def\chfplain#1#2{% X \pchapsepmacro X {% X \chapfonts \rm X \def\chapnum{#2}% X \setbox0 = \hbox{#2\ifx\chapnum\empty\else\enspace\fi}% X \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright X \hangindent = \wd0 \centerparametersmaybe X \unhbox0 #1\par}% X }% X \nobreak\bigskip % no page break after a chapter title X \nobreak } X % Plain opening for unnumbered. \def\unnchfplain#1{\chfplain{#1}{}} X % @centerchap -- centered and unnumbered. \let\centerparametersmaybe = \relax \def\centerchfplain#1{{% X \def\centerparametersmaybe{% X \advance\rightskip by 3\rightskip X \leftskip = \rightskip X \parfillskip = 0pt X }% X \chfplain{#1}{}% }} X \CHAPFplain % The default X \def\unnchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt\raggedright X \rm #1\hfill}}\bigskip \par\nobreak } X \def\chfopen #1#2{\chapoddpage {\chapfonts \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}% \par\penalty 5000 % } X \def\centerchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt X \hfill {\rm #1}\hfill}}\bigskip \par\nobreak } X \def\CHAPFopen{ \global\let\chapmacro=\chfopen \global\let\unnumbchapmacro=\unnchfopen \global\let\centerchapmacro=\centerchfopen} X X % Section titles. \newskip\secheadingskip \def\secheadingbreak{\dobreak \secheadingskip {-1000}} \def\secheading#1#2#3{\sectionheading{sec}{#2.#3}{#1}} \def\plainsecheading#1{\sectionheading{sec}{}{#1}} X % Subsection titles. \newskip \subsecheadingskip \def\subsecheadingbreak{\dobreak \subsecheadingskip {-500}} \def\subsecheading#1#2#3#4{\sectionheading{subsec}{#2.#3.#4}{#1}} \def\plainsubsecheading#1{\sectionheading{subsec}{}{#1}} X % Subsubsection titles. \let\subsubsecheadingskip = \subsecheadingskip \let\subsubsecheadingbreak = \subsecheadingbreak \def\subsubsecheading#1#2#3#4#5{\sectionheading{subsubsec}{#2.#3.#4.#5}{#1}} \def\plainsubsubsecheading#1{\sectionheading{subsubsec}{}{#1}} X X % Print any size section title. % % #1 is the section type (sec/subsec/subsubsec), #2 is the section % number (maybe empty), #3 the text. \def\sectionheading#1#2#3{% X {% X \expandafter\advance\csname #1headingskip\endcsname by \parskip X \csname #1headingbreak\endcsname X }% X {% X % Switch to the right set of fonts. X \csname #1fonts\endcsname \rm X % X % Only insert the separating space if we have a section number. X \def\secnum{#2}% X \setbox0 = \hbox{#2\ifx\secnum\empty\else\enspace\fi}% X % X \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright X \hangindent = \wd0 % zero if no section number X \unhbox0 #3}% X }% X \ifdim\parskip<10pt \nobreak\kern10pt\nobreak\kern-\parskip\fi \nobreak } X X \message{toc,} % Table of contents. \newwrite\tocfile X % Write an entry to the toc file, opening it if necessary. % Called from @chapter, etc. We supply {\folio} at the end of the % argument, which will end up as the last argument to the \...entry macro. % % We open the .toc file here instead of at @setfilename or any other % given time so that @contents can be put in the document anywhere. % \newif\iftocfileopened \def\writetocentry#1{% X \iftocfileopened\else X \immediate\openout\tocfile = \jobname.toc X \global\tocfileopenedtrue X \fi X \iflinks \write\tocfile{#1{\folio}}\fi } X \newskip\contentsrightmargin \contentsrightmargin=1in \newcount\savepageno \newcount\lastnegativepageno \lastnegativepageno = -1 X % Finish up the main text and prepare to read what we've written % to \tocfile. % \def\startcontents#1{% X % If @setchapternewpage on, and @headings double, the contents should X % start on an odd page, unlike chapters. Thus, we maintain X % \contentsalignmacro in parallel with \pagealignmacro. X % From: Torbjorn Granlund X \contentsalignmacro X \immediate\closeout\tocfile X % X % Don't need to put `Contents' or `Short Contents' in the headline. X % It is abundantly clear what they are. X \unnumbchapmacro{#1}\def\thischapter{}% X \savepageno = \pageno X \begingroup % Set up to handle contents files properly. X \catcode`\\=0 \catcode`\{=1 \catcode`\}=2 \catcode`\@=11 X % We can't do this, because then an actual ^ in a section X % title fails, e.g., @chapter ^ -- exponentiation. --karl, 9jul97. X %\catcode`\^=7 % to see ^^e4 as \"a etc. juha@piuha.ydi.vtt.fi X \raggedbottom % Worry more about breakpoints than the bottom. X \advance\hsize by -\contentsrightmargin % Don't use the full line length. X % X % Roman numerals for page numbers. X \ifnum \pageno>0 \pageno = \lastnegativepageno \fi } X X % Normal (long) toc. \def\contents{% X \startcontents{\putwordTOC}% X \openin 1 \jobname.toc X \ifeof 1 \else X \closein 1 X \input \jobname.toc X \fi X \vfill \eject X \contentsalignmacro % in case @setchapternewpage odd is in effect X \endgroup X \lastnegativepageno = \pageno X \pageno = \savepageno } X % And just the chapters. \def\summarycontents{% X \startcontents{\putwordShortTOC}% X % X \let\chapentry = \shortchapentry X \let\unnumbchapentry = \shortunnumberedentry X % We want a true roman here for the page numbers. X \secfonts X \let\rm=\shortcontrm \let\bf=\shortcontbf \let\sl=\shortcontsl X \rm X \hyphenpenalty = 10000 X \advance\baselineskip by 1pt % Open it up a little. X \def\secentry ##1##2##3##4{} X \def\unnumbsecentry ##1##2{} X \def\subsecentry ##1##2##3##4##5{} X \def\unnumbsubsecentry ##1##2{} X \def\subsubsecentry ##1##2##3##4##5##6{} X \def\unnumbsubsubsecentry ##1##2{} X \openin 1 \jobname.toc X \ifeof 1 \else X \closein 1 X \input \jobname.toc X \fi X \vfill \eject X \contentsalignmacro % in case @setchapternewpage odd is in effect X \endgroup X \lastnegativepageno = \pageno X \pageno = \savepageno } \let\shortcontents = \summarycontents X \ifpdf X \pdfcatalog{/PageMode /UseOutlines}% \fi X % These macros generate individual entries in the table of contents. % The first argument is the chapter or section name. % The last argument is the page number. % The arguments in between are the chapter number, section number, ... X % Chapter-level things, for both the long and short contents. \def\chapentry#1#2#3{\dochapentry{#2\labelspace#1}{#3}} X % See comments in \dochapentry re vbox and related settings \def\shortchapentry#1#2#3{% X \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno{#3}}% } X % Typeset the label for a chapter or appendix for the short contents. % The arg is, e.g. `Appendix A' for an appendix, or `3' for a chapter. % We could simplify the code here by writing out an \appendixentry % command in the toc file for appendices, instead of using \chapentry % for both, but it doesn't seem worth it. \setbox0 = \hbox{\shortcontrm \putwordAppendix } \newdimen\shortappendixwidth \shortappendixwidth = \wd0 X \def\shortchaplabel#1{% X % We typeset #1 in a box of constant width, regardless of the text of X % #1, so the chapter titles will come out aligned. X \setbox0 = \hbox{#1}% X \dimen0 = \ifdim\wd0 > \shortappendixwidth \shortappendixwidth \else 0pt \fi X % X % This space should be plenty, since a single number is .5em, and the X % widest letter (M) is 1em, at least in the Computer Modern fonts. X % (This space doesn't include the extra space that gets added after X % the label; that gets put in by \shortchapentry above.) X \advance\dimen0 by 1.1em X \hbox to \dimen0{#1\hfil}% } X \def\unnumbchapentry#1#2{\dochapentry{#1}{#2}} \def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno{#2}}} X % Sections. \def\secentry#1#2#3#4{\dosecentry{#2.#3\labelspace#1}{#4}} \def\unnumbsecentry#1#2{\dosecentry{#1}{#2}} X % Subsections. \def\subsecentry#1#2#3#4#5{\dosubsecentry{#2.#3.#4\labelspace#1}{#5}} \def\unnumbsubsecentry#1#2{\dosubsecentry{#1}{#2}} X % And subsubsections. \def\subsubsecentry#1#2#3#4#5#6{% X \dosubsubsecentry{#2.#3.#4.#5\labelspace#1}{#6}} \def\unnumbsubsubsecentry#1#2{\dosubsubsecentry{#1}{#2}} X % This parameter controls the indentation of the various levels. \newdimen\tocindent \tocindent = 3pc X % Now for the actual typesetting. In all these, #1 is the text and #2 is the % page number. % % If the toc has to be broken over pages, we want it to be at chapters % if at all possible; hence the \penalty. \def\dochapentry#1#2{% X \penalty-300 \vskip1\baselineskip plus.33\baselineskip minus.25\baselineskip X \begingroup X \chapentryfonts X \tocentry{#1}{\dopageno{#2}}% X \endgroup X \nobreak\vskip .25\baselineskip plus.1\baselineskip } X \def\dosecentry#1#2{\begingroup X \secentryfonts \leftskip=\tocindent X \tocentry{#1}{\dopageno{#2}}% \endgroup} X \def\dosubsecentry#1#2{\begingroup X \subsecentryfonts \leftskip=2\tocindent X \tocentry{#1}{\dopageno{#2}}% \endgroup} X \def\dosubsubsecentry#1#2{\begingroup X \subsubsecentryfonts \leftskip=3\tocindent X \tocentry{#1}{\dopageno{#2}}% \endgroup} X % Final typesetting of a toc entry; we use the same \entry macro as for % the index entries, but we want to suppress hyphenation here. (We % can't do that in the \entry macro, since index entries might consist % of hyphenated-identifiers-that-do-not-fit-on-a-line-and-nothing-else.) \def\tocentry#1#2{\begingroup X \vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks X % Do not use \turnoffactive in these arguments. Since the toc is X % typeset in cmr, so characters such as _ would come out wrong; we X % have to do the usual translation tricks. X \entry{#1}{#2}% \endgroup} X % Space between chapter (or whatever) number and the title. \def\labelspace{\hskip1em \relax} X \def\dopageno#1{{\rm #1}} \def\doshortpageno#1{{\rm #1}} X \def\chapentryfonts{\secfonts \rm} \def\secentryfonts{\textfonts} \let\subsecentryfonts = \textfonts \let\subsubsecentryfonts = \textfonts X X \message{environments,} % @foo ... @end foo. X % Since these characters are used in examples, it should be an even number of % \tt widths. Each \tt character is 1en, so two makes it 1em. % Furthermore, these definitions must come after we define our fonts. \newbox\dblarrowbox \newbox\longdblarrowbox \newbox\pushcharbox \newbox\bullbox \newbox\equivbox \newbox\errorbox X %{\tentt %\global\setbox\dblarrowbox = \hbox to 1em{\hfil$\Rightarrow$\hfil} %\global\setbox\longdblarrowbox = \hbox to 1em{\hfil$\mapsto$\hfil} %\global\setbox\pushcharbox = \hbox to 1em{\hfil$\dashv$\hfil} %\global\setbox\equivbox = \hbox to 1em{\hfil$\ptexequiv$\hfil} % Adapted from the manmac format (p.420 of TeXbook) %\global\setbox\bullbox = \hbox to 1em{\kern.15em\vrule height .75ex width .85ex % depth .1ex\hfil} %} X % @point{}, @result{}, @expansion{}, @print{}, @equiv{}. \def\point{$\star$} \def\result{\leavevmode\raise.15ex\hbox to 1em{\hfil$\Rightarrow$\hfil}} \def\expansion{\leavevmode\raise.1ex\hbox to 1em{\hfil$\mapsto$\hfil}} \def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}} \def\equiv{\leavevmode\lower.1ex\hbox to 1em{\hfil$\ptexequiv$\hfil}} X % Adapted from the TeXbook's \boxit. {\tentt \global\dimen0 = 3em}% Width of the box. \dimen2 = .55pt % Thickness of rules % The text. (`r' is open on the right, `e' somewhat less so on the left.) \setbox0 = \hbox{\kern-.75pt \tensf error\kern-1.5pt} X \global\setbox\errorbox=\hbox to \dimen0{\hfil X \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right. X \advance\hsize by -2\dimen2 % Rules. X \vbox{ X \hrule height\dimen2 X \hbox{\vrule width\dimen2 \kern3pt % Space to left of text. X \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below. X \kern3pt\vrule width\dimen2}% Space to right. X \hrule height\dimen2} X \hfil} X % The @error{} command. \def\error{\leavevmode\lower.7ex\copy\errorbox} X % @tex ... @end tex escapes into raw Tex temporarily. % One exception: @ is still an escape character, so that @end tex works. % But \@ or @@ will get a plain tex @ character. X \def\tex{\begingroup X \catcode `\\=0 \catcode `\{=1 \catcode `\}=2 X \catcode `\$=3 \catcode `\&=4 \catcode `\#=6 X \catcode `\^=7 \catcode `\_=8 \catcode `\~=13 \let~=\tie X \catcode `\%=14 X \catcode 43=12 % plus X \catcode`\"=12 X \catcode`\==12 X \catcode`\|=12 X \catcode`\<=12 X \catcode`\>=12 X \escapechar=`\\ X % X \let\b=\ptexb X \let\bullet=\ptexbullet X \let\c=\ptexc X \let\,=\ptexcomma X \let\.=\ptexdot X \let\dots=\ptexdots X \let\equiv=\ptexequiv X \let\!=\ptexexclam X \let\i=\ptexi X \let\{=\ptexlbrace X \let\+=\tabalign X \let\}=\ptexrbrace X \let\*=\ptexstar X \let\t=\ptext X % X \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}% X \def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi}% X \def\@{@}% \let\Etex=\endgroup} X % Define @lisp ... @endlisp. % @lisp does a \begingroup so it can rebind things, % including the definition of @endlisp (which normally is erroneous). X % Amount to narrow the margins by for @lisp. \newskip\lispnarrowing \lispnarrowing=0.4in X % This is the definition that ^^M gets inside @lisp, @example, and other % such environments. \null is better than a space, since it doesn't % have any width. \def\lisppar{\null\endgraf} X % Make each space character in the input produce a normal interword % space in the output. Don't allow a line break at this space, as this % is used only in environments like @example, where each line of input % should produce a line of output anyway. % {\obeyspaces % \gdef\sepspaces{\obeyspaces\let =\tie}} X % Define \obeyedspace to be our active space, whatever it is. This is % for use in \parsearg. {\sepspaces% \global\let\obeyedspace= } X % This space is always present above and below environments. \newskip\envskipamount \envskipamount = 0pt X % Make spacing and below environment symmetrical. We use \parskip here % to help in doing that, since in @example-like environments \parskip % is reset to zero; thus the \afterenvbreak inserts no space -- but the % start of the next paragraph will insert \parskip % \def\aboveenvbreak{{\advance\envskipamount by \parskip \endgraf \ifdim\lastskip<\envskipamount \removelastskip \penalty-50 \vskip\envskipamount \fi}} X \let\afterenvbreak = \aboveenvbreak X % \nonarrowing is a flag. If "set", @lisp etc don't narrow margins. \let\nonarrowing=\relax X % @cartouche ... @end cartouche: draw rectangle w/rounded corners around % environment contents. \font\circle=lcircle10 \newdimen\circthick \newdimen\cartouter\newdimen\cartinner \newskip\normbskip\newskip\normpskip\newskip\normlskip \circthick=\fontdimen8\circle % \def\ctl{{\circle\char'013\hskip -6pt}}% 6pt from pl file: 1/2charwidth \def\ctr{{\hskip 6pt\circle\char'010}} \def\cbl{{\circle\char'012\hskip -6pt}} \def\cbr{{\hskip 6pt\circle\char'011}} \def\carttop{\hbox to \cartouter{\hskip\lskip X \ctl\leaders\hrule height\circthick\hfil\ctr X \hskip\rskip}} \def\cartbot{\hbox to \cartouter{\hskip\lskip X \cbl\leaders\hrule height\circthick\hfil\cbr X \hskip\rskip}} % \newskip\lskip\newskip\rskip X \long\def\cartouche{% \begingroup X \lskip=\leftskip \rskip=\rightskip X \leftskip=0pt\rightskip=0pt %we want these *outside*. X \cartinner=\hsize \advance\cartinner by-\lskip X \advance\cartinner by-\rskip X \cartouter=\hsize X \advance\cartouter by 18.4pt % allow for 3pt kerns on either % side, and for 6pt waste from % each corner char, and rule thickness X \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip X % Flag to tell @lisp, etc., not to narrow margin. X \let\nonarrowing=\comment X \vbox\bgroup X \baselineskip=0pt\parskip=0pt\lineskip=0pt X \carttop X \hbox\bgroup X \hskip\lskip X \vrule\kern3pt X \vbox\bgroup X \hsize=\cartinner X \kern3pt X \begingroup X \baselineskip=\normbskip X \lineskip=\normlskip X \parskip=\normpskip X \vskip -\parskip \def\Ecartouche{% X \endgroup X \kern3pt X \egroup X \kern3pt\vrule X \hskip\rskip X \egroup X \cartbot X \egroup \endgroup }} X X % This macro is called at the beginning of all the @example variants, % inside a group. \def\nonfillstart{% X \aboveenvbreak X \inENV % This group ends at the end of the body X \hfuzz = 12pt % Don't be fussy X \sepspaces % Make spaces be word-separators rather than space tokens. X \singlespace X \let\par = \lisppar % don't ignore blank lines X \obeylines % each line of input is a line of output X \parskip = 0pt X \parindent = 0pt X \emergencystretch = 0pt % don't try to avoid overfull boxes X % @cartouche defines \nonarrowing to inhibit narrowing X % at next level down. X \ifx\nonarrowing\relax X \advance \leftskip by \lispnarrowing X \exdentamount=\lispnarrowing X \let\exdent=\nofillexdent X \let\nonarrowing=\relax X \fi } X % Define the \E... control sequence only if we are inside the particular % environment, so the error checking in \end will work. % % To end an @example-like environment, we first end the paragraph (via % \afterenvbreak's vertical glue), and then the group. That way we keep % the zero \parskip that the environments set -- \parskip glue will be % inserted at the beginning of the next paragraph in the document, after % the environment. % \def\nonfillfinish{\afterenvbreak\endgroup} X % @lisp: indented, narrowed, typewriter font. \def\lisp{\begingroup X \nonfillstart X \let\Elisp = \nonfillfinish X \tt X \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special. X \gobble % eat return } X % @example: Same as @lisp. \def\example{\begingroup \def\Eexample{\nonfillfinish\endgroup}\lisp} X % @small... is usually equivalent to the non-small (@smallbook % redefines). We must call \example (or whatever) last in the % definition, since it reads the return following the @example (or % whatever) command. % % This actually allows (for example) @end display inside an % @smalldisplay. Too bad, but makeinfo will catch the error anyway. % \def\smalldisplay{\begingroup\def\Esmalldisplay{\nonfillfinish\endgroup}\display} \def\smallexample{\begingroup\def\Esmallexample{\nonfillfinish\endgroup}\lisp} \def\smallformat{\begingroup\def\Esmallformat{\nonfillfinish\endgroup}\format} \def\smalllisp{\begingroup\def\Esmalllisp{\nonfillfinish\endgroup}\lisp} X % Real @smallexample and @smalllisp (when @smallbook): use smaller fonts. % Originally contributed by Pavel@xerox. \def\smalllispx{\begingroup X \def\Esmalllisp{\nonfillfinish\endgroup}% X \def\Esmallexample{\nonfillfinish\endgroup}% X \indexfonts X \lisp } X % @display: same as @lisp except keep current font. % \def\display{\begingroup X \nonfillstart X \let\Edisplay = \nonfillfinish X \gobble } X % @smalldisplay (when @smallbook): @display plus smaller fonts. % \def\smalldisplayx{\begingroup X \def\Esmalldisplay{\nonfillfinish\endgroup}% X \indexfonts \rm X \display } X % @format: same as @display except don't narrow margins. % \def\format{\begingroup X \let\nonarrowing = t X \nonfillstart X \let\Eformat = \nonfillfinish X \gobble } X % @smallformat (when @smallbook): @format plus smaller fonts. % \def\smallformatx{\begingroup X \def\Esmallformat{\nonfillfinish\endgroup}% X \indexfonts \rm X \format } X % @flushleft (same as @format). % \def\flushleft{\begingroup \def\Eflushleft{\nonfillfinish\endgroup}\format} X % @flushright. % \def\flushright{\begingroup X \let\nonarrowing = t X \nonfillstart X \let\Eflushright = \nonfillfinish X \advance\leftskip by 0pt plus 1fill X \gobble } X % @quotation does normal linebreaking (hence we can't use \nonfillstart) % and narrows the margins. % \def\quotation{% X \begingroup\inENV %This group ends at the end of the @quotation body X {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip X \singlespace X \parindent=0pt X % We have retained a nonzero parskip for the environment, since we're X % doing normal filling. So to avoid extra space below the environment... X \def\Equotation{\parskip = 0pt \nonfillfinish}% X % X % @cartouche defines \nonarrowing to inhibit narrowing at next level down. X \ifx\nonarrowing\relax X \advance\leftskip by \lispnarrowing X \advance\rightskip by \lispnarrowing X \exdentamount = \lispnarrowing X \let\nonarrowing = \relax X \fi } X X \message{defuns,} % @defun etc. X % Allow user to change definition object font (\df) internally \def\setdeffont #1 {\csname DEF#1\endcsname} X \newskip\defbodyindent \defbodyindent=.4in \newskip\defargsindent \defargsindent=50pt \newskip\deftypemargin \deftypemargin=12pt \newskip\deflastargmargin \deflastargmargin=18pt X \newcount\parencount % define \functionparens, which makes ( and ) and & do special things. % \functionparens affects the group it is contained in. \def\activeparens{% \catcode`\(=\active \catcode`\)=\active \catcode`\&=\active \catcode`\[=\active \catcode`\]=\active} X % Make control sequences which act like normal parenthesis chars. \let\lparen = ( \let\rparen = ) X {\activeparens % Now, smart parens don't turn on until &foo (see \amprm) X % Be sure that we always have a definition for `(', etc. For example, % if the fn name has parens in it, \boldbrax will not be in effect yet, % so TeX would otherwise complain about undefined control sequence. \global\let(=\lparen \global\let)=\rparen \global\let[=\lbrack \global\let]=\rbrack X \gdef\functionparens{\boldbrax\let&=\amprm\parencount=0 } \gdef\boldbrax{\let(=\opnr\let)=\clnr\let[=\lbrb\let]=\rbrb} % This is used to turn on special parens % but make & act ordinary (given that it's active). \gdef\boldbraxnoamp{\let(=\opnr\let)=\clnr\let[=\lbrb\let]=\rbrb\let&=\ampnr} X % Definitions of (, ) and & used in args for functions. % This is the definition of ( outside of all parentheses. \gdef\oprm#1 {{\rm\char`\(}#1 \bf \let(=\opnested X \global\advance\parencount by 1 } % % This is the definition of ( when already inside a level of parens. \gdef\opnested{\char`\(\global\advance\parencount by 1 } % \gdef\clrm{% Print a paren in roman if it is taking us back to depth of 0. X % also in that case restore the outer-level definition of (. X \ifnum \parencount=1 {\rm \char `\)}\sl \let(=\oprm \else \char `\) \fi X \global\advance \parencount by -1 } % If we encounter &foo, then turn on ()-hacking afterwards \gdef\amprm#1 {{\rm\}\let(=\oprm \let)=\clrm\ } % \gdef\normalparens{\boldbrax\let&=\ampnr} } % End of definition inside \activeparens %% These parens (in \boldbrax) actually are a little bolder than the %% contained text. This is especially needed for [ and ] \def\opnr{{\sf\char`\(}\global\advance\parencount by 1 } \def\clnr{{\sf\char`\)}\global\advance\parencount by -1 } \let\ampnr = \& \def\lbrb{{\bf\char`\[}} \def\rbrb{{\bf\char`\]}} X % Active &'s sneak into the index arguments, so make sure it's defined. { X \catcode`& = 13 X \global\let& = \ampnr } X % First, defname, which formats the header line itself. % #1 should be the function name. % #2 should be the type of definition, such as "Function". X \def\defname #1#2{% % Get the values of \leftskip and \rightskip as they were % outside the @def... \dimen2=\leftskip \advance\dimen2 by -\defbodyindent \noindent \setbox0=\hbox{\hskip \deflastargmargin{\rm #2}\hskip \deftypemargin}% \dimen0=\hsize \advance \dimen0 by -\wd0 % compute size for first line \dimen1=\hsize \advance \dimen1 by -\defargsindent %size for continuations \parshape 2 0in \dimen0 \defargsindent \dimen1 % Now output arg 2 ("Function" or some such) % ending at \deftypemargin from the right margin, % but stuck inside a box of width 0 so it does not interfere with linebreaking {% Adjust \hsize to exclude the ambient margins, % so that \rightline will obey them. \advance \hsize by -\dimen2 \rlap{\rightline{{\rm #2}\hskip -1.25pc }}}% % Make all lines underfull and no complaints: \tolerance=10000 \hbadness=10000 \advance\leftskip by -\defbodyindent \exdentamount=\defbodyindent {\df #1}\enskip % Generate function name } X % Actually process the body of a definition % #1 should be the terminating control sequence, such as \Edefun. % #2 should be the "another name" control sequence, such as \defunx. % #3 should be the control sequence that actually processes the header, % such as \defunheader. X \def\defparsebody #1#2#3{\begingroup\inENV% Environment for definitionbody \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2{\begingroup\obeylines\activeparens\spacesplit#3}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup % \catcode 61=\active % 61 is `=' \obeylines\activeparens\spacesplit#3} X % #1 is the \E... control sequence to end the definition (which we define). % #2 is the \...x control sequence for consecutive fns (which we define). % #3 is the control sequence to call to resume processing. % #4, delimited by the space, is the class name. % \def\defmethparsebody#1#2#3#4 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#4}}} X % @deftypemethod has an extra argument that nothing else does. Sigh. % #1 is the \E... control sequence to end the definition (which we define). % #2 is the \...x control sequence for consecutive fns (which we define). % #3 is the control sequence to call to resume processing. % #4, delimited by the space, is the class name. % #5 is the method's return type. % \def\deftypemethparsebody#1#2#3#4 #5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 ##2 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}{##2}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#4}{#5}}} X \def\defopparsebody #1#2#3#4#5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 ##2 {\def#4{##1}% \begingroup\obeylines\activeparens\spacesplit{#3{##2}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#5}}} X % These parsing functions are similar to the preceding ones % except that they do not make parens into active characters. % These are used for "variables" since they have no arguments. X \def\defvarparsebody #1#2#3{\begingroup\inENV% Environment for definitionbody \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2{\begingroup\obeylines\spacesplit#3}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup % \catcode 61=\active % \obeylines\spacesplit#3} X % This is used for \def{tp,vr}parsebody. It could probably be used for % some of the others, too, with some judicious conditionals. % \def\parsebodycommon#1#2#3{% X \begingroup\inENV % X \medbreak % X % Define the end token that this defining construct specifies X % so that it will exit this group. X \def#1{\endgraf\endgroup\medbreak}% X \def#2##1 {\begingroup\obeylines\spacesplit{#3{##1}}}% X \parindent=0in X \advance\leftskip by \defbodyindent X \exdentamount=\defbodyindent X \begingroup\obeylines } X \def\defvrparsebody#1#2#3#4 {% X \parsebodycommon{#1}{#2}{#3}% X \spacesplit{#3{#4}}% } X % This loses on `@deftp {Data Type} {struct termios}' -- it thinks the % type is just `struct', because we lose the braces in `{struct % termios}' when \spacesplit reads its undelimited argument. Sigh. % \let\deftpparsebody=\defvrparsebody % % So, to get around this, we put \empty in with the type name. That % way, TeX won't find exactly `{...}' as an undelimited argument, and % won't strip off the braces. % \def\deftpparsebody #1#2#3#4 {% X \parsebodycommon{#1}{#2}{#3}% X \spacesplit{\parsetpheaderline{#3{#4}}}\empty } X % Fine, but then we have to eventually remove the \empty *and* the % braces (if any). That's what this does. % \def\removeemptybraces\empty#1\relax{#1} X % After \spacesplit has done its work, this is called -- #1 is the final % thing to call, #2 the type name (which starts with \empty), and #3 % (which might be empty) the arguments. % \def\parsetpheaderline#1#2#3{% X #1{\removeemptybraces#2\relax}{#3}% }% X \def\defopvarparsebody #1#2#3#4#5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 ##2 {\def#4{##1}% \begingroup\obeylines\spacesplit{#3{##2}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\spacesplit{#3{#5}}} X % Split up #2 at the first space token. % call #1 with two arguments: % the first is all of #2 before the space token, % the second is all of #2 after that space token. % If #2 contains no space token, all of it is passed as the first arg % and the second is passed as empty. X {\obeylines \gdef\spacesplit#1#2^^M{\endgroup\spacesplitfoo{#1}#2 \relax\spacesplitfoo}% \long\gdef\spacesplitfoo#1#2 #3#4\spacesplitfoo{% \ifx\relax #3% #1{#2}{}\else #1{#2}{#3#4}\fi}} X % So much for the things common to all kinds of definitions. X % Define @defun. X % First, define the processing that is wanted for arguments of \defun % Use this to expand the args and terminate the paragraph they make up X \def\defunargs#1{\functionparens \sl % Expand, preventing hyphenation at `-' chars. % Note that groups don't affect changes in \hyphenchar. % Set the font temporarily and use \font in case \setfont made \tensl a macro. {\tensl\hyphenchar\font=0}% #1% {\tensl\hyphenchar\font=45}% \ifnum\parencount=0 \else \errmessage{Unbalanced parentheses in @def}\fi% \interlinepenalty=10000 \advance\rightskip by 0pt plus 1fil \endgraf\nobreak\vskip -\parskip\nobreak } X \def\deftypefunargs #1{% % Expand, preventing hyphenation at `-' chars. % Note that groups don't affect changes in \hyphenchar. % Use \boldbraxnoamp, not \functionparens, so that & is not special. \boldbraxnoamp \tclose{#1}% avoid \code because of side effects on active chars \interlinepenalty=10000 \advance\rightskip by 0pt plus 1fil \endgraf\nobreak\vskip -\parskip\nobreak } X % Do complete processing of one @defun or @defunx line already parsed. X % @deffn Command forward-char nchars X \def\deffn{\defmethparsebody\Edeffn\deffnx\deffnheader} X \def\deffnheader #1#2#3{\doind {fn}{\code{#2}}% \begingroup\defname {#2}{#1}\defunargs{#3}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defun == @deffn Function X \def\defun{\defparsebody\Edefun\defunx\defunheader} X \def\defunheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index \begingroup\defname {#1}{\putwordDeffunc}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @deftypefun int foobar (int @var{foo}, float @var{bar}) X \def\deftypefun{\defparsebody\Edeftypefun\deftypefunx\deftypefunheader} X % #1 is the data type. #2 is the name and args. \def\deftypefunheader #1#2{\deftypefunheaderx{#1}#2 \relax} % #1 is the data type, #2 the name, #3 the args. \def\deftypefunheaderx #1#2 #3\relax{% \doind {fn}{\code{#2}}% Make entry in function index \begingroup\defname {\defheaderxcond#1\relax$$$#2}{\putwordDeftypefun}% \deftypefunargs {#3}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @deftypefn {Library Function} int foobar (int @var{foo}, float @var{bar}) X \def\deftypefn{\defmethparsebody\Edeftypefn\deftypefnx\deftypefnheader} X % \defheaderxcond#1\relax$$$ % puts #1 in @code, followed by a space, but does nothing if #1 is null. \def\defheaderxcond#1#2$$${\ifx#1\relax\else\code{#1#2} \fi} X % #1 is the classification. #2 is the data type. #3 is the name and args. \def\deftypefnheader #1#2#3{\deftypefnheaderx{#1}{#2}#3 \relax} % #1 is the classification, #2 the data type, #3 the name, #4 the args. \def\deftypefnheaderx #1#2#3 #4\relax{% \doind {fn}{\code{#3}}% Make entry in function index \begingroup \normalparens % notably, turn off `&' magic, which prevents % at least some C++ text from working \defname {\defheaderxcond#2\relax$$$#3}{#1}% \deftypefunargs {#4}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defmac == @deffn Macro X \def\defmac{\defparsebody\Edefmac\defmacx\defmacheader} X \def\defmacheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index \begingroup\defname {#1}{\putwordDefmac}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defspec == @deffn Special Form X \def\defspec{\defparsebody\Edefspec\defspecx\defspecheader} X \def\defspecheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index \begingroup\defname {#1}{\putwordDefspec}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defop CATEGORY CLASS OPERATION ARG... % \def\defop #1 {\def\defoptype{#1}% \defopparsebody\Edefop\defopx\defopheader\defoptype} % \def\defopheader #1#2#3{% \dosubind {fn}{\code{#2}}{\putwordon\ #1}% Make entry in function index \begingroup\defname {#2}{\defoptype\ \putwordon\ #1}% \defunargs {#3}\endgroup % } X % @deftypemethod CLASS RETURN-TYPE METHOD ARG... % \def\deftypemethod{% X \deftypemethparsebody\Edeftypemethod\deftypemethodx\deftypemethodheader} % % #1 is the class name, #2 the data type, #3 the method name, #4 the args. \def\deftypemethodheader#1#2#3#4{% X \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index X \begingroup X \defname{\defheaderxcond#2\relax$$$#3}{\putwordMethodon\ \code{#1}}% X \deftypefunargs{#4}% X \endgroup } X % @deftypeivar CLASS TYPE VARNAME % \def\deftypeivar{% X \deftypemethparsebody\Edeftypeivar\deftypeivarx\deftypeivarheader} % % #1 is the class name, #2 the data type, #3 the variable name. \def\deftypeivarheader#1#2#3{% X \dosubind{vr}{\code{#3}}{\putwordof\ \code{#1}}% entry in variable index X \begingroup X \defname{#3}{\putwordInstanceVariableof\ \code{#1}}% X \defvarargs{#3}% X \endgroup } X % @defmethod == @defop Method % \def\defmethod{\defmethparsebody\Edefmethod\defmethodx\defmethodheader} % % #1 is the class name, #2 the method name, #3 the args. \def\defmethodheader#1#2#3{% X \dosubind{fn}{\code{#2}}{\putwordon\ \code{#1}}% entry in function index X \begingroup X \defname{#2}{\putwordMethodon\ \code{#1}}% X \defunargs{#3}% X \endgroup } X % @defcv {Class Option} foo-class foo-flag X \def\defcv #1 {\def\defcvtype{#1}% \defopvarparsebody\Edefcv\defcvx\defcvarheader\defcvtype} X \def\defcvarheader #1#2#3{% \dosubind {vr}{\code{#2}}{\putwordof\ #1}% Make entry in var index \begingroup\defname {#2}{\defcvtype\ \putwordof\ #1}% \defvarargs {#3}\endgroup % } X % @defivar CLASS VARNAME == @defcv {Instance Variable} CLASS VARNAME % \def\defivar{\defvrparsebody\Edefivar\defivarx\defivarheader} % \def\defivarheader#1#2#3{% X \dosubind {vr}{\code{#2}}{\putwordof\ #1}% entry in var index X \begingroup X \defname{#2}{\putwordInstanceVariableof\ #1}% X \defvarargs{#3}% X \endgroup } X % @defvar % First, define the processing that is wanted for arguments of @defvar. % This is actually simple: just print them in roman. % This must expand the args and terminate the paragraph they make up \def\defvarargs #1{\normalparens #1% \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak} X % @defvr Counter foo-count X \def\defvr{\defvrparsebody\Edefvr\defvrx\defvrheader} X \def\defvrheader #1#2#3{\doind {vr}{\code{#2}}% \begingroup\defname {#2}{#1}\defvarargs{#3}\endgroup} X % @defvar == @defvr Variable X \def\defvar{\defvarparsebody\Edefvar\defvarx\defvarheader} X \def\defvarheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index \begingroup\defname {#1}{\putwordDefvar}% \defvarargs {#2}\endgroup % } X % @defopt == @defvr {User Option} X \def\defopt{\defvarparsebody\Edefopt\defoptx\defoptheader} X \def\defoptheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index \begingroup\defname {#1}{\putwordDefopt}% \defvarargs {#2}\endgroup % } X % @deftypevar int foobar X \def\deftypevar{\defvarparsebody\Edeftypevar\deftypevarx\deftypevarheader} X % #1 is the data type. #2 is the name, perhaps followed by text that % is actually part of the data type, which should not be put into the index. \def\deftypevarheader #1#2{% \dovarind#2 \relax% Make entry in variables index \begingroup\defname {\defheaderxcond#1\relax$$$#2}{\putwordDeftypevar}% \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak \endgroup} \def\dovarind#1 #2\relax{\doind{vr}{\code{#1}}} X % @deftypevr {Global Flag} int enable X \def\deftypevr{\defvrparsebody\Edeftypevr\deftypevrx\deftypevrheader} X \def\deftypevrheader #1#2#3{\dovarind#3 \relax% \begingroup\defname {\defheaderxcond#2\relax$$$#3}{#1} \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak \endgroup} X % Now define @deftp % Args are printed in bold, a slight difference from @defvar. X \def\deftpargs #1{\bf \defvarargs{#1}} X % @deftp Class window height width ... X \def\deftp{\deftpparsebody\Edeftp\deftpx\deftpheader} X \def\deftpheader #1#2#3{\doind {tp}{\code{#2}}% \begingroup\defname {#2}{#1}\deftpargs{#3}\endgroup} X % These definitions are used if you use @defunx (etc.) % anywhere other than immediately after a @defun or @defunx. % \def\defcvx#1 {\errmessage{@defcvx in invalid context}} \def\deffnx#1 {\errmessage{@deffnx in invalid context}} \def\defivarx#1 {\errmessage{@defivarx in invalid context}} \def\defmacx#1 {\errmessage{@defmacx in invalid context}} \def\defmethodx#1 {\errmessage{@defmethodx in invalid context}} \def\defoptx #1 {\errmessage{@defoptx in invalid context}} \def\defopx#1 {\errmessage{@defopx in invalid context}} \def\defspecx#1 {\errmessage{@defspecx in invalid context}} \def\deftpx#1 {\errmessage{@deftpx in invalid context}} \def\deftypefnx#1 {\errmessage{@deftypefnx in invalid context}} \def\deftypefunx#1 {\errmessage{@deftypefunx in invalid context}} \def\deftypeivarx#1 {\errmessage{@deftypeivarx in invalid context}} \def\deftypemethodx#1 {\errmessage{@deftypemethodx in invalid context}} \def\deftypevarx#1 {\errmessage{@deftypevarx in invalid context}} \def\deftypevrx#1 {\errmessage{@deftypevrx in invalid context}} \def\defunx#1 {\errmessage{@defunx in invalid context}} \def\defvarx#1 {\errmessage{@defvarx in invalid context}} \def\defvrx#1 {\errmessage{@defvrx in invalid context}} X X \message{macros,} % @macro. X % To do this right we need a feature of e-TeX, \scantokens, % which we arrange to emulate with a temporary file in ordinary TeX. \ifx\eTeXversion\undefined X \newwrite\macscribble X \def\scanmacro#1{% X \begingroup \newlinechar`\^^M X % Undo catcode changes of \startcontents and \doprintindex X \catcode`\@=0 \catcode`\\=12 \escapechar=`\@ X % Append \endinput to make sure that TeX does not see the ending newline. X \toks0={#1\endinput}% X \immediate\openout\macscribble=\jobname.tmp X \immediate\write\macscribble{\the\toks0}% X \immediate\closeout\macscribble X \let\xeatspaces\eatspaces X \input \jobname.tmp X \endgroup } \else \def\scanmacro#1{% \begingroup \newlinechar`\^^M % Undo catcode changes of \startcontents and \doprintindex \catcode`\@=0 \catcode`\\=12 \escapechar=`\@ \let\xeatspaces\eatspaces\scantokens{#1\endinput}\endgroup} \fi X \newcount\paramno % Count of parameters \newtoks\macname % Macro name \newif\ifrecursive % Is it recursive? \def\macrolist{} % List of all defined macros in the form X % \do\macro1\do\macro2... X % Utility routines. % Thisdoes \let #1 = #2, except with \csnames. \def\cslet#1#2{% \expandafter\expandafter \expandafter\let \expandafter\expandafter \csname#1\endcsname \csname#2\endcsname} X % Trim leading and trailing spaces off a string. % Concepts from aro-bend problem 15 (see CTAN). {\catcode`\@=11 \gdef\eatspaces #1{\expandafter\trim@\expandafter{#1 }} \gdef\trim@ #1{\trim@@ @#1 @ #1 @ @@} \gdef\trim@@ #1@ #2@ #3@@{\trim@@@\empty #2 @} \def\unbrace#1{#1} \unbrace{\gdef\trim@@@ #1 } #2@{#1} } X % Trim a single trailing ^^M off a string. {\catcode`\^^M=12\catcode`\Q=3% \gdef\eatcr #1{\eatcra #1Q^^MQ}% \gdef\eatcra#1^^MQ{\eatcrb#1Q}% \gdef\eatcrb#1Q#2Q{#1}% } X % Macro bodies are absorbed as an argument in a context where % all characters are catcode 10, 11 or 12, except \ which is active % (as in normal texinfo). It is necessary to change the definition of \. X % It's necessary to have hard CRs when the macro is executed. This is % done by making ^^M (\endlinechar) catcode 12 when reading the macro % body, and then making it the \newlinechar in \scanmacro. X \def\macrobodyctxt{% X \catcode`\~=12 X \catcode`\^=12 X \catcode`\_=12 X \catcode`\|=12 X \catcode`\<=12 X \catcode`\>=12 X \catcode`\+=12 X \catcode`\{=12 X \catcode`\}=12 X \catcode`\@=12 X \catcode`\^^M=12 X \usembodybackslash} X \def\macroargctxt{% X \catcode`\~=12 X \catcode`\^=12 X \catcode`\_=12 X \catcode`\|=12 X \catcode`\<=12 X \catcode`\>=12 X \catcode`\+=12 X \catcode`\@=12 X \catcode`\\=12} X % \mbodybackslash is the definition of \ in @macro bodies. % It maps \foo\ => \csname macarg.foo\endcsname => #N % where N is the macro parameter number. % We define \csname macarg.\endcsname to be \realbackslash, so % \\ in macro replacement text gets you a backslash. X {\catcode`@=0 @catcode`@\=@active X @gdef@usembodybackslash{@let\=@mbodybackslash} X @gdef@mbodybackslash#1\{@csname macarg.#1@endcsname} } \expandafter\def\csname macarg.\endcsname{\realbackslash} X \def\macro{\recursivefalse\parsearg\macroxxx} \def\rmacro{\recursivetrue\parsearg\macroxxx} X \def\macroxxx#1{% X \getargs{#1}% now \macname is the macname and \argl the arglist X \ifx\argl\empty % no arguments X \paramno=0% X \else X \expandafter\parsemargdef \argl;% X \fi X \if1\csname ismacro.\the\macname\endcsname X \message{Warning: redefining \the\macname}% X \else X \expandafter\ifx\csname \the\macname\endcsname \relax X \else \errmessage{The name \the\macname\space is reserved}\fi X \global\cslet{macsave.\the\macname}{\the\macname}% X \global\expandafter\let\csname ismacro.\the\macname\endcsname=1% X % Add the macroname to \macrolist X \toks0 = \expandafter{\macrolist\do}% X \xdef\macrolist{\the\toks0 X \expandafter\noexpand\csname\the\macname\endcsname}% X \fi X \begingroup \macrobodyctxt X \ifrecursive \expandafter\parsermacbody X \else \expandafter\parsemacbody X \fi} X \def\unmacro{\parsearg\unmacroxxx} \def\unmacroxxx#1{% X \if1\csname ismacro.#1\endcsname X \global\cslet{#1}{macsave.#1}% X \global\expandafter\let \csname ismacro.#1\endcsname=0% X % Remove the macro name from \macrolist X \begingroup X \edef\tempa{\expandafter\noexpand\csname#1\endcsname}% X \def\do##1{% X \def\tempb{##1}% X \ifx\tempa\tempb X % remove this X \else X \toks0 = \expandafter{\newmacrolist\do}% X \edef\newmacrolist{\the\toks0\expandafter\noexpand\tempa}% X \fi}% X \def\newmacrolist{}% X % Execute macro list to define \newmacrolist X \macrolist X \global\let\macrolist\newmacrolist X \endgroup X \else X \errmessage{Macro #1 not defined}% X \fi } X % This makes use of the obscure feature that if the last token of a % is #, then the preceding argument is delimited by % an opening brace, and that opening brace is not consumed. \def\getargs#1{\getargsxxx#1{}} \def\getargsxxx#1#{\getmacname #1 \relax\getmacargs} \def\getmacname #1 #2\relax{\macname={#1}} \def\getmacargs#1{\def\argl{#1}} X % Parse the optional {params} list. Set up \paramno and \paramlist % so \defmacro knows what to do. Define \macarg.blah for each blah % in the params list, to be ##N where N is the position in that list. % That gets used by \mbodybackslash (above). X % We need to get `macro parameter char #' into several definitions. % The technique used is stolen from LaTeX: let \hash be something % unexpandable, insert that wherever you need a #, and then redefine % it to # just before using the token list produced. % % The same technique is used to protect \eatspaces till just before % the macro is used. X \def\parsemargdef#1;{\paramno=0\def\paramlist{}% X \let\hash\relax\let\xeatspaces\relax\parsemargdefxxx#1,;,} \def\parsemargdefxxx#1,{% X \if#1;\let\next=\relax X \else \let\next=\parsemargdefxxx X \advance\paramno by 1% X \expandafter\edef\csname macarg.\eatspaces{#1}\endcsname X {\xeatspaces{\hash\the\paramno}}% X \edef\paramlist{\paramlist\hash\the\paramno,}% X \fi\next} X % These two commands read recursive and nonrecursive macro bodies. % (They're different since rec and nonrec macros end differently.) X \long\def\parsemacbody#1@end macro% {\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% \long\def\parsermacbody#1@end rmacro% {\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% X % This defines the macro itself. There are six cases: recursive and % nonrecursive macros of zero, one, and many arguments. % Much magic with \expandafter here. % \xdef is used so that macro definitions will survive the file % they're defined in; @include reads the file inside a group. \def\defmacro{% X \let\hash=##% convert placeholders to macro parameter chars X \ifrecursive X \ifcase\paramno X % 0 X \expandafter\xdef\csname\the\macname\endcsname{% X \noexpand\scanmacro{\temp}}% X \or % 1 X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \noexpand\braceorline X \expandafter\noexpand\csname\the\macname xxx\endcsname}% X \expandafter\xdef\csname\the\macname xxx\endcsname##1{% X \egroup\noexpand\scanmacro{\temp}}% X \else % many X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \noexpand\csname\the\macname xx\endcsname}% X \expandafter\xdef\csname\the\macname xx\endcsname##1{% X \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% X \expandafter\expandafter X \expandafter\xdef X \expandafter\expandafter X \csname\the\macname xxx\endcsname X \paramlist{\egroup\noexpand\scanmacro{\temp}}% X \fi X \else X \ifcase\paramno X % 0 X \expandafter\xdef\csname\the\macname\endcsname{% X \noexpand\norecurse{\the\macname}% X \noexpand\scanmacro{\temp}\egroup}% X \or % 1 X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \noexpand\braceorline X \expandafter\noexpand\csname\the\macname xxx\endcsname}% X \expandafter\xdef\csname\the\macname xxx\endcsname##1{% X \egroup X \noexpand\norecurse{\the\macname}% X \noexpand\scanmacro{\temp}\egroup}% X \else % many X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \expandafter\noexpand\csname\the\macname xx\endcsname}% X \expandafter\xdef\csname\the\macname xx\endcsname##1{% X \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% X \expandafter\expandafter X \expandafter\xdef X \expandafter\expandafter X \csname\the\macname xxx\endcsname X \paramlist{% X \egroup X \noexpand\norecurse{\the\macname}% X \noexpand\scanmacro{\temp}\egroup}% X \fi X \fi} X \def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}} X % \braceorline decides whether the next nonwhitespace character is a % {. If so it reads up to the closing }, if not, it reads the whole % line. Whatever was read is then fed to the next control sequence % as an argument (by \parsebrace or \parsearg) \def\braceorline#1{\let\next=#1\futurelet\nchar\braceorlinexxx} \def\braceorlinexxx{% X \ifx\nchar\bgroup\else X \expandafter\parsearg X \fi \next} X % We mant to disable all macros during \shipout so that they are not % expanded by \write. \def\turnoffmacros{\begingroup \def\do##1{\let\noexpand##1=\relax}% X \edef\next{\macrolist}\expandafter\endgroup\next} X X % @alias. \def\alias#1=#2{\gdef#1{#2}} X X \message{cross references,} % @xref etc. X \newwrite\auxfile X \newif\ifhavexrefs % True if xref values are known. \newif\ifwarnedxrefs % True if we warned once that they aren't known. X % @inforef is relatively simple. \def\inforef #1{\inforefzzz #1,,,,**} \def\inforefzzz #1,#2,#3,#4**{\putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}}, X node \samp{\ignorespaces#1{}}} X % @node's job is to define \lastnode. \def\node{\ENVcheck\parsearg\nodezzz} \def\nodezzz#1{\nodexxx [#1,]} \def\nodexxx[#1,#2]{\gdef\lastnode{#1}} \let\nwnode=\node \let\lastnode=\relax X % The sectioning commands (@chapter, etc.) call these. \def\donoderef{% X \ifx\lastnode\relax\else X \expandafter\expandafter\expandafter\setref{\lastnode}% X {Ysectionnumberandtype}% X \global\let\lastnode=\relax X \fi } \def\unnumbnoderef{% X \ifx\lastnode\relax\else X \expandafter\expandafter\expandafter\setref{\lastnode}{Ynothing}% X \global\let\lastnode=\relax X \fi } \def\appendixnoderef{% X \ifx\lastnode\relax\else X \expandafter\expandafter\expandafter\setref{\lastnode}% X {Yappendixletterandtype}% X \global\let\lastnode=\relax X \fi } X X % @anchor{NAME} -- define xref target at arbitrary point. % { \catcode`\@ = 11 % From latex.ltx, to make @anchor truely invisible. \newdimen\@savsk \newcount\@savsf \gdef\@bsphack{\relax X \ifhmode \@savsk\lastskip \@savsf\spacefactor \fi } \gdef\@esphack{\relax X \ifhmode \spacefactor\@savsf X \ifdim\@savsk>\z@ \ignorespaces \fi X \fi } \gdef\anchor#1{\@bsphack \setref{#1}{Ynothing}\@esphack} } X % \setref{NAME}{SNT} defines a cross-reference point NAME, namely % NAME-title, NAME-pg, and NAME-SNT. Called from \foonoderef. We have % to set \indexdummies so commands such as @code in a section title % aren't expanded. It would be nicer not to expand the titles in the % first place, but there's so many layers that that is hard to do. % \def\setref#1#2{{% X \indexdummies X \ifpdf \pdfmkdest{#1}\fi X \dosetq{#1-title}{Ytitle}% X \dosetq{#1-pg}{Ypagenumber}% X \dosetq{#1-snt}{#2}% }} X % @xref, @pxref, and @ref generate cross-references. For \xrefX, #1 is % the node name, #2 the name of the Info cross-reference, #3 the printed % node name, #4 the name of the Info file, #5 the name of the printed % manual. All but the node name can be omitted. % \def\pxref#1{\putwordsee{} \xrefX[#1,,,,,,,]} \def\xref#1{\putwordSee{} \xrefX[#1,,,,,,,]} \def\ref#1{\xrefX[#1,,,,,,,]} \def\xrefX[#1,#2,#3,#4,#5,#6]{\begingroup X \def\printedmanual{\ignorespaces #5}% X \def\printednodename{\ignorespaces #3}% X \setbox1=\hbox{\printedmanual}% X \setbox0=\hbox{\printednodename}% X \ifdim \wd0 = 0pt X % No printed node name was explicitly given. X \expandafter\ifx\csname SETxref-automatic-section-title\endcsname\relax X % Use the node name inside the square brackets. X \def\printednodename{\ignorespaces #1}% X \else X % Use the actual chapter/section title appear inside X % the square brackets. Use the real section title if we have it. X \ifdim \wd1 > 0pt X % It is in another manual, so we don't have it. X \def\printednodename{\ignorespaces #1}% X \else X \ifhavexrefs X % We know the real title if we have the xref values. X \def\printednodename{\refx{#1-title}{}}% X \else X % Otherwise just copy the Info node name. X \def\printednodename{\ignorespaces #1}% X \fi% X \fi X \fi X \fi X % X % If we use \unhbox0 and \unhbox1 to print the node names, TeX does not X % insert empty discretionaries after hyphens, which means that it will X % not find a line break at a hyphen in a node names. Since some manuals X % are best written with fairly long node names, containing hyphens, this X % is a loss. Therefore, we give the text of the node name again, so it X % is as if TeX is seeing it for the first time. X \ifpdf X \leavevmode X \getfilename{#4}% X \ifnum\filenamelength>0 X \pdfannotlink attr{/Border [0 0 0]}% X goto file{\the\filename.pdf} name{#1@}% X \else X \pdfannotlink attr{/Border [0 0 0]}% X goto name{#1@}% X \fi X \BlueGreen X \fi X % X \ifdim \wd1 > 0pt X \putwordsection{} ``\printednodename'' \putwordin{} \cite{\printedmanual}% X \else X % _ (for example) has to be the character _ for the purposes of the X % control sequence corresponding to the node, but it has to expand X % into the usual \leavevmode...\vrule stuff for purposes of X % printing. So we \turnoffactive for the \refx-snt, back on for the X % printing, back off for the \refx-pg. X {\normalturnoffactive X % Only output a following space if the -snt ref is nonempty; for X % @unnumbered and @anchor, it won't be. X \setbox2 = \hbox{\ignorespaces \refx{#1-snt}{}}% X \ifdim \wd2 > 0pt \refx{#1-snt}\space\fi X }% X % [mynode], X [\printednodename],\space X % page 3 X \turnoffactive \putwordpage\tie\refx{#1-pg}{}% X \fi X \ifpdf \Black\pdfendlink \fi \endgroup} X % \dosetq is the interface for calls from other macros X % Use \normalturnoffactive so that punctuation chars such as underscore % and backslash work in node names. (\turnoffactive doesn't do \.) \def\dosetq#1#2{% X {\let\folio=0% X \normalturnoffactive X \edef\next{\write\auxfile{\internalsetq{#1}{#2}}}% X \iflinks X \next X \fi X }% } X % \internalsetq {foo}{page} expands into % CHARACTERS 'xrdef {foo}{...expansion of \Ypage...} % When the aux file is read, ' is the escape character X \def\internalsetq #1#2{'xrdef {#1}{\csname #2\endcsname}} X % Things to be expanded by \internalsetq X \def\Ypagenumber{\folio} X \def\Ytitle{\thissection} X \def\Ynothing{} X \def\Ysectionnumberandtype{% \ifnum\secno=0 \putwordChapter\xreftie\the\chapno % \else \ifnum \subsecno=0 \putwordSection\xreftie\the\chapno.\the\secno % \else \ifnum \subsubsecno=0 % \putwordSection\xreftie\the\chapno.\the\secno.\the\subsecno % \else % \putwordSection\xreftie\the\chapno.\the\secno.\the\subsecno.\the\subsubsecno % \fi \fi \fi } X \def\Yappendixletterandtype{% \ifnum\secno=0 \putwordAppendix\xreftie'char\the\appendixno{}% \else \ifnum \subsecno=0 \putwordSection\xreftie'char\the\appendixno.\the\secno % \else \ifnum \subsubsecno=0 % \putwordSection\xreftie'char\the\appendixno.\the\secno.\the\subsecno % \else % \putwordSection\xreftie'char\the\appendixno.\the\secno.\the\subsecno.\the\subsubsecno % \fi \fi \fi } X \gdef\xreftie{'tie} X % Use TeX 3.0's \inputlineno to get the line number, for better error % messages, but if we're using an old version of TeX, don't do anything. % \ifx\inputlineno\thisisundefined X \let\linenumber = \empty % Non-3.0. \else X \def\linenumber{\the\inputlineno:\space} \fi X % Define \refx{NAME}{SUFFIX} to reference a cross-reference string named NAME. % If its value is nonempty, SUFFIX is output afterward. X \def\refx#1#2{% X \expandafter\ifx\csname X#1\endcsname\relax X % If not defined, say something at least. X \angleleft un\-de\-fined\angleright X \iflinks X \ifhavexrefs X \message{\linenumber Undefined cross reference `#1'.}% X \else X \ifwarnedxrefs\else X \global\warnedxrefstrue X \message{Cross reference values unknown; you must run TeX again.}% X \fi X \fi X \fi X \else X % It's defined, so just use it. X \csname X#1\endcsname X \fi X #2% Output the suffix in any case. } X % This is the macro invoked by entries in the aux file. % \def\xrdef#1{\begingroup X % Reenable \ as an escape while reading the second argument. X \catcode`\\ = 0 X \afterassignment\endgroup X \expandafter\gdef\csname X#1\endcsname } X % Read the last existing aux file, if any. No error if none exists. \def\readauxfile{\begingroup X \catcode`\^^@=\other X \catcode`\^^A=\other X \catcode`\^^B=\other X \catcode`\^^C=\other X \catcode`\^^D=\other X \catcode`\^^E=\other X \catcode`\^^F=\other X \catcode`\^^G=\other X \catcode`\^^H=\other X \catcode`\^^K=\other X \catcode`\^^L=\other X \catcode`\^^N=\other X \catcode`\^^P=\other X \catcode`\^^Q=\other X \catcode`\^^R=\other X \catcode`\^^S=\other X \catcode`\^^T=\other X \catcode`\^^U=\other X \catcode`\^^V=\other X \catcode`\^^W=\other X \catcode`\^^X=\other X \catcode`\^^Z=\other X \catcode`\^^[=\other X \catcode`\^^\=\other X \catcode`\^^]=\other X \catcode`\^^^=\other X \catcode`\^^_=\other X \catcode`\@=\other X \catcode`\^=\other X % It was suggested to define this as 7, which would allow ^^e4 etc. X % in xref tags, i.e., node names. But since ^^e4 notation isn't X % supported in the main text, it doesn't seem desirable. Furthermore, X % that is not enough: for node names that actually contain a ^ X % character, we would end up writing a line like this: 'xrdef {'hat X % b-title}{'hat b} and \xrdef does a \csname...\endcsname on the first X % argument, and \hat is not an expandable control sequence. It could X % all be worked out, but why? Either we support ^^ or we don't. X % X % The other change necessary for this was to define \auxhat: X % \def\auxhat{\def^{'hat }}% extra space so ok if followed by letter X % and then to call \auxhat in \setq. X % X \catcode`\~=\other X \catcode`\[=\other X \catcode`\]=\other X \catcode`\"=\other X \catcode`\_=\other X \catcode`\|=\other X \catcode`\<=\other X \catcode`\>=\other X \catcode`\$=\other X \catcode`\#=\other X \catcode`\&=\other X \catcode`+=\other % avoid \+ for paranoia even though we've turned it off X % Make the characters 128-255 be printing characters X {% X \count 1=128 X \def\loop{% X \catcode\count 1=\other X \advance\count 1 by 1 X \ifnum \count 1<256 \loop \fi X }% X }% X % The aux file uses ' as the escape (for now). X % Turn off \ as an escape so we do not lose on X % entries which were dumped with control sequences in their names. X % For example, 'xrdef {$\leq $-fun}{page ...} made by @defun ^^ X % Reference to such entries still does not work the way one would wish, X % but at least they do not bomb out when the aux file is read in. X \catcode`\{=1 X \catcode`\}=2 X \catcode`\%=\other X \catcode`\'=0 X \catcode`\\=\other X % X \openin 1 \jobname.aux X \ifeof 1 \else X \closein 1 X \input \jobname.aux X \global\havexrefstrue X \global\warnedobstrue X \fi X % Open the new aux file. TeX will close it automatically at exit. X \openout\auxfile=\jobname.aux \endgroup} X X % Footnotes. X \newcount \footnoteno X % The trailing space in the following definition for supereject is % vital for proper filling; pages come out unaligned when you do a % pagealignmacro call if that space before the closing brace is % removed. (Generally, numeric constants should always be followed by a % space to prevent strange expansion errors.) \def\supereject{\par\penalty -20000\footnoteno =0 } X % @footnotestyle is meaningful for info output only. \let\footnotestyle=\comment X \let\ptexfootnote=\footnote X {\catcode `\@=11 % % Auto-number footnotes. Otherwise like plain. \gdef\footnote{% X \global\advance\footnoteno by \@ne X \edef\thisfootno{$^{\the\footnoteno}$}% X % X % In case the footnote comes at the end of a sentence, preserve the X % extra spacing after we do the footnote number. X \let\@sf\empty X \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi X % X % Remove inadvertent blank space before typesetting the footnote number. X \unskip X \thisfootno\@sf X \footnotezzz }% X % Don't bother with the trickery in plain.tex to not require the % footnote text as a parameter. Our footnotes don't need to be so general. % % Oh yes, they do; otherwise, @ifset and anything else that uses % \parseargline fail inside footnotes because the tokens are fixed when % the footnote is read. --karl, 16nov96. % \long\gdef\footnotezzz{\insert\footins\bgroup X % We want to typeset this text as a normal paragraph, even if the X % footnote reference occurs in (for example) a display environment. X % So reset some parameters. X \interlinepenalty\interfootnotelinepenalty X \splittopskip\ht\strutbox % top baseline for broken footnotes X \splitmaxdepth\dp\strutbox X \floatingpenalty\@MM X \leftskip\z@skip X \rightskip\z@skip X \spaceskip\z@skip X \xspaceskip\z@skip X \parindent\defaultparindent X % X % Hang the footnote text off the number. X \hang X \textindent{\thisfootno}% X % X % Don't crash into the line above the footnote text. Since this X % expands into a box, it must come within the paragraph, lest it X % provide a place where TeX can split the footnote. X \footstrut X \futurelet\next\fo@t } \def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t X \else\let\next\f@t\fi \next} \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\strut\egroup} X }%end \catcode `\@=11 X % Set the baselineskip to #1, and the lineskip and strut size % correspondingly. There is no deep meaning behind these magic numbers % used as factors; they just match (closely enough) what Knuth defined. % \def\lineskipfactor{.08333} \def\strutheightpercent{.70833} \def\strutdepthpercent {.29167} % \def\setleading#1{% X \normalbaselineskip = #1\relax X \normallineskip = \lineskipfactor\normalbaselineskip X \normalbaselines X \setbox\strutbox =\hbox{% X \vrule width0pt height\strutheightpercent\baselineskip X depth \strutdepthpercent \baselineskip X }% } X % @| inserts a changebar to the left of the current line. It should % surround any changed text. This approach does *not* work if the % change spans more than two lines of output. To handle that, we would % have adopt a much more difficult approach (putting marks into the main % vertical list for the beginning and end of each change). % \def\|{% X % \vadjust can only be used in horizontal mode. X \leavevmode X % X % Append this vertical mode material after the current line in the output. X \vadjust{% X % We want to insert a rule with the height and depth of the current X % leading; that is exactly what \strutbox is supposed to record. X \vskip-\baselineskip X % X % \vadjust-items are inserted at the left edge of the type. So X % the \llap here moves out into the left-hand margin. X \llap{% X % X % For a thicker or thinner bar, change the `1pt'. X \vrule height\baselineskip width1pt X % X % This is the space between the bar and the text. X \hskip 12pt X }% X }% } X % For a final copy, take out the rectangles % that mark overfull boxes (in case you have decided % that the text looks ok even though it passes the margin). % \def\finalout{\overfullrule=0pt} X % @image. We use the macros from epsf.tex to support this. % If epsf.tex is not installed and @image is used, we complain. % % Check for and read epsf.tex up front. If we read it only at @image % time, we might be inside a group, and then its definitions would get % undone and the next image would fail. \openin 1 = epsf.tex \ifeof 1 \else X \closein 1 X % Do not bother showing banner with post-v2.7 epsf.tex (available in X % doc/epsf.tex until it shows up on ctan). X \def\epsfannounce{\toks0 = }% X \input epsf.tex \fi % % We will only complain once about lack of epsf.tex. \newif\ifwarnednoepsf \newhelp\noepsfhelp{epsf.tex must be installed for images to X work. It is also included in the Texinfo distribution, or you can get X it from ftp://tug.org/tex/epsf.tex.} % \def\image#1{% X \ifx\epsfbox\undefined X \ifwarnednoepsf \else X \errhelp = \noepsfhelp X \errmessage{epsf.tex not found, images will be ignored}% X \global\warnednoepsftrue X \fi X \else X \imagexxx #1,,,\finish X \fi } % % Arguments to @image: % #1 is (mandatory) image filename; we tack on .eps extension. % #2 is (optional) width, #3 is (optional) height. % #4 is just the usual extra ignored arg for parsing this stuff. \def\imagexxx#1,#2,#3,#4\finish{% X \ifx\pdfoutput\undefined X % \epsfbox itself resets \epsf?size at each figure. X \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi X \setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi X \begingroup X \catcode`\^^M = 5 % in case we're inside an example X % If the image is by itself, center it. X \ifvmode X \nobreak\bigskip X % Usually we'll have text after the image which will insert X % \parskip glue, so insert it here too to equalize the space X % above and below. X \nobreak\vskip\parskip X \nobreak X \centerline{\epsfbox{#1.eps}}% X \bigbreak X \else X % In the middle of a paragraph, no extra space. X \epsfbox{#1.eps}% X \fi X \endgroup X \else X \centerline{\pdfimage #1.pdf}% X \fi } X X \message{localization,} % and i18n. X % @documentlanguage is usually given very early, just after % @setfilename. If done too late, it may not override everything % properly. Single argument is the language abbreviation. % It would be nice if we could set up a hyphenation file here. % \def\documentlanguage{\parsearg\dodocumentlanguage} \def\dodocumentlanguage#1{% X \tex % read txi-??.tex file in plain TeX. X % Read the file if it exists. X \openin 1 txi-#1.tex X \ifeof1 X \errhelp = \nolanghelp X \errmessage{Cannot read language file txi-#1.tex}% X \let\temp = \relax X \else X \def\temp{\input txi-#1.tex }% X \fi X \temp X \endgroup } \newhelp\nolanghelp{The given language definition file cannot be found or is empty. Maybe you need to install it? In the current directory should work if nowhere else does.} X X % @documentencoding should change something in TeX eventually, most % likely, but for now just recognize it. \let\documentencoding = \comment X X % Page size parameters. % \newdimen\defaultparindent \defaultparindent = 15pt X \chapheadingskip = 15pt plus 4pt minus 2pt \secheadingskip = 12pt plus 3pt minus 2pt \subsecheadingskip = 9pt plus 2pt minus 2pt X % Prevent underfull vbox error messages. \vbadness = 10000 X % Don't be so finicky about underfull hboxes, either. \hbadness = 2000 X % Following George Bush, just get rid of widows and orphans. \widowpenalty=10000 \clubpenalty=10000 X % Use TeX 3.0's \emergencystretch to help line breaking, but if we're % using an old version of TeX, don't do anything. We want the amount of % stretch added to depend on the line length, hence the dependence on % \hsize. We call this whenever the paper size is set. % \def\setemergencystretch{% X \ifx\emergencystretch\thisisundefined X % Allow us to assign to \emergencystretch anyway. X \def\emergencystretch{\dimen0}% X \else X \emergencystretch = .15\hsize X \fi } X % Parameters in order: 1) textheight; 2) textwidth; 3) voffset; % 4) hoffset; 5) binding offset; 6) topskip. Then whoever calls us can % set \parskip and call \setleading for \baselineskip. % \def\internalpagesizes#1#2#3#4#5#6{% X \voffset = #3\relax X \topskip = #6\relax X \splittopskip = \topskip X % X \vsize = #1\relax X \advance\vsize by \topskip X \outervsize = \vsize X \advance\outervsize by 2\topandbottommargin X \pageheight = \vsize X % X \hsize = #2\relax X \outerhsize = \hsize X \advance\outerhsize by 0.5in X \pagewidth = \hsize X % X \normaloffset = #4\relax X \bindingoffset = #5\relax X % X \parindent = \defaultparindent X \setemergencystretch } X % @letterpaper (the default). \def\letterpaper{{\globaldefs = 1 X \parskip = 3pt plus 2pt minus 1pt X \setleading{13.2pt}% X % X % If page is nothing but text, make it come out even. X \internalpagesizes{46\baselineskip}{6in}{\voffset}{.25in}{\bindingoffset}{36pt}% }} X % Use @smallbook to reset parameters for 7x9.5 (or so) format. \def\smallbook{{\globaldefs = 1 X \parskip = 2pt plus 1pt X \setleading{12pt}% X % X \internalpagesizes{7.5in}{5.in}{\voffset}{.25in}{\bindingoffset}{16pt}% X % X \lispnarrowing = 0.3in X \tolerance = 700 X \hfuzz = 1pt X \contentsrightmargin = 0pt X \deftypemargin = 0pt X \defbodyindent = .5cm X % X \let\smalldisplay = \smalldisplayx X \let\smallexample = \smalllispx X \let\smallformat = \smallformatx X \let\smalllisp = \smalllispx }} X % Use @afourpaper to print on European A4 paper. \def\afourpaper{{\globaldefs = 1 X \setleading{12pt}% X \parskip = 3pt plus 2pt minus 1pt X % X \internalpagesizes{53\baselineskip}{160mm}{\voffset}{4mm}{\bindingoffset}{44pt}% X % X \tolerance = 700 X \hfuzz = 1pt }} X % A specific text layout, 24x15cm overall, intended for A4 paper. Top margin % 29mm, hence bottom margin 28mm, nominal side margin 3cm. \def\afourlatex{{\globaldefs = 1 X \setleading{13.6pt}% X % X \afourpaper X \internalpagesizes{237mm}{150mm}{3.6mm}{3.6mm}{3mm}{7mm}% X % X \globaldefs = 0 }} X % Use @afourwide to print on European A4 paper in wide format. \def\afourwide{% X \afourpaper X \internalpagesizes{9.5in}{6.5in}{\hoffset}{\normaloffset}{\bindingoffset}{7mm}% X % X \globaldefs = 0 } X % @pagesizes TEXTHEIGHT[,TEXTWIDTH] % Perhaps we should allow setting the margins, \topskip, \parskip, % and/or leading, also. Or perhaps we should compute them somehow. % \def\pagesizes{\parsearg\pagesizesxxx} \def\pagesizesxxx#1{\pagesizesyyy #1,,\finish} \def\pagesizesyyy#1,#2,#3\finish{{% X \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \hsize=#2\relax \fi X \globaldefs = 1 X % X \parskip = 3pt plus 2pt minus 1pt X \setleading{13.2pt}% X % X \internalpagesizes{#1}{\hsize}{\voffset}{\normaloffset}{\bindingoffset}{44pt}% }} X % Set default to letter. % \letterpaper X X \message{and turning on texinfo input format.} X % Define macros to output various characters with catcode for normal text. \catcode`\"=\other \catcode`\~=\other \catcode`\^=\other \catcode`\_=\other \catcode`\|=\other \catcode`\<=\other \catcode`\>=\other \catcode`\+=\other \catcode`\$=\other \def\normaldoublequote{"} \def\normaltilde{~} \def\normalcaret{^} \def\normalunderscore{_} \def\normalverticalbar{|} \def\normalless{<} \def\normalgreater{>} \def\normalplus{+} \def\normaldollar{$} X % This macro is used to make a character print one way in ttfont % where it can probably just be output, and another way in other fonts, % where something hairier probably needs to be done. % % #1 is what to print if we are indeed using \tt; #2 is what to print % otherwise. Since all the Computer Modern typewriter fonts have zero % interword stretch (and shrink), and it is reasonable to expect all % typewriter fonts to have this, we can check that font parameter. % \def\ifusingtt#1#2{\ifdim \fontdimen3\font=0pt #1\else #2\fi} X % Same as above, but check for italic font. Actually this also catches % non-italic slanted fonts since it is impossible to distinguish them from % italic fonts. But since this is only used by $ and it uses \sl anyway % this is not a problem. \def\ifusingit#1#2{\ifdim \fontdimen1\font>0pt #1\else #2\fi} X % Turn off all special characters except @ % (and those which the user can use as if they were ordinary). % Most of these we simply print from the \tt font, but for some, we can % use math or other variants that look better in normal text. X \catcode`\"=\active \def\activedoublequote{{\tt\char34}} \let"=\activedoublequote \catcode`\~=\active \def~{{\tt\char126}} \chardef\hat=`\^ \catcode`\^=\active \def^{{\tt \hat}} X \catcode`\_=\active \def_{\ifusingtt\normalunderscore\_} % Subroutine for the previous macro. \def\_{\leavevmode \kern.06em \vbox{\hrule width.3em height.1ex}} X \catcode`\|=\active \def|{{\tt\char124}} \chardef \less=`\< \catcode`\<=\active \def<{{\tt \less}} \chardef \gtr=`\> \catcode`\>=\active \def>{{\tt \gtr}} \catcode`\+=\active \def+{{\tt \char 43}} \catcode`\$=\active \def${\ifusingit{{\sl\$}}\normaldollar} %\catcode 27=\active %\def^^[{$\diamondsuit$} X % Set up an active definition for =, but don't enable it most of the time. {\catcode`\==\active \global\def={{\tt \char 61}}} X \catcode`+=\active \catcode`\_=\active X % If a .fmt file is being used, characters that might appear in a file % name cannot be active until we have parsed the command line. % So turn them off again, and have \everyjob (or @setfilename) turn them on. % \otherifyactive is called near the end of this file. \def\otherifyactive{\catcode`+=\other \catcode`\_=\other} X \catcode`\@=0 X % \rawbackslashxx output one backslash character in current font \global\chardef\rawbackslashxx=`\\ %{\catcode`\\=\other %@gdef@rawbackslashxx{\}} X % \rawbackslash redefines \ as input to do \rawbackslashxx. {\catcode`\\=\active @gdef@rawbackslash{@let\=@rawbackslashxx }} X % \normalbackslash outputs one backslash in fixed width font. \def\normalbackslash{{\tt\rawbackslashxx}} X % \catcode 17=0 % Define control-q \catcode`\\=\active X % Used sometimes to turn off (effectively) the active characters % even after parsing them. @def@turnoffactive{@let"=@normaldoublequote @let\=@realbackslash @let~=@normaltilde @let^=@normalcaret @let_=@normalunderscore @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater @let+=@normalplus @let$=@normaldollar} X @def@normalturnoffactive{@let"=@normaldoublequote @let\=@normalbackslash @let~=@normaltilde @let^=@normalcaret @let_=@normalunderscore @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater @let+=@normalplus @let$=@normaldollar} X % Make _ and + \other characters, temporarily. % This is canceled by @fixbackslash. @otherifyactive X % If a .fmt file is being used, we don't want the `\input texinfo' to show up. % That is what \eatinput is for; after that, the `\' should revert to printing % a backslash. % @gdef@eatinput input texinfo{@fixbackslash} @global@let\ = @eatinput X % On the other hand, perhaps the file did not have a `\input texinfo'. Then % the first `\{ in the file would cause an error. This macro tries to fix % that, assuming it is called before the first `\' could plausibly occur. % Also back turn on active characters that might appear in the input % file name, in case not using a pre-dumped format. % @gdef@fixbackslash{% X @ifx\@eatinput @let\ = @normalbackslash @fi X @catcode`+=@active X @catcode`@_=@active } X % Say @foo, not \foo, in error messages. @escapechar = `@@ X % These look ok in all fonts, so just make them not special. @catcode`@& = @other @catcode`@# = @other @catcode`@% = @other X @c Set initial fonts. @textfonts @rm X X @c Local variables: @c eval: (add-hook 'write-file-hooks 'time-stamp) @c page-delimiter: "^\\\\message" @c time-stamp-start: "def\\\\texinfoversion{" @c time-stamp-format: "%:y-%02m-%02d.%H" @c time-stamp-end: "}" @c End: SHAR_EOF $shar_touch -am 0507115499 'tar-1.13/doc/texinfo.tex' && chmod 0444 'tar-1.13/doc/texinfo.tex' || $echo 'restore of' 'tar-1.13/doc/texinfo.tex' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/texinfo.tex:' 'MD5 check failed' 839cda950ce6188656e829d325f94fda tar-1.13/doc/texinfo.tex SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/texinfo.tex'`" test 194985 -eq "$shar_count" || $echo 'tar-1.13/doc/texinfo.tex:' 'original size' '194985,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/version.texi ============== if test -f 'tar-1.13/doc/version.texi' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/version.texi' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/version.texi' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/version.texi' && @set UPDATED 16 June 1999 @set EDITION 1.13 @set VERSION 1.13 SHAR_EOF $shar_touch -am 0702170499 'tar-1.13/doc/version.texi' && chmod 0664 'tar-1.13/doc/version.texi' || $echo 'restore of' 'tar-1.13/doc/version.texi' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/version.texi:' 'MD5 check failed' 716d2198e7725f86474e5ce0e934a35f tar-1.13/doc/version.texi SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/version.texi'`" test 62 -eq "$shar_count" || $echo 'tar-1.13/doc/version.texi:' 'original size' '62,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.texi ============== if test -f 'tar-1.13/doc/tar.texi' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.texi' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.texi' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/tar.texi' && \input texinfo @c %**start of header @setfilename tar.info @settitle GNU tar @finalout @smallbook @c %**end of header X @c ====================================================================== @c This document has three levels of rendition: PUBLISH, DISTRIB or PROOF, @c as decided by @set symbols. The PUBLISH rendition does not show @c notes or marks asking for revision. Most users will prefer having more @c information, even if this information is not fully revised for adequacy, @c so DISTRIB is the default for tar distributions. The PROOF rendition @c show all marks to the point of ugliness, but is nevertheless useful to @c those working on the manual itself. @c ====================================================================== X @ifclear PUBLISH @ifclear DISTRIB @ifclear PROOF @set DISTRIB @end ifclear @end ifclear @end ifclear X @ifset PUBLISH @set RENDITION The book, version @end ifset X @ifset DISTRIB @set RENDITION FTP release, version @end ifset X @ifset PROOF @set RENDITION Proof reading version @end ifset X @c --------------------------------------------------------------------- @c The @FIXME's, @UNREVISED and @c comments are part Fran@,{c}ois's work @c plan. These annotations are somewhat precious to him; he asks that I @c do not alter them inconsiderately. Much work is needed for GNU tar @c internals (the sources, the programs themselves). Revising the @c adequacy of the manual while revising the sources, and cleaning them @c both at the same time, seems to him like a good way to proceed. @c --------------------------------------------------------------------- X @c Output marks for nodes needing revision, but not in PUBLISH rendition. X @macro UNREVISED @ifclear PUBLISH @quotation @emph{(This message will disappear, once this node revised.)} @end quotation @end ifclear @end macro X @c Output various FIXME information only in PROOF rendition. X @macro FIXME{string} @allow-recursion @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @macro FIXME-ref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @macro FIXME-pxref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @macro FIXME-xref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @c @macro option{entry} @c @quote-arg @c @opindex{--\entry\} @c @value{\entry\} @c @end macro X @set op-absolute-names @kbd{--absolute-names} (@kbd{-P}) @set ref-absolute-names @ref{absolute} @set xref-absolute-names @xref{absolute} @set pxref-absolute-names @pxref{absolute} X @set op-after-date @kbd{--after-date=@var{date}} (@kbd{--newer=@var{date}}, @kbd{-N @var{date}}) @set ref-after-date @ref{after} @set xref-after-date @xref{after} @set pxref-after-date @pxref{after} X @set op-append @kbd{--append} (@kbd{-r}) @set ref-append @ref{add} @set xref-append @xref{add} @set pxref-append @pxref{add} X @set op-atime-preserve @kbd{--atime-preserve} @set ref-atime-preserve @ref{Attributes} @set xref-atime-preserve @xref{Attributes} @set pxref-atime-preserve @pxref{Attributes} X @set op-backup @kbd{--backup} @set ref-backup @ref{Backup options} @set xref-backup @xref{Backup options} @set pxref-backup @pxref{Backup options} X @set op-block-number @kbd{--block-number} (@kbd{-R}) @set ref-block-number @ref{verbose} @set xref-block-number @xref{verbose} @set pxref-block-number @pxref{verbose} X @set op-blocking-factor @kbd{--blocking-factor=@var{512-size}} (@kbd{-b @var{512-size}}) @set ref-blocking-factor @ref{Blocking Factor} @set xref-blocking-factor @xref{Blocking Factor} @set pxref-blocking-factor @pxref{Blocking Factor} X @set op-checkpoint @kbd{--checkpoint} @set ref-checkpoint @ref{verbose} @set xref-checkpoint @xref{verbose} @set pxref-checkpoint @pxref{verbose} X @set op-compare @kbd{--compare} (@kbd{--diff}, @kbd{-d}) @set ref-compare @ref{compare} @set xref-compare @xref{compare} @set pxref-compare @pxref{compare} X @set op-compress @kbd{--compress} (@kbd{--uncompress}, @kbd{-Z}) @set ref-compress @ref{gzip} @set xref-compress @xref{gzip} @set pxref-compress @pxref{gzip} X @set op-concatenate @kbd{--concatenate} (@kbd{--catenate}, @kbd{-A}) @set ref-concatenate @ref{concatenate} @set xref-concatenate @xref{concatenate} @set pxref-concatenate @pxref{concatenate} X @set op-create @kbd{--create} (@kbd{-c}) @set ref-create @ref{create} @set xref-create @xref{create} @set pxref-create @pxref{create} X @set op-delete @kbd{--delete} @set ref-delete @ref{delete} @set xref-delete @xref{delete} @set pxref-delete @pxref{delete} X @set op-dereference @kbd{--dereference} (@kbd{-h}) @set ref-dereference @ref{dereference} @set xref-dereference @xref{dereference} @set pxref-dereference @pxref{dereference} X @set op-directory @kbd{--directory=@var{directory}} (@kbd{-C @var{directory}}) @set ref-directory @ref{directory} @set xref-directory @xref{directory} @set pxref-directory @pxref{directory} X @set op-exclude @kbd{--exclude=@var{pattern}} @set ref-exclude @ref{exclude} @set xref-exclude @xref{exclude} @set pxref-exclude @pxref{exclude} X @set op-exclude-from @kbd{--exclude-from=@var{file-of-patterns}} (@kbd{-X @var{file-of-patterns}}) @set ref-exclude-from @ref{exclude} @set xref-exclude-from @xref{exclude} @set pxref-exclude-from @pxref{exclude} X @set op-extract @kbd{--extract} (@kbd{--get}, @kbd{-x}) @set ref-extract @ref{extract} @set xref-extract @xref{extract} @set pxref-extract @pxref{extract} X @set op-file @kbd{--file=@var{archive-name}} (@kbd{-f @var{archive-name}}) @set ref-file @ref{file} @set xref-file @xref{file} @set pxref-file @pxref{file} X @set op-files-from @kbd{--files-from=@var{file-of-names}} (@kbd{-T @var{file-of-names}}) @set ref-files-from @ref{files} @set xref-files-from @xref{files} @set pxref-files-from @pxref{files} X @set op-force-local @kbd{--force-local} @set ref-force-local @ref{file} @set xref-force-local @xref{file} @set pxref-force-local @pxref{file} X @set op-group @kbd{--group=@var{group}} @set ref-group @ref{Option Summary} @set xref-group @xref{Option Summary} @set pxref-group @pxref{Option Summary} X @set op-gzip @kbd{--gzip} (@kbd{--gunzip}, @kbd{--ungzip}, @kbd{-z}) @set ref-gzip @ref{gzip} @set xref-gzip @xref{gzip} @set pxref-gzip @pxref{gzip} X @set op-help @kbd{--help} @set ref-help @ref{help} @set xref-help @xref{help} @set pxref-help @pxref{help} X @set op-ignore-failed-read @kbd{--ignore-failed-read} @set ref-ignore-failed-read @ref{Reading} @set xref-ignore-failed-read @xref{Reading} @set pxref-ignore-failed-read @pxref{Reading} X @set op-ignore-zeros @kbd{--ignore-zeros} (@kbd{-i}) @set ref-ignore-zeros @ref{Reading} @set xref-ignore-zeros @xref{Reading} @set pxref-ignore-zeros @pxref{Reading} X @set op-incremental @kbd{--incremental} (@kbd{-G}) @set ref-incremental @ref{Inc Dumps} @set xref-incremental @xref{Inc Dumps} @set pxref-incremental @pxref{Inc Dumps} X @set op-info-script @kbd{--info-script=@var{script-name}} (@kbd{--new-volume-script=@var{script-name}}, @kbd{-F @var{script-name}}) @set ref-info-script @ref{Multi-Volume Archives} @set xref-info-script @xref{Multi-Volume Archives} @set pxref-info-script @pxref{Multi-Volume Archives} X @set op-interactive @kbd{--interactive} (@kbd{-w}) @set ref-interactive @ref{interactive} @set xref-interactive @xref{interactive} @set pxref-interactive @pxref{interactive} X @set op-keep-old-files @kbd{--keep-old-files} (@kbd{-k}) @set ref-keep-old-files @ref{Writing} @set xref-keep-old-files @xref{Writing} @set pxref-keep-old-files @pxref{Writing} X @set op-label @kbd{--label=@var{archive-label}} (@kbd{-V @var{archive-label}}) @set ref-label @ref{label} @set xref-label @xref{label} @set pxref-label @pxref{label} X @set op-list @kbd{--list} (@kbd{-t}) @set ref-list @ref{list} @set xref-list @xref{list} @set pxref-list @pxref{list} X @set op-listed-incremental @kbd{--listed-incremental=@var{snapshot-file}} (@kbd{-g @var{snapshot-file}}) @set ref-listed-incremental @ref{Inc Dumps} @set xref-listed-incremental @xref{Inc Dumps} @set pxref-listed-incremental @pxref{Inc Dumps} X @set op-mode @kbd{--mode=@var{permissions}} @set ref-mode @ref{Option Summary} @set xref-mode @xref{Option Summary} @set pxref-mode @pxref{Option Summary} X @set op-multi-volume @kbd{--multi-volume} (@kbd{-M}) @set ref-multi-volume @ref{Multi-Volume Archives} @set xref-multi-volume @xref{Multi-Volume Archives} @set pxref-multi-volume @pxref{Multi-Volume Archives} X @set op-newer-mtime @kbd{--newer-mtime=@var{date}} @set ref-newer-mtime @ref{after} @set xref-newer-mtime @xref{after} @set pxref-newer-mtime @pxref{after} X @set op-no-recursion @kbd{--no-recursion} @set ref-no-recursion @ref{recurse} @set xref-no-recursion @xref{recurse} @set pxref-no-recursion @pxref{recurse} X @set op-null @kbd{--null} @set ref-null @ref{files} @set xref-null @xref{files} @set pxref-null @pxref{files} X @set op-numeric-owner @kbd{--numeric-owner} @set ref-numeric-owner @ref{Attributes} @set xref-numeric-owner @xref{Attributes} @set pxref-numeric-owner @pxref{Attributes} X @set op-old-archive @kbd{--old-archive} (@kbd{-o}) @set ref-old-archive @ref{old} @set xref-old-archive @xref{old} @set pxref-old-archive @pxref{old} X @set op-one-file-system @kbd{--one-file-system} (@kbd{-l}) @set ref-one-file-system @ref{one} @set xref-one-file-system @xref{one} @set pxref-one-file-system @pxref{one} X @set op-owner @kbd{--owner=@var{user}} @set ref-owner @ref{Option Summary} @set xref-owner @xref{Option Summary} @set pxref-owner @pxref{Option Summary} X @set op-posix @kbd{--posix} @set ref-posix @ref{posix} @set xref-posix @xref{posix} @set pxref-posix @pxref{posix} X @set op-preserve @kbd{--preserve} @set ref-preserve @ref{Attributes} @set xref-preserve @xref{Attributes} @set pxref-preserve @pxref{Attributes} X @set op-record-size @kbd{--record-size=@var{size}} @set ref-record-size @ref{Blocking} @set xref-record-size @xref{Blocking} @set pxref-record-size @pxref{Blocking} X @set op-recursive-unlink @kbd{--recursive-unlink} @set ref-recursive-unlink @ref{Writing} @set xref-recursive-unlink @xref{Writing} @set pxref-recursive-unlink @pxref{Writing} X @set op-read-full-records @kbd{--read-full-records} (@kbd{-B}) @set ref-read-full-records @ref{Blocking} @set xref-read-full-records @xref{Blocking} @set pxref-read-full-records @pxref{Blocking} @c FIXME: or should it be Reading, or Blocking Factor X @set op-remove-files @kbd{--remove-files} @set ref-remove-files @ref{Writing} @set xref-remove-files @xref{Writing} @set pxref-remove-files @pxref{Writing} X @set op-rsh-command @kbd{rsh-command=@var{command}} X @set op-same-order @kbd{--same-order} (@kbd{--preserve-order}, @kbd{-s}) @set ref-same-order @ref{Scarce} @set xref-same-order @xref{Scarce} @set pxref-same-order @pxref{Scarce} @c FIXME: or should it be Reading, or Attributes? X @set op-same-owner @kbd{--same-owner} @set ref-same-owner @ref{Attributes} @set xref-same-owner @xref{Attributes} @set pxref-same-owner @pxref{Attributes} X @set op-same-permissions @kbd{--same-permissions} (@kbd{--preserve-permissions}, @kbd{-p}) @set ref-same-permissions @ref{Attributes} @set xref-same-permissions @xref{Attributes} @set pxref-same-permissions @pxref{Attributes} @c FIXME: or should it be Writing? X @set op-show-omitted-dirs @kbd{--show-omitted-dirs} @set ref-show-omitted-dirs @ref{verbose} @set xref-show-omitted-dirs @xref{verbose} @set pxref-show-omitted-dirs @pxref{verbose} X @set op-sparse @kbd{--sparse} (@kbd{-S}) @set ref-sparse @ref{sparse} @set xref-sparse @xref{sparse} @set pxref-sparse @pxref{sparse} X @set op-starting-file @kbd{--starting-file=@var{name}} (@kbd{-K @var{name}}) @set ref-starting-file @ref{Scarce} @set xref-starting-file @xref{Scarce} @set pxref-starting-file @pxref{Scarce} X @set op-suffix @kbd{--suffix=@var{suffix}} @set ref-suffix @ref{Backup options} @set xref-suffix @xref{Backup options} @set pxref-suffix @pxref{Backup options} X @set op-tape-length @kbd{--tape-length=@var{1024-size}} (@kbd{-L @var{1024-size}}) @set ref-tape-length @ref{Using Multiple Tapes} @set xref-tape-length @xref{Using Multiple Tapes} @set pxref-tape-length @pxref{Using Multiple Tapes} X @set op-to-stdout @kbd{--to-stdout} (@kbd{-O}) @set ref-to-stdout @ref{Writing} @set xref-to-stdout @xref{Writing} @set pxref-to-stdout @pxref{Writing} X @set op-totals @kbd{--totals} @set ref-totals @ref{verbose} @set xref-totals @xref{verbose} @set pxref-totals @pxref{verbose} X @set op-touch @kbd{--touch} (@kbd{-m}) @set ref-touch @ref{Writing} @set xref-touch @xref{Writing} @set pxref-touch @pxref{Writing} X @set op-unlink-first @kbd{--unlink-first} (@kbd{-U}) @set ref-unlink-first @ref{Writing} @set xref-unlink-first @xref{Writing} @set pxref-unlink-first @pxref{Writing} X @set op-update @kbd{--update} (@kbd{-u}) @set ref-update @ref{update} @set xref-update @xref{update} @set pxref-update @pxref{update} X @set op-use-compress-prog @kbd{--use-compress-prog=@var{program}} @set ref-use-compress-prog @ref{gzip} @set xref-use-compress-prog @xref{gzip} @set pxref-use-compress-prog @pxref{gzip} X @set op-verbose @kbd{--verbose} (@kbd{-v}) @set ref-verbose @ref{verbose} @set xref-verbose @xref{verbose} @set pxref-verbose @pxref{verbose} X @set op-verify @kbd{--verify} (@kbd{-W}) @set ref-verify @ref{verify} @set xref-verify @xref{verify} @set pxref-verify @pxref{verify} X @set op-version @kbd{--version} @set ref-version @ref{help} @set xref-version @xref{help} @set pxref-version @pxref{help} X @set op-version-control @kbd{--version-control=@var{method}} @set ref-version-control @ref{Backup options} @set xref-version-control @xref{Backup options} @set pxref-version-control @pxref{Backup options} X @set op-volno-file @kbd{--volno-file=@var{file-of-number}} @set ref-volno-file @ref{Using Multiple Tapes} @set xref-volno-file @xref{Using Multiple Tapes} @set pxref-volno-file @pxref{Using Multiple Tapes} X @include version.texi X @c Put everything in one index (arbitrarily chosen to be the concept index). @syncodeindex fn cp @syncodeindex ky cp @syncodeindex pg cp @syncodeindex vr cp X @defindex op @syncodeindex op cp X @ifinfo @format START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY @end format @end ifinfo X @ifinfo This file documents GNU @code{tar}, a utility used to store, backup, and transport files. X Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. X @ignore Permission is granted to process this file through TeX and print the results, provided the printed document carries copying permission notice identical to this one except for the removal of this paragraph (this paragraph not being relevant to the printed manual). X @end ignore Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. X Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Foundation. @end ifinfo X @setchapternewpage odd X @shorttitlepage GNU @code{tar} X @titlepage @title GNU tar: an archiver tool @subtitle @value{RENDITION} @value{VERSION}, @value{UPDATED} @author Melissa Weisshaus, Jay Fenlason, @author Thomas Bushnell, n/BSG, Amy Gorin @c he said to remove it: Fran@,{c}ois Pinard @c i'm thinking about how the author page *should* look. -mew 2may96 X @page @vskip 0pt plus 1filll Copyright @copyright{} 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. X Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. X Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Foundation. @end titlepage X @ifinfo X This file documents GNU @code{tar}, which is a utility used to store, backup, and transport files. @code{tar} is a tape (or disk) archiver. This manual documents the release @value{VERSION}. X @end ifinfo X @node Top, Introduction, (dir), (dir) X @menu * Introduction:: * Tutorial:: * tar invocation:: * operations:: * Backups:: * Choosing:: * Date input formats:: * Formats:: * Media:: * Index:: X X --- The Detailed Node Listing --- X Introduction X * Book Contents:: What this Book Contains * Definitions:: Some Definitions * What tar Does:: What @code{tar} Does * Naming tar Archives:: How @code{tar} Archives are Named * posix compliance:: * Authors:: GNU @code{tar} Authors * Reports:: Reporting bugs or suggestions X Tutorial Introduction to @code{tar} X * assumptions:: * stylistic conventions:: * basic tar options:: Basic @code{tar} Operations and Options * frequent operations:: * Two Frequent Options:: * create:: How to Create Archives * list:: How to List Archives * extract:: How to Extract Members from an Archive * going further:: X Two Frequently Used Options X * file tutorial:: * verbose tutorial:: * help tutorial:: X How to Create Archives X * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: X How to List Archives X * list dir:: X How to Extract Members from an Archive X * extracting archives:: * extracting files:: * extract dir:: * failing commands:: X Invoking GNU @code{tar} X * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: X The Three Option Styles X * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles X All @code{tar} Options X * Operation Summary:: * Option Summary:: * Short Option Summary:: X GNU @code{tar} Operations X * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: X Advanced GNU @code{tar} Operations X * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare:: X How to Add Files to Existing Archives: @code{--append} X * appending files:: Appending Files to an Archive * multiple:: X Updating an Archive X * how to update:: X Options Used by @code{--extract} X * Reading:: Options to Help Read Archives * Writing:: Changing How @code{tar} Writes Files * Scarce:: Coping with Scarce Resources X Options to Help Read Archives X * read full records:: * Ignore Zeros:: * Ignore Failed Read:: X Changing How @code{tar} Writes Files X * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files:: X Options to Prevent Overwriting Files X * Keep Old Files:: * Unlink First:: * Recursive Unlink:: X Coping with Scarce Resources X * Starting File:: * Same Order:: X Performing Backups and Restoring Files X * Full Dumps:: Using @code{tar} to Perform Full Dumps * Inc Dumps:: Using @code{tar} to Perform Incremental Dumps * incremental and listed-incremental:: The Incremental Options * Backup Levels:: Levels of Backups * Backup Parameters:: Setting Parameters for Backups and Restoration * Scripted Backups:: Using the Backup Scripts * Scripted Restoration:: Using the Restore Script X Setting Parameters for Backups and Restoration X * backup-specs example:: An Example Text of @file{Backup-specs} * Script Syntax:: Syntax for @file{Backup-specs} X Choosing Files and Names for @code{tar} X * file:: Choosing the Archive's Name * Selecting Archive Members:: * files:: Reading Names from a File * exclude:: Excluding Some Files * Wildcards:: * after:: Operating Only on New Files * recurse:: Descending into Directories * one:: Crossing Filesystem Boundaries X Reading Names from a File X * nul:: X Excluding Some Files X * problems with exclude:: X Crossing Filesystem Boundaries X * directory:: Changing Directory * absolute:: Absolute File Names X Date input formats X * General date syntax:: Common rules. * Calendar date item:: 19 Dec 1994. * Time of day item:: 9:20pm. * Timezone item:: EST, DST, BST, UCT, AHST, ... * Day of week item:: Monday and others. * Relative item in date strings:: next tuesday, 2 years ago. * Pure numbers in date strings:: 19931219, 1440. * Authors of getdate:: Bellovin, Salz, Berets, et al. X Controlling the Archive Format X * Portability:: Making @code{tar} Archives More Portable * Compression:: Using Less Space through Compression * Attributes:: Handling File Attributes * Standard:: The Standard Format * Extensions:: GNU Extensions to the Archive Format * cpio:: Comparison of @code{tar} and @code{cpio} X Making @code{tar} Archives More Portable X * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems X Using Less Space through Compression X * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files X Tapes and Other Archive Media X * Device:: Device selection and switching * Remote Tape Server:: * Common Problems and Solutions:: * Blocking:: Blocking * Many:: Many archives on one tape * Using Multiple Tapes:: Using Multiple Tapes * label:: Including a Label in the Archive * verify:: * Write Protection:: X Blocking X * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive X Many Archives on One Tape X * Tape Positioning:: Tape Positions and Tape Marks * mt:: The @code{mt} Utility X Using Multiple Tapes X * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files @end menu X @node Introduction, Tutorial, Top, Top @chapter Introduction X Welcome to the GNU @code{tar} manual. GNU @code{tar} is used to create and manipulate files (@dfn{archives}) which are actually collections of many other files; the program provides users with an organized and systematic method for controlling a large amount of data. X @menu * Book Contents:: What this Book Contains * Definitions:: Some Definitions * What tar Does:: What @code{tar} Does * Naming tar Archives:: How @code{tar} Archives are Named * posix compliance:: * Authors:: GNU @code{tar} Authors * Reports:: Reporting bugs or suggestions @end menu X @node Book Contents, Definitions, Introduction, Introduction @ifinfo @heading What this Book Contains @end ifinfo X The first part of this chapter introduces you to various terms that will recur throughout the book. It also tells you who has worked on GNU @code{tar} and its documentation, and where you should send bug reports or comments. X The second chapter is a tutorial (@pxref{Tutorial}) which provides a gentle introduction for people who are new to using @code{tar}. It is meant to be self contained, not requiring any reading from subsequent chapters to make sense. It moves from topic to topic in a logical, progressive order, building on information already explained. X Although the tutorial is paced and structured to allow beginners to learn how to use @code{tar}, it is not intended solely for beginners. The tutorial explains how to use the three most frequently used operations (@samp{create}, @samp{list}, and @samp{extract}) as well as two frequently used options (@samp{file} and @samp{verbose}). The other chapters do not refer to the tutorial frequently; however, if a section discusses something which is a complex variant of a basic concept, there may be a cross reference to that basic concept. (The entire book, including the tutorial, assumes that the reader understands some basic concepts of using a Unix-type operating system; @pxref{Tutorial}.) X The third chapter presents the remaining five operations, and information about using @code{tar} options and option syntax. X @FIXME{this sounds more like a GNU Project Manuals Concept [tm] more than the reality. should think about whether this makes sense to say here, or not.} The other chapters are meant to be used as a reference. Each chapter presents everything that needs to be said about a specific topic. X One of the chapters (@pxref{Date input formats}) exists in its entirety in other GNU manuals, and is mostly self-contained. In addition, one section of this manual (@pxref{Standard}) contains a big quote which is taken directly from @code{tar} sources. X In general, we give both the long and short (abbreviated) option names at least once in each section where the relevant option is covered, so that novice readers will become familiar with both styles. (A few options have no short versions, and the relevant sections will indicate this.) X @node Definitions, What tar Does, Book Contents, Introduction @section Some Definitions X @cindex archive @cindex tar archive The @code{tar} program is used to create and manipulate @code{tar} archives. An @dfn{archive} is a single file which contains the contents of many files, while still identifying the names of the files, their owner(s), and so forth. (In addition, archives record access permissions, user and group, size in bytes, and last modification time. Some archives also record the file names in each archived directory, as well as other file and directory information.) You can use @code{tar} to @dfn{create} a new archive in a specified directory. X @cindex member @cindex archive member @cindex file name @cindex member name The files inside an archive are called @dfn{members}. Within this manual, we use the term @dfn{file} to refer only to files accessible in the normal ways (by @code{ls}, @code{cat}, and so forth), and the term @dfn{member} to refer only to the members of an archive. Similarly, a @dfn{file name} is the name of a file, as it resides in the filesystem, and a @dfn{member name} is the name of an archive member within the archive. X @cindex extraction @cindex unpacking The term @dfn{extraction} refers to the process of copying an archive member (or multiple members) into a file in the filesystem. Extracting all the members of an archive is often called @dfn{extracting the archive}. The term @dfn{unpack} can also be used to refer to the extraction of many or all the members of an archive. Extracting an archive does not destroy the archive's structure, just as creating an archive does not destroy the copies of the files that exist outside of the archive. You may also @dfn{list} the members in a given archive (this is often thought of as ``printing'' them to the standard output, or the command line), or @dfn{append} members to a pre-existing archive. All of these operations can be peformed using @code{tar}. X @node What tar Does, Naming tar Archives, Definitions, Introduction @section What @code{tar} Does X @cindex tar The @code{tar} program provides the ability to create @code{tar} archives, as well as various other kinds of manipulation. For example, you can use @code{tar} on previously created archives to extract files, to store additional files, or to update or list files which were already stored. X Initially, @code{tar} archives were used to store files conveniently on magnetic tape. The name @samp{tar} comes from this use; it stands for @code{t}ape @code{ar}chiver. Despite the utility's name, @code{tar} can direct its output to available devices, files, or other programs (using pipes). @code{tar} may even access remote devices or files (as archives). X @FIXME{the following table entries need a bit of work..} X You can use @code{tar} archives in many ways. We want to stress a few of them: storage, backup, and transportation. X @table @asis @item Storage Often, @code{tar} archives are used to store related files for convenient file transfer over a network. For example, the GNU Project distributes its software bundled into @code{tar} archives, so that all the files relating to a particular program (or set of related programs) can be transferred as a single unit. X A magnetic tape can store several files in sequence. However, the tape has no names for these files; it only knows their relative position on the tape. One way to store several files on one tape and retain their names is by creating a @code{tar} archive. Even when the basic transfer mechanism can keep track of names, as FTP can, the nuisance of handling multiple files, directories, and multiple links makes @code{tar} archives useful. X Archive files are also used for long-term storage. You can think of this as transportation from the present into the future. (It is a science-fiction idiom that you can move through time as well as in space; the idea here is that @code{tar} can be used to move archives in all dimensions, even time!) X @item Backup Because the archive created by @code{tar} is capable of preserving file information and directory structure, @code{tar} is commonly used for performing full and incremental backups of disks. A backup puts a collection of files (possibly pertaining to many users and projects) together on a disk or a tape. This guards against accidental destruction of the information in those files. GNU @code{tar} has special features that allow it to be used to make incremental and full dumps of all the files in a filesystem. X @item Transportation You can create an archive on one system, transfer it to another system, and extract the contents there. This allows you to transport a group of files from one system to another. @end table X @node Naming tar Archives, posix compliance, What tar Does, Introduction @section How @code{tar} Archives are Named X Conventionally, @code{tar} archives are given names ending with @samp{.tar}. This is not necessary for @code{tar} to operate properly, but this manual follows that convention in order to accustom readers to it and to make examples more clear. X @cindex tar file @cindex entry @cindex tar entry Often, people refer to @code{tar} archives as ``@code{tar} files,'' and archive members as ``files'' or ``entries''. For people familiar with the operation of @code{tar}, this causes no difficulty. However, in this manual, we consistently refer to ``archives'' and ``archive members'' to make learning to use @code{tar} easier for novice users. X @node posix compliance, Authors, Naming tar Archives, Introduction @section POSIX Compliance X @noindent @FIXME{must ask franc,ois about this. dan hagerty thinks this might be an issue, but we're not really sure at this time. dan just tried a test case of mixing up options' orders while the variable was set, and there was no problem...} X We make some of our recommendations throughout this book for one reason in addition to what we think of as ``good sense''. The main additional reason for a recommendation is to be compliant with the POSIX standards. If you set the shell environment variable @code{POSIXLY_CORRECT}, GNU @code{tar} will force you to adhere to these standards. Therefore, if this variable is set and you violate one of the POSIX standards in the way you phrase a command, for example, GNU @code{tar} will not allow the command and will signal an error message. You would then have to reorder the options or rephrase the command to comply with the POSIX standards. X There is a chance in the future that, if you set this environment variable, your archives will be forced to comply with POSIX standards, also. No GNU @code{tar} extensions will be allowed. X @node Authors, Reports, posix compliance, Introduction @section GNU @code{tar} Authors X GNU @code{tar} was originally written by John Gilmore, and modified by many people. The GNU enhancements were written by Jay Fenlason, then Joy Kendall, and the whole package has been further maintained by Thomas Bushnell, n/BSG, and finally Fran@,{c}ois Pinard, with the help of numerous and kind users. X We wish to stress that @code{tar} is a collective work, and owes much to all those people who reported problems, offered solutions and other insights, or shared their thoughts and suggestions. An impressive, yet partial list of those contributors can be found in the @file{THANKS} file from the GNU @code{tar} distribution. X @FIXME{i want all of these names mentioned, Absolutely. BUT, i'm not sure i want to spell out the history in this detail, at least not for the printed book. i'm just not sure it needs to be said this way. i'll think about it.} X @FIXME{History is more important, and surely more interesting, than actual names. Quoting names without history would be meaningless. FP} X Jay Fenlason put together a draft of a GNU @code{tar} manual, borrowing notes from the original man page from John Gilmore. This draft has been distributed in @code{tar} versions 1.04 (or even before?) @FIXME{huh? IMO, either we know or we don't; the parenthetical is confusing.} through 1.10, then withdrawn in version 1.11. Thomas Bushnell, n/BSG and Amy Gorin worked on a tutorial and manual for GNU @code{tar}. Fran@,{c}ois Pinard put version 1.11.8 of the manual together by taking information from all these sources and merging them. Melissa Weisshaus finally edited and redesigned the book to create version 1.12. @FIXME{update version number as necessary; i'm being optimistic!} @FIXME{Someone [maybe karl berry? maybe bob chassell? maybe melissa? maybe julie sussman?] needs to properly index the thing.} X For version 1.12, Daniel Hagerty contributed a great deal of technical consulting. In particular, he is the primary author of @ref{Backups}. X @node Reports, , Authors, Introduction @section Reporting bugs or suggestions X @cindex bug reports @cindex reporting bugs If you find problems or have suggestions about this program or manual, please report them to @file{tar-bugs@@gnu.org}. X @node Tutorial, tar invocation, Introduction, Top @chapter Tutorial Introduction to @code{tar} X This chapter guides you through some basic examples of three @code{tar} operations: @samp{--create}, @samp{--list}, and @samp{--extract}. If you already know how to use some other version of @code{tar}, then you may not need to read this chapter. This chapter omits most complicated details about how @code{tar} works. X @menu * assumptions:: * stylistic conventions:: * basic tar options:: Basic @code{tar} Operations and Options * frequent operations:: * Two Frequent Options:: * create:: How to Create Archives * list:: How to List Archives * extract:: How to Extract Members from an Archive * going further:: @end menu X @node assumptions, stylistic conventions, Tutorial, Tutorial @ifinfo @heading Assumptions this Tutorial Makes @end ifinfo X This chapter is paced to allow beginners to learn about @code{tar} slowly. At the same time, we will try to cover all the basic aspects of these three operations. In order to accomplish both of these tasks, we have made certain assumptions about your knowledge before reading this manual, and the hardware you will be using: X @itemize @bullet @item Before you start to work through this tutorial, you should understand what the terms ``archive'' and ``archive member'' mean (@pxref{Definitions}). In addition, you should understand something about how Unix-type operating systems work, and you should know how to use some basic utilities. For example, you should know how to create, list, copy, rename, edit, and delete files and directories; how to change between directories; and how to figure out where you are in the filesystem. You should have some basic understanding of directory structure and how files are named according to which directory they are in. You should understand concepts such as standard output and standard input, what various definitions of the term ``argument'' mean, the differences between relative and absolute path names, and @FIXME{what else?}. X @item This manual assumes that you are working from your own home directory (unless we state otherwise). In this tutorial, you will create a directory to practice @code{tar} commands in. When we show path names, we will assume that those paths are relative to your home directory. For example, my home directory path is @file{/home/fsf/melissa}. All of my examples are in a subdirectory of the directory named by that path name; the subdirectory is called @file{practice}. X @item In general, we show examples of archives which exist on (or can be written to, or worked with from) a directory on a hard disk. In most cases, you could write those archives to, or work with them on any other device, such as a tape drive. However, some of the later examples in the tutorial and next chapter will not work on tape drives. Additionally, working with tapes is much more complicated than working with hard disks. For these reasons, the tutorial does not cover working with tape drives. @xref{Media}, for complete information on using @code{tar} archives with tape drives. X @FIXME{this is a cop out. need to add some simple tape drive info.} @end itemize X @node stylistic conventions, basic tar options, assumptions, Tutorial @ifinfo @heading Stylistic Conventions @end ifinfo X In the examples, @samp{$} represents a typical shell prompt. It precedes lines you should type; to make this more clear, those lines are shown in @kbd{this font}, as opposed to lines which represent the computer's response; those lines are shown in @code{this font}, or sometimes @samp{like this}. When we have lines which are too long to be displayed in any other way, we will show them like this: X @smallexample This is an example of a line which would otherwise not fit in this space. @end smallexample X @FIXME{how often do we use smallexample?} X @node basic tar options, frequent operations, stylistic conventions, Tutorial @section Basic @code{tar} Operations and Options X @code{tar} can take a wide variety of arguments which specify and define the actions it will have on the particular set of files or the archive. The main types of arguments to @code{tar} fall into one of two classes: operations, and options. X Some arguments fall into a class called @dfn{operations}; exactly one of these is both allowed and required for any instance of using @code{tar}; you may @emph{not} specify more than one. People sometimes speak of @dfn{operating modes}. You are in a particular operating mode when you have specified the operation which specifies it; there are eight operations in total, and thus there are eight operating modes. X The other arguments fall into the class known as @dfn{options}. You are not required to specify any options, and you are allowed to specify more than one at a time (depending on the way you are using @code{tar} at that time). Some options are used so frequently, and are so useful for helping you type commands more carefully that they are effectively ``required''. We will discuss them in this chapter. X You can write most of the @code{tar} operations and options in any of three forms: long (mnemonic) form, short form, and old style. Some of the operations and options have no short or ``old'' forms; however, the operations and options which we will cover in this tutorial have corresponding abbreviations. @FIXME{make sure this is still the case, at the end} We will indicate those abbreviations appropriately to get you used to seeing them. (Note that the ``old style'' option forms exist in GNU @code{tar} for compatibility with Unix @code{tar}. We present a full discussion of this way of writing options and operations appears in @ref{Old Options}, and we discuss the other two styles of writing options in @ref{Mnemonic Options} and @ref{Short Options}.) X In the examples and in the text of this tutorial, we usually use the long forms of operations and options; but the ``short'' forms produce the same result and can make typing long @code{tar} commands easier. For example, instead of typing X @example @kbd{tar --create --verbose --file=afiles.tar apple angst aspic} @end example X @noindent you can type @example @kbd{tar -c -v -f afiles.tar apple angst aspic} @end example X @noindent or even @example @kbd{tar -cvf afiles.tar apple angst aspic} @end example X @noindent For more information on option syntax, see @ref{Advanced tar}. In discussions in the text, when we name an option by its long form, we also give the corresponding short option in parentheses. X The term, ``option'', can be confusing at times, since ``operations'' are often lumped in with the actual, @emph{optional} ``options'' in certain general class statements. For example, we just talked about ``short and long forms of options and operations''. However, experienced @code{tar} users often refer to these by shorthand terms such as, ``short and long options''. This term assumes that the ``operations'' are included, also. Context will help you determine which definition of ``options'' to use. X Similarly, the term ``command'' can be confusing, as it is often used in two different ways. People sometimes refer to @code{tar} ``commands''. A @code{tar} @dfn{command} is the entire command line of user input which tells @code{tar} what to do --- including the operation, options, and any arguments (file names, pipes, other commands, etc). However, you will also sometimes hear the term ``the @code{tar} command''. When the word ``command'' is used specifically like this, a person is usually referring to the @code{tar} @emph{operation}, not the whole line. Again, use context to figure out which of the meanings the speaker intends. X @node frequent operations, Two Frequent Options, basic tar options, Tutorial @section The Three Most Frequently Used Operations X Here are the three most frequently used operations (both short and long forms), as well as a brief description of their meanings. The rest of this chapter will cover how to use these operations in detail. We will present the rest of the operations in the next chapter. X @table @kbd @item --create @itemx -c Create a new @code{tar} archive. @item --list @itemx -t List the contents of an archive. @item --extract @itemx -x Extract one or more members from an archive. @end table X @node Two Frequent Options, create, frequent operations, Tutorial @section Two Frequently Used Options X To understand how to run @code{tar} in the three operating modes listed previously, you also need to understand how to use two of the options to @code{tar}: @samp{--file} (which takes an archive file as an argument) and @samp{--verbose}. (You are usually not @emph{required} to specify either of these options when you run @code{tar}, but they can be very useful in making things more clear and helping you avoid errors.) X @menu * file tutorial:: * verbose tutorial:: * help tutorial:: @end menu X @node file tutorial, verbose tutorial, Two Frequent Options, Two Frequent Options @unnumberedsubsec The @samp{--file} Option X @table @kbd @item --file=@var{archive-name} @itemx -f @var{archive-name} Specify the name of an archive file. @end table X You can specify an argument for the @value{op-file} option whenever you use @code{tar}; this option determines the name of the archive file that @code{tar} will work on. X If you don't specify this argument, then @code{tar} will use a default, usually some physical tape drive attached to your machine. If there is no tape drive attached, or the default is not meaningful, then @code{tar} will print an error message. The error message might look roughly like one of the following: X @example tar: can't open /dev/rmt8 : No such device or address tar: can't open /dev/rsmt0 : I/O error @end example X @noindent To avoid confusion, we recommend that you always specfiy an archive file name by using @value{op-file} when writing your @code{tar} commands. For more information on using the @value{op-file} option, see @ref{file}. X @node verbose tutorial, help tutorial, file tutorial, Two Frequent Options @unnumberedsubsec The @samp{--verbose} Option X @table @kbd @item --verbose @itemx -v Show the files being worked on as @code{tar} is running. @end table X @value{op-verbose} shows details about the results of running @code{tar}. This can be especially useful when the results might not be obvious. For example, if you want to see the progress of @code{tar} as it writes files into the archive, you can use the @samp{--verbose} option. In the beginning, you may find it useful to use @samp{--verbose} at all times; when you are more accustomed to @code{tar}, you will likely want to use it at certain times but not at others. We will use @samp{--verbose} at times to help make something clear, and we will give many examples both using and not using @samp{--verbose} to show the differences. X Sometimes, a single instance of @samp{--verbose} on the command line will show a full, @samp{ls} style listing of an archive or files, giving sizes, owners, and similar information. Other times, @samp{--verbose} will only show files or members that the particular operation is operating on at the time. In the latter case, you can use @samp{--verbose} twice in a command to get a listing such as that in the former case. For example, instead of saying X @example @kbd{tar -cvf afiles.tar apple angst aspic} @end example X @noindent above, you might say X @example @kbd{tar -cvvf afiles.tar apple angst aspic} @end example X @noindent This works equally well using short or long forms of options. Using long forms, you would simply write out the mnemonic form of the option twice, like this: X @example $ @kbd{tar --create --verbose --verbose @dots{}} @end example X @noindent Note that you must double the hyphens properly each time. X Later in the tutorial, we will give examples using @w{@samp{--verbose --verbose}}. X @node help tutorial, , verbose tutorial, Two Frequent Options @unnumberedsubsec Getting Help: Using the @code{--help} Option X @table @kbd @item --help X The @samp{--help} option to @code{tar} prints out a very brief list of all operations and option available for the current version of @code{tar} available on your system. @end table X @node create, list, Two Frequent Options, Tutorial @section How to Create Archives @UNREVISED X One of the basic operations of @code{tar} is @value{op-create}, which you use to create a @code{tar} archive. We will explain @samp{--create} first because, in order to learn about the other operations, you will find it useful to have an archive available to practice on. X To make this easier, in this section you will first create a directory containing three files. Then, we will show you how to create an @emph{archive} (inside the new directory). Both the directory, and the archive are specifically for you to practice on. The rest of this chapter and the next chapter will show many examples using this directory and the files you will create: some of those files may be other directories and other archives. X The three files you will archive in this example are called @file{blues}, @file{folk}, and @file{jazz}. The archive is called @file{collection.tar}. X This section will proceed slowly, detailing how to use @samp{--create} in @code{verbose} mode, and showing examples using both short and long forms. In the rest of the tutorial, and in the examples in the next chapter, we will proceed at a slightly quicker pace. This section moves more slowly to allow beginning users to understand how @code{tar} works. X @menu * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: @end menu X @node prepare for examples, Creating the archive, create, create @subsection Preparing a Practice Directory for Examples X To follow along with this and future examples, create a new directory called @file{practice} containing files called @file{blues}, @file{folk} and @file{jazz}. The files can contain any information you like: ideally, they should contain information which relates to their names, and be of different lengths. Our examples assume that @file{practice} is a subdirectory of your home directory. X Now @code{cd} to the directory named @file{practice}; @file{practice} is now your @dfn{working directory}. (@emph{Please note}: Although the full path name of this directory is @file{/@var{homedir}/practice}, in our examples we will refer to this directory as @file{practice}; the @var{homedir} is presumed. X In general, you should check that the files to be archived exist where you think they do (in the working directory) by running @code{ls}. Because you just created the directory and the files and have changed to that directory, you probably don't need to do that this time. X It is very important to make sure there isn't already a file in the working directory with the archive name you intend to use (in this case, @samp{collection.tar}), or that you don't care about its contents. Whenever you use @samp{create}, @code{tar} will erase the current contents of the file named by @value{op-file} if it exists. @code{tar} will not tell you if you are about to overwrite a file unless you specify an option which does this @FIXME{xref to the node for --backup!}. To add files to an existing archive, you need to use a different option, such as @value{op-append}; see @ref{append} for information on how to do this. X @node Creating the archive, create verbose, prepare for examples, create @subsection Creating the Archive X To place the files @file{blues}, @file{folk}, and @file{jazz} into an archive named @file{collection.tar}, use the following command: X @example $ @kbd{tar --create --file=collection.tar blues folk jazz} @end example X The order of the arguments is not very important, @emph{when using long option forms}. You could also say: X @example $ @kbd{tar blues --create folk --file=collection.tar jazz} @end example X @noindent However, you can see that this order is harder to understand; this is why we will list the arguments in the order that makes the commands easiest to understand (and we encourage you to do the same when you use @code{tar}, to avoid errors). X Note that the part of the command which says, @w{@kbd{--file=collection.tar}} is considered to be @emph{one} argument. If you substituted any other string of characters for @kbd{`collection.tar'}, then that string would become the name of the archive file you create. X The order of the options becomes more important when you begin to use short forms. With short forms, if you type commands in the wrong order (even if you type them correctly in all other ways), you may end up with results you don't expect. For this reason, it is a good idea to get into the habit of typing options in the order that makes inherent sense. @xref{short create}, for more information on this. X In this example, you type the command as shown above: @samp{--create} is the operation which creates the new archive (@file{collection.tar}), and @samp{--file} is the option which lets you give it the name you chose. The files, @file{blues}, @file{folk}, and @file{jazz}, are now members of the archive, @file{collection.tar} (they are @dfn{file name arguments} to the @samp{--create} operation) @FIXME{xref here to the discussion of file name args?}. Now that they are are in the archive, they are called @emph{archive members}, not files @FIXME{xref to definitions?}. X When you create an archive, you @emph{must} specify which files you want placed in the archive. If you do not specify any archive members, GNU @code{tar} will complain. X If you now list the contents of the working directory (@kbd{ls}), you will find the archive file listed as well as the files you saw previously: X @example blues folk jazz collection.tar @end example X @noindent Creating the archive @samp{collection.tar} did not destroy the copies of the files in the directory. X Keep in mind that if you don't indicate an operation, @code{tar} will not run and will prompt you for one. If you don't name any files, @code{tar} will complain. You must have write access to the working directory, or else you will not be able to create an archive in that directory. X @emph{Caution}: Do not attempt to use @value{op-create} to add files to an existing archive; it will delete the archive and write a new one. Use @value{op-append} instead. @xref{append}. X @node create verbose, short create, Creating the archive, create @subsection Running @samp{--create} with @samp{--verbose} X If you include the @value{op-verbose} option on the command line, @code{tar} will list the files it is acting on as it is working. In verbose mode, the @code{create} example above would appear as: X @example $ @kbd{tar --create --verbose --file=collection.tar blues folk jazz} blues folk jazz @end example X This example is just like the example we showed which did not use @samp{--verbose}, except that @code{tar} generated the remaining lines @iftex (note the different font styles). @end iftex @ifinfo X. @end ifinfo X In the rest of the examples in this chapter, we will frequently use @code{verbose} mode so we can show actions or @code{tar} responses that you would otherwise not see, and which are important for you to understand. X @node short create, create dir, create verbose, create @subsection Short Forms with @samp{create} X As we said before, the @value{op-create} operation is one of the most basic uses of @code{tar}, and you will use it countless times. Eventually, you will probably want to use abbreviated (or ``short'') forms of options. A full discussion of the three different forms that options can take appears in @ref{Styles}; for now, here is what the previous example (including the @value{op-verbose} option) looks like using short option forms: X @example $ @kbd{tar -cvf collection.tar blues folk jazz} blues folk jazz @end example X @noindent As you can see, the system responds the same no matter whether you use long or short option forms. X @FIXME{i don't like how this is worded:} One difference between using short and long option forms is that, although the exact placement of arguments following options is no more specific when using short forms, it is easier to become confused and make a mistake when using short forms. For example, suppose you attempted the above example in the following way: X @example $ @kbd{tar -cfv collection.tar blues folk jazz} @end example X @noindent In this case, @code{tar} will make an archive file called @file{v}, containing the files @file{blues}, @file{folk}, and @file{jazz}, because the @samp{v} is the closest ``file name'' to the @samp{-f} option, and is thus taken to be the chosen archive file name. @code{tar} will try to add a file called @file{collection.tar} to the @file{v} archive file; if the file @file{collection.tar} did not already exist, @code{tar} will report an error indicating that this file does not exist. If the file @file{collection.tar} does already exist (e.g., from a previous command you may have run), then @code{tar} will add this file to the archive. Because the @samp{-v} option did not get registered, @code{tar} will not run under @samp{verbose} mode, and will not report its progress. X The end result is that you may be quite confused about what happened, and possibly overwrite a file. To illustrate this further, we will show you how an example we showed previously would look using short forms. X This example, X @example $ @kbd{tar blues --create folk --file=collection.tar jazz} @end example X @noindent is confusing as it is. When shown using short forms, however, it becomes much more so: X @example $ @kbd{tar blues -c folk -f collection.tar jazz} @end example X @noindent It would be very easy to put the wrong string of characters immediately following the @samp{-f}, but doing that could sacrifice valuable data. X For this reason, we recommend that you pay very careful attention to the order of options and placement of file and archive names, especially when using short option forms. Not having the option name written out mnemonically can affect how well you remember which option does what, and therefore where different names have to be placed. (Placing options in an unusual order can also cause @code{tar} to report an error if you have set the shell environment variable, @code{POSIXLY_CORRECT}; @pxref{posix compliance} for more information on this.) X @node create dir, , short create, create @subsection Archiving Directories X @cindex Archiving Directories @cindex Directories, Archiving You can archive a directory by specifying its directory name as a file name argument to @code{tar}. The files in the directory will be archived relative to the working directory, and the directory will be re-created along with its contents when the archive is extracted. X To archive a directory, first move to its superior directory. If you have followed the previous instructions in this tutorial, you should type: X @example $ @kbd{cd ..} $ @end example X @noindent This will put you into the directory which contains @file{practice}, i.e. your home directory. Once in the superior directory, you can specify the subdirectory, @file{practice}, as a file name argument. To store @file{practice} in the new archive file @file{music.tar}, type: X @example $ @kbd{tar --create --verbose --file=music.tar practice} @end example X @noindent @code{tar} should output: X @example practice/ practice/blues practice/folk practice/jazz practice/collection.tar @end example X Note that the archive thus created is not in the subdirectory @file{practice}, but rather in the current working directory---the directory from which @code{tar} was invoked. Before trying to archive a directory from its superior directory, you should make sure you have write access to the superior directory itself, not only the directory you are trying archive with @code{tar}. For example, you will probably not be able to store your home directory in an archive by invoking @code{tar} from the root directory; @value{xref-absolute-names}. (Note also that @file{collection.tar}, the original archive file, has itself been archived. @code{tar} will accept any file as a file to be archived, regardless of its content. When @file{music.tar} is extracted, the archive file @file{collection.tar} will be re-written into the file system). X If you give @code{tar} a command such as X @example $ @kbd{tar --create --file=foo.tar .} @end example X @noindent @code{tar} will report @samp{tar: foo.tar is the archive; not dumped}. This happens because @code{tar} creates the archive @file{foo.tar} in the current directory before putting any files into it. Then, when @code{tar} attempts to add all the files in the directory @file{.} to the archive, it notices that the file @file{foo.tar} is the same as the archive, and skips it. (It makes no sense to put an archive into itself.) GNU @code{tar} will continue in this case, and create the archive normally, except for the exclusion of that one file. (@emph{Please note:} Other versions of @code{tar} are not so clever; they will enter an infinite loop when this happens, so you should not depend on this behavior unless you are certain you are running GNU @code{tar}. @FIXME{bob doesn't like this sentence, since he does it all the time, and we've been doing it in the editing passes for this manual: In general, make sure that the archive is not inside a directory being dumped.}) X @node list, extract, create, Tutorial @section How to List Archives X Frequently, you will find yourself wanting to determine exactly what a particular archive contains. You can use the @value{op-list} operation to get the member names as they currently appear in the archive, as well as various attributes of the files at the time they were archived. For example, you can examine the archive @file{collection.tar} that you created in the last section with the command, X @example $ @kbd{tar --list --file=collection.tar} @end example X @noindent The output of @code{tar} would then be: X @example blues folk jazz @end example X @FIXME{we hope this will change. if it doesn't, need to show the creation of bfiles somewhere above!!! : } X @noindent The archive @file{bfiles.tar} would list as follows: X @example X./birds baboon X./box @end example X @noindent Be sure to use a @value{op-file} option just as with @value{op-create} to specify the name of the archive. X If you use the @value{op-verbose} option with @samp{--list}, then @code{tar} will print out a listing reminiscent of @w{@samp{ls -l}}, showing owner, file size, and so forth. X If you had used @value{op-verbose} mode, the example above would look like: X @example $ @kbd{tar --list --verbose --file=collection.tar folk} -rw-rw-rw- myself user 62 1990-05-23 10:55 folk @end example X @cindex File name arguments, using @code{--list} with @cindex @code{--list} with file name arguments You can specify one or more individual member names as arguments when using @samp{list}. In this case, @code{tar} will only list the names of members you identify. For example, @w{@kbd{tar --list --file=afiles.tar apple}} would only print @file{apple}. X @FIXME{we hope the relevant aspects of this will change:}Because @code{tar} preserves paths, file names must be specified as they appear in the archive (ie., relative to the directory from which the archive was created). Therefore, it is essential when specifying member names to @code{tar} that you give the exact member names. For example, @w{@kbd{tar --list --file=bfiles birds}} would produce an error message something like @samp{tar: birds: Not found in archive}, because there is no member named @file{birds}, only one named @file{./birds}. While the names @file{birds} and @file{./birds} name the same file, @emph{member} names are compared using a simplistic name comparison, in which an exact match is necessary. @xref{absolute}. X However, @w{@kbd{tar --list --file=collection.tar folk}} would respond with @file{folk}, because @file{folk} is in the archive file @file{collection.tar}. If you are not sure of the exact file name, try listing all the files in the archive and searching for the one you expect to find; remember that if you use @samp{--list} with no file names as arguments, @code{tar} will print the names of all the members stored in the specified archive. X @menu * list dir:: @end menu X @node list dir, , list, list @unnumberedsubsec Listing the Contents of a Stored Directory @UNREVISED X @FIXME{i changed the order of these nodes around and haven't had a chance to play around with this node's example, yet. i have to play with it and see what it actually does for my own satisfaction, even if what it says *is* correct..} X To get information about the contents of an archived directory, use the directory name as a file name argument in conjunction with @value{op-list}. To find out file attributes, include the @value{op-verbose} option. X For example, to find out about files in the directory @file{practice}, in the archive file @file{music.tar}, type: X @example $ @kbd{tar --list --verbose --file=music.tar practice} @end example X @code{tar} responds: X @example drwxrwxrwx myself user 0 1990-05-31 21:49 practice/ -rw-rw-rw- myself user 42 1990-05-21 13:29 practice/blues -rw-rw-rw- myself user 62 1990-05-23 10:55 practice/folk -rw-rw-rw- myself user 40 1990-05-21 13:30 practice/jazz -rw-rw-rw- myself user 10240 1990-05-31 21:49 practice/collection.tar @end example X When you use a directory name as a file name argument, @code{tar} acts on all the files (including sub-directories) in that directory. X @node extract, going further, list, Tutorial @section How to Extract Members from an Archive @UNREVISED @cindex Extraction @cindex Retrieving files from an archive @cindex Resurrecting files from an archive X Creating an archive is only half the job---there is no point in storing files in an archive if you can't retrieve them. The act of retrieving members from an archive so they can be used and manipulated as unarchived files again is called @dfn{extraction}. To extract files from an archive, use the @value{op-extract} operation. As with @value{op-create}, specify the name of the archive with @value{op-file}. Extracting an archive does not modify the archive in any way; you can extract it multiple times if you want or need to. X Using @samp{--extract}, you can extract an entire archive, or specific files. The files can be directories containing other files, or not. As with @value{op-create} and @value{op-list}, you may use the short or the long form of the operation without affecting the performance. X @menu * extracting archives:: * extracting files:: * extract dir:: * failing commands:: @end menu X @node extracting archives, extracting files, extract, extract @subsection Extracting an Entire Archive X To extract an entire archive, specify the archive file name only, with no individual file names as arguments. For example, X @example $ @kbd{tar -xvf collection.tar} @end example X @noindent produces this: X @example -rw-rw-rw- me user 28 1996-10-18 16:31 jazz -rw-rw-rw- me user 21 1996-09-23 16:44 blues -rw-rw-rw- me user 20 1996-09-23 16:44 folk @end example X @node extracting files, extract dir, extracting archives, extract @subsection Extracting Specific Files X To extract specific archive members, give their exact member names as arguments, as printed by @value{op-list}. If you had mistakenly deleted one of the files you had placed in the archive @file{collection.tar} earlier (say, @file{blues}), you can extract it from the archive without changing the archive's structure. It will be identical to the original file @file{blues} that you deleted. @FIXME{check this; will the times, permissions, owner, etc be the same, also?} X First, make sure you are in the @file{practice} directory, and list the files in the directory. Now, delete the file, @samp{blues}, and list the files in the directory again. X You can now extract the member @file{blues} from the archive file @file{collection.tar} like this: X @example $ @kbd{tar --extract --file=collection.tar blues} @end example X @noindent If you list the files in the directory again, you will see that the file @file{blues} has been restored, with its original permissions, creation times, and owner. @FIXME{This is only accidentally true, but not in general. In most cases, one has to be root for restoring the owner, and use a special option for restoring permissions. Here, it just happens that the restoring user is also the owner of the archived members, and that the current @code{umask} is compatible with original permissions.} (These parameters will be identical to those which the file had when you originally placed it in the archive; any changes you may have made before deleting the file from the file system, however, will @emph{not} have been made to the archive member.) The archive file, @samp{collection.tar}, is the same as it was before you extracted @samp{blues}. You can confirm this by running @code{tar} with @value{op-list}. X @FIXME{we hope this will change:}Remember that as with other operations, specifying the exact member name is important. @w{@kbd{tar --extract --file=bfiles.tar birds}} will fail, because there is no member named @file{birds}. To extract the member named @file{./birds}, you must specify @w{@kbd{tar --extract --file=bfiles.tar ./birds}}. To find the exact member names of the members of an archive, use @value{op-list} (@pxref{list}). X If you give the @value{op-verbose} option, then @value{op-extract} will print the names of the archive members as it extracts them. X @node extract dir, failing commands, extracting files, extract @subsection Extracting Files that are Directories X Extracting directories which are members of an archive is similar to extracting other files. The main difference to be aware of is that if the extracted directory has the same name as any directory already in the working directory, then files in the extracted directory will be placed into the directory of the same name. Likewise, if there are files in the pre-existing directory with the same names as the members which you extract, the files from the extracted archive will overwrite the files already in the working directory (and possible subdirectories). This will happen regardless of whether or not the files in the working directory were more recent than those extracted. X However, if a file was stored with a directory name as part of its file name, and that directory does not exist under the working directory when the file is extracted, @code{tar} will create the directory. X We can demonstrate how to use @samp{--extract} to extract a directory file with an example. Change to the @file{practice} directory if you weren't there, and remove the files @file{folk} and @file{jazz}. Then, go back to the parent directory and extract the archive @file{music.tar}. You may either extract the entire archive, or you may extract only the files you just deleted. To extract the entire archive, don't give any file names as arguments after the archive name @file{music.tar}. To extract only the files you deleted, use the following command: X @example $ @kbd{tar -xvf music.tar practice/folk practice/jazz} @end example X @FIXME{need to show tar's response; used verbose above. also, here's a good place to demonstrate the -v -v thing. have to write that up (should be trivial, but i'm too tired!).} X @noindent Because you created the directory with @file{practice} as part of the file names of each of the files by archiving the @file{practice} directory as @file{practice}, you must give @file{practice} as part of the file names when you extract those files from the archive. X @FIXME{IMPORTANT! show the final structure, here. figure out what it will be.} X @node failing commands, , extract dir, extract @subsection Commands That Will Fail X Here are some sample commands you might try which will not work, and why they won't work. X If you try to use this command, X @example $ @kbd{tar -xvf music.tar folk jazz} @end example X @noindent you will get the following response: X @example tar: folk: Not found in archive tar: jazz: Not found in archive $ @end example X @noindent This is because these files were not originally @emph{in} the parent directory @file{..}, where the archive is located; they were in the @file{practice} directory, and their file names reflect this: X @example $ @kbd{tar -tvf music.tar} practice/folk practice/jazz practice/rock @end example X @FIXME{make sure the above works when going through the examples in order...} X @noindent Likewise, if you try to use this command, X @example $ @kbd{tar -tvf music.tar folk jazz} @end example X @noindent you would get a similar response. Members with those names are not in the archive. You must use the correct member names in order to extract the files from the archive. X If you have forgotten the correct names of the files in the archive, use @w{@kbd{tar --list --verbose}} to list them correctly. X @FIXME{more examples, here? hag thinks it's a good idea.} X @node going further, , extract, Tutorial @section Going Further Ahead in this Manual X @FIXME{need to write up a node here about the things that are going to be in the rest of the manual.} X @node tar invocation, operations, Tutorial, Top @chapter Invoking GNU @code{tar} @UNREVISED X This chapter is about how one invokes the GNU @code{tar} command, from the command synopsis (@pxref{Synopsis}). There are numerous options, and many styles for writing them. One mandatory option specifies the operation @code{tar} should perform (@pxref{Operation Summary}), other options are meant to detail how this operation should be performed (@pxref{Option Summary}). Non-option arguments are not always interpreted the same way, depending on what the operation is. X You will find in this chapter everything about option styles and rules for writing them (@pxref{Styles}). On the other hand, operations and options are fully described elsewhere, in other chapters. Here, you will find only synthetic descriptions for operations and options, together with pointers to other parts of the @code{tar} manual. X Some options are so special they are fully described right in this chapter. They have the effect of inhibiting the normal operation of @code{tar} or else, they globally alter the amount of feedback the user receives about what is going on. These are the @value{op-help} and @value{op-version} (@pxref{help}), @value{op-verbose} (@pxref{verbose}) and @value{op-interactive} options (@pxref{interactive}). X @menu * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: @end menu X @node Synopsis, using tar options, tar invocation, tar invocation @section General Synopsis of @code{tar} X The GNU @code{tar} program is invoked as either one of: X @example @kbd{tar @var{option}@dots{} [@var{name}]@dots{}} @kbd{tar @var{letter}@dots{} [@var{argument}]@dots{} [@var{option}]@dots{} [@var{name}]@dots{}} @end example X The second form is for when old options are being used. X You can use @code{tar} to store files in an archive, to extract them from an archive, and to do other types of archive manipulation. The primary argument to @code{tar}, which is called the @dfn{operation}, specifies which action to take. The other arguments to @code{tar} are either @dfn{options}, which change the way @code{tar} performs an operation, or file names or archive members, which specify the files or members @code{tar} is to act on. X You can actually type in arguments in any order, even if in this manual the options always precede the other arguments, to make examples easier to understand. Further, the option stating the main operation mode (the @code{tar} main command) is usually given first. X Each @var{name} in the synopsis above is interpreted as an archive member name when the main command is one of @value{op-compare}, @value{op-delete}, @value{op-extract}, @value{op-list} or @value{op-update}. When naming archive members, you must give the exact name of the member in the archive, as it is printed by @value{op-list}. For @value{op-append} and @value{op-create}, these @var{name} arguments specify the names of either files or directory hierarchies to place in the archive. These files or hierarchies should already exist in the file system, prior to the execution of the @code{tar} command. X @code{tar} interprets relative file names as being relative to the working directory. @code{tar} will make all file names relative (by removing leading slashes when archiving or restoring files), unless you specify otherwise (using the @value{op-absolute-names} option). @value{xref-absolute-names}, for more information about @value{op-absolute-names}. X If you give the name of a directory as either a file name or a member name, then @code{tar} acts recursively on all the files and directories beneath that directory. For example, the name @file{/} identifies all the files in the filesystem to @code{tar}. X The distinction between file names and archive member names is especially important when shell globbing is used, and sometimes a source of confusion for newcomers. @xref{Wildcards}, for more information about globbing. The problem is that shells may only glob using existing files in the file system. Only @code{tar} itself may glob on archive members, so when needed, you must ensure that wildcard characters reach @code{tar} without being interpreted by the shell first. Using a backslash before @samp{*} or @samp{?}, or putting the whole argument between quotes, is usually sufficient for this. X Even if @var{name}s are often specified on the command line, they can also be read from a text file in the file system, using the @value{op-files-from} option. X If you don't use any file name arguments, @value{op-append}, @value{op-delete} and @value{op-concatenate} will do nothing, while @value{op-create} will usually yield a diagnostic and inhibit @code{tar} execution. The other operations of @code{tar} (@value{op-list}, @value{op-extract}, @value{op-compare}, and @value{op-update}) will act on the entire contents of the archive. X @cindex exit status @cindex return status Besides successful exits, GNU @code{tar} may fail for many reasons. Some reasons correspond to bad usage, that is, when the @code{tar} command is improperly written. Errors may be encountered later, while encountering an error processing the archive or the files. Some errors are recoverable, in which case the failure is delayed until @code{tar} has completed all its work. Some errors are such that it would not meaningful, or at least risky, to continue processing: @code{tar} then aborts processing immediately. All abnormal exits, whether immediate or delayed, should always be clearly diagnosed on @code{stderr}, after a line stating the nature of the error. X GNU @code{tar} returns only a few exit statuses. I'm really aiming simplicity in that area, for now. If you are not using the @value{op-compare} option, zero means that everything went well, besides maybe innocuous warnings. Nonzero means that something went wrong. Right now, as of today, ``nonzero'' is almost always 2, except for remote operations, where it may be 128. X @node using tar options, Styles, Synopsis, tar invocation @section Using @code{tar} Options X GNU @code{tar} has a total of eight operating modes which allow you to perform a variety of tasks. You are required to choose one operating mode each time you employ the @code{tar} program by specifying one, and only one operation as an argument to the @code{tar} command (two lists of four operations each may be found at @ref{frequent operations} and @ref{Operations}). Depending on circumstances, you may also wish to customize how the chosen operating mode behaves. For example, you may wish to change the way the output looks, or the format of the files that you wish to archive may require you to do something special in order to make the archive look right. X You can customize and control @code{tar}'s performance by running @code{tar} with one or more options (such as @value{op-verbose}, which we used in the tutorial). As we said in the tutorial, @dfn{options} are arguments to @code{tar} which are (as their name suggests) optional. Depending on the operating mode, you may specify one or more options. Different options will have different effects, but in general they all change details of the operation, such as archive format, archive name, or level of user interaction. Some options make sense with all operating modes, while others are meaningful only with particular modes. You will likely use some options frequently, while you will only use others infrequently, or not at all. (A full list of options is available in @pxref{All Options}.) X Note that @code{tar} options are case sensitive. For example, the options @samp{-T} and @samp{-t} are different; the first requires an argument for stating the name of a file providing a list of @var{name}s, while the second does not require an argument and is another way to write @value{op-list}. X In addition to the eight operations, there are many options to @code{tar}, and three different styles for writing both: long (mnemonic) form, short form, and old style. These styles are discussed below. Both the options and the operations can be written in any of these three styles. X @FIXME{menu at end of this node. need to think of an actual outline for this chapter; probably do that after stuff from chap. 4 is incorporated.} X @node Styles, All Options, using tar options, tar invocation @section The Three Option Styles X There are three styles for writing operations and options to the command line invoking @code{tar}. The different styles were developed at different times during the history of @code{tar}. These styles will be presented below, from the most recent to the oldest. X Some options must take an argument. (For example, @value{op-file} takes the name of an archive file as an argument. If you do not supply an archive file name, @code{tar} will use a default, but this can be confusing; thus, we recommend that you always supply a specific archive file name.) Where you @emph{place} the arguments generally depends on which style of options you choose. We will detail specific information relevant to each option style in the sections on the different option styles, below. The differences are subtle, yet can often be very important; incorrect option placement can cause you to overwrite a number of important files. We urge you to note these differences, and only use the option style(s) which makes the most sense to you until you feel comfortable with the others. X @FIXME{hag to write a brief paragraph on the option(s) which can optionally take an argument} X @menu * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles @end menu X @node Mnemonic Options, Short Options, Styles, Styles @subsection Mnemonic Option Style X @FIXME{have to decide whether or ot to replace other occurrences of "mnemonic" with "long", or *ugh* vice versa.} X Each option has at least one long (or mnemonic) name starting with two dashes in a row, e.g. @samp{list}. The long names are more clear than their corresponding short or old names. It sometimes happens that a single mnemonic option has many different different names which are synonymous, such as @samp{--compare} and @samp{--diff}. In addition, long option names can be given unique abbreviations. For example, @samp{--cre} can be used in place of @samp{--create} because there is no other mnemonic option which begins with @samp{cre}. (One way to find this out is by trying it and seeing what happens; if a particular abbreviation could represent more than one option, @code{tar} will tell you that that abbreviation is ambiguous and you'll know that that abbreviation won't work. You may also choose to run @samp{tar --help} to see a list of options. Be aware that if you run @code{tar} with a unique abbreviation for the long name of an option you didn't want to use, you are stuck; @code{tar} will perform the command as ordered.) X Mnemonic options are meant to be obvious and easy to remember, and their meanings are generally easier to discern than those of their corresponding short options (see below). For example: X @example $ @kbd{tar --create --verbose --blocking-factor=20 --file=/dev/rmt0} @end example X @noindent gives a fairly good set of hints about what the command does, even for those not fully acquainted with @code{tar}. X Mnemonic options which require arguments take those arguments immediately following the option name; they are introduced by an equal sign. For example, the @samp{--file} option (which tells the name of the @code{tar} archive) is given a file such as @file{archive.tar} as argument by using the notation @samp{--file=archive.tar} for the mnemonic option. X @node Short Options, Old Options, Mnemonic Options, Styles @subsection Short Option Style X Most options also have a short option name. Short options start with a single dash, and are followed by a single character, e.g. @samp{-t} (which is equivalent to @samp{--list}). The forms are absolutely identical in function; they are interchangeable. X The short option names are faster to type than long option names. X Short options which require arguments take their arguments immediately following the option, usually separated by white space. It is also possible to stick the argument right after the short option name, using no intervening space. For example, you might write @w{@samp{-f archive.tar}} or @samp{-farchive.tar} instead of using @samp{--file=archive.tar}. Both @samp{--file=@var{archive-name}} and @w{@samp{-f @var{archive-name}}} denote the option which indicates a specific archive, here named @file{archive.tar}. X Short options' letters may be clumped together, but you are not required to do this (as compared to old options; see below). When short options are clumped as a set, use one (single) dash for them all, e.g. @w{@samp{@code{tar} -cvf}}. Only the last option in such a set is allowed to have an argument@footnote{Clustering many options, the last of which has an argument, is a rather opaque way to write options. Some wonder if GNU @code{getopt} should not even be made helpful enough for considering such usages as invalid.}. X When the options are separated, the argument for each option which requires an argument directly follows that option, as is usual for Unix programs. For example: X @example $ @kbd{tar -c -v -b 20 -f /dev/rmt0} @end example X If you reorder short options' locations, be sure to move any arguments that belong to them. If you do not move the arguments properly, you may end up overwriting files. X @node Old Options, Mixing, Short Options, Styles @subsection Old Option Style @UNREVISED X Like short options, old options are single letters. However, old options must be written together as a single clumped set, without spaces separating them or dashes preceding them@footnote{Beware that if you precede options with a dash, you are announcing the short option style instead of the old option style; short options are decoded differently.}. This set of letters must be the first to appear on the command line, after the @code{tar} program name and some whitespace; old options cannot appear anywhere else. The letter of an old option is exactly the same letter as the corresponding short option. For example, the old option @samp{t} is the same as the short option @samp{-t}, and consequently, the same as the mnemonic option @samp{--list}. So for example, the command @w{@samp{tar cv}} specifies the option @samp{-v} in addition to the operation @samp{-c}. X @FIXME{bob suggests having an uglier example. :-) } X When options that need arguments are given together with the command, all the associated arguments follow, in the same order as the options. Thus, the example given previously could also be written in the old style as follows: X @example $ @kbd{tar cvbf 20 /dev/rmt0} @end example X @noindent Here, @samp{20} is the argument of @samp{-b} and @samp{/dev/rmt0} is the argument of @samp{-f}. X On the other hand, this old style syntax makes it difficult to match option letters with their corresponding arguments, and is often confusing. In the command @w{@samp{tar cvbf 20 /dev/rmt0}}, for example, @samp{20} is the argument for @samp{-b}, @samp{/dev/rmt0} is the argument for @samp{-f}, and @samp{-v} does not have a corresponding argument. Even using short options like in @w{@samp{tar -c -v -b 20 -f /dev/rmt0}} is clearer, putting all arguments next to the option they pertain to. X If you want to reorder the letters in the old option argument, be sure to reorder any corresponding argument appropriately. X This old way of writing @code{tar} options can surprise even experienced users. For example, the two commands: X @example @kbd{tar cfz archive.tar.gz file} @kbd{tar -cfz archive.tar.gz file} @end example X @noindent are quite different. The first example uses @file{archive.tar.gz} as the value for option @samp{f} and recognizes the option @samp{z}. The second example, however, uses @file{z} as the value for option @samp{f}---probably not what was intended. X Old options are kept for compatibility with old versions of @code{tar}. X This second example could be corrected in many ways, among which the following are equivalent: X @example @kbd{tar -czf archive.tar.gz file} @kbd{tar -cf archive.tar.gz -z file} @kbd{tar cf archive.tar.gz -z file} @end example X @FIXME{still could explain this better; it's redundant:} X @cindex option syntax, traditional As far as we know, all @code{tar} programs, GNU and non-GNU, support old options. GNU @code{tar} supports them not only for historical reasons, but also because many people are used to them. For compatibility with Unix @code{tar}, the first argument is always treated as containing command and option letters even if it doesn't start with @samp{-}. Thus, @samp{tar c} is equivalent to @w{@samp{tar -c}:} both of them specify the @value{op-create} command to create an archive. X @node Mixing, , Old Options, Styles @subsection Mixing Option Styles X All three styles may be intermixed in a single @code{tar} command, so long as the rules for each style are fully respected@footnote{Before GNU @code{tar} version 1.11.6, a bug prevented intermixing old style options with mnemonic options in some cases.}. Old style options and either of the modern styles of options may be mixed within a single @code{tar} command. However, old style options must be introduced as the first arguments only, following the rule for old options (old options must appear directly after the @code{tar} command and some whitespace). Modern options may be given only after all arguments to the old options have been collected. If this rule is not respected, a modern option might be falsely interpreted as the value of the argument to one of the old style options. X For example, all the following commands are wholly equivalent, and illustrate the many combinations and orderings of option styles. X @example @kbd{tar --create --file=archive.tar} @kbd{tar --create -f archive.tar} @kbd{tar --create -farchive.tar} @kbd{tar --file=archive.tar --create} @kbd{tar --file=archive.tar -c} @kbd{tar -c --file=archive.tar} @kbd{tar -c -f archive.tar} @kbd{tar -c -farchive.tar} @kbd{tar -cf archive.tar} @kbd{tar -cfarchive.tar} @kbd{tar -f archive.tar --create} @kbd{tar -f archive.tar -c} @kbd{tar -farchive.tar --create} @kbd{tar -farchive.tar -c} @kbd{tar c --file=archive.tar} @kbd{tar c -f archive.tar} @kbd{tar c -farchive.tar} @kbd{tar cf archive.tar} @kbd{tar f archive.tar --create} @kbd{tar f archive.tar -c} @kbd{tar fc archive.tar} @end example X On the other hand, the following commands are @emph{not} equivalent to the previous set: X @example @kbd{tar -f -c archive.tar} @kbd{tar -fc archive.tar} @kbd{tar -fcarchive.tar} @kbd{tar -farchive.tarc} @kbd{tar cfarchive.tar} @end example X @noindent These last examples mean something completely different from what the user intended (judging based on the example in the previous set which uses long options, whose intent is therefore very clear). The first four specify that the @code{tar} archive would be a file named @samp{-c}, @samp{c}, @samp{carchive.tar} or @samp{archive.tarc}, respectively. The first two examples also specify a single non-option, @var{name} argument having the value @samp{archive.tar}. The last example contains only old style option letters (repeating option @samp{c} twice), not all of which are meaningful (eg., @samp{.}, @samp{h}, or @samp{i}), with no argument value. @FIXME{not sure i liked the first sentence of this paragraph..} X @node All Options, help, Styles, tar invocation @section All @code{tar} Options X The coming manual sections contain an alphabetical listing of all @code{tar} operations and options, with brief descriptions and cross references to more in-depth explanations in the body of the manual. They also contain an alphabetically arranged table of the short option forms with their corresponding long option. You can use this table as a reference for deciphering @code{tar} commands in scripts. X @menu * Operation Summary:: * Option Summary:: * Short Option Summary:: @end menu X @node Operation Summary, Option Summary, All Options, All Options @subsection Operations X @table @kbd X @item --append @itemx -r X Appends files to the end of the archive. @xref{append}. X @item --catenate @itemx -A X Same as @samp{--concatenate}. @xref{concatenate}. X @item --compare @itemx -d X Compares archive members with their counterparts in the file system, and reports differences in file size, mode, owner, modification date and contents. @xref{compare}. X @item --concatenate @itemx -A X Appends other @code{tar} archives to the end of the archive. @xref{concatenate}. X @item --create @itemx -c X Creates a new @code{tar} archive. @xref{create}. X @item --delete X Deletes members from the archive. Don't try this on a archive on a tape! @xref{delete}. X @item --diff @itemx -d X Same @samp{--compare}. @xref{compare}. X @item --extract @itemx -x X Extracts members from the archive into the file system. @xref{extract}. X @item --get @itemx -x X Same as @samp{--extract}. @xref{extract}. X @item --list @itemx -t X Lists the members in an archive. @xref{list}. X @item --update @itemx -u X @FIXME{It was: A combination of the @samp{--compare} and @samp{--append} operations. This is not true and rather misleading, as @value{op-compare} does a lot more than @value{op-update} for ensuring files are identical.} Adds files to the end of the archive, but only if they are newer than their counterparts already in the archive, or if they do not already exist in the archive. @xref{update}. X @end table X @node Option Summary, Short Option Summary, Operation Summary, All Options @subsection @code{tar} Options X @table @kbd X @item --absolute-names @itemx -P X Normally when creating an archive, @code{tar} strips an initial @samp{/} from member names. This option disables that behavior. @FIXME-xref{}. X @item --after-date X (See @samp{--newer}; @FIXME-pxref{}.) X @item --atime-preserve X Tells @code{tar} to preserve the access time field in a file's inode when dumping it. @FIXME-xref{}. X @item --backup=@var{backup-type} X Rather than deleting files from the file system, @code{tar} will back them up using simple or numbered backups, depending upon @var{backup-type}. @FIXME-xref{}. X @item --block-number @itemx -R X With this option present, @code{tar} prints error messages for read errors with the block number in the archive file. @FIXME-xref{}. X @item --blocking-factor=@var{blocking} @itemx -b @var{blocking} X Sets the blocking factor @code{tar} uses to @var{blocking} x 512 bytes per record. @FIXME-xref{}. X @item --checkpoint X This option directs @code{tar} to print periodic checkpoint messages as it reads through the archive. Its intended for when you want a visual indication that @code{tar} is still running, but don't want to see @samp{--verbose} output. @FIXME-xref{}. X @item --compress @itemx --uncompress @itemx -Z X @code{tar} will use the @code{compress} program when reading or writing the archive. This allows you to directly act on archives while saving space. @FIXME-xref{}. X @item --confirmation X (See @samp{--interactive}; @FIXME-pxref{}.) X @item --dereference @itemx -h X When creating a @code{tar} archive, @code{tar} will archive the file that a symbolic link points to, rather than archiving the symlink. @FIXME-xref{}. X @item --directory=@var{dir} @itemx -C @var{dir} X When this option is specified, @code{tar} will change its current directory to @var{dir} before performing any operations. When this option is used during archive creation, it is order sensitive. @FIXME-xref{}. X @item --exclude=@var{pattern} X When performing operations, @code{tar} will skip files that match @var{pattern}. @FIXME-xref{}. X @item --exclude-from=@var{file} @itemx -X @var{file} X Similar to @samp{--exclude}, except @code{tar} will use the list of patterns in the file @var{file}. @FIXME-xref{}. X @item --file=@var{archive} @itemx -f @var{archive} X @code{tar} will use the file @var{archive} as the @code{tar} archive it performs operations on, rather than @code{tar}'s compilation dependent default. @FIXME-xref{}. X @item --files-from=@var{file} @itemx -T @var{file} X @code{tar} will use the contents of @var{file} as a list of archive members or files to operate on, in addition to those specified on the command-line. @FIXME-xref{}. X @item --force-local X Forces @code{tar} to interpret the filename given to @samp{--file} as a local file, even if it looks like a remote tape drive name. @FIXME-xref{}. X @item --group=@var{group} X Files added to the @code{tar} archive will have a group id of @var{group}, rather than the group from the source file. @var{group} is first decoded as a group symbolic name, but if this interpretation fails, it has to be a decimal numeric group ID. @FIXME-xref{}. X Also see the comments for the @value{op-owner} option. X @item --gunzip X (See @samp{--gzip}; @FIXME-pxref{}.) X @item --gzip @itemx --gunzip @itemx --ungzip @itemx -z X This option tells @code{tar} to read or write archives through @code{gzip}, allowing @code{tar} to directly operate on several kinds of compressed archives transparently. @FIXME-xref{}. X @item --help X @code{tar} will print out a short message summarizing the operations and options to @code{tar} and exit. @FIXME-xref{}. X @item --ignore-failed-read X Instructs @code{tar} to exit successfully if it encounters an unreadable file. @xref{Reading}. X @item --ignore-umask @FIXME{does this exist?} X (See @samp{--preserve-permissions}; @pxref{Writing}.) X @item --ignore-zeros @itemx -i X With this option, @code{tar} will ignore zeroed blocks in the archive, which normally signals EOF. @xref{Reading}. X @item --incremental @itemx -G X Used to inform @code{tar} that it is working with an old GNU-format incremental backup archive. It is intended primarily for backwards compatibility only. @FIXME-xref{}. X @item --info-script=@var{script-file} @itemx --new-volume-script=@var{script-file} @itemx -F @var{script-file} X When @code{tar} is performing multi-tape backups, @var{script-file} is run at the end of each tape. @FIXME-xref{}. X @item --interactive @itemx --confirmation @itemx -w X Specifies that @code{tar} should ask the user for confirmation before performing potentially destructive options, such as overwriting files. @FIXME-xref{}. X @item --keep-old-files @itemx -k X When extracting files from an archive, @code{tar} will not overwrite existing files if this option is present. @xref{Writing}. X @item --label=@var{name} @itemx -V @var{name} X When creating an archive, instructs @code{tar} to write @var{name} as a name record in the archive. When extracting or listing archives, @code{tar} will only operate on archives that have a label matching the pattern specified in @var{name}. @FIXME-xref{}. X @item --listed-incremental=@var{snapshot-file} @itemx -g @var{snapshot-file} X During a @samp{--create} operation, specifies that the archive that @code{tar} creates is a new GNU-format incremental backup, using @var{snapshot-file} to determine which files to backup. With other operations, informs @code{tar} that the archive is in incremental format. @FIXME-xref{}. X @item --mode=@var{permissions} X When adding files to an archive, @code{tar} will use @var{permissions} for the archive members, rather than the permissions from the files. The program @code{chmod} and this @code{tar} option share the same syntax for what @var{permissions} might be. @xref{File permissions, Permissions, File permissions, filetutils, GNU file utilities}. This reference also has useful information for those not being overly familiar with the Unix permission system. X Of course, @var{permissions} might be plainly specified as an octal number. However, by using generic symbolic modifications to mode bits, this allows more flexibility. For example, the value @samp{a+rw} adds read and write permissions for everybody, while retaining executable bits on directories or on any other file already marked as executable. X @item --multi-volume @itemx -M X Informs @code{tar} that it should create or otherwise operate on a multi-volume @code{tar} archive. @FIXME-xref{}. X @item --new-volume-script X (see --info-script) X @item --newer=@var{date} @itemx --after-date=@var{date} @itemx -N X When creating an archive, @code{tar} will only add files that have changed since @var{date}. @FIXME-xref{}. X @item --newer-mtime X In conjunction with @samp{--newer}, @code{tar} will only add files whose contents have changed (as opposed to just @samp{--newer}, which will also back up files for which any status information has changed). X @item --no-recursion X With this option, @code{tar} will not recurse into directories unless a directory is explicitly named as an argument to @code{tar}. @FIXME-xref{}. X @item --null X When @code{tar} is using the @samp{--files-from} option, this option instructs @code{tar} to expect filenames terminated with @kbd{NUL}, so @code{tar} can correctly work with file names that contain newlines. @FIXME-xref{}. X @item --numeric-owner X This option will notify @code{tar} that it should use numeric user and group IDs when creating a @code{tar} file, rather than names. @FIXME-xref{}. X @item --old-archive X (See @samp{--portability}; @FIXME-pxref{}.) X @item --one-file-system @itemx -l X Used when creating an archive. Prevents @code{tar} from recursing into directories that are on different file systems from the current directory. @FIXME-xref{}. X @item --owner=@var{user} X Specifies that @code{tar} should use @var{user} as the owner of members when creating archives, instead of the user associated with the source file. @var{user} is first decoded as a user symbolic name, but if this interpretation fails, it has to be a decimal numeric user ID. @FIXME-xref{}. X There is no value indicating a missing number, and @samp{0} usually means @code{root}. Some people like to force @samp{0} as the value to offer in their distributions for the owner of files, because the @code{root} user is anonymous anyway, so that might as well be the owner of anonymous archives. X @item --portability @itemx --old-archive @itemx -o X Tells @code{tar} to create an archive that is compatible with Unix V7 @code{tar}. @FIXME-xref{}. X @item --posix X Instructs @code{tar} to create a POSIX compliant @code{tar} archive. @FIXME-xref{}. X @item --preserve X Synonymous with specifying both @samp{--preserve-permissions} and @samp{--same-order}. @FIXME-xref{}. X @item --preserve-order X (See @samp{--same-order}; @pxref{Reading}.) X @item --preserve-permissions @itemx --same-permissions @itemx -p X When @code{tar} is extracting an archive, it normally subtracts the users' umask from the permissions specified in the archive and uses that number as the permissions to create the destination file. Specifying this option instructs @code{tar} that it should use the permissions directly from the archive. @xref{Writing}. X @item --read-full-records @itemx -B X Specifies that @code{tar} should reblock its input, for reading from pipes on systems with buggy implementations. @xref{Reading}. X @item --record-size=@var{size} X Instructs @code{tar} to use @var{size} bytes per record when accessing the archive. @FIXME-xref{}. X @item --recursive-unlink X Similar to the @samp{--unlink-first} option, removing existing directory hierarchies before extracting directories of the same name from the archive. @xref{Writing}. X @item --remove-files X Directs @code{tar} to remove the source file from the file system after appending it to an archive. @FIXME-xref{}. X @item --rsh-command=@var{cmd} X Notifies @code{tar} that is should use @var{cmd} to communicate with remote devices. @FIXME-xref{}. X @item --same-order @itemx --preserve-order @itemx -s X This option is an optimization for @code{tar} when running on machines with small amounts of memory. It informs @code{tar} that the list of file arguments has already been sorted to match the order of files in the archive. @xref{Reading}. X @item --same-owner X When extracting an archive, @code{tar} will attempt to preserve the owner specified in the @code{tar} archive with this option present. @FIXME-xref{}. X @item --same-permissions X (See @samp{--preserve-permissions}; @pxref{Writing}.) X @item --show-omitted-dirs X Instructs @code{tar} to mention directories its skipping over when operating on a @code{tar} archive. @FIXME-xref{}. X @item --sparse @itemx -S X Invokes a GNU extension when adding files to an archive that handles sparse files efficiently. @FIXME-xref{}. X @item --starting-file=@var{name} @itemx -K @var{name} X This option affects extraction only; @code{tar} will skip extracting files in the archive until it finds one that matches @var{name}. @xref{Scarce}. X @item --suffix=@var{suffix} X Alters the suffix @code{tar} uses when backing up files from the default @samp{~}. @FIXME-xref{}. X @item --tape-length=@var{num} @itemx -L @var{num} X Specifies the length of tapes that @code{tar} is writing as being @w{@var{num} x 1024} bytes long. @FIXME-xref{}. X @item --to-stdout @itemx -O X During extraction, @code{tar} will extract files to stdout rather than to the file system. @xref{Writing}. X @item --totals X Displays the total number of bytes written after creating an archive. @FIXME-xref{}. X @item --touch @itemx -m X Sets the modification time of extracted files to the extraction time, rather than the modification time stored in the archive. @xref{Writing}. X @item --uncompress X (See @samp{--compress}; @FIXME-pxref{}.) X @item --ungzip X (See @samp{--gzip}; @FIXME-pxref{}.) X @item --unlink-first @itemx -U X Directs @code{tar} to remove the corresponding file from the file system before extracting it from the archive. @xref{Writing}. X @item --use-compress-program=@var{prog} X Instructs @code{tar} to access the archive through @var{prog}, which is presumed to be a compression program of some sort. @FIXME-xref{}. X @item --verbose @itemx -v X Specifies that @code{tar} should be more verbose about the operations its performing. This option can be specified multiple times for some operations to increase the amount of information displayed. @FIXME-xref{}. X @item --verify @itemx -W X Verifies that the archive was correctly written when creating an archive. @FIXME-xref{}. X @item --version X @code{tar} will print an informational message about what version it is and a copyright message, some credits, and then exit. @FIXME-xref{}. X @item --volno-file=@var{file} X Used in conjunction with @samp{--multi-volume}. @code{tar} will keep track of which volume of a multi-volume archive its working in @var{file}. @FIXME-xref{}. @end table X @node Short Option Summary, , Option Summary, All Options @subsection Short Options Cross Reference X Here is an alphabetized list of all of the short option forms, matching them with the equivalent long option. X @table @kbd X @item -A X @samp{--concatenate} X @item -B X @samp{--read-full-records} X @item -C X @samp{--directory} X @item -F X @samp{--info-script} X @item -G X @samp{--incremental} X @item -K X @samp{--starting-file} X @item -L X @samp{--tape-length} X @item -M X @samp{--multi-volume} X @item -N X @samp{--newer} X @item -O X @samp{--to-stdout} X @item -P X @samp{--absolute-names} X @item -R X @samp{--block-number} X @item -S X @samp{--sparse} X @item -T X @samp{--files-from} X @item -U X @samp{--unlink-first} X @item -V X @samp{--label} X @item -W X @samp{--verify} X @item -X X @samp{--exclude-from} X @item -Z X @samp{--compress} X @item -b X @samp{--blocking-factor} X @item -c X @samp{--create} X @item -d X @samp{--compare} X @item -f X @samp{--file} X @item -g X @samp{--listed-incremental} X @item -h X @samp{--dereference} X @item -i X @samp{--ignore-zeros} X @item -k X @samp{--keep-old-files} X @item -l X @samp{--one-file-system} X @item -m X @samp{--touch} X @item -o X @samp{--portability} X @item -p X @samp{--preserve-permissions} X @item -r X @samp{--append} X @item -s X @samp{--same-order} X @item -t X @samp{--list} X @item -u X @samp{--update} X @item -v X @samp{--verbose} X @item -w X @samp{--interactive} X @item -x X @samp{--extract} X @item -z X @samp{--gzip} X @end table X @node help, verbose, All Options, tar invocation @section GNU @code{tar} documentation X Being careful, the first thing is really checking that you are using GNU @code{tar}, indeed. The @value{op-version} option will generate a message giving confirmation that you are using GNU @code{tar}, with the precise version of GNU @code{tar} you are using. @code{tar} identifies itself and prints the version number to the standard output, then immediately exits successfully, without doing anything else, ignoring all other options. For example, @w{@samp{tar --version}} might return: X @example tar (GNU tar) @value{VERSION} @end example X @noindent The first occurrence of @samp{tar} in the result above is the program name in the package (for example, @code{rmt} is another program), while the second occurrence of @samp{tar} is the name of the package itself, containing possibly many programs. The package is currently named @samp{tar}, after the name of the main program it contains@footnote{There are plans to merge the @code{cpio} and @code{tar} packages into a single one which would be called @code{paxutils}. So, who knows if, one of this days, the @value{op-version} would not yield @w{@samp{tar (GNU paxutils) 3.2}}}. X Another thing you might want to do is checking the spelling or meaning of some particular @code{tar} option, without resorting to this manual, for once you have carefully read it. GNU @code{tar} has a short help feature, triggerable through the @value{op-help} option. By using this option, @code{tar} will print a usage message listing all available options on standard output, then exit successfully, without doing anything else and ignoring all other options. Even if this is only a brief summary, it may be several screens long. So, if you are not using some kind of scrollable window, you might prefer to use something like: X @example $ @kbd{tar --help | less} @end example X @noindent presuming, here, that you like using @code{less} for a pager. Other popular pagers are @code{more} and @code{pg}. If you know about some @var{keyword} which interests you and do not want to read all the @value{op-help} output, another common idiom is doing: X @example tar --help | grep @var{keyword} @end example X @noindent for getting only the pertinent lines. X The perceptive reader would have noticed some contradiction in the previous paragraphs. It is written that both @value{op-version} and @value{op-help} print something, and have all other options ignored. In fact, they cannot ignore each other, and one of them has to win. We do not specify which is stronger, here; experiment if you really wonder! X The short help output is quite succint, and you might have to get back to the full documentation for precise points. If you are reading this paragraph, you already have the @code{tar} manual in some form. This manual is available in printed form, as a kind of small book. It may printed out of the GNU @code{tar} distribution, provided you have @TeX{} already installed somewhere, and a laser printer around. Just configure the distribution, execute the command @w{@samp{make dvi}}, then print @file{doc/tar.dvi} the usual way (contact your local guru to know how). If GNU @code{tar} has been conveniently installed at your place, this manual is also available in interactive, hypertextual form as an Info file. Just call @w{@samp{info tar}} or, if you do not have the @code{info} program handy, use the Info reader provided within GNU Emacs, calling @samp{tar} from the main Info menu. X There is currently no @code{man} page for GNU @code{tar}. If you observe such a @code{man} page on the system you are running, either it does not long to GNU @code{tar}, or it has not been produced by GNU. Currently, GNU @code{tar} documentation is provided in Texinfo format only, if we except, of course, the short result of @kbd{tar --help}. X @node verbose, interactive, help, tar invocation @section Checking @code{tar} progress X @cindex Progress information @cindex Status information @cindex Information on progress and status of operations @cindex Verbose operation @cindex Block number where error occured @cindex Error message, block number of @cindex Version of the @code{tar} program X @cindex Getting more information during the operation @cindex Information during operation @cindex Feedback from @code{tar} X Typically, @code{tar} performs most operations without reporting any information to the user except error messages. When using @code{tar} with many options, particularly ones with complicated or difficult-to-predict behavior, it is possible to make serious mistakes. @code{tar} provides several options that make observing @code{tar} easier. These options cause @code{tar} to print information as it progresses in its job, and you might want to use them just for being more careful about what is going on, or merely for entertaining yourself. If you have encountered a problem when operating on an archive, however, you may need more information than just an error message in order to solve the problem. The following options can be helpful diagnostic tools. X Normally, the @value{op-list} command to list an archive prints just the file names (one per line) and the other commands are silent. When used with most operations, the @value{op-verbose} option causes @code{tar} to print the name of each file or archive member as it is processed. This and the other options which make @code{tar} print status information can be useful in monitoring @code{tar}. X With @value{op-create} or @value{op-extract}, @value{op-verbose} used once just prints the names of the files or members as they are processed. Using it twice causes @code{tar} to print a longer listing (reminiscent of @samp{ls -l}) for each member. Since @value{op-list} already prints the names of the members, @value{op-verbose} used once with @value{op-list} causes @code{tar} to print an @samp{ls -l} type listing of the files in the archive. The following examples both extract members with long list output: X @example $ @kbd{tar --extract --file=archive.tar --verbose --verbose} $ @kbd{tar xvv archive.tar} @end example X Verbose output appears on the standard output except when an archive is being written to the standard output, as with @samp{tar --create --file=- --verbose} (@samp{tar cfv -}, or even @samp{tar cv}---if the installer let standard output be the default archive). In that case @code{tar} writes verbose output to the standard error stream. X The @value{op-totals} option---which is only meaningful when used with @value{op-create}---causes @code{tar} to print the total amount written to the archive, after it has been fully created. X The @value{op-checkpoint} option prints an occasional message as @code{tar} reads or writes the archive. In fact, it print directory names while reading the archive. It is designed for those who don't need the more detailed (and voluminous) output of @value{op-block-number}, but do want visual confirmation that @code{tar} is actually making forward progress. X @FIXME{There is some confusion here. It seems that -R once wrote a message at @samp{every} record read or written.} X The @value{op-show-omitted-dirs} option, when reading an archive---with @value{op-list} or @value{op-extract}, for example---causes a message to be printed for each directory in the archive which is skipped. This happens regardless of the reason for skipping: the directory might not have been named on the command line (implicitly or explicitly), it might be excluded by the use of the @value{op-exclude} option, or some other reason. X If @value{op-block-number} is used, @code{tar} prints, along with every message it would normally produce, the block number within the archive where the message was triggered. Also, supplementary messages are triggered when reading blocks full of NULs, or when hitting end of file on the archive. As of now, if the archive if properly terminated with a NUL block, the reading of the file may stop before end of file is met, so the position of end of file will not usually show when @value{op-block-number} is used. Note that GNU @code{tar} drains the archive before exiting when reading the archive from a pipe. X This option is especially useful when reading damaged archives, since it helps pinpoint the damaged sections. It can also be used with @value{op-list} when listing a file-system backup tape, allowing you to choose among several backup tapes when retrieving a file later, in favor of the tape where the file appears earliest (closest to the front of the tape). @FIXME-xref{when the node name is set and the backup section written}. X @node interactive, , verbose, tar invocation @section Asking for Confirmation During Operations @cindex Interactive operation X Typically, @code{tar} carries out a command without stopping for further instructions. In some situations however, you may want to exclude some files and archive members from the operation (for instance if disk or storage space is tight). You can do this by excluding certain files automatically (@pxref{Choosing}), or by performing an operation interactively, using the @value{op-interactive} option. @code{tar} also accepts @samp{--confirmation} for this option. X When the @value{op-interactive} option is specified, before reading, writing, or deleting files, @code{tar} first prints a message for each such file, telling what operation it intends to take, then asks for confirmation on the terminal. The actions which require confirmation include adding a file to the archive, extracting a file from the archive, deleting a file from the archive, and deleting a file from disk. To confirm the action, you must type a line of input beginning with @samp{y}. If your input line begins with anything other than @samp{y}, @code{tar} skips that file. X If @code{tar} is reading the archive from the standard input, @code{tar} opens the file @file{/dev/tty} to support the interactive communications. X Verbose output is normally sent to standard output, separate from other error messages. However, if the archive is produced directly on standard output, then verbose output is mixed with errors on @code{stderr}. Producing the archive on standard output may be used as a way to avoid using disk space, when the archive is soon to be consumed by another process reading it, say. Some people felt the need of producing an archive on stdout, still willing to segregate between verbose output and error output. A possible approach would be using a named pipe to receive the archive, and having the consumer process to read from that named pipe. This has the advantage of letting standard output free to receive verbose output, all separate from errors. X @node operations, Backups, tar invocation, Top @chapter GNU @code{tar} Operations X @menu * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: @end menu X @node Basic tar, Advanced tar, operations, operations @section Basic GNU @code{tar} Operations X The basic @code{tar} operations, @value{op-create}, @value{op-list} and @value{op-extract}, are currently presented and described in the tutorial chapter of this manual. This section provides some complementary notes for these operations. X @table @asis @item @value{op-create} X Creating an empty archive would have some kind of elegance. One can initialize an empty archive and later use @value{op-append} for adding all members. Some applications would not welcome making an exception in the way of adding the first archive member. On the other hand, many people reported that it is dangerously too easy for @code{tar} to destroy a magnetic tape with an empty archive@footnote{This is well described in @cite{Unix-haters Handbook}, by Simson Garfinkel, Daniel Weise & Steven Strassmann, IDG Books, ISBN 1-56884-203-1.}. The two most common errors are: X @enumerate @item Mistakingly using @code{create} instead of @code{extract}, when the intent was to extract the full contents of an archive. This error is likely: keys @kbd{c} and @kbd{x} are right next ot each other on the QWERTY keyboard. Instead of being unpacked, the archive then gets wholly destroyed. When users speak about @dfn{exploding} an archive, they usually mean something else :-). X @item Forgetting the argument to @code{file}, when the intent was to create an archive with a single file in it. This error is likely because a tired user can easily add the @kbd{f} key to the cluster of option letters, by the mere force of habit, without realizing the full consequence of doing so. The usual consequence is that the single file, which was meant to be saved, is rather destroyed. @end enumerate X So, recognizing the likelihood and the catastrophical nature of these errors, GNU @code{tar} now takes some distance from elegance, and cowardly refuses to create an archive when @value{op-create} option is given, there are no arguments besides options, and @value{op-files-from} option is @emph{not} used. To get around the cautiousness of GNU @code{tar} and nevertheless create an archive with nothing in it, one may still use, as the value for the @value{op-files-from} option, a file with no names in it, as shown in the following commands: X @example @kbd{tar --create --file=empty-archive.tar --files-from=/dev/null} @kbd{tar cfT empty-archive.tar /dev/null} @end example X @item @value{op-extract} X A socket is stored, within a GNU @code{tar} archive, as a pipe. X @item @value{op-list} X GNU @code{tar} now shows dates as @samp{1996-11-09}, while it used to show them as @samp{Nov 11 1996}. (One can revert to the old behavior by defining @code{USE_OLD_CTIME} in @file{src/list.c} before reinstalling.) But preferrably, people you should get used to ISO 8601 dates. Local American dates should be made available again with full date localisation support, once ready. In the meantime, programs not being localisable for dates should prefer international dates, that's really the way to go. X Look up @url{http://www.ft.uni-erlangen.de/~mskuhn/iso-time.html} if you are curious, it contains a detailed explanation of the ISO 8601 standard. X @end table X @node Advanced tar, extract options, Basic tar, operations @section Advanced GNU @code{tar} Operations X Now that you have learned the basics of using GNU @code{tar}, you may want to learn about further ways in which @code{tar} can help you. X This chapter presents five, more advanced operations which you probably won't use on a daily basis, but which serve more specialized functions. We also explain the different styles of options and why you might want to use one or another, or a combination of them in your @code{tar} commands. Additionally, this chapter includes options which allow you to define the output from @code{tar} more carefully, and provide help and error correction in special circumstances. X @FIXME{check this after the chapter is actually revised to make sure it still introduces the info in the chapter correctly : ).} X @menu * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare:: @end menu X @node Operations, current state, Advanced tar, Advanced tar @subsection The Five Advanced @code{tar} Operations @UNREVISED X In the last chapter, you learned about the first three operations to @code{tar}. This chapter presents the remaining five operations to @code{tar}: @samp{--append}, @samp{--update}, @samp{--concatenate}, @samp{--delete}, and @samp{--compare}. X You are not likely to use these operations as frequently as those covered in the last chapter; however, since they perform specialized functions, they are quite useful when you do need to use them. We will give examples using the same directory and files that you created in the last chapter. As you may recall, the directory is called @file{practice}, the files are @samp{jazz}, @samp{blues}, @samp{folk}, @samp{rock}, and the two archive files you created are @samp{collection.tar} and @samp{music.tar}. X We will also use the archive files @samp{afiles.tar} and @samp{bfiles.tar}. @samp{afiles.tar} contains the members @samp{apple}, @samp{angst}, and @samp{aspic}. @samp{bfiles.tar} contains the members @samp{./birds}, @samp{baboon}, and @samp{./box}. X Unless we state otherwise, all practicing you do and examples you follow in this chapter will take place in the @file{practice} directory that you created in the previous chapter; see @ref{prepare for examples}. (Below in this section, we will remind you of the state of the examples where the last chapter left them.) X The five operations that we will cover in this chapter are: X @table @kbd @item --append @itemx -r Add new entries to an archive that already exists. @item --update @itemx -r Add more recent copies of archive members to the end of an archive, if they exist. @item --concatenate @itemx --catenate @itemx -A Add one or more pre-existing archives to the end of another archive. @item --delete Delete items from an archive (does not work on tapes). @item --compare @itemx --diff @itemx -d Compare archive members to their counterparts in the file system. @end table X @node current state, append, Operations, Advanced tar @ifinfo @subsection The Current State of the Practice Files @end ifinfo X Currently, the listing of the directory using @code{ls} is as follows: X @example X @end example X @noindent The archive file @samp{collection.tar} looks like this: X @example $ @kbd{tar -tvf collection.tar} X @end example X @noindent The archive file @samp{music.tar} looks like this: X @example $ @kbd{tar -tvf music.tar} X @end example X @FIXME{need to fill in the above!!!} X @node append, update, current state, Advanced tar @subsection How to Add Files to Existing Archives: @code{--append} @UNREVISED X If you want to add files to an existing archive, you don't need to create a new archive; you can use @value{op-append}. The archive must already exist in order to use @samp{--append}. (A related operation is the @samp{--update} operation; you can use this to add newer versions of archive members to an existing archive. To learn how to do this with @samp{--update}, @pxref{update}.) X @FIXME{Explain in second paragraph whether you can get to the previous version -- explain whole situation somewhat more clearly.} X If you use @value{op-append} to add a file that has the same name as an archive member to an archive containing that archive member, then the old member is not deleted. What does happen, however, is somewhat complex. @code{tar} @emph{allows} you to have infinite numbers of files with the same name. Some operations treat these same-named members no differently than any other set of archive members: for example, if you view an archive with @value{op-list}, you will see all of those members listed, with their modification times, owners, etc. X Other operations don't deal with these members as perfectly as you might prefer; if you were to use @value{op-extract} to extract the archive, only the most recently added copy of a member with the same name as four other members would end up in the working directory. This is because @samp{--extract} extracts an archive in the order the members appeared in the archive; the most recently archived members will be extracted last. Additionally, an extracted member will @emph{overwrite} a file of the same name which existed in the directory already, and @code{tar} will not prompt you about this. Thus, only the most recently archived member will end up being extracted, as it will overwrite the one extracted before it, and so on. X @FIXME{ hag -- you might want to incorporate some of the above into the MMwtSN node; not sure. i didn't know how to make it simpler...} X There are a few ways to get around this. @FIXME-xref{Multiple Members with the Same Name}. X @cindex Members, replacing with other members @cindex Replacing members with other members If you want to replace an archive member, use @value{op-delete} to delete the member you want to remove from the archive, , and then use @samp{--append} to add the member you want to be in the archive. Note that you can not change the order of the archive; the most recently added member will still appear last. In this sense, you cannot truely ``replace'' one member with another. (Replacing one member with another will not work on certain types of media, such as tapes; see @ref{delete} and @ref{Media}, for more information.) X @menu * appending files:: Appending Files to an Archive * multiple:: @end menu X @node appending files, multiple, append, append @subsubsection Appending Files to an Archive @UNREVISED @cindex Adding files to an Archive @cindex Appending files to an Archive @cindex Archives, Appending files to X The simplest way to add a file to an already existing archive is the @value{op-append} operation, which writes specified files into the archive whether or not they are already among the archived files. When you use @samp{--append}, you @emph{must} specify file name arguments, as there is no default. If you specify a file that already exists in the archive, another copy of the file will be added to the end of the archive. As with other operations, the member names of the newly added files will be exactly the same as their names given on the command line. The @value{op-verbose} option will print out the names of the files as they are written into the archive. X @samp{--append} cannot be performed on some tape drives, unfortunately, due to deficiencies in the formats those tape drives use. The archive must be a valid @code{tar} archive, or else the results of using this operation will be unpredictable. @xref{Media}. X To demonstrate using @samp{--append} to add a file to an archive, create a file called @file{rock} in the @file{practice} directory. Make sure you are in the @file{practice} directory. Then, run the following @code{tar} command to add @file{rock} to @file{collection.tar}: X @example $ @kbd{tar --append --file=collection.tar rock} @end example X @noindent If you now use the @value{op-list} operation, you will see that @file{rock} has been added to the archive: X @example $ @kbd{tar --list --file=collection.tar} -rw-rw-rw- me user 28 1996-10-18 16:31 jazz -rw-rw-rw- me user 21 1996-09-23 16:44 blues -rw-rw-rw- me user 20 1996-09-23 16:44 folk -rw-rw-rw- me user 20 1996-09-23 16:44 rock @end example X @FIXME{in theory, dan will (soon) try to turn this node into what it's title claims it will become...} X @node multiple, , appending files, append @subsubsection Multiple Files with the Same Name X You can use @value{op-append} to add copies of files which have been updated since the archive was created. (However, we do not recommend doing this since there is another @code{tar} option called @samp{--update}; @pxref{update} for more information. We describe this use of @samp{--append} here for the sake of completeness.) @FIXME{is this really a good idea, to give this whole description for something which i believe is basically a Stupid way of doing something? certain aspects of it show ways in which tar is more broken than i'd personally like to admit to, specifically the last sentence. On the other hand, i don't think it's a good idea to be saying that re explicitly don't recommend using something, but i can't see any better way to deal with the situation.} When you extract the archive, the older version will be effectively lost. This works because files are extracted from an archive in the order in which they were archived. Thus, when the archive is extracted, a file archived later in time will overwrite a file of the same name which was archived earlier, even though the older version of the file will remain in the archive unless you delete all versions of the file. X Supposing you change the file @file{blues} and then append the changed version to @file{collection.tar}. As you saw above, the original @file{blues} is in the archive @file{collection.tar}. If you change the file and append the new version of the file to the archive, there will be two copies in the archive. When you extract the archive, the older version of the file will be extracted first, and then overwritten by the newer version when it is extracted. X You can append the new, changed copy of the file @file{blues} to the archive in this way: X @example $ @kbd{tar --append --verbose --file=collection.tar blues} blues @end example X @noindent Because you specified the @samp{--verbose} option, @code{tar} has printed the name of the file being appended as it was acted on. Now list the contents of the archive: X @example $ @kbd{tar --list --verbose --file=collection.tar} -rw-rw-rw- me user 28 1996-10-18 16:31 jazz -rw-rw-rw- me user 21 1996-09-23 16:44 blues -rw-rw-rw- me user 20 1996-09-23 16:44 folk -rw-rw-rw- me user 20 1996-09-23 16:44 rock -rw-rw-rw- me user 58 1996-10-24 18:30 blues @end example X @noindent The newest version of @file{blues} is now at the end of the archive (note the different creation dates and file sizes). If you extract the archive, the older version of the file @file{blues} will be overwritten by the newer version. You can confirm this by extracting the archive and running @samp{ls} on the directory. @xref{Writing}, for more information. (@emph{Please note:} This is the case unless you employ the @value{op-backup} option; @FIXME-ref{Multiple Members with the Same Name}.) X @node update, concatenate, append, Advanced tar @subsection Updating an Archive @UNREVISED @cindex Updating an archive X In the previous section, you learned how to use @value{op-append} to add a file to an existing archive. A related operation is @value{op-update}. The @samp{--update} operation updates a @code{tar} archive by comparing the date of the specified archive members against the date of the file with the same name. If the file has been modified more recently than the archive member, then the newer version of the file is added to the archive (as with @value{op-append}). X Unfortunately, you cannot use @samp{--update} with magnetic tape drives. The operation will fail. X @FIXME{other examples of media on which --update will fail? need to ask charles and/or mib/thomas/dave shevett..} X Both @samp{--update} and @samp{--append} work by adding to the end of the archive. When you extract a file from the archive, only the version stored last will wind up in the file system, unless you use the @value{op-backup} option (@FIXME-ref{Multiple Members with the Same Name}). X @menu * how to update:: @end menu X @node how to update, , update, update @subsubsection How to Update an Archive Using @code{--update} X You must use file name arguments with the @value{op-update} operation. If you don't specify any files, @code{tar} won't act on any files and won't tell you that it didn't do anything (which may end up confusing you). X @FIXME{note: the above parenthetical added because in fact, this behavior just confused the author. :-) } X To see the @samp{--update} option at work, create a new file, @file{classical}, in your practice directory, and some extra text to the file @file{blues}, using any text editor. Then invoke @code{tar} with the @samp{update} operation and the @value{op-verbose} option specified, using the names of all the files in the practice directory as file name arguments: X @example $ @kbd{tar --update -v -f collection.tar blues folk rock classical} blues classical $ @end example X @noindent Because we have specified verbose mode, @code{tar} prints out the names of the files it is working on, which in this case are the names of the files that needed to be updated. If you run @samp{tar --list} and look at the archive, you will see @file{blues} and @file{classical} at its end. There will be a total of two versions of the member @samp{blues}; the one at the end will be newer and larger, since you added text before updating it. X (The reason @code{tar} does not overwrite the older file when updating it is because writing to the middle of a section of tape is a difficult process. Tapes are not designed to go backward. @xref{Media}, for more information about tapes. X @value{op-update} is not suitable for performing backups for two reasons: it does not change directory content entries, and it lengthens the archive every time it is used. The GNU @code{tar} options intended specifically for backups are more efficient. If you need to run backups, please consult @ref{Backups}. X @node concatenate, delete, update, Advanced tar @subsection Combining Archives with @code{--concatenate} X @cindex Adding archives to an archive @cindex Concatenating Archives Sometimes it may be convenient to add a second archive onto the end of an archive rather than adding individual files to the archive. To add one or more archives to the end of another archive, you should use the @value{op-concatenate} operation. X To use @samp{--concatenate}, name the archives to be concatenated on the command line. (Nothing happens if you don't list any.) The members, and their member names, will be copied verbatim from those archives. If this causes multiple members to have the same name, it does not delete any members; all the members with the same name coexist. For information on how this affects reading the archive, @FIXME-ref{Multiple Members with the Same Name}. X To demonstrate how @samp{--concatenate} works, create two small archives called @file{bluesrock.tar} and @file{folkjazz.tar}, using the relevant files from @file{practice}: X @example $ @kbd{tar -cvf bluesrock.tar blues rock} blues classical $ @kbd{tar -cvf folkjazz.tar folk jazz} folk jazz @end example X @noindent If you like, You can run @samp{tar --list} to make sure the archives contain what they are supposed to: X @example $ @kbd{tar -tvf bluesrock.tar} -rw-rw-rw- melissa user 105 1997-01-21 19:42 blues -rw-rw-rw- melissa user 33 1997-01-20 15:34 rock $ @kbd{tar -tvf folkjazz.tar} -rw-rw-rw- melissa user 20 1996-09-23 16:44 folk -rw-rw-rw- melissa user 65 1997-01-30 14:15 jazz @end example X We can concatenate these two archives with @code{tar}: X @example $ @kbd{cd ..} $ @kbd{tar --concatenate --file=bluesrock.tar jazzfolk.tar} @end example X If you now list the contents of the @file{bluesclass.tar}, you will see that now it also contains the archive members of @file{jazzfolk.tar}: X @example $ @kbd{tar --list --file=bluesrock.tar} blues rock jazz folk @end example X When you use @samp{--concatenate}, the source and target archives must already exist and must have been created using compatable format parameters (@FIXME-pxref{Matching Format Parameters}). The new, concatenated archive will be called by the same name as the first archive listed on the command line. @FIXME{is there a way to specify a new name?} X Like @value{op-append}, this operation cannot be performed on some tape drives, due to deficiencies in the formats those tape drives use. X @cindex @code{concatenate} vs @code{cat} @cindex @code{cat} vs @code{concatenate} It may seem more intuitive to you to want or try to use @code{cat} to concatenate two archives instead of using the @samp{--concatenate} operation; after all, @code{cat} is the utility for combining files. X However, @code{tar} archives incorporate an end-of-file marker which must be removed if the concatenated archives are to be read properly as one archive. @samp{--concatenate} removes the end-of-archive marker from the target archive before each new archive is appended. If you use @code{cat} to combine the archives, the result will not be a valid @code{tar} format archive. If you need to retrieve files from an archive that was added to using the @code{cat} utility, use the @value{op-ignore-zeros} option. @xref{Ignore Zeros}, for further information on dealing with archives improperly combined using the @code{cat} shell utility. X @FIXME{this shouldn't go here. where should it go?} You must specify the source archives using @value{op-file} (@value{pxref-file}). If you do not specify the target archive, @code{tar} uses the value of the environment variable @code{TAPE}, or, if this has not been set, the default archive name. X @node delete, compare, concatenate, Advanced tar @subsection Removing Archive Members Using @samp{--delete} @UNREVISED @cindex Deleting files from an archive @cindex Removing files from an archive X You can remove members from an archive by using the @value{op-delete} option. Specify the name of the archive with @value{op-file} and then specify the names of the members to be deleted; if you list no member names, nothing will be deleted. The @value{op-verbose} option will cause @code{tar} to print the names of the members as they are deleted. As with @value{op-extract}, you must give the exact member names when using @samp{tar --delete}. @samp{--delete} will remove all versions of the named file from the archive. The @samp{--delete} operation can run very slowly. X Unlike other operations, @samp{--delete} has no short form. X @cindex Tapes, using @code{--delete} and @cindex Deleting from tape archives This operation will rewrite the archive. You can only use @samp{--delete} on an archive if the archive device allows you to write to any point on the media, such as a disk; because of this, it does not work on magnetic tapes. Do not try to delete an archive member from a magnetic tape; the action will not succeed, and you will be likely to scramble the archive and damage your tape. There is no safe way (except by completely re-writing the archive) to delete files from most kinds of magnetic tape. @xref{Media}. X To delete all versions of the file @file{blues} from the archive @file{collection.tar} in the @file{practice} directory, make sure you are in that directory, and then, X @example $ @kbd{tar --list --file=collection.tar} blues folk jazz rock practice/blues practice/folk practice/jazz practice/rock practice/blues $ @kbd{tar --delete --file=collection.tar blues} $ @kbd{tar --list --file=collection.tar} folk jazz rock $ @end example X @FIXME{I changed the order of these nodes around and haven't had a chance to fix the above example's results, yet. I have to play with this and follow it and see what it actually does!} X The @value{op-delete} option has been reported to work properly when @code{tar} acts as a filter from @code{stdin} to @code{stdout}. X @node compare, , delete, Advanced tar @subsection Comparing Archive Members with the File System @cindex Verifying the currency of an archive @UNREVISED X The @samp{--compare} (@samp{-d}), or @samp{--diff} operation compares specified archive members against files with the same names, and then reports differences in file size, mode, owner, modification date and contents. You should @emph{only} specify archive member names, not file names. If you do not name any members, then @code{tar} will compare the entire archive. If a file is represented in the archive but does not exist in the file system, @code{tar} reports a difference. X You have to specify the record size of the archive when modifying an archive with a non-default record size. X @code{tar} ignores files in the file system that do not have corresponding members in the archive. X The following example compares the archive members @file{rock}, @file{blues} and @file{funk} in the archive @file{bluesrock.tar} with files of the same name in the file system. (Note that there is no file, @file{funk}; @code{tar} will report an error message.) X @example $ @kbd{tar --compare --file=bluesrock.tar rock blues funk} rock blues tar: funk not found in archive @end example X @noindent @FIXME{what does this actually depend on? i'm making a guess, here.}Depending on the system where you are running @code{tar} and the version you are running, @code{tar} may have a different error message, such as: X @example funk: does not exist @end example X @FIXME-xref{somewhere, for more information about format parameters. Melissa says: such as "format variations"? But why? Clearly I don't get it yet; I'll deal when I get to that section.} X The spirit behind the @value{op-compare} option is to check whether the archive represents the current state of files on disk, more than validating the integrity of the archive media. For this later goal, @xref{verify}. X @node extract options, backup, Advanced tar, operations @section Options Used by @code{--extract} @UNREVISED X @FIXME{i need to get dan to go over these options with me and see if there's a better way of organizing them.} X The previous chapter showed how to use @value{op-extract} to extract an archive into the filesystem. Various options cause @code{tar} to extract more information than just file contents, such as the owner, the permissions, the modification date, and so forth. This section presents options to be used with @samp{--extract} when certain special considerations arise. You may review the information presented in @ref{extract} for more basic information about the @samp{--extract} operation. X @menu * Reading:: Options to Help Read Archives * Writing:: Changing How @code{tar} Writes Files * Scarce:: Coping with Scarce Resources @end menu X @node Reading, Writing, extract options, extract options @subsection Options to Help Read Archives @cindex Options when reading archives @cindex Reading incomplete records @cindex Records, incomplete @cindex End-of-archive entries, ignoring @cindex Ignoring end-of-archive entries @cindex Large lists of file names on small machines @cindex Small memory @cindex Running out of space @UNREVISED X Normally, @code{tar} will request data in full record increments from an archive storage device. If the device cannot return a full record, @code{tar} will report an error. However, some devices do not always return full records, or do not require the last record of an archive to be padded out to the next record boundary. To keep reading until you obtain a full record, or to accept an incomplete record if it contains an end-of-archive marker, specify the @value{op-read-full-records} option in conjunction with the @value{op-extract} or @value{op-list} operations. @value{xref-read-full-records}. X The @value{op-read-full-records} option is turned on by default when @code{tar} reads an archive from standard input, or from a remote machine. This is because on BSD Unix systems, attempting to read a pipe returns however much happens to be in the pipe, even if it is less than was requested. If this option were not enabled, @code{tar} would fail as soon as it read an incomplete record from the pipe. X If you're not sure of the blocking factor of an archive, you can read the archive by specifying @value{op-read-full-records} and @value{op-blocking-factor}, using a blocking factor larger than what the archive uses. This lets you avoid having to determine the blocking factor of an archive. @value{xref-blocking-factor}. X @menu * read full records:: * Ignore Zeros:: * Ignore Failed Read:: @end menu X @node read full records, Ignore Zeros, Reading, Reading @unnumberedsubsubsec Reading Full Records X @FIXME{need sentence or so of intro here} X @table @kbd @item --read-full-records @item -B Use in conjunction with @value{op-extract} to read an archive which contains incomplete records, or one which has a blocking factor less than the one specified. @end table X @node Ignore Zeros, Ignore Failed Read, read full records, Reading @unnumberedsubsubsec Ignoring Blocks of Zeros X Normally, @code{tar} stops reading when it encounters a block of zeros between file entries (which usually indicates the end of the archive). @value{op-ignore-zeros} allows @code{tar} to completely read an archive which contains a block of zeros before the end (i.e.@: a damaged archive, or one which was created by @code{cat}-ing several archives together). X The @value{op-ignore-zeros} option is turned off by default because many versions of @code{tar} write garbage after the end-of-archive entry, since that part of the media is never supposed to be read. GNU @code{tar} does not write after the end of an archive, but seeks to maintain compatablity among archiving utilities. X @table @kbd @item --ignore-zeros @itemx -i To ignore blocks of zeros (ie.@: end-of-archive entries) which may be encountered while reading an archive. Use in conjunction with @value{op-extract} or @value{op-list}. @end table X @node Ignore Failed Read, , Ignore Zeros, Reading @unnumberedsubsubsec Ignore Fail Read X @FIXME{Is this in the right place? It doesn't exist anywhere else in the book (except the appendix), and has no further explanation. For that matter, what does it mean?!} X @table @kbd @item --ignore-failed-read Do not exit with nonzero on unreadable files or directories. @end table X @node Writing, Scarce, Reading, extract options @subsection Changing How @code{tar} Writes Files @cindex Overwriting old files, prevention @cindex Protecting old files @cindex Modification times of extracted files @cindex Permissions of extracted files @cindex Modes of extracted files @cindex Writing extracted files to standard output @cindex Standard output, writing extracted files to @UNREVISED X @FIXME{need to mention the brand new option, --backup} X @menu * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files:: @end menu X @node Prevention Overwriting, Keep Old Files, Writing, Writing @unnumberedsubsubsec Options to Prevent Overwriting Files X Normally, @code{tar} writes extracted files into the file system without regard to the files already on the system; i.e., files with the same names as archive members are overwritten when the archive is extracted. If the name of a corresponding file name is a symbolic link, the file pointed to by the symbolic link will be overwritten instead of the symbolic link itself (if this is possible). Moreover, special devices, empty directories and even symbolic links are automatically removed if they are found to be on the way of the proper extraction. X To prevent @code{tar} from extracting an archive member from an archive if doing so will overwrite a file in the file system, use @value{op-keep-old-files} in conjunction with @samp{--extract}. When this option is specified, @code{tar} will report an error stating the name of the files in conflict instead of overwriting the file with the corresponding extracted archive member. X @FIXME{these two P's have problems. i don't understand what they're trying to talk about well enough to fix them; i may have just made them worse (in particular the first of the two). waiting to talk with hag.} X The @value{op-unlink-first} option removes existing files, symbolic links, empty directories, devices, etc., @emph{prior} to extracting over them. In particular, using this option will prevent replacing an already existing symbolic link by the name of an extracted file, since the link itself is removed prior to the extraction, rather than the file it points to. On some systems, the backing store for the executable @emph{is} the original program text. You could use the @value{op-unlink-first} option to prevent segmentation violations or other woes when extracting arbitrary executables over currently running copies. Note that if something goes wrong with the extraction and you @emph{did} use this option, you might end up with no file at all. Without this option, if something goes wrong with the extraction, the existing file is not overwritten and preserved. X @FIXME{huh?} If you specify the @value{op-recursive-unlink} option, @code{tar} removes @emph{anything} that keeps you from extracting a file as far as current permissions will allow it. This could include removal of the contents of a full directory hierarchy. For example, someone using this feature may be very surprised at the results when extracting a directory entry from the archive. This option can be dangerous; be very aware of what you are doing if you choose to use it. X @menu * Keep Old Files:: * Unlink First:: * Recursive Unlink:: @end menu X @node Keep Old Files, Unlink First, Prevention Overwriting, Writing @unnumberedsubsubsec Keep Old Files X @table @kbd @item --keep-old-files @itemx -k Do not overwrite existing files from archive. The @value{op-keep-old-files} option prevents @code{tar} from over-writing existing files with files with the same name from the archive. The @value{op-keep-old-files} option is meaningless with @value{op-list}. Prevents @code{tar} from overwriting files in the file system during extraction. @end table X @node Unlink First, Recursive Unlink, Keep Old Files, Writing @unnumberedsubsubsec Unlink First X @table @kbd @item --unlink-first @itemx -U Try removing files before extracting over them, instead of trying to overwrite them. @end table X @node Recursive Unlink, Modification Times, Unlink First, Writing @unnumberedsubsubsec Recursive Unlink X @table @kbd @item --recursive-unlink When this option is specified, try removing files and directory hierarchies before extracting over them. @emph{This is a dangerous option!} @end table X Some people argue that GNU @code{tar} should not hesitate to overwrite files with other files when extracting. When extracting a @code{tar} archive, they expect to see a faithful copy of the state of the filesystem when the archive was created. It is debatable that this would always be a proper behaviour. For example, suppose one has an archive in which @file{usr/local} is a link to @file{usr/local2}. Since then, maybe the site removed the link and renamed the whole hierarchy from @file{/usr/local2} to @file{/usr/local}. Such things happen all the time. I guess it would not be welcome at all that GNU @code{tar} removes the whole hierarchy just to make room for the link to be reinstated (unless it @emph{also} simultaneously restores the full @file{/usr/local2}, of course! GNU @code{tar} is indeed able to remove a whole hierarchy to reestablish a symbolic link, for example, but @emph{only if} @value{op-recursive-unlink} is specified to allow this behaviour. In any case, single files are silently removed. X @node Modification Times, Setting Access Permissions, Recursive Unlink, Writing @unnumberedsubsubsec Setting Modification Times X Normally, @code{tar} sets the modification times of extracted files to the modification times recorded for the files in the archive, but limits the permissions of extracted files by the current @code{umask} setting. X To set the modification times of extracted files to the time when the files were extracted, use the @value{op-touch} option in conjunction with @value{op-extract}. X @table @kbd @item --touch @itemx -m Sets the modification time of extracted archive members to the time they were extracted, not the time recorded for them in the archive. Use in conjunction with @value{op-extract}. @end table X @node Setting Access Permissions, Writing to Standard Output, Modification Times, Writing @unnumberedsubsubsec Setting Access Permissions X To set the modes (access permissions) of extracted files to those recorded for those files in the archive, use @samp{--same-persmissions} in conjunction with the @value{op-extract} operation. @FIXME{Should be aliased to ignore-umask.} X @table @kbd @item --preserve-permission @itemx --same-permission @itemx --ignore-umask @itemx -p Set modes of extracted archive members to those recorded in the archive, instead of current umask settings. Use in conjunction with @value{op-extract}. @end table X @FIXME{Following paragraph needs to be rewritten: why doesnt' this cat files together, why is this useful. is it really useful with more than one file?} X @node Writing to Standard Output, remove files, Setting Access Permissions, Writing @unnumberedsubsubsec Writing to Standard Output X To write the extracted files to the standard output, instead of creating the files on the file system, use @value{op-to-stdout} in conjunction with @value{op-extract}. This option is useful if you are extracting files to send them through a pipe, and do not need to preserve them in the file system. If you extract multiple members, they appear on standard output concatenated, in the order they are found in the archive. X @table @kbd @item --to-stdout @itemx -O Writes files to the standard output. Used in conjunction with @value{op-extract}. Extract files to standard output. When this option is used, instead of creating the files specified, @code{tar} writes the contents of the files extracted to its standard output. This may be useful if you are only extracting the files in order to send them through a pipe. This option is meaningless with @value{op-list}. @end table X @FIXME{Why would you want to do such a thing, how are files separated on the standard output? is this useful with more that one file? Are pipes the real reason?} X @node remove files, , Writing to Standard Output, Writing @unnumberedsubsubsec Removing Files X @FIXME{the various macros in the front of the manual think that this option goes in this section. i have no idea; i only know it's nowhere else in the book...} X @table @kbd @item --remove-files Remove files after adding them to the archive. @end table X @node Scarce, , Writing, extract options @subsection Coping with Scarce Resources @cindex Middle of the archive, starting in the @cindex Running out of space during extraction @cindex Disk space, running out of @cindex Space on the disk, recovering from lack of @UNREVISED X @menu * Starting File:: * Same Order:: @end menu X @node Starting File, Same Order, Scarce, Scarce @unnumberedsubsubsec Starting File X @table @kbd @item --starting-file=@var{name} @itemx -K @var{name} Starts an operation in the middle of an archive. Use in conjunction with @value{op-extract} or @value{op-list}. @end table X If a previous attempt to extract files failed due to lack of disk space, you can use @value{op-starting-file} to start extracting only after member @var{name} of the archive. This assumes, of course, that there is now free space, or that you are now extracting into a different file system. (You could also choose to suspend @code{tar}, remove unnecessary files from the file system, and then restart the same @code{tar} operation. In this case, @value{op-starting-file} is not necessary. @value{xref-incremental}, @value{xref-interactive}, and @value{ref-exclude}.) X @node Same Order, , Starting File, Scarce @unnumberedsubsubsec Same Order X @table @kbd @item --same-order @itemx --preserve-order @itemx -s To process large lists of file names on machines with small amounts of memory. Use in conjunction with @value{op-compare}, @value{op-list} or @value{op-extract}. @end table X @FIXME{we don't need/want --preserve to exist any more (from melissa: ie, don't want that *version* of the option to exist, or don't want the option to exist in either version?} X @FIXME{i think this explanation is lacking.} X The @value{op-same-order} option tells @code{tar} that the list of file names to be listed or extracted is sorted in the same order as the files in the archive. This allows a large list of names to be used, even on a small machine that would not otherwise be able to hold all the names in memory at the same time. Such a sorted list can easily be created by running @samp{tar -t} on the archive and editing its output. X This option is probably never needed on modern computer systems. X @node backup, Applications, extract options, operations @section Backup options X @cindex backup options X GNU @code{tar} offers options for making backups of files before writing new versions. These options control the details of these backups. They may apply to the archive itself before it is created or rewritten, as well as individual extracted members. Other GNU programs (@code{cp}, @code{install}, @code{ln}, and @code{mv}, for example) offer similar options. X Backup options may prove unexpectedly useful when extracting archives containing many members having identical name, or when extracting archives on systems having file name limitations, making different members appear has having similar names through the side-effect of name truncation. (This is true only if we have a good scheme for truncated backup names, which I'm not sure at all: I suspect work is needed in this area.) When any existing file is backed up before being overwritten by extraction, then clashing files are automatically be renamed to be unique, and the true name is kept for only the last file of a series of clashing files. By using verbose mode, users may track exactly what happens. X At the detail level, some decisions are still experimental, and may change in the future, we are waiting comments from our users. So, please do not learn to depend blindly on the details of the backup features. For example, currently, directories themselves are never renamed through using these options, so, extracting a file over a directory still has good chances to fail. Also, backup options apply to created archives, not only to extracted members. For created archives, backups will not be attempted when the archive is a block or character device, or when it refers to a remote file. X For the sake of simplicity and efficiency, backups are made by renaming old files prior to creation or extraction, and not by copying. The original name is restored if the file creation fails. If a failure occurs after a partial extraction of a file, both the backup and the partially extracted file are kept. X @table @samp X @item --backup @opindex --backup @cindex backups, making Make backups of files that are about to be overwritten or removed. Without this option, the original versions are destroyed. X @item --suffix=@var{suffix} @opindex --suffix @cindex backup suffix @vindex SIMPLE_BACKUP_SUFFIX Append @var{suffix} to each backup file made with @samp{-b}. If this option is not specified, the value of the @code{SIMPLE_BACKUP_SUFFIX} environment variable is used. And if @code{SIMPLE_BACKUP_SUFFIX} is not set, the default is @samp{~}, just as in Emacs. X @item --version-control=@var{method} @opindex --version-control @vindex VERSION_CONTROL @cindex backup files, type made Use @var{method} to determine the type of backups made with @value{op-backup}. If this option is not specified, the value of the @code{VERSION_CONTROL} environment variable is used. And if @code{VERSION_CONTROL} is not set, the default backup type is @samp{existing}. X @vindex version-control @r{Emacs variable} This option corresponds to the Emacs variable @samp{version-control}; the same values for @var{method} are accepted as in Emacs. This options also more descriptive name. The valid @var{method}s (unique abbreviations are accepted): X @table @samp @item t @itemx numbered @opindex numbered @r{backup method} Always make numbered backups. X @item nil @itemx existing @opindex existing @r{backup method} Make numbered backups of files that already have them, simple backups of the others. X @item never @itemx simple @opindex simple @r{backup method} Always make simple backups. X @end table X @end table X Some people express the desire to @emph{always} use the @var{op-backup} option, by defining some kind of alias or script. This is not as easy as one may thing, due to the fact old style options should appear first and consume arguments a bit inpredictably for an alias or script. But, if you are ready to give up using old style options, you may resort to using something like (a Bourne shell function here): X @example tar () @{ /usr/local/bin/tar --backup $*; @} @end example X @node Applications, looking ahead, backup, operations @section Notable @code{tar} Usages @UNREVISED X @FIXME{Using Unix file linking capability to recreate directory structures---linking files into one subdirectory and then @code{tar}ring that directory.} X @FIXME{Nice hairy example using absolute-names, newer, etc.} X @findex uuencode You can easily use archive files to transport a group of files from one system to another: put all relevant files into an archive on one computer system, transfer the archive to another system, and extract the contents there. The basic transfer medium might be magnetic tape, Internet FTP, or even electronic mail (though you must encode the archive with @code{uuencode} in order to transport it properly by mail). Both machines do not have to use the same operating system, as long as they both support the @code{tar} program. X For example, here is how you might copy a directory's contents from one disk to another, while preserving the dates, modes, owners and link-structure of all the files therein. In this case, the transfer medium is a @dfn{pipe}, which is one a Unix redirection mechanism: X @smallexample $ @kbd{cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -)} @end smallexample X @noindent The command also works using short option forms: X @FIXME{The following using standard input/output correct??} @smallexample $ @w{@kbd{cd sourcedir; tar --create --file=- . | (cd targetdir; tar --extract --file=-)}} @end smallexample X @noindent This is one of the easiest methods to transfer a @code{tar} archive. X @node looking ahead, , Applications, operations @section Looking Ahead: The Rest of this Manual X You have now seen how to use all eight of the operations available to @code{tar}, and a number of the possible options. The next chapter explains how to choose and change file and archive names, how to use files to store names of other files which you can then call as arguments to @code{tar} (this can help you save time if you expect to archive the same list of files a number of times), and how to @FIXME{in case it's not obvious, i'm making this up in some sense based on my imited memory of what the next chapter *really* does. i just wanted to flesh out this final section a little bit so i'd remember to sitck it in here. :-)} X If there are too many files to conveniently list on the command line, you can list the names in a file, and @code{tar} will read that file. @value{xref-files-from}. X There are various ways of causing @code{tar} to skip over some files, and not archive them. @xref{Choosing}. X @node Backups, Choosing, operations, Top @chapter Performing Backups and Restoring Files @UNREVISED X GNU @code{tar} is distributed along with the scripts which the Free Software Foundation uses for performing backups. There is no corresponding scripts available yet for doing restoration of files. Even if there is a good chance those scripts may be satisfying to you, they are not the only scripts or methods available for doing backups and restore. You may well create your own, or use more sophisticated packages dedicated to that purpose. X Some users are enthusiastic about @code{Amanda} (The Advanced Maryland Automatic Network Disk Archiver), a backup system developed by James da Silva @file{jds@@cs.umd.edu} and available on many Unix systems. This is free software, and it is available at these places: X @example http://www.cs.umd.edu/projects/amanda/amanda.html ftp://ftp.cs.umd.edu/pub/amanda @end example X @ifclear PUBLISH X Here is a possible plan for a future documentation about the backuping scripts which are provided within the GNU @code{tar} distribution. X @example X.* dumps X. + what are dumps X X. + different levels of dumps X. - full dump = dump everything X. - level 1, level 2 dumps etc, - X A level n dump dumps everything changed since the last level X n-1 dump (?) X X. + how to use scripts for dumps (ie, the concept) X. - scripts to run after editing backup specs (details) X X. + Backup Specs, what is it. X. - how to customize X. - actual text of script [/sp/dump/backup-specs] X X. + Problems X. - rsh doesn't work X. - rtape isn't installed X. - (others?) X X. + the --incremental option of tar X X. + tapes X. - write protection X. - types of media X. : different sizes and types, useful for different things X. - files and tape marks X one tape mark between files, two at end. X. - positioning the tape X MT writes two at end of write, X backspaces over one when writing again. @end example X @end ifclear X This chapter documents both the provided FSF scripts and @code{tar} options which are more specific to usage as a backup tool. X To @dfn{back up} a file system means to create archives that contain all the files in that file system. Those archives can then be used to restore any or all of those files (for instance if a disk crashes or a file is accidently deleted). File system @dfn{backups} are also called @dfn{dumps}. X @menu * Full Dumps:: Using @code{tar} to Perform Full Dumps * Inc Dumps:: Using @code{tar} to Perform Incremental Dumps * incremental and listed-incremental:: The Incremental Options * Backup Levels:: Levels of Backups * Backup Parameters:: Setting Parameters for Backups and Restoration * Scripted Backups:: Using the Backup Scripts * Scripted Restoration:: Using the Restore Script @end menu X @node Full Dumps, Inc Dumps, Backups, Backups @section Using @code{tar} to Perform Full Dumps @UNREVISED X @cindex full dumps @cindex dumps, full X @cindex corrupted archives Full dumps should only be made when no other people or programs are modifying files in the filesystem. If files are modified while @code{tar} is making the backup, they may not be stored properly in the archive, in which case you won't be able to restore them if you have to. (Files not being modified are written with no trouble, and do not corrupt the entire archive.) X You will want to use the @value{op-label} option to give the archive a volume label, so you can tell what this archive is even if the label falls off the tape, or anything like that. X Unless the filesystem you are dumping is guaranteed to fit on one volume, you will need to use the @value{op-multi-volume} option. Make sure you have enough tapes on hand to complete the backup. X If you want to dump each filesystem separately you will need to use the @value{op-one-file-system} option to prevent @code{tar} from crossing filesystem boundaries when storing (sub)directories. X The @value{op-incremental} option is not needed, since this is a complete copy of everything in the filesystem, and a full restore from this backup would only be done onto a completely empty disk. X Unless you are in a hurry, and trust the @code{tar} program (and your tapes), it is a good idea to use the @value{op-verify} option, to make sure your files really made it onto the dump properly. This will also detect cases where the file was modified while (or just after) it was being archived. Not all media (notably cartridge tapes) are capable of being verified, unfortunately. X @value{op-listed-incremental} take a file name argument always. If the file doesn't exist, run a level zero dump, creating the file. If the file exists, uses that file to see what has changed. X @value{op-incremental} @FIXME{look it up} X @value{op-incremental} handle old GNU-format incremental backup. X This option should only be used when creating an incremental backup of a filesystem. When the @value{op-incremental} option is used, @code{tar} writes, at the beginning of the archive, an entry for each of the directories that will be operated on. The entry for a directory includes a list of all the files in the directory at the time the dump was done, and a flag for each file indicating whether the file is going to be put in the archive. This information is used when doing a complete incremental restore. X Note that this option causes @code{tar} to create a non-standard archive that may not be readable by non-GNU versions of the @code{tar} program. X The @value{op-incremental} option means the archive is an incremental backup. Its meaning depends on the command that it modifies. X If the @value{op-incremental} option is used with @value{op-list}, @code{tar} will list, for each directory in the archive, the list of files in that directory at the time the archive was created. This information is put out in a format that is not easy for humans to read, but which is unambiguous for a program: each file name is preceded by either a @samp{Y} if the file is present in the archive, an @samp{N} if the file is not included in the archive, or a @samp{D} if the file is a directory (and is included in the archive). Each file name is terminated by a null character. The last file is followed by an additional null and a newline to indicate the end of the data. X If the @value{op-incremental} option is used with @value{op-extract}, then when the entry for a directory is found, all files that currently exist in that directory but are not listed in the archive @emph{are deleted from the directory}. X This behavior is convenient when you are restoring a damaged file system from a succession of incremental backups: it restores the entire state of the file system to that which obtained when the backup was made. If you don't use @value{op-incremental}, the file system will probably fill up with files that shouldn't exist any more. X @value{op-listed-incremental} handle new GNU-format incremental backup. This option handles new GNU-format incremental backup. It has much the same effect as @value{op-incremental}, but also the time when the dump is done and the list of directories dumped is written to the given @var{file}. When restoring, only files newer than the saved time are restored, and the direcotyr list is used to speed up operations. X @value{op-listed-incremental} acts like @value{op-incremental}, but when used in conjunction with @value{op-create} will also cause @code{tar} to use the file @var{file}, which contains information about the state of the filesystem at the time of the last backup, to decide which files to include in the archive being created. That file will then be updated by @code{tar}. If the file @var{file} does not exist when this option is specified, @code{tar} will create it, and include all appropriate files in the archive. X The file, which is archive independent, contains the date it was last modified and a list of devices, inode numbers and directory names. @code{tar} will archive files with newer mod dates or inode change times, and directories with an unchanged inode number and device but a changed directory name. The file is updated after the files to be archived are determined, but before the new archive is actually created. X GNU @code{tar} actually writes the file twice: once before the data and written, and once after. X @node Inc Dumps, incremental and listed-incremental, Full Dumps, Backups @section Using @code{tar} to Perform Incremental Dumps @UNREVISED X @cindex incremental dumps @cindex dumps, incremental X Performing incremental dumps is similar to performing full dumps, although a few more options will usually be needed. X You will need to use the @samp{-N @var{date}} option to tell @code{tar} to only store files that have been modified since @var{date}. @var{date} should be the date and time of the last full/incremental dump. X A standard scheme is to do a @emph{monthly} (full) dump once a month, a @emph{weekly} dump once a week of everything since the last monthly and a @emph{daily} every day of everything since the last (weekly or monthly) dump. X Here is a copy of the script used to dump the filesystems of the machines here at the Free Software Foundation. This script is run via @code{cron} late at night when people are least likely to be using the machines. This script dumps several filesystems from several machines at once (via NFS). The operator is responsible for ensuring that all the machines will be up at the time the dump happens. If a machine is not running, its files will not be dumped, and the next day's incremental dump will @emph{not} store files that would have gone onto that dump. X @example #!/bin/csh # Dump thingie set now = `date` set then = `cat date.nfs.dump` /u/hack/bin/tar -c -G -v\ X -f /dev/rtu20\ X -b 126\ X -N "$then"\ X -V "Dump from $then to $now"\ X /alpha-bits/gp\ X /gnu/hack\ X /hobbes/u\ X /spiff/u\ X /sugar-bombs/u echo $now > date.nfs.dump mt -f /dev/rtu20 rew @end example X Output from this script is stored in a file, for the operator to read later. X This script uses the file @file{date.nfs.dump} to store the date/time of the last dump. X Since this is a streaming tape drive, no attempt to verify the archive is done. This is also why the high blocking factor (126) is used. The tape drive must also be rewound by the @code{mt} command after the dump is made. X @node incremental and listed-incremental, Backup Levels, Inc Dumps, Backups @section The Incremental Options @UNREVISED X @value{op-incremental} is used in conjunction with @value{op-create}, @value{op-extract} or @value{op-list} when backing up and restoring file systems. An archive cannot be extracted or listed with the @value{op-incremental} option specified unless it was created with the option specified. This option should only be used by a script, not by the user, and is usually disregarded in favor of @value{op-listed-incremental}, which is described below. X @value{op-incremental} in conjunction with @value{op-create} causes @code{tar} to write, at the beginning of the archive, an entry for each of the directories that will be archived. The entry for a directory includes a list of all the files in the directory at the time the archive was created and a flag for each file indicating whether or not the file is going to be put in the archive. X Note that this option causes @code{tar} to create a non-standard archive that may not be readable by non-GNU versions of the @code{tar} program. X @value{op-incremental} in conjunction with @value{op-extract} causes @code{tar} to read the lists of directory contents previously stored in the archive, @emph{delete} files in the file system that did not exist in their directories when the archive was created, and then extract the files in the archive. X This behavior is convenient when restoring a damaged file system from a succession of incremental backups: it restores the entire state of the file system to that which obtained when the backup was made. If @value{op-incremental} isn't specified, the file system will probably fill up with files that shouldn't exist any more. X @value{op-incremental} in conjunction with @value{op-list}, causes @code{tar} to print, for each directory in the archive, the list of files in that directory at the time the archive was created. This information is put out in a format that is not easy for humans to read, but which is unambiguous for a program: each file name is preceded by either a @samp{Y} if the file is present in the archive, an @samp{N} if the file is not included in the archive, or a @samp{D} if the file is a directory (and is included in the archive). Each file name is terminated by a null character. The last file is followed by an additional null and a newline to indicate the end of the data. X @value{op-listed-incremental} acts like @value{op-incremental}, but when used in conjunction with @value{op-create} will also cause @code{tar} to use the file @var{snapshot-file}, which contains information about the state of the file system at the time of the last backup, to decide which files to include in the archive being created. That file will then be updated by @code{tar}. If the file @var{file} does not exist when this option is specified, @code{tar} will create it, and include all appropriate files in the archive. X The file @var{file}, which is archive independent, contains the date it was last modified and a list of devices, inode numbers and directory names. @code{tar} will archive files with newer mod dates or inode change times, and directories with an unchanged inode number and device but a changed directory name. The file is updated after the files to be archived are determined, but before the new archive is actually created. X Despite it should be obvious that a device has a non-volatile value, NFS devices have non-dependable values when an automounter gets in the picture. This led to a great deal of spurious redumping in incremental dumps, so it is somewhat useless to compare two NFS devices numbers over time. So @code{tar} now considers all NFS devices as being equal when it comes to comparing directories; this is fairly gross, but there does not seem to be a better way to go. X @FIXME{this section needs to be written} X @node Backup Levels, Backup Parameters, incremental and listed-incremental, Backups @section Levels of Backups @UNREVISED X An archive containing all the files in the file system is called a @dfn{full backup} or @dfn{full dump}. You could insure your data by creating a full dump every day. This strategy, however, would waste a substantial amount of archive media and user time, as unchanged files are daily re-archived. X It is more efficient to do a full dump only occasionally. To back up files between full dumps, you can a incremental dump. A @dfn{level one} dump archives all the files that have changed since the last full dump. X A typical dump strategy would be to perform a full dump once a week, and a level one dump once a day. This means some versions of files will in fact be archived more than once, but this dump strategy makes it possible to restore a file system to within one day of accuracy by only extracting two archives---the last weekly (full) dump and the last daily (level one) dump. The only information lost would be in files changed or created since the last daily backup. (Doing dumps more than once a day is usually not worth the trouble). X GNU @code{tar} comes with scripts you can use to do full and level-one dumps. Using scripts (shell programs) to perform backups and restoration is a convenient and reliable alternative to typing out file name lists and @code{tar} commands by hand. X Before you use these scripts, you need to edit the file @file{backup-specs}, which specifies parameters used by the backup scripts and by the restore script. @FIXME{There is no such restore script!}. @FIXME-xref{Script Syntax}. Once the backup parameters are set, you can perform backups or restoration by running the appropriate script. X The name of the restore script is @code{restore}. @FIXME{There is no such restore script!}. The names of the level one and full backup scripts are, respectively, @code{level-1} and @code{level-0}. The @code{level-0} script also exists under the name @code{weekly}, and the @code{level-1} under the name @code{daily}---these additional names can be changed according to your backup schedule. @FIXME-xref{Scripted Restoration}, for more information on running the restoration script. @FIXME-xref{Scripted Backups}, for more information on running the backup scripts. X @emph{Please Note:} The backup scripts and the restoration scripts are designed to be used together. While it is possible to restore files by hand from an archive which was created using a backup script, and to create an archive by hand which could then be extracted using the restore script, it is easier to use the scripts. @FIXME{There is no such restore script!}. @value{xref-incremental}, and @value{xref-listed-incremental}, before making such an attempt. X @FIXME{shorten node names} X @node Backup Parameters, Scripted Backups, Backup Levels, Backups @section Setting Parameters for Backups and Restoration @UNREVISED X The file @file{backup-specs} specifies backup parameters for the backup and restoration scripts provided with @code{tar}. You must edit @file{backup-specs} to fit your system configuration and schedule before using these scripts. X @FIXME{This about backup scripts needs to be written: BS is a shell script .... thus ... @file{backup-specs} is in shell script syntax.} X @FIXME-xref{Script Syntax}, for an explanation of this syntax. X @FIXME{Whats a parameter .... looked at by the backup scripts X... which will be expecting to find ... now syntax ... value is linked to lame ... @file{backup-specs} specifies the following parameters:} X @table @samp @item ADMINISTRATOR The user name of the backup administrator. X @item BACKUP_HOUR The hour at which the backups are done. This can be a number from 0 to 23, or the string @samp{now}. X @item TAPE_FILE The device @code{tar} writes the archive to. This device should be attached to the host on which the dump scripts are run. X @FIXME{examples for all ...} X @item TAPE_STATUS The command to use to obtain the status of the archive device, including error count. On some tape drives there may not be such a command; in that case, simply use `TAPE_STATUS=false'. X @item BLOCKING The blocking factor @code{tar} will use when writing the dump archive. @value{xref-blocking-factor}. X @item BACKUP_DIRS A list of file systems to be dumped. You can include any directory name in the list---subdirectories on that file system will be included, regardless of how they may look to other networked machines. Subdirectories on other file systems will be ignored. X The host name specifies which host to run @code{tar} on, and should normally be the host that actually contains the file system. However, the host machine must have GNU @code{tar} installed, and must be able to access the directory containing the backup scripts and their support files using the same file name that is used on the machine where the scripts are run (ie. what @code{pwd} will print when in that directory on that machine). If the host that contains the file system does not have this capability, you can specify another host as long as it can access the file system through NFS. X @item BACKUP_FILES A list of individual files to be dumped. These should be accessible from the machine on which the backup script is run. X @FIXME{Same file name, be specific. Through NFS ...} X @end table X @menu * backup-specs example:: An Example Text of @file{Backup-specs} * Script Syntax:: Syntax for @file{Backup-specs} @end menu X @node backup-specs example, Script Syntax, Backup Parameters, Backup Parameters @subsection An Example Text of @file{Backup-specs} @UNREVISED X The following is the text of @file{backup-specs} as it appears at FSF: X @example # site-specific parameters for file system backup. X ADMINISTRATOR=friedman BACKUP_HOUR=1 TAPE_FILE=/dev/nrsmt0 TAPE_STATUS="mts -t $TAPE_FILE" BLOCKING=124 BACKUP_DIRS=" X albert:/fs/fsf X apple-gunkies:/gd X albert:/fs/gd2 X albert:/fs/gp X geech:/usr/jla X churchy:/usr/roland X albert:/ X albert:/usr X apple-gunkies:/ X apple-gunkies:/usr X gnu:/hack X gnu:/u X apple-gunkies:/com/mailer/gnu X apple-gunkies:/com/archive/gnu" X BACKUP_FILES="/com/mailer/aliases /com/mailer/league*[a-z]" X @end example X @node Script Syntax, , backup-specs example, Backup Parameters @subsection Syntax for @file{Backup-specs} @UNREVISED X @file{backup-specs} is in shell script syntax. The following conventions should be considered when editing the script: @FIXME{"conventions?"} X A quoted string is considered to be contiguous, even if it is on more than one line. Therefore, you cannot include commented-out lines within a multi-line quoted string. BACKUP_FILES and BACKUP_DIRS are the two most likely parameters to be multi-line. X A quoted string typically cannot contain wildcards. In @file{backup-specs}, however, the parameters BACKUP_DIRS and BACKUP_FILES can contain wildcards. X @node Scripted Backups, Scripted Restoration, Backup Parameters, Backups @section Using the Backup Scripts @UNREVISED X The syntax for running a backup script is: X @example @file{script-name} [@var{time-to-be-run}] @end example X where @var{time-to-be-run} can be a specific system time, or can be @kbd{now}. If you do not specify a time, the script runs at the time specified in @file{backup-specs} (@FIXME-pxref{Script Syntax}). X You should start a script with a tape or disk mounted. Once you start a script, it prompts you for new tapes or disks as it needs them. Media volumes don't have to correspond to archive files---a multi-volume archive can be started in the middle of a tape that already contains the end of another multi-volume archive. The @code{restore} script prompts for media by its archive volume, so to avoid an error message you should keep track of which tape (or disk) contains which volume of the archive. @FIXME{There is no such restore script!}. @FIXME-xref{Scripted Restoration}. @FIXME{Have file names changed?} X The backup scripts write two files on the file system. The first is a record file in @file{/etc/tar-backup/}, which is used by the scripts to store and retrieve information about which files were dumped. This file is not meant to be read by humans, and should not be deleted by them. @FIXME-xref{incremental and listed-incremental}, for a more detailed explanation of this file. X The second file is a log file containing the names of the file systems and files dumped, what time the backup was made, and any error messages that were generated, as well as how much space was left in the media volume after the last volume of the archive was written. You should check this log file after every backup. The file name is @file{log-@var{mmm-ddd-yyyy}-level-1} or @file{log-@var{mmm-ddd-yyyy}-full}. X The script also prints the name of each system being dumped to the standard output. X @node Scripted Restoration, , Scripted Backups, Backups @section Using the Restore Script @UNREVISED X @ifset PUBLISH X The @code{tar} distribution does not provide restoring scripts. X @end ifset X @ifclear PUBLISH X @quotation @strong{Warning:} The GNU @code{tar} distribution does @emph{not} provide any such @code{restore} script yet. This section is only listed here for documentation maintenance purposes. In any case, all contents is subject to change as things develop. @end quotation X @FIXME{A section on non-scripted restore may be a good idea.} X To restore files that were archived using a scripted backup, use the @code{restore} script. The syntax for the script is: X where ***** are the file systems to restore from, and ***** is a regular expression which specifies which files to restore. If you specify --all, the script restores all the files in the file system. X You should start the restore script with the media containing the first volume of the archive mounted. The script will prompt for other volumes as they are needed. If the archive is on tape, you don't need to rewind the tape to to its beginning---if the tape head is positioned past the beginning of the archive, the script will rewind the tape as needed. @FIXME-xref{Media}, for a discussion of tape positioning. X If you specify @samp{--all} as the @var{files} argument, the @code{restore} script extracts all the files in the archived file system into the active file system. X @quotation @strong{Warning:} The script will delete files from the active file system if they were not in the file system when the archive was made. @end quotation X @value{xref-incremental}, and @value{ref-listed-incremental}, for an explanation of how the script makes that determination. X @FIXME{this may be an option, not a given} X @end ifclear X @node Choosing, Date input formats, Backups, Top @chapter Choosing Files and Names for @code{tar} @UNREVISED X @FIXME{Melissa (still) Doesn't Really Like This ``Intro'' Paragraph!!!} X Certain options to @code{tar} enable you to specify a name for your archive. Other options let you decide which files to include or exclude from the archive, based on when or whether files were modified, whether the file names do or don't match specified patterns, or whether files are in specified directories. X @menu * file:: Choosing the Archive's Name * Selecting Archive Members:: * files:: Reading Names from a File * exclude:: Excluding Some Files * Wildcards:: * after:: Operating Only on New Files * recurse:: Descending into Directories * one:: Crossing Filesystem Boundaries @end menu X @node file, Selecting Archive Members, Choosing, Choosing @section Choosing and Naming Archive Files @cindex Naming an archive @cindex Archive Name @cindex Directing output @cindex Choosing an archive file @cindex Where is the archive? @UNREVISED X @FIXME{should the title of this section actually be, "naming an archive"?} X By default, @code{tar} uses an archive file name that was compiled when it was built on the system; usually this name refers to some physical tape drive on the machine. However, the person who installed @code{tar} on the system may not set the default to a meaningful value as far as most users are concerned. As a result, you will usually want to tell @code{tar} where to find (or create) the archive. The @value{op-file} option allows you to either specify or name a file to use as the archive instead of the default archive file location. X @table @kbd @item --file=@var{archive-name} @itemx -f @var{archive-name} Name the archive to create or operate on. Use in conjunction with any operation. @end table X For example, in this @code{tar} command, X @example $ @kbd{tar -cvf collection.tar blues folk jazz} @end example X @noindent @file{collection.tar} is the name of the archive. It must directly follow the @samp{-f} option, since whatever directly follows @samp{-f} @emph{will} end up naming the archive. If you neglect to specify an archive name, you may end up overwriting a file in the working directory with the archive you create since @code{tar} will use this file's name for the archive name. X An archive can be saved as a file in the file system, sent through a pipe or over a network, or written to an I/O device such as a tape, floppy disk, or CD write drive. X @cindex Writing new archives @cindex Archive creation If you do not name the archive, @code{tar} uses the value of the environment variable @code{TAPE} as the file name for the archive. If that is not available, @code{tar} uses a default, compiled-in archive name, usually that for tape unit zero (ie. @file{/dev/tu00}). @code{tar} always needs an archive name. X If you use @file{-} as an @var{archive-name}, @code{tar} reads the archive from standard input (when listing or extracting files), or writes it to standard output (when creating an archive). If you use @file{-} as an @var{archive-name} when modifying an archive, @code{tar} reads the original archive from its standard input and writes the entire new archive to its standard output. X @FIXME{might want a different example here; this is already used in "notable tar usages".} X @example $ @kbd{cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -)} @end example X @FIXME{help!} X @cindex Standard input and output @cindex tar to standard input and output To specify an archive file on a device attached to a remote machine, use the following: X @example @kbd{--file=@var{hostname}:/@var{dev}/@var{file name}} @end example X @noindent @code{tar} will complete the remote connection, if possible, and prompt you for a username and password. If you use @samp{--file=@@@var{hostname}:/@var{dev}/@var{file name}}, @code{tar} will complete the remote connection, if possible, using your username as the username on the remote machine. X If the archive file name includes a colon (@samp{:}), then it is assumed to be a file on another machine. If the archive file is @samp{@var{user}@@@var{host}:@var{file}}, then @var{file} is used on the host @var{host}. The remote host is accessed using the @code{rsh} program, with a username of @var{user}. If the username is omitted (along with the @samp{@@} sign), then your user name will be used. (This is the normal @code{rsh} behavior.) It is necessary for the remote machine, in addition to permitting your @code{rsh} access, to have the @file{/usr/ucb/rmt} program installed. If you need to use a file whose name includes a colon, then the remote tape drive behavior can be inhibited by using the @value{op-force-local} option. X @FIXME{i know we went over this yesterday, but bob (and now i do again, too) thinks it's out of the middle of nowhere. it doesn't seem to tie into what came before it well enough <>. bob also comments that if Amanda isn't free software, we shouldn't mention it..} X When the archive is being created to @file{/dev/null}, GNU @code{tar} tries to minimize input and output operations. The Amanda backup system, when used with GNU @code{tar}, has an initial sizing pass which uses this feature. X @node Selecting Archive Members, files, file, Choosing @section Selecting Archive Members @cindex Specifying files to act on @cindex Specifying archive members X @dfn{File Name arguments} specify which files in the file system @code{tar} operates on, when creating or adding to an archive, or which archive members @code{tar} operates on, when reading or deleting from an archive. @xref{Operations}. X To specify file names, you can include them as the last arguments on the command line, as follows: @smallexample @kbd{tar} @var{operation} [@var{option1} @var{option2} @dots{}] [@var{file name-1} @var{file name-2} @dots{}] @end smallexample X If you specify a directory name as a file name argument, all the files in that directory are operated on by @code{tar}. X If you do not specify files when @code{tar} is invoked with @value{op-create}, @code{tar} operates on all the non-directory files in the working directory. If you specify either @value{op-list} or @value{op-extract}, @code{tar} operates on all the archive members in the archive. If you specify any operation other than one of these three, @code{tar} does nothing. X By default, @code{tar} takes file names from the command line. However, there are other ways to specify file or member names, or to modify the manner in which @code{tar} selects the files or members upon which to operate; @FIXME{add xref here}. In general, these methods work both for specifying the names of files and archive members. X @node files, exclude, Selecting Archive Members, Choosing @section Reading Names from a File @UNREVISED X @cindex Reading file names from a file @cindex Lists of file names @cindex File Name arguments, alternatives Instead of giving the names of files or archive members on the command line, you can put the names into a file, and then use the @value{op-files-from} option to @code{tar}. Give the name of the file which contains the list of files to include as the argument to @samp{--files-from}. In the list, the file names should be separated by newlines. You will frequently use this option when you have generated the list of files to archive with the @code{find} utility. X @table @kbd @item --files-from=@var{file name} @itemx -T @var{file name} Get names to extract or create from file @var{file name}. @end table X If you give a single dash as a file name for @samp{--files-from}, (i.e., you specify either @samp{--files-from=-} or @samp{-T -}), then the file names are read from standard input. X Unless you are running @code{tar} with @samp{--create}, you can not use both @samp{--files-from=-} and @samp{--file=-} (@samp{-f -}) in the same command. X @FIXME{add bob's example, from his message on 2-10-97} X The following example shows how to use @code{find} to generate a list of files smaller than 400K in length and put that list into a file called @file{small-files}. You can then use the @samp{-T} option to @code{tar} to specify the files from that file, @file{small-files}, to create the archive @file{little.tgz}. (The @samp{-z} option to @code{tar} compresses the archive with @code{gzip}; @pxref{gzip} for more information.) X @example $ @kbd{find . -size -400 -print > small-files} $ @kbd{tar -c -v -z -T small-files -f little.tgz} @end example X @noindent @FIXME{say more here to conclude the example/section?} X @menu * nul:: @end menu X @node nul, , files, files @ifinfo @unnumberedsubsec @kbd{NUL} Terminated File Names @end ifinfo X @cindex File names, terminated by @kbd{NUL} @cindex @kbd{NUL} terminated file names The @value{op-null} option causes @value{op-files-from} to read file names terminated by a @code{NUL} instead of a newline, so files whose names contain newlines can be archived using @samp{--files-from}. X @table @kbd @item --null Only consider @kbd{NUL} terminated file names, instead of files that terminate in a newline. @end table X The @samp{--null} option is just like the one in GNU @code{xargs} and @code{cpio}, and is useful with the @samp{-print0} predicate of GNU @code{find}. In @code{tar}, @samp{--null} also causes @value{op-directory} options to be treated as file names to archive, in case there are any files out there called @file{-C}. X This example shows how to use @code{find} to generate a list of files larger than 800K in length and put that list into a file called @file{long-files}. The @samp{-print0} option to @code{find} just just like @samp{-print}, except that it separates files with a @kbd{NUL} rather than with a newline. You can then run @code{tar} with both the @samp{--null} and @samp{-T} options to specify that @code{tar} get the files from that file, @file{long-files}, to create the archive @file{big.tgz}. The @samp{--null} option to @code{tar} will cause @code{tar} to recognize the @kbd{NUL} separator between files. X @example $ @kbd{find . -size +800 -print0 > long-files} $ @kbd{tar -c -v --null --files-from=long-files --file=big.tar} @end example X @FIXME{say anything else here to conclude the section?} X @node exclude, Wildcards, files, Choosing @section Excluding Some Files @cindex File names, excluding files by @cindex Excluding files by name and pattern @cindex Excluding files by file system @UNREVISED X To avoid operating on files whose names match a particular pattern, use the @value{op-exclude} or @value{op-exclude-from} options. X @table @kbd @item --exclude=@var{pattern} Causes @code{tar} to ignore files that match the @var{pattern}. @end table X @findex exclude The @value{op-exclude} option will prevent any file or member which matches the shell wildcards (@var{pattern}) from being operated on (@var{pattern} can be a single file name or a more complex expression). For example, if you want to create an archive with all the contents of @file{/tmp} except the file @file{/tmp/foo}, you can use the command @samp{tar --create --file=arch.tar --exclude=foo}. You may give multiple @samp{--exclude} options. X @table @kbd @item --exclude-from=@var{file} @itemx -X @var{file} Causes @code{tar} to ignore files that match the patterns listed in @var{file}. @end table X @findex exclude-from Use the @samp{--exclude-from=@var{file-of-patterns}} option to read a list of shell wildcards, one per line, from @var{file}; @code{tar} will ignore files matching those regular expressions. Thus if @code{tar} is called as @w{@samp{tar -c -X foo .}} and the file @file{foo} contains a single line @file{*.o}, no files whose names end in @file{.o} will be added to the archive. X @FIXME{do the exclude options files need to have stuff separated by newlines the same as the files-from option does?} X @menu * problems with exclude:: @end menu X @node problems with exclude, , exclude, exclude @unnumberedsubsec Problems with Using the @code{exclude} Options X @FIXME{put in for the editor's/editors' amusement, but should be taken out in the final draft, just in case! : } X @ignore subtitled: getting screwed using exclewed @end ignore X Some users find @samp{exclude} options confusing. Here are some common pitfalls: X @itemize @bullet @item The main operating mode of @code{tar} will always act on file names listed on the command line, no matter whether or not there is an exclusion which would otherwise affect them. In the example above, if you create an archive and exclude files that end with @samp{*.o}, but explicitly name the file @samp{catc.o} after all the options have been listed, @samp{catc.o} @emph{will} be included in the archive. X @item You can sometimes confuse the meanings of @value{op-exclude} and @value{op-exclude-from}. Be careful: use @value{op-exclude} when files to be excluded are given as a pattern on the command line. Use @samp{--exclude-from=@var{file-of-patterns}} to introduce the name of a file which contains a list of patterns, one per line; each of these patterns can exclude zero, one, or many files. X @item When you use @value{op-exclude}, be sure to quote the @var{pattern} parameter, so GNU @code{tar} sees wildcard characters like @samp{*}. If you do not do this, the shell might expand the @samp{*} itself using files at hand, so @code{tar} might receive a list of files instead of one pattern, or none at all, making the command somewhat illegal. This might not correspond to what you want. X For example, write: X @example $ @kbd{tar -c -f @var{archive.tar} -X '*/tmp/*' @var{directory}} @end example X @noindent rather than: X @example $ @kbd{tar -c -f @var{archive.tar} -X */tmp/* @var{directory}} @end example X @item You must use use shell syntax, or globbing, rather than @code{regexp} syntax, when using exclude options in @code{tar}. If you try to use @code{regexp} syntax to describe files to be excluded, your command might fail. X @item In earlier versions of @code{tar}, what is now the @samp{--exclude-from=@var{file-of-patterns}} option was called @samp{--exclude-@var{pattern}} instead. Now, @samp{--exclude=@var{pattern}} applies to patterns listed on the command line and @samp{--exclude-from=@var{file-of-patterns}} applies to patterns listed in a file. X @end itemize X @node Wildcards, after, exclude, Choosing @section Wildcards Patterns and Matching X @dfn{Globbing} is the operation by which @dfn{wildcard} characters, @samp{*} or @samp{?} for example, are replaced and expanded into all existing files matching the given pattern. However, @code{tar} often uses wildcard patterns for matching (or globbing) archive members instead of actual files in the filesystem. Wildcard patterns are also used for verifying volume labels of @code{tar} archives. This section has the purpose of explaining wildcard syntax for @code{tar}. X @FIXME{the next few paragraphs need work.} X A @var{pattern} should be written according to shell syntax, using wildcard characters to effect globbing. Most characters in the pattern stand for themselves in the matched string, and case is significant: @samp{a} will match only @samp{a}, and not @samp{A}. The character @samp{?} in the pattern matches any single character in the matched string. The character @samp{*} in the pattern matches zero, one, or more single characters in the matched string. The character @samp{\} says to take the following character of the pattern @emph{literally}; it is useful when one needs to match the @samp{?}, @samp{*}, @samp{[} or @samp{\} characters, themselves. X The character @samp{[}, up to the matching @samp{]}, introduces a character class. A @dfn{character class} is a list of acceptable characters for the next single character of the matched string. For example, @samp{[abcde]} would match any of the first five letters of the alphabet. Note that within a character class, all of the ``special characters'' listed above other than @samp{\} lose their special meaning; for example, @samp{[-\\[*?]]} would match any of the characters, @samp{-}, @samp{\}, @samp{[}, @samp{*}, @samp{?}, or @samp{]}. (Due to parsing constraints, the characters @samp{-} and @samp{]} must either come @emph{first} or @emph{last} in a character class.) X @cindex Excluding characters from a character class @cindex Character class, excluding characters from If the first character of the class after the opening @samp{[} is @samp{!} or @samp{^}, then the meaning of the class is reversed. Rather than listing character to match, it lists those characters which are @emph{forbidden} as the next single character of the matched string. X Other characters of the class stand for themselves. The special construction @samp{[@var{a}-@var{e}]}, using an hyphen between two letters, is meant to represent all characters between @var{a} and @var{e}, inclusive. X @FIXME{need to add a sentence or so here to make this clear for those who don't have dan around.} X Periods (@samp{.}) or forward slashes (@samp{/}) are not considered special for wildcard matches. However, if a pattern completely matches a directory prefix of a matched string, then it matches the full matched string: excluding a directory also excludes all the files beneath it. X There are some discussions floating in the air and asking for modifications in the way GNU @code{tar} accomplishes wildcard matches. We perceive any change of semantics in this area as a delicate thing to impose on GNU @code{tar} users. On the other hand, the GNU project should be progressive enough to correct any ill design: compatibility at all price is not always a good attitude. In conclusion, it is @emph{possible} that slight amendments be later brought to the previous description. Your opinions on the matter are welcome. X @node after, recurse, Wildcards, Choosing @section Operating Only on New Files @cindex Excluding file by age @cindex Modification time, excluding files by @cindex Age, excluding files by @UNREVISED X The @value{op-after-date} option causes @code{tar} to only work on files whose modification or inode-changed times are newer than the @var{date} given. If you use this option when creating or appending to an archive, the archive will only include new files. If you use @samp{--after-date} when extracting an archive, @code{tar} will only extract files newer than the @var{date} you specify. X If you only want @code{tar} to make the date comparison based on modification of the actual contents of the file (rather than inode changes), then use the @value{op-newer-mtime} option. X You may use these options with any operation. Note that these options differ from the @value{op-update} operation in that they allow you to specify a particular date against which @code{tar} can compare when deciding whether or not to archive the files. X @table @kbd @item --after-date=@var{date} @itemx --newer=@var{date} @itemx -N @var{date} Only store files newer than @var{date}. X Acts on files only if their modification or inode-changed times are later than @var{date}. Use in conjunction with any operation. X @item --newer-mtime=@var{date} Acts like @value{op-after-date}, but only looks at modification times. @end table X These options limit @code{tar} to only operating on files which have been modified after the date specified. A file is considered to have changed if the contents have been modified, or if the owner, permissions, and so forth, have been changed. (For more information on how to specify a date, see @ref{Date input formats}; remember that the entire date argument must be quoted if it contains any spaces.) X Gurus would say that @value{op-after-date} tests both the @code{mtime} (time the contents of the file were last modified) and @code{ctime} (time the file's status was last changed: owner, permissions, etc) fields, while @value{op-newer-mtime} tests only @code{mtime} field. X To be precise, @value{op-after-date} checks @emph{both} @code{mtime} and @code{ctime} and processes the file if either one is more recent than @var{date}, while @value{op-newer-mtime} only checks @code{mtime} and disregards @code{ctime}. Neither uses @code{atime} (the last time the contents of the file were looked at). X Date specifiers can have embedded spaces. Because of this, you may need to quote date arguments to keep the shell from parsing them as separate arguments. X @FIXME{Need example of --newer-mtime with quoted argument.} X @quotation @strong{Please Note:} @value{op-after-date} and @value{op-newer-mtime} should not be used for incremental backups. Some files (such as those in renamed directories) are not selected properly by these options. @xref{incremental and listed-incremental}. @end quotation X To select files newer than the modification time of a file that already exists, you can use the @samp{--reference} (@samp{-r}) option of GNU @code{date}, available in GNU shell utilities 1.13 or later. It returns the timestamp of that already existing file; this timestamp expands to become the referent date which @samp{--newer} uses to determine which files to archive. For example, you could say, X @example $ @kbd{tar -cf @var{archive.tar} --newer="`date -r @var{file}`" /home} @end example X @noindent which tells @FIXME{need to fill this in!}. X @node recurse, one, after, Choosing @section Descending into Directories @cindex Avoiding recursion in directories @cindex Descending directories, avoiding @cindex Directories, avoiding recursion @cindex Recursion in directories, avoiding @UNREVISED X @FIXME{arrggh! this is still somewhat confusing to me. :-< } X @FIXME{show dan bob's comments, from 2-10-97} X Usually, @code{tar} will recursively explore all directories (either those given on the command line or through the @value{op-files-from} option) for the various files they contain. However, you may not always want @code{tar} to act this way. X The @value{op-no-recursion} option inhibits @code{tar}'s recursive descent into specified directories. If you specify @samp{--no-recursion}, you can use the @code{find} utility for hunting through levels of directories to construct a list of file names which you could then pass to @code{tar}. @code{find} allows you to be more selective when choosing which files to archive; see @ref{files} for more information on using @code{find} with @code{tar}, or look. X @table @kbd @item --no-recursion Prevents @code{tar} from recursively descending directories. @end table X When you use @samp{--no-recursion}, GNU @code{tar} grabs directory entries themselves, but does not descend on them recursively. Many people use @code{find} for locating files they want to back up, and since @code{tar} @emph{usually} recursively descends on directories, they have to use the @samp{@w{! -d}} option to @code{find} @FIXME{needs more explanation or a cite to another info file} as they usually do not want all the files in a directory. They then use the @value{op-file-from} option to archive the files located via @code{find}. X The problem when restoring files archived in this manner is that the directories themselves are not in the archive; so the @value{op-same-permissions} option does not affect them---while users might really like it to. Specifying @value{op-no-recursion} is a way to tell @code{tar} to grab only the directory entries given to it, adding no new files on its own. X @FIXME{example here} X @node one, , recurse, Choosing @section Crossing Filesystem Boundaries @cindex File system boundaries, not crossing @UNREVISED X @code{tar} will normally automatically cross file system boundaries in order to archive files which are part of a directory tree. You can change this behavior by running @code{tar} and specifying @value{op-one-file-system}. This option only affects files that are archived because they are in a directory that is being archived; @code{tar} will still archive files explicitly named on the command line or through @value{op-files-from}, regardless of where they reside. X @table @kbd @item --one-file-system @itemx -l Prevents @code{tar} from crossing file system boundaries when archiving. Use in conjunction with any write operation. @end table X The @samp{--one-file-system} option causes @code{tar} to modify its normal behavior in archiving the contents of directories. If a file in a directory is not on the same filesystem as the directory itself, then @code{tar} will not archive that file. If the file is a directory itself, @code{tar} will not archive anything beneath it; in other words, @code{tar} will not cross mount points. X It is reported that using this option, the mount point is is archived, but nothing under it. X This option is useful for making full or incremental archival backups of a file system. If this option is used in conjunction with @value{op-verbose}, files that are excluded are mentioned by name on the standard error. X @menu * directory:: Changing Directory * absolute:: Absolute File Names @end menu X @node directory, absolute, one, one @subsection Changing the Working Directory X @FIXME{need to read over this node now for continuity; i've switched things around some.} X @cindex Changing directory mid-stream @cindex Directory, changing mid-stream @cindex Working directory, specifying @UNREVISED X To change the working directory in the middle of a list of file names, either on the command line or in a file specified using @value{op-files-from}, use @value{op-directory}. This will change the working directory to the directory @var{directory} after that point in the list. X @table @kbd @item --directory=@var{directory} @itemx -C @var{directory} Changes the working directory in the middle of a command line. @end table X For example, X @example $ @kbd{tar -c -f jams.tar grape prune -C food cherry} @end example X @noindent will place the files @file{grape} and @file{prune} from the current directory into the archive @file{jams.tar}, followed by the file @file{cherry} from the directory @file{food}. This option is especially useful when you have several widely separated files that you want to store in the same archive. X Note that the file @file{cherry} is recorded in the archive under the precise name @file{cherry}, @emph{not} @file{food/cherry}. Thus, the archive will contain three files that all appear to have come from the same directory; if the archive is extracted with plain @samp{tar --extract}, all three files will be written in the current directory. X Contrast this with the command, X @example $ @kbd{tar -c -f jams.tar grape prune -C food red/cherry} @end example X @noindent which records the third file in the archive under the name @file{red/cherry} so that, if the archive is extracted using @samp{tar --extract}, the third file will be written in a subdirectory named @file{orange-colored}. X You can use the @samp{--directory} option to make the archive independent of the original name of the directory holding the files. The following command places the files @file{/etc/passwd}, @file{/etc/hosts}, and @file{/lib/libc.a} into the archive @file{foo.tar}: X @example $ @kbd{tar -c -f foo.tar -C /etc passwd hosts -C /lib libc.a} @end example X @noindent However, the names of the archive members will be exactly what they were on the command line: @file{passwd}, @file{hosts}, and @file{libc.a}. They will not appear to be related by file name to the original directories where those files were located. X Note that @samp{--directory} options are interpreted consecutively. If @samp{--directory} specifies a relative file name, it is interpreted relative to the then current directory, which might not be the same as the original current working directory of @code{tar}, due to a previous @samp{--directory} option. X @FIXME{dan: does this mean that you *can* use the short option form, but you can *not* use the long option form with --files-from? or is this totally screwed?} X When using @samp{--files-from} (@pxref{files}), you can put @samp{-C} options in the file list. Unfortunately, you cannot put @samp{--directory} options in the file list. (This interpretation can be disabled by using the @value{op-null} option.) X @node absolute, , directory, one @subsection Absolute File Names @UNREVISED X @table @kbd @item -P @itemx --absolute-names Do not strip leading slashes from file names. @end table X By default, GNU @code{tar} drops a leading @samp{/} on input or output. This option turns off this behavior; it is equivalent to changing to the root directory before running @code{tar} (except it also turns off the usual warning message). X When @code{tar} extracts archive members from an archive, it strips any leading slashes (@samp{/}) from the member name. This causes absolute member names in the archive to be treated as relative file names. This allows you to have such members extracted wherever you want, instead of being restricted to extracting the member in the exact directory named in the archive. For example, if the archive member has the name @file{/etc/passwd}, @code{tar} will extract it as if the name were really @file{etc/passwd}. X Other @code{tar} programs do not do this. As a result, if you create an archive whose member names start with a slash, they will be difficult for other people with a non-GNU @code{tar} program to use. Therefore, GNU @code{tar} also strips leading slashes from member names when putting members into the archive. For example, if you ask @code{tar} to add the file @file{/bin/ls} to an archive, it will do so, but the member name will be @file{bin/ls}. X If you use the @value{op-absolute-names} option, @code{tar} will do neither of these transformations. X To archive or extract files relative to the root directory, specify the @value{op-absolute-names} option. X Normally, @code{tar} acts on files relative to the working directory---ignoring superior directory names when archiving, and ignoring leading slashes when extracting. X When you specify @value{op-absolute-names}, @code{tar} stores file names including all superior directory names, and preserves leading slashes. If you only invoked @code{tar} from the root directory you would never need the @value{op-absolute-names} option, but using this option may be more convenient than switching to root. X @FIXME{Should be an example in the tutorial/wizardry section using this to transfer files between systems.} X @FIXME{Is write access an issue?} X @table @kbd @item --absolute-names Preserves full file names (inclusing superior dirctory names) when archiving files. Preserves leading slash when extracting files. X @end table X @FIXME{this is still horrible; need to talk with dan on monday.} X @code{tar} prints out a message about removing the @samp{/} from file names. This message appears once per GNU @code{tar} invocation. It represents something which ought to be told; ignoring what it means can cause very serious surprises, later. X Some people, nevertheless, do not want to see this message. Wanting to play really dangerously, one may of course redirect @code{tar} standard error to the sink. For example, under @code{sh}: X @example $ @kbd{tar -c -f archive.tar /home 2> /dev/null} @end example X @noindent Another solution, both nicer and simpler, would be to change to the @file{/} directory first, and then avoid absolute notation. For example: X @example $ @kbd{(cd / && tar -c -f archive.tar home)} $ @kbd{tar -c -f archive.tar -C / home} @end example X @node Date input formats, Formats, Choosing, Top @chapter Date input formats X @cindex date input formats @findex getdate X @quotation Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some tyrannical god contrived to enslave our minds to time, to make it all but impossible for us to escape subjection to sodden routines and unpleasant surprises, he could hardly have done better than handing down our present system. It is like a set of trapezoidal building blocks, with no vertical or horizontal surfaces, like a language in which the simplest thought demands ornate constructions, useless particles and lengthy circumlocutions. Unlike the more successful patterns of language and science, which enable us to face experience boldly or at least level-headedly, our system of temporal calculation silently and persistently encourages our terror of time. X @dots{} It is as though architects had to measure length in feet, width in meters and height in ells; as though basic instruction manuals demanded a knowledge of five different languages. It is no wonder then that we often look into our own immediate past or future, last Tuesday or a week from Sunday, with feelings of helpless confusion. @dots{} X --- Robert Grudin, @cite{Time and the Art of Living}. @end quotation X This section describes the textual date representations that GNU programs accept. These are the strings you, as a user, can supply as arguments to the various programs. The C interface (via the @code{getdate} function) is not described here. X @cindex beginning of time, for Unix @cindex epoch, for Unix Although the date syntax here can represent any possible time since zero A.D., computer integers are not big enough for such a (comparatively) long time. The earliest date semantically allowed on Unix systems is midnight, 1 January 1970 UCT. X @menu * General date syntax:: Common rules. * Calendar date item:: 19 Dec 1994. * Time of day item:: 9:20pm. * Timezone item:: EST, DST, BST, UCT, AHST, ... * Day of week item:: Monday and others. * Relative item in date strings:: next tuesday, 2 years ago. * Pure numbers in date strings:: 19931219, 1440. * Authors of getdate:: Bellovin, Salz, Berets, et al. @end menu X X @node General date syntax, Calendar date item, Date input formats, Date input formats @section General date syntax X @cindex general date syntax X @cindex items in date strings A @dfn{date} is a string, possibly empty, containing many items separated by whitespace. The whitespace may be omitted when no ambiguity arises. The empty string means the beginning of today (i.e., midnight). Order of the items is immaterial. A date string may contain many flavors of items: X @itemize @bullet @item calendar date items @item time of the day items @item time zone items @item day of the week items @item relative items @item pure numbers. @end itemize X @noindent We describe each of these item types in turn, below. X @cindex numbers, written-out @cindex ordinal numbers @findex first @r{in date strings} @findex next @r{in date strings} @findex last @r{in date strings} A few numbers may be written out in words in most contexts. This is most useful for specifying day of the week items or relative items (see below). Here is the list: @samp{first} for 1, @samp{next} for 2, @samp{third} for 3, @samp{fourth} for 4, @samp{fifth} for 5, @samp{sixth} for 6, @samp{seventh} for 7, @samp{eighth} for 8, @samp{ninth} for 9, @samp{tenth} for 10, @samp{eleventh} for 11 and @samp{twelfth} for 12. Also, @samp{last} means exactly @math{-1}. X @cindex months, written-out When a month is written this way, it is still considered to be written numerically, instead of being ``spelled in full''; this changes the allowed strings. X @cindex case, ignored in dates @cindex comments, in dates Alphabetic case is completely ignored in dates. Comments may be introduced between round parentheses, as long as included parentheses are properly nested. Hyphens not followed by a digit are currently ignored. Leading zeros on numbers are ignored. X X @node Calendar date item, Time of day item, General date syntax, Date input formats @section Calendar date item X @cindex calendar date item X A @dfn{calendar date item} specifies a day of the year. It is specified differently, depending on whether the month is specified numerically or literally. All these strings specify the same calendar date: X @example 1970-09-17 # ISO 8601. 70-9-17 # This century assumed by default. 70-09-17 # Leading zeros are ignored. 9/17/72 # Common U.S. writing. 24 September 1972 24 Sept 72 # September has a special abbreviation. 24 Sep 72 # Three-letter abbreviations always allowed. Sep 24, 1972 24-sep-72 24sep72 @end example X The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: X @example 9/17 sep 17 @end example X Here are the rules. X @cindex ISO 8601 date format @cindex date format, ISO 8601 For numeric months, the ISO 8601 format @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is any positive number, @var{month} is a number between 01 and 12, and @var{day} is a number between 01 and 31. A leading zero must be present if a number is less than ten. If @var{year} is less than 100, then 1900 is added to it to force a date in this century. The construct @samp{@var{month}/@var{day}/@var{year}}, popular in the United States, is accepted. Also @samp{@var{month}/@var{day}}, omitting the year. X @cindex month names in date strings @cindex abbreviations for months Literal months may be spelled out in full: @samp{January}, @samp{February}, @samp{March}, @samp{April}, @samp{May}, @samp{June}, @samp{July}, @samp{August}, @samp{September}, @samp{October}, @samp{November} or @samp{December}. Literal months may be abbreviated to their first three letters, possibly followed by an abbreviating dot. It is also permitted to write @samp{Sept} instead of @samp{September}. X When months are written literally, the calendar date may be given as any of the following: X @example @var{day} @var{month} @var{year} @var{day} @var{month} @var{month} @var{day} @var{year} @var{day}-@var{month}-@var{year} @end example X Or, omitting the year: X @example @var{month} @var{day} @end example X X @node Time of day item, Timezone item, Calendar date item, Date input formats @section Time of day item X @cindex time of day item X A @dfn{time of day item} in date strings specifies the time on a given day. Here are some examples, all of which represent the same time: X @example 20:02:0 20:02 8:02pm 20:02-0500 # In EST (Eastern U.S. Standard Time). @end example X More generally, the time of the day may be given as @samp{@var{hour}:@var{minute}:@var{second}}, where @var{hour} is a number between 0 and 23, @var{minute} is a number between 0 and 59, and @var{second} is a number between 0 and 59. Alternatively, @samp{:@var{second}} can be omitted, in which case it is taken to be zero. X @findex am @r{in date strings} @findex pm @r{in date strings} @findex midnight @r{in date strings} @findex noon @r{in date strings} If the time is followed by @samp{am} or @samp{pm} (or @samp{a.m.} or @samp{p.m.}), @var{hour} is restricted to run from 1 to 12, and @samp{:@var{minute}} may be omitted (taken to be zero). @samp{am} indicates the first half of the day, @samp{pm} indicates the second half of the day. In this notation, 12 is the predecessor of 1: midnight is @samp{12am} while noon is @samp{12pm}. (This is the zero-oriented interpretation of @samp{12am} and @samp{12pm}, as opposed to the old tradition derived from Latin which uses @samp{12m} for noon and @samp{12pm} for midnight.) X @cindex timezone correction @cindex minutes, timezone correction by The time may alternatively be followed by a timezone correction, expressed as @samp{@var{s}@var{hh}@var{mm}}, where @var{s} is @samp{+} or @samp{-}, @var{hh} is a number of zone hours and @var{mm} is a number of zone minutes. When a timezone correction is given this way, it forces interpretation of the time in UTC, overriding any previous specification for the timezone or the local timezone. The @var{minute} part of the time of the day may not be elided when a timezone correction is used. This is the only way to specify a timezone correction by fractional parts of an hour. X Either @samp{am}/@samp{pm} or a timezone correction may be specified, but not both. X X @node Timezone item, Day of week item, Time of day item, Date input formats @section Timezone item X @cindex timezone item X A @dfn{timezone item} specifies an international timezone, indicated by a small set of letters. Any included period is ignored. Military timezone designations use a single letter. Currently, only integral zone hours may be represented in a timezone item. See the previous section for a finer control over the timezone correction. X Here are many non-daylight-savings-time timezones, indexed by the zone hour value. X @table @asis @item +000 @cindex Greenwich Mean Time @cindex Universal Coordinated Time @cindex Western European Time @samp{GMT} for Greenwich Mean, @samp{UT} or @samp{UTC} for Universal (Coordinated), @samp{WET} for Western European and @samp{Z} for militaries. @item +100 @cindex West African Time @samp{WAT} for West Africa and @samp{A} for militaries. @item +200 @cindex Azores Time @samp{AT} for Azores and @samp{B} for militaries. @item +300 @samp{C} for militaries. @item +400 @cindex Atlantic Standard Time @samp{AST} for Atlantic Standard and @samp{D} for militaries. @item +500 @cindex Eastern Standard Time @samp{E} for militaries and @samp{EST} for Eastern Standard. @item +600 @cindex Central Standard Time @samp{CST} for Central Standard and @samp{F} for militaries. @item +700 @cindex Mountain Standard Time @samp{G} for militaries and @samp{MST} for Mountain Standard. @item +800 @cindex Pacific Standard Time @samp{H} for militaries and @samp{PST} for Pacific Standard. @item +900 @cindex Yukon Standard Time @samp{I} for militaries and @samp{YST} for Yukon Standard. @item +1000 @cindex Alaska-Hawaii Time @cindex Central Alaska Time @cindex Hawaii Standard Time @samp{AHST} for Alaska-Hawaii Standard, @samp{CAT} for Central Alaska, @samp{HST} for Hawaii Standard and @samp{K} for militaries. @item +1100 @cindex Nome Standard Time @samp{L} for militaries and @samp{NT} for Nome. @item +1200 @cindex International Date Line West @samp{IDLW} for International Date Line West and @samp{M} for militaries. @item -100 @cindex Central European Time @cindex Middle European Time @cindex Middle European Winter Time @cindex French Winter Time @cindex Swedish Winter Time @samp{CET} for Central European, @samp{FWT} for French Winter, @samp{MET} for Middle European, @samp{MEWT} for Middle European Winter, @samp{N} for militaries and @samp{SWT} for Swedish Winter. @item -200 @cindex Eastern European Time @cindex USSR Zone @samp{EET} for Eastern European, USSR Zone 1 and @samp{O} for militaries. @item -300 @cindex Baghdad Time @samp{BT} for Baghdad, USSR Zone 2 and @samp{P} for militaries. @item -400 @samp{Q} for militaries and @samp{ZP4} for USSR Zone 3. @item -500 @samp{R} for militaries and @samp{ZP5} for USSR Zone 4. @item -600 @samp{S} for militaries and @samp{ZP6} for USSR Zone 5. @item -700 @cindex West Australian Standard Time @samp{T} for militaries and @samp{WAST} for West Australian Standard. @item -800 @cindex China Coast Time @samp{CCT} for China Coast, USSR Zone 7 and @samp{U} for militaries. @item -900 @cindex Japan Standard Time @samp{JST} for Japan Standard, USSR Zone 8 and @samp{V} for militaries. @item -1000 @cindex East Australian Standard Time @cindex Guam Standard Time @samp{EAST} for East Australian Standard, @samp{GST} for Guam Standard, USSR Zone 9 and @samp{W} for militaries. @item -1100 @samp{X} for militaries. @item -1200 @cindex International Date Line East @cindex New Zealand Standard Time @samp{IDLE} for International Date Line East, @samp{NZST} for New Zealand Standard, @samp{NZT} for New Zealand and @samp{Y} for militaries. @end table X @cindex daylight savings time Here are many DST timezones, indexed by the zone hour value. Also, by following a non-DST timezone by the string @samp{DST} in a separate word (that is, separated by some whitespace), the corresponding DST timezone may be specified. X @table @asis @item 0 @samp{BST} for British Summer. @item +400 @samp{ADT} for Atlantic Daylight. @item +500 @samp{EDT} for Eastern Daylight. @item +600 @samp{CDT} for Central Daylight. @item +700 @samp{MDT} for Mountain Daylight. @item +800 @samp{PDT} for Pacific Daylight. @item +900 @samp{YDT} for Yukon Daylight. @item +1000 @samp{HDT} for Hawaii Daylight. @item -100 @samp{MEST} for Middle European Summer, @samp{MESZ} for Middle European Summer, @samp{SST} for Swedish Summer and @samp{FST} for French Summer. @item -700 @samp{WADT} for West Australian Daylight. @item -1000 @samp{EADT} for Eastern Australian Daylight. @item -1200 @samp{NZDT} for New Zealand Daylight. @end table X X @node Day of week item, Relative item in date strings, Timezone item, Date input formats @section Day of week item X @cindex day of week item X The explicit mention of a day of the week will forward the date (only if necessary) to reach that day of the week in the future. X Days of the week may be spelled out in full: @samp{Sunday}, @samp{Monday}, @samp{Tuesday}, @samp{Wednesday}, @samp{Thursday}, @samp{Friday} or @samp{Saturday}. Days may be abbreviated to their first three letters, optionally followed by a period. The special abbreviations @samp{Tues} for @samp{Tuesday}, @samp{Wednes} for @samp{Wednesday} and @samp{Thur} or @samp{Thurs} for @samp{Thursday} are also allowed. X @findex next @var{day} @findex last @var{day} A number may precede a day of the week item to move forward supplementary weeks. It is best used in expression like @samp{third monday}. In this context, @samp{last @var{day}} or @samp{next @var{day}} is also acceptable; they move one week before or after the day that @var{day} by itself would represent. X A comma following a day of the week item is ignored. X X @node Relative item in date strings, Pure numbers in date strings, Day of week item, Date input formats @section Relative item in date strings X @cindex relative items in date strings @cindex displacement of dates X @dfn{Relative items} adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples: X @example 1 year 1 year ago 3 years 2 days @end example X @findex year @r{in date strings} @findex month @r{in date strings} @findex fortnight @r{in date strings} @findex week @r{in date strings} @findex day @r{in date strings} @findex hour @r{in date strings} @findex minute @r{in date strings} The unit of time displacement may be selected by the string @samp{year} or @samp{month} for moving by whole years or months. These are fuzzy units, as years and months are not all of equal duration. More precise units are @samp{fortnight} which is worth 14 days, @samp{week} worth 7 days, @samp{day} worth 24 hours, @samp{hour} worth 60 minutes, @samp{minute} or @samp{min} worth 60 seconds, and @samp{second} or @samp{sec} worth one second. An @samp{s} suffix on these units is accepted and ignored. X @findex ago @r{in date strings} The unit of time may be preceded by a multiplier, given as an optionally signed number. Unsigned numbers are taken as positively signed. No number at all implies 1 for a multiplier. Following a relative item by the string @samp{ago} is equivalent to preceding the unit by a multiplicator with value @math{-1}. X @findex day @r{in date strings} @findex tomorrow @r{in date strings} @findex yesterday @r{in date strings} The string @samp{tomorrow} is worth one day in the future (equivalent to @samp{day}), the string @samp{yesterday} is worth one day in the past (equivalent to @samp{day ago}). X @findex now @r{in date strings} @findex today @r{in date strings} @findex this @r{in date strings} The strings @samp{now} or @samp{today} are relative items corresponding to zero-valued time displacement, these strings come from the fact a zero-valued time displacement represents the current time when not otherwise change by previous items. They may be used to stress other items, like in @samp{12:00 today}. The string @samp{this} also has the meaning of a zero-valued time displacement, but is preferred in date strings like @samp{this thursday}. X When a relative item makes the resulting date to cross the boundary between DST and non-DST (or vice-versa), the hour is adjusted according to the local time. X X @node Pure numbers in date strings, Authors of getdate, Relative item in date strings, Date input formats @section Pure numbers in date strings X @cindex pure numbers in date strings X The precise intepretation of a pure decimal number is dependent of the context in the date string. X If the decimal number is of the form @var{yyyy}@var{mm}@var{dd} and no other calendar date item (@pxref{Calendar date item}) appears before it in the date string, then @var{yyyy} is read as the year, @var{mm} as the month number and @var{dd} as the day of the month, for the specified calendar date. X If the decimal number is of the form @var{hh}@var{mm} and no other time of day item appears before it in the date string, then @var{hh} is read as the hour of the day and @var{mm} as the minute of the hour, for the specified time of the day. @var{mm} can also be omitted. X If both a calendar date and a time of day appear to the left of a number in the date string, but no relative item, then the number overrides the year. X X @node Authors of getdate, , Pure numbers in date strings, Date input formats @section Authors of @code{getdate} X @cindex authors of @code{getdate} X @cindex Bellovin, Steven M. @cindex Salz, Rich @cindex Berets, Jim @cindex MacKenzie, David @cindex Meyering, Jim @code{getdate} was originally implemented by Steven M. Bellovin (@samp{smb@@research.att.com}) while at the University of North Carolina at Chapel Hill. The code was later tweaked by a couple of people on Usenet, then completely overhauled by Rich $alz (@samp{rsalz@@bbn.com}) and Jim Berets (@samp{jberets@@bbn.com}) in August, 1990. Various revisions for the GNU system were made by David MacKenzie, Jim Meyering, and others. X @cindex Pinard, F. @cindex Berry, K. This chapter was originally produced by Fran@,{c}ois Pinard (@samp{pinard@@iro.umontreal.ca}) from the @file{getdate.y} source code, and then edited by K.@: Berry (@samp{kb@@cs.umb.edu}). X @node Formats, Media, Date input formats, Top @chapter Controlling the Archive Format X @FIXME{need an intro here} X @menu * Portability:: Making @code{tar} Archives More Portable * Compression:: Using Less Space through Compression * Attributes:: Handling File Attributes * Standard:: The Standard Format * Extensions:: GNU Extensions to the Archive Format * cpio:: Comparison of @code{tar} and @code{cpio} @end menu X @node Portability, Compression, Formats, Formats @section Making @code{tar} Archives More Portable X Creating a @code{tar} archive on a particular system that is meant to be useful later on many other machines and with other versions of @code{tar} is more challenging than you might think. @code{tar} archive formats have been evolving since the first versions of Unix. Many such formats are around, and are not always comptible with each other. This section discusses a few problems, and gives some advice about making @code{tar} archives more portable. X One golden rule is simplicity. For example, limit your @code{tar} archives to contain only regular files and directories, avoiding other kind of special files. Do not attempt to save sparse files or contiguous files as such. Let's discuss a few more problems, in turn. X @menu * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems @end menu X @node Portable Names, dereference, Portability, Portability @subsection Portable Names X Use @emph{straight} file and directory names, made up of printable ASCII characters, avoiding colons, slashes, backslashes, spaces, and other @emph{dangerous} characters. Avoid deep directory nesting. Accounting for oldish System V machines, limit your file and directory names to 14 characters or less. X If you intend to have your @code{tar} archives to be read under MSDOS, you should not rely on case distinction for file names, and you might use the GNU @code{doschk} program for helping you further diagnosing illegal MSDOS names, which are even more limited than System V's. X @node dereference, old, Portable Names, Portability @subsection Symbolic Links @cindex File names, using symbolic links @cindex Symbolic link as file name X Normally, when @code{tar} archives a symbolic link, it writes a block to the archive naming the target of the link. In that way, the @code{tar} archive is a faithful record of the filesystem contents. @value{op-dereference} is used with @value{op-create}, and causes @code{tar} to archive the files symbolic links point to, instead of the links themselves. When this option is used, when @code{tar} encounters a symbolic link, it will archive the linked-to file, instead of simply recording the presence of a symbolic link. X The name under which the file is stored in the file system is not recorded in the archive. To record both the symbolic link name and the file name in the system, archive the file under both names. If all links were recorded automatically by @code{tar}, an extracted file might be linked to a file name that no longer exists in the file system. X If a linked-to file is encountered again by @code{tar} while creating the same archive, an entire second copy of it will be stored. (This @emph{might} be considered a bug.) X So, for portable archives, do not archive symbolic links as such, and use @value{op-dereference}: many systems do not support symbolic links, and moreover, your distribution might be unusable if it contains unresolved symbolic links. X @node old, posix, dereference, Portability @subsection Old V7 Archives @cindex Format, old style @cindex Old style format @cindex Old style archives X Certain old versions of @code{tar} cannot handle additional information recorded by newer @code{tar} programs. To create an archive in V7 format (not ANSI), which can be read by these old versions, specify the @value{op-old-archive} option in conjunction with the @value{op-create}. @code{tar} also accepts @samp{--portability} for this option. When you specify it, @code{tar} leaves out information about directories, pipes, fifos, contiguous files, and device files, and specifies file ownership by group and user IDs instead of group and user names. X When updating an archive, do not use @value{op-old-archive} unless the archive was created with using this option. X In most cases, a @emph{new} format archive can be read by an @emph{old} @code{tar} program without serious trouble, so this option should seldom be needed. On the other hand, most modern @code{tar}s are able to read old format archives, so it might be safer for you to always use @value{op-old-archive} for your distributions. X @node posix, Checksumming, old, Portability @subsection GNU @code{tar} and POSIX @code{tar} X GNU @code{tar} was based on an early draft of the POSIX 1003.1 @code{ustar} standard. GNU extensions to @code{tar}, such as the support for file names longer than 100 characters, use portions of the @code{tar} header record which were specified in that POSIX draft as unused. Subsequent changes in POSIX have allocated the same parts of the header record for other purposes. As a result, GNU @code{tar} is incompatible with the current POSIX spec, and with @code{tar} programs that follow it. X We plan to reimplement these GNU extensions in a new way which is upward compatible with the latest POSIX @code{tar} format, but we don't know when this will be done. X In the mean time, there is simply no telling what might happen if you read a GNU @code{tar} archive, which uses the GNU extensions, using some other @code{tar} program. So if you want to read the archive with another @code{tar} program, be sure to write it using the @samp{--old-archive} option (@samp{-o}). X @FIXME{is there a way to tell which flavor of tar was used to write a particular archive before you try to read it?} X Traditionally, old @code{tar}s have a limit of 100 characters. GNU @code{tar} attempted two different approaches to overcome this limit, using and extending a format specified by a draft of some P1003.1. The first way was not that successful, and involved @file{@@MaNgLeD@@} file names, or such; while a second approach used @file{././@@LongLink} and other tricks, yielding better success. In theory, GNU @code{tar} should be able to handle file names of practically unlimited length. So, if GNU @code{tar} fails to dump and retrieve files having more than 100 characters, then there is a bug in GNU @code{tar}, indeed. X But, being strictly POSIX, the limit was still 100 characters. For various other purposes, GNU @code{tar} used areas left unassigned in the POSIX draft. POSIX later revised P1003.1 @code{ustar} format by assigning previously unused header fields, in such a way that the upper limit for file name length was raised to 256 characters. However, the actual POSIX limit oscillates between 100 and 256, depending on the precise location of slashes in full file name (this is rather ugly). Since GNU @code{tar} use the same fields for quite other purposes, it became incompatible with the latest POSIX standards. X For longer or non-fitting file names, we plan to use yet another set of GNU extensions, but this time, complying with the provisions POSIX offers for extending the format, rather than conflicting with it. Whenever an archive uses old GNU @code{tar} extension format or POSIX extensions, would it be for very long file names or other specialities, this archive becomes non-portable to other @code{tar} implementations. In fact, anything can happen. The most forgiving @code{tar}s will merely unpack the file using a wrong name, and maybe create another file named something like @file{@@LongName}, with the true file name in it. @code{tar}s not protecting themselves may segment violate! X Compatibility concerns make all this thing more difficult, as we will have to support @emph{all} these things together, for a while. GNU @code{tar} should be able to produce and read true POSIX format files, while being able to detect old GNU @code{tar} formats, besides old V7 format, and process them conveniently. It would take years before this whole area stabilizes@dots{} X There are plans to raise this 100 limit to 256, and yet produce POSIX conformant archives. Past 256, I do not know yet if GNU @code{tar} will go non-POSIX again, or merely refuse to archive the file. X There are plans so GNU @code{tar} support more fully the latest POSIX format, while being able to read old V7 format, GNU (semi-POSIX plus extension), as well as full POSIX. One may ask if there is part of the POSIX format that we still cannot support. This simple question has a complex answer. Maybe that, on intimate look, some strong limitations will pop up, but until now, nothing sounds too difficult (but see below). I only have these few pages of POSIX telling about `Extended tar Format' (P1003.1-1990 -- section 10.1.1), and there are references to other parts of the standard I do not have, which should normally enforce limitations on stored file names (I suspect things like fixing what @kbd{/} and @kbd{@key{NUL}} means). There are also some points which the standard does not make clear, Existing practice will then drive what I should do. X POSIX mandates that, when a file name cannot fit within 100 to 256 characters (the variance comes from the fact a @kbd{/} is ideally needed as the 156'th character), or a link name cannot fit within 100 characters, a warning should be issued and the file @emph{not} be stored. Unless some @value{op-posix} option is given (or @code{POSIXLY_CORRECT} is set), I suspect that GNU @code{tar} should disobey this specification, and automatically switch to using GNU extensions to overcome file name or link name length limitations. X There is a problem, however, which I did not intimately studied yet. Given a truly POSIX archive with names having more than 100 characters, I guess that GNU @code{tar} up to 1.11.8 will process it as if it were an old V7 archive, and be fooled by some fields which are coded differently. So, the question is to decide if the next generation of GNU @code{tar} should produce POSIX format by default, whenever possible, producing archives older versions of GNU @code{tar} might not be able to read correctly. I fear that we will have to suffer such a choice one of these days, if we want GNU @code{tar} to go closer to POSIX. We can rush it. Another possibility is to produce the current GNU @code{tar} format by default for a few years, but have GNU @code{tar} versions from some 1.@var{POSIX} and up able to recognize all three formats, and let older GNU @code{tar} fade out slowly. Then, we could switch to producing POSIX format by default, with not much harm to those still having (very old at that time) GNU @code{tar} versions prior to 1.@var{POSIX}. X POSIX format cannot represent very long names, volume headers, splitting of files in multi-volumes, sparse files, and incremental dumps; these would be all disallowed if @value{op-posix} or @code{POSIXLY_CORRECT}. Otherwise, if @code{tar} is given long names, or @samp{-[VMSgG]}, then it should automatically go non-POSIX. I think this is easily granted without much discussion. X Another point is that only @code{mtime} is stored in POSIX archives, while GNU @code{tar} currently also store @code{atime} and @code{ctime}. If we want GNU @code{tar} to go closer to POSIX, my choice would be to drop @code{atime} and @code{ctime} support on average. On the other hand, I perceive that full dumps or incremental dumps need @code{atime} and @code{ctime} support, so for those special applications, POSIX has to be avoided altogether. X A few users requested that @value{op-sparse} be always active by default, I think that before replying to them, we have to decide if we want GNU @code{tar} to go closer to POSIX on average, while producing files. My choice would be to go closer to POSIX in the long run. Besides possible double reading, I do not see any point of not trying to save files as sparse when creating archives which are neither POSIX nor old-V7, so the actual @value{op-sparse} would become selected by default when producing such archives, whatever the reason is. So, @value{op-sparse} alone might be redefined to force GNU-format archives, and recover its previous meaning from this fact. X GNU-format as it exists now can easily fool other POSIX @code{tar}, as it uses fields which POSIX considers to be part of the file name prefix. I wonder if it would not be a good idea, in the long run, to try changing GNU-format so any added field (like @code{ctime}, @code{atime}, file offset in subsequent volumes, or sparse file descriptions) be wholly and always pushed into an extension block, instead of using space in the POSIX header block. I could manage to do that portably between future GNU @code{tar}s. So other POSIX @code{tar}s might be at least able to provide kind of correct listings for the archives produced by GNU @code{tar}, if not able to process them otherwise. X Using these projected extensions might induce older @code{tar}s to fail. We would use the same approach as for POSIX. I'll put out a @code{tar} capable of reading POSIXier, yet extended archives, but will not produce this format by default, in GNU mode. In a few years, when newer GNU @code{tar}s will have flooded out @code{tar} 1.11.X and previous, we could switch to producing POSIXier extended archives, with no real harm to users, as almost all existing GNU @code{tar}s will be ready to read POSIXier format. In fact, I'll do both changes at the same time, in a few years, and just prepare @code{tar} for both changes, without effecting them, from 1.@var{POSIX}. (Both changes: 1---using POSIX convention for getting over 100 characters; 2---avoiding mangling POSIX headers for GNU extensions, using only POSIX mandated extension techniques). X So, a future @code{tar} will have a @value{op-posix} flag forcing the usage of truly POSIX headers, and so, producing archives previous GNU @code{tar} will not be able to read. So, @emph{once} pretest will announce that feature, it would be particularly useful that users test how exchangeable will be archives between GNU @code{tar} with @value{op-posix} and other POSIX @code{tar}. X In a few years, when GNU @code{tar} will produce POSIX headers by default, @value{op-posix} will have a strong meaning and will disallow GNU extensions. But in the meantime, for a long while, @value{op-posix} in GNU tar will not disallow GNU extensions like @value{op-label}, @value{op-multi-volume}, @value{op-sparse}, or very long file or link names. However, @value{op-posix} with GNU extensions will use POSIX headers with reserved-for-users extensions to headers, and I will be curious to know how well or bad POSIX @code{tar}s will react to these. X GNU @code{tar} prior to 1.@var{POSIX}, and after 1.@var{POSIX} without @value{op-posix}, generates and checks @samp{ustar@w{ }@w{ }}, with two suffixed spaces. This is sufficient for older GNU @code{tar} not to recognize POSIX archives, and consequently, wrongly decide those archives are in old V7 format. It is a useful bug for me, because GNU @code{tar} has other POSIX incompatibilities, and I need to segregate GNU @code{tar} semi-POSIX archives from truly POSIX archives, for GNU @code{tar} should be somewhat compatible with itself, while migrating closer to latest POSIX standards. So, I'll be very careful about how and when I will do the correction. X @node Checksumming, , posix, Portability @subsection Checksumming Problems X SunOS and HP-UX @code{tar} fail to accept archives created using GNU @code{tar} and containing non-ASCII file names, that is, file names having characters with the eight bit set, because they use signed checksums, while GNU @code{tar} uses unsigned checksums while creating archives, as per POSIX standards. On reading, GNU @code{tar} computes both checksums and accept any. It is somewhat worrying that a lot of people may go around doing backup of their files using faulty (or at least non-standard) software, not learning about it until it's time to restore their missing files with an incompatible file extractor, or vice versa. X GNU @code{tar} compute checksums both ways, and accept any on read, so GNU tar can read Sun tapes even with their wrong checksums. GNU @code{tar} produces the standard checksum, however, raising incompatibilities with Sun. That is to say, GNU @code{tar} has not been modified to @emph{produce} incorrect archives to be read by buggy @code{tar}'s. I've been told that more recent Sun @code{tar} now read standard archives, so maybe Sun did a similar patch, after all? X The story seems to be that when Sun first imported @code{tar} sources on their system, they recompiled it without realizing that the checksums were computed differently, because of a change in the default signing of @code{char}'s in their compiler. So they started computing checksums wrongly. When they later realized their mistake, they merely decided to stay compatible with it, and with themselves afterwards. Presumably, but I do not really know, HP-UX has chosen that their @code{tar} archives to be compatible with Sun's. The current standards do not favor Sun @code{tar} format. In any case, it now falls on the shoulders of SunOS and HP-UX users to get a @code{tar} able to read the good archives they receive. X @node Compression, Attributes, Portability, Formats @section Using Less Space through Compression X @menu * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files @end menu X @node gzip, sparse, Compression, Compression @subsection Creating and Reading Compressed Archives @cindex Compressed archives @cindex Storing archives in compressed format @UNREVISED X @table @kbd @item -z @itemx --gzip @itemx --ungzip Filter the archive through @code{gzip}. @end table X @FIXME{ach; these two bits orig from "compare" (?). where to put?} Some format parameters must be taken into consideration when modifying an archive: @FIXME{???}. Compressed archives cannot be modified. X You can use @samp{--gzip} and @samp{--gunzip} on physical devices (tape drives, etc.) and remote files as well as on normal files; data to or from such devices or remote files is reblocked by another copy of the @code{tar} program to enforce the specified (or default) record size. The default compression parameters are used; if you need to override them, avoid the @value{op-gzip} option and run @code{gzip} explicitly. (Or set the @samp{GZIP} environment variable.) X The @value{op-gzip} option does not work with the @value{op-multi-volume} option, or with the @value{op-update}, @value{op-append}, @value{op-concatenate}, or @value{op-delete} operations. X It is not exact to say that GNU @code{tar} is to work in concert with @code{gzip} in a way similar to @code{zip}, say. Surely, it is possible that @code{tar} and @code{gzip} be done with a single call, like in: X @example $ @kbd{tar cfz archive.tar.gz subdir} @end example X @noindent to save all of @samp{subdir} into a @code{gzip}'ed archive. Later you can do: X @example $ @kbd{tar xfz archive.tar.gz} @end example X @noindent to explode and unpack. X The difference is that the whole archive is compressed. With @code{zip}, archive members are archived individually. @code{tar}'s method yields better compression. On the other hand, one can view the contents of a @code{zip} archive without having to decompress it. As for the @code{tar} and @code{gzip} tandem, you need to decompress the archive to see its contents. However, this may be done without needing disk space, by using pipes internally: X @example $ @kbd{tar tfz archive.tar.gz} @end example X @cindex corrupted archives About corrupted compressed archives: @code{gzip}'ed files have no redundancy, for maximum compression. The adaptive nature of the compression scheme means that the compression tables are implicitly spread all over the archive. If you lose a few blocks, the dynamic construction of the compression tables becomes unsychronized, and there is little chance that you could recover later in the archive. X There are pending suggestions for having a per-volume or per-file compression in GNU @code{tar}. This would allow for viewing the contents without decompression, and for resynchronizing decompression at every volume or file, in case of corrupted archives. Doing so, we might loose some compressibility. But this would have make recovering easier. So, there are pros and cons. We'll see! X @table @kbd @item -Z @itemx --compress @itemx --uncompress Filter the archive through @code{compress}. Otherwise like @value{op-gzip}. X @item --use-compress-program=@var{prog} Filter through @var{prog} (must accept @samp{-d}). @end table X @value{op-compress} stores an archive in compressed format. This option is useful in saving time over networks and space in pipes, and when storage space is at a premium. @value{op-compress} causes @code{tar} to compress when writing the archive, or to uncompress when reading the archive. X To perform compression and uncompression on the archive, @code{tar} runs the @code{compress} utility. @code{tar} uses the default compression parameters; if you need to override them, avoid the @value{op-compress} option and run the @code{compress} utility explicitly. It is useful to be able to call the @code{compress} utility from within @code{tar} because the @code{compress} utility by itself cannot access remote tape drives. X The @value{op-compress} option will not work in conjunction with the @value{op-multi-volume} option or the @value{op-append}, @value{op-update}, @value{op-append} and @value{op-delete} operations. @xref{Operations}, for more information on these operations. X If there is no compress utility available, @code{tar} will report an error. @strong{Please note} that the @code{compress} program may be covered by a patent, and therefore we recommend you stop using it. X @table @kbd @item --compress @itemx --uncompress @itemx -z @itemx -Z When this option is specified, @code{tar} will compress (when writing an archive), or uncompress (when reading an archive). Used in conjunction with the @value{op-create}, @value{op-extract}, @value{op-list} and @value{op-compare} operations. @end table X You can have archives be compressed by using the @value{op-gzip} option. This will arrange for @code{tar} to use the @code{gzip} program to be used to compress or uncompress the archive wren writing or reading it. X To use the older, obsolete, @code{compress} program, use the @value{op-compress} option. The GNU Project recommends you not use @code{compress}, because there is a patent covering the algorithm it uses. You could be sued for patent infringment merely by running @code{compress}. X I have one question, or maybe it's a suggestion if there isn't a way to do it now. I would like to use @value{op-gzip}, but I'd also like the output to be fed through a program like GNU @code{ecc} (actually, right now that's @samp{exactly} what I'd like to use :-)), basically adding ECC protection on top of compression. It seems as if this should be quite easy to do, but I can't work out exactly how to go about it. Of course, I can pipe the standard output of @code{tar} through @code{ecc}, but then I lose (though I haven't started using it yet, I confess) the ability to have @code{tar} use @code{rmt} for it's I/O (I think). X I think the most straightforward thing would be to let me specify a general set of filters outboard of compression (preferably ordered, so the order can be automatically reversed on input operations, and with the options they require specifiable), but beggars shouldn't be choosers and anything you decide on would be fine with me. X By the way, I like @code{ecc} but if (as the comments say) it can't deal with loss of block sync, I'm tempted to throw some time at adding that capability. Supposing I were to actually do such a thing and get it (apparantly) working, do you accept contributed changes to utilities like that? (Leigh Clayton @file{loc@@soliton.com}, May 1995). X Isn't that exactly the role of the @value{op-use-compress-prog} option? I never tried it myself, but I suspect you may want to write a @var{prog} script or program able to filter stdin to stdout to way you want. It should recognize the @samp{-d} option, for when extraction is needed rather than creation. X It has been reported that if one writes compressed data (through the @value{op-gzip} or @value{op-compress} options) to a DLT and tries to use the DLT compression mode, the data will actually get bigger and one will end up with less space on the tape. X @node sparse, , gzip, Compression @subsection Archiving Sparse Files @cindex Sparse Files @UNREVISED X @table @kbd @item -S @itemx --sparse Handle sparse files efficiently. @end table X This option causes all files to be put in the archive to be tested for sparseness, and handled specially if they are. The @value{op-sparse} option is useful when many @code{dbm} files, for example, are being backed up. Using this option dramatically decreases the amount of space needed to store such a file. X In later versions, this option may be removed, and the testing and treatment of sparse files may be done automatically with any special GNU options. For now, it is an option needing to be specified on the command line with the creation or updating of an archive. X Files in the filesystem occasionally have ``holes.'' A hole in a file is a section of the file's contents which was never written. The contents of a hole read as all zeros. On many operating systems, actual disk storage is not allocated for holes, but they are counted in the length of the file. If you archive such a file, @code{tar} could create an archive longer than the original. To have @code{tar} attempt to recognize the holes in a file, use @value{op-sparse}. When you use the @value{op-sparse} option, then, for any file using less disk space than would be expected from its length, @code{tar} searches the file for consecutive stretches of zeros. It then records in the archive for the file where the consecutive stretches of zeros are, and only archives the ``real contents'' of the file. On extraction (using @value{op-sparse} is not needed on extraction) any such files have hols created wherever the continuous stretches of zeros were found. Thus, if you use @value{op-sparse}, @code{tar} archives won't take more space than the original. X A file is sparse if it contains blocks of zeros whose existence is recorded, but that have no space allocated on disk. When you specify the @value{op-sparse} option in conjunction with the @value{op-create} operation, @code{tar} tests all files for sparseness while archiving. If @code{tar} finds a file to be sparse, it uses a sparse representation of the file in the archive. @value{xref-create}, for more information about creating archives. X @value{op-sparse} is useful when archiving files, such as dbm files, likely to contain many nulls. This option dramatically decreases the amount of space needed to store such an archive. X @quotation @strong{Please Note:} Always use @value{op-sparse} when performing file system backups, to avoid archiving the expanded forms of files stored sparsely in the system. X Even if your system has no sparse files currently, some may be created in the future. If you use @value{op-sparse} while making file system backups as a matter of course, you can be assured the archive will never take more space on the media than the files take on disk (otherwise, archiving a disk filled with sparse files might take hundreds of tapes). @FIXME-xref{incremental when node name is set.} @end quotation X @code{tar} ignores the @value{op-sparse} option when reading an archive. X @table @kbd @item --sparse @itemx -S Files stored sparsely in the file system are represented sparsely in the archive. Use in conjunction with write operations. @end table X However, users should be well aware that at archive creation time, GNU @code{tar} still has to read whole disk file to locate the @dfn{holes}, and so, even if sparse files use little space on disk and in the archive, they may sometimes require inordinate amount of time for reading and examining all-zero blocks of a file. Although it works, it's painfully slow for a large (sparse) file, even though the resulting tar archive may be small. (One user reports that dumping a @file{core} file of over 400 megabytes, but with only about 3 megabytes of actual data, took about 9 minutes on a Sun Sparstation ELC, with full CPU utilisation.) X This reading is required in all cases and is not related to the fact the @value{op-sparse} option is used or not, so by merely @emph{not} using the option, you are not saving time@footnote{Well! We should say the whole truth, here. When @value{op-sparse} is selected while creating an archive, the current @code{tar} algorithm requires sparse files to be read twice, not once. We hope to develop a new archive format for saving sparse files in which one pass will be sufficient.}. X Programs like @code{dump} do not have to read the entire file; by examining the file system directly, they can determine in advance exactly where the holes are and thus avoid reading through them. The only data it need read are the actual allocated data blocks. GNU @code{tar} uses a more portable and straightforward archiving approach, it would be fairly difficult that it does otherwise. Elizabeth Zwicky writes to @file{comp.unix.internals}, on 1990-12-10: X @quotation What I did say is that you cannot tell the difference between a hole and an equivalent number of nulls without reading raw blocks. @code{st_blocks} at best tells you how many holes there are; it doesn't tell you @emph{where}. Just as programs may, conceivably, care what @code{st_blocks} is (care to name one that does?), they may also care where the holes are (I have no examples of this one either, but it's equally imaginable). X I conclude from this that good archivers are not portable. One can arguably conclude that if you want a portable program, you can in good conscience restore files with as many holes as possible, since you can't get it right. @end quotation X @node Attributes, Standard, Compression, Formats @section Handling File Attributes @UNREVISED X When @code{tar} reads files, this causes them to have the access times updated. To have @code{tar} attempt to set the access times back to what they were before they were read, use the @value{op-atime-preserve} option. This doesn't work for files that you don't own, unless you're root, and it doesn't interact with incremental dumps nicely (@pxref{Backups}), but it is good enough for some purposes. X Handling of file attributes X @table @kbd @item --atime-preserve Do not change access times on dumped files. X @item -m @itemx --touch Do not extract file modified time. X When this option is used, @code{tar} leaves the modification times of the files it extracts as the time when the files were extracted, instead of setting it to the time recorded in the archive. X This option is meaningless with @value{op-list}. X @item --same-owner Create extracted files with the same ownership they have in the archive. X When using super-user at extraction time, ownership is always restored. So, this option is meaningful only for non-root users, when @code{tar} is executed on those systems able to give files away. This is considered as a security flaw by many people, at least because it makes quite difficult to correctly account users for the disk space they occupy. Also, the @code{suid} or @code{sgid} attributes of files are easily and silently lost when files are given away. X When writing an archive, @code{tar} writes the user id and user name separately. If it can't find a user name (because the user id is not in @file{/etc/passwd}), then it does not write one. When restoring, and doing a @code{chmod} like when you use @value{op-same-permissions} (@FIXME{same-owner?}), it tries to look the name (if one was written) up in @file{/etc/passwd}. If it fails, then it uses the user id stored in the archive instead. X @item --numeric-owner The @value{op-numeric-owner} option allows (ANSI) archives to be written without user/group name information or such information to be ignored when extracting. It effectively disables the generation and/or use of user/group name information. This option forces extraction using the numeric ids from the archive, ignoring the names. X This is useful in certain circumstances, when restoring a backup from an emergency floppy with different passwd/group files for example. It is otherwise impossible to extract files with the right ownerships if the password file in use during the extraction does not match the one belonging to the filesystem(s) being extracted. This occurs, for example, if you are restoring your files after a major crash and had booted from an emergency floppy with no password file or put your disk into another machine to do the restore. X The numeric ids are @emph{always} saved into @code{tar} archives. The identifying names are added at create time when provided by the system, unless @value{op-old-archive} is used. Numeric ids could be used when moving archives between a collection of machines using a centralized management for attribution of numeric ids to users and groups. This is often made through using the NIS capabilities. X When making a @code{tar} file for distribution to other sites, it is sometimes cleaner to use a single owner for all files in the distribution, and nicer to specify the write permission bits of the files as stored in the archive independently of their actual value on the file system. The way to prepare a clean distribution is usually to have some Makefile rule creating a directory, copying all needed files in that directory, then setting ownership and permissions as wanted (there are a lot of possible schemes), and only then making a @code{tar} archive out of this directory, before cleaning everything out. Of course, we could add a lot of options to GNU @code{tar} for fine tuning permissions and ownership. This is not the good way, I think. GNU @code{tar} is already crowded with options and moreover, the approach just explained gives you a great deal of control already. X @item -p @itemx --same-permissions @itemx --preserve-permissions Extract all protection information. X This option causes @code{tar} to set the modes (access permissions) of extracted files exactly as recorded in the archive. If this option is not used, the current @code{umask} setting limits the permissions on extracted files. X This option is meaningless with @value{op-list}. X @item --preserve Same as both @value{op-same-permissions} and @value{op-same-order}. X The @value{op-preserve} option has no equivalent short option name. It is equivalent to @value{op-same-permissions} plus @value{op-same-order}. X @FIXME{I do not see the purpose of such an option. (Neither I. FP.)} X @end table X @node Standard, Extensions, Attributes, Formats @section The Standard Format @UNREVISED X While an archive may contain many files, the archive itself is a single ordinary file. Like any other file, an archive file can be written to a storage device such as a tape or disk, sent through a pipe or over a network, saved on the active file system, or even stored in another archive. An archive file is not easy to read or manipulate without using the @code{tar} utility or Tar mode in GNU Emacs. X Physically, an archive consists of a series of file entries terminated by an end-of-archive entry, which consists of 512 zero bytes. A file entry usually describes one of the files in the archive (an @dfn{archive member}), and consists of a file header and the contents of the file. File headers contain file names and statistics, checksum information which @code{tar} uses to detect file corruption, and information about file types. X Archives are permitted to have more than one member with the same member name. One way this situation can occur is if more than one version of a file has been stored in the archive. For information about adding new versions of a file to an archive, see @ref{update}, and to learn more about having more than one archive member with the same name, see @FIXME-xref{-backup node, when it's written}. X In addition to entries describing archive members, an archive may contain entries which @code{tar} itself uses to store information. @value{xref-label}, for an example of such an archive entry. X A @code{tar} archive file contains a series of blocks. Each block contains @code{BLOCKSIZE} bytes. Although this format may be thought of as being on magnetic tape, other media are often used. X Each file archived is represented by a header block which describes the file, followed by zero or more blocks which give the contents of the file. At the end of the archive file there may be a block filled with binary zeros as an end-of-file marker. A reasonable system should write a block of zeros at the end, but must not assume that such a block exists when reading an archive. X The blocks may be @dfn{blocked} for physical I/O operations. Each record of @var{n} blocks (where @var{n} is set by the @value{op-blocking-factor} option to @code{tar}) is written with a single @w{@samp{write ()}} operation. On magnetic tapes, the result of such a write is a single record. When writing an archive, the last record of blocks should be written at the full size, with blocks after the zero block containing all zeros. When reading an archive, a reasonable system should properly handle an archive whose last record is shorter than the rest, or which contains garbage records after a zero block. X The header block is defined in C as follows. In the GNU @code{tar} distribution, this is part of file @file{src/tar.h}: X @example @include header.texi @end example X All characters in header blocks are represented by using 8-bit characters in the local variant of ASCII. Each field within the structure is contiguous; that is, there is no padding used within the structure. Each character on the archive medium is stored contiguously. X Bytes representing the contents of files (after the header block of each file) are not translated in any way and are not constrained to represent characters in any character set. The @code{tar} format does not distinguish text files from binary files, and no translation of file contents is performed. X The @code{name}, @code{linkname}, @code{magic}, @code{uname}, and @code{gname} are null-terminated character strings. All other fileds are zero-filled octal numbers in ASCII. Each numeric field of width @var{w} contains @var{w} minus 2 digits, a space, and a null, except @code{size}, and @code{mtime}, which do not contain the trailing null. X The @code{name} field is the file name of the file, with directory names (if any) preceding the file name, separated by slashes. X @FIXME{how big a name before field overflows?} X The @code{mode} field provides nine bits specifying file permissions and three bits to specify the Set UID, Set GID, and Save Text (@dfn{sticky}) modes. Values for these bits are defined above. When special permissions are required to create a file with a given mode, and the user restoring files from the archive does not hold such permissions, the mode bit(s) specifying those special permissions are ignored. Modes which are not supported by the operating system restoring files from the archive will be ignored. Unsupported modes should be faked up when creating or updating an archive; e.g. the group permission could be copied from the @emph{other} permission. X The @code{uid} and @code{gid} fields are the numeric user and group ID of the file owners, respectively. If the operating system does not support numeric user or group IDs, these fields should be ignored. X The @code{size} field is the size of the file in bytes; linked files are archived with this field specified as zero. @FIXME-xref{Modifiers}, in particular the @value{op-incremental} option. X The @code{mtime} field is the modification time of the file at the time it was archived. It is the ASCII representation of the octal value of the last time the file was modified, represented as an integer number of seconds since January 1, 1970, 00:00 Coordinated Universal Time. X The @code{chksum} field is the ASCII representation of the octal value of the simple sum of all bytes in the header block. Each 8-bit byte in the header is added to an unsigned integer, initialized to zero, the precision of which shall be no less than seventeen bits. When calculating the checksum, the @code{chksum} field is treated as if it were all blanks. X The @code{typeflag} field specifies the type of file archived. If a particular implementation does not recognize or permit the specified type, the file will be extracted as if it were a regular file. As this action occurs, @code{tar} issues a warning to the standard error. X The @code{atime} and @code{ctime} fields are used in making incremental backups; they store, respectively, the particular file's access time and last inode-change time. X The @code{offset} is used by the @value{op-multi-volume} option, when making a multi-volume archive. The offset is number of bytes into the file that we need to restart at to continue the file on the next tape, i.e., where we store the location that a continued file is continued at. X The following fields were added to deal with sparse files. A file is @dfn{sparse} if it takes in unallocated blocks which end up being represented as zeros, i.e., no useful data. A test to see if a file is sparse is to look at the number blocks allocated for it versus the number of characters in the file; if there are fewer blocks allocated for the file than would normally be allocated for a file of that size, then the file is sparse. This is the method @code{tar} uses to detect a sparse file, and once such a file is detected, it is treated differently from non-sparse files. X Sparse files are often @code{dbm} files, or other database-type files which have data at some points and emptiness in the greater part of the file. Such files can appear to be very large when an @samp{ls -l} is done on them, when in truth, there may be a very small amount of important data contained in the file. It is thus undesirable to have @code{tar} think that it must back up this entire file, as great quantities of room are wasted on empty blocks, which can lead to running out of room on a tape far earlier than is necessary. Thus, sparse files are dealt with so that these empty blocks are not written to the tape. Instead, what is written to the tape is a description, of sorts, of the sparse file: where the holes are, how big the holes are, and how much data is found at the end of the hole. This way, the file takes up potentially far less room on the tape, and when the file is extracted later on, it will look exactly the way it looked beforehand. The following is a description of the fields used to handle a sparse file: X The @code{sp} is an array of @code{struct sparse}. Each @code{struct sparse} contains two 12-character strings which represent an offset into the file and a number of bytes to be written at that offset. The offset is absolute, and not relative to the offset in preceding array element. X The header can hold four of these @code{struct sparse} at the moment; if more are needed, they are not stored in the header. X The @code{isextended} flag is set when an @code{extended_header} is needed to deal with a file. Note that this means that this flag can only be set when dealing with a sparse file, and it is only set in the event that the description of the file will not fit in the alloted room for sparse structures in the header. In other words, an extended_header is needed. X The @code{extended_header} structure is used for sparse files which need more sparse structures than can fit in the header. The header can fit 4 such structures; if more are needed, the flag @code{isextended} gets set and the next block is an @code{extended_header}. X Each @code{extended_header} structure contains an array of 21 sparse structures, along with a similar @code{isextended} flag that the header had. There can be an indeterminate number of such @code{extended_header}s to describe a sparse file. X @table @asis X @item @code{REGTYPE} @itemx @code{AREGTYPE} These flags represent a regular file. In order to be compatible with older versions of @code{tar}, a @code{typeflag} value of @code{AREGTYPE} should be silently recognized as a regular file. New archives should be created using @code{REGTYPE}. Also, for backward compatibility, @code{tar} treats a regular file whose name ends with a slash as a directory. X @item @code{LNKTYPE} This flag represents a file linked to another file, of any type, previously archived. Such files are identified in Unix by each file having the same device and inode number. The linked-to name is specified in the @code{linkname} field with a trailing null. X @item @code{SYMTYPE} This represents a symbolic link to another file. The linked-to name is specified in the @code{linkname} field with a trailing null. X @item @code{CHRTYPE} @itemx @code{BLKTYPE} These represent character special files and block special files respectively. In this case the @code{devmajor} and @code{devminor} fields will contain the major and minor device numbers respectively. Operating systems may map the device specifications to their own local specification, or may ignore the entry. X @item @code{DIRTYPE} This flag specifies a directory or sub-directory. The directory name in the @code{name} field should end with a slash. On systems where disk allocation is performed on a directory basis, the @code{size} field will contain the maximum number of bytes (which may be rounded to the nearest disk block allocation unit) which the directory may hold. A @code{size} field of zero indicates no such limiting. Systems which do not support limiting in this manner should ignore the @code{size} field. X @item @code{FIFOTYPE} This specifies a FIFO special file. Note that the archiving of a FIFO file archives the existence of this file and not its contents. X @item @code{CONTTYPE} This specifies a contiguous file, which is the same as a normal file except that, in operating systems which support it, all its space is allocated contiguously on the disk. Operating systems which do not allow contiguous allocation should silently treat this type as a normal file. X @item @code{A} @dots{} @code{Z} These are reserved for custom implementations. Some of these are used in the GNU modified format, as described below. X @end table X Other values are reserved for specification in future revisions of the P1003 standard, and should not be used by any @code{tar} program. X The @code{magic} field indicates that this archive was output in the P1003 archive format. If this field contains @code{TMAGIC}, the @code{uname} and @code{gname} fields will contain the ASCII representation of the owner and group of the file respectively. If found, the user and group IDs are used rather than the values in the @code{uid} and @code{gid} fields. X For references, see ISO/IEC 9945-1:1990 or IEEE Std 1003.1-1990, pages 169-173 (section 10.1) for @cite{Archive/Interchange File Format}; and IEEE Std 1003.2-1992, pages 380-388 (section 4.48) and pages 936-940 (section E.4.48) for @cite{pax - Portable archive interchange}. X @node Extensions, cpio, Standard, Formats @section GNU Extensions to the Archive Format @UNREVISED X The GNU format uses additional file types to describe new types of files in an archive. These are listed below. X @table @code @item GNUTYPE_DUMPDIR @itemx 'D' This represents a directory and a list of files created by the @value{op-incremental} option. The @code{size} field gives the total size of the associated list of files. Each file name is preceded by either a @samp{Y} (the file should be in this archive) or an @samp{N}. (The file is a directory, or is not stored in the archive.) Each file name is terminated by a null. There is an additional null after the last file name. X @item GNUTYPE_MULTIVOL @itemx 'M' This represents a file continued from another volume of a multi-volume archive created with the @value{op-multi-volume} option. The original type of the file is not given here. The @code{size} field gives the maximum size of this piece of the file (assuming the volume does not end before the file is written out). The @code{offset} field gives the offset from the beginning of the file where this part of the file begins. Thus @code{size} plus @code{offset} should equal the original size of the file. X @item GNUTYPE_SPARSE @itemx 'S' This flag indicates that we are dealing with a sparse file. Note that archiving a sparse file requires special operations to find holes in the file, which mark the positions of these holes, along with the number of bytes of data to be found after the hole. X @item GNUTYPE_VOLHDR @itemx 'V' This file type is used to mark the volume header that was given with the @value{op-label} option when the archive was created. The @code{name} field contains the @code{name} given after the @value{op-label} option. The @code{size} field is zero. Only the first file in each volume of an archive should have this type. X @end table X You may have trouble reading a GNU format archive on a non-GNU system if the options @value{op-incremental}, @value{op-multi-volume}, @value{op-sparse}, or @value{op-label} were used when writing the archive. In general, if @code{tar} does not use the GNU-added fields of the header, other versions of @code{tar} should be able to read the archive. Otherwise, the @code{tar} program will give an error, the most likely one being a checksum error. X @node cpio, , Extensions, Formats @section Comparison of @code{tar} and @code{cpio} @UNREVISED X @FIXME{Reorganize the following material} X The @code{cpio} archive formats, like @code{tar}, do have maximum pathname lengths. The binary and old ASCII formats have a max path length of 256, and the new ASCII and CRC ASCII formats have a max path length of 1024. GNU @code{cpio} can read and write archives with arbitrary pathname lengths, but other @code{cpio} implementations may crash unexplainedly trying to read them. X @code{tar} handles symbolic links in the form in which it comes in BSD; @code{cpio} doesn't handle symbolic links in the form in which it comes in System V prior to SVR4, and some vendors may have added symlinks to their system without enhancing @code{cpio} to know about them. Others may have enhanced it in a way other than the way I did it at Sun, and which was adopted by AT&T (and which is, I think, also present in the @code{cpio} that Berkeley picked up from AT&T and put into a later BSD release---I think I gave them my changes). X (SVR4 does some funny stuff with @code{tar}; basically, its @code{cpio} can handle @code{tar} format input, and write it on output, and it probably handles symbolic links. They may not have bothered doing anything to enhance @code{tar} as a result.) X @code{cpio} handles special files; traditional @code{tar} doesn't. X @code{tar} comes with V7, System III, System V, and BSD source; @code{cpio} comes only with System III, System V, and later BSD (4.3-tahoe and later). X @code{tar}'s way of handling multiple hard links to a file can handle file systems that support 32-bit inumbers (e.g., the BSD file system); @code{cpio}s way requires you to play some games (in its "binary" format, i-numbers are only 16 bits, and in its "portable ASCII" format, they're 18 bits---it would have to play games with the "file system ID" field of the header to make sure that the file system ID/i-number pairs of different files were always different), and I don't know which @code{cpio}s, if any, play those games. Those that don't might get confused and think two files are the same file when they're not, and make hard links between them. X @code{tar}s way of handling multiple hard links to a file places only one copy of the link on the tape, but the name attached to that copy is the @emph{only} one you can use to retrieve the file; @code{cpio}s way puts one copy for every link, but you can retrieve it using any of the names. X @quotation What type of check sum (if any) is used, and how is this calculated. @end quotation X See the attached manual pages for @code{tar} and @code{cpio} format. @code{tar} uses a checksum which is the sum of all the bytes in the @code{tar} header for a file; @code{cpio} uses no checksum. X @quotation If anyone knows why @code{cpio} was made when @code{tar} was present at the unix scene, @end quotation X It wasn't. @code{cpio} first showed up in PWB/UNIX 1.0; no generally-available version of UNIX had @code{tar} at the time. I don't know whether any version that was generally available @emph{within AT&T} had @code{tar}, or, if so, whether the people within AT&T who did @code{cpio} knew about it. X On restore, if there is a corruption on a tape @code{tar} will stop at that point, while @code{cpio} will skip over it and try to restore the rest of the files. X The main difference is just in the command syntax and header format. X @code{tar} is a little more tape-oriented in that everything is blocked to start on a record boundary. X @quotation Is there any differences between the ability to recover crashed archives between the two of them. (Is there any chance of recovering crashed archives at all.) @end quotation X Theoretically it should be easier under @code{tar} since the blocking lets you find a header with some variation of @samp{dd skip=@var{nn}}. However, modern @code{cpio}'s and variations have an option to just search for the next file header after an error with a reasonable chance of re-syncing. However, lots of tape driver software won't allow you to continue past a media error which should be the only reason for getting out of sync unless a file changed sizes while you were writing the archive. X @quotation If anyone knows why @code{cpio} was made when @code{tar} was present at the unix scene, please tell me about this too. @end quotation X Probably because it is more media efficient (by not blocking everything and using only the space needed for the headers where @code{tar} always uses 512 bytes per file header) and it knows how to archive special files. X You might want to look at the freely available alternatives. The major ones are @code{afio}, GNU @code{tar}, and @code{pax}, each of which have their own extensions with some backwards compatibility. X Sparse files were @code{tar}red as sparse files (which you can easily test, because the resulting archive gets smaller, and GNU @code{cpio} can no longer read it). X @node Media, Index, Formats, Top @chapter Tapes and Other Archive Media @UNREVISED X A few special cases about tape handling warrant more detailed description. These special cases are discussed below. X Many complexities surround the use of @code{tar} on tape drives. Since the creation and manipulation of archives located on magnetic tape was the original purpose of @code{tar}, it contains many features making such manipulation easier. X Archives are usually written on dismountable media---tape cartridges, mag tapes, or floppy disks. X The amount of data a tape or disk holds depends not only on its size, but also on how it is formatted. A 2400 foot long reel of mag tape holds 40 megabytes of data when formated at 1600 bits per inch. The physically smaller EXABYTE tape cartridge holds 2.3 gigabytes. X Magnetic media are re-usable---once the archive on a tape is no longer needed, the archive can be erased and the tape or disk used over. Media quality does deteriorate with use, however. Most tapes or disks should be disgarded when they begin to produce data errors. EXABYTE tape cartridges should be disgarded when they generate an @dfn{error count} (number of non-usable bits) of more than 10k. X Magnetic media are written and erased using magnetic fields, and should be protected from such fields to avoid damage to stored data. Sticking a floppy disk to a filing cabinet using a magnet is probably not a good idea. X @menu * Device:: Device selection and switching * Remote Tape Server:: * Common Problems and Solutions:: * Blocking:: Blocking * Many:: Many archives on one tape * Using Multiple Tapes:: Using Multiple Tapes * label:: Including a Label in the Archive * verify:: * Write Protection:: @end menu X @node Device, Remote Tape Server, Media, Media @section Device Selection and Switching @UNREVISED X @table @kbd @item -f [@var{hostname}:]@var{file} @itemx --file=[@var{hostname}:]@var{file} Use archive file or device @var{file} on @var{hostname}. @end table X This option is used to specify the file name of the archive @code{tar} works on. X If the file name is @samp{-}, @code{tar} reads the archive from standard input (when listing or extracting), or writes it to standard output (when creating). If the @samp{-} file name is given when updating an archive, @code{tar} will read the original archive from its standard input, and will write the entire new archive to its standard output. X If the file name contains a @samp{:}, it is interpreted as @samp{hostname:file name}. If the @var{hostname} contains an @dfn{at} sign (@kbd{@@}), it is treated as @samp{user@@hostname:file name}. In either case, @code{tar} will invoke the command @code{rsh} (or @code{remsh}) to start up an @file{/etc/rmt} on the remote machine. If you give an alternate login name, it will be given to the @code{rsh}. Naturally, the remote machine must have an executable @file{/etc/rmt}. This program is free software from the University of California, and a copy of the source code can be found with the sources for @code{tar}; it's compiled and installed by default. X If this option is not given, but the environment variable @code{TAPE} is set, its value is used; otherwise, old versions of @code{tar} used a default archive name (which was picked when @code{tar} was compiled). The default is normally set up to be the @dfn{first} tape drive or other transportable I/O medium on the system. X Starting with version 1.11.5, GNU @code{tar} uses standard input and standard output as the default device, and I will not try anymore supporting automatic device detection at installation time. This was failing really in too many cases, it was hopeless. This is now completely left to the installer to override standard input and standard output for default device, if this seems preferrable to him/her. Further, I think @emph{most} actual usages of @code{tar} are done with pipes or disks, not really tapes, cartridges or diskettes. X Some users think that using standard input and output is running after trouble. This could lead to a nasty surprise on your screen if you forget to specify an output file name---especially if you are going through a network or terminal server capable of buffering large amounts of output. We had so many bug reports in that area of configuring default tapes automatically, and so many contradicting requests, that we finally consider the problem to be portably intractable. We could of course use something like @samp{/dev/tape} as a default, but this is @emph{also} running after various kind of trouble, going from hung processes to accidental destruction of real tapes. After having seen all this mess, using standard input and output as a default really sounds like the only clean choice left, and a very useful one too. X GNU @code{tar} reads and writes archive in records, I suspect this is the main reason why block devices are preferred over character devices. Most probably, block devices are more efficient too. The installer could also check for @samp{DEFTAPE} in @file{}. X @table @kbd @item --force-local Archive file is local even if it contains a colon. X @item --rsh-command=@var{command} Use remote @var{command} instead of @code{rsh}. This option exists so that people who use something other than the standard @code{rsh} (e.g., a Kerberized @code{rsh}) can access a remote device. X When this command is not used, the shell command found when the @code{tar} program was installed is used instead. This is the first found of @file{/usr/ucb/rsh}, @file{/usr/bin/remsh}, @file{/usr/bin/rsh}, @file{/usr/bsd/rsh} or @file{/usr/bin/nsh}. The installer may have overriden this by defining the environment variable @code{RSH} @emph{at installation time}. X @item -[0-7][lmh] Specify drive and density. X @item -M @itemx --multi-volume Create/list/extract multi-volume archive. X This option causes @code{tar} to write a @dfn{multi-volume} archive---one that may be larger than will fit on the medium used to hold it. @xref{Multi-Volume Archives}. X @item -L @var{num} @itemx --tape-length=@var{num} Change tape after writing @var{num} x 1024 bytes. X This option might be useful when your tape drivers do not properly detect end of physical tapes. By being slightly conservative on the maximum tape length, you might avoid the problem entirely. X @item -F @var{file} @itemx --info-script=@var{file} @itemx --new-volume-script=@var{file} Execute @file{file} at end of each tape. This implies @value{op-multi-volume}. @end table X @node Remote Tape Server, Common Problems and Solutions, Device, Media @section The Remote Tape Server X @cindex remote tape drive @pindex rmt In order to access the tape drive on a remote machine, @code{tar} uses the remote tape server written at the University of California at Berkeley. The remote tape server must be installed as @file{/etc/rmt} on any machine whose tape drive you want to use. @code{tar} calls @file{/etc/rmt} by running an @code{rsh} or @code{remsh} to the remote machine, optionally using a different login name if one is supplied. X A copy of the source for the remote tape server is provided. It is Copyright @copyright{} 1983 by the Regents of the University of California, but can be freely distributed. Instructions for compiling and installing it are included in the @file{Makefile}. X @cindex absolute file names Unless you use the @value{op-absolute-names} option, GNU @code{tar} will not allow you to create an archive that contains absolute file names (a file name beginning with @samp{/}.) If you try, @code{tar} will automatically remove the leading @samp{/} from the file names it stores in the archive. It will also type a warning message telling you what it is doing. X When reading an archive that was created with a different @code{tar} program, GNU @code{tar} automatically extracts entries in the archive which have absolute file names as if the file names were not absolute. This is an important feature. A visitor here once gave a @code{tar} tape to an operator to restore; the operator used Sun @code{tar} instead of GNU @code{tar}, and the result was that it replaced large portions of our @file{/bin} and friends with versions from the tape; needless to say, we were unhappy about having to recover the file system from backup tapes. X For example, if the archive contained a file @file{/usr/bin/computoy}, GNU @code{tar} would extract the file to @file{usr/bin/computoy}, relative to the current directory. If you want to extract the files in an archive to the same absolute names that they had when the archive was created, you should do a @samp{cd /} before extracting the files from the archive, or you should either use the @value{op-absolute-names} option, or use the command @samp{tar -C / @dots{}}. X @cindex Ultrix 3.1 and write failure Some versions of Unix (Ultrix 3.1 is know to have this problem), can claim that a short write near the end of a tape succeeded, when it actually failed. This will result in the -M option not working correctly. The best workaround at the moment is to use a significantly larger blocking factor than the default 20. X In order to update an archive, @code{tar} must be able to backspace the archive in order to reread or rewrite a record that was just read (or written). This is currently possible only on two kinds of files: normal disk files (or any other file that can be backspaced with @samp{lseek}), and industry-standard 9-track magnetic tape (or any other kind of tape that can be backspaced with the @code{MTIOCTOP} @code{ioctl}. X This means that the @value{op-append}, @value{op-update}, @value{op-concatenate}, and @value{op-delete} commands will not work on any other kind of file. Some media simply cannot be backspaced, which means these commands and options will never be able to work on them. These non-backspacing media include pipes and cartridge tape drives. X Some other media can be backspaced, and @code{tar} will work on them once @code{tar} is modified to do so. X Archives created with the @value{op-multi-volume}, @value{op-label}, and @value{op-incremental} options may not be readable by other version of @code{tar}. In particular, restoring a file that was split over a volume boundary will require some careful work with @code{dd}, if it can be done at all. Other versions of @code{tar} may also create an empty file whose name is that of the volume header. Some versions of @code{tar} may create normal files instead of directories archived with the @value{op-incremental} option. X @node Common Problems and Solutions, Blocking, Remote Tape Server, Media @section Some Common Problems and their Solutions X @ifclear PUBLISH X @format errors from system: permission denied no such file or directory not owner X errors from @code{tar}: directory checksum error header format error X errors from media/system: i/o error device busy @end format X @end ifclear X @node Blocking, Many, Common Problems and Solutions, Media @section Blocking @UNREVISED X @dfn{Block} and @dfn{record} terminology is rather confused, and it is also confusing to the expert reader. On the other hand, readers who are new to the field have a fresh mind, and they may safely skip the next two paragraphs, as the remainder of this manual uses those two terms in a quite consistent way. X John Gilmore, the writer of the public domain @code{tar} from which GNU @code{tar} was originally derived, wrote (June 1995): X @quotation The nomenclature of tape drives comes from IBM, where I believe they were invented for the IBM 650 or so. On IBM mainframes, what is recorded on tape are tape blocks. The logical organization of data is into records. There are various ways of putting records into blocks, including @code{F} (fixed sized records), @code{V} (variable sized records), @code{FB} (fixed blocked: fixed size records, @var{n} to a block), @code{VB} (variable size records, @var{n} to a block), @code{VSB} (variable spanned blocked: variable sized records that can occupy more than one block), etc. The @code{JCL} @samp{DD RECFORM=} parameter specified this to the operating system. X The Unix man page on @code{tar} was totally confused about this. When I wrote @code{PD TAR}, I used the historically correct terminology (@code{tar} writes data records, which are grouped into blocks). It appears that the bogus terminology made it into POSIX (no surprise here), and now Fran@,{c}ois has migrated that terminology back into the source code too. @end quotation X The term @dfn{physical block} means the basic transfer chunk from or to a device, after which reading or writing may stop without anything being lost. In this manual, the term @dfn{block} usually refers to a disk physical block, @emph{assuming} that each disk block is 512 bytes in length. It is true that some disk devices have different physical blocks, but @code{tar} ignore these differences in its own format, which is meant to be portable, so a @code{tar} block is always 512 bytes in length, and @dfn{block} always mean a @code{tar} block. The term @dfn{logical block} often represents the basic chunk of allocation of many disk blocks as a single entity, which the operating system treats somewhat atomically; this concept is only barely used in GNU @code{tar}. X The term @dfn{physical record} is another way to speak of a physical block, those two terms are somewhat interchangeable. In this manual, the term @dfn{record} usually refers to a tape physical block, @emph{assuming} that the @code{tar} archive is kept on magnetic tape. It is true that archives may be put on disk or used with pipes, but nevertheless, @code{tar} tries to read and write the archive one @dfn{record} at a time, whatever the medium in use. One record is made up of an integral number of blocks, and this operation of putting many disk blocks into a single tape block is called @dfn{reblocking}, or more simply, @dfn{blocking}. The term @dfn{logical record} refers to the logical organization of many characters into something meaningful to the application. The term @dfn{unit record} describes a small set of characters which are transmitted whole to or by the application, and often refers to a line of text. Those two last terms are unrelated to what we call a @dfn{record} in GNU @code{tar}. X When writing to tapes, @code{tar} writes the contents of the archive in chunks known as @dfn{records}. To change the default blocking factor, use the @value{op-blocking-factor} option. Each record will then be composed of @var{512-size} blocks. (Each @code{tar} block is 512 bytes. @xref{Standard}.) Each file written to the archive uses at least one full record. As a result, using a larger record size can result in more wasted space for small files. On the other hand, a larger record size can often be read and written much more efficiently. X Further complicating the problem is that some tape drives ignore the blocking entirely. For these, a larger record size can still improve performance (because the software layers above the tape drive still honor the blocking), but not as dramatically as on tape drives that honor blocking. X When reading an archive, @code{tar} can usually figure out the record size on itself. When this is the case, and a non-standard record size was used when the archive was created, @code{tar} will print a message about a non-standard blocking factor, and then operate normally. On some tape devices, however, @code{tar} cannot figure out the record size itself. On most of those, you can specify a blocking factor (with @value{op-blocking-factor}) larger than the actual blocking factor, and then use the @value{op-read-full-records} option. (If you specify a blocking factor with @value{op-blocking-factor} and don't use the @value{op-read-full-records} option, then @code{tar} will not attempt to figure out the recording size itself.) On some devices, you must always specify the record size exactly with @value{op-blocking-factor} when reading, because @code{tar} cannot figure it out. In any case, use @value{op-list} before doing any extractions to see whether @code{tar} is reading the archive correctly. X @code{tar} blocks are all fixed size (512 bytes), and its scheme for putting them into records is to put a whole number of them (one or more) into each record. @code{tar} records are all the same size; at the end of the file there's a block containing all zeros, which is how you tell that the remainder of the last record(s) are garbage. X In a standard @code{tar} file (no options), the block size is 512 and the record size is 10240, for a blocking factor of 20. What the @value{op-blocking-factor} option does is sets the blocking factor, changing the record size while leaving the block size at 512 bytes. 20 was fine for ancient 800 or 1600 bpi reel-to-reel tape drives; most tape drives these days prefer much bigger records in order to stream and not waste tape. When writing tapes for myself, some tend to use a factor of the order of 2048, say, giving a record size of around one megabyte. X If you use a blocking factor larger than 20, older @code{tar} programs might not be able to read the archive, so we recommend this as a limit to use in practice. GNU @code{tar}, however, will support arbitrarily large record sizes, limited only by the amount of virtual memory or the physical characteristics of the tape device. X @menu * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive @end menu X @node Format Variations, Blocking Factor, Blocking, Blocking @subsection Format Variations @cindex Format Parameters @cindex Format Options @cindex Options, archive format specifying @cindex Options, format specifying @UNREVISED X Format parameters specify how an archive is written on the archive media. The best choice of format parameters will vary depending on the type and number of files being archived, and on the media used to store the archive. X To specify format parameters when accessing or creating an archive, you can use the options described in the following sections. If you do not specify any format parameters, @code{tar} uses default parameters. You cannot modify a compressed archive. If you create an archive with the @value{op-blocking-factor} option specified (@value{pxref-blocking-factor}), you must specify that blocking-factor when operating on the archive. @xref{Formats}, for other examples of format parameter considerations. X @node Blocking Factor, , Format Variations, Blocking @subsection The Blocking Factor of an Archive @cindex Blocking Factor @cindex Record Size @cindex Number of blocks per record @cindex Number of bytes per record @cindex Bytes per record @cindex Blocks per record @UNREVISED X The data in an archive is grouped into blocks, which are 512 bytes. Blocks are read and written in whole number multiples called @dfn{records}. The number of blocks in a record (ie. the size of a record in units of 512 bytes) is called the @dfn{blocking factor}. The @value{op-blocking-factor} option specifies the blocking factor of an archive. The default blocking factor is typically 20 (ie.@: 10240 bytes), but can be specified at installation. To find out the blocking factor of an existing archive, use @samp{tar --list --file=@var{archive-name}}. This may not work on some devices. X Records are separated by gaps, which waste space on the archive media. If you are archiving on magnetic tape, using a larger blocking factor (and therefore larger records) provides faster throughput and allows you to fit more data on a tape (because there are fewer gaps). If you are archiving on cartridge, a very large blocking factor (say 126 or more) greatly increases performance. A smaller blocking factor, on the other hand, may be usefull when archiving small files, to avoid archiving lots of nulls as @code{tar} fills out the archive to the end of the record. In general, the ideal record size depends on the size of the inter-record gaps on the tape you are using, and the average size of the files you are archiving. @xref{create}, for information on writing archives. X @FIXME{Need example of using a cartridge with blocking factor=126 or more.} X Archives with blocking factors larger than 20 cannot be read by very old versions of @code{tar}, or by some newer versions of @code{tar} running on old machines with small address spaces. With GNU @code{tar}, the blocking factor of an archive is limited only by the maximum record size of the device containing the archive, or by the amount of available virtual memory. X Also, on some systems, not using adequate blocking factors, as sometimes imposed by the device drivers, may yield unexpected diagnostics. For example, this has been reported: X @example Cannot write to /dev/dlt: Invalid argument @end example X @noindent In such cases, it sometimes happen that the @code{tar} bundled by the system is aware of block size idiosyncrasies, while GNU @code{tar} requires an explicit specification for the block size, which it cannot guess. This yields some people to consider GNU @code{tar} is misbehaving, because by comparison, @cite{the bundle @code{tar} works OK}. Adding @w{@kbd{-b 256}}, for example, might resolve the problem. X If you use a non-default blocking factor when you create an archive, you must specify the same blocking factor when you modify that archive. Some archive devices will also require you to specify the blocking factor when reading that archive, however this is not typically the case. Usually, you can use @value{op-list} without specifying a blocking factor---@code{tar} reports a non-default record size and then lists the archive members as it would normally. To extract files from an archive with a non-standard blocking factor (particularly if you're not sure what the blocking factor is), you can usually use the @value{op-read-full-records} option while specifying a blocking factor larger then the blocking factor of the archive (ie. @samp{tar --extract --read-full-records --blocking-factor=300}. @xref{list}, for more information on the @value{op-list} operation. @xref{Reading}, for a more detailed explanation of that option. X @table @kbd @item --blocking-factor=@var{number} @itemx -b @var{number} Specifies the blocking factor of an archive. Can be used with any operation, but is usually not necessary with @value{op-list}. @end table X Device blocking X @table @kbd @item -b @var{blocks} @itemx --blocking-factor=@var{blocks} Set record size to @math{@var{blocks} * 512} bytes. X This option is used to specify a @dfn{blocking factor} for the archive. When reading or writing the archive, @code{tar}, will do reads and writes of the archive in records of @math{@var{block}*512} bytes. This is true even when the archive is compressed. Some devices requires that all write operations be a multiple of a certain size, and so, @code{tar} pads the archive out to the next record boundary. X The default blocking factor is set when @code{tar} is compiled, and is typically 20. Blocking factors larger than 20 cannot be read by very old versions of @code{tar}, or by some newer versions of @code{tar} running on old machines with small address spaces. X With a magnetic tape, larger records give faster throughput and fit more data on a tape (because there are fewer inter-record gaps). If the archive is in a disk file or a pipe, you may want to specify a smaller blocking factor, since a large one will result in a large number of null bytes at the end of the archive. X When writing cartridge or other streaming tapes, a much larger blocking factor (say 126 or more) will greatly increase performance. However, you must specify the same blocking factor when reading or updating the archive. X Apparently, Exabyte drives have a physical block size of 8K bytes. If we choose our blocksize as a multiple of 8k bytes, then the problem seems to dissapper. Id est, we are using block size of 112 right now, and we haven't had the problem since we switched@dots{} X With GNU @code{tar} the blocking factor is limited only by the maximum record size of the device containing the archive, or by the amount of available virtual memory. X However, deblocking or reblocking is virtually avoided in a special case which often occurs in practice, but which requires all the following conditions to be simultaneously true: @itemize @bullet @item the archive is subject to a compression option, @item the archive is not handled through standard input or output, nor redirected nor piped, @item the archive is directly handled to a local disk, instead of any special device, @item @value{op-blocking-factor} is not explicitely specified on the @code{tar} invocation. @end itemize X In previous versions of GNU @code{tar}, the @samp{--compress-block} option (or even older: @samp{--block-compress}) was necessary to reblock compressed archives. It is now a dummy option just asking not to be used, and otherwise ignored. If the output goes directly to a local disk, and not through stdout, then the last write is not extended to a full record size. Otherwise, reblocking occurs. Here are a few other remarks on this topic: X @itemize @bullet X @item @code{gzip} will complain about trailing garbage if asked to uncompress a compressed archive on tape, there is an option to turn the message off, but it breaks the regularity of simply having to use @samp{@var{prog} -d} for decompression. It would be nice if gzip was silently ignoring any number of trailing zeros. I'll ask Jean-loup Gailly, by sending a copy of this message to him. X @item @code{compress} does not show this problem, but as Jean-loup pointed out to Michael, @samp{compress -d} silently adds garbage after the result of decompression, which tar ignores because it already recognized its end-of-file indicator. So this bug may be safely ignored. X @item @samp{gzip -d -q} will be silent about the trailing zeros indeed, but will still return an exit status of 2 which tar reports in turn. @code{tar} might ignore the exit status returned, but I hate doing that, as it weakens the protection @code{tar} offers users against other possible problems at decompression time. If @code{gzip} was silently skipping trailing zeros @emph{and} also avoiding setting the exit status in this innocuous case, that would solve this situation. X @item @code{tar} should become more solid at not stopping to read a pipe at the first null block encountered. This inelegantly breaks the pipe. @code{tar} should rather drain the pipe out before exiting itself. @end itemize X @item -i @itemx --ignore-zeros Ignore blocks of zeros in archive (means EOF). X The @value{op-ignore-zeros} option causes @code{tar} to ignore blocks of zeros in the archive. Normally a block of zeros indicates the end of the archive, but when reading a damaged archive, or one which was created by @code{cat}-ing several archives together, this option allows @code{tar} to read the entire archive. This option is not on by default because many versions of @code{tar} write garbage after the zeroed blocks. X Note that this option causes @code{tar} to read to the end of the archive file, which may sometimes avoid problems when multiple files are stored on a single physical tape. X @item -B @itemx --read-full-records Reblock as we read (for reading 4.2BSD pipes). X If @value{op-read-full-records} is used, @code{tar} will not panic if an attempt to read a record from the archive does not return a full record. Instead, @code{tar} will keep reading until it has obtained a full record. X This option is turned on by default when @code{tar} is reading an archive from standard input, or from a remote machine. This is because on BSD Unix systems, a read of a pipe will return however much happens to be in the pipe, even if it is less than @code{tar} requested. If this option was not used, @code{tar} would fail as soon as it read an incomplete record from the pipe. X This option is also useful with the commands for updating an archive. X @end table X Tape blocking X @FIXME{Appropriate options should be moved here from elsewhere.} X @cindex blocking factor @cindex tape blocking X When handling various tapes or cartridges, you have to take care of selecting a proper blocking, that is, the number of disk blocks you put together as a single tape block on the tape, without intervening tape gaps. A @dfn{tape gap} is a small landing area on the tape with no information on it, used for decelerating the tape to a full stop, and for later regaining the reading or writing speed. When the tape driver starts reading a record, the record has to be read whole without stopping, as a tape gap is needed to stop the tape motion without loosing information. X @cindex Exabyte blocking @cindex DAT blocking Using higher blocking (putting more disk blocks per tape block) will use the tape more efficiently as there will be less tape gaps. But reading such tapes may be more difficult for the system, as more memory will be required to receive at once the whole record. Further, if there is a reading error on a huge record, this is less likely that the system will succeed in recovering the information. So, blocking should not be too low, nor it should be too high. @code{tar} uses by default a blocking of 20 for historical reasons, and it does not really matter when reading or writing to disk. Current tape technology would easily accomodate higher blockings. Sun recommends a blocking of 126 for Exabytes and 96 for DATs. We were told that for some DLT drives, the blocking should be a multiple of 4Kb, preferably 64Kb (@w{@kbd{-b 128}}) or 256 for decent performance. Other manufacturers may use different recommendations for the same tapes. This might also depends of the buffering techniques used inside modern tape controllers. Some imposes a minimum blocking, or a maximum blocking. Others request blocking to be some exponent of two. X So, there is no fixed rule for blocking. But blocking at read time should ideally be the same as blocking used at write time. At one place I know, with a wide variety of equipment, they found it best to use a blocking of 32 to guarantee that their tapes are fully interchangeable. X I was also told that, for recycled tapes, prior erasure (by the same drive unit that will be used to create the archives) sometimes lowers the error rates observed at rewriting time. X I might also use @samp{--number-blocks} instead of @samp{--block-number}, so @samp{--block} will then expand to @samp{--blocking-factor} unambiguously. X @node Many, Using Multiple Tapes, Blocking, Media @section Many Archives on One Tape X @FIXME{Appropriate options should be moved here from elsewhere.} X @findex ntape @r{device} Most tape devices have two entries in the @file{/dev} directory, or entries that come in pairs, which differ only in the minor number for this device. Let's take for example @file{/dev/tape}, which often points to the only or usual tape device of a given system. There might be a corresponding @file{/dev/nrtape} or @file{/dev/ntape}. The simpler name is the @emph{rewinding} version of the device, while the name having @samp{nr} in it is the @emph{no rewinding} version of the same device. X A rewinding tape device will bring back the tape to its beginning point automatically when this device is opened or closed. Since @code{tar} opens the archive file before using it and closes it afterwards, this means that a simple: X @example $ @kbd{tar cf /dev/tape @var{directory}} @end example X @noindent will reposition the tape to its beginning both prior and after saving @var{directory} contents to it, thus erasing prior tape contents and making it so that any subsequent write operation will destroy what has just been saved. X @cindex tape positioning So, a rewinding device is normally meant to hold one and only one file. If you want to put more than one @code{tar} archive on a given tape, you will need to avoid using the rewinding version of the tape device. You will also have to pay special attention to tape positioning. Errors in positionning may overwrite the valuable data already on your tape. Many people, burnt by past experiences, will only use rewinding devices and limit themselves to one file per tape, precisely to avoid the risk of such errors. Be fully aware that writing at the wrong position on a tape loses all information past this point and most probably until the end of the tape, and this destroyed information @emph{cannot} be recovered. X To save @var{directory-1} as a first archive at the beginning of a tape, and leave that tape ready for a second archive, you should use: X @example $ @kbd{mt -f /dev/nrtape rewind} $ @kbd{tar cf /dev/nrtape @var{directory-1}} @end example X @cindex tape marks @dfn{Tape marks} are special magnetic patterns written on the tape media, which are later recognizable by the reading hardware. These marks are used after each file, when there are many on a single tape. An empty file (that is to say, two tape marks in a row) signal the logical end of the tape, after which no file exist. Usually, non-rewinding tape device drivers will react to the close request issued by @code{tar} by first writing two tape marks after your archive, and by backspacing over one of these. So, if you remove the tape at that time from the tape drive, it is properly terminated. But if you write another file at the current position, the second tape mark will be erased by the new information, leaving only one tape mark between files. X So, you may now save @var{directory-2} as a second archive after the first on the same tape by issuing the command: X @example $ @kbd{tar cf /dev/nrtape @var{directory-2}} @end example X @noindent and so on for all the archives you want to put on the same tape. X Another usual case is that you do not write all the archives the same day, and you need to remove and store the tape between two archive sessions. In general, you must remember how many files are already saved on your tape. Suppose your tape already has 16 files on it, and that you are ready to write the 17th. You have to take care of skipping the first 16 tape marks before saving @var{directory-17}, say, by using these commands: X @example $ @kbd{mt -f /dev/nrtape rewind} $ @kbd{mt -f /dev/nrtape fsf 16} $ @kbd{tar cf /dev/nrtape @var{directory-17}} @end example X In all the previous examples, we put aside blocking considerations, but you should do the proper things for that as well. @xref{Blocking}. X @menu * Tape Positioning:: Tape Positions and Tape Marks * mt:: The @code{mt} Utility @end menu X @node Tape Positioning, mt, Many, Many @subsection Tape Positions and Tape Marks @UNREVISED X Just as archives can store more than one file from the file system, tapes can store more than one archive file. To keep track of where archive files (or any other type of file stored on tape) begin and end, tape archive devices write magnetic @dfn{tape marks} on the archive media. Tape drives write one tape mark between files, two at the end of all the file entries. X If you think of data as a series of records "rrrr"'s, and tape marks as "*"'s, a tape might look like the following: X @example rrrr*rrrrrr*rrrrr*rr*rrrrr**------------------------- @end example X Tape devices read and write tapes using a read/write @dfn{tape head}---a physical part of the device which can only access one point on the tape at a time. When you use @code{tar} to read or write archive data from a tape device, the device will begin reading or writing from wherever on the tape the tape head happens to be, regardless of which archive or what part of the archive the tape head is on. Before writing an archive, you should make sure that no data on the tape will be overwritten (unless it is no longer needed). Before reading an archive, you should make sure the tape head is at the beginning of the archive you want to read. (The @code{restore} script will find the archive automatically. @FIXME{There is no such restore script!}. @FIXME-xref{Scripted Restoration}). @xref{mt}, for an explanation of the tape moving utility. X If you want to add new archive file entries to a tape, you should advance the tape to the end of the existing file entries, backspace over the last tape mark, and write the new archive file. If you were to add two archives to the example above, the tape might look like the following: X @example rrrr*rrrrrr*rrrrr*rr*rrrrr*rrr*rrrr**---------------- @end example X @node mt, , Tape Positioning, Many @subsection The @code{mt} Utility @UNREVISED X @FIXME{Is it true that this only works on non-block devices? should explain the difference, (fixed or variable).} @value{xref-blocking-factor}. X You can use the @code{mt} utility to advance or rewind a tape past a specified number of archive files on the tape. This will allow you to move to the beginning of an archive before extracting or reading it, or to the end of all the archives before writing a new one. @FIXME{Why isn't there an "advance 'til you find two tape marks together"?} X The syntax of the @code{mt} command is: X @example @kbd{mt [-f @var{tapename}] @var{operation} [@var{number}]} @end example X where @var{tapename} is the name of the tape device, @var{number} is the number of times an operation is performed (with a default of one), and @var{operation} is one of the following: X @FIXME{is there any use for record operations?} X @table @kbd @item eof @itemx weof Writes @var{number} tape marks at the current position on the tape. X @item fsf Moves tape position forward @var{number} files. X @item bsf Moves tape position back @var{number} files. X @item rewind Rewinds the tape. (Ignores @var{number}). X @item offline @itemx rewoff1 Rewinds the tape and takes the tape device off-line. (Ignores @var{number}). X @item status Prints status information about the tape unit. X @end table X @FIXME{Is there a better way to frob the spacing on the list?} X If you don't specify a @var{tapename}, @code{mt} uses the environment variable TAPE; if TAPE does not exist, @code{mt} uses the device @file{/dev/rmt12}. X @code{mt} returns a 0 exit status when the operation(s) were successful, 1 if the command was unrecognized, and 2 if an operation failed. X @FIXME{New node on how to find an archive?} X If you use @value{op-extract} with the @value{op-label} option specified, @code{tar} will read an archive label (the tape head has to be positioned on it) and print an error if the archive label doesn't match the @var{archive-name} specified. @var{archive-name} can be any regular expression. If the labels match, @code{tar} extracts the archive. @value{xref-label}. @FIXME-xref{Matching Format Parameters}. @FIXME{fix cross references} @samp{tar --list --label} will cause @code{tar} to print the label. X @FIXME{Program to list all the labels on a tape?} X @node Using Multiple Tapes, label, Many, Media @section Using Multiple Tapes @UNREVISED X Often you might want to write a large archive, one larger than will fit on the actual tape you are using. In such a case, you can run multiple @code{tar} commands, but this can be inconvenient, particularly if you are using options like @value{op-exclude} or dumping entire filesystems. Therefore, @code{tar} supports multiple tapes automatically. X Use @value{op-multi-volume} on the command line, and then @code{tar} will, when it reaches the end of the tape, prompt for another tape, and continue the archive. Each tape will have an independent archive, and can be read without needing the other. (As an exception to this, the file that @code{tar} was archiving when it ran out of tape will usually be split between the two archives; in this case you need to extract from the first archive, using @value{op-multi-volume}, and then put in the second tape when prompted, so @code{tar} can restore both halves of the file.) X GNU @code{tar} multi-volume archives do not use a truly portable format. You need GNU @code{tar} at both end to process them properly. X When prompting for a new tape, @code{tar} accepts any of the following responses: X @table @kbd @item ? Request @code{tar} to explain possible responses @item q Request @code{tar} to exit immediately. @item n @var{file name} Request @code{tar} to write the next volume on the file @var{file name}. @item ! Request @code{tar} to run a subshell. @item y Request @code{tar} to begin writing the next volume. @end table X (You should only type @samp{y} after you have changed the tape; otherwise @code{tar} will write over the volume it just finished.) X If you want more elaborate behavior than this, give @code{tar} the @value{op-info-script} option. The file @var{script-name} is expected to be a program (or shell script) to be run instead of the normal prompting procedure. When the program finishes, @code{tar} will immediately begin writing the next volume. The behavior of the @samp{n} response to the normal tape-change prompt is not available if you use @value{op-info-script}. X The method @code{tar} uses to detect end of tape is not perfect, and fails on some operating systems or on some devices. You can use the @value{op-tape-length} option if @code{tar} can't detect the end of the tape itself. This option selects @value{op-multi-volume} automatically. The @var{size} argument should then be the usable size of the tape. But for many devices, and floppy disks in particular, this option is never required for real, as far as we know. X The volume number used by @code{tar} in its tape-change prompt can be changed; if you give the @value{op-volno-file} option, then @var{file-of-number} should be an unexisting file to be created, or else, a file already containing a decimal number. That number will be used as the volume number of the first volume written. When @code{tar} is finished, it will rewrite the file with the now-current volume number. (This does not change the volume number written on a tape label, as per @value{ref-label}, it @emph{only} affects the number used in the prompt.) X If you want @code{tar} to cycle through a series of tape drives, then you can use the @samp{n} response to the tape-change prompt. This is error prone, however, and doesn't work at all with @value{op-info-script}. Therefore, if you give @code{tar} multiple @value{op-file} options, then the specified files will be used, in sequence, as the successive volumes of the archive. Only when the first one in the sequence needs to be used again will @code{tar} prompt for a tape change (or run the info script). X Multi-volume archives X With @value{op-multi-volume}, @code{tar} will not abort when it cannot read or write any more data. Instead, it will ask you to prepare a new volume. If the archive is on a magnetic tape, you should change tapes now; if the archive is on a floppy disk, you should change disks, etc. X Each volume of a multi-volume archive is an independent @code{tar} archive, complete in itself. For example, you can list or extract any volume alone; just don't specify @value{op-multi-volume}. However, if one file in the archive is split across volumes, the only way to extract it successfully is with a multi-volume extract command @samp{--extract --multi-volume} (@samp{-xM}) starting on or before the volume where the file begins. X For example, let's presume someone has two tape drives on a system named @file{/dev/tape0} and @file{/dev/tape1}. For having GNU @code{tar} to switch to the second drive when it needs to write the second tape, and then back to the first tape, etc., just do either of: X @smallexample $ @kbd{tar --create --multi-volume --file=/dev/tape0 --file=/dev/tape1 @var{files}} $ @kbd{tar cMff /dev/tape0 /dev/tape1 @var{files}} @end smallexample X @menu * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files @end menu X @node Multi-Volume Archives, Tape Files, Using Multiple Tapes, Using Multiple Tapes @subsection Archives Longer than One Tape or Disk @cindex Multi-volume archives @UNREVISED X To create an archive that is larger than will fit on a single unit of the media, use the @value{op-multi-volume} option in conjunction with the @value{op-create} option (@pxref{create}). A @dfn{multi-volume} archive can be manipulated like any other archive (provided the @value{op-multi-volume} option is specified), but is stored on more than one tape or disk. X When you specify @value{op-multi-volume}, @code{tar} does not report an error when it comes to the end of an archive volume (when reading), or the end of the media (when writing). Instead, it prompts you to load a new storage volume. If the archive is on a magnetic tape, you should change tapes when you see the prompt; if the archive is on a floppy disk, you should change disks; etc. X You can read each individual volume of a multi-volume archive as if it were an archive by itself. For example, to list the contents of one volume, use @value{op-list}, without @value{op-multi-volume} specified. To extract an archive member from one volume (assuming it is described that volume), use @value{op-extract}, again without @value{op-multi-volume}. X If an archive member is split across volumes (ie. its entry begins on one volume of the media and ends on another), you need to specify @value{op-multi-volume} to extract it successfully. In this case, you should load the volume where the archive member starts, and use @samp{tar --extract --multi-volume}---@code{tar} will prompt for later volumes as it needs them. @xref{extracting archives}, for more information about extracting archives. X @value{op-info-script} is like @value{op-multi-volume}, except that @code{tar} does not prompt you directly to change media volumes when a volume is full---instead, @code{tar} runs commands you have stored in @var{script-name}. For example, this option can be used to eject cassettes, or to broadcast messages such as @samp{Someone please come change my tape} when performing unattended backups. When @var{script-name} is done, @code{tar} will assume that the media has been changed. X Multi-volume archives can be modified like any other archive. To add files to a multi-volume archive, you need to only mount the last volume of the archive media (and new volumes, if needed). For all other operations, you need to use the entire archive. X If a multi-volume archive was labeled using @value{op-label} (@value{pxref-label}) when it was created, @code{tar} will not automatically label volumes which are added later. To label subsequent volumes, specify @value{op-label} again in conjunction with the @value{op-append}, @value{op-update} or @value{op-concatenate} operation. X @cindex Labelling multi-volume archives @FIXME{example} X @FIXME{There should be a sample program here, including an exit before end. Is the exit status even checked in tar? :-(} X @table @kbd @item --multi-volume @itemx -M Creates a multi-volume archive, when used in conjunction with @value{op-create}. To perform any other operation on a multi-volume archive, specify @value{op-multi-volume} in conjunction with that operation. X @item --info-script=@var{program-file} @itemx -F @var{program-file} Creates a multi-volume archive via a script. Used in conjunction with @value{op-create}. @end table X Beware that there is @emph{no} real standard about the proper way, for a @code{tar} archive, to span volume boundaries. If you have a multi-volume created by some vendor's @code{tar}, there is almost no chance you could read all the volumes with GNU @code{tar}. The converse is also true: you may not expect multi-volume archives created by GNU @code{tar} to be fully recovered by vendor's @code{tar}. Since there is little chance that, in mixed system configurations, some vendor's @code{tar} will work on another vendor's machine, and there is a great chance that GNU @code{tar} will work on most of them, your best bet is to install GNU @code{tar} on all machines between which you know exchange of files is possible. X @node Tape Files, , Multi-Volume Archives, Using Multiple Tapes @subsection Tape Files @UNREVISED X To give the archive a name which will be recorded in it, use the @value{op-label} option. This will write a special block identifying @var{volume-label} as the name of the archive to the front of the archive which will be displayed when the archive is listed with @value{op-list}. If you are creating a multi-volume archive with @value{op-multi-volume} (@FIXME-pxref{Using Multiple Tapes}), then the volume label will have @samp{Volume @var{nnn}} appended to the name you give, where @var{nnn} is the number of the volume of the archive. (If you use the @value{op-label} option when reading an archive, it checks to make sure the label on the tape matches the one you give. @value{xref-label}. X When @code{tar} writes an archive to tape, it creates a single tape file. If multiple archives are written to the same tape, one after the other, they each get written as separate tape files. When extracting, it is necessary to position the tape at the right place before running @code{tar}. To do this, use the @code{mt} command. For more information on the @code{mt} command and on the organization of tapes into a sequence of tape files, see @ref{mt}. X People seem to often do: X @example @kbd{--label="@var{some-prefix} `date +@var{some-format}`"} @end example X or such, for pushing a common date in all volumes or an archive set. X @node label, verify, Using Multiple Tapes, Media @section Including a Label in the Archive @cindex Labeling an archive @cindex Labels on the archive media @UNREVISED X @table @kbd @item -V @var{name} @itemx --label=@var{name} Create archive with volume name @var{name}. @end table X This option causes @code{tar} to write out a @dfn{volume header} at the beginning of the archive. If @value{op-multi-volume} is used, each volume of the archive will have a volume header of @samp{@var{name} Volume @var{n}}, where @var{n} is 1 for the first volume, 2 for the next, and so on. X @FIXME{Should the arg to --label be a quoted string?? No.} X To avoid problems caused by misplaced paper labels on the archive media, you can include a @dfn{label} entry---an archive member which contains the name of the archive---in the archive itself. Use the @value{op-label} option in conjunction with the @value{op-create} operation to include a label entry in the archive as it is being created. X If you create an archive using both @value{op-label} and @value{op-multi-volume}, each volume of the archive will have an archive label of the form @samp{@var{archive-label} Volume @var{n}}, where @var{n} is 1 for the first volume, 2 for the next, and so on. @FIXME-xref{Multi-Volume Archives}, for information on creating multiple volume archives. X If you list or extract an archive using @value{op-label}, @code{tar} will print an error if the archive label doesn't match the @var{archive-label} specified, and will then not list nor extract the archive. In those cases, @var{archive-label} argument is interpreted as a globbing-style pattern which must match the actual magnetic volume label. @xref{exclude}, for a precise description of how match is attempted@footnote{Previous versions of @code{tar} used full regular expression matching, or before that, only exact string matching, instead of wildcard matchers. We decided for the sake of simplicity to use a uniform matching device through @code{tar}.}. If the switch @value{op-multi-volume} is being used, the volume label matcher will also suffix @var{archive-label} by @w{@samp{ Volume [1-9]*}} if the initial match fails, before giving up. Since the volume numbering is automatically added in labels at creation time, it sounded logical to equally help the user taking care of it when the archive is being read. X The @value{op-label} was once called @samp{--volume}, but is not available under that name anymore. X To find out an archive's label entry (or to find out if an archive has a label at all), use @samp{tar --list --verbose}. @code{tar} will print the label first, and then print archive member information, as in the example below: X @example $ @kbd{tar --verbose --list --file=iamanarchive} V--------- 0 0 0 1992-03-07 12:01 iamalabel--Volume Header-- -rw-rw-rw- ringo user 40 1990-05-21 13:30 iamafilename @end example X @table @kbd @item --label=@var{archive-label} @itemx -V @var{archive-label} Includes an @dfn{archive-label} at the beginning of the archive when the archive is being created, when used in conjunction with the @value{op-create} option. Checks to make sure the archive label matches the one specified (when used in conjunction with the @value{op-extract} option. @end table X To get a common information on all tapes of a series, use the @value{op-label} option. For having this information different in each series created through a single script used on a regular basis, just manage to get some date string as part of the label. For example: X @example $ @kbd{tar cfMV /dev/tape "Daily backup for `date +%Y-%m-%d`"} $ @kbd{tar --create --file=/dev/tape --multi-volume \ X --volume="Daily backup for `date +%Y-%m-%d`"} @end example X Also note that each label has its own date and time, which corresponds to when GNU @code{tar} initially attempted to write it, often soon after the operator launches @code{tar} or types the carriage return telling that the next tape is ready. Comparing date labels does give an idea of tape throughput only if the delays for rewinding tapes and the operator switching them were negligible, which is ususally not the case. X @FIXME{was --volume} X @node verify, Write Protection, label, Media @section Verifying Data as It is Stored @cindex Verifying a write operation @cindex Double-checking a write operation X @table @kbd @item -W @itemx --verify Attempt to verify the archive after writing. @end table X This option causes @code{tar} to verify the archive after writing it. Each volume is checked after it is written, and any discrepancies are recorded on the standard error output. X Verification requires that the archive be on a back-space-able medium. This means pipes, some cartridge tape drives, and some other devices cannot be verified. X You can insure the accuracy of an archive by comparing files in the system with archive members. @code{tar} can compare an archive to the file system as the archive is being written, to verify a write operation, or can compare a previously written archive, to insure that it is up to date. X To check for discrepancies in an archive immediately after it is written, use the @value{op-verify} option in conjunction with the @value{op-create} operation. When this option is specified, @code{tar} checks archive members against their counterparts in the file system, and reports discrepancies on the standard error. In multi-volume archives, each volume is verified after it is written, before the next volume is written. X To verify an archive, you must be able to read it from before the end of the last written entry. This option is useful for detecting data errors on some tapes. Archives written to pipes, some cartridge tape drives, and some other devices cannot be verified. X One can explicitely compare an already made archive with the file system by using the @value{op-compare} option, instead of using the more automatic @value{op-verify} option. @value{xref-compare}. X Note that these two options have a slightly different intent. The @value{op-compare} option how identical are the logical contents of some archive with what is on your disks, while the @value{op-verify} option is really for checking if the physical contents agree and if the recording media itself is of dependable quality. So, for the @value{op-verify} operation, @code{tar} tries to defeat all in-memory cache pertaining to the archive, while it lets the speed optimization undisturbed for the @value{op-compare} option. If you nevertheless use @value{op-compare} for media verification, you may have to defeat the in-memory cache yourself, maybe by opening and reclosing the door latch of your recording unit, forcing some doubt in your operating system about the fact this is really the same volume as the one just written or read. X The @value{op-verify} option would not be necessary if drivers were indeed able to detect dependably all write failures. This sometimes require many magnetic heads, some able to read after the writes occurred. One would not say that drivers unable to detect all cases are necessarily flawed, as long as programming is concerned. X @node Write Protection, , verify, Media @section Write Protection X Almost all tapes and diskettes, and in a few rare cases, even disks can be @dfn{write protected}, to protect data on them from being changed. Once an archive is written, you should write protect the media to prevent the archive from being accidently overwritten or deleted. (This will protect the archive from being changed with a tape or floppy drive---it will not protect it from magnet fields or other physical hazards). X The write protection device itself is usually an integral part of the physical media, and can be a two position (write enabled/write disabled) switch, a notch which can be popped out or covered, a ring which can be removed from the center of a tape reel, or some other changeable feature. X @node Index, , Media, Top @unnumbered Index X @printindex cp X @summarycontents @contents @bye X @c Local variables: @c texinfo-column-for-description: 32 @c End: SHAR_EOF $shar_touch -am 0616040499 'tar-1.13/doc/tar.texi' && chmod 0444 'tar-1.13/doc/tar.texi' || $echo 'restore of' 'tar-1.13/doc/tar.texi' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.texi:' 'MD5 check failed' 07046ad4368fde5a8de8b3550b6c8e3e tar-1.13/doc/tar.texi SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.texi'`" test 354435 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.texi:' 'original size' '354435,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/convtexi.pl ============== if test -f 'tar-1.13/doc/convtexi.pl' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/convtexi.pl' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/convtexi.pl' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/convtexi.pl M(R$O=7-R+VQO8V%L+V)I;B]P97)L("TM"0D)"0DC("TJ+5!E2!A(%1E>&EN9F\@9FEL92P@6]U(&-A;B!R961I2!I=`HC('5N9&5R('1H92!T97)MUQ`7$!C?2`D,5QN(CL*"0DD7R`](#P^.PH)("`@('T* M"2`@("!PPH)("`@ M("1D96QA>2`N/2`B7$!F;W)M871<;B(["@D@("`@)&1E;&%Y("X](")<0'-T M3L*"21D96QA>2`] M("R0Q?2`]("0R.PH) M)%\@/2`\/CL*("`@('T*("`@(&5LPH)=VAI;&4@*"]<0'9A;'5E M>RA;7EQ]72HI?2\I"@E["@D@("`@:68@*&1E9FEN960@)'-E='LD,7TI"@D@ M("`@>PH)"21?(#T@(B1@)'-E='LD,7TD)R(["@D@("`@?0H)("`@(&5LSPO54Y$149)3D5$/GTD)R(["@D@("`@?0H)?0H)=VAI;&4@*"]<0$9) M6$U%+3\H6V$M>ETJ*5Q[+RD*"7L*"2`@("`D=&%G(#T@)#$@97$@)R<@/R`G M9FEX;64G(#H@)#$["@D@("`@)'1A9R`]?B!Y+V$M>B]!+5HO.PH)("`@('!R M:6YT("(D8%Q`SPD=&%G/GTB.PH)("`@("1?(#T@)"<["@D@("`@ M)&QE=F5L(#T@,3L*"2`@("!W:&EL92`H)&QE=F5L(#X@,"D*"2`@("!["@D) M:68@*"\H6WM]72DO*0H)"7L*"0D@("`@:68@*"0Q(&5Q("=[)RD*"0D@("`@ M>PH)"0DD;&5V96PK*SL*"0D)<')I;G0@(B1@7'LB.PH)"0DD7R`]("0G.PH) M"2`@("!]"@D)("`@(&5LSPO)'1A9SY](CL*"0D))%\@/2`D)SL*"0D@("`@?0H)"7T* M"0EE;'-E"@D)>PH)"2`@("!P&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/convtexi.pl:' 'MD5 check failed' 5d1df882703a94a9c2c9d0aa010d7a78 tar-1.13/doc/convtexi.pl SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/convtexi.pl'`" test 2652 -eq "$shar_count" || $echo 'tar-1.13/doc/convtexi.pl:' 'original size' '2652,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/getdate.texi ============== if test -f 'tar-1.13/doc/getdate.texi' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/getdate.texi' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/getdate.texi' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/getdate.texi' && @node Date input formats @chapter Date input formats X @cindex date input formats @findex getdate X First, a quote: X @quotation Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some tyrannical god contrived to enslave our minds to time, to make it all but impossible for us to escape subjection to sodden routines and unpleasant surprises, he could hardly have done better than handing down our present system. It is like a set of trapezoidal building blocks, with no vertical or horizontal surfaces, like a language in which the simplest thought demands ornate constructions, useless particles and lengthy circumlocutions. Unlike the more successful patterns of language and science, which enable us to face experience boldly or at least level-headedly, our system of temporal calculation silently and persistently encourages our terror of time. X @dots{} It is as though architects had to measure length in feet, width in meters and height in ells; as though basic instruction manuals demanded a knowledge of five different languages. It is no wonder then that we often look into our own immediate past or future, last Tuesday or a week from Sunday, with feelings of helpless confusion. @dots{} X --- Robert Grudin, @cite{Time and the Art of Living}. @end quotation X This section describes the textual date representations that GNU programs accept. These are the strings you, as a user, can supply as arguments to the various programs. The C interface (via the @code{getdate} function) is not described here. X @cindex beginning of time, for Unix @cindex epoch, for Unix Although the date syntax here can represent any possible time since zero A.D., computer integers are not big enough for such a (comparatively) long time. The earliest date semantically allowed on Unix systems is midnight, 1 January 1970 UCT. X @menu * General date syntax:: Common rules. * Calendar date item:: 19 Dec 1994. * Time of day item:: 9:20pm. * Time zone item:: EST, DST, BST, UTC, ... * Day of week item:: Monday and others. * Relative item in date strings:: next tuesday, 2 years ago. * Pure numbers in date strings:: 19931219, 1440. * Authors of getdate:: Bellovin, Salz, Berets, et al. @end menu X X @node General date syntax @section General date syntax X @cindex general date syntax X @cindex items in date strings A @dfn{date} is a string, possibly empty, containing many items separated by whitespace. The whitespace may be omitted when no ambiguity arises. The empty string means the beginning of today (i.e., midnight). Order of the items is immaterial. A date string may contain many flavors of items: X @itemize @bullet @item calendar date items @item time of the day items @item time zone items @item day of the week items @item relative items @item pure numbers. @end itemize X @noindent We describe each of these item types in turn, below. X @cindex numbers, written-out @cindex ordinal numbers @findex first @r{in date strings} @findex next @r{in date strings} @findex last @r{in date strings} A few numbers may be written out in words in most contexts. This is most useful for specifying day of the week items or relative items (see below). Here is the list: @samp{first} for 1, @samp{next} for 2, @samp{third} for 3, @samp{fourth} for 4, @samp{fifth} for 5, @samp{sixth} for 6, @samp{seventh} for 7, @samp{eighth} for 8, @samp{ninth} for 9, @samp{tenth} for 10, @samp{eleventh} for 11 and @samp{twelfth} for 12. Also, @samp{last} means exactly @math{-1}. X @cindex months, written-out When a month is written this way, it is still considered to be written numerically, instead of being ``spelled in full''; this changes the allowed strings. X @cindex case, ignored in dates @cindex comments, in dates Alphabetic case is completely ignored in dates. Comments may be introduced between round parentheses, as long as included parentheses are properly nested. Hyphens not followed by a digit are currently ignored. Leading zeros on numbers are ignored. X X @node Calendar date item @section Calendar date item X @cindex calendar date item X A @dfn{calendar date item} specifies a day of the year. It is specified differently, depending on whether the month is specified numerically or literally. All these strings specify the same calendar date: X @example 1970-09-17 # ISO 8601. 70-9-17 # This century assumed by default. 70-09-17 # Leading zeros are ignored. 9/17/72 # Common U.S. writing. 24 September 1972 24 Sept 72 # September has a special abbreviation. 24 Sep 72 # Three-letter abbreviations always allowed. Sep 24, 1972 24-sep-72 24sep72 @end example X The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: X @example 9/17 sep 17 @end example X Here are the rules. X @cindex ISO 8601 date format @cindex date format, ISO 8601 For numeric months, the ISO 8601 format @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is any positive number, @var{month} is a number between 01 and 12, and @var{day} is a number between 01 and 31. A leading zero must be present if a number is less than ten. If @var{year} is less than 100, then 1900 is added to it to force a date in this century. The construct @samp{@var{month}/@var{day}/@var{year}}, popular in the United States, is accepted. Also @samp{@var{month}/@var{day}}, omitting the year. X @cindex month names in date strings @cindex abbreviations for months Literal months may be spelled out in full: @samp{January}, @samp{February}, @samp{March}, @samp{April}, @samp{May}, @samp{June}, @samp{July}, @samp{August}, @samp{September}, @samp{October}, @samp{November} or @samp{December}. Literal months may be abbreviated to their first three letters, possibly followed by an abbreviating dot. It is also permitted to write @samp{Sept} instead of @samp{September}. X When months are written literally, the calendar date may be given as any of the following: X @example @var{day} @var{month} @var{year} @var{day} @var{month} @var{month} @var{day} @var{year} @var{day}-@var{month}-@var{year} @end example X Or, omitting the year: X @example @var{month} @var{day} @end example X X @node Time of day item @section Time of day item X @cindex time of day item X A @dfn{time of day item} in date strings specifies the time on a given day. Here are some examples, all of which represent the same time: X @example 20:02:0 20:02 8:02pm 20:02-0500 # In EST (Eastern U.S. Standard Time). @end example X More generally, the time of the day may be given as @samp{@var{hour}:@var{minute}:@var{second}}, where @var{hour} is a number between 0 and 23, @var{minute} is a number between 0 and 59, and @var{second} is a number between 0 and 59. Alternatively, @samp{:@var{second}} can be omitted, in which case it is taken to be zero. X @findex am @r{in date strings} @findex pm @r{in date strings} @findex midnight @r{in date strings} @findex noon @r{in date strings} If the time is followed by @samp{am} or @samp{pm} (or @samp{a.m.} or @samp{p.m.}), @var{hour} is restricted to run from 1 to 12, and @samp{:@var{minute}} may be omitted (taken to be zero). @samp{am} indicates the first half of the day, @samp{pm} indicates the second half of the day. In this notation, 12 is the predecessor of 1: midnight is @samp{12am} while noon is @samp{12pm}. X @cindex time zone correction @cindex minutes, time zone correction by The time may alternatively be followed by a time zone correction, expressed as @samp{@var{s}@var{hh}@var{mm}}, where @var{s} is @samp{+} or @samp{-}, @var{hh} is a number of zone hours and @var{mm} is a number of zone minutes. When a time zone correction is given this way, it forces interpretation of the time relative to Coordinated Universal Time (UTC), overriding any previous specification for the time zone or the local time zone. The @var{minute} part of the time of the day may not be elided when a time zone correction is used. This is the only way to specify a time zone correction by fractional parts of an hour. X Either @samp{am}/@samp{pm} or a time zone correction may be specified, but not both. X X @node Time zone item @section Time zone item X @cindex time zone item X A @dfn{time zone item} specifies an international time zone, indicated by a small set of letters. They are supported for backward compatibility reasons, but they are not recommended because they are ambiguous in practice: for example, the abbreviation @samp{EST} has different meanings in Australia and the United States. Any included period is ignored. Military time zone designations use a single letter. Currently, only integral zone hours may be represented in a time zone item. See the previous section for a finer control over the time zone correction. X Here are many non-daylight-saving-time time zones, indexed by the zone hour value. X @table @asis @item -1200 @samp{Y} for militaries. @item -1100 @samp{X} for militaries. @item -1000 @samp{W} for militaries. @item -0900 @samp{V} for militaries. @item -0800 @samp{PST} for Pacific Standard, and @samp{U} for militaries. @item -0700 @samp{MST} for Mountain Standard, and @samp{T} for militaries. @item -0600 @samp{CST} for Central Standard, and @samp{S} for militaries. @item -0500 @samp{EST} for Eastern Standard, and @samp{R} for militaries. @item -0400 @samp{AST} for Atlantic Standard, and @samp{Q} for militaries. @item -0300 @samp{P} for militaries. @item -0200 @samp{O} for militaries. @item -0100 @samp{N} for militaries. @item +0000 @cindex Greenwich Mean Time @cindex Coordinated Universal Time @cindex Universal Coordinated Time @cindex Universal Time (Coordinated) @samp{GMT} for Greenwich Mean, @samp{UT} for Universal, @samp{UTC} for Coordinated Universal, @samp{WET} for Western European, and @samp{Z} for ISO 8601 and militaries. @item +0100 @samp{A} for militaries, @samp{CET} for Central European, @samp{MET} for Midden Europesche Tijd (Dutch), and @samp{MEZ} for Mittel-Europ@"aische Zeit (German). @item +0200 @samp{B} for militaries, and @samp{EET} for Eastern European. @item +0300 @samp{C} for militaries. @item +0400 @samp{D} for militaries. @item +0500 @samp{E} for militaries. @item +0600 @samp{F} for militaries. @item +0700 @samp{G} for militaries. @item +0800 @samp{H} for militaries. @item +0900 @samp{I} for militaries, and @samp{JST} for Japan Standard. @item +1000 @samp{GST} for Guam Standard, and @samp{K} for militaries. @item +1100 @samp{L} for militaries. @item +1200 @samp{M} for militaries, and @samp{NZST} for New Zealand Standard. @end table X @cindex daylight-saving time Here are many daylight-saving time (DST) time zones, indexed by the zone hour value. Also, by following a non-DST time zone by the string @samp{DST} in a separate word (that is, separated by some whitespace), the corresponding DST time zone may be specified. X @table @asis @item -0700 @samp{PDT} for Pacific Daylight. @item -0600 @samp{MDT} for Mountain Daylight. @item -0500 @samp{CDT} for Central Daylight. @item -0400 @samp{EDT} for Eastern Daylight. @item -0300 @samp{ADT} for Atlantic Daylight. @item +0100 @samp{BST} for British Summer, and @samp{WEST} for Western European Summer. @item +0200 @samp{CEST} for Central European Summer, @samp{MEST} for Midden Europesche S. Tijd (Dutch), and @samp{MESZ} for Mittel-Europ@"aische Sommerzeit (German). @item +1300 @samp{NZDT} for New Zealand Daylight. @end table X X @node Day of week item @section Day of week item X @cindex day of week item X The explicit mention of a day of the week will forward the date (only if necessary) to reach that day of the week in the future. X Days of the week may be spelled out in full: @samp{Sunday}, @samp{Monday}, @samp{Tuesday}, @samp{Wednesday}, @samp{Thursday}, @samp{Friday} or @samp{Saturday}. Days may be abbreviated to their first three letters, optionally followed by a period. The special abbreviations @samp{Tues} for @samp{Tuesday}, @samp{Wednes} for @samp{Wednesday} and @samp{Thur} or @samp{Thurs} for @samp{Thursday} are also allowed. X @findex next @var{day} @findex last @var{day} A number may precede a day of the week item to move forward supplementary weeks. It is best used in expression like @samp{third monday}. In this context, @samp{last @var{day}} or @samp{next @var{day}} is also acceptable; they move one week before or after the day that @var{day} by itself would represent. X A comma following a day of the week item is ignored. X X @node Relative item in date strings @section Relative item in date strings X @cindex relative items in date strings @cindex displacement of dates X @dfn{Relative items} adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples: X @example 1 year 1 year ago 3 years 2 days @end example X @findex year @r{in date strings} @findex month @r{in date strings} @findex fortnight @r{in date strings} @findex week @r{in date strings} @findex day @r{in date strings} @findex hour @r{in date strings} @findex minute @r{in date strings} The unit of time displacement may be selected by the string @samp{year} or @samp{month} for moving by whole years or months. These are fuzzy units, as years and months are not all of equal duration. More precise units are @samp{fortnight} which is worth 14 days, @samp{week} worth 7 days, @samp{day} worth 24 hours, @samp{hour} worth 60 minutes, @samp{minute} or @samp{min} worth 60 seconds, and @samp{second} or @samp{sec} worth one second. An @samp{s} suffix on these units is accepted and ignored. X @findex ago @r{in date strings} The unit of time may be preceded by a multiplier, given as an optionally signed number. Unsigned numbers are taken as positively signed. No number at all implies 1 for a multiplier. Following a relative item by the string @samp{ago} is equivalent to preceding the unit by a multiplicator with value @math{-1}. X @findex day @r{in date strings} @findex tomorrow @r{in date strings} @findex yesterday @r{in date strings} The string @samp{tomorrow} is worth one day in the future (equivalent to @samp{day}), the string @samp{yesterday} is worth one day in the past (equivalent to @samp{day ago}). X @findex now @r{in date strings} @findex today @r{in date strings} @findex this @r{in date strings} The strings @samp{now} or @samp{today} are relative items corresponding to zero-valued time displacement, these strings come from the fact a zero-valued time displacement represents the current time when not otherwise change by previous items. They may be used to stress other items, like in @samp{12:00 today}. The string @samp{this} also has the meaning of a zero-valued time displacement, but is preferred in date strings like @samp{this thursday}. X When a relative item makes the resulting date to cross the boundary between DST and non-DST (or vice-versa), the hour is adjusted according to the local time. X X @node Pure numbers in date strings @section Pure numbers in date strings X @cindex pure numbers in date strings X The precise intepretation of a pure decimal number is dependent of the context in the date string. X If the decimal number is of the form @var{yyyy}@var{mm}@var{dd} and no other calendar date item (@pxref{Calendar date item}) appears before it in the date string, then @var{yyyy} is read as the year, @var{mm} as the month number and @var{dd} as the day of the month, for the specified calendar date. X If the decimal number is of the form @var{hh}@var{mm} and no other time of day item appears before it in the date string, then @var{hh} is read as the hour of the day and @var{mm} as the minute of the hour, for the specified time of the day. @var{mm} can also be omitted. X If both a calendar date and a time of day appear to the left of a number in the date string, but no relative item, then the number overrides the year. X X @node Authors of getdate @section Authors of @code{getdate} X @cindex authors of @code{getdate} X @cindex Bellovin, Steven M. @cindex Salz, Rich @cindex Berets, Jim @cindex MacKenzie, David @cindex Meyering, Jim @code{getdate} was originally implemented by Steven M. Bellovin (@email{smb@@research.att.com}) while at the University of North Carolina at Chapel Hill. The code was later tweaked by a couple of people on Usenet, then completely overhauled by Rich $alz (@email{rsalz@@bbn.com}) and Jim Berets (@email{jberets@@bbn.com}) in August, 1990. Various revisions for the GNU system were made by David MacKenzie, Jim Meyering, and others. X @cindex Pinard, F. @cindex Berry, K. This chapter was originally produced by Fran@,{c}ois Pinard (@email{pinard@@iro.umontreal.ca}) from the @file{getdate.y} source code, and then edited by K.@: Berry (@email{kb@@cs.umb.edu}). SHAR_EOF $shar_touch -am 0325053798 'tar-1.13/doc/getdate.texi' && chmod 0444 'tar-1.13/doc/getdate.texi' || $echo 'restore of' 'tar-1.13/doc/getdate.texi' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/getdate.texi:' 'MD5 check failed' 7a92d668feb81029ddb08149eb23c839 tar-1.13/doc/getdate.texi SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/getdate.texi'`" test 16892 -eq "$shar_count" || $echo 'tar-1.13/doc/getdate.texi:' 'original size' '16892,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/header.texi ============== if test -f 'tar-1.13/doc/header.texi' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/header.texi' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/header.texi' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/header.texi' && /* GNU tar Archive Format description. */ X /* If OLDGNU_COMPATIBILITY is not zero, tar produces archives which, by X default, are readable by older versions of GNU tar. This can be X overriden by using --posix; in this case, POSIXLY_CORRECT in environment X may be set for enforcing stricter conformance. If OLDGNU_COMPATIBILITY X is zero or undefined, tar will eventually produces archives which, by X default, POSIX compatible; then either using --posix or defining X POSIXLY_CORRECT enforces stricter conformance. X X This #define will disappear in a few years. FP, June 1995. */ #define OLDGNU_COMPATIBILITY 1 X /*---------------------------------------------. | `tar' Header Block, from POSIX 1003.1-1990. | `---------------------------------------------*/ X /* POSIX header. */ X struct posix_header @{ /* byte offset */ X char name[100]; /* 0 */ X char mode[8]; /* 100 */ X char uid[8]; /* 108 */ X char gid[8]; /* 116 */ X char size[12]; /* 124 */ X char mtime[12]; /* 136 */ X char chksum[8]; /* 148 */ X char typeflag; /* 156 */ X char linkname[100]; /* 157 */ X char magic[6]; /* 257 */ X char version[2]; /* 263 */ X char uname[32]; /* 265 */ X char gname[32]; /* 297 */ X char devmajor[8]; /* 329 */ X char devminor[8]; /* 337 */ X char prefix[155]; /* 345 */ X /* 500 */ @}; X #define TMAGIC "ustar" /* ustar and a null */ #define TMAGLEN 6 #define TVERSION "00" /* 00 and no null */ #define TVERSLEN 2 X /* Values used in typeflag field. */ #define REGTYPE '0' /* regular file */ #define AREGTYPE '\0' /* regular file */ #define LNKTYPE '1' /* link */ #define SYMTYPE '2' /* reserved */ #define CHRTYPE '3' /* character special */ #define BLKTYPE '4' /* block special */ #define DIRTYPE '5' /* directory */ #define FIFOTYPE '6' /* FIFO special */ #define CONTTYPE '7' /* reserved */ X /* Bits used in the mode field, values in octal. */ #define TSUID 04000 /* set UID on execution */ #define TSGID 02000 /* set GID on execution */ #define TSVTX 01000 /* reserved */ X /* file permissions */ #define TUREAD 00400 /* read by owner */ #define TUWRITE 00200 /* write by owner */ #define TUEXEC 00100 /* execute/search by owner */ #define TGREAD 00040 /* read by group */ #define TGWRITE 00020 /* write by group */ #define TGEXEC 00010 /* execute/search by group */ #define TOREAD 00004 /* read by other */ #define TOWRITE 00002 /* write by other */ #define TOEXEC 00001 /* execute/search by other */ X /*-------------------------------------. | `tar' Header Block, GNU extensions. | `-------------------------------------*/ X /* In GNU tar, SYMTYPE is for to symbolic links, and CONTTYPE is for X contiguous files, so maybe disobeying the `reserved' comment in POSIX X header description. I suspect these were meant to be used this way, and X should not have really been `reserved' in the published standards. */ X /* *BEWARE* *BEWARE* *BEWARE* that the following information is still X boiling, and may change. Even if the OLDGNU format description should be X accurate, the so-called GNU format is not yet fully decided. It is X surely meant to use only extensions allowed by POSIX, but the sketch X below repeats some ugliness from the OLDGNU format, which should rather X go away. Sparse files should be saved in such a way that they do *not* X require two passes at archive creation time. Huge files get some POSIX X fields to overflow, alternate solutions have to be sought for this. */ X /* Descriptor for a single file hole. */ X struct sparse @{ /* byte offset */ X char offset[12]; /* 0 */ X char numbytes[12]; /* 12 */ X /* 24 */ @}; X /* Sparse files are not supported in POSIX ustar format. For sparse files X with a POSIX header, a GNU extra header is provided which holds overall X sparse information and a few sparse descriptors. When an old GNU header X replaces both the POSIX header and the GNU extra header, it holds some X sparse descriptors too. Whether POSIX or not, if more sparse descriptors X are still needed, they are put into as many successive sparse headers as X necessary. The following constants tell how many sparse descriptors fit X in each kind of header able to hold them. */ X #define SPARSES_IN_EXTRA_HEADER 16 #define SPARSES_IN_OLDGNU_HEADER 4 #define SPARSES_IN_SPARSE_HEADER 21 X /* The GNU extra header contains some information GNU tar needs, but not X foreseen in POSIX header format. It is only used after a POSIX header X (and never with old GNU headers), and immediately follows this POSIX X header, when typeflag is a letter rather than a digit, so signaling a GNU X extension. */ X struct extra_header @{ /* byte offset */ X char atime[12]; /* 0 */ X char ctime[12]; /* 12 */ X char offset[12]; /* 24 */ X char realsize[12]; /* 36 */ X char longnames[4]; /* 48 */ X char unused_pad1[68]; /* 52 */ X struct sparse sp[SPARSES_IN_EXTRA_HEADER]; X /* 120 */ X char isextended; /* 504 */ X /* 505 */ @}; X /* Extension header for sparse files, used immediately after the GNU extra X header, and used only if all sparse information cannot fit into that X extra header. There might even be many such extension headers, one after X the other, until all sparse information has been recorded. */ X struct sparse_header @{ /* byte offset */ X struct sparse sp[SPARSES_IN_SPARSE_HEADER]; X /* 0 */ X char isextended; /* 504 */ X /* 505 */ @}; X /* The old GNU format header conflicts with POSIX format in such a way that X POSIX archives may fool old GNU tar's, and POSIX tar's might well be X fooled by old GNU tar archives. An old GNU format header uses the space X used by the prefix field in a POSIX header, and cumulates information X normally found in a GNU extra header. With an old GNU tar header, we X never see any POSIX header nor GNU extra header. Supplementary sparse X headers are allowed, however. */ X struct oldgnu_header @{ /* byte offset */ X char unused_pad1[345]; /* 0 */ X char atime[12]; /* 345 */ X char ctime[12]; /* 357 */ X char offset[12]; /* 369 */ X char longnames[4]; /* 381 */ X char unused_pad2; /* 385 */ X struct sparse sp[SPARSES_IN_OLDGNU_HEADER]; X /* 386 */ X char isextended; /* 482 */ X char realsize[12]; /* 483 */ X /* 495 */ @}; X /* OLDGNU_MAGIC uses both magic and version fields, which are contiguous. X Found in an archive, it indicates an old GNU header format, which will be X hopefully become obsolescent. With OLDGNU_MAGIC, uname and gname are X valid, though the header is not truly POSIX conforming. */ #define OLDGNU_MAGIC "ustar " /* 7 chars and a null */ X /* The standards committee allows only capital A through capital Z for X user-defined expansion. */ X /* This is a dir entry that contains the names of files that were in the X dir at the time the dump was made. */ #define GNUTYPE_DUMPDIR 'D' X /* Identifies the *next* file on the tape as having a long linkname. */ #define GNUTYPE_LONGLINK 'K' X /* Identifies the *next* file on the tape as having a long name. */ #define GNUTYPE_LONGNAME 'L' X /* This is the continuation of a file that began on another volume. */ #define GNUTYPE_MULTIVOL 'M' X /* For storing filenames that do not fit into the main header. */ #define GNUTYPE_NAMES 'N' X /* This is for sparse files. */ #define GNUTYPE_SPARSE 'S' X /* This file is a tape/volume header. Ignore it on extraction. */ #define GNUTYPE_VOLHDR 'V' X /*--------------------------------------. | tar Header Block, overall structure. | `--------------------------------------*/ X /* tar files are made in basic blocks of this size. */ #define BLOCKSIZE 512 X enum archive_format @{ X DEFAULT_FORMAT, /* format to be decided later */ X V7_FORMAT, /* old V7 tar format */ X OLDGNU_FORMAT, /* GNU format as per before tar 1.12 */ X POSIX_FORMAT, /* restricted, pure POSIX format */ X GNU_FORMAT /* POSIX format with GNU extensions */ @}; X union block @{ X char buffer[BLOCKSIZE]; X struct posix_header header; X struct extra_header extra_header; X struct oldgnu_header oldgnu_header; X struct sparse_header sparse_header; @}; X /* End of Format description. */ SHAR_EOF $shar_touch -am 0410004699 'tar-1.13/doc/header.texi' && chmod 0664 'tar-1.13/doc/header.texi' || $echo 'restore of' 'tar-1.13/doc/header.texi' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/header.texi:' 'MD5 check failed' 2ccb80036ede1fc52d5b4f17fc463337 tar-1.13/doc/header.texi SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/header.texi'`" test 9241 -eq "$shar_count" || $echo 'tar-1.13/doc/header.texi:' 'original size' '9241,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info ============== if test -f 'tar-1.13/doc/tar.info' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I6QE'1R86-T(&]P=&EO;G-_,3(P M,#`V"DYO9&4Z(%)E861I;F=_,3(P.3$P"DYO9&4Z(')E860@9G5L;"!R96-O M&-L=61E?S$W-#,V-`I.;V1E.B!7:6QD8V%R9'-_,37\Q.#8S-#D*3F]D93H@86)S;VQU=&5_ M,3@Y,#(W"DYO9&4Z($1A=&4@:6YP=70@9F]R;6%T'\Q.30S.3`*3F]D93H@0V%L96YD87(@9&%T M92!I=&5M?S$Y-3@V,@I.;V1E.B!4:6UE(&]F(&1A>2!I=&5M?S$Y-S@Q,0I. M;V1E.B!4:6UE>F]N92!I=&5M?S$Y.34X,0I.;V1E.B!$87D@;V8@=V5E:R!I M=&5M?S(P,C@V-@I.;V1E.B!296QA=&EV92!I=&5M(&EN(&1A=&4@7\R,#@P,30*3F]D93H@ M4&]R=&%B;&4@3F%M97-_,C`Y,30P"DYO9&4Z(&1EFEP?S(R-#7\S,#(S-S@*3F]D93H@5&%P92!0;W-I=&EO;FEN M9W\S,#8Q-C@*3F]D93H@;71_,S`X,#,Y"DYO9&4Z(%5S:6YG($UU;'1I<&QE M(%1A<&5S?S,P.3@W,PI.;V1E.B!-=6QT:2U6;VQU;64@07)C:&EV97-_,S$T M.38Y"DYO9&4Z(%1A<&4@1FEL97-_,S$Y,#4S"DYO9&4Z(&QA8F5L?S,R,#4R M,PI.;V1E.B!V97)I9GE_,S(T-C`W"DYO9&4Z(%=R:71E(%!R;W1E8W1I;VY_ J,S(W-34V"DYO9&4Z($EN9&5X?S,R.#,W-PH?"D5N9"!486<@5&%B;&4* ` end SHAR_EOF $shar_touch -am 0702170499 'tar-1.13/doc/tar.info' && chmod 0444 'tar-1.13/doc/tar.info' || $echo 'restore of' 'tar-1.13/doc/tar.info' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info:' 'MD5 check failed' c57fe2bab13095ea7da8f064d5edbe93 tar-1.13/doc/tar.info SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info'`" test 5082 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info:' 'original size' '5082,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-1 ============== if test -f 'tar-1.13/doc/tar.info-1' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-1' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-1' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-1 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I'0Z($EN=')O9'5C=&EO M;BP@(%!R978Z("AD:7(I+"`@57`Z("AD:7(I"@HJ($UE;G4Z"@HJ($EN=')O M9'5C=&EO;CHZ"BH@5'5T;W)I86PZ.@HJ('1A"!C;VUP;&EA;F-E.CH**B!!=71H;W)S.CH@("`@("`@("`@("`@("`@ M("`@("!'3E4@8'1A6QI'1R86-T.CH@("`@("`@("`@ M("`@("`@("`@("!(;W<@=&\@17AT&%M<&QE6QE"BH@4VAO6QE"BH@3VQD($]P=&EO;G,Z.B`@("`@("`@("`@("`@ M("`@3VQD($]P=&EO;B!3='EL90HJ($UI>&EN9SHZ("`@("`@("`@("`@("`@ M("`@("`@($UI>&EN9R!/<'1I;VX@4W1Y;&5S"@I!;&P@8'1A3HZ"BH@3W!T:6]N(%-U;6UA'1R86-T(&]P M=&EO;G,Z.@HJ(&)A8VMU<#HZ"BH@07!P;&EC871I;VYS.CH**B!L;V]K:6YG M(&%H96%D.CH*"D%D=F%N8V5D($=.52!@=&%R)R!/<&5R871I;VYS"@HJ($]P M97)A=&EO;G,Z.@HJ(&-U&%M<&QE.CH@("`@("`@($%N($5X86UP;&4@5&5X M="!O9B!@0F%C:W5P+7-P96-S)PHJ(%-C6YT87@Z.B`@("`@("`@ M("`@("`@(%-Y;G1A>"!F;W(@8$)A8VMU<"US<&5C2!O;B!.97<@1FEL97,**B!R96-U6YT87@Z.B`@("`@("`@($-O;6UO;B!R=6QE2!I=&5M.CH@("`@("`@("`@("`Y.C(P<&TN"BH@5&EM97IO;F4@:71E M;3HZ("`@("`@("`@("`@("`@15-4+"!$4U0L($)35"P@54-4+"!!2%-4+"`N M+BX**B!$87D@;V8@=V5E:R!I=&5M.CH@("`@("`@("`@("!-;VYD87D@86YD M(&]T:&5R65AFEP.CH@("`@("`@("`@("`@("`@("`@("`@ M("!#3HZ"BH@5W)I=&4@4')O=&5C=&EO M;CHZ"@I";&]C:VEN9PH**B!&;W)M870@5F%R:6%T:6]N2!!0IO=&AE6]U('=H;R!H87,@=V]R:V5D(&]N($=.50I@=&%R)R!A;F0@:71S(&1O8W5M M96YT871I;VXL(&%N9"!W:&5R92!Y;W4@2!U M"!V87)I86YT(&]F(&$@8F%S:6,@8V]N M8V5P="P@=&AE2!F6EN9R!T:&4@;F%M97,@;V8@=&AE(&9I M;&5S+"!T:&5I71E2!I;F9O2X*"B`@(%1H92!F:6QE2!@;',G M+"!@8V%T)RP@86YD('-O(&9O2P@82`B9FEL92!N86UE(B!I7-T96TL(&%N9"!A(")M M96UB97(*;F%M92(@:7,@=&AE(&YA;64@;V8@86X@87)C:&EV92!M96UB97(@ M=VET:&EN('1H92!A'1R86-T:6YG('1H92!A M&%M<&QE+"!Y;W4@8V%N('5S90I@ M=&%R)R!O;B!P2P@8'1A2!O;@IM86=N971I8R!T87!E+B`@5&AE M(&YA;64@8'1A&%M<&QE+"!T M:&4@1TY5"B`@("`@4')O:F5C="!D:7-T2!K;F]W2!T;R!S=&]R92!S979E2!C2!@=&%R)R!I2!U2!U7-T96TN"@I46]U('1O"B`@("`@=')A;G-P;W)T M(&$@9W)O=7`@;V8@9FEL97,@9G)O;2!O;F4@'0Z('!O2P@8'1A6]U('-E="!T:&4@2!Y;W4@<&AR87-E(&$@8V]M M;6%N9"P@9F]R(&5X86UP;&4L($=.50I@=&%R)R!W:6QL(&YO="!A;&QO=R!T M:&4@8V]M;6%N9"!A;F0@=VEL;"!S:6=N86P@86X@97)R;W(@;65S2!*;VAN($=I;&UO0IM M86YY('!E;W!L92X@(%1H92!'3E4@96YH86YC96UE;G1S('=E2!*87D@1F5N;&%S;VXL('1H96X*2F]Y($ME;F1A;&PL(&%N9"!T:&4@ M=VAO;&4@<&%C:V%G92!H87,@8F5E;B!F=7)T:&5R(&UA:6YT86EN960@8GD* M5&AO;6%S($)U2!T86MI;F<@ M:6YF;W)M871I;VX@9G)O;0IA;&P@=&AE2!E9&ET960*86YD M(')E9&5S:6=N960@=&AE(&)O;VL@=&\@8W)E871E('9E6]U(&9I;F0@<')O8FQE;7,@;W(@:&%V92!S=6=G M97-T:6]N'1R86-T)RX@($EF('EO M=2!A;')E861Y(&MN;W<*:&]W('1O('5S92!S;VUE(&]T:&5R('9E6]U(&UA>2!N;W0@;F5E9"!T;R!R96%D"G1H:7,@ M8VAA<'1E'1R86-T($UE;6)E M2X@($%T('1H92!S86UE('1I;64L('=E('=I;&P@=')Y('1O(&-O=F5R M(&%L;"!T:&4@8F%S:6,@87-P96-T6]U M('-H;W5L9`H@("`@('5N9&5R"UT>7!E(&]P97)A M=&EN9R!S>7-T96US('=O2!S=')U8W1U6]U<@H@("`@(&AO;64@9&ER96-T;W)Y+B`@1F]R(&5X86UP M;&4L(&UY(&AO;64@9&ER96-T;W)Y('!A=&@@:7,*("`@("!@+VAO;64O9G-F M+VUE;&ES2!O9@H@("`@('1H92!D:7)E8W1O&%M<&QE&ES="!O;B`H;W(@8V%N(&)E"B`@("`@=W)I M='1E;B!T;RP@;W(@=V]R:V5D('=I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O M:PIL:6ME.@H*("`@("`D('1A7-E;&8@=7-E M2!O;F4@;W(@;6]R92!I;F1I=FED=6%L(&UE;6)E2!L:7-T('1H92!N86UE2X@($9O&%M<&QE+"!@=&%R("TM;&ES="`M+69I;&4]869I;&5S M+G1A2!P0IA<'!E87(@:6X@=&AE(&%R8VAI=F4@*&EE M+BP@2!F6EN9PIM96UB97(@;F%M97,@=&\@8'1A2X@("I.;W1E(&%B6]U"F%R92!N;W0@6]U(&5X<&5C="!T;R!F M:6YD.R!R96UE;6)E2!@<')A8W1I8V4G+"!I M;@IT:&4@87)C:&EV92!F:6QE(&!M=7-I8RYT87(G+"!T>7!E.@H*("`@("`D M('1A7-E;&8@=7-E2X*"A\*1FEL93H@=&%R+FEN9F\L M("!.;V1E.B!E>'1R86-T+"`@3F5X=#H@9V]I;F<@9G5R=&AE'1R86-T($UE;6)E"3L@>6]U M(&-A;B!E>'1R86-T(&ET(&UU;'1I<&QE('1I;65S(&EF"GEO=2!W86YT(&]R M(&YE960@=&\N"@H@("!5'1R86-T)RP@>6]U(&-A;B!E>'1R M86-T(&%N(&5N=&ER92!A'1R86-T"@I%>'1R86-T:6YG(&%N M($5N=&ER92!!&%M<&QE+`H*("`@("`D M('1A'9F(&-O;&QE8W1I;VXN=&%R"@IP@H@("`@("UR=RUR=RUR=RT@;64@=7-E'0Z(&5X=')A8W0@9&ER+"`@4')E M=CH@97AT'1R86-T"@I%>'1R86-T M:6YG(%-P96-I9FEC($9I;&5S"BTM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2T* M"B`@(%1O(&5X=')A8W0@6]U(&AA9"!M:7-T86ME M;FQY(&1E;&5T960*;VYE(&]F('1H92!F:6QE2P@ M8&)L=65S)RDL('EO=2!C86X@97AT6]U(&1E;&5T960N"@H@("!&:7)S="P@;6%K92!S=7)E('EO M=2!A2X@($YO=RP@9&5L971E('1H92!F M:6QE+"!@8FQU97,G+"!A;F0@;&ES="!T:&4*9FEL97,@:6X@=&AE(&1I2!A9V%I;BX*"B`@(%EO=2!C86X@;F]W(&5X=')A8W0@=&AE(&UE;6)E M'1R86-T("TM9FEL93UC M;VQL96-T:6]N+G1A6]U(&QI'1R86-T960*8&)L=65S)RX@(%EO=2!C86X@8V]N9FER;2!T:&ES(&)Y M(')U;FYI;F<@8'1A6EN M9R!T:&4@97AA8W0@;65M8F5R"FYA;64@:7,@:6UP;W)T86YT+B`@8'1A&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-1:' 'MD5 check failed' 09c80976339cae743e27eaa963cdab33 tar-1.13/doc/tar.info-1 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-1'`" test 49886 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-1:' 'original size' '49886,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-2 ============== if test -f 'tar-1.13/doc/tar.info-2' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-2' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-2' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-2 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I'1R86-T:6YG(&1I'1R86-T:6YG(&]T:&5R(&9I;&5S M+B`@5&AE(&UA:6X@9&EF9F5R96YC92!T;R!B92!A=V%R92!O9B!I'1R86-T960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871E(&]N('-E=F5R86P@:VEN9',@;V8@8V]M<')EFEN9R!T:&4@;W!E&ET+B`@+@H*8"TM:6=N;W)E+69A:6QE9"UR96%D)PH@("`@ M($EN&ET('-U8V-E2!I9B!I="!E M;F-O=6YT97)S(&%N"B`@("`@=6YR96%D86)L92!F:6QE+B`@*DYO=&4@4F5A M9&EN9SHZ+@H*8"TM:6=N;W)E+75M87-K)PH@("`@("A3964@8"TM<')E2!D97-T2!O<&5R871E(&]N(&%R8VAI=F5S('1H870@:&%V92!A(&QA M8F5L(&UA=&-H:6YG('1H90H@("`@('!A='1E6YT87@*("`@("!F;W(@ M=VAA="!015)-25-324].4R!M:6=H="!B92X@("I.;W1E(%!E2!F86UI;&EA7-T96TN"@H@("`@($]F(&-O=7)S92P@4$52 M34E34TE/3E,@;6EG:'0@8F4@<&QA:6YL>2!S<&5C:69I960@87,@86X@;V-T M86P*("`@("!N=6UB97(N("!(;W=E=F5R+"!B>2!U&EB:6QI='DN("!&;W(@97AA;7!L92P@=&AE('9A M;'5E(&!A*W)W)PH@("`@(&%D9',@2P@=VAI;&4@2!O=&AE2!N86UE9"!A'!E8W0@9FEL96YA;65S('1E2<[("XI"@I@+2UO;F4M9FEL92US>7-T96TG"F`M;"<*("`@("!5 M7-T96US(&9R;VT@=&AE(&-U7=A>2P@6UO=7,@ M=VET:"!S<&5C:69Y:6YG(&)O=&@@8"TM<')E2!F MF4]4TE:12<*("`@ M("!);G-T2X@($ET(&EN9F]R;7,@ M8'1A'1E;G-I;VX@ M=VAE;B!A9&1I;F<@9FEL97,@=&\@86X@87)C:&EV92!T:&%T"B`@("`@:&%N M9&QE71E7-T96TN("`J3F]T92!77,@=&AE('1O=&%L(&YU;6)E M71E'1R86-T M:6]N"B`@("`@=&EM92P@FEP)PH@("`@("A3964@8"TM9WII<"<[("XI"@I@+2UU;FQI M;FLM9FER2<*8"U7)PH@("`@(%9E2!W&ET+B`@+@H*8"TM=F]L;F\M9FEL93U&24Q%)PH@ M("`@(%5S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UX)RDL(&`M+79E M2!P'1R86-T("TM9FEL93UA'9V(&%R8VAI=F4N=&%R"@H@("!6 M97)B;W-E(&]U='!U="!A<'!E87)S(&]N('1H92!S=&%N9&%R9"!O=71P=70@ M97AC97!T('=H96X@86X@87)C:&EV90II2!M86MI;F<@9F]R=V%R9"!P"2!I;B!T:&4@ M87)C:&EV92!W:&EC:"!I&-L=61E9"!B>2!T:&4@=7-E(&]F('1H92!@+2UE>&-L=61E/5!!5%1%4DXG M"F]P=&EO;BP@;W(@2!P7!I8V%L;'DL(&!T87(G(&-A2!E>&-L=61I;F<@8V5R M=&%I;B!F:6QE222<@=&\@2!T;R!A M=F]I9`IU2X@(%-O;64@<&5O<&QE(&9E;'0@=&AE(&YE960@;V8@<')O9'5C M:6YG(&%N"F%R8VAI=F4@;VX@&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-2:' 'MD5 check failed' 3901ca44ce7c358c3bc4649e4919ead8 tar-1.13/doc/tar.info-2 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-2'`" test 48095 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-2:' 'original size' '48095,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-3 ============== if test -f 'tar-1.13/doc/tar.info-3' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-3' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-3' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-3 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<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5R('=I=&@@=&AE"G-A;64@;F%M M92!A2X*5&AI&ES=&5D(&EN('1H M92!D:7)E8W1O2P@86YD(&!T87(G('=I;&P@;F]T('!R;VUP M="!Y;W4@86)O=70@=&AI'1R86-T960@8F5F M;W)E(&ET+"!A;F0@2!T;R!A9&0@82!F:6QE('1O(&%N(&%L2!A2!A;6]N9R!T:&4@ M87)C:&EV960@9FEL97,N("!7:&5N"GEO=2!U6]U M(%]M=7-T7R!S<&5C:69Y(&9I;&4@;F%M92!A2!A(&9I;&4@=&AA="!A M;')E861Y(&5X:7-T&%C=&QY M('1H92!S86UE(&%S('1H96ER(&YA;65S(&=I=F5N(&]N('1H92!C;VUM86YD M(&QI;F4N("!4:&4*8"TM=F5R8F]S92<@*&`M=B2X@($UA M:V4@2X@ M(%1H96XL(')U;B!T:&4@9F]L;&]W:6YG(&!T87(G(&-O;6UA;F0@=&\@861D M"F!R;V-K)R!T;R!@8V]L;&5C=&EO;BYT87(G.@H*("`@("`D('1A6]U(&YO=R!U M'1R86-T('1H92!A'1R86-T960L(&$@9FEL92!A6]U(&1E;&5T92!A;&P@=F5R6]U(&-H86YG92!T:&4@9FEL92!@ M8FQU97,G(&%N9"!T:&5N(&%P<&5N9"!T:&4@8VAA;F=E9`IV97)S:6]N('1O M(&!C;VQL96-T:6]N+G1A6]U(&-H86YG92!T:&4@9FEL92!A;F0@87!P96YD('1H90IN M97<@=F5R'1R86-T960@9FER@H@("`@("UR=RUR=RUR=RT@;64@=7-E M6]U M(&5X=')A8W0@=&AE"F%R8VAI=F4L('1H92!O;&1E0IT:&4@;F5W M97(@=F5R'0Z(&-O;F-A=&5N871E+"`@4')E M=CH@87!P96YD+"`@57`Z($%D=F%N8V5D('1A<@H*57!D871I;F<@86X@07)C M:&EV90HM+2TM+2TM+2TM+2TM+2TM+2TM"@H@("`@(%\H5&AI6]U(&QE87)N960@:&]W('1O M('5S92!@+2UA<'!E;F0G("A@+7(G*2!T;PIA9&0@82!F:6QE('1O(&%N(&5X M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C:W5P'!R97-S('1H92!D M97-I2!D969I;FEN9R!S;VUE(&MI;F0@;V8@86QI87,@;W(@2!A6QE(&]P=&EO;G,@2!F;W(@ M86X@86QI87,@;W(@6QE(&]P=&EO;G,L('EO=2!M87D@2!B>2!M86EL M*2X*0F]T:"!M86-H:6YE&%M<&QE+"!H97)E(&ES M(&AO=R!Y;W4@;6EG:'0@8V]P>2!A(&1I2=S(&-O;G1E;G1S(&9R M;VT*;VYE(&1I"!R M961I&8@+2D*"E1H92!C M;VUM86YD(&%L'1R86-T("TM9FEL93TM*0H*5&AI M'!E8W0@=&\@87)C:&EV92!T:&4@2!L:7-T(&]N('1H92!C M;VUM86YD(&QI;F4L"GEO=2!C86X@;&ES="!T:&4@;F%M97,@:6X@82!F:6QE M+"!A;F0@8'1A7,@;V8@8V%U2!B92!S M871I2!A2!*86UE2!5;FEX('-YF4*("`@ M("`N("`M(&%C='5A;"!T97AT(&]F('-CF5S(&%N9"!T>7!E2!O2!D96QE=&5D*2X@($9I;&4@&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-3:' 'MD5 check failed' fe152748810ba07de504588d6b5ea08f tar-1.13/doc/tar.info-3 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-3'`" test 46870 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-3:' 'original size' '46870,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-4 ============== if test -f 'tar-1.13/doc/tar.info-4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-4' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-4 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I2!N;W0@8F4@6]U(&-A;@IT96QL('=H M870@=&AI7-T96TG("A@+6PG*2!O<'1I;VX@=&\@<')E=F5N="!@=&%R M)R!F7-T96T@8F]U;F1A2!O9B!E=F5R>71H:6YG(&EN('1H92!F:6QE2X@(%1H:7,@=VEL;"!A;'-O"F1E=&5C="!C87-E2X*"B`@(&`M+6QI&ES=',L('5S97,@=&AA="!F:6QE M('1O('-E90IW:&%T(&AA7-T96TN("!7:&5N('1H92!@+2UI M;F-R96UE;G1A;"<@*&`M1R2!N;W0@ M8F4@2!A(&YU;&P*8VAA2!A;B!A9&1I=&EO;F%L(&YU;&P@86YD M(&$*;F5W;&EN92!T;R!I;F1I8V%T92!T:&4@96YD(&]F('1H92!D871A+@H* M("`@268@=&AE(&`M+6EN8W)E;65N=&%L)R`H8"U')RD@;W!T:6]N(&ES('5S M960@=VET:"!@+2UE>'1R86-T)PHH8"TM9V5T)RP@8"UX)RDL('1H96X@=VAE M;B!T:&4@96YT6]U(&%R92!R97-T;W)I;F<@82!D86UA9V5D(&9I;&4* M6]U(&1O;B=T('5S92!@+2UI;F-R96UE;G1A;"<@ M*&`M1R7-T96T@=VEL;`IP2!F:6QL('5P M('=I=&@@9FEL97,@=&AA="!S:&]U;&1N)W0@97AI&ES="!W:&5N('1H:7,@;W!T:6]N(&ES('-P96-I9FEE9"P@8'1A2!N86UE2!W5\@9'5M<"!O;F-E(&$@=V5E:R!O9B!E=F5R>71H:6YG('-I;F-E('1H M92!L87-T(&UO;G1H;'D@86YD(&$*7V1A:6QY7R!E=F5R>2!D87D@;V8@979E M2!O9B!T:&4@2!T;R!B92!U2=S"FEN8W)E;65N=&%L M(&1U;7`@=VEL;"!?;F]T7R!S=&]R92!F:6QE2!T:&4*87)C:&EV92!I M2!T:&4@:&EG:"!B;&]C:VEN9R!F M86-T;W(@*#$R-BD@:7,*=7-E9"X@(%1H92!T87!E(&1R:79E(&UU7-T96US+B`@ M06X@87)C:&EV92!C86YN;W0@8F4@97AT2!B92!U2!F;W(@82!D:7)E8W1O2!A M="!T:&4@=&EM92!T:&4*87)C:&EV92!W87,@8W)E871E9"!A;F0@82!F;&%G M(&9O2!N;VXM1TY5('9E7-T96T@=&AA="!D:60@;F]T"F5X:7-T(&EN('1H96ER(&1I M7-T96T@=VEL;"!P0IF:6QL('5P('=I=&@@9FEL97,@=&AA="!S:&]U;&1N)W0@97AI2!I;B!T:&4@87)C:&EV92P@=&AE M(&QI2!F;W(@:'5M M86YS('1O(')E860L(&)U="!W:&EC:`II2!E:71H97(@ M80I@62<@:68@=&AE(&9I;&4@:7,@<')E7-T96T@870@=&AE('1I M;64@;V8*=&AE(&QA&ES="!W:&5N('1H:7,@;W!T:6]N(&ES M('-P96-I9FEE9"P@8'1A7-T96T@:7,@8V%L;&5D(&$* M(F9U;&P@8F%C:W5P(B!O6]U2X@(%1H:7,@0IR92UA7!I M8V%L(&1U;7`@2X@(%1H:7,@;65A;G,@2`H9G5L;"D@9'5M<"!A;F0@=&AE(&QA2!I M'1R86-T960@=7-I;F<@ M=&AE"G)E6]U7-T96T@8V]N9FEG=7)A=&EO;B!A;F0@"X*"F!!1$U)3DE35%)!5$]2)PH@("`@ M(%1H92!U0H@("`@(&YA;64@:6X@=&AE(&QI7-T96T@=VEL;"!B90H@("`@(&EN8VQU9&5D+"!R96=A M2!L;V]K('1O(&]T:&5R(&YE='=O7-T96US('=I;&P@8F4@:6=N;W)E9"X*"B`@("`@5&AE(&AO2!B92!T:&4@:&]S="!T:&%T(&%C='5A;&QY M(&-O;G1A:6YS('1H92!F:6QE('-Y7-T96T@9&]E2!A;F]T M:&5R"B`@("`@:&]S="!A&%M<&QE(%1E M>'0@;V8@8$)A8VMU<"US<&5C6YT87@@9F]R(&!"86-K=7`M'0@ M;V8@8&)A8VMU<"US<&5C6YT M87@L("!07!I8V%L;'D@8V%N;F]T M(&-O;G1A:6X@=VEL9&-A6YT87@@9F]R M(')U;FYI;F<@82!B86-K=7`@2!A('1I;64L('1H92!S8W)I<'0@ M6]U"G-T87)T(&$@7-T96TN("!4:&4@9FER0IT:&5M+B`@+"!F;W(@82!M;W)E(&1E M=&%I;&5D(&5X<&QA;F%T:6]N(&]F('1H:7,@9FEL92X*"B`@(%1H92!S96-O M;F0@9FEL92!I65T+B`@5&AI2!C87-E+"!A;&P@8V]N=&5N=',@:7,*("`@("!S=6)J96-T('1O(&-H M86YG92!A2`M86QL+"!T:&4@6]U('-P M96-I9GD@8"TM86QL)R!A'!L86YA=&EO;B!O9B!H;W<*=&AE M('-C6]U<@IA6]U(&1E8VED M92!W:&EC:"!F:6QE&-L=61E.CH@("`@("`@("`@("`@("`@("`@("!%>&-L=61I M;F<@4V]M92!&:6QE'0Z(%-E;&5C=&EN9R!!7-T96T@;6%Y(&YO="!S970@ M=&AE(&1E9F%U;'0@=&\@82!M96%N:6YG9G5L('9A;'5E(&%S(&9A2!OGH*"F!C;VQL96-T:6]N+G1A6]U"F-R96%T92!S:6YC92!@=&%R)R!W:6QL('5S M92!T:&ES(&9I;&4G7,@;F5E9',*86X@87)C:&EV M92!N86UE+@H*("`@268@>6]U('5S92!@+2<@87,@86X@05)#2$E612U.04U% M+"!@=&%R)R!R96%D&8@+2D*"B`@(%1O('-P96-I9GD@86X@87)C:&EV M92!F:6QE(&]N(&$@9&5V:6-E(&%T=&%C:&5D('1O(&$@6]U6]U2!U2!A(&1I2!N86UE(&%S(&$@9FEL M92!N86UE(&%R9W5M96YT+"!A;&P@=&AE"F9I;&5S(&EN('1H870@9&ER96-T M;W)Y(&%R92!O<&5R871E9"!O;B!B>2!@=&%R)RX*"B`@($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@@=V]U;&0@;W1H97)W:7-E(&%F M9F5C="!T:&5M+B`@26X@=&AE(&5X86UP;&4*("`@("!A8F]V92P@:68@>6]U M(&-R96%T92!A;B!A&-L=61E(&9I;&5S('1H870@96YD M('=I=&@*("`@("!@*BYO)RP@8G5T(&5X<&QI8VET;'D@;F%M92!T:&4@9FEL M92!@8V%T8RYO)R!A9G1E2!F:6QE6YT87@L(&]R(&=L;V)B:6YG+"!R871H97(@=&AA;B!@"P@=VAE;B!U&-L=61E(&]P=&EO;G,@ M:6X@8'1A'`G('-Y M;G1A>"!T;R!D97-C&-L=61E9"P@>6]U&-L M=61E/5!!5%1%4DXG(&%P<&QI97,@=&\*("`@("!P871T97)N&-L=61E+69R;VT] M1DE,12U/1BU0051415).4R<@87!P;&EE'0Z(&%F=&5R+"`@4')E=CH@97AC;'5D92P@(%5P.B!# M:&]O&%M<&QE+"!A7-T96TN("!7:6QD8V%R9"!P871T97)N6YT87@@9F]R(&!T87(G+@H*("`@02!0051415).('-H;W5L M9"!B92!W6YT87@L('5S:6YG M('=I;&1C87)D"F-H87)A8W1E'0@2!O M9B!T:&4@9FER2!P&-L=61I;F<@82!D:7)E8W1O&-L=61E2!'3E4@8'1A2!W;W)K(&]N(&9I;&5S('=H;W-E M(&UO9&EF:6-A=&EO;B!O6]U('5S92!T:&ES(&]P=&EO M;B!W:&5N(&-R96%T:6YG(&]R"F%P<&5N9&EN9R!T;R!A;B!A6]U(&]N;'D@=V%N="!@ M=&%R)R!T;R!M86ME('1H92!D871E(&-O;7!A2!U2!O<&5R871I;VXN("!.;W1E('1H870@=&AE M2!A;&QO=PIY;W4@=&\@2!A M('!A2!O<&5R871I M;F<@;VX@9FEL97,@=VAI8V@@:&%V92!B965N"FUO9&EF:65D(&%F=&5R('1H M92!D871E('-P96-I9FEE9"X@($$@9FEL92!I2!T:&%T(&`M+6%F=&5R+61A=&4]1$%4 M12<@*&`M+6YE=V5R/41!5$4G+"!@+4X@1$%4122!@;71I;64G"F9I96QD+@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F]N('1H92!C;VUM86YD(&QI;F4Z(&!P87-S=V0G+"!@:&]S=',G M+"!A;F0@8&QI8F,N822<@;W!T:6]N2X@($EF"F`M+61I2<@2P@=VAI8V@@;6EG:'0@;F]T M(&)E('1H92!S86UE(&%S"G1H92!O6]U(&-A;B!P=70@8"U#)R!O<'1I;VYS"FEN M('1H92!F:6QE(&QI2!U2P@(%5P.B!O;F4*"D%B'1R86-T&%C="!D:7)E8W1O'1R86-T:6YG+@H*("`@5VAE M;B!Y;W4@2!@+2UA8G-O;'5T92UN86UE2!N86UE6]U('=O=6QD(&YE=F5R(&YE960*=&AE(&`M+6%B'1R86-T:6YG(&9I;&5S+@H*("`@8'1A0IS97)I;W5S('-U2!D86YG97)O=7-L M>2P@;VYE(&UA>2!O9B!C;W5R&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-4:' 'MD5 check failed' 4766ca2278603a6fabfc00a27e6f7e0e tar-1.13/doc/tar.info-4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-4'`" test 50628 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-4:' 'original size' '50628,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-5 ============== if test -f 'tar-1.13/doc/tar.info-5' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-5' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-5' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-5 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I'0Z($9O7)A;FYI8V%L(&=O9"!C M;VYT0H@("`@(&-I7-T96T@;V8@=&5M<&]R86P@8V%L M8W5L871I;VX@2!A6YT87@@:&5R92!C86X@2!P;W-S:6)L92!T:6UE('-I M;F-E"GIE6YT87@L("!.97AT.B!#86QE;F1A2!E M;7!T>2P@8V]N=&%I;FEN9R!M86YY(&ET96US"G-E<&%R871E9"!B>2!W:&ET M97-P86-E+B`@5&AE('=H:71E2!I=&5M7!E2!O9B!T:&4@=V5E:R!I=&5M&%C=&QY("TQ M+@H*("`@5VAE;B!A(&UO;G1H(&ES('=R:71T96X@=&AI2P@ M:6YS=&5A9"!O9B!B96EN9R`B2!I9VYO6YT87@L("!5<#H@1&%T92!I;G!U="!F;W)M871S"@I# M86QE;F1A2!O9B!T:&4@>65A M2P@9&5P96YD:6YG(&]N M('=H971H97(@=&AE(&UO;G1H(&ES('-P96-I9FEE9"!N=6UE2!O M<@IL:71E2!D969A=6QT+@H@("`@(#&%M<&QE.@H*("`@("`Y+S$W"B`@("`@2!P;W-I=&EV92!N=6UB97(L($U/3E1((&ES(&$@ M;G5M8F5R(&)E='=E96X@,#$@86YD(#$R+`IA;F0@1$%9(&ES(&$@;G5M8F5R M(&)E='=E96X@,#$@86YD(#,Q+B`@02!L96%D:6YG('IE22!I=&5M+"`@3F5X=#H@5&EM97IO;F4@:71E;2P@ M(%!R978Z($-A;&5N9&%R(&1A=&4@:71E;2P@(%5P.B!$871E(&EN<'5T(&9O M2X@($AE2P@=&AE('1I;64@;V8@=&AE(&1A M>2!M87D@8F4@9VEV96X@87,*8$A/55(Z34E.551%.E-%0T].1"2!@ M86TG(&]R(&!P;2<@*&]R(&!A+FTN)R!OF5R M;RUO2!B92!F;VQL;W=E9"!B>2!A('1I;65Z;VYE(&-OF]N92!C;W)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H92!U2!03U-)6"!H96%D97)S+"!A;F0@"<@86YD(&]T:&5R(%!/ M4TE8(&!T87(G+@H*("`@26X@82!F97<@>65A'1E;G-I;VYS(&QI:V4@8"TM;&%B96P]05)#2$E6 M12U,04)%3"<@*&`M5@I!4D-(259%+4Q!0D5,)RDL(&`M+6UU;'1I+79O;'5M M92<@*&`M320IL;VYG(&9I M;&4@;W(@;&EN:R!N86UE'1E;G-I;VYS('=I;&P*=7-E(%!/4TE8(&AE861E"2P@=W)O;F=L>2!D96-I9&4@=&AO6EN9R!T:&%T(&$@;&]T(&]F('!E;W!L92!M87D@9V\@87)O M=6YD"F1O:6YG(&)A8VMU<"!O9B!T:&5I2P@1TY5(&!T87(G(&AA M7-T96TL('1H97D@FEN9R!T:&%T('1H92!C:&5C:W-U;7,*=V5R92!C;VUP=71E9"!D:69F97)E M;G1L>2P@8F5C875S92!O9B!A(&-H86YG92!I;B!T:&4@9&5F875L="!S:6=N M:6YG"F]F(&!C:&%R)R=S(&EN('1H96ER(&-O;7!I;&5R+B`@4V\@=&AE>2!S M=&%R=&5D(&-O;7!U=&EN9R!C:&5C:W-U;7,*=W)O;F=L>2X@(%=H96X@=&AE M>2!L871E2!D M96-I9&5D"G1O('-T87D@8V]M<&%T:6)L92!W:71H(&ET+"!A;F0@=VET:"!T M:&5M'0Z M($%T=')I8G5T97,L("!02P@(%5P.B!&;W)M871S M"@I5'0Z('-P87)S92P@(%!R978Z($-O M;7!R97-S:6]N+"`@57`Z($-O;7!R97-S:6]N"@I#B<* M8"TM9WII<"<*8"TM=6YG>FEP)PH@("`@($9I;'1EFEP)RX*"B`@(%-O;64@9F]R;6%T('!AFEP)R!A;F0@8"TM9W5N M>FEP)R!O;B!P:'ES:6-A;"!D979I8V5S("AT87!E"F1R:79E2!O9B!T:&4*8'1A6]U(&YE960@=&\@;W9E2X@("A/B2X@(%-U2P@:70@:7,@<&]S6EE;&1S"F)E='1E6]U(&YE960@=&\@9&5C;VUP2!B92!D;VYE('=I M=&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;W)M2!I;B!T:&4@2!B90H@("`@(&-R96%T960@:6X@=&AE(&9U='5R92X@ M($EF('EO=2!U7-T96T@8F%C:W5P2!M87D@2!B92!S M;6%L;"X@("A/;F4@=7-E71E2!A M8F]U="`S(&UE9V%B>71E2!?;F]T7R!U&%C=&QY('=H97)E('1H92!H;VQE2!D871A(&ET(&YE960@2!D:69F:6-U;'0@=&AA="!I="!D;V5S(&]T:&5R=VES M92X@($5L:7IA8F5T:"!:=VEC:WD@=W)I=&5S('1O"F!C;VUP+G5N:7@N:6YT M97)N86QS)RP@;VX@,3DY,"TQ,BTQ,#H*"B`@("`@5VAA="!)(&1I9"!S87D@ M:7,@=&AA="!Y;W4@8V%N;F]T('1E;&P@=&AE(&1I9F9E2P@8V%R90H@("`@('=H870@8'-T M7V)L;V-K&%M<&QE2!I;6%G:6YA8FQE*2X*"B`@("`@22!C;VYC;'5D92!F M6]U M('=A;G0@82!P;W)T86)L92!P&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-5:' 'MD5 check failed' ce72ea8f096f6c9626ef7860df59367f tar-1.13/doc/tar.info-5 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-5'`" test 46417 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-5:' 'original size' '46417,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-6 ============== if test -f 'tar-1.13/doc/tar.info-6' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-6' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-6' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-6 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I2!W M97)E(')E860L('5S92!T:&4@8"TM871I;64M<')E6]U(&1O;B=T(&]W M;BP@=6YL97-S('EO=2=R92!R;V]T+"!A;F0*:70@9&]E'1R86-T960L"B`@("`@:6YS=&5A9"!O M9B!S971T:6YG(&ET('1O('1H92!T:6UE(')E8V]R9&5D(&EN('1H92!A2!F;W(@;F]N+7)O;W0@=7-E&5C=71E9"!O;B!T:&]S92!S>7-T96US(&%B;&4@=&\@9VEV92!F:6QE M2!P96]P;&4L(&%T(&QE87-T"B`@("`@8F5C875S92!I M="!M86ME2!O8V-U<'DN("!! M;'-O+"!T:&4@8'-U:60G(&]R(&!S9VED)R!A='1R:6)U=&5S"B`@("`@;V8@ M9FEL97,@87)E(&5A2!A;F0@'1R86-T:6]N('5S:6YG('1H92!N=6UE M2!W:71H(&1I9F9E2!T:&4@=W)I=&4@<&5R;6ES'1R86-T(&%L;"!P'1R86-T960@9FEL97,N"@H@("`@(%1H:7,@;W!T:6]N(&ES(&UE M86YI;F=L97-S('=I=&@@8"TM;&ES="<@*&`M="'1E;G-I;VYS+"`@4')E=CH@071T2!F:6QE2!O=&AE2P@86X@87)C:&EV M92!C;VYS:7-T2!A;B!E;F0M;V8M87)C:&EV92!E;G1R>2P@=VAI8V@@8V]N2!D M97-C2!B92!T M:&]U9VAT(&]F(&%S"F)E:6YG(&]N(&UA9VYE=&EC('1A<&4L(&]T:&5R(&UE M9&EA(&%R92!O9G1E;B!UF5R;R!OF5R;W,@87,@86X@96YD+6]F+69I;&4@;6%R M:V5R+B`@02!R96%S;VYA8FQE('-YF4L('=I=&@@8FQO8VMS(&%F=&5R('1H92!Z97)O(&)L M;V-K(&-O;G1A:6YI;F<*86QL('IE7-T96T@F5R;R!B;&]C:RX*"B`@(%1H92!H96%D97(@8FQO8VL@ M:7,@9&5F:6YE9"!I;B!#(&%S(&9O;&QO=W,N("!);B!T:&4@1TY5(&!T87(G M"F1I2!U2!B92!S970@9F]R(&5N M9F]R8VEN9R!S=')I8W1EF5R;R!O65A M%LQ-35=.R`@("`@ M("`@("`@("`O*B`S-#4@*B\*("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("\J(#4P,"`J+PH@("`@('T["B`@("`@"B`@("`@(V1E9FEN M92!434%'24,@("`B=7-T87(B("`@("`@("`O*B!U2`J M+PH@("`@("-D969I;F4@1DE&3U194$4@)S8G("`@("`@("`@("`@+RH@1DE& M3R!S<&5C:6%L("HO"B`@("`@(V1E9FEN92!#3TY45%E012`G-R<@("`@("`@ M("`@("`O*B!R97-E&5C=71E+W-E87)C:"!B M>2!O=VYE2!G2!O=&AE'1E;G-I;VYS+B`@?`H@("`@(&`M+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM*B\*("`@("`*("`@("`O*B!);B!'3E4@ M=&%R+"!364U465!%(&ES(&9O6UB;VQI8R!L:6YK6)E(&1I2!M96%N="!T;R!U2!E>'1E;G-I;VYS(&%L;&]W M960@8GD@4$]325@L(&)U="!T:&4@2!D M;R`J;F]T*@H@("`@("`@(')E<75I7!E9FQA9R!I'1E;G-I;VXN("`J+PH@("`@(`H@("`@('-T'1R85]H96%D M97(*("`@("![("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("\J(&)Y M=&4@;V9F2!A9G1E'1R82!H96%D M97(N("!4:&5R92!M:6=H="!E=F5N(&)E(&UA;GD@'1E;G-I;VX@ M:&5A9&5R2!F;V]L M(&]L9"!'3E4@=&%R)W,L(&%N9"!03U-)6"!T87(G2!T:&4@<')E9FEX(&9I96QD(&EN(&$@4$]325@@:&5A9&5R+"!A M;F0@8W5M=6QA=&5S(&EN9F]R;6%T:6]N"B`@("`@("`@;F]R;6%L;'D@9F]U M;F0@:6X@82!'3E4@97AT2!03U-)6"!H96%D M97(@;F]R($=.52!E>'1R82!H96%D97(N("!3=7!P;&5M96YT87)Y('-P87)S M90H@("`@("`@(&AE861ER`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@("`O*B!B>71E(&]F9G-E="`J+PH@("`@ M("`@8VAAF5;,3)=.R`@ M("`@("`@("`@("\J(#0X,R`J+PH@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("`@+RH@-#DU("HO"B`@("`@?3L*("`@("`*("`@("`O*B!/ M3$1'3E5?34%'24,@=7-E2!B96-O;64@;V)S M;VQE'0J(&9I;&4@;VX@=&AE('1A M<&4@87,@:&%V:6YG(&$@;&]N9R!N86UE+B`@*B\*("`@("`C9&5F:6YE($=. M55194$5?3$].1TY!344@)TPG"B`@("`@"B`@("`@+RH@5&AIPH@("`@("`@8VAA'1R85]H96%D97(["B`@ M("`@("!S=')U8W0@;VQD9VYU7VAE861E71E'0@9FEL97,@9G)O;2!B:6YA2!N86UE6EN9R!T:&]S92!S<&5C:6%L('!E M2!T:&4@;W!EF4@;V8@=&AE(&9I;&4@:6X@8GET97,[(&QI;FME9"!F:6QE MF5D('1O('IE M7!E+"!T:&4@9FEL92!W:6QL(&)E(&5X M=')A8W1E9"!A2!S=&]R92P@2!T:&4@8"TM;75L=&DM=F]L M=6UE)R`H8"U-)RD@;W!T:6]N+"!W:&5N"FUA:VEN9R!A(&UU;'1I+79O;'5M M92!A2!L87)G92!W:&5N(&%N(&!L2X@(%1H M=7,L('-P87)S92!F:6QE2!I="!L;V]K960@8F5F;W)E:&%N9"X@(%1H92!F;VQL;W=I;F<@:7,@80ID M97-C2!O9B!@71E'1E;F1E9"<@9FQA9R!I2!S970@:6X@=&AE(&5V96YT('1H870*=&AE(&1E M2X*("`@("!/<&5R871I;F<@&EM=6T@;G5M8F5R(&]F(&)Y=&5S("AW M:&EC:"!M87D@8F4@0H@("`@(&AO;&0N("!!(&!S:7IE)R!F:65L9"!O9B!Z97)O(&EN9&EC871E MF4G(&9I96QD+@H*8$9)1D]465!%)PH@("`@(%1H M:7,@&ES=&5N8V4@;V8@=&AI7-T96US('=H:6-H('-U M<'!O2!T2X@($EF(&9O=6YD+"!T M:&4@=7-E'1E;G-I;VYS+"`@3F5X=#H@8W!I;RP@ M(%!R978Z(%-T86YD87)D+"`@57`Z($9O'1E;G-I;VYS M('1O('1H92!!7!E2!T:&4*("`@("!@+2UI;F-R96UE;G1A;"<@*&`M1R2!E:71H97(@82!@62<@ M*'1H92!F:6QE('-H;W5L9"!B92!I;B!T:&ES(&%R8VAI=F4I(&]R(&%N(&!. M)RX*("`@("`H5&AE(&9I;&4@:7,@82!D:7)E8W1O71E M7!E(&ES('5S960@ M=&\@;6%R:R!T:&4@=F]L=6UE(&AE861EF4G M(&9I96QD(&ES('IE'1E;G-I;VYS+"`@57`Z($9O&EM=6T@ M<&%T:&YA;64*;&5N9W1H"!P M871H(&QE;F=T:"!O9@HQ,#(T+B`@1TY5(&!C<&EO)R!C86X@6UL:6YK7-T96T@=VET:&]U="!E;FAA M;F-I;F<@8&-P:6\G('1O(&MN;W<@86)O=70@=&AE;2X@($]T:&5R6UB;VQI8R!L:6YK7-T M96T@24E)+"!3>7-T96T@5BP@86YD(&QA=&5R($)31"`H-"XS+71A:&]E(&%N M9`IL871E2!O9B!H86YD;&EN9R!M=6QT:7!L M92!H87)D(&QI;FMS('1O(&$@9FEL92!C86X@:&%N9&QE"F9I;&4@6]U('1O('!L M87D@7-T M96T@240O:2UN=6UB97(@<&%I6]U(&-A;B!U2!@8W!I;R<@=V%S(&UA9&4@=VAE;B!@=&%R)R!W87,@<')E2UA M=F%I;&%B;&4@=F5R2!V97)S:6]N('1H870@=V%S M(&=E;F5R86QL>2!A=F%I;&%B;&4@7W=I=&AI;B!!5"947R!H860*8'1A2!T;R!R97-T;W)E('1H92!R97-T"F]F('1H92!F:6QE M6YT87@@86YD(&AE861E71H:6YG M(&ES(&)L;V-K960*=&\@2!D:69F97)E;F-E2!I="!S:&]U;&0@8F4@96%S:65R('5N9&5R(&!T87(G('-I M;F-E('1H92!B;&]C:VEN9PIL971S('EO=2!F:6YD(&$@:&5A9&5R('=I=&@@ M2!R96%S;VX@9F]R(&=E='1I;F<@;W5T M(&]F('-Y;F,*=6YL97-S(&$@9FEL92!C:&%N9V5D('-I>F5S('=H:6QE('EO M=2!W97)E('=R:71I;F<@=&AE(&%R8VAI=F4N"@H@("`@($EF(&%N>6]N92!K M;F]W"!S8V5N92P@<&QE87-E('1E;&P@;64@86)O M=70@=&AI2!B96-A=7-E(&ET(&ES(&UO2!N;W0@8FQO8VMI;F<*979E2!T:&4@7,@=7-E2!A=F%I;&%B;&4@86QT97)N871I=F5S+B`@5&AE"FUA:F]R(&]N97,@87)E M(&!A9FEO)RP@1TY5(&!T87(G+"!A;F0@8'!A>"'0Z($EN9&5X+"`@4')E M=CH@1F]R;6%T2!C;VUP;&5X:71I97,@2!S;6%L;&5R($5804)95$4@=&%P92!C87)T71E2!G96YE2!D:7-K('1O(&$@9FEL M:6YG(&-A8FEN970@=7-I;F<@82!M86=N970@:7,@<')O8F%B;'D*;F]T(&$@ M9V]O9"!I9&5A+@H**B!-96YU.@H**B!$979I8V4Z.B`@("`@("`@("`@("`@ M("`@("`@("!$979I8V4@2!T:&4@9FEL92!N86UE(&]F('1H92!A'1R86-T:6YG*2P@;W(@=W)I=&5S(&ET('1O('-T M86YD87)D(&]U='!U="`H=VAE;@IC2!A;GEM;W)E"G-U<'!O M2!I;B!T;V\@;6%N M>2!C87-E2!L969T('1O('1H92!I;G-T86QL97(@=&\@;W9E2!A;B!O=71P=70@9FEL92!N86UE+2UE2P@ M86YD('-O(&UA;GD@8V]N=')A9&EC=&EN9R!R97%U97-T2!S;W5N9',@;&EK90IT:&4@;VYL>2!C;&5A;B!C M:&]I8V4@;&5F="P@86YD(&$@=F5R>2!U2!B;&]C:R!D M979I8V5S(&%R92!P7,O;71I;RYH/B2!D969I;FEN9R!T:&4@96YV:7)O;FUE;G0@ M=F%R:6%B;&4@8%)32"<@7V%T"B`@("`@:6YS=&%L;&%T:6]N('1I;65?+@H* M8"U;,"TW75ML;6A=)PH@("`@(%-P96-I9GD@9')I=F4@86YD(&1E;G-I='DN M"@I@+4TG"F`M+6UU;'1I+79O;'5M92<*("`@("!#'1R M86-T(&UU;'1I+79O;'5M92!A2!B92!L87)G97(@=&AA;B!W:6QL(&9I="!O M;B!T:&4@;65D:75M('5S960@=&\@:&]L9"!I="X*("`@("`J3F]T92!-=6QT M:2U6;VQU;64@07)C:&EV97,Z.BX*"F`M3"!.54TG"F`M+71A<&4M;&5N9W1H M/4Y532<*("`@("!#:&%N9V4@=&%P92!A9G1E0H@("`@(&1E M=&5C="!E;F0@;V8@<&AY2!B96EN9R!S;&EG:'1L M>2!C;VYS97)V871I=F4@;VX*("`@("!T:&4@;6%X:6UU;2!T87!E(&QE;F=T M:"P@>6]U(&UI9VAT(&%V;VED('1H92!P'0Z($-O;6UO;B!02!O9B!#86QI9F]R;FEA(&%T"D)E2!M86-H:6YE('=H;W-E('1A<&4@9')I=F4@>6]U('=A;G0@ M=&\@=7-E+B`@8'1A2!R=6YN:6YG(&%N M(&!R6]U('5S92!T:&4@8"TM86)S;VQU=&4M;F%M97,G("A@+5`G*2!O<'1I;VXL M($=.52!@=&%R)R!W:6QL"FYO="!A;&QO=R!Y;W4@=&\@8W)E871E(&%N(&%R M8VAI=F4@=&AA="!C;VYT86EN2!E>'1R86-T2P@ M=V4@=V5R92!U;FAA<'!Y"F%B;W5T(&AA=FEN9R!T;R!R96-O=F5R('1H92!F M:6QE('-Y&%M<&QE M+"!I9B!T:&4@87)C:&EV92!C;VYT86EN960@82!F:6QE(&`O=7-R+V)I;B]C M;VUP=71O>2'1R86-T('1H92!F:6QE('1O M(&!U6]U('=A;G0@=&\@97AT"`H56QT2!F86EL M960N("!4:&ES('=I;&P@2!C:&5C:W-U;2!E7-T96TZ"FDO;R!E0H* ` end SHAR_EOF $shar_touch -am 0702170499 'tar-1.13/doc/tar.info-6' && chmod 0444 'tar-1.13/doc/tar.info-6' || $echo 'restore of' 'tar-1.13/doc/tar.info-6' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-6:' 'MD5 check failed' 1fec77e5120828a3fd3e940c995190ee tar-1.13/doc/tar.info-6 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-6'`" test 46857 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-6:' 'original size' '46857,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-7 ============== if test -f 'tar-1.13/doc/tar.info-7' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-7' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-7' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-7 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I2P@ M(%!R978Z($-O;6UO;B!02!S869E;'D@F4@0H@("`@(&UO2!C;W)R96-T M('1E2!M861E(&ET(&EN=&\@ M4$]325@@*&YO('-U2!R969E7-I8V%L(&)L;V-K+"!?87-S=6UI;F=?('1H870@96%C M:"!D:7-K(&)L;V-K(&ES(#4Q,B!B>71E7,@;65A;B!A(&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1O('-A>2P@='=O('1A<&4@;6%R:W,@:6X@82!R;W0IB86-K2!T97)M:6YA=&5D+B`@0G5T(&EF('EO=2!W2!O;F4@=&%P92!M87)K(&)E='=E96X@9FEL97,N"@H@("!3;RP@ M>6]U(&UA>2!N;W<@6]U M('=A;G0@=&\@<'5T(&]N('1H92!S86UE('1A<&4N"@H@("!!;F]T:&5R('5S M=6%L(&-A6]U(&YE960@=&\@6]U(&UU6]U2!H87,@,38@9FEL97,@;VX@:70L(&%N9`IT:&%T M('EO=2!A2P@8GD@=7-I;F<@ M=&AE0H*5&%P92!0;W-I=&EO;G,@86YD(%1A<&4@36%R:W,* M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2T*"B`@("`@7RA4:&ES(&UE M6]U('-H;W5L9"!M86ME('-U M6]U('=A;G0@=&\@861D(&YE=R!A M&ES=&EN9R!F:6QE M(&5N=')I97,L(&)A8VMS<&%C90IO=F5R('1H92!L87-T('1A<&4@;6%R:RP@ M86YD('=R:71E('1H92!N97<@87)C:&EV92!F:6QE+B`@268@>6]U('=E"!O9B!T:&4@8&UT)R!C M;VUM86YD(&ES.@H*("`@("!M="!;+68@5$%014Y!345=($]015)!5$E/3B!; M3E5-0D5270H*("`@=VAE2!A(%1!4$5.04U%+"!@;70G('5S97,@=&AE M(&5N=FER;VYM96YT('9AF5D+"!A;F0@,B!I9B!A;B!O<&5R871I;VX@9F%I;&5D+@H* M("`@268@>6]U('5S92!@+2UE>'1R86-T)R`H8"TM9V5T)RP@8"UX)RD@=VET M:"!T:&4*8"TM;&%B96P]05)#2$E612U,04)%3"<@*&`M5B!!4D-(259%+4Q! M0D5,)RD@;W!T:6]N('-P96-I9FEE9"P@8'1A'!R97-S:6]N M+B`@268@=&AE(&QA8F5L6]U(&UI9VAT('=A;G0@=&\@=W)I=&4@82!L M87)G92!A6]U(&-A;B!R=6X*;75L=&EP;&4@8'1A2!I9@IY;W4@87)E M('5S:6YG(&]P=&EO;G,@;&EK92!@+2UE>&-L=61E/5!!5%1%4DXG(&]R(&1U M;7!I;F<@96YT:7)E"F9I;&5S>7-T96US+B`@5&AE&-E<'1I;VX@=&\@=&AI'1R M86-T(&9R;VT*=&AE(&9I2X*"B`@(%=H96X@<')O;7!T:6YG(&9O2!O9B!T:&4@9F]L;&]W:6YG"G)E2X*"F!N($9)3$4@3D%-12<*("`@("!297%U97-T(&!T87(G M('1O('=R:71E('1H92!N97AT('9O;'5M92!O;B!T:&4@9FEL92!&24Q%($Y! M344N"@I@(2<*("`@("!297%U97-T(&!T87(G('1O(')U;B!A('-U8G-H96QL M+@H*8'DG"B`@("`@4F5Q=65S="!@=&%R)R!T;R!B96=I;B!W2<@ M869T97(@>6]U(&AA=F4@8VAA;F=E9"!T:&4@=&%P93L@;W1H97)W:7-E"F!T M87(G('=I;&P@=W)I=&4@;W9E6]U('=A;G0@;6]R92!E;&%B;W)A=&4@8F5H879I;W(@ M=&AA;B!T:&ES+"!G:79E(&!T87(G('1H90I@+2UI;F9O+7-C2!B96=I;B!W6]U('5S90I@+2UI;F9O+7-C2!D:7-K2!C;VYT86EN:6YG(&$@9&5C:6UA;"!N=6UB M97(N("!4:&%T(&YU;6)E6-L92!T:')O=6=H(&$@6]U('1O M('!R97!A&%M<&QE+"!Y;W4@ M8V%N(&QI2!@+2UM=6QT:2UV;VQU;64G("A@ M+4TG*2P@8'1A6]U('-H;W5L9"!C:&%N9V4@9&ES:W,[(&5T8RX*"B`@(%EO=2!C86X@ M&%M<&QE+"!T;R!L:7-T('1H92!C;VYT96YT'1R86-T:6YG(&%R8VAI=F5S+@H*("`@8"TM:6YF M;RUS8W)I<'0]4T-225!4+4Y!344G("A@+2UN97&%M<&QE+"!T:&ES(&]P=&EO;B!C86X@8F4@=7-E9"!T;R!E:F5C="!C87-S M971T97,L(&]R('1O(&)R;V%D8V%S=`IM97-S86=E2!T87!E)R!W:&5N('!E2!O=&AE2!L86)E;"!V;VQU;65S('=H:6-H M(&%R92!A9&1E9"!L871E2!@+2UL86)E;#U!4D-(259%+4Q!0D5,)R`H8"U6"D%20TA) M5D4M3$%"14PG*2!A9V%I;B!I;B!C;VYJ=6YC=&EO;B!W:71H('1H92!@+2UA M<'!E;F0G("A@+7(G*2P*8"TM=7!D871E)R`H8"UU)RD@;W(@8"TM8V]N8V%T M96YA=&4G("A@+2UC871E;F%T922P@9F]R(&$*8'1A2!V96YD;W(G6]U M(&=I=F4L('=H97)E($Y.3B!I6]U('5S92!T:&4@8"TM;&%B96P]05)# M2$E612U,04)%3"<**&`M5B!!4D-(259%+4Q!0D5,)RD@;W!T:6]N('=H96X@ M6]U(&=I=F4N M("`J3F]T92!L86)E;#HZ+@H*("`@5VAE;B!@=&%R)R!W2!T;R!P;W-I=&EO;B!T:&4@=&%P92!A="!T:&4@ M6]U(&QI'1R86-T M"G1H92!A&-L=61E.CHL(&9O2!@(%9O;'5M92!;,2TY72HG"FEF('1H92!I M;FET:6%L(&UA=&-H(&9A:6QS+"!B969O2!A9&1E9"!I M;B!L86)E;',@870@8W)E871I;VX@=&EM92P@:70@'1R86-T)R`H M8"TM9V5T)RP@8"UX)RD@;W!T:6]N+@H*("`@5&\@9V5T(&$@8V]M;6]N(&EN M9F]R;6%T:6]N(&]N(&%L;"!T87!E2!B M86-K=7`@9F]R(&!D871E("LE62TE;2TE9&`B"B`@("`@)"!T87(@+2UC7!E M7,@9F]R(')E=VEN9&EN9R!T87!E6EN9R!$871A(&%S($ET(&ES(%-T;W)E9`H]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*"F`M5R<*8"TM=F5R:69Y)PH@ M("`@($%T=&5M<'0@=&\@=F5R:69Y('1H92!A2!D:7-C7-T96T@=VET:"!A2!W2!A M;B!A2!U2<@*&`M5R2X@(%-O+"!F;W(@=&AE(&`M M+79E2<@*&`M5RF%T:6]N('5N M9&ES='5R8F5D(&9O2!C86-H92!Y;W5R M2!M86=N971I M8R!H96%D2!A;B!I;G1E9W)A;"!P M87)T(&]F('1H90IP:'ES:6-A;"!M961I82P@86YD(&-A;B!B92!A('1W;R!P M;W-I=&EO;B`H=W)I=&4@96YA8FQE9"]W&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-7:' 'MD5 check failed' b9fea87af158aba366bd70124961300a tar-1.13/doc/tar.info-7 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-7'`" test 46626 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-7:' 'original size' '46626,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.info-8 ============== if test -f 'tar-1.13/doc/tar.info-8' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.info-8' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.info-8' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/tar.info-8 M5&AI7)I9VAT(&YO=&EC92!A;F0@=&AI2!A;F0@9&ES=')I M8G5T92!M;V1I9FEE9"!V97)S:6]N6EN9RP@<')O=FED960@ M=&AA=`IT:&4@96YT:7)E(')E&-E M<'0@=&AA="!T:&ES('!E2!B92!S=&%T960@ M:6X@80IT2!T:&4@1F]U;F1A=&EO;BX* M"B`@(%1H:7,@9FEL92!D;V-U;65N=',@1TY5(&!T87(G+"!W:&EC:"!I`HJ*BHJ*@H**B!-96YU.@H**B`M+6QI2P@8VAA;F=I;F<@;6ED+7-T2X**B!$:7-K('-P86-E+"!R=6YN:6YG(&]U="!O9CH@("`@ M("`@("`@("!38V%R8V4N"BH@1&]U8FQE+6-H96-K:6YG(&$@=W)I=&4@;W!E MF]N M92!I=&5M+@HJ($5N9"UO9BUA&%B>71E(&)L;V-K:6YG.B`@("`@("`@ M("`@("`@("`@("`@("!";&]C:VEN9R!&86-T;W(N"BH@17AC;'5D:6YG(&-H M87)A8W1E2!F:6QE('-Y'1R86-T:6]N.B`@("`@("`@("`@("`@("`@("`@ M("`@("`@("!E>'1R86-T+@HJ($9E961B86-K(&9R;VT@=&%R.B`@("`@("`@ M("`@("`@("`@("`@('9E7-T96T@8F]U;F1A6QE.B`@("`@("`@("`@("`@("`@("`@(&]L9"X**B!&F]N92!I=&5M+@HJ($=E M='1I;F<@;6]R92!I;F9OF]N92!I=&5M+@HJ($=U86T@4W1A;F1AF]N92!I=&5M+@HJ($EN=&5R;F%T:6]N86P@1&%T92!,:6YE(%=E65R:6YG+"!*:6TZ("`@("`@("`@("`@("`@("`@("`@("`@ M($%U=&AOF]N92!I=&5M+@HJ($UI9&1L92!%=7)O M<&5A;B!7:6YT97(@5&EM93H@("`@("`@("`@(%1I;65Z;VYE(&ET96TN"BH@ M36ED9&QE(&]F('1H92!A'1R86-T960@9FEL97,Z("`@("`@("`@("`@("!7 M&-L=61I;F<@9FEL97,@ M8GDZ(&%F=&5R+@HJ($UO9&EF:6-A=&EO;B!T:6UE'1R86-T960@ M9FEL97,Z(%=R:71I;FF]N92!I=&5M+@HJ($YU;6)E6QE(&%R8VAI=F5S.B`@("`@("`@("`@("`@("`@ M("`@;VQD+@HJ($]L9"!S='EL92!F;W)M870Z("`@("`@("`@("`@("`@("`@ M("`@(&]L9"X**B!/<'1I;VYS('=H96X@'1R86-T960@9FEL M97,Z("`@("`@("!7'1R M86-T+@HJ(%)U;FYI;F<@;W5T(&]F('-P86-E.B`@("`@("`@("`@("`@("`@ M(%)E861I;FBP@4FEC:#H@("`@("`@("`@("`@ M("`@("`@("`@("`@("`@075T:&]R3H@("`@("`@("`@("`@("`@("`@("`@("`@(%)E861I;F6EN9R!F M:6QEFEP+@HJ(%-W961I6EN9R!A('=R:71E(&]P97)A=&EO;CH@ M("`@("`@("`@('9E2X**B!697)I9GEI;F<@=&AE(&-UF]N92!I M=&5M+@HJ(%=E2P@6EN9SH@("`@("`@("!D:7)E8W1O'1R86-T960@ M9FEL97,@=&\@#H@ M("`@("`@("`@("`@("`@("`@("`@("`@8F%C:W5P+@HJ(&)A8VMU<',L(&UA M:VEN9SH@("`@("`@("`@("`@("`@("`@("`@(&)A8VMU<"X**B!B96=I;FYI M;F<@;V8@=&EM92P@9F]R(%5N:7@Z("`@("`@("`@("!$871E(&EN<'5T(&9O M"X**B!C;VYC M871E;F%T92!VFEP+@HJ(&-O&-L=61E+69R;VTZ("`@("`@("`@("`@("`@("`@("`@("`@("!E>&-L=61E M+@HJ(&5X:7-T:6YG(&)A8VMU<"!M971H;V0Z("`@("`@("`@("`@("`@(&)A M8VMU<"X**B!E>&ET('-T871U6YO<'-I'1R86-T:6]N.B`@("`@("`@("`@("`@("`@("`@ M("`@("`@("!$969I;FET:6]N#H@("`@("`@("`@("`@("`@("`@1V5N97)A;"!D871E M('-Y;G1A>"X**B!G971D871E.B`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("!$871E(&EN<'5T(&9O6YT87@N"BH@;&%S="!$05DZ("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@1&%Y(&]F('=E96L@:71E;2X* M*B!L87-T(&EN(&1A=&4@3H@("`@("`@5&EM92!O9B!D87D@:71E;2X* M*B!M;VYT:"!I;B!D871E('-T"X**B!N97AT($1!63H@("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("!$87D@;V8@=V5E:R!I=&5M+@HJ(&YE>'0@:6X@9&%T92!S M=')I;F=S.B`@("`@("`@("`@("`@("`@($=E;F5R86P@9&%T92!S>6YT87@N M"BH@;F]O;B!I;B!D871E('-T6YT87@L('1R861I=&EO M;F%L.B`@("`@("`@("`@($]L9"!/<'1I;VYS+@HJ(&]R9&EN86P@;G5M8F5R M6YT87@N M"BH@<&T@:6X@9&%T92!S=')I;F=S.B`@("`@("`@("`@("`@("`@("`@5&EM M92!O9B!D87D@:71E;2X**B!P=7)E(&YU;6)E2X**B!T M87(Z("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("!7:&%T('1A M3H@("`@("`@("`@("`@("`@ M("`@("`@("`@("`@($YA;6EN9R!T87(@07)C:&EV97,N"BH@=&%R(&9I;&4Z M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@3F%M:6YG('1AF]N92!I=&5M.B`@("`@("`@("`@ M("`@("`@("`@("`@("!4:6UE>F]N92!I=&5M+@HJ('1O9&%Y(&EN(&1A=&4@ M65A65S=&5R9&%Y(&EN(&1A=&4@ M&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/tar.info-8:' 'MD5 check failed' 194a25b6a33113a0a38212c8b9cea2a6 tar-1.13/doc/tar.info-8 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/tar.info-8'`" test 14724 -eq "$shar_count" || $echo 'tar-1.13/doc/tar.info-8:' 'original size' '14724,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/ChangeLog ============== if test ! -d 'tar-1.13/lib'; then $echo 'x -' 'creating directory' 'tar-1.13/lib' mkdir 'tar-1.13/lib' fi if test -f 'tar-1.13/lib/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/lib/ChangeLog M,3DY-RTP-"TR-2`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N M=')E86PN8V$^"@H)*B!296QE87-E(#$N,3(N"@HQ.3DW+3`T+3$V("!&2P@;F]T(&=E=&1A=&4N8RX*"2A% M6%1205]$25-4*3H@1&\@;F]T(&EN8VQU9&4@9V5T9&%T92YY(&%N>6UO2`D*'-R8V1I2!"6%N="!&=6II;6]T;R!A;F0@5V]L9G)A;2!786=N97(N"@HQ.3DW+3`T M+3$Q("!&2!S=&1I;R$*"C$Y.38M,#DM M,38@($9R86[G;VES(%!I;F%R9"`@/'!I;F%R9$!I2!*:6T@365Y97)I;F2P@87,@075T;VUA:V4@;F]W(&AA;F1L97,@ M:70@875T;VUA=&EC86QL>2X*"C$Y.38M,#2YC('1H97)E+"!F2!*:6T@365Y97)I;F&5C;'`I.B!.972X*"@DJ(')M9&ER+F,Z($YE=RP@ M"X*"5)E<&]R=&5D(&)Y(%!E9&5R($-H2!!;F1R96%S(%-C:'=A8BX*"@DJ(&9I;&5B M;&]C:W,N8SH@3F5W+"!F2!S;VQV960@8GD@9V]I;F<@=&\@86X@=7!D871E9"!V97)S:6]N(&]F M(&=E=&1A=&4N>2X*"5)E<&]R=&5D(&)Y($%N9')E>2!!+B!#:&5R;F]V+"!" M&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/ChangeLog:' 'MD5 check failed' dfdcd9adbb8960822b66a0f2e421ada2 tar-1.13/lib/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/ChangeLog'`" test 8095 -eq "$shar_count" || $echo 'tar-1.13/lib/ChangeLog:' 'original size' '8095,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/Makefile.am ============== if test -f 'tar-1.13/lib/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/Makefile.am' && # Makefile for GNU tar library. # Copyright 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits ../src/ansi2knr X noinst_LIBRARIES = libtar.a X EXTRA_DIST = \ alloca.c execlp.c fileblocks.c fnmatch.c ftruncate.c lchown.c \ malloc.c memset.c mkdir.c mktime.c realloc.c rename.c rmdir.c \ stpcpy.c strstr.c strtol.c strtoul.c strtoull.c strtoumax.c utime.c X noinst_HEADERS = \ argmatch.h backupfile.h basename.h error.h exclude.h \ fnmatch.h getopt.h getdate.h getpagesize.h \ lchown.h modechange.h pathmax.h quotearg.h safe-read.h xalloc.h xstrtol.h X libtar_a_SOURCES = \ addext.c argmatch.c backupfile.c basename.c error.c \ exclude.c full-write.c getdate.y getopt.c getopt1.c \ modechange.c msleep.c quotearg.c safe-read.c xgetcwd.c xmalloc.c xstrdup.c \ xstrtol.c xstrtoul.c xstrtoumax.c X INCLUDES = -I.. -I$(srcdir) -I../intl X libtar_a_LIBADD = @ALLOCA@ @LIBOBJS@ libtar_a_DEPENDENCIES = $(libtar_a_LIBADD) X # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule. $(srcdir)/getdate.c: getdate.y X cd $(srcdir) && \ X $(YACC) $(YFLAGS) getdate.y; \ X mv -f y.tab.c getdate.c SHAR_EOF $shar_touch -am 0706230799 'tar-1.13/lib/Makefile.am' && chmod 0444 'tar-1.13/lib/Makefile.am' || $echo 'restore of' 'tar-1.13/lib/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/Makefile.am:' 'MD5 check failed' 76ae6c9345d3c13cb5f5fb1f71c53231 tar-1.13/lib/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/Makefile.am'`" test 1819 -eq "$shar_count" || $echo 'tar-1.13/lib/Makefile.am:' 'original size' '1819,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/Makefile.in ============== if test -f 'tar-1.13/lib/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/Makefile.in' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/lib/Makefile.in M(R!-86ME9FEL92YI;B!G96YE2!B>2!A=71O M;6%K92`Q+C0@9G)O;2!-86ME9FEL92YA;0H*(R!#;W!Y2!L87<[('=I=&AO=70*(R!E=F5N('1H92!I;7!L:65D('=A6]U(&-A;B!R961I0HC(&ET('5N9&5R('1H92!T97)M2!L871E2!O9@HC($U%4D-(04Y4 M04))3$E462!O"`]($!P&5C9&ER(#T@0&QI8F5X M96-D:7)`"F1A=&%D:7(@/2!`9&%T861I7-C M;VYF9&ER0`IS:&%R961S=&%T961I&5C;'`N8R!F:6QE8FQO8VMS+F,@9FYM M871C:"YC(&9T&-L M=61E+F@@9FYM871C:"YH(&=E=&]P="YH(&=E=&1A=&4N:"!G971P86=E2!G971O<'0N8R!G971O<'0Q+F,@;6]D96-H86YG92YC(&US;&5E<"YC M('%U;W1E87)G+F,@&=E=&-W9"YC('AM86QL;V,N8R!X M'-T'-T"YC"@H* M24Y#3%5$15,@/2`M22XN("U))"AS'0D52YO M(&%R9VUA=&-H)%4N;R!B86-K=7!F:6QE)%4N;R!B87-E;F%M9215+F\@7`IE M&=E=&-W9"15 M+F\@7`IX;6%L;&]C)%4N;R!X'-T"15+F\*05(@/2!A<@I#1DQ!1U,@/2!`0T9, M04=30`I#3TU024Q%(#T@)"A#0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A;BUG96YEB`B9V5T9&%T96AG971D871E8R(@?'P@2!R97%U:7)E('-P96-I86P@=&]O;',@=&\@6-L96%N+6YO:6YS=$Q)0E)!4DE%4R!D:7-T8VQE86XM;F]I;G-T3$E" M4D%22453(%P*8VQE86XM;F]I;G-T3$E"4D%22453(&UA:6YT86EN97(M8VQE M86XM;F]I;G-T3$E"4D%22453(%P*;6]S=&QY8VQE86XM8V]M<&EL92!D:7-T M8VQE86XM8V]M<&EL92!C;&5A;BUC;VUP:6QE(%P*;6%I;G1A:6YE6-L96%N+6MR(&1I&5C+6%M(&EN2!W:71H('1H92`N>2YC(')U;&4N"B0H0H)8V0@)"AS2!B92!E>&-E961E9"X* ++DY/15A03U)4.@IR ` end SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/lib/Makefile.in' && chmod 0664 'tar-1.13/lib/Makefile.in' || $echo 'restore of' 'tar-1.13/lib/Makefile.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/Makefile.in:' 'MD5 check failed' 3837ba6f4a606cc7b9688d0f5f90cbae tar-1.13/lib/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/Makefile.in'`" test 19451 -eq "$shar_count" || $echo 'tar-1.13/lib/Makefile.in:' 'original size' '19451,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/alloca.c ============== if test -f 'tar-1.13/lib/alloca.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/alloca.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/alloca.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/alloca.c' && /* alloca.c -- allocate automatically reclaimed memory X (Mostly) portable public-domain implementation -- D A Gwyn X X This implementation of the PWB library alloca function, X which is used to allocate space off the run-time stack so X that it is automatically reclaimed upon procedure exit, X was inspired by discussions with J. Q. Johnson of Cornell. X J.Otto Tennant contributed the Cray support. X X There are some preprocessor constants that can X be defined when compiling for your specific system, for X improved efficiency; however, the defaults should be okay. X X The general concept of this implementation is to keep X track of all alloca-allocated blocks, and reclaim any X that are found to be deeper in the stack than the current X invocation. This heuristic does not reclaim storage as X soon as it becomes invalid, but it will do so eventually. X X As a special case, alloca(0) reclaims storage without X allocating any. It is a good idea to use alloca(0) in X your main control loop, etc. to force garbage collection. */ X #ifdef HAVE_CONFIG_H # include #endif X #ifdef emacs # include "blockinput.h" #endif X /* If compiling with GCC 2, this file's not needed. */ #if !defined (__GNUC__) || __GNUC__ < 2 X /* If someone has defined alloca as a macro, X there must be some other way alloca is supposed to work. */ # ifndef alloca X # ifdef emacs # ifdef static /* actually, only want this if static is defined as "" X -- this is for usg, in which emacs must undefine static X in order to make unexec workable X */ # ifndef STACK_DIRECTION you lose -- must know STACK_DIRECTION at compile-time # endif /* STACK_DIRECTION undefined */ # endif /* static */ # endif /* emacs */ X /* If your stack is a linked list of frames, you have to X provide an "address metric" ADDRESS_FUNCTION macro. */ X # if defined (CRAY) && defined (CRAY_STACKSEG_END) long i00afunc (); # define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg)) # else # define ADDRESS_FUNCTION(arg) &(arg) # endif X # if __STDC__ typedef void *pointer; # else typedef char *pointer; # endif X # ifndef NULL # define NULL 0 # endif X /* Different portions of Emacs need to call different versions of X malloc. The Emacs executable needs alloca to call xmalloc, because X ordinary malloc isn't protected from input signals. On the other X hand, the utilities in lib-src need alloca to call malloc; some of X them are very simple, and don't have an xmalloc routine. X X Non-Emacs programs expect this to call xmalloc. X X Callers below should use malloc. */ X # ifndef emacs # define malloc xmalloc # endif extern pointer malloc (); X /* Define STACK_DIRECTION if you know the direction of stack X growth for your system; otherwise it will be automatically X deduced at run-time. X X STACK_DIRECTION > 0 => grows toward higher addresses X STACK_DIRECTION < 0 => grows toward lower addresses X STACK_DIRECTION = 0 => direction of growth unknown */ X # ifndef STACK_DIRECTION # define STACK_DIRECTION 0 /* Direction unknown. */ # endif X # if STACK_DIRECTION != 0 X # define STACK_DIR STACK_DIRECTION /* Known at compile-time. */ X # else /* STACK_DIRECTION == 0; need run-time code. */ X static int stack_dir; /* 1 or -1 once known. */ # define STACK_DIR stack_dir X static void find_stack_direction () { X static char *addr = NULL; /* Address of first `dummy', once known. */ X auto char dummy; /* To get stack address. */ X X if (addr == NULL) X { /* Initial entry. */ X addr = ADDRESS_FUNCTION (dummy); X X find_stack_direction (); /* Recurse once. */ X } X else X { X /* Second entry. */ X if (ADDRESS_FUNCTION (dummy) > addr) X stack_dir = 1; /* Stack grew upward. */ X else X stack_dir = -1; /* Stack grew downward. */ X } } X # endif /* STACK_DIRECTION == 0 */ X /* An "alloca header" is used to: X (a) chain together all alloca'ed blocks; X (b) keep track of stack depth. X X It is very important that sizeof(header) agree with malloc X alignment chunk size. The following default should work okay. */ X # ifndef ALIGN_SIZE # define ALIGN_SIZE sizeof(double) # endif X typedef union hdr { X char align[ALIGN_SIZE]; /* To force sizeof(header). */ X struct X { X union hdr *next; /* For chaining headers. */ X char *deep; /* For stack depth measure. */ X } h; } header; X static header *last_alloca_header = NULL; /* -> last alloca header. */ X /* Return a pointer to at least SIZE bytes of storage, X which will be automatically reclaimed upon exit from X the procedure that called alloca. Originally, this space X was supposed to be taken from the current stack frame of the X caller, but that method cannot be made to work for some X implementations of C, for example under Gould's UTX/32. */ X pointer alloca (unsigned size) { X auto char probe; /* Probes stack depth: */ X register char *depth = ADDRESS_FUNCTION (probe); X # if STACK_DIRECTION == 0 X if (STACK_DIR == 0) /* Unknown growth direction. */ X find_stack_direction (); # endif X X /* Reclaim garbage, defined as all alloca'd storage that X was allocated from deeper in the stack than currently. */ X X { X register header *hp; /* Traverses linked list. */ X # ifdef emacs X BLOCK_INPUT; # endif X X for (hp = last_alloca_header; hp != NULL;) X if ((STACK_DIR > 0 && hp->h.deep > depth) X || (STACK_DIR < 0 && hp->h.deep < depth)) X { X register header *np = hp->h.next; X X free ((pointer) hp); /* Collect garbage. */ X X hp = np; /* -> next header. */ X } X else X break; /* Rest are not deeper. */ X X last_alloca_header = hp; /* -> last valid storage. */ X # ifdef emacs X UNBLOCK_INPUT; # endif X } X X if (size == 0) X return NULL; /* No allocation required. */ X X /* Allocate combined header + user data storage. */ X X { X register pointer new = malloc (sizeof (header) + size); X /* Address of header. */ X X ((header *) new)->h.next = last_alloca_header; X ((header *) new)->h.deep = depth; X X last_alloca_header = (header *) new; X X /* User storage begins just after header. */ X X return (pointer) ((char *) new + sizeof (header)); X } } X # if defined (CRAY) && defined (CRAY_STACKSEG_END) X # ifdef DEBUG_I00AFUNC # include # endif X # ifndef CRAY_STACK # define CRAY_STACK # ifndef CRAY2 /* Stack structures for CRAY-1, CRAY X-MP, and CRAY Y-MP */ struct stack_control_header X { X long shgrow:32; /* Number of times stack has grown. */ X long shaseg:32; /* Size of increments to stack. */ X long shhwm:32; /* High water mark of stack. */ X long shsize:32; /* Current size of stack (all segments). */ X }; X /* The stack segment linkage control information occurs at X the high-address end of a stack segment. (The stack X grows from low addresses to high addresses.) The initial X part of the stack segment linkage control information is X 0200 (octal) words. This provides for register storage X for the routine which overflows the stack. */ X struct stack_segment_linkage X { X long ss[0200]; /* 0200 overflow words. */ X long sssize:32; /* Number of words in this segment. */ X long ssbase:32; /* Offset to stack base. */ X long:32; X long sspseg:32; /* Offset to linkage control of previous X segment of stack. */ X long:32; X long sstcpt:32; /* Pointer to task common address block. */ X long sscsnm; /* Private control structure number for X microtasking. */ X long ssusr1; /* Reserved for user. */ X long ssusr2; /* Reserved for user. */ X long sstpid; /* Process ID for pid based multi-tasking. */ X long ssgvup; /* Pointer to multitasking thread giveup. */ X long sscray[7]; /* Reserved for Cray Research. */ X long ssa0; X long ssa1; X long ssa2; X long ssa3; X long ssa4; X long ssa5; X long ssa6; X long ssa7; X long sss0; X long sss1; X long sss2; X long sss3; X long sss4; X long sss5; X long sss6; X long sss7; X }; X # else /* CRAY2 */ /* The following structure defines the vector of words X returned by the STKSTAT library routine. */ struct stk_stat X { X long now; /* Current total stack size. */ X long maxc; /* Amount of contiguous space which would X be required to satisfy the maximum X stack demand to date. */ X long high_water; /* Stack high-water mark. */ X long overflows; /* Number of stack overflow ($STKOFEN) calls. */ X long hits; /* Number of internal buffer hits. */ X long extends; /* Number of block extensions. */ X long stko_mallocs; /* Block allocations by $STKOFEN. */ X long underflows; /* Number of stack underflow calls ($STKRETN). */ X long stko_free; /* Number of deallocations by $STKRETN. */ X long stkm_free; /* Number of deallocations by $STKMRET. */ X long segments; /* Current number of stack segments. */ X long maxs; /* Maximum number of stack segments so far. */ X long pad_size; /* Stack pad size. */ X long current_address; /* Current stack segment address. */ X long current_size; /* Current stack segment size. This X number is actually corrupted by STKSTAT to X include the fifteen word trailer area. */ X long initial_address; /* Address of initial segment. */ X long initial_size; /* Size of initial segment. */ X }; X /* The following structure describes the data structure which trails X any stack segment. I think that the description in 'asdef' is X out of date. I only describe the parts that I am sure about. */ X struct stk_trailer X { X long this_address; /* Address of this block. */ X long this_size; /* Size of this block (does not include X this trailer). */ X long unknown2; X long unknown3; X long link; /* Address of trailer block of previous X segment. */ X long unknown5; X long unknown6; X long unknown7; X long unknown8; X long unknown9; X long unknown10; X long unknown11; X long unknown12; X long unknown13; X long unknown14; X }; X # endif /* CRAY2 */ # endif /* not CRAY_STACK */ X # ifdef CRAY2 /* Determine a "stack measure" for an arbitrary ADDRESS. X I doubt that "lint" will like this much. */ X static long i00afunc (long *address) { X struct stk_stat status; X struct stk_trailer *trailer; X long *block, size; X long result = 0; X X /* We want to iterate through all of the segments. The first X step is to get the stack status structure. We could do this X more quickly and more directly, perhaps, by referencing the X $LM00 common block, but I know that this works. */ X X STKSTAT (&status); X X /* Set up the iteration. */ X X trailer = (struct stk_trailer *) (status.current_address X + status.current_size X - 15); X X /* There must be at least one stack segment. Therefore it is X a fatal error if "trailer" is null. */ X X if (trailer == 0) X abort (); X X /* Discard segments that do not contain our argument address. */ X X while (trailer != 0) X { X block = (long *) trailer->this_address; X size = trailer->this_size; X if (block == 0 || size == 0) X abort (); X trailer = (struct stk_trailer *) trailer->link; X if ((block <= address) && (address < (block + size))) X break; X } X X /* Set the result to the offset in this segment and add the sizes X of all predecessor segments. */ X X result = address - block; X X if (trailer == 0) X { X return result; X } X X do X { X if (trailer->this_size <= 0) X abort (); X result += trailer->this_size; X trailer = (struct stk_trailer *) trailer->link; X } X while (trailer != 0); X X /* We are done. Note that if you present a bogus address (one X not in any segment), you will get a different number back, formed X from subtracting the address of the first block. This is probably X not what you want. */ X X return (result); } X # else /* not CRAY2 */ /* Stack address function for a CRAY-1, CRAY X-MP, or CRAY Y-MP. X Determine the number of the cell within the stack, X given the address of the cell. The purpose of this X routine is to linearize, in some sense, stack addresses X for alloca. */ X static long i00afunc (long address) { X long stkl = 0; X X long size, pseg, this_segment, stack; X long result = 0; X X struct stack_segment_linkage *ssptr; X X /* Register B67 contains the address of the end of the X current stack segment. If you (as a subprogram) store X your registers on the stack and find that you are past X the contents of B67, you have overflowed the segment. X X B67 also points to the stack segment linkage control X area, which is what we are really interested in. */ X X stkl = CRAY_STACKSEG_END (); X ssptr = (struct stack_segment_linkage *) stkl; X X /* If one subtracts 'size' from the end of the segment, X one has the address of the first word of the segment. X X If this is not the first segment, 'pseg' will be X nonzero. */ X X pseg = ssptr->sspseg; X size = ssptr->sssize; X X this_segment = stkl - size; X X /* It is possible that calling this routine itself caused X a stack overflow. Discard stack segments which do not X contain the target address. */ X X while (!(this_segment <= address && address <= stkl)) X { # ifdef DEBUG_I00AFUNC X fprintf (stderr, "%011o %011o %011o\n", this_segment, address, stkl); # endif X if (pseg == 0) X break; X stkl = stkl - pseg; X ssptr = (struct stack_segment_linkage *) stkl; X size = ssptr->sssize; X pseg = ssptr->sspseg; X this_segment = stkl - size; X } X X result = address - this_segment; X X /* If you subtract pseg from the current end of the stack, X you get the address of the previous stack segment's end. X This seems a little convoluted to me, but I'll bet you save X a cycle somewhere. */ X X while (pseg != 0) X { # ifdef DEBUG_I00AFUNC X fprintf (stderr, "%011o %011o\n", pseg, size); # endif X stkl = stkl - pseg; X ssptr = (struct stack_segment_linkage *) stkl; X size = ssptr->sssize; X pseg = ssptr->sspseg; X result += size; X } X return (result); } X # endif /* not CRAY2 */ # endif /* CRAY */ X # endif /* no alloca */ #endif /* not GCC version 2 */ SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/alloca.c' && chmod 0444 'tar-1.13/lib/alloca.c' || $echo 'restore of' 'tar-1.13/lib/alloca.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/alloca.c:' 'MD5 check failed' 267489b16aefe4dc2508c17f7a5f3784 tar-1.13/lib/alloca.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/alloca.c'`" test 14245 -eq "$shar_count" || $echo 'tar-1.13/lib/alloca.c:' 'original size' '14245,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/execlp.c ============== if test -f 'tar-1.13/lib/execlp.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/execlp.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/execlp.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/execlp.c' && /* Provide an execlp replacement for Minix. X Copyright (C) 1988, 1994, 1995, 1997 Free Software Foundation, Inc. X X This file is part of GNU Tar. X X GNU Tar is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X GNU Tar is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with GNU Tar; see the file COPYING. If not, write to the Free X Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, X USA. */ X #if HAVE_CONFIG_H # include #endif X /* For defining NULL. */ #include X #if STDC_HEADERS # include #else char *getenv (); char *malloc (); #endif X #include #ifndef errno extern int errno; #endif X #include #include X #if STDC_HEADERS || HAVE_STRING_H # include #else # include # ifndef strchr # define strchr index # endif #endif X /* Synopsis: execlp (file, arg0, arg1... argN, (char *) NULL) X X Exec a program, automatically searching for the program through all the X directories on the PATH. X X This version is naive about variable argument lists and assumes a quite X straightforward C calling sequence. It will not work on systems having X odd stacks. */ X int execlp (filename, arg0) X char *filename; X char *arg0; { X register char *p, *path; X register char *fnbuffer; X char **argstart = &arg0; X struct stat statbuf; X extern char **environ; X X if (p = getenv ("PATH"), p == NULL) X { X /* Could not find path variable -- try to exec given filename. */ X X return execve (filename, argstart, environ); X } X X /* Make a place to build the filename. We malloc larger than we need, X but we know it will fit in this. */ X X fnbuffer = malloc (strlen (p) + 1 + strlen (filename)); X if (fnbuffer == NULL) X { X errno = ENOMEM; X return -1; X } X X /* Try each component of the path to see if the file's there and X executable. */ X X for (path = p; path; path = p) X { X X /* Construct full path name to try. */ X X if (p = strchr (path, ':'), !p) X strcpy (fnbuffer, path); X else X { X strncpy (fnbuffer, path, p - path); X fnbuffer[p - path] = '\0'; X p++; /* skip : for next time */ X } X if (strlen (fnbuffer) != 0) X strcat (fnbuffer, "/"); X strcat (fnbuffer, filename); X X /* Check to see if file is there and is a normal file. */ X X if (stat (fnbuffer, &statbuf) < 0) X { X if (errno == ENOENT) X continue; /* file not there,keep on looking */ X else X goto fail; /* failed for some reason, return */ X } X if (!S_ISREG (statbuf.st_mode)) X continue; X X if (execve (fnbuffer, argstart, environ) < 0 X && errno != ENOENT X && errno != ENOEXEC) X { X /* Failed, for some other reason besides "file. */ X X goto fail; X } X X /* If we got error ENOEXEC, the file is executable but is not an X object file. Try to execute it as a shell script, returning X error if we can't execute /bin/sh. X X FIXME, this code is broken in several ways. Shell scripts X should not in general be executed by the user's SHELL variable X program. On more mature systems, the script can specify with X #!/bin/whatever. Also, this code clobbers argstart[-1] if the X exec of the shell fails. */ X X if (errno == ENOEXEC) X { X char *shell; X X /* Try to execute command "sh arg0 arg1 ...". */ X X if (shell = getenv ("SHELL"), shell == NULL) X shell = "/bin/sh"; X argstart[-1] = shell; X argstart[0] = fnbuffer; X execve (shell, &argstart[-1], environ); X goto fail; /* exec didn't work */ X } X X /* If we succeeded, the execve() doesn't return, so we can only be X here is if the file hasn't been found yet. Try the next place X on the path. */ X X } X X /* All attempts failed to locate the file. Give up. */ X X errno = ENOENT; X fail: X free (fnbuffer); X return -1; } SHAR_EOF $shar_touch -am 0407190897 'tar-1.13/lib/execlp.c' && chmod 0444 'tar-1.13/lib/execlp.c' || $echo 'restore of' 'tar-1.13/lib/execlp.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/execlp.c:' 'MD5 check failed' fe0bc98a742377a73853b91be161a04c tar-1.13/lib/execlp.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/execlp.c'`" test 4226 -eq "$shar_count" || $echo 'tar-1.13/lib/execlp.c:' 'original size' '4226,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/fileblocks.c ============== if test -f 'tar-1.13/lib/fileblocks.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/fileblocks.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/fileblocks.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/fileblocks.c' && /* Convert file size to number of blocks on System V-like machines. X Copyright (C) 1990, 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Brian L. Matthews, blm@6sceng.UUCP. */ X #if HAVE_CONFIG_H # include #endif X #include X #if HAVE_SYS_PARAM_H # include #endif X #if !HAVE_ST_BLOCKS && !defined _POSIX_SOURCE && defined BSIZE X # if HAVE_UNISTD_H # include # endif X # ifndef NINDIR X # if defined (__DJGPP__) typedef long daddr_t; /* for disk address */ # endif X /* Some SysV's, like Irix, seem to lack this. Hope it's correct. */ /* Number of inode pointers per indirect block. */ # define NINDIR (BSIZE / sizeof (daddr_t)) # endif /* !NINDIR */ X /* Number of direct block addresses in an inode. */ # define NDIR 10 X /* Return the number of 512-byte blocks in a file of SIZE bytes. */ X off_t st_blocks (off_t size) { X off_t datablks = size / 512 + (size % 512 != 0); X off_t indrblks = 0; X X if (datablks > NDIR) X { X indrblks = (datablks - NDIR - 1) / NINDIR + 1; X X if (datablks > NDIR + NINDIR) X { X indrblks += (datablks - NDIR - NINDIR - 1) / (NINDIR * NINDIR) + 1; X X if (datablks > NDIR + NINDIR + NINDIR * NINDIR) X indrblks++; X } X } X X return datablks + indrblks; } #else /* This declaration is solely to ensure that after preprocessing X this file is never empty. */ extern int textutils_fileblocks_unused; #endif SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/fileblocks.c' && chmod 0444 'tar-1.13/lib/fileblocks.c' || $echo 'restore of' 'tar-1.13/lib/fileblocks.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/fileblocks.c:' 'MD5 check failed' b7863ff827234b8e549d0140bb5a3c12 tar-1.13/lib/fileblocks.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/fileblocks.c'`" test 2111 -eq "$shar_count" || $echo 'tar-1.13/lib/fileblocks.c:' 'original size' '2111,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/fnmatch.c ============== if test -f 'tar-1.13/lib/fnmatch.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/fnmatch.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/fnmatch.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/fnmatch.c' && /* Copyright (C) 1991, 1992, 1993, 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X /* Enable GNU extensions in fnmatch.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif X #include #include #include X X /* Comment out all this code if we are using the GNU C Library, and are not X actually compiling the library itself. This code is part of the GNU C X Library, but also included in many other GNU distributions. Compiling X and linking in this code is a waste when using the GNU C library X (especially if it is a shared library). Rather than having every GNU X program understand `configure --with-gnu-libc' and omit the object files, X it is simpler to just do this in the source for each such file. */ X #if defined _LIBC || !defined __GNU_LIBRARY__ X X # if defined STDC_HEADERS || !defined isascii # define ISASCII(c) 1 # else # define ISASCII(c) isascii(c) # endif X # define ISUPPER(c) (ISASCII (c) && isupper (c)) X X # ifndef errno extern int errno; # endif X /* Match STRING against the filename pattern PATTERN, returning zero if X it matches, nonzero if not. */ int fnmatch (const char *pattern, const char *string, int flags) { X register const char *p = pattern, *n = string; X register char c; X /* Note that this evaluates C many times. */ # define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c)) X X while ((c = *p++) != '\0') X { X c = FOLD (c); X X switch (c) X { X case '?': X if (*n == '\0') X return FNM_NOMATCH; X else if ((flags & FNM_FILE_NAME) && *n == '/') X return FNM_NOMATCH; X else if ((flags & FNM_PERIOD) && *n == '.' && X (n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/'))) X return FNM_NOMATCH; X break; X X case '\\': X if (!(flags & FNM_NOESCAPE)) X { X c = *p++; X if (c == '\0') X /* Trailing \ loses. */ X return FNM_NOMATCH; X c = FOLD (c); X } X if (FOLD (*n) != c) X return FNM_NOMATCH; X break; X X case '*': X if ((flags & FNM_PERIOD) && *n == '.' && X (n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/'))) X return FNM_NOMATCH; X X for (c = *p++; c == '?' || c == '*'; c = *p++) X { X if ((flags & FNM_FILE_NAME) && *n == '/') X /* A slash does not match a wildcard under FNM_FILE_NAME. */ X return FNM_NOMATCH; X else if (c == '?') X { X /* A ? needs to match one character. */ X if (*n == '\0') X /* There isn't another character; no match. */ X return FNM_NOMATCH; X else X /* One character of the string is consumed in matching X this ? wildcard, so *??? won't match if there are X less than three characters. */ X ++n; X } X } X X if (c == '\0') X return 0; X X { X char c1 = (!(flags & FNM_NOESCAPE) && c == '\\') ? *p : c; X c1 = FOLD (c1); X for (--p; *n != '\0'; ++n) X if ((c == '[' || FOLD (*n) == c1) && X fnmatch (p, n, flags & ~FNM_PERIOD) == 0) X return 0; X return FNM_NOMATCH; X } X X case '[': X { X /* Nonzero if the sense of the character class is inverted. */ X register int not; X X if (*n == '\0') X return FNM_NOMATCH; X X if ((flags & FNM_PERIOD) && *n == '.' && X (n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/'))) X return FNM_NOMATCH; X X not = (*p == '!' || *p == '^'); X if (not) X ++p; X X c = *p++; X for (;;) X { X register char cstart = c, cend = c; X X if (!(flags & FNM_NOESCAPE) && c == '\\') X { X if (*p == '\0') X return FNM_NOMATCH; X cstart = cend = *p++; X } X X cstart = cend = FOLD (cstart); X X if (c == '\0') X /* [ (unterminated) loses. */ X return FNM_NOMATCH; X X c = *p++; X c = FOLD (c); X X if ((flags & FNM_FILE_NAME) && c == '/') X /* [/] can never match. */ X return FNM_NOMATCH; X X if (c == '-' && *p != ']') X { X cend = *p++; X if (!(flags & FNM_NOESCAPE) && cend == '\\') X cend = *p++; X if (cend == '\0') X return FNM_NOMATCH; X cend = FOLD (cend); X X c = *p++; X } X X if (FOLD (*n) >= cstart && FOLD (*n) <= cend) X goto matched; X X if (c == ']') X break; X } X if (!not) X return FNM_NOMATCH; X break; X X matched:; X /* Skip the rest of the [...] that already matched. */ X while (c != ']') X { X if (c == '\0') X /* [... (unterminated) loses. */ X return FNM_NOMATCH; X X c = *p++; X if (!(flags & FNM_NOESCAPE) && c == '\\') X { X if (*p == '\0') X return FNM_NOMATCH; X /* XXX 1003.2d11 is unclear if this is right. */ X ++p; X } X } X if (not) X return FNM_NOMATCH; X } X break; X X default: X if (c != FOLD (*n)) X return FNM_NOMATCH; X } X X ++n; X } X X if (*n == '\0') X return 0; X X if ((flags & FNM_LEADING_DIR) && *n == '/') X /* The FNM_LEADING_DIR flag says that "foo*" matches "foobar/frobozz". */ X return 0; X X return FNM_NOMATCH; X # undef FOLD } X #endif /* _LIBC or not __GNU_LIBRARY__. */ SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/fnmatch.c' && chmod 0444 'tar-1.13/lib/fnmatch.c' || $echo 'restore of' 'tar-1.13/lib/fnmatch.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/fnmatch.c:' 'MD5 check failed' 844c94e69928f3e9c1548e2f6afed4b8 tar-1.13/lib/fnmatch.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/fnmatch.c'`" test 5663 -eq "$shar_count" || $echo 'tar-1.13/lib/fnmatch.c:' 'original size' '5663,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/ftruncate.c ============== if test -f 'tar-1.13/lib/ftruncate.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/ftruncate.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/ftruncate.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/ftruncate.c' && /* ftruncate emulations that work on some System V's. X This file is in the public domain. */ X #if HAVE_CONFIG_H # include #endif X #include #include X #ifdef F_CHSIZE X int ftruncate (int fd, off_t length) { X return fcntl (fd, F_CHSIZE, length); } X #else /* not F_CHSIZE */ # ifdef F_FREESP X /* By William Kucharski . */ X # include # include # if HAVE_UNISTD_H # include # endif X int ftruncate (int fd, off_t length) { X struct flock fl; X struct stat filebuf; X X if (fstat (fd, &filebuf) < 0) X return -1; X X if (filebuf.st_size < length) X { X /* Extend file length. */ X if (lseek (fd, (length - 1), SEEK_SET) < 0) X return -1; X X /* Write a "0" byte. */ X if (write (fd, "", 1) != 1) X return -1; X } X else X { X X /* Truncate length. */ X X fl.l_whence = 0; X fl.l_len = 0; X fl.l_start = length; X fl.l_type = F_WRLCK; /* write lock on file space */ X X /* This relies on the *undocumented* F_FREESP argument to fcntl, X which truncates the file so that it ends at the position X indicated by fl.l_start. Will minor miracles never cease? */ X X if (fcntl (fd, F_FREESP, &fl) < 0) X return -1; X } X X return 0; } X # else /* not F_CHSIZE nor F_FREESP */ # if HAVE_CHSIZE X int ftruncate (int fd, off_t length) { X return chsize (fd, length); } X # else /* not F_CHSIZE nor F_FREESP nor HAVE_CHSIZE */ X # include # ifndef errno extern int errno; # endif X int ftruncate (int fd, off_t length) { X errno = EIO; X return -1; } X # endif /* not HAVE_CHSIZE */ # endif /* not F_FREESP */ #endif /* not F_CHSIZE */ SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/ftruncate.c' && chmod 0444 'tar-1.13/lib/ftruncate.c' || $echo 'restore of' 'tar-1.13/lib/ftruncate.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/ftruncate.c:' 'MD5 check failed' 06e67ee19d1a7f703f87a5b2e1dc74c8 tar-1.13/lib/ftruncate.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/ftruncate.c'`" test 1676 -eq "$shar_count" || $echo 'tar-1.13/lib/ftruncate.c:' 'original size' '1676,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getdate.c ============== if test -f 'tar-1.13/lib/getdate.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getdate.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getdate.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getdate.c' && X /* A Bison parser, made from getdate.y X by GNU Bison version 1.28 */ X #define YYBISON 1 /* Identify Bison output. */ X #define tAGO 257 #define tDAY 258 #define tDAY_UNIT 259 #define tDAYZONE 260 #define tDST 261 #define tHOUR_UNIT 262 #define tID 263 #define tMERIDIAN 264 #define tMINUTE_UNIT 265 #define tMONTH 266 #define tMONTH_UNIT 267 #define tSEC_UNIT 268 #define tSNUMBER 269 #define tUNUMBER 270 #define tYEAR_UNIT 271 #define tZONE 272 X #line 1 "getdate.y" X /* ** Originally written by Steven M. Bellovin while ** at the University of North Carolina at Chapel Hill. Later tweaked by ** a couple of people on Usenet. Completely overhauled by Rich $alz ** and Jim Berets in August, 1990. ** ** This code is in the public domain and has no copyright. */ X #ifdef HAVE_CONFIG_H # include # ifdef HAVE_ALLOCA_H # include # endif #endif X /* Since the code of getdate.y is not included in the Emacs executable X itself, there is no need to #define static in this file. Even if X the code were included in the Emacs executable, it probably X wouldn't do any harm to #undef it here; this will only cause X problems if we try to write to a static variable, which I don't X think this code needs to do. */ #ifdef emacs # undef static #endif X #include #include X #if HAVE_STDLIB_H # include /* for `free'; used by Bison 1.27 */ #endif X #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) # define IN_CTYPE_DOMAIN(c) 1 #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif X #define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) #define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) #define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) #define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) X /* ISDIGIT differs from ISDIGIT_LOCALE, as follows: X - Its arg may be any int or unsigned int; it need not be an unsigned char. X - It's guaranteed to evaluate its argument exactly once. X - It's typically faster. X Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that X only '0' through '9' are digits. Prefer ISDIGIT to ISDIGIT_LOCALE unless X it's important to use the locale's definition of `digit' even when the X host does not conform to Posix. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) X #if defined (STDC_HEADERS) || defined (USG) # include #endif X #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif X #ifndef ATTRIBUTE_UNUSED # define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #endif X /* Some old versions of bison generate parsers that use bcopy. X That loses on systems that don't provide the function, so we have X to redefine it here. */ #if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) # define bcopy(from, to, len) memcpy ((to), (from), (len)) #endif X /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc), X as well as gratuitiously global symbol names, so we can have multiple X yacc generated parsers in the same program. Note that these are only X the variables produced by yacc. If other parser generators (bison, X byacc, etc) produce additional global names that conflict at link time, X then those parser generators need to be fixed instead of adding those X names to this list. */ X #define yymaxdepth gd_maxdepth #define yyparse gd_parse #define yylex gd_lex #define yyerror gd_error #define yylval gd_lval #define yychar gd_char #define yydebug gd_debug #define yypact gd_pact #define yyr1 gd_r1 #define yyr2 gd_r2 #define yydef gd_def #define yychk gd_chk #define yypgo gd_pgo #define yyact gd_act #define yyexca gd_exca #define yyerrflag gd_errflag #define yynerrs gd_nerrs #define yyps gd_ps #define yypv gd_pv #define yys gd_s #define yy_yys gd_yys #define yystate gd_state #define yytmp gd_tmp #define yyv gd_v #define yy_yyv gd_yyv #define yyval gd_val #define yylloc gd_lloc #define yyreds gd_reds /* With YYDEBUG defined */ #define yytoks gd_toks /* With YYDEBUG defined */ #define yylhs gd_yylhs #define yylen gd_yylen #define yydefred gd_yydefred #define yydgoto gd_yydgoto #define yysindex gd_yysindex #define yyrindex gd_yyrindex #define yygindex gd_yygindex #define yytable gd_yytable #define yycheck gd_yycheck X static int yylex (); static int yyerror (); X #define EPOCH 1970 #define HOUR(x) ((x) * 60) X #define MAX_BUFF_LEN 128 /* size of buffer to read the date into */ X /* ** An entry in the lexical lookup table. */ typedef struct _TABLE { X const char *name; X int type; X int value; } TABLE; X X /* ** Meridian: am, pm, or 24-hour style. */ typedef enum _MERIDIAN { X MERam, MERpm, MER24 } MERIDIAN; X X /* ** Global variables. We could get rid of most of these by using a good ** union as the yacc stack. (This routine was originally written before ** yacc had the %union construct.) Maybe someday; right now we only use ** the %union very rarely. */ static const char *yyInput; static int yyDayOrdinal; static int yyDayNumber; static int yyHaveDate; static int yyHaveDay; static int yyHaveRel; static int yyHaveTime; static int yyHaveZone; static int yyTimezone; static int yyDay; static int yyHour; static int yyMinutes; static int yyMonth; static int yySeconds; static int yyYear; static MERIDIAN yyMeridian; static int yyRelDay; static int yyRelHour; static int yyRelMinutes; static int yyRelMonth; static int yyRelSeconds; static int yyRelYear; X X #line 182 "getdate.y" typedef union { X int Number; X enum _MERIDIAN Meridian; } YYSTYPE; #include X #ifndef __cplusplus #ifndef __STDC__ #define const #endif #endif X X X #define YYFINAL 61 #define YYFLAG -32768 #define YYNTBASE 22 X #define YYTRANSLATE(x) ((unsigned)(x) <= 272 ? yytranslate[x] : 32) X static const char yytranslate[] = { 0, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 20, 2, 2, 21, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 19, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, X 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, X 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, X 17, 18 }; X #if YYDEBUG != 0 static const short yyprhs[] = { 0, X 0, 1, 4, 6, 8, 10, 12, 14, 16, 19, X 24, 29, 36, 43, 45, 47, 50, 52, 55, 58, X 62, 68, 72, 76, 79, 84, 87, 91, 94, 96, X 99, 102, 104, 107, 110, 112, 115, 118, 120, 123, X 126, 128, 131, 134, 136, 139, 142, 144, 146, 147 }; X static const short yyrhs[] = { -1, X 22, 23, 0, 24, 0, 25, 0, 27, 0, 26, X 0, 28, 0, 30, 0, 16, 10, 0, 16, 19, X 16, 31, 0, 16, 19, 16, 15, 0, 16, 19, X 16, 19, 16, 31, 0, 16, 19, 16, 19, 16, X 15, 0, 18, 0, 6, 0, 18, 7, 0, 4, X 0, 4, 20, 0, 16, 4, 0, 16, 21, 16, X 0, 16, 21, 16, 21, 16, 0, 16, 15, 15, X 0, 16, 12, 15, 0, 12, 16, 0, 12, 16, X 20, 16, 0, 16, 12, 0, 16, 12, 16, 0, X 29, 3, 0, 29, 0, 16, 17, 0, 15, 17, X 0, 17, 0, 16, 13, 0, 15, 13, 0, 13, X 0, 16, 5, 0, 15, 5, 0, 5, 0, 16, X 8, 0, 15, 8, 0, 8, 0, 16, 11, 0, X 15, 11, 0, 11, 0, 16, 14, 0, 15, 14, X 0, 14, 0, 16, 0, 0, 10, 0 }; X #endif X #if YYDEBUG != 0 static const short yyrline[] = { 0, X 198, 199, 202, 205, 208, 211, 214, 217, 220, 226, X 232, 241, 247, 259, 262, 265, 271, 275, 279, 285, X 289, 307, 313, 319, 323, 328, 332, 339, 347, 350, X 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, X 383, 386, 389, 392, 395, 398, 401, 406, 439, 443 }; #endif X X #if YYDEBUG != 0 || defined (YYERROR_VERBOSE) X static const char * const yytname[] = { "$","error","$undefined.","tAGO","tDAY", "tDAY_UNIT","tDAYZONE","tDST","tHOUR_UNIT","tID","tMERIDIAN","tMINUTE_UNIT", "tMONTH","tMONTH_UNIT","tSEC_UNIT","tSNUMBER","tUNUMBER","tYEAR_UNIT","tZONE", "':'","','","'/'","spec","item","time","zone","day","date","rel","relunit","number", "o_merid", NULL }; #endif X static const short yyr1[] = { 0, X 22, 22, 23, 23, 23, 23, 23, 23, 24, 24, X 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, X 27, 27, 27, 27, 27, 27, 27, 28, 28, 29, X 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, X 29, 29, 29, 29, 29, 29, 29, 30, 31, 31 }; X static const short yyr2[] = { 0, X 0, 2, 1, 1, 1, 1, 1, 1, 2, 4, X 4, 6, 6, 1, 1, 2, 1, 2, 2, 3, X 5, 3, 3, 2, 4, 2, 3, 2, 1, 2, X 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, X 1, 2, 2, 1, 2, 2, 1, 1, 0, 1 }; X static const short yydefact[] = { 1, X 0, 17, 38, 15, 41, 44, 0, 35, 47, 0, X 48, 32, 14, 2, 3, 4, 6, 5, 7, 29, X 8, 18, 24, 37, 40, 43, 34, 46, 31, 19, X 36, 39, 9, 42, 26, 33, 45, 0, 30, 0, X 0, 16, 28, 0, 23, 27, 22, 49, 20, 25, X 50, 11, 0, 10, 0, 49, 21, 13, 12, 0, X 0 }; X static const short yydefgoto[] = { 1, X 14, 15, 16, 17, 18, 19, 20, 21, 54 }; X static const short yypact[] = {-32768, X 0, -19,-32768,-32768,-32768,-32768, -13,-32768,-32768, 30, X 15,-32768, 14,-32768,-32768,-32768,-32768,-32768,-32768, 19, -32768,-32768, 4,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768, -6,-32768,-32768, 16,-32768, 17, X 23,-32768,-32768, 24,-32768,-32768,-32768, 27, 28,-32768, -32768,-32768, 29,-32768, 32, -8,-32768,-32768,-32768, 50, -32768 }; X static const short yypgoto[] = {-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -5 }; X X #define YYLAST 51 X X static const short yytable[] = { 60, X 22, 51, 23, 2, 3, 4, 58, 5, 45, 46, X 6, 7, 8, 9, 10, 11, 12, 13, 30, 31, X 42, 43, 32, 44, 33, 34, 35, 36, 37, 38, X 47, 39, 48, 40, 24, 41, 51, 25, 49, 50, X 26, 52, 27, 28, 56, 53, 29, 57, 55, 61, X 59 }; X static const short yycheck[] = { 0, X 20, 10, 16, 4, 5, 6, 15, 8, 15, 16, X 11, 12, 13, 14, 15, 16, 17, 18, 4, 5, X 7, 3, 8, 20, 10, 11, 12, 13, 14, 15, X 15, 17, 16, 19, 5, 21, 10, 8, 16, 16, X 11, 15, 13, 14, 16, 19, 17, 16, 21, 0, X 56 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line 3 "/opt/reb/share/bison.simple" /* This file comes from bison-1.28. */ X /* Skeleton output parser for bison, X Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software X Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X /* As a special exception, when this file is copied by Bison into a X Bison output file, you may use that output file without restriction. X This special exception was added by the Free Software Foundation X in version 1.24 of Bison. */ X /* This is the parser code that is written into each bison parser X when the %semantic_parser declaration is not specified in the grammar. X It was written by Richard Stallman by simplifying the hairy parser X used when %semantic_parser is specified. */ X #ifndef YYSTACK_USE_ALLOCA #ifdef alloca #define YYSTACK_USE_ALLOCA #else /* alloca not defined */ #ifdef __GNUC__ #define YYSTACK_USE_ALLOCA #define alloca __builtin_alloca #else /* not GNU C. */ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) #define YYSTACK_USE_ALLOCA #include #else /* not sparc */ /* We think this test detects Watcom and Microsoft C. */ /* This used to test MSDOS, but that is a bad idea X since that symbol is in the user namespace. */ #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) #if 0 /* No need for malloc.h, which pollutes the namespace; X instead, just don't use alloca. */ #include #endif #else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) /* I don't know what this was needed for, but it pollutes the namespace. X So I turned it off. rms, 2 May 1997. */ /* #include */ X #pragma alloca #define YYSTACK_USE_ALLOCA #else /* not MSDOS, or __TURBOC__, or _AIX */ #if 0 #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, X and on HPUX 10. Eventually we can turn this on. */ #define YYSTACK_USE_ALLOCA #define alloca __builtin_alloca #endif /* __hpux */ #endif #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc */ #endif /* not GNU C */ #endif /* alloca not defined */ #endif /* YYSTACK_USE_ALLOCA not defined */ X #ifdef YYSTACK_USE_ALLOCA #define YYSTACK_ALLOC alloca #else #define YYSTACK_ALLOC malloc #endif X /* Note: there must be only one dollar sign in this file. X It is replaced by the list of actions, each action X as one case of the switch. */ X #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY -2 #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 /* Like YYERROR except do call yyerror. X This remains here temporarily to ease the X transition to the new meaning of YYERROR, for GCC. X Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(token, value) \ do \ X if (yychar == YYEMPTY && yylen == 1) \ X { yychar = (token), yylval = (value); \ X yychar1 = YYTRANSLATE (yychar); \ X YYPOPSTACK; \ X goto yybackup; \ X } \ X else \ X { yyerror ("syntax error: cannot back up"); YYERROR; } \ while (0) X #define YYTERROR 1 #define YYERRCODE 256 X #ifndef YYPURE #define YYLEX yylex() #endif X #ifdef YYPURE #ifdef YYLSP_NEEDED #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) #else #define YYLEX yylex(&yylval, &yylloc) #endif #else /* not YYLSP_NEEDED */ #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, YYLEX_PARAM) #else #define YYLEX yylex(&yylval) #endif #endif /* not YYLSP_NEEDED */ #endif X /* If nonreentrant, generate the variables here */ X #ifndef YYPURE X int yychar; /* the lookahead symbol */ YYSTYPE yylval; /* the semantic value of the */ X /* lookahead symbol */ X #ifdef YYLSP_NEEDED YYLTYPE yylloc; /* location data for the lookahead */ X /* symbol */ #endif X int yynerrs; /* number of parse errors so far */ #endif /* not YYPURE */ X #if YYDEBUG != 0 int yydebug; /* nonzero means print parse trace */ /* Since this is uninitialized, it does not stop multiple parsers X from coexisting. */ #endif X /* YYINITDEPTH indicates the initial size of the parser's stacks */ X #ifndef YYINITDEPTH #define YYINITDEPTH 200 #endif X /* YYMAXDEPTH is the maximum size the stacks can grow to X (effective only if the built-in stack extension method is used). */ X #if YYMAXDEPTH == 0 #undef YYMAXDEPTH #endif X #ifndef YYMAXDEPTH #define YYMAXDEPTH 10000 #endif X /* Define __yy_memcpy. Note that the size argument X should be passed with type unsigned int, because that is what the non-GCC X definitions require. With GCC, __builtin_memcpy takes an arg X of type size_t, but it can handle unsigned int. */ X #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) #else /* not GNU C or C++ */ #ifndef __cplusplus X /* This is the most reliable way to avoid incompatibilities X in available built-in functions on various systems. */ static void __yy_memcpy (to, from, count) X char *to; X char *from; X unsigned int count; { X register char *f = from; X register char *t = to; X register int i = count; X X while (i-- > 0) X *t++ = *f++; } X #else /* __cplusplus */ X /* This is the most reliable way to avoid incompatibilities X in available built-in functions on various systems. */ static void __yy_memcpy (char *to, char *from, unsigned int count) { X register char *t = to; X register char *f = from; X register int i = count; X X while (i-- > 0) X *t++ = *f++; } X #endif #endif X #line 217 "/opt/reb/share/bison.simple" X /* The user can define YYPARSE_PARAM as the name of an argument to be passed X into yyparse. The argument should have type void *. X It should actually point to an object. X Grammar actions can access the variable by casting it X to the proper pointer type. */ X #ifdef YYPARSE_PARAM #ifdef __cplusplus #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM #define YYPARSE_PARAM_DECL #else /* not __cplusplus */ #define YYPARSE_PARAM_ARG YYPARSE_PARAM #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #endif /* not __cplusplus */ #else /* not YYPARSE_PARAM */ #define YYPARSE_PARAM_ARG #define YYPARSE_PARAM_DECL #endif /* not YYPARSE_PARAM */ X /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ #ifdef YYPARSE_PARAM int yyparse (void *); #else int yyparse (void); #endif #endif X int yyparse(YYPARSE_PARAM_ARG) X YYPARSE_PARAM_DECL { X register int yystate; X register int yyn; X register short *yyssp; X register YYSTYPE *yyvsp; X int yyerrstatus; /* number of tokens to shift before error messages enabled */ X int yychar1 = 0; /* lookahead token as an internal (translated) token number */ X X short yyssa[YYINITDEPTH]; /* the state stack */ X YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ X X short *yyss = yyssa; /* refer to the stacks thru separate pointers */ X YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ X #ifdef YYLSP_NEEDED X YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ X YYLTYPE *yyls = yylsa; X YYLTYPE *yylsp; X #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else #define YYPOPSTACK (yyvsp--, yyssp--) #endif X X int yystacksize = YYINITDEPTH; X int yyfree_stacks = 0; X #ifdef YYPURE X int yychar; X YYSTYPE yylval; X int yynerrs; #ifdef YYLSP_NEEDED X YYLTYPE yylloc; #endif #endif X X YYSTYPE yyval; /* the variable used to return */ X /* semantic values from the action */ X /* routines */ X X int yylen; X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Starting parse\n"); #endif X X yystate = 0; X yyerrstatus = 0; X yynerrs = 0; X yychar = YYEMPTY; /* Cause a token to be read. */ X X /* Initialize stack pointers. X Waste one element of value and location stack X so that they stay on the same level as the state stack. X The wasted elements are never initialized. */ X X yyssp = yyss - 1; X yyvsp = yyvs; #ifdef YYLSP_NEEDED X yylsp = yyls; #endif X /* Push a new state, which is found in yystate . */ /* In all cases, when you get here, the value and location stacks X have just been pushed. so pushing a state here evens the stacks. */ yynewstate: X X *++yyssp = yystate; X X if (yyssp >= yyss + yystacksize - 1) X { X /* Give user a chance to reallocate the stack */ X /* Use copies of these so that the &'s don't force the real ones into memory. */ X YYSTYPE *yyvs1 = yyvs; X short *yyss1 = yyss; #ifdef YYLSP_NEEDED X YYLTYPE *yyls1 = yyls; #endif X X /* Get the current used size of the three stacks, in elements. */ X int size = yyssp - yyss + 1; X #ifdef yyoverflow X /* Each stack pointer address is followed by the size of X the data in use in that stack, in bytes. */ #ifdef YYLSP_NEEDED X /* This used to be a conditional around just the two extra args, X but that might be undefined if yyoverflow is a macro. */ X yyoverflow("parser stack overflow", X &yyss1, size * sizeof (*yyssp), X &yyvs1, size * sizeof (*yyvsp), X &yyls1, size * sizeof (*yylsp), X &yystacksize); #else X yyoverflow("parser stack overflow", X &yyss1, size * sizeof (*yyssp), X &yyvs1, size * sizeof (*yyvsp), X &yystacksize); #endif X X yyss = yyss1; yyvs = yyvs1; #ifdef YYLSP_NEEDED X yyls = yyls1; #endif #else /* no yyoverflow */ X /* Extend the stack our own way. */ X if (yystacksize >= YYMAXDEPTH) X { X yyerror("parser stack overflow"); X if (yyfree_stacks) X { X free (yyss); X free (yyvs); #ifdef YYLSP_NEEDED X free (yyls); #endif X } X return 2; X } X yystacksize *= 2; X if (yystacksize > YYMAXDEPTH) X yystacksize = YYMAXDEPTH; #ifndef YYSTACK_USE_ALLOCA X yyfree_stacks = 1; #endif X yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); X __yy_memcpy ((char *)yyss, (char *)yyss1, X size * (unsigned int) sizeof (*yyssp)); X yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); X __yy_memcpy ((char *)yyvs, (char *)yyvs1, X size * (unsigned int) sizeof (*yyvsp)); #ifdef YYLSP_NEEDED X yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); X __yy_memcpy ((char *)yyls, (char *)yyls1, X size * (unsigned int) sizeof (*yylsp)); #endif #endif /* no yyoverflow */ X X yyssp = yyss + size - 1; X yyvsp = yyvs + size - 1; #ifdef YYLSP_NEEDED X yylsp = yyls + size - 1; #endif X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Stack size increased to %d\n", yystacksize); #endif X X if (yyssp >= yyss + yystacksize - 1) X YYABORT; X } X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Entering state %d\n", yystate); #endif X X goto yybackup; X yybackup: X /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* yyresume: */ X X /* First try to decide what to do without reference to lookahead token. */ X X yyn = yypact[yystate]; X if (yyn == YYFLAG) X goto yydefault; X X /* Not known => get a lookahead token if don't already have one. */ X X /* yychar is either YYEMPTY or YYEOF X or a valid token in external form. */ X X if (yychar == YYEMPTY) X { #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Reading a token: "); #endif X yychar = YYLEX; X } X X /* Convert token to internal form (in yychar1) for indexing tables with */ X X if (yychar <= 0) /* This means end of input. */ X { X yychar1 = 0; X yychar = YYEOF; /* Don't call YYLEX any more */ X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Now at end of input.\n"); #endif X } X else X { X yychar1 = YYTRANSLATE(yychar); X #if YYDEBUG != 0 X if (yydebug) X { X fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); X /* Give the individual parser a way to print the precise meaning X of a token, for further debugging info. */ #ifdef YYPRINT X YYPRINT (stderr, yychar, yylval); #endif X fprintf (stderr, ")\n"); X } #endif X } X X yyn += yychar1; X if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) X goto yydefault; X X yyn = yytable[yyn]; X X /* yyn is what to do for this token type in this state. X Negative => reduce, -yyn is rule number. X Positive => shift, yyn is new state. X New state is final state => don't bother to shift, X just return success. X 0, or most negative number => error. */ X X if (yyn < 0) X { X if (yyn == YYFLAG) X goto yyerrlab; X yyn = -yyn; X goto yyreduce; X } X else if (yyn == 0) X goto yyerrlab; X X if (yyn == YYFINAL) X YYACCEPT; X X /* Shift the lookahead token. */ X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); #endif X X /* Discard the token being shifted unless it is eof. */ X if (yychar != YYEOF) X yychar = YYEMPTY; X X *++yyvsp = yylval; #ifdef YYLSP_NEEDED X *++yylsp = yylloc; #endif X X /* count tokens shifted since error; after three, turn off error status. */ X if (yyerrstatus) yyerrstatus--; X X yystate = yyn; X goto yynewstate; X /* Do the default action for the current state. */ yydefault: X X yyn = yydefact[yystate]; X if (yyn == 0) X goto yyerrlab; X /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: X yylen = yyr2[yyn]; X if (yylen > 0) X yyval = yyvsp[1-yylen]; /* implement default value of the action */ X #if YYDEBUG != 0 X if (yydebug) X { X int i; X X fprintf (stderr, "Reducing via rule %d (line %d), ", X yyn, yyrline[yyn]); X X /* Print the symbols being reduced, and their result. */ X for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) X fprintf (stderr, "%s ", yytname[yyrhs[i]]); X fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); X } #endif X X X switch (yyn) { X case 3: #line 202 "getdate.y" { X yyHaveTime++; X ; X break;} case 4: #line 205 "getdate.y" { X yyHaveZone++; X ; X break;} case 5: #line 208 "getdate.y" { X yyHaveDate++; X ; X break;} case 6: #line 211 "getdate.y" { X yyHaveDay++; X ; X break;} case 7: #line 214 "getdate.y" { X yyHaveRel++; X ; X break;} case 9: #line 220 "getdate.y" { X yyHour = yyvsp[-1].Number; X yyMinutes = 0; X yySeconds = 0; X yyMeridian = yyvsp[0].Meridian; X ; X break;} case 10: #line 226 "getdate.y" { X yyHour = yyvsp[-3].Number; X yyMinutes = yyvsp[-1].Number; X yySeconds = 0; X yyMeridian = yyvsp[0].Meridian; X ; X break;} case 11: #line 232 "getdate.y" { X yyHour = yyvsp[-3].Number; X yyMinutes = yyvsp[-1].Number; X yyMeridian = MER24; X yyHaveZone++; X yyTimezone = (yyvsp[0].Number < 0 X ? -yyvsp[0].Number % 100 + (-yyvsp[0].Number / 100) * 60 X : - (yyvsp[0].Number % 100 + (yyvsp[0].Number / 100) * 60)); X ; X break;} case 12: #line 241 "getdate.y" { X yyHour = yyvsp[-5].Number; X yyMinutes = yyvsp[-3].Number; X yySeconds = yyvsp[-1].Number; X yyMeridian = yyvsp[0].Meridian; X ; X break;} case 13: #line 247 "getdate.y" { X yyHour = yyvsp[-5].Number; X yyMinutes = yyvsp[-3].Number; X yySeconds = yyvsp[-1].Number; X yyMeridian = MER24; X yyHaveZone++; X yyTimezone = (yyvsp[0].Number < 0 X ? -yyvsp[0].Number % 100 + (-yyvsp[0].Number / 100) * 60 X : - (yyvsp[0].Number % 100 + (yyvsp[0].Number / 100) * 60)); X ; X break;} case 14: #line 259 "getdate.y" { X yyTimezone = yyvsp[0].Number; X ; X break;} case 15: #line 262 "getdate.y" { X yyTimezone = yyvsp[0].Number - 60; X ; X break;} case 16: #line 266 "getdate.y" { X yyTimezone = yyvsp[-1].Number - 60; X ; X break;} case 17: #line 271 "getdate.y" { X yyDayOrdinal = 1; X yyDayNumber = yyvsp[0].Number; X ; X break;} case 18: #line 275 "getdate.y" { X yyDayOrdinal = 1; X yyDayNumber = yyvsp[-1].Number; X ; X break;} case 19: #line 279 "getdate.y" { X yyDayOrdinal = yyvsp[-1].Number; X yyDayNumber = yyvsp[0].Number; X ; X break;} case 20: #line 285 "getdate.y" { X yyMonth = yyvsp[-2].Number; X yyDay = yyvsp[0].Number; X ; X break;} case 21: #line 289 "getdate.y" { X /* Interpret as YYYY/MM/DD if $1 >= 1000, otherwise as MM/DD/YY. X The goal in recognizing YYYY/MM/DD is solely to support legacy X machine-generated dates like those in an RCS log listing. If X you want portability, use the ISO 8601 format. */ X if (yyvsp[-4].Number >= 1000) X { X yyYear = yyvsp[-4].Number; X yyMonth = yyvsp[-2].Number; X yyDay = yyvsp[0].Number; X } X else X { X yyMonth = yyvsp[-4].Number; X yyDay = yyvsp[-2].Number; X yyYear = yyvsp[0].Number; X } X ; X break;} case 22: #line 307 "getdate.y" { X /* ISO 8601 format. yyyy-mm-dd. */ X yyYear = yyvsp[-2].Number; X yyMonth = -yyvsp[-1].Number; X yyDay = -yyvsp[0].Number; X ; X break;} case 23: #line 313 "getdate.y" { X /* e.g. 17-JUN-1992. */ X yyDay = yyvsp[-2].Number; X yyMonth = yyvsp[-1].Number; X yyYear = -yyvsp[0].Number; X ; X break;} case 24: #line 319 "getdate.y" { X yyMonth = yyvsp[-1].Number; X yyDay = yyvsp[0].Number; X ; X break;} case 25: #line 323 "getdate.y" { X yyMonth = yyvsp[-3].Number; X yyDay = yyvsp[-2].Number; X yyYear = yyvsp[0].Number; X ; X break;} case 26: #line 328 "getdate.y" { X yyMonth = yyvsp[0].Number; X yyDay = yyvsp[-1].Number; X ; X break;} case 27: #line 332 "getdate.y" { X yyMonth = yyvsp[-1].Number; X yyDay = yyvsp[-2].Number; X yyYear = yyvsp[0].Number; X ; X break;} case 28: #line 339 "getdate.y" { X yyRelSeconds = -yyRelSeconds; X yyRelMinutes = -yyRelMinutes; X yyRelHour = -yyRelHour; X yyRelDay = -yyRelDay; X yyRelMonth = -yyRelMonth; X yyRelYear = -yyRelYear; X ; X break;} case 30: #line 350 "getdate.y" { X yyRelYear += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 31: #line 353 "getdate.y" { X yyRelYear += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 32: #line 356 "getdate.y" { X yyRelYear += yyvsp[0].Number; X ; X break;} case 33: #line 359 "getdate.y" { X yyRelMonth += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 34: #line 362 "getdate.y" { X yyRelMonth += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 35: #line 365 "getdate.y" { X yyRelMonth += yyvsp[0].Number; X ; X break;} case 36: #line 368 "getdate.y" { X yyRelDay += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 37: #line 371 "getdate.y" { X yyRelDay += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 38: #line 374 "getdate.y" { X yyRelDay += yyvsp[0].Number; X ; X break;} case 39: #line 377 "getdate.y" { X yyRelHour += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 40: #line 380 "getdate.y" { X yyRelHour += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 41: #line 383 "getdate.y" { X yyRelHour += yyvsp[0].Number; X ; X break;} case 42: #line 386 "getdate.y" { X yyRelMinutes += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 43: #line 389 "getdate.y" { X yyRelMinutes += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 44: #line 392 "getdate.y" { X yyRelMinutes += yyvsp[0].Number; X ; X break;} case 45: #line 395 "getdate.y" { X yyRelSeconds += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 46: #line 398 "getdate.y" { X yyRelSeconds += yyvsp[-1].Number * yyvsp[0].Number; X ; X break;} case 47: #line 401 "getdate.y" { X yyRelSeconds += yyvsp[0].Number; X ; X break;} case 48: #line 407 "getdate.y" { X if (yyHaveTime && yyHaveDate && !yyHaveRel) X yyYear = yyvsp[0].Number; X else X { X if (yyvsp[0].Number>10000) X { X yyHaveDate++; X yyDay= (yyvsp[0].Number)%100; X yyMonth= (yyvsp[0].Number/100)%100; X yyYear = yyvsp[0].Number/10000; X } X else X { X yyHaveTime++; X if (yyvsp[0].Number < 100) X { X yyHour = yyvsp[0].Number; X yyMinutes = 0; X } X else X { X yyHour = yyvsp[0].Number / 100; X yyMinutes = yyvsp[0].Number % 100; X } X yySeconds = 0; X yyMeridian = MER24; X } X } X ; X break;} case 49: #line 440 "getdate.y" { X yyval.Meridian = MER24; X ; X break;} case 50: #line 444 "getdate.y" { X yyval.Meridian = yyvsp[0].Meridian; X ; X break;} } X /* the action file gets copied in in place of this dollarsign */ #line 543 "/opt/reb/share/bison.simple" X X yyvsp -= yylen; X yyssp -= yylen; #ifdef YYLSP_NEEDED X yylsp -= yylen; #endif X #if YYDEBUG != 0 X if (yydebug) X { X short *ssp1 = yyss - 1; X fprintf (stderr, "state stack now"); X while (ssp1 != yyssp) X fprintf (stderr, " %d", *++ssp1); X fprintf (stderr, "\n"); X } #endif X X *++yyvsp = yyval; X #ifdef YYLSP_NEEDED X yylsp++; X if (yylen == 0) X { X yylsp->first_line = yylloc.first_line; X yylsp->first_column = yylloc.first_column; X yylsp->last_line = (yylsp-1)->last_line; X yylsp->last_column = (yylsp-1)->last_column; X yylsp->text = 0; X } X else X { X yylsp->last_line = (yylsp+yylen-1)->last_line; X yylsp->last_column = (yylsp+yylen-1)->last_column; X } #endif X X /* Now "shift" the result of the reduction. X Determine what state that goes to, X based on the state we popped back to X and the rule number reduced by. */ X X yyn = yyr1[yyn]; X X yystate = yypgoto[yyn - YYNTBASE] + *yyssp; X if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) X yystate = yytable[yystate]; X else X yystate = yydefgoto[yyn - YYNTBASE]; X X goto yynewstate; X yyerrlab: /* here on detecting error */ X X if (! yyerrstatus) X /* If not already recovering from an error, report this error. */ X { X ++yynerrs; X #ifdef YYERROR_VERBOSE X yyn = yypact[yystate]; X X if (yyn > YYFLAG && yyn < YYLAST) X { X int size = 0; X char *msg; X int x, count; X X count = 0; X /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ X for (x = (yyn < 0 ? -yyn : 0); X x < (sizeof(yytname) / sizeof(char *)); x++) X if (yycheck[x + yyn] == x) X size += strlen(yytname[x]) + 15, count++; X msg = (char *) malloc(size + 15); X if (msg != 0) X { X strcpy(msg, "parse error"); X X if (count < 5) X { X count = 0; X for (x = (yyn < 0 ? -yyn : 0); X x < (sizeof(yytname) / sizeof(char *)); x++) X if (yycheck[x + yyn] == x) X { X strcat(msg, count == 0 ? ", expecting `" : " or `"); X strcat(msg, yytname[x]); X strcat(msg, "'"); X count++; X } X } X yyerror(msg); X free(msg); X } X else X yyerror ("parse error; also virtual memory exceeded"); X } X else #endif /* YYERROR_VERBOSE */ X yyerror("parse error"); X } X X goto yyerrlab1; yyerrlab1: /* here on error raised explicitly by an action */ X X if (yyerrstatus == 3) X { X /* if just tried and failed to reuse lookahead token after an error, discard it. */ X X /* return failure if at end of input */ X if (yychar == YYEOF) X YYABORT; X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); #endif X X yychar = YYEMPTY; X } X X /* Else will try to reuse lookahead token X after shifting the error token. */ X X yyerrstatus = 3; /* Each real token shifted decrements this */ X X goto yyerrhandle; X yyerrdefault: /* current state does not do anything special for the error token. */ X #if 0 X /* This is wrong; only states that explicitly want error tokens X should shift them. */ X yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ X if (yyn) goto yydefault; #endif X yyerrpop: /* pop the current state because it cannot handle the error token */ X X if (yyssp == yyss) YYABORT; X yyvsp--; X yystate = *--yyssp; #ifdef YYLSP_NEEDED X yylsp--; #endif X #if YYDEBUG != 0 X if (yydebug) X { X short *ssp1 = yyss - 1; X fprintf (stderr, "Error: state stack now"); X while (ssp1 != yyssp) X fprintf (stderr, " %d", *++ssp1); X fprintf (stderr, "\n"); X } #endif X yyerrhandle: X X yyn = yypact[yystate]; X if (yyn == YYFLAG) X goto yyerrdefault; X X yyn += YYTERROR; X if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) X goto yyerrdefault; X X yyn = yytable[yyn]; X if (yyn < 0) X { X if (yyn == YYFLAG) X goto yyerrpop; X yyn = -yyn; X goto yyreduce; X } X else if (yyn == 0) X goto yyerrpop; X X if (yyn == YYFINAL) X YYACCEPT; X #if YYDEBUG != 0 X if (yydebug) X fprintf(stderr, "Shifting error token, "); #endif X X *++yyvsp = yylval; #ifdef YYLSP_NEEDED X *++yylsp = yylloc; #endif X X yystate = yyn; X goto yynewstate; X X yyacceptlab: X /* YYACCEPT comes here. */ X if (yyfree_stacks) X { X free (yyss); X free (yyvs); #ifdef YYLSP_NEEDED X free (yyls); #endif X } X return 0; X X yyabortlab: X /* YYABORT comes here. */ X if (yyfree_stacks) X { X free (yyss); X free (yyvs); #ifdef YYLSP_NEEDED X free (yyls); #endif X } X return 1; } #line 449 "getdate.y" X X /* Include this file down here because bison inserts code above which X may define-away `const'. We want the prototype for get_date to have X the same signature as the function definition does. */ #include "getdate.h" X extern struct tm *gmtime (); extern struct tm *localtime (); extern time_t mktime (); X /* Month and day table. */ static TABLE const MonthDayTable[] = { X { "january", tMONTH, 1 }, X { "february", tMONTH, 2 }, X { "march", tMONTH, 3 }, X { "april", tMONTH, 4 }, X { "may", tMONTH, 5 }, X { "june", tMONTH, 6 }, X { "july", tMONTH, 7 }, X { "august", tMONTH, 8 }, X { "september", tMONTH, 9 }, X { "sept", tMONTH, 9 }, X { "october", tMONTH, 10 }, X { "november", tMONTH, 11 }, X { "december", tMONTH, 12 }, X { "sunday", tDAY, 0 }, X { "monday", tDAY, 1 }, X { "tuesday", tDAY, 2 }, X { "tues", tDAY, 2 }, X { "wednesday", tDAY, 3 }, X { "wednes", tDAY, 3 }, X { "thursday", tDAY, 4 }, X { "thur", tDAY, 4 }, X { "thurs", tDAY, 4 }, X { "friday", tDAY, 5 }, X { "saturday", tDAY, 6 }, X { NULL, 0, 0 } }; X /* Time units table. */ static TABLE const UnitsTable[] = { X { "year", tYEAR_UNIT, 1 }, X { "month", tMONTH_UNIT, 1 }, X { "fortnight", tDAY_UNIT, 14 }, X { "week", tDAY_UNIT, 7 }, X { "day", tDAY_UNIT, 1 }, X { "hour", tHOUR_UNIT, 1 }, X { "minute", tMINUTE_UNIT, 1 }, X { "min", tMINUTE_UNIT, 1 }, X { "second", tSEC_UNIT, 1 }, X { "sec", tSEC_UNIT, 1 }, X { NULL, 0, 0 } }; X /* Assorted relative-time words. */ static TABLE const OtherTable[] = { X { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 }, X { "yesterday", tMINUTE_UNIT, -1 * 24 * 60 }, X { "today", tMINUTE_UNIT, 0 }, X { "now", tMINUTE_UNIT, 0 }, X { "last", tUNUMBER, -1 }, X { "this", tMINUTE_UNIT, 0 }, X { "next", tUNUMBER, 1 }, X { "first", tUNUMBER, 1 }, /* { "second", tUNUMBER, 2 }, */ X { "third", tUNUMBER, 3 }, X { "fourth", tUNUMBER, 4 }, X { "fifth", tUNUMBER, 5 }, X { "sixth", tUNUMBER, 6 }, X { "seventh", tUNUMBER, 7 }, X { "eighth", tUNUMBER, 8 }, X { "ninth", tUNUMBER, 9 }, X { "tenth", tUNUMBER, 10 }, X { "eleventh", tUNUMBER, 11 }, X { "twelfth", tUNUMBER, 12 }, X { "ago", tAGO, 1 }, X { NULL, 0, 0 } }; X /* The timezone table. */ static TABLE const TimezoneTable[] = { X { "gmt", tZONE, HOUR ( 0) }, /* Greenwich Mean */ X { "ut", tZONE, HOUR ( 0) }, /* Universal (Coordinated) */ X { "utc", tZONE, HOUR ( 0) }, X { "wet", tZONE, HOUR ( 0) }, /* Western European */ X { "bst", tDAYZONE, HOUR ( 0) }, /* British Summer */ X { "wat", tZONE, HOUR ( 1) }, /* West Africa */ X { "at", tZONE, HOUR ( 2) }, /* Azores */ #if 0 X /* For completeness. BST is also British Summer, and GST is X * also Guam Standard. */ X { "bst", tZONE, HOUR ( 3) }, /* Brazil Standard */ X { "gst", tZONE, HOUR ( 3) }, /* Greenland Standard */ #endif #if 0 X { "nft", tZONE, HOUR (3.5) }, /* Newfoundland */ X { "nst", tZONE, HOUR (3.5) }, /* Newfoundland Standard */ X { "ndt", tDAYZONE, HOUR (3.5) }, /* Newfoundland Daylight */ #endif X { "ast", tZONE, HOUR ( 4) }, /* Atlantic Standard */ X { "adt", tDAYZONE, HOUR ( 4) }, /* Atlantic Daylight */ X { "est", tZONE, HOUR ( 5) }, /* Eastern Standard */ X { "edt", tDAYZONE, HOUR ( 5) }, /* Eastern Daylight */ X { "cst", tZONE, HOUR ( 6) }, /* Central Standard */ X { "cdt", tDAYZONE, HOUR ( 6) }, /* Central Daylight */ X { "mst", tZONE, HOUR ( 7) }, /* Mountain Standard */ X { "mdt", tDAYZONE, HOUR ( 7) }, /* Mountain Daylight */ X { "pst", tZONE, HOUR ( 8) }, /* Pacific Standard */ X { "pdt", tDAYZONE, HOUR ( 8) }, /* Pacific Daylight */ X { "yst", tZONE, HOUR ( 9) }, /* Yukon Standard */ X { "ydt", tDAYZONE, HOUR ( 9) }, /* Yukon Daylight */ X { "hst", tZONE, HOUR (10) }, /* Hawaii Standard */ X { "hdt", tDAYZONE, HOUR (10) }, /* Hawaii Daylight */ X { "cat", tZONE, HOUR (10) }, /* Central Alaska */ X { "ahst", tZONE, HOUR (10) }, /* Alaska-Hawaii Standard */ X { "nt", tZONE, HOUR (11) }, /* Nome */ X { "idlw", tZONE, HOUR (12) }, /* International Date Line West */ X { "cet", tZONE, -HOUR (1) }, /* Central European */ X { "met", tZONE, -HOUR (1) }, /* Middle European */ X { "mewt", tZONE, -HOUR (1) }, /* Middle European Winter */ X { "mest", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ X { "mesz", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ X { "swt", tZONE, -HOUR (1) }, /* Swedish Winter */ X { "sst", tDAYZONE, -HOUR (1) }, /* Swedish Summer */ X { "fwt", tZONE, -HOUR (1) }, /* French Winter */ X { "fst", tDAYZONE, -HOUR (1) }, /* French Summer */ X { "eet", tZONE, -HOUR (2) }, /* Eastern Europe, USSR Zone 1 */ X { "bt", tZONE, -HOUR (3) }, /* Baghdad, USSR Zone 2 */ #if 0 X { "it", tZONE, -HOUR (3.5) },/* Iran */ #endif X { "zp4", tZONE, -HOUR (4) }, /* USSR Zone 3 */ X { "zp5", tZONE, -HOUR (5) }, /* USSR Zone 4 */ #if 0 X { "ist", tZONE, -HOUR (5.5) },/* Indian Standard */ #endif X { "zp6", tZONE, -HOUR (6) }, /* USSR Zone 5 */ #if 0 X /* For completeness. NST is also Newfoundland Standard, and SST is X * also Swedish Summer. */ X { "nst", tZONE, -HOUR (6.5) },/* North Sumatra */ X { "sst", tZONE, -HOUR (7) }, /* South Sumatra, USSR Zone 6 */ #endif /* 0 */ X { "wast", tZONE, -HOUR (7) }, /* West Australian Standard */ X { "wadt", tDAYZONE, -HOUR (7) }, /* West Australian Daylight */ #if 0 X { "jt", tZONE, -HOUR (7.5) },/* Java (3pm in Cronusland!) */ #endif X { "cct", tZONE, -HOUR (8) }, /* China Coast, USSR Zone 7 */ X { "jst", tZONE, -HOUR (9) }, /* Japan Standard, USSR Zone 8 */ #if 0 X { "cast", tZONE, -HOUR (9.5) },/* Central Australian Standard */ X { "cadt", tDAYZONE, -HOUR (9.5) },/* Central Australian Daylight */ #endif X { "east", tZONE, -HOUR (10) }, /* Eastern Australian Standard */ X { "eadt", tDAYZONE, -HOUR (10) }, /* Eastern Australian Daylight */ X { "gst", tZONE, -HOUR (10) }, /* Guam Standard, USSR Zone 9 */ X { "nzt", tZONE, -HOUR (12) }, /* New Zealand */ X { "nzst", tZONE, -HOUR (12) }, /* New Zealand Standard */ X { "nzdt", tDAYZONE, -HOUR (12) }, /* New Zealand Daylight */ X { "idle", tZONE, -HOUR (12) }, /* International Date Line East */ X { NULL, 0, 0 } }; X /* Military timezone table. */ static TABLE const MilitaryTable[] = { X { "a", tZONE, HOUR ( 1) }, X { "b", tZONE, HOUR ( 2) }, X { "c", tZONE, HOUR ( 3) }, X { "d", tZONE, HOUR ( 4) }, X { "e", tZONE, HOUR ( 5) }, X { "f", tZONE, HOUR ( 6) }, X { "g", tZONE, HOUR ( 7) }, X { "h", tZONE, HOUR ( 8) }, X { "i", tZONE, HOUR ( 9) }, X { "k", tZONE, HOUR ( 10) }, X { "l", tZONE, HOUR ( 11) }, X { "m", tZONE, HOUR ( 12) }, X { "n", tZONE, HOUR (- 1) }, X { "o", tZONE, HOUR (- 2) }, X { "p", tZONE, HOUR (- 3) }, X { "q", tZONE, HOUR (- 4) }, X { "r", tZONE, HOUR (- 5) }, X { "s", tZONE, HOUR (- 6) }, X { "t", tZONE, HOUR (- 7) }, X { "u", tZONE, HOUR (- 8) }, X { "v", tZONE, HOUR (- 9) }, X { "w", tZONE, HOUR (-10) }, X { "x", tZONE, HOUR (-11) }, X { "y", tZONE, HOUR (-12) }, X { "z", tZONE, HOUR ( 0) }, X { NULL, 0, 0 } }; X X X X /* ARGSUSED */ static int yyerror (s) X char *s ATTRIBUTE_UNUSED; { X return 0; } X static int ToHour (Hours, Meridian) X int Hours; X MERIDIAN Meridian; { X switch (Meridian) X { X case MER24: X if (Hours < 0 || Hours > 23) X return -1; X return Hours; X case MERam: X if (Hours < 1 || Hours > 12) X return -1; X if (Hours == 12) X Hours = 0; X return Hours; X case MERpm: X if (Hours < 1 || Hours > 12) X return -1; X if (Hours == 12) X Hours = 0; X return Hours + 12; X default: X abort (); X } X /* NOTREACHED */ } X static int ToYear (Year) X int Year; { X if (Year < 0) X Year = -Year; X X /* XPG4 suggests that years 00-68 map to 2000-2068, and X years 69-99 map to 1969-1999. */ X if (Year < 69) X Year += 2000; X else if (Year < 100) X Year += 1900; X X return Year; } X static int LookupWord (buff) X char *buff; { X register char *p; X register char *q; X register const TABLE *tp; X int i; X int abbrev; X X /* Make it lowercase. */ X for (p = buff; *p; p++) X if (ISUPPER ((unsigned char) *p)) X *p = tolower (*p); X X if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0) X { X yylval.Meridian = MERam; X return tMERIDIAN; X } X if (strcmp (buff, "pm") == 0 || strcmp (buff, "p.m.") == 0) X { X yylval.Meridian = MERpm; X return tMERIDIAN; X } X X /* See if we have an abbreviation for a month. */ X if (strlen (buff) == 3) X abbrev = 1; X else if (strlen (buff) == 4 && buff[3] == '.') X { X abbrev = 1; X buff[3] = '\0'; X } X else X abbrev = 0; X X for (tp = MonthDayTable; tp->name; tp++) X { X if (abbrev) X { X if (strncmp (buff, tp->name, 3) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X } X else if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X } X X for (tp = TimezoneTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X if (strcmp (buff, "dst") == 0) X return tDST; X X for (tp = UnitsTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X /* Strip off any plural and try the units table again. */ X i = strlen (buff) - 1; X if (buff[i] == 's') X { X buff[i] = '\0'; X for (tp = UnitsTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X buff[i] = 's'; /* Put back for "this" in OtherTable. */ X } X X for (tp = OtherTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X /* Military timezones. */ X if (buff[1] == '\0' && ISALPHA ((unsigned char) *buff)) X { X for (tp = MilitaryTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X } X X /* Drop out any periods and try the timezone table again. */ X for (i = 0, p = q = buff; *q; q++) X if (*q != '.') X *p++ = *q; X else X i++; X *p = '\0'; X if (i) X for (tp = TimezoneTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X return tID; } X static int yylex () { X register unsigned char c; X register char *p; X char buff[20]; X int Count; X int sign; X X for (;;) X { X while (ISSPACE ((unsigned char) *yyInput)) X yyInput++; X X if (ISDIGIT (c = *yyInput) || c == '-' || c == '+') X { X if (c == '-' || c == '+') X { X sign = c == '-' ? -1 : 1; X if (!ISDIGIT (*++yyInput)) X /* skip the '-' sign */ X continue; X } X else X sign = 0; X for (yylval.Number = 0; ISDIGIT (c = *yyInput++);) X yylval.Number = 10 * yylval.Number + c - '0'; X yyInput--; X if (sign < 0) X yylval.Number = -yylval.Number; X return sign ? tSNUMBER : tUNUMBER; X } X if (ISALPHA (c)) X { X for (p = buff; (c = *yyInput++, ISALPHA (c)) || c == '.';) X if (p < &buff[sizeof buff - 1]) X *p++ = c; X *p = '\0'; X yyInput--; X return LookupWord (buff); X } X if (c != '(') X return *yyInput++; X Count = 0; X do X { X c = *yyInput++; X if (c == '\0') X return c; X if (c == '(') X Count++; X else if (c == ')') X Count--; X } X while (Count > 0); X } } X #define TM_YEAR_ORIGIN 1900 X /* Yield A - B, measured in seconds. */ static long difftm (struct tm *a, struct tm *b) { X int ay = a->tm_year + (TM_YEAR_ORIGIN - 1); X int by = b->tm_year + (TM_YEAR_ORIGIN - 1); X long days = ( X /* difference in day of year */ X a->tm_yday - b->tm_yday X /* + intervening leap days */ X + ((ay >> 2) - (by >> 2)) X - (ay / 100 - by / 100) X + ((ay / 100 >> 2) - (by / 100 >> 2)) X /* + difference in years * 365 */ X + (long) (ay - by) * 365 X ); X return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) X + (a->tm_min - b->tm_min)) X + (a->tm_sec - b->tm_sec)); } X time_t get_date (const char *p, const time_t *now) { X struct tm tm, tm0, *tmp; X time_t Start; X X yyInput = p; X Start = now ? *now : time ((time_t *) NULL); X tmp = localtime (&Start); X if (!tmp) X return -1; X yyYear = tmp->tm_year + TM_YEAR_ORIGIN; X yyMonth = tmp->tm_mon + 1; X yyDay = tmp->tm_mday; X yyHour = tmp->tm_hour; X yyMinutes = tmp->tm_min; X yySeconds = tmp->tm_sec; X tm.tm_isdst = tmp->tm_isdst; X yyMeridian = MER24; X yyRelSeconds = 0; X yyRelMinutes = 0; X yyRelHour = 0; X yyRelDay = 0; X yyRelMonth = 0; X yyRelYear = 0; X yyHaveDate = 0; X yyHaveDay = 0; X yyHaveRel = 0; X yyHaveTime = 0; X yyHaveZone = 0; X X if (yyparse () X || yyHaveTime > 1 || yyHaveZone > 1 || yyHaveDate > 1 || yyHaveDay > 1) X return -1; X X tm.tm_year = ToYear (yyYear) - TM_YEAR_ORIGIN + yyRelYear; X tm.tm_mon = yyMonth - 1 + yyRelMonth; X tm.tm_mday = yyDay + yyRelDay; X if (yyHaveTime || (yyHaveRel && !yyHaveDate && !yyHaveDay)) X { X tm.tm_hour = ToHour (yyHour, yyMeridian); X if (tm.tm_hour < 0) X return -1; X tm.tm_min = yyMinutes; X tm.tm_sec = yySeconds; X } X else X { X tm.tm_hour = tm.tm_min = tm.tm_sec = 0; X } X tm.tm_hour += yyRelHour; X tm.tm_min += yyRelMinutes; X tm.tm_sec += yyRelSeconds; X X /* Let mktime deduce tm_isdst if we have an absolute timestamp, X or if the relative timestamp mentions days, months, or years. */ X if (yyHaveDate | yyHaveDay | yyHaveTime | yyRelDay | yyRelMonth | yyRelYear) X tm.tm_isdst = -1; X X tm0 = tm; X X Start = mktime (&tm); X X if (Start == (time_t) -1) X { X X /* Guard against falsely reporting errors near the time_t boundaries X when parsing times in other time zones. For example, if the min X time_t value is 1970-01-01 00:00:00 UTC and we are 8 hours ahead X of UTC, then the min localtime value is 1970-01-01 08:00:00; if X we apply mktime to 1970-01-01 00:00:00 we will get an error, so X we apply mktime to 1970-01-02 08:00:00 instead and adjust the time X zone by 24 hours to compensate. This algorithm assumes that X there is no DST transition within a day of the time_t boundaries. */ X if (yyHaveZone) X { X tm = tm0; X if (tm.tm_year <= EPOCH - TM_YEAR_ORIGIN) X { X tm.tm_mday++; X yyTimezone -= 24 * 60; X } X else X { X tm.tm_mday--; X yyTimezone += 24 * 60; X } X Start = mktime (&tm); X } X X if (Start == (time_t) -1) X return Start; X } X X if (yyHaveDay && !yyHaveDate) X { X tm.tm_mday += ((yyDayNumber - tm.tm_wday + 7) % 7 X + 7 * (yyDayOrdinal - (0 < yyDayOrdinal))); X Start = mktime (&tm); X if (Start == (time_t) -1) X return Start; X } X X if (yyHaveZone) X { X long delta; X struct tm *gmt = gmtime (&Start); X if (!gmt) X return -1; X delta = yyTimezone * 60L + difftm (&tm, gmt); X if ((Start + delta < Start) != (delta < 0)) X return -1; /* time_t overflow */ X Start += delta; X } X X return Start; } X #if defined (TEST) X /* ARGSUSED */ int main (ac, av) X int ac; X char *av[]; { X char buff[MAX_BUFF_LEN + 1]; X time_t d; X X (void) printf ("Enter date, or blank line to exit.\n\t> "); X (void) fflush (stdout); X X buff[MAX_BUFF_LEN] = 0; X while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) X { X d = get_date (buff, (time_t *) NULL); X if (d == -1) X (void) printf ("Bad format - couldn't convert.\n"); X else X (void) printf ("%s", ctime (&d)); X (void) printf ("\t> "); X (void) fflush (stdout); X } X exit (0); X /* NOTREACHED */ } #endif /* defined (TEST) */ SHAR_EOF $shar_touch -am 0707221399 'tar-1.13/lib/getdate.c' && chmod 0664 'tar-1.13/lib/getdate.c' || $echo 'restore of' 'tar-1.13/lib/getdate.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getdate.c:' 'MD5 check failed' df90bbf9d94fe59165ba627e5cdeadda tar-1.13/lib/getdate.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getdate.c'`" test 54651 -eq "$shar_count" || $echo 'tar-1.13/lib/getdate.c:' 'original size' '54651,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/lchown.c ============== if test -f 'tar-1.13/lib/lchown.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/lchown.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/lchown.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/lchown.c' && /* Provide a stub lchown function for systems that lack it. X Copyright (C) 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* written by Jim Meyering */ X #include X #include #include #include #ifndef errno extern int errno; #endif #include "lchown.h" X /* Declare chown to avoid a warning. Don't include unistd.h, X because it may have a conflicting prototype for lchown. */ int chown (); X /* Work just like chown, except when FILE is a symbolic link. X In that case, set errno to ENOSYS and return -1. */ X int lchown (const char *file, uid_t uid, gid_t gid) { X struct stat stats; X X if (lstat (file, &stats) == 0 && S_ISLNK (stats.st_mode)) X { X errno = ENOSYS; X return -1; X } X X return chown (file, uid, gid); } SHAR_EOF $shar_touch -am 0131064499 'tar-1.13/lib/lchown.c' && chmod 0444 'tar-1.13/lib/lchown.c' || $echo 'restore of' 'tar-1.13/lib/lchown.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/lchown.c:' 'MD5 check failed' 3c99151e6f62d62e97fc12b31a5ce8a8 tar-1.13/lib/lchown.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/lchown.c'`" test 1478 -eq "$shar_count" || $echo 'tar-1.13/lib/lchown.c:' 'original size' '1478,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/malloc.c ============== if test -f 'tar-1.13/lib/malloc.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/malloc.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/malloc.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/malloc.c' && /* Work around bug on some systems where malloc (0) fails. X Copyright (C) 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* written by Jim Meyering */ X #if HAVE_CONFIG_H # include #endif #undef malloc X #include X char *malloc (); X /* Allocate an N-byte block of memory from the heap. X If N is zero, allocate a 1-byte block. */ X char * rpl_malloc (size_t n) { X if (n == 0) X n = 1; X return malloc (n); } SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/malloc.c' && chmod 0444 'tar-1.13/lib/malloc.c' || $echo 'restore of' 'tar-1.13/lib/malloc.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/malloc.c:' 'MD5 check failed' 1efc64c43dfa4e659e575ec6bee1b0b3 tar-1.13/lib/malloc.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/malloc.c'`" test 1132 -eq "$shar_count" || $echo 'tar-1.13/lib/malloc.c:' 'original size' '1132,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/memset.c ============== if test -f 'tar-1.13/lib/memset.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/memset.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/memset.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/memset.c' && /* memset.c -- set an area of memory to a given value X Copyright (C) 1991 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X char * memset (char *str, int c, unsigned int len) { X register char *st = str; X X while (len-- > 0) X *st++ = c; X return str; } SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/memset.c' && chmod 0444 'tar-1.13/lib/memset.c' || $echo 'restore of' 'tar-1.13/lib/memset.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/memset.c:' 'MD5 check failed' fb6cc9242887622fae4fa7ab9c8fcaa8 tar-1.13/lib/memset.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/memset.c'`" test 940 -eq "$shar_count" || $echo 'tar-1.13/lib/memset.c:' 'original size' '940,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/mkdir.c ============== if test -f 'tar-1.13/lib/mkdir.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/mkdir.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/mkdir.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/mkdir.c' && /* BSD compatible make directory function for System V X Copyright (C) 1988, 1990, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #include #include #include #ifndef errno extern int errno; #endif X #if STAT_MACROS_BROKEN # undef S_ISDIR #endif X #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif X #ifndef S_IRWXU # define S_IRWXU 0700 #endif #ifndef S_IRWXG # define S_IRWXG 0070 #endif #ifndef S_IRWXO # define S_IRWXO 0007 #endif X /* mkdir adapted from GNU tar. */ X /* Make directory DPATH, with permission mode DMODE. X X Written by Robert Rother, Mariah Corporation, August 1985 X (sdcsvax!rmr or rmr@uscd). If you want it, it's yours. X X Severely hacked over by John Gilmore to make a 4.2BSD compatible X subroutine. 11Mar86; hoptoad!gnu X X Modified by rmtodd@uokmax 6-28-87 -- when making an already existing dir, X subroutine didn't return EEXIST. It does now. */ X int mkdir (const char *dpath, mode_t dmode) { X pid_t cpid; X mode_t mode; X int status; X struct stat statbuf; X X if (stat (dpath, &statbuf) == 0) X { X errno = EEXIST; /* stat worked, so it already exists. */ X return -1; X } X X /* If stat fails for a reason other than non-existence, return error. */ X if (errno != ENOENT) X return -1; X X cpid = fork (); X switch (cpid) X { X case -1: /* Cannot fork. */ X return -1; /* errno is already set. */ X X case 0: /* Child process. */ X /* Cheap hack to set mode of new directory. Since this child X process is going away anyway, we zap its umask. X This won't suffice to set SUID, SGID, etc. on this X directory, so the parent process calls chmod afterward. */ X mode = umask (0); /* Get current umask. */ X /* Set for mkdir. */ X umask (mode | ((S_IRWXU | S_IRWXG | S_IRWXO) & ~dmode)); X execl ("/bin/mkdir", "mkdir", dpath, (char *) 0); X _exit (1); X X default: /* Parent process. */ X /* Wait for kid to finish. */ X while (wait (&status) != cpid) X /* Do nothing. */ ; X X if (status) X { X /* /bin/mkdir failed. */ X errno = EIO; X return -1; X } X return chmod (dpath, dmode); X } } SHAR_EOF $shar_touch -am 0426001799 'tar-1.13/lib/mkdir.c' && chmod 0444 'tar-1.13/lib/mkdir.c' || $echo 'restore of' 'tar-1.13/lib/mkdir.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/mkdir.c:' 'MD5 check failed' a2247fd88c0fe94890804580e6dd1650 tar-1.13/lib/mkdir.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/mkdir.c'`" test 2927 -eq "$shar_count" || $echo 'tar-1.13/lib/mkdir.c:' 'original size' '2927,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/realloc.c ============== if test -f 'tar-1.13/lib/realloc.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/realloc.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/realloc.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/realloc.c' && /* Work around bug on some systems where realloc (NULL, 0) fails. X Copyright (C) 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* written by Jim Meyering */ X #if HAVE_CONFIG_H # include #endif #undef realloc X #include X char *malloc (); char *realloc (); X /* Change the size of an allocated block of memory P to N bytes, X with error checking. If N is zero, change it to 1. If P is NULL, X use malloc. */ X char * rpl_realloc (p, n) X char *p; X size_t n; { X if (n == 0) X n = 1; X if (p == 0) X return malloc (n); X return realloc (p, n); } SHAR_EOF $shar_touch -am 1102212097 'tar-1.13/lib/realloc.c' && chmod 0444 'tar-1.13/lib/realloc.c' || $echo 'restore of' 'tar-1.13/lib/realloc.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/realloc.c:' 'MD5 check failed' ebb9c1387b665aeaba802e6ba54d96b1 tar-1.13/lib/realloc.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/realloc.c'`" test 1274 -eq "$shar_count" || $echo 'tar-1.13/lib/realloc.c:' 'original size' '1274,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/rename.c ============== if test -f 'tar-1.13/lib/rename.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/rename.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/rename.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/rename.c' && /* BSD compatible rename and directory rename function for System V. X Copyright (C) 1988, 1990 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #include #include #include #ifndef errno extern int errno; #endif X #if STAT_MACROS_BROKEN # undef S_ISDIR #endif X #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif X /* Rename file FROM to file TO. X Return 0 if successful, -1 if not. */ X int rename (char *from, char *to) { X struct stat from_stats, to_stats; X X if (stat (from, &from_stats)) X return -1; X X /* Be careful not to unlink `from' if it happens to be equal to `to' or X (on filesystems that silently truncate filenames after 14 characters) X if `from' and `to' share the significant characters. */ X if (stat (to, &to_stats)) X { X if (errno != ENOENT) X return -1; X } X else X { X if ((from_stats.st_dev == to_stats.st_dev) X && (from_stats.st_ino == to_stats.st_ino)) X /* `from' and `to' designate the same file on that filesystem. */ X return 0; X X if (unlink (to) && errno != ENOENT) X return -1; X } X #ifdef MVDIR X /* If MVDIR is defined, it should be the full filename of a setuid root X program able to link and unlink directories. If MVDIR is not defined, X then the capability of renaming directories may be missing. */ X X if (S_ISDIR (from_stats.st_mode)) X { X /* Need a setuid root process to link and unlink directories. */ X int status; X pid_t pid = fork (); X switch (pid) X { X case -1: /* Error. */ X return -1; /* errno already set */ X X case 0: /* Child. */ X execl (MVDIR, "mvdir", from, to, (char *) 0); X _exit (1); X X default: /* Parent. */ X while (wait (&status) != pid) X /* Do nothing. */ ; X X if (status) X { X /* MVDIR failed. */ X errno = EIO; X return -1; X } X } X } X else X #endif /* MVDIR */ X X { X if (link (from, to)) X return -1; X if (unlink (from) && errno != ENOENT) X { X unlink (to); X return -1; X } X } X return 0; } SHAR_EOF $shar_touch -am 0329155699 'tar-1.13/lib/rename.c' && chmod 0444 'tar-1.13/lib/rename.c' || $echo 'restore of' 'tar-1.13/lib/rename.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/rename.c:' 'MD5 check failed' 247ce678e90541d55d40e1f4d78ab3cd tar-1.13/lib/rename.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/rename.c'`" test 2813 -eq "$shar_count" || $echo 'tar-1.13/lib/rename.c:' 'original size' '2813,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/rmdir.c ============== if test -f 'tar-1.13/lib/rmdir.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/rmdir.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/rmdir.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/rmdir.c' && /* BSD compatible remove directory function for System V X Copyright (C) 1988, 1990 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #include #include X #include #ifndef errno extern int errno; #endif X #if STAT_MACROS_BROKEN # undef S_ISDIR #endif X #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif X /* rmdir adapted from GNU tar. */ X /* Remove directory DPATH. X Return 0 if successful, -1 if not. */ X int rmdir (dpath) X char *dpath; { X pid_t cpid; X int status; X struct stat statbuf; X X if (stat (dpath, &statbuf) != 0) X return -1; /* errno already set */ X X if (!S_ISDIR (statbuf.st_mode)) X { X errno = ENOTDIR; X return -1; X } X X cpid = fork (); X switch (cpid) X { X case -1: /* cannot fork */ X return -1; /* errno already set */ X X case 0: /* child process */ X execl ("/bin/rmdir", "rmdir", dpath, (char *) 0); X _exit (1); X X default: /* parent process */ X X /* Wait for kid to finish. */ X X while (wait (&status) != cpid) X /* Do nothing. */ ; X X if (status) X { X X /* /bin/rmdir failed. */ X X errno = EIO; X return -1; X } X return 0; X } } SHAR_EOF $shar_touch -am 0329155699 'tar-1.13/lib/rmdir.c' && chmod 0444 'tar-1.13/lib/rmdir.c' || $echo 'restore of' 'tar-1.13/lib/rmdir.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/rmdir.c:' 'MD5 check failed' 9d8a38f620e06a871872fe89ba491924 tar-1.13/lib/rmdir.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/rmdir.c'`" test 1942 -eq "$shar_count" || $echo 'tar-1.13/lib/rmdir.c:' 'original size' '1942,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/strstr.c ============== if test -f 'tar-1.13/lib/strstr.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/strstr.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/strstr.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/strstr.c' && /* Copyright (C) 1994 Free Software Foundation, Inc. This file is part of the GNU C Library. X This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. X This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. X You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* X * My personal strstr() implementation that beats most other algorithms. X * Until someone tells me otherwise, I assume that this is the X * fastest implementation of strstr() in C. X * I deliberately chose not to comment it. You should have at least X * as much fun trying to understand it, as I had to write it :-). X * X * Stephen R. van den Berg, berg@pool.informatik.rwth-aachen.de */ X #include #include X typedef unsigned chartype; X char * strstr (const char *phaystack, const char *pneedle) { X register const unsigned char *haystack, *needle; X register chartype b, c; X X haystack = (const unsigned char *) phaystack; X needle = (const unsigned char *) pneedle; X X b = *needle; X if (b != '\0') X { X haystack--; /* possible ANSI violation */ X do X { X c = *++haystack; X if (c == '\0') X goto ret0; X } X while (c != b); X X c = *++needle; X if (c == '\0') X goto foundneedle; X ++needle; X goto jin; X X for (;;) X { X register chartype a; X register const unsigned char *rhaystack, *rneedle; X X do X { X a = *++haystack; X if (a == '\0') X goto ret0; X if (a == b) X break; X a = *++haystack; X if (a == '\0') X goto ret0; shloop: } X while (a != b); X jin: a = *++haystack; X if (a == '\0') X goto ret0; X X if (a != c) X goto shloop; X X rhaystack = haystack-- + 1; X rneedle = needle; X a = *rneedle; X X if (*rhaystack == a) X do X { X if (a == '\0') X goto foundneedle; X ++rhaystack; X a = *++needle; X if (*rhaystack != a) X break; X if (a == '\0') X goto foundneedle; X ++rhaystack; X a = *++needle; X } X while (*rhaystack == a); X X needle = rneedle; /* took the register-poor aproach */ X X if (a == '\0') X break; X } X } foundneedle: X return (char*) haystack; ret0: X return 0; } SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/strstr.c' && chmod 0444 'tar-1.13/lib/strstr.c' || $echo 'restore of' 'tar-1.13/lib/strstr.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/strstr.c:' 'MD5 check failed' 5dc25421202738b9df4b2ac76dfb836e tar-1.13/lib/strstr.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/strstr.c'`" test 2629 -eq "$shar_count" || $echo 'tar-1.13/lib/strstr.c:' 'original size' '2629,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/strtol.c ============== if test -f 'tar-1.13/lib/strtol.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/strtol.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/strtol.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/strtol.c' && /* Convert string representation of a number into an integer value. X Copyright (C) 1991, 92, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc. X NOTE: The canonical source of this file is maintained with the GNU C X Library. Bugs can be reported to bug-glibc@gnu.org. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any X later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #ifdef _LIBC # define USE_NUMBER_GROUPING # define STDC_HEADERS # define HAVE_LIMITS_H #endif X #include #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(Val) errno = (Val) #endif X #ifdef HAVE_LIMITS_H # include #endif X #ifdef STDC_HEADERS # include # include # include #else # ifndef NULL # define NULL 0 # endif #endif X #ifdef USE_NUMBER_GROUPING # include "../locale/localeinfo.h" #endif X /* Nonzero if we are defining `strtoul' or `strtoull', operating on X unsigned integers. */ #ifndef UNSIGNED # define UNSIGNED 0 # define INT LONG int #else # define INT unsigned LONG int #endif X /* Determine the name. */ #ifdef USE_IN_EXTENDED_LOCALE_MODEL # if UNSIGNED # ifdef USE_WIDE_CHAR # ifdef QUAD # define strtol __wcstoull_l # else # define strtol __wcstoul_l # endif # else # ifdef QUAD # define strtol __strtoull_l # else # define strtol __strtoul_l # endif # endif # else # ifdef USE_WIDE_CHAR # ifdef QUAD # define strtol __wcstoll_l # else # define strtol __wcstol_l # endif # else # ifdef QUAD # define strtol __strtoll_l # else # define strtol __strtol_l # endif # endif # endif #else # if UNSIGNED # ifdef USE_WIDE_CHAR # ifdef QUAD # define strtol wcstoull # else # define strtol wcstoul # endif # else # ifdef QUAD # define strtol strtoull # else # define strtol strtoul # endif # endif # else # ifdef USE_WIDE_CHAR # ifdef QUAD # define strtol wcstoll # else # define strtol wcstol # endif # else # ifdef QUAD # define strtol strtoll # endif # endif # endif #endif X /* If QUAD is defined, we are defining `strtoll' or `strtoull', X operating on `long long int's. */ #ifdef QUAD # define LONG long long # define STRTOL_LONG_MIN LONG_LONG_MIN # define STRTOL_LONG_MAX LONG_LONG_MAX # define STRTOL_ULONG_MAX ULONG_LONG_MAX X /* The extra casts work around common compiler bugs, X e.g. Cray C 5.0.3.0 when t == time_t. */ # ifndef TYPE_SIGNED # define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) # endif # ifndef TYPE_MINIMUM # define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ X ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \ X : (t) 0)) # endif # ifndef TYPE_MAXIMUM # define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t))) # endif X # ifndef ULONG_LONG_MAX # define ULONG_LONG_MAX TYPE_MAXIMUM (unsigned long long) # endif # ifndef LONG_LONG_MAX # define LONG_LONG_MAX TYPE_MAXIMUM (long long int) # endif # ifndef LONG_LONG_MIN # define LONG_LONG_MIN TYPE_MINIMUM (long long int) # endif X # if __GNUC__ == 2 && __GNUC_MINOR__ < 7 X /* Work around gcc bug with using this constant. */ X static const unsigned long long int maxquad = ULONG_LONG_MAX; # undef STRTOL_ULONG_MAX # define STRTOL_ULONG_MAX maxquad # endif #else # define LONG long X # ifndef ULONG_MAX # define ULONG_MAX ((unsigned long) ~(unsigned long) 0) # endif # ifndef LONG_MAX # define LONG_MAX ((long int) (ULONG_MAX >> 1)) # endif # define STRTOL_LONG_MIN LONG_MIN # define STRTOL_LONG_MAX LONG_MAX # define STRTOL_ULONG_MAX ULONG_MAX #endif X X /* We use this code also for the extended locale handling where the X function gets as an additional argument the locale which has to be X used. To access the values we have to redefine the _NL_CURRENT X macro. */ #ifdef USE_IN_EXTENDED_LOCALE_MODEL # undef _NL_CURRENT # define _NL_CURRENT(category, item) \ X (current->values[_NL_ITEM_INDEX (item)].string) # define LOCALE_PARAM , loc # define LOCALE_PARAM_DECL __locale_t loc; #else # define LOCALE_PARAM # define LOCALE_PARAM_DECL #endif X #if defined _LIBC || defined HAVE_WCHAR_H # include #endif X #ifdef USE_WIDE_CHAR # include # define L_(Ch) L##Ch # define UCHAR_TYPE wint_t # define STRING_TYPE wchar_t # ifdef USE_IN_EXTENDED_LOCALE_MODEL # define ISSPACE(Ch) __iswspace_l ((Ch), loc) # define ISALPHA(Ch) __iswalpha_l ((Ch), loc) # define TOUPPER(Ch) __towupper_l ((Ch), loc) # else # define ISSPACE(Ch) iswspace (Ch) # define ISALPHA(Ch) iswalpha (Ch) # define TOUPPER(Ch) towupper (Ch) # endif #else # if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII) # define IN_CTYPE_DOMAIN(c) 1 # else # define IN_CTYPE_DOMAIN(c) isascii(c) # endif # define L_(Ch) Ch # define UCHAR_TYPE unsigned char # define STRING_TYPE char # ifdef USE_IN_EXTENDED_LOCALE_MODEL # define ISSPACE(Ch) __isspace_l ((Ch), loc) # define ISALPHA(Ch) __isalpha_l ((Ch), loc) # define TOUPPER(Ch) __toupper_l ((Ch), loc) # else # define ISSPACE(Ch) (IN_CTYPE_DOMAIN (Ch) && isspace (Ch)) # define ISALPHA(Ch) (IN_CTYPE_DOMAIN (Ch) && isalpha (Ch)) # define TOUPPER(Ch) (IN_CTYPE_DOMAIN (Ch) ? toupper (Ch) : (Ch)) # endif #endif X /* For compilers which are ansi but don't define __STDC__, like SGI X Irix-4.0.5 cc, also check whether PROTOTYPES is defined. */ #if defined (__STDC__) || defined (PROTOTYPES) # define INTERNAL(X) INTERNAL1(X) # define INTERNAL1(X) __##X##_internal # define WEAKNAME(X) WEAKNAME1(X) #else # define INTERNAL(X) __/**/X/**/_internal #endif X #ifdef USE_NUMBER_GROUPING /* This file defines a function to check for correct grouping. */ # include "grouping.h" #endif X X X /* Convert NPTR to an `unsigned long int' or `long int' in base BASE. X If BASE is 0 the base is determined by the presence of a leading X zero, indicating octal or a leading "0x" or "0X", indicating hexadecimal. X If BASE is < 2 or > 36, it is reset to 10. X If ENDPTR is not NULL, a pointer to the character after the last X one converted is stored in *ENDPTR. */ X INT INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM) X const STRING_TYPE *nptr; X STRING_TYPE **endptr; X int base; X int group; X LOCALE_PARAM_DECL { X int negative; X register unsigned LONG int cutoff; X register unsigned int cutlim; X register unsigned LONG int i; X register const STRING_TYPE *s; X register UCHAR_TYPE c; X const STRING_TYPE *save, *end; X int overflow; X #ifdef USE_NUMBER_GROUPING # ifdef USE_IN_EXTENDED_LOCALE_MODEL X struct locale_data *current = loc->__locales[LC_NUMERIC]; # endif X /* The thousands character of the current locale. */ X wchar_t thousands = L'\0'; X /* The numeric grouping specification of the current locale, X in the format described in . */ X const char *grouping; X X if (group) X { X grouping = _NL_CURRENT (LC_NUMERIC, GROUPING); X if (*grouping <= 0 || *grouping == CHAR_MAX) X grouping = NULL; X else X { X /* Figure out the thousands separator character. */ # if defined _LIBC || defined _HAVE_BTOWC X thousands = __btowc (*_NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP)); X if (thousands == WEOF) X thousands = L'\0'; # endif X if (thousands == L'\0') X grouping = NULL; X } X } X else X grouping = NULL; #endif X X if (base < 0 || base == 1 || base > 36) X { X __set_errno (EINVAL); X return 0; X } X X save = s = nptr; X X /* Skip white space. */ X while (ISSPACE (*s)) X ++s; X if (*s == L_('\0')) X goto noconv; X X /* Check for a sign. */ X if (*s == L_('-')) X { X negative = 1; X ++s; X } X else if (*s == L_('+')) X { X negative = 0; X ++s; X } X else X negative = 0; X X /* Recognize number prefix and if BASE is zero, figure it out ourselves. */ X if (*s == L_('0')) X { X if ((base == 0 || base == 16) && TOUPPER (s[1]) == L_('X')) X { X s += 2; X base = 16; X } X else if (base == 0) X base = 8; X } X else if (base == 0) X base = 10; X X /* Save the pointer so we can check later if anything happened. */ X save = s; X #ifdef USE_NUMBER_GROUPING X if (group) X { X /* Find the end of the digit string and check its grouping. */ X end = s; X for (c = *end; c != L_('\0'); c = *++end) X if ((wchar_t) c != thousands X && ((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) X && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base)) X break; X if (*s == thousands) X end = s; X else X end = correctly_grouped_prefix (s, end, thousands, grouping); X } X else #endif X end = NULL; X X cutoff = STRTOL_ULONG_MAX / (unsigned LONG int) base; X cutlim = STRTOL_ULONG_MAX % (unsigned LONG int) base; X X overflow = 0; X i = 0; X for (c = *s; c != L_('\0'); c = *++s) X { X if (s == end) X break; X if (c >= L_('0') && c <= L_('9')) X c -= L_('0'); X else if (ISALPHA (c)) X c = TOUPPER (c) - L_('A') + 10; X else X break; X if ((int) c >= base) X break; X /* Check for overflow. */ X if (i > cutoff || (i == cutoff && c > cutlim)) X overflow = 1; X else X { X i *= (unsigned LONG int) base; X i += c; X } X } X X /* Check if anything actually happened. */ X if (s == save) X goto noconv; X X /* Store in ENDPTR the address of one character X past the last character we converted. */ X if (endptr != NULL) X *endptr = (STRING_TYPE *) s; X #if !UNSIGNED X /* Check for a value that is within the range of X `unsigned LONG int', but outside the range of `LONG int'. */ X if (overflow == 0 X && i > (negative X ? -((unsigned LONG int) (STRTOL_LONG_MIN + 1)) + 1 X : (unsigned LONG int) STRTOL_LONG_MAX)) X overflow = 1; #endif X X if (overflow) X { X __set_errno (ERANGE); #if UNSIGNED X return STRTOL_ULONG_MAX; #else X return negative ? STRTOL_LONG_MIN : STRTOL_LONG_MAX; #endif X } X X /* Return the result of the appropriate sign. */ X return negative ? -i : i; X noconv: X /* We must handle a special case here: the base is 0 or 16 and the X first two characters are '0' and 'x', but the rest are no X hexadecimal digits. This is no error case. We return 0 and X ENDPTR points to the `x`. */ X if (endptr != NULL) X { X if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') X && save[-2] == L_('0')) X *endptr = (STRING_TYPE *) &save[-1]; X else X /* There was no number to convert. */ X *endptr = (STRING_TYPE *) nptr; X } X X return 0L; } X /* External user entry point. */ X #if _LIBC - 0 == 0 # undef PARAMS # if defined (__STDC__) && __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif X /* Prototype. */ INT strtol PARAMS ((const STRING_TYPE *nptr, STRING_TYPE **endptr, int base)); #endif X X INT #ifdef weak_function weak_function #endif strtol (nptr, endptr, base LOCALE_PARAM) X const STRING_TYPE *nptr; X STRING_TYPE **endptr; X int base; X LOCALE_PARAM_DECL { X return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); } SHAR_EOF $shar_touch -am 0505062399 'tar-1.13/lib/strtol.c' && chmod 0444 'tar-1.13/lib/strtol.c' || $echo 'restore of' 'tar-1.13/lib/strtol.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/strtol.c:' 'MD5 check failed' dcf8377a5ba81006b0470ee4e6d8430f tar-1.13/lib/strtol.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/strtol.c'`" test 11501 -eq "$shar_count" || $echo 'tar-1.13/lib/strtol.c:' 'original size' '11501,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/strtoul.c ============== if test -f 'tar-1.13/lib/strtoul.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/strtoul.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/strtoul.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/strtoul.c' && /* Copyright (C) 1991 Free Software Foundation, Inc. X NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. X This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. X This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. X You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #define UNSIGNED 1 X #include SHAR_EOF $shar_touch -am 0623044097 'tar-1.13/lib/strtoul.c' && chmod 0444 'tar-1.13/lib/strtoul.c' || $echo 'restore of' 'tar-1.13/lib/strtoul.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/strtoul.c:' 'MD5 check failed' d8e2a47e487ae65e75a9f75a660aa744 tar-1.13/lib/strtoul.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/strtoul.c'`" test 891 -eq "$shar_count" || $echo 'tar-1.13/lib/strtoul.c:' 'original size' '891,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/strtoull.c ============== if test -f 'tar-1.13/lib/strtoull.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/strtoull.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/strtoull.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/strtoull.c' && /* Function to parse an `unsigned long long int' from text. X Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X NOTE: The canonical source of this file is maintained with the GNU C X Library. Bugs can be reported to bug-glibc@gnu.org. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any X later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #define QUAD 1 X #include "strtoul.c" X #ifdef _LIBC strong_alias (__strtoull_internal, __strtouq_internal) weak_alias (strtoull, strtouq) #endif SHAR_EOF $shar_touch -am 0422082599 'tar-1.13/lib/strtoull.c' && chmod 0444 'tar-1.13/lib/strtoull.c' || $echo 'restore of' 'tar-1.13/lib/strtoull.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/strtoull.c:' 'MD5 check failed' 7fb62fa60da1d90975f7017c3b92ba3b tar-1.13/lib/strtoull.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/strtoull.c'`" test 1104 -eq "$shar_count" || $echo 'tar-1.13/lib/strtoull.c:' 'original size' '1104,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/strtoumax.c ============== if test -f 'tar-1.13/lib/strtoumax.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/strtoumax.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/strtoumax.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/strtoumax.c' && /* Convert string representation of a number into an uintmax_t value. X Copyright 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Paul Eggert. */ X #if HAVE_CONFIG_H # include #endif X #if HAVE_INTTYPES_H # include #endif X #if HAVE_STDLIB_H # include #endif X #ifndef PARAMS # if defined PROTOTYPES || defined __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X #if HAVE_UNSIGNED_LONG_LONG && ! HAVE_STRTOULL X unsigned long long strtoull PARAMS ((char const *, char **, int)); #endif X uintmax_t strtoumax (char const *ptr, char **endptr, int base) { #define USE_IF_EQUIVALENT(function) \ X if (sizeof (uintmax_t) == sizeof function (ptr, endptr, base)) \ X return function (ptr, endptr, base); X #if HAVE_UNSIGNED_LONG_LONG X USE_IF_EQUIVALENT (strtoull) #endif X X USE_IF_EQUIVALENT (strtoul) X X abort (); } SHAR_EOF $shar_touch -am 0420212499 'tar-1.13/lib/strtoumax.c' && chmod 0444 'tar-1.13/lib/strtoumax.c' || $echo 'restore of' 'tar-1.13/lib/strtoumax.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/strtoumax.c:' 'MD5 check failed' 974daaa3a70e1e0a3e9e0a3f31fc7119 tar-1.13/lib/strtoumax.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/strtoumax.c'`" test 1586 -eq "$shar_count" || $echo 'tar-1.13/lib/strtoumax.c:' 'original size' '1586,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/utime.c ============== if test -f 'tar-1.13/lib/utime.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/utime.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/utime.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/utime.c' && /* Copyright (C) 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any X later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* derived from a function in touch.c */ X #ifdef HAVE_CONFIG_H # include #endif #undef utime X #include X #ifdef HAVE_UTIME_H # include #endif X #include "safe-read.h" X /* Some systems (even some that do have ) don't declare this X structure anywhere. */ #ifndef HAVE_STRUCT_UTIMBUF struct utimbuf { X long actime; X long modtime; }; #endif X /* Emulate utime (file, NULL) for systems (like 4.3BSD) that do not X interpret it to set the access and modification times of FILE to X the current time. Return 0 if successful, -1 if not. */ X static int utime_null (const char *file) { #if HAVE_UTIMES_NULL X return utimes (file, 0); #else X int fd; X char c; X int status = 0; X struct stat sb; X X fd = open (file, O_RDWR); X if (fd < 0 X || fstat (fd, &sb) < 0 X || safe_read (fd, &c, sizeof (char)) < 0 X || lseek (fd, (off_t) 0, SEEK_SET) < 0 X || full_write (fd, &c, sizeof (char)) < 0 X /* Maybe do this -- it's necessary on SunOS4.1.3 with some combination X of patches, but that system doesn't use this code: it has utimes. X || fsync (fd) < 0 X */ X || ftruncate (fd, st.st_size) < 0 X || close (fd) < 0) X status = -1; X return status; #endif } X int rpl_utime (const char *file, const struct utimbuf *times) { X if (times) X return utime (file, times); X X return utime_null (file); } SHAR_EOF $shar_touch -am 0425225099 'tar-1.13/lib/utime.c' && chmod 0444 'tar-1.13/lib/utime.c' || $echo 'restore of' 'tar-1.13/lib/utime.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/utime.c:' 'MD5 check failed' f48ccb0e936d408e7e83b0469d732027 tar-1.13/lib/utime.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/utime.c'`" test 2123 -eq "$shar_count" || $echo 'tar-1.13/lib/utime.c:' 'original size' '2123,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/addext.c ============== if test -f 'tar-1.13/lib/addext.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/addext.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/addext.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/addext.c' && /* addext.c -- add an extension to a file name X Copyright (C) 1990, 1997, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; see the file COPYING. X If not, write to the Free Software Foundation, X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie and Paul Eggert */ X #if HAVE_CONFIG_H # include #endif X #ifndef HAVE_DOS_FILE_NAMES # define HAVE_DOS_FILE_NAMES 0 #endif #ifndef HAVE_LONG_FILE_NAMES # define HAVE_LONG_FILE_NAMES 0 #endif X #include X #if HAVE_LIMITS_H # include #endif #ifndef _POSIX_NAME_MAX # define _POSIX_NAME_MAX 14 #endif X #include #if HAVE_STRING_H # include #else # include #endif X #if HAVE_UNISTD_H # include #endif X char *base_name PARAMS ((char const *)); X /* Append to FILENAME the extension EXT, unless the result would be too long, X in which case just append the character E. */ X void addext (char *filename, char const *ext, int e) { X char *s = base_name (filename); X size_t slen = strlen (s), extlen = strlen (ext); X long slen_max = -1; X #if HAVE_PATHCONF && defined _PC_NAME_MAX X if (slen + extlen <= _POSIX_NAME_MAX && ! HAVE_DOS_FILE_NAMES) X /* The file name is so short there's no need to call pathconf. */ X slen_max = _POSIX_NAME_MAX; X else if (s == filename) X slen_max = pathconf (".", _PC_NAME_MAX); X else X { X char c = *s; X *s = 0; X slen_max = pathconf (filename, _PC_NAME_MAX); X *s = c; X } #endif X if (slen_max < 0) X slen_max = HAVE_LONG_FILE_NAMES ? 255 : 14; X X if (HAVE_DOS_FILE_NAMES && slen_max <= 12) X { X /* Live within DOS's 8.3 limit. */ X char *dot = strchr (s, '.'); X if (dot) X { X slen -= dot + 1 - s; X s = dot + 1; X slen_max = 3; X } X else X slen_max = 8; X extlen = 9; /* Don't use EXT. */ X } X X if (slen + extlen <= slen_max) X strcpy (s + slen, ext); X else X { X if (slen_max <= slen) X slen = slen_max - 1; X s[slen] = e; X s[slen + 1] = 0; X } } SHAR_EOF $shar_touch -am 0118090299 'tar-1.13/lib/addext.c' && chmod 0444 'tar-1.13/lib/addext.c' || $echo 'restore of' 'tar-1.13/lib/addext.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/addext.c:' 'MD5 check failed' 99413c29ede3a5631f56a8842e4c70b4 tar-1.13/lib/addext.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/addext.c'`" test 2629 -eq "$shar_count" || $echo 'tar-1.13/lib/addext.c:' 'original size' '2629,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/argmatch.c ============== if test -f 'tar-1.13/lib/argmatch.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/argmatch.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/argmatch.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/argmatch.c' && /* argmatch.c -- find a match for a string in an array X Copyright (C) 1990, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie X Modified by Akim Demaille */ X #include "argmatch.h" X #include #ifdef STDC_HEADERS # include #endif X #if HAVE_LOCALE_H # include #endif X #if ENABLE_NLS # include # define _(Text) gettext (Text) #else # define _(Text) Text #endif X #include "error.h" #include "quotearg.h" X /* When reporting an invalid argument, show nonprinting characters X by using the quoting style ARGMATCH_QUOTING_STYLE. Do not use X literal_quoting_style. */ #ifndef ARGMATCH_QUOTING_STYLE # define ARGMATCH_QUOTING_STYLE escape_quoting_style #endif X /* The following test is to work around the gross typo in X systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE X is defined to 0, not 1. */ #if !EXIT_FAILURE # undef EXIT_FAILURE # define EXIT_FAILURE 1 #endif X /* Non failing version of argmatch call this function after failing. */ #ifndef ARGMATCH_DIE # define ARGMATCH_DIE exit (EXIT_FAILURE) #endif X #ifdef ARGMATCH_DIE_DECL ARGMATCH_DIE_DECL; #endif X static void __argmatch_die (void) { X ARGMATCH_DIE; } X /* Used by XARGMATCH and XARGCASEMATCH. See description in argmatch.h. X Default to __argmatch_die, but allow caller to change this at run-time. */ argmatch_exit_fn argmatch_die = __argmatch_die; X X /* If ARG is an unambiguous match for an element of the X null-terminated array ARGLIST, return the index in ARGLIST X of the matched element, else -1 if it does not match any element X or -2 if it is ambiguous (is a prefix of more than one element). X If SENSITIVE, comparison is case sensitive. X X If VALLIST is none null, use it to resolve ambiguities limited to X synonyms, i.e., for X "yes", "yop" -> 0 X "no", "nope" -> 1 X "y" is a valid argument, for `0', and "n" for `1'. */ X static int __argmatch_internal (const char *arg, const char *const *arglist, X const char *vallist, size_t valsize, X int case_sensitive) { X int i; /* Temporary index in ARGLIST. */ X size_t arglen; /* Length of ARG. */ X int matchind = -1; /* Index of first nonexact match. */ X int ambiguous = 0; /* If nonzero, multiple nonexact match(es). */ X X arglen = strlen (arg); X X /* Test all elements for either exact match or abbreviated matches. */ X for (i = 0; arglist[i]; i++) X { X if (case_sensitive X ? !strncmp (arglist[i], arg, arglen) X : !strncasecmp (arglist[i], arg, arglen)) X { X if (strlen (arglist[i]) == arglen) X /* Exact match found. */ X return i; X else if (matchind == -1) X /* First nonexact match found. */ X matchind = i; X else X { X /* Second nonexact match found. */ X if (vallist == NULL X || memcmp (vallist + valsize * matchind, X vallist + valsize * i, valsize)) X { X /* There is a real ambiguity, or we could not X disambiguate. */ X ambiguous = 1; X } X } X } X } X if (ambiguous) X return -2; X else X return matchind; } X /* argmatch - case sensitive version */ int argmatch (const char *arg, const char *const *arglist, X const char *vallist, size_t valsize) { X return __argmatch_internal (arg, arglist, vallist, valsize, 1); } X /* argcasematch - case insensitive version */ int argcasematch (const char *arg, const char *const *arglist, X const char *vallist, size_t valsize) { X return __argmatch_internal (arg, arglist, vallist, valsize, 0); } X /* Error reporting for argmatch. X CONTEXT is a description of the type of entity that was being matched. X VALUE is the invalid value that was given. X PROBLEM is the return value from argmatch. */ X void argmatch_invalid (const char *context, const char *value, int problem) { X enum quoting_style saved_quoting_style; X char const *format; X X /* Make sure to have a good quoting style to report errors. X literal is insane here. */ X saved_quoting_style = get_quoting_style (NULL); X set_quoting_style (NULL, ARGMATCH_QUOTING_STYLE); X X format = (problem == -1 X ? _("invalid argument `%s' for `%s'") X : _("ambiguous argument `%s' for `%s'")); X X error (0, 0, format, quotearg (value), context); X X set_quoting_style (NULL, saved_quoting_style); } X /* List the valid arguments for argmatch. X ARGLIST is the same as in argmatch. X VALLIST is a pointer to an array of values. X VALSIZE is the size of the elements of VALLIST */ void argmatch_valid (const char *const *arglist, X const char *vallist, size_t valsize) { X int i; X const char *last_val = NULL; X X /* We try to put synonyms on the same line. The assumption is that X synonyms follow each other */ X fprintf (stderr, _("Valid arguments are:")); X for (i = 0; arglist[i]; i++) X if ((i == 0) X || memcmp (last_val, vallist + valsize * i, valsize)) X { X fprintf (stderr, "\n - `%s'", arglist[i]); X last_val = vallist + valsize * i; X } X else X { X fprintf (stderr, ", `%s'", arglist[i]); X } X putc ('\n', stderr); } X /* Never failing versions of the previous functions. X X CONTEXT is the context for which argmatch is called (e.g., X "--version-control", or "$VERSION_CONTROL" etc.). Upon failure, X calls the (supposed never to return) function EXIT_FN. */ X int __xargmatch_internal (const char *context, X const char *arg, const char *const *arglist, X const char *vallist, size_t valsize, X int case_sensitive, X argmatch_exit_fn exit_fn) { X int res = __argmatch_internal (arg, arglist, X vallist, valsize, X case_sensitive); X if (res >= 0) X /* Success. */ X return res; X X /* We failed. Explain why. */ X argmatch_invalid (context, arg, res); X argmatch_valid (arglist, vallist, valsize); X (*exit_fn) (); X X return -1; /* To please the compilers. */ } X /* Look for VALUE in VALLIST, an array of objects of size VALSIZE and X return the first corresponding argument in ARGLIST */ const char * argmatch_to_argument (const char *value, X const char *const *arglist, X const char *vallist, size_t valsize) { X int i; X X for (i = 0; arglist[i]; i++) X if (!memcmp (value, vallist + valsize * i, valsize)) X return arglist[i]; X return NULL; } X #ifdef TEST /* X * Based on "getversion.c" by David MacKenzie X */ char *program_name; extern const char *getenv (); X /* When to make backup files. */ enum backup_type { X /* Never make backups. */ X none, X X /* Make simple backups of every file. */ X simple, X X /* Make numbered backups of files that already have numbered backups, X and simple backups of the others. */ X numbered_existing, X X /* Make numbered backups of every file. */ X numbered }; X /* Two tables describing arguments (keys) and their corresponding X values */ static const char *const backup_args[] = { X "no", "none", "off", X "simple", "never", X "existing", "nil", X "numbered", "t", X 0 }; X static const enum backup_type backup_vals[] = { X none, none, none, X simple, simple, X numbered_existing, numbered_existing, X numbered, numbered }; X int main (int argc, const char *const *argv) { X const char *cp; X enum backup_type backup_type = none; X X program_name = (char *) argv[0]; X X if (argc > 2) X { X fprintf (stderr, "Usage: %s [VERSION_CONTROL]\n", program_name); X exit (1); X } X X if ((cp = getenv ("VERSION_CONTROL"))) X backup_type = XARGCASEMATCH ("$VERSION_CONTROL", cp, X backup_args, backup_vals); X X if (argc == 2) X backup_type = XARGCASEMATCH (program_name, argv[1], X backup_args, backup_vals); X X printf ("The version control is `%s'\n", X ARGMATCH_TO_ARGUMENT (backup_type, backup_args, backup_vals)); X X return 0; } #endif SHAR_EOF $shar_touch -am 0125060899 'tar-1.13/lib/argmatch.c' && chmod 0444 'tar-1.13/lib/argmatch.c' || $echo 'restore of' 'tar-1.13/lib/argmatch.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/argmatch.c:' 'MD5 check failed' 771477aeb9b44e81f4c415f3ecd0820b tar-1.13/lib/argmatch.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/argmatch.c'`" test 8390 -eq "$shar_count" || $echo 'tar-1.13/lib/argmatch.c:' 'original size' '8390,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/backupfile.c ============== if test -f 'tar-1.13/lib/backupfile.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/backupfile.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/backupfile.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/backupfile.c' && /* backupfile.c -- make Emacs style backup file names X Copyright (C) 1990-1997, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; see the file COPYING. X If not, write to the Free Software Foundation, X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie . X Some algorithms adapted from GNU Emacs. */ X #if HAVE_CONFIG_H # include #endif X #include #include X #include #include #if HAVE_STRING_H # include #else # include #endif X #if HAVE_DIRENT_H # include # define NLENGTH(direct) strlen ((direct)->d_name) #else # define dirent direct # define NLENGTH(direct) ((size_t) (direct)->d_namlen) # if HAVE_SYS_NDIR_H # include # endif # if HAVE_SYS_DIR_H # include # endif # if HAVE_NDIR_H # include # endif #endif X #if CLOSEDIR_VOID /* Fake a return value. */ # define CLOSEDIR(d) (closedir (d), 0) #else # define CLOSEDIR(d) closedir (d) #endif X #if STDC_HEADERS # include #else char *malloc (); #endif X #ifndef HAVE_DECL_GETENV char *getenv (); #endif X char *base_name PARAMS ((char const *)); X #if HAVE_DIRENT_H || HAVE_NDIR_H || HAVE_SYS_DIR_H || HAVE_SYS_NDIR_H # define HAVE_DIR 1 #else # define HAVE_DIR 0 #endif X #if HAVE_LIMITS_H # include #endif #ifndef CHAR_BIT # define CHAR_BIT 8 #endif /* Upper bound on the string length of an integer converted to string. X 302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit; X add 1 for integer division truncation; add 1 more for a minus sign. */ #define INT_STRLEN_BOUND(t) ((sizeof (t) * CHAR_BIT - 1) * 302 / 1000 + 2) X /* ISDIGIT differs from isdigit, as follows: X - Its arg may be any int or unsigned int; it need not be an unsigned char. X - It's guaranteed to evaluate its argument exactly once. X - It's typically faster. X Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that X only '0' through '9' are digits. Prefer ISDIGIT to isdigit unless X it's important to use the locale's definition of `digit' even when the X host does not conform to Posix. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) X #if D_INO_IN_DIRENT # define REAL_DIR_ENTRY(dp) ((dp)->d_ino != 0) #else # define REAL_DIR_ENTRY(dp) 1 #endif X /* The extension added to file names to produce a simple (as opposed X to numbered) backup file name. */ const char *simple_backup_suffix = "~"; X static int max_backup_version PARAMS ((const char *, const char *)); static int version_number PARAMS ((const char *, const char *, size_t)); X /* Return the name of the new backup file for file FILE, X allocated with malloc. Return 0 if out of memory. X FILE must not end with a '/' unless it is the root directory. X Do not call this function if backup_type == none. */ X char * find_backup_file_name (const char *file, enum backup_type backup_type) { X size_t backup_suffix_size_max; X size_t file_len = strlen (file); X size_t numbered_suffix_size_max = INT_STRLEN_BOUND (int) + 4; X char *s; X const char *suffix = simple_backup_suffix; X X /* Allow room for simple or `.~N~' backups. */ X backup_suffix_size_max = strlen (simple_backup_suffix) + 1; X if (HAVE_DIR && backup_suffix_size_max < numbered_suffix_size_max) X backup_suffix_size_max = numbered_suffix_size_max; X X s = malloc (file_len + backup_suffix_size_max + numbered_suffix_size_max); X if (s) X { X strcpy (s, file); X #if HAVE_DIR X if (backup_type != simple) X { X int highest_backup; X size_t dir_len = base_name (s) - s; X X strcpy (s + dir_len, "."); X highest_backup = max_backup_version (file + dir_len, s); X if (! (backup_type == numbered_existing && highest_backup == 0)) X { X char *numbered_suffix = s + (file_len + backup_suffix_size_max); X sprintf (numbered_suffix, ".~%d~", highest_backup + 1); X suffix = numbered_suffix; X } X strcpy (s, file); X } #endif /* HAVE_DIR */ X X addext (s, suffix, '~'); X } X return s; } X #if HAVE_DIR X /* Return the number of the highest-numbered backup file for file X FILE in directory DIR. If there are no numbered backups X of FILE in DIR, or an error occurs reading DIR, return 0. X */ X static int max_backup_version (const char *file, const char *dir) { X DIR *dirp; X struct dirent *dp; X int highest_version; X int this_version; X size_t file_name_length; X X dirp = opendir (dir); X if (!dirp) X return 0; X X highest_version = 0; X file_name_length = strlen (file); X X while ((dp = readdir (dirp)) != 0) X { X if (!REAL_DIR_ENTRY (dp) || NLENGTH (dp) < file_name_length + 4) X continue; X X this_version = version_number (file, dp->d_name, file_name_length); X if (this_version > highest_version) X highest_version = this_version; X } X if (CLOSEDIR (dirp)) X return 0; X return highest_version; } X /* If BACKUP is a numbered backup of BASE, return its version number; X otherwise return 0. BASE_LENGTH is the length of BASE. X */ X static int version_number (const char *base, const char *backup, size_t base_length) { X int version; X const char *p; X X version = 0; X if (strncmp (base, backup, base_length) == 0 X && backup[base_length] == '.' X && backup[base_length + 1] == '~') X { X for (p = &backup[base_length + 2]; ISDIGIT (*p); ++p) X version = version * 10 + *p - '0'; X if (p[0] != '~' || p[1]) X version = 0; X } X return version; } #endif /* HAVE_DIR */ X static const char * const backup_args[] = { X /* In a series of synonyms, present the most meaning full first, so X that argmatch_valid be more readable. */ X "none", "off", X "simple", "never", X "existing", "nil", X "numbered", "t", X 0 }; X static const enum backup_type backup_types[] = { X none, none, X simple, simple, X numbered_existing, numbered_existing, X numbered, numbered }; X /* Return the type of backup specified by VERSION. X If VERSION is NULL or the empty string, return numbered_existing. X If VERSION is invalid or ambiguous, fail with a diagnostic appropriate X for the specified CONTEXT. Unambiguous abbreviations are accepted. */ X enum backup_type get_version (const char *context, const char *version) { X if (version == 0 || *version == 0) X return numbered_existing; X else X return XARGMATCH (context, version, backup_args, backup_types); } X X /* Return the type of backup specified by VERSION. X If VERSION is NULL, use the value of the envvar VERSION_CONTROL. X If the specified string is invalid or ambiguous, fail with a diagnostic X appropriate for the specified CONTEXT. X Unambiguous abbreviations are accepted. */ X enum backup_type xget_version (const char *context, const char *version) { X if (version && *version) X return get_version (context, version); X else X return get_version ("$VERSION_CONTROL", getenv ("VERSION_CONTROL")); } SHAR_EOF $shar_touch -am 0118090299 'tar-1.13/lib/backupfile.c' && chmod 0444 'tar-1.13/lib/backupfile.c' || $echo 'restore of' 'tar-1.13/lib/backupfile.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/backupfile.c:' 'MD5 check failed' f60be443925845dfa1874735b5d60c01 tar-1.13/lib/backupfile.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/backupfile.c'`" test 7426 -eq "$shar_count" || $echo 'tar-1.13/lib/backupfile.c:' 'original size' '7426,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/basename.c ============== if test -f 'tar-1.13/lib/basename.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/basename.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/basename.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/basename.c' && /* basename.c -- return the last element in a path X Copyright (C) 1990, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #ifndef FILESYSTEM_PREFIX_LEN # define FILESYSTEM_PREFIX_LEN(Filename) 0 #endif X #ifndef ISSLASH # define ISSLASH(C) ((C) == '/') #endif X /* In general, we can't use the builtin `basename' function if available, X since it has different meanings in different environments. X In some environments the builtin `basename' modifies its argument. X If NAME is all slashes, be sure to return `/'. */ X char * base_name (char const *name) { X char const *base = name += FILESYSTEM_PREFIX_LEN (name); X int all_slashes = 1; X char const *p; X X for (p = name; *p; p++) X { X if (ISSLASH (*p)) X base = p + 1; X else X all_slashes = 0; X } X X /* If NAME is all slashes, arrange to return `/'. */ X if (*base == '\0' && ISSLASH (*name) && all_slashes) X --base; X X return (char *) base; } SHAR_EOF $shar_touch -am 0318085699 'tar-1.13/lib/basename.c' && chmod 0444 'tar-1.13/lib/basename.c' || $echo 'restore of' 'tar-1.13/lib/basename.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/basename.c:' 'MD5 check failed' 58dbb58eaa55b63a5804dc60753b0a02 tar-1.13/lib/basename.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/basename.c'`" test 1658 -eq "$shar_count" || $echo 'tar-1.13/lib/basename.c:' 'original size' '1658,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/error.c ============== if test -f 'tar-1.13/lib/error.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/error.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/error.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/error.c' && /* Error handler for noninteractive utilities X Copyright (C) 1990,91,92,93,94,95,96,97,98 Free Software Foundation, Inc. X X This file is part of the GNU C Library. Its master source is NOT part of X the C library, however. The master source lives in /gd/gnu/lib. X X The GNU C Library is free software; you can redistribute it and/or X modify it under the terms of the GNU Library General Public License as X published by the Free Software Foundation; either version 2 of the X License, or (at your option) any later version. X X The GNU C Library is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU X Library General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie . */ X #ifdef HAVE_CONFIG_H # include #endif X #include X #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC # if __STDC__ # include # define VA_START(args, lastarg) va_start(args, lastarg) # else # include # define VA_START(args, lastarg) va_start(args) # endif #else # define va_alist a1, a2, a3, a4, a5, a6, a7, a8 # define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8; #endif X #if STDC_HEADERS || _LIBC # include # include #else void exit (); #endif X #include "error.h" X #ifndef _ # define _(String) String #endif X /* If NULL, error will flush stdout, then print on stderr the program X name, a colon and a space. Otherwise, error will call this X function without parameters instead. */ void (*error_print_progname) ( #if __STDC__ - 0 X void #endif X ); X /* This variable is incremented each time `error' is called. */ unsigned int error_message_count; X #ifdef _LIBC /* In the GNU C library, there is a predefined variable for this. */ X # define program_name program_invocation_name # include X /* In GNU libc we want do not want to use the common name `error' directly. X Instead make it a weak alias. */ # define error __error # define error_at_line __error_at_line X #else /* not _LIBC */ X /* The calling program should define program_name and set it to the X name of the executing program. */ extern char *program_name; X # ifdef HAVE_STRERROR_R # define __strerror_r strerror_r # else # if HAVE_STRERROR # ifndef strerror /* On some systems, strerror is a macro */ char *strerror (); # endif # else static char * private_strerror (errnum) X int errnum; { X extern char *sys_errlist[]; X extern int sys_nerr; X X if (errnum > 0 && errnum <= sys_nerr) X return _(sys_errlist[errnum]); X return _("Unknown system error"); } # define strerror private_strerror # endif /* HAVE_STRERROR */ # endif /* HAVE_STRERROR_R */ #endif /* not _LIBC */ X /* Print the program name and error message MESSAGE, which is a printf-style X format string with optional args. X If ERRNUM is nonzero, print its corresponding system error message. X Exit with status STATUS if it is nonzero. */ /* VARARGS */ X void #if defined VA_START && __STDC__ error (int status, int errnum, const char *message, ...) #else error (status, errnum, message, va_alist) X int status; X int errnum; X char *message; X va_dcl #endif { #ifdef VA_START X va_list args; #endif X X if (error_print_progname) X (*error_print_progname) (); X else X { X fflush (stdout); X fprintf (stderr, "%s: ", program_name); X } X #ifdef VA_START X VA_START (args, message); # if HAVE_VPRINTF || _LIBC X vfprintf (stderr, message, args); # else X _doprnt (message, args, stderr); # endif X va_end (args); #else X fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8); #endif X X ++error_message_count; X if (errnum) X { #if defined HAVE_STRERROR_R || defined _LIBC X char errbuf[1024]; X /* Don't use __strerror_r's return value because on some systems X (at least DEC UNIX 4.0[A-D]) strerror_r returns `int'. */ X __strerror_r (errnum, errbuf, sizeof errbuf); X fprintf (stderr, ": %s", errbuf); #else X fprintf (stderr, ": %s", strerror (errnum)); #endif X } X putc ('\n', stderr); X fflush (stderr); X if (status) X exit (status); } X /* Sometimes we want to have at most one error per line. This X variable controls whether this mode is selected or not. */ int error_one_per_line; X void #if defined VA_START && __STDC__ error_at_line (int status, int errnum, const char *file_name, X unsigned int line_number, const char *message, ...) #else error_at_line (status, errnum, file_name, line_number, message, va_alist) X int status; X int errnum; X const char *file_name; X unsigned int line_number; X char *message; X va_dcl #endif { #ifdef VA_START X va_list args; #endif X X if (error_one_per_line) X { X static const char *old_file_name; X static unsigned int old_line_number; X X if (old_line_number == line_number && X (file_name == old_file_name || !strcmp (old_file_name, file_name))) X /* Simply return and print nothing. */ X return; X X old_file_name = file_name; X old_line_number = line_number; X } X X if (error_print_progname) X (*error_print_progname) (); X else X { X fflush (stdout); X fprintf (stderr, "%s:", program_name); X } X X if (file_name != NULL) X fprintf (stderr, "%s:%d: ", file_name, line_number); X #ifdef VA_START X VA_START (args, message); # if HAVE_VPRINTF || _LIBC X vfprintf (stderr, message, args); # else X _doprnt (message, args, stderr); # endif X va_end (args); #else X fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8); #endif X X ++error_message_count; X if (errnum) X { #if defined HAVE_STRERROR_R || defined _LIBC X char errbuf[1024]; X fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf)); #else X fprintf (stderr, ": %s", strerror (errnum)); #endif X } X putc ('\n', stderr); X fflush (stderr); X if (status) X exit (status); } X #ifdef _LIBC /* Make the weak alias. */ # undef error # undef error_at_line weak_alias (__error, error) weak_alias (__error_at_line, error_at_line) #endif SHAR_EOF $shar_touch -am 1115093598 'tar-1.13/lib/error.c' && chmod 0444 'tar-1.13/lib/error.c' || $echo 'restore of' 'tar-1.13/lib/error.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/error.c:' 'MD5 check failed' 018770ee6885d37e46e89ea705af31a2 tar-1.13/lib/error.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/error.c'`" test 6356 -eq "$shar_count" || $echo 'tar-1.13/lib/error.c:' 'original size' '6356,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/exclude.c ============== if test -f 'tar-1.13/lib/exclude.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/exclude.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/exclude.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/exclude.c' && /* exclude.c -- exclude file names X Copyright 1992, 1993, 1994, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; see the file COPYING. X If not, write to the Free Software Foundation, X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Paul Eggert */ X #if HAVE_CONFIG_H # include #endif X #include #ifndef errno extern int errno; #endif #include #include #include #include X void *xmalloc PARAMS ((size_t)); void *xrealloc PARAMS ((void *, size_t)); X /* Keep track of excluded file name patterns. */ X struct exclude X { X char const **exclude; X int exclude_alloc; X int exclude_count; X }; X struct exclude * new_exclude (void) { X struct exclude *ex = (struct exclude *) xmalloc (sizeof (struct exclude)); X ex->exclude_count = 0; X ex->exclude_alloc = 64; X ex->exclude = (char const **) xmalloc (ex->exclude_alloc * sizeof (char *)); X return ex; } X int excluded_filename (struct exclude const *ex, char const *f) { X char const * const *exclude = ex->exclude; X int exclude_count = ex->exclude_count; X int i; X X for (i = 0; i < exclude_count; i++) X if (fnmatch (exclude[i], f, 0) == 0) X return 1; X X return 0; } X void add_exclude (struct exclude *ex, char const *pattern) { X if (ex->exclude_alloc <= ex->exclude_count) X ex->exclude = (char const **) xrealloc (ex->exclude, X ((ex->exclude_alloc *= 2) X * sizeof (char *))); X X ex->exclude[ex->exclude_count++] = pattern; } X int add_exclude_file (struct exclude *ex, char const *filename, char line_end) { X int use_stdin = filename[0] == '-' && !filename[1]; X FILE *in; X char *buf; X char *p; X char const *pattern; X char const *lim; X size_t buf_alloc = 1024; X size_t buf_count = 0; X int c; X int e = 0; X X if (use_stdin) X in = stdin; X else if (! (in = fopen (filename, "r"))) X return -1; X X buf = xmalloc (buf_alloc); X X while ((c = getc (in)) != EOF) X { X buf[buf_count++] = c; X if (buf_count == buf_alloc) X buf = xrealloc (buf, buf_alloc *= 2); X } X X buf = xrealloc (buf, buf_count + 1); X X if (ferror (in)) X e = errno; X X if (!use_stdin && fclose (in) != 0) X e = errno; X X for (pattern = p = buf, lim = buf + buf_count; p <= lim; p++) X if (p < lim ? *p == line_end : buf < p && p[-1]) X { X *p = '\0'; X add_exclude (ex, pattern); X pattern = p + 1; X } X X errno = e; X return e ? -1 : 0; } SHAR_EOF $shar_touch -am 1231030197 'tar-1.13/lib/exclude.c' && chmod 0444 'tar-1.13/lib/exclude.c' || $echo 'restore of' 'tar-1.13/lib/exclude.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/exclude.c:' 'MD5 check failed' ba993713996eb2b1fc7547da09bddf59 tar-1.13/lib/exclude.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/exclude.c'`" test 3019 -eq "$shar_count" || $echo 'tar-1.13/lib/exclude.c:' 'original size' '3019,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/full-write.c ============== if test -f 'tar-1.13/lib/full-write.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/full-write.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/full-write.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/full-write.c' && /* full-write.c -- an interface to write that retries after interrupts X Copyright (C) 1993, 1994, 1997, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X X Copied largely from GNU C's cccp.c. X */ X #if HAVE_CONFIG_H # include #endif X #include X #include "safe-read.h" X #if HAVE_UNISTD_H # include #endif X #include #ifndef errno extern int errno; #endif X /* Write LEN bytes at PTR to descriptor DESC, retrying if interrupted. X Return LEN upon success, write's (negative) error code otherwise. */ X ssize_t full_write (int desc, const char *ptr, size_t len) { X ssize_t total_written = 0; X X while (len > 0) X { X ssize_t written = write (desc, ptr, len); X /* FIXME: write on my slackware Linux 1.2.13 returns zero when X I try to write more data than there is room on a floppy disk. X This puts dd into an infinite loop. Reproduce with X dd if=/dev/zero of=/dev/fd0. */ X if (written < 0) X { #ifdef EINTR X if (errno == EINTR) X continue; #endif X return written; X } X total_written += written; X ptr += written; X len -= written; X } X return total_written; } SHAR_EOF $shar_touch -am 0706221299 'tar-1.13/lib/full-write.c' && chmod 0444 'tar-1.13/lib/full-write.c' || $echo 'restore of' 'tar-1.13/lib/full-write.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/full-write.c:' 'MD5 check failed' 0834932ea9ee5de21609a3508d766b9f tar-1.13/lib/full-write.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/full-write.c'`" test 1836 -eq "$shar_count" || $echo 'tar-1.13/lib/full-write.c:' 'original size' '1836,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getdate.y ============== if test -f 'tar-1.13/lib/getdate.y' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getdate.y' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getdate.y' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getdate.y' && %{ /* ** Originally written by Steven M. Bellovin while ** at the University of North Carolina at Chapel Hill. Later tweaked by ** a couple of people on Usenet. Completely overhauled by Rich $alz ** and Jim Berets in August, 1990. ** ** This code is in the public domain and has no copyright. */ X #ifdef HAVE_CONFIG_H # include # ifdef HAVE_ALLOCA_H # include # endif #endif X /* Since the code of getdate.y is not included in the Emacs executable X itself, there is no need to #define static in this file. Even if X the code were included in the Emacs executable, it probably X wouldn't do any harm to #undef it here; this will only cause X problems if we try to write to a static variable, which I don't X think this code needs to do. */ #ifdef emacs # undef static #endif X #include #include X #if HAVE_STDLIB_H # include /* for `free'; used by Bison 1.27 */ #endif X #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) # define IN_CTYPE_DOMAIN(c) 1 #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif X #define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) #define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) #define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) #define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) X /* ISDIGIT differs from ISDIGIT_LOCALE, as follows: X - Its arg may be any int or unsigned int; it need not be an unsigned char. X - It's guaranteed to evaluate its argument exactly once. X - It's typically faster. X Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that X only '0' through '9' are digits. Prefer ISDIGIT to ISDIGIT_LOCALE unless X it's important to use the locale's definition of `digit' even when the X host does not conform to Posix. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) X #if defined (STDC_HEADERS) || defined (USG) # include #endif X #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif X #ifndef ATTRIBUTE_UNUSED # define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #endif X /* Some old versions of bison generate parsers that use bcopy. X That loses on systems that don't provide the function, so we have X to redefine it here. */ #if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) # define bcopy(from, to, len) memcpy ((to), (from), (len)) #endif X /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc), X as well as gratuitiously global symbol names, so we can have multiple X yacc generated parsers in the same program. Note that these are only X the variables produced by yacc. If other parser generators (bison, X byacc, etc) produce additional global names that conflict at link time, X then those parser generators need to be fixed instead of adding those X names to this list. */ X #define yymaxdepth gd_maxdepth #define yyparse gd_parse #define yylex gd_lex #define yyerror gd_error #define yylval gd_lval #define yychar gd_char #define yydebug gd_debug #define yypact gd_pact #define yyr1 gd_r1 #define yyr2 gd_r2 #define yydef gd_def #define yychk gd_chk #define yypgo gd_pgo #define yyact gd_act #define yyexca gd_exca #define yyerrflag gd_errflag #define yynerrs gd_nerrs #define yyps gd_ps #define yypv gd_pv #define yys gd_s #define yy_yys gd_yys #define yystate gd_state #define yytmp gd_tmp #define yyv gd_v #define yy_yyv gd_yyv #define yyval gd_val #define yylloc gd_lloc #define yyreds gd_reds /* With YYDEBUG defined */ #define yytoks gd_toks /* With YYDEBUG defined */ #define yylhs gd_yylhs #define yylen gd_yylen #define yydefred gd_yydefred #define yydgoto gd_yydgoto #define yysindex gd_yysindex #define yyrindex gd_yyrindex #define yygindex gd_yygindex #define yytable gd_yytable #define yycheck gd_yycheck X static int yylex (); static int yyerror (); X #define EPOCH 1970 #define HOUR(x) ((x) * 60) X #define MAX_BUFF_LEN 128 /* size of buffer to read the date into */ X /* ** An entry in the lexical lookup table. */ typedef struct _TABLE { X const char *name; X int type; X int value; } TABLE; X X /* ** Meridian: am, pm, or 24-hour style. */ typedef enum _MERIDIAN { X MERam, MERpm, MER24 } MERIDIAN; X X /* ** Global variables. We could get rid of most of these by using a good ** union as the yacc stack. (This routine was originally written before ** yacc had the %union construct.) Maybe someday; right now we only use ** the %union very rarely. */ static const char *yyInput; static int yyDayOrdinal; static int yyDayNumber; static int yyHaveDate; static int yyHaveDay; static int yyHaveRel; static int yyHaveTime; static int yyHaveZone; static int yyTimezone; static int yyDay; static int yyHour; static int yyMinutes; static int yyMonth; static int yySeconds; static int yyYear; static MERIDIAN yyMeridian; static int yyRelDay; static int yyRelHour; static int yyRelMinutes; static int yyRelMonth; static int yyRelSeconds; static int yyRelYear; X %} X /* This grammar has 13 shift/reduce conflicts. */ %expect 13 X %union { X int Number; X enum _MERIDIAN Meridian; } X %token tAGO tDAY tDAY_UNIT tDAYZONE tDST tHOUR_UNIT tID %token tMERIDIAN tMINUTE_UNIT tMONTH tMONTH_UNIT %token tSEC_UNIT tSNUMBER tUNUMBER tYEAR_UNIT tZONE X %type tDAY tDAY_UNIT tDAYZONE tHOUR_UNIT tMINUTE_UNIT %type tMONTH tMONTH_UNIT %type tSEC_UNIT tSNUMBER tUNUMBER tYEAR_UNIT tZONE %type tMERIDIAN o_merid X %% X spec : /* NULL */ X | spec item X ; X item : time { X yyHaveTime++; X } X | zone { X yyHaveZone++; X } X | date { X yyHaveDate++; X } X | day { X yyHaveDay++; X } X | rel { X yyHaveRel++; X } X | number X ; X time : tUNUMBER tMERIDIAN { X yyHour = $1; X yyMinutes = 0; X yySeconds = 0; X yyMeridian = $2; X } X | tUNUMBER ':' tUNUMBER o_merid { X yyHour = $1; X yyMinutes = $3; X yySeconds = 0; X yyMeridian = $4; X } X | tUNUMBER ':' tUNUMBER tSNUMBER { X yyHour = $1; X yyMinutes = $3; X yyMeridian = MER24; X yyHaveZone++; X yyTimezone = ($4 < 0 X ? -$4 % 100 + (-$4 / 100) * 60 X : - ($4 % 100 + ($4 / 100) * 60)); X } X | tUNUMBER ':' tUNUMBER ':' tUNUMBER o_merid { X yyHour = $1; X yyMinutes = $3; X yySeconds = $5; X yyMeridian = $6; X } X | tUNUMBER ':' tUNUMBER ':' tUNUMBER tSNUMBER { X yyHour = $1; X yyMinutes = $3; X yySeconds = $5; X yyMeridian = MER24; X yyHaveZone++; X yyTimezone = ($6 < 0 X ? -$6 % 100 + (-$6 / 100) * 60 X : - ($6 % 100 + ($6 / 100) * 60)); X } X ; X zone : tZONE { X yyTimezone = $1; X } X | tDAYZONE { X yyTimezone = $1 - 60; X } X | X tZONE tDST { X yyTimezone = $1 - 60; X } X ; X day : tDAY { X yyDayOrdinal = 1; X yyDayNumber = $1; X } X | tDAY ',' { X yyDayOrdinal = 1; X yyDayNumber = $1; X } X | tUNUMBER tDAY { X yyDayOrdinal = $1; X yyDayNumber = $2; X } X ; X date : tUNUMBER '/' tUNUMBER { X yyMonth = $1; X yyDay = $3; X } X | tUNUMBER '/' tUNUMBER '/' tUNUMBER { X /* Interpret as YYYY/MM/DD if $1 >= 1000, otherwise as MM/DD/YY. X The goal in recognizing YYYY/MM/DD is solely to support legacy X machine-generated dates like those in an RCS log listing. If X you want portability, use the ISO 8601 format. */ X if ($1 >= 1000) X { X yyYear = $1; X yyMonth = $3; X yyDay = $5; X } X else X { X yyMonth = $1; X yyDay = $3; X yyYear = $5; X } X } X | tUNUMBER tSNUMBER tSNUMBER { X /* ISO 8601 format. yyyy-mm-dd. */ X yyYear = $1; X yyMonth = -$2; X yyDay = -$3; X } X | tUNUMBER tMONTH tSNUMBER { X /* e.g. 17-JUN-1992. */ X yyDay = $1; X yyMonth = $2; X yyYear = -$3; X } X | tMONTH tUNUMBER { X yyMonth = $1; X yyDay = $2; X } X | tMONTH tUNUMBER ',' tUNUMBER { X yyMonth = $1; X yyDay = $2; X yyYear = $4; X } X | tUNUMBER tMONTH { X yyMonth = $2; X yyDay = $1; X } X | tUNUMBER tMONTH tUNUMBER { X yyMonth = $2; X yyDay = $1; X yyYear = $3; X } X ; X rel : relunit tAGO { X yyRelSeconds = -yyRelSeconds; X yyRelMinutes = -yyRelMinutes; X yyRelHour = -yyRelHour; X yyRelDay = -yyRelDay; X yyRelMonth = -yyRelMonth; X yyRelYear = -yyRelYear; X } X | relunit X ; X relunit : tUNUMBER tYEAR_UNIT { X yyRelYear += $1 * $2; X } X | tSNUMBER tYEAR_UNIT { X yyRelYear += $1 * $2; X } X | tYEAR_UNIT { X yyRelYear += $1; X } X | tUNUMBER tMONTH_UNIT { X yyRelMonth += $1 * $2; X } X | tSNUMBER tMONTH_UNIT { X yyRelMonth += $1 * $2; X } X | tMONTH_UNIT { X yyRelMonth += $1; X } X | tUNUMBER tDAY_UNIT { X yyRelDay += $1 * $2; X } X | tSNUMBER tDAY_UNIT { X yyRelDay += $1 * $2; X } X | tDAY_UNIT { X yyRelDay += $1; X } X | tUNUMBER tHOUR_UNIT { X yyRelHour += $1 * $2; X } X | tSNUMBER tHOUR_UNIT { X yyRelHour += $1 * $2; X } X | tHOUR_UNIT { X yyRelHour += $1; X } X | tUNUMBER tMINUTE_UNIT { X yyRelMinutes += $1 * $2; X } X | tSNUMBER tMINUTE_UNIT { X yyRelMinutes += $1 * $2; X } X | tMINUTE_UNIT { X yyRelMinutes += $1; X } X | tUNUMBER tSEC_UNIT { X yyRelSeconds += $1 * $2; X } X | tSNUMBER tSEC_UNIT { X yyRelSeconds += $1 * $2; X } X | tSEC_UNIT { X yyRelSeconds += $1; X } X ; X number : tUNUMBER X { X if (yyHaveTime && yyHaveDate && !yyHaveRel) X yyYear = $1; X else X { X if ($1>10000) X { X yyHaveDate++; X yyDay= ($1)%100; X yyMonth= ($1/100)%100; X yyYear = $1/10000; X } X else X { X yyHaveTime++; X if ($1 < 100) X { X yyHour = $1; X yyMinutes = 0; X } X else X { X yyHour = $1 / 100; X yyMinutes = $1 % 100; X } X yySeconds = 0; X yyMeridian = MER24; X } X } X } X ; X o_merid : /* NULL */ X { X $$ = MER24; X } X | tMERIDIAN X { X $$ = $1; X } X ; X %% X /* Include this file down here because bison inserts code above which X may define-away `const'. We want the prototype for get_date to have X the same signature as the function definition does. */ #include "getdate.h" X extern struct tm *gmtime (); extern struct tm *localtime (); extern time_t mktime (); X /* Month and day table. */ static TABLE const MonthDayTable[] = { X { "january", tMONTH, 1 }, X { "february", tMONTH, 2 }, X { "march", tMONTH, 3 }, X { "april", tMONTH, 4 }, X { "may", tMONTH, 5 }, X { "june", tMONTH, 6 }, X { "july", tMONTH, 7 }, X { "august", tMONTH, 8 }, X { "september", tMONTH, 9 }, X { "sept", tMONTH, 9 }, X { "october", tMONTH, 10 }, X { "november", tMONTH, 11 }, X { "december", tMONTH, 12 }, X { "sunday", tDAY, 0 }, X { "monday", tDAY, 1 }, X { "tuesday", tDAY, 2 }, X { "tues", tDAY, 2 }, X { "wednesday", tDAY, 3 }, X { "wednes", tDAY, 3 }, X { "thursday", tDAY, 4 }, X { "thur", tDAY, 4 }, X { "thurs", tDAY, 4 }, X { "friday", tDAY, 5 }, X { "saturday", tDAY, 6 }, X { NULL, 0, 0 } }; X /* Time units table. */ static TABLE const UnitsTable[] = { X { "year", tYEAR_UNIT, 1 }, X { "month", tMONTH_UNIT, 1 }, X { "fortnight", tDAY_UNIT, 14 }, X { "week", tDAY_UNIT, 7 }, X { "day", tDAY_UNIT, 1 }, X { "hour", tHOUR_UNIT, 1 }, X { "minute", tMINUTE_UNIT, 1 }, X { "min", tMINUTE_UNIT, 1 }, X { "second", tSEC_UNIT, 1 }, X { "sec", tSEC_UNIT, 1 }, X { NULL, 0, 0 } }; X /* Assorted relative-time words. */ static TABLE const OtherTable[] = { X { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 }, X { "yesterday", tMINUTE_UNIT, -1 * 24 * 60 }, X { "today", tMINUTE_UNIT, 0 }, X { "now", tMINUTE_UNIT, 0 }, X { "last", tUNUMBER, -1 }, X { "this", tMINUTE_UNIT, 0 }, X { "next", tUNUMBER, 1 }, X { "first", tUNUMBER, 1 }, /* { "second", tUNUMBER, 2 }, */ X { "third", tUNUMBER, 3 }, X { "fourth", tUNUMBER, 4 }, X { "fifth", tUNUMBER, 5 }, X { "sixth", tUNUMBER, 6 }, X { "seventh", tUNUMBER, 7 }, X { "eighth", tUNUMBER, 8 }, X { "ninth", tUNUMBER, 9 }, X { "tenth", tUNUMBER, 10 }, X { "eleventh", tUNUMBER, 11 }, X { "twelfth", tUNUMBER, 12 }, X { "ago", tAGO, 1 }, X { NULL, 0, 0 } }; X /* The timezone table. */ static TABLE const TimezoneTable[] = { X { "gmt", tZONE, HOUR ( 0) }, /* Greenwich Mean */ X { "ut", tZONE, HOUR ( 0) }, /* Universal (Coordinated) */ X { "utc", tZONE, HOUR ( 0) }, X { "wet", tZONE, HOUR ( 0) }, /* Western European */ X { "bst", tDAYZONE, HOUR ( 0) }, /* British Summer */ X { "wat", tZONE, HOUR ( 1) }, /* West Africa */ X { "at", tZONE, HOUR ( 2) }, /* Azores */ #if 0 X /* For completeness. BST is also British Summer, and GST is X * also Guam Standard. */ X { "bst", tZONE, HOUR ( 3) }, /* Brazil Standard */ X { "gst", tZONE, HOUR ( 3) }, /* Greenland Standard */ #endif #if 0 X { "nft", tZONE, HOUR (3.5) }, /* Newfoundland */ X { "nst", tZONE, HOUR (3.5) }, /* Newfoundland Standard */ X { "ndt", tDAYZONE, HOUR (3.5) }, /* Newfoundland Daylight */ #endif X { "ast", tZONE, HOUR ( 4) }, /* Atlantic Standard */ X { "adt", tDAYZONE, HOUR ( 4) }, /* Atlantic Daylight */ X { "est", tZONE, HOUR ( 5) }, /* Eastern Standard */ X { "edt", tDAYZONE, HOUR ( 5) }, /* Eastern Daylight */ X { "cst", tZONE, HOUR ( 6) }, /* Central Standard */ X { "cdt", tDAYZONE, HOUR ( 6) }, /* Central Daylight */ X { "mst", tZONE, HOUR ( 7) }, /* Mountain Standard */ X { "mdt", tDAYZONE, HOUR ( 7) }, /* Mountain Daylight */ X { "pst", tZONE, HOUR ( 8) }, /* Pacific Standard */ X { "pdt", tDAYZONE, HOUR ( 8) }, /* Pacific Daylight */ X { "yst", tZONE, HOUR ( 9) }, /* Yukon Standard */ X { "ydt", tDAYZONE, HOUR ( 9) }, /* Yukon Daylight */ X { "hst", tZONE, HOUR (10) }, /* Hawaii Standard */ X { "hdt", tDAYZONE, HOUR (10) }, /* Hawaii Daylight */ X { "cat", tZONE, HOUR (10) }, /* Central Alaska */ X { "ahst", tZONE, HOUR (10) }, /* Alaska-Hawaii Standard */ X { "nt", tZONE, HOUR (11) }, /* Nome */ X { "idlw", tZONE, HOUR (12) }, /* International Date Line West */ X { "cet", tZONE, -HOUR (1) }, /* Central European */ X { "met", tZONE, -HOUR (1) }, /* Middle European */ X { "mewt", tZONE, -HOUR (1) }, /* Middle European Winter */ X { "mest", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ X { "mesz", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ X { "swt", tZONE, -HOUR (1) }, /* Swedish Winter */ X { "sst", tDAYZONE, -HOUR (1) }, /* Swedish Summer */ X { "fwt", tZONE, -HOUR (1) }, /* French Winter */ X { "fst", tDAYZONE, -HOUR (1) }, /* French Summer */ X { "eet", tZONE, -HOUR (2) }, /* Eastern Europe, USSR Zone 1 */ X { "bt", tZONE, -HOUR (3) }, /* Baghdad, USSR Zone 2 */ #if 0 X { "it", tZONE, -HOUR (3.5) },/* Iran */ #endif X { "zp4", tZONE, -HOUR (4) }, /* USSR Zone 3 */ X { "zp5", tZONE, -HOUR (5) }, /* USSR Zone 4 */ #if 0 X { "ist", tZONE, -HOUR (5.5) },/* Indian Standard */ #endif X { "zp6", tZONE, -HOUR (6) }, /* USSR Zone 5 */ #if 0 X /* For completeness. NST is also Newfoundland Standard, and SST is X * also Swedish Summer. */ X { "nst", tZONE, -HOUR (6.5) },/* North Sumatra */ X { "sst", tZONE, -HOUR (7) }, /* South Sumatra, USSR Zone 6 */ #endif /* 0 */ X { "wast", tZONE, -HOUR (7) }, /* West Australian Standard */ X { "wadt", tDAYZONE, -HOUR (7) }, /* West Australian Daylight */ #if 0 X { "jt", tZONE, -HOUR (7.5) },/* Java (3pm in Cronusland!) */ #endif X { "cct", tZONE, -HOUR (8) }, /* China Coast, USSR Zone 7 */ X { "jst", tZONE, -HOUR (9) }, /* Japan Standard, USSR Zone 8 */ #if 0 X { "cast", tZONE, -HOUR (9.5) },/* Central Australian Standard */ X { "cadt", tDAYZONE, -HOUR (9.5) },/* Central Australian Daylight */ #endif X { "east", tZONE, -HOUR (10) }, /* Eastern Australian Standard */ X { "eadt", tDAYZONE, -HOUR (10) }, /* Eastern Australian Daylight */ X { "gst", tZONE, -HOUR (10) }, /* Guam Standard, USSR Zone 9 */ X { "nzt", tZONE, -HOUR (12) }, /* New Zealand */ X { "nzst", tZONE, -HOUR (12) }, /* New Zealand Standard */ X { "nzdt", tDAYZONE, -HOUR (12) }, /* New Zealand Daylight */ X { "idle", tZONE, -HOUR (12) }, /* International Date Line East */ X { NULL, 0, 0 } }; X /* Military timezone table. */ static TABLE const MilitaryTable[] = { X { "a", tZONE, HOUR ( 1) }, X { "b", tZONE, HOUR ( 2) }, X { "c", tZONE, HOUR ( 3) }, X { "d", tZONE, HOUR ( 4) }, X { "e", tZONE, HOUR ( 5) }, X { "f", tZONE, HOUR ( 6) }, X { "g", tZONE, HOUR ( 7) }, X { "h", tZONE, HOUR ( 8) }, X { "i", tZONE, HOUR ( 9) }, X { "k", tZONE, HOUR ( 10) }, X { "l", tZONE, HOUR ( 11) }, X { "m", tZONE, HOUR ( 12) }, X { "n", tZONE, HOUR (- 1) }, X { "o", tZONE, HOUR (- 2) }, X { "p", tZONE, HOUR (- 3) }, X { "q", tZONE, HOUR (- 4) }, X { "r", tZONE, HOUR (- 5) }, X { "s", tZONE, HOUR (- 6) }, X { "t", tZONE, HOUR (- 7) }, X { "u", tZONE, HOUR (- 8) }, X { "v", tZONE, HOUR (- 9) }, X { "w", tZONE, HOUR (-10) }, X { "x", tZONE, HOUR (-11) }, X { "y", tZONE, HOUR (-12) }, X { "z", tZONE, HOUR ( 0) }, X { NULL, 0, 0 } }; X X X X /* ARGSUSED */ static int yyerror (s) X char *s ATTRIBUTE_UNUSED; { X return 0; } X static int ToHour (Hours, Meridian) X int Hours; X MERIDIAN Meridian; { X switch (Meridian) X { X case MER24: X if (Hours < 0 || Hours > 23) X return -1; X return Hours; X case MERam: X if (Hours < 1 || Hours > 12) X return -1; X if (Hours == 12) X Hours = 0; X return Hours; X case MERpm: X if (Hours < 1 || Hours > 12) X return -1; X if (Hours == 12) X Hours = 0; X return Hours + 12; X default: X abort (); X } X /* NOTREACHED */ } X static int ToYear (Year) X int Year; { X if (Year < 0) X Year = -Year; X X /* XPG4 suggests that years 00-68 map to 2000-2068, and X years 69-99 map to 1969-1999. */ X if (Year < 69) X Year += 2000; X else if (Year < 100) X Year += 1900; X X return Year; } X static int LookupWord (buff) X char *buff; { X register char *p; X register char *q; X register const TABLE *tp; X int i; X int abbrev; X X /* Make it lowercase. */ X for (p = buff; *p; p++) X if (ISUPPER ((unsigned char) *p)) X *p = tolower (*p); X X if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0) X { X yylval.Meridian = MERam; X return tMERIDIAN; X } X if (strcmp (buff, "pm") == 0 || strcmp (buff, "p.m.") == 0) X { X yylval.Meridian = MERpm; X return tMERIDIAN; X } X X /* See if we have an abbreviation for a month. */ X if (strlen (buff) == 3) X abbrev = 1; X else if (strlen (buff) == 4 && buff[3] == '.') X { X abbrev = 1; X buff[3] = '\0'; X } X else X abbrev = 0; X X for (tp = MonthDayTable; tp->name; tp++) X { X if (abbrev) X { X if (strncmp (buff, tp->name, 3) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X } X else if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X } X X for (tp = TimezoneTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X if (strcmp (buff, "dst") == 0) X return tDST; X X for (tp = UnitsTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X /* Strip off any plural and try the units table again. */ X i = strlen (buff) - 1; X if (buff[i] == 's') X { X buff[i] = '\0'; X for (tp = UnitsTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X buff[i] = 's'; /* Put back for "this" in OtherTable. */ X } X X for (tp = OtherTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X /* Military timezones. */ X if (buff[1] == '\0' && ISALPHA ((unsigned char) *buff)) X { X for (tp = MilitaryTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X } X X /* Drop out any periods and try the timezone table again. */ X for (i = 0, p = q = buff; *q; q++) X if (*q != '.') X *p++ = *q; X else X i++; X *p = '\0'; X if (i) X for (tp = TimezoneTable; tp->name; tp++) X if (strcmp (buff, tp->name) == 0) X { X yylval.Number = tp->value; X return tp->type; X } X X return tID; } X static int yylex () { X register unsigned char c; X register char *p; X char buff[20]; X int Count; X int sign; X X for (;;) X { X while (ISSPACE ((unsigned char) *yyInput)) X yyInput++; X X if (ISDIGIT (c = *yyInput) || c == '-' || c == '+') X { X if (c == '-' || c == '+') X { X sign = c == '-' ? -1 : 1; X if (!ISDIGIT (*++yyInput)) X /* skip the '-' sign */ X continue; X } X else X sign = 0; X for (yylval.Number = 0; ISDIGIT (c = *yyInput++);) X yylval.Number = 10 * yylval.Number + c - '0'; X yyInput--; X if (sign < 0) X yylval.Number = -yylval.Number; X return sign ? tSNUMBER : tUNUMBER; X } X if (ISALPHA (c)) X { X for (p = buff; (c = *yyInput++, ISALPHA (c)) || c == '.';) X if (p < &buff[sizeof buff - 1]) X *p++ = c; X *p = '\0'; X yyInput--; X return LookupWord (buff); X } X if (c != '(') X return *yyInput++; X Count = 0; X do X { X c = *yyInput++; X if (c == '\0') X return c; X if (c == '(') X Count++; X else if (c == ')') X Count--; X } X while (Count > 0); X } } X #define TM_YEAR_ORIGIN 1900 X /* Yield A - B, measured in seconds. */ static long difftm (struct tm *a, struct tm *b) { X int ay = a->tm_year + (TM_YEAR_ORIGIN - 1); X int by = b->tm_year + (TM_YEAR_ORIGIN - 1); X long days = ( X /* difference in day of year */ X a->tm_yday - b->tm_yday X /* + intervening leap days */ X + ((ay >> 2) - (by >> 2)) X - (ay / 100 - by / 100) X + ((ay / 100 >> 2) - (by / 100 >> 2)) X /* + difference in years * 365 */ X + (long) (ay - by) * 365 X ); X return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) X + (a->tm_min - b->tm_min)) X + (a->tm_sec - b->tm_sec)); } X time_t get_date (const char *p, const time_t *now) { X struct tm tm, tm0, *tmp; X time_t Start; X X yyInput = p; X Start = now ? *now : time ((time_t *) NULL); X tmp = localtime (&Start); X if (!tmp) X return -1; X yyYear = tmp->tm_year + TM_YEAR_ORIGIN; X yyMonth = tmp->tm_mon + 1; X yyDay = tmp->tm_mday; X yyHour = tmp->tm_hour; X yyMinutes = tmp->tm_min; X yySeconds = tmp->tm_sec; X tm.tm_isdst = tmp->tm_isdst; X yyMeridian = MER24; X yyRelSeconds = 0; X yyRelMinutes = 0; X yyRelHour = 0; X yyRelDay = 0; X yyRelMonth = 0; X yyRelYear = 0; X yyHaveDate = 0; X yyHaveDay = 0; X yyHaveRel = 0; X yyHaveTime = 0; X yyHaveZone = 0; X X if (yyparse () X || yyHaveTime > 1 || yyHaveZone > 1 || yyHaveDate > 1 || yyHaveDay > 1) X return -1; X X tm.tm_year = ToYear (yyYear) - TM_YEAR_ORIGIN + yyRelYear; X tm.tm_mon = yyMonth - 1 + yyRelMonth; X tm.tm_mday = yyDay + yyRelDay; X if (yyHaveTime || (yyHaveRel && !yyHaveDate && !yyHaveDay)) X { X tm.tm_hour = ToHour (yyHour, yyMeridian); X if (tm.tm_hour < 0) X return -1; X tm.tm_min = yyMinutes; X tm.tm_sec = yySeconds; X } X else X { X tm.tm_hour = tm.tm_min = tm.tm_sec = 0; X } X tm.tm_hour += yyRelHour; X tm.tm_min += yyRelMinutes; X tm.tm_sec += yyRelSeconds; X X /* Let mktime deduce tm_isdst if we have an absolute timestamp, X or if the relative timestamp mentions days, months, or years. */ X if (yyHaveDate | yyHaveDay | yyHaveTime | yyRelDay | yyRelMonth | yyRelYear) X tm.tm_isdst = -1; X X tm0 = tm; X X Start = mktime (&tm); X X if (Start == (time_t) -1) X { X X /* Guard against falsely reporting errors near the time_t boundaries X when parsing times in other time zones. For example, if the min X time_t value is 1970-01-01 00:00:00 UTC and we are 8 hours ahead X of UTC, then the min localtime value is 1970-01-01 08:00:00; if X we apply mktime to 1970-01-01 00:00:00 we will get an error, so X we apply mktime to 1970-01-02 08:00:00 instead and adjust the time X zone by 24 hours to compensate. This algorithm assumes that X there is no DST transition within a day of the time_t boundaries. */ X if (yyHaveZone) X { X tm = tm0; X if (tm.tm_year <= EPOCH - TM_YEAR_ORIGIN) X { X tm.tm_mday++; X yyTimezone -= 24 * 60; X } X else X { X tm.tm_mday--; X yyTimezone += 24 * 60; X } X Start = mktime (&tm); X } X X if (Start == (time_t) -1) X return Start; X } X X if (yyHaveDay && !yyHaveDate) X { X tm.tm_mday += ((yyDayNumber - tm.tm_wday + 7) % 7 X + 7 * (yyDayOrdinal - (0 < yyDayOrdinal))); X Start = mktime (&tm); X if (Start == (time_t) -1) X return Start; X } X X if (yyHaveZone) X { X long delta; X struct tm *gmt = gmtime (&Start); X if (!gmt) X return -1; X delta = yyTimezone * 60L + difftm (&tm, gmt); X if ((Start + delta < Start) != (delta < 0)) X return -1; /* time_t overflow */ X Start += delta; X } X X return Start; } X #if defined (TEST) X /* ARGSUSED */ int main (ac, av) X int ac; X char *av[]; { X char buff[MAX_BUFF_LEN + 1]; X time_t d; X X (void) printf ("Enter date, or blank line to exit.\n\t> "); X (void) fflush (stdout); X X buff[MAX_BUFF_LEN] = 0; X while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) X { X d = get_date (buff, (time_t *) NULL); X if (d == -1) X (void) printf ("Bad format - couldn't convert.\n"); X else X (void) printf ("%s", ctime (&d)); X (void) printf ("\t> "); X (void) fflush (stdout); X } X exit (0); X /* NOTREACHED */ } #endif /* defined (TEST) */ SHAR_EOF $shar_touch -am 0519204899 'tar-1.13/lib/getdate.y' && chmod 0444 'tar-1.13/lib/getdate.y' || $echo 'restore of' 'tar-1.13/lib/getdate.y' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getdate.y:' 'MD5 check failed' ad8091c4b507f7bde3804b8dc1150c56 tar-1.13/lib/getdate.y SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getdate.y'`" test 25769 -eq "$shar_count" || $echo 'tar-1.13/lib/getdate.y:' 'original size' '25769,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getopt.c ============== if test -f 'tar-1.13/lib/getopt.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getopt.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getopt.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getopt.c' && /* Getopt for GNU. X NOTE: getopt is now part of the C library, so if you don't know what X "Keep this file name-space clean" means, talk to drepper@gnu.org X before changing it! X X Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 X Free Software Foundation, Inc. X X The GNU C Library is free software; you can redistribute it and/or X modify it under the terms of the GNU Library General Public License as X published by the Free Software Foundation; either version 2 of the X License, or (at your option) any later version. X X The GNU C Library is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU X Library General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X /* This tells Alpha OSF/1 not to define a getopt prototype in . X Ditto for AIX 3.2 and . */ #ifndef _NO_PROTO # define _NO_PROTO #endif X #ifdef HAVE_CONFIG_H # include #endif X #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems X reject `defined (const)'. */ # ifndef const # define const # endif #endif X #include X /* Comment out all this code if we are using the GNU C Library, and are not X actually compiling the library itself. This code is part of the GNU C X Library, but also included in many other GNU distributions. Compiling X and linking in this code is a waste when using the GNU C library X (especially if it is a shared library). Rather than having every GNU X program understand `configure --with-gnu-libc' and omit the object files, X it is simpler to just do this in the source for each such file. */ X #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 # include # if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION # define ELIDE_CODE # endif #endif X #ifndef ELIDE_CODE X X /* This needs to come after some library #include X to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ /* Don't include stdlib.h for non-GNU C libraries because some of them X contain conflicting prototypes for getopt. */ # include # include #endif /* GNU C library. */ X #ifdef VMS # include # if HAVE_STRING_H - 0 # include # endif #endif X #ifndef _ /* This is for other GNU distributions with internationalized messages. X When compiling libc, the _ macro is predefined. */ # ifdef HAVE_LIBINTL_H # include # define _(msgid) gettext (msgid) # else # define _(msgid) (msgid) # endif #endif X /* This version of `getopt' appears to the caller like standard Unix `getopt' X but it behaves differently for the user, since it allows the user X to intersperse the options with the other arguments. X X As `getopt' works, it permutes the elements of ARGV so that, X when it is done, all the options precede everything else. Thus X all application programs are extended to handle flexible argument order. X X Setting the environment variable POSIXLY_CORRECT disables permutation. X Then the behavior is completely standard. X X GNU application programs can use a third alternative mode in which X they can distinguish the relative order of options and other arguments. */ X #include "getopt.h" X /* For communication from `getopt' to the caller. X When `getopt' finds an option that takes an argument, X the argument value is returned here. X Also, when `ordering' is RETURN_IN_ORDER, X each non-option ARGV-element is returned here. */ X char *optarg = NULL; X /* Index in ARGV of the next element to be scanned. X This is used for communication to and from the caller X and for communication between successive calls to `getopt'. X X On entry to `getopt', zero means this is the first call; initialize. X X When `getopt' returns -1, this is the index of the first of the X non-option elements that the caller should itself scan. X X Otherwise, `optind' communicates from one call to the next X how much of ARGV has been scanned so far. */ X /* 1003.2 says this must be 1 before any call. */ int optind = 1; X /* Formerly, initialization of getopt depended on optind==0, which X causes problems with re-calling getopt as programs generally don't X know that. */ X int __getopt_initialized = 0; X /* The next char to be scanned in the option-element X in which the last option character we returned was found. X This allows us to pick up the scan where we left off. X X If this is zero, or a null string, it means resume the scan X by advancing to the next ARGV-element. */ X static char *nextchar; X /* Callers store zero here to inhibit the error message X for unrecognized options. */ X int opterr = 1; X /* Set to an option character which was unrecognized. X This must be initialized on some systems to avoid linking in the X system's own getopt implementation. */ X int optopt = '?'; X /* Describe how to deal with options that follow non-option ARGV-elements. X X If the caller did not specify anything, X the default is REQUIRE_ORDER if the environment variable X POSIXLY_CORRECT is defined, PERMUTE otherwise. X X REQUIRE_ORDER means don't recognize them as options; X stop option processing when the first non-option is seen. X This is what Unix does. X This mode of operation is selected by either setting the environment X variable POSIXLY_CORRECT, or using `+' as the first character X of the list of option characters. X X PERMUTE is the default. We permute the contents of ARGV as we scan, X so that eventually all the non-options are at the end. This allows options X to be given in any order, even with programs that were not written to X expect this. X X RETURN_IN_ORDER is an option available to programs that were written X to expect options and other ARGV-elements in any order and that care about X the ordering of the two. We describe each non-option ARGV-element X as if it were the argument of an option with character code 1. X Using `-' as the first character of the list of option characters X selects this mode of operation. X X The special argument `--' forces an end of option-scanning regardless X of the value of `ordering'. In the case of RETURN_IN_ORDER, only X `--' can cause `getopt' to return -1 with `optind' != ARGC. */ X static enum { X REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } ordering; X /* Value of POSIXLY_CORRECT environment variable. */ static char *posixly_correct; X #ifdef __GNU_LIBRARY__ /* We want to avoid inclusion of string.h with non-GNU libraries X because there are many ways it can cause trouble. X On some systems, it contains special magic macros that don't work X in GCC. */ # include # define my_index strchr #else X # if HAVE_STRING_H # include # else # include # endif X /* Avoid depending on library functions or files X whose names are inconsistent. */ X #ifndef getenv extern char *getenv (); #endif X static char * my_index (str, chr) X const char *str; X int chr; { X while (*str) X { X if (*str == chr) X return (char *) str; X str++; X } X return 0; } X /* If using GCC, we can safely declare strlen this way. X If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. X That was relevant to code that was here before. */ # if (!defined __STDC__ || !__STDC__) && !defined strlen /* gcc with -traditional declares the built-in strlen to return int, X and has done so at least since version 2.4.5. -- rms. */ extern int strlen (const char *); # endif /* not __STDC__ */ #endif /* __GNUC__ */ X #endif /* not __GNU_LIBRARY__ */ X /* Handle permutation of arguments. */ X /* Describe the part of ARGV that contains non-options that have X been skipped. `first_nonopt' is the index in ARGV of the first of them; X `last_nonopt' is the index after the last of them. */ X static int first_nonopt; static int last_nonopt; X #ifdef _LIBC /* Bash 2.0 gives us an environment variable containing flags X indicating ARGV elements that should not be considered arguments. */ X /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; X static int nonoption_flags_max_len; static int nonoption_flags_len; X static int original_argc; static char *const *original_argv; X /* Make sure the environment variable bash 2.0 puts in the environment X is valid for the getopt call we must make sure that the ARGV passed X to getopt is that one passed to the process. */ static void __attribute__ ((unused)) store_args_and_env (int argc, char *const *argv) { X /* XXX This is no good solution. We should rather copy the args so X that we can compare them later. But we must not use malloc(3). */ X original_argc = argc; X original_argv = argv; } # ifdef text_set_element text_set_element (__libc_subinit, store_args_and_env); # endif /* text_set_element */ X # define SWAP_FLAGS(ch1, ch2) \ X if (nonoption_flags_len > 0) \ X { \ X char __tmp = __getopt_nonoption_flags[ch1]; \ X __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ X __getopt_nonoption_flags[ch2] = __tmp; \ X } #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ X /* Exchange two adjacent subsequences of ARGV. X One subsequence is elements [first_nonopt,last_nonopt) X which contains all the non-options that have been skipped so far. X The other is elements [last_nonopt,optind), which contains all X the options processed since those non-options were skipped. X X `first_nonopt' and `last_nonopt' are relocated so that they describe X the new indices of the non-options in ARGV after they are moved. */ X #if defined __STDC__ && __STDC__ static void exchange (char **); #endif X static void exchange (argv) X char **argv; { X int bottom = first_nonopt; X int middle = last_nonopt; X int top = optind; X char *tem; X X /* Exchange the shorter segment with the far end of the longer segment. X That puts the shorter segment into the right place. X It leaves the longer segment in the right place overall, X but it consists of two parts that need to be swapped next. */ X #ifdef _LIBC X /* First make sure the handling of the `__getopt_nonoption_flags' X string can work normally. Our top argument must be in the range X of the string. */ X if (nonoption_flags_len > 0 && top >= nonoption_flags_max_len) X { X /* We must extend the array. The user plays games with us and X presents new arguments. */ X char *new_str = malloc (top + 1); X if (new_str == NULL) X nonoption_flags_len = nonoption_flags_max_len = 0; X else X { X memset (__mempcpy (new_str, __getopt_nonoption_flags, X nonoption_flags_max_len), X '\0', top + 1 - nonoption_flags_max_len); X nonoption_flags_max_len = top + 1; X __getopt_nonoption_flags = new_str; X } X } #endif X X while (top > middle && middle > bottom) X { X if (top - middle > middle - bottom) X { X /* Bottom segment is the short one. */ X int len = middle - bottom; X register int i; X X /* Swap it with the top part of the top segment. */ X for (i = 0; i < len; i++) X { X tem = argv[bottom + i]; X argv[bottom + i] = argv[top - (middle - bottom) + i]; X argv[top - (middle - bottom) + i] = tem; X SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); X } X /* Exclude the moved bottom segment from further swapping. */ X top -= len; X } X else X { X /* Top segment is the short one. */ X int len = top - middle; X register int i; X X /* Swap it with the bottom part of the bottom segment. */ X for (i = 0; i < len; i++) X { X tem = argv[bottom + i]; X argv[bottom + i] = argv[middle + i]; X argv[middle + i] = tem; X SWAP_FLAGS (bottom + i, middle + i); X } X /* Exclude the moved top segment from further swapping. */ X bottom += len; X } X } X X /* Update records for the slots the non-options now occupy. */ X X first_nonopt += (optind - last_nonopt); X last_nonopt = optind; } X /* Initialize the internal data when the first call is made. */ X #if defined __STDC__ && __STDC__ static const char *_getopt_initialize (int, char *const *, const char *); #endif static const char * _getopt_initialize (argc, argv, optstring) X int argc; X char *const *argv; X const char *optstring; { X /* Start processing options with ARGV-element 1 (since ARGV-element 0 X is the program name); the sequence of previously skipped X non-option ARGV-elements is empty. */ X X first_nonopt = last_nonopt = optind; X X nextchar = NULL; X X posixly_correct = getenv ("POSIXLY_CORRECT"); X X /* Determine how to handle the ordering of options and nonoptions. */ X X if (optstring[0] == '-') X { X ordering = RETURN_IN_ORDER; X ++optstring; X } X else if (optstring[0] == '+') X { X ordering = REQUIRE_ORDER; X ++optstring; X } X else if (posixly_correct != NULL) X ordering = REQUIRE_ORDER; X else X ordering = PERMUTE; X #ifdef _LIBC X if (posixly_correct == NULL X && argc == original_argc && argv == original_argv) X { X if (nonoption_flags_max_len == 0) X { X if (__getopt_nonoption_flags == NULL X || __getopt_nonoption_flags[0] == '\0') X nonoption_flags_max_len = -1; X else X { X const char *orig_str = __getopt_nonoption_flags; X int len = nonoption_flags_max_len = strlen (orig_str); X if (nonoption_flags_max_len < argc) X nonoption_flags_max_len = argc; X __getopt_nonoption_flags = X (char *) malloc (nonoption_flags_max_len); X if (__getopt_nonoption_flags == NULL) X nonoption_flags_max_len = -1; X else X memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), X '\0', nonoption_flags_max_len - len); X } X } X nonoption_flags_len = nonoption_flags_max_len; X } X else X nonoption_flags_len = 0; #endif X X return optstring; } X /* Scan elements of ARGV (whose length is ARGC) for option characters X given in OPTSTRING. X X If an element of ARGV starts with '-', and is not exactly "-" or "--", X then it is an option element. The characters of this element X (aside from the initial '-') are option characters. If `getopt' X is called repeatedly, it returns successively each of the option characters X from each of the option elements. X X If `getopt' finds another option character, it returns that character, X updating `optind' and `nextchar' so that the next call to `getopt' can X resume the scan with the following option character or ARGV-element. X X If there are no more option characters, `getopt' returns -1. X Then `optind' is the index in ARGV of the first ARGV-element X that is not an option. (The ARGV-elements have been permuted X so that those that are not options now come last.) X X OPTSTRING is a string containing the legitimate option characters. X If an option character is seen that is not listed in OPTSTRING, X return '?' after printing an error message. If you set `opterr' to X zero, the error message is suppressed but we still return '?'. X X If a char in OPTSTRING is followed by a colon, that means it wants an arg, X so the following text in the same ARGV-element, or the text of the following X ARGV-element, is returned in `optarg'. Two colons mean an option that X wants an optional arg; if there is text in the current ARGV-element, X it is returned in `optarg', otherwise `optarg' is set to zero. X X If OPTSTRING starts with `-' or `+', it requests different methods of X handling the non-option ARGV-elements. X See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. X X Long-named options begin with `--' instead of `-'. X Their names may be abbreviated as long as the abbreviation is unique X or is an exact match for some defined option. If they have an X argument, it follows the option name in the same ARGV-element, separated X from the option name by a `=', or else the in next ARGV-element. X When `getopt' finds a long-named option, it returns 0 if that option's X `flag' field is nonzero, the value of the option's `val' field X if the `flag' field is zero. X X The elements of ARGV aren't really const, because we permute them. X But we pretend they're const in the prototype to be compatible X with other systems. X X LONGOPTS is a vector of `struct option' terminated by an X element containing a name which is zero. X X LONGIND returns the index in LONGOPT of the long-named option found. X It is only valid when a long-named option has been found by the most X recent call. X X If LONG_ONLY is nonzero, '-' as well as '--' can introduce X long-named options. */ X int _getopt_internal (argc, argv, optstring, longopts, longind, long_only) X int argc; X char *const *argv; X const char *optstring; X const struct option *longopts; X int *longind; X int long_only; { X optarg = NULL; X X if (optind == 0 || !__getopt_initialized) X { X if (optind == 0) X optind = 1; /* Don't scan ARGV[0], the program name. */ X optstring = _getopt_initialize (argc, argv, optstring); X __getopt_initialized = 1; X } X X /* Test whether ARGV[optind] points to a non-option argument. X Either it does not have option syntax, or there is an environment flag X from the shell indicating it is not an option. The later information X is only used when the used in the GNU libc. */ #ifdef _LIBC # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ X || (optind < nonoption_flags_len \ X && __getopt_nonoption_flags[optind] == '1')) #else # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') #endif X X if (nextchar == NULL || *nextchar == '\0') X { X /* Advance to the next ARGV-element. */ X X /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been X moved back by the user (who may also have changed the arguments). */ X if (last_nonopt > optind) X last_nonopt = optind; X if (first_nonopt > optind) X first_nonopt = optind; X X if (ordering == PERMUTE) X { X /* If we have just processed some options following some non-options, X exchange them so that the options come first. */ X X if (first_nonopt != last_nonopt && last_nonopt != optind) X exchange ((char **) argv); X else if (last_nonopt != optind) X first_nonopt = optind; X X /* Skip any additional non-options X and extend the range of non-options previously skipped. */ X X while (optind < argc && NONOPTION_P) X optind++; X last_nonopt = optind; X } X X /* The special ARGV-element `--' means premature end of options. X Skip it like a null option, X then exchange with previous non-options as if it were an option, X then skip everything else like a non-option. */ X X if (optind != argc && !strcmp (argv[optind], "--")) X { X optind++; X X if (first_nonopt != last_nonopt && last_nonopt != optind) X exchange ((char **) argv); X else if (first_nonopt == last_nonopt) X first_nonopt = optind; X last_nonopt = argc; X X optind = argc; X } X X /* If we have done all the ARGV-elements, stop the scan X and back over any non-options that we skipped and permuted. */ X X if (optind == argc) X { X /* Set the next-arg-index to point at the non-options X that we previously skipped, so the caller will digest them. */ X if (first_nonopt != last_nonopt) X optind = first_nonopt; X return -1; X } X X /* If we have come to a non-option and did not permute it, X either stop the scan or describe it to the caller and pass it by. */ X X if (NONOPTION_P) X { X if (ordering == REQUIRE_ORDER) X return -1; X optarg = argv[optind++]; X return 1; X } X X /* We have found another option-ARGV-element. X Skip the initial punctuation. */ X X nextchar = (argv[optind] + 1 X + (longopts != NULL && argv[optind][1] == '-')); X } X X /* Decode the current option-ARGV-element. */ X X /* Check whether the ARGV-element is a long option. X X If long_only and the ARGV-element has the form "-f", where f is X a valid short option, don't consider it an abbreviated form of X a long option that starts with f. Otherwise there would be no X way to give the -f short option. X X On the other hand, if there's a long option "fubar" and X the ARGV-element is "-fu", do consider that an abbreviation of X the long option, just like "--fu", and not "-f" with arg "u". X X This distinction seems to be the most useful approach. */ X X if (longopts != NULL X && (argv[optind][1] == '-' X || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) X { X char *nameend; X const struct option *p; X const struct option *pfound = NULL; X int exact = 0; X int ambig = 0; X int indfound = -1; X int option_index; X X for (nameend = nextchar; *nameend && *nameend != '='; nameend++) X /* Do nothing. */ ; X X /* Test all long options for either exact match X or abbreviated matches. */ X for (p = longopts, option_index = 0; p->name; p++, option_index++) X if (!strncmp (p->name, nextchar, nameend - nextchar)) X { X if ((unsigned int) (nameend - nextchar) X == (unsigned int) strlen (p->name)) X { X /* Exact match found. */ X pfound = p; X indfound = option_index; X exact = 1; X break; X } X else if (pfound == NULL) X { X /* First nonexact match found. */ X pfound = p; X indfound = option_index; X } X else X /* Second or later nonexact match found. */ X ambig = 1; X } X X if (ambig && !exact) X { X if (opterr) X fprintf (stderr, _("%s: option `%s' is ambiguous\n"), X argv[0], argv[optind]); X nextchar += strlen (nextchar); X optind++; X optopt = 0; X return '?'; X } X X if (pfound != NULL) X { X option_index = indfound; X optind++; X if (*nameend) X { X /* Don't test has_arg with >, because some C compilers don't X allow it to be used on enums. */ X if (pfound->has_arg) X optarg = nameend + 1; X else X { X if (opterr) X { X if (argv[optind - 1][1] == '-') X /* --option */ X fprintf (stderr, X _("%s: option `--%s' doesn't allow an argument\n"), X argv[0], pfound->name); X else X /* +option or -option */ X fprintf (stderr, X _("%s: option `%c%s' doesn't allow an argument\n"), X argv[0], argv[optind - 1][0], pfound->name); X } X X nextchar += strlen (nextchar); X X optopt = pfound->val; X return '?'; X } X } X else if (pfound->has_arg == 1) X { X if (optind < argc) X optarg = argv[optind++]; X else X { X if (opterr) X fprintf (stderr, X _("%s: option `%s' requires an argument\n"), X argv[0], argv[optind - 1]); X nextchar += strlen (nextchar); X optopt = pfound->val; X return optstring[0] == ':' ? ':' : '?'; X } X } X nextchar += strlen (nextchar); X if (longind != NULL) X *longind = option_index; X if (pfound->flag) X { X *(pfound->flag) = pfound->val; X return 0; X } X return pfound->val; X } X X /* Can't find it as a long option. If this is not getopt_long_only, X or the option starts with '--' or is not a valid short X option, then it's an error. X Otherwise interpret it as a short option. */ X if (!long_only || argv[optind][1] == '-' X || my_index (optstring, *nextchar) == NULL) X { X if (opterr) X { X if (argv[optind][1] == '-') X /* --option */ X fprintf (stderr, _("%s: unrecognized option `--%s'\n"), X argv[0], nextchar); X else X /* +option or -option */ X fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), X argv[0], argv[optind][0], nextchar); X } X nextchar = (char *) ""; X optind++; X optopt = 0; X return '?'; X } X } X X /* Look at and handle the next short option-character. */ X X { X char c = *nextchar++; X char *temp = my_index (optstring, c); X X /* Increment `optind' when we start to process its last character. */ X if (*nextchar == '\0') X ++optind; X X if (temp == NULL || c == ':') X { X if (opterr) X { X if (posixly_correct) X /* 1003.2 specifies the format of this message. */ X fprintf (stderr, _("%s: illegal option -- %c\n"), X argv[0], c); X else X fprintf (stderr, _("%s: invalid option -- %c\n"), X argv[0], c); X } X optopt = c; X return '?'; X } X /* Convenience. Treat POSIX -W foo same as long option --foo */ X if (temp[0] == 'W' && temp[1] == ';') X { X char *nameend; X const struct option *p; X const struct option *pfound = NULL; X int exact = 0; X int ambig = 0; X int indfound = 0; X int option_index; X X /* This is an option that requires an argument. */ X if (*nextchar != '\0') X { X optarg = nextchar; X /* If we end this ARGV-element by taking the rest as an arg, X we must advance to the next element now. */ X optind++; X } X else if (optind == argc) X { X if (opterr) X { X /* 1003.2 specifies the format of this message. */ X fprintf (stderr, _("%s: option requires an argument -- %c\n"), X argv[0], c); X } X optopt = c; X if (optstring[0] == ':') X c = ':'; X else X c = '?'; X return c; X } X else X /* We already incremented `optind' once; X increment it again when taking next ARGV-elt as argument. */ X optarg = argv[optind++]; X X /* optarg is now the argument, see if it's in the X table of longopts. */ X X for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++) X /* Do nothing. */ ; X X /* Test all long options for either exact match X or abbreviated matches. */ X for (p = longopts, option_index = 0; p->name; p++, option_index++) X if (!strncmp (p->name, nextchar, nameend - nextchar)) X { X if ((unsigned int) (nameend - nextchar) == strlen (p->name)) X { X /* Exact match found. */ X pfound = p; X indfound = option_index; X exact = 1; X break; X } X else if (pfound == NULL) X { X /* First nonexact match found. */ X pfound = p; X indfound = option_index; X } X else X /* Second or later nonexact match found. */ X ambig = 1; X } X if (ambig && !exact) X { X if (opterr) X fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), X argv[0], argv[optind]); X nextchar += strlen (nextchar); X optind++; X return '?'; X } X if (pfound != NULL) X { X option_index = indfound; X if (*nameend) X { X /* Don't test has_arg with >, because some C compilers don't X allow it to be used on enums. */ X if (pfound->has_arg) X optarg = nameend + 1; X else X { X if (opterr) X fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), X argv[0], pfound->name); X X nextchar += strlen (nextchar); X return '?'; X } X } X else if (pfound->has_arg == 1) X { X if (optind < argc) X optarg = argv[optind++]; X else X { X if (opterr) X fprintf (stderr, X _("%s: option `%s' requires an argument\n"), X argv[0], argv[optind - 1]); X nextchar += strlen (nextchar); X return optstring[0] == ':' ? ':' : '?'; X } X } X nextchar += strlen (nextchar); X if (longind != NULL) X *longind = option_index; X if (pfound->flag) X { X *(pfound->flag) = pfound->val; X return 0; X } X return pfound->val; X } X nextchar = NULL; X return 'W'; /* Let the application handle it. */ X } X if (temp[1] == ':') X { X if (temp[2] == ':') X { X /* This is an option that accepts an argument optionally. */ X if (*nextchar != '\0') X { X optarg = nextchar; X optind++; X } X else X optarg = NULL; X nextchar = NULL; X } X else X { X /* This is an option that requires an argument. */ X if (*nextchar != '\0') X { X optarg = nextchar; X /* If we end this ARGV-element by taking the rest as an arg, X we must advance to the next element now. */ X optind++; X } X else if (optind == argc) X { X if (opterr) X { X /* 1003.2 specifies the format of this message. */ X fprintf (stderr, X _("%s: option requires an argument -- %c\n"), X argv[0], c); X } X optopt = c; X if (optstring[0] == ':') X c = ':'; X else X c = '?'; X } X else X /* We already incremented `optind' once; X increment it again when taking next ARGV-elt as argument. */ X optarg = argv[optind++]; X nextchar = NULL; X } X } X return c; X } } X int getopt (argc, argv, optstring) X int argc; X char *const *argv; X const char *optstring; { X return _getopt_internal (argc, argv, optstring, X (const struct option *) 0, X (int *) 0, X 0); } X #endif /* Not ELIDE_CODE. */ X #ifdef TEST X /* Compile with -DTEST to make an executable for use in testing X the above definition of `getopt'. */ X int main (argc, argv) X int argc; X char **argv; { X int c; X int digit_optind = 0; X X while (1) X { X int this_option_optind = optind ? optind : 1; X X c = getopt (argc, argv, "abc:d:0123456789"); X if (c == -1) X break; X X switch (c) X { X case '0': X case '1': X case '2': X case '3': X case '4': X case '5': X case '6': X case '7': X case '8': X case '9': X if (digit_optind != 0 && digit_optind != this_option_optind) X printf ("digits occur in two different argv-elements.\n"); X digit_optind = this_option_optind; X printf ("option %c\n", c); X break; X X case 'a': X printf ("option a\n"); X break; X X case 'b': X printf ("option b\n"); X break; X X case 'c': X printf ("option c with value `%s'\n", optarg); X break; X X case '?': X break; X X default: X printf ("?? getopt returned character code 0%o ??\n", c); X } X } X X if (optind < argc) X { X printf ("non-option ARGV-elements: "); X while (optind < argc) X printf ("%s ", argv[optind++]); X printf ("\n"); X } X X exit (0); } X #endif /* TEST */ SHAR_EOF $shar_touch -am 0112213699 'tar-1.13/lib/getopt.c' && chmod 0444 'tar-1.13/lib/getopt.c' || $echo 'restore of' 'tar-1.13/lib/getopt.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getopt.c:' 'MD5 check failed' c9dd0e5ce22ed0dc4535d67ae0394f5e tar-1.13/lib/getopt.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getopt.c'`" test 30070 -eq "$shar_count" || $echo 'tar-1.13/lib/getopt.c:' 'original size' '30070,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getopt1.c ============== if test -f 'tar-1.13/lib/getopt1.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getopt1.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getopt1.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getopt1.c' && /* getopt_long and getopt_long_only entry points for GNU getopt. X Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 X Free Software Foundation, Inc. X This file is part of the GNU C Library. X X The GNU C Library is free software; you can redistribute it and/or X modify it under the terms of the GNU Library General Public License as X published by the Free Software Foundation; either version 2 of the X License, or (at your option) any later version. X X The GNU C Library is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU X Library General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H #include #endif X #include "getopt.h" X #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems X reject `defined (const)'. */ #ifndef const #define const #endif #endif X #include X /* Comment out all this code if we are using the GNU C Library, and are not X actually compiling the library itself. This code is part of the GNU C X Library, but also included in many other GNU distributions. Compiling X and linking in this code is a waste when using the GNU C library X (especially if it is a shared library). Rather than having every GNU X program understand `configure --with-gnu-libc' and omit the object files, X it is simpler to just do this in the source for each such file. */ X #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 #include #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE #endif #endif X #ifndef ELIDE_CODE X X /* This needs to come after some library #include X to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include #endif X #ifndef NULL #define NULL 0 #endif X int getopt_long (argc, argv, options, long_options, opt_index) X int argc; X char *const *argv; X const char *options; X const struct option *long_options; X int *opt_index; { X return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } X /* Like getopt_long, but '-' as well as '--' can indicate a long option. X If an option that starts with '-' (not '--') doesn't match a long option, X but does match a short option, it is parsed as a short option X instead. */ X int getopt_long_only (argc, argv, options, long_options, opt_index) X int argc; X char *const *argv; X const char *options; X const struct option *long_options; X int *opt_index; { X return _getopt_internal (argc, argv, options, long_options, opt_index, 1); } X X #endif /* Not ELIDE_CODE. */ X #ifdef TEST X #include X int main (argc, argv) X int argc; X char **argv; { X int c; X int digit_optind = 0; X X while (1) X { X int this_option_optind = optind ? optind : 1; X int option_index = 0; X static struct option long_options[] = X { X {"add", 1, 0, 0}, X {"append", 0, 0, 0}, X {"delete", 1, 0, 0}, X {"verbose", 0, 0, 0}, X {"create", 0, 0, 0}, X {"file", 1, 0, 0}, X {0, 0, 0, 0} X }; X X c = getopt_long (argc, argv, "abc:d:0123456789", X long_options, &option_index); X if (c == -1) X break; X X switch (c) X { X case 0: X printf ("option %s", long_options[option_index].name); X if (optarg) X printf (" with arg %s", optarg); X printf ("\n"); X break; X X case '0': X case '1': X case '2': X case '3': X case '4': X case '5': X case '6': X case '7': X case '8': X case '9': X if (digit_optind != 0 && digit_optind != this_option_optind) X printf ("digits occur in two different argv-elements.\n"); X digit_optind = this_option_optind; X printf ("option %c\n", c); X break; X X case 'a': X printf ("option a\n"); X break; X X case 'b': X printf ("option b\n"); X break; X X case 'c': X printf ("option c with value `%s'\n", optarg); X break; X X case 'd': X printf ("option d with value `%s'\n", optarg); X break; X X case '?': X break; X X default: X printf ("?? getopt returned character code 0%o ??\n", c); X } X } X X if (optind < argc) X { X printf ("non-option ARGV-elements: "); X while (optind < argc) X printf ("%s ", argv[optind++]); X printf ("\n"); X } X X exit (0); } X #endif /* TEST */ SHAR_EOF $shar_touch -am 0112213699 'tar-1.13/lib/getopt1.c' && chmod 0444 'tar-1.13/lib/getopt1.c' || $echo 'restore of' 'tar-1.13/lib/getopt1.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getopt1.c:' 'MD5 check failed' fb11c19ed86b0989d2325ff02c82ea71 tar-1.13/lib/getopt1.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getopt1.c'`" test 4550 -eq "$shar_count" || $echo 'tar-1.13/lib/getopt1.c:' 'original size' '4550,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/modechange.c ============== if test -f 'tar-1.13/lib/modechange.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/modechange.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/modechange.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/modechange.c' && /* modechange.c -- file mode manipulation X Copyright (C) 1989, 1990, 1997, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie */ X /* The ASCII mode string is compiled into a linked list of `struct X modechange', which can then be applied to each file to be changed. X We do this instead of re-parsing the ASCII string for each file X because the compiled form requires less computation to use; when X changing the mode of many files, this probably results in a X performance gain. */ X #if HAVE_CONFIG_H # include #endif X #include "modechange.h" #include #include "xstrtol.h" X #if STDC_HEADERS # include #else char *malloc (); #endif X #ifndef NULL # define NULL 0 #endif X #if STAT_MACROS_BROKEN # undef S_ISDIR #endif X #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif X #ifndef S_ISUID # define S_ISUID 04000 #endif #ifndef S_ISGID # define S_ISGID 04000 #endif #ifndef S_ISVTX # define S_ISVTX 01000 #endif #ifndef S_IRUSR # define S_IRUSR 0400 #endif #ifndef S_IWUSR # define S_IWUSR 0200 #endif #ifndef S_IXUSR # define S_IXUSR 0100 #endif #ifndef S_IRGRP # define S_IRGRP 0040 #endif #ifndef S_IWGRP # define S_IWGRP 0020 #endif #ifndef S_IXGRP # define S_IXGRP 0010 #endif #ifndef S_IROTH # define S_IROTH 0004 #endif #ifndef S_IWOTH # define S_IWOTH 0002 #endif #ifndef S_IXOTH # define S_IXOTH 0001 #endif #ifndef S_IRWXU # define S_IRWXU 0700 #endif #ifndef S_IRWXG # define S_IRWXG 0070 #endif #ifndef S_IRWXO # define S_IRWXO 0007 #endif X /* All the mode bits that can be affected by chmod. */ #define CHMOD_MODE_BITS \ X (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) X /* Return newly allocated memory to hold one element of type TYPE. */ #define talloc(type) ((type *) malloc (sizeof (type))) X /* Create a mode_change entry with the specified `=ddd'-style X mode change operation, where NEW_MODE is `ddd'. Return the X new entry, or NULL upon failure. */ X static struct mode_change * make_node_op_equals (mode_t new_mode) { X struct mode_change *p; X p = talloc (struct mode_change); X if (p == NULL) X return p; X p->next = NULL; X p->op = '='; X p->flags = 0; X p->value = new_mode; X p->affected = CHMOD_MODE_BITS; /* Affect all permissions. */ X return p; } X /* Append entry E to the end of the link list with the specified X HEAD and TAIL. */ X static void mode_append_entry (struct mode_change **head, X struct mode_change **tail, X struct mode_change *e) { X if (*head == NULL) X *head = *tail = e; X else X { X (*tail)->next = e; X *tail = e; X } } X /* Return a linked list of file mode change operations created from X MODE_STRING, an ASCII string that contains either an octal number X specifying an absolute mode, or symbolic mode change operations with X the form: X [ugoa...][[+-=][rwxXstugo...]...][,...] X MASKED_OPS is a bitmask indicating which symbolic mode operators (=+-) X should not affect bits set in the umask when no users are given. X Operators not selected in MASKED_OPS ignore the umask. X X Return MODE_INVALID if `mode_string' does not contain a valid X representation of file mode change operations; X return MODE_MEMORY_EXHAUSTED if there is insufficient memory. */ X struct mode_change * mode_compile (const char *mode_string, unsigned int masked_ops) { X struct mode_change *head; /* First element of the linked list. */ X struct mode_change *tail; /* An element of the linked list. */ X unsigned long mode_value; /* The mode value, if octal. */ X char *string_end; /* Pointer to end of parsed value. */ X mode_t umask_value; /* The umask value (surprise). */ X X head = NULL; #ifdef lint X tail = NULL; #endif X X if (xstrtoul (mode_string, &string_end, 8, &mode_value, "") == LONGINT_OK) X { X struct mode_change *p; X if (mode_value > CHMOD_MODE_BITS) X return MODE_INVALID; X p = make_node_op_equals ((mode_t) mode_value); X if (p == NULL) X return MODE_MEMORY_EXHAUSTED; X mode_append_entry (&head, &tail, p); X return head; X } X X umask_value = umask (0); X umask (umask_value); /* Restore the old value. */ X --mode_string; X X /* One loop iteration for each "ugoa...=+-rwxXstugo...[=+-rwxXstugo...]". */ X do X { X /* Which bits in the mode are operated on. */ X mode_t affected_bits = 0; X /* `affected_bits' modified by umask. */ X mode_t affected_masked; X /* Operators to actually use umask on. */ X unsigned ops_to_mask = 0; X X int who_specified_p; X X affected_bits = 0; X ops_to_mask = 0; X /* Turn on all the bits in `affected_bits' for each group given. */ X for (++mode_string;; ++mode_string) X switch (*mode_string) X { X case 'u': X affected_bits |= S_ISUID | S_IRWXU; X break; X case 'g': X affected_bits |= S_ISGID | S_IRWXG; X break; X case 'o': X affected_bits |= S_ISVTX | S_IRWXO; X break; X case 'a': X affected_bits |= CHMOD_MODE_BITS; X break; X default: X goto no_more_affected; X } X X no_more_affected: X /* If none specified, affect all bits, except perhaps those X set in the umask. */ X if (affected_bits) X who_specified_p = 1; X else X { X who_specified_p = 0; X affected_bits = CHMOD_MODE_BITS; X ops_to_mask = masked_ops; X } X X while (*mode_string == '=' || *mode_string == '+' || *mode_string == '-') X { X struct mode_change *change = talloc (struct mode_change); X if (change == NULL) X { X mode_free (head); X return MODE_MEMORY_EXHAUSTED; X } X X change->next = NULL; X change->op = *mode_string; /* One of "=+-". */ X affected_masked = affected_bits; X X /* Per the Single Unix Spec, if `who' is not specified and the X `=' operator is used, then clear all the bits first. */ X if (!who_specified_p && X ops_to_mask & (*mode_string == '=' ? MODE_MASK_EQUALS : 0)) X { X struct mode_change *p = make_node_op_equals (0); X if (p == NULL) X return MODE_MEMORY_EXHAUSTED; X mode_append_entry (&head, &tail, p); X } X X if (ops_to_mask & (*mode_string == '=' ? MODE_MASK_EQUALS X : *mode_string == '+' ? MODE_MASK_PLUS X : MODE_MASK_MINUS)) X affected_masked &= ~umask_value; X change->affected = affected_masked; X change->value = 0; X change->flags = 0; X X /* Add the element to the tail of the list, so the operations X are performed in the correct order. */ X mode_append_entry (&head, &tail, change); X X /* Set `value' according to the bits set in `affected_masked'. */ X for (++mode_string;; ++mode_string) X switch (*mode_string) X { X case 'r': X change->value |= ((S_IRUSR | S_IRGRP | S_IROTH) X & affected_masked); X break; X case 'w': X change->value |= ((S_IWUSR | S_IWGRP | S_IWOTH) X & affected_masked); X break; X case 'X': X change->flags |= MODE_X_IF_ANY_X; X /* Fall through. */ X case 'x': X change->value |= ((S_IXUSR | S_IXGRP | S_IXOTH) X & affected_masked); X break; X case 's': X /* Set the setuid/gid bits if `u' or `g' is selected. */ X change->value |= (S_ISUID | S_ISGID) & affected_masked; X break; X case 't': X /* Set the "save text image" bit if `o' is selected. */ X change->value |= S_ISVTX & affected_masked; X break; X case 'u': X /* Set the affected bits to the value of the `u' bits X on the same file. */ X if (change->value) X goto invalid; X change->value = S_IRWXU; X change->flags |= MODE_COPY_EXISTING; X break; X case 'g': X /* Set the affected bits to the value of the `g' bits X on the same file. */ X if (change->value) X goto invalid; X change->value = S_IRWXG; X change->flags |= MODE_COPY_EXISTING; X break; X case 'o': X /* Set the affected bits to the value of the `o' bits X on the same file. */ X if (change->value) X goto invalid; X change->value = S_IRWXO; X change->flags |= MODE_COPY_EXISTING; X break; X default: X goto no_more_values; X } X no_more_values:; X } X } while (*mode_string == ','); X if (*mode_string == 0) X return head; invalid: X mode_free (head); X return MODE_INVALID; } X /* Return a file mode change operation that sets permissions to match those X of REF_FILE. Return MODE_BAD_REFERENCE if REF_FILE can't be accessed. */ X struct mode_change * mode_create_from_ref (const char *ref_file) { X struct mode_change *change; /* the only change element */ X struct stat ref_stats; X X if (stat (ref_file, &ref_stats)) X return MODE_BAD_REFERENCE; X X change = talloc (struct mode_change); X X if (change == NULL) X return MODE_MEMORY_EXHAUSTED; X X change->op = '='; X change->flags = 0; X change->affected = CHMOD_MODE_BITS; X change->value = ref_stats.st_mode; X change->next = NULL; X X return change; } X /* Return file mode OLDMODE, adjusted as indicated by the list of change X operations CHANGES. If OLDMODE is a directory, the type `X' X change affects it even if no execute bits were set in OLDMODE. X The returned value has the S_IFMT bits cleared. */ X mode_t mode_adjust (mode_t oldmode, const struct mode_change *changes) { X mode_t newmode; /* The adjusted mode and one operand. */ X mode_t value; /* The other operand. */ X X newmode = oldmode & CHMOD_MODE_BITS; X X for (; changes; changes = changes->next) X { X if (changes->flags & MODE_COPY_EXISTING) X { X /* Isolate in `value' the bits in `newmode' to copy, given in X the mask `changes->value'. */ X value = newmode & changes->value; X X if (changes->value & S_IRWXU) X /* Copy `u' permissions onto `g' and `o'. */ X value |= ((value & S_IRUSR ? S_IRGRP | S_IROTH : 0) X | (value & S_IWUSR ? S_IWGRP | S_IROTH : 0) X | (value & S_IXUSR ? S_IXGRP | S_IXOTH : 0)); X else if (changes->value & S_IRWXG) X /* Copy `g' permissions onto `u' and `o'. */ X value |= ((value & S_IRGRP ? S_IRUSR | S_IROTH : 0) X | (value & S_IWGRP ? S_IWUSR | S_IROTH : 0) X | (value & S_IXGRP ? S_IXUSR | S_IXOTH : 0)); X else X /* Copy `o' permissions onto `u' and `g'. */ X value |= ((value & S_IROTH ? S_IRUSR | S_IRGRP : 0) X | (value & S_IWOTH ? S_IWUSR | S_IRGRP : 0) X | (value & S_IXOTH ? S_IXUSR | S_IXGRP : 0)); X X /* In order to change only `u', `g', or `o' permissions, X or some combination thereof, clear unselected bits. X This can not be done in mode_compile because the value X to which the `changes->affected' mask is applied depends X on the old mode of each file. */ X value &= changes->affected; X } X else X { X value = changes->value; X /* If `X', do not affect the execute bits if the file is not a X directory and no execute bits are already set. */ X if ((changes->flags & MODE_X_IF_ANY_X) X && !S_ISDIR (oldmode) X && (newmode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0) X /* Clear the execute bits. */ X value &= ~ (S_IXUSR | S_IXGRP | S_IXOTH); X } X X switch (changes->op) X { X case '=': X /* Preserve the previous values in `newmode' of bits that are X not affected by this change operation. */ X newmode = (newmode & ~changes->affected) | value; X break; X case '+': X newmode |= value; X break; X case '-': X newmode &= ~value; X break; X } X } X return newmode; } X /* Free the memory used by the list of file mode change operations X CHANGES. */ X void mode_free (register struct mode_change *changes) { X register struct mode_change *next; X X while (changes) X { X next = changes->next; X free (changes); X changes = next; X } } SHAR_EOF $shar_touch -am 0426002099 'tar-1.13/lib/modechange.c' && chmod 0444 'tar-1.13/lib/modechange.c' || $echo 'restore of' 'tar-1.13/lib/modechange.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/modechange.c:' 'MD5 check failed' 853eff86549f7ad50cfe763896a1f053 tar-1.13/lib/modechange.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/modechange.c'`" test 12177 -eq "$shar_count" || $echo 'tar-1.13/lib/modechange.c:' 'original size' '12177,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/msleep.c ============== if test -f 'tar-1.13/lib/msleep.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/msleep.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/msleep.c' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/lib/msleep.c M+RH@4VQE97`@82!G:79E;B!N=6UB97(@;V8@;6EL;&ES96-O;F1S+@H@("!# M;W!Y2!O9@H@("!- M15)#2$%.5$%"24Q)5%D@;W(@1DE43D534R!&3U(@02!005)424-53$%2(%!5 M4E!/4T4N("!3964@=&AE"B`@($=.52!'96YE2!C87-E7,O='EP M97,N:#X*(R`@:6YC;'5D92`\<&]L;"YH/@HC(&5N9&EF"B,@:68@(4A!5D5? M4U123U!44U](("8F("%(059%7U!/3$Q?2`HO*B!792!N965D(&$@9&5F:6YI M=&EO;B!F;W(@PH@(&EN="!I9'5M;7D["GT["B,@96YD:68*(V5L7,O=&EM92YH/@HC(&5N9&EF"B-E;F1I9@H* M+RHM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TN"GP@ M4VQE97`@82!G:79E;B!N=6UB97(@;V8@;6EL;&ES96-O;F1S+@D@?`I@+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM*B\*"G9O:60* M;7-L965P("AM:6QL:7-E8V]N9',I"B`@("`@:6YT(&UI;&QIPHC:68@2$%615]54TQ%15`*"B`@:68@*&UI;&QIPH@("`@("!S;&5E<"`H;6EL;&ES96-O;F1S("\@,3`P,"D[ M"B`@("`@(&UI;&QIPH@("`@ M("!S;&5E<"`H;6EL;&ES96-O;F1S("\@,3`P,"D["B`@("`@(&UI;&QI2P@,"P@;6EL;&ES96-O;F1S*3L*"B,@("!E;'-E M"B,@("`@:68@2$%615]314Q%0U0*"B`@PH@("`@("!S;&5E<"`H;6EL;&ES96-O;F1S("\@,3`P,"D["B`@("`@(&UI M;&QIPH@("`@("!S+G1V7W-E8R`](&UI;&QI&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/msleep.c:' 'MD5 check failed' 5bae68c49cd6f4db4a8ba03d84c295bc tar-1.13/lib/msleep.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/msleep.c'`" test 3028 -eq "$shar_count" || $echo 'tar-1.13/lib/msleep.c:' 'original size' '3028,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/quotearg.c ============== if test -f 'tar-1.13/lib/quotearg.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/quotearg.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/quotearg.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/quotearg.c' && /* quotearg.c - quote arguments for output X Copyright (C) 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Paul Eggert */ X #if HAVE_CONFIG_H # include #endif X #include #include #include X #include #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) # define ISASCII(c) 1 #else # define ISASCII(c) isascii (c) #endif #ifdef isgraph # define ISGRAPH(c) (ISASCII (c) && isgraph (c)) #else # define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c)) #endif X #if HAVE_LIMITS_H # include #endif #ifndef CHAR_BIT # define CHAR_BIT 8 #endif #ifndef UCHAR_MAX # define UCHAR_MAX ((unsigned char) -1) #endif X #if HAVE_STDLIB_H # include #endif X #if HAVE_STRING_H # include #endif X #define INT_BITS (sizeof (int) * CHAR_BIT) X struct quoting_options { X /* Basic quoting style. */ X enum quoting_style style; X X /* Quote the chararacters indicated by this bit vector even if the X quoting style would not normally require them to be quoted. */ X int quote_these_too[((UCHAR_MAX + 1) / INT_BITS X + ((UCHAR_MAX + 1) % INT_BITS != 0))]; }; X /* Names of quoting styles. */ char const *const quoting_style_args[] = { X "literal", X "shell", X "shell-always", X "c", X "escape", X 0 }; X /* Correspondances to quoting style names. */ enum quoting_style const quoting_style_vals[] = { X literal_quoting_style, X shell_quoting_style, X shell_always_quoting_style, X c_quoting_style, X escape_quoting_style }; X /* The default quoting options. */ static struct quoting_options default_quoting_options; X /* Allocate a new set of quoting options, with contents initially identical X to O if O is not null, or to the default if O is null. X It is the caller's responsibility to free the result. */ struct quoting_options * clone_quoting_options (struct quoting_options *o) { X struct quoting_options *p X = (struct quoting_options *) xmalloc (sizeof (struct quoting_options)); X *p = *(o ? o : &default_quoting_options); X return p; } X /* Get the value of O's quoting style. If O is null, use the default. */ enum quoting_style get_quoting_style (struct quoting_options *o) { X return (o ? o : &default_quoting_options)->style; } X /* In O (or in the default if O is null), X set the value of the quoting style to S. */ void set_quoting_style (struct quoting_options *o, enum quoting_style s) { X (o ? o : &default_quoting_options)->style = s; } X /* In O (or in the default if O is null), X set the value of the quoting options for character C to I. X Return the old value. Currently, the only values defined for I are X 0 (the default) and 1 (which means to quote the character even if X it would not otherwise be quoted). */ int set_char_quoting (struct quoting_options *o, char c, int i) { X unsigned char uc = c; X int *p = (o ? o : &default_quoting_options)->quote_these_too + uc / INT_BITS; X int shift = uc % INT_BITS; X int r = (*p >> shift) & 1; X *p ^= ((i & 1) ^ r) << shift; X return r; } X /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of X argument ARG (of size ARGSIZE), using O to control quoting. X If O is null, use the default. X Terminate the output with a null character, and return the written X size of the output, not counting the terminating null. X If BUFFERSIZE is too small to store the output string, return the X value that would have been returned had BUFFERSIZE been large enough. X If ARGSIZE is -1, use the string length of the argument for ARGSIZE. */ size_t quotearg_buffer (char *buffer, size_t buffersize, X char const *arg, size_t argsize, X struct quoting_options const *o) { X unsigned char c; X size_t i; X size_t len; X int quote_mark; X struct quoting_options const *p = o ? o : &default_quoting_options; X enum quoting_style quoting_style = p->style; #define STORE(c) \ X do \ X { \ X if (len < buffersize) \ X buffer[len] = (c); \ X len++; \ X } \ X while (0) X X switch (quoting_style) X { X case shell_quoting_style: X if (! (argsize == (size_t) -1 ? arg[0] == '\0' : argsize == 0)) X { X switch (arg[0]) X { X case '#': case '~': X break; X X default: X len = 0; X for (i = 0; ; i++) X { X if (argsize == (size_t) -1 ? arg[i] == '\0' : i == argsize) X goto done; X X c = arg[i]; X X switch (c) X { X case '\t': case '\n': case ' ': X case '!': /* special in csh */ X case '"': case '$': case '&': case '\'': X case '(': case ')': case '*': case ';': X case '<': case '>': case '?': case '[': case '\\': X case '^': /* special in old /bin/sh, e.g. SunOS 4.1.4 */ X case '`': case '|': X goto needs_quoting; X } X X if (p->quote_these_too[c / INT_BITS] & (1 << (c % INT_BITS))) X goto needs_quoting; X X STORE (c); X } X X needs_quoting:; X break; X } X } X /* Fall through. */ X X case shell_always_quoting_style: X quote_mark = '\''; X break; X X case c_quoting_style: X quote_mark = '"'; X break; X X default: X quote_mark = 0; X break; X } X X len = 0; X X if (quote_mark) X STORE (quote_mark); X X for (i = 0; ! (argsize == (size_t) -1 ? arg[i] == '\0' : i == argsize); i++) X { X c = arg[i]; X X switch (quoting_style) X { X case literal_quoting_style: X break; X X case shell_quoting_style: X case shell_always_quoting_style: X if (c == '\'') X { X STORE ('\''); X STORE ('\\'); X STORE ('\''); X } X break; X X case c_quoting_style: X case escape_quoting_style: X switch (c) X { X case '?': /* Do not generate trigraphs. */ X case '\\': goto store_escape; X /* Not all C compilers know what \a means. */ X case 7 : c = 'a'; goto store_escape; X case '\b': c = 'b'; goto store_escape; X case '\f': c = 'f'; goto store_escape; X case '\n': c = 'n'; goto store_escape; X case '\r': c = 'r'; goto store_escape; X case '\t': c = 't'; goto store_escape; X case '\v': c = 'v'; goto store_escape; X X case '"': X if (quoting_style == c_quoting_style) X goto store_escape; X break; X X default: X if (!ISGRAPH (c)) X { X STORE ('\\'); X STORE ('0' + (c >> 6)); X STORE ('0' + ((c >> 3) & 7)); X c = '0' + (c & 7); X goto store_c; X } X break; X } X X if (! (p->quote_these_too[c / INT_BITS] & (1 << (c % INT_BITS)))) X goto store_c; X X store_escape: X STORE ('\\'); X } X X store_c: X STORE (c); X } X X if (quote_mark) X STORE (quote_mark); X X done: X if (len < buffersize) X buffer[len] = '\0'; X return len; } X /* Use storage slot N to return a quoted version of the string ARG. X OPTIONS specifies the quoting options. X The returned value points to static storage that can be X reused by the next call to this function with the same value of N. X N must be nonnegative. N is deliberately declared with type `int' X to allow for future extensions (using negative values). */ static char * quotearg_n_options (int n, char const *arg, X struct quoting_options const *options) { X static unsigned int nslots; X static struct slotvec X { X size_t size; X char *val; X } *slotvec; X X if (nslots <= n) X { X int n1 = n + 1; X size_t s = n1 * sizeof (struct slotvec); X if (! (0 < n1 && n1 == s / sizeof (struct slotvec))) X abort (); X slotvec = (struct slotvec *) xrealloc (slotvec, s); X memset (slotvec + nslots, 0, (n1 - nslots) * sizeof (struct slotvec)); X nslots = n; X } X X { X size_t size = slotvec[n].size; X char *val = slotvec[n].val; X size_t qsize = quotearg_buffer (val, size, arg, (size_t) -1, options); X X if (size <= qsize) X { X slotvec[n].size = size = qsize + 1; X slotvec[n].val = val = xrealloc (val, size); X quotearg_buffer (val, size, arg, (size_t) -1, options); X } X X return val; X } } X char * quotearg_n (unsigned int n, char const *arg) { X return quotearg_n_options (n, arg, &default_quoting_options); } X char * quotearg (char const *arg) { X return quotearg_n (0, arg); } X char * quotearg_char (char const *arg, char ch) { X struct quoting_options options; X options = default_quoting_options; X set_char_quoting (&options, ch, 1); X return quotearg_n_options (0, arg, &options); } X char * quotearg_colon (char const *arg) { X return quotearg_char (arg, ':'); } SHAR_EOF $shar_touch -am 0118202199 'tar-1.13/lib/quotearg.c' && chmod 0444 'tar-1.13/lib/quotearg.c' || $echo 'restore of' 'tar-1.13/lib/quotearg.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/quotearg.c:' 'MD5 check failed' afbbd0f9e4804989084fac1a20a698ed tar-1.13/lib/quotearg.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/quotearg.c'`" test 9045 -eq "$shar_count" || $echo 'tar-1.13/lib/quotearg.c:' 'original size' '9045,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/safe-read.c ============== if test -f 'tar-1.13/lib/safe-read.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/safe-read.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/safe-read.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/safe-read.c' && /* safe-read.c -- an interface to read that retries after interrupts X Copyright (C) 1993, 1994, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X */ X #if HAVE_CONFIG_H # include #endif X #include X #if HAVE_UNISTD_H # include #endif X #include #ifndef errno extern int errno; #endif X #include "safe-read.h" X /* Read LEN bytes at PTR from descriptor DESC, retrying if interrupted. X Return the actual number of bytes read, zero for EOF, or negative X for an error. */ X ssize_t safe_read (int desc, void *ptr, size_t len) { X ssize_t n_chars; X X if (len <= 0) X return len; X #ifdef EINTR X do X { X n_chars = read (desc, ptr, len); X } X while (n_chars < 0 && errno == EINTR); #else X n_chars = read (desc, ptr, len); #endif X X return n_chars; } SHAR_EOF $shar_touch -am 0716160298 'tar-1.13/lib/safe-read.c' && chmod 0444 'tar-1.13/lib/safe-read.c' || $echo 'restore of' 'tar-1.13/lib/safe-read.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/safe-read.c:' 'MD5 check failed' 4a01abf98568f8a9fea5f4364d3f2750 tar-1.13/lib/safe-read.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/safe-read.c'`" test 1487 -eq "$shar_count" || $echo 'tar-1.13/lib/safe-read.c:' 'original size' '1487,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xgetcwd.c ============== if test -f 'tar-1.13/lib/xgetcwd.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xgetcwd.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xgetcwd.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xgetcwd.c' && /* xgetcwd.c -- return current directory with unlimited length X Copyright (C) 1992, 1996 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie . */ X #if HAVE_CONFIG_H # include #endif X #include #include #ifndef errno extern int errno; #endif X #include #include "pathmax.h" X #if HAVE_GETCWD char *getcwd (); #else char *getwd (); # define getcwd(Buf, Max) getwd (Buf) #endif X /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 X char *xmalloc (); char *xrealloc (); void free (); X /* Return the current directory, newly allocated, arbitrarily long. X Return NULL and set errno on error. */ X char * xgetcwd () { X char *cwd; X char *ret; X unsigned path_max; X X errno = 0; X path_max = (unsigned) PATH_MAX; X path_max += 2; /* The getcwd docs say to do this. */ X X cwd = xmalloc (path_max); X X errno = 0; X while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE) X { X path_max += PATH_INCR; X cwd = xrealloc (cwd, path_max); X errno = 0; X } X X if (ret == NULL) X { X int save_errno = errno; X free (cwd); X errno = save_errno; X return NULL; X } X return cwd; } SHAR_EOF $shar_touch -am 0122182397 'tar-1.13/lib/xgetcwd.c' && chmod 0444 'tar-1.13/lib/xgetcwd.c' || $echo 'restore of' 'tar-1.13/lib/xgetcwd.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xgetcwd.c:' 'MD5 check failed' b4f026ae84f3ae9a001a8b3f36c4da54 tar-1.13/lib/xgetcwd.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xgetcwd.c'`" test 1908 -eq "$shar_count" || $echo 'tar-1.13/lib/xgetcwd.c:' 'original size' '1908,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xmalloc.c ============== if test -f 'tar-1.13/lib/xmalloc.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xmalloc.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xmalloc.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xmalloc.c' && /* xmalloc.c -- malloc with out of memory checking X Copyright (C) 1990-1997, 98, 99 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #include X #if STDC_HEADERS # include #else void *calloc (); void *malloc (); void *realloc (); void free (); #endif X #if ENABLE_NLS # include # define _(Text) gettext (Text) #else # define textdomain(Domain) # define _(Text) Text #endif #define N_(Text) Text X #include "error.h" #include "xalloc.h" X #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #endif X #ifndef HAVE_DONE_WORKING_MALLOC_CHECK you must run the autoconf test for a properly working malloc -- see malloc.m4 #endif X #ifndef HAVE_DONE_WORKING_REALLOC_CHECK you must run the autoconf test for a properly working realloc -- see realloc.m4 #endif X /* Exit value when the requested amount of memory is not available. X The caller may set it to some other value. */ int xalloc_exit_failure = EXIT_FAILURE; X /* If non NULL, call this function when memory is exhausted. */ void (*xalloc_fail_func) () = 0; X /* If XALLOC_FAIL_FUNC is NULL, or does return, display this message X before exiting when memory is exhausted. Goes through gettext. */ char *const xalloc_msg_memory_exhausted = N_("Memory exhausted"); X static void xalloc_fail (void) { X if (xalloc_fail_func) X (*xalloc_fail_func) (); X error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted)); } X /* Allocate N bytes of memory dynamically, with error checking. */ X void * xmalloc (size_t n) { X void *p; X X p = malloc (n); X if (p == 0) X xalloc_fail (); X return p; } X /* Change the size of an allocated block of memory P to N bytes, X with error checking. X If P is NULL, run xmalloc. */ X void * xrealloc (void *p, size_t n) { X p = realloc (p, n); X if (p == 0) X xalloc_fail (); X return p; } X /* Allocate memory for N elements of S bytes, with error checking. */ X void * xcalloc (size_t n, size_t s) { X void *p; X X p = calloc (n, s); X if (p == 0) X xalloc_fail (); X return p; } SHAR_EOF $shar_touch -am 0418194399 'tar-1.13/lib/xmalloc.c' && chmod 0444 'tar-1.13/lib/xmalloc.c' || $echo 'restore of' 'tar-1.13/lib/xmalloc.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xmalloc.c:' 'MD5 check failed' a1b0ce6978da26e396eddf510481a0de tar-1.13/lib/xmalloc.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xmalloc.c'`" test 2731 -eq "$shar_count" || $echo 'tar-1.13/lib/xmalloc.c:' 'original size' '2731,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xstrdup.c ============== if test -f 'tar-1.13/lib/xstrdup.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xstrdup.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xstrdup.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xstrdup.c' && /* xstrdup.c -- copy a string with out of memory checking X Copyright (C) 1990, 1996, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X #if STDC_HEADERS || HAVE_STRING_H # include #else # include #endif X #include X char *xmalloc PARAMS ((size_t n)); X /* Return a newly allocated copy of STRING. */ X char * xstrdup (const char *string) { X return strcpy (xmalloc (strlen (string) + 1), string); } SHAR_EOF $shar_touch -am 0224203498 'tar-1.13/lib/xstrdup.c' && chmod 0444 'tar-1.13/lib/xstrdup.c' || $echo 'restore of' 'tar-1.13/lib/xstrdup.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xstrdup.c:' 'MD5 check failed' 2bae4e589c5a0f0d693418a611078cdd tar-1.13/lib/xstrdup.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xstrdup.c'`" test 1318 -eq "$shar_count" || $echo 'tar-1.13/lib/xstrdup.c:' 'original size' '1318,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xstrtol.c ============== if test -f 'tar-1.13/lib/xstrtol.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xstrtol.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xstrtol.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xstrtol.c' && /* A more useful interface to strtol. X Copyright 1995, 1996, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Jim Meyering. */ X #if HAVE_CONFIG_H # include #endif X #ifndef __strtol # define __strtol strtol # define __strtol_t long int # define __xstrtol xstrtol #endif X /* Some pre-ANSI implementations (e.g. SunOS 4) X need stderr defined if assertion checking is enabled. */ #include X #if STDC_HEADERS # include #endif X #if HAVE_STRING_H # include #else # include # ifndef strchr # define strchr index # endif #endif X #include #include X #include #ifndef errno extern int errno; #endif X #if HAVE_LIMITS_H # include #endif X #ifndef CHAR_BIT # define CHAR_BIT 8 #endif X /* The extra casts work around common compiler bugs. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The outer cast is needed to work around a bug in Cray C 5.0.3.0. X It is necessary at least when t == time_t. */ #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ X ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0)) #define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t)) X #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) # define IN_CTYPE_DOMAIN(c) 1 #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif X #define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) X #include "xstrtol.h" X #ifndef strtol long int strtol (); #endif X #ifndef strtoul unsigned long int strtoul (); #endif X #ifndef strtoumax uintmax_t strtoumax (); #endif X static int bkm_scale (__strtol_t *x, int scale_factor) { X __strtol_t product = *x * scale_factor; X if (*x != product / scale_factor) X return 1; X *x = product; X return 0; } X static int bkm_scale_by_power (__strtol_t *x, int base, int power) { X while (power--) X if (bkm_scale (x, base)) X return 1; X X return 0; } X /* FIXME: comment. */ X strtol_error __xstrtol (const char *s, char **ptr, int strtol_base, X __strtol_t *val, const char *valid_suffixes) { X char *t_ptr; X char **p; X __strtol_t tmp; X X assert (0 <= strtol_base && strtol_base <= 36); X X p = (ptr ? ptr : &t_ptr); X X if (! TYPE_SIGNED (__strtol_t)) X { X const char *q = s; X while (ISSPACE ((unsigned char) *q)) X ++q; X if (*q == '-') X return LONGINT_INVALID; X } X X errno = 0; X tmp = __strtol (s, p, strtol_base); X if (errno != 0) X return LONGINT_OVERFLOW; X if (*p == s) X return LONGINT_INVALID; X X /* Let valid_suffixes == NULL mean `allow any suffix'. */ X /* FIXME: update all callers except the ones that allow suffixes X after the number, changing last parameter NULL to `""'. */ X if (!valid_suffixes) X { X *val = tmp; X return LONGINT_OK; X } X X if (**p != '\0') X { X int base = 1024; X int suffixes = 1; X int overflow; X X if (!strchr (valid_suffixes, **p)) X { X *val = tmp; X return LONGINT_INVALID_SUFFIX_CHAR; X } X X if (strchr (valid_suffixes, '0')) X { X /* The ``valid suffix'' '0' is a special flag meaning that X an optional second suffix is allowed, which can change X the base, e.g. "100MD" for 100 megabytes decimal. */ X X switch (p[0][1]) X { X case 'B': X suffixes++; X break; X X case 'D': X base = 1000; X suffixes++; X break; X } X } X X switch (**p) X { X case 'b': X overflow = bkm_scale (&tmp, 512); X break; X X case 'B': X overflow = bkm_scale (&tmp, 1024); X break; X X case 'c': X overflow = 0; X break; X X case 'E': /* Exa */ X overflow = bkm_scale_by_power (&tmp, base, 6); X break; X X case 'G': /* Giga */ X overflow = bkm_scale_by_power (&tmp, base, 3); X break; X X case 'k': /* kilo */ X overflow = bkm_scale_by_power (&tmp, base, 1); X break; X X case 'M': /* Mega */ X case 'm': /* 'm' is undocumented; for backward compatibility only */ X overflow = bkm_scale_by_power (&tmp, base, 2); X break; X X case 'P': /* Peta */ X overflow = bkm_scale_by_power (&tmp, base, 5); X break; X X case 'T': /* Tera */ X overflow = bkm_scale_by_power (&tmp, base, 4); X break; X X case 'w': X overflow = bkm_scale (&tmp, 2); X break; X X case 'Y': /* Yotta */ X overflow = bkm_scale_by_power (&tmp, base, 8); X break; X X case 'Z': /* Zetta */ X overflow = bkm_scale_by_power (&tmp, base, 7); X break; X X default: X *val = tmp; X return LONGINT_INVALID_SUFFIX_CHAR; X break; X } X X if (overflow) X return LONGINT_OVERFLOW; X X (*p) += suffixes; X } X X *val = tmp; X return LONGINT_OK; } X #ifdef TESTING_XSTRTO X # include # include "error.h" X char *program_name; X int main (int argc, char** argv) { X strtol_error s_err; X int i; X X program_name = argv[0]; X for (i=1; i%lu (%s)\n", argv[i], val, p); X } X else X { X STRTOL_FATAL_ERROR (argv[i], "arg", s_err); X } X } X exit (0); } X #endif /* TESTING_XSTRTO */ SHAR_EOF $shar_touch -am 0704022499 'tar-1.13/lib/xstrtol.c' && chmod 0444 'tar-1.13/lib/xstrtol.c' || $echo 'restore of' 'tar-1.13/lib/xstrtol.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xstrtol.c:' 'MD5 check failed' 08db9c9073f546e012c794d30e74fba7 tar-1.13/lib/xstrtol.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xstrtol.c'`" test 5669 -eq "$shar_count" || $echo 'tar-1.13/lib/xstrtol.c:' 'original size' '5669,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xstrtoul.c ============== if test -f 'tar-1.13/lib/xstrtoul.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xstrtoul.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xstrtoul.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xstrtoul.c' && #define __strtol strtoul #define __strtol_t unsigned long int #define __xstrtol xstrtoul #include "xstrtol.c" SHAR_EOF $shar_touch -am 0418194399 'tar-1.13/lib/xstrtoul.c' && chmod 0444 'tar-1.13/lib/xstrtoul.c' || $echo 'restore of' 'tar-1.13/lib/xstrtoul.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xstrtoul.c:' 'MD5 check failed' 151f7402c2ea94b760f4e7729b64e30b tar-1.13/lib/xstrtoul.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xstrtoul.c'`" test 110 -eq "$shar_count" || $echo 'tar-1.13/lib/xstrtoul.c:' 'original size' '110,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xstrtoumax.c ============== if test -f 'tar-1.13/lib/xstrtoumax.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xstrtoumax.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xstrtoumax.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xstrtoumax.c' && /* xstrtoumax.c -- A more useful interface to strtoumax. X Copyright 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Paul Eggert. */ X #if HAVE_CONFIG_H # include #endif X #if HAVE_INTTYPES_H # include #endif X #define __strtol strtoumax #define __strtol_t uintmax_t #define __xstrtol xstrtoumax #include "xstrtol.c" SHAR_EOF $shar_touch -am 0420212899 'tar-1.13/lib/xstrtoumax.c' && chmod 0444 'tar-1.13/lib/xstrtoumax.c' || $echo 'restore of' 'tar-1.13/lib/xstrtoumax.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xstrtoumax.c:' 'MD5 check failed' 1e6c857d482d8d769118586631a23fa4 tar-1.13/lib/xstrtoumax.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xstrtoumax.c'`" test 1042 -eq "$shar_count" || $echo 'tar-1.13/lib/xstrtoumax.c:' 'original size' '1042,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/argmatch.h ============== if test -f 'tar-1.13/lib/argmatch.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/argmatch.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/argmatch.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/argmatch.h' && /* argmatch.h -- definitions and prototypes for argmatch.c X Copyright (C) 1990, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by David MacKenzie X Modified by Akim Demaille */ X #ifndef ARGMATCH_H_ # define ARGMATCH_H_ 1 X # if HAVE_CONFIG_H # include # endif X # include X # ifndef PARAMS # if PROTOTYPES || (defined (__STDC__) && __STDC__) # define PARAMS(args) args # else # define PARAMS(args) () # endif /* GCC. */ # endif /* Not PARAMS. */ X /* Assert there are as many real arguments as there are values X (argument list ends with a NULL guard). There is no execution X cost, since it will be statically evalauted to `assert (0)' or X `assert (1)'. Unfortunately there is no -Wassert-0. */ X # undef ARRAY_CARDINALITY # define ARRAY_CARDINALITY(Array) (sizeof ((Array)) / sizeof (*(Array))) X # define ARGMATCH_ASSERT(Arglist, Vallist) \ X assert (ARRAY_CARDINALITY ((Arglist)) == ARRAY_CARDINALITY ((Vallist)) + 1) X /* Return the index of the element of ARGLIST (NULL terminated) that X matches with ARG. If VALLIST is not NULL, then use it to resolve X false ambiguities (i.e., different matches of ARG but corresponding X to the same values in VALLIST). */ X int argmatch X PARAMS ((const char *arg, const char *const *arglist, X const char *vallist, size_t valsize)); int argcasematch X PARAMS ((const char *arg, const char *const *arglist, X const char *vallist, size_t valsize)); X # define ARGMATCH(Arg, Arglist, Vallist) \ X argmatch ((Arg), (Arglist), (const char *) (Vallist), sizeof (*(Vallist))) X # define ARGCASEMATCH(Arg, Arglist, Vallist) \ X argcasematch ((Arg), (Arglist), (const char *) (Vallist), sizeof (*(Vallist))) X /* xargmatch calls this function when it fails. This function should not X return. By default, this is a function that calls ARGMATCH_DIE which X in turn defaults to `exit (EXIT_FAILURE)'. */ typedef void (*argmatch_exit_fn) PARAMS ((void)); extern argmatch_exit_fn argmatch_die; X /* Report on stderr why argmatch failed. Report correct values. */ X void argmatch_invalid X PARAMS ((const char *context, const char *value, int problem)); X /* Left for compatibility with the old name invalid_arg */ X # define invalid_arg(Context, Value, Problem) \ X argmatch_invalid ((Context), (Value), (Problem)) X X X /* Report on stderr the list of possible arguments. */ X void argmatch_valid X PARAMS ((const char *const *arglist, X const char *vallist, size_t valsize)); X # define ARGMATCH_VALID(Arglist, Vallist) \ X argmatch_valid (Arglist, (const char *) Vallist, sizeof (*(Vallist))) X X X /* Same as argmatch, but upon failure, reports a explanation on the X failure, and exits using the function EXIT_FN. */ X int __xargmatch_internal X PARAMS ((const char *context, X const char *arg, const char *const *arglist, X const char *vallist, size_t valsize, X int case_sensitive, argmatch_exit_fn exit_fn)); X /* Programmer friendly interface to __xargmatch_internal. */ X # define XARGMATCH(Context, Arg, Arglist, Vallist) \ X (Vallist [__xargmatch_internal ((Context), (Arg), (Arglist), \ X (const char *) (Vallist), \ X sizeof (*(Vallist)), \ X 1, argmatch_die)]) X # define XARGCASEMATCH(Context, Arg, Arglist, Vallist) \ X (Vallist [__xargmatch_internal ((Context), (Arg), (Arglist), \ X (const char *) (Vallist), \ X sizeof (*(Vallist)), \ X 0, argmatch_die)]) X /* Convert a value into a corresponding argument. */ X const char *argmatch_to_argument X PARAMS ((char const *value, const char *const *arglist, X const char *vallist, size_t valsize)); X # define ARGMATCH_TO_ARGUMENT(Value, Arglist, Vallist) \ X argmatch_to_argument ((char const *) &(Value), (Arglist), \ X (const char *) (Vallist), sizeof (*(Vallist))) X #endif /* ARGMATCH_H_ */ SHAR_EOF $shar_touch -am 0125065799 'tar-1.13/lib/argmatch.h' && chmod 0444 'tar-1.13/lib/argmatch.h' || $echo 'restore of' 'tar-1.13/lib/argmatch.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/argmatch.h:' 'MD5 check failed' 569c667e1df399fc499a45ff609d60fc tar-1.13/lib/argmatch.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/argmatch.h'`" test 4586 -eq "$shar_count" || $echo 'tar-1.13/lib/argmatch.h:' 'original size' '4586,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/backupfile.h ============== if test -f 'tar-1.13/lib/backupfile.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/backupfile.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/backupfile.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/backupfile.h' && /* backupfile.h -- declarations for making Emacs style backup file names X Copyright (C) 1990-1992, 1997-1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; see the file COPYING. X If not, write to the Free Software Foundation, X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifndef BACKUPFILE_H_ # define BACKUPFILE_H_ X /* When to make backup files. */ enum backup_type { X /* Never make backups. */ X none, X X /* Make simple backups of every file. */ X simple, X X /* Make numbered backups of files that already have numbered backups, X and simple backups of the others. */ X numbered_existing, X X /* Make numbered backups of every file. */ X numbered }; X # define VALID_BACKUP_TYPE(Type) \ X ((Type) == none \ X || (Type) == simple \ X || (Type) == numbered_existing \ X || (Type) == numbered) X extern char const *simple_backup_suffix; X # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif X char *find_backup_file_name PARAMS ((char const *, enum backup_type)); enum backup_type get_version PARAMS ((char const *context, char const *arg)); enum backup_type xget_version PARAMS ((char const *context, char const *arg)); void addext PARAMS ((char *, char const *, int)); X #endif /* ! BACKUPFILE_H_ */ SHAR_EOF $shar_touch -am 0118090299 'tar-1.13/lib/backupfile.h' && chmod 0444 'tar-1.13/lib/backupfile.h' || $echo 'restore of' 'tar-1.13/lib/backupfile.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/backupfile.h:' 'MD5 check failed' 44156c436a9d0d589cc72a319d4badea tar-1.13/lib/backupfile.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/backupfile.h'`" test 1901 -eq "$shar_count" || $echo 'tar-1.13/lib/backupfile.h:' 'original size' '1901,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/basename.h ============== if test -f 'tar-1.13/lib/basename.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/basename.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/basename.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/basename.h' && #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X char *base_name PARAMS ((char const *name)); SHAR_EOF $shar_touch -am 0707110699 'tar-1.13/lib/basename.h' && chmod 0444 'tar-1.13/lib/basename.h' || $echo 'restore of' 'tar-1.13/lib/basename.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/basename.h:' 'MD5 check failed' c24b86379885af0b4c5fc905a605d293 tar-1.13/lib/basename.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/basename.h'`" test 195 -eq "$shar_count" || $echo 'tar-1.13/lib/basename.h:' 'original size' '195,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/error.h ============== if test -f 'tar-1.13/lib/error.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/error.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/error.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/error.h' && /* Declaration for error-reporting function X Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. X X X NOTE: The canonical source of this file is maintained with the GNU C Library. X Bugs can be reported to bug-glibc@prep.ai.mit.edu. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any X later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software X Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, X USA. */ X #ifndef _ERROR_H #define _ERROR_H 1 X #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ # define __attribute__(Spec) /* empty */ # endif /* The __-protected variants of `format' and `printf' attributes X are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __format__ format # define __printf__ printf # endif #endif X #ifdef __cplusplus extern "C" { #endif X #if defined (__STDC__) && __STDC__ X /* Print a message with `fprintf (stderr, FORMAT, ...)'; X if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). X If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ X extern void error (int status, int errnum, const char *format, ...) X __attribute__ ((__format__ (__printf__, 3, 4))); X extern void error_at_line (int status, int errnum, const char *fname, X unsigned int lineno, const char *format, ...) X __attribute__ ((__format__ (__printf__, 5, 6))); X /* If NULL, error will flush stdout, then print on stderr the program X name, a colon and a space. Otherwise, error will call this X function without parameters instead. */ extern void (*error_print_progname) (void); X #else void error (); void error_at_line (); extern void (*error_print_progname) (); #endif X /* This variable is incremented each time `error' is called. */ extern unsigned int error_message_count; X /* Sometimes we want to have at most one error per line. This X variable controls whether this mode is selected or not. */ extern int error_one_per_line; X #ifdef __cplusplus } #endif X #endif /* error.h */ SHAR_EOF $shar_touch -am 0620212997 'tar-1.13/lib/error.h' && chmod 0444 'tar-1.13/lib/error.h' || $echo 'restore of' 'tar-1.13/lib/error.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/error.h:' 'MD5 check failed' 7436ae098046ab8aab9801738af594e6 tar-1.13/lib/error.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/error.h'`" test 2672 -eq "$shar_count" || $echo 'tar-1.13/lib/error.h:' 'original size' '2672,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/exclude.h ============== if test -f 'tar-1.13/lib/exclude.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/exclude.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/exclude.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/exclude.h' && /* exclude.h -- declarations for excluding file names X Copyright 1992, 1993, 1994, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; see the file COPYING. X If not, write to the Free Software Foundation, X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Paul Eggert */ X #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X struct exclude; X struct exclude *new_exclude PARAMS ((void)); void add_exclude PARAMS ((struct exclude *, char const *)); int add_exclude_file PARAMS ((struct exclude *, char const *, char)); int excluded_filename PARAMS ((struct exclude const *, char const *)); SHAR_EOF $shar_touch -am 1231030197 'tar-1.13/lib/exclude.h' && chmod 0444 'tar-1.13/lib/exclude.h' || $echo 'restore of' 'tar-1.13/lib/exclude.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/exclude.h:' 'MD5 check failed' 82df91389d856946ead8a2aac8896b4d tar-1.13/lib/exclude.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/exclude.h'`" test 1306 -eq "$shar_count" || $echo 'tar-1.13/lib/exclude.h:' 'original size' '1306,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/fnmatch.h ============== if test -f 'tar-1.13/lib/fnmatch.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/fnmatch.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/fnmatch.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/fnmatch.h' && /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. X NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. X This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. X This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. X You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifndef _FNMATCH_H X #define _FNMATCH_H 1 X #ifdef __cplusplus extern "C" { #endif X #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) #undef __P #define __P(protos) protos #else /* Not C++ or ANSI C. */ #undef __P #define __P(protos) () /* We can get away without defining `const' here only because in this file X it is used only inside the prototype for `fnmatch', which is elided in X non-ANSI C where `const' is problematical. */ #endif /* C++ or ANSI C. */ X X /* We #undef these before defining them because some losing systems X (HP-UX A.08.07 for example) define these in . */ #undef FNM_PATHNAME #undef FNM_NOESCAPE #undef FNM_PERIOD X /* Bits set in the FLAGS argument to `fnmatch'. */ #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ X #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE) #define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ #define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ #define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ #endif X /* Value returned by `fnmatch' if STRING does not match PATTERN. */ #define FNM_NOMATCH 1 X /* Match STRING against the filename pattern PATTERN, X returning zero if it matches, FNM_NOMATCH if not. */ extern int fnmatch __P ((const char *__pattern, const char *__string, X int __flags)); X #ifdef __cplusplus } #endif X #endif /* fnmatch.h */ SHAR_EOF $shar_touch -am 0714203696 'tar-1.13/lib/fnmatch.h' && chmod 0444 'tar-1.13/lib/fnmatch.h' || $echo 'restore of' 'tar-1.13/lib/fnmatch.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/fnmatch.h:' 'MD5 check failed' bffbff8de016305f051803e0da7efe83 tar-1.13/lib/fnmatch.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/fnmatch.h'`" test 2436 -eq "$shar_count" || $echo 'tar-1.13/lib/fnmatch.h:' 'original size' '2436,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getopt.h ============== if test -f 'tar-1.13/lib/getopt.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getopt.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getopt.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getopt.h' && /* Declarations for getopt. X Copyright (C) 1989,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. X This file is part of the GNU C Library. X X The GNU C Library is free software; you can redistribute it and/or X modify it under the terms of the GNU Library General Public License as X published by the Free Software Foundation; either version 2 of the X License, or (at your option) any later version. X X The GNU C Library is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU X Library General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X #ifndef _GETOPT_H X #ifndef __need_getopt # define _GETOPT_H 1 #endif X #ifdef __cplusplus extern "C" { #endif X /* For communication from `getopt' to the caller. X When `getopt' finds an option that takes an argument, X the argument value is returned here. X Also, when `ordering' is RETURN_IN_ORDER, X each non-option ARGV-element is returned here. */ X extern char *optarg; X /* Index in ARGV of the next element to be scanned. X This is used for communication to and from the caller X and for communication between successive calls to `getopt'. X X On entry to `getopt', zero means this is the first call; initialize. X X When `getopt' returns -1, this is the index of the first of the X non-option elements that the caller should itself scan. X X Otherwise, `optind' communicates from one call to the next X how much of ARGV has been scanned so far. */ X extern int optind; X /* Callers store zero here to inhibit the error message `getopt' prints X for unrecognized options. */ X extern int opterr; X /* Set to an option character which was unrecognized. */ X extern int optopt; X #ifndef __need_getopt /* Describe the long-named options requested by the application. X The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector X of `struct option' terminated by an element containing a name which is X zero. X X The field `has_arg' is: X no_argument (or 0) if the option does not take an argument, X required_argument (or 1) if the option requires an argument, X optional_argument (or 2) if the option takes an optional argument. X X If the field `flag' is not NULL, it points to a variable that is set X to the value given in the field `val' when the option is found, but X left unchanged if the option is not found. X X To have a long-named option do something other than set an `int' to X a compiled-in constant, such as set a value from `optarg', set the X option's `flag' field to zero and its `val' field to a nonzero X value (the equivalent single-letter option character, if there is X one). For long options that have a zero `flag' field, `getopt' X returns the contents of the `val' field. */ X struct option { # if defined __STDC__ && __STDC__ X const char *name; # else X char *name; # endif X /* has_arg can't be an enum because some compilers complain about X type mismatches in all the code that assumes it is an int. */ X int has_arg; X int *flag; X int val; }; X /* Names for the values of the `has_arg' field of `struct option'. */ X # define no_argument 0 # define required_argument 1 # define optional_argument 2 #endif /* need getopt */ X X /* Get definitions and prototypes for functions to process the X arguments in ARGV (ARGC of them, minus the program name) for X options given in OPTS. X X Return the option character from OPTS just read. Return -1 when X there are no more options. For unrecognized options, or options X missing arguments, `optopt' is set to the option letter, and '?' is X returned. X X The OPTS string is a list of characters which are recognized option X letters, optionally followed by colons, specifying that that letter X takes an argument, to be placed in `optarg'. X X If a letter in OPTS is followed by two colons, its argument is X optional. This behavior is specific to the GNU `getopt'. X X The argument `--' causes premature termination of argument X scanning, explicitly telling `getopt' that there are no more X options. X X If OPTS begins with `--', then non-option arguments are treated as X arguments to the option '\0'. This behavior is specific to the GNU X `getopt'. */ X #if defined __STDC__ && __STDC__ # ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with X differences in the consts, in stdlib.h. To avoid compilation X errors, only prototype getopt for the GNU C library. */ extern int getopt (int __argc, char *const *__argv, const char *__shortopts); # else /* not __GNU_LIBRARY__ */ extern int getopt (); # endif /* __GNU_LIBRARY__ */ X # ifndef __need_getopt extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, X const struct option *__longopts, int *__longind); extern int getopt_long_only (int __argc, char *const *__argv, X const char *__shortopts, X const struct option *__longopts, int *__longind); X /* Internal only. Users should not call this directly. */ extern int _getopt_internal (int __argc, char *const *__argv, X const char *__shortopts, X const struct option *__longopts, int *__longind, X int __long_only); # endif #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt extern int getopt_long (); extern int getopt_long_only (); X extern int _getopt_internal (); # endif #endif /* __STDC__ */ X #ifdef __cplusplus } #endif X /* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt X #endif /* getopt.h */ SHAR_EOF $shar_touch -am 0112213699 'tar-1.13/lib/getopt.h' && chmod 0444 'tar-1.13/lib/getopt.h' || $echo 'restore of' 'tar-1.13/lib/getopt.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getopt.h:' 'MD5 check failed' f2808bcbaa3cba567accc39972127242 tar-1.13/lib/getopt.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getopt.h'`" test 5861 -eq "$shar_count" || $echo 'tar-1.13/lib/getopt.h:' 'original size' '5861,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getdate.h ============== if test -f 'tar-1.13/lib/getdate.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getdate.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getdate.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getdate.h' && /* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X #ifdef vms # include # include #else # include # if TIME_WITH_SYS_TIME # include # include # else # if HAVE_SYS_TIME_H # include # else # include # endif # endif #endif /* defined (vms) */ X time_t get_date PARAMS ((const char *p, const time_t *now)); SHAR_EOF $shar_touch -am 0314175398 'tar-1.13/lib/getdate.h' && chmod 0444 'tar-1.13/lib/getdate.h' || $echo 'restore of' 'tar-1.13/lib/getdate.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getdate.h:' 'MD5 check failed' 2d1a947392f52cef6a39a2d9e9cfb971 tar-1.13/lib/getdate.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getdate.h'`" test 1301 -eq "$shar_count" || $echo 'tar-1.13/lib/getdate.h:' 'original size' '1301,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/getpagesize.h ============== if test -f 'tar-1.13/lib/getpagesize.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/getpagesize.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/getpagesize.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/getpagesize.h' && /* Emulate getpagesize on systems that lack it. */ X #ifndef HAVE_GETPAGESIZE X #ifdef VMS #define getpagesize() 512 #endif X #ifdef HAVE_UNISTD_H #include #endif X #ifdef _SC_PAGESIZE #define getpagesize() sysconf(_SC_PAGESIZE) #else X #include X #ifdef EXEC_PAGESIZE #define getpagesize() EXEC_PAGESIZE #else #ifdef NBPG #define getpagesize() NBPG * CLSIZE #ifndef CLSIZE #define CLSIZE 1 #endif /* no CLSIZE */ #else /* no NBPG */ #ifdef NBPC #define getpagesize() NBPC #endif /* NBPC */ #endif /* no NBPG */ #endif /* no EXEC_PAGESIZE */ #endif /* no _SC_PAGESIZE */ X #endif /* not HAVE_GETPAGESIZE */ SHAR_EOF $shar_touch -am 0730153093 'tar-1.13/lib/getpagesize.h' && chmod 0444 'tar-1.13/lib/getpagesize.h' || $echo 'restore of' 'tar-1.13/lib/getpagesize.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/getpagesize.h:' 'MD5 check failed' 13ce8e3f0148ef395b9f14783b1848b3 tar-1.13/lib/getpagesize.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/getpagesize.h'`" test 626 -eq "$shar_count" || $echo 'tar-1.13/lib/getpagesize.h:' 'original size' '626,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/lchown.h ============== if test -f 'tar-1.13/lib/lchown.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/lchown.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/lchown.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/lchown.h' && /* Some systems don't have ENOSYS. */ #ifndef ENOSYS # ifdef ENOTSUP # define ENOSYS ENOTSUP # else /* Some systems don't have ENOTSUP either. */ # define ENOSYS ENOMSG # endif #endif SHAR_EOF $shar_touch -am 0716162398 'tar-1.13/lib/lchown.h' && chmod 0444 'tar-1.13/lib/lchown.h' || $echo 'restore of' 'tar-1.13/lib/lchown.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/lchown.h:' 'MD5 check failed' 8831308d42aec6458a6bf0435a6304cd tar-1.13/lib/lchown.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/lchown.h'`" test 188 -eq "$shar_count" || $echo 'tar-1.13/lib/lchown.h:' 'original size' '188,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/modechange.h ============== if test -f 'tar-1.13/lib/modechange.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/modechange.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/modechange.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/modechange.h' && /* modechange.h -- definitions for file mode manipulation X Copyright (C) 1989, 1990, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Masks for the `flags' field in a `struct mode_change'. */ X #if ! defined MODECHANGE_H_ # define MODECHANGE_H_ X # if HAVE_CONFIG_H # include # endif X # include X /* Affect the execute bits only if at least one execute bit is set already, X or if the file is a directory. */ # define MODE_X_IF_ANY_X 01 X /* If set, copy some existing permissions for u, g, or o onto the other two. X Which of u, g, or o is copied is determined by which bits are set in the X `value' field. */ # define MODE_COPY_EXISTING 02 X struct mode_change { X char op; /* One of "=+-". */ X char flags; /* Special operations. */ X mode_t affected; /* Set for u/g/o/s/s/t, if to be affected. */ X mode_t value; /* Bits to add/remove. */ X struct mode_change *next; /* Link to next change in list. */ }; X /* Masks for mode_compile argument. */ # define MODE_MASK_EQUALS 1 # define MODE_MASK_PLUS 2 # define MODE_MASK_MINUS 4 # define MODE_MASK_ALL (MODE_MASK_EQUALS | MODE_MASK_PLUS | MODE_MASK_MINUS) X /* Error return values for mode_compile. */ # define MODE_INVALID (struct mode_change *) 0 # define MODE_MEMORY_EXHAUSTED (struct mode_change *) 1 # define MODE_BAD_REFERENCE (struct mode_change *) 2 X # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif X struct mode_change *mode_compile PARAMS ((const char *, unsigned)); struct mode_change *mode_create_from_ref PARAMS ((const char *)); mode_t mode_adjust PARAMS ((mode_t, const struct mode_change *)); void mode_free PARAMS ((struct mode_change *)); X #endif SHAR_EOF $shar_touch -am 0425220799 'tar-1.13/lib/modechange.h' && chmod 0444 'tar-1.13/lib/modechange.h' || $echo 'restore of' 'tar-1.13/lib/modechange.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/modechange.h:' 'MD5 check failed' fe50290ffcb325a50952de4f33ceb654 tar-1.13/lib/modechange.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/modechange.h'`" test 2446 -eq "$shar_count" || $echo 'tar-1.13/lib/modechange.h:' 'original size' '2446,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/pathmax.h ============== if test -f 'tar-1.13/lib/pathmax.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/pathmax.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/pathmax.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/pathmax.h' && /* Define PATH_MAX somehow. Requires sys/types.h. X Copyright (C) 1992 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifndef _PATHMAX_H #define _PATHMAX_H X #ifdef HAVE_UNISTD_H #include #endif X /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define X PATH_MAX but might cause redefinition warnings when sys/param.h is X later included (as on MORE/BSD 4.3). */ #if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) && !defined(__GNUC__)) #include #endif X #ifndef _POSIX_PATH_MAX #define _POSIX_PATH_MAX 255 #endif X #if !defined(PATH_MAX) && defined(_PC_PATH_MAX) #define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif X /* Don't include sys/param.h if it already has been. */ #if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) #include #endif X #if !defined(PATH_MAX) && defined(MAXPATHLEN) #define PATH_MAX MAXPATHLEN #endif X #ifndef PATH_MAX #define PATH_MAX _POSIX_PATH_MAX #endif X #endif /* _PATHMAX_H */ SHAR_EOF $shar_touch -am 0622201795 'tar-1.13/lib/pathmax.h' && chmod 0444 'tar-1.13/lib/pathmax.h' || $echo 'restore of' 'tar-1.13/lib/pathmax.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/pathmax.h:' 'MD5 check failed' 91fdca37c3902558bff9cc001f79f388 tar-1.13/lib/pathmax.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/pathmax.h'`" test 1720 -eq "$shar_count" || $echo 'tar-1.13/lib/pathmax.h:' 'original size' '1720,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/quotearg.h ============== if test -f 'tar-1.13/lib/quotearg.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/quotearg.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/quotearg.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/quotearg.h' && /* quotearg.h - quote arguments for output X Copyright (C) 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Written by Paul Eggert */ X /* Basic quoting styles. */ enum quoting_style X { X literal_quoting_style, /* --quoting-style=literal */ X shell_quoting_style, /* --quoting-style=shell */ X shell_always_quoting_style, /* --quoting-style=shell-always */ X c_quoting_style, /* --quoting-style=c */ X escape_quoting_style /* --quoting-style=escape */ X }; X /* For now, --quoting-style=literal is the default, but X this is planned to change to --quoting-style=shell in the future. */ #ifndef DEFAULT_QUOTING_STYLE # define DEFAULT_QUOTING_STYLE literal_quoting_style #endif X /* Names of quoting styles and their corresponding values. */ extern char const *const quoting_style_args[]; extern enum quoting_style const quoting_style_vals[]; X struct quoting_options; X #ifndef PARAMS # if defined PROTOTYPES || defined __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X /* The functions listed below set and use a hidden variable X that contains the default quoting style options. */ X /* Allocate a new set of quoting options, with contents initially identical X to O if O is not null, or to the default if O is null. X It is the caller's responsibility to free the result. */ struct quoting_options *clone_quoting_options X PARAMS ((struct quoting_options *o)); X /* Get the value of O's quoting style. If O is null, use the default. */ enum quoting_style get_quoting_style PARAMS ((struct quoting_options *o)); X /* In O (or in the default if O is null), X set the value of the quoting style to S. */ void set_quoting_style PARAMS ((struct quoting_options *o, X enum quoting_style s)); X /* In O (or in the default if O is null), X set the value of the quoting options for character C to I. X Return the old value. Currently, the only values defined for I are X 0 (the default) and 1 (which means to quote the character even if X it would not otherwise be quoted). */ int set_char_quoting PARAMS ((struct quoting_options *o, char c, int i)); X /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of X argument ARG (of size ARGSIZE), using O to control quoting. X If O is null, use the default. X Terminate the output with a null character, and return the written X size of the output, not counting the terminating null. X If BUFFERSIZE is too small to store the output string, return the X value that would have been returned had BUFFERSIZE been large enough. X If ARGSIZE is -1, use the string length of the argument for ARGSIZE. */ size_t quotearg_buffer PARAMS ((char *buffer, size_t buffersize, X char const *arg, size_t argsize, X struct quoting_options const *o)); X /* Use storage slot N to return a quoted version of the string ARG. X Use the default quoting options. X The returned value points to static storage that can be X reused by the next call to this function with the same value of N. X N must be nonnegative. */ char *quotearg_n PARAMS ((unsigned int n, char const *arg)); X /* Equivalent to quotearg_n (0, ARG). */ char *quotearg PARAMS ((char const *arg)); X /* Like quotearg (ARG), except also quote any instances of CH. */ char *quotearg_char PARAMS ((char const *arg, char ch)); X /* Equivalent to quotearg_char (ARG, ':'). */ char *quotearg_colon PARAMS ((char const *arg)); SHAR_EOF $shar_touch -am 0101094399 'tar-1.13/lib/quotearg.h' && chmod 0444 'tar-1.13/lib/quotearg.h' || $echo 'restore of' 'tar-1.13/lib/quotearg.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/quotearg.h:' 'MD5 check failed' 1031c14260d0724adcc7e48ed5708881 tar-1.13/lib/quotearg.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/quotearg.h'`" test 4111 -eq "$shar_count" || $echo 'tar-1.13/lib/quotearg.h:' 'original size' '4111,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/safe-read.h ============== if test -f 'tar-1.13/lib/safe-read.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/safe-read.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/safe-read.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/safe-read.h' && #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X ssize_t full_write PARAMS ((int desc, const char *ptr, size_t len)); ssize_t safe_read PARAMS ((int desc, void *ptr, size_t len)); SHAR_EOF $shar_touch -am 0706230099 'tar-1.13/lib/safe-read.h' && chmod 0444 'tar-1.13/lib/safe-read.h' || $echo 'restore of' 'tar-1.13/lib/safe-read.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/safe-read.h:' 'MD5 check failed' df2e72807ba8afe9112ab1590a570ece tar-1.13/lib/safe-read.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/safe-read.h'`" test 281 -eq "$shar_count" || $echo 'tar-1.13/lib/safe-read.h:' 'original size' '281,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xalloc.h ============== if test -f 'tar-1.13/lib/xalloc.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xalloc.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xalloc.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xalloc.h' && /* xalloc.h -- malloc with out-of-memory checking X Copyright (C) 1990-1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifndef XALLOC_H_ # define XALLOC_H_ X # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif X /* Exit value when the requested amount of memory is not available. X It is initialized to EXIT_FAILURE, but the caller may set it to X some other value. */ extern int xalloc_exit_failure; X /* If this pointer is non-zero, run the specified function upon each X allocation failure. It is initialized to zero. */ extern void (*xalloc_fail_func) (); X /* If XALLOC_FAIL_FUNC is undefined or a function that returns, this X message must be non-NULL. It is translated via gettext. X The default value is "Memory exhausted". */ extern char *const xalloc_msg_memory_exhausted; X void *xmalloc PARAMS ((size_t n)); void *xcalloc PARAMS ((size_t n, size_t s)); void *xrealloc PARAMS ((void *p, size_t n)); X # define XMALLOC(Type, N_bytes) ((Type *) xmalloc (sizeof (Type) * (N_bytes))) # define XCALLOC(Type, N_bytes) ((Type *) xcalloc (sizeof (Type), (N_bytes))) # define XREALLOC(Ptr, Type, N_bytes) \ X ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_bytes))) X #endif /* !XALLOC_H_ */ SHAR_EOF $shar_touch -am 0101093699 'tar-1.13/lib/xalloc.h' && chmod 0444 'tar-1.13/lib/xalloc.h' || $echo 'restore of' 'tar-1.13/lib/xalloc.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xalloc.h:' 'MD5 check failed' 78419cf1ebde3fa66f16679f65b6e9c8 tar-1.13/lib/xalloc.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xalloc.h'`" test 2003 -eq "$shar_count" || $echo 'tar-1.13/lib/xalloc.h:' 'original size' '2003,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/xstrtol.h ============== if test -f 'tar-1.13/lib/xstrtol.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/xstrtol.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/xstrtol.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/xstrtol.h' && #ifndef XSTRTOL_H_ # define XSTRTOL_H_ 1 X # if HAVE_INTTYPES_H # include /* for uintmax_t */ # endif X # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif X # ifndef _STRTOL_ERROR enum strtol_error X { X LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW X }; typedef enum strtol_error strtol_error; # endif X # define _DECLARE_XSTRTOL(name, type) \ X strtol_error \ X name PARAMS ((const char *s, char **ptr, int base, \ X type *val, const char *valid_suffixes)); _DECLARE_XSTRTOL (xstrtol, long int) _DECLARE_XSTRTOL (xstrtoul, unsigned long int) _DECLARE_XSTRTOL (xstrtoumax, uintmax_t) X # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \ X do \ X { \ X switch ((Err)) \ X { \ X case LONGINT_OK: \ X abort (); \ X \ X case LONGINT_INVALID: \ X error ((Exit_code), 0, "invalid %s `%s'", \ X (Argument_type_string), (Str)); \ X break; \ X \ X case LONGINT_INVALID_SUFFIX_CHAR: \ X error ((Exit_code), 0, "invalid character following %s `%s'", \ X (Argument_type_string), (Str)); \ X break; \ X \ X case LONGINT_OVERFLOW: \ X error ((Exit_code), 0, "%s `%s' too large", \ X (Argument_type_string), (Str)); \ X break; \ X } \ X } \ X while (0) X # define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) \ X _STRTOL_ERROR (2, Str, Argument_type_string, Err) X # define STRTOL_FAIL_WARN(Str, Argument_type_string, Err) \ X _STRTOL_ERROR (0, Str, Argument_type_string, Err) X #endif /* not XSTRTOL_H_ */ SHAR_EOF $shar_touch -am 0418194399 'tar-1.13/lib/xstrtol.h' && chmod 0444 'tar-1.13/lib/xstrtol.h' || $echo 'restore of' 'tar-1.13/lib/xstrtol.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/xstrtol.h:' 'MD5 check failed' 36cfdd6ec261a621d29ff97ab3f6bed7 tar-1.13/lib/xstrtol.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/xstrtol.h'`" test 1693 -eq "$shar_count" || $echo 'tar-1.13/lib/xstrtol.h:' 'original size' '1693,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/mktime.c ============== if test -f 'tar-1.13/lib/mktime.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/mktime.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/mktime.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/mktime.c' && /* Convert a `struct tm' to a time_t value. X Copyright (C) 1993, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc. X This file is part of the GNU C Library. X Contributed by Paul Eggert (eggert@twinsun.com). X X The GNU C Library is free software; you can redistribute it and/or X modify it under the terms of the GNU Library General Public License as X published by the Free Software Foundation; either version 2 of the X License, or (at your option) any later version. X X The GNU C Library is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU X Library General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X /* Define this to have a standalone program to test this implementation of X mktime. */ /* #define DEBUG 1 */ X #ifdef HAVE_CONFIG_H # include #endif X #ifdef _LIBC # define HAVE_LIMITS_H 1 # define STDC_HEADERS 1 #endif X /* Assume that leap seconds are possible, unless told otherwise. X If the host has a `zic' command with a `-L leapsecondfilename' option, X then it supports leap seconds; otherwise it probably doesn't. */ #ifndef LEAP_SECONDS_POSSIBLE # define LEAP_SECONDS_POSSIBLE 1 #endif X #include /* Some systems define `time_t' here. */ #include X #if HAVE_LIMITS_H # include #endif X #if DEBUG # include # if STDC_HEADERS # include # endif /* Make it work even if the system's libc has its own mktime routine. */ # define mktime my_mktime #endif /* DEBUG */ X #ifndef __P # if defined __GNUC__ || (defined __STDC__ && __STDC__) # define __P(args) args # else # define __P(args) () # endif /* GCC. */ #endif /* Not __P. */ X #ifndef CHAR_BIT # define CHAR_BIT 8 #endif X /* The extra casts work around common compiler bugs. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The outer cast is needed to work around a bug in Cray C 5.0.3.0. X It is necessary at least when t == time_t. */ #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ X ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0)) #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t))) X #ifndef INT_MIN # define INT_MIN TYPE_MINIMUM (int) #endif #ifndef INT_MAX # define INT_MAX TYPE_MAXIMUM (int) #endif X #ifndef TIME_T_MIN # define TIME_T_MIN TYPE_MINIMUM (time_t) #endif #ifndef TIME_T_MAX # define TIME_T_MAX TYPE_MAXIMUM (time_t) #endif X #define TM_YEAR_BASE 1900 #define EPOCH_YEAR 1970 X #ifndef __isleap /* Nonzero if YEAR is a leap year (every 4 years, X except every 100th isn't, and every 400th is). */ # define __isleap(year) \ X ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) #endif X /* How many days come before each month (0-12). */ const unsigned short int __mon_yday[2][13] = X { X /* Normal years. */ X { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, X /* Leap years. */ X { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } X }; X X #ifdef _LIBC # define my_mktime_localtime_r __localtime_r #else /* If we're a mktime substitute in a GNU program, then prefer X localtime to localtime_r, since many localtime_r implementations X are buggy. */ static struct tm * my_mktime_localtime_r (const time_t *t, struct tm *tp) { X struct tm *l = localtime (t); X if (! l) X return 0; X *tp = *l; X return tp; } #endif /* ! _LIBC */ X X /* Yield the difference between (YEAR-YDAY HOUR:MIN:SEC) and (*TP), X measured in seconds, ignoring leap seconds. X YEAR uses the same numbering as TM->tm_year. X All values are in range, except possibly YEAR. X If TP is null, return a nonzero value. X If overflow occurs, yield the low order bits of the correct answer. */ static time_t ydhms_tm_diff (int year, int yday, int hour, int min, int sec, X const struct tm *tp) { X if (!tp) X return 1; X else X { X /* Compute intervening leap days correctly even if year is negative. X Take care to avoid int overflow. time_t overflow is OK, since X only the low order bits of the correct time_t answer are needed. X Don't convert to time_t until after all divisions are done, since X time_t might be unsigned. */ X int a4 = (year >> 2) + (TM_YEAR_BASE >> 2) - ! (year & 3); X int b4 = (tp->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (tp->tm_year & 3); X int a100 = a4 / 25 - (a4 % 25 < 0); X int b100 = b4 / 25 - (b4 % 25 < 0); X int a400 = a100 >> 2; X int b400 = b100 >> 2; X int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); X time_t years = year - (time_t) tp->tm_year; X time_t days = (365 * years + intervening_leap_days X + (yday - tp->tm_yday)); X return (60 * (60 * (24 * days + (hour - tp->tm_hour)) X + (min - tp->tm_min)) X + (sec - tp->tm_sec)); X } } X /* Use CONVERT to convert *T to a broken down time in *TP. X If *T is out of range for conversion, adjust it so that X it is the nearest in-range value and then convert that. */ static struct tm * ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), X time_t *t, struct tm *tp) { X struct tm *r; X X if (! (r = (*convert) (t, tp)) && *t) X { X time_t bad = *t; X time_t ok = 0; X struct tm tm; X X /* BAD is a known unconvertible time_t, and OK is a known good one. X Use binary search to narrow the range between BAD and OK until X they differ by 1. */ X while (bad != ok + (bad < 0 ? -1 : 1)) X { X time_t mid = *t = (bad < 0 X ? bad + ((ok - bad) >> 1) X : ok + ((bad - ok) >> 1)); X if ((r = (*convert) (t, tp))) X { X tm = *r; X ok = mid; X } X else X bad = mid; X } X X if (!r && ok) X { X /* The last conversion attempt failed; X revert to the most recent successful attempt. */ X *t = ok; X *tp = tm; X r = tp; X } X } X X return r; } X X /* Convert *TP to a time_t value, inverting X the monotonic and mostly-unit-linear conversion function CONVERT. X Use *OFFSET to keep track of a guess at the offset of the result, X compared to what the result would be for UTC without leap seconds. X If *OFFSET's guess is correct, only one CONVERT call is needed. */ time_t __mktime_internal (struct tm *tp, X struct tm *(*convert) (const time_t *, struct tm *), X time_t *offset) { X time_t t, dt, t0, t1, t2; X struct tm tm; X X /* The maximum number of probes (calls to CONVERT) should be enough X to handle any combinations of time zone rule changes, solar time, X leap seconds, and oscillations around a spring-forward gap. X POSIX.1 prohibits leap seconds, but some hosts have them anyway. */ X int remaining_probes = 6; X X /* Time requested. Copy it in case CONVERT modifies *TP; this can X occur if TP is localtime's returned value and CONVERT is localtime. */ X int sec = tp->tm_sec; X int min = tp->tm_min; X int hour = tp->tm_hour; X int mday = tp->tm_mday; X int mon = tp->tm_mon; X int year_requested = tp->tm_year; X int isdst = tp->tm_isdst; X X /* Ensure that mon is in range, and set year accordingly. */ X int mon_remainder = mon % 12; X int negative_mon_remainder = mon_remainder < 0; X int mon_years = mon / 12 - negative_mon_remainder; X int year = year_requested + mon_years; X X /* The other values need not be in range: X the remaining code handles minor overflows correctly, X assuming int and time_t arithmetic wraps around. X Major overflows are caught at the end. */ X X /* Calculate day of year from year, month, and day of month. X The result need not be in range. */ X int yday = ((__mon_yday[__isleap (year + TM_YEAR_BASE)] X [mon_remainder + 12 * negative_mon_remainder]) X + mday - 1); X X int sec_requested = sec; #if LEAP_SECONDS_POSSIBLE X /* Handle out-of-range seconds specially, X since ydhms_tm_diff assumes every minute has 60 seconds. */ X if (sec < 0) X sec = 0; X if (59 < sec) X sec = 59; #endif X X /* Invert CONVERT by probing. First assume the same offset as last time. X Then repeatedly use the error to improve the guess. */ X X tm.tm_year = EPOCH_YEAR - TM_YEAR_BASE; X tm.tm_yday = tm.tm_hour = tm.tm_min = tm.tm_sec = 0; X t0 = ydhms_tm_diff (year, yday, hour, min, sec, &tm); X X for (t = t1 = t2 = t0 + *offset; X (dt = ydhms_tm_diff (year, yday, hour, min, sec, X ranged_convert (convert, &t, &tm))); X t1 = t2, t2 = t, t += dt) X if (t == t1 && t != t2 X && (isdst < 0 || tm.tm_isdst < 0 X || (isdst != 0) != (tm.tm_isdst != 0))) X /* We can't possibly find a match, as we are oscillating X between two values. The requested time probably falls X within a spring-forward gap of size DT. Follow the common X practice in this case, which is to return a time that is DT X away from the requested time, preferring a time whose X tm_isdst differs from the requested value. In practice, X this is more useful than returning -1. */ X break; X else if (--remaining_probes == 0) X return -1; X X /* If we have a match, check whether tm.tm_isdst has the requested X value, if any. */ X if (dt == 0 && isdst != tm.tm_isdst && 0 <= isdst && 0 <= tm.tm_isdst) X { X /* tm.tm_isdst has the wrong value. Look for a neighboring X time with the right value, and use its UTC offset. X Heuristic: probe the previous three calendar quarters (approximately), X looking for the desired isdst. This isn't perfect, X but it's good enough in practice. */ X int quarter = 7889238; /* seconds per average 1/4 Gregorian year */ X int i; X X /* If we're too close to the time_t limit, look in future quarters. */ X if (t < TIME_T_MIN + 3 * quarter) X quarter = -quarter; X X for (i = 1; i <= 3; i++) X { X time_t ot = t - i * quarter; X struct tm otm; X ranged_convert (convert, &ot, &otm); X if (otm.tm_isdst == isdst) X { X /* We found the desired tm_isdst. X Extrapolate back to the desired time. */ X t = ot + ydhms_tm_diff (year, yday, hour, min, sec, &otm); X ranged_convert (convert, &t, &tm); X break; X } X } X } X X *offset = t - t0; X #if LEAP_SECONDS_POSSIBLE X if (sec_requested != tm.tm_sec) X { X /* Adjust time to reflect the tm_sec requested, not the normalized value. X Also, repair any damage from a false match due to a leap second. */ X t += sec_requested - sec + (sec == 0 && tm.tm_sec == 60); X if (! (*convert) (&t, &tm)) X return -1; X } #endif X X if (TIME_T_MAX / INT_MAX / 366 / 24 / 60 / 60 < 3) X { X /* time_t isn't large enough to rule out overflows in ydhms_tm_diff, X so check for major overflows. A gross check suffices, X since if t has overflowed, it is off by a multiple of X TIME_T_MAX - TIME_T_MIN + 1. So ignore any component of X the difference that is bounded by a small value. */ X X double dyear = (double) year_requested + mon_years - tm.tm_year; X double dday = 366 * dyear + mday; X double dsec = 60 * (60 * (24 * dday + hour) + min) + sec_requested; X X /* On Irix4.0.5 cc, dividing TIME_T_MIN by 3 does not produce X correct results, ie., it erroneously gives a positive value X of 715827882. Setting a variable first then doing math on it X seems to work. (ghazi@caip.rutgers.edu) */ X X const time_t time_t_max = TIME_T_MAX; X const time_t time_t_min = TIME_T_MIN; X X if (time_t_max / 3 - time_t_min / 3 < (dsec < 0 ? - dsec : dsec)) X return -1; X } X X *tp = tm; X return t; } X X static time_t localtime_offset; X /* Convert *TP to a time_t value. */ time_t mktime (tp) X struct tm *tp; { #ifdef _LIBC X /* POSIX.1 8.1.1 requires that whenever mktime() is called, the X time zone names contained in the external variable `tzname' shall X be set as if the tzset() function had been called. */ X __tzset (); #endif X X return __mktime_internal (tp, my_mktime_localtime_r, &localtime_offset); } X #ifdef weak_alias weak_alias (mktime, timelocal) #endif X #if DEBUG X static int not_equal_tm (a, b) X struct tm *a; X struct tm *b; { X return ((a->tm_sec ^ b->tm_sec) X | (a->tm_min ^ b->tm_min) X | (a->tm_hour ^ b->tm_hour) X | (a->tm_mday ^ b->tm_mday) X | (a->tm_mon ^ b->tm_mon) X | (a->tm_year ^ b->tm_year) X | (a->tm_mday ^ b->tm_mday) X | (a->tm_yday ^ b->tm_yday) X | (a->tm_isdst ^ b->tm_isdst)); } X static void print_tm (tp) X struct tm *tp; { X if (tp) X printf ("%04d-%02d-%02d %02d:%02d:%02d yday %03d wday %d isdst %d", X tp->tm_year + TM_YEAR_BASE, tp->tm_mon + 1, tp->tm_mday, X tp->tm_hour, tp->tm_min, tp->tm_sec, X tp->tm_yday, tp->tm_wday, tp->tm_isdst); X else X printf ("0"); } X static int check_result (tk, tmk, tl, lt) X time_t tk; X struct tm tmk; X time_t tl; X struct tm *lt; { X if (tk != tl || !lt || not_equal_tm (&tmk, lt)) X { X printf ("mktime ("); X print_tm (&tmk); X printf (")\nyields ("); X print_tm (lt); X printf (") == %ld, should be %ld\n", (long) tl, (long) tk); X return 1; X } X X return 0; } X int main (argc, argv) X int argc; X char **argv; { X int status = 0; X struct tm tm, tmk, tml; X struct tm *lt; X time_t tk, tl; X char trailer; X X if ((argc == 3 || argc == 4) X && (sscanf (argv[1], "%d-%d-%d%c", X &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &trailer) X == 3) X && (sscanf (argv[2], "%d:%d:%d%c", X &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &trailer) X == 3)) X { X tm.tm_year -= TM_YEAR_BASE; X tm.tm_mon--; X tm.tm_isdst = argc == 3 ? -1 : atoi (argv[3]); X tmk = tm; X tl = mktime (&tmk); X lt = localtime (&tl); X if (lt) X { X tml = *lt; X lt = &tml; X } X printf ("mktime returns %ld == ", (long) tl); X print_tm (&tmk); X printf ("\n"); X status = check_result (tl, tmk, tl, lt); X } X else if (argc == 4 || (argc == 5 && strcmp (argv[4], "-") == 0)) X { X time_t from = atol (argv[1]); X time_t by = atol (argv[2]); X time_t to = atol (argv[3]); X X if (argc == 4) X for (tl = from; tl <= to; tl += by) X { X lt = localtime (&tl); X if (lt) X { X tmk = tml = *lt; X tk = mktime (&tmk); X status |= check_result (tk, tmk, tl, tml); X } X else X { X printf ("localtime (%ld) yields 0\n", (long) tl); X status = 1; X } X } X else X for (tl = from; tl <= to; tl += by) X { X /* Null benchmark. */ X lt = localtime (&tl); X if (lt) X { X tmk = tml = *lt; X tk = tl; X status |= check_result (tk, tmk, tl, tml); X } X else X { X printf ("localtime (%ld) yields 0\n", (long) tl); X status = 1; X } X } X } X else X printf ("Usage:\ \t%s YYYY-MM-DD HH:MM:SS [ISDST] # Test given time.\n\ \t%s FROM BY TO # Test values FROM, FROM+BY, ..., TO.\n\ \t%s FROM BY TO - # Do not test those values (for benchmark).\n", X argv[0], argv[0], argv[0]); X X return status; } X #endif /* DEBUG */ X /* Local Variables: compile-command: "gcc -DDEBUG -DHAVE_LIMITS_H -DSTDC_HEADERS -Wall -W -O -g mktime.c -o mktime" End: */ SHAR_EOF $shar_touch -am 0217070199 'tar-1.13/lib/mktime.c' && chmod 0444 'tar-1.13/lib/mktime.c' || $echo 'restore of' 'tar-1.13/lib/mktime.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/mktime.c:' 'MD5 check failed' f9e450d077ef5ef8fd5973cd7d2c5ac9 tar-1.13/lib/mktime.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/mktime.c'`" test 15118 -eq "$shar_count" || $echo 'tar-1.13/lib/mktime.c:' 'original size' '15118,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/lib/stpcpy.c ============== if test -f 'tar-1.13/lib/stpcpy.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/lib/stpcpy.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/lib/stpcpy.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/lib/stpcpy.c' && /* stpcpy.c -- copy a string and return pointer to end of new string X Copyright (C) 1992, 1995, 1997, 1998 Free Software Foundation, Inc. X X NOTE: The canonical source of this file is maintained with the GNU C Library. X Bugs can be reported to bug-glibc@prep.ai.mit.edu. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any X later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software X Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, X USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include X #undef __stpcpy #undef stpcpy X #ifndef weak_alias # define __stpcpy stpcpy #endif X /* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ char * __stpcpy (char *dest, const char *src) { X register char *d = dest; X register const char *s = src; X X do X *d++ = *s; X while (*s++ != '\0'); X X return d - 1; } #ifdef weak_alias weak_alias (__stpcpy, stpcpy) #endif SHAR_EOF $shar_touch -am 1206191298 'tar-1.13/lib/stpcpy.c' && chmod 0444 'tar-1.13/lib/stpcpy.c' || $echo 'restore of' 'tar-1.13/lib/stpcpy.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/lib/stpcpy.c:' 'MD5 check failed' f689460c21efe8c929a1cca4822db295 tar-1.13/lib/stpcpy.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/lib/stpcpy.c'`" test 1440 -eq "$shar_count" || $echo 'tar-1.13/lib/stpcpy.c:' 'original size' '1440,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/ChangeLog ============== if test ! -d 'tar-1.13/intl'; then $echo 'x -' 'creating directory' 'tar-1.13/intl' mkdir 'tar-1.13/intl' fi if test -f 'tar-1.13/intl/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/intl/ChangeLog M,3DY."TQ,"TP-2`@2FEM($UE>65R:6YG("`\;65Y97)I;F=`87-C96YD+F-O M;3X*"@DJ($UA:V5F:6QE+FEN("AU;FEN2!I9B!T:&4@8W5R65R:6YG+@H*,3DY."TP-"TR."`@56QR:6-H($1R97!P97(@ M(#QD2!O=F5R(&-H86YG97,@9G)O;2!G;&EB8RX@(%5S92!S=')D=7`@:68* M"6%V86EL86)L92X*"@DJ(&1C9V5T=&5X="YC.B!$;VXG="!A'0N8SH@57!D871E(&-O<'ER:6=H="X*"@DJ(&5X<&QO9&5N86UE M+F,Z($EN8VQU9&4@2!E>&ES="X*"55S92!S=')I;F=S+F@@979E;G1U86QL>2X*"@DJ(&9I;F1D M;VUA:6XN8SH@36%R:R!I;G1E6=N=7,N8V]M/@H*"2H@;&EB9V5T=&5X="YH.B!&:7@@9'5M;7D@ M=&5X=&1O;6%I;B!A;F0@8FEN9'1E>'1D;V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@<')O=FED97,@9G5N8W1I;VYS"@EW:&EC:"!A;&QO=R!T;R!U&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/ChangeLog:' 'MD5 check failed' 324555325c1a9ca0906da98354b5297f tar-1.13/intl/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/ChangeLog'`" test 35362 -eq "$shar_count" || $echo 'tar-1.13/intl/ChangeLog:' 'original size' '35362,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/Makefile.in ============== if test -f 'tar-1.13/intl/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/Makefile.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/Makefile.in' && # Makefile for directory with message catalog handling in GNU NLS Utilities. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X PACKAGE = @PACKAGE@ VERSION = @VERSION@ X SHELL = /bin/sh X srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. VPATH = @srcdir@ X prefix = @prefix@ exec_prefix = @exec_prefix@ transform = @program_transform_name@ libdir = $(exec_prefix)/lib includedir = $(prefix)/include datadir = $(prefix)/@DATADIRNAME@ localedir = $(datadir)/locale gnulocaledir = $(prefix)/share/locale gettextsrcdir = @datadir@/gettext/intl aliaspath = $(localedir):. subdir = intl X INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ X l = @l@ X AR = ar CC = @CC@ LIBTOOL = @LIBTOOL@ RANLIB = @RANLIB@ X DEFS = -DLOCALEDIR=\"$(localedir)\" -DGNULOCALEDIR=\"$(gnulocaledir)\" \ -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ X COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) X HEADERS = $(COMHDRS) libgettext.h loadinfo.h COMHDRS = gettext.h gettextP.h hash-string.h SOURCES = $(COMSRCS) intl-compat.c cat-compat.c COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \ finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \ explodename.c OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \ finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \ explodename.$lo CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo GETTOBJS = intl-compat.$lo DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \ xopen-msg.sed $(HEADERS) $(SOURCES) DISTFILES.normal = VERSION DISTFILES.gettext = libintl.glibc intlh.inst.in X X.SUFFIXES: X.SUFFIXES: .c .o .lo X.c.o: X $(COMPILE) $< X.c.lo: X $(LIBTOOL) --mode=compile $(COMPILE) $< X INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib X all: all-@USE_INCLUDED_LIBINTL@ X all-yes: libintl.$la intlh.inst all-no: X libintl.a: $(OBJECTS) X rm -f $@ X $(AR) cru $@ $(OBJECTS) X $(RANLIB) $@ X libintl.la: $(OBJECTS) X $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \ X -version-info 1:0 -rpath $(libdir) X X../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot X cd ../po && $(MAKE) cat-id-tbl.$lo X check: all X # This installation goal is only used in GNU gettext. Packages which # only use the library should use install instead. X # We must not install the libintl.h/libintl.a files if we are on a # system which has the gettext() function in its C library or in a # separate library or use the catgets interface. A special case is # where configure found a previously installed GNU gettext library. # If you want to use the one which comes with this version of the # package, you have to use `configure --with-included-gettext'. install: install-exec install-data install-exec: all X if test "$(PACKAGE)" = "gettext" \ X && test '@INTLOBJS@' = '$(GETTOBJS)'; then \ X if test -r $(MKINSTALLDIRS); then \ X $(MKINSTALLDIRS) $(libdir) $(includedir); \ X else \ X $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \ X fi; \ X $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \ X $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \ X else \ X : ; \ X fi install-data: all X if test "$(PACKAGE)" = "gettext"; then \ X if test -r $(MKINSTALLDIRS); then \ X $(MKINSTALLDIRS) $(gettextsrcdir); \ X else \ X $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ X fi; \ X $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \ X dists="$(DISTFILES.common)"; \ X for file in $$dists; do \ X $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \ X done; \ X else \ X : ; \ X fi X # Define this as empty until I found a useful application. installcheck: X uninstall: X if test "$(PACKAGE)" = "gettext"; then \ X dists="$(DISTFILES.common)"; \ X for file in $$dists; do \ X rm -f $(gettextsrcdir)/$$file; \ X done; \ X fi X info dvi: X $(OBJECTS): ../config.h libgettext.h bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h X tags: TAGS X TAGS: $(HEADERS) $(SOURCES) X here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) X id: ID X ID: $(HEADERS) $(SOURCES) X here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) X X mostlyclean: X rm -f *.a *.o *.lo core core.* X clean: mostlyclean X distclean: clean X rm -f Makefile ID TAGS po2msg.sed po2tbl.sed X maintainer-clean: distclean X @echo "This command is intended for maintainers to use;" X @echo "it deletes files that may require special tools to rebuild." X X # GNU gettext needs not contain the file `VERSION' but contains some # other files which should not be distributed in other packages. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: Makefile $(DISTFILES) X if test "$(PACKAGE)" = gettext; then \ X additional="$(DISTFILES.gettext)"; \ X else \ X additional="$(DISTFILES.normal)"; \ X fi; \ X for file in $(DISTFILES.common) $$additional; do \ X ln $(srcdir)/$$file $(distdir) 2> /dev/null \ X || cp -p $(srcdir)/$$file $(distdir); \ X done X dist-libc: X tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc X Makefile: Makefile.in ../config.status X cd .. \ X && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status X # The dependency for intlh.inst is different in gettext and all other # packages. Because we cannot you GNU make features we have to solve # the problem while rewriting Makefile.in. @GT_YES@intlh.inst: intlh.inst.in ../config.status @GT_YES@ cd .. \ @GT_YES@ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ @GT_YES@ $(SHELL) ./config.status @GT_NO@.PHONY: intlh.inst @GT_NO@intlh.inst: X # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. X.NOEXPORT: SHAR_EOF $shar_touch -am 1005093098 'tar-1.13/intl/Makefile.in' && chmod 0444 'tar-1.13/intl/Makefile.in' || $echo 'restore of' 'tar-1.13/intl/Makefile.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/Makefile.in:' 'MD5 check failed' 481acea927b8a74537913e1e44d437a2 tar-1.13/intl/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/Makefile.in'`" test 6512 -eq "$shar_count" || $echo 'tar-1.13/intl/Makefile.in:' 'original size' '6512,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/linux-msg.sed ============== if test -f 'tar-1.13/intl/linux-msg.sed' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/linux-msg.sed' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/linux-msg.sed' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/linux-msg.sed' && # po2msg.sed - Convert Uniforum style .po file to Linux style .msg file # Copyright (C) 1995 Free Software Foundation, Inc. # Ulrich Drepper , 1995. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # The first directive in the .msg should be the definition of the # message set number. We use always set number 1. # 1 { X i\ $set 1 # Automatically created by po2msg.sed X h X s/.*/0/ X x } # # Mitch's old catalog format does not allow comments. # # We copy the original message as a comment into the .msg file. # /^msgid/ { X s/msgid[ ]*"// # # This does not work now with the new format. # /"$/! { # s/\\$// # s/$/ ... (more lines following)"/ # } X x # The following nice solution is by # Bruno X td # Increment a decimal number in pattern space. # First hide trailing `9' digits. X :d X s/9\(_*\)$/_\1/ X td # Assure at least one digit is available. X s/^\(_*\)$/0\1/ # Increment the last digit. X s/8\(_*\)$/9\1/ X s/7\(_*\)$/8\1/ X s/6\(_*\)$/7\1/ X s/5\(_*\)$/6\1/ X s/4\(_*\)$/5\1/ X s/3\(_*\)$/4\1/ X s/2\(_*\)$/3\1/ X s/1\(_*\)$/2\1/ X s/0\(_*\)$/1\1/ # Convert the hidden `9' digits to `0's. X s/_/0/g X x X G X s/\(.*\)"\n\([0-9]*\)/$ #\2 Original Message:(\1)/p } # # The .msg file contains, other then the .po file, only the translations # but each given a unique ID. Starting from 1 and incrementing by 1 for # each message we assign them to the messages. # It is important that the .po file used to generate the cat-id-tbl.c file # (with po-to-tbl) is the same as the one used here. (At least the order # of declarations must not be changed.) # /^msgstr/ { X s/msgstr[ ]*"\(.*\)"/# \1/ # Clear substitution flag. X tb # Append the next line. X :b X N # Look whether second part is continuation line. X s/\(.*\n\)"\(.*\)"/\1\2/ # Yes, then branch. X ta X P X D # Note that D includes a jump to the start!! # We found a continuation line. But before printing insert '\'. X :a X s/\(.*\)\(\n.*\)/\1\\\2/ X P # We cannot use D here. X s/.*\n\(.*\)/\1/ X tb } d SHAR_EOF $shar_touch -am 1122174495 'tar-1.13/intl/linux-msg.sed' && chmod 0444 'tar-1.13/intl/linux-msg.sed' || $echo 'restore of' 'tar-1.13/intl/linux-msg.sed' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/linux-msg.sed:' 'MD5 check failed' 88c9303406b57aeed1f313b827c28e3a tar-1.13/intl/linux-msg.sed SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/linux-msg.sed'`" test 2693 -eq "$shar_count" || $echo 'tar-1.13/intl/linux-msg.sed:' 'original size' '2693,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/po2tbl.sed.in ============== if test -f 'tar-1.13/intl/po2tbl.sed.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/po2tbl.sed.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/po2tbl.sed.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/po2tbl.sed.in' && # po2tbl.sed - Convert Uniforum style .po file to lookup table for catgets # Copyright (C) 1995 Free Software Foundation, Inc. # Ulrich Drepper , 1995. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # 1 { X i\ /* Automatically generated by po2tbl.sed from @PACKAGE NAME@.pot. */\ \ #if HAVE_CONFIG_H\ # include \ #endif\ \ #include "libgettext.h"\ \ const struct _msg_ent _msg_tbl[] = { X h X s/.*/0/ X x } # # Write msgid entries in C array form. # /^msgid/ { X s/msgid[ ]*\(".*"\)/ {\1/ X tb # Append the next line X :b X N # Look whether second part is continuation line. X s/\(.*\)"\(\n\)"\(.*"\)/\1\2\3/ # Yes, then branch. X ta # Because we assume that the input file correctly formed the line # just read cannot be again be a msgid line. So it's safe to ignore # it. X s/\(.*\)\n.*/\1/ X bc # We found a continuation line. But before printing insert '\'. X :a X s/\(.*\)\(\n.*\)/\1\\\2/ X P # We cannot use D here. X s/.*\n\(.*\)/\1/ # Some buggy seds do not clear the `successful substitution since last ``t''' # flag on `N', so we do a `t' here to clear it. X tb # Not reached X :c X x # The following nice solution is by # Bruno X td # Increment a decimal number in pattern space. # First hide trailing `9' digits. X :d X s/9\(_*\)$/_\1/ X td # Assure at least one digit is available. X s/^\(_*\)$/0\1/ # Increment the last digit. X s/8\(_*\)$/9\1/ X s/7\(_*\)$/8\1/ X s/6\(_*\)$/7\1/ X s/5\(_*\)$/6\1/ X s/4\(_*\)$/5\1/ X s/3\(_*\)$/4\1/ X s/2\(_*\)$/3\1/ X s/1\(_*\)$/2\1/ X s/0\(_*\)$/1\1/ # Convert the hidden `9' digits to `0's. X s/_/0/g X x X G X s/\(.*\)\n\([0-9]*\)/\1, \2},/ X s/\(.*\)"$/\1/ X p } # # Last line. # $ { X i\ };\ X X g X s/0*\(.*\)/int _msg_tbl_length = \1;/p } d SHAR_EOF $shar_touch -am 0718070696 'tar-1.13/intl/po2tbl.sed.in' && chmod 0444 'tar-1.13/intl/po2tbl.sed.in' || $echo 'restore of' 'tar-1.13/intl/po2tbl.sed.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/po2tbl.sed.in:' 'MD5 check failed' 606344532ffc07b36812c0d04acb1f38 tar-1.13/intl/po2tbl.sed.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/po2tbl.sed.in'`" test 2421 -eq "$shar_count" || $echo 'tar-1.13/intl/po2tbl.sed.in:' 'original size' '2421,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/xopen-msg.sed ============== if test -f 'tar-1.13/intl/xopen-msg.sed' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/xopen-msg.sed' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/xopen-msg.sed' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/xopen-msg.sed' && # po2msg.sed - Convert Uniforum style .po file to X/Open style .msg file # Copyright (C) 1995 Free Software Foundation, Inc. # Ulrich Drepper , 1995. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # The first directive in the .msg should be the definition of the # message set number. We use always set number 1. # 1 { X i\ $set 1 # Automatically created by po2msg.sed X h X s/.*/0/ X x } # # We copy all comments into the .msg file. Perhaps they can help. # /^#/ s/^#[ ]*/$ /p # # We copy the original message as a comment into the .msg file. # /^msgid/ { # Does not work now # /"$/! { # s/\\$// # s/$/ ... (more lines following)"/ # } X s/^msgid[ ]*"\(.*\)"$/$ Original Message: \1/ X p } # # The .msg file contains, other then the .po file, only the translations # but each given a unique ID. Starting from 1 and incrementing by 1 for # each message we assign them to the messages. # It is important that the .po file used to generate the cat-id-tbl.c file # (with po-to-tbl) is the same as the one used here. (At least the order # of declarations must not be changed.) # /^msgstr/ { X s/msgstr[ ]*"\(.*\)"/\1/ X x # The following nice solution is by # Bruno X td # Increment a decimal number in pattern space. # First hide trailing `9' digits. X :d X s/9\(_*\)$/_\1/ X td # Assure at least one digit is available. X s/^\(_*\)$/0\1/ # Increment the last digit. X s/8\(_*\)$/9\1/ X s/7\(_*\)$/8\1/ X s/6\(_*\)$/7\1/ X s/5\(_*\)$/6\1/ X s/4\(_*\)$/5\1/ X s/3\(_*\)$/4\1/ X s/2\(_*\)$/3\1/ X s/1\(_*\)$/2\1/ X s/0\(_*\)$/1\1/ # Convert the hidden `9' digits to `0's. X s/_/0/g X x # Bring the line in the format ` ' X G X s/^[^\n]*$/& / X s/\(.*\)\n\([0-9]*\)/\2 \1/ # Clear flag from last substitution. X tb # Append the next line. X :b X N # Look whether second part is a continuation line. X s/\(.*\n\)"\(.*\)"/\1\2/ # Yes, then branch. X ta X P X D # Note that `D' includes a jump to the start!! # We found a continuation line. But before printing insert '\'. X :a X s/\(.*\)\(\n.*\)/\1\\\2/ X P # We cannot use the sed command `D' here X s/.*\n\(.*\)/\1/ X tb } d SHAR_EOF $shar_touch -am 1122174395 'tar-1.13/intl/xopen-msg.sed' && chmod 0444 'tar-1.13/intl/xopen-msg.sed' || $echo 'restore of' 'tar-1.13/intl/xopen-msg.sed' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/xopen-msg.sed:' 'MD5 check failed' 0be261721efcbc3f04680d99e149f18a tar-1.13/intl/xopen-msg.sed SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/xopen-msg.sed'`" test 2814 -eq "$shar_count" || $echo 'tar-1.13/intl/xopen-msg.sed:' 'original size' '2814,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/gettext.h ============== if test -f 'tar-1.13/intl/gettext.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/gettext.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/gettext.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/gettext.h' && /* Internal header for GNU gettext internationalization functions. X Copyright (C) 1995, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X #ifndef _GETTEXT_H #define _GETTEXT_H 1 X #include X #if HAVE_LIMITS_H || _LIBC # include #endif X /* @@ end of prolog @@ */ X /* The magic number of the GNU message catalog format. */ #define _MAGIC 0x950412de #define _MAGIC_SWAPPED 0xde120495 X /* Revision number of the currently used .mo (binary) file format. */ #define MO_REVISION_NUMBER 0 X /* The following contortions are an attempt to use the C preprocessor X to determine an unsigned integral type that is 32 bits wide. An X alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but X doing that would require that the configure script compile and *run* X the resulting executable. Locally running cross-compiled executables X is usually not possible. */ X #if __STDC__ # define UINT_MAX_32_BITS 4294967295U #else # define UINT_MAX_32_BITS 0xFFFFFFFF #endif X /* If UINT_MAX isn't defined, assume it's a 32-bit type. X This should be valid for all systems GNU cares about because X that doesn't include 16-bit systems, and only modern systems X (that certainly have ) have 64+-bit integral types. */ X #ifndef UINT_MAX # define UINT_MAX UINT_MAX_32_BITS #endif X #if UINT_MAX == UINT_MAX_32_BITS typedef unsigned nls_uint32; #else # if USHRT_MAX == UINT_MAX_32_BITS typedef unsigned short nls_uint32; # else # if ULONG_MAX == UINT_MAX_32_BITS typedef unsigned long nls_uint32; # else X /* The following line is intended to throw an error. Using #error is X not portable enough. */ X "Cannot determine unsigned 32-bit data type." # endif # endif #endif X X /* Header for binary .mo file format. */ struct mo_file_header { X /* The magic number. */ X nls_uint32 magic; X /* The revision number of the file format. */ X nls_uint32 revision; X /* The number of strings pairs. */ X nls_uint32 nstrings; X /* Offset of table with start offsets of original strings. */ X nls_uint32 orig_tab_offset; X /* Offset of table with start offsets of translation strings. */ X nls_uint32 trans_tab_offset; X /* Size of hashing table. */ X nls_uint32 hash_tab_size; X /* Offset of first hashing entry. */ X nls_uint32 hash_tab_offset; }; X struct string_desc { X /* Length of addressed string. */ X nls_uint32 length; X /* Offset of string in file. */ X nls_uint32 offset; }; X /* @@ begin of epilog @@ */ X #endif /* gettext.h */ SHAR_EOF $shar_touch -am 0427140398 'tar-1.13/intl/gettext.h' && chmod 0444 'tar-1.13/intl/gettext.h' || $echo 'restore of' 'tar-1.13/intl/gettext.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/gettext.h:' 'MD5 check failed' c46b419b2ebd68930fcb8491fae2bd32 tar-1.13/intl/gettext.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/gettext.h'`" test 3205 -eq "$shar_count" || $echo 'tar-1.13/intl/gettext.h:' 'original size' '3205,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/gettextP.h ============== if test -f 'tar-1.13/intl/gettextP.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/gettextP.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/gettextP.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/gettextP.h' && /* Header describing internals of gettext library X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X Written by Ulrich Drepper , 1995. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifndef _GETTEXTP_H #define _GETTEXTP_H X #include "loadinfo.h" X /* @@ end of prolog @@ */ X #ifndef PARAMS # if __STDC__ # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif X #ifndef internal_function # define internal_function #endif X #ifndef W # define W(flag, data) ((flag) ? SWAP (data) : (data)) #endif X X #ifdef _LIBC # include # define SWAP(i) bswap_32 (i) #else static nls_uint32 SWAP PARAMS ((nls_uint32 i)); X static inline nls_uint32 SWAP (i) X nls_uint32 i; { X return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } #endif X X struct loaded_domain { X const char *data; X int use_mmap; X size_t mmap_size; X int must_swap; X nls_uint32 nstrings; X struct string_desc *orig_tab; X struct string_desc *trans_tab; X nls_uint32 hash_size; X nls_uint32 *hash_tab; }; X struct binding { X struct binding *next; X char *domainname; X char *dirname; }; X struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname, X char *__locale, X const char *__domainname)) X internal_function; void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain)) X internal_function; void _nl_unload_domain PARAMS ((struct loaded_domain *__domain)) X internal_function; X /* @@ begin of epilog @@ */ X #endif /* gettextP.h */ SHAR_EOF $shar_touch -am 0427140898 'tar-1.13/intl/gettextP.h' && chmod 0444 'tar-1.13/intl/gettextP.h' || $echo 'restore of' 'tar-1.13/intl/gettextP.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/gettextP.h:' 'MD5 check failed' 2fcb82a7def25bcd2549a394af4cc67d tar-1.13/intl/gettextP.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/gettextP.h'`" test 2182 -eq "$shar_count" || $echo 'tar-1.13/intl/gettextP.h:' 'original size' '2182,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/hash-string.h ============== if test -f 'tar-1.13/intl/hash-string.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/hash-string.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/hash-string.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/hash-string.h' && /* Implements a string hashing function. X Copyright (C) 1995, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU Library General Public X License along with the GNU C Library; see the file COPYING.LIB. If not, X write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, X Boston, MA 02111-1307, USA. */ X /* @@ end of prolog @@ */ X #ifndef PARAMS # if __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X /* We assume to have `unsigned long int' value with at least 32 bits. */ #define HASHWORDBITS 32 X X /* Defines the so called `hashpjw' function by P.J. Weinberger X [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, X 1986, 1987 Bell Telephone Laboratories, Inc.] */ static unsigned long hash_string PARAMS ((const char *__str_param)); X static inline unsigned long hash_string (str_param) X const char *str_param; { X unsigned long int hval, g; X const char *str = str_param; X X /* Compute the hash value for the given string. */ X hval = 0; X while (*str != '\0') X { X hval <<= 4; X hval += (unsigned long) *str++; X g = hval & ((unsigned long) 0xf << (HASHWORDBITS - 4)); X if (g != 0) X { X hval ^= g >> (HASHWORDBITS - 8); X hval ^= g; X } X } X return hval; } SHAR_EOF $shar_touch -am 0428162698 'tar-1.13/intl/hash-string.h' && chmod 0444 'tar-1.13/intl/hash-string.h' || $echo 'restore of' 'tar-1.13/intl/hash-string.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/hash-string.h:' 'MD5 check failed' b23eb0ee50448b24ec0b942ff382da10 tar-1.13/intl/hash-string.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/hash-string.h'`" test 1787 -eq "$shar_count" || $echo 'tar-1.13/intl/hash-string.h:' 'original size' '1787,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/libgettext.h ============== if test -f 'tar-1.13/intl/libgettext.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/libgettext.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/libgettext.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/libgettext.h' && /* Message catalogs for internationalization. X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Because on some systems (e.g. Solaris) we sometimes have to include X the systems libintl.h as well as this file we have more complex X include protection above. But the systems header might perhaps also X define _LIBINTL_H and therefore we have to protect the definition here. */ X #if !defined _LIBINTL_H || !defined _LIBGETTEXT_H #ifndef _LIBINTL_H # define _LIBINTL_H 1 #endif #define _LIBGETTEXT_H 1 X /* We define an additional symbol to signal that we use the GNU X implementation of gettext. */ #define __USE_GNU_GETTEXT 1 X #include X #if HAVE_LOCALE_H # include #endif X X #ifdef __cplusplus extern "C" { #endif X /* @@ end of prolog @@ */ X #ifndef PARAMS # if __STDC__ || defined __cplusplus # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif X #ifndef NULL # if !defined __cplusplus || defined __GNUC__ # define NULL ((void *) 0) # else # define NULL (0) # endif #endif X #if !HAVE_LC_MESSAGES /* This value determines the behaviour of the gettext() and dgettext() X function. But some system does not have this defined. Define it X to a default value. */ # define LC_MESSAGES (-1) #endif X X /* Declarations for gettext-using-catgets interface. Derived from X Jim Meyering's libintl.h. */ struct _msg_ent { X const char *_msg; X int _msg_number; }; X X #if HAVE_CATGETS /* These two variables are defined in the automatically by po-to-tbl.sed X generated file `cat-id-tbl.c'. */ extern const struct _msg_ent _msg_tbl[]; extern int _msg_tbl_length; #endif X X /* For automatical extraction of messages sometimes no real X translation is needed. Instead the string itself is the result. */ #define gettext_noop(Str) (Str) X /* Look up MSGID in the current default message catalog for the current X LC_MESSAGES locale. If not found, returns MSGID itself (the default X text). */ extern char *gettext PARAMS ((const char *__msgid)); extern char *gettext__ PARAMS ((const char *__msgid)); X /* Look up MSGID in the DOMAINNAME message catalog for the current X LC_MESSAGES locale. */ extern char *dgettext PARAMS ((const char *__domainname, const char *__msgid)); extern char *dgettext__ PARAMS ((const char *__domainname, X const char *__msgid)); X /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY X locale. */ extern char *dcgettext PARAMS ((const char *__domainname, const char *__msgid, X int __category)); extern char *dcgettext__ PARAMS ((const char *__domainname, X const char *__msgid, int __category)); X X /* Set the current default message catalog to DOMAINNAME. X If DOMAINNAME is null, return the current default. X If DOMAINNAME is "", reset to the default of "messages". */ extern char *textdomain PARAMS ((const char *__domainname)); extern char *textdomain__ PARAMS ((const char *__domainname)); X /* Specify that the DOMAINNAME message catalog will be found X in DIRNAME rather than in the system locale data base. */ extern char *bindtextdomain PARAMS ((const char *__domainname, X const char *__dirname)); extern char *bindtextdomain__ PARAMS ((const char *__domainname, X const char *__dirname)); X #if ENABLE_NLS X /* Solaris 2.3 has the gettext function but dcgettext is missing. X So we omit this optimization for Solaris 2.3. BTW, Solaris 2.4 X has dcgettext. */ # if !HAVE_CATGETS && (!HAVE_GETTEXT || HAVE_DCGETTEXT) X # define gettext(Msgid) \ X dgettext (NULL, Msgid) X # define dgettext(Domainname, Msgid) \ X dcgettext (Domainname, Msgid, LC_MESSAGES) X # if defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ >= 7 /* This global variable is defined in loadmsgcat.c. We need a sign, X whether a new catalog was loaded, which can be associated with all X translations. */ extern int _nl_msg_cat_cntr; X # define dcgettext(Domainname, Msgid, Category) \ X (__extension__ \ X ({ \ X char *__result; \ X if (__builtin_constant_p (Msgid)) \ X { \ X static char *__translation__; \ X static int __catalog_counter__; \ X if (! __translation__ || __catalog_counter__ != _nl_msg_cat_cntr) \ X { \ X __translation__ = \ X dcgettext__ (Domainname, Msgid, Category); \ X __catalog_counter__ = _nl_msg_cat_cntr; \ X } \ X __result = __translation__; \ X } \ X else \ X __result = dcgettext__ (Domainname, Msgid, Category); \ X __result; \ X })) # endif # endif X #else X # define gettext(Msgid) (Msgid) # define dgettext(Domainname, Msgid) (Msgid) # define dcgettext(Domainname, Msgid, Category) (Msgid) # define textdomain(Domainname) ((char *) Domainname) # define bindtextdomain(Domainname, Dirname) ((char *) Dirname) X #endif X /* @@ begin of epilog @@ */ X #ifdef __cplusplus } #endif X #endif SHAR_EOF $shar_touch -am 0427151198 'tar-1.13/intl/libgettext.h' && chmod 0444 'tar-1.13/intl/libgettext.h' || $echo 'restore of' 'tar-1.13/intl/libgettext.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/libgettext.h:' 'MD5 check failed' cbb38948ae7c116ea7aa981874709e73 tar-1.13/intl/libgettext.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/libgettext.h'`" test 5733 -eq "$shar_count" || $echo 'tar-1.13/intl/libgettext.h:' 'original size' '5733,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/loadinfo.h ============== if test -f 'tar-1.13/intl/loadinfo.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/loadinfo.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/loadinfo.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/loadinfo.h' && /* Copyright (C) 1996, 1997 Free Software Foundation, Inc. X This file is part of the GNU C Library. X Contributed by Ulrich Drepper , 1996. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifndef PARAMS # if __STDC__ # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif X /* Encoding of locale name parts. */ #define CEN_REVISION 1 #define CEN_SPONSOR 2 #define CEN_SPECIAL 4 #define XPG_NORM_CODESET 8 #define XPG_CODESET 16 #define TERRITORY 32 #define CEN_AUDIENCE 64 #define XPG_MODIFIER 128 X #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE) #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER) X X struct loaded_l10nfile { X const char *filename; X int decided; X X const void *data; X X struct loaded_l10nfile *next; X struct loaded_l10nfile *successor[1]; }; X X extern const char *_nl_normalize_codeset PARAMS ((const unsigned char *codeset, X size_t name_len)); X extern struct loaded_l10nfile * _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list, X const char *dirlist, size_t dirlist_len, int mask, X const char *language, const char *territory, X const char *codeset, X const char *normalized_codeset, X const char *modifier, const char *special, X const char *sponsor, const char *revision, X const char *filename, int do_allocate)); X X extern const char *_nl_expand_alias PARAMS ((const char *name)); X extern int _nl_explode_name PARAMS ((char *name, const char **language, X const char **modifier, X const char **territory, X const char **codeset, X const char **normalized_codeset, X const char **special, X const char **sponsor, X const char **revision)); SHAR_EOF $shar_touch -am 0429094098 'tar-1.13/intl/loadinfo.h' && chmod 0444 'tar-1.13/intl/loadinfo.h' || $echo 'restore of' 'tar-1.13/intl/loadinfo.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/loadinfo.h:' 'MD5 check failed' eea45725e2601ab7dd122a20871ecf76 tar-1.13/intl/loadinfo.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/loadinfo.h'`" test 2413 -eq "$shar_count" || $echo 'tar-1.13/intl/loadinfo.h:' 'original size' '2413,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/bindtextdom.c ============== if test -f 'tar-1.13/intl/bindtextdom.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/bindtextdom.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/bindtextdom.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/bindtextdom.c' && /* Implementation of the bindtextdomain(3) function X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #if defined STDC_HEADERS || defined _LIBC # include #else # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif X #if defined HAVE_STRING_H || defined _LIBC # include #else # include # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif #endif X #ifdef _LIBC # include #else # include "libgettext.h" #endif #include "gettext.h" #include "gettextP.h" X /* @@ end of prolog @@ */ X /* Contains the default location of the message catalogs. */ extern const char _nl_default_dirname[]; X /* List with bindings of specific domains. */ extern struct binding *_nl_domain_bindings; X X /* Names for the libintl functions are a problem. They must not clash X with existing names and they should follow ANSI C. But this source X code is also used in GNU C Library where the names have a __ X prefix. So we have to make a difference here. */ #ifdef _LIBC # define BINDTEXTDOMAIN __bindtextdomain # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define BINDTEXTDOMAIN bindtextdomain__ #endif X /* Specify that the DOMAINNAME message catalog will be found X in DIRNAME rather than in the system locale data base. */ char * BINDTEXTDOMAIN (domainname, dirname) X const char *domainname; X const char *dirname; { X struct binding *binding; X X /* Some sanity checks. */ X if (domainname == NULL || domainname[0] == '\0') X return NULL; X X for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) X { X int compare = strcmp (domainname, binding->domainname); X if (compare == 0) X /* We found it! */ X break; X if (compare < 0) X { X /* It is not in the list. */ X binding = NULL; X break; X } X } X X if (dirname == NULL) X /* The current binding has be to returned. */ X return binding == NULL ? (char *) _nl_default_dirname : binding->dirname; X X if (binding != NULL) X { X /* The domain is already bound. If the new value and the old X one are equal we simply do nothing. Otherwise replace the X old binding. */ X if (strcmp (dirname, binding->dirname) != 0) X { X char *new_dirname; X X if (strcmp (dirname, _nl_default_dirname) == 0) X new_dirname = (char *) _nl_default_dirname; X else X { #if defined _LIBC || defined HAVE_STRDUP X new_dirname = strdup (dirname); X if (new_dirname == NULL) X return NULL; #else X size_t len = strlen (dirname) + 1; X new_dirname = (char *) malloc (len); X if (new_dirname == NULL) X return NULL; X X memcpy (new_dirname, dirname, len); #endif X } X X if (binding->dirname != _nl_default_dirname) X free (binding->dirname); X X binding->dirname = new_dirname; X } X } X else X { X /* We have to create a new binding. */ #if !defined _LIBC && !defined HAVE_STRDUP X size_t len; #endif X struct binding *new_binding = X (struct binding *) malloc (sizeof (*new_binding)); X X if (new_binding == NULL) X return NULL; X #if defined _LIBC || defined HAVE_STRDUP X new_binding->domainname = strdup (domainname); X if (new_binding->domainname == NULL) X return NULL; #else X len = strlen (domainname) + 1; X new_binding->domainname = (char *) malloc (len); X if (new_binding->domainname == NULL) X return NULL; X memcpy (new_binding->domainname, domainname, len); #endif X X if (strcmp (dirname, _nl_default_dirname) == 0) X new_binding->dirname = (char *) _nl_default_dirname; X else X { #if defined _LIBC || defined HAVE_STRDUP X new_binding->dirname = strdup (dirname); X if (new_binding->dirname == NULL) X return NULL; #else X len = strlen (dirname) + 1; X new_binding->dirname = (char *) malloc (len); X if (new_binding->dirname == NULL) X return NULL; X memcpy (new_binding->dirname, dirname, len); #endif X } X X /* Now enqueue it. */ X if (_nl_domain_bindings == NULL X || strcmp (domainname, _nl_domain_bindings->domainname) < 0) X { X new_binding->next = _nl_domain_bindings; X _nl_domain_bindings = new_binding; X } X else X { X binding = _nl_domain_bindings; X while (binding->next != NULL X && strcmp (domainname, binding->next->domainname) > 0) X binding = binding->next; X X new_binding->next = binding->next; X binding->next = new_binding; X } X X binding = new_binding; X } X X return binding->dirname; } X #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__bindtextdomain, bindtextdomain); #endif SHAR_EOF $shar_touch -am 0429093498 'tar-1.13/intl/bindtextdom.c' && chmod 0444 'tar-1.13/intl/bindtextdom.c' || $echo 'restore of' 'tar-1.13/intl/bindtextdom.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/bindtextdom.c:' 'MD5 check failed' 0d0f701f3de2b7d66164cd9dfc174378 tar-1.13/intl/bindtextdom.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/bindtextdom.c'`" test 5331 -eq "$shar_count" || $echo 'tar-1.13/intl/bindtextdom.c:' 'original size' '5331,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/dcgettext.c ============== if test -f 'tar-1.13/intl/dcgettext.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/dcgettext.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/dcgettext.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/dcgettext.c' && /* Implementation of the dcgettext(3) function. X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include X #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX X #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif X #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(val) errno = (val) #endif X #if defined STDC_HEADERS || defined _LIBC # include #else char *getenv (); # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif X #if defined HAVE_STRING_H || defined _LIBC # ifndef _GNU_SOURCE # define _GNU_SOURCE 1 # endif # include #else # include #endif #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif X #if defined HAVE_UNISTD_H || defined _LIBC # include #endif X #include "gettext.h" #include "gettextP.h" #ifdef _LIBC # include #else # include "libgettext.h" #endif #include "hash-string.h" X /* @@ end of prolog @@ */ X #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard X because some ANSI C functions will require linking with this object X file and the name space must not be polluted. */ # define getcwd __getcwd # ifndef stpcpy # define stpcpy __stpcpy # endif #else # if !defined HAVE_GETCWD char *getwd (); # define getcwd(buf, max) getwd (buf) # else char *getcwd (); # endif # ifndef HAVE_STPCPY static char *stpcpy PARAMS ((char *dest, const char *src)); # endif #endif X /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 X /* The following is from pathmax.h. */ /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define X PATH_MAX but might cause redefinition warnings when sys/param.h is X later included (as on MORE/BSD 4.3). */ #if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) && !defined(__GNUC__)) # include #endif X #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 #endif X #if !defined(PATH_MAX) && defined(_PC_PATH_MAX) # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif X /* Don't include sys/param.h if it already has been. */ #if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) # include #endif X #if !defined(PATH_MAX) && defined(MAXPATHLEN) # define PATH_MAX MAXPATHLEN #endif X #ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX #endif X /* XPG3 defines the result of `setlocale (category, NULL)' as: X ``Directs `setlocale()' to query `category' and return the current X setting of `local'.'' X However it does not specify the exact format. And even worse: POSIX X defines this not at all. So we can use this feature only on selected X system (e.g. those using GNU C Library). */ #ifdef _LIBC # define HAVE_LOCALE_NULL #endif X /* Name of the default domain used for gettext(3) prior any call to X textdomain(3). The default value for this is "messages". */ const char _nl_default_default_domain[] = "messages"; X /* Value used as the default domain for gettext(3). */ const char *_nl_current_default_domain = _nl_default_default_domain; X /* Contains the default location of the message catalogs. */ const char _nl_default_dirname[] = GNULOCALEDIR; X /* List with bindings of specific domains created by bindtextdomain() X calls. */ struct binding *_nl_domain_bindings; X /* Prototypes for local functions. */ static char *find_msg PARAMS ((struct loaded_l10nfile *domain_file, X const char *msgid)) internal_function; static const char *category_to_name PARAMS ((int category)) internal_function; static const char *guess_category_value PARAMS ((int category, X const char *categoryname)) X internal_function; X X /* For those loosing systems which don't have `alloca' we have to add X some additional code emulating it. */ #ifdef HAVE_ALLOCA /* Nothing has to be done. */ # define ADD_BLOCK(list, address) /* nothing */ # define FREE_BLOCKS(list) /* nothing */ #else struct block_list { X void *address; X struct block_list *next; }; # define ADD_BLOCK(list, addr) \ X do { \ X struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ X /* If we cannot get a free block we cannot add the new element to \ X the list. */ \ X if (newp != NULL) { \ X newp->address = (addr); \ X newp->next = (list); \ X (list) = newp; \ X } \ X } while (0) # define FREE_BLOCKS(list) \ X do { \ X while (list != NULL) { \ X struct block_list *old = list; \ X list = list->next; \ X free (old); \ X } \ X } while (0) # undef alloca # define alloca(size) (malloc (size)) #endif /* have alloca */ X X /* Names for the libintl functions are a problem. They must not clash X with existing names and they should follow ANSI C. But this source X code is also used in GNU C Library where the names have a __ X prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCGETTEXT __dcgettext #else # define DCGETTEXT dcgettext__ #endif X /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY X locale. */ char * DCGETTEXT (domainname, msgid, category) X const char *domainname; X const char *msgid; X int category; { #ifndef HAVE_ALLOCA X struct block_list *block_list = NULL; #endif X struct loaded_l10nfile *domain; X struct binding *binding; X const char *categoryname; X const char *categoryvalue; X char *dirname, *xdomainname; X char *single_locale; X char *retval; X int saved_errno = errno; X X /* If no real MSGID is given return NULL. */ X if (msgid == NULL) X return NULL; X X /* If DOMAINNAME is NULL, we are interested in the default domain. If X CATEGORY is not LC_MESSAGES this might not make much sense but the X defintion left this undefined. */ X if (domainname == NULL) X domainname = _nl_current_default_domain; X X /* First find matching binding. */ X for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) X { X int compare = strcmp (domainname, binding->domainname); X if (compare == 0) X /* We found it! */ X break; X if (compare < 0) X { X /* It is not in the list. */ X binding = NULL; X break; X } X } X X if (binding == NULL) X dirname = (char *) _nl_default_dirname; X else if (binding->dirname[0] == '/') X dirname = binding->dirname; X else X { X /* We have a relative path. Make it absolute now. */ X size_t dirname_len = strlen (binding->dirname) + 1; X size_t path_max; X char *ret; X X path_max = (unsigned) PATH_MAX; X path_max += 2; /* The getcwd docs say to do this. */ X X dirname = (char *) alloca (path_max + dirname_len); X ADD_BLOCK (block_list, dirname); X X __set_errno (0); X while ((ret = getcwd (dirname, path_max)) == NULL && errno == ERANGE) X { X path_max += PATH_INCR; X dirname = (char *) alloca (path_max + dirname_len); X ADD_BLOCK (block_list, dirname); X __set_errno (0); X } X X if (ret == NULL) X { X /* We cannot get the current working directory. Don't signal an X error but simply return the default string. */ X FREE_BLOCKS (block_list); X __set_errno (saved_errno); X return (char *) msgid; X } X X stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname); X } X X /* Now determine the symbolic name of CATEGORY and its value. */ X categoryname = category_to_name (category); X categoryvalue = guess_category_value (category, categoryname); X X xdomainname = (char *) alloca (strlen (categoryname) X + strlen (domainname) + 5); X ADD_BLOCK (block_list, xdomainname); X X stpcpy (stpcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), X domainname), X ".mo"); X X /* Creating working area. */ X single_locale = (char *) alloca (strlen (categoryvalue) + 1); X ADD_BLOCK (block_list, single_locale); X X X /* Search for the given string. This is a loop because we perhaps X got an ordered list of languages to consider for th translation. */ X while (1) X { X /* Make CATEGORYVALUE point to the next element of the list. */ X while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') X ++categoryvalue; X if (categoryvalue[0] == '\0') X { X /* The whole contents of CATEGORYVALUE has been searched but X no valid entry has been found. We solve this situation X by implicitly appending a "C" entry, i.e. no translation X will take place. */ X single_locale[0] = 'C'; X single_locale[1] = '\0'; X } X else X { X char *cp = single_locale; X while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') X *cp++ = *categoryvalue++; X *cp = '\0'; X } X X /* If the current locale value is C (or POSIX) we don't load a X domain. Return the MSGID. */ X if (strcmp (single_locale, "C") == 0 X || strcmp (single_locale, "POSIX") == 0) X { X FREE_BLOCKS (block_list); X __set_errno (saved_errno); X return (char *) msgid; X } X X X /* Find structure describing the message catalog matching the X DOMAINNAME and CATEGORY. */ X domain = _nl_find_domain (dirname, single_locale, xdomainname); X X if (domain != NULL) X { X retval = find_msg (domain, msgid); X X if (retval == NULL) X { X int cnt; X X for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) X { X retval = find_msg (domain->successor[cnt], msgid); X X if (retval != NULL) X break; X } X } X X if (retval != NULL) X { X FREE_BLOCKS (block_list); X __set_errno (saved_errno); X return retval; X } X } X } X /* NOTREACHED */ } X #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcgettext, dcgettext); #endif X X static char * internal_function find_msg (domain_file, msgid) X struct loaded_l10nfile *domain_file; X const char *msgid; { X size_t top, act, bottom; X struct loaded_domain *domain; X X if (domain_file->decided == 0) X _nl_load_domain (domain_file); X X if (domain_file->data == NULL) X return NULL; X X domain = (struct loaded_domain *) domain_file->data; X X /* Locate the MSGID and its translation. */ X if (domain->hash_size > 2 && domain->hash_tab != NULL) X { X /* Use the hashing table. */ X nls_uint32 len = strlen (msgid); X nls_uint32 hash_val = hash_string (msgid); X nls_uint32 idx = hash_val % domain->hash_size; X nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); X nls_uint32 nstr = W (domain->must_swap, domain->hash_tab[idx]); X X if (nstr == 0) X /* Hash table entry is empty. */ X return NULL; X X if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) == len X && strcmp (msgid, X domain->data + W (domain->must_swap, X domain->orig_tab[nstr - 1].offset)) == 0) X return (char *) domain->data + W (domain->must_swap, X domain->trans_tab[nstr - 1].offset); X X while (1) X { X if (idx >= domain->hash_size - incr) X idx -= domain->hash_size - incr; X else X idx += incr; X X nstr = W (domain->must_swap, domain->hash_tab[idx]); X if (nstr == 0) X /* Hash table entry is empty. */ X return NULL; X X if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) == len X && strcmp (msgid, X domain->data + W (domain->must_swap, X domain->orig_tab[nstr - 1].offset)) X == 0) X return (char *) domain->data X + W (domain->must_swap, domain->trans_tab[nstr - 1].offset); X } X /* NOTREACHED */ X } X X /* Now we try the default method: binary search in the sorted X array of messages. */ X bottom = 0; X top = domain->nstrings; X while (bottom < top) X { X int cmp_val; X X act = (bottom + top) / 2; X cmp_val = strcmp (msgid, domain->data X + W (domain->must_swap, X domain->orig_tab[act].offset)); X if (cmp_val < 0) X top = act; X else if (cmp_val > 0) X bottom = act + 1; X else X break; X } X X /* If an translation is found return this. */ X return bottom >= top ? NULL : (char *) domain->data X + W (domain->must_swap, X domain->trans_tab[act].offset); } X X /* Return string representation of locale CATEGORY. */ static const char * internal_function category_to_name (category) X int category; { X const char *retval; X X switch (category) X { #ifdef LC_COLLATE X case LC_COLLATE: X retval = "LC_COLLATE"; X break; #endif #ifdef LC_CTYPE X case LC_CTYPE: X retval = "LC_CTYPE"; X break; #endif #ifdef LC_MONETARY X case LC_MONETARY: X retval = "LC_MONETARY"; X break; #endif #ifdef LC_NUMERIC X case LC_NUMERIC: X retval = "LC_NUMERIC"; X break; #endif #ifdef LC_TIME X case LC_TIME: X retval = "LC_TIME"; X break; #endif #ifdef LC_MESSAGES X case LC_MESSAGES: X retval = "LC_MESSAGES"; X break; #endif #ifdef LC_RESPONSE X case LC_RESPONSE: X retval = "LC_RESPONSE"; X break; #endif #ifdef LC_ALL X case LC_ALL: X /* This might not make sense but is perhaps better than any other X value. */ X retval = "LC_ALL"; X break; #endif X default: X /* If you have a better idea for a default value let me know. */ X retval = "LC_XXX"; X } X X return retval; } X /* Guess value of current locale from value of the environment variables. */ static const char * internal_function guess_category_value (category, categoryname) X int category; X const char *categoryname; { X const char *retval; X X /* The highest priority value is the `LANGUAGE' environment X variable. This is a GNU extension. */ X retval = getenv ("LANGUAGE"); X if (retval != NULL && retval[0] != '\0') X return retval; X X /* `LANGUAGE' is not set. So we have to proceed with the POSIX X methods of looking to `LC_ALL', `LC_xxx', and `LANG'. On some X systems this can be done by the `setlocale' function itself. */ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL X return setlocale (category, NULL); #else X /* Setting of LC_ALL overwrites all other. */ X retval = getenv ("LC_ALL"); X if (retval != NULL && retval[0] != '\0') X return retval; X X /* Next comes the name of the desired category. */ X retval = getenv (categoryname); X if (retval != NULL && retval[0] != '\0') X return retval; X X /* Last possibility is the LANG environment variable. */ X retval = getenv ("LANG"); X if (retval != NULL && retval[0] != '\0') X return retval; X X /* We use C as the default domain. POSIX says this is implementation X defined. */ X return "C"; #endif } X /* @@ begin of epilog @@ */ X /* We don't want libintl.a to depend on any other library. So we X avoid the non-standard function stpcpy. In GNU C Library this X function is available, though. Also allow the symbol HAVE_STPCPY X to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) X char *dest; X const char *src; { X while ((*dest++ = *src++) != '\0') X /* Do nothing. */ ; X return dest - 1; } #endif X X #ifdef _LIBC /* If we want to free all resources we have to do some work at X program's end. */ static void __attribute__ ((unused)) free_mem (void) { X struct binding *runp; X X for (runp = _nl_domain_bindings; runp != NULL; runp = runp->next) X { X free (runp->domainname); X if (runp->dirname != _nl_default_dirname) X /* Yes, this is a pointer comparison. */ X free (runp->dirname); X } X X if (_nl_current_default_domain != _nl_default_default_domain) X /* Yes, again a pointer comparison. */ X free ((char *) _nl_current_default_domain); } X text_set_element (__libc_subfreeres, free_mem); #endif SHAR_EOF $shar_touch -am 0427141298 'tar-1.13/intl/dcgettext.c' && chmod 0444 'tar-1.13/intl/dcgettext.c' || $echo 'restore of' 'tar-1.13/intl/dcgettext.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/dcgettext.c:' 'MD5 check failed' cc8f13a4eca50e459ace9fc8dd63febc tar-1.13/intl/dcgettext.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/dcgettext.c'`" test 16512 -eq "$shar_count" || $echo 'tar-1.13/intl/dcgettext.c:' 'original size' '16512,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/dgettext.c ============== if test -f 'tar-1.13/intl/dgettext.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/dgettext.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/dgettext.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/dgettext.c' && /* Implementation of the dgettext(3) function X Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #if defined HAVE_LOCALE_H || defined _LIBC # include #endif X #ifdef _LIBC # include #else # include "libgettext.h" #endif X /* @@ end of prolog @@ */ X /* Names for the libintl functions are a problem. They must not clash X with existing names and they should follow ANSI C. But this source X code is also used in GNU C Library where the names have a __ X prefix. So we have to make a difference here. */ #ifdef _LIBC # define DGETTEXT __dgettext # define DCGETTEXT __dcgettext #else # define DGETTEXT dgettext__ # define DCGETTEXT dcgettext__ #endif X /* Look up MSGID in the DOMAINNAME message catalog of the current X LC_MESSAGES locale. */ char * DGETTEXT (domainname, msgid) X const char *domainname; X const char *msgid; { X return DCGETTEXT (domainname, msgid, LC_MESSAGES); } X #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dgettext, dgettext); #endif SHAR_EOF $shar_touch -am 0427140798 'tar-1.13/intl/dgettext.c' && chmod 0444 'tar-1.13/intl/dgettext.c' || $echo 'restore of' 'tar-1.13/intl/dgettext.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/dgettext.c:' 'MD5 check failed' 4ef4d731f96a4c2a4901fa03a97abc60 tar-1.13/intl/dgettext.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/dgettext.c'`" test 1786 -eq "$shar_count" || $echo 'tar-1.13/intl/dgettext.c:' 'original size' '1786,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/gettext.c ============== if test -f 'tar-1.13/intl/gettext.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/gettext.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/gettext.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/gettext.c' && /* Implementation of gettext(3) function. X Copyright (C) 1995, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #ifdef _LIBC # define __need_NULL # include #else # ifdef STDC_HEADERS # include /* Just for NULL. */ # else # ifdef HAVE_STRING_H # include # else # define NULL ((void *) 0) # endif # endif #endif X #ifdef _LIBC # include #else # include "libgettext.h" #endif X /* @@ end of prolog @@ */ X /* Names for the libintl functions are a problem. They must not clash X with existing names and they should follow ANSI C. But this source X code is also used in GNU C Library where the names have a __ X prefix. So we have to make a difference here. */ #ifdef _LIBC # define GETTEXT __gettext # define DGETTEXT __dgettext #else # define GETTEXT gettext__ # define DGETTEXT dgettext__ #endif X /* Look up MSGID in the current default message catalog for the current X LC_MESSAGES locale. If not found, returns MSGID itself (the default X text). */ char * GETTEXT (msgid) X const char *msgid; { X return DGETTEXT (NULL, msgid); } X #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__gettext, gettext); #endif SHAR_EOF $shar_touch -am 0427140298 'tar-1.13/intl/gettext.c' && chmod 0444 'tar-1.13/intl/gettext.c' || $echo 'restore of' 'tar-1.13/intl/gettext.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/gettext.c:' 'MD5 check failed' 07fdb4d82208430fdcf4e9c57799b742 tar-1.13/intl/gettext.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/gettext.c'`" test 1939 -eq "$shar_count" || $echo 'tar-1.13/intl/gettext.c:' 'original size' '1939,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/finddomain.c ============== if test -f 'tar-1.13/intl/finddomain.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/finddomain.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/finddomain.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/finddomain.c' && /* Handle list of needed message catalogs X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X Written by Ulrich Drepper , 1995. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include #include #include #include X #if defined STDC_HEADERS || defined _LIBC # include #else # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif X #if defined HAVE_STRING_H || defined _LIBC # include #else # include # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif #endif #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif X #if defined HAVE_UNISTD_H || defined _LIBC # include #endif X #include "gettext.h" #include "gettextP.h" #ifdef _LIBC # include #else # include "libgettext.h" #endif X /* @@ end of prolog @@ */ /* List of already loaded domains. */ static struct loaded_l10nfile *_nl_loaded_domains; X X /* Return a data structure describing the message catalog described by X the DOMAINNAME and CATEGORY parameters with respect to the currently X established bindings. */ struct loaded_l10nfile * internal_function _nl_find_domain (dirname, locale, domainname) X const char *dirname; X char *locale; X const char *domainname; { X struct loaded_l10nfile *retval; X const char *language; X const char *modifier; X const char *territory; X const char *codeset; X const char *normalized_codeset; X const char *special; X const char *sponsor; X const char *revision; X const char *alias_value; X int mask; X X /* LOCALE can consist of up to four recognized parts for the XPG syntax: X X language[_territory[.codeset]][@modifier] X X and six parts for the CEN syntax: X X language[_territory][+audience][+special][,[sponsor][_revision]] X X Beside the first part all of them are allowed to be missing. If X the full specified locale is not found, the less specific one are X looked for. The various parts will be stripped off according to X the following order: X (1) revision X (2) sponsor X (3) special X (4) codeset X (5) normalized codeset X (6) territory X (7) audience/modifier X */ X X /* If we have already tested for this locale entry there has to X be one data set in the list of loaded domains. */ X retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, X strlen (dirname) + 1, 0, locale, NULL, NULL, X NULL, NULL, NULL, NULL, NULL, domainname, 0); X if (retval != NULL) X { X /* We know something about this locale. */ X int cnt; X X if (retval->decided == 0) X _nl_load_domain (retval); X X if (retval->data != NULL) X return retval; X X for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) X { X if (retval->successor[cnt]->decided == 0) X _nl_load_domain (retval->successor[cnt]); X X if (retval->successor[cnt]->data != NULL) X break; X } X return cnt >= 0 ? retval : NULL; X /* NOTREACHED */ X } X X /* See whether the locale value is an alias. If yes its value X *overwrites* the alias name. No test for the original value is X done. */ X alias_value = _nl_expand_alias (locale); X if (alias_value != NULL) X { #if defined _LIBC || defined HAVE_STRDUP X locale = strdup (alias_value); X if (locale == NULL) X return NULL; #else X size_t len = strlen (alias_value) + 1; X locale = (char *) malloc (len); X if (locale == NULL) X return NULL; X X memcpy (locale, alias_value, len); #endif X } X X /* Now we determine the single parts of the locale name. First X look for the language. Termination symbols are `_' and `@' if X we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ X mask = _nl_explode_name (locale, &language, &modifier, &territory, X &codeset, &normalized_codeset, &special, X &sponsor, &revision); X X /* Create all possible locale entries which might be interested in X generalization. */ X retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, X strlen (dirname) + 1, mask, language, territory, X codeset, normalized_codeset, modifier, special, X sponsor, revision, domainname, 1); X if (retval == NULL) X /* This means we are out of core. */ X return NULL; X X if (retval->decided == 0) X _nl_load_domain (retval); X if (retval->data == NULL) X { X int cnt; X for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) X { X if (retval->successor[cnt]->decided == 0) X _nl_load_domain (retval->successor[cnt]); X if (retval->successor[cnt]->data != NULL) X break; X } X } X X /* The room for an alias was dynamically allocated. Free it now. */ X if (alias_value != NULL) X free (locale); X X return retval; } X X #ifdef _LIBC static void __attribute__ ((unused)) free_mem (void) { X struct loaded_l10nfile *runp = _nl_loaded_domains; X X while (runp != NULL) X { X struct loaded_l10nfile *here = runp; X if (runp->data != NULL) X _nl_unload_domain ((struct loaded_domain *) runp->data); X runp = runp->next; X free (here); X } } X text_set_element (__libc_subfreeres, free_mem); #endif SHAR_EOF $shar_touch -am 0427141198 'tar-1.13/intl/finddomain.c' && chmod 0444 'tar-1.13/intl/finddomain.c' || $echo 'restore of' 'tar-1.13/intl/finddomain.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/finddomain.c:' 'MD5 check failed' a3604c7c8eb409eb8e9e385096fa099b tar-1.13/intl/finddomain.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/finddomain.c'`" test 5852 -eq "$shar_count" || $echo 'tar-1.13/intl/finddomain.c:' 'original size' '5852,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/loadmsgcat.c ============== if test -f 'tar-1.13/intl/loadmsgcat.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/loadmsgcat.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/loadmsgcat.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/loadmsgcat.c' && /* Load needed message catalogs. X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include #include #include X #if defined STDC_HEADERS || defined _LIBC # include #endif X #if defined HAVE_UNISTD_H || defined _LIBC # include #endif X #if (defined HAVE_MMAP && defined HAVE_MUNMAP) || defined _LIBC # include #endif X #include "gettext.h" #include "gettextP.h" X /* @@ end of prolog @@ */ X #ifdef _LIBC /* Rename the non ISO C functions. This is required by the standard X because some ISO C functions will require linking with this object X file and the name space must not be polluted. */ # define open __open # define close __close # define read __read # define mmap __mmap # define munmap __munmap #endif X /* We need a sign, whether a new catalog was loaded, which can be associated X with all translations. This is important if the translations are X cached by one of GCC's features. */ int _nl_msg_cat_cntr = 0; X X /* Load the message catalogs specified by FILENAME. If it is no valid X message catalog do nothing. */ void internal_function _nl_load_domain (domain_file) X struct loaded_l10nfile *domain_file; { X int fd; X size_t size; X struct stat st; X struct mo_file_header *data = (struct mo_file_header *) -1; #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ X || defined _LIBC X int use_mmap = 0; #endif X struct loaded_domain *domain; X X domain_file->decided = 1; X domain_file->data = NULL; X X /* If the record does not represent a valid locale the FILENAME X might be NULL. This can happen when according to the given X specification the locale file name is different for XPG and CEN X syntax. */ X if (domain_file->filename == NULL) X return; X X /* Try to open the addressed file. */ X fd = open (domain_file->filename, O_RDONLY); X if (fd == -1) X return; X X /* We must know about the size of the file. */ X if (fstat (fd, &st) != 0 X || (size = (size_t) st.st_size) != st.st_size X || size < sizeof (struct mo_file_header)) X { X /* Something went wrong. */ X close (fd); X return; X } X #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ X || defined _LIBC X /* Now we are ready to load the file. If mmap() is available we try X this first. If not available or it failed we try to load it. */ X data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, X MAP_PRIVATE, fd, 0); X X if (data != (struct mo_file_header *) -1) X { X /* mmap() call was successful. */ X close (fd); X use_mmap = 1; X } #endif X X /* If the data is not yet available (i.e. mmap'ed) we try to load X it manually. */ X if (data == (struct mo_file_header *) -1) X { X size_t to_read; X char *read_ptr; X X data = (struct mo_file_header *) malloc (size); X if (data == NULL) X return; X X to_read = size; X read_ptr = (char *) data; X do X { X long int nb = (long int) read (fd, read_ptr, to_read); X if (nb == -1) X { X close (fd); X return; X } X X read_ptr += nb; X to_read -= nb; X } X while (to_read > 0); X X close (fd); X } X X /* Using the magic number we can test whether it really is a message X catalog file. */ X if (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED) X { X /* The magic number is wrong: not a message catalog file. */ #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ X || defined _LIBC X if (use_mmap) X munmap ((caddr_t) data, size); X else #endif X free (data); X return; X } X X domain_file->data X = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); X if (domain_file->data == NULL) X return; X X domain = (struct loaded_domain *) domain_file->data; X domain->data = (char *) data; #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ X || defined _LIBC X domain->use_mmap = use_mmap; #endif X domain->mmap_size = size; X domain->must_swap = data->magic != _MAGIC; X X /* Fill in the information about the available tables. */ X switch (W (domain->must_swap, data->revision)) X { X case 0: X domain->nstrings = W (domain->must_swap, data->nstrings); X domain->orig_tab = (struct string_desc *) X ((char *) data + W (domain->must_swap, data->orig_tab_offset)); X domain->trans_tab = (struct string_desc *) X ((char *) data + W (domain->must_swap, data->trans_tab_offset)); X domain->hash_size = W (domain->must_swap, data->hash_tab_size); X domain->hash_tab = (nls_uint32 *) X ((char *) data + W (domain->must_swap, data->hash_tab_offset)); X break; X default: X /* This is an illegal revision. */ #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ X || defined _LIBC X if (use_mmap) X munmap ((caddr_t) data, size); X else #endif X free (data); X free (domain); X domain_file->data = NULL; X return; X } X X /* Show that one domain is changed. This might make some cached X translations invalid. */ X ++_nl_msg_cat_cntr; } X X #ifdef _LIBC void internal_function _nl_unload_domain (domain) X struct loaded_domain *domain; { X if (domain->use_mmap) X munmap ((caddr_t) domain->data, domain->mmap_size); X else X free ((void *) domain->data); X X free (domain); } #endif SHAR_EOF $shar_touch -am 0428161298 'tar-1.13/intl/loadmsgcat.c' && chmod 0444 'tar-1.13/intl/loadmsgcat.c' || $echo 'restore of' 'tar-1.13/intl/loadmsgcat.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/loadmsgcat.c:' 'MD5 check failed' 2cb45953ee0685f05d4eecf3e5decaec tar-1.13/intl/loadmsgcat.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/loadmsgcat.c'`" test 6117 -eq "$shar_count" || $echo 'tar-1.13/intl/loadmsgcat.c:' 'original size' '6117,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/localealias.c ============== if test -f 'tar-1.13/intl/localealias.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/localealias.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/localealias.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/localealias.c' && /* Handle aliases for locale names. X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X Written by Ulrich Drepper , 1995. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include #include #include X #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX X #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif X #if defined STDC_HEADERS || defined _LIBC # include #else char *getenv (); # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif X #if defined HAVE_STRING_H || defined _LIBC # ifndef _GNU_SOURCE # define _GNU_SOURCE 1 # endif # include #else # include # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif #endif #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif X #include "gettext.h" #include "gettextP.h" X /* @@ end of prolog @@ */ X #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard X because some ANSI C functions will require linking with this object X file and the name space must not be polluted. */ # define strcasecmp __strcasecmp X # define mempcpy __mempcpy # define HAVE_MEMPCPY 1 X /* We need locking here since we can be called from different places. */ # include X __libc_lock_define_initialized (static, lock); #endif X X /* For those loosing systems which don't have `alloca' we have to add X some additional code emulating it. */ #ifdef HAVE_ALLOCA /* Nothing has to be done. */ # define ADD_BLOCK(list, address) /* nothing */ # define FREE_BLOCKS(list) /* nothing */ #else struct block_list { X void *address; X struct block_list *next; }; # define ADD_BLOCK(list, addr) \ X do { \ X struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ X /* If we cannot get a free block we cannot add the new element to \ X the list. */ \ X if (newp != NULL) { \ X newp->address = (addr); \ X newp->next = (list); \ X (list) = newp; \ X } \ X } while (0) # define FREE_BLOCKS(list) \ X do { \ X while (list != NULL) { \ X struct block_list *old = list; \ X list = list->next; \ X free (old); \ X } \ X } while (0) # undef alloca # define alloca(size) (malloc (size)) #endif /* have alloca */ X X struct alias_map { X const char *alias; X const char *value; }; X X static char *string_space = NULL; static size_t string_space_act = 0; static size_t string_space_max = 0; static struct alias_map *map; static size_t nmap = 0; static size_t maxmap = 0; X X /* Prototypes for local functions. */ static size_t read_alias_file PARAMS ((const char *fname, int fname_len)) X internal_function; static void extend_alias_table PARAMS ((void)); static int alias_compare PARAMS ((const struct alias_map *map1, X const struct alias_map *map2)); X X const char * _nl_expand_alias (name) X const char *name; { X static const char *locale_alias_path = LOCALE_ALIAS_PATH; X struct alias_map *retval; X const char *result = NULL; X size_t added; X #ifdef _LIBC X __libc_lock_lock (lock); #endif X X do X { X struct alias_map item; X X item.alias = name; X X if (nmap > 0) X retval = (struct alias_map *) bsearch (&item, map, nmap, X sizeof (struct alias_map), X (int (*) PARAMS ((const void *, X const void *)) X ) alias_compare); X else X retval = NULL; X X /* We really found an alias. Return the value. */ X if (retval != NULL) X { X result = retval->value; X break; X } X X /* Perhaps we can find another alias file. */ X added = 0; X while (added == 0 && locale_alias_path[0] != '\0') X { X const char *start; X X while (locale_alias_path[0] == ':') X ++locale_alias_path; X start = locale_alias_path; X X while (locale_alias_path[0] != '\0' && locale_alias_path[0] != ':') X ++locale_alias_path; X X if (start < locale_alias_path) X added = read_alias_file (start, locale_alias_path - start); X } X } X while (added != 0); X #ifdef _LIBC X __libc_lock_unlock (lock); #endif X X return result; } X X static size_t internal_function read_alias_file (fname, fname_len) X const char *fname; X int fname_len; { #ifndef HAVE_ALLOCA X struct block_list *block_list = NULL; #endif X FILE *fp; X char *full_fname; X size_t added; X static const char aliasfile[] = "/locale.alias"; X X full_fname = (char *) alloca (fname_len + sizeof aliasfile); X ADD_BLOCK (block_list, full_fname); #ifdef HAVE_MEMPCPY X mempcpy (mempcpy (full_fname, fname, fname_len), X aliasfile, sizeof aliasfile); #else X memcpy (full_fname, fname, fname_len); X memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); #endif X X fp = fopen (full_fname, "r"); X if (fp == NULL) X { X FREE_BLOCKS (block_list); X return 0; X } X X added = 0; X while (!feof (fp)) X { X /* It is a reasonable approach to use a fix buffer here because X a) we are only interested in the first two fields X b) these fields must be usable as file names and so must not X be that long X */ X char buf[BUFSIZ]; X char *alias; X char *value; X unsigned char *cp; X X if (fgets (buf, sizeof buf, fp) == NULL) X /* EOF reached. */ X break; X X /* Possibly not the whole line fits into the buffer. Ignore X the rest of the line. */ X if (strchr (buf, '\n') == NULL) X { X char altbuf[BUFSIZ]; X do X if (fgets (altbuf, sizeof altbuf, fp) == NULL) X /* Make sure the inner loop will be left. The outer loop X will exit at the `feof' test. */ X break; X while (strchr (altbuf, '\n') == NULL); X } X X cp = (unsigned char *) buf; X /* Ignore leading white space. */ X while (isspace (cp[0])) X ++cp; X X /* A leading '#' signals a comment line. */ X if (cp[0] != '\0' && cp[0] != '#') X { X alias = (char *) cp++; X while (cp[0] != '\0' && !isspace (cp[0])) X ++cp; X /* Terminate alias name. */ X if (cp[0] != '\0') X *cp++ = '\0'; X X /* Now look for the beginning of the value. */ X while (isspace (cp[0])) X ++cp; X X if (cp[0] != '\0') X { X size_t alias_len; X size_t value_len; X X value = (char *) cp++; X while (cp[0] != '\0' && !isspace (cp[0])) X ++cp; X /* Terminate value. */ X if (cp[0] == '\n') X { X /* This has to be done to make the following test X for the end of line possible. We are looking for X the terminating '\n' which do not overwrite here. */ X *cp++ = '\0'; X *cp = '\n'; X } X else if (cp[0] != '\0') X *cp++ = '\0'; X X if (nmap >= maxmap) X extend_alias_table (); X X alias_len = strlen (alias) + 1; X value_len = strlen (value) + 1; X X if (string_space_act + alias_len + value_len > string_space_max) X { X /* Increase size of memory pool. */ X size_t new_size = (string_space_max X + (alias_len + value_len > 1024 X ? alias_len + value_len : 1024)); X char *new_pool = (char *) realloc (string_space, new_size); X if (new_pool == NULL) X { X FREE_BLOCKS (block_list); X return added; X } X string_space = new_pool; X string_space_max = new_size; X } X X map[nmap].alias = memcpy (&string_space[string_space_act], X alias, alias_len); X string_space_act += alias_len; X X map[nmap].value = memcpy (&string_space[string_space_act], X value, value_len); X string_space_act += value_len; X X ++nmap; X ++added; X } X } X } X X /* Should we test for ferror()? I think we have to silently ignore X errors. --drepper */ X fclose (fp); X X if (added > 0) X qsort (map, nmap, sizeof (struct alias_map), X (int (*) PARAMS ((const void *, const void *))) alias_compare); X X FREE_BLOCKS (block_list); X return added; } X X static void extend_alias_table () { X size_t new_size; X struct alias_map *new_map; X X new_size = maxmap == 0 ? 100 : 2 * maxmap; X new_map = (struct alias_map *) realloc (map, (new_size X * sizeof (struct alias_map))); X if (new_map == NULL) X /* Simply don't extend: we don't have any more core. */ X return; X X map = new_map; X maxmap = new_size; } X X #ifdef _LIBC static void __attribute__ ((unused)) free_mem (void) { X if (string_space != NULL) X free (string_space); X if (map != NULL) X free (map); } text_set_element (__libc_subfreeres, free_mem); #endif X X static int alias_compare (map1, map2) X const struct alias_map *map1; X const struct alias_map *map2; { #if defined _LIBC || defined HAVE_STRCASECMP X return strcasecmp (map1->alias, map2->alias); #else X const unsigned char *p1 = (const unsigned char *) map1->alias; X const unsigned char *p2 = (const unsigned char *) map2->alias; X unsigned char c1, c2; X X if (p1 == p2) X return 0; X X do X { X /* I know this seems to be odd but the tolower() function in X some systems libc cannot handle nonalpha characters. */ X c1 = isupper (*p1) ? tolower (*p1) : *p1; X c2 = isupper (*p2) ? tolower (*p2) : *p2; X if (c1 == '\0') X break; X ++p1; X ++p2; X } X while (c1 == c2); X X return c1 - c2; #endif } SHAR_EOF $shar_touch -am 0726143798 'tar-1.13/intl/localealias.c' && chmod 0444 'tar-1.13/intl/localealias.c' || $echo 'restore of' 'tar-1.13/intl/localealias.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/localealias.c:' 'MD5 check failed' 248823b3c839831acbca8408c7a85514 tar-1.13/intl/localealias.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/localealias.c'`" test 10101 -eq "$shar_count" || $echo 'tar-1.13/intl/localealias.c:' 'original size' '10101,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/textdomain.c ============== if test -f 'tar-1.13/intl/textdomain.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/textdomain.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/textdomain.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/textdomain.c' && /* Implementation of the textdomain(3) function. X Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X Written by Ulrich Drepper , 1995. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #if defined STDC_HEADERS || defined _LIBC # include #endif X #if defined STDC_HEADERS || defined HAVE_STRING_H || defined _LIBC # include #else # include # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif #endif X #ifdef _LIBC # include #else # include "libgettext.h" #endif X /* @@ end of prolog @@ */ X /* Name of the default text domain. */ extern const char _nl_default_default_domain[]; X /* Default text domain in which entries for gettext(3) are to be found. */ extern const char *_nl_current_default_domain; X X /* Names for the libintl functions are a problem. They must not clash X with existing names and they should follow ANSI C. But this source X code is also used in GNU C Library where the names have a __ X prefix. So we have to make a difference here. */ #ifdef _LIBC # define TEXTDOMAIN __textdomain # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define TEXTDOMAIN textdomain__ #endif X /* Set the current default message catalog to DOMAINNAME. X If DOMAINNAME is null, return the current default. X If DOMAINNAME is "", reset to the default of "messages". */ char * TEXTDOMAIN (domainname) X const char *domainname; { X char *old; X X /* A NULL pointer requests the current setting. */ X if (domainname == NULL) X return (char *) _nl_current_default_domain; X X old = (char *) _nl_current_default_domain; X X /* If domain name is the null string set to default domain "messages". */ X if (domainname[0] == '\0' X || strcmp (domainname, _nl_default_default_domain) == 0) X _nl_current_default_domain = _nl_default_default_domain; X else X { X /* If the following malloc fails `_nl_current_default_domain' X will be NULL. This value will be returned and so signals we X are out of core. */ #if defined _LIBC || defined HAVE_STRDUP X _nl_current_default_domain = strdup (domainname); #else X size_t len = strlen (domainname) + 1; X char *cp = (char *) malloc (len); X if (cp != NULL) X memcpy (cp, domainname, len); X _nl_current_default_domain = cp; #endif X } X X if (old != _nl_default_default_domain) X free (old); X X return (char *) _nl_current_default_domain; } X #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__textdomain, textdomain); #endif SHAR_EOF $shar_touch -am 0427141098 'tar-1.13/intl/textdomain.c' && chmod 0444 'tar-1.13/intl/textdomain.c' || $echo 'restore of' 'tar-1.13/intl/textdomain.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/textdomain.c:' 'MD5 check failed' 9f197f8e4cafdfa82382882bbe04694f tar-1.13/intl/textdomain.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/textdomain.c'`" test 3265 -eq "$shar_count" || $echo 'tar-1.13/intl/textdomain.c:' 'original size' '3265,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/l10nflist.c ============== if test -f 'tar-1.13/intl/l10nflist.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/l10nflist.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/l10nflist.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/l10nflist.c' && /* Handle list of needed message catalogs X Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. X Contributed by Ulrich Drepper , 1995. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X X #if defined HAVE_STRING_H || defined _LIBC # ifndef _GNU_SOURCE # define _GNU_SOURCE 1 # endif # include #else # include # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif #endif #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif X #if defined _LIBC || defined HAVE_ARGZ_H # include #endif #include #include X #if defined STDC_HEADERS || defined _LIBC # include #endif X #include "loadinfo.h" X /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif X /* @@ end of prolog @@ */ X #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard X because some ANSI C functions will require linking with this object X file and the name space must not be polluted. */ # ifndef stpcpy # define stpcpy(dest, src) __stpcpy(dest, src) # endif #else # ifndef HAVE_STPCPY static char *stpcpy PARAMS ((char *dest, const char *src)); # endif #endif X /* Define function which are usually not available. */ X #if !defined _LIBC && !defined HAVE___ARGZ_COUNT /* Returns the number of strings in ARGZ. */ static size_t argz_count__ PARAMS ((const char *argz, size_t len)); X static size_t argz_count__ (argz, len) X const char *argz; X size_t len; { X size_t count = 0; X while (len > 0) X { X size_t part_len = strlen (argz); X argz += part_len + 1; X len -= part_len + 1; X count++; X } X return count; } # undef __argz_count # define __argz_count(argz, len) argz_count__ (argz, len) #endif /* !_LIBC && !HAVE___ARGZ_COUNT */ X #if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's X except the last into the character SEP. */ static void argz_stringify__ PARAMS ((char *argz, size_t len, int sep)); X static void argz_stringify__ (argz, len, sep) X char *argz; X size_t len; X int sep; { X while (len > 0) X { X size_t part_len = strlen (argz); X argz += part_len; X len -= part_len + 1; X if (len > 0) X *argz++ = sep; X } } # undef __argz_stringify # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) #endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */ X #if !defined _LIBC && !defined HAVE___ARGZ_NEXT static char *argz_next__ PARAMS ((char *argz, size_t argz_len, X const char *entry)); X static char * argz_next__ (argz, argz_len, entry) X char *argz; X size_t argz_len; X const char *entry; { X if (entry) X { X if (entry < argz + argz_len) X entry = strchr (entry, '\0') + 1; X X return entry >= argz + argz_len ? NULL : (char *) entry; X } X else X if (argz_len > 0) X return argz; X else X return 0; } # undef __argz_next # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) #endif /* !_LIBC && !HAVE___ARGZ_NEXT */ X X /* Return number of bits set in X. */ static int pop PARAMS ((int x)); X static inline int pop (x) X int x; { X /* We assume that no more than 16 bits are used. */ X x = ((x & ~0x5555) >> 1) + (x & 0x5555); X x = ((x & ~0x3333) >> 2) + (x & 0x3333); X x = ((x >> 4) + x) & 0x0f0f; X x = ((x >> 8) + x) & 0xff; X X return x; } X X struct loaded_l10nfile * _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language, X territory, codeset, normalized_codeset, modifier, special, X sponsor, revision, filename, do_allocate) X struct loaded_l10nfile **l10nfile_list; X const char *dirlist; X size_t dirlist_len; X int mask; X const char *language; X const char *territory; X const char *codeset; X const char *normalized_codeset; X const char *modifier; X const char *special; X const char *sponsor; X const char *revision; X const char *filename; X int do_allocate; { X char *abs_filename; X struct loaded_l10nfile *last = NULL; X struct loaded_l10nfile *retval; X char *cp; X size_t entries; X int cnt; X X /* Allocate room for the full file name. */ X abs_filename = (char *) malloc (dirlist_len X + strlen (language) X + ((mask & TERRITORY) != 0 X ? strlen (territory) + 1 : 0) X + ((mask & XPG_CODESET) != 0 X ? strlen (codeset) + 1 : 0) X + ((mask & XPG_NORM_CODESET) != 0 X ? strlen (normalized_codeset) + 1 : 0) X + (((mask & XPG_MODIFIER) != 0 X || (mask & CEN_AUDIENCE) != 0) X ? strlen (modifier) + 1 : 0) X + ((mask & CEN_SPECIAL) != 0 X ? strlen (special) + 1 : 0) X + (((mask & CEN_SPONSOR) != 0 X || (mask & CEN_REVISION) != 0) X ? (1 + ((mask & CEN_SPONSOR) != 0 X ? strlen (sponsor) + 1 : 0) X + ((mask & CEN_REVISION) != 0 X ? strlen (revision) + 1 : 0)) : 0) X + 1 + strlen (filename) + 1); X X if (abs_filename == NULL) X return NULL; X X retval = NULL; X last = NULL; X X /* Construct file name. */ X memcpy (abs_filename, dirlist, dirlist_len); X __argz_stringify (abs_filename, dirlist_len, ':'); X cp = abs_filename + (dirlist_len - 1); X *cp++ = '/'; X cp = stpcpy (cp, language); X X if ((mask & TERRITORY) != 0) X { X *cp++ = '_'; X cp = stpcpy (cp, territory); X } X if ((mask & XPG_CODESET) != 0) X { X *cp++ = '.'; X cp = stpcpy (cp, codeset); X } X if ((mask & XPG_NORM_CODESET) != 0) X { X *cp++ = '.'; X cp = stpcpy (cp, normalized_codeset); X } X if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) X { X /* This component can be part of both syntaces but has different X leading characters. For CEN we use `+', else `@'. */ X *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; X cp = stpcpy (cp, modifier); X } X if ((mask & CEN_SPECIAL) != 0) X { X *cp++ = '+'; X cp = stpcpy (cp, special); X } X if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0) X { X *cp++ = ','; X if ((mask & CEN_SPONSOR) != 0) X cp = stpcpy (cp, sponsor); X if ((mask & CEN_REVISION) != 0) X { X *cp++ = '_'; X cp = stpcpy (cp, revision); X } X } X X *cp++ = '/'; X stpcpy (cp, filename); X X /* Look in list of already loaded domains whether it is already X available. */ X last = NULL; X for (retval = *l10nfile_list; retval != NULL; retval = retval->next) X if (retval->filename != NULL) X { X int compare = strcmp (retval->filename, abs_filename); X if (compare == 0) X /* We found it! */ X break; X if (compare < 0) X { X /* It's not in the list. */ X retval = NULL; X break; X } X X last = retval; X } X X if (retval != NULL || do_allocate == 0) X { X free (abs_filename); X return retval; X } X X retval = (struct loaded_l10nfile *) X malloc (sizeof (*retval) + (__argz_count (dirlist, dirlist_len) X * (1 << pop (mask)) X * sizeof (struct loaded_l10nfile *))); X if (retval == NULL) X return NULL; X X retval->filename = abs_filename; X retval->decided = (__argz_count (dirlist, dirlist_len) != 1 X || ((mask & XPG_CODESET) != 0 X && (mask & XPG_NORM_CODESET) != 0)); X retval->data = NULL; X X if (last == NULL) X { X retval->next = *l10nfile_list; X *l10nfile_list = retval; X } X else X { X retval->next = last->next; X last->next = retval; X } X X entries = 0; X /* If the DIRLIST is a real list the RETVAL entry corresponds not to X a real file. So we have to use the DIRLIST separation mechanism X of the inner loop. */ X cnt = __argz_count (dirlist, dirlist_len) == 1 ? mask - 1 : mask; X for (; cnt >= 0; --cnt) X if ((cnt & ~mask) == 0 X && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) X && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) X { X /* Iterate over all elements of the DIRLIST. */ X char *dir = NULL; X X while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) X != NULL) X retval->successor[entries++] X = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt, X language, territory, codeset, X normalized_codeset, modifier, special, X sponsor, revision, filename, 1); X } X retval->successor[entries] = NULL; X X return retval; } X /* Normalize codeset name. There is no standard for the codeset X names. Normalization allows the user to use any of the common X names. */ const char * _nl_normalize_codeset (codeset, name_len) X const unsigned char *codeset; X size_t name_len; { X int len = 0; X int only_digit = 1; X char *retval; X char *wp; X size_t cnt; X X for (cnt = 0; cnt < name_len; ++cnt) X if (isalnum (codeset[cnt])) X { X ++len; X X if (isalpha (codeset[cnt])) X only_digit = 0; X } X X retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); X X if (retval != NULL) X { X if (only_digit) X wp = stpcpy (retval, "iso"); X else X wp = retval; X X for (cnt = 0; cnt < name_len; ++cnt) X if (isalpha (codeset[cnt])) X *wp++ = tolower (codeset[cnt]); X else if (isdigit (codeset[cnt])) X *wp++ = codeset[cnt]; X X *wp = '\0'; X } X X return (const char *) retval; } X X /* @@ begin of epilog @@ */ X /* We don't want libintl.a to depend on any other library. So we X avoid the non-standard function stpcpy. In GNU C Library this X function is available, though. Also allow the symbol HAVE_STPCPY X to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) X char *dest; X const char *src; { X while ((*dest++ = *src++) != '\0') X /* Do nothing. */ ; X return dest - 1; } #endif SHAR_EOF $shar_touch -am 0429093898 'tar-1.13/intl/l10nflist.c' && chmod 0444 'tar-1.13/intl/l10nflist.c' || $echo 'restore of' 'tar-1.13/intl/l10nflist.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/l10nflist.c:' 'MD5 check failed' dca9627004c526250d47351899faf37f tar-1.13/intl/l10nflist.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/l10nflist.c'`" test 10404 -eq "$shar_count" || $echo 'tar-1.13/intl/l10nflist.c:' 'original size' '10404,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/explodename.c ============== if test -f 'tar-1.13/intl/explodename.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/explodename.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/explodename.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/explodename.c' && /* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. X Contributed by Ulrich Drepper , 1995. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #if defined STDC_HEADERS || defined _LIBC # include #endif X #if defined HAVE_STRING_H || defined _LIBC # include #else # include #endif #include X #include "loadinfo.h" X /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif X /* @@ end of prolog @@ */ X int _nl_explode_name (name, language, modifier, territory, codeset, X normalized_codeset, special, sponsor, revision) X char *name; X const char **language; X const char **modifier; X const char **territory; X const char **codeset; X const char **normalized_codeset; X const char **special; X const char **sponsor; X const char **revision; { X enum { undecided, xpg, cen } syntax; X char *cp; X int mask; X X *modifier = NULL; X *territory = NULL; X *codeset = NULL; X *normalized_codeset = NULL; X *special = NULL; X *sponsor = NULL; X *revision = NULL; X X /* Now we determine the single parts of the locale name. First X look for the language. Termination symbols are `_' and `@' if X we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ X mask = 0; X syntax = undecided; X *language = cp = name; X while (cp[0] != '\0' && cp[0] != '_' && cp[0] != '@' X && cp[0] != '+' && cp[0] != ',') X ++cp; X X if (*language == cp) X /* This does not make sense: language has to be specified. Use X this entry as it is without exploding. Perhaps it is an alias. */ X cp = strchr (*language, '\0'); X else if (cp[0] == '_') X { X /* Next is the territory. */ X cp[0] = '\0'; X *territory = ++cp; X X while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@' X && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') X ++cp; X X mask |= TERRITORY; X X if (cp[0] == '.') X { X /* Next is the codeset. */ X syntax = xpg; X cp[0] = '\0'; X *codeset = ++cp; X X while (cp[0] != '\0' && cp[0] != '@') X ++cp; X X mask |= XPG_CODESET; X X if (*codeset != cp && (*codeset)[0] != '\0') X { X *normalized_codeset = _nl_normalize_codeset (*codeset, X cp - *codeset); X if (strcmp (*codeset, *normalized_codeset) == 0) X free ((char *) *normalized_codeset); X else X mask |= XPG_NORM_CODESET; X } X } X } X X if (cp[0] == '@' || (syntax != xpg && cp[0] == '+')) X { X /* Next is the modifier. */ X syntax = cp[0] == '@' ? xpg : cen; X cp[0] = '\0'; X *modifier = ++cp; X X while (syntax == cen && cp[0] != '\0' && cp[0] != '+' X && cp[0] != ',' && cp[0] != '_') X ++cp; X X mask |= XPG_MODIFIER | CEN_AUDIENCE; X } X X if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_')) X { X syntax = cen; X X if (cp[0] == '+') X { X /* Next is special application (CEN syntax). */ X cp[0] = '\0'; X *special = ++cp; X X while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_') X ++cp; X X mask |= CEN_SPECIAL; X } X X if (cp[0] == ',') X { X /* Next is sponsor (CEN syntax). */ X cp[0] = '\0'; X *sponsor = ++cp; X X while (cp[0] != '\0' && cp[0] != '_') X ++cp; X X mask |= CEN_SPONSOR; X } X X if (cp[0] == '_') X { X /* Next is revision (CEN syntax). */ X cp[0] = '\0'; X *revision = ++cp; X X mask |= CEN_REVISION; X } X } X X /* For CEN syntax values it might be important to have the X separator character in the file name, not for XPG syntax. */ X if (syntax == xpg) X { X if (*territory != NULL && (*territory)[0] == '\0') X mask &= ~TERRITORY; X X if (*codeset != NULL && (*codeset)[0] == '\0') X mask &= ~XPG_CODESET; X X if (*modifier != NULL && (*modifier)[0] == '\0') X mask &= ~XPG_MODIFIER; X } X X return mask; } SHAR_EOF $shar_touch -am 0427140898 'tar-1.13/intl/explodename.c' && chmod 0444 'tar-1.13/intl/explodename.c' || $echo 'restore of' 'tar-1.13/intl/explodename.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/explodename.c:' 'MD5 check failed' 930994e607ac485929753d7caddcb584 tar-1.13/intl/explodename.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/explodename.c'`" test 4616 -eq "$shar_count" || $echo 'tar-1.13/intl/explodename.c:' 'original size' '4616,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/intl-compat.c ============== if test -f 'tar-1.13/intl/intl-compat.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/intl-compat.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/intl-compat.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/intl-compat.c' && /* intl-compat.c - Stub functions to call gettext functions from GNU gettext X Library. X Copyright (C) 1995 Software Foundation, Inc. X This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. X This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. X You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include "libgettext.h" X /* @@ end of prolog @@ */ X X #undef gettext #undef dgettext #undef dcgettext #undef textdomain #undef bindtextdomain X X char * bindtextdomain (domainname, dirname) X const char *domainname; X const char *dirname; { X return bindtextdomain__ (domainname, dirname); } X X char * dcgettext (domainname, msgid, category) X const char *domainname; X const char *msgid; X int category; { X return dcgettext__ (domainname, msgid, category); } X X char * dgettext (domainname, msgid) X const char *domainname; X const char *msgid; { X return dgettext__ (domainname, msgid); } X X char * gettext (msgid) X const char *msgid; { X return gettext__ (msgid); } X X char * textdomain (domainname) X const char *domainname; { X return textdomain__ (domainname); } SHAR_EOF $shar_touch -am 0921042095 'tar-1.13/intl/intl-compat.c' && chmod 0444 'tar-1.13/intl/intl-compat.c' || $echo 'restore of' 'tar-1.13/intl/intl-compat.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/intl-compat.c:' 'MD5 check failed' 93e4ab4b2eba5d2b8a36e1b2380190c5 tar-1.13/intl/intl-compat.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/intl-compat.c'`" test 1646 -eq "$shar_count" || $echo 'tar-1.13/intl/intl-compat.c:' 'original size' '1646,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/cat-compat.c ============== if test -f 'tar-1.13/intl/cat-compat.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/cat-compat.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/cat-compat.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/cat-compat.c' && /* Compatibility code for gettext-using-catgets interface. X Copyright (C) 1995, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #ifdef HAVE_CONFIG_H # include #endif X #include X #ifdef STDC_HEADERS # include # include #else char *getenv (); # ifdef HAVE_MALLOC_H # include # endif #endif X #ifdef HAVE_NL_TYPES_H # include #endif X #include "libgettext.h" X /* @@ end of prolog @@ */ X /* XPG3 defines the result of `setlocale (category, NULL)' as: X ``Directs `setlocale()' to query `category' and return the current X setting of `local'.'' X However it does not specify the exact format. And even worse: POSIX X defines this not at all. So we can use this feature only on selected X system (e.g. those using GNU C Library). */ #ifdef _LIBC # define HAVE_LOCALE_NULL #endif X /* The catalog descriptor. */ static nl_catd catalog = (nl_catd) -1; X /* Name of the default catalog. */ static const char default_catalog_name[] = "messages"; X /* Name of currently used catalog. */ static const char *catalog_name = default_catalog_name; X /* Get ID for given string. If not found return -1. */ static int msg_to_cat_id PARAMS ((const char *msg)); X /* Substitution for systems lacking this function in their C library. */ #if !_LIBC && !HAVE_STPCPY static char *stpcpy PARAMS ((char *dest, const char *src)); #endif X X /* Set currently used domain/catalog. */ char * textdomain (domainname) X const char *domainname; { X nl_catd new_catalog; X char *new_name; X size_t new_name_len; X char *lang; X #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES \ X && defined HAVE_LOCALE_NULL X lang = setlocale (LC_MESSAGES, NULL); #else X lang = getenv ("LC_ALL"); X if (lang == NULL || lang[0] == '\0') X { X lang = getenv ("LC_MESSAGES"); X if (lang == NULL || lang[0] == '\0') X lang = getenv ("LANG"); X } #endif X if (lang == NULL || lang[0] == '\0') X lang = "C"; X X /* See whether name of currently used domain is asked. */ X if (domainname == NULL) X return (char *) catalog_name; X X if (domainname[0] == '\0') X domainname = default_catalog_name; X X /* Compute length of added path element. */ X new_name_len = sizeof (LOCALEDIR) - 1 + 1 + strlen (lang) X + sizeof ("/LC_MESSAGES/") - 1 + sizeof (PACKAGE) - 1 X + sizeof (".cat"); X X new_name = (char *) malloc (new_name_len); X if (new_name == NULL) X return NULL; X X strcpy (new_name, PACKAGE); X new_catalog = catopen (new_name, 0); X X if (new_catalog == (nl_catd) -1) X { X /* NLSPATH search didn't work, try absolute path */ X sprintf (new_name, "%s/%s/LC_MESSAGES/%s.cat", LOCALEDIR, lang, X PACKAGE); X new_catalog = catopen (new_name, 0); X X if (new_catalog == (nl_catd) -1) X { X free (new_name); X return (char *) catalog_name; X } X } X X /* Close old catalog. */ X if (catalog != (nl_catd) -1) X catclose (catalog); X if (catalog_name != default_catalog_name) X free ((char *) catalog_name); X X catalog = new_catalog; X catalog_name = new_name; X X return (char *) catalog_name; } X char * bindtextdomain (domainname, dirname) X const char *domainname; X const char *dirname; { #if HAVE_SETENV || HAVE_PUTENV X char *old_val, *new_val, *cp; X size_t new_val_len; X X /* This does not make much sense here but to be compatible do it. */ X if (domainname == NULL) X return NULL; X X /* Compute length of added path element. If we use setenv we don't need X the first byts for NLSPATH=, but why complicate the code for this X peanuts. */ X new_val_len = sizeof ("NLSPATH=") - 1 + strlen (dirname) X + sizeof ("/%L/LC_MESSAGES/%N.cat"); X X old_val = getenv ("NLSPATH"); X if (old_val == NULL || old_val[0] == '\0') X { X old_val = NULL; X new_val_len += 1 + sizeof (LOCALEDIR) - 1 X + sizeof ("/%L/LC_MESSAGES/%N.cat"); X } X else X new_val_len += strlen (old_val); X X new_val = (char *) malloc (new_val_len); X if (new_val == NULL) X return NULL; X # if HAVE_SETENV X cp = new_val; # else X cp = stpcpy (new_val, "NLSPATH="); # endif X X cp = stpcpy (cp, dirname); X cp = stpcpy (cp, "/%L/LC_MESSAGES/%N.cat:"); X X if (old_val == NULL) X { # if __STDC__ X stpcpy (cp, LOCALEDIR "/%L/LC_MESSAGES/%N.cat"); # else X X cp = stpcpy (cp, LOCALEDIR); X stpcpy (cp, "/%L/LC_MESSAGES/%N.cat"); # endif X } X else X stpcpy (cp, old_val); X # if HAVE_SETENV X setenv ("NLSPATH", new_val, 1); X free (new_val); # else X putenv (new_val); X /* Do *not* free the environment entry we just entered. It is used X from now on. */ # endif X #endif X X return (char *) domainname; } X #undef gettext char * gettext (msg) X const char *msg; { X int msgid; X X if (msg == NULL || catalog == (nl_catd) -1) X return (char *) msg; X X /* Get the message from the catalog. We always use set number 1. X The message ID is computed by the function `msg_to_cat_id' X which works on the table generated by `po-to-tbl'. */ X msgid = msg_to_cat_id (msg); X if (msgid == -1) X return (char *) msg; X X return catgets (catalog, 1, msgid, (char *) msg); } X /* Look through the table `_msg_tbl' which has `_msg_tbl_length' entries X for the one equal to msg. If it is found return the ID. In case when X the string is not found return -1. */ static int msg_to_cat_id (msg) X const char *msg; { X int cnt; X X for (cnt = 0; cnt < _msg_tbl_length; ++cnt) X if (strcmp (msg, _msg_tbl[cnt]._msg) == 0) X return _msg_tbl[cnt]._msg_number; X X return -1; } X X /* @@ begin of epilog @@ */ X /* We don't want libintl.a to depend on any other library. So we X avoid the non-standard function stpcpy. In GNU C Library this X function is available, though. Also allow the symbol HAVE_STPCPY X to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) X char *dest; X const char *src; { X while ((*dest++ = *src++) != '\0') X /* Do nothing. */ ; X return dest - 1; } #endif SHAR_EOF $shar_touch -am 0801060697 'tar-1.13/intl/cat-compat.c' && chmod 0444 'tar-1.13/intl/cat-compat.c' || $echo 'restore of' 'tar-1.13/intl/cat-compat.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/cat-compat.c:' 'MD5 check failed' caa3581b00edb0a7d3811a24a3e46c5c tar-1.13/intl/cat-compat.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/cat-compat.c'`" test 6625 -eq "$shar_count" || $echo 'tar-1.13/intl/cat-compat.c:' 'original size' '6625,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/intl/VERSION ============== if test -f 'tar-1.13/intl/VERSION' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/intl/VERSION' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/intl/VERSION' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/intl/VERSION' && GNU gettext library from gettext-0.10.35 SHAR_EOF $shar_touch -am 0503130498 'tar-1.13/intl/VERSION' && chmod 0444 'tar-1.13/intl/VERSION' || $echo 'restore of' 'tar-1.13/intl/VERSION' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/intl/VERSION:' 'MD5 check failed' f9e8b00ce31b1d86e5be53c0c6a78a71 tar-1.13/intl/VERSION SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/intl/VERSION'`" test 41 -eq "$shar_count" || $echo 'tar-1.13/intl/VERSION:' 'original size' '41,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/Makefile.am ============== if test ! -d 'tar-1.13/m4'; then $echo 'x -' 'creating directory' 'tar-1.13/m4' mkdir 'tar-1.13/m4' fi if test -f 'tar-1.13/m4/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/Makefile.am' && ## Process this file with automake to produce Makefile.in -*-Makefile-*- X EXTRA_DIST = \ ccstdc.m4 \ d-ino.m4 \ gettext.m4 \ inttypes_h.m4 \ isc-posix.m4 \ jm-mktime.m4 \ largefile.m4 \ lcmessage.m4 \ malloc.m4 \ mktime.m4 \ progtest.m4 \ realloc.m4 \ uintmax_t.m4 \ ulonglong.m4 \ utimbuf.m4 \ utime.m4 \ utimes.m4 \ xstrtoumax.m4 SHAR_EOF $shar_touch -am 0702184599 'tar-1.13/m4/Makefile.am' && chmod 0444 'tar-1.13/m4/Makefile.am' || $echo 'restore of' 'tar-1.13/m4/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/Makefile.am:' 'MD5 check failed' 0debae675e03fc3b34f29064851924b6 tar-1.13/m4/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/Makefile.am'`" test 332 -eq "$shar_count" || $echo 'tar-1.13/m4/Makefile.am:' 'original size' '332,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/Makefile.in ============== if test -f 'tar-1.13/m4/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/Makefile.in' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/m4/Makefile.in M(R!-86ME9FEL92YI;B!G96YE2!B>2!A=71O M;6%K92`Q+C0@9G)O;2!-86ME9FEL92YA;0H*(R!#;W!Y2!L87<[('=I=&AO=70*(R!E=F5N('1H92!I;7!L:65D('=A"`]($!P&5C9&ER(#T@0&QI8F5X96-D:7)`"F1A=&%D:7(@/2!`9&%T861I7-C;VYF9&ER0`IS:&%R961S=&%T961I'0N;30@:6YT='EP97-?:"YM M-"!I'-T"YM-`H*;6MI;G-T86QL9&ER M&5C+6%M.@II;G-T86QL+65X M96,Z(&EN&5C+6%M(&EN2!B92!E>&-E961E9"X*+DY/15A03U)4.@IR ` end SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/m4/Makefile.in' && chmod 0664 'tar-1.13/m4/Makefile.in' || $echo 'restore of' 'tar-1.13/m4/Makefile.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/Makefile.in:' 'MD5 check failed' 22060c52defd2e10e9d4b41945fe8304 tar-1.13/m4/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/Makefile.in'`" test 4988 -eq "$shar_count" || $echo 'tar-1.13/m4/Makefile.in:' 'original size' '4988,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/ccstdc.m4 ============== if test -f 'tar-1.13/m4/ccstdc.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/ccstdc.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/ccstdc.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/ccstdc.m4' && # The following is taken from automake 1.4, # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" # because only the former supports 64-bit integral types on HP-UX 10.20. X ## ----------------------------------------- ## ## ANSIfy the C compiler whenever possible. ## ## From Franc,ois Pinard ## ## ----------------------------------------- ## X # serial 2 X # @defmac AC_PROG_CC_STDC # @maindex PROG_CC_STDC # @ovindex CC # If the C compiler in not in ANSI C mode by default, try to add an option # to output variable @code{CC} to make it so. This macro tries various # options that select ANSI C on some system or another. It considers the # compiler to be in ANSI C mode if it handles function prototypes correctly. # # If you use this macro, you should check after calling it whether the C # compiler has been set to accept ANSI C; if not, the shell variable # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source # code in ANSI C, you can make an un-ANSIfied copy of it by using the # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac X AC_DEFUN(AM_PROG_CC_STDC, [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require dnl a magic option to avoid problems with ANSI preprocessor commands dnl like #elif. dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X AC_TRY_COMPILE( [#include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; ], [ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ], [am_cv_prog_cc_stdc="$ac_arg"; break]) done CC="$ac_save_CC" ]) if test -z "$am_cv_prog_cc_stdc"; then X AC_MSG_RESULT([none needed]) else X AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) SHAR_EOF $shar_touch -am 0616041199 'tar-1.13/m4/ccstdc.m4' && chmod 0444 'tar-1.13/m4/ccstdc.m4' || $echo 'restore of' 'tar-1.13/m4/ccstdc.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/ccstdc.m4:' 'MD5 check failed' 4bc878de0681443eb7ee493e39a9cdd3 tar-1.13/m4/ccstdc.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/ccstdc.m4'`" test 2980 -eq "$shar_count" || $echo 'tar-1.13/m4/ccstdc.m4:' 'original size' '2980,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/d-ino.m4 ============== if test -f 'tar-1.13/m4/d-ino.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/d-ino.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/d-ino.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/d-ino.m4' && #serial 2 X dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl X AC_DEFUN(jm_STRUCT_DIRENT_D_INO, X [AC_REQUIRE([AC_HEADER_DIRENT])dnl X AC_CACHE_CHECK([for d_ino member in directory struct], X jm_cv_struct_dirent_d_ino, X [AC_TRY_LINK(dnl X [ #include #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X ], X [struct dirent dp; dp.d_ino = 0;], X X jm_cv_struct_dirent_d_ino=yes, X jm_cv_struct_dirent_d_ino=no) X ] X ) X if test $jm_cv_struct_dirent_d_ino = yes; then X AC_DEFINE(D_INO_IN_DIRENT, 1, X [Define if there is a member named d_ino in the struct describing X directory headers.]) X fi X ] ) SHAR_EOF $shar_touch -am 0126205199 'tar-1.13/m4/d-ino.m4' && chmod 0444 'tar-1.13/m4/d-ino.m4' || $echo 'restore of' 'tar-1.13/m4/d-ino.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/d-ino.m4:' 'MD5 check failed' 0d20bb59d7bc36e06f8c75ff90a7bcc1 tar-1.13/m4/d-ino.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/d-ino.m4'`" test 984 -eq "$shar_count" || $echo 'tar-1.13/m4/d-ino.m4:' 'original size' '984,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/gettext.m4 ============== if test -f 'tar-1.13/m4/gettext.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/gettext.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/gettext.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/gettext.m4' && # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 107 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_WITH_NLS, X [AC_MSG_CHECKING([whether NLS is requested]) X dnl Default is enabled NLS X AC_ARG_ENABLE(nls, X [ --disable-nls do not use Native Language Support], X USE_NLS=$enableval, USE_NLS=yes) X AC_MSG_RESULT($USE_NLS) X AC_SUBST(USE_NLS) X X USE_INCLUDED_LIBINTL=no X X dnl If we use NLS figure out what method X if test "$USE_NLS" = "yes"; then X AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) X AC_MSG_CHECKING([whether included gettext is requested]) X AC_ARG_WITH(included-gettext, X [ --with-included-gettext use the GNU gettext library included here], X nls_cv_force_use_gnu_gettext=$withval, X nls_cv_force_use_gnu_gettext=no) X AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X dnl User does not insist on using GNU NLS library. Figure out what X dnl to use. If gettext or catgets are available (in this order) we X dnl use this. Else we have to fall back to GNU NLS library. X dnl catgets is only used if permitted by option --with-catgets. X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X AC_CHECK_HEADER(libintl.h, X [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, X [AC_TRY_LINK([#include ], [return (int) gettext ("")], X gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) X X if test "$gt_cv_func_gettext_libc" != "yes"; then X AC_CHECK_LIB(intl, bindtextdomain, X [AC_CHECK_LIB(intl, gettext)]) X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X AC_DEFINE(HAVE_GETTEXT, 1, X [Define to 1 if you have gettext and don't want to use GNU gettext.]) X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl X if test "$MSGFMT" != "no"; then X AC_CHECK_FUNCS(dcgettext) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; X return _nl_msg_cat_cntr], X [CATOBJEXT=.gmo X DATADIRNAME=share], X [CATOBJEXT=.mo X DATADIRNAME=lib]) X INSTOBJEXT=.mo X fi X fi X ]) X X if test "$CATOBJEXT" = "NONE"; then X AC_MSG_CHECKING([whether catgets can be used]) X AC_ARG_WITH(catgets, X [ --with-catgets use catgets functions if available], X nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) X AC_MSG_RESULT($nls_cv_use_catgets) X X if test "$nls_cv_use_catgets" = "yes"; then X dnl No gettext in C library. Try catgets next. X AC_CHECK_LIB(i, main) X AC_CHECK_FUNC(catgets, X [AC_DEFINE(HAVE_CATGETS, 1, X [Define as 1 if you have catgets and don't want to use GNU gettext.]) X INTLOBJS="\$(CATOBJS)" X AC_PATH_PROG(GENCAT, gencat, no)dnl X if test "$GENCAT" != "no"; then X AC_PATH_PROG(GMSGFMT, gmsgfmt, no) X if test "$GMSGFMT" = "no"; then X AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) X fi X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi]) X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X dnl Neither gettext nor catgets in included in the C library. X dnl Fall back on GNU gettext library. X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X dnl Mark actions used to generate GNU NLS library. X INTLOBJS="\$(GETTOBJS)" X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_SUBST(MSGFMT) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X dnl Test whether we really found GNU xgettext. X if test "$XGETTEXT" != ":"; then X dnl If it is no GNU xgettext we define it as : so that the X dnl Makefiles still can work. X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X AC_MSG_RESULT( X [found xgettext program is not GNU xgettext; ignore it]) X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) X AC_OUTPUT_COMMANDS( X [case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac]) X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X dnl These rules are solely for the distribution goal. While doing this X dnl we only have to keep exactly one list of the available catalogs X dnl in configure.in. X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X dnl Make all variables we use known to autoconf. X AC_SUBST(USE_INCLUDED_LIBINTL) X AC_SUBST(CATALOGS) X AC_SUBST(CATOBJEXT) X AC_SUBST(DATADIRNAME) X AC_SUBST(GMOFILES) X AC_SUBST(INSTOBJEXT) X AC_SUBST(INTLDEPS) X AC_SUBST(INTLLIBS) X AC_SUBST(INTLOBJS) X AC_SUBST(POFILES) X AC_SUBST(POSUB) X ]) X AC_DEFUN(AM_GNU_GETTEXT, X [AC_REQUIRE([AC_PROG_MAKE_SET])dnl X AC_REQUIRE([AC_PROG_CC])dnl X AC_REQUIRE([AC_PROG_RANLIB])dnl X AC_REQUIRE([AC_ISC_POSIX])dnl X AC_REQUIRE([AC_HEADER_STDC])dnl X AC_REQUIRE([AC_C_CONST])dnl X AC_REQUIRE([AC_C_INLINE])dnl X AC_REQUIRE([AC_TYPE_OFF_T])dnl X AC_REQUIRE([AC_TYPE_SIZE_T])dnl X AC_REQUIRE([AC_FUNC_ALLOCA])dnl X AC_REQUIRE([AC_FUNC_MMAP])dnl X X AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) X AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X AC_CHECK_FUNCS(stpcpy) X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) X fi X X AM_LC_MESSAGES X AM_WITH_NLS X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X AC_MSG_CHECKING(for catalogs to be installed) X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X AC_MSG_RESULT($LINGUAS) X fi X X dnl Construct list of names of catalog files to be constructed. X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X dnl The reference to in the installed file X dnl must be resolved because we cannot expect the users of this X dnl to define HAVE_LOCALE_H. X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X AC_SUBST(INCLUDE_LOCALE_H) X X dnl Determine which catalog format we have (if any is needed) X dnl For now we know about two different formats: X dnl Linux libc-5 and the normal X/Open format X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) X X dnl Transform the SED scripts while copying because some dumb SEDs X dnl cannot handle comments. X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X dnl po2tbl.sed is always needed. X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X dnl In the intl/Makefile.in we have a special dependency which makes X dnl only sense for gettext. We comment this out for non-gettext X dnl packages. X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X AC_SUBST(GT_NO) X AC_SUBST(GT_YES) X X dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly X dnl find the mkinstalldirs script in another subdir but ($top_srcdir). X dnl Try to locate is. X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X AC_SUBST(MKINSTALLDIRS) X X dnl *** For now the libtool support in intl/Makefile is not for real. X l= X AC_SUBST(l) X X dnl Generate list of files to be processed by xgettext which will X dnl be included in po/Makefile. X test -d po || mkdir po X changequote(, )dnl X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X changequote([, ])dnl X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X ]) SHAR_EOF $shar_touch -am 0705000799 'tar-1.13/m4/gettext.m4' && chmod 0444 'tar-1.13/m4/gettext.m4' || $echo 'restore of' 'tar-1.13/m4/gettext.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/gettext.m4:' 'MD5 check failed' 9476da4b8261e0cad0173678a8606c2c tar-1.13/m4/gettext.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/gettext.m4'`" test 10582 -eq "$shar_count" || $echo 'tar-1.13/m4/gettext.m4:' 'original size' '10582,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/inttypes_h.m4 ============== if test -f 'tar-1.13/m4/inttypes_h.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/inttypes_h.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/inttypes_h.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/inttypes_h.m4' && #serial 3 X dnl From Paul Eggert. X # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. X AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ X AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, X [AC_TRY_COMPILE( X [#include #include ], X [uintmax_t i = (uintmax_t) -1;], X jm_ac_cv_header_inttypes_h=yes, X jm_ac_cv_header_inttypes_h=no)]) X if test $jm_ac_cv_header_inttypes_h = yes; then X AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , X and declares uintmax_t. ]) X fi ]) SHAR_EOF $shar_touch -am 0110144799 'tar-1.13/m4/inttypes_h.m4' && chmod 0444 'tar-1.13/m4/inttypes_h.m4' || $echo 'restore of' 'tar-1.13/m4/inttypes_h.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/inttypes_h.m4:' 'MD5 check failed' 69498ef89b768b7734a79e7ae3e353c1 tar-1.13/m4/inttypes_h.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/inttypes_h.m4'`" test 621 -eq "$shar_count" || $echo 'tar-1.13/m4/inttypes_h.m4:' 'original size' '621,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/isc-posix.m4 ============== if test -f 'tar-1.13/m4/isc-posix.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/isc-posix.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/isc-posix.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/isc-posix.m4' && #serial 1 dnl This test replaces the one in autoconf. dnl Currently this macro should have the same name as the autoconf macro dnl because gettext's gettext.m4 (distributed in the automake package) dnl still uses it. Otherwise, the use in gettext.m4 makes autoheader dnl give these diagnostics: dnl configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX dnl configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX X undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, X [ X dnl This test replaces the obsolescent AC_ISC_POSIX kludge. X AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) X ] ) SHAR_EOF $shar_touch -am 0511081698 'tar-1.13/m4/isc-posix.m4' && chmod 0444 'tar-1.13/m4/isc-posix.m4' || $echo 'restore of' 'tar-1.13/m4/isc-posix.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/isc-posix.m4:' 'MD5 check failed' fe49a50735119b06bf3240345c9321dd tar-1.13/m4/isc-posix.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/isc-posix.m4'`" test 615 -eq "$shar_count" || $echo 'tar-1.13/m4/isc-posix.m4:' 'original size' '615,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/jm-mktime.m4 ============== if test -f 'tar-1.13/m4/jm-mktime.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/jm-mktime.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/jm-mktime.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/jm-mktime.m4' && #serial 7 X dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. X AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl X X dnl mktime.c uses localtime_r if it exists. Check for it. X AC_CHECK_FUNCS(localtime_r) X X if test $ac_cv_func_working_mktime = no; then X AC_DEFINE_UNQUOTED(mktime, rpl_mktime, X [Define to rpl_mktime if the replacement function should be used.]) X fi ]) SHAR_EOF $shar_touch -am 0511092999 'tar-1.13/m4/jm-mktime.m4' && chmod 0444 'tar-1.13/m4/jm-mktime.m4' || $echo 'restore of' 'tar-1.13/m4/jm-mktime.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/jm-mktime.m4:' 'MD5 check failed' 3246b54a288fdf8b77b97e6ef14d6802 tar-1.13/m4/jm-mktime.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/jm-mktime.m4'`" test 389 -eq "$shar_count" || $echo 'tar-1.13/m4/jm-mktime.m4:' 'original size' '389,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/largefile.m4 ============== if test -f 'tar-1.13/m4/largefile.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/largefile.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/largefile.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/largefile.m4' && #serial 4 X dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. dnl For more details about this brain damage please see: dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html X dnl Written by Paul Eggert . X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, X [AC_CACHE_CHECK([for $1 value to request large file support], X ac_cv_sys_largefile_$1, X [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { X ac_cv_sys_largefile_$1=no X ifelse($1, CFLAGS, X [case "$host_os" in X # IRIX 6.2 and later require cc -n32. changequote(, )dnl X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) X CC="$ac_save_CC" X esac]) X }])]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, X [case $2 in X no) ;; X ?*) X case "[$]$1" in X '') $1=$2 ;; X *) $1=[$]$1' '$2 ;; X esac ;; X esac]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT) AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE, X [AC_CACHE_CHECK([for $1], $2, X [$2=no changequote(, )dnl X $4 X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D$1) X $2=1 ;; X -D$1=*) X $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done changequote([, ])dnl X ]) X if test "[$]$2" != no; then X AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) X fi]) X AC_DEFUN(AC_SYS_LARGEFILE, X [AC_REQUIRE([AC_CANONICAL_HOST]) X AC_ARG_ENABLE(largefile, X [ --disable-largefile omit support for large files]) X if test "$enable_largefile" != no; then X AC_CHECK_TOOL(GETCONF, getconf) X AC_SYS_LARGEFILE_FLAGS(CFLAGS) X AC_SYS_LARGEFILE_FLAGS(LDFLAGS) X AC_SYS_LARGEFILE_FLAGS(LIBS) X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; X *) X AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; X esac X done X AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") X AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") X AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, X ac_cv_sys_file_offset_bits, X [Number of bits in a file offset, on hosts where this is settable.] X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_file_offset_bits=64 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, X ac_cv_sys_largefile_source, X [Define to make fseeko etc. visible, on some hosts.], X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, X ac_cv_sys_large_files, X [Define for large files, on AIX-style hosts.], X [case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac]) X fi X ]) SHAR_EOF $shar_touch -am 0616041199 'tar-1.13/m4/largefile.m4' && chmod 0444 'tar-1.13/m4/largefile.m4' || $echo 'restore of' 'tar-1.13/m4/largefile.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/largefile.m4:' 'MD5 check failed' 1f357e4e7a8732894cac07873c65bcc3 tar-1.13/m4/largefile.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/largefile.m4'`" test 3611 -eq "$shar_count" || $echo 'tar-1.13/m4/largefile.m4:' 'original size' '3611,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/lcmessage.m4 ============== if test -f 'tar-1.13/m4/lcmessage.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/lcmessage.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/lcmessage.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/lcmessage.m4' && # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 2 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_LC_MESSAGES, X [if test $ac_cv_header_locale_h = yes; then X AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, X [AC_TRY_LINK([#include ], [return LC_MESSAGES], X am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) X if test $am_cv_val_LC_MESSAGES = yes; then X AC_DEFINE(HAVE_LC_MESSAGES, 1, X [Define if your locale.h file contains LC_MESSAGES.]) X fi X fi]) SHAR_EOF $shar_touch -am 0129205099 'tar-1.13/m4/lcmessage.m4' && chmod 0444 'tar-1.13/m4/lcmessage.m4' || $echo 'restore of' 'tar-1.13/m4/lcmessage.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/lcmessage.m4:' 'MD5 check failed' ed5f84823aa19a69d0f52a2771fc1b05 tar-1.13/m4/lcmessage.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/lcmessage.m4'`" test 884 -eq "$shar_count" || $echo 'tar-1.13/m4/lcmessage.m4:' 'original size' '884,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/malloc.m4 ============== if test -f 'tar-1.13/m4/malloc.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/malloc.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/malloc.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/malloc.m4' && #serial 3 X dnl From Jim Meyering. dnl Determine whether malloc accepts 0 as its argument. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_MALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken malloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, X [Define if the malloc check has been performed. ]) X X AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, X [AC_TRY_RUN([ X char *malloc (); X int X main () X { X exit (malloc (0) ? 0 : 1); X } X ], X jm_cv_func_working_malloc=yes, X jm_cv_func_working_malloc=no, X dnl When crosscompiling, assume malloc is broken. X jm_cv_func_working_malloc=no) X ]) X if test $jm_cv_func_working_malloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS malloc.$ac_objext" X AC_DEFINE_UNQUOTED(malloc, rpl_malloc, X [Define to rpl_malloc if the replacement function should be used.]) X fi ]) SHAR_EOF $shar_touch -am 0206213599 'tar-1.13/m4/malloc.m4' && chmod 0444 'tar-1.13/m4/malloc.m4' || $echo 'restore of' 'tar-1.13/m4/malloc.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/malloc.m4:' 'MD5 check failed' b2a55ed7a49969f6d35c71c161faa35e tar-1.13/m4/malloc.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/malloc.m4'`" test 1016 -eq "$shar_count" || $echo 'tar-1.13/m4/malloc.m4:' 'original size' '1016,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/mktime.m4 ============== if test -f 'tar-1.13/m4/mktime.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/mktime.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/mktime.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/mktime.m4' && #serial 1 X dnl From Paul Eggert dnl Check for a working mktime. dnl This is a preview of what should appear in the next public autoconf release. X AC_DEFUN(AC_FUNC_MKTIME, [AC_REQUIRE([AC_HEADER_TIME])dnl AC_CHECK_HEADERS(sys/time.h unistd.h) AC_CHECK_FUNCS(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_TRY_RUN( changequote(<<, >>)dnl < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } >>, changequote([, ])dnl ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no, ac_cv_func_working_mktime=no)]) if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi ]) SHAR_EOF $shar_touch -am 0702174099 'tar-1.13/m4/mktime.m4' && chmod 0444 'tar-1.13/m4/mktime.m4' || $echo 'restore of' 'tar-1.13/m4/mktime.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/mktime.m4:' 'MD5 check failed' 6a3443accf2e1bbecf2c2c9580b52a80 tar-1.13/m4/mktime.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/mktime.m4'`" test 3959 -eq "$shar_count" || $echo 'tar-1.13/m4/mktime.m4:' 'original size' '3959,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/progtest.m4 ============== if test -f 'tar-1.13/m4/progtest.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/progtest.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/progtest.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/progtest.m4' && # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 1 X dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in X /*) X ac_cv_path_$1="[$]$1" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in ifelse([$5], , $PATH, [$5]); do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if [$3]; then X ac_cv_path_$1="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl X ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then X AC_MSG_RESULT([$]$1) else X AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) SHAR_EOF $shar_touch -am 0908083397 'tar-1.13/m4/progtest.m4' && chmod 0444 'tar-1.13/m4/progtest.m4' || $echo 'restore of' 'tar-1.13/m4/progtest.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/progtest.m4:' 'MD5 check failed' 017aa7703d710f6e8d041095c58ce391 tar-1.13/m4/progtest.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/progtest.m4'`" test 1410 -eq "$shar_count" || $echo 'tar-1.13/m4/progtest.m4:' 'original size' '1410,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/realloc.m4 ============== if test -f 'tar-1.13/m4/realloc.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/realloc.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/realloc.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/realloc.m4' && #serial 3 X dnl From Jim Meyering. dnl Determine whether realloc works when both arguments are 0. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_REALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken realloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, X [Define if the realloc check has been performed. ]) X X AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, X [AC_TRY_RUN([ X char *realloc (); X int X main () X { X exit (realloc (0, 0) ? 0 : 1); X } X ], X jm_cv_func_working_realloc=yes, X jm_cv_func_working_realloc=no, X dnl When crosscompiling, assume realloc is broken. X jm_cv_func_working_realloc=no) X ]) X if test $jm_cv_func_working_realloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS realloc.$ac_objext" X AC_DEFINE_UNQUOTED(realloc, rpl_realloc, X [Define to rpl_realloc if the replacement function should be used.]) X fi ]) SHAR_EOF $shar_touch -am 0206213699 'tar-1.13/m4/realloc.m4' && chmod 0444 'tar-1.13/m4/realloc.m4' || $echo 'restore of' 'tar-1.13/m4/realloc.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/realloc.m4:' 'MD5 check failed' 7312370345d35fde2c939d54787bb6af tar-1.13/m4/realloc.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/realloc.m4'`" test 1043 -eq "$shar_count" || $echo 'tar-1.13/m4/realloc.m4:' 'original size' '1043,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/uintmax_t.m4 ============== if test -f 'tar-1.13/m4/uintmax_t.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/uintmax_t.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/uintmax_t.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/uintmax_t.m4' && #serial 3 X dnl From Paul Eggert. X AC_PREREQ(2.13) X # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. X AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X if test $jm_ac_cv_header_inttypes_h = no; then X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' X if doesn't define.]) X fi ]) SHAR_EOF $shar_touch -am 0421064099 'tar-1.13/m4/uintmax_t.m4' && chmod 0444 'tar-1.13/m4/uintmax_t.m4' || $echo 'restore of' 'tar-1.13/m4/uintmax_t.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/uintmax_t.m4:' 'MD5 check failed' 3e0d09d4a0b26f30923c0f20208dbd04 tar-1.13/m4/uintmax_t.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/uintmax_t.m4'`" test 583 -eq "$shar_count" || $echo 'tar-1.13/m4/uintmax_t.m4:' 'original size' '583,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/ulonglong.m4 ============== if test -f 'tar-1.13/m4/ulonglong.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/ulonglong.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/ulonglong.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/ulonglong.m4' && #serial 1 X dnl From Paul Eggert. X AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ X AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, X [AC_TRY_COMPILE([], X [unsigned long long i = (unsigned long long) -1;], X ac_cv_type_unsigned_long_long=yes, X ac_cv_type_unsigned_long_long=no)]) X if test $ac_cv_type_unsigned_long_long = yes; then X AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, X [Define if you have the unsigned long long type.]) X fi ]) SHAR_EOF $shar_touch -am 0420205899 'tar-1.13/m4/ulonglong.m4' && chmod 0444 'tar-1.13/m4/ulonglong.m4' || $echo 'restore of' 'tar-1.13/m4/ulonglong.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/ulonglong.m4:' 'MD5 check failed' 384ee6e736c944ede59dbd40cb86d122 tar-1.13/m4/ulonglong.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/ulonglong.m4'`" test 466 -eq "$shar_count" || $echo 'tar-1.13/m4/ulonglong.m4:' 'original size' '466,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/utimbuf.m4 ============== if test -f 'tar-1.13/m4/utimbuf.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/utimbuf.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/utimbuf.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/utimbuf.m4' && #serial 2 X dnl From Jim Meyering X dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- dnl usually in . dnl Some systems have utime.h but don't declare the struct anywhere. X AC_DEFUN(jm_STRUCT_UTIMBUF, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([AC_HEADER_TIME]) X AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, X [AC_TRY_COMPILE( X [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif X ], X [static struct utimbuf x; x.actime = x.modtime;], X fu_cv_sys_struct_utimbuf=yes, X fu_cv_sys_struct_utimbuf=no) X ]) X X if test $fu_cv_sys_struct_utimbuf = yes; then X AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . X Some systems have utime.h but don't declare the struct anywhere. ]) X fi ]) SHAR_EOF $shar_touch -am 0110145199 'tar-1.13/m4/utimbuf.m4' && chmod 0444 'tar-1.13/m4/utimbuf.m4' || $echo 'restore of' 'tar-1.13/m4/utimbuf.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/utimbuf.m4:' 'MD5 check failed' c5763a34a802d99e39a78fb49aa8b18b tar-1.13/m4/utimbuf.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/utimbuf.m4'`" test 971 -eq "$shar_count" || $echo 'tar-1.13/m4/utimbuf.m4:' 'original size' '971,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/utime.m4 ============== if test -f 'tar-1.13/m4/utime.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/utime.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/utime.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/utime.m4' && #serial 1 X dnl From Jim Meyering dnl Replace the utime function on systems that need it. X dnl FIXME X AC_DEFUN(jm_FUNC_UTIME, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([jm_STRUCT_UTIMBUF]) X AC_REQUIRE([AC_FUNC_UTIME_NULL]) X X if test $ac_cv_func_utime_null = no; then X jm_FUNC_UTIMES_NULL X AC_REPLACE_FUNCS(utime) X fi ]) SHAR_EOF $shar_touch -am 0725061598 'tar-1.13/m4/utime.m4' && chmod 0444 'tar-1.13/m4/utime.m4' || $echo 'restore of' 'tar-1.13/m4/utime.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/utime.m4:' 'MD5 check failed' 1fe02b58add2a4dcdfed15aafec9a918 tar-1.13/m4/utime.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/utime.m4'`" test 329 -eq "$shar_count" || $echo 'tar-1.13/m4/utime.m4:' 'original size' '329,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/utimes.m4 ============== if test -f 'tar-1.13/m4/utimes.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/utimes.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/utimes.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/utimes.m4' && #serial 3 X dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. X AC_DEFUN(jm_FUNC_UTIMES_NULL, [AC_CACHE_CHECK(whether utimes accepts a null argument, ac_cv_func_utimes_null, [rm -f conftestdata; > conftestdata AC_TRY_RUN([ /* In case stat has been defined to rpl_stat, undef it here. */ #undef stat #include #include main() { struct stat s, t; exit(!(stat ("conftestdata", &s) == 0 && utimes("conftestdata", (long *)0) == 0 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120)); }], X ac_cv_func_utimes_null=yes, X ac_cv_func_utimes_null=no, X ac_cv_func_utimes_null=no) rm -f core core.* *.core]) X X if test $ac_cv_func_utimes_null = yes; then X AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, X [Define if utimes accepts a null argument]) X fi X ] ) SHAR_EOF $shar_touch -am 0110145199 'tar-1.13/m4/utimes.m4' && chmod 0444 'tar-1.13/m4/utimes.m4' || $echo 'restore of' 'tar-1.13/m4/utimes.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/utimes.m4:' 'MD5 check failed' 68469c9a64355195e00ce1869de5be1d tar-1.13/m4/utimes.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/utimes.m4'`" test 882 -eq "$shar_count" || $echo 'tar-1.13/m4/utimes.m4:' 'original size' '882,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/m4/xstrtoumax.m4 ============== if test -f 'tar-1.13/m4/xstrtoumax.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/m4/xstrtoumax.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/m4/xstrtoumax.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/m4/xstrtoumax.m4' && #serial 1 X # autoconf tests required for use of xstrtoumax.c X AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X AC_CHECK_HEADERS(stdlib.h) X AC_REPLACE_FUNCS(strtoumax) X X dnl We don't need (and can't compile) the replacement strtoull X dnl unless the type `unsigned long long' exists. X dnl Also, only the replacement strtoumax invokes strtoull, X dnl so we need the replacement strtoull only if strtoumax does not exist. X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X AC_REPLACE_FUNCS(strtoull) X ;; X esac X ]) SHAR_EOF $shar_touch -am 0421064099 'tar-1.13/m4/xstrtoumax.m4' && chmod 0444 'tar-1.13/m4/xstrtoumax.m4' || $echo 'restore of' 'tar-1.13/m4/xstrtoumax.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/m4/xstrtoumax.m4:' 'MD5 check failed' 0340791ec8d9f167f751b4e8ad28e628 tar-1.13/m4/xstrtoumax.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/m4/xstrtoumax.m4'`" test 627 -eq "$shar_count" || $echo 'tar-1.13/m4/xstrtoumax.m4:' 'original size' '627,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/ChangeLog ============== if test ! -d 'tar-1.13/src'; then $echo 'x -' 'creating directory' 'tar-1.13/src' mkdir 'tar-1.13/src' fi if test -f 'tar-1.13/src/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/src/ChangeLog M,3DY."TQ,"TR."`@4&%U;"!%9V=E0H);F]N>F5R;RX*"0H)*B!R=&%P96QI8BYC.B!$ M;VXG="!U2!I;G-T86QL871I;VYS+"!R97AE8R!IF4I.B!.;W<@F5D('1O M(#`N"@DH<')E<&%R95]R96-O&-E<'0@=7-E"@E35%))3D=)1EE? M0DE'24Y4(&9O%]T('9A;'5E(&EN=&\@;F5W(&%R M9RX@($-H96-K(&9OF4@9FETF5?="X*"@DH9&EF9E]S<&%RF5?="!O=F5R9FQO=PH)=VAE;B!A;&QO8V%T M:6YG(&)U9F9EF5?="X@(%-I>F4@87)G(&ES(&YO=R!S:7IE7W0N"@DH2!H86YD+"!S:6YC92!I="!M:6=H="!B92!L;VYG97(@=&AA;B!L;VYG+@H* M"2H@;6%N9VQE+F,@*&5X=')A8W1?;6%N9VQE*3H*"4-H96-K(&9O&EM=6TN"@E2971U%]T*3H@3F5W('1Y<&5D968N"@DH5%E0 M15]324=.140L(%194$5?34E.24U532P@5%E015]-05A)355-+"!)3E1?4U12 M3$5.7T)/54Y$+`H)54E.5$U!6%]35%)325I%7T)/54Y$+"!'241?34%8+"!- M04I/4E]-05@L($U)3D]27TU!6"P@34]$15]-05@L"@E/1D9?34%8+"!325I% M7TU!6"P@5$E-15]-05@L(%5)1%]-05@L(%5)3E1-05A?34%8*3H@3F5W(&UA M8W)OF4L(&%L;&]C871E M9%]E>&-L=61E7W!O;VQ?'1R86-T M+F,@*&YE=V1I'1R M86-T7W-P87)S95]F:6QE+`H)97ATF4N"@H)*&9R;VU?;V-T*3H@3F]W('-T871I8RX@($YO=R!R971U%]T+"!N;W0@;&]N9RX@(%)E<&]R="!EF5?9G)O;5]O8W0L('1I;65?9G)O M;5]O8W0L('5I9%]FF5L969T+"!C=7)R96YT7V)L;V-K7V]R M9&EN86PI.@H)3F]W(&]F9E]T+@H)*'=R:71E7V5RF5?="!W:&5N(&%P<')O<')I871E+B`@4F5M;W9E(&YO=RUU M%]T+B`@06-C97!T(&YE=R!A7!E(&]F(&]C=&%L(&9I96QD+"!F;W(@97)R M;W(@;65S&-E<'0@=7-E(%-44DE.1TE&65]" M24=)3E0@9F]R(&]F9E]T+@H*"2AF:6YD7VYE=U]F:6QE7W-I>F4I.B`Q2!U2!T:&4@9&5L M87EE9"!E&ET(&UE2!2:6-H87)D M(%-T86QL;6%N+@H*"2H@;&ES="YC("AD96-O9&5?;6]D92DZ($YE=R!N86UE M(&9O2!$:65T;6%R($)R875N M+@H*"2H@;6ES8RYC("AQ=6]T95]C;W!Y7W-T"!(86EL<&5R:6X@86YD($YO86@@1G)I961M86XN"@H) M*B!B=69F97(N8RP@:6YC2!C;VYT:6YU93L@;W(@8G)E86L[ M(&1E<&5N9&EN9R!O;B!C;VYT97AT+@H)4F5P;W)T960@8GD@4F]B97)T($4N M($)R;W=N+@H*,3DY-RT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<&AE;B!':6QD96$N"@H)*B!C6QL:2P@3&]R96X@2BX@ M4FET=&QE+`H)36%R='D@3&5I2!*+B!,964@86YD(%=E'1R86-T7V%R8VAI M=F4I.B!52!!=71O;6%K92`P+C(Y+@H*,3DY-BTP,BTP,R`@1G)A;N=O M:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^"@H)16YS=7)E M("TM=&]T86QS('=O6UO2!!;&)E71E71E2!$879E($)A2!!+B!3;6ET:"X*"C$Y.38M,#$M,#<@($9R86[G;VES M(%!I;F%R9"`@/'!I;F%R9$!IFD@86YD($UA7-T96TN:#H@1&5C M;&%R92!V86QL;V,@:68@:70@97AI2P@8F5C875S92!0051(7TU!6"!IFDL($UA2!,96ES;F5R+"!.96QS;VX*"4@N($8N($)E96)E M+"!2;VQA;F0@36-'2!-87)T>2!,96ES;F5R+@H*,3DY-BTP,2TP,2`@1G)A;N=O:7,@ M4&EN87)D("`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^"@H)*B!S>7-T96TN M:#H@26YC;'5D92`B97)R;W(N:"(@:6YS=&5A9"!O9B!D96-L87)I;F<@97)R M;W(@*"DN"@E297!O2!*:6T@365Y97)I;F'1D;VUA:6X@86YD('1E>'1D;VUA:6XN"@E297!O2!5;')I8V@@ M1')E<'!E2!005)!35,L('1O(')E2!R96QY M:6YG(&]N('-T871I8R!I;FET:6%L:7IA=&EO;G,N("!296UO=F4*"7-T871I M8R!I;FET:6%L:7IA=&EO;G,@9F]R('1H;W-E('9A'1R86-T7V%R8VAI=F4I.B!/;B!S>7-T M96US(&YO="!H879I;F<@7-T96US(&YO="!H879I;F<@8V]N=&EG=6]U'1R86-T7V%R M8VAI=F4I.B!#86QL(&UA>6)E7W)E8V]V97)A8FQE(')A=&AE2!!+B!#:&5R;F]V+"!!>&5L($)O;&1T M+"!";PH)3GEG86%R9"!"86DL($-H2P@26%N($IA8VMS;VXL($IA;65S(%-T979E;G,L(%-E=&@*"5)O M8F5R='-O;B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@2F]H;B!,+@H)0VAM:65L97=S:VD@86YD($MA=F5H(%(N($=H87II M+@H*"2H@=&%R+F@Z($1E9FEN92!$159?0E-)6D4L(%-47T),2U-)6D4@86YD M(%-47TY"3$]#2U,L"@EB;W)R;W=I;F<@=&AI7-T96TN:"(@86YD"@ET97AT=71I;',M M,2XY)W,@(G-Y2!F M;W(@=')Y:6YG"@ET;R!G970@87)O=6YD($1%5E]"4TE:12]S=%]B;&MS:7IE M(&-O;F9U2!"2!+879E:"!2 M+B!':&%Z:2X*"@DJ($UA:V5F:6QE+FEN("A25$%014Q)0BDZ(%!R969I>"!B M>2`D52!F;W(@=6YP2!+879E:"!2 M+B!':&%Z:2!A;F0@0VAR:7-T:6%N(%0N($1U;2X*"@DJ('!O2!$96UI M>G4@3F]R:71O2!R96UO=&4L('1W:6-E+@H)4F5P;W)T960@8GD@0F5N($$N($UEG4@3F]R:71OFDN"@H)*B!T87(N8R`H861D;F%M92DZ(%)E<&QA8V4@ M82!F;W)G;W1T96X@15A?4UE35$5-(&)Y"@E405)%6$E47T9!24Q54D4N"@E2 M97!O2!$96UI>G4@3F]R:71O2P@2V%V96@@4BX*"4=H87II(&%N9"!2;V)E2!F2!$ M879E($=E;G1Z96PL($AA2!Q=6]T960N"@H)*B!D:69F M87)C:"YC("AD:69F7V%R8VAI=F4I.B!!;&QO8V%T92!T;7!B=68@=&\@=&AE M('!R;W!E<@H)F5R;R!A;F0@8F-M<"P@2X@($IU2!A;&QO8V%T961?87)C:&EV M95]N86UEF%T:6]N(&]F"@EA2!S879E9"!N86UE2!097(@0F]J2!N86UE9FEL95]N86UE+@H)*B!T87(N8SH@4F5P;&%C92!N7VEN M9"!B>2!N86UE7V%R2!N86UE M7VEN9&5X+@H)4F5P;&%C92!N86UE9B!B>2!N86UE7V9I;&4L(&Y?87)G=B!B M>2!N86UE2!F:6QE(&EF("U'+"!S M:6YC92`M1R!S971S(&=N=5]D=6UP9FEL92!T;R`P+@H)4F5P;W)T960@8GD@ M06QE>&%N9&5R($1U<'5Y+@H*"2H@8W)E871E+F,@*&1U;7!?9FEL92DZ($%V M;VED(&$@3E5,3"!D97)E9F5R96YC92!W:71H("U'('=H96X*"71R>6EN9R!T M;R!D=6UP(&%N(&5M<'1Y(&1I2X*"2H@9VYU+F,@*&%D9%]D:7)? M;F%M92DZ(%-A;64@=&AI;F2!286EN97(@3W)T:"X* M"@E#;W)R96-T:6]N(&9O71E71E2!!;F1R96%S(%-C:'=A M8BP@1&5N:7,@1F]R=&EN+"!&75K:2!" M97-S:&\L($]L868@4V-H;'5E=&5R+"!3:6UO;B!72!&;W-S=6TN"@HQ.3DT+3`W+3(Y("!&2!2:6-H87)D M($1E86PN"@H)4F5O2!E>&ET7W-T871U&ET7W-T871U M&ET('=I=&@@97AI=%]S=&%T=7,N M"@DJ(&)U9F9E0H)5$%215A)5%]&04E,55)%+"!A;F0@15A)5%]354-#15-3(&)Y M(%1!4D58251?4U5#0T534RX*"2H@=&%R+F@@*$524D]2*2P@8W)E871E+F,@ M*&1U;7!?9FEL92DZ(%-E="!E>&ET7W-T871U2!4:6QM86X@ M4V-H;6ED="X*"@DJ(')M="YC.B!$969I;F4@15A)5%]&04E,55)%(&%N9"!% M6$E47U-50T-%4U,@:68@;F]T(&%L6EE;&0@82!N;VXM>F5R;R!E M>&ET('-T871U2!.:6-K($AO;&QO=V%Y M+@H*"2H@=&%R+F@Z(%)E;F%M92!405)%4E)/4B!T;R!705).+"!T:&5N(&%D M9"!%4E)/4B!W:&EC:"!I2!E&ET('=I=&@@15A)5%]&04E,55)%(&EF(&%N>2!E6UO7,O9FEL92YH/B!W:71H($)31#0R(&]R"@D\9F-N M=&PN:#X@9F]R(%8W+"!M97)E;'D@:6YC;'5D92`\9F-N=&PN:#X@:68@:70@ M97AI7,O9FEL92YH/BX*"2H@8G5F9F5R+F,L M(&1I9F9A2!A2!I;F-L=61E9"!T:')O M=6=H"@DB=&%R+F@B+@H*"2H@8W)E871E+F,@*&1U;7!?9FEL92DZ(%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87-K(&]F9B!H M:6=H(&)I=',@=VAE;@H)8W)E871I;F<@;VQD+7-T>6QE(&%R8VAI=F5S+@H) M*B!L:7-T+F,@*&1E8V]D95]H96%D97(I.B!-87-K(&]F9B!P;W1E;G1I86QL M>2!M:7-L96%D:6YG"@EH:6=H(&)I=',@9G)O;2!T:&4@;6]D92!W:&5N(')E M861I;F<@:&5A9&5R'1R86-T7V%R8VAI=F4I.B!0 M=70@87)G=6UE;G1S(&EN('1H92!R:6=H=`H);W)D97(@9F]R(&5R2!"'1R86-T+F,L(&1I9F9A'0I.B!$;VXG="!A<'!L>2!E>&-L=7-I;VX@=&\@97AP M;&EC:71L>2!N86UE9`H)9FEL97,N"@H)*B!T87(N8R`H;&]N9U]O<'1I;VYS M+"!D97-C'1R86-T+F,@*&5X=')A8W1? M87)C:&EV92DZ($Q&7T1535!$25(@8V%S93L@;6ES<&QA8V5D('!A'1R86-T7V%R8VAI=F4I.B!E>'1R86-T7V9I;&4@ M8V%S92P@9FER'1R86-T+F,@*&5X=')A8W1?&%C=&QY(#(V(&5L96UE;G1S M(&EN"@ES<&%R2P@;VYL>2`R-2!W97)E('=R:71T96XN"@E297!O M2!*:6T@375R&5D M(&EN(&-R96%T90H)2!* M:6T@375RFEE("`\ M9&IM0&MR;W!O=&MI;BYG;G4N86DN;6ET+F5D=3X*"@DJ('1AFEE("`\ M9&IM0&=O;&1M86XN9VYU+F%I+FUI="YE9'4^"@H)*B!T87(N8SH@0VAA;F=E M($9.35]405)0051(('1O($9.35],14%$24Y'7T1)4B!T;R!M871C:"!C:&%N M9V4*"6EN(&9N;6%T8V@N6V-H72X*"C$Y.3(M,3`M,#(@($1A=FED($HN($UA M8TME;GII92`@/&1J;4!G;VQD;6%N+F=N=2YA:2YM:70N961U/@H*"2H@=&%R M+F,@*&1E7-T96US M('=I=&AO=70@8FES;VXO>6%C8PH)*&QI:V4@35,M1$]3*2X*"@DJ(&1I9F9A M'1R86-T+F,@*&5X=')A8W1?87)C:&EV M92P@3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F@Z($EN8VQU9&4@:70N M"@DJ(&-R96%T92YC("AC7-T96T@9&]E2YG;G4N M86DN;6ET+F5D=3X*"@DJ('1A"!T:&%T+"!O9@H)8V]U M"!(86EL<&5R M:6XN"@H)*B!T87(N8RP@=&%R+F@Z($%D9&5D(&YE=R!O<'1I;VX@*VEG;F]R M92UF86EL960M71H:6YG(&)U="!D:7)E8W1O2!N965D(&ET+@H*,3DY,BTP-"TR."`@36EC:&%E;"!)($)U MFEE("`\9&IM0&-H=7)C:'DN9VYU+F%I+FUI="YE9'4^"@H)*B!R M=&%P96QI8BYC.B!324=465!%("T^(%)%5%-)1U194$4N"@HQ.3DR+3`S+3`Y M("!$879I9"!*+B!-86-+96YZ:64@(#QD:FU`;G5T2X*"C$Y.3(M,#,M,#4@($1A=FED($HN($UA8TME;GII92`@ M/&1J;4!N=71R:6UA="YG;G4N86DN;6ET+F5D=3X*"@DJ('1AFEE("`\9&IM0'=O M;VMU;7HN9VYU+F%I+FUI="YE9'4^"@H)*B!T87(N8R`H;W!T:6]N'1R86-T M+F,L(&-R96%T92YC+"!P;W)T+F@L(')M="YH(%M(059%7U5.25-41%](+`H) M7U!/4TE87U9%4E-)3TY=.B!);G-T96%D(&]F(%!/4TE8(&EF9&5F7,OBYG;G4N86DN;6ET+F5D=3X*"@DJ(&-R96%T92YC M+"!G;G4N8RP@=&%R+F,@6U531UTZ(%5S92!$25)%3E0@:6YS=&5A9"!O9B!. M1$E2('1O('-E;&5C=`H)8F5T=V5E;B!D:7)E;G0N:"!A;F0@;F1I&5D(&EN9F\M2!P=70@ M)#P@:6X@36%K969I;&5S(&EF(%90051("@EIBYG;G4N86DN M;6ET+F5D=3X*"@DJ(&-R96%T92YC.B!);F1E;G0@)R-PFEE("`\9&IM0&=E96-H+F=N M=2YA:2YM:70N961U/@H*"2H@;&ES="YC("A51U-724142"DZ($EN8W)E87-E M(&9R;VT@,3$@*'-OFEE("`\9&IM M0&%P<&QE+6=U;FMI97,^"@H)*B!-86ME9FE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9"!O<'1I;VYS M(&9O&UA;&QO8RYC+@H*,3DY,2TP,RTR,R`@36EC:&%E;"!) M($)U2X*"2A?&5C*3H@5&5M<&]R M87)I;'D@2P@ M=&\@9W5A2!087-C86P@365H975T+@H*,3DY,2TP,RTP."`@36EC:&%E;"!)($)U&ET('-T871UFEE("`\9&IM0&%P<&QE+6=U;FMI97,^"@H)*B!P;W)T+F,Z(%)E;6]V92!A M('-P=7)I;W5S(&`K)R!B971W965N(&9U;F-T:6]N'0@9&EF9BP@87!P87)E;G1L>2DN"@HQ.3DQ+3`Q+3`Y("!- M:6-H865L($D@0G5S:&YE;&P@(#QM:6)`<&]G;RYA:2YM:70N961U/@H*"2H@ M8W)E871E+F,@*'=H97)E7VES7V1A=&$I.B!297=R:71T96X@=&\@8F4@8F5T M=&5R+"!A;F0@=&AE;@H)(VEF9&5F+65D(&]U="X*"2AD96%L7W=I=&A?2!PF5R;U]R96-O M71E5LN+BY=+F]F9G-E="!I M;B!T:&ES(&-A2!&96YL87-O;B`\:&%C:T!A:2YM:70N961U/@H*"2H@9VYU+F,Z M(%!R97!E;F0@=&AE(&-U&-L=61E M+69R;VT@9&\@=VAA="`K97AC;'5D90H)=7-E9"!T;RX*"2H@36%K92`K=F5R M&-L=61E*3H@1&]N)W0@;&5T($U534),12!M871C:"!-54U"3$4N M8R!O<@H)9F]O355-0DQ%(&)U="!O;FQY(&9O;R]-54U"3$4N"@H)*B!M86YG M;&4N8SH@3F5W(&9I;&4N"@DJ(&-R96%T92YC+"!E>'1R86-T+F,Z($%C8V]R M9&EN9R!C:&%N9V5S+@H*"2H@97AT2!#:&EP(%-A M;'IE;F)E2!#:&EP(%-A;'IE;F)EFEE("`\9&IM0&%P<&QE M+6=U;FMI97,^"@H)*B!T87(N8R`H9&5S8W)I8F4I.B!);F-L=61E('1H92!D M969A=6QT('9A;'5E2!&96YL87-O;B`\:&%C:T!A:2YM:70N961U/@H*"2H@<&]R="YC("AU;BUQ M=6]T92US=')I;F3H@57-E M(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C("AC:U]M86QL;V,I.B!I9B!S:7IE/3TP('!R971E;F0@2!&96YL87-O;B`\ M:&%C:T!A:2YM:70N961U/@H*"2H@=7!D871E+F,@*'5P9&%T95]A2!& M96YL87-O;B`\:&%C:T!A:2YM:70N961U/@H*"2H@8W)E871E+F,Z($1O;B=T M(&%C8V5S2!D:7-K+"!A;F0*"4A0('-T'1R86-T("ML:7-T("MU<&1A=&4*"2MC871E;F%T92!A M;F0@*V1E;&5T92!D;VXG="!T86ME(&%R9W5M96YT2!&96YL87-O;B`\:&%C:T!A:2YM:70N961U/@H*"2H@8G5F9F5R+F,@ M*&]P96Y?87)C:&EV92P@9FQ?=W)I=&4I.B!3970@=&AE(&UT:6UE(&]F('1H M92!V;VQU;64*"6AE861E5]S=')I;F'1R86-T7V%R8VAI=F4I.B!$;VXG="!D96-L87)E(&EN9"!S M=&%T:6,N"@H)*B!C%]O9F9S970@BYA:2YM:70N961U/@H*"2H@36%K969I;&4Z($UE;G1I;VX@ M=&AE("U.3U]214U/5$4@;W!T:6]N+@H)*B!P;W)T+F,@6VDS.#9=.B!&:7@@ M='EP;RP@86YD(&1E9FEN92!704Y47T944E5.0T%412X*"C$Y.3`M,#(M,C8@ M($II;2!+:6YG9&]N("`\:VEN9V1O;D!P;V=O+F%I+FUI="YE9'4^"@H)*B!G M971D871E+GDZ($1E8VQA7EL97@@86YD('EY97)R;W(@87,@7!A7EP87)S92X*"C$Y.3`M M,#(M,C4@($1A=FED($HN($UA8TME;GII92`@/&1J;4!A;&)ECX*"@E697)S:6]N(#$N,#@@+2TM(%-P M87)S92!F:6QE('-U<'!O'1E2!&96YL87-O;B`\:&%C:T!W;V]K=6UZ/@H*"2H@ M=&%R+F,L(&-R96%T92YC.B!#F]N M92!I"!S M>7-T96US('=H97)E"@ER96%D*"D@CX*"@DJ M(&-R96%T92YC("AD=6UP7V9I;&4I.B!#;&]S92!F:6QE(&1EFEE("`\9&IM0&AO8F)E'1R86-T+F,Z($-H86YG92!, M7U-%5"!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V]M<&EL92X*"@DJ(%9E M&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/ChangeLog:' 'MD5 check failed' ad22ebe44bc66aa0e984952c665bab41 tar-1.13/src/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/ChangeLog'`" test 156646 -eq "$shar_count" || $echo 'tar-1.13/src/ChangeLog:' 'original size' '156646,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/Makefile.am ============== if test -f 'tar-1.13/src/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/Makefile.am' && # Makefile for GNU tar sources. # Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits ansi2knr bin_PROGRAMS = tar libexec_PROGRAMS = @RMT@ EXTRA_PROGRAMS = rmt X noinst_HEADERS = arith.h common.h rmt.h system.h tar.h rmt_SOURCES = rmt.c tar_SOURCES = arith.c buffer.c compare.c create.c delete.c extract.c \ incremen.c list.c mangle.c misc.c names.c open3.c rtapelib.c tar.c update.c X datadir = $(prefix)/@DATADIRNAME@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ INCLUDES = -I.. -I../intl -I$(top_srcdir)/lib X # Link libtar.a after @INTLLIBS@, since @INTLLIBS@ might invoke rpl_realloc. LDADD = @INTLLIBS@ ../lib/libtar.a SHAR_EOF $shar_touch -am 0703235199 'tar-1.13/src/Makefile.am' && chmod 0444 'tar-1.13/src/Makefile.am' || $echo 'restore of' 'tar-1.13/src/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/Makefile.am:' 'MD5 check failed' 96e152fd0a681c8163990932f9d90e03 tar-1.13/src/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/Makefile.am'`" test 1385 -eq "$shar_count" || $echo 'tar-1.13/src/Makefile.am:' 'original size' '1385,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/Makefile.in ============== if test -f 'tar-1.13/src/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/Makefile.in' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/src/Makefile.in M(R!-86ME9FEL92YI;B!G96YE2!B>2!A=71O M;6%K92`Q+C0@9G)O;2!-86ME9FEL92YA;0H*(R!#;W!Y2!L87<[('=I=&AO=70*(R!E=F5N('1H92!I;7!L:65D('=A0HC('1H M92!&2!O9B!T:&4@1TY5($=E;F5R86P@4'5B;&EC($QI8V5N&5C7W!R969I>"`]($!E>&5C7W!R969I>$`*"F)I;F1I&5C9&ER0`IS>7-C;VYF9&ER(#T@0'-Y&5C7U!23T=204U3(#T@0%)-5$`*15A44D%?4%)/1U)! M35,@/2!R;70*"FYO:6YS=%](14%$15)3(#T@87)I=&@N:"!C;VUM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1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/Makefile.in:' 'MD5 check failed' 26de5b87697bfadd159f1a190cece5aa tar-1.13/src/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/Makefile.in'`" test 15268 -eq "$shar_count" || $echo 'tar-1.13/src/Makefile.in:' 'original size' '15268,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/ansi2knr.1 ============== if test -f 'tar-1.13/src/ansi2knr.1' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/ansi2knr.1' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/ansi2knr.1' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/ansi2knr.1' && X.TH ANSI2KNR 1 "19 Jan 1996" X.SH NAME ansi2knr \- convert ANSI C to Kernighan & Ritchie C X.SH SYNOPSIS X.I ansi2knr [--varargs] input_file [output_file] X.SH DESCRIPTION If no output_file is supplied, output goes to stdout. X.br There are no error messages. X.sp X.I ansi2knr recognizes function definitions by seeing a non-keyword identifier at the left margin, followed by a left parenthesis, with a right parenthesis as the last character on the line, and with a left brace as the first token on the following line (ignoring possible intervening comments). It will recognize a multi-line header provided that no intervening line ends with a left or right brace or a semicolon. These algorithms ignore whitespace and comments, except that the function name must be the first thing on the line. X.sp The following constructs will confuse it: X.br X - Any other construct that starts at the left margin and follows the above syntax (such as a macro or function call). X.br X - Some macros that tinker with the syntax of the function header. X.sp The --varargs switch is obsolete, and is recognized only for backwards compatibility. The present version of X.I ansi2knr will always attempt to convert a ... argument to va_alist and va_dcl. X.SH AUTHOR L. Peter Deutsch wrote the original ansi2knr and continues to maintain the current version; most of the code in the current version is his work. ansi2knr also includes contributions by Francois Pinard and Jim Avera . SHAR_EOF $shar_touch -am 0704123997 'tar-1.13/src/ansi2knr.1' && chmod 0444 'tar-1.13/src/ansi2knr.1' || $echo 'restore of' 'tar-1.13/src/ansi2knr.1' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/ansi2knr.1:' 'MD5 check failed' 5e1899cee05f8b6f22a67923e8137999 tar-1.13/src/ansi2knr.1 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/ansi2knr.1'`" test 1529 -eq "$shar_count" || $echo 'tar-1.13/src/ansi2knr.1:' 'original size' '1529,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/ansi2knr.c ============== if test -f 'tar-1.13/src/ansi2knr.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/ansi2knr.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/ansi2knr.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/ansi2knr.c' && /* Copyright (C) 1989, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved. */ X /*$Id: ansi2knr.c,v 1.14 1999/04/13 14:44:33 meyering Exp $*/ /* Convert ANSI C function definitions to K&R ("traditional C") syntax */ X /* ansi2knr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose or works at all, unless he says so in writing. Refer to the GNU General Public License (the "GPL") for full details. X Everyone is granted permission to copy, modify and redistribute ansi2knr, but only under the conditions described in the GPL. A copy of this license is supposed to have been given to you along with ansi2knr so you can know your rights and responsibilities. It should be in a file named COPYLEFT, or, if there is no file named COPYLEFT, a file named COPYING. Among other things, the copyright notice and this notice must be preserved on all copies. X We explicitly state here what we believe is already implied by the GPL: if the ansi2knr program is distributed as a separate set of sources and a separate executable file which are aggregated on a storage medium together with another program, this in itself does not bring the other program under the GPL, nor does the mere fact that such a program or the procedures for constructing it invoke the ansi2knr executable bring any other part of the program under the GPL. */ X /* X * Usage: X ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]] X * --filename provides the file name for the #line directive in the output, X * overriding input_file (if present). X * If no input_file is supplied, input is read from stdin. X * If no output_file is supplied, output goes to stdout. X * There are no error messages. X * X * ansi2knr recognizes function definitions by seeing a non-keyword X * identifier at the left margin, followed by a left parenthesis, X * with a right parenthesis as the last character on the line, X * and with a left brace as the first token on the following line X * (ignoring possible intervening comments), except that a line X * consisting of only X * identifier1(identifier2) X * will not be considered a function definition unless identifier2 is X * the word "void", and a line consisting of X * identifier1(identifier2, <>) X * will not be considered a function definition. X * ansi2knr will recognize a multi-line header provided X * that no intervening line ends with a left or right brace or a semicolon. X * These algorithms ignore whitespace and comments, except that X * the function name must be the first thing on the line. X * The following constructs will confuse it: X * - Any other construct that starts at the left margin and X * follows the above syntax (such as a macro or function call). X * - Some macros that tinker with the syntax of function headers. X */ X /* X * The original and principal author of ansi2knr is L. Peter Deutsch X * . Other authors are noted in the change history X * that follows (in reverse chronological order): X lpd 1999-04-12 added minor fixes from Pavel Roskin X for clean compilation with X gcc -W -Wall X lpd 1999-03-22 added hack to recognize lines consisting of X identifier1(identifier2, xxx) as *not* being procedures X lpd 1999-02-03 made indentation of preprocessor commands consistent X lpd 1999-01-28 fixed two bugs: a '/' in an argument list caused an X endless loop; quoted strings within an argument list X confused the parser X lpd 1999-01-24 added a check for write errors on the output, X suggested by Jim Meyering X lpd 1998-11-09 added further hack to recognize identifier(void) X as being a procedure X lpd 1998-10-23 added hack to recognize lines consisting of X identifier1(identifier2) as *not* being procedures X lpd 1997-12-08 made input_file optional; only closes input and/or X output file if not stdin or stdout respectively; prints X usage message on stderr rather than stdout; adds X --filename switch (changes suggested by X ) X lpd 1996-01-21 added code to cope with not HAVE_CONFIG_H and with X compilers that don't understand void, as suggested by X Tom Lane X lpd 1996-01-15 changed to require that the first non-comment token X on the line following a function header be a left brace, X to reduce sensitivity to macros, as suggested by Tom Lane X X lpd 1995-06-22 removed #ifndefs whose sole purpose was to define X undefined preprocessor symbols as 0; changed all #ifdefs X for configuration symbols to #ifs X lpd 1995-04-05 changed copyright notice to make it clear that X including ansi2knr in a program does not bring the entire X program under the GPL X lpd 1994-12-18 added conditionals for systems where ctype macros X don't handle 8-bit characters properly, suggested by X Francois Pinard ; X removed --varargs switch (this is now the default) X lpd 1994-10-10 removed CONFIG_BROKETS conditional X lpd 1994-07-16 added some conditionals to help GNU `configure', X suggested by Francois Pinard ; X properly erase prototype args in function parameters, X contributed by Jim Avera ; X correct error in writeblanks (it shouldn't erase EOLs) X lpd 1989-xx-xx original version X */ X /* Most of the conditionals here are to make ansi2knr work with */ /* or without the GNU configure machinery. */ X #if HAVE_CONFIG_H # include #endif X #include #include X #if HAVE_CONFIG_H X /* X For properly autoconfiguring ansi2knr, use AC_CONFIG_HEADER(config.h). X This will define HAVE_CONFIG_H and so, activate the following lines. X */ X # if STDC_HEADERS || HAVE_STRING_H # include # else # include # endif X #else /* not HAVE_CONFIG_H */ X /* Otherwise do it the hard way */ X # ifdef BSD # include # else # ifdef VMS X extern int strlen(), strncmp(); # else # include # endif # endif X #endif /* not HAVE_CONFIG_H */ X #if STDC_HEADERS # include #else /* X malloc and free should be declared in stdlib.h, X but if you've got a K&R compiler, they probably aren't. X */ # ifdef MSDOS # include # else # ifdef VMS X extern char *malloc(); X extern void free(); # else X extern char *malloc(); X extern int free(); # endif # endif X #endif X /* Define NULL (for *very* old compilers). */ #ifndef NULL # define NULL (0) #endif X /* X * The ctype macros don't always handle 8-bit characters correctly. X * Compensate for this here. X */ #ifdef isascii # undef HAVE_ISASCII /* just in case */ # define HAVE_ISASCII 1 #else #endif #if STDC_HEADERS || !HAVE_ISASCII # define is_ascii(c) 1 #else # define is_ascii(c) isascii(c) #endif X #define is_space(c) (is_ascii(c) && isspace(c)) #define is_alpha(c) (is_ascii(c) && isalpha(c)) #define is_alnum(c) (is_ascii(c) && isalnum(c)) X /* Scanning macros */ #define isidchar(ch) (is_alnum(ch) || (ch) == '_') #define isidfirstchar(ch) (is_alpha(ch) || (ch) == '_') X /* Forward references */ char *skipspace(); char *scanstring(); int writeblanks(); int test1(); int convert1(); X /* The main program */ int main(argc, argv) X int argc; X char *argv[]; { FILE *in = stdin; X FILE *out = stdout; X char *filename = 0; X char *program_name = argv[0]; X char *output_name = 0; #define bufsize 5000 /* arbitrary size */ X char *buf; X char *line; X char *more; X char *usage = X "Usage: ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]]\n"; X /* X * In previous versions, ansi2knr recognized a --varargs switch. X * If this switch was supplied, ansi2knr would attempt to convert X * a ... argument to va_alist and va_dcl; if this switch was not X * supplied, ansi2knr would simply drop any such arguments. X * Now, ansi2knr always does this conversion, and we only X * check for this switch for backward compatibility. X */ X int convert_varargs = 1; X int output_error; X X while ( argc > 1 && argv[1][0] == '-' ) { X if ( !strcmp(argv[1], "--varargs") ) { X convert_varargs = 1; X argc--; X argv++; X continue; X } X if ( !strcmp(argv[1], "--filename") && argc > 2 ) { X filename = argv[2]; X argc -= 2; X argv += 2; X continue; X } X fprintf(stderr, "%s: Unrecognized switch: %s\n", program_name, X argv[1]); X fprintf(stderr, usage); X exit(1); X } X switch ( argc ) X { X default: X fprintf(stderr, usage); X exit(0); X case 3: X output_name = argv[2]; X out = fopen(output_name, "w"); X if ( out == NULL ) { X fprintf(stderr, "%s: Cannot open output file %s\n", X program_name, output_name); X exit(1); X } X /* falls through */ X case 2: X in = fopen(argv[1], "r"); X if ( in == NULL ) { X fprintf(stderr, "%s: Cannot open input file %s\n", X program_name, argv[1]); X exit(1); X } X if ( filename == 0 ) X filename = argv[1]; X /* falls through */ X case 1: X break; X } X if ( filename ) X fprintf(out, "#line 1 \"%s\"\n", filename); X buf = malloc(bufsize); X if ( buf == NULL ) X { X fprintf(stderr, "Unable to allocate read buffer!\n"); X exit(1); X } X line = buf; X while ( fgets(line, (unsigned)(buf + bufsize - line), in) != NULL ) X { test: line += strlen(line); X switch ( test1(buf) ) X { X case 2: /* a function header */ X convert1(buf, out, 1, convert_varargs); X break; X case 1: /* a function */ X /* Check for a { at the start of the next line. */ X more = ++line; f: if ( line >= buf + (bufsize - 1) ) /* overflow check */ X goto wl; X if ( fgets(line, (unsigned)(buf + bufsize - line), in) == NULL ) X goto wl; X switch ( *skipspace(more, 1) ) X { X case '{': X /* Definitely a function header. */ X convert1(buf, out, 0, convert_varargs); X fputs(more, out); X break; X case 0: X /* The next line was blank or a comment: */ X /* keep scanning for a non-comment. */ X line += strlen(line); X goto f; X default: X /* buf isn't a function header, but */ X /* more might be. */ X fputs(buf, out); X strcpy(buf, more); X line = buf; X goto test; X } X break; X case -1: /* maybe the start of a function */ X if ( line != buf + (bufsize - 1) ) /* overflow check */ X continue; X /* falls through */ X default: /* not a function */ wl: fputs(buf, out); X break; X } X line = buf; X } X if ( line != buf ) X fputs(buf, out); X free(buf); X if ( output_name ) { X output_error = ferror(out); X output_error |= fclose(out); X } else { /* out == stdout */ X fflush(out); X output_error = ferror(out); X } X if ( output_error ) { X fprintf(stderr, "%s: error writing to %s\n", program_name, X (output_name ? output_name : "stdout")); X exit(1); X } X if ( in != stdin ) X fclose(in); X return 0; } X /* Skip over whitespace and comments, in either direction. */ char * skipspace(p, dir) X register char *p; X register int dir; /* 1 for forward, -1 for backward */ { for ( ; ; ) X { while ( is_space(*p) ) X p += dir; X if ( !(*p == '/' && p[dir] == '*') ) X break; X p += dir; p += dir; X while ( !(*p == '*' && p[dir] == '/') ) X { if ( *p == 0 ) X return p; /* multi-line comment?? */ X p += dir; X } X p += dir; p += dir; X } X return p; } X /* Scan over a quoted string, in either direction. */ char * scanstring(p, dir) X register char *p; X register int dir; { X for (p += dir; ; p += dir) X if (*p == '"' && p[-dir] != '\\') X return p + dir; } X /* X * Write blanks over part of a string. X * Don't overwrite end-of-line characters. X */ int writeblanks(start, end) X char *start; X char *end; { char *p; X for ( p = start; p < end; p++ ) X if ( *p != '\r' && *p != '\n' ) X *p = ' '; X return 0; } X /* X * Test whether the string in buf is a function definition. X * The string may contain and/or end with a newline. X * Return as follows: X * 0 - definitely not a function definition; X * 1 - definitely a function definition; X * 2 - definitely a function prototype (NOT USED); X * -1 - may be the beginning of a function definition, X * append another line and look again. X * The reason we don't attempt to convert function prototypes is that X * Ghostscript's declaration-generating macros look too much like X * prototypes, and confuse the algorithms. X */ int test1(buf) X char *buf; { register char *p = buf; X char *bend; X char *endfn; X int contin; X X if ( !isidfirstchar(*p) ) X return 0; /* no name at left margin */ X bend = skipspace(buf + strlen(buf) - 1, -1); X switch ( *bend ) X { X case ';': contin = 0 /*2*/; break; X case ')': contin = 1; break; X case '{': return 0; /* not a function */ X case '}': return 0; /* not a function */ X default: contin = -1; X } X while ( isidchar(*p) ) X p++; X endfn = p; X p = skipspace(p, 1); X if ( *p++ != '(' ) X return 0; /* not a function */ X p = skipspace(p, 1); X if ( *p == ')' ) X return 0; /* no parameters */ X /* Check that the apparent function name isn't a keyword. */ X /* We only need to check for keywords that could be followed */ X /* by a left parenthesis (which, unfortunately, is most of them). */ X { static char *words[] = X { "asm", "auto", "case", "char", "const", "double", X "extern", "float", "for", "if", "int", "long", X "register", "return", "short", "signed", "sizeof", X "static", "switch", "typedef", "unsigned", X "void", "volatile", "while", 0 X }; X char **key = words; X char *kp; X unsigned len = endfn - buf; X X while ( (kp = *key) != 0 ) X { if ( strlen(kp) == len && !strncmp(kp, buf, len) ) X return 0; /* name is a keyword */ X key++; X } X } X { X char *id = p; X int len; X /* X * Check for identifier1(identifier2) and not X * identifier1(void), or identifier1(identifier2, xxxx). X */ X X while ( isidchar(*p) ) X p++; X len = p - id; X p = skipspace(p, 1); X if (*p == ',' || X (*p == ')' && (len != 4 || strncmp(id, "void", 4))) X ) X return 0; /* not a function */ X } X /* X * If the last significant character was a ), we need to count X * parentheses, because it might be part of a formal parameter X * that is a procedure. X */ X if (contin > 0) { X int level = 0; X X for (p = skipspace(buf, 1); *p; p = skipspace(p + 1, 1)) X level += (*p == '(' ? 1 : *p == ')' ? -1 : 0); X if (level > 0) X contin = -1; X } X return contin; } X /* Convert a recognized function definition or header to K&R syntax. */ int convert1(buf, out, header, convert_varargs) X char *buf; X FILE *out; X int header; /* Boolean */ X int convert_varargs; /* Boolean */ { char *endfn; X register char *p; X /* X * The breaks table contains pointers to the beginning and end X * of each argument. X */ X char **breaks; X unsigned num_breaks = 2; /* for testing */ X char **btop; X char **bp; X char **ap; X char *vararg = 0; X X /* Pre-ANSI implementations don't agree on whether strchr */ X /* is called strchr or index, so we open-code it here. */ X for ( endfn = buf; *(endfn++) != '('; ) X ; top: p = endfn; X breaks = (char **)malloc(sizeof(char *) * num_breaks * 2); X if ( breaks == NULL ) X { /* Couldn't allocate break table, give up */ X fprintf(stderr, "Unable to allocate break table!\n"); X fputs(buf, out); X return -1; X } X btop = breaks + num_breaks * 2 - 2; X bp = breaks; X /* Parse the argument list */ X do X { int level = 0; X char *lp = NULL; X char *rp = NULL; X char *end = NULL; X X if ( bp >= btop ) X { /* Filled up break table. */ X /* Allocate a bigger one and start over. */ X free((char *)breaks); X num_breaks <<= 1; X goto top; X } X *bp++ = p; X /* Find the end of the argument */ X for ( ; end == NULL; p++ ) X { switch(*p) X { X case ',': X if ( !level ) end = p; X break; X case '(': X if ( !level ) lp = p; X level++; X break; X case ')': X if ( --level < 0 ) end = p; X else rp = p; X break; X case '/': X if (p[1] == '*') X p = skipspace(p, 1) - 1; X break; X case '"': X p = scanstring(p, 1) - 1; X break; X default: X ; X } X } X /* Erase any embedded prototype parameters. */ X if ( lp && rp ) X writeblanks(lp + 1, rp); X p--; /* back up over terminator */ X /* Find the name being declared. */ X /* This is complicated because of procedure and */ X /* array modifiers. */ X for ( ; ; ) X { p = skipspace(p - 1, -1); X switch ( *p ) X { X case ']': /* skip array dimension(s) */ X case ')': /* skip procedure args OR name */ X { int level = 1; X while ( level ) X switch ( *--p ) X { X case ']': case ')': X level++; X break; X case '[': case '(': X level--; X break; X case '/': X if (p > buf && p[-1] == '*') X p = skipspace(p, -1) + 1; X break; X case '"': X p = scanstring(p, -1) + 1; X break; X default: ; X } X } X if ( *p == '(' && *skipspace(p + 1, 1) == '*' ) X { /* We found the name being declared */ X while ( !isidfirstchar(*p) ) X p = skipspace(p, 1) + 1; X goto found; X } X break; X default: X goto found; X } X } found: if ( *p == '.' && p[-1] == '.' && p[-2] == '.' ) X { if ( convert_varargs ) X { *bp++ = "va_alist"; X vararg = p-2; X } X else X { p++; X if ( bp == breaks + 1 ) /* sole argument */ X writeblanks(breaks[0], p); X else X writeblanks(bp[-1] - 1, p); X bp--; X } X } X else X { while ( isidchar(*p) ) p--; X *bp++ = p+1; X } X p = end; X } X while ( *p++ == ',' ); X *bp = p; X /* Make a special check for 'void' arglist */ X if ( bp == breaks+2 ) X { p = skipspace(breaks[0], 1); X if ( !strncmp(p, "void", 4) ) X { p = skipspace(p+4, 1); X if ( p == breaks[2] - 1 ) X { bp = breaks; /* yup, pretend arglist is empty */ X writeblanks(breaks[0], p + 1); X } X } X } X /* Put out the function name and left parenthesis. */ X p = buf; X while ( p != endfn ) putc(*p, out), p++; X /* Put out the declaration. */ X if ( header ) X { fputs(");", out); X for ( p = breaks[0]; *p; p++ ) X if ( *p == '\r' || *p == '\n' ) X putc(*p, out); X } X else X { for ( ap = breaks+1; ap < bp; ap += 2 ) X { p = *ap; X while ( isidchar(*p) ) X putc(*p, out), p++; X if ( ap < bp - 1 ) X fputs(", ", out); X } X fputs(") ", out); X /* Put out the argument declarations */ X for ( ap = breaks+2; ap <= bp; ap += 2 ) X (*ap)[-1] = ';'; X if ( vararg != 0 ) X { *vararg = 0; X fputs(breaks[0], out); /* any prior args */ X fputs("va_dcl", out); /* the final arg */ X fputs(bp[0], out); X } X else X fputs(breaks[0], out); X } X free((char *)breaks); X return 0; } SHAR_EOF $shar_touch -am 0413074499 'tar-1.13/src/ansi2knr.c' && chmod 0444 'tar-1.13/src/ansi2knr.c' || $echo 'restore of' 'tar-1.13/src/ansi2knr.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/ansi2knr.c:' 'MD5 check failed' c57ba6ea0c42e9f17ac9757679336f57 tar-1.13/src/ansi2knr.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/ansi2knr.c'`" test 18704 -eq "$shar_count" || $echo 'tar-1.13/src/ansi2knr.c:' 'original size' '18704,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/rmt.c ============== if test -f 'tar-1.13/src/rmt.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/rmt.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/rmt.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/rmt.c' && /* Remote connection server. X Copyright 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Copyright (C) 1983 Regents of the University of California. X All rights reserved. X X Redistribution and use in source and binary forms are permitted provided X that the above copyright notice and this paragraph are duplicated in all X such forms and that any documentation, advertising materials, and other X materials related to such distribution and use acknowledge that the X software was developed by the University of California, Berkeley. The X name of the University may not be used to endorse or promote products X derived from this software without specific prior written permission. X THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED X WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF X MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ X #include "system.h" #include "safe-read.h" X #include X #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #endif #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 #endif X /* Maximum size of a string from the requesting program. */ #define STRING_SIZE 64 X /* Name of executing program. */ const char *program_name; X /* File descriptor of the tape device, or negative if none open. */ static int tape = -1; X /* Buffer containing transferred data, and its allocated size. */ static char *record_buffer = NULL; static size_t allocated_size = 0; X /* Buffer for constructing the reply. */ static char reply_buffer[BUFSIZ]; X /* Debugging tools. */ X static FILE *debug_file = NULL; X #define DEBUG(File) \ X if (debug_file) fprintf(debug_file, File) X #define DEBUG1(File, Arg) \ X if (debug_file) fprintf(debug_file, File, Arg) X #define DEBUG2(File, Arg1, Arg2) \ X if (debug_file) fprintf(debug_file, File, Arg1, Arg2) X /*------------------------------------------------. | Return an error string, given an error number. | `------------------------------------------------*/ X #if HAVE_STRERROR # ifndef strerror char *strerror (); # endif #else static char * private_strerror (int errnum) { X extern char *sys_errlist[]; X extern int sys_nerr; X X if (errnum > 0 && errnum <= sys_nerr) X return _(sys_errlist[errnum]); X return _("Unknown system error"); } # define strerror private_strerror #endif X /*---. | ? | `---*/ X static void report_error_message (const char *string) { X DEBUG1 ("rmtd: E 0 (%s)\n", string); X X sprintf (reply_buffer, "E0\n%s\n", string); X full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); } X /*---. | ? | `---*/ X static void report_numbered_error (int num) { X DEBUG2 ("rmtd: E %d (%s)\n", num, strerror (num)); X X sprintf (reply_buffer, "E%d\n%s\n", num, strerror (num)); X full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); } X /*---. | ? | `---*/ X static void get_string (char *string) { X int counter; X X for (counter = 0; counter < STRING_SIZE; counter++) X { X if (safe_read (STDIN_FILENO, string + counter, 1) != 1) X exit (EXIT_SUCCESS); X X if (string[counter] == '\n') X break; X } X string[counter] = '\0'; } X /*---. | ? | `---*/ X static void prepare_record_buffer (size_t size) { X if (size <= allocated_size) X return; X X if (record_buffer) X free (record_buffer); X X record_buffer = malloc (size); X X if (record_buffer == NULL) X { X DEBUG (_("rmtd: Cannot allocate buffer space\n")); X X report_error_message (N_("Cannot allocate buffer space")); X exit (EXIT_FAILURE); /* exit status used to be 4 */ X } X X allocated_size = size; X #ifdef SO_RCVBUF X while (size > 1024 && X (setsockopt (STDIN_FILENO, SOL_SOCKET, SO_RCVBUF, X (char *) &size, sizeof size) X < 0)) X size -= 1024; #else X /* FIXME: I do not see any purpose to the following line... Sigh! */ X size = 1 + ((size - 1) % 1024); #endif } X /*---. | ? | `---*/ X int main (int argc, char *const *argv) { X char command; X long status; X X /* FIXME: Localisation is meaningless, unless --help and --version are X locally used. Localisation would be best accomplished by the calling X tar, on messages found within error packets. */ X X program_name = argv[0]; X setlocale (LC_ALL, ""); X bindtextdomain (PACKAGE, LOCALEDIR); X textdomain (PACKAGE); X X /* FIXME: Implement --help and --version as for any other GNU program. */ X X argc--, argv++; X if (argc > 0) X { X debug_file = fopen (*argv, "w"); X if (debug_file == 0) X { X report_numbered_error (errno); X exit (EXIT_FAILURE); X } X setbuf (debug_file, NULL); X } X top: X errno = 0; /* FIXME: errno should be read-only */ X status = 0; X if (safe_read (STDIN_FILENO, &command, 1) != 1) X exit (EXIT_SUCCESS); X X switch (command) X { X /* FIXME: Maybe 'H' and 'V' for --help and --version output? */ X X case 'O': X { X char device_string[STRING_SIZE]; X char mode_string[STRING_SIZE]; X X get_string (device_string); X get_string (mode_string); X DEBUG2 ("rmtd: O %s %s\n", device_string, mode_string); X X if (tape >= 0) X close (tape); X X tape = open (device_string, atoi (mode_string), 0666); X if (tape < 0) X goto ioerror; X goto respond; X } X X case 'C': X { X char device_string[STRING_SIZE]; X X get_string (device_string); /* discard */ X DEBUG ("rmtd: C\n"); X X if (close (tape) < 0) X goto ioerror; X tape = -1; X goto respond; X } X X case 'L': X { X char count_string[STRING_SIZE]; X char position_string[STRING_SIZE]; X off_t count = 0; X int negative; X int whence; X char *p; X X get_string (count_string); X get_string (position_string); X DEBUG2 ("rmtd: L %s %s\n", count_string, position_string); X X /* Parse count_string, taking care to check for overflow. X We can't use standard functions, X since off_t might be longer than long. */ X X for (p = count_string; *p == ' ' || *p == '\t'; p++) X continue; X X negative = *p == '-'; X p += negative || *p == '+'; X X for (;;) X { X int digit = *p++ - '0'; X if (9 < (unsigned) digit) X break; X else X { X off_t c10 = 10 * count; X off_t nc = negative ? c10 - digit : c10 + digit; X if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) X { X report_error_message (N_("Seek offset out of range")); X exit (EXIT_FAILURE); X } X count = nc; X } X } X X switch (atoi (position_string)) X { X case 0: whence = SEEK_SET; break; X case 1: whence = SEEK_CUR; break; X case 2: whence = SEEK_END; break; X default: X report_error_message (N_("Seek direction out of range")); X exit (EXIT_FAILURE); X } X count = lseek (tape, count, whence); X if (count < 0) X goto ioerror; X X /* Convert count back to string for reply. X We can't use sprintf, since off_t might be longer than long. */ X p = count_string + sizeof count_string; X *--p = '\0'; X do X *--p = '0' + (int) (count % 10); X while ((count /= 10) != 0); X X DEBUG1 ("rmtd: A %s\n", p); X X sprintf (reply_buffer, "A%s\n", p); X full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); X goto top; X } X X case 'W': X { X char count_string[STRING_SIZE]; X size_t size; X size_t counter; X X get_string (count_string); X size = atol (count_string); X DEBUG1 ("rmtd: W %s\n", count_string); X X prepare_record_buffer (size); X for (counter = 0; counter < size; counter += status) X { X status = safe_read (STDIN_FILENO, &record_buffer[counter], X size - counter); X if (status <= 0) X { X DEBUG (_("rmtd: Premature eof\n")); X X report_error_message (N_("Premature end of file")); X exit (EXIT_FAILURE); /* exit status used to be 2 */ X } X } X status = full_write (tape, record_buffer, size); X if (status < 0) X goto ioerror; X goto respond; X } X X case 'R': X { X char count_string[STRING_SIZE]; X size_t size; X X get_string (count_string); X DEBUG1 ("rmtd: R %s\n", count_string); X X size = atol (count_string); X prepare_record_buffer (size); X status = safe_read (tape, record_buffer, size); X if (status < 0) X goto ioerror; X sprintf (reply_buffer, "A%ld\n", status); X full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); X full_write (STDOUT_FILENO, record_buffer, (size_t) status); X goto top; X } X X case 'I': X { X char operation_string[STRING_SIZE]; X char count_string[STRING_SIZE]; X X get_string (operation_string); X get_string (count_string); X DEBUG2 ("rmtd: I %s %s\n", operation_string, count_string); X #ifdef MTIOCTOP X { X struct mtop mtop; X const char *p; X off_t count = 0; X int negative; X X /* Parse count_string, taking care to check for overflow. X We can't use standard functions, X since off_t might be longer than long. */ X X for (p = count_string; *p == ' ' || *p == '\t'; p++) X continue; X X negative = *p == '-'; X p += negative || *p == '+'; X X for (;;) X { X int digit = *p++ - '0'; X if (9 < (unsigned) digit) X break; X else X { X off_t c10 = 10 * count; X off_t nc = negative ? c10 - digit : c10 + digit; X if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) X { X report_error_message (N_("Seek offset out of range")); X exit (EXIT_FAILURE); X } X count = nc; X } X } X X mtop.mt_count = count; X if (mtop.mt_count != count) X { X report_error_message (N_("Seek offset out of range")); X exit (EXIT_FAILURE); X } X mtop.mt_op = atoi (operation_string); X X if (ioctl (tape, MTIOCTOP, (char *) &mtop) < 0) X goto ioerror; X } #endif X goto respond; X } X X case 'S': /* status */ X { X DEBUG ("rmtd: S\n"); X #ifdef MTIOCGET X { X struct mtget operation; X X if (ioctl (tape, MTIOCGET, (char *) &operation) < 0) X goto ioerror; X status = sizeof (operation); X sprintf (reply_buffer, "A%ld\n", status); X full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); X full_write (STDOUT_FILENO, (char *) &operation, sizeof (operation)); X } #endif X goto top; X } X X default: X DEBUG1 (_("rmtd: Garbage command %c\n"), command); X X report_error_message (N_("Garbage command")); X exit (EXIT_FAILURE); /* exit status used to be 3 */ X } X respond: X DEBUG1 ("rmtd: A %ld\n", status); X X sprintf (reply_buffer, "A%ld\n", status); X full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); X goto top; X ioerror: X report_numbered_error (errno); X goto top; } SHAR_EOF $shar_touch -am 0706231199 'tar-1.13/src/rmt.c' && chmod 0444 'tar-1.13/src/rmt.c' || $echo 'restore of' 'tar-1.13/src/rmt.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/rmt.c:' 'MD5 check failed' c3ae0b4225f9213b10f7b68e6eeb29ac tar-1.13/src/rmt.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/rmt.c'`" test 10934 -eq "$shar_count" || $echo 'tar-1.13/src/rmt.c:' 'original size' '10934,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/arith.c ============== if test -f 'tar-1.13/src/arith.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/arith.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/arith.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/arith.c' && /* Arithmetic for numbers greater than a unsigned long, for GNU tar. X Copyright (C) 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X /* common.h is needed to define FATAL_ERROR. It also includes arith.h. */ #include "common.h" X /* GNU tar needs handling numbers exceeding 32 bits, which is the size of X unsigned long ints for many C compilers. This module should provide X machinery for handling at least BITS_PER_TARLONG bits per number. If X `long long' ints are available and are sufficient for the task, they will X be used preferrably. X X Russell Cattelan reports 165 Gb single tapes (digital video D2 tapes on X Ampex drives), so requiring 38 bits for the tape length in bytes. He X also reports breaking the terabyte limit with a single file (using SGI X xFS file system over 37 28GB disk arrays attached to a Power Challenge X XL; check out http://www.lcse.umn.edu/ for a picture), so requiring a X little more than 40 bits for the file size in bytes. The POSIX header X structure allows for 12 octal digits to represent file lengths, that is, X up to 36 bits for the byte size of files. X X If `long long' is not supported by the compiler, SIZEOF_LONG_LONG will be X set to zero by configure. In this case, or if `long long' ints does not X have enough bits, then huge numbers are rather represented by an array of X longs, with the least significant super-digit at position 0. For making X multiplication and decimal input/output easy, the base of a super-digit X is an exact exponent of 10, and is such that base*base fits in a long. */ X #if SUPERDIGIT X /*-------------------------------. | Check if ACCUMULATOR is zero. | `-------------------------------*/ X int zerop_tarlong_helper (unsigned long *accumulator) { X int counter; X X for (counter = LONGS_PER_TARLONG - 1; counter >= 0; counter--) X if (accumulator[counter]) X return 0; X X return 1; } X /*----------------------------------------------. | Check if FIRST is strictly less than SECOND. | `----------------------------------------------*/ X int lessp_tarlong_helper (unsigned long *first, unsigned long *second) { X int counter; X X for (counter = LONGS_PER_TARLONG - 1; counter >= 0; counter--) X if (first[counter] != second[counter]) X return first[counter] < second[counter]; X X return 0; } X /*----------------------------. | Reset ACCUMULATOR to zero. | `----------------------------*/ X void clear_tarlong_helper (unsigned long *accumulator) { X int counter; X X for (counter = 0; counter < LONGS_PER_TARLONG; counter++) X accumulator[counter] = 0; } X /*----------------------------. | To ACCUMULATOR, add VALUE. | `----------------------------*/ X void add_to_tarlong_helper (unsigned long *accumulator, unsigned long value) { X int counter; X X for (counter = 0; counter < LONGS_PER_TARLONG; counter++) X { X if (accumulator[counter] + value < SUPERDIGIT) X { X accumulator[counter] += value; X return; X } X accumulator[counter] += value - SUPERDIGIT; X value = 1; X } X X FATAL_ERROR ((0, 0, _("Arithmetic overflow"))); } X /*--------------------------------. | Multiply ACCUMULATOR by VALUE. | `--------------------------------*/ X void mult_tarlong_helper (unsigned long *accumulator, unsigned long value) { X int carry = 0; X int counter; X X for (counter = 0; counter < LONGS_PER_TARLONG; counter++) X { X carry += accumulator[counter] * value; X accumulator[counter] = carry % SUPERDIGIT; X carry /= SUPERDIGIT; X } X if (carry) X FATAL_ERROR ((0, 0, _("Arithmetic overflow"))); } X /*----------------------------------------------------------. | Print the decimal representation of ACCUMULATOR on FILE. | `----------------------------------------------------------*/ X void print_tarlong_helper (unsigned long *accumulator, FILE *file) { X int counter = LONGS_PER_TARLONG - 1; X X while (counter > 0 && accumulator[counter] == 0) X counter--; X X fprintf (file, "%uld", accumulator[counter]); X while (counter > 0) X fprintf (file, TARLONG_FORMAT, accumulator[--counter]); } X #endif /* SUPERDIGIT */ SHAR_EOF $shar_touch -am 0630221599 'tar-1.13/src/arith.c' && chmod 0444 'tar-1.13/src/arith.c' || $echo 'restore of' 'tar-1.13/src/arith.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/arith.c:' 'MD5 check failed' 89f8e12b8c5294561e7de903d4903a2a tar-1.13/src/arith.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/arith.c'`" test 4777 -eq "$shar_count" || $echo 'tar-1.13/src/arith.c:' 'original size' '4777,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/buffer.c ============== if test -f 'tar-1.13/src/buffer.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/buffer.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/buffer.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/buffer.c' && /* Buffer management for tar. X Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. X Written by John Gilmore, on 1985-08-25. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include #include time_t time (); X #if MSDOS # include #endif X #if XENIX # include #endif X #ifndef FNM_LEADING_DIR # include #endif X #include "common.h" #include "rmt.h" X #define DEBUG_FORK 0 /* if nonzero, childs are born stopped */ X #define PREAD 0 /* read file descriptor from pipe() */ #define PWRITE 1 /* write file descriptor from pipe() */ X /* Number of retries before giving up on read. */ #define READ_ERROR_MAX 10 X /* Globbing pattern to append to volume label if initial match failed. */ #define VOLUME_LABEL_APPEND " Volume [1-9]*" X /* Variables. */ X static tarlong total_written; /* bytes written on all volumes */ static tarlong bytes_written; /* bytes written on this volume */ X /* FIXME: The following four variables should ideally be static to this X module. However, this cannot be done yet, as update.c uses the first X three a lot, and compare.c uses the fourth. The cleanup continues! */ X union block *record_start; /* start of record of archive */ union block *record_end; /* last+1 block of archive record */ union block *current_block; /* current block of archive */ enum access_mode access_mode; /* how do we handle the archive */ static struct stat archive_stat; /* stat block for archive file */ X static off_t record_start_block; /* block ordinal at record_start */ X /* Where we write list messages (not errors, not interactions) to. Stdout X unless we're writing a pipe, in which case stderr. */ FILE *stdlis; X static void backspace_output PARAMS ((void)); static int new_volume PARAMS ((enum access_mode)); static void write_error PARAMS ((ssize_t)); static void read_error PARAMS ((void)); X #if !MSDOS /* Obnoxious test to see if dimwit is trying to dump the archive. */ dev_t ar_dev; ino_t ar_ino; #endif X /* PID of child program, if compress_option or remote archive access. */ static pid_t child_pid; X /* Error recovery stuff */ static int read_error_count; X /* Have we hit EOF yet? */ static int hit_eof; X /* Checkpointing counter */ static int checkpoint; X /* We're reading, but we just read the last block and its time to update. */ /* As least EXTERN like this one as possible. FIXME! */ extern int time_to_start_writing; X int file_to_switch_to = -1; /* if remote update, close archive, and use X this descriptor to write to */ X static int volno = 1; /* which volume of a multi-volume tape we're X on */ static int global_volno = 1; /* volume number to print in external X messages */ X /* The pointer save_name, which is set in function dump_file() of module X create.c, points to the original long filename instead of the new, X shorter mangled name that is set in start_header() of module create.c. X The pointer save_name is only used in multi-volume mode when the file X being processed is non-sparse; if a file is split between volumes, the X save_name is used in generating the LF_MULTIVOL record on the second X volume. (From Pierce Cantrell, 1991-08-13.) */ X char *save_name; /* name of the file we are currently writing */ off_t save_totsize; /* total size of file we are writing, only X valid if save_name is non NULL */ off_t save_sizeleft; /* where we are in the file we are writing, X only valid if save_name is nonzero */ X int write_archive_to_stdout = 0; X /* Used by flush_read and flush_write to store the real info about saved X names. */ static char *real_s_name = NULL; static off_t real_s_totsize; static off_t real_s_sizeleft; X /* Functions. */ X #if DEBUG_FORK X static pid_t myfork (void) { X pid_t result = fork(); X X if (result == 0) X kill (getpid (), SIGSTOP); X return result; } X # define fork myfork X #endif /* DEBUG FORK */ X void init_total_written (void) { X clear_tarlong (total_written); X clear_tarlong (bytes_written); } X void print_total_written (void) { X fprintf (stderr, _("Total bytes written: ")); X print_tarlong (total_written, stderr); X fprintf (stderr, "\n"); } X /*--------------------------------------------------------. | Compute and return the block ordinal at current_block. | `--------------------------------------------------------*/ X off_t current_block_ordinal (void) { X return record_start_block + (current_block - record_start); } X /*------------------------------------------------------------------. | If the EOF flag is set, reset it, as well as current_block, etc. | `------------------------------------------------------------------*/ X void reset_eof (void) { X if (hit_eof) X { X hit_eof = 0; X current_block = record_start; X record_end = record_start + blocking_factor; X access_mode = ACCESS_WRITE; X } } X /*-------------------------------------------------------------------------. | Return the location of the next available input or output block. | | Return NULL for EOF. Once we have returned NULL, we just keep returning | | it, to avoid accidentally going on to the next file on the tape. | `-------------------------------------------------------------------------*/ X union block * find_next_block (void) { X if (current_block == record_end) X { X if (hit_eof) X return NULL; X flush_archive (); X if (current_block == record_end) X { X hit_eof = 1; X return NULL; X } X } X return current_block; } X /*------------------------------------------------------. | Indicate that we have used all blocks up thru BLOCK. | | | | FIXME: should the arg have an off-by-1? | `------------------------------------------------------*/ X void set_next_block_after (union block *block) { X while (block >= current_block) X current_block++; X X /* Do *not* flush the archive here. If we do, the same argument to X set_next_block_after could mean the next block (if the input record X is exactly one block long), which is not what is intended. */ X X if (current_block > record_end) X abort (); } X /*------------------------------------------------------------------------. | Return the number of bytes comprising the space between POINTER through | | the end of the current buffer of blocks. This space is available for | | filling with data, or taking data from. POINTER is usually (but not | | always) the result previous find_next_block call. | `------------------------------------------------------------------------*/ X size_t available_space_after (union block *pointer) { X return record_end->buffer - pointer->buffer; } X /*------------------------------------------------------------------. | Close file having descriptor FD, and abort if close unsucessful. | `------------------------------------------------------------------*/ X static void xclose (int fd) { X if (close (fd) < 0) X FATAL_ERROR ((0, errno, _("Cannot close file #%d"), fd)); } X /*-----------------------------------------------------------------------. | Duplicate file descriptor FROM into becoming INTO, or else, issue | | MESSAGE. INTO is closed first and has to be the next available slot. | `-----------------------------------------------------------------------*/ X static void xdup2 (int from, int into, const char *message) { X if (from != into) X { X int status = close (into); X X if (status < 0 && errno != EBADF) X FATAL_ERROR ((0, errno, _("Cannot close descriptor %d"), into)); X status = dup (from); X if (status != into) X FATAL_ERROR ((0, errno, _("Cannot properly duplicate %s"), message)); X xclose (from); X } } X #if MSDOS X /*-------------------------------------------------------. | Set ARCHIVE for writing, then compressing an archive. | `-------------------------------------------------------*/ X static void child_open_for_compress (void) { X FATAL_ERROR ((0, 0, _("Cannot use compressed or remote archives"))); } X /*---------------------------------------------------------. | Set ARCHIVE for uncompressing, then reading an archive. | `---------------------------------------------------------*/ X static void child_open_for_uncompress (void) { X FATAL_ERROR ((0, 0, _("Cannot use compressed or remote archives"))); } X #else /* not MSDOS */ X /*---------------------------------------------------------------------. | Return nonzero if NAME is the name of a regular file, or if the file | | does not exist (so it would be created as a regular file). | `---------------------------------------------------------------------*/ X static int is_regular_file (const char *name) { X struct stat stbuf; X X if (stat (name, &stbuf) < 0) X return 1; X X if (S_ISREG (stbuf.st_mode)) X return 1; X X return 0; } X static ssize_t write_archive_buffer (void) { X ssize_t status; X ssize_t written = 0; X X while (0 <= (status = rmtwrite (archive, record_start->buffer + written, X record_size - written))) X { X written += status; X if (written == record_size X || _isrmt (archive) || ! S_ISFIFO (archive_stat.st_mode)) X break; X } X X return written ? written : status; } X /*-------------------------------------------------------. | Set ARCHIVE for writing, then compressing an archive. | `-------------------------------------------------------*/ X static void child_open_for_compress (void) { X int parent_pipe[2]; X int child_pipe[2]; X pid_t grandchild_pid; X X if (pipe (parent_pipe) < 0) X FATAL_ERROR ((0, errno, _("Cannot open pipe"))); X X child_pid = fork (); X if (child_pid < 0) X FATAL_ERROR ((0, errno, _("Cannot fork"))); X X if (child_pid > 0) X { X /* The parent tar is still here! Just clean up. */ X X archive = parent_pipe[PWRITE]; X xclose (parent_pipe[PREAD]); X return; X } X X /* The new born child tar is here! */ X X program_name = _("tar (child)"); X X xdup2 (parent_pipe[PREAD], STDIN_FILENO, _("(child) Pipe to stdin")); X xclose (parent_pipe[PWRITE]); X X /* Check if we need a grandchild tar. This happens only if either: X a) we are writing stdout: to force reblocking; X b) the file is to be accessed by rmt: compressor doesn't know how; X c) the file is not a plain file. */ X X if (strcmp (archive_name_array[0], "-") != 0 X && !_remdev (archive_name_array[0]) X && is_regular_file (archive_name_array[0])) X { X if (backup_option) X maybe_backup_file (archive_name_array[0], 1); X X /* We don't need a grandchild tar. Open the archive and launch the X compressor. */ X X archive = creat (archive_name_array[0], MODE_RW); X if (archive < 0) X { X int saved_errno = errno; X X if (backup_option) X undo_last_backup (); X FATAL_ERROR ((0, saved_errno, _("Cannot open archive %s"), X archive_name_array[0])); X } X xdup2 (archive, STDOUT_FILENO, _("Archive to stdout")); X execlp (use_compress_program_option, use_compress_program_option, X (char *) 0); X FATAL_ERROR ((0, errno, _("Cannot exec %s"), X use_compress_program_option)); X } X X /* We do need a grandchild tar. */ X X if (pipe (child_pipe) < 0) X FATAL_ERROR ((0, errno, _("Cannot open pipe"))); X X grandchild_pid = fork (); X if (grandchild_pid < 0) X FATAL_ERROR ((0, errno, _("Child cannot fork"))); X X if (grandchild_pid > 0) X { X /* The child tar is still here! Launch the compressor. */ X X xdup2 (child_pipe[PWRITE], STDOUT_FILENO, X _("((child)) Pipe to stdout")); X xclose (child_pipe[PREAD]); X execlp (use_compress_program_option, use_compress_program_option, X (char *) 0); X FATAL_ERROR ((0, errno, _("Cannot exec %s"), X use_compress_program_option)); X } X X /* The new born grandchild tar is here! */ X X program_name = _("tar (grandchild)"); X X /* Prepare for reblocking the data from the compressor into the archive. */ X X xdup2 (child_pipe[PREAD], STDIN_FILENO, _("(grandchild) Pipe to stdin")); X xclose (child_pipe[PWRITE]); X X if (strcmp (archive_name_array[0], "-") == 0) X archive = STDOUT_FILENO; X else X archive = rmtcreat (archive_name_array[0], MODE_RW, rsh_command_option); X if (archive < 0) X FATAL_ERROR ((0, errno, _("Cannot open archive %s"), X archive_name_array[0])); X X /* Let's read out of the stdin pipe and write an archive. */ X X while (1) X { X ssize_t status = 0; X char *cursor; X size_t length; X X /* Assemble a record. */ X X for (length = 0, cursor = record_start->buffer; X length < record_size; X length += status, cursor += status) X { X size_t size = record_size - length; X X if (size < BLOCKSIZE) X size = BLOCKSIZE; X status = safe_read (STDIN_FILENO, cursor, size); X if (status <= 0) X break; X } X X if (status < 0) X FATAL_ERROR ((0, errno, _("Cannot read from compression program"))); X X /* Copy the record. */ X X if (status == 0) X { X /* We hit the end of the file. Write last record at X full length, as the only role of the grandchild is X doing proper reblocking. */ X X if (length > 0) X { X memset (record_start->buffer + length, 0, record_size - length); X status = write_archive_buffer (); X if (status != record_size) X write_error (status); X } X X /* There is nothing else to read, break out. */ X break; X } X X status = write_archive_buffer (); X if (status != record_size) X write_error (status); X } X #if 0 X close_archive (); #endif X exit (exit_status); } X /*---------------------------------------------------------. | Set ARCHIVE for uncompressing, then reading an archive. | `---------------------------------------------------------*/ X static void child_open_for_uncompress (void) { X int parent_pipe[2]; X int child_pipe[2]; X pid_t grandchild_pid; X X if (pipe (parent_pipe) < 0) X FATAL_ERROR ((0, errno, _("Cannot open pipe"))); X X child_pid = fork (); X if (child_pid < 0) X FATAL_ERROR ((0, errno, _("Cannot fork"))); X X if (child_pid > 0) X { X /* The parent tar is still here! Just clean up. */ X X read_full_records_option = 1; X archive = parent_pipe[PREAD]; X xclose (parent_pipe[PWRITE]); X return; X } X X /* The new born child tar is here! */ X X program_name = _("tar (child)"); X X xdup2 (parent_pipe[PWRITE], STDOUT_FILENO, _("(child) Pipe to stdout")); X xclose (parent_pipe[PREAD]); X X /* Check if we need a grandchild tar. This happens only if either: X a) we're reading stdin: to force unblocking; X b) the file is to be accessed by rmt: compressor doesn't know how; X c) the file is not a plain file. */ X X if (strcmp (archive_name_array[0], "-") != 0 X && !_remdev (archive_name_array[0]) X && is_regular_file (archive_name_array[0])) X { X /* We don't need a grandchild tar. Open the archive and lauch the X uncompressor. */ X X archive = open (archive_name_array[0], O_RDONLY | O_BINARY, MODE_RW); X if (archive < 0) X FATAL_ERROR ((0, errno, _("Cannot open archive %s"), X archive_name_array[0])); X xdup2 (archive, STDIN_FILENO, _("Archive to stdin")); X execlp (use_compress_program_option, use_compress_program_option, X "-d", (char *) 0); X FATAL_ERROR ((0, errno, _("Cannot exec %s"), X use_compress_program_option)); X } X X /* We do need a grandchild tar. */ X X if (pipe (child_pipe) < 0) X FATAL_ERROR ((0, errno, _("Cannot open pipe"))); X X grandchild_pid = fork (); X if (grandchild_pid < 0) X FATAL_ERROR ((0, errno, _("Child cannot fork"))); X X if (grandchild_pid > 0) X { X /* The child tar is still here! Launch the uncompressor. */ X X xdup2 (child_pipe[PREAD], STDIN_FILENO, _("((child)) Pipe to stdin")); X xclose (child_pipe[PWRITE]); X execlp (use_compress_program_option, use_compress_program_option, X "-d", (char *) 0); X FATAL_ERROR ((0, errno, _("Cannot exec %s"), X use_compress_program_option)); X } X X /* The new born grandchild tar is here! */ X X program_name = _("tar (grandchild)"); X X /* Prepare for unblocking the data from the archive into the uncompressor. */ X X xdup2 (child_pipe[PWRITE], STDOUT_FILENO, _("(grandchild) Pipe to stdout")); X xclose (child_pipe[PREAD]); X X if (strcmp (archive_name_array[0], "-") == 0) X archive = STDIN_FILENO; X else X archive = rmtopen (archive_name_array[0], O_RDONLY | O_BINARY, X MODE_RW, rsh_command_option); X if (archive < 0) X FATAL_ERROR ((0, errno, _("Cannot open archive %s"), X archive_name_array[0])); X X /* Let's read the archive and pipe it into stdout. */ X X while (1) X { X char *cursor; X size_t maximum; X size_t count; X ssize_t status; X X read_error_count = 0; X X error_loop: X status = rmtread (archive, record_start->buffer, record_size); X if (status < 0) X { X read_error (); X goto error_loop; X } X if (status == 0) X break; X cursor = record_start->buffer; X maximum = status; X while (maximum) X { X count = maximum < BLOCKSIZE ? maximum : BLOCKSIZE; X status = full_write (STDOUT_FILENO, cursor, count); X if (status < 0) X FATAL_ERROR ((0, errno, _("\ Cannot write to compression program"))); X X if (status != count) X { X ERROR ((0, 0, _("\ Write to compression program short %lu bytes"), X (unsigned long) (count - status))); X count = status; X } X X cursor += count; X maximum -= count; X } X } X #if 0 X close_archive (); #endif X exit (exit_status); } X #endif /* not MSDOS */ X /*--------------------------------------------------------------------------. | Check the LABEL block against the volume label, seen as a globbing | | pattern. Return true if the pattern matches. In case of failure, retry | | matching a volume sequence number before giving up in multi-volume mode. | `--------------------------------------------------------------------------*/ X static int check_label_pattern (union block *label) { X char *string; X int result; X X if (fnmatch (volume_label_option, label->header.name, 0) == 0) X return 1; X X if (!multi_volume_option) X return 0; X X string = xmalloc (strlen (volume_label_option) X + sizeof VOLUME_LABEL_APPEND + 1); X strcpy (string, volume_label_option); X strcat (string, VOLUME_LABEL_APPEND); X result = fnmatch (string, label->header.name, 0) == 0; X free (string); X return result; } X /*------------------------------------------------------------------------. | Open an archive file. The argument specifies whether we are reading or | | writing, or both. | `------------------------------------------------------------------------*/ X void open_archive (enum access_mode access) { X int backed_up_flag = 0; X X stdlis = to_stdout_option ? stderr : stdout; X X if (record_size == 0) X FATAL_ERROR ((0, 0, _("Invalid value for record_size"))); X X if (archive_names == 0) X FATAL_ERROR ((0, 0, _("No archive name given"))); X X current_file_name = NULL; X current_link_name = NULL; X X /* FIXME: According to POSIX.1, PATH_MAX may well not be a compile-time X constant, and the value from sysconf (_SC_PATH_MAX) may well not be any X size that is reasonable to allocate a buffer. In the GNU system, there X is no fixed limit. The only correct thing to do is to use dynamic X allocation. (Roland McGrath) */ X X if (!real_s_name) X real_s_name = (char *) xmalloc (PATH_MAX); X /* FIXME: real_s_name is never freed. */ X X save_name = NULL; X X if (multi_volume_option) X { X record_start X = (union block *) valloc (record_size + (2 * BLOCKSIZE)); X if (record_start) X record_start += 2; X } X else X record_start = (union block *) valloc (record_size); X if (!record_start) X FATAL_ERROR ((0, 0, _("Could not allocate memory for blocking factor %d"), X blocking_factor)); X X current_block = record_start; X record_end = record_start + blocking_factor; X /* When updating the archive, we start with reading. */ X access_mode = access == ACCESS_UPDATE ? ACCESS_READ : access; X X if (multi_volume_option && verify_option) X FATAL_ERROR ((0, 0, _("Cannot verify multi-volume archives"))); X X if (use_compress_program_option) X { X if (multi_volume_option) X FATAL_ERROR ((0, 0, _("Cannot use multi-volume compressed archives"))); X if (verify_option) X FATAL_ERROR ((0, 0, _("Cannot verify compressed archives"))); X X switch (access) X { X case ACCESS_READ: X child_open_for_uncompress (); X break; X X case ACCESS_WRITE: X child_open_for_compress (); X break; X X case ACCESS_UPDATE: X FATAL_ERROR ((0, 0, _("Cannot update compressed archives"))); X break; X } X X if (access == ACCESS_WRITE && strcmp (archive_name_array[0], "-") == 0) X stdlis = stderr; X } X else if (strcmp (archive_name_array[0], "-") == 0) X { X read_full_records_option = 1; /* could be a pipe, be safe */ X if (verify_option) X FATAL_ERROR ((0, 0, _("Cannot verify stdin/stdout archive"))); X X switch (access) X { X case ACCESS_READ: X archive = STDIN_FILENO; X break; X X case ACCESS_WRITE: X archive = STDOUT_FILENO; X stdlis = stderr; X break; X X case ACCESS_UPDATE: X archive = STDIN_FILENO; X stdlis = stderr; X write_archive_to_stdout = 1; X break; X } X } X else if (verify_option) X archive = rmtopen (archive_name_array[0], O_RDWR | O_CREAT | O_BINARY, X MODE_RW, rsh_command_option); X else X switch (access) X { X case ACCESS_READ: X archive = rmtopen (archive_name_array[0], O_RDONLY | O_BINARY, X MODE_RW, rsh_command_option); X break; X X case ACCESS_WRITE: X if (backup_option) X { X maybe_backup_file (archive_name_array[0], 1); X backed_up_flag = 1; X } X archive = rmtcreat (archive_name_array[0], MODE_RW, X rsh_command_option); X break; X X case ACCESS_UPDATE: X archive = rmtopen (archive_name_array[0], O_RDWR | O_CREAT | O_BINARY, X MODE_RW, rsh_command_option); X break; X } X X if (archive < 0 X || (! _isrmt (archive) && fstat (archive, &archive_stat) < 0)) X { X int saved_errno = errno; X X if (backed_up_flag) X undo_last_backup (); X FATAL_ERROR ((0, saved_errno, _("Cannot open %s"), X archive_name_array[0])); X } X #if !MSDOS X X /* Detect if outputting to "/dev/null". */ X { X static char const dev_null[] = "/dev/null"; X struct stat dev_null_stat; X X dev_null_output = X (strcmp (archive_name_array[0], dev_null) == 0 X || (! _isrmt (archive) X && stat (dev_null, &dev_null_stat) == 0 X && S_ISCHR (archive_stat.st_mode) X && archive_stat.st_rdev == dev_null_stat.st_rdev)); X } X X if (!_isrmt (archive) && S_ISREG (archive_stat.st_mode)) X { X ar_dev = archive_stat.st_dev; X ar_ino = archive_stat.st_ino; X } X else X ar_dev = 0; X #endif /* not MSDOS */ X #if MSDOS X setmode (archive, O_BINARY); #endif X X switch (access) X { X case ACCESS_READ: X case ACCESS_UPDATE: X record_end = record_start; /* set up for 1st record = # 0 */ X find_next_block (); /* read it in, check for EOF */ X X if (volume_label_option) X { X union block *label = find_next_block (); X X if (!label) X FATAL_ERROR ((0, 0, _("Archive not labelled to match `%s'"), X volume_label_option)); X if (!check_label_pattern (label)) X FATAL_ERROR ((0, 0, _("Volume `%s' does not match `%s'"), X label->header.name, volume_label_option)); X } X break; X X case ACCESS_WRITE: X if (volume_label_option) X { X memset ((void *) record_start, 0, BLOCKSIZE); X if (multi_volume_option) X sprintf (record_start->header.name, "%s Volume 1", X volume_label_option); X else X strcpy (record_start->header.name, volume_label_option); X X assign_string (¤t_file_name, record_start->header.name); X X record_start->header.typeflag = GNUTYPE_VOLHDR; X TIME_TO_OCT (time (0), record_start->header.mtime); X finish_header (record_start); #if 0 X current_block++; #endif X } X break; X } } X /*--------------------------------------. | Perform a write to flush the buffer. | `--------------------------------------*/ X void flush_write (void) { X int copy_back; X ssize_t status; X X if (checkpoint_option && !(++checkpoint % 10)) X WARN ((0, 0, _("Write checkpoint %d"), checkpoint)); X X if (!zerop_tarlong (tape_length_option) X && !lessp_tarlong (bytes_written, tape_length_option)) X { X errno = ENOSPC; /* FIXME: errno should be read-only */ X status = 0; X } X else if (dev_null_output) X status = record_size; X else X status = write_archive_buffer (); X if (status != record_size && !multi_volume_option) X write_error (status); X else if (totals_option) X add_to_tarlong (total_written, record_size); X X if (status > 0) X add_to_tarlong (bytes_written, status); X X if (status == record_size) X { X if (multi_volume_option) X { X char *cursor; X X if (!save_name) X { X real_s_name[0] = '\0'; X real_s_totsize = 0; X real_s_sizeleft = 0; X return; X } X X cursor = save_name; #if MSDOS X if (cursor[1] == ':') X cursor += 2; #endif X while (*cursor == '/') X cursor++; X X strcpy (real_s_name, cursor); X real_s_totsize = save_totsize; X real_s_sizeleft = save_sizeleft; X } X return; X } X X /* We're multivol. Panic if we didn't get the right kind of response. */ X X /* ENXIO is for the UNIX PC. */ X if (status < 0 && errno != ENOSPC && errno != EIO && errno != ENXIO) X write_error (status); X X /* If error indicates a short write, we just move to the next tape. */ X X if (!new_volume (ACCESS_WRITE)) X return; X X clear_tarlong (bytes_written); X X if (volume_label_option && real_s_name[0]) X { X copy_back = 2; X record_start -= 2; X } X else if (volume_label_option || real_s_name[0]) X { X copy_back = 1; X record_start--; X } X else X copy_back = 0; X X if (volume_label_option) X { X memset ((void *) record_start, 0, BLOCKSIZE); X sprintf (record_start->header.name, "%s Volume %d", volume_label_option, volno); X TIME_TO_OCT (time (0), record_start->header.mtime); X record_start->header.typeflag = GNUTYPE_VOLHDR; X finish_header (record_start); X } X X if (real_s_name[0]) X { X int tmp; X X if (volume_label_option) X record_start++; X X memset ((void *) record_start, 0, BLOCKSIZE); X X /* FIXME: Michael P Urban writes: [a long name file] is being written X when a new volume rolls around [...] Looks like the wrong value is X being preserved in real_s_name, though. */ X X strcpy (record_start->header.name, real_s_name); X record_start->header.typeflag = GNUTYPE_MULTIVOL; X OFF_TO_OCT (real_s_sizeleft, record_start->header.size); X OFF_TO_OCT (real_s_totsize - real_s_sizeleft, X record_start->oldgnu_header.offset); X tmp = verbose_option; X verbose_option = 0; X finish_header (record_start); X verbose_option = tmp; X X if (volume_label_option) X record_start--; X } X X status = write_archive_buffer (); X if (status != record_size) X write_error (status); X else if (totals_option) X add_to_tarlong (total_written, record_size); X X add_to_tarlong (bytes_written, record_size); X if (copy_back) X { X record_start += copy_back; X memcpy ((void *) current_block, X (void *) (record_start + blocking_factor - copy_back), X (size_t) (copy_back * BLOCKSIZE)); X current_block += copy_back; X X if (real_s_sizeleft >= copy_back * BLOCKSIZE) X real_s_sizeleft -= copy_back * BLOCKSIZE; X else if ((real_s_sizeleft + BLOCKSIZE - 1) / BLOCKSIZE <= copy_back) X real_s_name[0] = '\0'; X else X { X char *cursor = save_name; X #if MSDOS X if (cursor[1] == ':') X cursor += 2; #endif X while (*cursor == '/') X cursor++; X X strcpy (real_s_name, cursor); X real_s_sizeleft = save_sizeleft; X real_s_totsize = save_totsize; X } X copy_back = 0; X } } X /*---------------------------------------------------------------------. | Handle write errors on the archive. Write errors are always fatal. | | Hitting the end of a volume does not cause a write error unless the | | write was the first record of the volume. | `---------------------------------------------------------------------*/ X static void write_error (ssize_t status) { X int saved_errno = errno; X X /* It might be useful to know how much was written before the error X occured. Beware that mere printing maybe change errno value. */ X if (totals_option) X print_total_written (); X X if (status < 0) X FATAL_ERROR ((0, saved_errno, _("Cannot write to %s"), X *archive_name_cursor)); X else X FATAL_ERROR ((0, 0, _("Only wrote %lu of %lu bytes to %s"), X (unsigned long) status, (unsigned long) record_size, X *archive_name_cursor)); } X /*-------------------------------------------------------------------. | Handle read errors on the archive. If the read should be retried, | | returns to the caller. | `-------------------------------------------------------------------*/ X static void read_error (void) { X WARN ((0, errno, _("Read error on %s"), *archive_name_cursor)); X X if (record_start_block == 0) X FATAL_ERROR ((0, 0, _("At beginning of tape, quitting now"))); X X /* Read error in mid archive. We retry up to READ_ERROR_MAX times and X then give up on reading the archive. */ X X if (read_error_count++ > READ_ERROR_MAX) X FATAL_ERROR ((0, 0, _("Too many errors, quitting"))); X return; } X /*-------------------------------------. | Perform a read to flush the buffer. | `-------------------------------------*/ X void flush_read (void) { X ssize_t status; /* result from system call */ X size_t left; /* bytes left */ X char *more; /* pointer to next byte to read */ X X if (checkpoint_option && !(++checkpoint % 10)) X WARN ((0, 0, _("Read checkpoint %d"), checkpoint)); X X /* Clear the count of errors. This only applies to a single call to X flush_read. */ X X read_error_count = 0; /* clear error count */ X X if (write_archive_to_stdout && record_start_block != 0) X { X status = write_archive_buffer (); X if (status != record_size) X write_error (status); X } X if (multi_volume_option) X { X if (save_name) X { X char *cursor = save_name; X #if MSDOS X if (cursor[1] == ':') X cursor += 2; #endif X while (*cursor == '/') X cursor++; X X strcpy (real_s_name, cursor); X real_s_sizeleft = save_sizeleft; X real_s_totsize = save_totsize; X } X else X { X real_s_name[0] = '\0'; X real_s_totsize = 0; X real_s_sizeleft = 0; X } X } X error_loop: X status = rmtread (archive, record_start->buffer, record_size); X if (status == record_size) X return; X X if ((status == 0 X || (status < 0 && errno == ENOSPC) X || (status > 0 && !read_full_records_option)) X && multi_volume_option) X { X union block *cursor; X X try_volume: X switch (subcommand_option) X { X case APPEND_SUBCOMMAND: X case CAT_SUBCOMMAND: X case UPDATE_SUBCOMMAND: X if (!new_volume (ACCESS_UPDATE)) X return; X break; X X default: X if (!new_volume (ACCESS_READ)) X return; X break; X } X X vol_error: X status = rmtread (archive, record_start->buffer, record_size); X if (status < 0) X { X read_error (); X goto vol_error; X } X if (status != record_size) X goto short_read; X X cursor = record_start; X X if (cursor->header.typeflag == GNUTYPE_VOLHDR) X { X if (volume_label_option) X { X if (!check_label_pattern (cursor)) X { X WARN ((0, 0, _("Volume `%s' does not match `%s'"), X cursor->header.name, volume_label_option)); X volno--; X global_volno--; X goto try_volume; X } X } X if (verbose_option) X fprintf (stdlis, _("Reading %s\n"), cursor->header.name); X cursor++; X } X else if (volume_label_option) X WARN ((0, 0, _("WARNING: No volume header"))); X X if (real_s_name[0]) X { X uintmax_t s1, s2; X if (cursor->header.typeflag != GNUTYPE_MULTIVOL X || strcmp (cursor->header.name, real_s_name)) X { X WARN ((0, 0, _("%s is not continued on this volume"), X real_s_name)); X volno--; X global_volno--; X goto try_volume; X } X s1 = UINTMAX_FROM_OCT (cursor->header.size); X s2 = UINTMAX_FROM_OCT (cursor->oldgnu_header.offset); X if (real_s_totsize != s1 + s2 || s1 + s2 < s2) X { X char totsizebuf[UINTMAX_STRSIZE_BOUND]; X char s1buf[UINTMAX_STRSIZE_BOUND]; X char s2buf[UINTMAX_STRSIZE_BOUND]; X X WARN ((0, 0, _("%s is the wrong size (%s != %s + %s)"), X cursor->header.name, X STRINGIFY_BIGINT (save_totsize, totsizebuf), X STRINGIFY_BIGINT (s1, s1buf), X STRINGIFY_BIGINT (s2, s2buf))); X volno--; X global_volno--; X goto try_volume; X } X if (real_s_totsize - real_s_sizeleft X != OFF_FROM_OCT (cursor->oldgnu_header.offset)) X { X WARN ((0, 0, _("This volume is out of sequence"))); X volno--; X global_volno--; X goto try_volume; X } X cursor++; X } X current_block = cursor; X return; X } X else if (status < 0) X { X read_error (); X goto error_loop; /* try again */ X } X short_read: X more = record_start->buffer + status; X left = record_size - status; X again: X if (left % BLOCKSIZE == 0) X { X /* FIXME: for size=0, multi-volume support. On the first record, warn X about the problem. */ X X if (!read_full_records_option && verbose_option X && record_start_block == 0 && status > 0) X WARN ((0, 0, _("Record size = %lu blocks"), X (unsigned long) (status / BLOCKSIZE))); X X record_end = record_start + (record_size - left) / BLOCKSIZE; X X return; X } X if (read_full_records_option) X { X /* User warned us about this. Fix up. */ X X if (left > 0) X { X error2loop: X status = rmtread (archive, more, left); X if (status < 0) X { X read_error (); X goto error2loop; /* try again */ X } X if (status == 0) X FATAL_ERROR ((0, 0, _("Archive %s EOF not on block boundary"), X *archive_name_cursor)); X left -= status; X more += status; X goto again; X } X } X else X FATAL_ERROR ((0, 0, _("Only read %lu bytes from archive %s"), X (unsigned long) status, *archive_name_cursor)); } X /*-----------------------------------------------. | Flush the current buffer to/from the archive. | `-----------------------------------------------*/ X void flush_archive (void) { X record_start_block += record_end - record_start; X current_block = record_start; X record_end = record_start + blocking_factor; X X if (access_mode == ACCESS_READ && time_to_start_writing) X { X access_mode = ACCESS_WRITE; X time_to_start_writing = 0; X X if (file_to_switch_to >= 0) X { X int status = rmtclose (archive); X X if (status < 0) X WARN ((0, errno, _("WARNING: Cannot close %s (%d, %d)"), X *archive_name_cursor, archive, status)); X X archive = file_to_switch_to; X } X else X backspace_output (); X } X X switch (access_mode) X { X case ACCESS_READ: X flush_read (); X break; X X case ACCESS_WRITE: X flush_write (); X break; X X case ACCESS_UPDATE: X abort (); X } } X /*-------------------------------------------------------------------------. | Backspace the archive descriptor by one record worth. If its a tape, | | MTIOCTOP will work. If its something else, we try to seek on it. If we | | can't seek, we lose! | `-------------------------------------------------------------------------*/ X static void backspace_output (void) { #ifdef MTIOCTOP X { X struct mtop operation; X X operation.mt_op = MTBSR; X operation.mt_count = 1; X if (rmtioctl (archive, MTIOCTOP, (char *) &operation) >= 0) X return; X if (errno == EIO && rmtioctl (archive, MTIOCTOP, (char *) &operation) >= 0) X return; X } #endif X X { X off_t position = rmtlseek (archive, (off_t) 0, SEEK_CUR); X X /* Seek back to the beginning of this record and start writing there. */ X X position -= record_size; X if (rmtlseek (archive, position, SEEK_SET) != position) X { X /* Lseek failed. Try a different method. */ X X WARN ((0, 0, _("\ Could not backspace archive file; it may be unreadable without -i"))); X X /* Replace the first part of the record with NULs. */ X X if (record_start->buffer != output_start) X memset (record_start->buffer, 0, X (size_t) (output_start - record_start->buffer)); X } X } } X /*-------------------------. | Close the archive file. | `-------------------------*/ X void close_archive (void) { X if (time_to_start_writing || access_mode == ACCESS_WRITE) X flush_archive (); X #if !MSDOS X X /* Manage to fully drain a pipe we might be reading, so to not break it on X the producer after the EOF block. FIXME: one of these days, GNU tar X might become clever enough to just stop working, once there is no more X work to do, we might have to revise this area in such time. */ X X if (access_mode == ACCESS_READ X && ! _isrmt (archive) X && S_ISFIFO (archive_stat.st_mode)) X while (rmtread (archive, record_start->buffer, record_size) > 0) X continue; #endif X X if (! _isrmt (archive) && subcommand_option == DELETE_SUBCOMMAND) X { #if MSDOS X int status = write (archive, "", 0); #else X off_t pos = lseek (archive, (off_t) 0, SEEK_CUR); X int status = pos < 0 ? -1 : ftruncate (archive, pos); #endif X if (status != 0) X WARN ((0, errno, _("WARNING: Cannot truncate %s"), X *archive_name_cursor)); X } X if (verify_option) X verify_volume (); X X { X int status = rmtclose (archive); X X if (status < 0) X WARN ((0, errno, _("WARNING: Cannot close %s (%d, %d)"), X *archive_name_cursor, archive, status)); X } X #if !MSDOS X X if (child_pid) X { X WAIT_T wait_status; X pid_t child; X X /* Loop waiting for the right child to die, or for no more kids. */ X X while ((child = wait (&wait_status), child != child_pid) X && child != -1) X continue; X X if (child != -1) X { X if (WIFSIGNALED (wait_status) #if 0 X && !WIFSTOPPED (wait_status) #endif X ) X { X /* SIGPIPE is OK, everything else is a problem. */ X X if (WTERMSIG (wait_status) != SIGPIPE) X ERROR ((0, 0, _("Child died with signal %d%s"), X WTERMSIG (wait_status), X WCOREDUMP (wait_status) ? _(" (core dumped)") : "")); X } X else X { X /* Child voluntarily terminated -- but why? /bin/sh returns X SIGPIPE + 128 if its child, then do nothing. */ X X if (WEXITSTATUS (wait_status) != (SIGPIPE + 128) X && WEXITSTATUS (wait_status)) X ERROR ((0, 0, _("Child returned status %d"), X WEXITSTATUS (wait_status))); X } X } X } #endif /* !MSDOS */ X X if (current_file_name) X free (current_file_name); X if (current_link_name) X free (current_link_name); X if (save_name) X free (save_name); X free (multi_volume_option ? record_start - 2 : record_start); } X /*------------------------------------------------. | Called to initialize the global volume number. | `------------------------------------------------*/ X void init_volume_number (void) { X FILE *file = fopen (volno_file_option, "r"); X X if (file) X { X fscanf (file, "%d", &global_volno); X if (fclose (file) == EOF) X ERROR ((0, errno, "%s", volno_file_option)); X } X else if (errno != ENOENT) X ERROR ((0, errno, "%s", volno_file_option)); } X /*-------------------------------------------------------. | Called to write out the closing global volume number. | `-------------------------------------------------------*/ X void closeout_volume_number (void) { X FILE *file = fopen (volno_file_option, "w"); X X if (file) X { X fprintf (file, "%d\n", global_volno); X if (fclose (file) == EOF) X ERROR ((0, errno, "%s", volno_file_option)); X } X else X ERROR ((0, errno, "%s", volno_file_option)); } X /*-----------------------------------------------------------------------. | We've hit the end of the old volume. Close it and open the next one. | | Return nonzero on success. | `-----------------------------------------------------------------------*/ X static int new_volume (enum access_mode access) { X static FILE *read_file = NULL; X static int looped = 0; X X int status; X X if (!read_file && !info_script_option) X /* FIXME: if fopen is used, it will never be closed. */ X read_file = archive == STDIN_FILENO ? fopen (TTY_NAME, "r") : stdin; X X if (now_verifying) X return 0; X if (verify_option) X verify_volume (); X X if (status = rmtclose (archive), status < 0) X WARN ((0, errno, _("WARNING: Cannot close %s (%d, %d)"), X *archive_name_cursor, archive, status)); X X global_volno++; X volno++; X archive_name_cursor++; X if (archive_name_cursor == archive_name_array + archive_names) X { X archive_name_cursor = archive_name_array; X looped = 1; X } X tryagain: X if (looped) X { X /* We have to prompt from now on. */ X X if (info_script_option) X { X if (volno_file_option) X closeout_volume_number (); X system (info_script_option); X } X else X while (1) X { X char input_buffer[80]; X X fputc ('\007', stderr); X fprintf (stderr, X _("Prepare volume #%d for %s and hit return: "), X global_volno, *archive_name_cursor); X fflush (stderr); X X if (fgets (input_buffer, sizeof (input_buffer), read_file) == 0) X { X fprintf (stderr, _("EOF where user reply was expected")); X X if (subcommand_option != EXTRACT_SUBCOMMAND X && subcommand_option != LIST_SUBCOMMAND X && subcommand_option != DIFF_SUBCOMMAND) X WARN ((0, 0, _("WARNING: Archive is incomplete"))); X X exit (TAREXIT_FAILURE); X } X if (input_buffer[0] == '\n' X || input_buffer[0] == 'y' X || input_buffer[0] == 'Y') X break; X X switch (input_buffer[0]) X { X case '?': X { X fprintf (stderr, _("\ X n [name] Give a new file name for the next (and subsequent) volume(s)\n\ X q Abort tar\n\ X ! Spawn a subshell\n\ X ? Print this list\n")); X } X break; X X case 'q': X /* Quit. */ X X fprintf (stdlis, _("No new volume; exiting.\n")); X X if (subcommand_option != EXTRACT_SUBCOMMAND X && subcommand_option != LIST_SUBCOMMAND X && subcommand_option != DIFF_SUBCOMMAND) X WARN ((0, 0, _("WARNING: Archive is incomplete"))); X X exit (TAREXIT_FAILURE); X X case 'n': X /* Get new file name. */ X X { X char *name = &input_buffer[1]; X char *cursor; X X while (*name == ' ' || *name == '\t') X name++; X cursor = name; X while (*cursor && *cursor != '\n') X cursor++; X *cursor = '\0'; X X /* FIXME: the following allocation is never reclaimed. */ X *archive_name_cursor = xstrdup (name); X } X break; X X case '!': #if MSDOS X spawnl (P_WAIT, getenv ("COMSPEC"), "-", 0); #else /* not MSDOS */ X switch (fork ()) X { X case -1: X WARN ((0, errno, _("Cannot fork!"))); X break; X X case 0: X { X const char *shell = getenv ("SHELL"); X X if (shell == NULL) X shell = "/bin/sh"; X execlp (shell, "-sh", "-i", 0); X FATAL_ERROR ((0, errno, _("Cannot exec a shell %s"), X shell)); X } X X default: X { X WAIT_T wait_status; X X wait (&wait_status); X } X break; X } X X /* FIXME: I'm not sure if that's all that has to be done X here. (jk) */ X #endif /* not MSDOS */ X break; X } X } X } X X if (verify_option) X archive = rmtopen (*archive_name_cursor, O_RDWR | O_CREAT, MODE_RW, X rsh_command_option); X else X switch (access) X { X case ACCESS_READ: X archive = rmtopen (*archive_name_cursor, O_RDONLY, MODE_RW, X rsh_command_option); X break; X X case ACCESS_WRITE: X if (backup_option) X maybe_backup_file (*archive_name_cursor, 1); X archive = rmtcreat (*archive_name_cursor, MODE_RW, X rsh_command_option); X break; X X case ACCESS_UPDATE: X archive = rmtopen (*archive_name_cursor, O_RDWR | O_CREAT, MODE_RW, X rsh_command_option); X break; X } X X if (archive < 0) X { X WARN ((0, errno, _("Cannot open %s"), *archive_name_cursor)); X if (!verify_option && access == ACCESS_WRITE && backup_option) X undo_last_backup (); X goto tryagain; X } X #if MSDOS X setmode (archive, O_BINARY); #endif X X return 1; } SHAR_EOF $shar_touch -am 0704234799 'tar-1.13/src/buffer.c' && chmod 0444 'tar-1.13/src/buffer.c' || $echo 'restore of' 'tar-1.13/src/buffer.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/buffer.c:' 'MD5 check failed' 8ea292112c4f6762cdf73553c98a5f7c tar-1.13/src/buffer.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/buffer.c'`" test 44605 -eq "$shar_count" || $echo 'tar-1.13/src/buffer.c:' 'original size' '44605,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/compare.c ============== if test -f 'tar-1.13/src/compare.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/compare.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/compare.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/compare.c' && /* Diff files from a tar archive. X Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. X Written by John Gilmore, on 1987-04-30. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #if HAVE_LINUX_FD_H # include #endif X #include "common.h" #include "rmt.h" X /* Spare space for messages, hopefully safe even after gettext. */ #define MESSAGE_BUFFER_SIZE 100 X /* Nonzero if we are verifying at the moment. */ int now_verifying = 0; X /* File descriptor for the file we are diffing. */ static int diff_handle; X /* Area for reading file contents into. */ static char *diff_buffer = NULL; X /*--------------------------------. | Initialize for a diff operation | `--------------------------------*/ X void diff_init (void) { X diff_buffer = (char *) valloc (record_size); X if (!diff_buffer) X FATAL_ERROR ((0, 0, X _("Could not allocate memory for diff buffer of %lu bytes"), X (unsigned long) record_size)); } X /*------------------------------------------------------------------------. | Sigh about something that differs by writing a MESSAGE to stdlis, given | | MESSAGE is not NULL. Also set the exit status if not already. | `------------------------------------------------------------------------*/ X static void report_difference (const char *message) { X if (message) X fprintf (stdlis, "%s: %s\n", current_file_name, message); X X if (exit_status == TAREXIT_SUCCESS) X exit_status = TAREXIT_DIFFERS; } X /*-----------------------------------------------------------------------. | Takes a buffer returned by read_and_process and does nothing with it. | `-----------------------------------------------------------------------*/ X /* Yes, I know. SIZE and DATA are unused in this function. Some compilers X may even report it. That's OK, just relax! */ X static int process_noop (size_t size, char *data) { X return 1; } X /*---. | ? | `---*/ X static int process_rawdata (size_t bytes, char *buffer) { X ssize_t status = safe_read (diff_handle, diff_buffer, bytes); X char message[MESSAGE_BUFFER_SIZE]; X X if (status != bytes) X { X if (status < 0) X { X WARN ((0, errno, _("Cannot read %s"), current_file_name)); X report_difference (NULL); X } X else X { X sprintf (message, _("Could only read %lu of %lu bytes"), X (unsigned long) status, (unsigned long) bytes); X report_difference (message); X } X return 0; X } X X if (memcmp (buffer, diff_buffer, bytes)) X { X report_difference (_("Data differs")); X return 0; X } X X return 1; } X /*---. | ? | `---*/ X /* Directory contents, only for GNUTYPE_DUMPDIR. */ X static char *dumpdir_cursor; X static int process_dumpdir (size_t bytes, char *buffer) { X if (memcmp (buffer, dumpdir_cursor, bytes)) X { X report_difference (_("Data differs")); X return 0; X } X X dumpdir_cursor += bytes; X return 1; } X /*------------------------------------------------------------------------. | Some other routine wants SIZE bytes in the archive. For each chunk of | | the archive, call PROCESSOR with the size of the chunk, and the address | | of the chunk it can work with. The PROCESSOR should return nonzero for | | success. It it return error once, continue skipping without calling | | PROCESSOR anymore. | `------------------------------------------------------------------------*/ X static void read_and_process (size_t size, int (*processor) (size_t, char *)) { X union block *data_block; X size_t data_size; X X if (multi_volume_option) X save_sizeleft = size; X while (size) X { X data_block = find_next_block (); X if (data_block == NULL) X { X ERROR ((0, 0, _("Unexpected EOF on archive file"))); X return; X } X X data_size = available_space_after (data_block); X if (data_size > size) X data_size = size; X if (!(*processor) (data_size, data_block->buffer)) X processor = process_noop; X set_next_block_after ((union block *) X (data_block->buffer + data_size - 1)); X size -= data_size; X if (multi_volume_option) X save_sizeleft -= data_size; X } } X /*---. | ? | `---*/ X /* JK This routine should be used more often than it is ... look into X that. Anyhow, what it does is translate the sparse information on the X header, and in any subsequent extended headers, into an array of X structures with true numbers, as opposed to character strings. It X simply makes our life much easier, doing so many comparisong and such. X */ X static void fill_in_sparse_array (void) { X int counter; X X /* Allocate space for our scratch space; it's initially 10 elements X long, but can change in this routine if necessary. */ X X sp_array_size = 10; X sparsearray = (struct sp_array *) xmalloc (sp_array_size * sizeof (struct sp_array)); X X /* There are at most five of these structures in the header itself; X read these in first. */ X X for (counter = 0; counter < SPARSES_IN_OLDGNU_HEADER; counter++) X { X /* Compare to 0, or use !(int)..., for Pyramid's dumb compiler. */ X if (current_header->oldgnu_header.sp[counter].numbytes == 0) X break; X X sparsearray[counter].offset = X OFF_FROM_OCT (current_header->oldgnu_header.sp[counter].offset); X sparsearray[counter].numbytes = X SIZE_FROM_OCT (current_header->oldgnu_header.sp[counter].numbytes); X } X X /* If the header's extended, we gotta read in exhdr's till we're done. */ X X if (current_header->oldgnu_header.isextended) X { X /* How far into the sparsearray we are `so far'. */ X static int so_far_ind = SPARSES_IN_OLDGNU_HEADER; X union block *exhdr; X X while (1) X { X exhdr = find_next_block (); X for (counter = 0; counter < SPARSES_IN_SPARSE_HEADER; counter++) X { X if (counter + so_far_ind > sp_array_size - 1) X { X /* We just ran out of room in our scratch area - X realloc it. */ X X sp_array_size *= 2; X sparsearray = (struct sp_array *) X xrealloc (sparsearray, X sp_array_size * sizeof (struct sp_array)); X } X X /* Convert the character strings into offsets and sizes. */ X X sparsearray[counter + so_far_ind].offset = X OFF_FROM_OCT (exhdr->sparse_header.sp[counter].offset); X sparsearray[counter + so_far_ind].numbytes = X SIZE_FROM_OCT (exhdr->sparse_header.sp[counter].numbytes); X } X X /* If this is the last extended header for this file, we can X stop. */ X X if (!exhdr->sparse_header.isextended) X break; X X so_far_ind += SPARSES_IN_SPARSE_HEADER; X set_next_block_after (exhdr); X } X X /* Be sure to skip past the last one. */ X X set_next_block_after (exhdr); X } } X /*---. | ? | `---*/ X /* JK Diff'ing a sparse file with its counterpart on the tar file is a X bit of a different story than a normal file. First, we must know what X areas of the file to skip through, i.e., we need to contruct a X sparsearray, which will hold all the information we need. We must X compare small amounts of data at a time as we find it. */ X /* FIXME: This does not look very solid to me, at first glance. Zero areas X are not checked, spurious sparse entries seemingly goes undetected, and X I'm not sure overall identical sparsity is verified. */ X static void diff_sparse_files (off_t size_of_file) { X off_t remaining_size = size_of_file; X char *buffer = (char *) xmalloc (BLOCKSIZE * sizeof (char)); X size_t buffer_size = BLOCKSIZE; X union block *data_block = NULL; X int counter = 0; X int different = 0; X X fill_in_sparse_array (); X X while (remaining_size > 0) X { X ssize_t status; X size_t chunk_size; X off_t offset; X #if 0 X off_t amount_read = 0; #endif X X data_block = find_next_block (); X chunk_size = sparsearray[counter].numbytes; X if (!chunk_size) X break; X X offset = sparsearray[counter].offset; X if (lseek (diff_handle, offset, SEEK_SET) < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X WARN ((0, errno, _("Cannot seek to %s in file %s"), X STRINGIFY_BIGINT (offset, buf), current_file_name)); X report_difference (NULL); X } X X /* Take care to not run out of room in our buffer. */ X X while (buffer_size < chunk_size) X { X if (buffer_size * 2 < buffer_size) X FATAL_ERROR ((0, 0, _("Memory exhausted"))); X buffer_size *= 2; X buffer = (char *) xrealloc (buffer, buffer_size * sizeof (char)); X } X X while (chunk_size > BLOCKSIZE) X { X if (status = safe_read (diff_handle, buffer, BLOCKSIZE), X status != BLOCKSIZE) X { X if (status < 0) X { X WARN ((0, errno, _("Cannot read %s"), current_file_name)); X report_difference (NULL); X } X else X { X char message[MESSAGE_BUFFER_SIZE]; X X sprintf (message, _("Could only read %lu of %lu bytes"), X (unsigned long) status, (unsigned long) chunk_size); X report_difference (message); X } X break; X } X X if (memcmp (buffer, data_block->buffer, BLOCKSIZE)) X { X different = 1; X break; X } X X chunk_size -= status; X remaining_size -= status; X set_next_block_after (data_block); X data_block = find_next_block (); X } X if (status = safe_read (diff_handle, buffer, chunk_size), X status != chunk_size) X { X if (status < 0) X { X WARN ((0, errno, _("Cannot read %s"), current_file_name)); X report_difference (NULL); X } X else X { X char message[MESSAGE_BUFFER_SIZE]; X X sprintf (message, _("Could only read %lu of %lu bytes"), X (unsigned long) status, (unsigned long) chunk_size); X report_difference (message); X } X break; X } X X if (memcmp (buffer, data_block->buffer, chunk_size)) X { X different = 1; X break; X } #if 0 X amount_read += chunk_size; X if (amount_read >= BLOCKSIZE) X { X amount_read = 0; X set_next_block_after (data_block); X data_block = find_next_block (); X } #endif X set_next_block_after (data_block); X counter++; X remaining_size -= chunk_size; X } X #if 0 X /* If the number of bytes read isn't the number of bytes supposedly in X the file, they're different. */ X X if (amount_read != size_of_file) X different = 1; #endif X X set_next_block_after (data_block); X free (sparsearray); X X if (different) X report_difference (_("Data differs")); } X /*---------------------------------------------------------------------. | Call either stat or lstat over STAT_DATA, depending on --dereference | | (-h), for a file which should exist. Diagnose any problem. Return | | nonzero for success, zero otherwise. | `---------------------------------------------------------------------*/ X static int get_stat_data (struct stat *stat_data) { X int status = (dereference_option X ? stat (current_file_name, stat_data) X : lstat (current_file_name, stat_data)); X X if (status < 0) X { X if (errno == ENOENT) X report_difference (_("File does not exist")); X else X { X ERROR ((0, errno, _("Cannot stat file %s"), current_file_name)); X report_difference (NULL); X } #if 0 X skip_file (current_stat.st_size); #endif X return 0; X } X X return 1; } X /*----------------------------------. | Diff a file against the archive. | `----------------------------------*/ X void diff_archive (void) { X struct stat stat_data; X size_t name_length; X int status; X X errno = EPIPE; /* FIXME: errno should be read-only */ X /* FIXME: remove perrors */ X X set_next_block_after (current_header); X decode_header (current_header, ¤t_stat, ¤t_format, 1); X X /* Print the block from `current_header' and `current_stat'. */ X X if (verbose_option) X { X if (now_verifying) X fprintf (stdlis, _("Verify ")); X print_header (); X } X X switch (current_header->header.typeflag) X { X default: X WARN ((0, 0, _("Unknown file type '%c' for %s, diffed as normal file"), X current_header->header.typeflag, current_file_name)); X /* Fall through. */ X X case AREGTYPE: X case REGTYPE: X case GNUTYPE_SPARSE: X case CONTTYPE: X X /* Appears to be a file. See if it's really a directory. */ X X name_length = strlen (current_file_name) - 1; X if (current_file_name[name_length] == '/') X goto really_dir; X X if (!get_stat_data (&stat_data)) X { X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X goto quit; X } X X if (!S_ISREG (stat_data.st_mode)) X { X report_difference (_("Not a regular file")); X skip_file (current_stat.st_size); X goto quit; X } X X stat_data.st_mode &= MODE_ALL; X if (stat_data.st_mode != current_stat.st_mode) X report_difference (_("Mode differs")); X #if !MSDOS X /* stat() in djgpp's C library gives a constant number of 42 as the X uid and gid of a file. So, comparing an FTP'ed archive just after X unpack would fail on MSDOS. */ X if (stat_data.st_uid != current_stat.st_uid) X report_difference (_("Uid differs")); X if (stat_data.st_gid != current_stat.st_gid) X report_difference (_("Gid differs")); #endif X X if (stat_data.st_mtime != current_stat.st_mtime) X report_difference (_("Mod time differs")); X if (current_header->header.typeflag != GNUTYPE_SPARSE && X stat_data.st_size != current_stat.st_size) X { X report_difference (_("Size differs")); X skip_file (current_stat.st_size); X goto quit; X } X X diff_handle = open (current_file_name, O_NDELAY | O_RDONLY | O_BINARY); X X if (diff_handle < 0 && !absolute_names_option) X { X char *tmpbuf = xmalloc (strlen (current_file_name) + 2); X X *tmpbuf = '/'; X strcpy (tmpbuf + 1, current_file_name); X diff_handle = open (tmpbuf, O_NDELAY | O_RDONLY); X free (tmpbuf); X } X if (diff_handle < 0) X { X ERROR ((0, errno, _("Cannot open %s"), current_file_name)); X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X report_difference (NULL); X goto quit; X } X X /* Need to treat sparse files completely differently here. */ X X if (current_header->header.typeflag == GNUTYPE_SPARSE) X diff_sparse_files (current_stat.st_size); X else X { X if (multi_volume_option) X { X assign_string (&save_name, current_file_name); X save_totsize = current_stat.st_size; X /* save_sizeleft is set in read_and_process. */ X } X X read_and_process (current_stat.st_size, process_rawdata); X X if (multi_volume_option) X assign_string (&save_name, NULL); X } X X status = close (diff_handle); X if (status < 0) X ERROR ((0, errno, _("Error while closing %s"), current_file_name)); X X quit: X break; X #if !MSDOS X case LNKTYPE: X { X dev_t dev; X ino_t ino; X X if (!get_stat_data (&stat_data)) X break; X X dev = stat_data.st_dev; X ino = stat_data.st_ino; X status = stat (current_link_name, &stat_data); X if (status < 0) X { X if (errno == ENOENT) X report_difference (_("Does not exist")); X else X { X WARN ((0, errno, _("Cannot stat file %s"), current_file_name)); X report_difference (NULL); X } X break; X } X X if (stat_data.st_dev != dev || stat_data.st_ino != ino) X { X char *message = (char *) X xmalloc (MESSAGE_BUFFER_SIZE + strlen (current_link_name)); X X sprintf (message, _("Not linked to %s"), current_link_name); X report_difference (message); X free (message); X break; X } X X break; X } #endif /* not MSDOS */ X #ifdef S_ISLNK X case SYMTYPE: X { X char linkbuf[NAME_FIELD_SIZE + 3]; /* FIXME: may be too short. */ X X status = readlink (current_file_name, linkbuf, (sizeof linkbuf) - 1); X X if (status < 0) X { X if (errno == ENOENT) X report_difference (_("No such file or directory")); X else X { X WARN ((0, errno, _("Cannot read link %s"), current_file_name)); X report_difference (NULL); X } X break; X } X X linkbuf[status] = '\0'; /* null-terminate it */ X if (strncmp (current_link_name, linkbuf, (size_t) status) != 0) X report_difference (_("Symlink differs")); X X break; X } #endif /* not S_ISLNK */ X #ifdef S_IFCHR X case CHRTYPE: X current_stat.st_mode |= S_IFCHR; X goto check_node; #endif /* not S_IFCHR */ X #ifdef S_IFBLK X /* If local system doesn't support block devices, use default case. */ X X case BLKTYPE: X current_stat.st_mode |= S_IFBLK; X goto check_node; #endif /* not S_IFBLK */ X #ifdef S_ISFIFO X /* If local system doesn't support FIFOs, use default case. */ X X case FIFOTYPE: # ifdef S_IFIFO X current_stat.st_mode |= S_IFIFO; # endif X current_stat.st_rdev = 0; /* FIXME: do we need this? */ X goto check_node; #endif /* S_ISFIFO */ X X check_node: X /* FIXME: deal with umask. */ X X if (!get_stat_data (&stat_data)) X break; X X if (current_stat.st_rdev != stat_data.st_rdev) X { X report_difference (_("Device numbers changed")); X break; X } X X if ( #ifdef S_IFMT X current_stat.st_mode != stat_data.st_mode #else X /* POSIX lossage. */ X ((current_stat.st_mode & MODE_ALL) X != (stat_data.st_mode & MODE_ALL)) #endif X ) X { X report_difference (_("Mode or device-type changed")); X break; X } X X break; X X case GNUTYPE_DUMPDIR: X { X char *dumpdir_buffer = get_directory_contents (current_file_name, X (dev_t) 0); X X if (multi_volume_option) X { X assign_string (&save_name, current_file_name); X save_totsize = current_stat.st_size; X /* save_sizeleft is set in read_and_process. */ X } X X if (dumpdir_buffer) X { X dumpdir_cursor = dumpdir_buffer; X read_and_process (current_stat.st_size, process_dumpdir); X free (dumpdir_buffer); X } X else X read_and_process (current_stat.st_size, process_noop); X X if (multi_volume_option) X assign_string (&save_name, NULL); X /* Fall through. */ X } X X case DIRTYPE: X /* Check for trailing /. */ X X name_length = strlen (current_file_name) - 1; X X really_dir: X while (name_length && current_file_name[name_length] == '/') X current_file_name[name_length--] = '\0'; /* zap / */ X X if (!get_stat_data (&stat_data)) X break; X X if (!S_ISDIR (stat_data.st_mode)) X { X report_difference (_("No longer a directory")); X break; X } X X if ((stat_data.st_mode & MODE_ALL) != (current_stat.st_mode & MODE_ALL)) X report_difference (_("Mode differs")); X break; X X case GNUTYPE_VOLHDR: X break; X X case GNUTYPE_MULTIVOL: X { X off_t offset; X X name_length = strlen (current_file_name) - 1; X if (current_file_name[name_length] == '/') X goto really_dir; X X if (!get_stat_data (&stat_data)) X break; X X if (!S_ISREG (stat_data.st_mode)) X { X report_difference (_("Not a regular file")); X skip_file (current_stat.st_size); X break; X } X X stat_data.st_mode &= MODE_ALL; X offset = OFF_FROM_OCT (current_header->oldgnu_header.offset); X if (stat_data.st_size != current_stat.st_size + offset) X { X report_difference (_("Size differs")); X skip_file (current_stat.st_size); X break; X } X X diff_handle = open (current_file_name, O_NDELAY | O_RDONLY | O_BINARY); X X if (diff_handle < 0) X { X WARN ((0, errno, _("Cannot open file %s"), current_file_name)); X report_difference (NULL); X skip_file (current_stat.st_size); X break; X } X X if (lseek (diff_handle, offset, SEEK_SET) < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X WARN ((0, errno, _("Cannot seek to %s in file %s"), X STRINGIFY_BIGINT (offset, buf), current_file_name)); X report_difference (NULL); X break; X } X X if (multi_volume_option) X { X assign_string (&save_name, current_file_name); X save_totsize = stat_data.st_size; X /* save_sizeleft is set in read_and_process. */ X } X X read_and_process (current_stat.st_size, process_rawdata); X X if (multi_volume_option) X assign_string (&save_name, NULL); X X status = close (diff_handle); X if (status < 0) X ERROR ((0, errno, _("Error while closing %s"), current_file_name)); X X break; X } X } } X /*---. | ? | `---*/ X void verify_volume (void) { X if (!diff_buffer) X diff_init (); X X /* Verifying an archive is meant to check if the physical media got it X correctly, so try to defeat clever in-memory buffering pertaining to X this particular media. On Linux, for example, the floppy drive would X not even be accessed for the whole verification. X X The code was using fsync only when the ioctl is unavailable, but X Marty Leisner says that the ioctl does not work when not preceded by X fsync. So, until we know better, or maybe to please Marty, let's do it X the unbelievable way :-). */ X #if HAVE_FSYNC X fsync (archive); #endif #ifdef FDFLUSH X ioctl (archive, FDFLUSH); #endif X #ifdef MTIOCTOP X { X struct mtop operation; X int status; X X operation.mt_op = MTBSF; X operation.mt_count = 1; X if (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), status < 0) X { X if (errno != EIO X || (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), X status < 0)) X { #endif X if (rmtlseek (archive, (off_t) 0, SEEK_SET) != 0) X { X /* Lseek failed. Try a different method. */ X X WARN ((0, errno, X _("Could not rewind archive file for verify"))); X return; X } #ifdef MTIOCTOP X } X } X } #endif X X access_mode = ACCESS_READ; X now_verifying = 1; X X flush_read (); X while (1) X { X enum read_header status = read_header (); X X if (status == HEADER_FAILURE) X { X int counter = 0; X X while (status == HEADER_FAILURE); X { X counter++; X status = read_header (); X } X ERROR ((0, 0, X _("VERIFY FAILURE: %d invalid header(s) detected"), counter)); X } X if (status == HEADER_ZERO_BLOCK || status == HEADER_END_OF_FILE) X break; X X diff_archive (); X } X X access_mode = ACCESS_WRITE; X now_verifying = 0; } SHAR_EOF $shar_touch -am 0704230799 'tar-1.13/src/compare.c' && chmod 0444 'tar-1.13/src/compare.c' || $echo 'restore of' 'tar-1.13/src/compare.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/compare.c:' 'MD5 check failed' e7f0434c9a75fcd1c1d142d8f8895309 tar-1.13/src/compare.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/compare.c'`" test 22294 -eq "$shar_count" || $echo 'tar-1.13/src/compare.c:' 'original size' '22294,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/create.c ============== if test -f 'tar-1.13/src/create.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/create.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/create.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/create.c' && /* Create a tar archive. X Copyright 1985, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. X Written by John Gilmore, on 1985-08-25. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #if !MSDOS # include # include #endif X #if HAVE_UTIME_H # include #else struct utimbuf X { X long actime; X long modtime; X }; #endif X #include "common.h" X #ifndef MSDOS extern dev_t ar_dev; extern ino_t ar_ino; #endif X extern struct name *gnu_list_name; X /* This module is the only one that cares about `struct link's. */ X struct link X { X struct link *next; X dev_t dev; X ino_t ino; X short linkcount; X char name[1]; X }; X struct link *linklist = NULL; /* points to first link in list */ X X /*------------------------------------------------------------------------. | Convert VALUE (with substitute SUBSTITUTE if VALUE is out of range) | | into a size-SIZE field at WHERE, including a | | trailing space. For example, 3 for SIZE means two digits and a space. | | | | We assume the trailing NUL is already there and don't fill it in. This | | fact is used by start_header and finish_header, so don't change it! | `------------------------------------------------------------------------*/ X /* Output VALUE in octal, using SUBSTITUTE if value won't fit. X Output to buffer WHERE with size SIZE. X TYPE is the kind of value being output (useful for diagnostics). X Prefer SIZE - 1 octal digits (with leading '0's), followed by '\0'; X but if SIZE octal digits would fit, omit the '\0'. */ X static void to_oct (uintmax_t value, uintmax_t substitute, char *where, size_t size, const char *type) { X uintmax_t v = value; X size_t i = size; X # define MAX_OCTAL_VAL_WITH_DIGITS(digits) \ X ((digits) * 3 < sizeof (uintmax_t) * CHAR_BIT \ X ? ((uintmax_t) 1 << ((digits) * 3)) - 1 \ X : (uintmax_t) -1) X X /* Output a trailing NUL unless the value is too large. */ X if (value <= MAX_OCTAL_VAL_WITH_DIGITS (size - 1)) X where[--i] = '\0'; X X /* Produce the digits -- at least one. */ X X do X { X where[--i] = '0' + (int) (v & 7); /* one octal digit */ X v >>= 3; X } X while (i != 0 && v != 0); X X /* Leading zeros, if necessary. */ X while (i != 0) X where[--i] = '0'; X X if (v != 0) X { X uintmax_t maxval = MAX_OCTAL_VAL_WITH_DIGITS (size); X char buf1[UINTMAX_STRSIZE_BOUND]; X char buf2[UINTMAX_STRSIZE_BOUND]; X char buf3[UINTMAX_STRSIZE_BOUND]; X char *value_string = STRINGIFY_BIGINT (value, buf1); X char *maxval_string = STRINGIFY_BIGINT (maxval, buf2); X if (substitute) X { X substitute &= maxval; X WARN ((0, 0, _("%s value %s too large (max=%s); substituting %s"), X type, value_string, maxval_string, X STRINGIFY_BIGINT (substitute, buf3))); X to_oct (substitute, (uintmax_t) 0, where, size, type); X } X else X ERROR ((0, 0, _("%s value %s too large (max=%s)"), X type, value_string, maxval_string)); X } } #ifndef GID_NOBODY #define GID_NOBODY 0 #endif void gid_to_oct (gid_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) GID_NOBODY, p, s, "gid_t"); } void major_to_oct (major_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "major_t"); } void minor_to_oct (minor_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "minor_t"); } void mode_to_oct (mode_t v, char *p, size_t s) { X /* In the common case where the internal and external mode bits are the same, X propagate all unknown bits to the external mode. X This matches historical practice. X Otherwise, just copy the bits we know about. */ X uintmax_t u = X ((S_ISUID == TSUID && S_ISGID == TSGID && S_ISVTX == TSVTX X && S_IRUSR == TUREAD && S_IWUSR == TUWRITE && S_IXUSR == TUEXEC X && S_IRGRP == TGREAD && S_IWGRP == TGWRITE && S_IXGRP == TGEXEC X && S_IROTH == TOREAD && S_IWOTH == TOWRITE && S_IXOTH == TOEXEC) X ? v X : ((v & S_ISUID ? TSUID : 0) X | (v & S_ISGID ? TSGID : 0) X | (v & S_ISVTX ? TSVTX : 0) X | (v & S_IRUSR ? TUREAD : 0) X | (v & S_IWUSR ? TUWRITE : 0) X | (v & S_IXUSR ? TUEXEC : 0) X | (v & S_IRGRP ? TGREAD : 0) X | (v & S_IWGRP ? TGWRITE : 0) X | (v & S_IXGRP ? TGEXEC : 0) X | (v & S_IROTH ? TOREAD : 0) X | (v & S_IWOTH ? TOWRITE : 0) X | (v & S_IXOTH ? TOEXEC : 0))); X to_oct (u, (uintmax_t) 0, p, s, "mode_t"); } void off_to_oct (off_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "off_t"); } void size_to_oct (size_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "size_t"); } void time_to_oct (time_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "time_t"); } #ifndef UID_NOBODY #define UID_NOBODY 0 #endif void uid_to_oct (uid_t v, char *p, size_t s) { X to_oct ((uintmax_t) v, (uintmax_t) UID_NOBODY, p, s, "uid_t"); } void uintmax_to_oct (uintmax_t v, char *p, size_t s) { X to_oct (v, (uintmax_t) 0, p, s, "uintmax_t"); } X /* Writing routines. */ X /*-----------------------------------------------------------------------. | Just zeroes out the buffer so we don't confuse ourselves with leftover | | data. | `-----------------------------------------------------------------------*/ X static void clear_buffer (char *buffer) { X memset (buffer, 0, BLOCKSIZE); } X /*-------------------------------------------------------------------------. | Write the EOT block(s). We actually zero at least one block, through | | the end of the record. Old tar, as previous versions of GNU tar, writes | | garbage after two zeroed blocks. | `-------------------------------------------------------------------------*/ X void write_eot (void) { X union block *pointer = find_next_block (); X X if (pointer) X { X size_t space = available_space_after (pointer); X X memset (pointer->buffer, 0, space); X set_next_block_after (pointer); X } } X /*-----------------------------------------------------. | Write a GNUTYPE_LONGLINK or GNUTYPE_LONGNAME block. | `-----------------------------------------------------*/ X /* FIXME: Cross recursion between start_header and write_long! */ X static union block *start_header PARAMS ((const char *, struct stat *)); X static void write_long (const char *p, char type) { X size_t size = strlen (p) + 1; X size_t bufsize; X union block *header; X struct stat foo; X X memset (&foo, 0, sizeof foo); X foo.st_size = size; X X header = start_header ("././@LongLink", &foo); X header->header.typeflag = type; X finish_header (header); X X header = find_next_block (); X X bufsize = available_space_after (header); X X while (bufsize < size) X { X memcpy (header->buffer, p, bufsize); X p += bufsize; X size -= bufsize; X set_next_block_after (header + (bufsize - 1) / BLOCKSIZE); X header = find_next_block (); X bufsize = available_space_after (header); X } X memcpy (header->buffer, p, size); X memset (header->buffer + size, 0, bufsize - size); X set_next_block_after (header + (size - 1) / BLOCKSIZE); } X /* Header handling. */ X /*---------------------------------------------------------------------. | Make a header block for the file name whose stat info is st. Return | | header pointer for success, NULL if the name is too long. | `---------------------------------------------------------------------*/ X static union block * start_header (const char *name, struct stat *st) { X union block *header; X X if (!absolute_names_option) X { X static int warned_once = 0; X #if MSDOS X if (name[1] == ':') X { X name += 2; X if (!warned_once) X { X warned_once = 1; X WARN ((0, 0, _("Removing drive spec from names in the archive"))); X } X } #endif X X while (*name == '/') X { X name++; /* force relative path */ X if (!warned_once) X { X warned_once = 1; X WARN ((0, 0, _("\ Removing leading `/' from absolute path names in the archive"))); X } X } X } X X /* Check the file name and put it in the block. */ X X if (strlen (name) >= (size_t) NAME_FIELD_SIZE) X write_long (name, GNUTYPE_LONGNAME); X header = find_next_block (); X memset (header->buffer, 0, sizeof (union block)); X X assign_string (¤t_file_name, name); X X strncpy (header->header.name, name, NAME_FIELD_SIZE); X header->header.name[NAME_FIELD_SIZE - 1] = '\0'; X X /* Override some stat fields, if requested to do so. */ X X if (owner_option != (uid_t) -1) X st->st_uid = owner_option; X if (group_option != (gid_t) -1) X st->st_gid = group_option; X if (mode_option) X st->st_mode = ((st->st_mode & S_IFMT) X | mode_adjust (st->st_mode, mode_option)); X X /* Paul Eggert tried the trivial test ($WRITER cf a b; $READER tvf a) X for a few tars and came up with the following interoperability X matrix: X X WRITER X 1 2 3 4 5 6 7 8 9 READER X . . . . . . . . . 1 = SunOS 4.2 tar X # . . # # . . # # 2 = NEC SVR4.0.2 tar X . . . # # . . # . 3 = Solaris 2.1 tar X . . . . . . . . . 4 = GNU tar 1.11.1 X . . . . . . . . . 5 = HP-UX 8.07 tar X . . . . . . . . . 6 = Ultrix 4.1 X . . . . . . . . . 7 = AIX 3.2 X . . . . . . . . . 8 = Hitachi HI-UX 1.03 X . . . . . . . . . 9 = Omron UNIOS-B 4.3BSD 1.60Beta X X . = works X # = ``impossible file type'' X X The following mask for old archive removes the `#'s in column 4 X above, thus making GNU tar both a universal donor and a universal X acceptor for Paul's test. */ X X if (archive_format == V7_FORMAT) X MODE_TO_OCT (st->st_mode & MODE_ALL, header->header.mode); X else X MODE_TO_OCT (st->st_mode, header->header.mode); X X UID_TO_OCT (st->st_uid, header->header.uid); X GID_TO_OCT (st->st_gid, header->header.gid); X OFF_TO_OCT (st->st_size, header->header.size); X TIME_TO_OCT (st->st_mtime, header->header.mtime); X X if (incremental_option) X if (archive_format == OLDGNU_FORMAT) X { X TIME_TO_OCT (st->st_atime, header->oldgnu_header.atime); X TIME_TO_OCT (st->st_ctime, header->oldgnu_header.ctime); X } X X header->header.typeflag = archive_format == V7_FORMAT ? AREGTYPE : REGTYPE; X X switch (archive_format) X { X case DEFAULT_FORMAT: X case V7_FORMAT: X break; X X case OLDGNU_FORMAT: X /* Overwrite header->header.magic and header.version in one blow. */ X strcpy (header->header.magic, OLDGNU_MAGIC); X break; X X case POSIX_FORMAT: X case GNU_FORMAT: X strncpy (header->header.magic, TMAGIC, TMAGLEN); X strncpy (header->header.version, TVERSION, TVERSLEN); X break; X } X X if (archive_format == V7_FORMAT || numeric_owner_option) X { X /* header->header.[ug]name are left as the empty string. */ X } X else X { X uid_to_uname (st->st_uid, header->header.uname); X gid_to_gname (st->st_gid, header->header.gname); X } X X return header; } X /*-------------------------------------------------------------------------. | Finish off a filled-in header block and write it out. We also print the | | file name and/or full info if verbose is on. | `-------------------------------------------------------------------------*/ X void finish_header (union block *header) { X size_t i; X int sum; X char *p; X X memcpy (header->header.chksum, CHKBLANKS, sizeof (header->header.chksum)); X X sum = 0; X p = header->buffer; X for (i = sizeof (*header); i-- != 0; ) X /* We can't use unsigned char here because of old compilers, e.g. V7. */ X sum += 0xFF & *p++; X X /* Fill in the checksum field. It's formatted differently from the X other fields: it has [6] digits, a null, then a space -- rather than X digits, then a null. We use to_oct. X The final space is already there, from X checksumming, and to_oct doesn't modify it. X X This is a fast way to do: X X sprintf(header->header.chksum, "%6o", sum); */ X X uintmax_to_oct ((uintmax_t) sum, header->header.chksum, 7); X X set_next_block_after (header); X X if (verbose_option X && header->header.typeflag != GNUTYPE_LONGLINK X && header->header.typeflag != GNUTYPE_LONGNAME) X { X /* These globals are parameters to print_header, sigh. */ X X current_header = header; X /* current_stat is already set up. */ X current_format = archive_format; X print_header (); X } } X /* Sparse file processing. */ X /*-------------------------------------------------------------------------. | Takes a blockful of data and basically cruises through it to see if it's | | made *entirely* of zeros, returning a 0 the instant it finds something | | that is a nonzero, i.e., useful data. | `-------------------------------------------------------------------------*/ X static int zero_block_p (char *buffer) { X int counter; X X for (counter = 0; counter < BLOCKSIZE; counter++) X if (buffer[counter] != '\0') X return 0; X return 1; } X /*---. | ? | `---*/ X static void init_sparsearray (void) { X int counter; X X sp_array_size = 10; X X /* Make room for our scratch space -- initially is 10 elts long. */ X X sparsearray = (struct sp_array *) X xmalloc (sp_array_size * sizeof (struct sp_array)); X for (counter = 0; counter < sp_array_size; counter++) X { X sparsearray[counter].offset = 0; X sparsearray[counter].numbytes = 0; X } } X /*---. | ? | `---*/ X static void find_new_file_size (off_t *filesize, int highest_index) { X int counter; X X *filesize = 0; X for (counter = 0; X sparsearray[counter].numbytes && counter <= highest_index; X counter++) X *filesize += sparsearray[counter].numbytes; } X /*-----------------------------------------------------------------------. | Make one pass over the file NAME, studying where any non-zero data is, | | that is, how far into the file each instance of data is, and how many | | bytes are there. Save this information in the sparsearray, which will | | later be translated into header information. | `-----------------------------------------------------------------------*/ X /* There is little point in trimming small amounts of null data at the head X and tail of blocks, only avoid dumping full null blocks. */ X /* FIXME: this routine might accept bits of algorithmic cleanup, it is X too kludgey for my taste... */ X static int deal_with_sparse (char *name, union block *header) { X size_t numbytes = 0; X off_t offset = 0; X int file; X int sparse_index = 0; X ssize_t count; X char buffer[BLOCKSIZE]; X X if (archive_format == OLDGNU_FORMAT) X header->oldgnu_header.isextended = 0; X X if (file = open (name, O_RDONLY), file < 0) X /* This problem will be caught later on, so just return. */ X return 0; X X init_sparsearray (); X clear_buffer (buffer); X X while (count = safe_read (file, buffer, sizeof buffer), count != 0) X { X /* Realloc the scratch area as necessary. FIXME: should reallocate X only at beginning of a new instance of non-zero data. */ X X if (sparse_index > sp_array_size - 1) X { X X sparsearray = (struct sp_array *) X xrealloc (sparsearray, X 2 * sp_array_size * sizeof (struct sp_array)); X sp_array_size *= 2; X } X X /* Process one block. */ X X if (count == sizeof buffer) X X if (zero_block_p (buffer)) X { X if (numbytes) X { X sparsearray[sparse_index++].numbytes = numbytes; X numbytes = 0; X } X } X else X { X if (!numbytes) X sparsearray[sparse_index].offset = offset; X numbytes += count; X } X X else X X /* Since count < sizeof buffer, we have the last bit of the file. */ X X if (!zero_block_p (buffer)) X { X if (!numbytes) X sparsearray[sparse_index].offset = offset; X numbytes += count; X } X else X /* The next two lines are suggested by Andreas Degert, who says X they are required for trailing full blocks to be written to the X archive, when all zeroed. Yet, it seems to me that the case X does not apply. Further, at restore time, the file is not as X sparse as it should. So, some serious cleanup is *also* needed X in this area. Just one more... :-(. FIXME. */ X if (numbytes) X numbytes += count; X X /* Prepare for next block. */ X X offset += count; X /* FIXME: do not clear unless necessary. */ X clear_buffer (buffer); X } X X if (numbytes) X sparsearray[sparse_index++].numbytes = numbytes; X else X { X sparsearray[sparse_index].offset = offset - 1; X sparsearray[sparse_index++].numbytes = 1; X } X X close (file); X return sparse_index - 1; } X /*---. | ? | `---*/ X static int finish_sparse_file (int file, off_t *sizeleft, off_t fullsize, char *name) { X union block *start; X size_t bufsize; X int sparse_index = 0; X ssize_t count; X X while (*sizeleft > 0) X { X start = find_next_block (); X memset (start->buffer, 0, BLOCKSIZE); X bufsize = sparsearray[sparse_index].numbytes; X if (!bufsize) X { X /* We blew it, maybe. */ X char buf1[UINTMAX_STRSIZE_BOUND]; X char buf2[UINTMAX_STRSIZE_BOUND]; X X ERROR ((0, 0, _("Wrote %s of %s bytes to file %s"), X STRINGIFY_BIGINT (fullsize - *sizeleft, buf1), X STRINGIFY_BIGINT (fullsize, buf2), X name)); X break; X } X X if (lseek (file, sparsearray[sparse_index++].offset, SEEK_SET) < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X ERROR ((0, errno, _("lseek error at byte %s in file %s"), X STRINGIFY_BIGINT (sparsearray[sparse_index - 1].offset, buf), X name)); X break; X } X X /* If the number of bytes to be written here exceeds the size of X the temporary buffer, do it in steps. */ X X while (bufsize > BLOCKSIZE) X { #if 0 X if (amount_read) X { X count = safe_read (file, start->buffer + amount_read, X BLOCKSIZE - amount_read); X bufsize -= BLOCKSIZE - amount_read; X amount_read = 0; X set_next_block_after (start); X start = find_next_block (); X memset (start->buffer, 0, BLOCKSIZE); X } #endif X /* Store the data. */ X X count = safe_read (file, start->buffer, BLOCKSIZE); X if (count < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X ERROR ((0, errno, _("\ Read error at byte %s, reading %lu bytes, in file %s"), X STRINGIFY_BIGINT (fullsize - *sizeleft, buf), X (unsigned long) bufsize, name)); X return 1; X } X bufsize -= count; X *sizeleft -= count; X set_next_block_after (start); X start = find_next_block (); X memset (start->buffer, 0, BLOCKSIZE); X } X X { X char buffer[BLOCKSIZE]; X X clear_buffer (buffer); X count = safe_read (file, buffer, bufsize); X memcpy (start->buffer, buffer, BLOCKSIZE); X } X X if (count < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X X ERROR ((0, errno, X _("Read error at byte %s, reading %lu bytes, in file %s"), X STRINGIFY_BIGINT (fullsize - *sizeleft, buf), X (unsigned long) bufsize, name)); X return 1; X } #if 0 X if (amount_read >= BLOCKSIZE) X { X amount_read = 0; X set_next_block_after (start + (count - 1) / BLOCKSIZE); X if (count != bufsize) X { X ERROR ((0, 0, X _("File %s shrunk, padding with zeros"), X name)); X return 1; X } X start = find_next_block (); X } X else X amount_read += bufsize; #endif X *sizeleft -= count; X set_next_block_after (start); X X } X free (sparsearray); #if 0 X set_next_block_after (start + (count - 1) / BLOCKSIZE); #endif X return 0; } X /* Main functions of this module. */ X /*---. | ? | `---*/ X void create_archive (void) { X char *p; X X open_archive (ACCESS_WRITE); X X if (incremental_option) X { X char *buffer = xmalloc (PATH_MAX); X const char *q; X char *bufp; X X collect_and_sort_names (); X X while (p = name_from_list (), p) X dump_file (p, (dev_t) -1, 1); X X blank_name_list (); X while (p = name_from_list (), p) X { X strcpy (buffer, p); X if (p[strlen (p) - 1] != '/') X strcat (buffer, "/"); X bufp = buffer + strlen (buffer); X for (q = gnu_list_name->dir_contents; X q && *q; X q += strlen (q) + 1) X { X if (*q == 'Y') X { X strcpy (bufp, q + 1); X dump_file (buffer, (dev_t) -1, 1); X } X } X } X free (buffer); X } X else X { X while (p = name_next (1), p) X dump_file (p, (dev_t) -1, 1); X } X X write_eot (); X close_archive (); X X if (listed_incremental_option) X write_dir_file (); } X /*----------------------------------------------------------------------. | Dump a single file. Recurse on directories. Result is nonzero for | | success. P is file name to dump. PARENT_DEVICE is device our parent | | directory was on. TOP_LEVEL tells wether we are a toplevel call. | | | | Sets global CURRENT_STAT to stat output for this file. | `----------------------------------------------------------------------*/ X /* FIXME: One should make sure that for *every* path leading to setting X exit_status to failure, a clear diagnostic has been issued. */ X void dump_file (char *p, dev_t parent_device, int top_level) { X union block *header; X char type; X union block *exhdr; X char save_typeflag; X struct utimbuf restore_times; X off_t restore_size; X X /* FIXME: `header' and `upperbound' might be used uninitialized in this X function. Reported by Bruno Haible. */ X X if (interactive_option && !confirm ("add", p)) X return; X X /* Use stat if following (rather than dumping) 4.2BSD's symbolic links. X Otherwise, use lstat (which falls back to stat if no symbolic links). */ X X if (dereference_option != 0 #if STX_HIDDEN && !_LARGE_FILES /* AIX */ X ? statx (p, ¤t_stat, STATSIZE, STX_HIDDEN) X : statx (p, ¤t_stat, STATSIZE, STX_HIDDEN | STX_LINK) #else X ? stat (p, ¤t_stat) : lstat (p, ¤t_stat) #endif X ) X { X WARN ((0, errno, _("Cannot add file %s"), p)); X if (!ignore_failed_read_option) X exit_status = TAREXIT_FAILURE; X return; X } X X restore_times.actime = current_stat.st_atime; X restore_times.modtime = current_stat.st_mtime; X restore_size = current_stat.st_size; X #ifdef S_ISHIDDEN X if (S_ISHIDDEN (current_stat.st_mode)) X { X char *new = (char *) alloca (strlen (p) + 2); X if (new) X { X strcpy (new, p); X strcat (new, "@"); X p = new; X } X } #endif X X /* See if we only want new files, and check if this one is too old to X put in the archive. */ X X if (!incremental_option && !S_ISDIR (current_stat.st_mode) X && current_stat.st_mtime < newer_mtime_option X && (!after_date_option || current_stat.st_ctime < newer_ctime_option)) X { X if (parent_device == (dev_t) -1) X WARN ((0, 0, _("%s: is unchanged; not dumped"), p)); X /* FIXME: recheck this return. */ X return; X } X #if !MSDOS X /* See if we are trying to dump the archive. */ X X if (ar_dev && current_stat.st_dev == ar_dev && current_stat.st_ino == ar_ino) X { X WARN ((0, 0, _("%s is the archive; not dumped"), p)); X return; X } #endif X X /* Check for multiple links. X X We maintain a list of all such files that we've written so far. Any X time we see another, we check the list and avoid dumping the data X again if we've done it once already. */ X X if (current_stat.st_nlink > 1 X && (S_ISREG (current_stat.st_mode) #ifdef S_ISCTG X || S_ISCTG (current_stat.st_mode) #endif #ifdef S_ISCHR X || S_ISCHR (current_stat.st_mode) #endif #ifdef S_ISBLK X || S_ISBLK (current_stat.st_mode) #endif #ifdef S_ISFIFO X || S_ISFIFO (current_stat.st_mode) #endif X )) X { X struct link *lp; X X /* FIXME: First quick and dirty. Hashing, etc later. */ X X for (lp = linklist; lp; lp = lp->next) X if (lp->ino == current_stat.st_ino && lp->dev == current_stat.st_dev) X { X char *link_name = lp->name; X X /* We found a link. */ X X while (!absolute_names_option && *link_name == '/') X { X static int warned_once = 0; X X if (!warned_once) X { X warned_once = 1; X WARN ((0, 0, _("\ Removing leading `/' from absolute links"))); X } X link_name++; X } X if (strlen (link_name) >= NAME_FIELD_SIZE) X write_long (link_name, GNUTYPE_LONGLINK); X assign_string (¤t_link_name, link_name); X X current_stat.st_size = 0; X header = start_header (p, ¤t_stat); X if (header == NULL) X { X exit_status = TAREXIT_FAILURE; X return; X } X strncpy (header->header.linkname, X link_name, NAME_FIELD_SIZE); X X /* Force null truncated. */ X X header->header.linkname[NAME_FIELD_SIZE - 1] = 0; X X header->header.typeflag = LNKTYPE; X finish_header (header); X X /* FIXME: Maybe remove from list after all links found? */ X X if (remove_files_option) X if (unlink (p) == -1) X ERROR ((0, errno, _("Cannot remove %s"), p)); X X /* We dumped it. */ X return; X } X X /* Not found. Add it to the list of possible links. */ X X lp = (struct link *) X xmalloc ((size_t) (sizeof (struct link) + strlen (p))); X lp->ino = current_stat.st_ino; X lp->dev = current_stat.st_dev; X strcpy (lp->name, p); X lp->next = linklist; X linklist = lp; X } X X /* This is not a link to a previously dumped file, so dump it. */ X X if (S_ISREG (current_stat.st_mode) #ifdef S_ISCTG X || S_ISCTG (current_stat.st_mode) #endif X ) X { X int f; /* file descriptor */ X size_t bufsize; X ssize_t count; X off_t sizeleft; X union block *start; X int header_moved; X char isextended = 0; X int upperbound; #if 0 X static int cried_once = 0; #endif X X header_moved = 0; X X if (sparse_option) X { X /* Check the size of the file against the number of blocks X allocated for it, counting both data and indirect blocks. X If there is a smaller number of blocks that would be X necessary to accommodate a file of this size, this is safe X to say that we have a sparse file: at least one of those X blocks in the file is just a useless hole. For sparse X files not having more hole blocks than indirect blocks, the X sparseness will go undetected. */ X X /* Bruno Haible sent me these statistics for Linux. It seems X that some filesystems count indirect blocks in st_blocks, X while others do not seem to: X X minix-fs tar: size=7205, st_blocks=18 and ST_NBLOCKS=18 X extfs tar: size=7205, st_blocks=18 and ST_NBLOCKS=18 X ext2fs tar: size=7205, st_blocks=16 and ST_NBLOCKS=16 X msdos-fs tar: size=7205, st_blocks=16 and ST_NBLOCKS=16 X X Dick Streefland reports the previous numbers as misleading, X because ext2fs use 12 direct blocks, while minix-fs uses only X 6 direct blocks. Dick gets: X X ext2 size=20480 ls listed blocks=21 X minix size=20480 ls listed blocks=21 X msdos size=20480 ls listed blocks=20 X X It seems that indirect blocks *are* included in st_blocks. X The minix filesystem does not account for phantom blocks in X st_blocks, so `du' and `ls -s' give wrong results. So, the X --sparse option would not work on a minix filesystem. */ X X if (ST_NBLOCKS (current_stat) X < (current_stat.st_size / ST_NBLOCKSIZE X + (current_stat.st_size % ST_NBLOCKSIZE != 0))) X { X off_t filesize = current_stat.st_size; X int counter; X X header = start_header (p, ¤t_stat); X if (header == NULL) X { X exit_status = TAREXIT_FAILURE; X return; X } X header->header.typeflag = GNUTYPE_SPARSE; X header_moved = 1; X X /* Call the routine that figures out the layout of the X sparse file in question. UPPERBOUND is the index of the X last element of the "sparsearray," i.e., the number of X elements it needed to describe the file. */ X X upperbound = deal_with_sparse (p, header); X X /* See if we'll need an extended header later. */ X X if (upperbound > SPARSES_IN_OLDGNU_HEADER - 1) X header->oldgnu_header.isextended = 1; X X /* We store the "real" file size so we can show that in X case someone wants to list the archive, i.e., tar tvf X . It might be kind of disconcerting if the X shrunken file size was the one that showed up. */ X X OFF_TO_OCT (current_stat.st_size, X header->oldgnu_header.realsize); X X /* This will be the new "size" of the file, i.e., the size X of the file minus the blocks of holes that we're X skipping over. */ X X find_new_file_size (&filesize, upperbound); X current_stat.st_size = filesize; X OFF_TO_OCT (filesize, header->header.size); X X for (counter = 0; counter < SPARSES_IN_OLDGNU_HEADER; counter++) X { X if (!sparsearray[counter].numbytes) X break; X X OFF_TO_OCT (sparsearray[counter].offset, X header->oldgnu_header.sp[counter].offset); X SIZE_TO_OCT (sparsearray[counter].numbytes, X header->oldgnu_header.sp[counter].numbytes); X } X X } X } X else X upperbound = SPARSES_IN_OLDGNU_HEADER - 1; X X sizeleft = current_stat.st_size; X X /* Don't bother opening empty, world readable files. Also do not open X files when archive is meant for /dev/null. */ X X if (dev_null_output X || (sizeleft == 0 X && MODE_R == (MODE_R & current_stat.st_mode))) X f = -1; X else X { X f = open (p, O_RDONLY | O_BINARY); X if (f < 0) X { X WARN ((0, errno, _("Cannot add file %s"), p)); X if (!ignore_failed_read_option) X exit_status = TAREXIT_FAILURE; X return; X } X } X X /* If the file is sparse, we've already taken care of this. */ X X if (!header_moved) X { X header = start_header (p, ¤t_stat); X if (header == NULL) X { X if (f >= 0) X close (f); X exit_status = TAREXIT_FAILURE; X return; X } X } #ifdef S_ISCTG X /* Mark contiguous files, if we support them. */ X X if (archive_format != V7_FORMAT && S_ISCTG (current_stat.st_mode)) X header->header.typeflag = CONTTYPE; #endif X isextended = header->oldgnu_header.isextended; X save_typeflag = header->header.typeflag; X finish_header (header); X if (isextended) X { #if 0 X int sum = 0; #endif X int counter; #if 0 X union block *exhdr; X int arraybound = SPARSES_IN_SPARSE_HEADER; #endif X /* static */ int index_offset = SPARSES_IN_OLDGNU_HEADER; X X extend: X exhdr = find_next_block (); X X if (exhdr == NULL) X { X exit_status = TAREXIT_FAILURE; X return; X } X memset (exhdr->buffer, 0, BLOCKSIZE); X for (counter = 0; counter < SPARSES_IN_SPARSE_HEADER; counter++) X { X if (counter + index_offset > upperbound) X break; X X SIZE_TO_OCT (sparsearray[counter + index_offset].numbytes, X exhdr->sparse_header.sp[counter].numbytes); X OFF_TO_OCT (sparsearray[counter + index_offset].offset, X exhdr->sparse_header.sp[counter].offset); X } X set_next_block_after (exhdr); #if 0 X sum += counter; X if (sum < upperbound) X goto extend; #endif X if (index_offset + counter <= upperbound) X { X index_offset += counter; X exhdr->sparse_header.isextended = 1; X goto extend; X } X X } X if (save_typeflag == GNUTYPE_SPARSE) X { X if (f < 0 X || finish_sparse_file (f, &sizeleft, current_stat.st_size, p)) X goto padit; X } X else X while (sizeleft > 0) X { X if (multi_volume_option) X { X assign_string (&save_name, p); X save_sizeleft = sizeleft; X save_totsize = current_stat.st_size; X } X start = find_next_block (); X X bufsize = available_space_after (start); X X if (sizeleft < bufsize) X { X /* Last read -- zero out area beyond. */ X X bufsize = sizeleft; X count = bufsize % BLOCKSIZE; X if (count) X memset (start->buffer + sizeleft, 0, X (size_t) (BLOCKSIZE - count)); X } X if (f < 0) X count = bufsize; X else X count = safe_read (f, start->buffer, bufsize); X if (count < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X ERROR ((0, errno, _("\ Read error at byte %s, reading %lu bytes, in file %s"), X STRINGIFY_BIGINT (current_stat.st_size - sizeleft, X buf), X (unsigned long) bufsize, p)); X goto padit; X } X sizeleft -= count; X X /* This is nonportable (the type of set_next_block_after's arg). */ X X set_next_block_after (start + (count - 1) / BLOCKSIZE); X X if (count == bufsize) X continue; X else X { X char buf[UINTMAX_STRSIZE_BOUND]; X ERROR ((0, 0, X _("File %s shrunk by %s bytes, padding with zeros"), X p, STRINGIFY_BIGINT (sizeleft, buf))); X goto padit; /* short read */ X } X } X X if (multi_volume_option) X assign_string (&save_name, NULL); X X if (f >= 0) X { X struct stat final_stat; X if (fstat (f, &final_stat) != 0) X ERROR ((0, errno, "%s: fstat", p)); X else if (final_stat.st_mtime != restore_times.modtime X || final_stat.st_size != restore_size) X ERROR ((0, errno, _("%s: file changed as we read it"), p)); X if (close (f) != 0) X ERROR ((0, errno, _("%s: close"), p)); X if (atime_preserve_option) X utime (p, &restore_times); X } X if (remove_files_option) X { X if (unlink (p) == -1) X ERROR ((0, errno, _("Cannot remove %s"), p)); X } X return; X X /* File shrunk or gave error, pad out tape to match the size we X specified in the header. */ X X padit: X while (sizeleft > 0) X { X save_sizeleft = sizeleft; X start = find_next_block (); X memset (start->buffer, 0, BLOCKSIZE); X set_next_block_after (start); X sizeleft -= BLOCKSIZE; X } X if (multi_volume_option) X assign_string (&save_name, NULL); X if (f >= 0) X { X close (f); X if (atime_preserve_option) X utime (p, &restore_times); X } X return; X } X #ifdef S_ISLNK X else if (S_ISLNK (current_stat.st_mode)) X { X int size; X char *buffer = (char *) alloca (PATH_MAX + 1); X X size = readlink (p, buffer, PATH_MAX + 1); X if (size < 0) X { X WARN ((0, errno, _("Cannot add file %s"), p)); X if (!ignore_failed_read_option) X exit_status = TAREXIT_FAILURE; X return; X } X buffer[size] = '\0'; X if (size >= NAME_FIELD_SIZE) X write_long (buffer, GNUTYPE_LONGLINK); X assign_string (¤t_link_name, buffer); X X current_stat.st_size = 0; /* force 0 size on symlink */ X header = start_header (p, ¤t_stat); X if (header == NULL) X { X exit_status = TAREXIT_FAILURE; X return; X } X strncpy (header->header.linkname, buffer, NAME_FIELD_SIZE); X header->header.linkname[NAME_FIELD_SIZE - 1] = '\0'; X header->header.typeflag = SYMTYPE; X finish_header (header); /* nothing more to do to it */ X if (remove_files_option) X { X if (unlink (p) == -1) X ERROR ((0, errno, _("Cannot remove %s"), p)); X } X return; X } #endif /* S_ISLNK */ X X else if (S_ISDIR (current_stat.st_mode)) X { X DIR *directory; X struct dirent *entry; X char *namebuf; X size_t buflen; X size_t len; X dev_t our_device = current_stat.st_dev; X X /* If this tar program is installed suid root, like for Amanda, the X access might look like denied, while it is not really. X X FIXME: I have the feeling this test is done too early. Couldn't it X just be bundled in later actions? I guess that the proper support X of --ignore-failed-read is the key of the current writing. */ X X if (access (p, R_OK) == -1 && geteuid () != 0) X { X WARN ((0, errno, _("Cannot add directory %s"), p)); X if (!ignore_failed_read_option) X exit_status = TAREXIT_FAILURE; X return; X } X X /* Build new prototype name. Ensure exactly one trailing slash. */ X X len = strlen (p); X buflen = len + NAME_FIELD_SIZE; X namebuf = xmalloc (buflen + 1); X strncpy (namebuf, p, buflen); X while (len >= 1 && namebuf[len - 1] == '/') X len--; X namebuf[len++] = '/'; X namebuf[len] = '\0'; X X if (1) X { X /* The "1" above used to be "archive_format != V7_FORMAT", GNU tar X was just not writing directory blocks at all. Daniel Trinkle X writes: ``All old versions of tar I have ever seen have X correctly archived an empty directory. The really old ones I X checked included HP-UX 7 and Mt. Xinu More/BSD. There may be X some subtle reason for the exclusion that I don't know, but the X current behavior is broken.'' I do not know those subtle X reasons either, so until these are reported (anew?), just allow X directory blocks to be written even with old archives. */ X X current_stat.st_size = 0; /* force 0 size on dir */ X X /* FIXME: If people could really read standard archives, this X should be: X X header X = start_header (standard_option ? p : namebuf, ¤t_stat); X X but since they'd interpret DIRTYPE blocks as regular X files, we'd better put the / on the name. */ X X header = start_header (namebuf, ¤t_stat); X if (header == NULL) X { X exit_status = TAREXIT_FAILURE; X return; /* eg name too long */ X } X X if (incremental_option) X header->header.typeflag = GNUTYPE_DUMPDIR; X else /* if (standard_option) */ X header->header.typeflag = DIRTYPE; X X /* If we're gnudumping, we aren't done yet so don't close it. */ X X if (!incremental_option) X finish_header (header); /* done with directory header */ X } X X if (incremental_option && gnu_list_name->dir_contents) X { X off_t sizeleft; X off_t totsize; X size_t bufsize; X union block *start; X ssize_t count; X const char *buffer, *p_buffer; X X buffer = gnu_list_name->dir_contents; /* FOO */ X totsize = 0; X for (p_buffer = buffer; p_buffer && *p_buffer;) X { X size_t tmp; X X tmp = strlen (p_buffer) + 1; X totsize += tmp; X p_buffer += tmp; X } X totsize++; X OFF_TO_OCT (totsize, header->header.size); X finish_header (header); X p_buffer = buffer; X sizeleft = totsize; X while (sizeleft > 0) X { X if (multi_volume_option) X { X assign_string (&save_name, p); X save_sizeleft = sizeleft; X save_totsize = totsize; X } X start = find_next_block (); X bufsize = available_space_after (start); X if (sizeleft < bufsize) X { X bufsize = sizeleft; X count = bufsize % BLOCKSIZE; X if (count) X memset (start->buffer + sizeleft, 0, X (size_t) (BLOCKSIZE - count)); X } X memcpy (start->buffer, p_buffer, bufsize); X sizeleft -= bufsize; X p_buffer += bufsize; X set_next_block_after (start + (bufsize - 1) / BLOCKSIZE); X } X if (multi_volume_option) X assign_string (&save_name, NULL); X if (atime_preserve_option) X utime (p, &restore_times); X return; X } X X /* See if we are about to recurse into a directory, and avoid doing X so if the user wants that we do not descend into directories. */ X X if (no_recurse_option) X return; X X /* See if we are crossing from one file system to another, and X avoid doing so if the user only wants to dump one file system. */ X X if (one_file_system_option && !top_level X && parent_device != current_stat.st_dev) X { X if (verbose_option) X WARN ((0, 0, _("%s: On a different filesystem; not dumped"), p)); X return; X } X X /* Now output all the files in the directory. */ X X errno = 0; /* FIXME: errno should be read-only */ X X directory = opendir (p); X if (!directory) X { X ERROR ((0, errno, _("Cannot open directory %s"), p)); X return; X } X X /* Hack to remove "./" from the front of all the file names. */ X X if (len == 2 && namebuf[0] == '.' && namebuf[1] == '/') X len = 0; X X /* FIXME: Should speed this up by cd-ing into the dir. */ X X while (entry = readdir (directory), entry) X { X /* Skip `.', `..', and excluded file names. */ X X if (is_dot_or_dotdot (entry->d_name) X || excluded_filename (excluded, entry->d_name)) X continue; X X if ((int) NAMLEN (entry) + len >= buflen) X { X buflen = len + NAMLEN (entry); X namebuf = (char *) xrealloc (namebuf, buflen + 1); #if 0 X namebuf[len] = '\0'; X ERROR ((0, 0, _("File name %s%s too long"), X namebuf, entry->d_name)); X continue; #endif X } X strcpy (namebuf + len, entry->d_name); X dump_file (namebuf, our_device, 0); X } X X closedir (directory); X free (namebuf); X if (atime_preserve_option) X utime (p, &restore_times); X return; X } X #ifdef S_ISCHR X else if (S_ISCHR (current_stat.st_mode)) X type = CHRTYPE; #endif X #ifdef S_ISBLK X else if (S_ISBLK (current_stat.st_mode)) X type = BLKTYPE; #endif X X /* Avoid screwy apollo lossage where S_IFIFO == S_IFSOCK. */ X #if (_ISP__M68K == 0) && (_ISP__A88K == 0) && defined(S_ISFIFO) X else if (S_ISFIFO (current_stat.st_mode)) X type = FIFOTYPE; #endif X #ifdef S_ISSOCK X else if (S_ISSOCK (current_stat.st_mode)) X type = FIFOTYPE; #endif X X else X goto unknown; X X if (archive_format == V7_FORMAT) X goto unknown; X X current_stat.st_size = 0; /* force 0 size */ X header = start_header (p, ¤t_stat); X if (header == NULL) X { X exit_status = TAREXIT_FAILURE; X return; /* eg name too long */ X } X X header->header.typeflag = type; X #if defined(S_IFBLK) || defined(S_IFCHR) X if (type != FIFOTYPE) X { X MAJOR_TO_OCT (major (current_stat.st_rdev), header->header.devmajor); X MINOR_TO_OCT (minor (current_stat.st_rdev), header->header.devminor); X } #endif X X finish_header (header); X if (remove_files_option) X { X if (unlink (p) == -1) X ERROR ((0, errno, _("Cannot remove %s"), p)); X } X return; X unknown: X ERROR ((0, 0, _("%s: Unknown file type; file ignored"), p)); } SHAR_EOF $shar_touch -am 0706222799 'tar-1.13/src/create.c' && chmod 0444 'tar-1.13/src/create.c' || $echo 'restore of' 'tar-1.13/src/create.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/create.c:' 'MD5 check failed' 2c1788e7bd9448287f18c5d51283e71b tar-1.13/src/create.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/create.c'`" test 41901 -eq "$shar_count" || $echo 'tar-1.13/src/create.c:' 'original size' '41901,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/delete.c ============== if test -f 'tar-1.13/src/delete.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/delete.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/delete.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/delete.c' && /* Delete entries from a tar archive. X Copyright (C) 1988, 1992, 1994, 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include "common.h" #include "rmt.h" X static union block *new_record = NULL; static union block *save_record = NULL; static off_t records_read = 0; static int new_blocks = 0; static int blocks_needed = 0; X /* FIXME: This module should not directly handle the following three X variables, instead, this should be done in buffer.c only. */ extern union block *record_start; extern union block *record_end; extern union block *current_block; X /*-------------------------------------------------------------------------. | Move archive descriptor by COUNT records worth. If COUNT is positive we | | move forward, else we move negative. If its a tape, MTIOCTOP had better | | work. If its something else, we try to seek on it. If we can't seek, | | we loose! | `-------------------------------------------------------------------------*/ X static void move_archive (off_t count) { #ifdef MTIOCTOP X { X struct mtop operation; X int status; X X if (count > 0) X { X operation.mt_op = MTFSR; X operation.mt_count = count; X if (operation.mt_count != count) X FATAL_ERROR ((0, 0, _("Could not re-position archive file"))); X } X else X { X operation.mt_op = MTBSR; X operation.mt_count = -count; X if (operation.mt_count != -count) X FATAL_ERROR ((0, 0, _("Could not re-position archive file"))); X } X X if (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), X status >= 0) X return; X X if (errno == EIO) X if (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), X status >= 0) X return; X } #endif /* MTIOCTOP */ X X { X off_t position0 = rmtlseek (archive, (off_t) 0, SEEK_CUR); X off_t increment = record_size * (off_t) count; X off_t position = position0 + increment; X X if (increment / count != record_size X || (position < position0) != (increment < 0) X || rmtlseek (archive, position, SEEK_SET) != position) X FATAL_ERROR ((0, 0, _("Could not re-position archive file"))); X X return; X } } X /*----------------------------------------------------------------. | Write out the record which has been filled. If MOVE_BACK_FLAG, | | backspace to where we started. | `----------------------------------------------------------------*/ X static void write_record (int move_back_flag) { X save_record = record_start; X record_start = new_record; X X if (archive == STDIN_FILENO) X { X archive = STDOUT_FILENO; X flush_write (); X archive = STDIN_FILENO; X } X else X { X move_archive (-(records_read + 1)); X flush_write (); X } X X record_start = save_record; X X if (move_back_flag) X { X /* Move the tape head back to where we were. */ X X if (archive != STDIN_FILENO) X move_archive (records_read); X X records_read--; X } X X blocks_needed = blocking_factor; X new_blocks = 0; } X /*---. | ? | `---*/ X void delete_archive_members (void) { X enum read_header logical_status = HEADER_STILL_UNREAD; X enum read_header previous_status = HEADER_STILL_UNREAD; X X /* FIXME: Should clean the routine before cleaning these variables :-( */ X struct name *name; X off_t blocks_to_skip = 0; X off_t blocks_to_keep = 0; X int kept_blocks_in_record; X X name_gather (); X open_archive (ACCESS_UPDATE); X X while (logical_status == HEADER_STILL_UNREAD) X { X enum read_header status = read_header (); X X switch (status) X { X case HEADER_STILL_UNREAD: X abort (); X X case HEADER_SUCCESS: X if (name = name_scan (current_file_name), !name) X { X set_next_block_after (current_header); X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X break; X } X name->found = 1; X logical_status = HEADER_SUCCESS; X break; X X case HEADER_ZERO_BLOCK: X case HEADER_END_OF_FILE: X logical_status = HEADER_END_OF_FILE; X break; X X case HEADER_FAILURE: X set_next_block_after (current_header); X switch (previous_status) X { X case HEADER_STILL_UNREAD: X WARN ((0, 0, _("This does not look like a tar archive"))); X /* Fall through. */ X X case HEADER_SUCCESS: X case HEADER_ZERO_BLOCK: X ERROR ((0, 0, _("Skipping to next header"))); X /* Fall through. */ X X case HEADER_FAILURE: X break; X X case HEADER_END_OF_FILE: X abort (); X } X break; X } X X previous_status = status; X } X X if (logical_status != HEADER_SUCCESS) X { X write_eot (); X close_archive (); X names_notfound (); X return; X } X X write_archive_to_stdout = 0; X new_record = (union block *) xmalloc (record_size); X X /* Save away blocks before this one in this record. */ X X new_blocks = current_block - record_start; X blocks_needed = blocking_factor - new_blocks; X if (new_blocks) X memcpy ((void *) new_record, (void *) record_start, X (size_t) (new_blocks * BLOCKSIZE)); X #if 0 X /* FIXME: Old code, before the goto was inserted. To be redesigned. */ X set_next_block_after (current_header); X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); #endif X logical_status = HEADER_STILL_UNREAD; X goto flush_file; X X /* FIXME: Solaris 2.4 Sun cc (the ANSI one, not the old K&R) says: X "delete.c", line 223: warning: loop not entered at top X Reported by Bruno Haible. */ X while (1) X { X enum read_header status; X X /* Fill in a record. */ X X if (current_block == record_end) X { X flush_archive (); X records_read++; X } X status = read_header (); X X if (status == HEADER_ZERO_BLOCK && ignore_zeros_option) X { X set_next_block_after (current_header); X continue; X } X if (status == HEADER_END_OF_FILE || status == HEADER_ZERO_BLOCK) X { X logical_status = HEADER_END_OF_FILE; X memset (new_record[new_blocks].buffer, 0, X (size_t) (BLOCKSIZE * blocks_needed)); X new_blocks += blocks_needed; X blocks_needed = 0; X write_record (0); X break; X } X X if (status == HEADER_FAILURE) X { X ERROR ((0, 0, _("Deleting non-header from archive"))); X set_next_block_after (current_header); X continue; X } X X /* Found another header. */ X X if (name = name_scan (current_file_name), name) X { X name->found = 1; X flush_file: X set_next_block_after (current_header); X blocks_to_skip = (current_stat.st_size + BLOCKSIZE - 1) / BLOCKSIZE; X X while (record_end - current_block <= blocks_to_skip) X { X blocks_to_skip -= (record_end - current_block); X flush_archive (); X records_read++; X } X current_block += blocks_to_skip; X blocks_to_skip = 0; X continue; X } X X /* Copy header. */ X X new_record[new_blocks] = *current_header; X new_blocks++; X blocks_needed--; X blocks_to_keep X = (current_stat.st_size + BLOCKSIZE - 1) / BLOCKSIZE; X set_next_block_after (current_header); X if (blocks_needed == 0) X write_record (1); X X /* Copy data. */ X X kept_blocks_in_record = record_end - current_block; X if (kept_blocks_in_record > blocks_to_keep) X kept_blocks_in_record = blocks_to_keep; X X while (blocks_to_keep) X { X int count; X X if (current_block == record_end) X { X flush_read (); X records_read++; X current_block = record_start; X kept_blocks_in_record = blocking_factor; X if (kept_blocks_in_record > blocks_to_keep) X kept_blocks_in_record = blocks_to_keep; X } X count = kept_blocks_in_record; X if (count > blocks_needed) X count = blocks_needed; X X memcpy ((void *) (new_record + new_blocks), X (void *) current_block, X (size_t) (count * BLOCKSIZE)); X new_blocks += count; X blocks_needed -= count; X current_block += count; X blocks_to_keep -= count; X kept_blocks_in_record -= count; X X if (blocks_needed == 0) X write_record (1); X } X } X X write_eot (); X close_archive (); X names_notfound (); } SHAR_EOF $shar_touch -am 0701163099 'tar-1.13/src/delete.c' && chmod 0444 'tar-1.13/src/delete.c' || $echo 'restore of' 'tar-1.13/src/delete.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/delete.c:' 'MD5 check failed' 05a24960e97808f1fe127080c0be33c2 tar-1.13/src/delete.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/delete.c'`" test 8656 -eq "$shar_count" || $echo 'tar-1.13/src/delete.c:' 'original size' '8656,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/extract.c ============== if test -f 'tar-1.13/src/extract.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/extract.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/extract.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/extract.c' && /* Extract files from a tar archive. X Copyright (C) 1988, 92,93,94,96,97,98, 1999 Free Software Foundation, Inc. X Written by John Gilmore, on 1985-11-19. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include time_t time (); X #if HAVE_UTIME_H # include #else struct utimbuf X { X long actime; X long modtime; X }; #endif X #include "common.h" X static time_t now; /* current time */ static int we_are_root; /* true if our effective uid == 0 */ static mode_t newdir_umask; /* umask when creating new directories */ static mode_t current_umask; /* current umask (which is set to 0 if -p) */ X #if 0 /* "Scratch" space to store the information about a sparse file before X writing the info into the header or extended header. */ struct sp_array *sparsearray; X /* Number of elts storable in the sparsearray. */ int sp_array_size = 10; #endif X struct delayed_set_stat X { X struct delayed_set_stat *next; X char *file_name; X struct stat stat_info; X }; X static struct delayed_set_stat *delayed_set_stat_head; X /*--------------------------. | Set up to extract files. | `--------------------------*/ X void extr_init (void) { X now = time ((time_t *) 0); X we_are_root = geteuid () == 0; X X /* Option -p clears the kernel umask, so it does not affect proper X restoration of file permissions. New intermediate directories will X comply with umask at start of program. */ X X newdir_umask = umask (0); X if (same_permissions_option) X current_umask = 0; X else X { X umask (newdir_umask); /* restore the kernel umask */ X current_umask = newdir_umask; X } X X /* FIXME: Just make sure we can add files in directories we create. Maybe X should we later remove permissions we are adding, here? */ X newdir_umask &= ~ MODE_WXUSR; } X /*------------------------------------------------------------------. | Restore mode for FILE_NAME, from information given in STAT_INFO. | `------------------------------------------------------------------*/ X static void set_mode (char *file_name, struct stat *stat_info) { X /* We ought to force permission when -k is not selected, because if the X file already existed, open or creat would save the permission bits from X the previously created file, ignoring the ones we specified. X X But with -k selected, we know *we* created this file, so the mode X bits were set by our open. If the file has abnormal mode bits, we must X chmod since writing or chown has probably reset them. If the file is X normal, we merely skip the chmod. This works because we did umask (0) X when -p, so umask will have left the specified mode alone. */ X X if (!keep_old_files_option X || (stat_info->st_mode & (S_ISUID | S_ISGID | S_ISVTX))) X if (chmod (file_name, ~current_umask & stat_info->st_mode) < 0) X ERROR ((0, errno, _("%s: Cannot change mode to %04lo"), X file_name, X (unsigned long) (~current_umask & stat_info->st_mode))); } X /*----------------------------------------------------------------------. | Restore stat attributes (owner, group, mode and times) for FILE_NAME, | | using information given in STAT_INFO. SYMLINK_FLAG is non-zero for a | | freshly restored symbolic link. | `----------------------------------------------------------------------*/ X /* FIXME: About proper restoration of symbolic link attributes, we still do X not have it right. Pretesters' reports tell us we need further study and X probably more configuration. For now, just use lchown if it exists, and X punt for the rest. Sigh! */ X static void set_stat (char *file_name, struct stat *stat_info, int symlink_flag) { X struct utimbuf utimbuf; X X if (!symlink_flag) X { X /* We do the utime before the chmod because some versions of utime are X broken and trash the modes of the file. */ X X if (!touch_option) X { X /* We set the accessed time to `now', which is really the time we X started extracting files, unless incremental_option is used, in X which case .st_atime is used. */ X X /* FIXME: incremental_option should set ctime too, but how? */ X X if (incremental_option) X utimbuf.actime = stat_info->st_atime; X else X utimbuf.actime = now; X X utimbuf.modtime = stat_info->st_mtime; X X if (utime (file_name, &utimbuf) < 0) X ERROR ((0, errno, X _("%s: Could not change access and modification times"), X file_name)); X } X X /* Some systems allow non-root users to give files away. Once this X done, it is not possible anymore to change file permissions, so we X have to set permissions prior to possibly giving files away. */ X X set_mode (file_name, stat_info); X } X X /* If we are root, set the owner and group of the extracted file, so we X extract as the original owner. Or else, if we are running as a user, X leave the owner and group as they are, so we extract as that user. */ X X if (we_are_root || same_owner_option) X { #if HAVE_LCHOWN X X /* When lchown exists, it should be used to change the attributes of X the symbolic link itself. In this case, a mere chown would change X the attributes of the file the symbolic link is pointing to, and X should be avoided. */ X X if (symlink_flag) X { X if (lchown (file_name, stat_info->st_uid, stat_info->st_gid) < 0) X ERROR ((0, errno, _("%s: Cannot lchown to uid %lu gid %lu"), X file_name, X (unsigned long) stat_info->st_uid, X (unsigned long) stat_info->st_gid)); X } X else X { X if (chown (file_name, stat_info->st_uid, stat_info->st_gid) < 0) X ERROR ((0, errno, _("%s: Cannot chown to uid %lu gid %lu"), X file_name, X (unsigned long) stat_info->st_uid, X (unsigned long) stat_info->st_gid)); X } X #else /* not HAVE_LCHOWN */ X X if (!symlink_flag) X X if (chown (file_name, stat_info->st_uid, stat_info->st_gid) < 0) X ERROR ((0, errno, _("%s: Cannot chown to uid %lu gid %lu"), X file_name, X (unsigned long) stat_info->st_uid, X (unsigned long) stat_info->st_gid)); X #endif/* not HAVE_LCHOWN */ X X if (!symlink_flag) X X /* On a few systems, and in particular, those allowing to give files X away, changing the owner or group destroys the suid or sgid bits. X So let's attempt setting these bits once more. */ X X if (stat_info->st_mode & (S_ISUID | S_ISGID | S_ISVTX)) X set_mode (file_name, stat_info); X } } X /*-----------------------------------------------------------------------. | After a file/link/symlink/directory creation has failed, see if it's | | because some required directory was not present, and if so, create all | | required directories. Return non-zero if a directory was created. | `-----------------------------------------------------------------------*/ X static int make_directories (char *file_name) { X char *cursor; /* points into path */ X int did_something = 0; /* did we do anything yet? */ X int saved_errno = errno; /* remember caller's errno */ X int status; X X for (cursor = strchr (file_name, '/'); X cursor != NULL; X cursor = strchr (cursor + 1, '/')) X { X /* Avoid mkdir of empty string, if leading or double '/'. */ X X if (cursor == file_name || cursor[-1] == '/') X continue; X X /* Avoid mkdir where last part of path is '.'. */ X X if (cursor[-1] == '.' && (cursor == file_name + 1 || cursor[-2] == '/')) X continue; X X *cursor = '\0'; /* truncate the path there */ X status = mkdir (file_name, ~newdir_umask & MODE_RWX); X X if (status == 0) X { X /* Fix ownership. */ X X if (we_are_root) X if (chown (file_name, current_stat.st_uid, current_stat.st_gid) < 0) X ERROR ((0, errno, X _("%s: Cannot change owner to uid %lu, gid %lu"), X file_name, X (unsigned long) current_stat.st_uid, X (unsigned long) current_stat.st_gid)); X X print_for_mkdir (file_name, cursor - file_name, X ~newdir_umask & MODE_RWX); X did_something = 1; X X *cursor = '/'; X continue; X } X X *cursor = '/'; X X if (errno == EEXIST #if MSDOS X /* Turbo C mkdir gives a funny errno. */ X || errno == EACCES #endif X ) X /* Directory already exists. */ X continue; X X /* Some other error in the mkdir. We return to the caller. */ X break; X } X X errno = saved_errno; /* FIXME: errno should be read-only */ X return did_something; /* tell them to retry if we made one */ } X /*--------------------------------------------------------------------. | Attempt repairing what went wrong with the extraction. Delete an | | already existing file or create missing intermediate directories. | | Return nonzero if we somewhat increased our chances at a successful | | extraction. errno is properly restored on zero return. | `--------------------------------------------------------------------*/ X static int maybe_recoverable (char *file_name) { X switch (errno) X { X case EEXIST: X /* Attempt deleting an existing file. However, with -k, just stay X quiet. */ X X if (keep_old_files_option) X return 0; X X return remove_any_file (file_name, 0); X X case ENOENT: X /* Attempt creating missing intermediate directories. */ X X return make_directories (file_name); X X default: X /* Just say we can't do anything about it... */ X X return 0; X } } X /*---. | ? | `---*/ X static void extract_sparse_file (int fd, off_t *sizeleft, off_t totalsize, char *name) { X int sparse_ind = 0; X size_t written; X ssize_t count; X X /* assuming sizeleft is initially totalsize */ X X while (*sizeleft > 0) X { X union block *data_block = find_next_block (); X if (data_block == NULL) X { X ERROR ((0, 0, _("Unexpected EOF on archive file"))); X return; X } X if (lseek (fd, sparsearray[sparse_ind].offset, SEEK_SET) < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X ERROR ((0, errno, _("%s: lseek error at byte %s"), X STRINGIFY_BIGINT (sparsearray[sparse_ind].offset, buf), X name)); X return; X } X written = sparsearray[sparse_ind++].numbytes; X while (written > BLOCKSIZE) X { X count = full_write (fd, data_block->buffer, BLOCKSIZE); X if (count < 0) X ERROR ((0, errno, _("%s: Could not write to file"), name)); X written -= count; X *sizeleft -= count; X set_next_block_after (data_block); X data_block = find_next_block (); X } X X count = full_write (fd, data_block->buffer, written); X X if (count < 0) X ERROR ((0, errno, _("%s: Could not write to file"), name)); X else if (count != written) X { X char buf1[UINTMAX_STRSIZE_BOUND]; X char buf2[UINTMAX_STRSIZE_BOUND]; X ERROR ((0, 0, _("%s: Could only write %s of %s bytes"), X name, X STRINGIFY_BIGINT (totalsize - *sizeleft, buf1), X STRINGIFY_BIGINT (totalsize, buf2))); X skip_file (*sizeleft); X } X X written -= count; X *sizeleft -= count; X set_next_block_after (data_block); X } X X free (sparsearray); } X /*----------------------------------. | Extract a file from the archive. | `----------------------------------*/ X void extract_archive (void) { X union block *data_block; X int fd; X int status; X ssize_t sstatus; X size_t name_length; X size_t written; X int openflag; X off_t size; X int skipcrud; X int counter; X char typeflag; #if 0 X int sparse_ind = 0; #endif X union block *exhdr; X struct delayed_set_stat *data; X #define CURRENT_FILE_NAME (skipcrud + current_file_name) X X set_next_block_after (current_header); X decode_header (current_header, ¤t_stat, ¤t_format, 1); X X if (interactive_option && !confirm ("extract", current_file_name)) X { X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X return; X } X X /* Print the block from `current_header' and `current_stat'. */ X X if (verbose_option) X print_header (); X X /* Check for fully specified file names and other atrocities. */ X X skipcrud = 0; X while (!absolute_names_option && CURRENT_FILE_NAME[0] == '/') X { X static int warned_once = 0; X X skipcrud++; /* force relative path */ X if (!warned_once) X { X warned_once = 1; X WARN ((0, 0, _("\ Removing leading `/' from absolute path names in the archive"))); X } X } X X /* Take a safety backup of a previously existing file. */ X X if (backup_option && !to_stdout_option) X if (!maybe_backup_file (CURRENT_FILE_NAME, 0)) X { X ERROR ((0, errno, _("%s: Was unable to backup this file"), X CURRENT_FILE_NAME)); X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X return; X } X X /* Extract the archive entry according to its type. */ X X typeflag = current_header->header.typeflag; X switch (typeflag) X { X /* JK - What we want to do if the file is sparse is loop through X the array of sparse structures in the header and read in and X translate the character strings representing 1) the offset at X which to write and 2) how many bytes to write into numbers, X which we store into the scratch array, "sparsearray". This X array makes our life easier the same way it did in creating the X tar file that had to deal with a sparse file. X X After we read in the first five (at most) sparse structures, we X check to see if the file has an extended header, i.e., if more X sparse structures are needed to describe the contents of the new X file. If so, we read in the extended headers and continue to X store their contents into the sparsearray. */ X X case GNUTYPE_SPARSE: X sp_array_size = 10; X sparsearray = (struct sp_array *) X xmalloc (sp_array_size * sizeof (struct sp_array)); X X for (counter = 0; counter < SPARSES_IN_OLDGNU_HEADER; counter++) X { X sparsearray[counter].offset = X OFF_FROM_OCT (current_header->oldgnu_header.sp[counter].offset); X sparsearray[counter].numbytes = X SIZE_FROM_OCT (current_header->oldgnu_header.sp[counter].numbytes); X if (!sparsearray[counter].numbytes) X break; X } X X if (current_header->oldgnu_header.isextended) X { X /* Read in the list of extended headers and translate them X into the sparsearray as before. Note that this X invalidates current_header. */ X X /* static */ int ind = SPARSES_IN_OLDGNU_HEADER; X X while (1) X { X exhdr = find_next_block (); X for (counter = 0; counter < SPARSES_IN_SPARSE_HEADER; counter++) X { X if (counter + ind > sp_array_size - 1) X { X /* Realloc the scratch area since we've run out of X room. */ X X sp_array_size *= 2; X sparsearray = (struct sp_array *) X xrealloc (sparsearray, X sp_array_size * (sizeof (struct sp_array))); X } X /* Compare to 0, or use !(int)..., for Pyramid's dumb X compiler. */ X if (exhdr->sparse_header.sp[counter].numbytes == 0) X break; X sparsearray[counter + ind].offset = X OFF_FROM_OCT (exhdr->sparse_header.sp[counter].offset); X sparsearray[counter + ind].numbytes = X SIZE_FROM_OCT (exhdr->sparse_header.sp[counter].numbytes); X } X if (!exhdr->sparse_header.isextended) X break; X else X { X ind += SPARSES_IN_SPARSE_HEADER; X set_next_block_after (exhdr); X } X } X set_next_block_after (exhdr); X } X /* Fall through. */ X X case AREGTYPE: X case REGTYPE: X case CONTTYPE: X X /* Appears to be a file. But BSD tar uses the convention that a slash X suffix means a directory. */ X X name_length = strlen (CURRENT_FILE_NAME) - 1; X if (CURRENT_FILE_NAME[name_length] == '/') X goto really_dir; X X /* FIXME: deal with protection issues. */ X X again_file: X openflag = (keep_old_files_option ? X O_BINARY | O_NDELAY | O_WRONLY | O_CREAT | O_EXCL : X O_BINARY | O_NDELAY | O_WRONLY | O_CREAT | O_TRUNC) X | ((typeflag == GNUTYPE_SPARSE) ? 0 : O_APPEND); X X /* JK - The last | is a kludge to solve the problem the O_APPEND X flag causes with files we are trying to make sparse: when a file X is opened with O_APPEND, it writes to the last place that X something was written, thereby ignoring any lseeks that we have X done. We add this extra condition to make it able to lseek when X a file is sparse, i.e., we don't open the new file with this X flag. (Grump -- this bug caused me to waste a good deal of X time, I might add) */ X X if (to_stdout_option) X { X fd = 1; X goto extract_file; X } X X if (unlink_first_option) X remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); X #if O_CTG X /* Contiguous files (on the Masscomp) have to specify the size in X the open call that creates them. */ X X if (typeflag == CONTTYPE) X fd = open (CURRENT_FILE_NAME, openflag | O_CTG, X current_stat.st_mode, current_stat.st_size); X else X fd = open (CURRENT_FILE_NAME, openflag, current_stat.st_mode); X #else /* not O_CTG */ X if (typeflag == CONTTYPE) X { X static int conttype_diagnosed = 0; X X if (!conttype_diagnosed) X { X conttype_diagnosed = 1; X WARN ((0, 0, _("Extracting contiguous files as regular files"))); X } X } X fd = open (CURRENT_FILE_NAME, openflag, current_stat.st_mode); X #endif /* not O_CTG */ X X if (fd < 0) X { X if (maybe_recoverable (CURRENT_FILE_NAME)) X goto again_file; X X ERROR ((0, errno, _("%s: Could not create file"), X CURRENT_FILE_NAME)); X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X if (backup_option) X undo_last_backup (); X break; X } X X extract_file: X if (typeflag == GNUTYPE_SPARSE) X { X char *name; X size_t name_length_bis; X X /* Kludge alert. NAME is assigned to header.name because X during the extraction, the space that contains the header X will get scribbled on, and the name will get munged, so any X error messages that happen to contain the filename will look X REAL interesting unless we do this. */ X X name_length_bis = strlen (CURRENT_FILE_NAME) + 1; X name = (char *) xmalloc (name_length_bis); X memcpy (name, CURRENT_FILE_NAME, name_length_bis); X size = current_stat.st_size; X extract_sparse_file (fd, &size, current_stat.st_size, name); X } X else X for (size = current_stat.st_size; X size > 0; X size -= written) X { X if (multi_volume_option) X { X assign_string (&save_name, current_file_name); X save_totsize = current_stat.st_size; X save_sizeleft = size; X } X X /* Locate data, determine max length writeable, write it, X block that we have used the data, then check if the write X worked. */ X X data_block = find_next_block (); X if (data_block == NULL) X { X ERROR ((0, 0, _("Unexpected EOF on archive file"))); X break; /* FIXME: What happens, then? */ X } X X written = available_space_after (data_block); X X if (written > size) X written = size; X errno = 0; /* FIXME: errno should be read-only */ X sstatus = full_write (fd, data_block->buffer, written); X X set_next_block_after ((union block *) X (data_block->buffer + written - 1)); X if (sstatus == written) X continue; X X /* Error in writing to file. Print it, skip to next file in X archive. */ X X if (sstatus < 0) X ERROR ((0, errno, _("%s: Could not write to file"), X CURRENT_FILE_NAME)); X else X ERROR ((0, 0, _("%s: Could only write %lu of %lu bytes"), X CURRENT_FILE_NAME, X (unsigned long) sstatus, X (unsigned long) written)); X skip_file (size - written); X break; /* still do the close, mod time, chmod, etc */ X } X X if (multi_volume_option) X assign_string (&save_name, NULL); X X /* If writing to stdout, don't try to do anything to the filename; X it doesn't exist, or we don't want to touch it anyway. */ X X if (to_stdout_option) X break; X X status = close (fd); X if (status < 0) X { X ERROR ((0, errno, _("%s: Error while closing"), CURRENT_FILE_NAME)); X if (backup_option) X undo_last_backup (); X } X X set_stat (CURRENT_FILE_NAME, ¤t_stat, 0); X break; X X case SYMTYPE: X if (to_stdout_option) X break; X #ifdef S_ISLNK X if (unlink_first_option) X remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); X X while (status = symlink (current_link_name, CURRENT_FILE_NAME), X status != 0) X if (!maybe_recoverable (CURRENT_FILE_NAME)) X break; X X if (status == 0) X X /* Setting the attributes of symbolic links might, on some systems, X change the pointed to file, instead of the symbolic link itself. X At least some of these systems have a lchown call, and the X set_stat routine knows about this. */ X X set_stat (CURRENT_FILE_NAME, ¤t_stat, 1); X X else X { X ERROR ((0, errno, _("%s: Could not create symlink to `%s'"), X CURRENT_FILE_NAME, current_link_name)); X if (backup_option) X undo_last_backup (); X } X break; X #else /* not S_ISLNK */ X { X static int warned_once = 0; X X if (!warned_once) X { X warned_once = 1; X WARN ((0, 0, _("\ Attempting extraction of symbolic links as hard links"))); X } X } X /* Fall through. */ X #endif /* not S_ISLNK */ X X case LNKTYPE: X if (to_stdout_option) X break; X X if (unlink_first_option) X remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); X X again_link: X { X struct stat st1, st2; X X /* MSDOS does not implement links. However, djgpp's link() actually X copies the file. */ X status = link (current_link_name, CURRENT_FILE_NAME); X X if (status == 0) X break; X if (maybe_recoverable (CURRENT_FILE_NAME)) X goto again_link; X X if (incremental_option && errno == EEXIST) X break; X if (stat (current_link_name, &st1) == 0 X && stat (CURRENT_FILE_NAME, &st2) == 0 X && st1.st_dev == st2.st_dev X && st1.st_ino == st2.st_ino) X break; X X ERROR ((0, errno, _("%s: Could not link to `%s'"), X CURRENT_FILE_NAME, current_link_name)); X if (backup_option) X undo_last_backup (); X } X break; X #if S_IFCHR X case CHRTYPE: X current_stat.st_mode |= S_IFCHR; X goto make_node; #endif X #if S_IFBLK X case BLKTYPE: X current_stat.st_mode |= S_IFBLK; #endif X #if defined(S_IFCHR) || defined(S_IFBLK) X make_node: X if (to_stdout_option) X break; X X if (unlink_first_option) X remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); X X status = mknod (CURRENT_FILE_NAME, current_stat.st_mode, X current_stat.st_rdev); X if (status != 0) X { X if (maybe_recoverable (CURRENT_FILE_NAME)) X goto make_node; X X ERROR ((0, errno, _("%s: Could not make node"), CURRENT_FILE_NAME)); X if (backup_option) X undo_last_backup (); X break; X }; X set_stat (CURRENT_FILE_NAME, ¤t_stat, 0); X break; #endif X #ifdef S_ISFIFO X case FIFOTYPE: X if (to_stdout_option) X break; X X if (unlink_first_option) X remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); X X while (status = mkfifo (CURRENT_FILE_NAME, current_stat.st_mode), X status != 0) X if (!maybe_recoverable (CURRENT_FILE_NAME)) X break; X X if (status == 0) X set_stat (CURRENT_FILE_NAME, ¤t_stat, 0); X else X { X ERROR ((0, errno, _("%s: Could not make fifo"), CURRENT_FILE_NAME)); X if (backup_option) X undo_last_backup (); X } X break; #endif X X case DIRTYPE: X case GNUTYPE_DUMPDIR: X name_length = strlen (CURRENT_FILE_NAME) - 1; X X really_dir: X /* Check for trailing /, and zap as many as we find. */ X while (name_length && CURRENT_FILE_NAME[name_length] == '/') X CURRENT_FILE_NAME[name_length--] = '\0'; X X if (incremental_option) X { X /* Read the entry and delete files that aren't listed in the X archive. */ X X gnu_restore (skipcrud); X } X else if (typeflag == GNUTYPE_DUMPDIR) X skip_file (current_stat.st_size); X X if (to_stdout_option) X break; X X again_dir: X status = mkdir (CURRENT_FILE_NAME, X ((we_are_root ? 0 : MODE_WXUSR) X | current_stat.st_mode)); X if (status != 0) X { X /* If the directory creation fails, let's consider immediately the X case where the directory already exists. We have three good X reasons for clearing out this case before attempting recovery. X X 1) It would not be efficient recovering the error by deleting X the directory in maybe_recoverable, then recreating it right X away. We only hope we will be able to adjust its permissions X adequately, later. X X 2) Removing the directory might fail if it is not empty. By X exception, this real error is traditionally not reported. X X 3) Let's suppose `DIR' already exists and we are about to X extract `DIR/../DIR'. This would fail because the directory X already exists, and maybe_recoverable would react by removing X `DIR'. This then would fail again because there are missing X intermediate directories, and maybe_recoverable would react by X creating `DIR'. We would then have an extraction loop. */ X X if (errno == EEXIST) X { X struct stat st1; X int saved_errno = errno; X X if (stat (CURRENT_FILE_NAME, &st1) == 0 && S_ISDIR (st1.st_mode)) X goto check_perms; X X errno = saved_errno; /* FIXME: errno should be read-only */ X } X X if (maybe_recoverable (CURRENT_FILE_NAME)) X goto again_dir; X X /* If we're trying to create '.', let it be. */ X X /* FIXME: Strange style... */ X X if (CURRENT_FILE_NAME[name_length] == '.' X && (name_length == 0 X || CURRENT_FILE_NAME[name_length - 1] == '/')) X goto check_perms; X X ERROR ((0, errno, _("%s: Could not create directory"), X CURRENT_FILE_NAME)); X if (backup_option) X undo_last_backup (); X break; X } X X check_perms: X if (!we_are_root && MODE_WXUSR != (MODE_WXUSR & current_stat.st_mode)) X { X current_stat.st_mode |= MODE_WXUSR; X WARN ((0, 0, _("Added write and execute permission to directory %s"), X CURRENT_FILE_NAME)); X } X #if !MSDOS X /* MSDOS does not associate timestamps with directories. In this X case, no need to try delaying their restoration. */ X X if (touch_option) X X /* FIXME: I do not believe in this. Ignoring time stamps does not X alleviate the need of delaying the restoration of directories' X mode. Let's ponder this for a little while. */ X X set_mode (CURRENT_FILE_NAME, ¤t_stat); X X else X { X data = ((struct delayed_set_stat *) X xmalloc (sizeof (struct delayed_set_stat))); X data->file_name = xstrdup (CURRENT_FILE_NAME); X data->stat_info = current_stat; X data->next = delayed_set_stat_head; X delayed_set_stat_head = data; X } #endif /* !MSDOS */ X break; X X case GNUTYPE_VOLHDR: X if (verbose_option) X fprintf (stdlis, _("Reading %s\n"), current_file_name); X break; X X case GNUTYPE_NAMES: X extract_mangle (); X break; X X case GNUTYPE_MULTIVOL: X ERROR ((0, 0, _("\ Cannot extract `%s' -- file is continued from another volume"), X current_file_name)); X skip_file (current_stat.st_size); X if (backup_option) X undo_last_backup (); X break; X X case GNUTYPE_LONGNAME: X case GNUTYPE_LONGLINK: X ERROR ((0, 0, _("Visible long name error"))); X skip_file (current_stat.st_size); X if (backup_option) X undo_last_backup (); X break; X X default: X WARN ((0, 0, X _("Unknown file type '%c' for %s, extracted as normal file"), X typeflag, CURRENT_FILE_NAME)); X goto again_file; X } X #undef CURRENT_FILE_NAME } X /*----------------------------------------------------------------. | Set back the utime and mode for all the extracted directories. | `----------------------------------------------------------------*/ X void apply_delayed_set_stat (void) { X struct delayed_set_stat *data; X X while (delayed_set_stat_head != NULL) X { X data = delayed_set_stat_head; X delayed_set_stat_head = delayed_set_stat_head->next; X set_stat (data->file_name, &data->stat_info, 0); X free (data->file_name); X free (data); X } } SHAR_EOF $shar_touch -am 0702142499 'tar-1.13/src/extract.c' && chmod 0444 'tar-1.13/src/extract.c' || $echo 'restore of' 'tar-1.13/src/extract.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/extract.c:' 'MD5 check failed' 8997ed1daa1ee5fdfa0d1e3371427b40 tar-1.13/src/extract.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/extract.c'`" test 28412 -eq "$shar_count" || $echo 'tar-1.13/src/extract.c:' 'original size' '28412,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/incremen.c ============== if test -f 'tar-1.13/src/incremen.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/incremen.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/incremen.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/incremen.c' && /* GNU dump extensions to tar. X Copyright (C) 1988, 92, 93, 94, 96, 97 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include time_t time (); X #include "common.h" X /* Variable sized generic character buffers. */ X struct accumulator { X size_t allocated; X size_t length; X char *pointer; }; X /* Amount of space guaranteed just after a reallocation. */ #define ACCUMULATOR_SLACK 50 X /*---------------------------------------------------------. | Return the accumulated data from an ACCUMULATOR buffer. | `---------------------------------------------------------*/ X static char * get_accumulator (struct accumulator *accumulator) { X return accumulator->pointer; } X /*-----------------------------------------------. | Allocate and return a new accumulator buffer. | `-----------------------------------------------*/ X static struct accumulator * new_accumulator (void) { X struct accumulator *accumulator X = (struct accumulator *) xmalloc (sizeof (struct accumulator)); X X accumulator->allocated = ACCUMULATOR_SLACK; X accumulator->pointer = (char *) xmalloc (ACCUMULATOR_SLACK); X accumulator->length = 0; X return accumulator; } X /*-----------------------------------. | Deallocate an ACCUMULATOR buffer. | `-----------------------------------*/ X static void delete_accumulator (struct accumulator *accumulator) { X free (accumulator->pointer); X free (accumulator); } X /*----------------------------------------------------------------------. | At the end of an ACCUMULATOR buffer, add a DATA block of SIZE bytes. | `----------------------------------------------------------------------*/ X static void add_to_accumulator (struct accumulator *accumulator, X const char *data, size_t size) { X if (accumulator->length + size > accumulator->allocated) X { X accumulator->allocated = accumulator->length + size + ACCUMULATOR_SLACK; X accumulator->pointer = (char *) X xrealloc (accumulator->pointer, accumulator->allocated); X } X memcpy (accumulator->pointer + accumulator->length, data, size); X accumulator->length += size; } X /* Incremental dump specialities. */ X /* Current time. */ static time_t time_now; X /* List of directory names. */ struct directory X { X struct directory *next; /* next entry in list */ X const char *name; /* path name of directory */ X dev_t device_number; /* device number for directory */ X ino_t inode_number; /* inode number for directory */ X char allnew; X char nfs; X const char *dir_text; X }; static struct directory *directory_list = NULL; X #if HAVE_ST_FSTYPE_STRING X static const char nfs[] = "nfs"; # define NFS_FILE_STAT(st) (strcmp ((st).st_fstype, nfs) == 0) #else # define ST_DEV_MSB(st) (~ (dev_t) 0 << (sizeof (st).st_dev * CHAR_BIT - 1)) # define NFS_FILE_STAT(st) (((st).st_dev & ST_DEV_MSB (st)) != 0) #endif X /*-------------------------------------------------------------------. | Create and link a new directory entry for directory NAME, having a | | DEVICE_NUMBER and a INODE_NUMBER, with some TEXT. | `-------------------------------------------------------------------*/ X static void note_directory (char *name, struct stat *st, const char *text) { X struct directory *directory X = (struct directory *) xmalloc (sizeof (struct directory)); X X directory->next = directory_list; X directory_list = directory; X X directory->device_number = st->st_dev; X directory->inode_number = st->st_ino; X directory->name = xstrdup (name); X directory->dir_text = text; X directory->allnew = 0; X directory->nfs = NFS_FILE_STAT (*st); } X /*------------------------------------------------------------------------. | Return a directory entry for a given path NAME, or NULL if none found. | `------------------------------------------------------------------------*/ X static struct directory * find_directory (char *name) { X struct directory *directory; X X for (directory = directory_list; X directory; X directory = directory->next) X { X if (!strcmp (directory->name, name)) X return directory; X } X return NULL; } X /*---. | ? | `---*/ X static int compare_dirents (const voidstar first, const voidstar second) { X return strcmp ((*(char *const *) first) + 1, X (*(char *const *) second) + 1); } X /*---. | ? | `---*/ X char * get_directory_contents (char *path, dev_t device) { X struct accumulator *accumulator; X X /* Recursively scan the given PATH. */ X X { X DIR *dirp = opendir (path); /* for scanning directory */ X struct dirent *entry; /* directory entry being scanned */ X char *name_buffer; /* directory, `/', and directory member */ X size_t name_buffer_size; /* allocated size of name_buffer, minus 2 */ X size_t name_length; /* used length in name_buffer */ X struct directory *directory; /* for checking if already already seen */ X int all_children; X X if (dirp == NULL) X { X ERROR ((0, errno, _("Cannot open directory %s"), path)); X return NULL; X } X errno = 0; /* FIXME: errno should be read-only */ X X name_buffer_size = strlen (path) + NAME_FIELD_SIZE; X name_buffer = xmalloc (name_buffer_size + 2); X strcpy (name_buffer, path); X if (path[strlen (path) - 1] != '/') X strcat (name_buffer, "/"); X name_length = strlen (name_buffer); X X directory = find_directory (path); X all_children = directory ? directory->allnew : 0; X X accumulator = new_accumulator (); X X while (entry = readdir (dirp), entry) X { X /* Skip `.' and `..'. */ X X if (is_dot_or_dotdot (entry->d_name)) X continue; X X if (excluded_filename (excluded, entry->d_name)) X add_to_accumulator (accumulator, "N", 1); X else X { X struct stat stat_data; X X if (NAMLEN (entry) + name_length >= name_buffer_size) X { X while (NAMLEN (entry) + name_length >= name_buffer_size) X name_buffer_size += NAME_FIELD_SIZE; X name_buffer = (char *) X xrealloc (name_buffer, name_buffer_size + 2); X } X strcpy (name_buffer + name_length, entry->d_name); X X if (dereference_option #if STX_HIDDEN && !_LARGE_FILES /* AIX */ X ? statx (name_buffer, &stat_data, STATSIZE, STX_HIDDEN) X : statx (name_buffer, &stat_data, STATSIZE, STX_HIDDEN | STX_LINK) #else X ? stat (name_buffer, &stat_data) X : lstat (name_buffer, &stat_data) #endif X ) X { X ERROR ((0, errno, _("Cannot stat %s"), name_buffer)); X continue; X } X X if (one_file_system_option && device != stat_data.st_dev) X add_to_accumulator (accumulator, "N", 1); X #ifdef AIX X else if (S_ISHIDDEN (stat_data.st_mode)) X { X add_to_accumulator (accumulator, "D", 1); X strcat (entry->d_name, "A"); X entry->d_namlen++; X } #endif X X else if (S_ISDIR (stat_data.st_mode)) X { X if (directory = find_directory (name_buffer), directory) X { X /* With NFS, the same file can have two different X devices if an NFS directory is mounted in X multiple locations, which is relatively common X when automounting. For avoiding spurious X incremental redumping of directories, we have X to plainly consider all NFS devices as equal, X relying on the i-node only to establish X differences. */ X X if (! (((directory->nfs && NFS_FILE_STAT (stat_data)) X || directory->device_number == stat_data.st_dev) X && directory->inode_number == stat_data.st_ino)) X { X if (verbose_option) X WARN ((0, 0, _("Directory %s has been renamed"), X name_buffer)); X directory->allnew = 1; X directory->nfs = NFS_FILE_STAT (stat_data); X directory->device_number = stat_data.st_dev; X directory->inode_number = stat_data.st_ino; X } X directory->dir_text = ""; X } X else X { X if (verbose_option) X WARN ((0, 0, _("Directory %s is new"), name_buffer)); X note_directory (name_buffer, &stat_data, ""); X directory = find_directory (name_buffer); X directory->allnew = 1; X } X if (all_children && directory) X directory->allnew = 1; X X add_to_accumulator (accumulator, "D", 1); X } X X else X if (!all_children X && stat_data.st_mtime < newer_mtime_option X && (!after_date_option X || stat_data.st_ctime < newer_ctime_option)) X add_to_accumulator (accumulator, "N", 1); X else X add_to_accumulator (accumulator, "Y", 1); X } X X add_to_accumulator (accumulator, X entry->d_name, NAMLEN (entry) + 1); X } X add_to_accumulator (accumulator, "\000\000", 2); X X free (name_buffer); X closedir (dirp); X } X X /* Sort the contents of the directory, now that we have it all. */ X X { X char *pointer = get_accumulator (accumulator); X size_t counter; X char *cursor; X char *buffer; X char **array; X char **array_cursor; X X counter = 0; X for (cursor = pointer; *cursor; cursor += strlen (cursor) + 1) X counter++; X X if (counter == 0) X { X delete_accumulator (accumulator); X return NULL; X } X X array = (char **) xmalloc (sizeof (char *) * (counter + 1)); X X array_cursor = array; X for (cursor = pointer; *cursor; cursor += strlen (cursor) + 1) X *array_cursor++ = cursor; X *array_cursor = NULL; X X qsort ((voidstar) array, counter, sizeof (char *), compare_dirents); X X buffer = (char *) xmalloc ((size_t) (cursor - pointer + 2)); X X cursor = buffer; X for (array_cursor = array; *array_cursor; array_cursor++) X { X char *string = *array_cursor; X X while ((*cursor++ = *string++)) X continue; X } X *cursor = '\0'; X X delete_accumulator (accumulator); X free (array); X return buffer; X } } X /*----------------------------------------------------------------------. | Add all the files in PATH, which is a directory, to the namelist. If | | any of the files is a directory, recurse on the subdirectory. | `----------------------------------------------------------------------*/ X static void add_hierarchy_to_namelist (char *path, dev_t device) { X char *buffer = get_directory_contents (path, device); X X { X struct name *name; X X for (name = namelist; name; name = name->next) X if (strcmp (name->name, path) == 0) X break; X if (name) X name->dir_contents = buffer ? buffer : "\0\0\0\0"; X } X X if (buffer) X { X size_t name_length = strlen (path); X size_t allocated_length = (name_length >= NAME_FIELD_SIZE X ? name_length + NAME_FIELD_SIZE X : NAME_FIELD_SIZE); X char *name_buffer = xmalloc (allocated_length + 1); X /* FIXME: + 2 above? */ X char *string; X size_t string_length; X X strcpy (name_buffer, path); X if (name_buffer[name_length - 1] != '/') X { X name_buffer[name_length++] = '/'; X name_buffer[name_length] = '\0'; X } X X for (string = buffer; *string; string += string_length + 1) X { X string_length = strlen (string); X if (*string == 'D') X { X if (name_length + string_length >= allocated_length) X { X while (name_length + string_length >= allocated_length) X allocated_length += NAME_FIELD_SIZE; X name_buffer = (char *) X xrealloc (name_buffer, allocated_length + 1); X } X strcpy (name_buffer + name_length, string + 1); X addname (name_buffer); X add_hierarchy_to_namelist (name_buffer, device); X } X } X X free (name_buffer); X } } X /*---. | ? | `---*/ X static void read_directory_file (void) { X char *strp; X FILE *fp; X char buf[512]; X static char *path = NULL; X X if (path == NULL) X path = xmalloc (PATH_MAX); X time (&time_now); X if (listed_incremental_option[0] != '/') X { #if HAVE_GETCWD X if (!getcwd (path, PATH_MAX)) X FATAL_ERROR ((0, 0, _("Could not get current directory"))); #else X char *getwd (); X X if (!getwd (path)) X FATAL_ERROR ((0, 0, _("Could not get current directory: %s"), path)); #endif X X if (strlen (path) + 1 + strlen (listed_incremental_option) + 1 > PATH_MAX) X ERROR ((TAREXIT_FAILURE, 0, _("File name %s/%s too long"), X path, listed_incremental_option)); X X strcat (path, "/"); X strcat (path, listed_incremental_option); X listed_incremental_option = path; X } X fp = fopen (listed_incremental_option, "r"); X if (fp == 0 && errno != ENOENT) X { X ERROR ((0, errno, _("Cannot open %s"), listed_incremental_option)); X return; X } X if (!fp) X return; X fgets (buf, sizeof (buf), fp); X X /* FIXME: Using after_date_option as a first time flag looks fairly X dubious to me! So, using -N with incremental might be buggy just X because of the next few lines. I saw a few unexplained, almost harsh X advices, from other GNU people, about *not* using -N with incremental X dumps, and here might lie (part of) the reason. */ X if (!after_date_option) X { X newer_mtime_option = atol (buf); X after_date_option = 1; X } X X while (fgets (buf, sizeof (buf), fp)) X { X struct stat st; X long l; X X strp = &buf[strlen (buf)]; X if (strp[-1] == '\n') X strp[-1] = '\0'; X /* FIXME: For files ending with an incomplete line, maybe a NUL might X be missing, here... */ X X memset (&st, 0, sizeof st); X strp = buf; X st.st_dev = l = atol (strp); X if (st.st_dev != l) X ERROR ((0, 0, _("Device number out of range"))); X while (ISDIGIT (*strp)) X strp++; X st.st_ino = l = atol (strp); X if (st.st_ino != l) X ERROR ((0, 0, _("Inode number out of range"))); X while (ISSPACE ((unsigned char) *strp)) X strp++; X while (ISDIGIT (*strp)) X strp++; X strp++; X unquote_string (strp); X note_directory (strp, &st, NULL); X } X if (fclose (fp) == EOF) X ERROR ((0, errno, "%s", listed_incremental_option)); } X /*---. | ? | `---*/ X void write_dir_file (void) { X FILE *fp; X struct directory *directory; X char *str; X X fp = fopen (listed_incremental_option, "w"); X if (fp == 0) X { X ERROR ((0, errno, _("Cannot write to %s"), listed_incremental_option)); X return; X } X fprintf (fp, "%lu\n", (unsigned long) time_now); X for (directory = directory_list; directory; directory = directory->next) X { X if (!directory->dir_text) X continue; X str = quote_copy_string (directory->name); X if (str) X { X fprintf (fp, "%lu %lu %s\n", X (unsigned long) directory->device_number, X (unsigned long) directory->inode_number, X str); X free (str); X } X else X fprintf (fp, "%lu %lu %s\n", X (unsigned long) directory->device_number, X (unsigned long) directory->inode_number, X directory->name); X } X if (fclose (fp) == EOF) X ERROR ((0, errno, "%s", listed_incremental_option)); } X /*---. | ? | `---*/ X static int compare_names (char *param1, char *param2) { X struct name *n1 = (struct name *) param1; X struct name *n2 = (struct name *) param2; X X if (n1->found) X return n2->found ? strcmp (n1->name, n2->name) : -1; X X if (n2->found) X return 1; X X return strcmp (n1->name, n2->name); } X /*-------------------------------------------------------------------------. | Collect all the names from argv[] (or whatever), then expand them into a | | directory tree, and put all the directories at the beginning. | `-------------------------------------------------------------------------*/ X void collect_and_sort_names (void) { X struct name *name; X struct name *next_name; X int num_names; X struct stat statbuf; X X name_gather (); X X if (listed_incremental_option) X read_directory_file (); X X if (!namelist) X addname ("."); X X for (name = namelist; name; name = next_name) X { X next_name = name->next; X if (name->found || name->dir_contents) X continue; X if (name->regexp) /* FIXME: just skip regexps for now */ X continue; X if (name->change_dir) X if (chdir (name->change_dir) < 0) X { X ERROR ((0, errno, _("Cannot chdir to %s"), name->change_dir)); X continue; X } X X if ( #if STX_HIDDEN && !_LARGE_FILES /* AIX */ X statx (name->name, &statbuf, STATSIZE, STX_HIDDEN | STX_LINK) #else X lstat (name->name, &statbuf) < 0 #endif X ) X { X ERROR ((0, errno, _("Cannot stat %s"), name->name)); X continue; X } X if (S_ISDIR (statbuf.st_mode)) X { X name->found = 1; X add_hierarchy_to_namelist (name->name, statbuf.st_dev); X } X } X X num_names = 0; X for (name = namelist; name; name = name->next) X num_names++; X namelist = (struct name *) X merge_sort ((voidstar) namelist, num_names, X (char *) (&(namelist->next)) - (char *) namelist, X compare_names); X X for (name = namelist; name; name = name->next) X name->found = 0; X X if (listed_incremental_option) X write_dir_file (); } X /* Restoration of incremental dumps. */ X /*---. | ? | `---*/ X void gnu_restore (int skipcrud) { X char *current_dir; X char *archive_dir; X struct accumulator *accumulator; X char *p; X DIR *dirp; X struct dirent *d; X char *cur, *arc; X off_t size; X size_t copied; X union block *data_block; X char *to; X #define CURRENT_FILE_NAME (skipcrud + current_file_name) X X dirp = opendir (CURRENT_FILE_NAME); X X if (!dirp) X { X /* The directory doesn't exist now. It'll be created. In any X case, we don't have to delete any files out of it. */ X X skip_file (current_stat.st_size); X return; X } X X accumulator = new_accumulator (); X while (d = readdir (dirp), d) X { X if (is_dot_or_dotdot (d->d_name)) X continue; X X add_to_accumulator (accumulator, d->d_name, NAMLEN (d) + 1); X } X closedir (dirp); X add_to_accumulator (accumulator, "", 1); X X current_dir = get_accumulator (accumulator); X size = current_stat.st_size; X if (size != current_stat.st_size) X FATAL_ERROR ((0, 0, _("Memory exhausted"))); X archive_dir = (char *) xmalloc (size); X to = archive_dir; X for (; size > 0; size -= copied) X { X data_block = find_next_block (); X if (!data_block) X { X ERROR ((0, 0, _("Unexpected EOF in archive"))); X break; /* FIXME: What happens then? */ X } X copied = available_space_after (data_block); X if (copied > size) X copied = size; X memcpy (to, data_block->buffer, copied); X to += copied; X set_next_block_after ((union block *) X (data_block->buffer + copied - 1)); X } X X for (cur = current_dir; *cur; cur += strlen (cur) + 1) X { X for (arc = archive_dir; *arc; arc += strlen (arc) + 1) X { X arc++; X if (!strcmp (arc, cur)) X break; X } X if (*arc == '\0') X { X p = new_name (CURRENT_FILE_NAME, cur); X if (interactive_option && !confirm ("delete", p)) X { X free (p); X continue; X } X if (verbose_option) X fprintf (stdlis, _("%s: Deleting %s\n"), program_name, p); X if (!remove_any_file (p, 1)) X ERROR ((0, errno, _("Error while deleting %s"), p)); X free (p); X } X X } X delete_accumulator (accumulator); X free (archive_dir); X #undef CURRENT_FILE_NAME } SHAR_EOF $shar_touch -am 0706224299 'tar-1.13/src/incremen.c' && chmod 0444 'tar-1.13/src/incremen.c' || $echo 'restore of' 'tar-1.13/src/incremen.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/incremen.c:' 'MD5 check failed' dedbe790d887f93297fd79d44b135d3c tar-1.13/src/incremen.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/incremen.c'`" test 19282 -eq "$shar_count" || $echo 'tar-1.13/src/incremen.c:' 'original size' '19282,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/list.c ============== if test -f 'tar-1.13/src/list.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/list.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/list.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/list.c' && /* List a tar archive, with support routines for reading a tar archive. X Copyright 1988,92,93,94,96,97,98,1999 Free Software Foundation, Inc. X Written by John Gilmore, on 1985-08-26. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Define to non-zero for forcing old ctime() instead of isotime(). */ #undef USE_OLD_CTIME X #include "system.h" #include X #include X #ifndef FNM_LEADING_DIR # include #endif X #include "common.h" X union block *current_header; /* points to current archive header */ struct stat current_stat; /* stat struct corresponding */ enum archive_format current_format; /* recognized format */ X static uintmax_t from_oct PARAMS ((const char *, size_t, const char *, uintmax_t)); X X /*-----------------------------------. | Main loop for reading an archive. | `-----------------------------------*/ X void read_and (void (*do_something) ()) { X enum read_header status = HEADER_STILL_UNREAD; X enum read_header prev_status; X char save_typeflag; X X name_gather (); X open_archive (ACCESS_READ); X X while (1) X { X prev_status = status; X status = read_header (); X switch (status) X { X case HEADER_STILL_UNREAD: X abort (); X X case HEADER_SUCCESS: X X /* Valid header. We should decode next field (mode) first. X Ensure incoming names are null terminated. */ X X /* FIXME: This is a quick kludge before 1.12 goes out. */ X current_stat.st_mtime = TIME_FROM_OCT (current_header->header.mtime); X X if (!name_match (current_file_name) X || current_stat.st_mtime < newer_mtime_option X || excluded_filename (excluded, base_name (current_file_name))) X { X int isextended = 0; X X if (current_header->header.typeflag == GNUTYPE_VOLHDR X || current_header->header.typeflag == GNUTYPE_MULTIVOL X || current_header->header.typeflag == GNUTYPE_NAMES) X { X (*do_something) (); X continue; X } X if (show_omitted_dirs_option X && current_header->header.typeflag == DIRTYPE) X WARN ((0, 0, _("Omitting %s"), current_file_name)); X X /* Skip past it in the archive. */ X X if (current_header->oldgnu_header.isextended) X isextended = 1; X save_typeflag = current_header->header.typeflag; X set_next_block_after (current_header); X if (isextended) X { #if 0 X union block *exhdr; X X while (1) X { X exhdr = find_next_block (); X if (!exhdr->sparse_header.isextended) X { X set_next_block_after (exhdr); X break; X } X } X set_next_block_after (exhdr); #endif X skip_extended_headers (); X } X X /* Skip to the next header on the archive. */ X X if (save_typeflag != DIRTYPE) X skip_file (current_stat.st_size); X continue; X } X X (*do_something) (); X continue; X X case HEADER_ZERO_BLOCK: X if (block_number_option) X { X char buf[UINTMAX_STRSIZE_BOUND]; X fprintf (stdlis, _("block %s: ** Block of NULs **\n"), X STRINGIFY_BIGINT (current_block_ordinal (), buf)); X } X X set_next_block_after (current_header); X status = prev_status; X if (ignore_zeros_option) X continue; X break; X X case HEADER_END_OF_FILE: X if (block_number_option) X { X char buf[UINTMAX_STRSIZE_BOUND]; X fprintf (stdlis, _("block %s: ** End of File **\n"), X STRINGIFY_BIGINT (current_block_ordinal (), buf)); X } X break; X X case HEADER_FAILURE: X /* If the previous header was good, tell them that we are X skipping bad ones. */ X set_next_block_after (current_header); X switch (prev_status) X { X case HEADER_STILL_UNREAD: X WARN ((0, 0, _("Hmm, this doesn't look like a tar archive"))); X /* Fall through. */ X X case HEADER_ZERO_BLOCK: X case HEADER_SUCCESS: X WARN ((0, 0, _("Skipping to next file header"))); X break; X X case HEADER_END_OF_FILE: X case HEADER_FAILURE: X /* We are in the middle of a cascade of errors. */ X break; X } X continue; X } X break; X } X X apply_delayed_set_stat (); X close_archive (); X names_notfound (); /* print names not found */ } X /*---------------------------------------------. | Print a header block, based on tar options. | `---------------------------------------------*/ X void list_archive (void) { X int isextended = 0; /* to remember if current_header is extended */ X X /* Print the header block. */ X X if (verbose_option) X { X if (verbose_option > 1) X decode_header (current_header, ¤t_stat, ¤t_format, 0); X print_header (); X } X X if (incremental_option && current_header->header.typeflag == GNUTYPE_DUMPDIR) X { X off_t size; X size_t written, check; X union block *data_block; X X set_next_block_after (current_header); X if (multi_volume_option) X { X assign_string (&save_name, current_file_name); X save_totsize = current_stat.st_size; X } X for (size = current_stat.st_size; size > 0; size -= written) X { X if (multi_volume_option) X save_sizeleft = size; X data_block = find_next_block (); X if (!data_block) X { X ERROR ((0, 0, _("EOF in archive file"))); X break; /* FIXME: What happens, then? */ X } X written = available_space_after (data_block); X if (written > size) X written = size; X errno = 0; /* FIXME: errno should be read-only */ X check = fwrite (data_block->buffer, sizeof (char), written, stdlis); X set_next_block_after ((union block *) X (data_block->buffer + written - 1)); X if (check != written) X { X ERROR ((0, errno, _("Only wrote %lu of %lu bytes to file %s"), X (unsigned long) check, X (unsigned long) written, current_file_name)); X skip_file (size - written); X break; X } X } X if (multi_volume_option) X assign_string (&save_name, NULL); X fputc ('\n', stdlis); X fflush (stdlis); X return; X X } X X /* Check to see if we have an extended header to skip over also. */ X X if (current_header->oldgnu_header.isextended) X isextended = 1; X X /* Skip past the header in the archive. */ X X set_next_block_after (current_header); X X /* If we needed to skip any extended headers, do so now, by reading X extended headers and skipping past them in the archive. */ X X if (isextended) X { #if 0 X union block *exhdr; X X while (1) X { X exhdr = find_next_block (); X X if (!exhdr->sparse_header.isextended) X { X set_next_block_after (exhdr); X break; X } X set_next_block_after (exhdr); X } #endif X skip_extended_headers (); X } X X if (multi_volume_option) X assign_string (&save_name, current_file_name); X X /* Skip to the next header on the archive. */ X X skip_file (current_stat.st_size); X X if (multi_volume_option) X assign_string (&save_name, NULL); } X /*-----------------------------------------------------------------------. | Read a block that's supposed to be a header block. Return its address | | in "current_header", and if it is good, the file's size in | | current_stat.st_size. | | | | Return 1 for success, 0 if the checksum is bad, EOF on eof, 2 for a | | block full of zeros (EOF marker). | | | | You must always set_next_block_after(current_header) to skip past the | | header which this routine reads. | `-----------------------------------------------------------------------*/ X /* The standard BSD tar sources create the checksum by adding up the X bytes in the header as type char. I think the type char was unsigned X on the PDP-11, but it's signed on the Next and Sun. It looks like the X sources to BSD tar were never changed to compute the checksum X currectly, so both the Sun and Next add the bytes of the header as X signed chars. This doesn't cause a problem until you get a file with X a name containing characters with the high bit set. So read_header X computes two checksums -- signed and unsigned. */ X /* FIXME: The signed checksum computation is broken on machines where char's X are unsigned. It's uneasy to handle all cases correctly... */ X enum read_header read_header (void) { X size_t i; X long unsigned_sum; /* the POSIX one :-) */ X long signed_sum; /* the Sun one :-( */ X long recorded_sum; X uintmax_t parsed_sum; X char *p; X union block *header; X char **longp; X char *bp; X union block *data_block; X size_t size, written; X static char *next_long_name, *next_long_link; X X while (1) X { X header = find_next_block (); X current_header = header; X if (!header) X return HEADER_END_OF_FILE; X X parsed_sum = from_oct (header->header.chksum, X sizeof header->header.chksum, X (char *) 0, TYPE_MAXIMUM (long)); X if (parsed_sum == (uintmax_t) -1) X return HEADER_FAILURE; X X recorded_sum = parsed_sum; X unsigned_sum = 0; X signed_sum = 0; X p = header->buffer; X for (i = sizeof (*header); i-- != 0;) X { X /* We can't use unsigned char here because of old compilers, X e.g. V7. */ X X unsigned_sum += 0xFF & *p; X signed_sum += *p++; X } X X /* Adjust checksum to count the "chksum" field as blanks. */ X X for (i = sizeof (header->header.chksum); i-- != 0;) X { X unsigned_sum -= 0xFF & header->header.chksum[i]; X signed_sum -= header->header.chksum[i]; X } X unsigned_sum += ' ' * sizeof header->header.chksum; X signed_sum += ' ' * sizeof header->header.chksum; X X if (unsigned_sum == sizeof header->header.chksum * ' ') X { X /* This is a zeroed block...whole block is 0's except for the X blanks we faked for the checksum field. */ X X return HEADER_ZERO_BLOCK; X } X X if (unsigned_sum != recorded_sum && signed_sum != recorded_sum) X return HEADER_FAILURE; X X /* Good block. Decode file size and return. */ X X if (header->header.typeflag == LNKTYPE) X current_stat.st_size = 0; /* links 0 size on tape */ X else X current_stat.st_size = OFF_FROM_OCT (header->header.size); X X header->header.name[NAME_FIELD_SIZE - 1] = '\0'; X if (header->header.typeflag == GNUTYPE_LONGNAME X || header->header.typeflag == GNUTYPE_LONGLINK) X { X longp = ((header->header.typeflag == GNUTYPE_LONGNAME) X ? &next_long_name X : &next_long_link); X X set_next_block_after (header); X if (*longp) X free (*longp); X size = current_stat.st_size; X if (size != current_stat.st_size) X FATAL_ERROR ((0, 0, _("Memory exhausted"))); X bp = *longp = (char *) xmalloc (size); X X for (; size > 0; size -= written) X { X data_block = find_next_block (); X if (data_block == NULL) X { X ERROR ((0, 0, _("Unexpected EOF on archive file"))); X break; X } X written = available_space_after (data_block); X if (written > size) X written = size; X X memcpy (bp, data_block->buffer, written); X bp += written; X set_next_block_after ((union block *) X (data_block->buffer + written - 1)); X } X X /* Loop! */ X X } X else X { X char *name = next_long_name; X struct posix_header *h = ¤t_header->header; X char namebuf[sizeof h->prefix + 1 + sizeof h->name + 1]; X X if (! name) X { X /* Accept file names as specified by POSIX.1-1996 X section 10.1.1. */ X char *np = namebuf; X if (h->prefix[0]) X { X memcpy (np, h->prefix, sizeof h->prefix); X np[sizeof h->prefix] = '\0'; X np += strlen (np); X *np++ = '/'; X } X memcpy (np, h->name, sizeof h->name); X np[sizeof h->name] = '\0'; X name = namebuf; X } X X assign_string (¤t_file_name, name); X assign_string (¤t_link_name, X (next_long_link ? next_long_link X : current_header->header.linkname)); X next_long_link = next_long_name = 0; X return HEADER_SUCCESS; X } X } } X /*-------------------------------------------------------------------------. | Decode things from a file HEADER block into STAT_INFO, also setting | | *FORMAT_POINTER depending on the header block format. If DO_USER_GROUP, | | decode the user/group information (this is useful for extraction, but | | waste time when merely listing). | | | | read_header() has already decoded the checksum and length, so we don't. | | | | This routine should *not* be called twice for the same block, since the | | two calls might use different DO_USER_GROUP values and thus might end up | | with different uid/gid for the two calls. If anybody wants the uid/gid | | they should decode it first, and other callers should decode it without | | uid/gid before calling a routine, e.g. print_header, that assumes | | decoded data. | `-------------------------------------------------------------------------*/ X void decode_header (union block *header, struct stat *stat_info, X enum archive_format *format_pointer, int do_user_group) { X enum archive_format format; X X if (strcmp (header->header.magic, TMAGIC) == 0) X format = POSIX_FORMAT; X else if (strcmp (header->header.magic, OLDGNU_MAGIC) == 0) X format = OLDGNU_FORMAT; X else X format = V7_FORMAT; X *format_pointer = format; X X stat_info->st_mode = MODE_FROM_OCT (header->header.mode); X stat_info->st_mtime = TIME_FROM_OCT (header->header.mtime); X X if (format == OLDGNU_FORMAT && incremental_option) X { X stat_info->st_atime = TIME_FROM_OCT (header->oldgnu_header.atime); X stat_info->st_ctime = TIME_FROM_OCT (header->oldgnu_header.ctime); X } X X if (format == V7_FORMAT) X { X stat_info->st_uid = UID_FROM_OCT (header->header.uid); X stat_info->st_gid = GID_FROM_OCT (header->header.gid); X stat_info->st_rdev = 0; X } X else X { X if (do_user_group) X { X /* FIXME: Decide if this should somewhat depend on -p. */ X X if (numeric_owner_option X || !*header->header.uname X || !uname_to_uid (header->header.uname, &stat_info->st_uid)) X stat_info->st_uid = UID_FROM_OCT (header->header.uid); X X if (numeric_owner_option X || !*header->header.gname X || !gname_to_gid (header->header.gname, &stat_info->st_gid)) X stat_info->st_gid = GID_FROM_OCT (header->header.gid); X } X switch (header->header.typeflag) X { #ifdef S_IFBLK X case BLKTYPE: X stat_info->st_rdev X = makedev (MAJOR_FROM_OCT (header->header.devmajor), X MINOR_FROM_OCT (header->header.devminor)); X break; #endif X #ifdef S_IFCHR X case CHRTYPE: X stat_info->st_rdev X = makedev (MAJOR_FROM_OCT (header->header.devmajor), X MINOR_FROM_OCT (header->header.devminor)); X break; #endif X X default: X stat_info->st_rdev = 0; X } X } } X /*------------------------------------------------------------------------. | Quick and dirty octal conversion. Result is -1 if the field is invalid | | (all blank, or nonoctal). | `------------------------------------------------------------------------*/ X static uintmax_t from_oct (const char *where0, size_t digs0, const char *type, uintmax_t maxval) { X uintmax_t value; X const char *where = where0; X size_t digs = digs0; X X for (;;) X { X if (digs == 0) X { X if (type) X ERROR ((0, 0, _("Blanks in header where octal %s value expected"), X type)); X return -1; X } X if (!ISSPACE ((unsigned char) *where)) X break; X where++; X digs--; X } X X value = 0; X while (digs != 0 && ISODIGIT (*where)) X { X /* Scan til nonoctal. */ X X if (value << 3 >> 3 != value) X goto out_of_range; X value = (value << 3) | (*where++ - '0'); X --digs; X } X X if (digs != 0 && *where && !ISSPACE ((unsigned char) *where)) X { X if (type) X { X char buf[1000]; /* Big enough to represent any header. */ X static struct quoting_options *o; X X if (!o) X { X o = clone_quoting_options ((struct quoting_options *) 0); X set_quoting_style (o, escape_quoting_style); X } X X quotearg_buffer (buf, sizeof buf, where0, digs0, o); X ERROR ((0, 0, X _("Header contains \"%.*s\" where octal %s value expected"), X (int) sizeof buf, buf, type)); X } X X return -1; X } X X if (value <= maxval) X return value; X X out_of_range: X if (type) X ERROR ((0, 0, _("Octal value `%.*s' is out of range for %s"), X (int) digs0, where0, type)); X return -1; } gid_t gid_from_oct (const char *p, size_t s) { X return from_oct (p, s, "gid_t", (uintmax_t) TYPE_MAXIMUM (gid_t)); } major_t major_from_oct (const char *p, size_t s) { X return from_oct (p, s, "major_t", (uintmax_t) TYPE_MAXIMUM (major_t)); } minor_t minor_from_oct (const char *p, size_t s) { X return from_oct (p, s, "minor_t", (uintmax_t) TYPE_MAXIMUM (minor_t)); } mode_t mode_from_oct (const char *p, size_t s) { X /* Do not complain about unrecognized mode bits. */ X unsigned u = from_oct (p, s, "mode_t", TYPE_MAXIMUM (uintmax_t)); X return ((u & TSUID ? S_ISUID : 0) X | (u & TSGID ? S_ISGID : 0) X | (u & TSVTX ? S_ISVTX : 0) X | (u & TUREAD ? S_IRUSR : 0) X | (u & TUWRITE ? S_IWUSR : 0) X | (u & TUEXEC ? S_IXUSR : 0) X | (u & TGREAD ? S_IRGRP : 0) X | (u & TGWRITE ? S_IWGRP : 0) X | (u & TGEXEC ? S_IXGRP : 0) X | (u & TOREAD ? S_IROTH : 0) X | (u & TOWRITE ? S_IWOTH : 0) X | (u & TOEXEC ? S_IXOTH : 0)); } off_t off_from_oct (const char *p, size_t s) { X return from_oct (p, s, "off_t", (uintmax_t) TYPE_MAXIMUM (off_t)); } size_t size_from_oct (const char *p, size_t s) { X return from_oct (p, s, "size_t", (uintmax_t) TYPE_MAXIMUM (size_t)); } time_t time_from_oct (const char *p, size_t s) { X return from_oct (p, s, "time_t", (uintmax_t) TYPE_MAXIMUM (time_t)); } uid_t uid_from_oct (const char *p, size_t s) { X return from_oct (p, s, "uid_t", (uintmax_t) TYPE_MAXIMUM (uid_t)); } uintmax_t uintmax_from_oct (const char *p, size_t s) { X return from_oct (p, s, "uintmax_t", TYPE_MAXIMUM (uintmax_t)); } X X X /*----------------------------------------------------------------------. | Format O as a null-terminated decimal string into BUF _backwards_; | | return pointer to start of result. | `----------------------------------------------------------------------*/ char * stringify_uintmax_t_backwards (uintmax_t o, char *buf) { X *--buf = '\0'; X do X *--buf = '0' + (int) (o % 10); X while ((o /= 10) != 0); X return buf; } X #if !USE_OLD_CTIME X /*-------------------------------------------. | Return the time formatted along ISO 8601. | `-------------------------------------------*/ X /* Also, see http://www.ft.uni-erlangen.de/~mskuhn/iso-time.html. */ X static char * isotime (const time_t *time) { X static char buffer[21]; X struct tm *tm; X X tm = localtime (time); X sprintf (buffer, "%4d-%02d-%02d %02d:%02d:%02d\n", X tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, X tm->tm_hour, tm->tm_min, tm->tm_sec); X return buffer; } X #endif /* not USE_OLD_CTIME */ X /*-------------------------------------------------------------------------. | Decode MODE from its binary form in a stat structure, and encode it into | | a 9 characters string STRING, terminated with a NUL. | `-------------------------------------------------------------------------*/ X static void decode_mode (mode_t mode, char *string) { X *string++ = mode & S_IRUSR ? 'r' : '-'; X *string++ = mode & S_IWUSR ? 'w' : '-'; X *string++ = (mode & S_ISUID X ? (mode & S_IXUSR ? 's' : 'S') X : (mode & S_IXUSR ? 'x' : '-')); X *string++ = mode & S_IRGRP ? 'r' : '-'; X *string++ = mode & S_IWGRP ? 'w' : '-'; X *string++ = (mode & S_ISGID X ? (mode & S_IXGRP ? 's' : 'S') X : (mode & S_IXGRP ? 'x' : '-')); X *string++ = mode & S_IROTH ? 'r' : '-'; X *string++ = mode & S_IWOTH ? 'w' : '-'; X *string++ = (mode & S_ISVTX X ? (mode & S_IXOTH ? 't' : 'T') X : (mode & S_IXOTH ? 'x' : '-')); X *string = '\0'; } X /*-------------------------------------------------------------------------. | Actually print it. | | | | Plain and fancy file header block logging. Non-verbose just prints the | | name, e.g. for "tar t" or "tar x". This should just contain file names, | | so it can be fed back into tar with xargs or the "-T" option. The | | verbose option can give a bunch of info, one line per file. I doubt | | anybody tries to parse its format, or if they do, they shouldn't. Unix | | tar is pretty random here anyway. | `-------------------------------------------------------------------------*/ X /* FIXME: Note that print_header uses the globals HEAD, HSTAT, and X HEAD_STANDARD, which must be set up in advance. Not very clean... */ X /* UGSWIDTH starts with 18, so with user and group names <= 8 chars, the X columns never shift during the listing. */ #define UGSWIDTH 18 static int ugswidth = UGSWIDTH; /* maximum width encountered so far */ X /* DATEWIDTH is the number of columns taken by the date and time fields. */ #if USE_OLD_CDATE # define DATEWIDTH 19 #else # define DATEWIDTH 18 #endif X void print_header (void) { X char modes[11]; X char *timestamp; X /* These hold formatted ints. */ X char uform[UINTMAX_STRSIZE_BOUND], gform[UINTMAX_STRSIZE_BOUND]; X char *user, *group; X char size[2 * UINTMAX_STRSIZE_BOUND]; X /* holds formatted size or major,minor */ X char uintbuf[UINTMAX_STRSIZE_BOUND]; X time_t longie; /* to make ctime() call portable */ X int pad; X char *name; X X if (block_number_option) X { X char buf[UINTMAX_STRSIZE_BOUND]; X fprintf (stdlis, _("block %s: "), X STRINGIFY_BIGINT (current_block_ordinal (), buf)); X } X X if (verbose_option <= 1) X { X /* Just the fax, mam. */ X X char *quoted_name = quote_copy_string (current_file_name); X X if (quoted_name) X { X fprintf (stdlis, "%s\n", quoted_name); X free (quoted_name); X } X else X fprintf (stdlis, "%s\n", current_file_name); X } X else X { X /* File type and modes. */ X X modes[0] = '?'; X switch (current_header->header.typeflag) X { X case GNUTYPE_VOLHDR: X modes[0] = 'V'; X break; X X case GNUTYPE_MULTIVOL: X modes[0] = 'M'; X break; X X case GNUTYPE_NAMES: X modes[0] = 'N'; X break; X X case GNUTYPE_LONGNAME: X case GNUTYPE_LONGLINK: X ERROR ((0, 0, _("Visible longname error"))); X break; X X case GNUTYPE_SPARSE: X case REGTYPE: X case AREGTYPE: X case LNKTYPE: X modes[0] = '-'; X if (current_file_name[strlen (current_file_name) - 1] == '/') X modes[0] = 'd'; X break; X case GNUTYPE_DUMPDIR: X modes[0] = 'd'; X break; X case DIRTYPE: X modes[0] = 'd'; X break; X case SYMTYPE: X modes[0] = 'l'; X break; X case BLKTYPE: X modes[0] = 'b'; X break; X case CHRTYPE: X modes[0] = 'c'; X break; X case FIFOTYPE: X modes[0] = 'p'; X break; X case CONTTYPE: X modes[0] = 'C'; X break; X } X X decode_mode (current_stat.st_mode, modes + 1); X X /* Timestamp. */ X X longie = current_stat.st_mtime; #if USE_OLD_CTIME X timestamp = ctime (&longie); X timestamp[16] = '\0'; X timestamp[24] = '\0'; #else X timestamp = isotime (&longie); X timestamp[16] = '\0'; #endif X X /* User and group names. */ X X if (*current_header->header.uname && current_format != V7_FORMAT) X user = current_header->header.uname; X else X user = STRINGIFY_BIGINT (UINTMAX_FROM_OCT (current_header->header.uid), X uform); X X if (*current_header->header.gname && current_format != V7_FORMAT) X group = current_header->header.gname; X else X group = STRINGIFY_BIGINT (UINTMAX_FROM_OCT X (current_header->header.gid), X gform); X X /* Format the file size or major/minor device numbers. */ X X switch (current_header->header.typeflag) X { #if defined(S_IFBLK) || defined(S_IFCHR) X case CHRTYPE: X case BLKTYPE: X sprintf (size, "%lu,%lu", X (unsigned long) major (current_stat.st_rdev), X (unsigned long) minor (current_stat.st_rdev)); X break; #endif X case GNUTYPE_SPARSE: X strcpy (size, X STRINGIFY_BIGINT X (UINTMAX_FROM_OCT (current_header->oldgnu_header.realsize), X uintbuf)); X break; X default: X strcpy (size, STRINGIFY_BIGINT (current_stat.st_size, uintbuf)); X break; X } X X /* Figure out padding and print the whole line. */ X X pad = strlen (user) + strlen (group) + strlen (size) + 1; X if (pad > ugswidth) X ugswidth = pad; X #if USE_OLD_CTIME X fprintf (stdlis, "%s %s/%s %*s%s %s %s", X modes, user, group, ugswidth - pad, "", X size, timestamp + 4, timestamp + 20); #else X fprintf (stdlis, "%s %s/%s %*s%s %s", X modes, user, group, ugswidth - pad, "", size, timestamp); #endif X X name = quote_copy_string (current_file_name); X if (name) X { X fprintf (stdlis, " %s", name); X free (name); X } X else X fprintf (stdlis, " %s", current_file_name); X X switch (current_header->header.typeflag) X { X case SYMTYPE: X name = quote_copy_string (current_link_name); X if (name) X { X fprintf (stdlis, " -> %s\n", name); X free (name); X } X else X fprintf (stdlis, " -> %s\n", current_link_name); X break; X X case LNKTYPE: X name = quote_copy_string (current_link_name); X if (name) X { X fprintf (stdlis, _(" link to %s\n"), name); X free (name); X } X else X fprintf (stdlis, _(" link to %s\n"), current_link_name); X break; X X default: X fprintf (stdlis, _(" unknown file type `%c'\n"), X current_header->header.typeflag); X break; X X case AREGTYPE: X case REGTYPE: X case GNUTYPE_SPARSE: X case CHRTYPE: X case BLKTYPE: X case DIRTYPE: X case FIFOTYPE: X case CONTTYPE: X case GNUTYPE_DUMPDIR: X putc ('\n', stdlis); X break; X X case GNUTYPE_VOLHDR: X fprintf (stdlis, _("--Volume Header--\n")); X break; X X case GNUTYPE_MULTIVOL: X strcpy (size, X STRINGIFY_BIGINT X (UINTMAX_FROM_OCT (current_header->oldgnu_header.offset), X uintbuf)); X fprintf (stdlis, _("--Continued at byte %s--\n"), size); X break; X X case GNUTYPE_NAMES: X fprintf (stdlis, _("--Mangled file names--\n")); X break; X } X } X fflush (stdlis); } X /*--------------------------------------------------------------. | Print a similar line when we make a directory automatically. | `--------------------------------------------------------------*/ X void print_for_mkdir (char *pathname, int length, mode_t mode) { X char modes[11]; X char *name; X X if (verbose_option > 1) X { X /* File type and modes. */ X X modes[0] = 'd'; X decode_mode (mode, modes + 1); X X if (block_number_option) X { X char buf[UINTMAX_STRSIZE_BOUND]; X fprintf (stdlis, _("block %s: "), X STRINGIFY_BIGINT (current_block_ordinal (), buf)); X } X name = quote_copy_string (pathname); X if (name) X { X fprintf (stdlis, "%s %*s %.*s\n", modes, ugswidth + DATEWIDTH, X _("Creating directory:"), length, name); X free (name); X } X else X fprintf (stdlis, "%s %*s %.*s\n", modes, ugswidth + DATEWIDTH, X _("Creating directory:"), length, pathname); X } } X /*--------------------------------------------------------. | Skip over SIZE bytes of data in blocks in the archive. | `--------------------------------------------------------*/ X void skip_file (off_t size) { X union block *x; X X if (multi_volume_option) X { X save_totsize = size; X save_sizeleft = size; X } X X while (size > 0) X { X x = find_next_block (); X if (x == NULL) X FATAL_ERROR ((0, 0, _("Unexpected EOF on archive file"))); X X set_next_block_after (x); X size -= BLOCKSIZE; X if (multi_volume_option) X save_sizeleft -= BLOCKSIZE; X } } X /*---. | ? | `---*/ X void skip_extended_headers (void) { X union block *exhdr; X X while (1) X { X exhdr = find_next_block (); X if (!exhdr->sparse_header.isextended) X { X set_next_block_after (exhdr); X break; X } X set_next_block_after (exhdr); X } } SHAR_EOF $shar_touch -am 0706224699 'tar-1.13/src/list.c' && chmod 0444 'tar-1.13/src/list.c' || $echo 'restore of' 'tar-1.13/src/list.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/list.c:' 'MD5 check failed' f6d30eb165fa298062e5d077979392b6 tar-1.13/src/list.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/list.c'`" test 28260 -eq "$shar_count" || $echo 'tar-1.13/src/list.c:' 'original size' '28260,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/mangle.c ============== if test -f 'tar-1.13/src/mangle.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/mangle.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/mangle.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/mangle.c' && /* Encode long filenames for GNU tar. X Copyright (C) 1988, 1992, 1994, 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include time_t time (); X #include "common.h" X struct mangled X { X struct mangled *next; X int type; X char mangled[NAME_FIELD_SIZE]; X char *linked_to; X char normal[1]; X }; X /* Should use a hash table, etc. . */ struct mangled *first_mangle; int mangled_num = 0; X /*---------------------------------------------------------------------. | Extract a GNUTYPE_NAMES record contents. It seems that such are not | | produced anymore by GNU tar, but we leave the reading code around | | nevertheless, for salvaging old tapes. | `---------------------------------------------------------------------*/ X void extract_mangle (void) { X off_t size = current_stat.st_size; X char *buffer = xmalloc ((size_t) (size + 1)); X char *copy = buffer; X char *cursor = buffer; X X if (size != (size_t) size || size == (size_t) -1) X FATAL_ERROR ((0, 0, _("Memory exhausted"))); X X buffer[size] = '\0'; X X while (size > 0) X { X union block *block = find_next_block (); X size_t available; X X if (!block) X { X ERROR ((0, 0, _("Unexpected EOF in mangled names"))); X return; X } X available = available_space_after (block); X if (available > size) X available = size; X memcpy (copy, block->buffer, available); X copy += available; X size -= available; X set_next_block_after ((union block *) (block->buffer + available - 1)); X } X X while (*cursor) X { X char *next_cursor; X char *name; X char *name_end; X X next_cursor = strchr (cursor, '\n'); X *next_cursor++ = '\0'; X X if (!strncmp (cursor, "Rename ", 7)) X { X X name = cursor + 7; X name_end = strchr (name, ' '); X while (strncmp (name_end, " to ", 4)) X { X name_end++; X name_end = strchr (name_end, ' '); X } X *name_end = '\0'; X if (next_cursor[-2] == '/') X next_cursor[-2] = '\0'; X unquote_string (name_end + 4); X if (rename (name, name_end + 4)) X ERROR ((0, errno, _("Cannot rename %s to %s"), name, name_end + 4)); X else if (verbose_option) X WARN ((0, 0, _("Renamed %s to %s"), name, name_end + 4)); X } #ifdef S_ISLNK X else if (!strncmp (cursor, "Symlink ", 8)) X { X name = cursor + 8; X name_end = strchr (name, ' '); X while (strncmp (name_end, " to ", 4)) X { X name_end++; X name_end = strchr (name_end, ' '); X } X *name_end = '\0'; X unquote_string (name); X unquote_string (name_end + 4); X if (symlink (name, name_end + 4) X && (unlink (name_end + 4) || symlink (name, name_end + 4))) X ERROR ((0, errno, _("Cannot symlink %s to %s"), X name, name_end + 4)); X else if (verbose_option) X WARN ((0, 0, _("Symlinked %s to %s"), name, name_end + 4)); X } #endif X else X ERROR ((0, 0, _("Unknown demangling command %s"), cursor)); X X cursor = next_cursor; X } } SHAR_EOF $shar_touch -am 0630221699 'tar-1.13/src/mangle.c' && chmod 0444 'tar-1.13/src/mangle.c' || $echo 'restore of' 'tar-1.13/src/mangle.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/mangle.c:' 'MD5 check failed' 115fcaa7112b8cc0416bdac16eccfde0 tar-1.13/src/mangle.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/mangle.c'`" test 3643 -eq "$shar_count" || $echo 'tar-1.13/src/mangle.c:' 'original size' '3643,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/misc.c ============== if test -f 'tar-1.13/src/misc.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/misc.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/misc.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/misc.c' && /* Miscellaneous functions, not really specific to GNU tar. X Copyright (C) 1988, 92, 94, 95, 96, 97, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" #include "rmt.h" #include "common.h" X /* Handling strings. */ X /*-------------------------------------------------------------------------. | Assign STRING to a copy of VALUE if not NULL, or to NULL. If STRING was | | not NULL, it is freed first. | `-------------------------------------------------------------------------*/ X void assign_string (char **string, const char *value) { X if (*string) X free (*string); X *string = value ? xstrdup (value) : NULL; } X /*------------------------------------------------------------------------. | Allocate a copy of the string quoted as in C, and returns that. If the | | string does not have to be quoted, it returns the NULL string. The | | allocated copy should normally be freed with free() after the caller is | | done with it. | | | | This is used in two contexts only: either listing a tar file for the | | --list (-t) option, or generating the directory file in incremental | | dumps. | `------------------------------------------------------------------------*/ X char * quote_copy_string (const char *string) { X const char *source = string; X char *destination = NULL; X char *buffer = NULL; X int copying = 0; X X while (*source) X { X int character = (unsigned char) *source++; X X if (character == '\\') X { X if (!copying) X { X size_t length = (source - string) - 1; X X copying = 1; X buffer = (char *) xmalloc (length + 5 + strlen (source) * 4); X memcpy (buffer, string, length); X destination = buffer + length; X } X *destination++ = '\\'; X *destination++ = '\\'; X } X else if (ISPRINT (character)) X { X if (copying) X *destination++ = character; X } X else X { X if (!copying) X { X size_t length = (source - string) - 1; X X copying = 1; X buffer = (char *) xmalloc (length + 5 + strlen (source) * 4); X memcpy (buffer, string, length); X destination = buffer + length; X } X *destination++ = '\\'; X switch (character) X { X case '\n': X *destination++ = 'n'; X break; X X case '\t': X *destination++ = 't'; X break; X X case '\f': X *destination++ = 'f'; X break; X X case '\b': X *destination++ = 'b'; X break; X X case '\r': X *destination++ = 'r'; X break; X X case '\177': X *destination++ = '?'; X break; X X default: X *destination++ = (character >> 6) + '0'; X *destination++ = ((character >> 3) & 07) + '0'; X *destination++ = (character & 07) + '0'; X break; X } X } X } X if (copying) X { X *destination = '\0'; X return buffer; X } X return NULL; } X /*-------------------------------------------------------------------------. | Takes a quoted C string (like those produced by quote_copy_string) and | | turns it back into the un-quoted original. This is done in place. | | Returns 0 only if the string was not properly quoted, but completes the | | unquoting anyway. | | | | This is used for reading the saved directory file in incremental dumps. | | It is used for decoding old `N' records (demangling names). But also, | | it is used for decoding file arguments, would they come from the shell | | or a -T file, and for decoding the --exclude argument. | `-------------------------------------------------------------------------*/ X int unquote_string (char *string) { X int result = 1; X char *source = string; X char *destination = string; X X while (*source) X if (*source == '\\') X switch (*++source) X { X case '\\': X *destination++ = '\\'; X source++; X break; X X case 'n': X *destination++ = '\n'; X source++; X break; X X case 't': X *destination++ = '\t'; X source++; X break; X X case 'f': X *destination++ = '\f'; X source++; X break; X X case 'b': X *destination++ = '\b'; X source++; X break; X X case 'r': X *destination++ = '\r'; X source++; X break; X X case '?': X *destination++ = 0177; X source++; X break; X X case '0': X case '1': X case '2': X case '3': X case '4': X case '5': X case '6': X case '7': X { X int value = *source++ - '0'; X X if (*source < '0' || *source > '7') X { X *destination++ = value; X break; X } X value = value * 8 + *source++ - '0'; X if (*source < '0' || *source > '7') X { X *destination++ = value; X break; X } X value = value * 8 + *source++ - '0'; X *destination++ = value; X break; X } X X default: X result = 0; X *destination++ = '\\'; X if (*source) X *destination++ = *source++; X break; X } X else if (source != destination) X *destination++ = *source++; X else X source++, destination++; X X if (source != destination) X *destination = '\0'; X return result; } X /* Sorting lists. */ X /*---. | ? | `---*/ X char * merge_sort (char *list, int length, int offset, int (*compare) (char *, char *)) { X char *first_list; X char *second_list; X int first_length; X int second_length; X char *result; X char **merge_point; X char *cursor; X int counter; X #define SUCCESSOR(Pointer) \ X (*((char **) (((char *) (Pointer)) + offset))) X X if (length == 1) X return list; X X if (length == 2) X { X if ((*compare) (list, SUCCESSOR (list)) > 0) X { X result = SUCCESSOR (list); X SUCCESSOR (result) = list; X SUCCESSOR (list) = NULL; X return result; X } X return list; X } X X first_list = list; X first_length = (length + 1) / 2; X second_length = length / 2; X for (cursor = list, counter = first_length - 1; X counter; X cursor = SUCCESSOR (cursor), counter--) X continue; X second_list = SUCCESSOR (cursor); X SUCCESSOR (cursor) = NULL; X X first_list = merge_sort (first_list, first_length, offset, compare); X second_list = merge_sort (second_list, second_length, offset, compare); X X merge_point = &result; X while (first_list && second_list) X if ((*compare) (first_list, second_list) < 0) X { X cursor = SUCCESSOR (first_list); X *merge_point = first_list; X merge_point = &SUCCESSOR (first_list); X first_list = cursor; X } X else X { X cursor = SUCCESSOR (second_list); X *merge_point = second_list; X merge_point = &SUCCESSOR (second_list); X second_list = cursor; X } X if (first_list) X *merge_point = first_list; X else X *merge_point = second_list; X X return result; X #undef SUCCESSOR } X /* File handling. */ X /* Saved names in case backup needs to be undone. */ static char *before_backup_name = NULL; static char *after_backup_name = NULL; X /*------------------------------------------------------------------------. | Returns nonzero if p is `.' or `..'. This could be a macro for speed. | `------------------------------------------------------------------------*/ X /* Early Solaris 2.4 readdir may return d->d_name as `' in NFS-mounted X directories. The workaround here skips `' just like `.'. Without it, X GNU tar would then treat `' much like `.' and loop endlessly. */ X int is_dot_or_dotdot (const char *p) { X return (p[0] == '\0' X || (p[0] == '.' && (p[1] == '\0' X || (p[1] == '.' && p[2] == '\0')))); } X /*-------------------------------------------------------------------------. | Delete PATH, whatever it might be. If RECURSE, first recursively delete | | the contents of PATH when it is a directory. Return zero on any error, | | with errno set. As a special case, if we fail to delete a directory | | when not RECURSE, do not set errno (just be tolerant to this error). | `-------------------------------------------------------------------------*/ X int remove_any_file (const char *path, int recurse) { X struct stat stat_buffer; X X if (lstat (path, &stat_buffer) < 0) X return 0; X X if (S_ISDIR (stat_buffer.st_mode)) X { X if (recurse) X { X DIR *dirp = opendir (path); X struct dirent *dp; X X if (dirp == NULL) X return 0; X X while (dp = readdir (dirp), dp) X if (! is_dot_or_dotdot (dp->d_name)) X { X char *path_buffer = new_name (path, dp->d_name); X X if (!remove_any_file (path_buffer, 1)) X { X int saved_errno = errno; X X free (path_buffer); X closedir (dirp); X /* FIXME: errno should be read-only. */ X errno = saved_errno; X return 0; X } X free (path_buffer); X } X closedir (dirp); X return rmdir (path) >= 0; X } X else X { X /* FIXME: Saving errno might not be needed anymore, now that X extract_archive tests for the special case before recovery. */ X int saved_errno = errno; X X if (rmdir (path) >= 0) X return 1; X errno = saved_errno; /* FIXME: errno should be read-only */ X return 0; X } X } X X return unlink (path) >= 0; } X /*-------------------------------------------------------------------------. | Check if PATH already exists and make a backup of it right now. Return | | success (nonzero) only if the backup in either unneeded, or successful. | | | | For now, directories are considered to never need backup. If ARCHIVE is | | nonzero, this is the archive and so, we do not have to backup block or | | character devices, nor remote entities. | `-------------------------------------------------------------------------*/ X int maybe_backup_file (const char *path, int archive) { X struct stat file_stat; X X /* Check if we really need to backup the file. */ X X if (archive && _remdev (path)) X return 1; X X if (stat (path, &file_stat)) X { X if (errno == ENOENT) X return 1; X X ERROR ((0, errno, "%s", path)); X return 0; X } X X if (S_ISDIR (file_stat.st_mode)) X return 1; X #ifdef S_ISBLK X if (archive && S_ISBLK (file_stat.st_mode)) X return 1; #endif X #ifdef S_ISCHR X if (archive && S_ISCHR (file_stat.st_mode)) X return 1; #endif X X assign_string (&before_backup_name, path); X X /* A run situation may exist between Emacs or other GNU programs trying to X make a backup for the same file simultaneously. If theoretically X possible, real problems are unlikely. Doing any better would require a X convention, GNU-wide, for all programs doing backups. */ X X assign_string (&after_backup_name, NULL); X after_backup_name = find_backup_file_name (path, backup_type); X if (after_backup_name == NULL) X FATAL_ERROR ((0, 0, "Virtual memory exhausted")); X X if (rename (before_backup_name, after_backup_name) == 0) X { X if (verbose_option) X fprintf (stdlis, _("Renaming previous `%s' to `%s'\n"), X before_backup_name, after_backup_name); X return 1; X } X X /* The backup operation failed. */ X X ERROR ((0, errno, _("%s: Cannot rename for backup"), before_backup_name)); X assign_string (&after_backup_name, NULL); X return 0; } X /*-----------------------------------------------------------------------. | Try to restore the recently backed up file to its original name. This | | is usually only needed after a failed extraction. | `-----------------------------------------------------------------------*/ X void undo_last_backup (void) { X if (after_backup_name) X { X if (rename (after_backup_name, before_backup_name) != 0) X ERROR ((0, errno, _("%s: Cannot rename from backup"), X before_backup_name)); X if (verbose_option) X fprintf (stdlis, _("Renaming `%s' back to `%s'\n"), X after_backup_name, before_backup_name); X assign_string (&after_backup_name, NULL); X } } SHAR_EOF $shar_touch -am 0702140299 'tar-1.13/src/misc.c' && chmod 0444 'tar-1.13/src/misc.c' || $echo 'restore of' 'tar-1.13/src/misc.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/misc.c:' 'MD5 check failed' 2aa1718b515461cfe38fadecce1ca1b7 tar-1.13/src/misc.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/misc.c'`" test 12123 -eq "$shar_count" || $echo 'tar-1.13/src/misc.c:' 'original size' '12123,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/names.c ============== if test -f 'tar-1.13/src/names.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/names.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/names.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/names.c' && /* Various processing of names. X Copyright (C) 1988, 92, 94, 96, 97, 98, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include #include X #ifndef FNM_LEADING_DIR # include #endif X #include "common.h" X /* User and group names. */ X extern struct group *getgrnam (); extern struct passwd *getpwnam (); #if !HAVE_GETPWUID extern struct passwd *getpwuid (); #endif #if !HAVE_GETGRGID extern struct group *getgrgid (); #endif X /* Make sure you link with the proper libraries if you are running the X Yellow Peril (thanks for the good laugh, Ian J.!), or, euh... NIS. X This code should also be modified for non-UNIX systems to do something X reasonable. */ X static char cached_uname[UNAME_FIELD_SIZE] = ""; static char cached_gname[GNAME_FIELD_SIZE] = ""; X static uid_t cached_uid; /* valid only if cached_uname is not empty */ static gid_t cached_gid; /* valid only if cached_gname is not empty */ X /* These variables are valid only if nonempty. */ static char cached_no_such_uname[UNAME_FIELD_SIZE] = ""; static char cached_no_such_gname[GNAME_FIELD_SIZE] = ""; X /* These variables are valid only if nonzero. It's not worth optimizing X the case for weird systems where 0 is not a valid uid or gid. */ static uid_t cached_no_such_uid = 0; static gid_t cached_no_such_gid = 0; X /*------------------------------------------. | Given UID, find the corresponding UNAME. | `------------------------------------------*/ X void uid_to_uname (uid_t uid, char uname[UNAME_FIELD_SIZE]) { X struct passwd *passwd; X X if (uid != 0 && uid == cached_no_such_uid) X { X *uname = '\0'; X return; X } X X if (!cached_uname[0] || uid != cached_uid) X { X passwd = getpwuid (uid); X if (passwd) X { X cached_uid = uid; X strncpy (cached_uname, passwd->pw_name, UNAME_FIELD_SIZE); X } X else X { X cached_no_such_uid = uid; X *uname = '\0'; X return; X } X } X strncpy (uname, cached_uname, UNAME_FIELD_SIZE); } X /*------------------------------------------. | Given GID, find the corresponding GNAME. | `------------------------------------------*/ X void gid_to_gname (gid_t gid, char gname[GNAME_FIELD_SIZE]) { X struct group *group; X X if (gid != 0 && gid == cached_no_such_gid) X { X *gname = '\0'; X return; X } X X if (!cached_gname[0] || gid != cached_gid) X { X setgrent (); /* FIXME: why?! */ X group = getgrgid (gid); X if (group) X { X cached_gid = gid; X strncpy (cached_gname, group->gr_name, GNAME_FIELD_SIZE); X } X else X { X cached_no_such_gid = gid; X *gname = '\0'; X return; X } X } X strncpy (gname, cached_gname, GNAME_FIELD_SIZE); } X /*-------------------------------------------------------------------------. | Given UNAME, set the corresponding UID and return 1, or else, return 0. | `-------------------------------------------------------------------------*/ X int uname_to_uid (char uname[UNAME_FIELD_SIZE], uid_t *uidp) { X struct passwd *passwd; X X if (cached_no_such_uname[0] X && strncmp (uname, cached_no_such_uname, UNAME_FIELD_SIZE) == 0) X return 0; X X if (!cached_uname[0] X || uname[0] != cached_uname[0] X || strncmp (uname, cached_uname, UNAME_FIELD_SIZE) != 0) X { X passwd = getpwnam (uname); X if (passwd) X { X cached_uid = passwd->pw_uid; X strncpy (cached_uname, uname, UNAME_FIELD_SIZE); X } X else X { X strncpy (cached_no_such_uname, uname, UNAME_FIELD_SIZE); X return 0; X } X } X *uidp = cached_uid; X return 1; } X /*-------------------------------------------------------------------------. | Given GNAME, set the corresponding GID and return 1, or else, return 0. | `-------------------------------------------------------------------------*/ X int gname_to_gid (char gname[GNAME_FIELD_SIZE], gid_t *gidp) { X struct group *group; X X if (cached_no_such_gname[0] X && strncmp (gname, cached_no_such_gname, GNAME_FIELD_SIZE) == 0) X return 0; X X if (!cached_gname[0] X || gname[0] != cached_gname[0] X || strncmp (gname, cached_gname, GNAME_FIELD_SIZE) != 0) X { X group = getgrnam (gname); X if (group) X { X cached_gid = group->gr_gid; X strncpy (cached_gname, gname, GNAME_FIELD_SIZE); X } X else X { X strncpy (cached_no_such_gname, gname, GNAME_FIELD_SIZE); X return 0; X } X } X *gidp = cached_gid; X return 1; } X /* Names from the command call. */ X static const char **name_array; /* store an array of names */ static int allocated_names; /* how big is the array? */ static int names; /* how many entries does it have? */ static int name_index = 0; /* how many of the entries have we scanned? */ X /*------------------------. | Initialize structures. | `------------------------*/ X void init_names (void) { X allocated_names = 10; X name_array = (const char **) X xmalloc (sizeof (const char *) * allocated_names); X names = 0; } X /*--------------------------------------------------------------. | Add NAME at end of name_array, reallocating it as necessary. | `--------------------------------------------------------------*/ X void name_add (const char *name) { X if (names == allocated_names) X { X allocated_names *= 2; X name_array = (const char **) X xrealloc (name_array, sizeof (const char *) * allocated_names); X } X name_array[names++] = name; } X /* Names from external name file. */ X static FILE *name_file; /* file to read names from */ static char *name_buffer; /* buffer to hold the current file name */ static size_t name_buffer_length; /* allocated length of name_buffer */ X /*---. | ? | `---*/ X /* FIXME: I should better check more closely. It seems at first glance that X is_pattern is only used when reading a file, and ignored for all X command line arguments. */ X static inline int is_pattern (const char *string) { X return strchr (string, '*') || strchr (string, '[') || strchr (string, '?'); } X /*-----------------------------------------------------------------------. | Set up to gather file names for tar. They can either come from a file | | or were saved from decoding arguments. | `-----------------------------------------------------------------------*/ X void name_init (int argc, char *const *argv) { X name_buffer = xmalloc (NAME_FIELD_SIZE + 2); X name_buffer_length = NAME_FIELD_SIZE; X X if (files_from_option) X { X if (!strcmp (files_from_option, "-")) X { X request_stdin ("-T"); X name_file = stdin; X } X else if (name_file = fopen (files_from_option, "r"), !name_file) X FATAL_ERROR ((0, errno, _("Cannot open file %s"), files_from_option)); X } } X /*---. | ? | `---*/ X void name_term (void) { X free (name_buffer); X free (name_array); } X /*---------------------------------------------------------------------. | Read the next filename from name_file and null-terminate it. Put it | | into name_buffer, reallocating and adjusting name_buffer_length if | | necessary. Return 0 at end of file, 1 otherwise. | `---------------------------------------------------------------------*/ X static int read_name_from_file (void) { X int character; X size_t counter = 0; X X /* FIXME: getc may be called even if character was EOF the last time here. */ X X /* FIXME: This + 2 allocation might serve no purpose. */ X X while (character = getc (name_file), X character != EOF && character != filename_terminator) X { X if (counter == name_buffer_length) X { X name_buffer_length += NAME_FIELD_SIZE; X name_buffer = xrealloc (name_buffer, name_buffer_length + 2); X } X name_buffer[counter++] = character; X } X X if (counter == 0 && character == EOF) X return 0; X X if (counter == name_buffer_length) X { X name_buffer_length += NAME_FIELD_SIZE; X name_buffer = xrealloc (name_buffer, name_buffer_length + 2); X } X name_buffer[counter] = '\0'; X X return 1; } X /*------------------------------------------------------------------------. | Get the next name from ARGV or the file of names. Result is in static | | storage and can't be relied upon across two calls. | | | | If CHANGE_DIRS is true, treat a filename of the form "-C" as meaning | | that the next filename is the name of a directory to change to. If | | `filename_terminator' is NUL, CHANGE_DIRS is effectively always false. | `------------------------------------------------------------------------*/ X char * name_next (int change_dirs) { X const char *source; X char *cursor; X int chdir_flag = 0; X X if (filename_terminator == '\0') X change_dirs = 0; X X while (1) X { X /* Get a name, either from file or from saved arguments. */ X X if (name_file) X { X if (!read_name_from_file ()) X break; X } X else X { X if (name_index == names) X break; X X source = name_array[name_index++]; X if (strlen (source) > name_buffer_length) X { X free (name_buffer); X name_buffer_length = strlen (source); X name_buffer = xmalloc (name_buffer_length + 2); X } X strcpy (name_buffer, source); X } X X /* Zap trailing slashes. */ X X cursor = name_buffer + strlen (name_buffer) - 1; X while (cursor > name_buffer && *cursor == '/') X *cursor-- = '\0'; X X if (chdir_flag) X { X if (chdir (name_buffer) < 0) X FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), X name_buffer)); X chdir_flag = 0; X } X else if (change_dirs && strcmp (name_buffer, "-C") == 0) X chdir_flag = 1; X else X { X unquote_string (name_buffer); X return name_buffer; X } X } X X /* No more names in file. */ X X if (name_file && chdir_flag) X FATAL_ERROR ((0, 0, _("Missing file name after -C"))); X X return NULL; } X /*------------------------------. | Close the name file, if any. | `------------------------------*/ X void name_close (void) { X if (name_file != NULL && name_file != stdin) X if (fclose (name_file) == EOF) X ERROR ((0, errno, "%s", name_buffer)); } X /*-------------------------------------------------------------------------. | Gather names in a list for scanning. Could hash them later if we really | | care. | | | | If the names are already sorted to match the archive, we just read them | | one by one. name_gather reads the first one, and it is called by | | name_match as appropriate to read the next ones. At EOF, the last name | | read is just left in the buffer. This option lets users of small | | machines extract an arbitrary number of files by doing "tar t" and | | editing down the list of files. | `-------------------------------------------------------------------------*/ X void name_gather (void) { X /* Buffer able to hold a single name. */ X static struct name *buffer; X static size_t allocated_length = 0; X X char *name; X X if (same_order_option) X { X if (allocated_length == 0) X { X allocated_length = sizeof (struct name) + NAME_FIELD_SIZE; X buffer = (struct name *) xmalloc (allocated_length); X /* FIXME: This memset is overkill, and ugly... */ X memset (buffer, 0, allocated_length); X } X name = name_next (0); X if (name) X { X if (strcmp (name, "-C") == 0) X { X char *copy = xstrdup (name_next (0)); X X name = name_next (0); X if (!name) X FATAL_ERROR ((0, 0, _("Missing file name after -C"))); X buffer->change_dir = copy; X } X buffer->length = strlen (name); X if (sizeof (struct name) + buffer->length >= allocated_length) X { X allocated_length = sizeof (struct name) + buffer->length; X buffer = (struct name *) xrealloc (buffer, allocated_length); X } X strncpy (buffer->name, name, (size_t) buffer->length); X buffer->name[buffer->length] = 0; X buffer->next = NULL; X buffer->found = 0; X X /* FIXME: Poorly named globals, indeed... */ X namelist = buffer; X namelast = namelist; X } X return; X } X X /* Non sorted names -- read them all in. */ X X while (name = name_next (0), name) X addname (name); } X /*-----------------------------. | Add a name to the namelist. | `-----------------------------*/ X void addname (const char *string) { X /* FIXME: This is ugly. How is memory managed? */ X static char *chdir_name = NULL; X X struct name *name; X size_t length; X X if (strcmp (string, "-C") == 0) X { X chdir_name = xstrdup (name_next (0)); X string = name_next (0); X if (!chdir_name) X FATAL_ERROR ((0, 0, _("Missing file name after -C"))); X X if (chdir_name[0] != '/') X { X char *path = xmalloc (PATH_MAX); X X /* FIXME: Shouldn't we use xgetcwd? */ #if HAVE_GETCWD X if (!getcwd (path, PATH_MAX)) X FATAL_ERROR ((0, 0, _("Could not get current directory"))); #else X char *getwd (); X X if (!getwd (path)) X FATAL_ERROR ((0, 0, _("Could not get current directory: %s"), X path)); #endif X chdir_name = new_name (path, chdir_name); X free (path); X } X } X X length = string ? strlen (string) : 0; X name = (struct name *) xmalloc (sizeof (struct name) + length); X memset (name, 0, sizeof (struct name) + length); X name->next = NULL; X X if (string) X { X name->fake = 0; X name->length = length; X /* FIXME: Possibly truncating a string, here? Tss, tss, tss! */ X strncpy (name->name, string, length); X name->name[length] = '\0'; X } X else X name->fake = 1; X X name->found = 0; X name->regexp = 0; /* assume not a regular expression */ X name->firstch = 1; /* assume first char is literal */ X name->change_dir = chdir_name; X name->dir_contents = 0; X X if (string && is_pattern (string)) X { X name->regexp = 1; X if (string[0] == '*' || string[0] == '[' || string[0] == '?') X name->firstch = 0; X } X X if (namelast) X namelast->next = name; X namelast = name; X if (!namelist) X namelist = name; } X /*------------------------------------------------------------------------. | Return true if and only if name PATH (from an archive) matches any name | | from the namelist. | `------------------------------------------------------------------------*/ X int name_match (const char *path) { X size_t length = strlen (path); X X while (1) X { X struct name *cursor = namelist; X X if (!cursor) X return 1; /* empty namelist is easy */ X X if (cursor->fake) X { X if (cursor->change_dir && chdir (cursor->change_dir)) X FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), X cursor->change_dir)); X namelist = 0; X return 1; X } X X for (; cursor; cursor = cursor->next) X { X /* If first chars don't match, quick skip. */ X X if (cursor->firstch && cursor->name[0] != path[0]) X continue; X X /* Regular expressions (shell globbing, actually). */ X X if (cursor->regexp) X { X if (fnmatch (cursor->name, path, FNM_LEADING_DIR) == 0) X { X cursor->found = 1; /* remember it matched */ X if (starting_file_option) X { X free (namelist); X namelist = NULL; X } X if (cursor->change_dir && chdir (cursor->change_dir)) X FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), X cursor->change_dir)); X X /* We got a match. */ X return 1; X } X continue; X } X X /* Plain Old Strings. */ X X if (cursor->length <= length X /* archive length >= specified */ X && (path[cursor->length] == '\0' X || path[cursor->length] == '/') X /* full match on file/dirname */ X && strncmp (path, cursor->name, cursor->length) == 0) X /* name compare */ X { X cursor->found = 1; /* remember it matched */ X if (starting_file_option) X { X free ((void *) namelist); X namelist = 0; X } X if (cursor->change_dir && chdir (cursor->change_dir)) X FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), X cursor->change_dir)); X X /* We got a match. */ X return 1; X } X } X X /* Filename from archive not found in namelist. If we have the whole X namelist here, just return 0. Otherwise, read the next name in and X compare it. If this was the last name, namelist->found will remain X on. If not, we loop to compare the newly read name. */ X X if (same_order_option && namelist->found) X { X name_gather (); /* read one more */ X if (namelist->found) X return 0; X } X else X return 0; X } } X /*------------------------------------------------------------------. | Print the names of things in the namelist that were not matched. | `------------------------------------------------------------------*/ X void names_notfound (void) { X struct name *cursor; X struct name *next; X X for (cursor = namelist; cursor; cursor = next) X { X next = cursor->next; X if (!cursor->found && !cursor->fake) X ERROR ((0, 0, _("%s: Not found in archive"), cursor->name)); X X /* We could free the list, but the process is about to die anyway, so X save some CPU time. Amigas and other similarly broken software X will need to waste the time, though. */ X #ifdef amiga X if (!same_order_option) X free (cursor); #endif X } X namelist = (struct name *) NULL; X namelast = (struct name *) NULL; X X if (same_order_option) X { X char *name; X X while (name = name_next (1), name) X ERROR ((0, 0, _("%s: Not found in archive"), name)); X } } X /*---. | ? | `---*/ X void name_expand (void) { } X /*-------------------------------------------------------------------------. | This is like name_match, except that it returns a pointer to the name it | | matched, and doesn't set FOUND in structure. The caller will have to do | | that if it wants to. Oh, and if the namelist is empty, it returns NULL, | | unlike name_match, which returns TRUE. | `-------------------------------------------------------------------------*/ X struct name * name_scan (const char *path) { X size_t length = strlen (path); X X while (1) X { X struct name *cursor = namelist; X X if (!cursor) X return NULL; /* empty namelist is easy */ X X for (; cursor; cursor = cursor->next) X { X /* If first chars don't match, quick skip. */ X X if (cursor->firstch && cursor->name[0] != path[0]) X continue; X X /* Regular expressions. */ X X if (cursor->regexp) X { X if (fnmatch (cursor->name, path, FNM_LEADING_DIR) == 0) X return cursor; /* we got a match */ X continue; X } X X /* Plain Old Strings. */ X X if (cursor->length <= length X /* archive length >= specified */ X && (path[cursor->length] == '\0' X || path[cursor->length] == '/') X /* full match on file/dirname */ X && strncmp (path, cursor->name, cursor->length) == 0) X /* name compare */ X return cursor; /* we got a match */ X } X X /* Filename from archive not found in namelist. If we have the whole X namelist here, just return 0. Otherwise, read the next name in and X compare it. If this was the last name, namelist->found will remain X on. If not, we loop to compare the newly read name. */ X X if (same_order_option && namelist->found) X { X name_gather (); /* read one more */ X if (namelist->found) X return NULL; X } X else X return NULL; X } } X /*-----------------------------------------------------------------------. | This returns a name from the namelist which doesn't have ->found set. | | It sets ->found before returning, so successive calls will find and | | return all the non-found names in the namelist | `-----------------------------------------------------------------------*/ X struct name *gnu_list_name = NULL; X char * name_from_list (void) { X if (!gnu_list_name) X gnu_list_name = namelist; X while (gnu_list_name && gnu_list_name->found) X gnu_list_name = gnu_list_name->next; X if (gnu_list_name) X { X gnu_list_name->found = 1; X if (gnu_list_name->change_dir) X if (chdir (gnu_list_name->change_dir) < 0) X FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), X gnu_list_name->change_dir)); X return gnu_list_name->name; X } X return NULL; } X /*---. | ? | `---*/ X void blank_name_list (void) { X struct name *name; X X gnu_list_name = 0; X for (name = namelist; name; name = name->next) X name->found = 0; } X /*---. | ? | `---*/ X char * new_name (const char *path, const char *name) { X char *buffer = (char *) xmalloc (strlen (path) + strlen (name) + 2); X X sprintf (buffer, "%s/%s", path, name); X return buffer; } SHAR_EOF $shar_touch -am 0706224699 'tar-1.13/src/names.c' && chmod 0444 'tar-1.13/src/names.c' || $echo 'restore of' 'tar-1.13/src/names.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/names.c:' 'MD5 check failed' 63a55b363db0d647da42bf497d67f844 tar-1.13/src/names.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/names.c'`" test 20821 -eq "$shar_count" || $echo 'tar-1.13/src/names.c:' 'original size' '20821,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/open3.c ============== if test -f 'tar-1.13/src/open3.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/open3.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/open3.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/open3.c' && /* Defines for Sys V style 3-argument open call. X Copyright (C) 1988, 1994, 1995, 1996 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #if EMUL_OPEN3 X /* open3.h -- #defines for the various flags for the Sys V style 3-argument X open() call. On BSD or System 5, the system already has this in an X include file. This file is needed for V7 and MINIX systems for the X benefit of open3() in port.c, a routine that emulates the 3-argument call X using system calls available on V7/MINIX. X X Written 1987-06-10 by Richard Todd. X X The names have been changed by John Gilmore, 1987-07-31, since Richard X called it "bsdopen", and really this change was introduced in AT&T Unix X systems before BSD picked it up. */ X /*-----------------------------------------------------------------------. | open3 -- routine to emulate the 3-argument open system. | | | | open3 (path, flag, mode); | | | | Attempts to open the file specified by the given pathname. The | | following flag bits specify options to the routine. Needless to say, | | you should only specify one of the first three. Function returns file | | descriptor if successful, -1 and errno if not. | `-----------------------------------------------------------------------*/ X /* The routine obeys the following mode arguments: X X O_RDONLY file open for read only X O_WRONLY file open for write only X O_RDWR file open for both read & write X X O_CREAT file is created with specified mode if it needs to be X O_TRUNC if file exists, it is truncated to 0 bytes X O_EXCL used with O_CREAT--routine returns error if file exists */ X /* Call that if present in most modern Unix systems. This version attempts X to support all the flag bits except for O_NDELAY and O_APPEND, which are X silently ignored. The emulation is not as efficient as the real thing X (at worst, 4 system calls instead of one), but there's not much I can do X about that. */ X /* Array to give arguments to access for various modes FIXME, this table X depends on the specific integer values of O_*, and also contains X integers (args to 'access') that should be #define's. */ X static int modes[] = X { X 04, /* O_RDONLY */ X 02, /* O_WRONLY */ X 06, /* O_RDWR */ X 06, /* invalid, just cope: O_WRONLY+O_RDWR */ X }; X /* Shut off the automatic emulation of open(), we'll need it. */ #undef open X int open3 (char *path, int flags, int mode) { X int exists = 1; X int call_creat = 0; X X /* We actually do the work by calling the open() or creat() system X call, depending on the flags. Call_creat is true if we will use X creat(), false if we will use open(). */ X X /* See if the file exists and is accessible in the requested mode. X X Strictly speaking we shouldn't be using access, since access checks X against real uid, and the open call should check against euid. Most X cases real uid == euid, so it won't matter. FIXME. FIXME, the X construction "flags & 3" and the modes table depends on the specific X integer values of the O_* #define's. Foo! */ X X if (access (path, modes[flags & 3]) < 0) X { X if (errno == ENOENT) X { X /* The file does not exist. */ X X exists = 0; X } X else X { X /* Probably permission violation. */ X X if (flags & O_EXCL) X { X /* Oops, the file exists, we didn't want it. No matter X what the error, claim EEXIST. */ X X errno = EEXIST; /* FIXME: errno should be read-only */ X } X return -1; X } X } X X /* If we have the O_CREAT bit set, check for O_EXCL. */ X X if (flags & O_CREAT) X { X if ((flags & O_EXCL) && exists) X { X /* Oops, the file exists and we didn't want it to. */ X X errno = EEXIST; /* FIXME: errno should be read-only */ X return -1; X } X X /* If the file doesn't exist, be sure to call creat() so that it X will be created with the proper mode. */ X X if (!exists) X call_creat = 1; X } X else X { X /* If O_CREAT isn't set and the file doesn't exist, error. */ X X if (!exists) X { X errno = ENOENT; /* FIXME: errno should be read-only */ X return -1; X } X } X X /* If the O_TRUNC flag is set and the file exists, we want to call X creat() anyway, since creat() guarantees that the file will be X truncated and open()-for-writing doesn't. (If the file doesn't X exist, we're calling creat() anyway and the file will be created X with zero length.) */ X X if ((flags & O_TRUNC) && exists) X call_creat = 1; X X /* Actually do the call. */ X X if (call_creat) X X /* Call creat. May have to close and reopen the file if we want X O_RDONLY or O_RDWR access -- creat() only gives O_WRONLY. */ X X { X int fd = creat (path, mode); X X if (fd < 0 || (flags & O_WRONLY)) X return fd; X if (close (fd) < 0) X return -1; X X /* Fall out to reopen the file we've created. */ X } X X /* Calling old open, we strip most of the new flags just in case. */ X X return open (path, flags & (O_RDONLY | O_WRONLY | O_RDWR | O_BINARY)); } X #endif /* EMUL_OPEN3 */ SHAR_EOF $shar_touch -am 0630221799 'tar-1.13/src/open3.c' && chmod 0444 'tar-1.13/src/open3.c' || $echo 'restore of' 'tar-1.13/src/open3.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/open3.c:' 'MD5 check failed' 2c3e602e290cc92d570eefe75e6eff3a tar-1.13/src/open3.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/open3.c'`" test 5730 -eq "$shar_count" || $echo 'tar-1.13/src/open3.c:' 'original size' '5730,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/rtapelib.c ============== if test -f 'tar-1.13/src/rtapelib.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/rtapelib.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/rtapelib.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/rtapelib.c' && /* Functions for communicating with a remote tape drive. X Copyright (C) 1988, 1992, 1994, 1996 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* The man page rmt(8) for /etc/rmt documents the remote mag tape protocol X which rdump and rrestore use. Unfortunately, the man page is *WRONG*. X The author of the routines I'm including originally wrote his code just X based on the man page, and it didn't work, so he went to the rdump source X to figure out why. The only thing he had to change was to check for the X 'F' return code in addition to the 'E', and to separate the various X arguments with \n instead of a space. I personally don't think that this X is much of a problem, but I wanted to point it out. -- Arnold Robbins X X Originally written by Jeff Lee, modified some by Arnold Robbins. Redone X as a library that can replace open, read, write, etc., by Fred Fish, with X some additional work by Arnold Robbins. Modified to make all rmt* calls X into macros for speed by Jay Fenlason. Use -DWITH_REXEC for rexec X code, courtesy of Dan Kegel. */ X #include "system.h" X #include "basename.h" #include "safe-read.h" X /* Try hard to get EOPNOTSUPP defined. 486/ISC has it in net/errno.h, X 3B2/SVR3 has it in sys/inet.h. Otherwise, like on MSDOS, use EINVAL. */ X #ifndef EOPNOTSUPP # if HAVE_NET_ERRNO_H # include # endif # if HAVE_SYS_INET_H # include # endif # ifndef EOPNOTSUPP # define EOPNOTSUPP EINVAL # endif #endif X #include X #if HAVE_NETDB_H # include #endif X #include "rmt.h" X /* FIXME: Just to shut up -Wall. */ int rexec (); X /* Exit status if exec errors. */ #define EXIT_ON_EXEC_ERROR 128 X /* FIXME: Size of buffers for reading and writing commands to rmt. */ #define COMMAND_BUFFER_SIZE 64 X #ifndef RETSIGTYPE # define RETSIGTYPE void #endif X /* FIXME: Maximum number of simultaneous remote tape connections. */ #define MAXUNIT 4 X #define PREAD 0 /* read file descriptor from pipe() */ #define PWRITE 1 /* write file descriptor from pipe() */ X /* Return the parent's read side of remote tape connection Fd. */ #define READ_SIDE(Fd) (from_remote[Fd][PREAD]) X /* Return the parent's write side of remote tape connection Fd. */ #define WRITE_SIDE(Fd) (to_remote[Fd][PWRITE]) X /* The pipes for receiving data from remote tape drives. */ static int from_remote[MAXUNIT][2] = {{-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}}; X /* The pipes for sending data to remote tape drives. */ static int to_remote[MAXUNIT][2] = {{-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}}; X /* Temporary variable used by macros in rmt.h. */ char *rmt_path__; X X /*----------------------------------------------------------------------. | Close remote tape connection HANDLE, and reset errno to ERRNO_VALUE. | `----------------------------------------------------------------------*/ X static void _rmt_shutdown (int handle, int errno_value) { X close (READ_SIDE (handle)); X close (WRITE_SIDE (handle)); X READ_SIDE (handle) = -1; X WRITE_SIDE (handle) = -1; X errno = errno_value; /* FIXME: errno should be read-only */ } X /*-------------------------------------------------------------------------. | Attempt to perform the remote tape command specified in BUFFER on remote | | tape connection HANDLE. Return 0 if successful, -1 on error. | `-------------------------------------------------------------------------*/ X static int do_command (int handle, const char *buffer) { X size_t length; X RETSIGTYPE (*pipe_handler) (); X X /* Save the current pipe handler and try to make the request. */ X X pipe_handler = signal (SIGPIPE, SIG_IGN); X length = strlen (buffer); X if (full_write (WRITE_SIDE (handle), buffer, length) == length) X { X signal (SIGPIPE, pipe_handler); X return 0; X } X X /* Something went wrong. Close down and go home. */ X X signal (SIGPIPE, pipe_handler); X _rmt_shutdown (handle, EIO); X return -1; } X static char * get_status_string (int handle, char *command_buffer) { X char *cursor; X int counter; X X /* Read the reply command line. */ X X for (counter = 0, cursor = command_buffer; X counter < COMMAND_BUFFER_SIZE; X counter++, cursor++) X { X if (safe_read (READ_SIDE (handle), cursor, 1) != 1) X { X _rmt_shutdown (handle, EIO); X return 0; X } X if (*cursor == '\n') X { X *cursor = '\0'; X break; X } X } X X if (counter == COMMAND_BUFFER_SIZE) X { X _rmt_shutdown (handle, EIO); X return 0; X } X X /* Check the return status. */ X X for (cursor = command_buffer; *cursor; cursor++) X if (*cursor != ' ') X break; X X if (*cursor == 'E' || *cursor == 'F') X { X errno = atoi (cursor + 1); /* FIXME: errno should be read-only */ X X /* Skip the error message line. */ X X /* FIXME: there is better to do than merely ignoring error messages X coming from the remote end. Translate them, too... */ X X { X char character; X X while (safe_read (READ_SIDE (handle), &character, 1) == 1) X if (character == '\n') X break; X } X X if (*cursor == 'F') X _rmt_shutdown (handle, errno); X X return 0; X } X X /* Check for mis-synced pipes. */ X X if (*cursor != 'A') X { X _rmt_shutdown (handle, EIO); X return 0; X } X X /* Got an `A' (success) response. */ X X return cursor + 1; } X /*----------------------------------------------------------------------. | Read and return the status from remote tape connection HANDLE. If an | | error occurred, return -1 and set errno. | `----------------------------------------------------------------------*/ X static long get_status (int handle) { X char command_buffer[COMMAND_BUFFER_SIZE]; X const char *status = get_status_string (handle, command_buffer); X return status ? atol (status) : -1L; } X static off_t get_status_off (int handle) { X char command_buffer[COMMAND_BUFFER_SIZE]; X const char *status = get_status_string (handle, command_buffer); X X if (! status) X return -1; X else X { X /* Parse status, taking care to check for overflow. X We can't use standard functions, X since off_t might be longer than long. */ X X off_t count = 0; X int negative; X X for (; *status == ' ' || *status == '\t'; status++) X continue; X X negative = *status == '-'; X status += negative || *status == '+'; X X for (;;) X { X int digit = *status++ - '0'; X if (9 < (unsigned) digit) X break; X else X { X off_t c10 = 10 * count; X off_t nc = negative ? c10 - digit : c10 + digit; X if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) X return -1; X count = nc; X } X } X X return count; X } } X #if WITH_REXEC X /*-------------------------------------------------------------------------. | Execute /etc/rmt as user USER on remote system HOST using rexec. Return | | a file descriptor of a bidirectional socket for stdin and stdout. If | | USER is NULL, use the current username. | | | | By default, this code is not used, since it requires that the user have | | a .netrc file in his/her home directory, or that the application | | designer be willing to have rexec prompt for login and password info. | | This may be unacceptable, and .rhosts files for use with rsh are much | | more common on BSD systems. | `-------------------------------------------------------------------------*/ X static int _rmt_rexec (char *host, char *user) { X int saved_stdin = dup (STDIN_FILENO); X int saved_stdout = dup (STDOUT_FILENO); X struct servent *rexecserv; X int result; X X /* When using cpio -o < filename, stdin is no longer the tty. But the X rexec subroutine reads the login and the passwd on stdin, to allow X remote execution of the command. So, reopen stdin and stdout on X /dev/tty before the rexec and give them back their original value X after. */ X X if (freopen ("/dev/tty", "r", stdin) == NULL) X freopen ("/dev/null", "r", stdin); X if (freopen ("/dev/tty", "w", stdout) == NULL) X freopen ("/dev/null", "w", stdout); X X if (rexecserv = getservbyname ("exec", "tcp"), !rexecserv) X error (EXIT_ON_EXEC_ERROR, 0, _("exec/tcp: Service not available")); X X result = rexec (&host, rexecserv->s_port, user, NULL, X "/etc/rmt", (int *) NULL); X if (fclose (stdin) == EOF) X error (0, errno, _("stdin")); X fdopen (saved_stdin, "r"); X if (fclose (stdout) == EOF) X error (0, errno, _("stdout")); X fdopen (saved_stdout, "w"); X X return result; } X #endif /* WITH_REXEC */ X /*------------------------------------------------------------------------. | Open a file (a magnetic tape device?) on the system specified in PATH, | | as the given user. PATH has the form `[USER@]HOST:FILE'. OPEN_MODE is | | O_RDONLY, O_WRONLY, etc. If successful, return the remote pipe number | | plus BIAS. REMOTE_SHELL may be overriden. On error, return -1. | `------------------------------------------------------------------------*/ X int rmt_open__ (const char *path, int open_mode, int bias, const char *remote_shell) { X int remote_pipe_number; /* pseudo, biased file descriptor */ X char *path_copy ; /* copy of path string */ X char *remote_host; /* remote host name */ X char *remote_file; /* remote file name (often a device) */ X char *remote_user; /* remote user name */ X X /* Find an unused pair of file descriptors. */ X X for (remote_pipe_number = 0; X remote_pipe_number < MAXUNIT; X remote_pipe_number++) X if (READ_SIDE (remote_pipe_number) == -1 X && WRITE_SIDE (remote_pipe_number) == -1) X break; X X if (remote_pipe_number == MAXUNIT) X { X errno = EMFILE; /* FIXME: errno should be read-only */ X return -1; X } X X /* Pull apart the system and device, and optional user. */ X X { X char *cursor; X X path_copy = xstrdup (path); X remote_host = path_copy; X remote_user = NULL; X remote_file = NULL; X X for (cursor = path_copy; *cursor; cursor++) X switch (*cursor) X { X default: X break; X X case '@': X if (!remote_user) X { X remote_user = remote_host; X *cursor = '\0'; X remote_host = cursor + 1; X } X break; X X case ':': X if (!remote_file) X { X *cursor = '\0'; X remote_file = cursor + 1; X } X break; X } X } X X /* FIXME: Should somewhat validate the decoding, here. */ X X if (remote_user && *remote_user == '\0') X remote_user = NULL; X #if WITH_REXEC X X /* Execute the remote command using rexec. */ X X READ_SIDE (remote_pipe_number) = _rmt_rexec (remote_host, remote_user); X if (READ_SIDE (remote_pipe_number) < 0) X { X free (path_copy); X return -1; X } X X WRITE_SIDE (remote_pipe_number) = READ_SIDE (remote_pipe_number); X #else /* not WITH_REXEC */ X { X const char *remote_shell_basename; X pid_t status; X X /* Identify the remote command to be executed. */ X X if (!remote_shell) X { #ifdef REMOTE_SHELL X remote_shell = REMOTE_SHELL; #else X errno = EIO; /* FIXME: errno should be read-only */ X free (path_copy); X return -1; #endif X } X remote_shell_basename = base_name (remote_shell); X if (remote_shell_basename) X remote_shell_basename++; X else X remote_shell_basename = remote_shell; X X /* Set up the pipes for the `rsh' command, and fork. */ X X if (pipe (to_remote[remote_pipe_number]) == -1 X || pipe (from_remote[remote_pipe_number]) == -1) X { X free (path_copy); X return -1; X } X X status = fork (); X if (status == -1) X { X free (path_copy); X return -1; X } X X if (status == 0) X { X /* Child. */ X X close (STDIN_FILENO); X dup (to_remote[remote_pipe_number][PREAD]); X close (to_remote[remote_pipe_number][PREAD]); X close (to_remote[remote_pipe_number][PWRITE]); X X close (STDOUT_FILENO); X dup (from_remote[remote_pipe_number][PWRITE]); X close (from_remote[remote_pipe_number][PREAD]); X close (from_remote[remote_pipe_number][PWRITE]); X #if !MSDOS X setuid (getuid ()); X setgid (getgid ()); #endif X X if (remote_user) X execl (remote_shell, remote_shell_basename, remote_host, X "-l", remote_user, "/etc/rmt", (char *) 0); X else X execl (remote_shell, remote_shell_basename, remote_host, X "/etc/rmt", (char *) 0); X X /* Bad problems if we get here. */ X X /* In a previous version, _exit was used here instead of exit. */ X error (EXIT_ON_EXEC_ERROR, errno, _("Cannot execute remote shell")); X } X X /* Parent. */ X X close (from_remote[remote_pipe_number][PWRITE]); X close (to_remote[remote_pipe_number][PREAD]); X } #endif /* not WITH_REXEC */ X X /* Attempt to open the tape device. */ X X { X char command_buffer[COMMAND_BUFFER_SIZE]; X X sprintf (command_buffer, "O%s\n%d\n", remote_file, open_mode); X if (do_command (remote_pipe_number, command_buffer) == -1 X || get_status (remote_pipe_number) == -1) X { X _rmt_shutdown (remote_pipe_number, errno); X free (path_copy); X return -1; X } X } X X free (path_copy); X return remote_pipe_number + bias; } X /*----------------------------------------------------------------. | Close remote tape connection HANDLE and shut down. Return 0 if | | successful, -1 on error. | `----------------------------------------------------------------*/ X int rmt_close__ (int handle) { X int status; X X if (do_command (handle, "C\n") == -1) X return -1; X X status = get_status (handle); X _rmt_shutdown (handle, errno); X return status; } X /*-------------------------------------------------------------------------. | Read up to LENGTH bytes into BUFFER from remote tape connection HANDLE. | | Return the number of bytes read on success, -1 on error. | `-------------------------------------------------------------------------*/ X ssize_t rmt_read__ (int handle, char *buffer, size_t length) { X char command_buffer[COMMAND_BUFFER_SIZE]; X ssize_t status, rlen; X size_t counter; X X sprintf (command_buffer, "R%lu\n", (unsigned long) length); X if (do_command (handle, command_buffer) == -1 X || (status = get_status (handle)) == -1) X return -1; X X for (counter = 0; counter < status; counter += rlen, buffer += rlen) X { X rlen = safe_read (READ_SIDE (handle), buffer, status - counter); X if (rlen <= 0) X { X _rmt_shutdown (handle, EIO); X return -1; X } X } X X return status; } X /*-------------------------------------------------------------------------. | Write LENGTH bytes from BUFFER to remote tape connection HANDLE. Return | | the number of bytes written on success, -1 on error. | `-------------------------------------------------------------------------*/ X ssize_t rmt_write__ (int handle, char *buffer, size_t length) { X char command_buffer[COMMAND_BUFFER_SIZE]; X RETSIGTYPE (*pipe_handler) (); X X sprintf (command_buffer, "W%lu\n", (unsigned long) length); X if (do_command (handle, command_buffer) == -1) X return -1; X X pipe_handler = signal (SIGPIPE, SIG_IGN); X if (full_write (WRITE_SIDE (handle), buffer, length) == length) X { X signal (SIGPIPE, pipe_handler); X return get_status (handle); X } X X /* Write error. */ X X signal (SIGPIPE, pipe_handler); X _rmt_shutdown (handle, EIO); X return -1; } X /*------------------------------------------------------------------------. | Perform an imitation lseek operation on remote tape connection HANDLE. | | Return the new file offset if successful, -1 if on error. | `------------------------------------------------------------------------*/ X off_t rmt_lseek__ (int handle, off_t offset, int whence) { X char command_buffer[COMMAND_BUFFER_SIZE]; X char operand_buffer[UINTMAX_STRSIZE_BOUND]; X uintmax_t u = offset < 0 ? - (uintmax_t) offset : (uintmax_t) offset; X char *p = operand_buffer + sizeof operand_buffer; X X do X *--p = '0' + (int) (u % 10); X while ((u /= 10) != 0); X if (offset < 0) X *--p = '-'; X X switch (whence) X { X case SEEK_SET: whence = 0; break; X case SEEK_CUR: whence = 1; break; X case SEEK_END: whence = 2; break; X default: abort (); X } X X sprintf (command_buffer, "L%s\n%d\n", p, whence); X X if (do_command (handle, command_buffer) == -1) X return -1; X X return get_status_off (handle); } X /*-----------------------------------------------------------------------. | Perform a raw tape operation on remote tape connection HANDLE. Return | | the results of the ioctl, or -1 on error. | `-----------------------------------------------------------------------*/ X int rmt_ioctl__ (int handle, int operation, char *argument) { X switch (operation) X { X default: X errno = EOPNOTSUPP; /* FIXME: errno should be read-only */ X return -1; X #ifdef MTIOCTOP X case MTIOCTOP: X { X char command_buffer[COMMAND_BUFFER_SIZE]; X char operand_buffer[UINTMAX_STRSIZE_BOUND]; X uintmax_t u = (((struct mtop *) argument)->mt_count < 0 X ? - (uintmax_t) ((struct mtop *) argument)->mt_count X : (uintmax_t) ((struct mtop *) argument)->mt_count); X char *p = operand_buffer + sizeof operand_buffer; X X do X *--p = '0' + (int) (u % 10); X while ((u /= 10) != 0); X if (((struct mtop *) argument)->mt_count < 0) X *--p = '-'; X X /* MTIOCTOP is the easy one. Nothing is transfered in binary. */ X X sprintf (command_buffer, "I%d\n%s\n", X ((struct mtop *) argument)->mt_op, p); X if (do_command (handle, command_buffer) == -1) X return -1; X X return get_status (handle); X } #endif /* MTIOCTOP */ X #ifdef MTIOCGET X case MTIOCGET: X { X ssize_t status; X ssize_t counter; X X /* Grab the status and read it directly into the structure. This X assumes that the status buffer is not padded and that 2 shorts X fit in a long without any word alignment problems; i.e., the X whole struct is contiguous. NOTE - this is probably NOT a good X assumption. */ X X if (do_command (handle, "S") == -1 X || (status = get_status (handle), status == -1)) X return -1; X X for (; status > 0; status -= counter, argument += counter) X { X counter = safe_read (READ_SIDE (handle), X argument, (size_t) status); X if (counter <= 0) X { X _rmt_shutdown (handle, EIO); X return -1; X } X } X X /* Check for byte position. mt_type (or mt_model) is a small integer X field (normally) so we will check its magnitude. If it is larger X than 256, we will assume that the bytes are swapped and go through X and reverse all the bytes. */ X X if (((struct mtget *) argument)->MTIO_CHECK_FIELD < 256) X return 0; X X for (counter = 0; counter < status; counter += 2) X { X char copy = argument[counter]; X X argument[counter] = argument[counter + 1]; X argument[counter + 1] = copy; X } X X return 0; X } #endif /* MTIOCGET */ X X } } SHAR_EOF $shar_touch -am 0706231099 'tar-1.13/src/rtapelib.c' && chmod 0444 'tar-1.13/src/rtapelib.c' || $echo 'restore of' 'tar-1.13/src/rtapelib.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/rtapelib.c:' 'MD5 check failed' 029fbc1bc14929908794c9aebb979224 tar-1.13/src/rtapelib.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/rtapelib.c'`" test 19180 -eq "$shar_count" || $echo 'tar-1.13/src/rtapelib.c:' 'original size' '19180,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/tar.c ============== if test -f 'tar-1.13/src/tar.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/tar.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/tar.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/tar.c' && /* A tar (tape archiver) program. X Copyright (C) 1988, 92,93,94,95,96,97, 1999 Free Software Foundation, Inc. X Written by John Gilmore, starting 1985-08-25. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #include "system.h" X #include X #include #if ! defined SIGCHLD && defined SIGCLD # define SIGCHLD SIGCLD #endif X /* The following causes "common.h" to produce definitions of all the global X variables, rather than just "extern" declarations of them. GNU tar does X depend on the system loader to preset all GLOBAL variables to neutral (or X zero) values, explicit initialisation is usually not done. */ #define GLOBAL #include "common.h" X #include "xstrtol.h" X time_t get_date (); X /* Local declarations. */ X #ifndef DEFAULT_ARCHIVE # define DEFAULT_ARCHIVE "tar.out" #endif X #ifndef DEFAULT_BLOCKING # define DEFAULT_BLOCKING 20 #endif X static void usage PARAMS ((int)); X /* Miscellaneous. */ X /*----------------------------------------------. | Doesn't return if stdin already requested. | `----------------------------------------------*/ X /* Name of option using stdin. */ static const char *stdin_used_by = NULL; X void request_stdin (const char *option) { X if (stdin_used_by) X USAGE_ERROR ((0, 0, _("Options `-%s' and `-%s' both want standard input"), X stdin_used_by, option)); X X stdin_used_by = option; } X /*--------------------------------------------------------. | Returns true if and only if the user typed 'y' or 'Y'. | `--------------------------------------------------------*/ X int confirm (const char *message_action, const char *message_name) { X static FILE *confirm_file = NULL; X X if (!confirm_file) X { X if (archive == 0 || stdin_used_by) X confirm_file = fopen (TTY_NAME, "r"); X else X { X request_stdin ("-w"); X confirm_file = stdin; X } X X if (!confirm_file) X FATAL_ERROR ((0, 0, _("Cannot read confirmation from user"))); X } X X fprintf (stdlis, "%s %s?", message_action, message_name); X fflush (stdlis); X X { X int reply = getc (confirm_file); X int character; X X for (character = reply; X character != '\n' && character != EOF; X character = getc (confirm_file)) X continue; X return reply == 'y' || reply == 'Y'; X } } X /* Options. */ X /* For long options that unconditionally set a single flag, we have getopt X do it. For the others, we share the code for the equivalent short X named option, the name of which is stored in the otherwise-unused `val' X field of the `struct option'; for long options that have no equivalent X short option, we use non-characters as pseudo short options, X starting at CHAR_MAX + 1 and going upwards. */ X enum { X BACKUP_OPTION = CHAR_MAX + 1, X DELETE_OPTION, X EXCLUDE_OPTION, X GROUP_OPTION, X MODE_OPTION, X NEWER_MTIME_OPTION, X NO_RECURSE_OPTION, X NULL_OPTION, X OWNER_OPTION, X POSIX_OPTION, X PRESERVE_OPTION, X RECORD_SIZE_OPTION, X RSH_COMMAND_OPTION, X SUFFIX_OPTION, X USE_COMPRESS_PROGRAM_OPTION, X VOLNO_FILE_OPTION, X X /* Some cleanup is being made in GNU tar long options. Using old names is X allowed for a while, but will also send a warning to stderr. Take old X names out in 1.14, or in summer 1997, whichever happens last. */ X X OBSOLETE_ABSOLUTE_NAMES, X OBSOLETE_BLOCK_COMPRESS, X OBSOLETE_BLOCKING_FACTOR, X OBSOLETE_BLOCK_NUMBER, X OBSOLETE_READ_FULL_RECORDS, X OBSOLETE_TOUCH, X OBSOLETE_VERSION_CONTROL }; X /* If nonzero, display usage information and exit. */ static int show_help = 0; X /* If nonzero, print the version on standard output and exit. */ static int show_version = 0; X struct option long_options[] = { X {"absolute-names", no_argument, NULL, 'P'}, X {"absolute-paths", no_argument, NULL, OBSOLETE_ABSOLUTE_NAMES}, X {"after-date", required_argument, NULL, 'N'}, X {"append", no_argument, NULL, 'r'}, X {"atime-preserve", no_argument, &atime_preserve_option, 1}, X {"backup", optional_argument, NULL, BACKUP_OPTION}, X {"block-compress", no_argument, NULL, OBSOLETE_BLOCK_COMPRESS}, X {"block-number", no_argument, NULL, 'R'}, X {"block-size", required_argument, NULL, OBSOLETE_BLOCKING_FACTOR}, X {"blocking-factor", required_argument, NULL, 'b'}, X {"catenate", no_argument, NULL, 'A'}, X {"checkpoint", no_argument, &checkpoint_option, 1}, X {"compare", no_argument, NULL, 'd'}, X {"compress", no_argument, NULL, 'Z'}, X {"concatenate", no_argument, NULL, 'A'}, X {"confirmation", no_argument, NULL, 'w'}, X /* FIXME: --selective as a synonym for --confirmation? */ X {"create", no_argument, NULL, 'c'}, X {"delete", no_argument, NULL, DELETE_OPTION}, X {"dereference", no_argument, NULL, 'h'}, X {"diff", no_argument, NULL, 'd'}, X {"directory", required_argument, NULL, 'C'}, X {"exclude", required_argument, NULL, EXCLUDE_OPTION}, X {"exclude-from", required_argument, NULL, 'X'}, X {"extract", no_argument, NULL, 'x'}, X {"file", required_argument, NULL, 'f'}, X {"files-from", required_argument, NULL, 'T'}, X {"force-local", no_argument, &force_local_option, 1}, X {"get", no_argument, NULL, 'x'}, X {"group", required_argument, NULL, GROUP_OPTION}, X {"gunzip", no_argument, NULL, 'z'}, X {"gzip", no_argument, NULL, 'z'}, X {"help", no_argument, &show_help, 1}, X {"ignore-failed-read", no_argument, &ignore_failed_read_option, 1}, X {"ignore-zeros", no_argument, NULL, 'i'}, X /* FIXME: --ignore-end as a new name for --ignore-zeros? */ X {"incremental", no_argument, NULL, 'G'}, X {"info-script", required_argument, NULL, 'F'}, X {"interactive", no_argument, NULL, 'w'}, X {"keep-old-files", no_argument, NULL, 'k'}, X {"label", required_argument, NULL, 'V'}, X {"list", no_argument, NULL, 't'}, X {"listed-incremental", required_argument, NULL, 'g'}, X {"mode", required_argument, NULL, MODE_OPTION}, X {"modification-time", no_argument, NULL, OBSOLETE_TOUCH}, X {"multi-volume", no_argument, NULL, 'M'}, X {"new-volume-script", required_argument, NULL, 'F'}, X {"newer", required_argument, NULL, 'N'}, X {"newer-mtime", required_argument, NULL, NEWER_MTIME_OPTION}, X {"null", no_argument, NULL, NULL_OPTION}, X {"no-recursion", no_argument, NULL, NO_RECURSE_OPTION}, X {"numeric-owner", no_argument, &numeric_owner_option, 1}, X {"old-archive", no_argument, NULL, 'o'}, X {"one-file-system", no_argument, NULL, 'l'}, X {"owner", required_argument, NULL, OWNER_OPTION}, X {"portability", no_argument, NULL, 'o'}, X {"posix", no_argument, NULL, POSIX_OPTION}, X {"preserve", no_argument, NULL, PRESERVE_OPTION}, X {"preserve-order", no_argument, NULL, 's'}, X {"preserve-permissions", no_argument, NULL, 'p'}, X {"recursive-unlink", no_argument, &recursive_unlink_option, 1}, X {"read-full-blocks", no_argument, NULL, OBSOLETE_READ_FULL_RECORDS}, X {"read-full-records", no_argument, NULL, 'B'}, X /* FIXME: --partial-blocks might be a synonym for --read-full-records? */ X {"record-number", no_argument, NULL, OBSOLETE_BLOCK_NUMBER}, X {"record-size", required_argument, NULL, RECORD_SIZE_OPTION}, X {"remove-files", no_argument, &remove_files_option, 1}, X {"rsh-command", required_argument, NULL, RSH_COMMAND_OPTION}, X {"same-order", no_argument, NULL, 's'}, X {"same-owner", no_argument, &same_owner_option, 1}, X {"same-permissions", no_argument, NULL, 'p'}, X {"show-omitted-dirs", no_argument, &show_omitted_dirs_option, 1}, X {"sparse", no_argument, NULL, 'S'}, X {"starting-file", required_argument, NULL, 'K'}, X {"suffix", required_argument, NULL, SUFFIX_OPTION}, X {"tape-length", required_argument, NULL, 'L'}, X {"to-stdout", no_argument, NULL, 'O'}, X {"totals", no_argument, &totals_option, 1}, X {"touch", no_argument, NULL, 'm'}, X {"uncompress", no_argument, NULL, 'Z'}, X {"ungzip", no_argument, NULL, 'z'}, X {"unlink-first", no_argument, NULL, 'U'}, X {"update", no_argument, NULL, 'u'}, X {"use-compress-program", required_argument, NULL, USE_COMPRESS_PROGRAM_OPTION}, X {"verbose", no_argument, NULL, 'v'}, X {"verify", no_argument, NULL, 'W'}, X {"version", no_argument, &show_version, 1}, X {"version-control", required_argument, NULL, OBSOLETE_VERSION_CONTROL}, X {"volno-file", required_argument, NULL, VOLNO_FILE_OPTION}, X X {0, 0, 0, 0} }; X /*---------------------------------------------. | Print a usage message and exit with STATUS. | `---------------------------------------------*/ X static void usage (int status) { X if (status != TAREXIT_SUCCESS) X fprintf (stderr, _("Try `%s --help' for more information.\n"), X program_name); X else X { X fputs (_("\ GNU `tar' saves many files together into a single tape or disk archive, and\n\ can restore individual files from the archive.\n"), X stdout); X printf (_("\nUsage: %s [OPTION]... [FILE]...\n"), program_name); X fputs (_("\ \n\ If a long option shows an argument as mandatory, then it is mandatory\n\ for the equivalent short option also. Similarly for optional arguments.\n"), X stdout); X fputs(_("\ \n\ Main operation mode:\n\ X -t, --list list the contents of an archive\n\ X -x, --extract, --get extract files from an archive\n\ X -c, --create create a new archive\n\ X -d, --diff, --compare find differences between archive and file system\n\ X -r, --append append files to the end of an archive\n\ X -u, --update only append files newer than copy in archive\n\ X -A, --catenate append tar files to an archive\n\ X --concatenate same as -A\n\ X --delete delete from the archive (not on mag tapes!)\n"), X stdout); X fputs (_("\ \n\ Operation modifiers:\n\ X -W, --verify attempt to verify the archive after writing it\n\ X --remove-files remove files after adding them to the archive\n\ X -k, --keep-old-files don't overwrite existing files when extracting\n\ X -U, --unlink-first remove each file prior to extracting over it\n\ X --recursive-unlink empty hierarchies prior to extracting directory\n\ X -S, --sparse handle sparse files efficiently\n\ X -O, --to-stdout extract files to standard output\n\ X -G, --incremental handle old GNU-format incremental backup\n\ X -g, --listed-incremental handle new GNU-format incremental backup\n\ X --ignore-failed-read do not exit with nonzero on unreadable files\n"), X stdout); X fputs (_("\ \n\ Handling of file attributes:\n\ X --owner=NAME force NAME as owner for added files\n\ X --group=NAME force NAME as group for added files\n\ X --mode=CHANGES force (symbolic) mode CHANGES for added files\n\ X --atime-preserve don't change access times on dumped files\n\ X -m, --modification-time don't extract file modified time\n\ X --same-owner try extracting files with the same ownership\n\ X --numeric-owner always use numbers for user/group names\n\ X -p, --same-permissions extract all protection information\n\ X --preserve-permissions same as -p\n\ X -s, --same-order sort names to extract to match archive\n\ X --preserve-order same as -s\n\ X --preserve same as both -p and -s\n"), X stdout); X fputs (_("\ \n\ Device selection and switching:\n\ X -f, --file=ARCHIVE use archive file or device ARCHIVE\n\ X --force-local archive file is local even if has a colon\n\ X --rsh-command=COMMAND use remote COMMAND instead of rsh\n\ X -[0-7][lmh] specify drive and density\n\ X -M, --multi-volume create/list/extract multi-volume archive\n\ X -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n\ X -F, --info-script=FILE run script at end of each tape (implies -M)\n\ X --new-volume-script=FILE same as -F FILE\n\ X --volno-file=FILE use/update the volume number in FILE\n"), X stdout); X fputs (_("\ \n\ Device blocking:\n\ X -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n\ X --record-size=SIZE SIZE bytes per record, multiple of 512\n\ X -i, --ignore-zeros ignore zeroed blocks in archive (means EOF)\n\ X -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n"), X stdout); X fputs (_("\ \n\ Archive format selection:\n\ X -V, --label=NAME create archive with volume name NAME\n\ X PATTERN at list/extract time, a globbing PATTERN\n\ X -o, --old-archive, --portability write a V7 format archive\n\ X --posix write a POSIX conformant archive\n\ X -z, --gzip, --ungzip filter the archive through gzip\n\ X -Z, --compress, --uncompress filter the archive through compress\n\ X --use-compress-program=PROG filter through PROG (must accept -d)\n"), X stdout); X fputs (_("\ \n\ Local file selection:\n\ X -C, --directory=DIR change to directory DIR\n\ X -T, --files-from=NAME get names to extract or create from file NAME\n\ X --null -T reads null-terminated names, disable -C\n\ X --exclude=PATTERN exclude files, given as a globbing PATTERN\n\ X -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n\ X -P, --absolute-names don't strip leading `/'s from file names\n\ X -h, --dereference dump instead the files symlinks point to\n\ X --no-recursion avoid descending automatically in directories\n\ X -l, --one-file-system stay in local file system when creating archive\n\ X -K, --starting-file=NAME begin at file NAME in the archive\n"), X stdout); #if !MSDOS X fputs (_("\ X -N, --newer=DATE only store files newer than DATE\n\ X --newer-mtime compare date and time when data changed only\n\ X --after-date=DATE same as -N\n"), X stdout); #endif X fputs (_("\ X --backup[=CONTROL] backup before removal, choose version control\n\ X --suffix=SUFFIX backup before removel, override usual suffix\n"), X stdout); X fputs (_("\ \n\ Informative output:\n\ X --help print this help, then exit\n\ X --version print tar program version number, then exit\n\ X -v, --verbose verbosely list files processed\n\ X --checkpoint print directory names while reading the archive\n\ X --totals print total bytes written while creating archive\n\ X -R, --block-number show block number within archive with each message\n\ X -w, --interactive ask for confirmation for every action\n\ X --confirmation same as -w\n"), X stdout); X fputs (_("\ \n\ The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.\n\ The version control may be set with --backup or VERSION_CONTROL, values are:\n\ \n\ X t, numbered make numbered backups\n\ X nil, existing numbered if numbered backups exist, simple otherwise\n\ X never, simple always make simple backups\n"), X stdout); X printf (_("\ \n\ GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT\n\ is set in the environment, GNU extensions are disallowed with `--posix'.\n\ Support for POSIX is only partially implemented, don't count on it yet.\n\ ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file\n\ or a device. *This* `tar' defaults to `-f%s -b%d'.\n"), X DEFAULT_ARCHIVE, DEFAULT_BLOCKING); X fputs (_("\ \n\ Report bugs to .\n"), X stdout); X } X exit (status); } X /*----------------------------. | Parse the options for tar. | `----------------------------*/ X /* Available option letters are DEHIJQY and aejnqy. Some are reserved: X X y per-file gzip compression X Y per-block gzip compression */ X #define OPTION_STRING \ X "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz" X static void set_subcommand_option (enum subcommand subcommand) { X if (subcommand_option != UNKNOWN_SUBCOMMAND X && subcommand_option != subcommand) X USAGE_ERROR ((0, 0, X _("You may not specify more than one `-Acdtrux' option"))); X X subcommand_option = subcommand; } X static void set_use_compress_program_option (const char *string) { X if (use_compress_program_option && strcmp (use_compress_program_option, string) != 0) X USAGE_ERROR ((0, 0, _("Conflicting compression options"))); X X use_compress_program_option = string; } X static void decode_options (int argc, char *const *argv) { X int optchar; /* option letter */ X int input_files; /* number of input files */ X const char *backup_suffix_string; X const char *version_control_string = NULL; X X /* Set some default option values. */ X X subcommand_option = UNKNOWN_SUBCOMMAND; X archive_format = DEFAULT_FORMAT; X blocking_factor = DEFAULT_BLOCKING; X record_size = DEFAULT_BLOCKING * BLOCKSIZE; X excluded = new_exclude (); X X owner_option = -1; X group_option = -1; X X backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX"); X X /* Convert old-style tar call by exploding option element and rearranging X options accordingly. */ X X if (argc > 1 && argv[1][0] != '-') X { X int new_argc; /* argc value for rearranged arguments */ X char **new_argv; /* argv value for rearranged arguments */ X char *const *in; /* cursor into original argv */ X char **out; /* cursor into rearranged argv */ X const char *letter; /* cursor into old option letters */ X char buffer[3]; /* constructed option buffer */ X const char *cursor; /* cursor in OPTION_STRING */ X X /* Initialize a constructed option. */ X X buffer[0] = '-'; X buffer[2] = '\0'; X X /* Allocate a new argument array, and copy program name in it. */ X X new_argc = argc - 1 + strlen (argv[1]); X new_argv = (char **) xmalloc (new_argc * sizeof (char *)); X in = argv; X out = new_argv; X *out++ = *in++; X X /* Copy each old letter option as a separate option, and have the X corresponding argument moved next to it. */ X X for (letter = *in++; *letter; letter++) X { X buffer[1] = *letter; X *out++ = xstrdup (buffer); X cursor = strchr (OPTION_STRING, *letter); X if (cursor && cursor[1] == ':') X { X if (in < argv + argc) X *out++ = *in++; X else X USAGE_ERROR ((0, 0, _("Old option `%c' requires an argument."), X *letter)); X } X } X X /* Copy all remaining options. */ X X while (in < argv + argc) X *out++ = *in++; X X /* Replace the old option list by the new one. */ X X argc = new_argc; X argv = new_argv; X } X X /* Parse all options and non-options as they appear. */ X X input_files = 0; X X while (optchar = getopt_long (argc, argv, OPTION_STRING, long_options, NULL), X optchar != EOF) X switch (optchar) X { X case '?': X usage (TAREXIT_FAILURE); X X case 0: X break; X X case 1: X /* File name or non-parsed option, because of RETURN_IN_ORDER X ordering triggerred by the leading dash in OPTION_STRING. */ X X name_add (optarg); X input_files++; X break; X X case 'A': X set_subcommand_option (CAT_SUBCOMMAND); X break; X X case OBSOLETE_BLOCK_COMPRESS: X WARN ((0, 0, _("Obsolete option, now implied by --blocking-factor"))); X break; X X case OBSOLETE_BLOCKING_FACTOR: X WARN ((0, 0, _("Obsolete option name replaced by --blocking-factor"))); X /* Fall through. */ X X case 'b': X { X long l; X if (! (xstrtol (optarg, (char **) 0, 10, &l, "") == LONGINT_OK X && l == (blocking_factor = l) X && 0 < blocking_factor X && l == (record_size = l * (size_t) BLOCKSIZE) / BLOCKSIZE)) X USAGE_ERROR ((0, 0, _("Invalid blocking factor"))); X } X break; X X case OBSOLETE_READ_FULL_RECORDS: X WARN ((0, 0, X _("Obsolete option name replaced by --read-full-records"))); X /* Fall through. */ X X case 'B': X /* Try to reblock input records. For reading 4.2BSD pipes. */ X X /* It would surely make sense to exchange -B and -R, but it seems X that -B has been used for a long while in Sun tar ans most X BSD-derived systems. This is a consequence of the block/record X terminology confusion. */ X X read_full_records_option = 1; X break; X X case 'c': X set_subcommand_option (CREATE_SUBCOMMAND); X break; X X case 'C': X name_add ("-C"); X name_add (optarg); X break; X X case 'd': X set_subcommand_option (DIFF_SUBCOMMAND); X break; X X case 'f': X if (archive_names == allocated_archive_names) X { X allocated_archive_names *= 2; X archive_name_array = (const char **) X xrealloc (archive_name_array, X sizeof (const char *) * allocated_archive_names); X } X archive_name_array[archive_names++] = optarg; X break; X X case 'F': X /* Since -F is only useful with -M, make it implied. Run this X script at the end of each tape. */ X X info_script_option = optarg; X multi_volume_option = 1; X break; X X case 'g': X listed_incremental_option = optarg; X /* Fall through. */ X X case 'G': X /* We are making an incremental dump (FIXME: are we?); save X directories at the beginning of the archive, and include in each X directory its contents. */ X X incremental_option = 1; X break; X X case 'h': X /* Follow symbolic links. */ X X dereference_option = 1; X break; X X case 'i': X /* Ignore zero blocks (eofs). This can't be the default, X because Unix tar writes two blocks of zeros, then pads out X the record with garbage. */ X X ignore_zeros_option = 1; X break; X X case 'k': X /* Don't overwrite existing files. */ X X keep_old_files_option = 1; X break; X X case 'K': X starting_file_option = 1; X addname (optarg); X break; X X case 'l': X /* When dumping directories, don't dump files/subdirectories X that are on other filesystems. */ X X one_file_system_option = 1; X break; X X case 'L': X { X unsigned long u; X if (xstrtoul (optarg, (char **) 0, 10, &u, "") != LONG_MAX) X USAGE_ERROR ((0, 0, _("Invalid tape length"))); X clear_tarlong (tape_length_option); X add_to_tarlong (tape_length_option, u); X mult_tarlong (tape_length_option, 1024); X multi_volume_option = 1; X } X break; X X case OBSOLETE_TOUCH: X WARN ((0, 0, _("Obsolete option name replaced by --touch"))); X /* Fall through. */ X X case 'm': X touch_option = 1; X break; X X case 'M': X /* Make multivolume archive: when we can't write any more into X the archive, re-open it, and continue writing. */ X X multi_volume_option = 1; X break; X #if !MSDOS X case 'N': X after_date_option = 1; X /* Fall through. */ X X case NEWER_MTIME_OPTION: X if (newer_mtime_option) X USAGE_ERROR ((0, 0, _("More than one threshold date"))); X X newer_mtime_option = get_date (optarg, (voidstar) 0); X if (newer_mtime_option == (time_t) -1) X USAGE_ERROR ((0, 0, _("Invalid date format `%s'"), optarg)); X X break; #endif /* not MSDOS */ X X case 'o': X if (archive_format == DEFAULT_FORMAT) X archive_format = V7_FORMAT; X else if (archive_format != V7_FORMAT) X USAGE_ERROR ((0, 0, _("Conflicting archive format options"))); X break; X X case 'O': X to_stdout_option = 1; X break; X X case 'p': X same_permissions_option = 1; X break; X X case OBSOLETE_ABSOLUTE_NAMES: X WARN ((0, 0, _("Obsolete option name replaced by --absolute-names"))); X /* Fall through. */ X X case 'P': X absolute_names_option = 1; X break; X X case 'r': X set_subcommand_option (APPEND_SUBCOMMAND); X break; X X case OBSOLETE_BLOCK_NUMBER: X WARN ((0, 0, _("Obsolete option name replaced by --block-number"))); X /* Fall through. */ X X case 'R': X /* Print block numbers for debugging bad tar archives. */ X X /* It would surely make sense to exchange -B and -R, but it seems X that -B has been used for a long while in Sun tar ans most X BSD-derived systems. This is a consequence of the block/record X terminology confusion. */ X X block_number_option = 1; X break; X X case 's': X /* Names to extr are sorted. */ X X same_order_option = 1; X break; X X case 'S': X sparse_option = 1; X break; X X case 't': X set_subcommand_option (LIST_SUBCOMMAND); X verbose_option++; X break; X X case 'T': X files_from_option = optarg; X break; X X case 'u': X set_subcommand_option (UPDATE_SUBCOMMAND); X break; X X case 'U': X unlink_first_option = 1; X break; X X case 'v': X verbose_option++; X break; X X case 'V': X volume_label_option = optarg; X break; X X case 'w': X interactive_option = 1; X break; X X case 'W': X verify_option = 1; X break; X X case 'x': X set_subcommand_option (EXTRACT_SUBCOMMAND); X break; X X case 'X': X if (add_exclude_file (excluded, optarg, '\n') != 0) X FATAL_ERROR ((0, errno, "%s", optarg)); X break; X X case 'z': X set_use_compress_program_option ("gzip"); X break; X X case 'Z': X set_use_compress_program_option ("compress"); X break; X X case OBSOLETE_VERSION_CONTROL: X WARN ((0, 0, _("Obsolete option name replaced by --backup"))); X /* Fall through. */ X X case BACKUP_OPTION: X backup_option = 1; X if (optarg) X version_control_string = optarg; X break; X X case DELETE_OPTION: X set_subcommand_option (DELETE_SUBCOMMAND); X break; X X case EXCLUDE_OPTION: X add_exclude (excluded, optarg); X break; X X case GROUP_OPTION: X if (! (strlen (optarg) < GNAME_FIELD_SIZE X && gname_to_gid (optarg, &group_option))) X { X uintmax_t g; X if (xstrtoumax (optarg, (char **) 0, 10, &g, "") == LONGINT_OK X && g == (gid_t) g) X group_option = g; X else X ERROR ((TAREXIT_FAILURE, 0, _("Invalid group given on option"))); X } X break; X X case MODE_OPTION: X mode_option X = mode_compile (optarg, X MODE_MASK_EQUALS | MODE_MASK_PLUS | MODE_MASK_MINUS); X if (mode_option == MODE_INVALID) X ERROR ((TAREXIT_FAILURE, 0, _("Invalid mode given on option"))); X if (mode_option == MODE_MEMORY_EXHAUSTED) X ERROR ((TAREXIT_FAILURE, 0, _("Memory exhausted"))); X break; X X case NO_RECURSE_OPTION: X no_recurse_option = 1; X break; X X case NULL_OPTION: X filename_terminator = '\0'; X break; X X case OWNER_OPTION: X if (! (strlen (optarg) < UNAME_FIELD_SIZE X && uname_to_uid (optarg, &owner_option))) X { X uintmax_t u; X if (xstrtoumax (optarg, (char **) 0, 10, &u, "") == LONGINT_OK X && u == (uid_t) u) X owner_option = u; X else X ERROR ((TAREXIT_FAILURE, 0, _("Invalid owner given on option"))); X } X break; X X case POSIX_OPTION: #if OLDGNU_COMPATIBILITY X if (archive_format == DEFAULT_FORMAT) X archive_format = GNU_FORMAT; X else if (archive_format != GNU_FORMAT) X USAGE_ERROR ((0, 0, _("Conflicting archive format options"))); #else X if (archive_format == DEFAULT_FORMAT) X archive_format = POSIX_FORMAT; X else if (archive_format != POSIX_FORMAT) X USAGE_ERROR ((0, 0, _("Conflicting archive format options"))); #endif X break; X X case PRESERVE_OPTION: X same_permissions_option = 1; X same_order_option = 1; X break; X X case RECORD_SIZE_OPTION: X { X uintmax_t u; X if (! (xstrtoumax (optarg, (char **) 0, 10, &u, "") == LONG_MAX X && u == (size_t) u)) X USAGE_ERROR ((0, 0, _("Invalid record size"))); X record_size = u; X if (record_size % BLOCKSIZE != 0) X USAGE_ERROR ((0, 0, _("Record size must be a multiple of %d."), X BLOCKSIZE)); X blocking_factor = record_size / BLOCKSIZE; X } X break; X X case RSH_COMMAND_OPTION: X rsh_command_option = optarg; X break; X X case SUFFIX_OPTION: X backup_option = 1; X backup_suffix_string = optarg; X break; X X case VOLNO_FILE_OPTION: X volno_file_option = optarg; X break; X X case USE_COMPRESS_PROGRAM_OPTION: X set_use_compress_program_option (optarg); X break; X X case '0': X case '1': X case '2': X case '3': X case '4': X case '5': X case '6': X case '7': X #ifdef DEVICE_PREFIX X { X int device = optchar - '0'; X int density; X static char buf[sizeof DEVICE_PREFIX + 10]; X char *cursor; X X density = getopt_long (argc, argv, "lmh", NULL, NULL); X strcpy (buf, DEVICE_PREFIX); X cursor = buf + strlen (buf); X #ifdef DENSITY_LETTER X X sprintf (cursor, "%d%c", device, density); X #else /* not DENSITY_LETTER */ X X switch (density) X { X case 'l': #ifdef LOW_NUM X device += LOW_NUM; #endif X break; X X case 'm': #ifdef MID_NUM X device += MID_NUM; #else X device += 8; #endif X break; X X case 'h': #ifdef HGH_NUM X device += HGH_NUM; #else X device += 16; #endif X break; X X default: X usage (TAREXIT_FAILURE); X } X sprintf (cursor, "%d", device); X #endif /* not DENSITY_LETTER */ X X if (archive_names == allocated_archive_names) X { X allocated_archive_names *= 2; X archive_name_array = (const char **) X xrealloc (archive_name_array, X sizeof (const char *) * allocated_archive_names); X } X archive_name_array[archive_names++] = buf; X X /* FIXME: How comes this works for many archives when buf is X not xstrdup'ed? */ X } X break; X #else /* not DEVICE_PREFIX */ X X USAGE_ERROR ((0, 0, X _("Options `-[0-7][lmh]' not supported by *this* tar"))); X #endif /* not DEVICE_PREFIX */ X } X X /* Process trivial options. */ X X if (show_version) X { X printf ("tar (GNU %s) %s\n", PACKAGE, VERSION); X fputs (_("\ \n\ Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.\n"), X stdout); X fputs (_("\ This is free software; see the source for copying conditions. There is NO\n\ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), X stdout); X fputs (_("\ \n\ Written by John Gilmore and Jay Fenlason.\n"), X stdout); X exit (TAREXIT_SUCCESS); X } X X if (show_help) X usage (TAREXIT_SUCCESS); X X /* Derive option values and check option consistency. */ X X if (archive_format == DEFAULT_FORMAT) X { #if OLDGNU_COMPATIBILITY X archive_format = OLDGNU_FORMAT; #else X archive_format = GNU_FORMAT; #endif X } X X if (archive_format == GNU_FORMAT && getenv ("POSIXLY_CORRECT")) X archive_format = POSIX_FORMAT; X X if ((volume_label_option != NULL X || incremental_option || multi_volume_option || sparse_option) X && archive_format != OLDGNU_FORMAT && archive_format != GNU_FORMAT) X USAGE_ERROR ((0, 0, X _("GNU features wanted on incompatible archive format"))); X X if (archive_names == 0) X { X /* If no archive file name given, try TAPE from the environment, or X else, DEFAULT_ARCHIVE from the configuration process. */ X X archive_names = 1; X archive_name_array[0] = getenv ("TAPE"); X if (archive_name_array[0] == NULL) X archive_name_array[0] = DEFAULT_ARCHIVE; X } X X /* Allow multiple archives only with `-M'. */ X X if (archive_names > 1 && !multi_volume_option) X USAGE_ERROR ((0, 0, X _("Multiple archive files requires `-M' option"))); X X /* If ready to unlink hierarchies, so we are for simpler files. */ X if (recursive_unlink_option) X unlink_first_option = 1; X X /* Forbid using -c with no input files whatsoever. Check that `-f -', X explicit or implied, is used correctly. */ X X switch (subcommand_option) X { X case CREATE_SUBCOMMAND: X if (input_files == 0 && !files_from_option) X USAGE_ERROR ((0, 0, X _("Cowardly refusing to create an empty archive"))); X break; X X case EXTRACT_SUBCOMMAND: X case LIST_SUBCOMMAND: X case DIFF_SUBCOMMAND: X for (archive_name_cursor = archive_name_array; X archive_name_cursor < archive_name_array + archive_names; X archive_name_cursor++) X if (!strcmp (*archive_name_cursor, "-")) X request_stdin ("-f"); X break; X X case CAT_SUBCOMMAND: X case UPDATE_SUBCOMMAND: X case APPEND_SUBCOMMAND: X for (archive_name_cursor = archive_name_array; X archive_name_cursor < archive_name_array + archive_names; X archive_name_cursor++) X if (!strcmp (*archive_name_cursor, "-")) X USAGE_ERROR ((0, 0, X _("Options `-Aru' are incompatible with `-f -'"))); X X default: X break; X } X X archive_name_cursor = archive_name_array; X X /* Prepare for generating backup names. */ X X if (backup_suffix_string) X simple_backup_suffix = xstrdup (backup_suffix_string); X X if (backup_option) X backup_type = xget_version ("--backup", version_control_string); } X /* Tar proper. */ X /*-----------------------. | Main routine for tar. | `-----------------------*/ X int main (int argc, char *const *argv) { X program_name = argv[0]; X setlocale (LC_ALL, ""); X bindtextdomain (PACKAGE, LOCALEDIR); X textdomain (PACKAGE); X X exit_status = TAREXIT_SUCCESS; X filename_terminator = '\n'; X X /* Pre-allocate a few structures. */ X X allocated_archive_names = 10; X archive_name_array = (const char **) X xmalloc (sizeof (const char *) * allocated_archive_names); X archive_names = 0; X #ifdef SIGCHLD X /* System V fork+wait does not work if SIGCHLD is ignored. */ X signal (SIGCHLD, SIG_DFL); #endif X X init_names (); X X /* Decode options. */ X X decode_options (argc, argv); X name_init (argc, argv); X X /* Main command execution. */ X X if (volno_file_option) X init_volume_number (); X X switch (subcommand_option) X { X case UNKNOWN_SUBCOMMAND: X USAGE_ERROR ((0, 0, X _("You must specify one of the `-Acdtrux' options"))); X X case CAT_SUBCOMMAND: X case UPDATE_SUBCOMMAND: X case APPEND_SUBCOMMAND: X update_archive (); X break; X X case DELETE_SUBCOMMAND: X delete_archive_members (); X break; X X case CREATE_SUBCOMMAND: X if (totals_option) X init_total_written (); X X create_archive (); X name_close (); X X if (totals_option) X print_total_written (); X break; X X case EXTRACT_SUBCOMMAND: X extr_init (); X read_and (extract_archive); X break; X X case LIST_SUBCOMMAND: X read_and (list_archive); X break; X X case DIFF_SUBCOMMAND: X diff_init (); X read_and (diff_archive); X break; X } X X if (volno_file_option) X closeout_volume_number (); X X /* Dispose of allocated memory, and return. */ X X free (archive_name_array); X name_term (); X X if (exit_status == TAREXIT_FAILURE) X error (0, 0, _("Error exit delayed from previous errors")); X exit (exit_status); } SHAR_EOF $shar_touch -am 0706224999 'tar-1.13/src/tar.c' && chmod 0444 'tar-1.13/src/tar.c' || $echo 'restore of' 'tar-1.13/src/tar.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/tar.c:' 'MD5 check failed' 6cc4a0e85fb903944c9f8794dfb5c26b tar-1.13/src/tar.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/tar.c'`" test 34553 -eq "$shar_count" || $echo 'tar-1.13/src/tar.c:' 'original size' '34553,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/update.c ============== if test -f 'tar-1.13/src/update.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/update.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/update.c' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/update.c' && /* Update a tar archive. X Copyright (C) 1988, 1992, 1994, 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Implement the 'r', 'u' and 'A' options for tar. 'A' means that the X file names are tar files, and they should simply be appended to the end X of the archive. No attempt is made to record the reads from the args; if X they're on raw tape or something like that, it'll probably lose... */ X #include "system.h" #include "common.h" X /* FIXME: This module should not directly handle the following variable, X instead, this should be done in buffer.c only. */ extern union block *current_block; X /* We've hit the end of the old stuff, and its time to start writing new X stuff to the tape. This involves seeking back one record and X re-writing the current record (which has been changed). */ int time_to_start_writing = 0; X /* Pointer to where we started to write in the first record we write out. X This is used if we can't backspace the output and have to null out the X first part of the record. */ char *output_start; X /*------------------------------------------------------------------------. | Catenate file PATH to the archive without creating a header for it. It | | had better be a tar file or the archive is screwed. | `------------------------------------------------------------------------*/ X static void append_file (char *path) { X int handle; X struct stat stat_data; X off_t bytes_left; X X if (stat (path, &stat_data) != 0 X || (handle = open (path, O_RDONLY | O_BINARY), handle < 0)) X { X ERROR ((0, errno, _("Cannot open file %s"), path)); X return; X } X X bytes_left = stat_data.st_size; X X while (bytes_left > 0) X { X union block *start = find_next_block (); X size_t buffer_size = available_space_after (start); X ssize_t status; X X if (bytes_left < buffer_size) X { X buffer_size = bytes_left; X status = buffer_size % BLOCKSIZE; X if (status) X memset (start->buffer + bytes_left, 0, X (size_t) (BLOCKSIZE - status)); X } X X status = safe_read (handle, start->buffer, buffer_size); X if (status < 0) X { X char buf[UINTMAX_STRSIZE_BOUND]; X FATAL_ERROR ((0, errno, X _("Read error at byte %s reading %lu bytes in file %s"), X STRINGIFY_BIGINT (stat_data.st_size - bytes_left, buf), X (unsigned long) buffer_size, path)); X } X bytes_left -= status; X X set_next_block_after (start + (status - 1) / BLOCKSIZE); X X if (status != buffer_size) X { X char buf[UINTMAX_STRSIZE_BOUND]; X FATAL_ERROR ((0, 0, _("%s: File shrunk by %s bytes, (yark!)"), X path, STRINGIFY_BIGINT (bytes_left, buf))); X } X } X X close (handle); } X /*-----------------------------------------------------------------------. | Implement the 'r' (add files to end of archive), and 'u' (add files to | | end of archive if they arent there, or are more up to date than the | | version in the archive.) commands. | `-----------------------------------------------------------------------*/ X void update_archive (void) { X enum read_header previous_status = HEADER_STILL_UNREAD; X int found_end = 0; X X name_gather (); X if (subcommand_option == UPDATE_SUBCOMMAND) X name_expand (); X open_archive (ACCESS_UPDATE); X X while (!found_end) X { X enum read_header status = read_header (); X X switch (status) X { X case HEADER_STILL_UNREAD: X abort (); X X case HEADER_SUCCESS: X { X struct name *name; X X if (subcommand_option == UPDATE_SUBCOMMAND X && (name = name_scan (current_file_name), name)) X { X struct stat stat_data; X enum archive_format unused; X X decode_header (current_header, ¤t_stat, &unused, 0); X if (stat (current_file_name, &stat_data) < 0) X ERROR ((0, errno, _("Cannot stat %s"), current_file_name)); X else if (current_stat.st_mtime >= stat_data.st_mtime) X name->found = 1; X } X set_next_block_after (current_header); X if (current_header->oldgnu_header.isextended) X skip_extended_headers (); X skip_file (current_stat.st_size); X break; X } X X case HEADER_ZERO_BLOCK: X current_block = current_header; X found_end = 1; X break; X X case HEADER_END_OF_FILE: X found_end = 1; X break; X X case HEADER_FAILURE: X set_next_block_after (current_header); X switch (previous_status) X { X case HEADER_STILL_UNREAD: X WARN ((0, 0, _("This does not look like a tar archive"))); X /* Fall through. */ X X case HEADER_SUCCESS: X case HEADER_ZERO_BLOCK: X ERROR ((0, 0, _("Skipping to next header"))); X /* Fall through. */ X X case HEADER_FAILURE: X break; X X case HEADER_END_OF_FILE: X abort (); X } X break; X } X X previous_status = status; X } X X reset_eof (); X time_to_start_writing = 1; X output_start = current_block->buffer; X X { X char *path; X X while (path = name_from_list (), path) X { X if (interactive_option && !confirm ("add", path)) X continue; X if (subcommand_option == CAT_SUBCOMMAND) X append_file (path); X else X dump_file (path, (dev_t) -1, 1); X } X } X X write_eot (); X close_archive (); X names_notfound (); } SHAR_EOF $shar_touch -am 0704230799 'tar-1.13/src/update.c' && chmod 0444 'tar-1.13/src/update.c' || $echo 'restore of' 'tar-1.13/src/update.c' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/update.c:' 'MD5 check failed' 8ea28b6a99a9456be730dd7a989d53e7 tar-1.13/src/update.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/update.c'`" test 5762 -eq "$shar_count" || $echo 'tar-1.13/src/update.c:' 'original size' '5762,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/arith.h ============== if test -f 'tar-1.13/src/arith.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/arith.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/arith.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/arith.h' && /* Simple arithmetic for numbers greater than a unsigned long, for GNU tar. X Copyright (C) 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Also, see comments at beginning of arith.c. */ X #define BITS_PER_BYTE 8 /* number of bits in each sizeof unit */ #define BITS_PER_TARLONG 42 /* wanted number of bits in each tarlong */ X /* In all cases, tarlong is the proper type for a big number. X X For simulated arithmetic, SUPERDIGIT is the base, TARLONG_FORMAT is the X format to print a single super-digit filled with zeroes to the left, and X BITS_PER_SUPERDIGIT is the smallest number of bits required to fully X represent each super-digit. LONGS_PER_TARLONG says how many longs are X required for a full tarlong, and SIZEOF_TARLONG is the size of a tarlong X in bytes. X X For straight compiler arithmetic, SUPERDIGIT is zero and TARLONG_FORMAT X is the format to directly print a tarlong (without zero-filling). X X The values of SIZEOF_LONG_LONG and SIZEOF_UNSIGNED_LONG, below, are X obtained through the configuration process. */ X #if BITS_PER_BYTE * SIZEOF_UNSIGNED_LONG >= BITS_PER_TARLONG # define SUPERDIGIT 0 # define TARLONG_FORMAT "%lu" typedef unsigned long tarlong; #else # if BITS_PER_BYTE * SIZEOF_LONG_LONG >= BITS_PER_TARLONG + 1 # define SUPERDIGIT 0 # define TARLONG_FORMAT "%llu" typedef unsigned long long tarlong; # else # if BITS_PER_BYTE * SIZEOF_UNSIGNED_LONG >= 64 # define SUPERDIGIT 1000000000L # define BITS_PER_SUPERDIGIT 29 # define TARLONG_FORMAT "%09uld" # else # if BITS_PER_BYTE * SIZEOF_UNSIGNED_LONG >= 32 # define SUPERDIGIT 10000L # define BITS_PER_SUPERDIGIT 14 # define TARLONG_FORMAT "%04uld" # endif # endif # endif #endif X #if SUPERDIGIT X # define LONGS_PER_TARLONG \ X ((BITS_PER_TARLONG + BITS_PER_SUPERDIGIT - 1) / BITS_PER_SUPERDIGIT) # define SIZEOF_TARLONG (LONGS_PER_TARLONG * sizeof (unsigned long)) X /* The NEC EWS 4.2 C compiler gets confused by a pointer to a typedef that X is an array. So we wrap the array into a struct. (Pouah!) */ X struct tarlong { X unsigned long digit[LONGS_PER_TARLONG]; }; X typedef struct tarlong tarlong; X int zerop_tarlong_helper PARAMS ((unsigned long *)); int lessp_tarlong_helper PARAMS ((unsigned long *, unsigned long *)); void clear_tarlong_helper PARAMS ((unsigned long *)); void add_to_tarlong_helper PARAMS ((unsigned long *, unsigned long)); void mult_tarlong_helper PARAMS ((unsigned long *, unsigned long)); void print_tarlong_helper PARAMS ((unsigned long *, FILE *)); X # define zerop_tarlong(Accumulator) \ X zerop_tarlong_helper (&(Accumulator).digit[0]) X # define lessp_tarlong(First, Second) \ X lessp_tarlong_helper (&(First).digit[0], &(Second).digit[0]) X # define clear_tarlong(Accumulator) \ X clear_tarlong_helper (&(Accumulator).digit[0]) X # define add_to_tarlong(Accumulator, Value) \ X add_to_tarlong_helper (&(Accumulator).digit[0], (unsigned long) (Value)) X # define mult_tarlong(Accumulator, Value) \ X mult_tarlong_helper (&(Accumulator).digit[0], (unsigned long) (Value)) X # define print_tarlong(Accumulator, File) \ X print_tarlong_helper (&(Accumulator).digit[0], (File)) X #else /* not SUPERDIGIT */ X # define zerop_tarlong(Accumulator) \ X ((Accumulator) == 0) X # define lessp_tarlong(First, Second) \ X ((First) < (Second)) X # define clear_tarlong(Accumulator) \ X ((Accumulator) = 0) X # define add_to_tarlong(Accumulator, Value) \ X ((Accumulator) += (Value)) X # define mult_tarlong(Accumulator, Value) \ X ((Accumulator) *= (Value)) X # define print_tarlong(Accumulator, File) \ X (fprintf ((File), TARLONG_FORMAT, (Accumulator))) X #endif /* not SUPERDIGIT */ SHAR_EOF $shar_touch -am 1030165897 'tar-1.13/src/arith.h' && chmod 0444 'tar-1.13/src/arith.h' || $echo 'restore of' 'tar-1.13/src/arith.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/arith.h:' 'MD5 check failed' 8b42342c3d6b84ae29dcf1114781b1a6 tar-1.13/src/arith.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/arith.h'`" test 4330 -eq "$shar_count" || $echo 'tar-1.13/src/arith.h:' 'original size' '4330,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/common.h ============== if test -f 'tar-1.13/src/common.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/common.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/common.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/common.h' && /* Common declarations for the tar program. X Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* Declare the GNU tar archive format. */ #include "tar.h" X /* The checksum field is filled with this while the checksum is computed. */ #define CHKBLANKS " " /* 8 blanks, no null */ X /* Some constants from POSIX are given names. */ #define NAME_FIELD_SIZE 100 #define PREFIX_FIELD_SIZE 155 #define UNAME_FIELD_SIZE 32 #define GNAME_FIELD_SIZE 32 X /* Some various global definitions. */ X /* Name of file to use for interacting with user. */ #if MSDOS # define TTY_NAME "con" #else # define TTY_NAME "/dev/tty" #endif X /* GLOBAL is defined to empty in `tar.c' only, and left alone in other `*.c' X modules. Here, we merely set it to "extern" if it is not already set. X GNU tar does depend on the system loader to preset all GLOBAL variables to X neutral (or zero) values, explicit initialisation is usually not done. */ #ifndef GLOBAL # define GLOBAL extern #endif X /* Exit status for GNU tar. Let's try to keep this list as simple as X possible. -d option strongly invites a status different for unequal X comparison and other errors. */ GLOBAL int exit_status; X #define TAREXIT_SUCCESS 0 #define TAREXIT_DIFFERS 1 #define TAREXIT_FAILURE 2 X /* Both WARN and ERROR write a message on stderr and continue processing, X however ERROR manages so tar will exit unsuccessfully. FATAL_ERROR X writes a message on stderr and aborts immediately, with another message X line telling so. USAGE_ERROR works like FATAL_ERROR except that the X other message line suggests trying --help. All four macros accept a X single argument of the form ((0, errno, _("FORMAT"), Args...)). `errno' X is `0' when the error is not being detected by the system. */ X #define WARN(Args) \ X error Args #define ERROR(Args) \ X (error Args, exit_status = TAREXIT_FAILURE) #define FATAL_ERROR(Args) \ X (error Args, error (TAREXIT_FAILURE, 0, \ X _("Error is not recoverable: exiting now")), 0) #define USAGE_ERROR(Args) \ X (error Args, usage (TAREXIT_FAILURE), 0) X /* Information gleaned from the command line. */ X #include "arith.h" #include "backupfile.h" #include "basename.h" #include "exclude.h" #include "modechange.h" #include "safe-read.h" X /* Name of this program. */ GLOBAL const char *program_name; X /* Main command option. */ X enum subcommand { X UNKNOWN_SUBCOMMAND, /* none of the following */ X APPEND_SUBCOMMAND, /* -r */ X CAT_SUBCOMMAND, /* -A */ X CREATE_SUBCOMMAND, /* -c */ X DELETE_SUBCOMMAND, /* -D */ X DIFF_SUBCOMMAND, /* -d */ X EXTRACT_SUBCOMMAND, /* -x */ X LIST_SUBCOMMAND, /* -t */ X UPDATE_SUBCOMMAND /* -u */ }; X GLOBAL enum subcommand subcommand_option; X /* Selected format for output archive. */ GLOBAL enum archive_format archive_format; X /* Either NL or NUL, as decided by the --null option. */ GLOBAL char filename_terminator; X /* Size of each record, once in blocks, once in bytes. Those two variables X are always related, the second being BLOCKSIZE times the first. They do X not have _option in their name, even if their values is derived from X option decoding, as these are especially important in tar. */ GLOBAL int blocking_factor; GLOBAL size_t record_size; X /* Boolean value. */ GLOBAL int absolute_names_option; X /* This variable tells how to interpret newer_mtime_option, below. If zero, X files get archived if their mtime is not less than newer_mtime_option. X If nonzero, files get archived if *either* their ctime or mtime is not less X than newer_mtime_option. */ GLOBAL int after_date_option; X /* Boolean value. */ GLOBAL int atime_preserve_option; X /* Boolean value. */ GLOBAL int backup_option; X /* Type of backups being made. */ GLOBAL enum backup_type backup_type; X /* Boolean value. */ GLOBAL int block_number_option; X /* Boolean value. */ GLOBAL int checkpoint_option; X /* Specified name of compression program, or "gzip" as implied by -z. */ GLOBAL const char *use_compress_program_option; X /* Boolean value. */ GLOBAL int dereference_option; X /* Patterns that match file names to be excluded. */ GLOBAL struct exclude *excluded; X /* Specified file containing names to work on. */ GLOBAL const char *files_from_option; X /* Boolean value. */ GLOBAL int force_local_option; X /* Specified value to be put into tar file in place of stat () results, or X just -1 if such an override should not take place. */ GLOBAL gid_t group_option; X /* Boolean value. */ GLOBAL int ignore_failed_read_option; X /* Boolean value. */ GLOBAL int ignore_zeros_option; X /* Boolean value. */ GLOBAL int incremental_option; X /* Specified name of script to run at end of each tape change. */ GLOBAL const char *info_script_option; X /* Boolean value. */ GLOBAL int interactive_option; X /* Boolean value. */ GLOBAL int keep_old_files_option; X /* Specified file name for incremental list. */ GLOBAL const char *listed_incremental_option; X /* Specified mode change string. */ GLOBAL struct mode_change *mode_option; X /* Boolean value. */ GLOBAL int multi_volume_option; X /* The same variable hold the time, whether mtime or ctime. Just fake a X non-existing option, for making the code clearer, elsewhere. */ #define newer_ctime_option newer_mtime_option X /* Specified threshold date and time. Files having a more recent timestamp X get archived (also see after_date_option above). If left to zero, it may X be interpreted as very low threshold, just usable as such. */ GLOBAL time_t newer_mtime_option; X /* Boolean value. */ GLOBAL int no_recurse_option; X /* Boolean value. */ GLOBAL int numeric_owner_option; X /* Boolean value. */ GLOBAL int one_file_system_option; X /* Specified value to be put into tar file in place of stat () results, or X just -1 if such an override should not take place. */ GLOBAL uid_t owner_option; X /* Boolean value. */ GLOBAL int recursive_unlink_option; X /* Boolean value. */ GLOBAL int read_full_records_option; X /* Boolean value. */ GLOBAL int remove_files_option; X /* Specified remote shell command. */ GLOBAL const char *rsh_command_option; X /* Boolean value. */ GLOBAL int same_order_option; X /* Boolean value. */ GLOBAL int same_owner_option; X /* Boolean value. */ GLOBAL int same_permissions_option; X /* Boolean value. */ GLOBAL int show_omitted_dirs_option; X /* Boolean value. */ GLOBAL int sparse_option; X /* Boolean value. */ GLOBAL int starting_file_option; X /* Specified maximum byte length of each tape volume (multiple of 1024). */ GLOBAL tarlong tape_length_option; X /* Boolean value. */ GLOBAL int to_stdout_option; X /* Boolean value. */ GLOBAL int totals_option; X /* Boolean value. */ GLOBAL int touch_option; X /* Boolean value. */ GLOBAL int unlink_first_option; X /* Count how many times the option has been set, multiple setting yields X more verbose behavior. Value 0 means no verbosity, 1 means file name X only, 2 means file name and all attributes. More than 2 is just like 2. */ GLOBAL int verbose_option; X /* Boolean value. */ GLOBAL int verify_option; X /* Specified name of file containing the volume number. */ GLOBAL const char *volno_file_option; X /* Specified value or pattern. */ GLOBAL const char *volume_label_option; X /* Other global variables. */ X /* File descriptor for archive file. */ GLOBAL int archive; X /* Nonzero when outputting to /dev/null. */ GLOBAL int dev_null_output; X /* Name of file for the current archive entry. */ GLOBAL char *current_file_name; X /* Name of link for the current archive entry. */ GLOBAL char *current_link_name; X /* List of tape drive names, number of such tape drives, allocated number, X and current cursor in list. */ GLOBAL const char **archive_name_array; GLOBAL int archive_names; GLOBAL int allocated_archive_names; GLOBAL const char **archive_name_cursor; X /* Structure for keeping track of filenames and lists thereof. */ struct name X { X struct name *next; X size_t length; /* cached strlen(name) */ X char found; /* a matching file has been found */ X char firstch; /* first char is literally matched */ X char regexp; /* this name is a regexp, not literal */ X char *change_dir; /* set with the -C option */ X const char *dir_contents; /* for incremental_option */ X char fake; /* dummy entry */ X char name[1]; X }; GLOBAL struct name *namelist; /* points to first name in list */ GLOBAL struct name *namelast; /* points to last name in list */ X /* Pointer to the start of the scratch space. */ struct sp_array X { X off_t offset; X size_t numbytes; X }; GLOBAL struct sp_array *sparsearray; X /* Initial size of the sparsearray. */ GLOBAL int sp_array_size; X /* Declarations for each module. */ X /* FIXME: compare.c should not directly handle the following variable, X instead, this should be done in buffer.c only. */ X enum access_mode { X ACCESS_READ, X ACCESS_WRITE, X ACCESS_UPDATE }; extern enum access_mode access_mode; X /* Module buffer.c. */ X extern FILE *stdlis; extern char *save_name; extern off_t save_sizeleft; extern off_t save_totsize; extern int write_archive_to_stdout; X size_t available_space_after PARAMS ((union block *)); off_t current_block_ordinal PARAMS ((void)); void close_archive PARAMS ((void)); void closeout_volume_number PARAMS ((void)); union block *find_next_block PARAMS ((void)); void flush_read PARAMS ((void)); void flush_write PARAMS ((void)); void flush_archive PARAMS ((void)); void init_total_written PARAMS ((void)); void init_volume_number PARAMS ((void)); void open_archive PARAMS ((enum access_mode)); void print_total_written PARAMS ((void)); void reset_eof PARAMS ((void)); void set_next_block_after PARAMS ((union block *)); X /* Module create.c. */ X void create_archive PARAMS ((void)); void dump_file PARAMS ((char *, dev_t, int)); void finish_header PARAMS ((union block *)); void write_eot PARAMS ((void)); X #define GID_TO_OCT(val, where) gid_to_oct (val, where, sizeof (where)) #define MAJOR_TO_OCT(val, where) major_to_oct (val, where, sizeof (where)) #define MINOR_TO_OCT(val, where) minor_to_oct (val, where, sizeof (where)) #define MODE_TO_OCT(val, where) mode_to_oct (val, where, sizeof (where)) #define OFF_TO_OCT(val, where) off_to_oct (val, where, sizeof (where)) #define SIZE_TO_OCT(val, where) size_to_oct (val, where, sizeof (where)) #define TIME_TO_OCT(val, where) time_to_oct (val, where, sizeof (where)) #define UID_TO_OCT(val, where) uid_to_oct (val, where, sizeof (where)) #define UINTMAX_TO_OCT(val, where) uintmax_to_oct (val, where, sizeof (where)) X void gid_to_oct PARAMS ((gid_t, char *, size_t)); void major_to_oct PARAMS ((major_t, char *, size_t)); void minor_to_oct PARAMS ((minor_t, char *, size_t)); void mode_to_oct PARAMS ((mode_t, char *, size_t)); void off_to_oct PARAMS ((off_t, char *, size_t)); void size_to_oct PARAMS ((size_t, char *, size_t)); void time_to_oct PARAMS ((time_t, char *, size_t)); void uid_to_oct PARAMS ((uid_t, char *, size_t)); void uintmax_to_oct PARAMS ((uintmax_t, char *, size_t)); X /* Module diffarch.c. */ X extern int now_verifying; X void diff_archive PARAMS ((void)); void diff_init PARAMS ((void)); void verify_volume PARAMS ((void)); X /* Module extract.c. */ X void extr_init PARAMS ((void)); void extract_archive PARAMS ((void)); void apply_delayed_set_stat PARAMS ((void)); X /* Module delete.c. */ X void delete_archive_members PARAMS ((void)); X /* Module incremen.c. */ X void collect_and_sort_names PARAMS ((void)); char *get_directory_contents PARAMS ((char *, dev_t)); void write_dir_file PARAMS ((void)); void gnu_restore PARAMS ((int)); void write_directory_file PARAMS ((void)); X /* Module list.c. */ X enum read_header { X HEADER_STILL_UNREAD, /* for when read_header has not been called */ X HEADER_SUCCESS, /* header successfully read and checksummed */ X HEADER_ZERO_BLOCK, /* zero block where header expected */ X HEADER_END_OF_FILE, /* true end of file while header expected */ X HEADER_FAILURE /* ill-formed header, or bad checksum */ }; X extern union block *current_header; extern struct stat current_stat; extern enum archive_format current_format; X void decode_header PARAMS ((union block *, struct stat *, X enum archive_format *, int)); #define STRINGIFY_BIGINT(i, b) \ X stringify_uintmax_t_backwards ((uintmax_t) (i), (b) + sizeof (b)) char *stringify_uintmax_t_backwards PARAMS ((uintmax_t, char *)); X #define GID_FROM_OCT(where) gid_from_oct (where, sizeof (where)) #define MAJOR_FROM_OCT(where) major_from_oct (where, sizeof (where)) #define MINOR_FROM_OCT(where) minor_from_oct (where, sizeof (where)) #define MODE_FROM_OCT(where) mode_from_oct (where, sizeof (where)) #define OFF_FROM_OCT(where) off_from_oct (where, sizeof (where)) #define SIZE_FROM_OCT(where) size_from_oct (where, sizeof (where)) #define TIME_FROM_OCT(where) time_from_oct (where, sizeof (where)) #define UID_FROM_OCT(where) uid_from_oct (where, sizeof (where)) #define UINTMAX_FROM_OCT(where) uintmax_from_oct (where, sizeof (where)) X gid_t gid_from_oct PARAMS ((const char *, size_t)); major_t major_from_oct PARAMS ((const char *, size_t)); minor_t minor_from_oct PARAMS ((const char *, size_t)); mode_t mode_from_oct PARAMS ((const char *, size_t)); off_t off_from_oct PARAMS ((const char *, size_t)); size_t size_from_oct PARAMS ((const char *, size_t)); time_t time_from_oct PARAMS ((const char *, size_t)); uid_t uid_from_oct PARAMS ((const char *, size_t)); uintmax_t uintmax_from_oct PARAMS ((const char *, size_t)); X void list_archive PARAMS ((void)); void print_for_mkdir PARAMS ((char *, int, mode_t)); void print_header PARAMS ((void)); void read_and PARAMS ((void (*do_) ())); enum read_header read_header PARAMS ((void)); void skip_extended_headers PARAMS ((void)); void skip_file PARAMS ((off_t)); X /* Module mangle.c. */ X void extract_mangle PARAMS ((void)); X /* Module misc.c. */ X void assign_string PARAMS ((char **, const char *)); char *quote_copy_string PARAMS ((const char *)); int unquote_string PARAMS ((char *)); X char *merge_sort PARAMS ((char *, int, int, int (*) (char *, char *))); X int is_dot_or_dotdot PARAMS ((const char *)); int remove_any_file PARAMS ((const char *, int)); int maybe_backup_file PARAMS ((const char *, int)); void undo_last_backup PARAMS ((void)); X /* Module names.c. */ X void gid_to_gname PARAMS ((gid_t, char gname[GNAME_FIELD_SIZE])); int gname_to_gid PARAMS ((char gname[GNAME_FIELD_SIZE], gid_t *)); void uid_to_uname PARAMS ((uid_t, char uname[UNAME_FIELD_SIZE])); int uname_to_uid PARAMS ((char uname[UNAME_FIELD_SIZE], uid_t *)); X void init_names PARAMS ((void)); void name_add PARAMS ((const char *)); void name_init PARAMS ((int, char *const *)); void name_term PARAMS ((void)); char *name_next PARAMS ((int change_)); void name_close PARAMS ((void)); void name_gather PARAMS ((void)); void addname PARAMS ((const char *)); int name_match PARAMS ((const char *)); void names_notfound PARAMS ((void)); void name_expand PARAMS ((void)); struct name *name_scan PARAMS ((const char *)); char *name_from_list PARAMS ((void)); void blank_name_list PARAMS ((void)); char *new_name PARAMS ((const char *, const char *)); X /* Module tar.c. */ X int confirm PARAMS ((const char *, const char *)); void request_stdin PARAMS ((const char *)); X /* Module update.c. */ X extern char *output_start; X void update_archive PARAMS ((void)); SHAR_EOF $shar_touch -am 0706230799 'tar-1.13/src/common.h' && chmod 0444 'tar-1.13/src/common.h' || $echo 'restore of' 'tar-1.13/src/common.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/common.h:' 'MD5 check failed' e50823c9fb26114c78e58d1dbf71937c tar-1.13/src/common.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/common.h'`" test 16028 -eq "$shar_count" || $echo 'tar-1.13/src/common.h:' 'original size' '16028,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/rmt.h ============== if test -f 'tar-1.13/src/rmt.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/rmt.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/rmt.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/rmt.h' && /* Definitions for communicating with a remote tape drive. X Copyright (C) 1988, 1992, 1996, 1997 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X extern char *rmt_path__; X int rmt_open__ PARAMS ((const char *, int, int, const char *)); int rmt_close__ PARAMS ((int)); ssize_t rmt_read__ PARAMS ((int, char *, size_t)); ssize_t rmt_write__ PARAMS ((int, char *, size_t)); off_t rmt_lseek__ PARAMS ((int, off_t, int)); int rmt_ioctl__ PARAMS ((int, int, char *)); X /* A filename is remote if it contains a colon not preceeded by a slash, X to take care of `/:/' which is a shorthand for `/...//fs' X on machines running OSF's Distributing Computing Environment (DCE) and X Distributed File System (DFS). However, when --force-local, a X filename is never remote. */ X #define _remdev(Path) \ X (!force_local_option && (rmt_path__ = strchr (Path, ':')) \ X && rmt_path__ > (Path) && rmt_path__[-1] != '/') X #define _isrmt(Fd) \ X ((Fd) >= __REM_BIAS) X #define __REM_BIAS 128 X #ifndef O_CREAT # define O_CREAT 01000 #endif X #define rmtopen(Path, Oflag, Mode, Command) \ X (_remdev (Path) ? rmt_open__ (Path, Oflag, __REM_BIAS, Command) \ X : open (Path, Oflag, Mode)) X #define rmtaccess(Path, Amode) \ X (_remdev (Path) ? 0 : access (Path, Amode)) X #define rmtstat(Path, Buffer) \ X (_remdev (Path) ? (errno = EOPNOTSUPP), -1 : stat (Path, Buffer)) X /* FIXME: errno should be read-only */ X #define rmtcreat(Path, Mode, Command) \ X (_remdev (Path) \ X ? rmt_open__ (Path, 1 | O_CREAT, __REM_BIAS, Command) \ X : creat (Path, Mode)) X #define rmtlstat(Path, Buffer) \ X (_remdev (Path) ? (errno = EOPNOTSUPP), -1 : lstat (Path, Buffer)) X /* FIXME: errno should be read-only */ X #define rmtread(Fd, Buffer, Length) \ X (_isrmt (Fd) ? rmt_read__ (Fd - __REM_BIAS, Buffer, Length) \ X : safe_read (Fd, Buffer, Length)) X #define rmtwrite(Fd, Buffer, Length) \ X (_isrmt (Fd) ? rmt_write__ (Fd - __REM_BIAS, Buffer, Length) \ X : full_write (Fd, Buffer, Length)) X #define rmtlseek(Fd, Offset, Where) \ X (_isrmt (Fd) ? rmt_lseek__ (Fd - __REM_BIAS, Offset, Where) \ X : lseek (Fd, Offset, Where)) X #define rmtclose(Fd) \ X (_isrmt (Fd) ? rmt_close__ (Fd - __REM_BIAS) : close (Fd)) X #define rmtioctl(Fd, Request, Argument) \ X (_isrmt (Fd) ? rmt_ioctl__ (Fd - __REM_BIAS, Request, Argument) \ X : ioctl (Fd, Request, Argument)) X #define rmtdup(Fd) \ X (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : dup (Fd)) X /* FIXME: errno should be read-only */ X #define rmtfstat(Fd, Buffer) \ X (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : fstat (Fd, Buffer)) X /* FIXME: errno should be read-only */ X #define rmtfcntl(Fd, Command, Argument) \ X (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : fcntl (Fd, Command, Argument)) X /* FIXME: errno should be read-only */ X #define rmtisatty(Fd) \ X (_isrmt (Fd) ? 0 : isatty (Fd)) SHAR_EOF $shar_touch -am 0704230799 'tar-1.13/src/rmt.h' && chmod 0444 'tar-1.13/src/rmt.h' || $echo 'restore of' 'tar-1.13/src/rmt.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/rmt.h:' 'MD5 check failed' bb339e727a4403ed0c5033058dbb11c7 tar-1.13/src/rmt.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/rmt.h'`" test 3513 -eq "$shar_count" || $echo 'tar-1.13/src/rmt.h:' 'original size' '3513,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/system.h ============== if test -f 'tar-1.13/src/system.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/system.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/system.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/system.h' && /* System dependent definitions for GNU tar. X Copyright 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2, or (at your option) X any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software Foundation, X Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X #if HAVE_CONFIG_H # include #endif X /* Declare alloca. AIX requires this to be the first thing in the file. */ X #if __GNUC__ # define alloca __builtin_alloca #else # if HAVE_ALLOCA_H # include # else # ifdef _AIX X #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif X #include X /* Declare a generic pointer type. */ #if defined (__STDC__) || defined(__TURBOC__) # define voidstar void * #else # define voidstar char * #endif X #include X /* CTYPE_DOMAIN (C) is nonzero if the unsigned char C can safely be given X as an argument to macros like `isspace'. */ #if STDC_HEADERS # define CTYPE_DOMAIN(c) 1 #else # define CTYPE_DOMAIN(c) ((unsigned) (c) <= 0177) #endif X #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) #define ISODIGIT(c) ((unsigned) (c) - '0' <= 7) #define ISPRINT(c) (CTYPE_DOMAIN (c) && isprint (c)) #define ISSPACE(c) (CTYPE_DOMAIN (c) && isspace (c)) X /* Declare string and memory handling routines. Take care that an ANSI X string.h and pre-ANSI memory.h might conflict, and that memory.h and X strings.h conflict on some systems. */ X #if STDC_HEADERS || HAVE_STRING_H # include # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif #else # include # ifndef strchr # define strchr index # endif # ifndef strrchr # define strrchr rindex # endif # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif # ifndef memcmp # define memcmp(Src1, Src2, Num) bcmp (Src1, Src2, Num) # endif #endif X /* Declare errno. */ X #include #ifndef errno extern int errno; #endif X /* Declare open parameters. */ X #if HAVE_FCNTL_H # include #else # include #endif X /* Pick only one of the next three: */ #ifndef O_RDONLY # define O_RDONLY 0 /* only allow read */ #endif #ifndef O_WRONLY # define O_WRONLY 1 /* only allow write */ #endif #ifndef O_RDWR # define O_RDWR 2 /* both are allowed */ #endif X /* The rest can be OR-ed in to the above: */ #ifndef O_NDELAY # define O_NDELAY 4 /* don't block on opening devices */ #endif #ifndef O_CREAT # define O_CREAT 8 /* create file if needed */ #endif #ifndef O_EXCL # define O_EXCL 16 /* file cannot already exist */ #endif #ifndef O_TRUNC # define O_TRUNC 32 /* truncate file on open */ #endif #ifndef O_APPEND # define O_APPEND 64 /* always write at end of file */ #endif X /* MS-DOG forever, with my love! */ #ifndef O_BINARY # define O_BINARY 0 #endif X /* Emulate System V 3-argument open call */ #if EMUL_OPEN3 # define open open3 #endif X /* Declare file status routines and bits. */ X #include X #ifndef S_ISLNK # define lstat stat #endif X #if STAT_MACROS_BROKEN # undef S_ISBLK # undef S_ISCHR # undef S_ISDIR # undef S_ISFIFO # undef S_ISLNK # undef S_ISMPB # undef S_ISMPC # undef S_ISNWK # undef S_ISREG # undef S_ISSOCK #endif X /* On MSDOS, there are missing things from . */ #if MSDOS # define S_ISUID 0 # define S_ISGID 0 # define S_ISVTX 0 #endif X #if !defined(S_ISBLK) && defined(S_IFBLK) # define S_ISBLK(Mode) (((Mode) & S_IFMT) == S_IFBLK) #endif #if !defined(S_ISCHR) && defined(S_IFCHR) # define S_ISCHR(Mode) (((Mode) & S_IFMT) == S_IFCHR) #endif #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) #endif #if !defined(S_ISREG) && defined(S_IFREG) # define S_ISREG(Mode) (((Mode) & S_IFMT) == S_IFREG) #endif #if !defined(S_ISFIFO) && defined(S_IFIFO) # define S_ISFIFO(Mode) (((Mode) & S_IFMT) == S_IFIFO) #endif #if !defined(S_ISLNK) && defined(S_IFLNK) # define S_ISLNK(Mode) (((Mode) & S_IFMT) == S_IFLNK) #endif #if !defined(S_ISSOCK) && defined(S_IFSOCK) # define S_ISSOCK(Mode) (((Mode) & S_IFMT) == S_IFSOCK) #endif #if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */ # define S_ISMPB(Mode) (((Mode) & S_IFMT) == S_IFMPB) # define S_ISMPC(Mode) (((Mode) & S_IFMT) == S_IFMPC) #endif #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */ # define S_ISNWK(Mode) (((Mode) & S_IFMT) == S_IFNWK) #endif X #if !HAVE_MKFIFO # define mkfifo(Path, Mode) (mknod (Path, (Mode) | S_IFIFO, 0)) #endif X #if !defined(S_ISCTG) && defined(S_IFCTG) /* contiguous file */ # define S_ISCTG(Mode) (((Mode) & S_IFMT) == S_IFCTG) #endif #ifndef S_ISUID # define S_ISUID 0004000 #endif #ifndef S_ISGID # define S_ISGID 0002000 #endif #ifndef S_ISVTX # define S_ISVTX 0001000 #endif #ifndef S_IRUSR # define S_IRUSR 0000400 #endif #ifndef S_IWUSR # define S_IWUSR 0000200 #endif #ifndef S_IXUSR # define S_IXUSR 0000100 #endif #ifndef S_IRGRP # define S_IRGRP 0000040 #endif #ifndef S_IWGRP # define S_IWGRP 0000020 #endif #ifndef S_IXGRP # define S_IXGRP 0000010 #endif #ifndef S_IROTH # define S_IROTH 0000004 #endif #ifndef S_IWOTH # define S_IWOTH 0000002 #endif #ifndef S_IXOTH # define S_IXOTH 0000001 #endif X #define MODE_WXUSR (S_IWUSR | S_IXUSR) #define MODE_R (S_IRUSR | S_IRGRP | S_IROTH) #define MODE_RW (S_IWUSR | S_IWGRP | S_IWOTH | MODE_R) #define MODE_RWX (S_IXUSR | S_IXGRP | S_IXOTH | MODE_RW) #define MODE_ALL (S_ISUID | S_ISGID | S_ISVTX | MODE_RWX) X #ifndef _POSIX_SOURCE # include #endif X /* Include before any preprocessor test of _POSIX_VERSION. */ #if HAVE_UNISTD_H # include #endif X #ifndef SEEK_SET # define SEEK_SET 0 #endif #ifndef SEEK_CUR # define SEEK_CUR 1 #endif #ifndef SEEK_END # define SEEK_END 2 #endif X #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif #ifndef STDOUT_FILENO # define STDOUT_FILENO 1 #endif #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif X /* Declare make device, major and minor. Since major is a function on X SVR4, we have to resort to GOT_MAJOR instead of just testing if X major is #define'd. */ X #if MAJOR_IN_MKDEV # include # define GOT_MAJOR #endif X #if MAJOR_IN_SYSMACROS # include # define GOT_MAJOR #endif X /* Some defines the macros. */ #ifdef major # define GOT_MAJOR #endif X #ifndef GOT_MAJOR # if MSDOS # define major(Device) (Device) # define minor(Device) (Device) # define makedev(Major, Minor) (((Major) << 8) | (Minor)) # define GOT_MAJOR # endif #endif X /* For HP-UX before HP-UX 8, major/minor are not in . */ #ifndef GOT_MAJOR # if defined(hpux) || defined(__hpux__) || defined(__hpux) # include # define GOT_MAJOR # endif #endif X #ifndef GOT_MAJOR # define major(Device) (((Device) >> 8) & 0xff) # define minor(Device) ((Device) & 0xff) # define makedev(Major, Minor) (((Major) << 8) | (Minor)) #endif X #undef GOT_MAJOR X /* Declare directory reading routines and structures. */ X #if __TURBOC__ # include "msd_dir.h" # define NAMLEN(dirent) ((dirent)->d_namlen) #else # if HAVE_DIRENT_H # include # define NAMLEN(dirent) (strlen((dirent)->d_name)) # else # define dirent direct # define NAMLEN(dirent) ((dirent)->d_namlen) # if HAVE_SYS_NDIR_H # include # endif # if HAVE_SYS_DIR_H # include # endif # if HAVE_NDIR_H # include # endif # endif #endif X /* Declare wait status. */ X #if HAVE_SYS_WAIT_H # include #endif X #if HAVE_UNION_WAIT # define WAIT_T union wait # ifndef WTERMSIG # define WTERMSIG(Status) ((Status).w_termsig) # endif # ifndef WCOREDUMP # define WCOREDUMP(Status) ((Status).w_coredump) # endif # ifndef WEXITSTATUS # define WEXITSTATUS(Status) ((Status).w_retcode) # endif #else # define WAIT_T int # ifndef WTERMSIG # define WTERMSIG(Status) ((Status) & 0x7f) # endif # ifndef WCOREDUMP # define WCOREDUMP(Status) ((Status) & 0x80) # endif # ifndef WEXITSTATUS # define WEXITSTATUS(Status) (((Status) >> 8) & 0xff) # endif #endif X #ifndef WIFSTOPPED # define WIFSTOPPED(Status) (WTERMSIG(Status) == 0x7f) #endif #ifndef WIFSIGNALED # define WIFSIGNALED(Status) (WTERMSIG(Status) != 0) #endif #ifndef WIFEXITED # define WIFEXITED(Status) (WTERMSIG(Status) == 0) #endif X /* FIXME: It is wrong to use BLOCKSIZE for buffers when the logical block X size is greater than 512 bytes; so ST_BLKSIZE code below, in preparation X for some cleanup in this area, later. */ X /* Get or fake the disk device blocksize. Usually defined by sys/param.h X (if at all). */ X #if !defined(DEV_BSIZE) && defined(BSIZE) # define DEV_BSIZE BSIZE #endif #if !defined(DEV_BSIZE) && defined(BBSIZE) /* SGI */ # define DEV_BSIZE BBSIZE #endif #ifndef DEV_BSIZE # define DEV_BSIZE 4096 #endif X /* Extract or fake data from a `struct stat'. ST_BLKSIZE gives the X optimal I/O blocksize for the file, in bytes. Some systems, like X Sequents, return st_blksize of 0 on pipes. */ X #if !HAVE_ST_BLKSIZE # define ST_BLKSIZE(Statbuf) DEV_BSIZE #else # define ST_BLKSIZE(Statbuf) \ X ((Statbuf).st_blksize > 0 ? (Statbuf).st_blksize : DEV_BSIZE) #endif X /* Extract or fake data from a `struct stat'. ST_NBLOCKS gives the X number of ST_NBLOCKSIZE-byte blocks in the file (including indirect blocks). X HP-UX counts st_blocks in 1024-byte units, X this loses when mixing HP-UX and BSD filesystems with NFS. AIX PS/2 X counts st_blocks in 4K units. */ X #if !HAVE_ST_BLOCKS # if defined(_POSIX_SOURCE) || !defined(BSIZE) # define ST_NBLOCKS(Statbuf) ((Statbuf).st_size / ST_NBLOCKSIZE + ((Statbuf).st_size % ST_NBLOCKSIZE != 0)) # else X off_t st_blocks (); # define ST_NBLOCKS(Statbuf) (st_blocks ((Statbuf).st_size)) # endif #else # define ST_NBLOCKS(Statbuf) ((Statbuf).st_blocks) # if defined(hpux) || defined(__hpux__) || defined(__hpux) # define ST_NBLOCKSIZE 1024 # else # if defined(_AIX) && defined(_I386) # define ST_NBLOCKSIZE (4 * 1024) # endif # endif #endif X #ifndef ST_NBLOCKSIZE #define ST_NBLOCKSIZE 512 #endif X /* This is a real challenge to properly get MTIO* symbols :-(. ISC uses X . SCO and BSDi uses ; BSDi also requires X and for defining tp_dev and tpr_t. It X seems that the rest use , which itself requires other files, X depending on systems. Pyramid defines _IOW in , for example. */ X #if HAVE_SYS_GENTAPE_H # include #else # if HAVE_SYS_TAPE_H # if HAVE_SYS_DEVICE_H # include # endif # if HAVE_SYS_BUF_H # include # endif # if HAVE_SYS_TPRINTF_H # include # endif # include # else # if HAVE_SYS_MTIO_H # include # if HAVE_SGTTY_H # include # endif # if HAVE_SYS_IO_TRIOCTL_H # include # endif # include # endif # endif #endif X /* Declare standard functions. */ X #if STDC_HEADERS # include #else voidstar malloc (); voidstar realloc (); # if HAVE_GETCWD char *getcwd (); # endif char *getenv (); #endif X #include X #ifndef _POSIX_VERSION # if MSDOS # include # else off_t lseek (); # endif #endif X #include X #if WITH_DMALLOC # undef HAVE_VALLOC # define DMALLOC_FUNC_CHECK # include #endif X #if HAVE_LIMITS_H # include #endif X #ifndef CHAR_BIT # define CHAR_BIT 8 #endif X #ifndef CHAR_MAX # define CHAR_MAX TYPE_MAXIMUM (char) #endif X #ifndef LONG_MAX # define LONG_MAX TYPE_MAXIMUM (long) #endif X #if HAVE_INTTYPES_H # include #endif X /* These macros work even on ones'-complement hosts (!). X The extra casts work around common compiler bugs. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) #define TYPE_MINIMUM(t) (TYPE_SIGNED (t) \ X ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \ X : (t) 0) #define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t)) X /* Bound on length of the string representing an integer value of type t. X Subtract one for the sign bit if t is signed; X 302 / 1000 is log10 (2) rounded up; X add one for integer division truncation; X add one more for a minus sign if t is signed. */ #define INT_STRLEN_BOUND(t) \ X ((sizeof (t) * CHAR_BIT - TYPE_SIGNED (t)) * 302 / 1000 \ X + 1 + TYPE_SIGNED (t)) X #define UINTMAX_STRSIZE_BOUND (INT_STRLEN_BOUND (uintmax_t) + 1) X /* Prototypes for external functions. */ X #ifndef PARAMS # if PROTOTYPES # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif X #if HAVE_LOCALE_H # include #endif #if !HAVE_SETLOCALE # define setlocale(Category, Locale) /* empty */ #endif X #if ENABLE_NLS # include # define _(Text) gettext (Text) #else # undef bindtextdomain # define bindtextdomain(Domain, Directory) /* empty */ # undef textdomain # define textdomain(Domain) /* empty */ # define _(Text) Text #endif #define N_(Text) Text X /* Library modules. */ X #include "error.h" X #if !HAVE_STRSTR char *strstr PARAMS ((const char *, const char *)); #endif X #if HAVE_VALLOC # ifndef valloc voidstar valloc PARAMS ((size_t)); # endif #else # define valloc(Size) malloc (Size) #endif X voidstar xmalloc PARAMS ((size_t)); voidstar xrealloc PARAMS ((voidstar, size_t)); char *xstrdup PARAMS ((const char *)); SHAR_EOF $shar_touch -am 0704230799 'tar-1.13/src/system.h' && chmod 0444 'tar-1.13/src/system.h' || $echo 'restore of' 'tar-1.13/src/system.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/system.h:' 'MD5 check failed' e5a48c6b301e822e2f13eb751bb2c1db tar-1.13/src/system.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/system.h'`" test 13735 -eq "$shar_count" || $echo 'tar-1.13/src/system.h:' 'original size' '13735,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/src/tar.h ============== if test -f 'tar-1.13/src/tar.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/src/tar.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/src/tar.h' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/src/tar.h' && /* Format of tar archives. X Copyright (C) 1988, 92, 93, 94, 96, 97 Free Software Foundation, Inc. X X This program is free software; you can redistribute it and/or modify it X under the terms of the GNU General Public License as published by the X Free Software Foundation; either version 2, or (at your option) any later X version. X X This program is distributed in the hope that it will be useful, but X WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X Public License for more details. X X You should have received a copy of the GNU General Public License along X with this program; if not, write to the Free Software Foundation, Inc., X 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ X /* GNU tar Archive Format description. */ X /* If OLDGNU_COMPATIBILITY is not zero, tar produces archives which, by X default, are readable by older versions of GNU tar. This can be X overriden by using --posix; in this case, POSIXLY_CORRECT in environment X may be set for enforcing stricter conformance. If OLDGNU_COMPATIBILITY X is zero or undefined, tar will eventually produces archives which, by X default, POSIX compatible; then either using --posix or defining X POSIXLY_CORRECT enforces stricter conformance. X X This #define will disappear in a few years. FP, June 1995. */ #define OLDGNU_COMPATIBILITY 1 X /*---------------------------------------------. | `tar' Header Block, from POSIX 1003.1-1990. | `---------------------------------------------*/ X /* POSIX header. */ X struct posix_header { /* byte offset */ X char name[100]; /* 0 */ X char mode[8]; /* 100 */ X char uid[8]; /* 108 */ X char gid[8]; /* 116 */ X char size[12]; /* 124 */ X char mtime[12]; /* 136 */ X char chksum[8]; /* 148 */ X char typeflag; /* 156 */ X char linkname[100]; /* 157 */ X char magic[6]; /* 257 */ X char version[2]; /* 263 */ X char uname[32]; /* 265 */ X char gname[32]; /* 297 */ X char devmajor[8]; /* 329 */ X char devminor[8]; /* 337 */ X char prefix[155]; /* 345 */ X /* 500 */ }; X #define TMAGIC "ustar" /* ustar and a null */ #define TMAGLEN 6 #define TVERSION "00" /* 00 and no null */ #define TVERSLEN 2 X /* Values used in typeflag field. */ #define REGTYPE '0' /* regular file */ #define AREGTYPE '\0' /* regular file */ #define LNKTYPE '1' /* link */ #define SYMTYPE '2' /* reserved */ #define CHRTYPE '3' /* character special */ #define BLKTYPE '4' /* block special */ #define DIRTYPE '5' /* directory */ #define FIFOTYPE '6' /* FIFO special */ #define CONTTYPE '7' /* reserved */ X /* Bits used in the mode field, values in octal. */ #define TSUID 04000 /* set UID on execution */ #define TSGID 02000 /* set GID on execution */ #define TSVTX 01000 /* reserved */ X /* file permissions */ #define TUREAD 00400 /* read by owner */ #define TUWRITE 00200 /* write by owner */ #define TUEXEC 00100 /* execute/search by owner */ #define TGREAD 00040 /* read by group */ #define TGWRITE 00020 /* write by group */ #define TGEXEC 00010 /* execute/search by group */ #define TOREAD 00004 /* read by other */ #define TOWRITE 00002 /* write by other */ #define TOEXEC 00001 /* execute/search by other */ X /*-------------------------------------. | `tar' Header Block, GNU extensions. | `-------------------------------------*/ X /* In GNU tar, SYMTYPE is for to symbolic links, and CONTTYPE is for X contiguous files, so maybe disobeying the `reserved' comment in POSIX X header description. I suspect these were meant to be used this way, and X should not have really been `reserved' in the published standards. */ X /* *BEWARE* *BEWARE* *BEWARE* that the following information is still X boiling, and may change. Even if the OLDGNU format description should be X accurate, the so-called GNU format is not yet fully decided. It is X surely meant to use only extensions allowed by POSIX, but the sketch X below repeats some ugliness from the OLDGNU format, which should rather X go away. Sparse files should be saved in such a way that they do *not* X require two passes at archive creation time. Huge files get some POSIX X fields to overflow, alternate solutions have to be sought for this. */ X /* Descriptor for a single file hole. */ X struct sparse { /* byte offset */ X char offset[12]; /* 0 */ X char numbytes[12]; /* 12 */ X /* 24 */ }; X /* Sparse files are not supported in POSIX ustar format. For sparse files X with a POSIX header, a GNU extra header is provided which holds overall X sparse information and a few sparse descriptors. When an old GNU header X replaces both the POSIX header and the GNU extra header, it holds some X sparse descriptors too. Whether POSIX or not, if more sparse descriptors X are still needed, they are put into as many successive sparse headers as X necessary. The following constants tell how many sparse descriptors fit X in each kind of header able to hold them. */ X #define SPARSES_IN_EXTRA_HEADER 16 #define SPARSES_IN_OLDGNU_HEADER 4 #define SPARSES_IN_SPARSE_HEADER 21 X /* The GNU extra header contains some information GNU tar needs, but not X foreseen in POSIX header format. It is only used after a POSIX header X (and never with old GNU headers), and immediately follows this POSIX X header, when typeflag is a letter rather than a digit, so signaling a GNU X extension. */ X struct extra_header { /* byte offset */ X char atime[12]; /* 0 */ X char ctime[12]; /* 12 */ X char offset[12]; /* 24 */ X char realsize[12]; /* 36 */ X char longnames[4]; /* 48 */ X char unused_pad1[68]; /* 52 */ X struct sparse sp[SPARSES_IN_EXTRA_HEADER]; X /* 120 */ X char isextended; /* 504 */ X /* 505 */ }; X /* Extension header for sparse files, used immediately after the GNU extra X header, and used only if all sparse information cannot fit into that X extra header. There might even be many such extension headers, one after X the other, until all sparse information has been recorded. */ X struct sparse_header { /* byte offset */ X struct sparse sp[SPARSES_IN_SPARSE_HEADER]; X /* 0 */ X char isextended; /* 504 */ X /* 505 */ }; X /* The old GNU format header conflicts with POSIX format in such a way that X POSIX archives may fool old GNU tar's, and POSIX tar's might well be X fooled by old GNU tar archives. An old GNU format header uses the space X used by the prefix field in a POSIX header, and cumulates information X normally found in a GNU extra header. With an old GNU tar header, we X never see any POSIX header nor GNU extra header. Supplementary sparse X headers are allowed, however. */ X struct oldgnu_header { /* byte offset */ X char unused_pad1[345]; /* 0 */ X char atime[12]; /* 345 */ X char ctime[12]; /* 357 */ X char offset[12]; /* 369 */ X char longnames[4]; /* 381 */ X char unused_pad2; /* 385 */ X struct sparse sp[SPARSES_IN_OLDGNU_HEADER]; X /* 386 */ X char isextended; /* 482 */ X char realsize[12]; /* 483 */ X /* 495 */ }; X /* OLDGNU_MAGIC uses both magic and version fields, which are contiguous. X Found in an archive, it indicates an old GNU header format, which will be X hopefully become obsolescent. With OLDGNU_MAGIC, uname and gname are X valid, though the header is not truly POSIX conforming. */ #define OLDGNU_MAGIC "ustar " /* 7 chars and a null */ X /* The standards committee allows only capital A through capital Z for X user-defined expansion. */ X /* This is a dir entry that contains the names of files that were in the X dir at the time the dump was made. */ #define GNUTYPE_DUMPDIR 'D' X /* Identifies the *next* file on the tape as having a long linkname. */ #define GNUTYPE_LONGLINK 'K' X /* Identifies the *next* file on the tape as having a long name. */ #define GNUTYPE_LONGNAME 'L' X /* This is the continuation of a file that began on another volume. */ #define GNUTYPE_MULTIVOL 'M' X /* For storing filenames that do not fit into the main header. */ #define GNUTYPE_NAMES 'N' X /* This is for sparse files. */ #define GNUTYPE_SPARSE 'S' X /* This file is a tape/volume header. Ignore it on extraction. */ #define GNUTYPE_VOLHDR 'V' X /*--------------------------------------. | tar Header Block, overall structure. | `--------------------------------------*/ X /* tar files are made in basic blocks of this size. */ #define BLOCKSIZE 512 X enum archive_format { X DEFAULT_FORMAT, /* format to be decided later */ X V7_FORMAT, /* old V7 tar format */ X OLDGNU_FORMAT, /* GNU format as per before tar 1.12 */ X POSIX_FORMAT, /* restricted, pure POSIX format */ X GNU_FORMAT /* POSIX format with GNU extensions */ }; X union block { X char buffer[BLOCKSIZE]; X struct posix_header header; X struct extra_header extra_header; X struct oldgnu_header oldgnu_header; X struct sparse_header sparse_header; }; X /* End of Format description. */ SHAR_EOF $shar_touch -am 0415133297 'tar-1.13/src/tar.h' && chmod 0444 'tar-1.13/src/tar.h' || $echo 'restore of' 'tar-1.13/src/tar.h' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/src/tar.h:' 'MD5 check failed' cdd41ec3d27678ea826e15754d99cfc7 tar-1.13/src/tar.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/src/tar.h'`" test 8960 -eq "$shar_count" || $echo 'tar-1.13/src/tar.h:' 'original size' '8960,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/ChangeLog ============== if test ! -d 'tar-1.13/scripts'; then $echo 'x -' 'creating directory' 'tar-1.13/scripts' mkdir 'tar-1.13/scripts' fi if test -f 'tar-1.13/scripts/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/scripts/ChangeLog M,3DY-RTP-"TR-"`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N M=')E86PN8V$^"@H)*B!296QE87-E(#$N,3(N"@H)*B!L979E;"TQ+"!L979E M;"TP.B!297!L86-E("TM8FQO8VLM2`M+6)L;V-K:6YG+@H*,3DY M-BTP-"TQ-R`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N=')E M86PN8V$^"@H)*B!02X*"C$Y.30M,#8M,S`@($9R86[G;VES(%!I;F%R M9"`@/'!I;F%R9$!IF5D(&)Y(&UO=FEN9R!E M;G1R:65S(')E;&%T960@=&\*"7-C71H:6YG(&9R;VT@=&AE('-U8G-H M96QL('1H6]U"@ER96%L M;'D@=V%N="!M;W-T(&]F('1H92!O=71P=70@=&\@9V\@=&\@=&AE(&QO9V9I M;&4@86YY=V%Y+"!A;F0*"7-I;F-E(&%L;"!T:&]S92!P:7!E;&EN97,@=V5R M92!P&ET('-T871U M2X@(%-U9F9I>"!S:&]U;&0@86QW87ES(&)E M(&!L979E;"UN)R!W:&5R92!N(&ES('1H90H)9'5M<"!L979E;"X@(&QE=F5L M+3`@2X*"2AH;W-T*3H@2!C;VYT86EN('1E>'0@ M=&AA="!S:&]U;&0@8F4*"65X<&%N9&5D(&EN=&\@;75L=&EP;&4@=V]R9',L M(&QI:V4@8%1!4E]005)4,26EN9R!T2!A9&1I;F<@2!P M2YG;G4N86DN;6ET+F5D=3X*"@DJ(&QE=F5L+3`Z M(%)E<&%I"!E2P@"!A(&UI&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/ChangeLog:' 'MD5 check failed' f27b1188bd6308167983addd052f56dd tar-1.13/scripts/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/ChangeLog'`" test 6878 -eq "$shar_count" || $echo 'tar-1.13/scripts/ChangeLog:' 'original size' '6878,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/Makefile.am ============== if test -f 'tar-1.13/scripts/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/Makefile.am' && # Makefile for GNU tar scripts. # Copyright (C) 1994 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits X EXTRA_DIST = WARNING backup-specs dump-remind level-0 level-1 weekly.new SHAR_EOF $shar_touch -am 0417082496 'tar-1.13/scripts/Makefile.am' && chmod 0444 'tar-1.13/scripts/Makefile.am' || $echo 'restore of' 'tar-1.13/scripts/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/Makefile.am:' 'MD5 check failed' 47fd558dcebfe632e1a07d4c9f41d17c tar-1.13/scripts/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/Makefile.am'`" test 869 -eq "$shar_count" || $echo 'tar-1.13/scripts/Makefile.am:' 'original size' '869,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/Makefile.in ============== if test -f 'tar-1.13/scripts/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/Makefile.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/Makefile.in' && # Makefile.in generated automatically by automake 1.4 from Makefile.am X # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. X # Makefile for GNU tar scripts. # Copyright (C) 1994 Free Software Foundation, Inc. X # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X X SHELL = @SHELL@ X srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ X bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include X DESTDIR = X pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ X top_builddir = .. X ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ X INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ X NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = @host_alias@ host_triplet = @host@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CPP = @CPP@ DATADIRNAME = @DATADIRNAME@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETCONF = @GETCONF@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ INSTOBJEXT = @INSTOBJEXT@ INTLDEPS = @INTLDEPS@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ LIBOBJS = @LIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ PACKAGE = @PACKAGE@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ RMT = @RMT@ U = @U@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ YACC = @YACC@ l = @l@ X AUTOMAKE_OPTIONS = gnits X EXTRA_DIST = WARNING backup-specs dump-remind level-0 level-1 weekly.new mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = DIST_COMMON = ChangeLog Makefile.am Makefile.in X X DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) X TAR = gtar GZIP_ENV = --best all: all-redirect X.SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) X cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps scripts/Makefile X Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status X cd $(top_builddir) \ X && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status X tags: TAGS TAGS: X X distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) X subdir = scripts X distdir: $(DISTFILES) X @for file in $(DISTFILES); do \ X d=$(srcdir); \ X if test -d $$d/$$file; then \ X cp -pr $$/$$file $(distdir)/$$file; \ X else \ X test -f $(distdir)/$$file \ X || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ X || cp -p $$d/$$file $(distdir)/$$file || :; \ X fi; \ X done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am X install-data-am: install-data: install-data-am X install-am: all-am X @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile all-redirect: all-am install-strip: X $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: X X mostlyclean-generic: X clean-generic: X distclean-generic: X -rm -f Makefile $(CONFIG_CLEAN_FILES) X -rm -f config.cache config.log stamp-h stamp-h[0-9]* X maintainer-clean-generic: mostlyclean-am: mostlyclean-generic X mostlyclean: mostlyclean-am X clean-am: clean-generic mostlyclean-am X clean: clean-am X distclean-am: distclean-generic clean-am X distclean: distclean-am X maintainer-clean-am: maintainer-clean-generic distclean-am X @echo "This command is intended for maintainers to use;" X @echo "it deletes files that may require special tools to rebuild." X maintainer-clean: maintainer-clean-am X X.PHONY: tags distdir info-am info dvi-am dvi check check-am \ installcheck-am installcheck install-exec-am install-exec \ install-data-am install-data install-am install uninstall-am uninstall \ all-redirect all-am all installdirs mostlyclean-generic \ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean X X # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. X.NOEXPORT: SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/scripts/Makefile.in' && chmod 0664 'tar-1.13/scripts/Makefile.in' || $echo 'restore of' 'tar-1.13/scripts/Makefile.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/Makefile.in:' 'MD5 check failed' 9a0ffd7143a96368f110cd8082f5a964 tar-1.13/scripts/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/Makefile.in'`" test 5653 -eq "$shar_count" || $echo 'tar-1.13/scripts/Makefile.in:' 'original size' '5653,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/WARNING ============== if test -f 'tar-1.13/scripts/WARNING' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/WARNING' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/WARNING' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/WARNING' && GNU tar scripts have not been updated in a long while. make will not not install them. Please consider the contents of this directory are provided as indicative for the time being. SHAR_EOF $shar_touch -am 0108191796 'tar-1.13/scripts/WARNING' && chmod 0444 'tar-1.13/scripts/WARNING' || $echo 'restore of' 'tar-1.13/scripts/WARNING' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/WARNING:' 'MD5 check failed' 16177abad9c395b5cde1b50ed8607456 tar-1.13/scripts/WARNING SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/WARNING'`" test 183 -eq "$shar_count" || $echo 'tar-1.13/scripts/WARNING:' 'original size' '183,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/backup-specs ============== if test -f 'tar-1.13/scripts/backup-specs' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/backup-specs' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/backup-specs' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/backup-specs' && # site-specific parameters for file system backup. X # User name of administrator of backups. ADMINISTRATOR=backup-reports X # Hour at which backups are normally done. # This should be a number from 0 to 23. BACKUP_HOUR=1 X # Location of GNU tar. This must be the same for all hosts. TAR=/usr/local/gnubin/tar X # Device to use for dumping. It should be on the host # on which the dump scripts are run. TAPE_FILE=/dev/nrsmt0 X # Command to obtain status of tape drive, including error count. # On some tape drives there may not be such a command; # then simply use `TAPE_STATUS=false'. # # Might also consider # TAPE_STATUS="mt -f ${TAPE_FILE} status" # if `mts' is missing, though this alternative is rather verbose. TAPE_STATUS="mts -t ${TAPE_FILE}" X # Blocking factor to use for writing the dump. BLOCKING=124 X # Name of temporary file to hold volume numbers. This needs to be accessible # by all the machines which have filesystems to be dumped. VOLNO_FILE=/home/gd2/dump/volnofile X # Script to be run when it's time to insert a new tape in for the next # volume. Administrators may want to tailor this script for their site. # If this variable isn't set, tar will use some default behavior which is # probably defined in the manual. #DUMP_REMIND_SCRIPT='rsh apple-gunkies /home/gd2/dump/dump-remind' X # List of file systems to be dumped. # Actually, any directory may be used, but if it has subdirectories on # other file systems, they are not included. # The host name specifies which host to run tar on. # It should normally be the host that actually has the file system. # If GNU tar is not installed on that machine, then you can specify some # other host which can access the file system through NFS. # Although these are arranged one per line, that is not mandatory. # It does not work to use # for comments within the string. X BACKUP_DIRS=' X albert:/fs/fsf X sugar-bombs:/fs/gd X albert:/fs/gd2 X churchy:/fs/gd3 X nutrimat:/fs/gp X nutrimat:/fs/gp2 X albert:/fs/mailer X placebo:/archive X nutrimat:/fs/dist X albert:/ X albert:/usr X nutrimat:/ X placebo:/ X ernst:/usr1 ' X # List of individual files to be dumped. # These should be accesible from the machine on which the dump is run. BACKUP_FILES='' X # Message to display on the terminal while waiting for dump time. Usually # this will just be some literal text, preferably something more # entertaining than this. The awk script here saves some redundant # repetition, but is not really all that desirable. SLEEP_MESSAGE="`awk ' X BEGIN { X for (i = 0; i < 30; i++) X print \" \" \ X \"D O N O T T O U C H T H I S T E R M I N A L !!!!!\" X }' /dev/null`" X X # eof SHAR_EOF $shar_touch -am 0507071693 'tar-1.13/scripts/backup-specs' && chmod 0444 'tar-1.13/scripts/backup-specs' || $echo 'restore of' 'tar-1.13/scripts/backup-specs' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/backup-specs:' 'MD5 check failed' a9d061cb1a501cf01448edcb597991fc tar-1.13/scripts/backup-specs SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/backup-specs'`" test 2678 -eq "$shar_count" || $echo 'tar-1.13/scripts/backup-specs:' 'original size' '2678,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/dump-remind ============== if test -f 'tar-1.13/scripts/dump-remind' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/dump-remind' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/dump-remind' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/scripts/dump-remind M(R$O8FEN+W-H"B,@5&AI&%M<&QE+B`@270@:7,*(R!N;W0@ M=7-E9"!B>2!D969A=6QT('5N;&5S'0@=F]L=6UE(&]F('1H92!B86-K=7`@;F5E9',@=&\* M(R!B92!P=70@:6X@=&AE('1A<&4@9')I=F4N(`HC"@HC($EN8VQU9&4@;&]C M871I;VX@;V8@8'-E;F1M86EL)R!A;F0@1TY5(&9I;F=EU1!4$5?1DE,17TB(')E=VEN9`IM="`M9B`B)'M405!%7T9)3$5] M(B!O9F9L"@IV;VQN;STB8&-A="!<(B1[5D],3D]?1DE,17U<(B`R/B`O9&5V M+VYU;&Q@(@II9B!;("0_("UN92`P(%T[('1H96X*("`@=F]L;F\],`IF:0H* M(R!'970@82!L:7-T(&]F('!E;W!L92!T;R!W:&]M('1O(&UA:6P@82!R97%U M97-T(&9O2R]>)"]D"B`@("`@("`@("`@("`O M7G)O;W0_*B0O9`H@("`@("`@("`@("`@+UYZ:7!P>20O9`H@("`@("`@("`@ M("`@+UYF;F]R9"0O9`H@("`@("`@("`@("`@+UYE;'9IV<*("`@("`@("`@("`@.B`Q"B`@("`@("`@("`@(',O M7"A<;EPI7"A;02U:82UZ,"TY7UU;02U:82UZ,"TY7UTJ7"E<*%QN+BI<*5PR M7"@N*EPI+UPQ7#)<,UPT+V<*("`@("`@("`@("`@W)E8VEP:65N='-]"D-C.B`D>T%$34E.25-4 M4D%43U)]"E-U8FIE8W0Z($)A8VMU<"!N965DT%$34E.25-44D%43U)]"@I4:&ES M(&ES(&%N(&%U=&]M871E9"!R97!OW9O;&YO?2!O M9B!T:&4@8F%C:W5P(&YE961S('1O(&)E('!U="!I;B!T:&4@=&%P92!D2!M;W)E+"!I;F9O2!M;W)E"G5P+71O+61A=&4I(&-A;B!A;'-O M(&)E(&9O=6YD(&EN('YFW)E8VEP:65N='-]"D-C.B`D>T%$ M34E.25-44D%43U)]"E-U8FIE8W0Z(%9O;'5M92`D>W9O;&YO?2!F;W(@8F%C M:W5P(&AAT%$34E.25-44D%43U)] M"@I4:&ES(&ES(&%N(&%U=&]M871E9"!R97!O&ET(#`*"B,@96]F"G1T ` end SHAR_EOF $shar_touch -am 1124014893 'tar-1.13/scripts/dump-remind' && chmod 0555 'tar-1.13/scripts/dump-remind' || $echo 'restore of' 'tar-1.13/scripts/dump-remind' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/dump-remind:' 'MD5 check failed' a456d7669c4820f4b40332991f4cec81 tar-1.13/scripts/dump-remind SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/dump-remind'`" test 3238 -eq "$shar_count" || $echo 'tar-1.13/scripts/dump-remind:' 'original size' '3238,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/level-0 ============== if test -f 'tar-1.13/scripts/level-0' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/level-0' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/level-0' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/level-0' && #!/bin/sh # # Run this script as root on the machine that has the tape drive, to make a # full (level-0) dump. # # If you give `now' as an argument, the dump is done immediately. # Otherwise, it waits until 1am, or until the hour given as argument. # Specify the hour as a number from 0 to 23. # # You must edit the file `backup-specs' to set the parameters for your site. X # Useful for backup-specs, in case things have to be done slightly # differently for different dump levels. DUMP_LEVEL=0 X # Insure `mail' is in PATH. PATH="/usr/ucb:${PATH}" export PATH X # This is not the most reliable test in the world. The following might be # more predictable: # # whoami="`whoami`" # euid="`sed -ne '/^'\"${whoami}\"':/{s/^[^:]*:[^:]*://;s/:.*//p;q;}' /etc/passwd`" # if [ "${euid}" != 0 ]; then ... # if [ ! -w / ]; then X echo "The backup must be run as root or else some files will fail to be dumped." X exit 1 fi X # Get the values of BACKUP_DIRS, BACKUP_FILES, and other variables. X. ./backup-specs X # Maybe sleep until around specified or default hour. if [ "${1}" != "now" ]; then X if [ "${1}x" != "x" ]; then X spec="${1}" X else X spec="${BACKUP_HOUR}" X fi X X pausetime="`date | awk ' X { X hr = substr($4, 1, 2); X mn = substr($4, 4, 2); X if((hr + 0) < (spec + 0)) X print 3600 * (spec - hr) - 60 * mn; X else X print 3600 * (spec + (24 - hr)) - 60 * mn; X }' spec=\"${spec}\"`" X X clear X echo "${SLEEP_MESSAGE}" X sleep "${pausetime}" fi X # start doing things X # Put startdate in the subject line of mailed report, since if it happens # to run longer than 24 hours (as may be the case if someone forgets to put # in the next volume of the tape in adequate time), the backup date won't # appear too misleading. startdate="`date`" X here="`pwd`" X # Logfile name should be in the form ``log-1993-03-18-level-0'' # They go in the subdirectory `log' of the current directory. # i.e. year-month-date. This format is useful for sorting by name, since # logfiles are intentionally kept online for future reference. LOGFILE="log/log-`date | sed -ne ' X s/[^ ]* *\([^ ]*\) *\([^ ]*\).* \([^ ]*\)$/\3-\1-\2/ X /-[0-9]$/s/\([0-9]\)$/0\1/ X /Jan/{s/Jan/01/p;q;} X /Feb/{s/Feb/02/p;q;} X /Mar/{s/Mar/03/p;q;} X /Apr/{s/Apr/04/p;q;} X /May/{s/May/05/p;q;} X /Jun/{s/Jun/06/p;q;} X /Jul/{s/Jul/07/p;q;} X /Aug/{s/Aug/08/p;q;} X /Sep/{s/Sep/09/p;q;} X /Oct/{s/Oct/10/p;q;} X /Nov/{s/Nov/11/p;q;} X /Dec/{s/Dec/12/p;q;}'`-level-${DUMP_LEVEL}" X localhost="`hostname | sed -e 's/\..*//'`" X TAR_PART1="${TAR} -c --multi-volume --one-file-system --blocking=${BLOCKING} --sparse --volno-file=${VOLNO_FILE}" X # Only use --info-script if DUMP_REMIND_SCRIPT was defined in backup-specs if [ "x${DUMP_REMIND_SCRIPT}" != "x" ]; then X TAR_PART1="${TAR_PART1} --info-script='${DUMP_REMIND_SCRIPT}'" fi X # Make sure the log file did not already exist. Create it. X if [ -f "${LOGFILE}" ] ; then X echo "Log file ${LOGFILE} already exists." 1>&2 X exit 1 else X touch "${LOGFILE}" fi X # Most everything below here is run in a subshell for which all output is # piped through `tee' to the logfile. Doing this, instead of having # multiple pipelines all over the place, is cleaner and allows access to # the exit value from various commands more easily. ( X # Caveat: Some version of `mt' require `-t', not `-f'. X mt -f "${TAPE_FILE}" rewind X rm -f "${VOLNO_FILE}" X X set - ${BACKUP_DIRS} X while [ $# -ne 0 ] ; do X date="`date`" X remotehost="`echo \"${1}\" | sed -e 's/:.*$//'`" X fs="`echo \"${1}\" | sed -e 's/^.*://'`" X fsname="`echo \"${1}\" | sed -e 's/\//:/g'`" X X # This filename must be absolute; it is opened on the machine that runs tar. X TAR_PART2="--listed=/etc/tar-backup/temp.level-0" X TAR_PART3="--label='Full backup of ${fs} on ${remotehost} at ${date}' -C ${fs} ." X X echo "Backing up ${1} at ${date}" X X # Actually back things up. X X if [ "z${localhost}" != "z${remotehost}" ] ; then X rsh "${remotehost}" mkdir /etc/tar-backup > /dev/null 2>&1 X rsh "${remotehost}" rm -f /etc/tar-backup/temp.level-0 X rsh "${remotehost}" ${TAR_PART1} -f "${localhost}:${TAPE_FILE}" ${TAR_PART2} ${TAR_PART3} X else X mkdir /etc/tar-backup > /dev/null 2>&1 X rm -f /etc/tar-backup/temp.level-0 X # Using `sh -c exec' causes nested quoting and shell substitution X # to be handled here in the same way rsh handles it. X sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3}" X fi X X # `rsh' doesn't exit with the exit status of the remote command. What X # stupid lossage. TODO: think of a reliable workaround. X if [ $? -ne 0 ] ; then X echo "Backup of ${1} failed." 1>&2 X # I'm assuming that the tar will have written an empty X # file to the tape, otherwise I should do a cat here. X else X if [ "z${localhost}" != "z${remotehost}" ] ; then X rsh "${remotehost}" mv -f /etc/tar-backup/temp.level-0 "/etc/tar-backup/${fsname}.level-0" X else X mv -f /etc/tar-backup/temp.level-0 "/etc/tar-backup/${fsname}.level-0" X fi X fi X ${TAPE_STATUS} X sleep 60 X shift X done X X # Dump any individual files requested. X X if [ "x${BACKUP_FILES}" != "x" ] ; then X date="`date`" X X TAR_PART2="--listed=/etc/tar-backup/temp.level-0" X TAR_PART3="--label='Full backup of miscellaneous files at ${date}'" X X mkdir /etc/tar-backup > /dev/null 2>&1 X rm -f /etc/tar-backup/temp.level-0 X X echo "Backing up miscellaneous files at ${date}" X X # Using `sh -c exec' causes nested quoting and shell substitution X # to be handled here in the same way rsh handles it. X sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3} ${BACKUP_FILES}" X X # `rsh' doesn't exit with the exit status of the remote command. What X # lossage. TODO: think of a reliable workaround. X if [ $? -ne 0 ] ; then X echo "Backup of miscellaneous files failed." X # I'm assuming that the tar will have written an empty X # file to the tape, otherwise I should do a cat here. X else X mv -f /etc/tar-backup/temp.level-0 /etc/tar-backup/misc.level-0 X fi X ${TAPE_STATUS} X else X echo "No miscellaneous files specified" X fi X X # Caveat: some versions of `mt' use `-t' instead of `-f'. X mt -f "${TAPE_FILE}" rewind X mt -f "${TAPE_FILE}" offl X ) 2>&1 | tee -a "${LOGFILE}" X echo "Sending the dump log to ${ADMINISTRATOR}" mail -s "Results of backup started ${startdate}" ${ADMINISTRATOR} < "${LOGFILE}" X # eof SHAR_EOF $shar_touch -am 0424165897 'tar-1.13/scripts/level-0' && chmod 0555 'tar-1.13/scripts/level-0' || $echo 'restore of' 'tar-1.13/scripts/level-0' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/level-0:' 'MD5 check failed' 3add91bc7b853c10c60bd39a7d026bbd tar-1.13/scripts/level-0 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/level-0'`" test 6526 -eq "$shar_count" || $echo 'tar-1.13/scripts/level-0:' 'original size' '6526,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/level-1 ============== if test -f 'tar-1.13/scripts/level-1' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/level-1' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/level-1' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/level-1' && #!/bin/sh # # Run this script as root on the machine that has the tape drive, to make a # level-1 dump containing all files changed since the last full dump. # # If you give `now' as an argument, the dump is done immediately. # Otherwise, it waits until 1am. # # You must edit the file `backup-specs' to set the parameters for your site. X # Useful for backup-specs, in case things have to be done slightly # differently for different dump levels. DUMP_LEVEL=1 X # Insure `mail' is in PATH. PATH="/usr/ucb:${PATH}" export PATH X # This is not the most reliable test in the world. The following might be # more predictable: # # whoami="`whoami`" # euid="`sed -ne '/^'\"${whoami}\"':/{s/^[^:]*:[^:]*://;s/:.*//p;q;}' /etc/passwd`" # if [ "${euid}" != 0 ]; then ... # if [ ! -w / ]; then X echo "The backup must be run as root or else some files will fail to be dumped." X exit 1 fi X # Get the values of BACKUP_DIRS, BACKUP_FILES, and other variables. X. ./backup-specs X # Maybe sleep until around specified or default hour. if [ "z${1}" != "znow" ]; then X if [ "${1}x" != "x" ]; then X spec="${1}" X else X spec="${BACKUP_HOUR}" X fi X X pausetime="`date | awk ' X { X hr = substr($4, 1, 2); X mn = substr($4, 4, 2); X if((hr + 0) < (spec + 0)) X print 3600 * (spec - hr) - 60 * mn; X else X print 3600 * (spec + (24 - hr)) - 60 * mn; X }' spec=\"${spec}\"`" X X clear X echo "${SLEEP_MESSAGE}" X sleep "${pausetime}" fi X # start doing things X # Put startdate in the subject line of mailed report, since if it happens # to run longer than 24 hours (as may be the case if someone forgets to put # in the next volume of the tape in adequate time), the backup date won't # appear too misleading. startdate="`date`" X here="`pwd`" X # Logfile name should be in the form ``log-1993-03-18-level-1'' # They go in the subdirectory `log' of the current directory. # i.e. year-month-date. This format is useful for sorting by name, since # logfiles are intentionally kept online for future reference. LOGFILE="log/log-`date | sed -ne ' X s/[^ ]* *\([^ ]*\) *\([^ ]*\).* \([^ ]*\)$/\3-\1-\2/ X /-[0-9]$/s/\([0-9]\)$/0\1/ X /Jan/{s/Jan/01/p;q;} X /Feb/{s/Feb/02/p;q;} X /Mar/{s/Mar/03/p;q;} X /Apr/{s/Apr/04/p;q;} X /May/{s/May/05/p;q;} X /Jun/{s/Jun/06/p;q;} X /Jul/{s/Jul/07/p;q;} X /Aug/{s/Aug/08/p;q;} X /Sep/{s/Sep/09/p;q;} X /Oct/{s/Oct/10/p;q;} X /Nov/{s/Nov/11/p;q;} X /Dec/{s/Dec/12/p;q;}'`-level-${DUMP_LEVEL}" X localhost="`hostname | sed -e 's/\..*//'`" X TAR_PART1="${TAR} -c --multi-volume --one-file-system --blocking=${BLOCKING} --sparse --volno-file=${VOLNO_FILE}" X # Only use --info-script if DUMP_REMIND_SCRIPT was defined in backup-specs if [ "x${DUMP_REMIND_SCRIPT}" != "x" ]; then X TAR_PART1="${TAR_PART1} --info-script='${DUMP_REMIND_SCRIPT}'" fi X # Make sure the log file did not already exist. Create it. X if [ -f "${LOGFILE}" ] ; then X echo "Log file ${LOGFILE} already exists." 1>&2 X exit 1 else X touch "${LOGFILE}" fi X # Most everything below here is run in a subshell for which all output is # piped through `tee' to the logfile. Doing this, instead of having # multiple pipelines all over the place, is cleaner and allows access to # the exit value from various commands more easily. ( X # Caveat: Some version of `mt' require `-t', not `-f'. X mt -f "${TAPE_FILE}" rewind X rm -f "${VOLNO_FILE}" X X set - ${BACKUP_DIRS} X while [ $# -ne 0 ] ; do X date="`date`" X remotehost="`echo \"${1}\" | sed -e 's/:.*$//'`" X fs="`echo \"${1}\" | sed -e 's/^.*://'`" X fsname="`echo \"${1}\" | sed -e 's/\//:/g'`" X X # This filename must be absolute; it is opened on the machine that runs tar. X TAR_PART2="--listed=/etc/tar-backup/temp.level-1" X TAR_PART3="--label='level 1 backup of ${fs} on ${remotehost} at ${date}' -C ${fs} ." X X echo "Backing up ${1} at ${date}" X echo "Last full dump on this filesystem:" X X if [ "z${remotehost}" != "z${localhost}" ] ; then X rsh "${remotehost}" "ls -l /etc/tar-backup/${fsname}.level-0; \ X cp /etc/tar-backup/${fsname}.level-0 /etc/tar-backup/temp.level-1" X else X ls -l "/etc/tar-backup/${fsname}.level-0" X cp "/etc/tar-backup/${fsname}.level-0" /etc/tar-backup/temp.level-1 X fi X X # Actually back things up. X X if [ "z${remotehost}" != "z${localhost}" ] ; then X rsh "${remotehost}" ${TAR_PART1} -f "${localhost}:${TAPE_FILE}" ${TAR_PART2} ${TAR_PART3} X else X # Using `sh -c exec' causes nested quoting and shell substitution X # to be handled here in the same way rsh handles it. X sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3}" X fi X X # `rsh' doesn't exit with the exit status of the remote command. What X # stupid lossage. TODO: think of a reliable workaround. X if [ $? -ne 0 ] ; then X echo "Backup of ${1} failed." X # I'm assuming that the tar will have written an empty X # file to the tape, otherwise I should do a cat here. X else X if [ "z${localhost}" != "z${remotehost}" ] ; then X rsh "${remotehost}" mv -f /etc/tar-backup/temp.level-1 "/etc/tar-backup/${fsname}.level-1" X else X mv -f /etc/tar-backup/temp.level-1 "/etc/tar-backup/${fsname}.level-1" X fi X fi X ${TAPE_STATUS} X sleep 60 X shift X done X X # Dump any individual files requested. X X if [ "x${BACKUP_FILES}" != "x" ] ; then X date="`date`" X TAR_PART2="--listed=/etc/tar-backup/temp.level-1" X TAR_PART3="--label='Incremental backup of miscellaneous files at ${date}'" X X echo "Backing up miscellaneous files at ${date}" X echo "Last full dump of these files:" X ls -l /etc/tar-backup/misc.level-0 X X rm -f /etc/tar-backup/temp.level-1 X cp /etc/tar-backup/misc.level-0 /etc/tar-backup/temp.level-1 X X # Using `sh -c exec' causes nested quoting and shell substitution X # to be handled here in the same way rsh handles it. X sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3} ${BACKUP_FILES}" X X if [ $? -ne 0 ] ; then X echo "Backup of miscellaneous files failed." 1>&2 X # I'm assuming that the tar will have written an empty X # file to the tape, otherwise I should do a cat here. X else X mv -f /etc/tar-backup/temp.level-1 /etc/tar-backup/misc.level-1 X fi X ${TAPE_STATUS} X else X echo "No miscellaneous files specified" X fi X X # Caveat: some versions of `mt' use `-t' instead of `-f'. X mt -f "${TAPE_FILE}" rewind X mt -f "${TAPE_FILE}" offl X ) 2>&1 | tee -a "${LOGFILE}" X echo "Sending the dump log to ${ADMINISTRATOR}" mail -s "Results of backup started ${startdate}" ${ADMINISTRATOR} < "${LOGFILE}" X # eof SHAR_EOF $shar_touch -am 0424165997 'tar-1.13/scripts/level-1' && chmod 0555 'tar-1.13/scripts/level-1' || $echo 'restore of' 'tar-1.13/scripts/level-1' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/level-1:' 'MD5 check failed' 19bda5b89d65f00d2f20af4f1dd17e30 tar-1.13/scripts/level-1 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/level-1'`" test 6646 -eq "$shar_count" || $echo 'tar-1.13/scripts/level-1:' 'original size' '6646,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/scripts/weekly.new ============== if test -f 'tar-1.13/scripts/weekly.new' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/scripts/weekly.new' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/scripts/weekly.new' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/scripts/weekly.new' && #!/bin/sh # start doing things TOBACKUP="albert:/" X HOST=`hostname | sed 's/\..*//'` TAPEFILE=/dev/rfd0a LOGFILE=tar-out BLOCKING=20 TAR_PART1="/usr/local/bin/tar clbfVM $BLOCKING" X rm -f $LOGFILE X mt -f $TAPEFILE rewind X X host=`echo $TOBACKUP | sed 's/:.*$//'`; X fs=`echo $TOBACKUP | sed 's/^.*://'`; X date=`date`; X fsname=`echo $TOBACKUP | sed 's/\//:/g'` X X TAR_PART2="'Weekly backup of $fs on $host at $date' -C $fs ." X echo Backing up $TOBACKUP at $date | tee -a $LOGFILE X X # Actually back things up. X X if [ $HOST != $host ] ; then X rsh $host $TAR_PART1 $HOST:$TAPEFILE $TAR_PART2 X else X sh -c "exec $TAR_PART1 $TAPEFILE $TAR_PART2" X fi X if [ $? -ne 0 ] ; then X echo Backup of $TOBACKUP failed. | tee -a $LOGFILE X echo mts at time of failure | tee -a $LOGFILE X mts -t $TAPEFILE | tee -a $LOGFILE X # I'm assuming that the tar will have written an empty X # file to the tape, otherwise I should do a cat here. X else X echo $date > $fsname.lasttar X fi X sleep 60; X mt -f $TAPEFILE rewind mt -f $TAPEFILE offl SHAR_EOF $shar_touch -am 1101111190 'tar-1.13/scripts/weekly.new' && chmod 0444 'tar-1.13/scripts/weekly.new' || $echo 'restore of' 'tar-1.13/scripts/weekly.new' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/scripts/weekly.new:' 'MD5 check failed' d82383a0383435ed54d94bcdd47b92f7 tar-1.13/scripts/weekly.new SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/scripts/weekly.new'`" test 1015 -eq "$shar_count" || $echo 'tar-1.13/scripts/weekly.new:' 'original size' '1015,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/Makefile.in.in ============== if test ! -d 'tar-1.13/po'; then $echo 'x -' 'creating directory' 'tar-1.13/po' mkdir 'tar-1.13/po' fi if test -f 'tar-1.13/po/Makefile.in.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/Makefile.in.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/Makefile.in.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/po/Makefile.in.in' && # Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X PACKAGE = @PACKAGE@ VERSION = @VERSION@ X SHELL = /bin/sh @SET_MAKE@ X srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ X prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = $(prefix)/@DATADIRNAME@ localedir = $(datadir)/locale gnulocaledir = $(prefix)/share/locale gettextsrcdir = $(prefix)/share/gettext/po subdir = po X INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ X CC = @CC@ GENCAT = @GENCAT@ GMSGFMT = PATH=../src:$$PATH @GMSGFMT@ MSGFMT = @MSGFMT@ XXGETTEXT = PATH=../src:$$PATH @XGETTEXT@ MSGMERGE = PATH=../src:$$PATH msgmerge X DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ X INCLUDES = -I.. -I$(top_srcdir)/intl X COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) X SOURCES = cat-id-tbl.c POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = Makefile.in.in POTFILES.in $(PACKAGE).pot \ stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) X POTFILES = \ X CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ INSTOBJEXT = @INSTOBJEXT@ X X.SUFFIXES: X.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat X X.c.o: X $(COMPILE) $< X X.po.pox: X $(MAKE) $(PACKAGE).pot X $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox X X.po.mo: X $(MSGFMT) -o $@ $< X X.po.gmo: X file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ X && rm -f $$file && $(GMSGFMT) -o $$file $< X X.po.cat: X sed -f ../intl/po2msg.sed < $< > $*.msg \ X && rm -f $@ && $(GENCAT) $@ $*.msg X X all: all-@USE_NLS@ X all-yes: cat-id-tbl.c $(CATALOGS) all-no: X $(srcdir)/$(PACKAGE).pot: $(POTFILES) X $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ X --add-comments --keyword=_ --keyword=N_ \ X --files-from=$(srcdir)/POTFILES.in \ X && test ! -f $(PACKAGE).po \ X || ( rm -f $(srcdir)/$(PACKAGE).pot \ X && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) X $(srcdir)/cat-id-tbl.c: stamp-cat-id; @: $(srcdir)/stamp-cat-id: $(PACKAGE).pot X rm -f cat-id-tbl.tmp X sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \ X | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp X if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \ X rm cat-id-tbl.tmp; \ X else \ X echo cat-id-tbl.c changed; \ X rm -f $(srcdir)/cat-id-tbl.c; \ X mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \ X fi X cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id X X install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all X if test -x "$(MKINSTALLDIRS)"; then \ X $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ X else \ X $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ X fi X @catalogs='$(CATALOGS)'; \ X for cat in $$catalogs; do \ X cat=`basename $$cat`; \ X case "$$cat" in \ X *.gmo) destdir=$(DESTDIR)$(gnulocaledir);; \ X *) destdir=$(DESTDIR)$(localedir);; \ X esac; \ X lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ X dir=$$destdir/$$lang/LC_MESSAGES; \ X if test -r "$(MKINSTALLDIRS)"; then \ X $(MKINSTALLDIRS) $$dir; \ X else \ X $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ X fi; \ X if test -r $$cat; then \ X $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ X echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \ X else \ X $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ X echo "installing $(srcdir)/$$cat as" \ X "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ X fi; \ X if test -r $$cat.m; then \ X $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ X echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ X else \ X if test -r $(srcdir)/$$cat.m ; then \ X $(INSTALL_DATA) $(srcdir)/$$cat.m \ X $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ X echo "installing $(srcdir)/$$cat as" \ X "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ X else \ X true; \ X fi; \ X fi; \ X done X if test "$(PACKAGE)" = "gettext"; then \ X if test -x "$(MKINSTALLDIRS)"; then \ X $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ X else \ X $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ X fi; \ X $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ X $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ X else \ X : ; \ X fi X # Define this as empty until I found a useful application. installcheck: X uninstall: X catalogs='$(CATALOGS)'; \ X for cat in $$catalogs; do \ X cat=`basename $$cat`; \ X lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ X rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ X rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ X rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ X rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ X done X check: all X cat-id-tbl.o: ../intl/libgettext.h X dvi info tags TAGS ID: X mostlyclean: X rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp X rm -fr *.o X clean: mostlyclean X distclean: clean X rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m X maintainer-clean: distclean X @echo "This command is intended for maintainers to use;" X @echo "it deletes files that may require special tools to rebuild." X rm -f $(GMOFILES) X distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: update-po $(DISTFILES) X dists="$(DISTFILES)"; \ X for file in $$dists; do \ X ln $(srcdir)/$$file $(distdir) 2> /dev/null \ X || cp -p $(srcdir)/$$file $(distdir); \ X done X update-po: Makefile X $(MAKE) $(PACKAGE).pot X PATH=`pwd`/../src:$$PATH; \ X cd $(srcdir); \ X catalogs='$(CATALOGS)'; \ X for cat in $$catalogs; do \ X cat=`basename $$cat`; \ X lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ X mv $$lang.po $$lang.old.po; \ X echo "$$lang:"; \ X if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ X rm -f $$lang.old.po; \ X else \ X echo "msgmerge for $$cat failed!"; \ X rm -f $$lang.po; \ X mv $$lang.old.po $$lang.po; \ X fi; \ X done X POTFILES: POTFILES.in X ( if test 'x$(srcdir)' != 'x.'; then \ X posrcprefix='$(top_srcdir)/'; \ X else \ X posrcprefix="../"; \ X fi; \ X rm -f $@-t $@ \ X && (sed -e '/^#/d' -e '/^[ ]*$$/d' \ X -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ X | sed -e '$$s/\\$$//') > $@-t \ X && chmod a-w $@-t \ X && mv $@-t $@ ) X Makefile: Makefile.in.in ../config.status POTFILES X cd .. \ X && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ X $(SHELL) ./config.status X # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. X.NOEXPORT: SHAR_EOF $shar_touch -am 1005092998 'tar-1.13/po/Makefile.in.in' && chmod 0444 'tar-1.13/po/Makefile.in.in' || $echo 'restore of' 'tar-1.13/po/Makefile.in.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/Makefile.in.in:' 'MD5 check failed' 3648982ab759012243afb1febede99de tar-1.13/po/Makefile.in.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/Makefile.in.in'`" test 6898 -eq "$shar_count" || $echo 'tar-1.13/po/Makefile.in.in:' 'original size' '6898,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/POTFILES.in ============== if test -f 'tar-1.13/po/POTFILES.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/POTFILES.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/POTFILES.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/po/POTFILES.in' && # List of files which contain translatable strings. # Copyright 1996, 1999 Free Software Foundation, Inc. X # Library files lib/argmatch.c lib/error.c lib/getopt.c lib/xmalloc.c X # Package source files src/arith.c src/buffer.c src/common.h src/compare.c src/create.c src/delete.c src/extract.c src/incremen.c src/list.c src/mangle.c src/misc.c src/names.c src/rmt.c src/rtapelib.c src/tar.c src/update.c X # Checking tools tests/genfile.c SHAR_EOF $shar_touch -am 0628192699 'tar-1.13/po/POTFILES.in' && chmod 0444 'tar-1.13/po/POTFILES.in' || $echo 'restore of' 'tar-1.13/po/POTFILES.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/POTFILES.in:' 'MD5 check failed' f5cef10b619c269ce63f93720a51ee89 tar-1.13/po/POTFILES.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/POTFILES.in'`" test 437 -eq "$shar_count" || $echo 'tar-1.13/po/POTFILES.in:' 'original size' '437,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/tar.pot ============== if test -f 'tar-1.13/po/tar.pot' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/tar.pot' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/tar.pot' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/tar.pot M(R!33TU%($1%4T-225!4259%(%1)5$Q%+@HC($-O<'ER:6=H="`H0RD@645! M4B!&GIY"FUS9VED("(B M"FUS9W-T6US(&]N('1H92!S M86UE(&QI;F4N("!4:&4@87-S=6UP=&EO;B!I6US M(&9O;&QO=R!E86-H(&]T:&5R"B,Z(&QI8B]A7-T96T@ M97)R;W(B"FUS9W-TF5D(&]P=&EO;B!@+2TE'0N"B,Z(&QI8B]X;6%L;&]C+F,Z-C8@71E2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D(@IM2!C;VUP2!W2!EF4@*"5S("$]("5S("L@)7,I(@IM2!A(&1I9F9E71E2!R96%D("5L=2!O9B`E;'4@8GET97,B"FUS9W-T2(*;7-G7!E M(&-H86YG960B"FUS9W-T2(*;7-G'1R86-T+F,Z-#,T"FUS9VED M(")296UO=FEN9R!L96%D:6YG(&`O)R!FF5R;W,B"FUS9W-T2`E71E7!E.R!F:6QE(&EG;F]R960B"FUS9W-T'1R M86-T+F,Z,3'1R86-T+F,Z,C4R"B,L(&,M9F]R;6%T"FUS9VED("(E M'1R86-T+F,Z,S0Q"B,L(&,M9F]R;6%T"FUS M9VED("(E'1R86-T+F,Z,S8V M"B,L(&,M9F]R;6%T"FUS9VED("(E2!W71E'1R M86-T+F,Z-S$Y"B,L(&,M9F]R;6%T"FUS9VED("(E6UL:6YK('1O(&`E6UB M;VQI8R!L:6YK'1R86-T+F,Z-S8Y"B,L(&,M9F]R;6%T"FUS9VED("(E'1R86-T+F,Z.3`U"B,L(&,M9F]R;6%T"FUS9VED("(E&5C=71E('!E'1R86-T+F,Z.34T"B,L(&,M9F]R;6%T"FUS9VED(")# M86YN;W0@97AT'1R86-T+F,Z.32`E2(*;7-G M'0@9FEL92!H96%D97(B"FUS9W-T71E6UL:6YK960@)7,@=&\@)7,B"FUS9W-T&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE(@IM M&ET('=A&ET+@HC.B!S2!@ M)7,@+2UH96QP)R!F;W(@;6]R92!I;F9O2!F:6QE5QN(@HB9F]R('1H92!E<75I=F%L96YT('-H;W)T(&]P=&EO;B!A;'-O+B`@ M4VEM:6QA2!I;B!A2`@("`@("`@ M("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A&ES=&EN9R!F:6QE'1R86-T:6YG(&]V97(@:71<;B(*(B`@("`@("TM5QN(@HB("`M3RP@ M+2UT;RUS=&1O=70@("`@("`@("`@("!E>'1R86-T(&9I;&5S('1O('-T86YD M87)D(&]U='!U=%QN(@HB("`M1RP@+2UI;F-R96UE;G1A;"`@("`@("`@("!H M86YD;&4@;VQD($=.52UF;W)M870@:6YC2!E>'1R86-T:6YG(&9I;&5S('=I=&@@=&AE('-A;64@;W=N97)S:&EP7&XB M"B(@("`@("`M+6YU;65R:6,M;W=N97(@("`@("`@("`@86QW87ES('5S92!N M=6UB97)S(&9O'1R86-T(&UU;'1I+79O;'5M92!A"`U,3(@8GET M97,@<&5R(')E8V]R9%QN(@HB("`@("`@+2UR96-O71E"`@("`@("`@("`@("`@("`@ M("`@("`@('=R:71E(&$@4$]325@@8V]N9F]R;6%N="!AFEP("`@("`@("`@("`@("`@9FEL=&5R('1H M92!A'1R86-T M(&]R(&-R96%T92!F&-L=61E/5!!5%1%4DX@ M("`@("`@(&5X8VQU9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@4$%4 M5$523EQN(@HB("`M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@(&5X8VQU M9&4@9VQO8F)I;F<@<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@+5`L M("TM86)S;VQU=&4M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L96%D:6YG M(&`O)W,@9G)O;2!F:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL:6YK2!I;B`B"B)D:7)E8W1O7-T96T@("`@("`@('-T87D@:6X@ M;&]C86P@9FEL92!S>7-T96T@=VAE;B!C2!B92!S970@=VET:"`M+6)A8VMU<"!O M&ES="P@2!B92!&24Q%+"!(3U-4.D9)3$4@;W(@55-%4D!(3U-4.D9) M3$4[(&%N9"!&24Q%(&UA>2!B92!A(&9I;&5<;B(*(F]R(&$@9&5V:6-E+B`@ M*E1H:7,J(&!T87(G(&1E9F%U;'1S('1O(&`M9B5S("UB)60G+EQN(@IM2`M+6)L;V-K:6YG+69A8W1O2`M+6)L;V-K:6YG+69A8W1O2`M+7)E860M9G5L M;"UR96-O2`M M+6%B6EN9R!C;VYD:71I;VYS+B`@5&AE M2!R969U2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N2!T:&ES(&AE;'`@86YD(&5X:71<;B(*(B`@("`@("TM=F5R7)I9VAT("A#*2`Q M.3DU+"`Q.3DV+"`Q.3DW($9R964@4V]F='=A&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/tar.pot:' 'MD5 check failed' 1d25f1436d0049b5eb2961ad94c10d5d tar-1.13/po/tar.pot SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/tar.pot'`" test 29776 -eq "$shar_count" || $echo 'tar-1.13/po/tar.pot:' 'original size' '29776,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/stamp-cat-id ============== if test -f 'tar-1.13/po/stamp-cat-id' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/stamp-cat-id' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/stamp-cat-id' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/po/stamp-cat-id' && timestamp SHAR_EOF $shar_touch -am 0706231199 'tar-1.13/po/stamp-cat-id' && chmod 0664 'tar-1.13/po/stamp-cat-id' || $echo 'restore of' 'tar-1.13/po/stamp-cat-id' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/stamp-cat-id:' 'MD5 check failed' 1ded054093de910d9786c62bc4fe8cc6 tar-1.13/po/stamp-cat-id SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/stamp-cat-id'`" test 10 -eq "$shar_count" || $echo 'tar-1.13/po/stamp-cat-id:' 'original size' '10,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/cs.po ============== if test -f 'tar-1.13/po/cs.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/cs.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/cs.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/cs.po M(R!#>F5C:"!TCY<;B(*(DQA;F=U86=E+51E86TZ($-Z96-H M(#QCGDL(&,M9F]R;6%T"FUS9VED(")I;G9A;&ED M(&%R9W5M96YT(&`EGDL M(&,M9F]R;6%T"FUS9VED(")A;6)I9W5O=7,@87)G=6UE;G0@8"5S)R!F;W(@ M8"5S)R(*;7-GFYAZ&[]('9Z;W)E:R!@)7,G(@H*(RX@ M5V4@=')Y('1O('!U="!S>6YO;GEM6YO;GEMF[A;>$@6)A(@H*(SH@;&EB+V=E=&]P="YC.C8W M-PHC+"!C+69OGDL(&,M9F]R;6%T"FUS9VED("(E@@8"5C)R!V M>;YA9'5J92!AGIY+"!C+69OGIY+"!C+69O@@8"5C)R!V>;YA9'5J92!AF5D(&]P=&EO;B!@+2TEGIY+"!C+69OGDL(&,M9F]R;6%T"FUS9VED("(E M'0N M"B,Z(&QI8B]X;6%L;&]C+F,Z-C8@@@)60@;F5N[2!M;[YNZ2!U>F%V^.UT(@H*(SH@2!N96QZ92!P M;W6^[70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T^2!N82!ZX7IN86TL(&[A%L;NP@>FYA;65N86KM($5/1BY<;B(*(B`@+4(L M("TM;X@;F5N[2!P^&7H=&5N M;R!T;VQI:R!B86IT^2Q<;B(*(B`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@(&MO;&EK(&IE('!OOF%D;W;A;F\L('IK;W6Y[2!D;^CMF)Y M=&5K7&XB"B(@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`H=FAO M9&[I('!R;R!R;W5R>2E<;B(*"B,Z('-R8R]T87(N8SHS,S8*;7-G:60@(B(* M(EQN(@HB07)C:&EV92!F;W)M870@FEP7&XB"B(@("U:+"`M+6-O;7!R97-S+"`M+75N8V]M<')E3U$25(@("`@("`@("`@8VAA;F=E('1O(&1I2!$25)<;B(* M(B`@+50L("TM9FEL97,M9G)O;3U.04U%("`@("`@("!G970@;F%M97,@=&\@ M97AT&-L=61E(&9I;&5S+"!G:79E;B!A&-L=61E(&=L;V)B:6YG('!A='1E71VX?AE;NT@8F5R92!NX7IV>5QN(@HB("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("`@('-O=6)OF4@EN82P@>F%KX7KA;F\@+4-<;B(*(B`@("`@("TM97AC;'5D93U6 M6D]214L@("`@("`@("!N97!R86-U:F4@2!O9'!O=NUD86KM M8^T@5EI/4DMU7&XB"B(@("U8+"`M+65X8VQU9&4M9G)O;3U33U5"3U(@("`@ M;F5POD@<&]UOFEJ92!S;W5B;W)Y+%QN(@HB("`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@(&YA(&MT97+I(&]D:V%Z>2!U:V%Z=6KM7&XB M"B(@("`@("`M+6YO+7)E8W5R7-T96T@("`@("`@('#X M:2!V>71VX?AE;NT@87)C:&EV=2!Z^7-T86YE('8@:F5D;F]M7&XB"B(@("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@7-TZ6UU M7&XB"B(@("U++"`M+7-T87)T:6YG+69I;&4]2DW)3D\@("`@>F'H;F4@;V0@ MF4@2!N M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+68@+22!O;F4@;V8@=&AE(&`M06-D=')U>"<@;W!T M:6]NF%D870@:F5D96X@>B!P^&5P[6YAZ/D@ M8"U!8V1T&ET(&1E;&%Y960@9G)O;2!P6)A(@H*(SH@GIY+"!C+69O71E("5S(')E861I;F<@)6QU(&)Y=&5S(&EN(&9I;&4@)7,B"FUS9W-TGDL(&,M9F]R;6%T"FUS9VED M("(E2!T:&ES(&AE;'`@86YD(&5X:71<;B(*(B`@ M("`@("TM=F5RCY+"!JCY M+EQN(@HB7&XB"B(@("UL+"`M+69I;&4M;&5N9W1H("`@("!DZ6QK82!G96YE MFYAZ&5N[2!V97)Z92!A('-K;V[H[5QN M(@H*(SH@=&5S=',O9V5N9FEL92YC.C$S-`HC+"!C+69OFYAZ&[] M('9Z;W)E:R!@)7,G(@H*(SH@=&5S=',O9V5N9FEL92YC.C$S.`HC+"!C+69O MF]R96L@8"5S)R(*"B,Z('1E7)I9VAT("A#*2`Q.3DU+"`Q.3DV+"`Q.3DW($9R M964@4V]F='=A7)I9VAT("A#*2`Q.3DU+"`Q.3DV+"`Q.3DW($9R964@4V]F='=A MF%P M<^%N;R`E9"Y<;B(*"B-^(&US9VED("(E9"!A="`E9%QN(@HC?B!MFEC92`E9"!V("5D(/IS96MU7&XB"B!A ` end SHAR_EOF $shar_touch -am 0705001199 'tar-1.13/po/cs.po' && chmod 0664 'tar-1.13/po/cs.po' || $echo 'restore of' 'tar-1.13/po/cs.po' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/cs.po:' 'MD5 check failed' d36a7831693965383d2b2525273c34af tar-1.13/po/cs.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/cs.po'`" test 46645 -eq "$shar_count" || $echo 'tar-1.13/po/cs.po:' 'original size' '46645,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/de.po ============== if test -f 'tar-1.13/po/de.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/de.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/de.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/de.po M(R!'97)M86X@;65S7)I9VAT("A# M*2`Q.3DU+"`Q.3DV($9R964@4V]F='=A'0O<&QA:6X[(&-H87)S970]:7-O+3@X-3DM,5QN(@HB0V]N=&5N M="U4GIY+"!C+69O2P@8RUF;W)M870*;7-G:60@(F%M8FEG=6]U2!T;R!P=70@7-T96UF96AL97(N(@H* M(SH@;&EB+V=E=&]P="YC.C8W-PHC+"!C+69OGDL(&,M9F]R;6%T"FUS9VED("(EGDL(&,M9F]R;6%T M"FUS9VED("(E2P@8RUF;W)M870*;7-G:60@(B5S.B!O M<'1I;VX@8"5S)R!R97%U:7)EF5D(&]P=&EO;B!@+2TEGIY+"!C+69O2P@8RUF;W)M870*;7-G:60@(B5S.B!O<'1I;VX@8"U7("5S M)R!D;V5S;B=T(&%L;&]W(&%N(&%R9W5M96YT7&XB"FUS9W-T&ET:6YG('=H96X@ M;65M;W)Y(&ES(&5X:&%U&UA;&QO8RYC.C8V('-R8R]C;VUP87)E+F,Z,S$V('-R8R]I;F-R M96UE;BYC.C8X,R!SG4@4W1A;F1AG5R(%-T86YD87)D+45I;F=A M8F4N(@H*(SH@G4@4W1A;F1AG5R(%-T86YD M87)D+45I;F=A8F4N(@H*(RX@4')E<&%R92!F;W(@=6YB;&]C:VEN9R!T:&4@ M9&%T82!FG5M($MO;7!R97-S:6]N MGIY+"!C+69OF5<(BXB"@HC($5I;B!0GDL(&,M M9F]R;6%T"FUS9VED(")/;FQY('=R;W1E("5L=2!O9B`E;'4@8GET97,@=&\@ M)7,B"FUS9W-T2!E'1R86-T+F,Z.30V"B,L(&,M9F]R;6%T"FUS9VED(")2 M96%D:6YG("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("`@("`@("`@("`@("`@('=R:71E(&$@4$]325@@8V]N9F]R;6%N="!AFEP("`@("`@("`@("`@("`@ M9FEL=&5R('1H92!AFEPJR!K;VUPF5P=&EE'1R86-T(&]R(&-R96%T92!F&-L=61E/5!! M5%1%4DX@("`@("`@(&5X8VQU9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I M;F<@4$%45$523EQN(@HB("`M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@ M(&5X8VQU9&4@9VQO8F)I;F<@<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(* M(B`@+5`L("TM86)S;VQU=&4M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L M96%D:6YG(&`O)W,@9G)O;2!F:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL M:6YK2!I;B`B"B)D:7)E M8W1O7-T96T@("`@("`@('-T M87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C3U615):14E#2$Y)4R`@>G4@5D526D5)0TA.25,@=V5C:'-E;&Y< M;B(*(B`@+50L("TM9FEL97,M9G)O;3U$051%22`@("`@("!.86UE;B!D97(@ M>G4@8F5AF5U9V5N($1A=&5I2!S=&]R92!F:6QE M5QN(@HB("`@("`@+2UA9G1EF5I M9V5N('5N9""K=&%RNR!B965N9&5N7&XB"B(@("`@("`M+79E71E&ES=&EN9R`@(&YU;6)E"2!I;7!L96UE;G1E9"P@9&]N)W0@8V]U;G0@;VX@:70@ M>65T+EQN(@HB05)#2$E612!M87D@8F4@1DE,12P@2$]35#I&24Q%(&]R(%53 M15)`2$]35#I&24Q%.R!A;F0@1DE,12!M87D@8F4@82!F:6QE7&XB"B)O2!N;W0@2!M;W)E('1H86X@ M;VYE(&`M06-D=')U>"<@;W!T:6]N(@IMG0@8F5I("2`M+71O=6-H M(@IMG0@9'5R8V@@)RTM M=&]U8V@G+B(*"B,Z('-R8R]T87(N8SHV.#<*;7-G:60@(DUO2`M+6%BG0@9'5R8V@@)RTM86)S;VQU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GIY+"!C+69O2!T;R!P=70@GIY+"!C+69O2P@8RUF;W)M M870*;7-G:60@(B5S.B!O<'1I;VX@8"5C)7,G(&1O97-N)W0@86QL;W<@86X@ M87)G=6UE;G1<;B(*;7-G2P@8RUF;W)M870*;7-G:60@(B5S.B!O M<'1I;VX@8"5S)R!R97%U:7)E2P@8RUF;W)M870*;7-G:60@(B5S.B!O<'1I;VX@GIY+"!C+69O&ET:6YG('=H96X@;65M;W)Y M(&ES(&5X:&%U&UA;&QO8RYC.C8V('-R8R]C;VUP87)E+F,Z,S$V('-R8R]I;F-R96UE;BYC M.C8X,R!S71E71E6$N($5S;R!S92!H86-E(&5N(&QOF$N"B,@16IE;7!L;R!D92!P86QI>F$Z(")T=6)E?IS8W5L82!I;FEC:6%L+"!Y('!A%S M(&-L87)O+B"_97,@9&5M87-I861O(&QI8G)E(&QA('1R861U8V-I\VX_('-V M"B,@OT=E'!R97-A9&\N($UE(&=U MO-N+B!%GDL(&,M9F]R;6%T"FUS9VED M(")771E M2!U;B!M;VYT\VX@9&4@(F-A;FYO=")S M+@HC($YO(&-R96\@<75E(&AA>6$@<75E('-EF%R(&%R8VAI M=F]S(&UU;'1I=F]L=6UE;B!C;VUPF%R(&%R8VAI=F]S(&-O;7!R:6UI9&]S(@H*(R!&25A- M13H@4VD@;&$@96YTD@96P*(R!O%S(&-O;6\Z"B,@(DYO M('-E('!U961E('9EGDL(&,M9F]R M;6%T"FUS9VED(")/;FQY('=R;W1E("5L=2!O9B`E;'4@8GET97,@=&\@)7,B M"FUS9W-T71E2!E2P@8RUF M;W)M870*;7-G:60@(B5S(&ES('1H92!W%G:6-A('%U92!S96$@;65J;W(@<75E(&QA2P@8RUF;W)M870*;7-G:60@(E)E8V]R M9"!S:7IE(#T@)6QU(&)L;V-KB!D92!%3T8N('-V"B,*(R!396?Z;B!G86<@>2!J;62!Q=64@9&5C:7(Z(")N;R!EB!E;"!OGDL(&,M9F]R;6%T"FUS9VED(")/;FQY M(')E860@)6QU(&)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-G:60@(D-O=6QD(&YO M="!A;&QO8V%T92!M96UO71E M71E2P@ M8RUF;W)M870*;7-G:60@(D-O=6QD(&]N;'D@'1R86-T+F,Z,S,U('-R8R]E M>'1R86-T+F,Z-C0T('-R8R]L:7-T+F,Z,SDX"B,Z('-R8R]L:7-T+F,Z,3`S M-`IM'!E8W1E9"!%3T8@;VX@87)C:&EV92!F:6QE(@IMGIY+"!C+69O&ES="(*;7-GEN('!O9'+M80HC(",@2!N;R!L;R!Q=64@:&$@:&5C M:&\N('-V"B,@1DE8344N($1E8VER;&4@86P@875T;W(@<75E(&5S=&%N9&%R M:6-E(&QAF\@96X@;&$@=')A9'5C8VGS;BX*(SH@7!E M("'!A;F1E(&$@=6YA"B,@;W)A8VGS;B!C M;VUP;&5T82XN(+]0;W(@<77I/R!$96)E%S(&-OF4@9&EF9F5RF%D;R!O(&YO(&QO M(&5S=.$L('-I;F\@2(*;7-G#TE M#TE2P@8RUF;W)M M870*;7-G:60@(E=R;W1E("5S(&]F("5S(&)Y=&5S('1O(&9I;&4@)7,B"FUS M9W-T71E2P@8RUF M;W)M870*;7-G:60@(FQS965K(&5R65N M9&\@)60@8GET97,@96X@9FEC:&5R;R`E0HC(&]T M2P@8RUF;W)M870*;7-G:60@(E)E860@97)R M;W(@870@8GET92`EF-O('%U92!L82!T6$*(R!H82!H M96-H;RX@3FD@GIY+"!C+69O71E&%C=&%M96YT92!L;R!Q=64@97-TX2!E MGIY+"!C M+69O71EEN(&5L(")EDN($)I96X@<&]D'0@:&5A9&5R(@IM2P@8RUF;W)M M870*;7-G:60@(B5S.B!#86YN;W0@8VAA;F=E(&UO9&4@=&\@)3`T;&\B"FUS M9W-T2!GGDL(&,M9F]R;6%T"FUS9VED M("(E'1R86-T+F,Z,C4R"B,L(&9U>GIY+"!C+69O'1R86-T+F,Z,S0Q"B,L(&,M9F]R M;6%T"FUS9VED("(E2P@8RUF;W)M870*;7-G:60@(B5S.B!#;W5L9"!O;FQY('=R:71E M("5S(&]F("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1R86-T M:6YG(&9I;&5S('=I=&@@=&AE('-A;64@;W=N97)S:&EP7&XB"B(@("`@("`M M+6YU;65R:6,M;W=N97(@("`@("`@("`@86QW87ES('5S92!N=6UB97)S(&9O M'1R M864@=&]D82!L82!I;F9OB!D92!L M82!E<75I2!D5QN(@HB("`M32P@+2UM=6QT:2UV;VQU;64@("`@("`@ M("`@("`@8W)E871E+VQI"`Q,#(T(&)Y=&5S7&XB"B(@("U& M+"`M+6EN9F\MF$@96P@87)C M:&EV;R!O(&1I%S(&QA"YE2!C2!S96=U:7(@96X@ M;&$@;W)T;V1O>&EA(&-A71E71EF5R;W,@("`@("`@("`@ M("`@:6=N;W)E('IE2!U;F$@15A04D5' M(&5S('%U90HC(&5L('!R:6UE+"`D+"`N M+"`J+"!E=&,N"B,Z('-R8R]T87(N8SHS,S8*;7-G:60@(B(*(EQN(@HB07)C M:&EV92!F;W)M870@FEP7&XB"B(@ M("U:+"`M+6-O;7!R97-S+"`M+75N8V]M<')EF$@=6Y<;B(*(B`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@("!00512TTY<;B(*(B`@+6\L("TM;VQD+6%R8VAI=F4L("TM<&]R M=&%B:6QI='D@("!EBP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1R82!E;"!A'1R865R(B!ET@;64@'1R86-T(&]R M(&-R96%T92!F&-L=61E/5!!5%1%4DX@("`@ M("`@(&5X8VQU9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@4$%45$52 M3EQN(@HB("`M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@(&5X8VQU9&4@ M9VQO8F)I;F<@<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@+5`L("TM M86)S;VQU=&4M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L96%D:6YG(&`O M)W,@9G)O;2!F:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL:6YK2!I;B`B"B)D:7)E8W1O7-T96T@("`@("`@('-T87D@:6X@;&]C M86P@9FEL92!S>7-T96T@=VAE;B!C&-L=61E+69R;VT]05)#2$E63R`@97AC;'5Y M92!P871R;VYE%T M:6-A;65N=&4@96X@(@HB9&ER96-T;W)I;W-<;B(*(B`@+6PL("TM;VYE+69I M;&4M'!L:6-A('5N('!O M8V\@;>%S(&QA%S(')E8VEE;G1E2!H;W)A(&5N('%U92!L;W,@9&%T;W,@(@HB8V%M8FEA#U3549&25@@("`@("`@("`@8F%C:W5P M(&)E9F]R92!R96UO=F5L+"!O=F5R71E2!L:7-T(&9I;&5S('!R;V-E2!A8W1I;VY<;B(*(B`@("`@("TM8V]N9FER M;6%T:6]N("`@('-A;64@87,@+7=<;B(*;7-GF%<;B(*(B`@("`@+2UV97)S M:6]N("`@("`@("!I;F9O2!F:6YA;&EZ85QN M(@HB("UV+"`M+79E71E2!D92!A8W5E"!I"!O7,@;6%K92!S:6UP;&4@8F%C:W5P&ES=&EN9R`@(&YU;65R861A('-I(&5X:7-T96X@8V]P:6%S M(&1E('-E9W5R:61A9"!N=6UET@97-T;WD@;>%S('!E2!S8W)I<'0I+B!G86<*(SH@ M"2!I;7!L96UE;G1E9"P@9&]N)W0@8V]U;G0@;VX@:70@>65T+EQN(@HB M05)#2$E612!M87D@8F4@1DE,12P@2$]35#I&24Q%(&]R(%5315)`2$]35#I& M24Q%.R!A;F0@1DE,12!M87D@8F4@82!F:6QE7&XB"B)O'1E;G-I;VYE M"2!#:65N8VEA(BX*(R!%F]N97,@:&ES=/-R:6-AB!A^FXL(+]N;S\@4&5R;R!O8G-E2!N;W0@2!M;W)E('1H86X@;VYE M(&`M06-D=')U>"<@;W!T:6]N(@IMT* M(R!S97+M82`B:6UP;&EE9"!B>2(M/B)I;7!L:6-A9&$@<&]R(BP@;R!M;V1I M9FEC87(@;&\@;W1R;RX@:FUG"B,@4&5R;R!E2`M+6)L;V-K:6YG+69A8W1OF%D;R]A(&5L(&YO;6)R92!O M(&QA(&]P8VG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87)A:F\A(B!8+40@17-O('-E('5T:6QI>F$@96X@ M0V]L;VUB:6$L($WI>&EC;R!Y(&]T2!M;V-H92P@>2!C%S(&YE=71R;W,*(R!Y(&-UGDL(&,M9F]R;6%T M"FUS9VED("(E6$@=&5L82$I(@H*(R!!8V5P=&\@2P@=&AE;B!I="!IF%<;B(*"B,Z('1E%L(&5S(&5L('!R;V)L96UA/PHC($5S('!R;VYT;R!P87)A(&5S;RX@&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/es.po:' 'MD5 check failed' db640be1089c369ec2958af2a4dcf6af tar-1.13/po/es.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/es.po'`" test 76252 -eq "$shar_count" || $echo 'tar-1.13/po/es.po:' 'original size' '76252,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/fr.po ============== if test -f 'tar-1.13/po/fr.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/fr.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/fr.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/fr.po M(R!-97-S86=E7!E.B!T97AT+W!L86EN M.R!C:&%RGDL(&,M9F]R;6%T"FUS9VED(")I;G9A;&ED(&%R9W5M96YT(&`EGIY+"!C+69O6YO;GEM6YO;GEM7-TZ&UE M(&EN8V]N;G5E+B(*"B,Z(&QI8B]G971O<'0N8SHV-S<*(RP@8RUF;W)M870* M;7-G:60@(B5S.B!O<'1I;VX@8"5S)R!IGIY+"!C+69OGIY+"!C+69OGDL(&,M9F]R;6%T"FUS9VED("(EAT2P@8RUF;W)M870*;7-G:60@(B5S.B!O<'1I;VX@GDL(&,M9F]R;6%T"FUS9VED("(E M2!I&AA=7-T M960N("!';V5S('1H2!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X"`E M.EC=71E MAR96YT('1O=71E"!L)V5N M='+I92!S=&%N9&%R9"XB"@HC.B!S2P@=&AE;B!I="!I2!F;W(@;W!T:6]N M86P@87)G=6UE;G1S+EQN(@IM2!I;B!A"!F:6-H:65R2`@("`@("`@("`@("`@(&%T=&5M M<'0@=&\@=F5R:69Y('1H92!A&ES=&EN9R!F M:6QE'1R86-T:6YG M(&]V97(@:71<;B(*(B`@("`@("TM5QN(@HB("`M3RP@+2UT;RUS=&1O=70@ M("`@("`@("`@("!E>'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=%QN M(@HB("`M1RP@+2UI;F-R96UE;G1A;"`@("`@("`@("!H86YD;&4@;VQD($=. M52UF;W)M870@:6YC"!F;W)M M871S($=.52!D)V%R8VAI=F5<;B(*(B`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@:6YC6UB;VQI8RD@;6]D92!#2$%.1T53(&9OIM92!P'1R86ER92!T;W5T92!L M)VEN9F]R;6%T:6]N(&1E('!R;W1E8W1I;VY<;B(*(B`@("`@("TM<')EER;R!D92!V M;VQU;65<;B(*(B`@("`@("`@("`@("`@("`@("`@("`@("`@("`@9&%N71EF5R;W,@("`@("`@("`@("`@:6=N;W)E('IENER;W,@9&4@;"=A M2`@('=R:71E(&$@5C<@9F]R;6%T(&%R8VAI M=F5<;B(*(B`@("`@("TM<&]S:7@@("`@("`@("`@("`@("`@("`@("`@("!W MBP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E'1R86-T:6]N7&XB"B(@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@(&1E(&9I8VAI97)S7&XB"B(@ M("UO+"`M+6]L9"UAFEP("`@("`@('!O2!I;B!L;V-A;"!F:6QE('-Y#U3549&25@@("`@("`@ M("`@8F%C:W5P(&)E9F]R92!R96UO=F5L+"!O=F5R=A;G1<;B(*(B`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@("!P87(@;&4@4U5&1DE812!L M92!S=69F:7AE('5S=65L7&XB"@HC.B!S&ET7&XB"B(@("`@ M("`M+79E&ET7&XB"B(@("UV+"`M+79E2!N86UE71EER;R!D M92!B;&]C(&-O;G1E;G4@9&%N&ES=&EN9R`@(&YU;6)EER;W1E7!E('-I;7!L95QN(@H*(SH@"2!I;7!L96UE;G1E9"P@9&]N M)W0@8V]U;G0@;VX@:70@>65T+EQN(@HB05)#2$E612!M87D@8F4@1DE,12P@ M2$]35#I&24Q%(&]R(%5315)`2$]35#I&24Q%.R!A;F0@1DE,12!M87D@8F4@ M82!F:6QE7&XB"B)O"2`M+6)L;V-K:6YG+69A8W1OAT92!R96UP;&%CZ64@<&%R("TM8FQO8VMI M;FAT92!R96UP;&%C MZ64@<&%R("TMAT92XB"@HC.B!SET86ER92!I;G9A;&ED92!D;VYNZ2!E;B!O<'1I M;VXB"@HC.B!SGIY"FUS9VED("));G9A;&ED M(')E8V]R9"!S:7IE(@IM0IM M7)I9VAT(*D@,3DX."P@.3(L M(#DS+"`Y-"P@.34L(#DV($9R964@4V]F='=A2!&96YL87-O;BY<;B(*"B,Z('-R8R]T87(N8SHQ,#,Q"FUS9VED(")' M3E4@9F5A='5R97,@=V%N=&5D(&]N(&EN8V]M<&%T:6)L92!A2!R969U2!O;F4@;V8@=&AE(&`M06-D=')U>"<@;W!T:6]N65D(&9R;VT@<')E=FEO=7,@97)R;W)S(@IMGDL(&,M9F]R;6%T"FUS9VED(")296%D(&5R M2P@8RUF;W)M870*;7-G:60@ M(B5S.B!&:6QE('-H2`E71E2P@=&AE M;B!I="!IEM;VER95QN(@HB("`@("`@+2UV97)S:6]N("`@("`@ M("`@869F:6-H97(@;&4@;F]M(&5T(&QA('9E7)I9VAT("A#*2`Q.3DU+"`Q.3DV+"`Q.3DW($9R964@4V]F M='=A7)I9VAT(*D@,3DY-2P@,3DY-BP@,3DY-R!&&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/fr.po:' 'MD5 check failed' 0dd85b9b2e1f4b7f60cbddbadc96e135 tar-1.13/po/fr.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/fr.po'`" test 50653 -eq "$shar_count" || $echo 'tar-1.13/po/fr.po:' 'original size' '50653,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/it.po ============== if test -f 'tar-1.13/po/it.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/it.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/it.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/it.po M(R!-97-S86=G:2!I;B!)=&%L:6%N;R!P97(@1TY5('1A"YI="P@,3DY."X*(PIM7!E.B!T97AT+W!L M86EN.R!C:&%RGDL(&,M9F]R;6%T"FUS9VED(")I;G9A;&ED(&%R9W5M96YT(&`E2P@8RUF M;W)M870*;7-G:60@(F%M8FEG=6]UGDL M(&,M9F]R;6%T"FUS9VED("(EGDL(&,M9F]R;6%T"FUS9VED("(E2P@8RUF;W)M870*;7-G:60@(B5S.B!O<'1I;VX@8"5S)R!R97%U:7)EF5D(&]P=&EO;B!@+2TEGIY+"!C+69O2P@8RUF;W)M870* M;7-G:60@(B5S.B!O<'1I;VX@8"U7("5S)R!D;V5S;B=T(&%L;&]W(&%N(&%R M9W5M96YT7&XB"FUS9W-T&ET:6YG('=H96X@;65M;W)Y(&ES(&5X:&%U&UA;&QO8RYC.C8V('-R M8R]C;VUP87)E+F,Z,S$V('-R8R]I;F-R96UE;BYC.C8X,R!S71EGDL(&,M M9F]R;6%T"FUS9VED(")771E2!M=6QT:2UV;VQU;64@87)C:&EV97,B"FUS9W-T2!C;VUPGIY+"!C+69O2!WFEO(&1E;"!N87-T'1R86-T+F,Z.30V"B,L(&,M9F]R;6%T"FUS9VED(")296%D:6YG M("5S7&XB"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F5W97(@=&AA;B!C;W!Y(&EN(&%R8VAI=F5<;B(*(B`@ M+4$L("TM8V%T96YA=&4@("`@("`@("`@87!P96YD('1A7-T96U<;B(*(B`@+7(L("TM87!P96YD("`@("`@ M("`@("`@86-C;V1A(&D@9FEL92!A;&QA(&9I;F4@9&D@=6X@87)C:&EV:6]< M;B(*(B`@+74L("TM=7!D871E("`@("`@("`@("`@86-C;V1A('-O;&\@:2!F M:6QE('!I^2!N=6]V:2!D96QL82!C;W!I82!I;B`B"B)A2!T:&4@87)C:&EV92!A9G1E M2!PF5R;R!C;VX@9FEL92!I;&QE9V=I8FEL:5QN(@H*(SH@6UB;VQI8RD@;6]D92!#2$%.1T53(&9OF$@:6P@ M;6]D;R`H71E"`U,3(@8GET97,@<&5R(')E8V]R M9%QN(@HB("`@("`@+2UR96-O71EF5R;W,@("`@("`@("`@("`@:6=N;W)A(&)L;V-C:&D@87IZ97)A=&D@;F5L M(&%R8VAI=FEO7&XB"B(@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`H0IM2`@('=R:71E(&$@5C<@9F]R;6%T(&%R8VAI=F5<;B(*(B`@ M("`@("TM<&]S:7@@("`@("`@("`@("`@("`@("`@("`@("!WBP@+2UG>FEP+"`M+75N M9WII<"`@("`@("`@("`@("`@(&9I;'1E"`@("`@("`@("`@("`@("`@("`@("`@('-C'1R M86-T(&]R(&-R96%T92!F&-L=61E/5!!5%1% M4DX@("`@("`@(&5X8VQU9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@ M4$%45$523EQN(@HB("`M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@(&5X M8VQU9&4@9VQO8F)I;F<@<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@ M+5`L("TM86)S;VQU=&4M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L96%D M:6YG(&`O)W,@9G)O;2!F:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL:6YK M2!I;B`B"B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"B,Z('-R8R]T87(N8SHX.#@*(RP@8RUF;W)M M870*;7-G:60@(E)E8V]R9"!S:7IE(&UU0IM7)I M9VAT("A#*2`Q.3@X+"`Y,BP@.3,L(#DT+"`Y-2P@.38L(#DW($9R964@4V]F M='=A6EN9R!C;VYD:71I;VYS+B`@5&AEFEO;F4@ M8"U-)R(*"B,Z('-R8R]T87(N8SHQ,#8R"FUS9VED(")#;W=A2!R969U MFEO;FD@8"U!8V1T&ET(&1E;&%Y960@9G)O;2!PGDL(&,M9F]R;6%T"FUS9VED(")296%D(&5R71E+"`H86-C:7!I8V-H:6$A*2(*"B,Z('1E2!T:&ES(&AE;'`@86YD(&5X:71<;B(*(B`@("`@ M("TM=F5R&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/it.po:' 'MD5 check failed' 28a13a0be6773c362272996961a1ebfc tar-1.13/po/it.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/it.po'`" test 47305 -eq "$shar_count" || $echo 'tar-1.13/po/it.po:' 'original size' '47305,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/ko.po ============== if test -f 'tar-1.13/po/ko.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/ko.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/ko.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/ko.po M(R!+;W)E86X@;65S4!N;W=N=7)I+FYE=#XL(#$Y.38M,3DY-RX*(PIM M4!N;W=N=7)I+FYE=#Y<;B(*(DQA;F=U86=E+51E86TZ($MOGDL(&,M9F]R;6%T"FUS9VED(")I;G9A;&ED(&%R9W5M M96YT(&`EGDL(&,M9F]R M;6%T"FUS9VED(")A;6)I9W5O=7,@87)G=6UE;G0@8"5S)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F\Q[^A M(+K.L*&UQ[3"(,#.O/:PH2#`UL"[(+:G+"#`S+3"(+6_P,_'T2#`Q[G,P,<@ MPJK`NB"_R;S'OZ&UM5QN(@HBP/N_Z[7+M,^TV2Y<;B(*(EQN(@HB("`M;"P@ M+2UF:6QE+6QE;F=T:#VQYL#,("`@(""[_;RZM<>TPB#&Q,#/P,<@L>;`S%QN M(@HB("`M<"P@+2UP871T97)N/<;0Q<\@("`@("`@("#&T,7/P+H@8&1E9F%U M;'0GLZH@8'IETZRD@)63`U+3/M-DN7&XB"B`B ` end SHAR_EOF $shar_touch -am 0705001199 'tar-1.13/po/ko.po' && chmod 0664 'tar-1.13/po/ko.po' || $echo 'restore of' 'tar-1.13/po/ko.po' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/ko.po:' 'MD5 check failed' e1de270df3d4ea93dea3b8c87c97de3f tar-1.13/po/ko.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/ko.po'`" test 42202 -eq "$shar_count" || $echo 'tar-1.13/po/ko.po:' 'original size' '42202,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/nl.po ============== if test -f 'tar-1.13/po/nl.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/nl.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/nl.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/nl.po M(R!$=71C:"!M97-S86=E4!U M;G-E96XN9&5M;VXN;FP^7&XB"B),86YG=6%G92U496%M.B!$=71C:"`\;FQ` M;&DN;W)G/EQN(@HB34E-12U697)S:6]N.B`Q+C!<;B(*(D-O;G1E;G0M5'EP M93H@=&5X="]P;&%I;CL@8VAAGIY+"!C+69OGIY M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L:7-T+F,Z.38P"FUS9VED M("(M+59O;'5M92!(96%D97(M+5QN(@IM2P@8RUF;W)M870* M;7-G:60@(BTM0V]N=&EN=65D(&%T(&)Y=&4@)7,M+5QN(@IM6UB;VQIGIY M+"!C+69OGDL(&,M9F]R;6%T"FUS9VED("(E2P@8RUF;W)M870*;7-G:60@ M(B5S.B!#86YN;W0@2P@8RUF;W)M870*;7-G:60@(E)E;F%M:6YG(&`E&5C+W1C<#H@1&EE;G1S(&YI M970@8F5S8VAI:V)A87(B"@HC.B!S2!@)7,@+2UH96QP)R!F;W(@;6]R92!I;F9O"P@+2UE>'1R86-T+"`M+6=E="`@("!E>'1R86-T(&9I;&5S(&9R M;VT@86X@87)C:&EV95QN(@HB("`M8RP@+2UC"P@+2UE>'1R86-T+"`M M+6=E="`@("!E>'1R86AE97(@8F5S=&%N9&5N('5I="!E96X@87)C:&EE9EQN M(@HB("`M8RP@+2UC2!H:65R M87)C:&EE'1R86-T:6YG("(*(F1I5QN(@HB M("`M4RP@+2US<&%RMR96Y<;B(*(B`@("`@("TM'1R86-T:65< M;B(*(B`@+54L("TM=6YL:6YK+69I'1R86AE97)D('=O MF5L9G,@:&5L92!L96=E(&UA<'!E;EQN(@HB("`@("`@ M+2UR96-UMN(&QE96<@ M=F]O'1R86-T:65<;B(*(B`@+5,L("TM6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86AE M97(@;6]D:69I8V%T:64@=&EJ9"!N:65T7&XB"B(@("`@("`M+7-A;64M;W=N M97(@("`@("`@("`@("`@<')O8F5E'1R86AE'1R M86AE71E'1R86AE97(@ M;65E"`U,3(@8GET97,@<&5R M(')E8V]R9%QN(@HB("`@("`@+2UR96-O71E"`U,3(@8GET97,@<&5R(')E8V]R9%QN(@HB("`@("`@+2UR M96-O71E2`@('=R:71E M(&$@5C<@9F]R;6%T(&%R8VAI=F5<;B(*(B`@("`@("TM<&]S:7@@("`@("`@ M("`@("`@("`@("`@("`@("!WBP@+2UG>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@ M(&9I;'1E2!I;B!L;V-A;"!F:6QE('-Y&-L=61E/5!!5%)/3TX@("`@("!S;'5I="!B97-T86YD96X@=6ET+"!G96=E M=F5N(&%L6UL:6YKFEG9&4@(@HB M9&%T85QN(@HB("`@("`@+2UA9G1E#U3549&25@@("`@("`@("`@8F%C:W5P(&)E9F]R92!R96UO=F5L+"!O=F5R M#U3549&25@@("`@ M("`@(&)A8VMU<"!V;V]R('9E&ET7&XB"B(@("`@("`M+79E M&ET7&XB"B(@("UV+"`M+79E2!N86UE71EF5N(&%R8VAI969<;B(* M(B`@("`@("TM=&]T86QS("`@("`@("`@('1O;VX@86%N=&%L(&=EF5L9F1E(&%L"!I M"!O7,@;6%K92!S:6UP;&4@8F%C:W5PFEJ(&EN9V5S=&5L9"!M970@+2US=69F:7@@;V9<;B(*(E-) M35!,15]"04-+55!?4U5&1DE8+EQN(@HB2&5T('9EFEJ;CI<;B(*(EQN(@HB("!T+"!N=6UB97)E M9"`@("`@;6%A:R!G96YU;6UE&ES M=&EN9R`@(&=E;G5M;65R9"!A;',@9V5N=6UM97)D92!B86-K=7!S(&)E"2!I;7!L96UE;G1E M9"P@9&]N)W0@8V]U;G0@;VX@:70@>65T+EQN(@HB05)#2$E612!M87D@8F4@ M1DE,12P@2$]35#I&24Q%(&]R(%5315)`2$]35#I&24Q%.R!A;F0@1DE,12!M M87D@8F4@82!F:6QE7&XB"B)OF5T(&%L]M<&QE M;65N=&5EFEJ;B!O9B!E96X@87!P87)A870N7&XB"B(J1&5Z92H@8'1A2!N;W0@2!M;W)E('1H86X@;VYE(&`M06-D=')U M>"<@;W!T:6]N(@IM2`M+7)E860M9G5L;"UR96-O2`M+6%B2`M+6)L;V-K+6YU M;6)EGIY"FUS9VED("));G9A;&ED(')E8V]R9"!S:7IE M(@IMF4G M(@H*(SH@F4@;75S="!B92!A(&UU;'1I<&QE(&]F("5D+B(*;7-G0IM7)I9VAT("A#*2`Q.3@X+"`Y,BP@.3,L(#DT M+"`Y-2P@.38L(#DW($9R964@4V]F='=AFEJ;B!N:65T('5I='=I2P@ M8RUF;W)M870*;7-G:60@(E)E860@97)R;W(@870@8GET92`E71E71E("5L9"!L97IE;F1E("5D(&)Y=&5S(&EN(&)EGDL(&,M9F]R;6%T"FUS9VED("(E2!T:&ES(&AE;'`@86YD(&5X:71< M;B(*(B`@("`@("TM=F5RFEJ;B!O;VL@=F5R M<&QI8VAT(&)I:B!K;W)T92`B"B)O<'1I97,N7&XB"B)<;B(*(B`@+6PL("TM M9FEL92UL96YG=&@@("`@(&QE;F=T92!V86X@:&5T(&=E9V5N97)E97)D92!B M97-T86YD7&XB"B(@("UP+"`M+7!A='1EF5R;W,G7&XB"B(@("`@("`M+6AE;'`@("`@("`@ M("`@("!T;V]N(&AU;'`M=&5KF4B"B-^(&US9W-T2!O&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/nl.po:' 'MD5 check failed' a29cc1ab7e66f0159aab6b1e3f3e2b23 tar-1.13/po/nl.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/nl.po'`" test 48210 -eq "$shar_count" || $echo 'tar-1.13/po/nl.po:' 'original size' '48210,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/no.po ============== if test -f 'tar-1.13/po/no.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/no.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/no.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/no.po M(R!.;W)W96=I86X@;65S5L(&1I M86QE8W0I"B,@0V]P>7)I9VAT("A#*2`Q.3DV($9R964@4V]F='=A6=A M'0O<&QA:6X[(&-H87)S970]25-/+3@X-3DM,5QN(@HB0V]N M=&5N="U42P@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]R;6%T M"FUS9VED(")B;&]C:R`E2P@8RUF;W)M870*;7-G:60@(D]N M;'D@=W)O=&4@)6QU(&]F("5L=2!B>71E71E'!E8W1E9"(*;7-G2P@8RUF;W)M870*;7-G:60@(F)L;V-K("5S.B`B M"FUS9W-TGIY+"!C+69O71E("5L9"TM7&XB"@HC.B!S6UB;VQI2P@8RUF;W)M870*;7-G:60@(E)E;F%M:6YG('!R M979I;W5S(&`EGDL(&,M9F]R;6%T"FUS9VED("(E MGDL(&,M9F]R;6%T"FUS9VED("(EGIY+"!C+69O2`E6QD:6<@:V]M M;6%N9&\B"@HC.B!S2P@=&AE M;B!I="!I2!I;B!A65R92!E;FX@9&4@:2!A2`@("`@("`@("`@("`@(&%T=&5M<'0@=&\@ M=F5R:69Y('1H92!A&ES=&EN9R!F:6QE5QN(@HB("`M3RP@+2UT;RUS=&1O=70@("`@("`@ M("`@("!E>'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=%QN(@HB("`M M1RP@+2UI;F-R96UE;G1A;"`@("`@("`@("!H86YD;&4@;VQD($=.52UF;W)M M870@:6YC2!E>'1R86-T M:6YG(&9I;&5S('=I=&@@=&AE('-A;64@;W=N97)S:&EP7&XB"B(@("`@("`M M+6YU;65R:6,M;W=N97(@("`@("`@("`@86QW87ES('5S92!N=6UB97)S(&9O M64@9FEL97)<;B(*(B`@("`@("TM871I M;64M<')E2!D5QN(@HB("`M32P@+2UM=6QT:2UV;VQU;64@("`@("`@("`@("`@8W)E871E M+VQI"`Q,#(T(&)Y=&5S7&XB"B(@("U&+"`M+6EN9F\MF4]4TE:12`@("`@("`@(%-)6D4@8GET97,@<&5R(')E8V]R9"P@;75L=&EP M;&4@;V8@-3$R7&XB"B(@("UI+"`M+6EG;F]R92UZ97)OF5R;V5D(&)L;V-K"`U,3(@8GET97-<;B(*(B`@("`@("TMF4]4U384E)%3%-% M("`@(%-4V%)214Q312!B>71EF5R;W,@("`@("`@("`@("`@:6=N;W+I M2`@('=R:71E(&$@5C<@9F]R;6%T(&%R M8VAI=F5<;B(*(B`@("`@("TM<&]S:7@@("`@("`@("`@("`@("`@("`@("`@ M("!WBP@ M+2UG>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E2`@(&QA9R!E M="!A"`@("`@("`@ M("`@("`@("`@("`@("`@(&QA9R!E="!03U-)6"UK;VYF;W)M="!ABP@+2UG>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@('-E;F0@ M87)K:79E="!G:F5N;F]M(&=Z:7!<;B(*(B`@+5HL("TM8V]M<')E'1R86-T(&]R(&-R96%T M92!F&-L=61E/5!!5%1%4DX@("`@("`@(&5X M8VQU9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@4$%45$523EQN(@HB M("`M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@(&5X8VQU9&4@9VQO8F)I M;F<@<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@+5`L("TM86)S;VQU M=&4M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L96%D:6YG(&`O)W,@9G)O M;2!F:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL:6YK2!I;B`B"B)D:7)E8W1O7-T96T@("`@("`@('-T87D@:6X@;&]C86P@9FEL M92!S>7-T96T@=VAE;B!C&-L=61E/4W83E-415(@("`@("`@('1A(&EK:V4@;65D M(&9I;&5R("AT:6QL871T(&UE9"!J;VME2!L:7-T(&9I;&5S M('!R;V-E2!A8W1I;VY<;B(*(B`@ M("`@("TM8V]N9FER;6%T:6]N("`@('-A;64@87,@+7=<;B(*;7-G2!B92!S970@ M=VET:"`M+6)A8VMU<"!O&ES="P@"2!I;7!L96UE;G1E9"P@9&]N)W0@8V]U;G0@;VX@:70@>65T+EQN M(@HB05)#2$E612!M87D@8F4@1DE,12P@2$]35#I&24Q%(&]R(%5315)`2$]3 M5#I&24Q%.R!A;F0@1DE,12!M87D@8F4@82!F:6QE7&XB"B)O2`M+71O=6-H(@IM2`M+6%B2`M+6)L;V-K+6YU;6)E6QD:6<@;6]D=7,@9VET="!I(&9L86=G(@H*(SH@ MGD*;7-G:60@(DEN=F%L:60@F4B"FUS9W-TF4B M"@HC.B!S2`J=&AI3L@;F]T(&5V96X@9F]R($U%4D-(04Y404))3$E462!O2!R969U2!O;F4@;V8@=&AE(&`M06-D=')U>"<@;W!T:6]N2P@8RUF;W)M870*;7-G:60@(E)E860@97)R;W(@870@8GET92`E71E71E("5L9"!U;F1EGDL(&,M9F]R;6%T"FUS M9VED("(E6UP970@;65D("5D(&)Y=&5S+"`H^&@A*2(* M"B,Z('1E5QN(@HB9F]R('1H92!E M<75I=F%L96YT('-H;W)T(&]P=&EO;B!A;'-O+EQN(@HB7&XB"B(@("UL+"`M M+69I;&4M;&5N9W1H/4Q%3D=42"`@($Q%3D=42"!O9B!G96YEF5R;W,G7&XB"B(@("`@("`M+6AE;'`@("`@("`@ M("`@("`@("`@(&1I&ET7&XB"B(@("`@ M("`M+79E&ET7&XB"FUS9W-T2!&&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/no.po:' 'MD5 check failed' bea63033bd8d15f5528e9260033e7378 tar-1.13/po/no.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/no.po'`" test 45775 -eq "$shar_count" || $echo 'tar-1.13/po/no.po:' 'original size' '45775,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/pl.po ============== if test -f 'tar-1.13/po/pl.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/pl.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/pl.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/pl.po M(R!0;VQIFU`<&1I+FYE=#XL(#$Y.38M,3DY-RX* M(PIMG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@("`@("`@('5T=_-R>B!N;W=E(&%R8VAI M=W5M7&XB"B(@("UD+"`M+61I9F8L("TM8V]M<&%R92`@('IN86IDO"!R\[]N M:6-E(&UIZF1Z>2!AB!T>6QK;R!P;&EK:2!N;W=S>F4@;FF_(&MO<&EA('<@87)C:&EW=6U<;B(* M(B`@+4$L("TM8V%T96YA=&4@("`@("`@("`@9&^SL6-Z('!L:6MI('1A2!H M:65R87)C:&EE'1R86-T:6YG("(*(F1I5QN M(@HB("`M4RP@+2US<&%R69I:V]W M8>8@87)C:&EW=6T@<&\@>F%P:7-A;FEU7&XB"B(@("`@("`M+7)E;6]V92UF M:6QEF%M87IU M:B!IG!A:V]W86YY;6E<;B(*(B`@+54L M("TM=6YL:6YK+69I2!P;&EK('!R>F5D M('IA;6%Z86YI96T@9V\@(@HBFEALV%J(&5F96MT>7=N:64@;F$@<&QI:V%C:"!R>F%D:VEC M:%QN(@HB("`M3RP@+2UT;RUS=&1O=70@("`@("`@("`@("!R;WIP86MU:B!P M;&EK:2!N82!S=&%N9&%R9&]W92!W>6JV8VEE7&XB"B(@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&)A8VMU<"!P2!W('-T87)Y;2!F M;W)M86-I92!'3E5<;B(*(B`@+6GER;W-T;W=Y('<@;F]W>6T@9F]R;6%C:64@1TY57&XB"B(@ M("`@("`M+6EG;F]R92UF86EL960MB!BL^ID96T@ M:F6_96QI(&YI96-Z>71E;&YE('!L:6MI7&XB"@HC.B!S2!E>'1R86-T:6YG(&9I;&5S('=I=&@@=&AE('-A;64@;W=N97)S:&EP M7&XB"B(@("`@("`M+6YU;65R:6,M;W=N97(@("`@("`@("`@86QW87ES('5S M92!N=6UB97)S(&9O6T@ M<&QI:V]M7&XB"B(@("`@("`M+6%T:6UE+7!R97-EF%P:7-U:B!C M>F%S=2!M;V1Y9BX@S8;9C:6-I96QE;5QN(@HB("`@("`@+2UN=6UE M7=A:B!N=6UEGET:V]W;FEK\WG!A:W5J(&-AL[$@:6YF;W)M86-JZB!O('5P2!D;&$@<&]R\W=N86YI85QN(@HB("`@ M("`@+2UP71EK%D>F7Q.EQN(@HB("`M9BP@+2UF:6QE/4%2 M0TA)5U5-("`@("`@("`@("`@=;]Y:B!P;&EK=2!L=6(@=7)ZL61Z96YI82!! M4D-(25=535QN(@HB("`@("`@+2UF;W)C92UL;V-A;"`@("`@("`@("`@("`@ M<&QI:R!AF%M:6%S="!R7!T(&YA(&MO\6-U('1AMFUY("AWL[%C>F$@ M+4TI7&XB"B(@("`@("`M+6YE=RUV;VQU;64M6HO=6%K='5A;&YI:B!N=6UENJV8VD@=R!03$E+=5QN M(@H*(SH@"`U,3(@8GET97,@<&5R(')E8V]R9%QN(@HB("`@("`@+2UR96-O M71E2!B;&]K\WF5R;W=A;F4@8FQO:VD@*&]Z;F%C>F$@14]&*5QN(@HB("`M0BP@+2UR M96%D+69U;&PMFEE;"!N82!B;&]K:2!C>GET M86JQ8R`H9&QA('!I<&4@(@HB-"XR0E-$*5QN(@H*(SH@2`@('=R:71E(&$@5C<@9F]R;6%T(&%R8VAI M=F5<;B(*(B`@("`@("TM<&]S:7@@("`@("`@("`@("`@("`@("`@("`@("!W MBP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1EGD@=WEP:7-Y=V%N:74OF%P:7-Z M(&%R8VAI=W5M('<@9F]R;6%C:64@5C=<;B(*(B`@("`@("TM<&]S:7@@("`@ M("`@("`@("`@("`@("`@("`@("!Z87!IF=O9&YE('H@ M4$]325@M96U<;B(*(B`@+7HL("TM9WII<"P@+2UU;F=Z:7`@("`@("`@("`@ M("`@("!F:6QTF5Z(&=Z:7!<;B(*(B`@+5HL("TM M8V]M<')EF5Z(&-O;7!EF5Z(%!23T=R86T@*&UUFT*(SH@'1R86-T(&]R(&-R96%T92!F&-L=61E/5!!5%1%4DX@("`@("`@(&5X8VQU9&4@9FEL M97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@4$%45$523EQN(@HB("`M6"P@+2UE M>&-L=61E+69R;VT]1DE,12`@("`@(&5X8VQU9&4@9VQO8F)I;F<@<&%T=&5R M;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@+5`L("TM86)S;VQU=&4M;F%M97,@ M("`@("`@("!D;VXG="!S=')I<"!L96%D:6YG(&`O)W,@9G)O;2!F:6QE(&YA M;65S7&XB"B(@("UH+"`M+61E6UL:6YK2!I;B`B"B)D:7)E8W1O7-T96T@("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@ M=VAE;B!C6+S6-H M.EQN(@HB("`M0RP@+2UD:7)E8W1OF5J9+P@ M9&\@2T%404Q/1W5<;B(*(B`@+50L("TM9FEL97,M9G)O;3U.05I702`@("`@ M("!N87IW>2!P;&EK\W<@9&\@GET82!N87IW>2!Z86MO\6-Z;VYE('IE;.Q8WH@+4-<;B(* M(B`@("`@("TM97AC;'5D93U76D]26D5#("`@("`@("!W>6ML=6-Z(&YA>G=Y M('!A&-L=61E+69R;VT] M4$Q)2R`@("`@('=Y:VQU8WH@;F%Z=WD@<&%S=6JQ8V4@9&\@=WIO6UL:6YK:2!N82!N:64@(@HB=W-K87IU:K%C95QN(@HB("`@("`@ M+2UN;RUR96-UH@875T M;VUA='EC>FYI92!W(&MA=&%L;V=I7&XB"B(@("UL+"`M+6]N92UF:6QE+7-Y MF]S=&'Q('<@:F5D;GEM('-Y MF%C>FYI:B!O9"!P;&EK=2!O('1E:B!.05I7:64@=R!AF%S('1Y;&MO(&1L82!Z M;6EE;FEO;GEC:"`B"B)D86YY8VA<;B(*(B`@("`@("TM869T97(M9&%T93U$ M051!("`@("`@("!T;R!S86UO(&-O("U.7&XB"@HC(&!R96UO=F5L)R$@+2!R M>FT*(SH@F5D('5S=6YIZF-I96TL('=Y M8FEE#U0 M4EI94D]35$5+("`@("`@:V]P:6$@>F%P87-O=V$@<')Z960@=7-N:>IC:65M M+"!Z;6EE\2`B"B)D;VUYMFQN>5QN(@HB("`@("`@("`@("`@("`@("`@("`@ M("`@("`@("`@(%!26EE23U-414M<;B(*"B,Z('-R8R]T87(N8SHS-S(*;7-G M:60@(B(*(EQN(@HB26YF;W)M871I=F4@;W5T<'5T.EQN(@HB("`@("`@+2UH M96QP("`@("`@("`@("`@<')I;G0@=&AI2!L:7-T(&9I;&5S('!R;V-E2!A8W1I;VY<;B(*(B`@("`@("TM8V]N9FER;6%T:6]N M("`@('-A;64@87,@+7=<;B(*;7-G;9W:65T;"!T96X@;W!I M7!I2!O('!R M>F5T=V%R>F%N>6-H('!L:6MA8VA<;B(*(B`@("`@("TM8VAE8VMP;VEN="`@ M("`@('=Y<&ES=6H@;F%Z=WD@:V%T86QO9_-W('!O9&-Z87,@8WIY=&%N:6$@ M87)C:&EW=6U<;B(*(B`@("`@("TM=&]T86QS("`@("`@("`@('=Y<&ES>B!C M8;-K;W=I=+$@:6QOMF,@8F%J=/-W('IA<&ES86YY8V@@9&\@(@HB87)C:&EW M=6U<;B(*(B`@+5(L("TM8FQO8VLM;G5M8F5R("`@('!R>GD@:V&_9&5J(&EN M9F]R;6%C:FD@<&]D86H@;G5M97(@8FQO:W4@=R!A"!I"!O7,@;6%K M92!S:6UP;&4@8F%C:W5P7)OF5C:7=N>6T@=WEP861K=2`B"B)P"2!I;7!L96UE;G1E9"P@9&]N)W0@8V]U;G0@;VX@:70@>65T+EQN(@HB M05)#2$E612!M87D@8F4@1DE,12P@2$]35#I&24Q%(&]R(%5315)`2$]35#I& M24Q%.R!A;F0@1DE,12!M87D@8F4@82!F:6QE7&XB"B)OGET8>8@86YI('IA<&ES>7=A MYB!A";.Q8WIO;F4@<')Z>5QN(@HB=;]Y=V%N:74@ M8"TM<&]S:7@G+B`@1F]R;6%T('!OF%I;7!L96UE;G1O M=V%N>2!T>6QK;R!C>NJV8VEO=V\L7&XB"B)N82!R87II92!N:64@;&EC>B!N M82!N:65G;RX@($%20TA)5U5-(&UOOV4@8GGF(%!,24MI96TL($M/35!55$52 M.E!,24L@;'5B7&XB"B)5KUE42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N(@H*(WX@;7-G:60@(B5D(&%T("5D7&XB"B-^ 7(&US9W-T2`E9%QN(@H@ ` end SHAR_EOF $shar_touch -am 0705001199 'tar-1.13/po/pl.po' && chmod 0664 'tar-1.13/po/pl.po' || $echo 'restore of' 'tar-1.13/po/pl.po' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/pl.po:' 'MD5 check failed' 9209f5389b36a53d5d005dc5239981d8 tar-1.13/po/pl.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/pl.po'`" test 46418 -eq "$shar_count" || $echo 'tar-1.13/po/pl.po:' 'original size' '46418,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/pt.po ============== if test -f 'tar-1.13/po/pt.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/pt.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/pt.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/pt.po M(R!0;W)T=6=U97-E('1R86YS;&%T:6]N(&]F('1H92`B=&%R(B!M97-S86=E M'0O<&QA:6X[(&-H87)S970]25-/+3@X-3DM M,5QN(@HB0V]N=&5N="U42P@8RUF;W)M870*;7-G:60@ M(FEN=F%L:60@87)G=6UE;G0@8"5S)R!F;W(@8"5S)R(*;7-G6US(&]N('1H92!S86UE(&QI;F4N("!4:&4@87-S=6UP=&EO;B!I6US(&9O;&QO=R!E86-H(&]T:&5R"B,Z(&QI8B]A7-T96T@97)R;W(B"FUS9W-T2P@8RUF;W)M M870*;7-G:60@(B5S.B!O<'1I;VX@8"TM)7,G(&1O97-N)W0@86QL;W<@86X@ M87)G=6UE;G1<;B(*;7-GGIY M+"!C+69O2P@8RUF;W)M870*;7-G:60@(B5S M.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IY+"!C+69O?C;SH@)7,@6T]0Q\-/72XN+B!;1DE#2$5)4D]= M+BXN7&XB"@HC.B!S5QN(@HB9F]R('1H92!E<75I=F%L96YT('-H M;W)T(&]P=&EO;B!A;'-O+B`@4VEM:6QA2!I;B!A"P@+2UE>'1R M86-T+"`M+6=E="`@("!E>'1R86ER(&9I8VAE:7)O&-E<'1O('!AGIY"FUS9VED("(B"B)<;B(*(D]P97)A=&EO;B!M;V1I9FEE2`@("`@("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y M('1H92!A&ES=&EN9R!F:6QE5QN(@HB("`M3RP@+2UT;RUS=&1O=70@("`@("`@("`@("!E M>'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=%QN(@HB("`M1RP@+2UI M;F-R96UE;G1A;"`@("`@("`@("!H86YD;&4@;VQD($=.52UF;W)M870@:6YC M'1R86/GXV\L M(&[C;R!D97-TF5S+"!A=.D@87!A9V$@9&ER96-T;W)I87,@ M8V]M<&QE=&%S7&XB"B(@("U3+"`M+7-P87)S92`@("`@("`@("`@("`@('1R M871AGD* M;7-G:60@(B(*(EQN(@HB2&%N9&QI;F<@;V8@9FEL92!A='1R:6)U=&5S.EQN M(@HB("`@("`@+2UO=VYE7,@=7-E M(&YU;6)E'1R86-T(&%L;"!P'1R86/GXV\L M(&UA;G1E'1R86ER('-E9W5N9&\@82!S=6$@(@HB;W)D96U<;B(*(B`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@("!N;R!AGIY"FUS9VED("(B"B)<;B(*(D1E=FEC92!S96QE8W1I;VX@86YD('-W M:71C:&EN9SI<;B(*(B`@+68L("TM9FEL93U!4D-(259%("`@("`@("`@("`@ M('5S92!A71E MB!D92`B"B)<(G)S:%PB7&XB"B(@("U;,"TW75ML;6A=("`@("`@ M("`@("`@("`@("`@(&5S8V]L:&5R(&\@<&5R:6;I71E&5C=71A71EF5R M;W,@("`@("`@("`@("`@:6=N;W)E('IEF4]1$E-("`@("`@("`@ M($1)32!B>71EUD;W,@<&]R('IEGIY"FUS9VED("(B"B)<;B(*(D%R M8VAI=F4@9F]R;6%T('-E;&5C=&EO;CI<;B(*(B`@+58L("TM;&%B96P]3D%- M12`@("`@("`@("`@("`@("`@("!C"`@("`@("`@("`@("`@("`@("`@("`@('=R:71E(&$@4$]325@@8V]N9F]R M;6%N="!AFEP("`@("`@ M("`@("`@("`@9FEL=&5R('1H92!A'1R86ER+VQI"`@("`@("`@("`@("`@("`@("`@("`@(&5S8W)E=F4@ M=6T@87)Q=6EV;R!C;VYF;W)M92!C;VT@4$]325A<;B(*(B`@+7HL("TM9WII M<"P@+2UU;F=Z:7`@("`@("`@("`@("`@("!F:6QTFEP7")<;B(*(B`@+5HL("TM8V]M<')E0IM'1R86-T(&]R M(&-R96%T92!F&-L=61E/5!!5%1%4DX@("`@ M("`@(&5X8VQU9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@4$%45$52 M3EQN(@HB("`M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@(&5X8VQU9&4@ M9VQO8F)I;F<@<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@+5`L("TM M86)S;VQU=&4M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L96%D:6YG(&`O M)W,@9G)O;2!F:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL:6YK2!I;B`B"B)D:7)E8W1O7-T96T@("`@("`@('-T87D@:6X@;&]C M86P@9FEL92!S>7-T96T@=VAE;B!C2!$ M25(@("`@("`@(&UU9&%R('!A'1R86ER7&XB"B(@("`@ M("`M+6YU;&P@("`@("`@("`@("`@("`@(&9A>B!C;VT@<75E(%PB+51<(B!L M96EA(&YO;65S('1E7-T96T@("`@("!NXV\@GIY"FUS9VED("(B"B(@("U.+"`M+6YE=V5R/41!5$4@("`@("`@ M("`@("`@;VYL>2!S=&]R92!F:6QE5QN(@HB("`@("`@+2UA9G1E M%QN(@IM2!L:7-T(&9I;&5S('!R;V-E2!A8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B!D M:7-S;RP@8V]P:6$M?C;R`H7")L:6YK7"(I('-I;6+S;&EC M82!P87)A("`E2!A(R,C(R(*(WX@;7-G&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/pt.po:' 'MD5 check failed' 0910128f9fd05df426852ef8273ef21a tar-1.13/po/pt.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/pt.po'`" test 52500 -eq "$shar_count" || $echo 'tar-1.13/po/pt.po:' 'original size' '52500,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/ru.po ============== if test -f 'tar-1.13/po/ru.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/ru.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/ru.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/ru.po M(R!2=7-S:6%N(&UE2`\8V]N2P@8RUF;W)M870*;7-G:60@ M(FEN=F%L:60@87)G=6UE;G0@8"5S)R!F;W(@8"5S)R(*;7-GGIY+"!C+69O2!T;R!P=70@GDL(&,M9F]R;6%T"FUS9VED("(EGIY+"!C+69O(&`E8R<@U-+%PM7%U"#5R\': MP<[)T2#!TL?5S<7.U,$N(@H*(SH@;&EB+V=E=&]P="YC.CGIY+"!C+69OF5D(&]P=&EO;B!@+2TEGIY M+"!C+69OGDL(&,M9F]R;6%T"FUS9VED("(E'0N"B,Z(&QI8B]X;6%L M;&]C+F,Z-C8@R=/,SR#:P=#)T\'.SMG((,+!RM0Z("(*"B,Z('-R M8R]B=69F97(N8SHR-3(*(RP@8RUF;W)M870*;7-G:60@(D-A;FYO="!C;&]S M92!F:6QE(",E9"(*;7-GGDL(&,M9F]R;6%T"FUS9VED(")771E MQ<[)Q2#$S-$@F4B"@HC.B!S2!F;W(@8F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E;F0@9FEL97,@;F5W97(@=&AA;B!C;W!Y(&EN(&%R8VAI M=F5<;B(*(B`@+4$L("TM8V%T96YA=&4@("`@("`@("`@87!P96YD('1A2!T:&4@87)C:&EV92!A9G1E MB!BB!BAN;R!R879N86YJ92!Z(')A M>G!RN65N:6UI(&1A=&]T96MA;6E<;B(*(B`@+4\L("TM=&\MF$@:6YK7,@=7-E(&YU;6)E'1R86-T(&%L;"!PB!O:')A;FET=FEJ M;R!Z8;GH:71E(&1A=&]T96M<;B(*(B`@("`@("TM<')EG9R'1R86-T(&UU;'1I+79O M;'5M92!AF)IAJ92!V("(*(FEM96YU7&XB M"B(@("`@("`M+7)S:"UC;VUM86YD/55+05H@("`@("`@("!U<&]R86)I(&YE M;&]K86QE;B!52T%:(&YA;65S=&\@FQO9VEH7&XB"B(@ M("U&+"`M+6EN9F\MF5M82`M32E<;B(*(B`@("`@("TM;F5W M+79O;'5M92US8W)I<'0]4TM225!4(&ES=&\@:V]T("U&(%-+4DE05%QN(@HB M("`@("`@+2UV;VQN;RUF:6QE/41!5$]414M!("`@("`@=7!O"`U M,3(@8GET97,@<&5R(')E8V]R9%QN(@HB("`@("`@+2UR96-O71E"`U M,3(@>FQO9V]V7&XB"B(@("`@("`M+7)E8V]R9"US:7IE/41/3*Y)3D$@("`@ M("!$3TRN24Y!('IA<&ES82!V('IL;V=I:"`H=F7H:W)A=&YI:R`U,3(I7&XB M"B(@("UI+"`M+6EG;F]R92UZ97)O"`@("`@("`@("`@("`@("`@("`@("`@('=R:71E(&$@4$]325@@8V]N9F]R M;6%N="!AFEP("`@("`@ M("`@("`@("`@9FEL=&5R('1H92!AF)IF%P:7,@87)H:79A('8@9F]R;6%T=2!6-UQN(@HB("`@("`@ M+2UP;W-I>"`@("`@("`@("`@("`@("`@("`@("`@('IA<&ES(&%R:&EV82!V M(&9OFD@4%)/1U)!32`H:VD@;6]R85QN(@HB("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@F)I2!I;B!L;V-A;"!F:6QE M('-YFYA;2!D871O=&5K('!R96)EB!<7#`P,"!T97)M:6YIF5N(&1A=&]T96LL(&MI(&II:"!O<&ES=6IE(%9:3U)%0UQN(@HB M("`M6"P@+2UE>&-L=61E+69R;VT]1$%43U1%2T$@('9S92!D871O=&5K92!R M87IE;B!V>F]R8V5V+"!PB`B"B)$051/5$5+15QN(@HB("`M M4"P@+2UA8G-O;'5T92UN86UEB!N M879E9&5N:6T@24U%3D]-('8@87)H:79U7&XB"@HC.B!S2!S=&]R92!F:6QE5QN(@HB("`@("`@+2UA9G1E#U3549&25@@("`@("`@("`@8F%C:W5P(&)E9F]R92!R M96UO=F5L+"!O=F5RB!M;[YN;W-T:F]<;B(*(B`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("!I>F)IF]R82!V97)Z:6IE7&XB M"B(@("`@("`M+7-U9F9I>#U3549&25@@("`@("`@("`@=F%R;F]S=&YA(&MO M<&EJ82!PG!IB!I>G!I"!I"!O7,@;6%K92!S:6UP;&4@8F%C:W5P%QN(@HB86QI M(',@EQN(@HB:7IB:7)O M("TM8F%C:W5P(&%L:2!S('-P&ES=&EN M9R`@(&^Y=&5V:6SH96YE('9A"2!I;7!L96UE;G1E9"P@9&]N)W0@ M8V]U;G0@;VX@:70@>65T+EQN(@HB05)#2$E612!M87D@8F4@1DE,12P@2$]3 M5#I&24Q%(&]R(%5315)`2$]35#I&24Q%.R!A;F0@1DE,12!M87D@8F4@82!F M:6QE7&XB"B)OFYA(&YE('!R96)R871I(&EN(&YE('5S='9A&`@F)I2`M+6)L;V-K:6YG M+69A8W1O2`M+6)L;V-K M:6YG+69A8W1O2`M+7)E860M9G5L;"UR96-OF)IAE;F$@>B`M+7)E860M9G5L M;"UR96-O2`M+71O=6-H(@IM MF)IAE;F$@>B`M M+71O=6-H(@H*(SH@@@:V]T(&5N('!R8;YN:2!P M;V1A=&5K(@H*(SH@F)IAE;F$@>B`M+6)L;V-K+6YU;6)EF)IAE;F$@>B`M+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)60@;6]R95QN M(@HC?B!M7!E("5D M7&XB"B-^(&US9W-TFYI=&5V+BXN7&XB"@HC?B!M6EN9R`E9%QN(@HC?B!MF%P:7-A7&XB"@HC?B!M%QN(@HC?B!M%QN(@II ` end SHAR_EOF $shar_touch -am 0705001199 'tar-1.13/po/sl.po' && chmod 0664 'tar-1.13/po/sl.po' || $echo 'restore of' 'tar-1.13/po/sl.po' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/sl.po:' 'MD5 check failed' e21cdb4c612504d9f5e363597f3e1a18 tar-1.13/po/sl.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/sl.po'`" test 48638 -eq "$shar_count" || $echo 'tar-1.13/po/sl.po:' 'original size' '48638,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/sv.po ============== if test -f 'tar-1.13/po/sv.po' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/sv.po' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/sv.po' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/sv.po M(R!3=V5D:7-H(&UE#(P,"YS=VEP;F5T+G-E M/EQN(@HB3&%N9W5A9V4M5&5A;3H@4W=E9&ES:"`\GDL(&,M9F]R;6%T"FUS9VED(")I;G9A;&ED(&%R9W5M96YT(&`EGIY+"!C+69OGIY+"!C+69O2P@8RUF;W)M870* M;7-G:60@(B5S.B!O<'1I;VX@8"5C)7,G(&1O97-N)W0@86QL;W<@86X@87)G M=6UE;G1<;B(*;7-G2P@8RUF;W)M870*;7-G:60@(B5S.B!O<'1I;VX@ M8"5S)R!R97%U:7)E2P@8RUF M;W)M870*;7-G:60@(B5S.B!O<'1I;VX@GIY+"!C+69O M&ET:6Y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R86-T+F,Z.3'1R86AE2`E2(* M"B,Z('-R8R]I;F-R96UE;BYC.C0S-R!S3H@)7,B"FUS9W-TGD*;7-G:60@(D1E=FEC92!N=6UB97(@;W5T(&]F(')A;F=E(@IM M'!E8W1E9"!%3T8@:6X@87)C:&EV92(*;7-GGDL(&,M9F]R;6%T"FUS9VED(")B;&]C:R`E2P@8RUF;W)M870*;7-G:60@(F)L;V-K("5S.B`J*B!%;F0@;V8@1FEL92`J M*EQN(@IMGDL(&,M9F]R;6%T"FUS9VED(")/;FQY('=R;W1E("5L M=2!O9B`E;'4@8GET97,@=&\@9FEL92`E'!E8W1E9"(*;7-G MGDL(&,M9F]R;6%T"FUS9VED(")B;&]C:R`E7!E(&`E8R=<;B(*;7-GGIY+"!C+69O71E("5L9"TM7&XB"@HC.B!S71T92!N86UN('#E("5S('1I;&P@)7,B"@HC.B!S6UB;VQI6UL:6YK960@)7,@=&\@)7,B"FUS9W-TGIY+"!C+69O2P@8RUF;W)M870*;7-G M:60@(B5S.B!#86YN;W0@2P@8RUF;W)M870*;7-G:60@(B5S.B!#86YN;W0@GDL(&,M M9F]R;6%T"FUS9VED(")296YA;6EN9R!@)7,G(&)A8VL@=&\@8"5S)UQN(@IM M2!I;B!A6%R92#D;B!D92!I(&%R:VEV971<;B(*(B`@+4$L("TM8V%T96YA=&4@ M("`@("`@("`@;.1G9R!T:6QL(&EN;F5HY6QL970@:2!E;B!A2`@("`@("`@("`@ M("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A&ES=&EN9R!F:6QE'1R86-T:6YG(&]V97(@:71<;B(*(B`@("`@("TM5QN(@HB("`M3RP@+2UT M;RUS=&1O=70@("`@("`@("`@("!E>'1R86-T(&9I;&5S('1O('-T86YD87)D M(&]U='!U=%QN(@HB("`M1RP@+2UI;F-R96UE;G1A;"`@("`@("`@("!H86YD M;&4@;VQD($=.52UF;W)M870@:6YC2`@("`@("`@("`@("`@(&;V M&ES=&5R86YD92!F:6QE M'1R M86AE7,@=7-E(&YU;6)E'1R M86-T(&%L;"!P'1R86AE'1R86-T(&UU;'1I+79O M;'5M92!A'1R86AE6UN=6UM97(@:2!&24Q<;B(*"B,Z('-R8R]T M87(N8SHS,C@*;7-G:60@(B(*(EQN(@HB1&5V:6-E(&)L;V-K:6YG.EQN(@HB M("`M8BP@+2UB;&]C:VEN9RUF86-T;W(]0DQ/0TM3("`@0DQ/0TM3('@@-3$R M(&)Y=&5S('!EF4]4TE: M12`@("`@("`@(%-)6D4@8GET97,@<&5R(')E8V]R9"P@;75L=&EP;&4@;V8@ M-3$R7&XB"B(@("UI+"`M+6EG;F]R92UZ97)OF5R;V5D(&)L;V-KF4]04Y404P@("`@("`@($%.5$%,(&)Y=&4@<&5R('!O MF5R;W,@ M("`@("`@("`@("`@:6=N;W)E61E2`@('=R:71E M(&$@5C<@9F]R;6%T(&%R8VAI=F5<;B(*(B`@("`@("TM<&]S:7@@("`@("`@ M("`@("`@("`@("`@("`@("!WBP@+2UG>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@ M(&9I;'1E'1R86-T(&]R(&-R96%T92!F M&-L=61E/5!!5%1%4DX@("`@("`@(&5X8VQU M9&4@9FEL97,L(&=I=F5N(&%S(&$@9VQO8F)I;F<@4$%45$523EQN(@HB("`M M6"P@+2UE>&-L=61E+69R;VT]1DE,12`@("`@(&5X8VQU9&4@9VQO8F)I;F<@ M<&%T=&5R;G,@;&ES=&5D(&EN($9)3$5<;B(*(B`@+5`L("TM86)S;VQU=&4M M;F%M97,@("`@("`@("!D;VXG="!S=')I<"!L96%D:6YG(&`O)W,@9G)O;2!F M:6QE(&YA;65S7&XB"B(@("UH+"`M+61E6UL:6YK2!I;B`B"B)D:7)E8W1O7-T96T@("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S M>7-T96T@=VAE;B!C3U+051!3$]'("`@(&)Y="!K871A;&]G('1I;&P@2T%4 M04Q/1UQN(@HB("`M5"P@+2UF:6QE%QN(@IM2!L:7-T(&9I;&5S('!R;V-E2!A8W1I;VY<;B(*(B`@("`@("TM8V]N9FER;6%T:6]N("`@('-A M;64@87,@+7=<;B(*;7-G&ES=&EN9R`@(&YU;6)E"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U1< M;B(*(FES('-E="!I;B!T:&4@96YV:7)O;FUE;G0L($=.52!E>'1E;G-I;VYS M(&%R92!D:7-A;&QO=V5D('=I=&@@8"TM<&]S:7@G+EQN(@HB4W5P<&]R="!F M;W(@4$]325@@:7,@;VYL>2!P87)T:6%L;'D@:6UP;&5M96YT960L(&1O;B=T M(&-O=6YT(&]N(&ET('EE="Y<;B(*(D%20TA)5D4@;6%Y(&)E($9)3$4L($A/ M4U0Z1DE,12!O%PB(&%R:VEV M+B!/;2!M:6QJ]G9A2`M+6)L;V-K:6YG+69A8W1O2`M+6)L;V-K+6YU;6)E2`M+6)A8VMU<"(*;7-G0IM M7)I9VAT(*D@,3DX."P@.3(L M(#DS+"`Y-"P@.34L(#DV+"`Y-R!&6EN9R!C;VYD:71I;VYS+B`@5&AE2!&96YL87-O;BY<;B(*"B,Z M('-R8R]T87(N8SHQ,#,Q"FUS9VED(")'3E4@9F5A='5R97,@=V%N=&5D(&]N M(&EN8V]M<&%T:6)L92!A&ET(&1E;&%Y960@9G)O M;2!PGDL(&,M9F]R;6%T"FUS9VED("(E6UP=&4@;65D("5D M(&)Y=&4L("AH=6=A(2DB"@HC.B!T97-T2P@=&AE;B!I="!I7)I9VAT("A#*2`Q.3DU+"`Q.3DV+"`Q.3DW($9R964@4V]F='=A M7)I M9VAT(*D@,3DY-2P@,3DY-BP@,3DY-R!&1N9V0@ MY'(@)60@*&AO<'!A&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/sv.po:' 'MD5 check failed' c94394a35d4559b40b67433d3ac7f697 tar-1.13/po/sv.po SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/sv.po'`" test 45790 -eq "$shar_count" || $echo 'tar-1.13/po/sv.po:' 'original size' '45790,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/cs.gmo ============== if test -f 'tar-1.13/po/cs.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/cs.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/cs.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/cs.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````2D``$&%```".```0J\````_``!$Z``` M`=@``$4H```"[```1P$```&(``!)[@``!&H``$MW````HP``3^(```'P``!0 MA@```X\``%)W```"*P``5@<```+V``!8,P```(P``%LJ```!U0``6[<````; M``!=C0```"<``%VI````,P``7=$````F``!>!0```.,``%XL```!!```7Q`` M```9``!@%0````T``&`O````J0``8#T````:``!@YP```!X``&$"````&@`` M82$````^``!A/````!\``&%[````'@``89L````P``!AN@```"L``&'K```` M'0``8A<````7``!B-0```",``&)-````#```8G$````7``!B?@```!<``&*6 M````+P``8JX````I``!BW@```"<``&,(````'P``8S`````:``!C4````!L` M`&-K````&```8X<````9``!CH````!L``&.Z````'```8]8````<``!C\P`` M`!0``&00````*P``9"4````9``!D40```"P``&1K````-@``9)@````2``!D MSP```!,``&3B````&```9/8````T``!E#P```!0``&5$````&P``95D````D M``!E=0```"(``&6:````(@``9;T````?``!EX````!T``&8`````%0``9AX` M```;``!F-````"$``&90````.0``9G(````:``!FK````"```&;'````$``` M9N@````<``!F^0```"(``&<6````'```9SD````3``!G5@```!@``&=J```` M#0``9X,````F``!GD0```"$``&>X````&```9]H````4``!G\P```!\``&@( M````)```:"@````K``!H30```"T``&AY````)@``:*<````O``!HS@```"\` M`&C^````(```:2X````E``!I3P```"```&EU````%P``:98````G``!IK@`` M`",``&G6````(0``:?H````8``!J'````!X``&HU````(0``:E0```!!``!J M=@```#H``&JX````&P``:O,````>``!K#P```"(``&LN````/0``:U$````F M``!KCP```!$``&NV````#```:\@````H``!KU0```!8``&O^````&@``;!4` M```2``!L,`````H``&Q#````#0``;$X````R``!L7````!X``&R/````%@`` M;*X````;``!LQ0```#@``&SA````$0``;1H````C``!M+````"0``&U0```` MHP``;74````[``!N&0````X``&Y5````,```;F0````+``!NE0```"4``&ZA M```!`P``;L<````7``!ORP```!<``&_C````$P``;_L````7``!P#P```",` M`'`G````#P``<$L````9``!P6P```!\``'!U````#0``<)4````>``!PHP`` M`!\``'#"````,```<.(````;``!Q$P```!$``'$O````&@``<4$````;``!Q M7````!0``'%X````$@``<8T````X``!QH````#```''9````-@``<@H````Y M``!R00```#L``')[````+P``_````/```=_`````Z``!X+0```!,``'AH````%P``>'P````P``!X ME`````@``'C%````'@``>,X````>``!X[0```"(``'D,````'P``>2\````H M``!Y3P```!\``'EX````&0``>9@````U``!YL@```"D``'GH````(0``>A(` M```K``!Z-````!@``'I@````'@``>GD````%``!ZF`````8``'J>````#0`` M>J4````0``!ZLP````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&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9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@CX*3&%N9W5A9V4M5&5A;3H@0WIE8V@@/&-S M0&QI+F]R9SX*34E-12U697)S:6]N.B`Q+C`*0V]N=&5N="U4>7!E.B!T97AT M+W!L86EN.R!C:&%R71V;_CM(&%R8VAI M=B!S92!J;>EN96T@FMU($I-R4Y/"B`@("`@("`@("`@("`@5EI/4D5+ M("`@("`@("`@("`@("`@("!U(&]BF]R96L*("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M('!R;R!J;>EN82!S;W5B;W+Y"B`@+6\L("TM;VQD+6%R8VAI=F4L("TM<&]R M=&%B:6QI='D@("!Z87#MN64@87)C:&EV('9E(&9O"`@("`@("`@("`@("`@("`@("`@("`@('IA<.VY92!A%T=2!03U-)6`H@("UZ+"`M+6=Z:7`L("TM=6YG>FEP("`@("`@ M("`@("`@("`@9FEL=')U:F4@87)C:&EV('#X97,@9WII<`H@("U:+"`M+6-O M;7!R97-S+"`M+75N8V]M<')E2!U('IA^.UZ96[M.@H@("UB+"`M M+6)L;V-K:6YG+69A8W1ON%Z;F%M+"!NX7-O8F5K(#4Q,@H@("UI+"`M+6EG M;F]R92UZ97)OF)Y=&5K"B`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@("AV:&]D;ND@<')O(')O=7)Y*0H`"E;] M8NQR('IA^.UZ96[M.@H@("UF+"`M+69I;&4]05)#2$E6("`@("`@("`@("`@ M("!PF5N[6T@05)#2$E6"B`@ M("`@("TM9F]R8V4M;&]C86P@("`@("`@("`@("`@(&%R8VAI=F[M('-O=6)O MEN["!D=F]J=&7H:W4* M("`@("`@+2URUS=&\@F5N[2!A(&AUFMO=OUM(&%R8VAI=F5M"B`@+4PL("TM=&%P92UL96YG=&@]R,U33$\@("`@ M("`@('9Y;>QN[2!PX7-K=2!P;R!Z87!SX6[M(,C-4TQ/('@@,3`R-"!B86IT M^0H@("U&+"`M+6EN9F\MG5J M92#H[7-L;R!S=F%Z:W4@=B!33U5"3U)U"@`*("!'3E4@=&%R(&YE=6WM(.CM MWX96[M(&IE('IA8FQO:V]VX6YO('#X97#M;F'H96T*8"TM<&]S M:7@G+B!0;V1P;W)A(%!/4TE8(&9OQN[2!P^.US='5P;W;](.AAF)A;&]VX79A;OUC:"!S;W5B;W+Y M(&YE;F%S=&%V[2#H87,*("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M('!OF)A;&]VX79A;OUC:"!S;W5B;W+Y(&YAAE(&UA:NT@<&]V:6YN_2!A7#MN64@='5T;R!NX7!O=NQD=2!A('-K;V[H[0H@("`@("`M+79E M7#MN64@;WIN8>AE;NT@=F5R>F4@<')O9W)A;74@ M=&%R(&$@F%PEN82P@ M>F%KX7KA;F\@+4,*("`@("`@+2UE>&-L=61E/59:3U)%2R`@("`@("`@(&YE M<')A8W5J92!S92!S;W5B;W)Y(&]D<&]V[61A:NUC[2!66D]22W4*("`M6"P@ M+2UE>&-L=61E+69R;VT]4T]50D]2("`@(&YE<')A8W5J92!S92!S;W5B;W)Y M+"!K=&5RZ2!O9'!O=NUD86KM"B`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("!N[&MT97+I;74@=GIOF4@ M:FUE;B!S;W5B;W+Y"B`@+6@L("TM9&5R969E6UB;VQI8VO]8V@@;V1K87KY('!O=;YI:F4@2P*("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@(&YA(&MT97+I(&]D:V%Z>2!U M:V%Z=6KM"B`@("`@("TM;F\MOES=&%N92!V(&IE9&YO;0H@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@("`@7-TZ6UU"B`@ M+4LL("TMAN92!O9"!S;W5B;W)U M($I-R4Y/('H@87)C:&EV=0H`"DAL879N[2!F=6YK8V4Z"B`@+70L("TM;&ES M="`@("`@("`@("`@("`@=GEP[;EE(&]B"P@+2UE M>'1R86-T+"`M+6=E="`@("!V>7IV961E('-O=6)O71V;_CM(&YO=OT@87)C:&EV M"B`@+60L("TM9&EF9BP@+2UC;VUP87)E("`@;F%L97IN92!R;WID[6QY(&UE M>FD@87)C:&EV96T@82!S;W5B;W)O=OUM('-Y2!N82!K;VYE8R!AF4@2!N;W;L:KGM+"!N9;X@:G-O=2!V(&%R8VAI=G4*("`M02P@+2UC871E;F%T M92`@("`@("`@("!P^&EDX2!S;W5B;W)Y('H@=&%R(&%R8VAI=G4@9&\@87)C M:&EV=0H@("`@("`M+6-O;F-A=&5N871E("`@("`@('-T96INZ2!J86MO("U! M"B`@("`@("TM9&5L971E("`@("`@("`@("`@;6&^92!Z(&%R8VAI=G4@*&YE M9G5N9W5J92!N82!M86=N971I8VO]8V@@<.%S:^%C:"D*``I-;V1I9FEKX71O MED:75M"B`@("`@("TM2!P M^&5D(&IE:FEC:"!P^&5P<^%N[6T*("`@("`@+2UR96-U%T(&EN:W)E;65N=.%L;NT@>N%L;VAY"B`@+6G!R86-U:F4@;F]V_2!'3E4M9F]R;>%T(&EN:W)E;65N=.%L M;NT@>N%L;VAY"B`@("`@("TM:6=N;W)E+69A:6QE9"UR96%D("`@:6=N;W)U M:F4@8VAY8GD@6)Y('8@<')O9W)A M;74@;WIN86UU:G1E(&YA(&%D2!K('#X96ML861U('IA<^UL96IT M92!N82!A9')EN%L;[YN[6-H('-O=6)O`IN96)O('!R;VWL;F[I(%-)35!,15]"04-+ M55!?4U5&1DE8+B!*86L@N%L;[YN[2!K;W!I92P@ M;?F^92!B_70*;F%S=&%V96YO('!O;6]C[2!P^&5P[6YAZ&4@+2UB86-K=7`@ M;F5B;R!P#U0V,U03TY! M("`@("`@("`@>N%L;VAU:F4@T@;F6^($1!5%5-"B`@("`@("TM;F5W97(M;71I;64]1$%454T@ M("`@("!AF4@2P@:F5J:6-HOB!D871U;2!P M;W-L961N[0H@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@>FWL;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$@8VAY8F$@9&QO=6CI:&\@:FWI;F$`5FED M:71E;&[A(&-H>6)A(&1L;W5HZ6AO(&IMZ6YA`%-V87IE:R!@)7,G(&YE;V1P M;W;M9.$@=GIOF%V^.UT("@E9"P@)60I M`%9!4D]6P4[-.B!#:'EB[2!H;&%V:>AK82!S=F%Z:W4`6F%P:7-U:FD@=&5S M=&]V86/M(&)O9"`E9`!6[6-E(&IA:R!J961E;B!P^&5P[6YAZ"!Z(&`M06-D M=')U>"<@;F5M^;YE(&+]="!Z863A;@!-=7/M=&4@>F%D870@:F5D96X@>B!P M^&5P[6YAZ/D@8"U!8V1T&5C+W1C<#H@4VQUOF)A(&YE;NT@:R!D M:7-P;WII8VD`US=&\@<')O(&)U9F9EB`E8PH`&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/cs.gmo:' 'MD5 check failed' d474cc8c14143612c5c228f48ab9cdaf tar-1.13/po/cs.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/cs.gmo'`" test 31428 -eq "$shar_count" || $echo 'tar-1.13/po/cs.gmo:' 'original size' '31428,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/de.gmo ============== if test -f 'tar-1.13/po/de.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/de.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/de.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/de.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````2\``$&%```"<0``0K4````_``!%)P`` M`3@``$5G```#%0``1J````&Q``!)M@```T4``$MH````E@``3JX```(3``!/ M10```OX``%%9```"+```5%@```,3``!6A0```"@``%F9```!]```6<(````8 M``!;MP```",``%O0````.P``6_0````P``!<,````*D``%QA````Z@``70L` M```=``!=]@```!```%X4````N0``7B4````<``!>WP```"D``%[\````(P`` M7R8````W``!?2@```",``%^"````'0``7Z8````S``!?Q````!X``%_X```` M-```8!<````C``!@3````"(``&!P````$0``8),````:``!@I0```!T``&#` M````,P``8-X````J``!A$@```#P``&$]````)0``87H````J``!AH````"H` M`&'+````(@``8?8````@``!B&0```#$``&(Z````/```8FP````<``!BJ0`` M`!<``&+&````.```8MX````8``!C%P```"H``&,P````,```8UL````<``!C MC````!P``&.I````)```8\8````Y``!CZP```",``&0E````'P``9$D````L M``!D:0```"@``&26````*```9+\````C``!DZ````!\``&4,````&```92P` M```@``!E10```"(``&5F````20``98D````5``!ETP```!0``&7I````%0`` M9?X````>``!F%````"$``&8S````'0``9E4````7``!FK````+0``9^<````^``!H%0```#@` M`&A4````)@``:(T````F``!HM````#0``&C;````'```:1`````N``!I+0`` M`"$``&E<````)@``:7X````A``!II0```#L``&G'````-```:@,````Z``!J M.````$0``&IS````+0``:K@````Q``!JY@```"$``&L8````+0``:SH````< M``!K:````!0``&N%````%@``:YH````D``!KL0```"$``&O6````(0``:_@` M```9``!L&@````\``&PT````'@``;$0````L``!L8P```!0``&R0````'0`` M;*4````=``!LPP```$8``&SA````%0``;2@````;``!M/@```!P``&U:```` M@P``;7<```!!``!M^P```!0``&X]````+@``;E(````B``!N@0```"X``&ZD M```!3@``;M,````>``!P(@```!L``'!!````(P``<%T````>``!P@0```"(` M`'"@````$@``<,,````:``!PU@```"$``'#Q````&@``<1,````N``!Q+@`` M`!T``'%=````+```<7L````:``!QJ````!H``''#````'0``<=X````G``!Q M_````!4``'(D````%P``P```"X``'.X````#P``<^<` M```_``!S]P```#4``'0W````/```=&T````6``!TJ@```#$``'3!````$P`` M=/,````2``!U!P````D``'4:````,```=20````Q``!U50```"L``'6'```` M.@``=;,````8``!U[@```!D``'8'````*```=B$````>``!V2@```"8``'9I M````)```=I`````I``!VM0```*L``';?````(P``=XL````8``!WKP```"`` M`'?(````*0``=^D````C``!X$P```"$``'@W````+@``>%D````A``!XB``` M`#@``'BJ````1P``>.,```!&``!Y*P```!<``'ER````&0``>8H````_``!Y MI`````8``'GD````'0``>>L````=``!Z"0```!T``'HG````'0``>D4````J M``!Z8P```"$``'J.````%P``>K`````S``!ZR````"L``'K\````(@``>R@` M```W``![2P```"```'N#````'0``>Z0````/``![P@````\``'O2````"@`` M>^(````?``![[0````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!E8W1E9"!%3T8@:6X@;6%N9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@'0O<&QA M:6X[(&-H87)S970]:7-O+3@X-3DM,0I#;VYT96YT+51R86YS9F5R+45N8V]D M:6YG.B`X8FET"E9EF5U9V5N"B`@("`@("`@("`@("`@35535$52("`@("`@ M("`@("`@("`@("!"96EM($%N>F5I9V5N+TAE2`@($%R8VAI=B!I;2"[5C>K+49O"`@("`@("`@("`@("`@("`@("`@("`@(%!/4TE8+6MO;F9O MFEPJR!K;VUPF5P=&EE71EF5R;W,@("`@("`@("!";/9C M:V4@;6ET($YU;&QE;B!I;2!!F5N"B`@+5LP+3==6VQM:%T@("`@("`@("`@("`@ M("`@("`@($QA=69W97)K('5N9"!38VAR96EB9&EC:'1E(&%N9V5B96X*("`M M32P@+2UM=6QT:2UV;VQU;64@("`@("`@("`@("`@;65HFEEG0@:7-T+"!S:6YD($=.52U%G5LY'-S:6F5N M"B`@("`@("TM871I;64M<')EF5N"B`@+7`L("TMF5I M9V5N"B`@("`@("TM=&]T86QS("`@("`@("`@(&=E71E M3U615):14E# M2$Y)4R`@>G4@5D526D5)0TA.25,@=V5C:'-E;&X*("`M5"P@+2UF:6QE&-L=61E+69R;VT]1$%414D@("`@($1A=&5I96X@_&)E6UB;VQIF5I8VAN:7-S92!S:6-H97)N"B`@+6PL M("TM;VYE+69I;&4MF5U9V5N($1A=&5I M2`@ M("`@("`@("`@("`@($%R8VAI=B!N86-H(&1E;2!38VAR96EB96X@<'+\9F5N M"B`@("`@("TMG4@_&)E MFEE;G0@8F5H86YD96QN"B`@+4\L("TM=&\M1N9&5R="!H870*("`@("`@+2UA9G1EG5G(&=E7`@)R5C)RX*`$1I97-EG5N9R!V;VX@)7,N`"5S(&ES="!E:6X@07)C:&EV.R!N:6-H="!G97-I8VAE MF5I8VAN:7,@;FEC:'0@86YL M96=E;BX`)7,Z($MA;FX@1&%T96D@;FEC:'0@86YL96=E;BX`)7,Z($MA;FX@ M:V5I;F5N('-Y;6)O;&ES8VAE;B!,:6YK(&%U9B`G)7,G(&%N;&5G96XN`"5S M.B!+86YN(&YI8VAT('IU("G5R(%-T86YD M87)D+4%UG4@4W1A;F1AG4@4W1A;F1AG5R(%-T86YD87)D+4%UF4N`$%R8VAI=B!N:6-H="!G96ME;FYZ96EC:&YE="P@=6T@>G4@ M)7,@>G4@<&%SG0N`%9EF5U9V5N+@!+86YN($1A=&5I("5S(&YI8VAT(&AI M;GIU9OQG96XN`$MA;FX@:V5I;F5N(%-P96EC:&5R(&;\G4@5F5R>F5I8VAN:7,@)R5S)R!W96-H MF5R(&)E:V]M;65N+@!+86YN(&YI8VAT('9O;2!+;VUPG4@;&%N9RX`1TY5(*MT87*[('-C M:')E:6)T(&UE:')EG0@9'5R M8V@@)RTM86)S;VQU=&4M;F%M97,G+@!697)A;'1E=&4@3W!T:6]N+"!EG0@9'5R8V@@)RTM8FQO8VLM;G5M8F5R)RX`5F5R86QT971E($]P=&EO;BP@ M97)S971Z="!D=7)C:"`G+2UB;&]C:VEN9RUF86-T;W(G+@!697)A;'1E=&4@ M3W!T:6]N+"!EG0@7V1I97-EG5M($MO<&9T96EL(&1EF5S(&;\71EF5R:V5N;G5N9R!I&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/de.gmo:' 'MD5 check failed' 85db5baca78d3c856801e0e9f0686e9d tar-1.13/po/de.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/de.gmo'`" test 31757 -eq "$shar_count" || $echo 'tar-1.13/po/de.gmo:' 'original size' '31757,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/es.gmo ============== if test -f 'tar-1.13/po/es.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/es.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/es.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/es.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````2T``$&%```"B0``0K,````_``!%/0`` M`9D``$5]```#+0``1Q<```&2``!*10``!&4``$O8````K0``4#X```(+``!0 M[````[```%+X```"DP``5JD```-2``!9/0```"@``%R0```!H```7+D````@ M``!>6@```"T``%Y[````.```7JD````J``!>X@```0$``%\-````S0``8`\` M```2``!@W0````T``&#P````M```8/X````B``!ALP```!X``&'6````'@`` M8?4````^``!B%````"(``&)3````'P``8G8````O``!BE@```!T``&+&```` M'@``8N0````<``!C`P```"4``&,@````$```8T8````3``!C5P```"$``&-K M````.0``8XT````W``!CQP```#<``&/_````(```9#<````^``!D6````#T` M`&27````/```9-4````\``!E$@```#T``&5/````/```98T````C``!ER@`` M`!@``&7N````.P``9@<````9``!F0P```#0``&9=````.```9I(````A``!F MRP```"```&;M````+```9PX```!!``!G.P```",``&=]````(```9Z$````I M``!GP@```"0``&?L````)```:!$````C``!H-@```"$``&A:````%P``:'P` M```@``!HE````"0``&BU````1@``:-H````B``!I(0```!8``&E$````%``` M:5L````?``!I<````"(``&F0````'P``:;,````<``!ITP```"4``&GP```` M$P``:A8````L``!J*@```"L``&I7````'0``:H,````5``!JH0```!T``&JW M````(@``:M4````I``!J^````#```&LB````+```:U,````Q``!K@````#<` M`&NR````*P``:^H````L``!L%@```#```&Q#````&@``;'0````N``!LCP`` M`",``&R^````*0``;.(````E``!M#````"L``&TR````(P``;5X````X``!M M@@```$,``&V[````)P``;?\````K``!N)P```"<``&Y3````+@``;GL````H M``!NJ@```!8``&[3````%P``;NH````@``!O`@```"<``&\C````(P``;TL` M```9``!O;P````D``&^)````$0``;Y,```!*``!OI0```#(``&_P````$@`` M<",````2``!P-@```#4``'!)````%```<'\````L``!PE````"X``'#!```` MC0````!SJ@```#(``'/)````,0``<_P````X``!T+@```"8` M`'1G````#P``=(X````I``!TG@```"0``'3(````$P``=.T````L``!U`0`` M`"@``'4N````+P``=5<````N``!UAP```!8``'6V````(P``=&H````8``!XI0```"X``'B^````(P`` M>.T````6``!Y$0````L``'DH````+P``>30```!.``!Y9````#(``'FS```` M1@``>>8````6``!Z+0```!4``'I$````*P``>EH````@``!ZA@```!\``'JG M````(```>L<````=``!ZZ````*D``'L&````)```>[`````<``![U0```!D` M`'OR````*0``?`P````2``!\-@```!P``'Q)````*0``?&8````9``!\D``` M`#D``'RJ````4P``?.0```!'``!].````!T``'V`````'0``?9X````^``!] MO`````H``'W[````'0``?@8````=``!^)````"0``'Y"````)```?F<````H M``!^C````"0``'ZU````)0``?MH````T``!_`````#(``'\U````(```?V@` M```P``!_B0```!T``'^Z````%```?]@````8``!_[0```!@``(`&````$@`` M@!\````3``"`,@````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!E8W1E9"!%3T8@:6X@;6%N9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@"`@("`@("`@("`@("`@("`@("`@("`@ M(&5S8W)I8F4@=6X@87)C:&EV;R!C;VYF;W)M92!A(%!/4TE8"B`@+7HL("TM M9WII<"P@+2UU;F=Z:7`@("`@("`@("`@("`@("!F:6QTFEP"B`@+5HL("TM8V]M<')E"`U,3(@8GET M97,@<&]R(')E9VES=')O"B`@("`@("TMF4]5$%-0=%/("`@ M("`@(%1!34'13R!B>71EF$@;&$@3U)$14X@B!D92!R2!D96YS:61A9`H@("U-+"`M+6UU M;'1I+79O;'5M92`@("`@("`@("`@("!C"`Q,#(T"B`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@(&)Y M=&5S"B`@+48L("TM:6YF;RUS8W)I<'0]1DE#2$523R`@("`@(&5J96-U=&$@ M96P@0I&24-(15)/('!U961E('-E'1R865R(&9I8VAEF$*("`@("`M+79E2!$25(@("`@("`@("!C86UB:6$@86P@9&ER96-T;W)I;R!$25(*("`M5"P@ M+2UF:6QE&-L=7EE('!A=')O;F5S(&QI%T M:6-A;65N=&4@96X@9&ER96-T;W)I;W,*("`M;"P@+2UO;F4M9FEL92US>7-T M96T@("`@("`@<&5R;6%N96-E(&5N(&5L('-I%S(')E8VEE;G1E2`@("`@("`@("`@("`@(&EN M=&5N=&$@=F5R:69I8V%R(&5L(&%R8VAI=F\@9&5S<'7I'1R M865R('-O8G)E(.EL"B`@+5,L("TM&ES=&EN9R`@(&YU;65R861A('-I(&5X:7-T96X@8V]P:6%S M(&1E('-E9W5R:61A9"!N=6UE75D80H`('1I<&\@9&4@ M9FEC:&5R;R!D97-C;VYO8VED;R!@)6,G"@`EF%R(&$@8"5S)P`E'1R86-C:?-N(&1E(&5N;&%C M97,@F%R(&%R8VAI=F]S(&-O;7!R:6UI9&]S`$YO('-E('!U961E;B!UF%R(&%R8VAI=F]S(&UU;'1I=F]L=6UE;B!C;VUPF\@8V]B87)D92!A(&-R M96%R('5N(&%R8VAI=F\@=F%C[6\`0W)E86YD;R!E;"!D:7)E8W1O&ES=&4`14]&(&5N(&5L(&%R M8VAI=F\`4V4@96YC;VYT'1R87EE;F1O M(&9I8VAE0IP=65D92!R97-T86)L96-E2!F:6YA;&EZ80H` M1F]R;6%T;R!D92!F96-H82!I;G;A;&ED;R!@)7,G`%-E(&AA(&5S<&5C:69I M8V%D;R!U;B!GES(&1E("U#`$QA(&9E8VAA(&1E(&UO9&EF:6-A8VGS;B!E2!V;VQU;65N(&YU979O.R!F:6YA;&EZ86YD;RX*`$YO M(&5X:7-T92!E;"!AF%D;R!P;W(@+2UA8G-O;'5T92UN86UE M2!.24Y'54Y!(&=A71E"<`97AE8R]T8W`Z M(%-E&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/es.gmo:' 'MD5 check failed' 1ade9aa312d2ebcd1c0444f0980d9ef2 tar-1.13/po/es.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/es.gmo'`" test 32838 -eq "$shar_count" || $echo 'tar-1.13/po/es.gmo:' 'original size' '32838,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/fr.gmo ============== if test -f 'tar-1.13/po/fr.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/fr.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/fr.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/fr.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````30``$&%```#,```0KH````]``!%ZP`` M`E4``$8I```#X@``2'\```'?``!,8@``!/T``$Y"````KP``4T````,@``!3 M\```!*P``%<1```"[```6[X```1;``!>JP```#```&,'```!L```8S@````7 M``!DZ0```"0``&4!````-@``928````I``!E70```0$``&6'```!5P``9HD` M```8``!GX0````X``&?Z````R0``:`D````>``!HTP```"<``&CR````)0`` M:1H````Z``!I0````"```&E[````'0``:9P````N``!IN@```"8``&GI```` M(P``:A`````;``!J-````",``&I0````$@``:G0````@``!JAP```"D``&JH M````1```:M(````L``!K%P```"0``&M$````*0``:VD````F``!KDP```"8` M`&NZ````,0``:^$````R``!L$P```"L``&Q&````+```;'(````=``!LGP`` M`!8``&R]````0```;-0````2``!M%0```$D``&TH````,@``;7(````?``!M MI0```"```&W%````(@``;>8```!%``!N"0```"```&Y/````'0``;G`````F M``!NC@```"4``&ZU````)0``;ML````@``!O`0```!T``&\B````&```;T`` M```<``!O60```"<``&]V````0P``;YX````C``!OX@```!X``'`&````%P`` M<"4````B``!P/0```!\``'!@````'```<(`````@``!PG0```"<``'"^```` M#P``<.8````I``!P]@```#(``'$@````%P``<5,````2``!Q:P```!P``'%^ M````$@``<9L````=``!QK@```"X``'',````+P``!8````>``!X+P```!\``'A.```` MC@``>&X````_``!X_0```!$``'D]````1```>4\````2``!YE````#0``'FG M```!:0``>=P````A``![1@```!\``'MH````'0``>X@````E``![I@```"X` M`'O,````$```>_L````H``!\#````"0``'PU````'```?%H````P``!\=P`` M`!@``'RH````00``?,$````:``!]`P```"8``'T>````*```?44````A``!] M;@```"8``'V0````'@``?;<````M``!]U@```#0``'X$````*P``?CD````N M``!^90```#```'Z4````)```?L4````Z``!^Z@```#H``'\E````#@``?V`` M``!'``!_;P```#H``'^W````2P``?_(````@``"`/@```#4``(!?````'P`` M@)4````8``"`M0````X``(#.````.0``@-T```!#``"!%P```#,``(%;```` M2@``@8\````/``"!V@```!8``('J````,P``@@$````H``""-0```"```()> M````(0``@G\````Q``""H0```+L``(+3````'```@X\````@``"#K````!X` M`(/-````+P``@^P````2``"$'````"\``(0O````)@``A%\````J``"$A@`` M`",``(2Q````0@``A-4```!&``"%&````!,``(5?````&```A7,````]``"% MC````!8``(7*````'0``A>$````;``"%_P```"8``(8;````*```AD(````I M``"&:P```"L``(:5````(@``AL$```!#``"&Y````#,``(N````'@``A\P````%``"'ZP````8``(?Q````#0`` MA_@````2``"(!@````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!E8W1E9"!%3T8@:6X@;6%N9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@'0O<&QA:6X[(&-H87)S970]25-/+3@X-3DM,0I#;VYT96YT M+51R86YS9F5R+45N8V]D:6YG.B`X+6)I=`H`"E/I;&5C=&EO;B!D=2!F;W)M M870@9"=ABP@+2UG>FEP+"`M+75N9WII M<"`@("`@("!P;W-T+71R86ET97(@;"=A'1R86ER92!U;F4@87)C:&EV92#@"B`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@;75L=&EP;&5S('9O;'5M97,*("`M3"P@+2UT M87!E+6QE;F=T:#U.("`@("`@("!U=&EL:7-E6%N=`H@("`@("`@("`@("`@("`@("`@("`@("`@("`@(&QE(&WJ;64@ M<')O<')IZ71A:7)E"B`@("`@("TM;G5M97)I8RUO=VYE'1R86ER92!T;W5T92!L)VEN M9F]R;6%T:6]N(&1E('!R;W1E8W1I;VX*("`@("`@+2UP'1R86ER92!C975X"B`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@<75I(&-O;F-OAT2!2R5`@("`@("`@(&]PZ7)EES('!A&-L M=61E+69R;VT]1DE#2$E%4B!E>&-L=7)E(&QE7-T96T@ M("`@("!D96UE=7)E.EC=71I;VXZ"B`@+70L("TM;&ES="`@("`@("`@ M("`@("`@("`@869F:6-H97(@;&4@8V]N=&5N=2!D)W5N92!A"!F:6-H:65R'1R M86-T:6]N"B`@+54L("TM=6YL:6YK+69I"!F;W)M M871S($=.52!D)V%R8VAI=F4*("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("!I;F-RZ6UE;G1I96P*("`M9RP@+2UL:7-T960M:6YC"!F;W)M871S($=.52!D)V%R8VAI=F4*("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("!I;F-RZ6UE;G1I96P*("`@("`@ M+2UI9VYO&ES=&EN9R`@(&YU;>ER;W1EER;W3I97,@97AI7!E('-I;7!L M90H`"E5S86=E.B`E6UB;VQI<75E('9E7!E(&1E(&9I8VAI97(@:6YC;VYN=3L@9FEC:&EE M'1R86-T:6]N(&1E6UB;VQI<75E.EC=73I+@!.92!P975T(&QA;F-EEM;VER92!P;W5R(&QE(&9A8W1E=7(@9&4@ M8FQO8V%G92`E9`!.92!P975T(&5F9F%C97(@<&%R(')E8W5L('5N(&9I8VAI M97(@9"=ADN`$QE('+I<&5R=&]I M&ES=&4@<&%S+@!.;VT@9&4@9FEC:&EE MET86ER92!I;G9A;&ED92!D;VYN MZ2!E;B!O<'1I;VX`5F%L975R(&EN=F%L:61E(&1E(&QA('1A:6QL92!D)V5N M7!E('+I M9W5L:65R+@!.92!P;W-SZ&1E('!AAT M92X`3W!T:6]N(&3IAT92!R96UP;&%CZ64@<&%R("TM8FQO8VMI;FAT92!R96UP;&%CZ64@<&%R("TM=&]U8V@` M3W!T:6]N(&3IAT6UB;VQI<75E M(.`@)7,`0V5C:2!N92!R97-S96UB;&4@<&%S(.`@=6YE(&%R8VAI=F4@9&4@ M='EP92"K=&%RNP!#92!L;V=I8VEE;"!E&5C+W1C<#H@&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/fr.gmo:' 'MD5 check failed' b89df3d637433b72917453a0755cf4e1 tar-1.13/po/fr.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/fr.gmo'`" test 34841 -eq "$shar_count" || $echo 'tar-1.13/po/fr.gmo:' 'original size' '34841,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/it.gmo ============== if test -f 'tar-1.13/po/it.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/it.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/it.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/it.gmo ME002W@````````#,````'```!GP```$5```,W````````!$P````/P``$3$` M``$M```1<0```H@``!*?```!5P``%2@```,?```6@````)```!F@```"Y``` M&C$```(M```=%@```N$``!]$````)```(B8```$W```B2P```!<``".#```` M(0``(YL````W```CO0```"L``"/U````F0``)"$```"V```DNP````X``"5R M````#```)8$```"8```EC@```!@``"8G````(@``)D`````=```F8P```#(` M`":!````'@``)K0````9```FTP```"0``";M````&@``)Q(````7```G+0`` M`!<``"=%````&P``)UT````0```G>0```!<``">*````&```)Z(````I```G MNP```",``"?E````(@``*`D````<```H+````!<``"A)````&```*&$````5 M```H>@```!8``"B0````&@``**<````;```HP@```!<``"C>````$@``*/8` M```R```I"0```!8``"D\````)```*5,````B```I>````!```"F;````$0`` M*:P````B```IO@```#4``"GA````%P``*A<````2```J+P```!P``"I"```` M'0``*E\````2```J?0```!H``"J0````%0``*JL````.```JP0```!8``"K0 M````&P``*N<````\```K`P````L``"M`````#```*TP````.```K60```!8` M`"MH````&```*W\````3```KF````!```"NL````'```*[T````.```KV@`` M`"(``"OI````)```+`P````3```L,0```!```"Q%````%@``+%8````.```L M;0```!,``"Q\````%P``+)`````A```LJ````"@``"S*````*P``+/,````A M```M'P```",``"U!````(@``+64````2```MB````",``"V;````$0``+;\` M```;```MT0```!@``"WM````(@``+@8````?```N*0```#```"Y)````00`` M+GH````?```NO````",``"[<````(@``+P`````H```O(P```"P``"],```` M$P``+WD````,```OC0```"```"^:````%@``+[L````=```OT@```!,``"_P M````#@``,`0````3```P$P```"$``#`G````)P``,$D````6```P<0```!<` M`#"(````+```,*`````3```PS0```!<``##A````&```,/D```![```Q$@`` M`#(``#&.````#P``,<$````L```QT0````L``#'^````*0``,@H```%9```R M-````!@``#..````'0``,Z<````<```SQ0```!T``#/B````'0``-``````0 M```T'@```!H``#0O````$```-$H````,```T6P```!L``#1H````'```-(0` M```K```TH0```!4``#3-````%0``-.,````8```T^0```!D``#42````$@`` M-2P````0```U/P```#$``#50````*0``-8(````O```UK````#(``#7<```` M-```-@\````H```V1````#$``#9M````)0``-I\````+```VQ0```#```#;1 M````*P``-P(````Q```W+@```!4``#=@````*@``-W8````2```WH0```!`` M`#>T````"P``-\4````E```WT0```"T``#?W````*```."4````\```X3@`` M`!```#B+````#```.)P````<```XJ0```!<``#C&````#P``.-X````2```X M[@```"4``#D!````EP``.2<````>```YOP```!D``#G>````%0``.?@````F M```Z#@````L``#HU````&0``.D$````?```Z6P```!X``#I[````'0``.IH` M```T```ZN````#<``#KM````%```.R4````4```[.@```"T``#M/````!P`` M.WT````7```[A0```!\``#N=````'@``.[T````A```[W````!D``#O^```` M$P``/!@````S```\+````"X``#Q@````'P``/(\````C```\KP```!D``#S3 M````%```/.T````%```]`@````8``#T(````"P``/0\````0```]&P```2(` M`#TL````/P``/D\```%K```^CP```P,``#_[```!:@``0O\```-M``!$:@`` M`)T``$?8```"[@``2'8```)/``!+90```O$``$VU````)P``4*<```%B``!0 MSP```!8``%(R````(```4DD````W``!2:@```"D``%*B````O0``4LP```#> M``!3B@```!0``%1I````"P``5'X```"D``!4B@```!\``%4O````(```54\` M```?``!5<````#8``%60````(P``5<<````>``!5ZP```"@``%8*````(P`` M5C,````>``!65P```!X``%9V````(0``5I4````0``!6MP```!X``%;(```` M'0``5N<````U``!7!0```"L``%<[````-P``5V<````B``!7GP```!<``%?" M````&```5]H````5``!7\P```!8``%@)````%0``6"`````6``!8-@```!H` M`%A-````'```6&@```!```!8A0```!0``%C&````-@``6-L````[``!9$@`` M`!```%E.````$0``65\````G``!9<0```"H``%F9````)@``6<0````A``!9 MZP```"D``%H-````*```6C<````D``!:8````"8``%J%````(```6JP````7 M``!:S0```"```%KE````)```6P8```!```!;*P```!4``%ML````%@``6X(` M```5``!;F0```"```%NO````(@``6]`````=``!;\P```!H``%P1````)@`` M7"P````6``!<4P```"P``%QJ````-@``7)<````>``!4````H``!>%@```"L``%X_````+@``7FL````:``!>F@```#$` M`%ZU````(```7N<````E``!?"````"0``%\N````-@``7U,````H``!?B@`` M`#8``%^S````:```7^H````M``!@4P```#$``&"!````*@``8+,````X``!@ MW@```#,``&$7````$@``84L````3``!A7@```"L``&%R````)@``89X````B M``!AQ0```!<``&'H````"@``8@`````:``!B"P```#,``&(F````,@``8EH` M```;``!BC0```"4``&*I````*@``8L\````2``!B^@```"0``&,-````)0`` M8S(```![``!C6````$(``&/4````$@``9!<````W``!D*@```!(``&1B```` M)@``9'4```%>``!DG````"(``&7[````(```9AX````>``!F/P```"8``&9> M````(```9H4````0``!FI@```!X``&:W````(```9M8````3``!F]P```"P` M`&<+````%@``9S@````J``!G3P```"L``&=Z````%P``9Z8````;``!GO@`` M`!P``&?:````%0``9_<````2``!H#0```#<``&@@````+P``:%@````U``!H MB````#@``&B^````.@``:/<````N``!I,@```#<``&EA````+@``:9D````, M``!IR````#X``&G5````+P``:A0````Y``!J1````!<``&I^````+0``:I8` M```8``!JQ````!<``&K=````"0``:O4````W``!J_P```#,``&LW````*0`` M:VL````[``!KE0```!,``&O1````&@``:^4````H``!L`````"```&PI```` M%P``;$H````;``!L8@```"$``&Q^````EP``;*`````>``!M.````!@``&U7 M````%0``;7`````N``!MA@```!0``&VU````'0``;``!O70```"4``&]\````)0``;Z(````L``!O MR````"P``&_U````&@``<"(````Y``!P/0```"T``'!W````(@``<*4````P M``!PR````!P``'#Y````'@``<18````%``!Q-0````8``'$[````#```<4(` M```,``!Q3P````$````1````"@```!T````8````I0```)T````C````.0`` M`````````````````"T``````````@````````"Q````70````P````3```` M6@````````"*````FP```)<```!O````6P```````````````````,4```![ M````>@``````````````0````&D````````````````````E````E````*X` M``!G````(`````````"0````.``````````(`````````,8````L````=``` M`!P```"^````1```````````````H@```+4`````````D@```)X```"M```` M%P```'8```"`````(@````````#`````+@```)8````;````BP`````````` M````R````'T```!Q````KP````````!!`````````#\```"\````A``````` M`````````````,<````&`````````*0````/````*P```+,```!-````J``` M`"D```!7`````````'4```!/````A@````````##````L@```(T```"_```` MH`````````!D````RP```+D```!1````=P```#H```"(````-@```+0````[ M````GP```)P```"P````%````'``````````20`````````D````3@```(X` M```)````:P```,(````#`````````*H````````````````````A````5``` M````````````I@``````````````K``````````G````F0```,P```!*```` M#0```#$```!R````>0```#4```!H````;0```$4```"1````R0````````!3 M```````````````R````1@````````!J````CP`````````5````71EF4]4TE:12`@("`@("`@(%-)6D4@8GET97,@ M<&5R(')E8V]R9"P@;75L=&EP;&4@;V8@-3$R"B`@+6DL("TM:6=N;W)E+7IE M2!D0H@("U-+"`M+6UU;'1I+79O M;'5M92`@("`@("`@("`@("!C'1R86-T(&UU;'1I+79O M;'5M92!A71E2!P87)T:6%L;'D@:6UP;&5M96YT960L(&1O;B=T(&-O=6YT(&]N M(&ET('EE="X*05)#2$E612!M87D@8F4@1DE,12P@2$]35#I&24Q%(&]R(%53 M15)`2$]35#I&24Q%.R!A;F0@1DE,12!M87D@8F4@82!F:6QE"F]R(&$@9&5V M:6-E+B`@*E1H:7,J(&!T87(G(&1E9F%U;'1S('1O(&`M9B5S("UB)60G+@H` M"DAA;F1L:6YG(&]F(&9I;&4@871T2!E>'1R86-T:6YG(&9I;&5S('=I=&@@=&AE('-A;64@;W=N97)S M:&EP"B`@("`@("TM;G5M97)I8RUO=VYE7,@=7-E M(&YU;6)E2!F;W(@;W!T:6]N86P@87)G=6UE;G1S+@H` M"DQO8V%L(&9I;&4@3U$25(@ M("`@("`@("`@8VAA;F=E('1O(&1I2!$25(*("`M5"P@+2UF:6QE M'1R86-T(&]R(&-R M96%T92!F&-L=61E(&9I M;&5S+"!G:79E;B!A&-L M=61E+69R;VT]1DE,12`@("`@(&5X8VQU9&4@9VQO8F)I;F<@<&%T=&5R;G,@ M;&ES=&5D(&EN($9)3$4*("`M4"P@+2UA8G-O;'5T92UN86UE2!I;B!D M:7)E8W1O2!I;B!L;V-A;"!F:6QE('-Y2!A<'!E;F0@9FEL97,@;F5W97(@=&AA;B!C;W!Y(&EN M(&%R8VAI=F4*("`M02P@+2UC871E;F%T92`@("`@("`@("!A<'!E;F0@=&%R M(&9I;&5S('1O(&%N(&%R8VAI=F4*("`@("`@+2UC;VYC871E;F%T92`@("`@ M("!S86UE(&%S("U!"B`@("`@("TM9&5L971E("`@("`@("`@("`@9&5L971E M(&9R;VT@=&AE(&%R8VAI=F4@*&YO="!O;B!M86<@=&%P97,A*0H`"D]P97)A M=&EO;B!M;V1I9FEE&ES=&EN9R!F:6QE M0H@("U/+"`M+71O+7-T9&]U="`@("`@("`@("`@(&5X=')A8W0@9FEL M97,@=&\@"!O&ES=&EN9R`@(&YU;6)E2!&'0@*&%N9"!S=6)S97%U96YT M*2!V;VQU;64H6UL M:6YK('1O(&`E2`E0!!2`E2`E'1R86-T M(&`E2!B92!U;G)E861A8FQE('=I=&AO=70@+6D`0V]U;&0@ M;F]T(&=E="!C=7)R96YT(&1I0!#;W5L9"!N;W0@9V5T(&-U&ET"B`@("`@("TM M=F5R2!E>&AA=7-T960`36ES2`M+71O=6-H`$]B2`J=&AIF4@;75S="!B92!A M(&UU;'1I<&QE(&]F("5D+@!296UO=FEN9R!D6UL:6YK(&1I9F9E6EN9R!C;VYD:71I;VYS+B`@5&AE71E M'!E8W1E9"!%3T8@:6X@87)C:&EV90!5 M;F5X<&5C=&5D($5/1B!I;B!M86YG;&5D(&YA;65S`%5N97AP96-T960@14]& M(&]N(&%R8VAI=F4@9FEL90!5;FMN;W=N(&1E;6%N9VQI;F<@8V]M;6%N9"`E M7!E("'1R M86-T960@87,@;F]R;6%L(&9I;&4`56YK;F]W;B!P871T97)N(&`E7-T96T@97)R;W(`5D522499($9!24Q54D4Z("5D(&EN=F%L:60@ M:&5A9&5R*',I(&1E=&5C=&5D`%9E2``5FES:6)L92!L;VYG(&YA;64@ M97)R;W(`5F]L=6UE(&`E2!O;F4@;V8@ M=&AE(&`M06-D=')U>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@ M879A:6QA8FQE`')M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@"YI=#X*3&%N9W5A9V4M5&5A;3H@271A;&EA M;B`\:71`;&DN;W)G/@I-24U%+59E'0O<&QA:6X[(&-H87)S970]25-/+3@X-3DM,0I#;VYT96YT+51R86YS M9F5R+45N8V]D:6YG.B`X+6)I=`H`"D-O<'ER:6=H="`H0RD@,3DY-2P@,3DY M-BP@,3DY-R!&F4]4TE:12`@("`@("`@('5S82!R96-O71EF5R871I(&YE;"!A M71E"B`@+48L("TM:6YF;RUS8W)I M<'0]1DE,12`@("`@("`@(&5S96=U:2!L;R!S8W)I<'0@1DE,12!A;&QA(&9I M;&4@9&D@;V=N:2!N87-TFEO;F%L:2X*``I396QE>FEO;F4@9&5I(&9I;&4@;&]C86QI.@H@("U#+"`M M+61I3U$25(@("`@("`@('-I('-P;W-T82!N96QL82!D:7)E8W1O M"P@ M+2UE>'1R86-T+"`M+6=E="`@("!EF4@=')A(&PG87)C:&EV:6\@92!I;"!F:6QE('-Y2`@("`@("`@("`@("`@('!R;W9A(&$@=F5R:69I8V%R92!L)V%R8VAI M=FEO(&1O<&\@879E2!P"!O<'!U0`E6UL:6YK(&$@8"5S)P`EFEO;F4@9&5L(%9O;'5M92TM"@!!9V=I=6YT:2!I('!EFEO M;FD@9&D@8V]M<')EFEO;F4`22!N=6UEFEO;F%L:73@($=.52!S=2!U;B!F;W)M871O(&1I(&%R8VAI M=FEO(&EN8V]M<&%T:6)I;&4`0V]M86YD;R!S<&%Z>F%T=7)A`$=E;F5R;R!I M(&9I;&4@9&D@9&%T:2!P97(@;&$@FEO;FD@;'5N9VAE(&QO('-O;F\@86YC:&4@<&5R M"FQE(&]P>FEO;FD@8V]R=&4@97%U:79A;&5N=&DN"@H@("UL+"`M+69I;&4M M;&5N9W1H/4Q%3D=42"`@;'5N9VAE>GIA(&1E;"!F:6QE(&=E;F5R871O"B`@ M+7`L("TM<&%T=&5R;CU-3T1%3$Q/("`@("!-3T1%3$Q/(.@@8&1E9F%U;'0G M(&\@8'IEFEO;F4`36]D;R!N;VX@=F%L:61O M(&EN('5N82!O<'II;VYE`%!R;W!R:65T87)I;R!N;VX@=F%L:61O(&EN('5N M82!O<'II;VYE`%9A;&]R92!D:2!R96-O0!.97-S=6X@;G5O=F\@=F]L=6UE.R!E2!I;F5S:7-T96YT90!.;VX@Z"!U;B!F:6QE(&YOFEO;F4@9&D@9FEL90!386QT;R!A;&QA('!R;W-S:6UA(&EN=&5S=&%Z:6]N M90!);"!S>6UL:6YK(.@@9&EF9F5R96YT90`E71E('1O=&%L:2!S8W)I='1I M.B``57-AFEO M;FDN"@!';&D@=6ED(&1I9F9EFEO;FD@;F]N('9A;&ED M92!TFEO;F4@9&5L('9O;'5M92!M86YC86YT90!#:&5C M:W!O:6YT(&1I('-CFEO;F4@=')A(&`M06-D=')U>"<`1&5V:2!S<&5C M:69I8V%R92!U;F$@9&5L;&4@;W!Z:6]N:2!@+4%C9'1R=7@G`&5X96,O=&-P M.B!397)V:7II;R!N;VX@9&ES<&]N:6)I;&4`FEO('!EGIA='5R82`E8PH`&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/it.gmo:' 'MD5 check failed' 2cf925f44e8e3b21ff09500ef90d955b tar-1.13/po/it.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/it.gmo'`" test 29020 -eq "$shar_count" || $echo 'tar-1.13/po/it.gmo:' 'original size' '29020,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/ko.gmo ============== if test -f 'tar-1.13/po/ko.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/ko.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/ko.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/ko.gmo ME002W@````````"[````'```!?0```#[```+S`````````^X````/P``#[D` M``$M```/^0```H@``!$G```!5P``$[````(````5"````BT``!<)```"X0`` M&3<````D```<&0```!<``!P^````(0``'%8````W```<>````"L``!RP```` MM@``'-P````.```=DP````P``!VB````F```':\````8```>2````"(``!YA M````'0``'H0````R```>H@```!X``![5````&0``'O0````D```?#@```!H` M`!\S````%P``'TX````7```?9@```!L``!]^````$```'YH````7```?JP`` M`!@``!_#````*0``']P````C```@!@```"(``"`J````'```($T````7```@ M:@```!@``"""````%0``()L````6```@L0```!H``"#(````&P``(.,````2 M```@_P```#(``"$2````%@``(44````D```A7````"(``"&!````$```(:0` M```1```AM0```"(``"''````-0``(>H````7```B(````!(``"(X````'``` M(DL````=```B:````!(``"*&````&@``(ID````5```BM`````X``"+*```` M%@``(MD````;```B\````#P``",,````"P``(TD````,```C50````X``"-B M````%@``(W$````8```CB````!,``".A````$```([4````<```CQ@````X` M`"/C````(@``(_(````D```D%0```!,``"0Z````$```)$X````6```D7P`` M``X``"1V````%P``)(4````A```DG0```"@``"2_````*P``).@````A```E M%````",``"4V````(@``)5H````2```E?0```",``"60````$0``);0````; M```EQ@```!@``"7B````(@``)?L````?```F'@```#```"8^````'P``)F\` M```C```FCP```"(``":S````*```)M8````3```F_P````P``"<3````(``` M)R`````6```G00```!T``"=8````$P``)W8````.```GB@```!,``">9```` M(0``)ZT````6```GSP```!<``"?F````+```)_X````3```H*P```!<``"@_ M````&```*%<````/```H<````"P``"B`````"P``**T````I```HN0```5D` M`"CC````&```*CT````=```J5@```!P``"IT````'0``*I$````=```JKP`` M`!```"K-````&@``*MX````0```J^0````P``"L*````&P``*Q<````K```K M,P```!4``"M?````%0``*W4````8```KBP```!D``"ND````$@``*[X````0 M```KT0```#$``"OB````*0``+!0````O```L/@```#(``"QN````-```+*$` M```H```LU@```#$``"S_````)0``+3$````+```M5P```#```"UC````*P`` M+90````Q```MP````!4``"WR````$@``+@@````0```N&P````L``"XL```` M)0``+C@````M```N7@```"@``"Z,````/```+K4````0```N\@````P``"\# M````'```+Q`````7```O+0````\``"]%````$@``+U4````E```O:````!X` M`"^.````&0``+ZT````5```OQP```"8``"_=````"P``,`0````9```P$``` M`!X``#`J````%```,$D````4```P7@```"T``#!S````!P``,*$````7```P MJ0```!8``##!````'P``,-@````>```P^````"$``#$7````&0``,3D````3 M```Q4P```#,``#%G````+@``,9L````?```QR@```",``#'J````&0``,@X` M```4```R*`````4``#(]````!@``,D,````+```R2@```!```#)6```!)0`` M,F<````\```SC0```5H``#/*```"\P``-24```%\```X&0```@P``#F6```" M+@``.Z,```+_```]T@```"X``$#2````%P``00$````@``!!&0```#L``$$Z M````+0``078```"W``!!I`````X``$)<````"P``0FL```"C``!"=P```!L` M`$,;````)0``0S<````B``!#70```"P``$.`````'P``0ZT````;``!#S0`` M`"L``$/I````'0``1!4````;``!$,P```!L``$1/````&0``1&L````.``!$ MA0```!<``$24````$P``1*P````L``!$P````"<``$3M````(@``114````F M``!%.````!\``$5?````'P``17\````=``!%GP```!T``$6]````'0``1=L` M```=``!%^0````X``$87````+0``1B8````0``!&5````#```$9E````*P`` M1I8````8``!&P@```!@``$;;````(@``1O0````I``!'%P```"```$=!```` M'```1V(````>``!'?P```"```$>>````(```1[\````<``!'X````!L``$?] M````%P``2!D````:``!(,0```!P``$A,````1```2&D````2``!(K@```!,` M`$C!````$P``2-4````<``!(Z0```!P``$D&````&```22,````7``!)/``` M`!X``$E4````%0``27,````@``!)B0```"H``$FJ````&@``2=4````5``!) M\````"$``$H&````%P``2B@````@``!*0````"0``$IA````-```2H8````N M``!*NP```"0``$KJ````)P``2P\````I``!+-P```!,``$MA````'@``2W4` M```9``!+E````!X``$NN````(@``2\T````;``!+\````!(``$P,````,P`` M3!\````>``!,4P```"(``$QR````)@``3)4````N``!,O````!4``$SK```` M#P``30$````A``!-$0```!0``$TS````(0``34@````6``!-:@```!0``$V! M````$P``398````F``!-J@```!@``$W1````&@``3>H````G``!.!0```!@` M`$XM````'```3D8````=``!.8P````T``$Z!````+@``3H\````.``!.O@`` M`"L``$[-```!-P``3OD````7``!0,0```!T``%!)````'0``4&<````?``!0 MA0```!D``%"E````#P``4+\````:``!0SP```!0``%#J````#P``4/\````< M``!1#P```"L``%$L````(P``45@````7``!1?````!8``%&4````'0``4:L` M```4``!1R0```!(``%'>````,0``4?$````K``!2(P```"\``%)/````+P`` M4G\````T``!2KP```"@``%+D````+0``4PT````E``!3.P````D``%-A```` M,```4VL````L``!3G````#$``%/)````#@``4_L````2``!4"@```!```%0= M````#0``5"X````H``!4/````#,``%1E````)@``5)D````Y``!4P````!,` M`%3Z````#P``50X````8``!5'@```!,``%4W````$P``54L````:``!57P`` M`"<``%5Z````'0``5:(````=``!5P````!(``%7>````+```5?$````.``!6 M'@```!H``%8M````'P``5D@````4``!6:````!8``%9]````*```5I0````% M``!6O0```!4``%;#````%```5MD````D``!6[@```!T``%<3````)```5S$` M```4``!75@```!```%=K````,0``5WP````K``!7K@```!L``%?:````)0`` M5_8````7``!8'````!$``%@T````"```6$8````(``!83P````H``%A8```` M"@``6&,````!````BP````````"%````,@````(``````````````'`````` M````D@```"<```!'````?`````````!4``````````````"Z````.@```$T` M```-````DP```%X`````````/````*H````U`````````*\````````````` M`$\````#````(P```!D````>````;@```"X````.`````````$(````````` ME0```"4````Y````:P```!@```",````/@```)$```!I````-````!$```"L M````*P```*,```"(````B0````````"8````7````*L```"&````,P```"D` M``!&````,````!H`````````1`````````"[````@P```&\```!T````AP`` M`)D```"H````10```#\```""`````````)0```!,````B@```$X````%```` M:````+$```!7`````````'\`````````IP```&<``````````````)H```"@ M````/0``````````````)@```&P```!=`````````&$```">````K0````H` M``!M````4````+````!S````.`````````!E````2`````````!#````%@`` M`+4```"7````(@`````````[`````````'L`````````+0```%(```"?```` M`````'4`````````0`````````"X````>````!<````+```````````````` M`````````!,`````````FP```+0```"A````&P```*X````A````M@```!4` M```'`````````*(````,````,0```&(````O````-@``````````````60`` M`&,```"=````2P``````````````G````&H```"-``````````````"W```` M00`````````)````?0```*0````0````7P```($`````````=@```)8````` M````I0`````````W`````````'(````?````#P````````!W````6P```(0` M``"0``````````````"/````6@````````"I````?@```*8```!Y````L@`` M`+D`````````*@```%@`````````$@````````".````20```%4````````` M'0`````````@````'````````````````````!0`````````!@```"P```"S M````4P```"0```!6````<0```'H````(````@````&0```````````````0` M``!@````40```"@```!*````9@`*0V]P>7)I9VAT("A#*2`Q.3DU+"`Q.3DV M+"`Q.3DW($9R964@4V]F='=A71EF5R;W,@("`@("`@("`@("`@ M:6=N;W)E('IE"`Q,#(T(&)Y=&5S"B`@+48L("TM:6YF;RUS8W)I M<'0]1DE,12`@("`@("`@(')U;B!S8W)I<'0@870@96YD(&]F(&5A8V@@=&%P M92`H:6UP;&EE'1E;G-I;VYS(&%R92!D:7-A;&QO=V5D('=I=&@@ M8"TM<&]S:7@G+@I3=7!P;W)T(&9O2!I;7!L96UE;G1E9"P@9&]N)W0@8V]U;G0@;VX@:70@>65T+@I!4D-(259% M(&UA>2!B92!&24Q%+"!(3U-4.D9)3$4@;W(@55-%4D!(3U-4.D9)3$4[(&%N M9"!&24Q%(&UA>2!B92!A(&9I;&4*;W(@82!D979I8V4N("`J5&AI2!L:7-T(&9I;&5S('!R;V-E71E2!T M:&4@87)C:&EV92!A9G1E2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F('-Y;6)O;&EC(&QI;FMS(&%S(&AA0!#2`E2`E2!W87,@97AP96-T960`17)R;W(@=VAI;&4@8VQO'1R86-T:6YG(&-O;G1I9W5O=7,@ M9FEL97,@87,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X`&`M06-D=')U>"<@O\F\ MQR#!WR#'S[.J(,#,N_/`NR#!]L&DQ\^XZ2"^R""UR[3/M-D`8"U!8V1TD@P=\@Q\^SJKBF(,'VP:3'V+[?(,?5M,^TV0!E>&5C+W1C<#H@ MOK4@O/8@OOBTPB"\K;KQO;H`&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/ko.gmo:' 'MD5 check failed' 65b3c130abbccc1759b910dc9646a968 tar-1.13/po/ko.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/ko.gmo'`" test 22638 -eq "$shar_count" || $echo 'tar-1.13/po/ko.gmo:' 'original size' '22638,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/nl.gmo ============== if test -f 'tar-1.13/po/nl.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/nl.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/nl.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/nl.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````24``$&%```",0``0JL````_``!$W0`` M`3,``$4=```"[```1E$```&<``!)/@```V0``$K;````3@``3D````(&``!. MCP```O<``%"6```"40``4XX```./``!5X````"4``%EP```!4@``698````8 M``!:Z0```"4``%L"````-P``6R@````O``!;8````,,``%N0````P@``7%0` M```3``!=%P```!$``%TK````K```73T````<``!=Z@```!\``%X'````'P`` M7B<````T``!>1P```!D``%Y\````'0``7I8````R``!>M````!X``%[G```` M+P``7P8````?``!?-@```",``%]6````$P``7WH````6``!?C@```!P``%^E M````+@``7\(````L``!?\0```#,``&`>````'0``8%(````H``!@<````"D` M`&"9````)@``8,,````G``!@Z@```"L``&$2````+```83X````<``!A:P`` M`!(``&&(````,```89L````9``!AS````"H``&'F````-0``8A$````<``!B M1P```!T``&)D````'```8H(```!(``!BGP```!8``&+H````'0``8O\````? M``!C'0```!\``&,]````'P``8UT````A``!C?0```!X``&.?````%0``8[X` M```;``!CU````"$``&/P````00``9!(````@``!D5````"$``&1U````$@`` M9)<````:``!DJ@```!8``&3%````&@``9-P````4``!D]P```!8``&4,```` M$0``92,````?``!E-0```"H``&55````&P``98`````7``!EG````!P``&6T M````)P``9=$````G``!E^0```#8``&8A````*P``9E@```!#``!FA````#8` M`&;(````+```9O\````H``!G+````#0``&=5````&@``9XH````L``!GI0`` M`"4``&?2````'```9_@````;``!H%0```"0``&@Q````(```:%8````R``!H M=P```$0``&BJ````(```:.\````D``!I$````"<``&DU````.0``:5T````T M``!IEP````T``&G,````$@``:=H````E``!I[0```!D``&H3````$@``:BT` M```/``!J0`````P``&I0````'P``:ET````P``!J?0```"P``&JN````%0`` M:ML````;``!J\0```#@``&L-````%```:T8````9``!K6P```!T``&MU```` M?0``:Y,````[``!L$0````\``&Q-````-```;%T````6``!LD@```"T``&RI M```!10``;-<````;``!N'0```"$``&XY````(0``;EL````D``!N?0```",` M`&ZB````$0``;L8````>``!NV````!D``&[W````#P``;Q$````A``!O(0`` M`!H``&]#````,```;UX````9``!OCP```!,``&^I````&@``;[T````7``!O MV````!,``&_P````%0``<`0````T``!P&@```"P``'!/````,@``<'P````U M``!PKP```#<``'#E````*P``<1T````U``!Q20```"8``'%_````"P``<:8` M```S``!QL@```#```''F````/```L````J``!V%P`` M`"<``'9"````1P``=FH```!#``!VL@```!4``';V````%0``=PP````Q``!W M(@````H``'=4````&0``=U\````9``!W>0```"8``'>3````'0``=[H````F M``!WV````!L``'?_````&```>!L````O``!X-````"D``'AD````(0``>(X` M```F``!XL````!D``'C7````(@``>/$````/``!Y%````!```'DD````"@`` M>34````/``!Y0`````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!E8W1E9"!%3T8@:6X@;6%N9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@'0O<&QA M:6X[(&-H87)S970]25-/+3@X-3DM,0I#;VYT96YT+51R86YS9F5R+45N8V]D M:6YG.B`X+6)I=`H`"D%R8VAI969F;W)M86%T('-E;&5K=&EE.@H@("U6+"`M M+6QA8F5L/4Y!04T@("`@("`@("`@("`@("`@("`@;6%A:R!E96X@87)C:&EE M9B!A86X@;65T(&1E96QN86%M($Y!04T*("`@("`@("`@("`@("!005123T]. M("`@("`@("`@("`@("`@('1I:F1E;G,@=&]N96XO97ATFEP("`@("`@("`@("`@("`@9FEL=&5R M(&AE="!A71E MF5L9G,@86P@ M:&5E9G0@"B`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@(&AE="!E M96X@9'5B8F5L92!P=6YT"B`@("`@("TM"FEJ;B!"15-404Y$+"!(3U-4.D)% M4U1!3D0@;V8*1T5"4E5)2T520$A/4U0Z0D535$%.1#L@96X@0D535$%.1"!K M86X@965N(&)EFEJ;B!O9B!E96X@87!P87)A870N"BI$97IE*B!@ M=&%R)R!G96)R=6EK="!S=&%N9&%A'1R86AE'1R86AE97(@86QL92!B979E:6QI9VEN9W-I;F9OFEJ;B!O;VL@=F5R<&QI8VAT(&)I:B!K;W)T92!O<'1I97,N"@`*26YF M;W)M871I979E('5I='9O97(Z"B`@("`@("TM:&5L<"`@("`@("`@("`@('1O M;VX@:'5L<"UT96MS="!E;B!B9>MI;F1I9R!PMI M;F1I9R!PF5N(&%R8VAI968* M("`@("`@+2UT;W1A;',@("`@("`@("`@=&]O;B!A86YT86P@9V5S8VAR979E M;B!B>71EF5N(&1O;W(@"P@+2UE>'1R86-T+"`M+6=E="`@("!E>'1R86AE97(@8F5S=&%N M9&5N('5I="!E96X@87)C:&EE9@H@("UC+"`M+6-R96%T92`@("`@("`@("`@ M(&UA86L@965N(&YI975W(&%R8VAI968@86%N"B`@+60L("TM9&EF9BP@+2UC M;VUP87)E("`@>F]E:R!V97)S8VAI;&QE;B!T=7-S96X@87)C:&EE9B!E;B!B M97-T86YDMR96X*("`@("`@+2UR96UO=F4M9FEL M97,@("`@("`@("!V97)W:6ID97(@8F5S=&%N9&5N(&YA('1O979O96=E;B!I M;B!H970@87)C:&EE9@H@("UK+"`M+6ME97`M;VQD+69I;&5S("`@("`@(&]V M97)S8VAR:6IF(&)EMX=')A:&5EMN(&QE96<@=F]O'1R86-T:64*("`M M4RP@+2US<&%R2!&2!&96YL87-O;BX*`"`@("`@ M("TM8F%C:W5P6SU#3TY44D],72`@("`@8F%C:W5P('9O;W(@=F5R=VEJ9&5R M:6YG+"!K:65S('9E6UB;VQI7-T965M.R!N:65T(&=E9'5M<'0`)7,Z($]N8F5K M96YD(&)EMR96X`2V%N M(&UE97)D96QI9V4@87)C:&EE=F5N(&YI970@=F5R:69IZW)E;@!+86X@F]N9&5R("UI`$MA M;B!H=6ED:6=E(&UA<"!N:65T(&%C:'1EF5R;W,G"B`@("`@("TM:&5L<"`@("`@("`@("`@ M('1O;VX@:'5L<"UT96MS="!E;B!B9>MI;F1I9R!PMI;F1I9R!PFEJ;B!N:65T('5I='=IF5N('9A;B`E MMX=')A:&5E&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/nl.gmo:' 'MD5 check failed' f468b09542e6a5e9610ca348b498f4a5 tar-1.13/po/nl.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/nl.gmo'`" test 31056 -eq "$shar_count" || $echo 'tar-1.13/po/nl.gmo:' 'original size' '31056,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/no.gmo ============== if test -f 'tar-1.13/po/no.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/no.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/no.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/no.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````3H``$&%```"0@``0L`````_``!%`P`` M`6@``$5#```"VP``1JP```%_``!)B````W(``$L(````H```3GL```'G``!/ M'````QX``%$$```"+```5",```,E``!64````"@``%EV```!C0``69\````5 M``!;+0```!X``%M#````-@``6V(````K``!;F0```/P``%O%````P@``7,(` M```0``!=A0````T``%V6````D@``7:0````5``!>-P```"(``%Y-````&@`` M7G`````R``!>BP```!X``%Z^````%P``7MT````K``!>]0```"$``%\A```` M&```7T,````8``!?7````!\``%]U````#P``7Y4````6``!?I0```!D``%^\ M````*```7]8````F``!?_P```#$``&`F````&P``8%@````7``!@=````!@` M`&",````%0``8*4````6``!@NP```!H``````&P``8.T````5``!A"0`` M``X``&$?````.@``82X````5``!A:0```"@``&%_````+0``8:@````1``!A MU@```!(``&'H````)@``8?L````W``!B(@```"(``&):````&0``8GT````B M``!BEP```!\``&*Z````'P``8MH````?``!B^@```!8``&,:````%0``8S$` M```>``!C1P```"$``&-F````0P``8X@````C``!CS````"0``&/P````$``` M9!4````8``!D)@```!T``&0_````%@``9%T````5``!D=````!4``&2*```` M$```9*`````F``!DL0```"D``&38````%0``90(````2``!E&````"```&4K M````(@``94P````;``!E;P```"T``&6+````)@``9;D```!#``!EX````#D` M`&8D````)P``9EX````R``!FA@```"8``&:Y````%@``9N`````K``!F]P`` M`!P``&``!G7````"0``&=[````&P``9Z`````M``!G MO````$(``&?J````*P``:"T````O``!H60```"8``&B)````/```:+`````A M``!H[0```!$``&D/````#0``:2$````B``!I+P```!8``&E2````'P``:6D` M```5``!IB0````\``&F?````%0``::\````E``!IQ0```"D``&GK````%@`` M:A4````7``!J+````#(``&I$````%0``:G<````;``!JC0```!P``&JI```` M6P``:L8````T``!K(@```!```&M7````*@``:V@````+``!KDP```"<``&N? M```!3```:\<````7``!M%````!L``&TL````&@``;4@````9``!M8P```!T` M`&U]````#@``;9L````8``!MJ@```!@``&W#````#0``;=P````@``!MZ@`` M`!8``&X+````*0``;B(````9``!N3````!D``&YF````'```;H`````@``!N MG0```!(``&Z^````$@``;M$````N``!NY````"8``&\3````+```;SH````O M``!O9P```#$``&^7````)0``;\D````Q``!O[P```"<``'`A````"P``<$D` M```R``!P50```"H``'"(````1@``<+,````3``!P^@```#(``'$.````%@`` M<4$````.``!Q6`````D``'%G````)0``<7$````F``!QEP```"D``'&^```` M-```<>@````8``!R'0```!$``'(V````&```````"@`` M=R4````/``!W,`````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!E8W1E9"!%3T8@:6X@;6%N9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@'0O<&QA:6X[(&-H87)S970]25-/+3@X-3DM,0I# M;VYT96YT+51R86YS9F5R+45N8V]D:6YG.B`X+6)I=`H`"E9A;&<@878@87)K M:79F;W)M870Z"B`@+58L("TM;&%B96P]3D%63B`@("`@("`@("`@("`@("`@ M("!L86<@970@87)K:78@;65D('9O;'5M;F%V;B!.059."B`@("`@("`@("`@ M("`@3=A.4U1%4B`@("`@("`@("`@("`@("!F:6QE4@9F]RF5R;W,@("`@("`@("`@("`@:6=N;W+I7(@9FEL+LM87)K:79E6UB;VQI6UB;VQI7-T96TN("!):VME(&QA M9W)E=``E6YN96QS96X@878@8N5N9&5T+"!A M=G-L=71T97(@;N4`1F]R<_AK97(@Y2!E:W-T2!P2!P6UB;VQI6QD:6<@;6]D=7,@ M9VET="!I(&9L86=G`%5G>6QD:6<@96EEF4`36EN;F4@;W!P8G)U:W0`36%N9VQE M6MK(')E='5R;CH@`$QE6UB M;VQS:R!L:6YK970@=&EL("5S`$1E='1E('-E&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/no.gmo:' 'MD5 check failed' 5bf99618f222026d449c0d9129751838 tar-1.13/po/no.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/no.gmo'`" test 30528 -eq "$shar_count" || $echo 'tar-1.13/po/no.gmo:' 'original size' '30528,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/pl.gmo ============== if test -f 'tar-1.13/po/pl.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/pl.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/pl.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/pl.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````2```$&%```"`0``0J8````_``!$J``` M`3,``$3H```"@0``1AP```&:``!(G@```T@``$HY````@```38(```(-``!. M`P```N4``%`1```"'@``4O<```+=``!5%@```#(``%?T```!=P``6"<````7 M``!9GP```"$``%FW````/0``6=D````S``!:%P```/D``%I+````P0``6T4` M```0``!L````I``!>"````!L``%XR````#@``7DX````;``!>70```!P``%YY M````*0``7I8````H``!>P````#```%[I````(P``7QH````A``!?/@```"(` M`%]@````'P``7X,````@``!?HP```!@``%_$````&0``7]T````<``!?]P`` M`!0``&`4````-P``8"D````9``!@80```"D``&![````)```8*4````4``!@ MR@```!4``&#?````'P``8/4````O``!A%0```!H``&%%````%P``86`````E M``!A>````!\``&&>````'P``8;X````?``!AW@```!H``&'^````$P``8AD` M```<``!B+0```"```&)*````/P``8FL````:``!BJP```!L``&+&````%``` M8N(````=``!B]P```!T``&,5````&@``8S,````7``!C3@```"```&-F```` M$@``8X<````L``!CF@```"D``&/'````'```8_$````2``!D#@```!X``&0A M````)P``9$`````A``!D:````#```&2*````+```9+L````S``!DZ````#D` M`&4<````+@``958````O``!EA0```#```&6U````%```9>8````I``!E^P`` M`"D``&8E````*@``9D\````>``!F>@```"```&:9````&0``9KH````L``!F MU````$(``&@````,0``9],````P M``!H!0````\``&@V````#P``:$8````>``!H5@```!D``&AU````(P``:(\` M```4``!HLP````P``&C(````%```:-4````O``!HZ@```"\``&D:````&@`` M:4H````9``!I90```"(``&E_````$0``::(````>``!IM````!\``&G3```` M?P``:?,```!```!J0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6U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D;R!+ M051!3$]'=0H@("U4+"`M+69I;&5S+69R;VT]3D%:5T$@("`@("`@;F%Z=WD@ M<&QI:_-W(&1O(')O>B]Z87!A:V]W86YI82!SL2!W('!L:6MU($Y!6E=!"B`@ M("`@("TM;G5L;"`@("`@("`@("`@("`@("`@("`M5"!C>GET82!N87IW>2!Z M86MO\6-Z;VYE('IE;.Q8WH@+4,*("`@("`@+2UE>&-L=61E/5=: M3U):14,@("`@("`@('=Y:VQU8WH@;F%Z=WD@<&%S=6JQ8V4@9&\@5UI/4D-! M"B`@+5@L("TM97AC;'5D92UF6ML=6-Z(&YA>G=Y M('!AG5JL6-E M"B`@("`@("TM;F\MSZF)I86H@ MF]S=&'Q('<@:F5D;GEM M('-Y6(@9'IILV%N:6$Z"B`@+70L("TM;&ES="`@("`@("`@("`@ M("`@=WEP:7-Z('IA=V%R=&^VYB!AG!A:W5J('!L:6MI('H@87)C:&EW=6T*("`M8RP@+2UC M2!AB!A69I:V%T;W)Y(&1Z:6&S86YI83H*("`M5RP@+2UV97)I9GD@("`@ M("`@("`@("`@("!S<'+S8G5J('IW97)Y9FEK;W=AYB!AF%M87IU:B!IG!A:V]W86YY;6D*("`M52P@+2UU;FQI;FLM9FERF%M87IA;FEE;2!G;R!R;WIP86MO=V%N>6T* M("`@("`@+2UR96-UFEALV%J(&5F96MT>7=N:64@;F$@<&QI:V%C:"!R M>F%D:VEC:`H@("U/+"`M+71O+7-T9&]U="`@("`@("`@("`@(')O>G!A:W5J M('!L:6MI(&YA('-T86YD87)D;W=E('=Y:K9C:64*("`M1RP@+2UI;F-R96UE M;G1A;"`@("`@("`@("!B86-K=7`@<')Z>7)O6T@9F]R M;6%C:64@1TY5"B`@+6GER;W-T;W=Y('<@;F]W>6T@9F]R;6%C:64@1TY5"B`@("`@("TM:6=N M;W)E+69A:6QE9"UR96%D("`@;FEE(&MO\6-Z(&*SZF1E;2!J9;]E;&D@;FEE M8WIY=&5L;F4@<&QI:VD*``I287!O7-YLV%J(&1O M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M(&MO;65N9&$@)6,*`')M=&0Z(%!R>F5D=V-Z97-N>2!%3T8*`'-T9&EN`'-T A9&]U=`!T87(@*'!O=&]M;GDI`'1A&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/pl.gmo:' 'MD5 check failed' f5b5fa48c1dc358e7060a6b20e29b367 tar-1.13/po/pl.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/pl.gmo'`" test 30543 -eq "$shar_count" || $echo 'tar-1.13/po/pl.gmo:' 'original size' '30543,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/pt.gmo ============== if test -f 'tar-1.13/po/pt.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/pt.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/pt.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/pt.gmo ME002W@````````"4````'```!+P```#%```)7`````````QP```!+0``#'$` M``(````-GP```BT```^@````%P``$```2CP```!D``!*N```` M)```$L@````:```2[0```!<``!,(````%P``$R`````;```3.````!```!-4 M````%P``$V4````8```3?0```"D``!.6````(P``$\`````<```3Y````!<` M`!0!````&```%!D````5```4,@```!8``!1(````&@``%%\````;```4>@`` M`!<``!26````$@``%*X````R```4P0```"0``!3T````$```%1D````1```5 M*@```"(``!4\````-0``%5\````2```5E0```!P``!6H````'0``%<4````2 M```5XP```!H``!7V````%0``%A$````.```6)P```!8``!8V````&P``%DT` M```\```6:0````L``!:F````#```%K(````.```6OP```!8``!;.````&``` M%N4````3```6_@```!```!<2````#@``%R,````B```7,@```"0``!=5```` M$P``%WH````0```7C@```!8``!>?````#@``%[8````3```7Q0```!<``!?9 M````*```%_$````K```8&@```",``!A&````(@``&&H````2```8C0```",` M`!B@````$0``&,0````;```8U@```!@``!CR````(@``&0L````?```9+@`` M`#```!E.````00``&7\````?```9P0```",``!GA````(@``&@4````H```: M*````"P``!I1````$P``&GX````@```:D@```!T``!JS````$P``&M$````3 M```:Y0```!8``!KY````%P``&Q`````L```;*````!<``!M5````,@``&VT` M```/```;H````"D``!NP````&```&]H````=```;\P```!H``!P1````*P`` M'"P````8```<6````#$``!QQ````+P``'*,````R```5P```"H``!YM````$@``'I@````0```>JP````L` M`!Z\````)0``'L@````M```>[@```!```!\<````'```'RT````7```?2@`` M`!(``!]B````)0``'W4````>```?FP```!D``!^Z````)@``']0````9```? M^P```!\``"`5````'@``(#4````=```@5````#0``"!R````-P``(*<````4 M```@WP```"T``"#T````!P``(2(````7```A*@```!8``"%"````'@``(5D` M```A```A>````!D``"&:````$P``(;0````S```AR````"X``"'\````'P`` M(BL````C```B2P```!D``")O````%```(HD````+```BG@```!```"*J```! M*P``(KL```&]```CYP```GH``"6E```"9P``*"`````>```JB````"P``"JG M````$0``*M0````D```JY@```"0``"L+````(@``*S`````\```K4P```"0` M`"N0````)0``*[4```!!```KVP```"X``"P=````'P``+$P````=```L;``` M`"T``"R*````$0``++@````2```LR@```"$``"S=````.P``+/\````T```M M.P```"H``"UP````'0``+9L````>```MN0```!L``"W8````'```+?0````< M```N$0```!L``"XN````(0``+DH````8```N;````$,``"Z%````2```+LD` M```2```O$@```!,``"\E````*P``+SD```!<```O90```"@``"_"````-0`` M+^L````F```P(0```"8``#!(````,@``,&\````E```PH@```!L``##(```` M)P``,.0````K```Q#````$H``#$X````*0``,8,````J```QK0```!@``#'8 M````(P``,?$````E```R%0```",``#([````'```,E\````6```R?````#`` M`#*3````+0``,L0````I```R\@```!D``#,<````*@``,S8````G```S80`` M`#(``#.)````/P``,[P````P```S_````#4``#0M````*P``-&,````R```T MCP```!X``#3"````-@``-.$````K```U&````"8``#5$````)0``-6L````R M```UD0```"H``#7$````/```->\````[```V+````#$``#9H````-0``-IH` M```P```VT````#4``#!````(``` M-Z8````6```WQP```!H``#?>````&@``-_D````9```X%````$,``#@N```` M(@``.'(```!'```XE0```!0``#C=````+P``./(````=```Y(@```#0``#E` M````(P``.74````S```YF0```"$``#G-````/@``.>\````\```Z+@```#\` M`#IK````00``.JL````U```Z[0```#0``#LC````)P``.U@````+```[@``` M`#H``#N,````+0``.\<````Y```[]0```!D``#PO````-0``/$D````@```\ M?P```!@``#R@````#@``/+D````R```\R````#D``#S[````&@``/34````J M```]4````!P``#U[````)@``/9@````F```]OP```"(``#WF````&0``/@D` M```I```^(P```"4``#Y-````+@``/G,````Q```^H@```#H``#[4````30`` M/P\```!*```_70```!T``#^H````.P``/\8````+``!``@```!P``$`.```` M'```0"L````B``!`2````"P``$!K````(P``0)@````D``!`O````#T``$#A M````,```01\````>``!!4````#T``$%O````(P``0:T````@``!!T0````L` M`$'R````"@``0?X````!````:0```&L```!J`````````!\```!N````8@`` M`),```!%````/P```"0```!<````%@`````````M`````````'X````````` M/````',```!_````%0````4`````````@0```'T```!X````"P`````````` M````5P`````````W````$@```$H`````````D````%(````]`````````",` M````````C`````\```!F````@`````(```````````````H````I````!P`` M`!$```!)`````P````````!R````B`````````!.````)0```$(````G```` M`````(<```!,````!````!,```!0`````````%4`````````D0```"P```!9 M````@P```)(````R````%````%$```!4````*P````````!H````6````&P` M``!C`````````%T````9````,````(4```!D````B0`````````````````` M```````F````E`````@````A````#````(0````;````>@```"X```"+```` MCP```'4`````````#0```!X```!E````6@```'0```!-````A@```#H````X M````1`````````!P````,0```%L```!(``````````````!`````'0`````` M````````B@```$8`````````&@```%8`````````#@```(X````S```````` M`"H```!Y````.0```````````````````$L`````````/@````````!@```` M(@```#8````H````>P``````````````<0```&$`````````(````!@```!' M````=P```$,````[````?``````````<``````````D```!/````4P```!<` M````````+P```!````""`````````#0`````````!@```$$```!M```````` M`#4```!O````C0```%X```!V````9P```%\````````````*1&5V:6-E(&)L M;V-K:6YG.@H@("UB+"`M+6)L;V-K:6YG+69A8W1O"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M+7)E8V]R9"US:7IE M/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K&ET"B`@("`@("TM=F5R2!N86UE"P@+2UE>'1R86-T M+"`M+6=E="`@("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC M+"`M+6-R96%T92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A6UL:6YK('1O(&`E2`E'1R86-T(&`E0!#;W=A2!R969U M2`E2`EF4`36ES&ET:6YG+@H`3V)S;VQE=&4@ M;W!T:6]N(&YA;64@2`M+6)L;V-K+6YU;6)E<@!/ M8G-O;&5T92!O<'1I;VX@;F%M92!R97!L86-E9"!B>2`M+6)L;V-K:6YG+69A M8W1O<@!/8G-O;&5T92!O<'1I;VX@;F%M92!R97!L86-E9"!B>2`M+7)E860M M9G5L;"UR96-O2`M+6)L M;V-K:6YG+69A8W1O<@!/;&0@;W!T:6]N(&`E8R<@'0@9FEL92!H96%D97(` M4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:V5D("5S('1O("5S`%1H M:7,@9&]E'!E8W1E9"!%3T8@:6X@87)C:&EV90!5;F5X<&5C=&5D($5/1B!I;B!M86YG M;&5D(&YA;65S`%5N97AP96-T960@14]&(&]N(&%R8VAI=F4@9FEL90!5;FMN M;W=N(&1E;6%N9VQI;F<@8V]M;6%N9"`E7!E("'1R86-T960@87,@;F]R;6%L(&9I;&4` M56YK;F]W;B!S>7-T96T@97)R;W(`5D522499($9!24Q54D4Z("5D(&EN=F%L M:60@:&5A9&5R*',I(&1E=&5C=&5D`%9E2``5FES:6)L92!L;VYG(&YA M;64@97)R;W(`5FES:6)L92!L;VYG;F%M92!E2!O;F4@;V8@=&AE(&`M M06-D=')U>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA M8FQE`')M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@71EF5R;W,@("`@ M("`@("`@("`@:6=N;W)A?U97,Z"B`@("`@("TM:&5L M<"`@("`@("`@("`@(&UO?C;R!P87)A('1O M9&%S(&%S(&%CY_5E?C;R!P87)A("5S M"@`@=&EP;R!D92!F:6-H96ER;R!D97-C;VYH96-I9&\@(B5C(@H`)7,@;N-O M('1E;2!C;VYT:6YU:61A9&4@;F5S=&4@=F]L=6UE`"5S(.D@;R!A=A;&AO(&1E('9O;'5M92TM"@!!8W)E6TN(&QI;FMS*2!C;VUO M(&QI9V'G]65S(&;M&5C=71A?C;R!D M92!U;2!F:6-H96ER;R!D92!O=71R;R!V;VQU;64`3N-O('-E(&-O;G-E9W5E M(&-R:6%R('!R;V-EF%D;W(`3N-O('-E(&-O M;G-E9W5E(&QE&5C=71A?C;R`H M(FQI;FLB*2!S:6UB\VQI8V$@9&4@("5S('!A?C;P!296-UFEO`$-R:6'GXV\@9&4@9&ER96-T;W)I83HZ`$%P86=A+7-E(&1O M(&%R<75I=F\@=6T@;N-O+6-A8F7G86QH;P!-=61O=2US92!O(&YO;64@9&\@ M9&ER96-T;W)I82`E'1R86ER M(&9I8VAE:7)OUD;R!P;W(@(BTMUD;R!P;W(@(BTM=&]U8V@B`$]PY^-O(&]B&EG92!U;2!A=A;&AO(&1E(&9I8VAE:7)O`%-A;'1A('!A&EM;R!C86)EYV%L:&\`)7,@;&EG861O('-I;6)O;&EC86UE;G1E(&$@ M)7,@*")L:6YK(BD`27-T;R`@;N-O('-E('!A'1R86DM=A;&AO=O(&EN M9&ES<&]N[79E;`!R;71D.B!.XV\@=O('1E;7!O871U&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/pt.gmo:' 'MD5 check failed' 08c39655f02d12a57b2060f9ab9e859a tar-1.13/po/pt.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/pt.gmo'`" test 16905 -eq "$shar_count" || $echo 'tar-1.13/po/pt.gmo:' 'original size' '16905,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/ru.gmo ============== if test -f 'tar-1.13/po/ru.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/ru.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/ru.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/ru.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````28``$&%```"G@``0JP````_``!%2P`` M`58``$6+```"C```1N(```&H``!);P```]$``$L8````BP``3NH```(```!/ M=@```X(``%%W```"60``5/H```.1``!75````#0``%KF```!IP``6QL````> M``!PP````X``%[9````M```7N@````<``!?G0```!\``%^Z````%P`` M7]H````R``!?\@```!X``&`E````&P``8$0````P``!@8````"4``&"1```` M*```8+<````G``!@X````!X``&$(````$```82<````7``!A.````!8``&%0 M````*@``86<````G``!AD@```#(``&&Z````&@``8>T````D``!B"````"4` M`&(M````(@``8E,````C``!B=@```"H``&*:````*P``8L4````:``!B\0`` M`!,``&,,````-@``8R`````9``!C5P```"D``&-Q````(@``8YL````8``!C MO@```!D``&/7````,P``8_$````M``!D)0```!X``&13````&P``9'(````D M``!DC@```!\``&2S````'P``9-,````>``!D\P```!D``&42````$0``92P` M```K``!E/@```#(``&5J````.P``99T````:``!EV0```"$``&7T````%0`` M9A8````9``!F+````!T``&9&````&@``9F0````6``!F?P```!H``&:6```` M%P``9K$````R``!FR0```"X``&;\````'@``9RL````5``!G2@```"```&=@ M````'0``9X$````A``!GGP```"T``&?!````)```9^\````U``!H%````#,` M`&A*````(@``:'X````G``!HH0```#4``&C)````&```:/\````M``!I&``` M`"X``&E&````-```:74````C``!IJ@```"X``&G.````*P``:?T````W``!J M*0```#X``&IA````(P``:J`````G``!JQ````"H``&KL````,@``:Q<````G M``!K2@```!(``&MR````$@``:X4````@``!KF````!P``&NY````&P``:]8` M```3``!K\@````T``&P&````$@``;!0````L``!L)P```#(``&Q4````%@`` M;(<````6``!LG@```"D``&RU````$@``;-\````>``!L\@```"(``&T1```` M>```;30````X``!MK0```!```&WF````-0``;?<````/``!N+0```!X``&X] M```!AP``;EP````<``!OY````"```'`!````'0``<"(````8``!P0````"4` M`'!9````$```<'\````<``!PD````!\``'"M````&0``<,T````K``!PYP`` M`!L``'$3````+@``<2\````5``!Q7@```!D``'%T````)0``<8X````B``!Q MM````!H``''7````$@``````)```=*D````L``!TS@```"P``'3[```` M-```=2@````4``!U70```!,``'5R````)0``=88````?``!UK````!T``'7, M````(@``=>H````:``!V#0```.0``'8H````)```=PT````H``!W,@```!T` M`'=;````00``=WD````/``!WNP```",``'?+````+```=^\````>``!X'``` M`#,``'@[````-P``>&\````X``!XIP```!<``'C@````'```>/@````S``!Y M%0````D``'E)````&P``>5,````;``!Y;P```!X``'F+````'P``>:H````N M``!YR@```"(``'GY````&P``>AP````R``!Z.````"L``'IK````&P``>I<` M```K``!ZLP```!H``'K?````(@``>OH````0``!['0```!$``'LN````#0`` M>T`````5``![3@````$````3````#````!\````:````IP```)\````E```` M.P```````````````````"\``````````P````````"S````7P````X````5 M````7`````````",````G0```)D```!Q`````@```````````````````,@` M``!]````?`````D`````````0@```&L````````````````````G````E@`` M`+````!I````(@````````"2````.@`````````*`````````,D````N```` M=@```!X```#!````1@``````````````I````+<`````````E````*````"O M````&0```'@```""````)`````````##````,````)@````=````C0`````` M````````RP```'\```!S````L0````````!#`````````$$```"^````A@`` M`````````````````,H````'`````````*8````1````+0```+4```!/```` MJ@```"L```!9`````````'<```!1````B`````````#&````M````(\```#" M````H@````````!F````S@```+L```!3````>0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!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OZB#CY>SI+@H`_-3/U"#4S\T@SL'2U=O!Q=0@T,_3S,7$S]?!U,7,V,[/ MT]38`//,R=O+S\T@S<[/Q\\@S]O)PL_++"#0TL7+TL'=Q<[)Q2#2P<+/U-D` M[\+=Q<4@WLG3S,\@VL'0R=/!SL[9R"#"PQ+KX2#P M\N_WY?+KZ3H@S\+.P=+5UL7.SR#.Q=?%TL[9R"#:P4Z(.'2R,G7(,[%(-#/S,[9R@#P\N7D]?#R MY?;DY>[IY3H@[L77S]K-S];.SR#:P3U M\/+E]N3E[NGE.B#NQ=0@VL''S\S/U\O!(-3/S<$`Z\_.U-+/S-C.P=$@U,_> MR\$@VL'0R=/)("5D`/?9(,[%(,W/UL74Q2#5R\':P=38(,+/S,7%(,_$SL_' MSR#+S,#>P2!@+4%C9'1R=7@G`/?9(,3/S-;.V2#5R\':P=38(,_$R&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/ru.gmo:' 'MD5 check failed' 232de3c448fe10066882164e127e94c5 tar-1.13/po/ru.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/ru.gmo'`" test 31588 -eq "$shar_count" || $echo 'tar-1.13/po/ru.gmo:' 'original size' '31588,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/sl.gmo ============== if test -f 'tar-1.13/po/sl.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/sl.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/sl.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/sl.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````34``$&%```"B```0KL```!$``!%1``` M`2\``$6)```"CP``1KD```&I``!)20```S(``$KS````DP``3B8```'5``!. MN@```O```%"0```"'P``4X$```,M``!5H0```#T``%C/```!KP``60T````9 M``!:O0```"<``%K7````,@``6O\````G``!;,@```-,``%M:````Q@``7"X` M```.``!<]0```!```%T$````K```714````1``!=P@```!T``%W4````'0`` M7?(````X``!>$````!X``%Y)````(```7F@````Q``!>B0```!T``%Z[```` M&P``7MD````<``!>]0```!X``%\2````#P``7S$````8``!?00```!<``%]: M````+P``7W(````L``!?H@```#$``%_/````(```8`$````:``!@(@```!L` M`&`]````&```8%D````9``!@<@```!L``&",````'```8*@````<``!@Q0`` M``\``&#B````-```8/(````3``!A)P```",``&$[````'0``85\````.``!A M?0````\``&&,````&@``89P````Q``!AMP```!L``&'I````'```8@4````N M``!B(@```!8``&)1````%0``8F@````A``!B?@```!X``&*@````%```8K\` M```;``!BU````"D``&+P````1@``8QH````0``!C80```!$``&-R````%``` M8X0````;``!CF0```!P``&.U````'0``8](````6``!C\````!\``&0'```` M$@``9"<````D``!D.@```"P``&1?````'@``9(P````7``!DJP```"<``&3# M````#@``9.L````F``!D^@```"0``&4A````)@``948````V``!E;0```"<` M`&6D````)@``9````+0``9PH````T``!G M.````#<``&=M````)0``9Z4````I``!GRP```!L``&?U````.```:!$````W M``!H2@```!(``&B"````%@``:)4````;``!HK````!T``&C(````'```:.8` M```0``!I`P````H``&D4````'P``:1\````W``!I/P```#```&EW````%P`` M::@````6``!IP````"L``&G7````$P``:@,````:``!J%P```!X``&HR```` M<```:E$````V``!JP@````\``&KY````.```:PD````C``!K0@```"```&MF M```!)@``:X<````?``!LK@```!H``&S.````&@``;.D````<``!M!````#,` M`&TA````%```;54````@``!M:@```"$``&V+````$@``;:T````A``!MP``` M`!D``&WB````*```;?P````4``!N)0````T``&XZ````%P``;D@````K``!N M8````!,``&Z,````$```;J`````U``!NL0```"T``&[G````,P``;Q4````V M``!O20```#@``&^`````+```;[D````S``!OY@```",``'`:````#```<#X` M```S``!P2P```"@``'!_````*0``<*@````@``!PT@```"\``'#S````$``` M<2,````8``!Q-`````H``'%-````)P``<5@````L``!Q@````"\``'&M```` M0@``<=T````=``!R(````!4``'(^````)@``P```!X``'*6 M````&0``0```!D``':>````$0``=K@````V``!VR@```"0``'0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]U='!U=`H@("U'+"`M+6EN8W)E M;65N=&%L("`@("`@("`@(&AA;F1L92!O;&0@1TY5+69O2!S M=&]R92!F:6QE7!E(&`E8R<*`"5S(&ES(&YO M="!C;VYT:6YU960@;VX@=&AI'1R86-T:6]N(&]F M('-Y;6)O;&EC(&QI;FMS(&%S(&AA2!M M=6QT:2UV;VQU;64@87)C:&EV97,`0V%N;F]T('9E2!S=&1I;B]S=&1O M=70@87)C:&EV90!#86YN;W0@=W)I=&4@=&\@)7,`0V%N;F]T('=R:71E('1O M(&-O;7!R97-S:6]N('!R;V=R86T`0VAI;&0@8V%N;F]T(&9O2!F;W(@8FQO8VMI;F<@9F%C=&]R("5D`$-O=6QD(&YO="!B86-K3H@)7,`0V]U;&0@;F]T(')E+7!O2!A3H`1&%T82!D:69F97)S M`$1E;&5T:6YG(&YO;BUH96%D97(@9G)O;2!A&ES=`!%3T8@:6X@87)C:&EV M92!F:6QE`$5/1B!W:&5R92!U'!E8W1E9`!%&ET(&1E;&%Y960@9G)O;2!P'1R86-T M:6YG(&-O;G1I9W5O=7,@9FEL97,@87,@2!F:6QE0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"@!);G9A;&ED(&1A=&4@9F]R;6%T(&`E M0!.;R!N97<@=F]L=6UE.R!E>&ET M:6YG+@H`3F\@0!.;W0@82!R96=U;&%R M(&9I;&4`3F]T(&QI;FME9"!T;R`E2`M+6%B'0@9FEL M92!H96%D97(`4VMI<'!I;F<@=&\@;F5X="!H96%D97(`4WEM;&EN:R!D:69F M97)S`%-Y;6QI;FME9"`E2!@)7,@+2UH96QP)R!F;W(@;6]R M92!I;F9O'!E8W1E9"!%3T8@:6X@;6%N9VQE9"!N86UE2!O;F4@;V8@=&AE(&`M06-D=')U M>"<@;W!T:6]N&5C+W1C<#H@4V5R=FEC92!N;W0@879A:6QA8FQE`')M M=&0Z($-A;FYO="!A;&QO8V%T92!B=69F97(@7!E.B!T97AT+W!L86EN.R!C:&%RF)IB!D86YI;2!)345.3TT*("`@("`@("`@("`@ M("!66D]214,@("`@("`@("`@("`@("`@('!R:2!PF)I7)I9VAT("A#*2`Q.3@X+"`Q.3DR+3$Y.3F1E;&ET978@ M96YO=&4Z"B`@+6(L("TM8FQO8VMI;FF%P:7-A($),3TM)('@@-3$R('IL;V=O=@H@("`@("`M+7)E8V]R9"US M:7IE/41/3*Y)3D$@("`@("!$3TRN24Y!('IA<&ES82!V('IL;V=I:"`H=F7H M:W)A=&YI:R`U,3(I"B`@+6DL("TM:6=N;W)E+7IEF$@8FQO:V4@;FGH96P@*$5/1BD*("`M0BP@+2UR96%D M+69U;&PMAJ92!V(&EM96YU"B`@("`@ M("TMF%P:7-A"B`@+4TL("TM M;75L=&DM=F]L=6UE("`@("`@("`@("`@('5S='9A"`Q,#(T('IA M<&ES86YI:"!Z;&]G:6@*("`M1BP@+2UI;F9O+7-CF)IKEIB!A=')I8G5T:2!D871O=&5K M.@H@("`@("`M+6]W;F5R/4E-12`@("`@("`@("`@("`@<')I(&1O9&%J86YJ M=2!D871O=&5K('-PB!S<')E M;6EN:F%N:F$@Z&%S82!Z861N:F5G82!D;W-T;W!A"B`@+6TL("TM;6]D:69I M8V%T:6]N+71I;64@("`@("!BB!O:')A;FET=FEJ;R!Z8;GH:71E(&1A=&]T96L*("`@("`@+2UPB!AF5N('1U9&D@>F$@:W)A=&MO(&]B;&EK;RX@ M4&]D;V)N;R!V96QJ82!Z82!N96]B=F5Z;F4@87)G=6UE;G1E+@H`"DEN9F]R M;6%T:79N:2!I>G!IB!Z9V]V;W)N:6T@:7IP:7-O M;2!O8F1E;&%N:6@@9&%T;W1E:PH@("`@("`M+6-H96-K<&]I;G0@("`@("!Z M(&EZ<&ES;VT@:6UE;FEK;W8@<')I(&)R86YJ=2!AB!I>G!IF%P:7-U"B`@+5(L("TM8FQO8VLM;G5M8F5R("`@('H@:7IP:7-O;2!Z87!O MFYA M;2!D871O=&5K('!R96)EF5N(&1A=&]T96LL(&MI(&II:"!O<&ES=6IE(%9: M3U)%0PH@("U8+"`M+65X8VQU9&4M9G)O;3U$051/5$5+02`@=G-E(&1A=&]T M96ME(')A>F5N('9Z;W)C978L('!R96)R86YI:"!Z($1!5$]414M%"B`@+5`L M("TM86)S;VQU=&4M;F%M97,@("`@("`@;VAR86YI;6\@=F]D:6QN:2`L+V`@ M<')I(&EM96YI:"!D871O=&5K"B`@+6@L("TM9&5R969EAU:F5M;R!A=G1O;6%T:>AN;PH@("UL+"`M+6]N M92UF:6QE+7-YB!N879E9&5N:6T@24U%3D]-('8@87)H:79U M"@`*1VQA=FYI(&YAZ&EN:2!D96QO=F%N:F$Z"B`@+70L("TM;&ES="`@("`@ M("`@("`@("`@:7IP:7,@=G-E8FEN92!A"P@+2UE>'1R86-T M+"`M+6=E="`@("!I>G9L9>AE;FIE(&1A=&]T96ME(&EZ(&%R:&EV80H@("UC M+"`M+6-R96%T92`@("`@("`@("`@('5S='9AFQI:R!M M960@87)H:79O;2!I;B!D871O=&7H;FEM('-I2`@("`@("`@("`@("`@ M(',@<&]S:W5S;VT@<')E=F5R:F%N:F$@>F%P:7-A;F5G82!AG9L8>AE;FIU(&YO=FEH"B`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@<')E:R!N:FEH("AT=61I(&-E;&EH(&EM M96YI:V]V+"#H92!J92!D86X@9'9A:W)A="D*("`@("`@+2UR96-UG!R87IN:6UO(&AI97)AG9L8>AE M;FIE;2!I;65N:6MO=@H@("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&5K M;VYO;6GH;F\@B!R87IPF5N(.AE(&YI(&1R=6=AZ&4@9&]L;^AE;F\@ M>B!I>F)I@II>F)I2!&96YL87-O;BX*`"`@("`@("TM8F%C:W5P M6SU#3TY44D],72`@("`@("!V87)N;W-T;F$@:V]P:6IA('!R960@8G)IFEJ90H@("`@("`M+7-U9F9I>#U3549& M25@@("`@("`@("`@=F%R;F]S=&YA(&MO<&EJ82!PF%V82!N82`EFYO(&QU<&EN;PH@/R`@("`@("`@("!4 M82!S97IN86T@=7IA>F]V"@`@;F5Z;F%N('1I<"`L)6,G"@`EB!S<')E M;65M8@`EAN96T@B!S<')E;65M M8@`EF5R=FER871I('!R;W-T;W)A('IA M(&UE9'!O;6YI;&YI:P!);65N:6L@)7,@;FD@9&]S96=L:FEV`$EM96YI:R`E MF%PFYE(&QU<&EN90!$96%R:&EV86-I M:F$@+"5S)R!N:2!M;[YN82`M(&1A=&]T96MA('-E(&YA9&%L:G5J92!I>B!P MF%V82`E@@9&5L:6@@;FES;R!M M;[YN:0!3=&ES;FIE;F5G82!AF5R=FER871I('!O;6YI;&YI:V$@>F$@ M8FQOZ&YI(&9A:W1OG9E9&5T M:2!TF$@:V]N96,@9&%T;W1E:V4@=B!AFAO9"!O8B!N87!A:VD@>F%K87-N:F5N('IA@!5F)IFQI:W5J90!( M;6TL('1O(&YE(&EZ9VQE9&$@:V]T(&%R:&EV('1A<@!!F$@9&]L9V4@;V)L:6ME(&EZ8FER92P@F$@5EI/4D5#('-T82`L9&5F875L M=&`@:6X@+'IEFEJ M82!PF&YZ&ET82!N:2!V M96QJ879N80!0;V1A;FD@=7!OF$@9&]LOFEN;R!Z87!IF)IF%D;FIE('-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sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/sl.gmo:' 'MD5 check failed' 92f98fe8705dad4f5fa90f27479aa329 tar-1.13/po/sl.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/sl.gmo'`" test 30723 -eq "$shar_count" || $echo 'tar-1.13/po/sl.gmo:' 'original size' '30723,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/sv.gmo ============== if test -f 'tar-1.13/po/sv.gmo' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/sv.gmo' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/sv.gmo' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/sv.gmo ME002W@````````#/````'```!I0```$5```-#````````!%@```"$```$6$` M```_```3<@```2T``!.R```"B```%.````%7```7:0```Q\``!C!````D``` M&^$```(````<<@```N0``!YS```"+0``(5@```+A```CA@```"0``"9H```! M-P``)HT````7```GQ0```"$``"?=````-P``)_\````K```H-P```)D``"AC M````M@``*/T````.```IM`````P``"G#````F```*=`````8```J:0```"(` M`"J"````'0``*J4````R```JPP```!X``"KV````&0``*Q4````D```K+P`` M`!H``"M4````%P``*V\````7```KAP```!L``"N?````$```*[L````7```K MS````!@``"OD````*0``*_T````C```L)P```"(``"Q+````'```+&X````7 M```LBP```!@``"RC````%0``++P````6```LT@```!H``"SI````&P``+00` M```7```M(````!(``"TX````,@``+4L````6```M?@```"0``"V5````(@`` M+;H````0```MW0```!$``"WN````(@``+@`````U```N(P```!<``"Y9```` M$@``+G$````<```NA````!T``"ZA````$@``+K\````:```NT@```!4``"[M M````#@``+P,````6```O$@```!L``"\I````/```+T4````+```O@@````P` M`"^.````#@``+YL````6```OJ@```!@``"_!````$P``+]H````0```O[@`` M`!P``"__````#@``,!P````B```P*P```"0``#!.````$P``,',````0```P MAP```!8``#"8````#@``,*\````3```PO@```!<``##2````(0``,.H````H M```Q#````"L``#$U````(0``,6$````C```Q@P```"(``#&G````$@``,P``-50````R```UT`````\``#8#````+```-A,````+```V M0````"D``#9,```!60``-G8````8```WT````!T``#?I````'```.`<````= M```X)````!T``#A"````$```.&`````:```X<0```!```#B,````#```.)T` M```;```XJ@```!P``#C&````*P``..,````5```Y#P```!4``#DE````&``` M.3L````9```Y5````!(``#EN````$```.8$````Q```YD@```"D``#G$```` M+P``.>X````R```Z'@```#0``#I1````*```.H8````Q```ZKP```"4``#KA M````"P``.P<````P```[$P```"L``#M$````,0``.W`````5```[H@```"H` M`#NX````$@``.^,````0```[]@````L``#P'````)0``/!,````M```\.0`` M`"@``#QG````/```/)`````0```\S0````P``#S>````'```/.L````7```] M"`````\``#T@````$@``/3`````E```]0P```)<``#UI````'@``/@$````9 M```^(````!4``#XZ````)@``/E`````+```^=P```!D``#Z#````'P``/IT` M```>```^O0```!T``#[<````-```/OH````W```_+P```!0``#]G````%``` M/WP````M```_D0````<``#^_````%P``/\<````6```_WP```!\``#_V```` M'@``0!8````A``!`-0```!D``$!7````$P``0'$````S``!`A0```"X``$"Y M````'P``0.@````C``!!"````!D``$$L````%```048````%``!!6P````8` M`$%A````"P``06@````0``!!=````3<``$&%```".```0KT````]``!$]@`` M`5(``$4T```"Y0``1H<```%N``!);0```Y```$K<````F0``3FT```'W``!/ M!P```K,``%#_```".```4[,```-?``!5[````&T``%E,```!?@``6;H````< M``!;.0```"4``%M6````-P``6WP````K``!;M````1```%O@````M0``7/$` M```0``!=IP````X``%VX````I@``7<<````3``!>;@```"```%Z"````'0`` M7J,````Q``!>P0```!P``%[S````&```7Q`````M``!?*0```!X``%]7```` M&0``7W8````>``!?D````!X``%^O````$```7\X````5``!?WP```!@``%_U M````*@``8`X````A``!@.0```!\``&!;````(0``8'L````=``!@G0```!@` M`&"[````&P``8-0````;``!@\````!\``&$,````'P``82P````3``!A3``` M``\``&%@````.P``87`````6``!AK````"P``&'#````+0``8?`````6``!B M'@```!8``&(U````'P``8DP````U``!B;````"```&*B````'```8L,````9 M``!BX````!T``&+Z````'0``8Q@````<``!C-@```!<``&-3````%```8VL` M```=``!C@````!L``&.>````0@``8[H````.``!C_0````\``&0,````$0`` M9!P````9``!D+@```!L``&1(````%P``9&0````2``!D?````!4``&2/```` M$```9*4````I``!DM@```"H``&3@````%0``90L````3``!E(0```"```&4U M````&```958````>``!E;P```"0``&6.````)@``9;,````T``!EV@```"T` M`&8/````)@``9CT````C``!F9````"<``&:(````%P``9K`````L``!FR``` M`!4``&;U````&@``9PL````B``!G)@```!\``&=)````(```9VD````L``!G MB@```$```&>W````(0``9_@````Q``!H&@```"4``&A,````.```:'(````@ M``!HJP````\``&C,````#0``:-P````D``!HZ@```!@``&D/````&@``:2@` M```2``!I0P````X``&E6````%```:64````B``!I>@```#4``&F=````%P`` M:=,````D``!IZP```#$``&H0````%```:D(````;``!J5P```!P``&IS```` M>```:I`````T``!K"0````X``&L^````*0``:TT````,``!K=P```"P``&N$ M```!/P``:[$````9``!L\0```!X``&T+````)0``;2H````B``!M4````!T` M`&US````"P``;9$````7``!MG0```!P``&VU````%@``;=(````E``!MZ0`` M`!0``&X/````)P``;B0````0``!N3````!8``&Y=````&@``;G0````@``!N MCP```!(``&ZP````$P``;L,````L``!NUP```"0``&\$````*@``;RD````M M``!O5````"\``&^"````(P``;[(````W``!OU@```"<``'`.````#```<#8` M```Y``!P0P```"L``'!]````.P``<*D````2``!PY0```#@``'#X````%@`` M<3$````+``!Q2`````D``'%4````*```<5X````I``!QAP```"L``'&Q```` M-P``<=T````8``!R%0```!0``'(N````)```0```#P```"*````.````+8` M```]````H0```)X```"R````%@```'(```!=````2P`````````F````4``` M`)`````+````;0```,4````$`````````*P````````````````````C```` M5@````````#`````J```````````````K@`````````I````FP```,\```!, M````#P```#,```!T````>P```#<```!J````;P```$<```"3````S``````` M``!5```````````````T````2`````````!L````D0`````````7````=0`` M`(X```!4````0````,<``````````````(4```"]`````````#8```"I```` M@0```#$`````````E0````````!N`````````(L````_````K0```(````"K M````%````$4````J````30```+\`````````@P```(<```!^````8``````` M``!E````#0```$X```#-``````````@```"X````:````'H`````````B0`` M`````````````````!````!8````'````"P````U````80`````````````` MA````%X````%`````````&(````R````2@`````````H`````````)P```"\ M````9````&,`````````Q````"$```"Y````20```%(```!7`````````*4` M``"C`````````$0```"7````F@```!(```!P`````````+H````^````(``` M`&<```!;````!@```#D````8``````````````!:`````````!L`"D%R8VAI M=F4@9F]R;6%T('-E;&5C=&EO;CH*("`M5BP@+2UL86)E;#U.04U%("`@("`@ M("`@("`@("`@("`@(&-R96%T92!ABP@+2UG M>FEP+"`M+75N9WII<"`@("`@("`@("`@("`@(&9I;'1E"`U,3(@8GET97,@<&5R(')E8V]R9`H@("`@("`M M+7)E8V]R9"US:7IE/5-)6D4@("`@("`@("!325I%(&)Y=&5S('!EF5R;V5D(&)L;V-K"<@87)C:&EV97,N("!)9B!03U-)6$Q97T-/4E)%0U0*:7,@"6UB;VQI8RD@;6]D92!#2$%.1T53(&9O'1R86-T(&%L;"!P0IF;W(@=&AE(&5Q=6EV86QE;G0@&ET"B`@("`@("TM=F5R2!N86UE&-L=61E(&=L;V)B:6YG M('!A='1E7-T96T@ M("`@("`@('-T87D@:6X@;&]C86P@9FEL92!S>7-T96T@=VAE;B!C"P@+2UE>'1R86-T+"`M+6=E="`@ M("!E>'1R86-T(&9I;&5S(&9R;VT@86X@87)C:&EV90H@("UC+"`M+6-R96%T M92`@("`@("`@("`@(&-R96%T92!A(&YE=R!A2!I;B!A2`@("`@ M("`@("`@("`@(&%T=&5M<'0@=&\@=F5R:69Y('1H92!A'1R86-T M:6YG(&]V97(@:70*("`@("`@+2UR96-U2!H:65R87)C:&EE'1R86-T:6YG(&1I0H@ M("U3+"`M+7-P87)S92`@("`@("`@("`@("`@(&AA;F1L92!S<&%R'1R86-T(&9I;&5S('1O('-T86YD87)D(&]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@("`@("`@('-K MFEP("`@("`@("`@("`@("`@9FEL=')EFEP"B`@+5HL("TM8V]M<')E7)I9VAT(*D@,3DY-2P@,3DY-BP@,3DY-R!& M"`U M,3(@8GET92!P97(@<&]S=`H@("`@("`M+7)E8V]R9"US:7IE/4%.5$%,("`@ M("`@("!!3E1!3"!B>71E('!EF5R;W,@("`@("`@("`@("`@:6=N;W)E'1R86AE'1R86AE'1R86AE'0@;V-H(&%V3U+051!3$]'("`@(&)Y="!K871A;&]G('1I;&P@ M2T%404Q/1PH@("U4+"`M+69I;&5S+69R;VT]3D%-3B`@("`@(&CD;71A(&YA M;6X@871T(&5X=')A:&5R82!F6UB;VQI7-T96UE="!O8V@@87)K:79E=`H@("UR+"`M+6%P<&5N9"`@("`@ M("`@("`@(&SD9V<@=&EL;"!F:6QE&ES=&5R86YD92!F:6QE'1R86AE6YP=6YK=&5R('#E(/9V97)SY'1T;FEN9V5N M('1I;&P@/'-V0&QI+F]R9SXN"@`*4^1K97)H971S:V]P:67D;F1E;'-E(.1R M(")^(BP@;VT@9&5N(&EN=&4@<^1T=',@;65D("TM71T M(&9I;&YA;6X@9O9R(&[D6TH M97(I"B!Q("`@("`@("`@($%V6UH=79U9"TM"@!,861E('1I;&P@&5K=F5R:6YG M61I9W0@;?9N'1R86AE&5K=F5R82`E M&5K=F5R82!E='0@&5K M=F5R82!F:N1R71A('!O0!%>&ES=&5R87(@:6YT90!&:6QS;'5T(&D@87)K:79F:6QE M;@!&:6QS;'5T('9I9"!F]G)VY&YT870@86YVY&YD87)S=F%R`$%V'1R86AEF5R;W,B"B`@("`@ M("TM:&5L<"`@("`@("`@("`@("`@("`@=FES82!D96YN82!H:N1L<'1E>'0@ M;V-H(&%V6-K('9A9VYR971U6UB;VQI6UB;VQI6T@(B5S(B#V=F5R96YS6UH=79U9`!3:W)I=F5R(&MO;G1R;VQL<'5N:W0@ M)60`1'4@:V%N(&5N9&%S="!A;F=E(&5N(&%V(&9L86=G;W)N82`B+4%C9'1R M=7@B`$1U(&WE"(` M97AE8R]T8W`Z(%1JY&YS=&5N(.1R(&EN=&4@=&EL;&?D;F=L:6<`&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/sv.gmo:' 'MD5 check failed' e297e714620bfe6902d0c70d2a37dedc tar-1.13/po/sv.gmo SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/sv.gmo'`" test 30505 -eq "$shar_count" || $echo 'tar-1.13/po/sv.gmo:' 'original size' '30505,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/po/cat-id-tbl.c ============== if test -f 'tar-1.13/po/cat-id-tbl.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/po/cat-id-tbl.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/po/cat-id-tbl.c' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/po/cat-id-tbl.c M+RH@075T;VUA=&EC86QL>2!G96YER(B+"`Q?2P* M("![(FEN=F%L:60@87)G=6UE;G0@8"5S)R!F;W(@8"5S)R(L(#)]+`H@('LB M86UB:6=U;W5S(&%R9W5M96YT(&`ER)5;FMN;W=N('-YR(ER(E2!E>&AA=7-T960B+"`Q-WTL"B`@>R)!R)#86YN;W0@<')O<&5R;'D@9'5P;&EC M871E("5S(BP@,C)]+`H@('LB0V%N;F]T('5S92!C;VUPR)#86YN;W0@9F]R:R(L(#(U?2P*("![(G1AR)#:&EL M9"!C86YN;W0@9F]R:R(L(#,Q?2P*("![(B@H8VAI;&0I*2!0:7!E('1O('-T M9&]U="(L(#,R?2P*("![(G1AR(H M9W)A;F1C:&EL9"D@4&EP92!T;R!S=&1I;B(L(#,T?2P*("![(D-A;FYO="!R M96%D(&9R;VT@8V]M<')ER)!R(H9W)A;F1C:&EL9"D@4&EP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<;EP*("`@("`@+2UP;W-I M>"`@("`@("`@("`@("`@("`@("`@("`@('=R:71E(&$@4$]325@@8V]N9F]R M;6%N="!AFEP7&Y<"B`@ M+5HL("TM8V]M<')E&-L=61E(&=L;V)B:6YG('!A='1E M2!I;B!L;V-A;"!F:6QE('-Y2!S=&]R92!F:6QE2!L:7-T(&9I M;&5S('!R;V-E71E&ES M=&EN9R`@(&YU;6)ER)<"EQN7`I'3E4@=&%R M(&-A;FYO="!R96%D(&YOR)9;W4@;6%Y(&YO="!S<&5C:69Y(&UOR)/;&0@;W!T:6]N(&`E8R<@ MR));G9A;&ED('1A M<&4@;&5N9W1H(BP@,C,X?2P*("![(D]BR));G9A;&ED(&1A=&4@9F]R;6%T M(&`ER)/8G-O;&5T92!O<'1I;VX@;F%M92!R97!L M86-E9"!B>2`M+6%BR)296-O7)I9VAT("A#*2`Q.3@X+"`Y,BPY M,RPY-"PY-2PY-BPY-RPY."P@,3DY.2!&6EN9R!C;VYD:71I;VYS+B`@ M5&AER)'3E4@9F5A='5R97,@ M=V%N=&5D(&]N(&EN8V]M<&%T:6)L92!AR)-=6QT:7!L92!A2!A2!O;F4@;V8@=&AE(&`M06-D=')U>"<@;W!T:6]NR)%&ET(&1E;&%Y960@9G)O;2!P6%R:R$I(BP@,C8R?2P*("![(D=E;F5R871E M(&1A=&$@9FEL97,@9F]R($=.52!T87(@=&5S="!S=6ET92Y<;B(L(#(V,WTL M"B`@>R)<"EQN7`I5R)<"DEF(&$@;&]N9R!O<'1I;VX@5QN7`IF;W(@=&AE(&5Q=6EV M86QE;G0@R)5;FMN;W=N('!A='1ER)< M"EQN7`I#;W!Y&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/po/cat-id-tbl.c:' 'MD5 check failed' 8f81e755f19202c95a6cedecea8c4c2e tar-1.13/po/cat-id-tbl.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/po/cat-id-tbl.c'`" test 18227 -eq "$shar_count" || $echo 'tar-1.13/po/cat-id-tbl.c:' 'original size' '18227,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/ChangeLog ============== if test ! -d 'tar-1.13/tests'; then $echo 'x -' 'creating directory' 'tar-1.13/tests' mkdir 'tar-1.13/tests' fi if test -f 'tar-1.13/tests/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/tests/ChangeLog M,3DY-RTP-"TR-2`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N M=')E86PN8V$^"@H)*B!296QE87-E(#$N,3(N"@H)*B!G>FEP+G-H+"!I9VYF M86EL+G-H.B!!9&IU2P@9&\@ M;F]T(&%S2!!;F1R96%S(%-C:'=A8BX*"C$Y.32!+879E:"!2+B!':&%Z:2X*"C$Y.32!T97-TFDN"@HQ.3DW+3`T+3$W("!&2!"'1R M86,P,2YS:#H@3F5W(&YA;64@9F]R(&5X=')A8W0N2!!>&5L($)O;&1T+@H*,3DY-BTQ,2TR-2`@1G)A M;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^"@H)*B!G M96YF:6QE+F,@*'5S86=E*3H@5'EP;R!I;B!M97-S86=E+@H)4F5P;W)T960@ M8GD@0VAR:7-T:6%N($MI2!4;VT@5')O;65Y(&%N9"!2;V)E&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/ChangeLog:' 'MD5 check failed' 579aae10853e44d0d299e710ff5c0244 tar-1.13/tests/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/ChangeLog'`" test 4898 -eq "$shar_count" || $echo 'tar-1.13/tests/ChangeLog:' 'original size' '4898,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/Makefile.am ============== if test -f 'tar-1.13/tests/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/Makefile.am' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/tests/Makefile.am M(R!-86ME9FEL92!F;W(@1TY5('1A6]U'1R86,P,2YS:"!E>'1R86,P,BYS:"!E>'1R86,P,RYS M:"!<"F]L9"YS:"!V;VQU;64N&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/Makefile.am:' 'MD5 check failed' 5960471adf41c7aeba532f4ee12e15a6 tar-1.13/tests/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/Makefile.am'`" test 1429 -eq "$shar_count" || $echo 'tar-1.13/tests/Makefile.am:' 'original size' '1429,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/Makefile.in ============== if test -f 'tar-1.13/tests/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/Makefile.in' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/tests/Makefile.in M(R!-86ME9FEL92YI;B!G96YE2!B>2!A=71O M;6%K92`Q+C0@9G)O;2!-86ME9FEL92YA;0H*(R!#;W!Y2!L87<[('=I=&AO=70*(R!E=F5N('1H92!I;7!L:65D('=A6]U$`*97AE8U]P7-C;VYF9&ER(#T@0'-YFEP+G-H(&%P<&5N9"YS:"!D96QE=&4P,2YS:`H*"B,@4&]S M='!O;F5D('5N=&EL(&%F=&5R('1H92`Q+C$R(')E;&5A6-L96%N+6MR.@H)+7)M("UF M("I?+F,*"F-L96%N+6MR.@H*9&ES=&-L96%N+6MR.@H*;6%I;G1A:6YER!F:6QE6-L96%N+71A9W,Z"@IC;&5A;BUT86=S.@H*9&ES M=&-L96%N+71A9W,Z"@DM'!R M("0D86QL("L@,6`[(%P*"2`@("!E8VAO(")005-3.B`D)'1S="([(%P*"2`@ M96QI9B!T97-T("0D/R`M;F4@-S<[('1H96X@7`H)("`@(&%L;#U@97AP'!R("0D9F%I;&5D("L@,6`[ M(%P*"2`@("!E8VAO(")&04E,.B`D)'1S="([(%P*"2`@9FD[(%P*"61O;F4[ M(%P*"6EF('1E&5C+6%M.@II;G-T86QL+65X96,Z M(&EN&5C+6%M(&EN6-L96%N+6%M.B`@;6]S=&QY M8VQE86XM8VAE8VM04D]'4D%-4R!M;W-T;'EC;&5A;BUC;VUP:6QE(%P*"0EM M;W-T;'EC;&5A;BUK6-L96%N+6=E M;F5R:6,*"FUO6-L96%N.B!M;W-T;'EC;&5A;BUA;0H*8VQE86XM86TZ M("!C;&5A;BUC:&5C:U!23T=204U3(&-L96%N+6-O;7!I;&4@8VQE86XM:W(@ M8VQE86XM=&%G6-L96%N+6-O;7!I;&4@7`ID M:7-T8VQE86XM8V]M<&EL92!C;&5A;BUC;VUP:6QE(&UA:6YT86EN97(M8VQE M86XM8V]M<&EL92!M;W-T;'EC;&5A;BUK&5C+6%M(&EN&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/Makefile.in:' 'MD5 check failed' 06cb63e46cbf4b782ca8b04e1c4a30c9 tar-1.13/tests/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/Makefile.in'`" test 10051 -eq "$shar_count" || $echo 'tar-1.13/tests/Makefile.in:' 'original size' '10051,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/preset.in ============== if test -f 'tar-1.13/tests/preset.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/preset.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/preset.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/preset.in' && #! /bin/sh # Set the testing environment. X PACKAGE=@PACKAGE@ VERSION=@VERSION@ top_srcdir=@top_srcdir@ srcdir=@srcdir@ X export LANGUAGE LANGUAGE= export LANG LANG= export LC_MESSAGES LC_MESSAGES= SHAR_EOF $shar_touch -am 0616041499 'tar-1.13/tests/preset.in' && chmod 0555 'tar-1.13/tests/preset.in' || $echo 'restore of' 'tar-1.13/tests/preset.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/preset.in:' 'MD5 check failed' 20af0ff1902e85a5629994d4cabbc3a7 tar-1.13/tests/preset.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/preset.in'`" test 196 -eq "$shar_count" || $echo 'tar-1.13/tests/preset.in:' 'original size' '196,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/genfile.c ============== if test -f 'tar-1.13/tests/genfile.c' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/genfile.c' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/genfile.c' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/tests/genfile.c M+RH@1V5N97)A=&4@82!F:6QE(&-O;G1A:6YI;F<@2!O9@H@ M("!-15)#2$%.5$%"24Q)5%D@;W(@1DE43D534R!&3U(@02!005)424-53$%2 M(%!54E!/4T4N("!3964@=&AE($=.50H@("!'96YE&ET M+B`@*B\*F5R M;RP@<')I;G0@=&AE('9E&ET+B`@*B\*PH@("`@("!P2P@=&AE;B!I="!IF5R;W,G7&Y<"B`@("`@("TM:&5L<"`@("`@("`@("`@("`@("`@ M9&ES<&QA>2!T:&ES(&AE;'`@86YD(&5X:71<;EP*("`@("`@+2UV97)S:6]N M("`@("`@("`@("`@("!O=71P=70@=F5R2!O9B!\"GP@F5R;W,B+`D)"2\J(#$@*B\* M("!.54Q,"GT["@II;G0*;6%I;B`H:6YT(&%R9V,L(&-H87(@*F-O;G-T("IA MPH@("`@("!D969A=6QT.@H)=7-A9V4@*$58251?1D%)3%5212D["@H@("`@ M("!C87-E("=<,"PH*"2`@8V%S92`M,CH*"2`@("!E6EN9R!C;VYD:71I;VYS+B`@5&AEPH@("`@8V%S92!$149!54Q4.@H@("`@("!F;W(@*&-O=6YT M97(@/2`P.R!C;W5N=&5R(#P@9FEL95]L96YG=&@[(&-O=6YT97(K*RD*"7!U M=&-H87(@*&-O=6YT97(@)B`R-34I.PH@("`@("!B&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/genfile.c:' 'MD5 check failed' dd729ba1faf3c4bda8467ee1e9c78523 tar-1.13/tests/genfile.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/genfile.c'`" test 4704 -eq "$shar_count" || $echo 'tar-1.13/tests/genfile.c:' 'original size' '4704,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/after ============== if test -f 'tar-1.13/tests/after' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/after' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/after' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/after' && #! /bin/sh # Do common operations after a particular test. X cd .. exec 1> /dev/null exec 2> /dev/null X echo "$out" | sed '$d' >tmp-$$/stdout0 cmp -s tmp-$$/stdout0 tmp-$$/stdout || exit 1 X echo "$err" | sed '$d' >tmp-$$/stderr0 cmp -s tmp-$$/stderr0 tmp-$$/stderr || exit 1 X rm -rf tmp-$$ SHAR_EOF $shar_touch -am 0702224899 'tar-1.13/tests/after' && chmod 0555 'tar-1.13/tests/after' || $echo 'restore of' 'tar-1.13/tests/after' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/after:' 'MD5 check failed' 64b32aeaf470ec38962f27ec6114a273 tar-1.13/tests/after SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/after'`" test 289 -eq "$shar_count" || $echo 'tar-1.13/tests/after:' 'original size' '289,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/before ============== if test -f 'tar-1.13/tests/before' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/before' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/before' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/before' && #! /bin/sh # Do common operations before a particular test. X mkdir tmp-$$ cd tmp-$$ X case $srcdir in X /*|~*) ;; X *) srcdir=../$srcdir ;; esac X out= err= X echo $0 > checking exec 1> stdout exec 2> stderr X PATH=..:../../src:$PATH SHAR_EOF $shar_touch -am 1122093996 'tar-1.13/tests/before' && chmod 0555 'tar-1.13/tests/before' || $echo 'restore of' 'tar-1.13/tests/before' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/before:' 'MD5 check failed' 5a762836fb4829a43a4a1209a990243b tar-1.13/tests/before SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/before'`" test 230 -eq "$shar_count" || $echo 'tar-1.13/tests/before:' 'original size' '230,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/version.sh ============== if test -f 'tar-1.13/tests/version.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/version.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/version.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/version.sh' && #! /bin/sh # Check if the proper version is being tested. X X. ./preset PATH=../src:$PATH X if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then X banner="Regression testing for GNU $PACKAGE, version $VERSION" X dashes=`echo $banner | sed s/./=/g` X echo $dashes X echo $banner X echo $dashes else X echo '==============================================================' X echo 'WARNING: Not using the proper version, *all* checks dubious...' X echo '==============================================================' X exit 1 fi SHAR_EOF $shar_touch -am 0225211297 'tar-1.13/tests/version.sh' && chmod 0555 'tar-1.13/tests/version.sh' || $echo 'restore of' 'tar-1.13/tests/version.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/version.sh:' 'MD5 check failed' bcaf68e212d9d6f48713b46dbe3d9969 tar-1.13/tests/version.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/version.sh'`" test 545 -eq "$shar_count" || $echo 'tar-1.13/tests/version.sh:' 'original size' '545,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/ignfail.sh ============== if test -f 'tar-1.13/tests/ignfail.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/ignfail.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/ignfail.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/ignfail.sh' && #! /bin/sh # Unreadable directories yielded error despite --ignore-failed-read. X X. ./preset X. $srcdir/before X > check-uid set - x`ls -l check-uid` if test $3 = root; then X X # The test is meaningless for super-user. X rm check-uid X else X X touch file X mkdir directory X touch directory/file X X echo 1>&2 ----- X chmod 000 file X tar cf archive file X status=$? X chmod 600 file X test $status = 2 || exit 1 X X echo 1>&2 ----- X chmod 000 file X tar cf archive --ignore-failed-read file || exit 1 X status=$? X chmod 600 file X test $status = 0 || exit 1 X X echo 1>&2 ----- X chmod 000 directory X tar cf archive directory X status=$? X chmod 700 directory X test $status = 2 || exit 1 X X echo 1>&2 ----- X chmod 000 directory X tar cf archive --ignore-failed-read directory || exit 1 X status=$? X chmod 700 directory X test $status = 0 || exit 1 X X err="\ ----- tar: Cannot add file file: Permission denied tar: Error exit delayed from previous errors ----- tar: Cannot add file file: Permission denied ----- tar: Cannot add directory directory: Permission denied tar: Error exit delayed from previous errors ----- tar: Cannot add directory directory: Permission denied " X fi X X. $srcdir/after SHAR_EOF $shar_touch -am 0425132197 'tar-1.13/tests/ignfail.sh' && chmod 0555 'tar-1.13/tests/ignfail.sh' || $echo 'restore of' 'tar-1.13/tests/ignfail.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/ignfail.sh:' 'MD5 check failed' 74a52f39aa1116c962385f8192bfa0cf tar-1.13/tests/ignfail.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/ignfail.sh'`" test 1223 -eq "$shar_count" || $echo 'tar-1.13/tests/ignfail.sh:' 'original size' '1223,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/extrac01.sh ============== if test -f 'tar-1.13/tests/extrac01.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/extrac01.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/extrac01.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/extrac01.sh' && #! /bin/sh # There was a diagnostic when directory already exists. X X. ./preset X. $srcdir/before X set -e mkdir directory touch directory/file tar cf archive directory || exit 1 tar xf archive || exit 1 X X. $srcdir/after SHAR_EOF $shar_touch -am 1122112096 'tar-1.13/tests/extrac01.sh' && chmod 0555 'tar-1.13/tests/extrac01.sh' || $echo 'restore of' 'tar-1.13/tests/extrac01.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/extrac01.sh:' 'MD5 check failed' df1ec6bc39a80ee53eb0d3cbaed517db tar-1.13/tests/extrac01.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/extrac01.sh'`" test 218 -eq "$shar_count" || $echo 'tar-1.13/tests/extrac01.sh:' 'original size' '218,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/extrac02.sh ============== if test -f 'tar-1.13/tests/extrac02.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/extrac02.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/extrac02.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/extrac02.sh' && #! /bin/sh # Could not extract symlinks over an existing file. X X. ./preset X. $srcdir/before X set -e touch file ln -s file link 2> /dev/null || ln file link tar cf archive link rm link touch link tar xf archive X X. $srcdir/after SHAR_EOF $shar_touch -am 0121165397 'tar-1.13/tests/extrac02.sh' && chmod 0555 'tar-1.13/tests/extrac02.sh' || $echo 'restore of' 'tar-1.13/tests/extrac02.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/extrac02.sh:' 'MD5 check failed' 4b86c06fa01decbdde4f44c9ae294fef tar-1.13/tests/extrac02.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/extrac02.sh'`" test 227 -eq "$shar_count" || $echo 'tar-1.13/tests/extrac02.sh:' 'original size' '227,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/extrac03.sh ============== if test -f 'tar-1.13/tests/extrac03.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/extrac03.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/extrac03.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/extrac03.sh' && #! /bin/sh # Paths going up and down were inducing extraction loops. X X. ./preset X. $srcdir/before X set -e mkdir directory tar cfv archive directory/../directory echo ----- tar xfv archive X out="\ directory/../directory/ ----- directory/../directory/ " X X. $srcdir/after SHAR_EOF $shar_touch -am 0422175397 'tar-1.13/tests/extrac03.sh' && chmod 0555 'tar-1.13/tests/extrac03.sh' || $echo 'restore of' 'tar-1.13/tests/extrac03.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/extrac03.sh:' 'MD5 check failed' 80171e4317e5decec476a0db191db142 tar-1.13/tests/extrac03.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/extrac03.sh'`" test 269 -eq "$shar_count" || $echo 'tar-1.13/tests/extrac03.sh:' 'original size' '269,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/old.sh ============== if test -f 'tar-1.13/tests/old.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/old.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/old.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/old.sh' && #! /bin/sh # An old archive was not receiving directories. X X. ./preset X. $srcdir/before X set -e mkdir directory tar cfvo archive directory tar tf archive X out="\ directory/ directory/ " X X. $srcdir/after SHAR_EOF $shar_touch -am 0225164997 'tar-1.13/tests/old.sh' && chmod 0555 'tar-1.13/tests/old.sh' || $echo 'restore of' 'tar-1.13/tests/old.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/old.sh:' 'MD5 check failed' d35ea7b7bf66d035fa0787478af94392 tar-1.13/tests/old.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/old.sh'`" test 203 -eq "$shar_count" || $echo 'tar-1.13/tests/old.sh:' 'original size' '203,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/volume.sh ============== if test -f 'tar-1.13/tests/volume.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/volume.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/volume.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/volume.sh' && #! /bin/sh # Volume labels are checked on read by fnmatch. X X. ./preset X. $srcdir/before X tar cfVT archive label /dev/null || exit 1 X tar xfV archive label || exit 1 tar xfV archive 'la?el' || exit 1 tar xfV archive 'l*l' || exit 1 X echo 1>&2 ----- tar xfV archive lab test $? = 2 || exit 1 echo 1>&2 ----- tar xfV archive bel test $? = 2 || exit 1 echo 1>&2 ----- tar xfV archive babel test $? = 2 || exit 1 X err="\ ----- tar: Volume \`label' does not match \`lab' tar: Error is not recoverable: exiting now ----- tar: Volume \`label' does not match \`bel' tar: Error is not recoverable: exiting now ----- tar: Volume \`label' does not match \`babel' tar: Error is not recoverable: exiting now " X X. $srcdir/after SHAR_EOF $shar_touch -am 0329132897 'tar-1.13/tests/volume.sh' && chmod 0555 'tar-1.13/tests/volume.sh' || $echo 'restore of' 'tar-1.13/tests/volume.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/volume.sh:' 'MD5 check failed' a7b6c211e928d203cd886c90e79500f3 tar-1.13/tests/volume.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/volume.sh'`" test 713 -eq "$shar_count" || $echo 'tar-1.13/tests/volume.sh:' 'original size' '713,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/gzip.sh ============== if test -f 'tar-1.13/tests/gzip.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/gzip.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/gzip.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/gzip.sh' && #! /bin/sh # tar should detect that its gzip child failed. X X. ./preset X. $srcdir/before X tar xfvz /dev/null test $? = 2 || exit 1 X err="\ X gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error exit delayed from previous errors " X X. $srcdir/after SHAR_EOF $shar_touch -am 0425132197 'tar-1.13/tests/gzip.sh' && chmod 0555 'tar-1.13/tests/gzip.sh' || $echo 'restore of' 'tar-1.13/tests/gzip.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/gzip.sh:' 'MD5 check failed' 9f0b59ad38a6790896aa7c44110c1018 tar-1.13/tests/gzip.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/gzip.sh'`" test 268 -eq "$shar_count" || $echo 'tar-1.13/tests/gzip.sh:' 'original size' '268,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/append.sh ============== if test -f 'tar-1.13/tests/append.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/append.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/append.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/append.sh' && #! /bin/sh # Append was just not working. X X. ./preset X. $srcdir/before X set -e touch file1 touch file2 tar cf archive file1 tar rf archive file2 tar tf archive X out="\ file1 file2 " X X. $srcdir/after SHAR_EOF $shar_touch -am 1122112296 'tar-1.13/tests/append.sh' && chmod 0555 'tar-1.13/tests/append.sh' || $echo 'restore of' 'tar-1.13/tests/append.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/append.sh:' 'MD5 check failed' f332f93c285cf4cef2849099cfff4730 tar-1.13/tests/append.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/append.sh'`" test 199 -eq "$shar_count" || $echo 'tar-1.13/tests/append.sh:' 'original size' '199,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/delete01.sh ============== if test -f 'tar-1.13/tests/delete01.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/delete01.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/delete01.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/delete01.sh' && #! /bin/sh # Deleting a member after a big one was destroying the archive. X X. ./preset X. $srcdir/before X set -e genfile -l 50000 > file1 genfile -l 1024 > file2 tar cf archive file1 file2 tar f archive --delete file2 tar tf archive X out="\ file1 " X X. $srcdir/after SHAR_EOF $shar_touch -am 0421225997 'tar-1.13/tests/delete01.sh' && chmod 0555 'tar-1.13/tests/delete01.sh' || $echo 'restore of' 'tar-1.13/tests/delete01.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/delete01.sh:' 'MD5 check failed' 93b494bf1536e7ff159da4469de8a7ff tar-1.13/tests/delete01.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/delete01.sh'`" test 265 -eq "$shar_count" || $echo 'tar-1.13/tests/delete01.sh:' 'original size' '265,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/tests/delete02.sh ============== if test -f 'tar-1.13/tests/delete02.sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/tests/delete02.sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/tests/delete02.sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/tests/delete02.sh' && #! /bin/sh # Deleting a member with the archive from stdin was not working correctly. X X. ./preset X. $srcdir/before X set -e genfile -l 3073 -p zeros > 1 cp 1 2 cp 2 3 tar cf archive 1 2 3 tar tf archive cat archive | tar f - --delete 2 > archive2 echo ----- tar tf archive X out="\ 1 2 3 ----- 1 3 " X X. $srcdir/after SHAR_EOF $shar_touch -am 0425055097 'tar-1.13/tests/delete02.sh' && chmod 0555 'tar-1.13/tests/delete02.sh' || $echo 'restore of' 'tar-1.13/tests/delete02.sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/tests/delete02.sh:' 'MD5 check failed' 7b463653fe3fb50b11d2bce10e58d116 tar-1.13/tests/delete02.sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/tests/delete02.sh'`" test 315 -eq "$shar_count" || $echo 'tar-1.13/tests/delete02.sh:' 'original size' '315,' 'current size' "$shar_count!" fi fi rm -fr _sh15121 exit 0