tar-1.13/0000777000176300017630000000000006741044410006001 5tar-1.13/README0000444000176300016070000002003506736027321006576 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. If you got the `tar' distribution in `shar' format, timestamps ought to be properly restored, do not ignore such complaints at `unshar' time. 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. GNU `tar' is derived from John Gilmore's public domain `tar'. 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. Besides those configure options documented in files `INSTALL' and `ABOUT-NLS', a few extra options may be accepted after `./configure': * `--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'. 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. 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/. 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. 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'. .--------------------. | Installation hints | `--------------------' Here are a few hints which might help installing `tar' on some systems. * Static linking. 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'). Platform Compiler LDFLAGS (any) Gnu C -static AIX (vendor) "-bnso -bI:/lib/syscalls.exp" HPUX (vendor) -Wl,-a,archive IRIX (vendor) -non_shared OSF (vendor) -non_shared SCO 3.2v5 (vendor) -dn Solaris (vendor) -Bstatic SunOS (vendor) -Bstatic * Failed `incremen.sh'. 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. * BSD compatibility matters. 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). * `union wait' problems. 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'. * `%lld' unsupported in `printf'. 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'. * FreeBSD users -- `configure' fails. It has been reported that `configure' does not run on FreeBSD 2.1.7, because of a buggy `sh'. It works using `bash', however. * ISC users -- `S_*' symbols undefined. 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 . * Ultrix users -- broken `make'. 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. .------------------. | Special topics. | `------------------' Here are a few special matters about GNU `tar', not related to build matters. See previous section for such. * File attributes. 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. 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. * POSIX compliance. 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. * What's next? 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. 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). tar-1.13/stamp-h.in0000664000176300016070000000001206740607336007621 timestamp tar-1.13/ABOUT-NLS0000444000176300016070000002660306522263022007145 Notes on the Free Translation Project ************************************* 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. 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. 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. 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. One advise in advance ===================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext 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. 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'. INSTALL Matters =============== 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'. 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: ./configure --with-included-gettext ./configure --with-catgets ./configure --disable-nls 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. 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 ./configure --with-included-gettext to prevent auto-detection. 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 ./configure --with-catgets 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. 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. Using This Package ================== 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. 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'. Translating Teams ================= 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: Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en', Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja', Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es', Swedish `sv', and Turkish `tr'. For example, you may reach the Chinese translation team by writing to `zh@li.org'. 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: subscribe 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. 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. Available Packages ================== 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. Ready PO files cs da de en es fi fr it ja ko nl no pl pt ru sl sv .----------------------------------------------------. bash | [] [] [] | 3 bison | [] [] [] | 3 clisp | [] [] [] [] | 4 cpio | [] [] [] [] [] [] | 6 diffutils | [] [] [] [] [] | 5 enscript | [] [] [] [] [] [] | 6 fileutils | [] [] [] [] [] [] [] [] [] [] | 10 findutils | [] [] [] [] [] [] [] [] [] | 9 flex | [] [] [] [] | 4 gcal | [] [] [] [] [] | 5 gettext | [] [] [] [] [] [] [] [] [] [] [] | 12 grep | [] [] [] [] [] [] [] [] [] [] | 10 hello | [] [] [] [] [] [] [] [] [] [] [] | 11 id-utils | [] [] [] | 3 indent | [] [] [] [] [] | 5 libc | [] [] [] [] [] [] [] | 7 m4 | [] [] [] [] [] [] | 6 make | [] [] [] [] [] [] | 6 music | [] [] | 2 ptx | [] [] [] [] [] [] [] [] | 8 recode | [] [] [] [] [] [] [] [] [] | 9 sh-utils | [] [] [] [] [] [] [] [] | 8 sharutils | [] [] [] [] [] [] | 6 tar | [] [] [] [] [] [] [] [] [] [] [] | 11 texinfo | [] [] [] | 3 textutils | [] [] [] [] [] [] [] [] [] | 9 wdiff | [] [] [] [] [] [] [] [] | 8 `----------------------------------------------------' 17 languages cs da de en es fi fr it ja ko nl no pl pt ru sl sv 27 packages 6 4 25 1 18 1 26 2 1 12 20 9 19 7 4 7 17 179 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. 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. If December 1997 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. tar-1.13/AUTHORS0000444000176300016070000000133406325746103006767 Authors of GNU tar. The following contributions warranted legal paper exchanges with the Free Software Foundation. Also see files ChangeLog and THANKS. TAR Jay Fenlason Assigns his changes. TAR Richard E Salz 1993-03-11 Disclaims changes to getdate.y. TAR MANUAL (?) Amy Gorin (US 1963) 1995-01-10 Assigns the Tar Manual. TAR Francois Pinard Canada 1949 1996-02-01 Assigns past and future changes. TAR Melissa Weisshaus US 1966 1997-04-09 Assigns changes to the manual and future changes. melissa@gnu.ai.mit.edu TAR Thomas Michael Innis Bushnell US 1967 1997-04-09 Assigns changes. thomas@gnu.ai.mit.edu TAR Thomas Michael Innis Bushnell US 1967 1997-04-09 Assigns changes to manual. thomas@gnu.ai.mit.edu tar-1.13/BACKLOG0000444000176300016070000024710206330245234006704 # Summary of pending email for GNU tar 1.12. # Last updated on 1997-04-25. # This file summarizes almost all pending email pertaining to this # package. I think that users deserve to know where maintenance # stands for what they use. Ignorance might be more comfortable :-) # If commercial companies were indeed publishing their own internal # bug lists, you might feel far more secure with GNU software! # Please be kind and avoid pushy re-submissions of unsolved problems. # When I will process a report from you, you may reasonably expect # some feedback from me. Until then, please consider that it is # not always practical, nor fair for the community, to withhold a # release until all reported problems are solved. I have to draw # a line somewhere, and still make releases once in a while. # When diffs have been provided, an asterisk replaces the initial dot. # All dates are written according to ISO 8601, as far as possible. rmail/0-man-page 1. 1987-12-15 Brian Reid: (none) 2. 1990-12-31 gnu: Re: tar rmail/0-porting 1. 1993-04-25 Alexey Vovenko: TAR 1.11.1 on MS-DOS, Borland C 3.10 Compilation 2. 1993-12-31 js@hrmsf.att.com: Bug report for GNU tar 1.11.2 3. 1994-03-31 Stephen L Moshier: cmp.c MS-DOS bug (GNU cmp version 2.6) 4. 1994-04-04 Eric Backus: Re: cmp.c MS-DOS bug (GNU cmp version 2.6) 5. 1995-10-19 Yasushi Suzudo: (none) 6. 1995-12-01 Yasushi Suzudo: Re: Your submission for GNU tar etc. 7. 1995-12-04 Yasushi Suzudo: Re[2]: Your submission for GNU tar etc. 8. 1996-01-15 François Pinard: Re: Your submission for GNU tar etc. rmail/0-special-chars 1. 1991-11-13 Waltraud Lechner-Rau: GNU tar 1.10 problem with 8-bit-ascii-path 2. 1992-10-28 Andreas Schott: tar.1.11.1 3. 1993-05-10 Allen Delaney: Re: incrementals & unprintable characters in file 4* 1993-09-29 System Admin (Mike Peterson): gnu tar 1.11.2 problems on HP-UX 5* 1994-04-12 Robert E. Brown: file name quoting bugs in GNU tar 1.11.2 6* 1994-09-10 Maarten Litmaath: bug found in GNU tar-1.11.2 7. 1995-03-29 Joergen Haegg: Bug (?) in tar 1.11.2 8* 1995-04-01 Detlef Schwier: Gnu tar and umlaut character 9* 1995-05-31 Ulrich Mueller: GNU tar 1.11.2, routines quote_copy_string and 10. 1995-06-19 Robert Lipe: Re: Patch to gnu tar 11. 1995-07-05 Stefan Bohm: Re: Bug in tar-1.11.8 12. 1995-09-20 Joergen Haegg: bug in gnu tar 1.11.8 13. 1996-04-14 Bdale Garbee: Bug#819 14. 1995-04-21 Ian Jackson: tar should have null-separated archive list option 15. 1996-04-15 François Pinard: Re: Bug#819 16. 1996-07-12 Hermann Lauer: tar 1.11.8, backslash in filenames 17. 1993-11-27 Axel Habermann: Bug in gnu-tar 1-11.2 18. 1996-04-19 Ian Jackson: Re: Bug#819 rmail/0-validation-suite 1. 1990-12-10 Elizabeth Zwicky: Re: How do you find the symbolic links to file 2. 1991-12-06 Paul Eggert: Zwicky's reported bugs in GNU tar 1.10 3. 1994-07-03 pinard@IRO.UMontreal.CA: (none) 4. 1994-07-03 bigmac@erg.sri.com: Re: Finding Elizabeth D. Zwicky? 5. 1995-06-08 François Pinard: Re: pinard@iro-genr-nosbe 6. 1996-09-01 Jonathan Thornburg: msg2: some thoughts on torture-tests for GNU 7. 1996-09-04 Jonathan Thornburg: reaching Elizabeth Zwicky; Usenix 8. 1996-09-04 zwicky: Re: [François Pinard ] Re: msg 9. 1996-10-09 Ulrich Drepper: Re: getopt and -W 10. 1996-10-15 Tom Tromey: [cygnus.junk] [Chris Fearnley ] POSI 11. 1996-10-15 Ulrich Drepper: Re: [cygnus.junk] [Chris Fearnley 120 10. 1996-03-26 Nancy Milligan: Re: Gnutar bug with Mac filenames 11. 1996-04-23 Robert E. Brown: Re: GNU tar 1.11 bug ?? 12. 1996-07-26 Miles Bader: Re: Long File name bug in tar 1.11.8 13. 1996-07-26 Carsten Heyl: Long File name bug in tar 1.11.8 14. 1997-01-26 hack@marrow.ultranet.com: Patches to tar 1.11.8 15. 1997-02-07 Eberhard Mattes: GNU tar: empty file name 16. 1997-02-07 Eberhard Mattes: GNU tar: empty file name 17. 1997-02-25 William Bader: tar and empty directories 18. 1997-02-25 François Pinard: Empty names in tar archive? 19. 1997-02-26 Ulrich Drepper: Re: Empty names in tar archive? rmail/1-create-permissions 1. 1996-02-27 Richard Stallman: tar feature wanted 2. 1996-02-27 Richard Stallman: tar feature wanted 3. 1996-02-27 François Pinard: Re: tar feature wanted 4. 1996-03-20 Tom Tromey: Re: extracting directories 5. 1996-04-23 Richard Stallman: Re: tar feature wanted 6. 1996-04-23 Ken Raeburn: Re: *tar patch for ownership/mode of added files 7. 1996-04-24 Stephen Gildea: Re: tar: want to not write user/group info into 8. 1996-04-24 François Pinard: Re: tar: want to not write user/group info into rmail/1-create-various 1. 1991-08-02 Max Hailperin: socket handling in tar 1.10 would be better omitt 2. 1994-06-07 fvm@tasking.nl: cpio/find problems with certain NFS implementati 3. 1994-11-03 Jeffrey W. Parker: GNU tar question... 4. 1994-11-03 root@lidp5: Results of backup started Wed Nov 2 19:00:01 CST 199 5. 1994-12-16 Jeffrey S. Sorensen: Problem with GNU tar 6. 1995-03-14 ralphc@sps.siemens.co.uk: Problems With GNU Tar 1.11.2 On AIX 3. 7. 1995-03-27 Stephen Gildea: autoconf: to have tar follow links, which flag? 8. 1995-04-10 Rob MacLeod: tar bug 9. 1995-07-26 François Pinard: tar, autoconf, documentation 10* 1995-10-16 John Heller: Bug in cpio-2.3 11. 1996-02-11 Russell Cattelan: Re: New Posix specs for tar. 12. 1996-03-14 Andreas Windemuth: Re: tar-1.11.8 13. 1996-03-14 François Pinard: Re: tar-1.11.8 14. 1996-04-17 Jim Meyering: Re: Problem with copying symbolic links 15. 1996-04-23 Jim Meyering: Re: [niles@hp5-745.gsfc.nasa.gov: GNU cp 3.12 fail 16. 1996-04-23 Jim Meyering: lchown details 17. 1996-05-09 Mark Hittinger: gnutar exits if a file shrunk 18. 1996-05-23 David Klann: Tar 1.11.9 Modifications 19. 1996-07-09 François Pinard: Re: Tar 1.11.9 Modifications 20. 1996-07-10 Eduardo Kortright: Re: Installation problem--GNU tar 1.11.8 21. 1996-09-10 kb@terminus.cs.umb.edu: Re: Directory creation errors 22. 1996-09-16 Melissa Weisshaus: urgent: re tar feature that doesn't exist 23. 1996-09-16 François Pinard: Re: tar feature that doesn't exist 24. 1996-12-10 Paul Uiterlinden: tar bug? (socket becomes pipe) 25. 1996-12-21 Ralph Schleicher: tar: --ignore-failed-read 26. 1997-02-05 Olivier Kaloudoff: tar 1.11.8 -C option bug .. 27. 1997-02-25 François Pinard: Re: tar bug? (socket becomes pipe) 28. 1997-02-25 François Pinard: Re: Bug with GNU tar --old-archive option 29. 1997-02-26 Paul Uiterlinden: Re: tar bug? (socket becomes pipe) 30. 1997-03-03 Marty Leisner: cp filesystems? rmail/1-extract-names 1. 1991-09-26 wierda@ltb.bso.nl: tar does not recognize name without ./ 2. 1993-02-18 Peter W. Osel: Would these new tar options be useful? 3. 1993-02-20 Peter W. Osel: Re: Would these new tar options be useful? 4* 1993-06-16 Chris Verberne: Proposal for improvement of gtar 1.11.2 5. 1993-06-16 Steven Kimball 603-885-3306: tar-1.11.2 6. 1994-01-21 Marcel Waldvogel: GNU tar 1.11.2 and hard links to files with lo 7. 1994-08-26 curt@watson.ibm.com: GNU tar disaster! 8. 1995-06-22 Joshua R. Poulson: sharutils-4.1.4 on Motorola 88000, SVR3 packa 9. 1995-09-19 Karl Heuer: [tar-1.11.8] leading slash on links 10. 1995-11-30 John Roman: gnutar 1.11.2 @Longlink question 11. 1995-12-20 Daniel S. Barclay: Re: tar-1.11.8 bug found and fixed 12. 1995-12-20 Mark-Jason Dominus: Security problem in gnu tar 13. 1995-12-20 François Pinard: Re: Security problem in gnu tar 14. 1996-11-27 François Pinard: Re: How long can a file name be? 15. 1996-11-27 kb@cs.umb.edu: Re: How long can a file name be? 16. 1996-11-27 Dr. Joerg Weule: How long can a file name be? 17. 1996-11-28 Dr. Joerg Weule: Re: How long can a file name be? 18. 1997-03-31 Donald H. Locker: Re: long file names/long path names 19* 1994-08-23 piercarl@ltd.c-d.com: Re: Prerelease: GNU tar version 1.11.4 rmail/1-extract-permissions 1* 1993-06-16 Chris Verberne: Proposal for improvement of gtar 1.11.2 2. 1994-09-17 czyborra@cs.tu-berlin.de: tar-1.11.2 mkdir woes 3. 1995-12-18 John R. Vanderpool: Re: gnu tar -xp 4. 1996-01-06 François Pinard: Re: GNU tar 1.11.2 5. 1996-01-06 John D. Smith: GNU tar 1.11.2 6. 1996-01-23 Reiner Miericke: tar-bugs 7. 1996-01-27 François Pinard: Re: tar-bugs 8. 1996-02-09 Scott J. Kramer: Re: [Q] gzip | tar? 9. 1996-03-11 Ulrich Windl: Re: Duplicating a file system 10. 1996-03-24 Bryn Paul Arnold Jones: Re: Moving Linux 11. 1996-04-23 François Pinard: Re: tar ownership problem 12. 1996-06-24 danny@maxwell.ucsf.edu: Gnu tar 1.11.8 alters directory owner 13. 1996-09-30 John H. Aughey: GNU tar --same-owner is broken 14. 1996-09-30 John H. Aughey: Re: GNU tar --same-owner is broken 15. 1996-12-20 Andreas Schwab: Re: cp -p does not preserve owner/group of a sym 16. 1996-12-20 Andreas Schwab: Re: cp -p does not preserve owner/group of a sym 17. 1996-12-20 Philippe Schnoebelen: Re: cp -p does not preserve owner/group of 18. 1996-12-20 Philippe Schnoebelen: Re: cp -p does not preserve owner/group of 19. 1996-12-20 Ulrich Drepper: Re: cp -p does not preserve owner/group of a sym 20. 1996-12-20 Ulrich Drepper: Re: cp -p does not preserve owner/group of a sym 21. 1997-01-24 Daniel Trinkle: Undesirable behavior in GNU tar with --same-owne 22. 1995-04-05 François Pinard: Re: tar -xp 23. 1996-01-08 Ian Jackson: tar 1.11.8 can fail when extracting setgid director rmail/1-extract-rename 1. 1991-12-06 OPER2%ncuee.ncu.edu.tw@CUNYVM.CUNY.EDU: LTARV1.ZIP - DOS's deTAR 2. 1992-04-30 DARREL HANKERSON: Re: djgpp/go32 utilities archived? 3. 1993-03-24 Mark Bergman: names2dos Porting script upload 4. 1994-10-03 elf@netcom.com: tar-1.11 and DJGPP rmail/1-extract-security 1. 1997-01-25 Ben Elliston: GNU tar vulnerability 2. 1997-01-25 Ben Elliston: GNU tar vulnerability 3. 1997-01-25 Ben Elliston: GNU tar vulnerability 4. 1997-01-25 François Pinard: Re: GNU tar vulnerability (fwd) 5. 1997-01-25 der Mouse: Re: GNU tar vulnerability 6. 1997-01-26 Jon Lewis: Re: GNU tar vulnerability 7. 1997-02-05 Dave Kinchlea: Re: [linux-security] Re: GNU tar vulnerability 8. 1997-02-06 Benedikt Stockebrand: Re: [linux-security] Re: Re: GNU tar vulne 9. 1997-02-06 François Pinard: Re: GNU tar vulnerability 10. 1997-02-07 yves@mhv.net: [linux-security] Re: GNU tar vulnerability 11. 1997-02-07 François Pinard: Re: [linux-security] Re: GNU tar vulnerability 12. 1997-02-07 Benedikt Stockebrand: Re: [linux-security] Re: Re: GNU tar vulne 13. 1997-02-12 Benedikt Stockebrand: Re: [linux-security] Re: Re: GNU tar vulne 14. 1997-04-01 François Pinard: tar security 15. 1997-04-02 François Pinard: Re: tar security 16. 1997-04-03 François Pinard: Re: tar-mew.texi in tar pretest? 17. 1997-04-03 François Pinard: Re: tar-mew.texi in tar pretest? 18. 1997-04-03 William Bader: re: tar permissions 19. 1997-04-03 Tom Tromey: Re: tar security 20. 1997-04-03 Benedikt Stockebrand: Re: tar security 21. 1997-04-03 William Bader: re: tar options 22. 1997-04-03 François Pinard: Re: tar security 23. 1997-04-03 Göran Uddeborg: Re: tar security 24. 1997-04-04 Benedikt Stockebrand: Re: tar security 25. 1997-04-04 Benedikt Stockebrand: Re: tar security 26. 1997-04-05 Benedikt Stockebrand: Re: tar security rmail/1-extract-various 1* 1991-08-30 Jim Mayer: Bugs+fixes for gnu tar 1.10 2* 1991-09-02 Max Hailperin: better (?) fix to tar 1.10 bug 3. 1993-03-25 John Giannandrea: gnu tar 4* 1993-12-15 Andreas Schwab: cpio 2.3: bug in make_path 5. 1994-05-18 u31b3hs@pool.informatik.rwth-aachen.de: Two GNU tar 1.11.2 probl 6. 1994-08-12 ctd@space.mit.edu: Re: tar-1.11.3 7. 1994-09-28 bfoust@informix.com: GNU patch 2.1 fix dealing with selecting ba 8. 1994-09-28 bfoust@informix.com: The diff file i mentioned.... some of the s 9. 1995-02-13 Jonathan I. Kamens: GNU tar 1.11.2: handles hard links wrong whe 10. 1995-04-07 Greg McGary: tar enhancement 11. 1995-05-28 K. Berry: revised tar.texi 12. 1995-10-21 Tom Tromey: Some GNU tar suggestions: checksums 13. 1995-10-27 François Pinard: Re: Some GNU tar suggestions: checksums 14. 1995-10-29 Tom Tromey: Re: Some GNU tar suggestions: checksums 15. 1995-12-06 L. Peter Deutsch: Re: Grrr! :-) 16. 1995-12-25 Kimball Collins: Re: gtar: symlink errors 17. 1996-01-23 Reiner Miericke: tar-bugs 18. 1996-01-23 Reiner Miericke: tar-bugs 19. 1996-01-25 Paul Kanz: GNU tar 1.11.8 - exit code 20. 1996-01-27 François Pinard: Re: tar-bugs 21. 1996-01-27 François Pinard: Re: tar-bugs 22. 1996-01-27 François Pinard: Re: GNU tar 1.11.8 - exit code 23. 1996-02-01 Jim Meyering: Re: Suggestion concerning 'install' 24. 1996-02-11 Russell Cattelan: Re: New Posix specs for tar. 25. 1996-02-14 François Pinard: Re: when will tar have better long-file-name su 26. 1996-03-05 Marty Leisner: Re: Isn't this message in tar a bit misleading? 27. 1996-03-05 François Pinard: Re: Isn't this message in tar a bit misleading? 28. 1996-03-26 Joern Amundsen: GNU tar creates suid/sgid files 29. 1996-03-26 François Pinard: Re: GNU tar creates suid/sgid files 30. 1996-03-26 Joern Amundsen: Re: GNU tar creates suid/sgid files 31. 1996-03-26 François Pinard: Re: GNU tar creates suid/sgid files 32. 1996-04-14 Bdale Garbee: Bug#783 33. 1995-04-10 Ian Jackson: tar --same-order doesn't work 34. 1996-04-14 Bdale Garbee: Bug#817 35. 1995-04-21 Ian Jackson: tar -T /dev/null extracts whole archive ! 36. 1996-05-08 Amos Gouaux: GNU tar-1.11.8 37. 1996-06-10 Jim Meyering: Re: feature request for fileutils 38. ....-..-.. Andrew E. Mileski: Re: Environmental Symlinks 39. ....-..-.. Torsten Naumann: GNU-TAR: possible bug ? 40. 1996-07-30 William E. Roadcap: SEGV when restoring multivolume tar 41. 1996-07-31 Wes Brown: tar 1.11.8 on HPUX 42. 1996-07-31 Wes Brown: Re: tar 1.11.8 on HPUX 43. 1996-09-01 Jonathan Thornburg: msg1: GNU tar 1.11.9 bug: multiply linked fi 44. 1997-02-06 Bruno Haible: Re: tar-1.11.14 problem on SCO 45. 1997-03-18 Frederic Devernay: tar output in tar or cpio format 46. 1997-04-01 Martin Mares: Re: Possible GNU tar bug rmail/1-link-chmod-utimes 1. 1996-04-17 Bennett, Chip (KTR) ~U: Problem with copying symbolic links 2. 1996-07-18 Jim Meyering: tar-1.11.11: new failure with symlinks to non-exis 3. 1996-07-18 John David Anglin: Re: Prerelease: GNU tar 1.11.11 - Symbolic li 4. 1996-07-23 Douglas Stewart: bug in tar alpha release 1.11.11 5. 1996-08-15 Bdale Garbee: Re: Bug#4080: New tar may be broken. 6. 1996-08-19 Jim Meyering: tar-1.11.11 still causes make install failure with 7. 1996-08-24 Janos Farkas: tar-1.11.11 does chmod() on symlinks 8. 1996-08-27 Jim Meyering: Re: tar-1.11.11: new failure with symlinks to non- 9. 1996-08-27 Michael De La Rue: Tar works on Linux Redhat 3.0.3 ; strange err 10. 1996-08-27 Jim Meyering: Re: Tar works on Linux Redhat 3.0.3 ; strange erro 11. 1996-10-02 Tito Flagella: Re: TAR Bug handling Symbolic Links rmail/1-link-chown 1. 1995-06-20 Bernard Derval: Tar: (A) SunOS à IRIX (B) Solaris à IRIX 2. 1996-04-23 François Pinard: Re: Tar: (A) SunOS àIRIX (B) Solaris 3. 1996-04-30 Ian Jackson: Re: [tar 1.11.2] Ownership of extracted symlinks (w 4. 1996-04-30 François Pinard: Re: [tar 1.11.2] Ownership of extracted symlink 5. 1996-05-02 Ian Jackson: Re: [tar 1.11.2] Ownership of extracted symlinks (w 6. 1996-05-02 François Pinard: Re: [tar 1.11.2] Ownership of extracted symlink 7. 1996-05-07 Bernard Derval: Re: Tar: (A) SunOS àIRIX (B) Solaris 8. 1996-06-10 Ken Pizzini: feature request for fileutils 9. 1996-07-08 Zefram: Re: How does chown(2) works with symlinks? 10. 1996-07-08 Mark.Hemment@uniplex.co.uk: Re: How does chown(2) works with sym 11. 1996-07-08 Thomas Koenig: Re: How does chown(2) works with symlinks? 12. 1996-07-08 Zefram: Re: How does chown(2) works with symlinks? 13. 1996-07-08 Mark.Hemment@uniplex.co.uk: Re: How does chown(2) works with sym 14. 1996-07-08 Robert Nichols: Re: How does chown(2) works with symlinks? 15. 1996-07-08 Johan Myréen: Re: How does chown(2) works with symlinks? 16. 1996-07-09 Linus Torvalds: Re: How does chown(2) works with symlinks? 17. 1996-07-09 Jeremy Fitzhardinge: Re: How does chown(2) works with symlinks? 18. 1996-07-09 Zefram: Re: How does chown(2) works with symlinks? 19. 1996-07-10 Orlando M. Amador: Re: How does chown(2) works with symlinks? 20. 1996-07-11 Michiel Boland: Re: How does chown(2) works with symlinks? 21. 1996-07-11 Harald Koenig: Re: How does chown(2) works with symlinks? 22. 1996-07-13 Linus Torvalds: Re: How does chown(2) works with symlinks? 23. 1996-07-23 Erick Branderhorst: fileutils 3.13 bug 24. 1996-07-23 Jim Meyering: cp -p should preserve owner/group for symlinks [Re 25. 1996-08-21 Bdale Garbee: tar handles symlinks incorrectly 26. 1996-08-21 Bdale Garbee: more detail on the symlink problem 27. 1996-08-27 Doug McLaren: Re: Tar works on Linux Redhat 3.0.3 ; strange erro 28. 1996-09-06 Andreas Schwab: Tar 1.11.11: utime/chown/chmod on symlinks 29. 1996-09-11 Joseph H Buehler: GNU cpio 2.4.2 bug fix 30. 1996-09-22 Tito Flagella: Re: TAR Bug handling Symbolic Links 31. 1996-09-30 François Pinard: Re: TAR Bug handling Symbolic Links 32. 1996-09-30 François Pinard: Attributes of symbolic links 33. 1996-09-30 François Pinard: Re: Attributes of symbolic links 34. 1996-09-30 Noah Friedman: Re: Attributes of symbolic links 35. 1996-09-30 kb@terminus.cs.umb.edu: Re: Attributes of symbolic links 36. 1996-10-01 Jim Meyering: Re: Attributes of symbolic links 37. 1996-10-02 Tito Flagella: Re: TAR Bug handling Symbolic Links 38. 1996-11-12 Ulrich Drepper: Re: lchown 39. 1996-08-27 Bruce Perens: one more problem with GNU TAR rmail/1-link-symbolic 1* 1994-08-23 piercarl@ltd.c-d.com: Re: Prerelease: GNU tar version 1.11.4 2. 1996-12-08 David Averbuch: Re: tar 3. 1996-12-10 Paul Uiterlinden: cp -p does not preserve owner/group of a sym-l 4. 1996-12-11 Jim Meyering: Re: cp -p does not preserve owner/group of a sym-l 5. 1996-12-13 Paul Uiterlinden: Re: cp -a does not preserve owner/group of a s 6. 1996-12-13 Jim Meyering: Re: cp -p does not preserve owner/group of a sym-l 7. 1996-12-14 Wolfram Gloger: Re: cp -p does not preserve owner/group of a sym 8. 1996-12-17 Jim Meyering: tar vs. chown/lchown [gnu.utils.bug] Re: cp -p doe 9. 1996-12-20 Philippe Schnoebelen: Re: cp -p does not preserve owner/group of 10. 1996-12-20 Ulrich Drepper: Re: cp -p does not preserve owner/group of a sym 11. 1997-01-29 Michael Keightley: chown doesn't change ownership of symbolic li 12. 1997-01-29 Jim Meyering: Re: chown doesn't change ownership of symbolic lin 13. 1997-02-04 Jim Meyering: Re: chown doesn't change ownership of symbolic lin 14. 1997-02-13 Nicolas Courtel: Problem with chgrp on Solaris 15. 1997-02-17 Andreas Jaeger: tar1.11.14 and glibc 2 on Linux 16. 1997-02-17 Andreas Jaeger: tar1.11.14 and glibc 2 on Linux 17. 1997-02-22 Alexander V. Lukyanov: tar-1.11.12 - chmod on symlinks 18. 1997-02-25 François Pinard: Re: tar vs. chown/lchown [gnu.utils.bug] Re: cp 19. 1997-02-27 Laurent Duperval: Petite question rapide 20. 1997-02-27 François Pinard: Re: Petite question rapide 21. 1997-02-28 Jim Meyering: Re: tar vs. chown/lchown [gnu.utils.bug] Re: cp -p 22. 1997-03-10 Jim Meyering: Re: Problem with chgrp on Solaris 23. 1997-04-09 Alexandre Oliva: Patch for zlibc 0.9e on mips-IRIX-5.2 24. 1997-04-12 Bruno Haible: Re: Prerelease: GNU tar 1.11o 25. 1997-04-14 Bruno Haible: Prerelease: GNU tar 1.11o 26. 1997-04-20 Kai Petzke: Re: Undesirable behavior of tar 27. 1997-04-20 Alexandre Oliva: Re: Undesirable behavior of tar rmail/1-link-various 1. 1996-09-18 Mark Eichin: Re: TAR Bug handling Symbolic Links rmail/2-blocking 1. 1993-05-20 Barracuda: GNU tar 1.10 problem 2. 1993-06-06 Jeff Finger: gnutar 1.11.2/gcc-2.4.3 installation problem 3. 1993-07-05 Richard Stallman: Re: [ian@cygnus.com: GNU tar and gcc header in 4. 1995-01-10 K. Berry: GNU tar incompatibility? 5. 1995-01-10 Francois Pinard: Re: GNU tar incompatibility? 6. 1995-05-18 Tom Arnold: GNU tar not on blocke boundary problem 7. 1995-05-31 Glenn Coombs: Problem with blocking factor 8. 1995-10-04 Hans Guerth: Problem with gtar 9. 1995-11-23 François Pinard: tar cz | wc -c donne toujours 10240 10. 1995-11-29 François Pinard: Re: Problem with gtar 11. 1996-04-18 François Pinard: Re: Prerelease: GNU tar 1.11.9 - renamed option 12. 1996-04-18 John David Anglin: Re: Prerelease: GNU tar 1.11.9 - renamed opti 13. 1996-05-23 Xiaofei Wang +1 +1 201 386 8642: tar-1.11.8.tar.gz unexpected EO 14. 1996-06-20 David L. Elliott: Damaged file prep.ai.mit.edu /pub/gnu/tar-1.11 15. 1996-11-25 Ray Walden: tar 1.11.8 16. 1996-11-25 François Pinard: Re: tar 1.11.8 17. 1996-11-25 Ray Walden: tar 1.11.8 18. 1997-02-25 François Pinard: Re: tar 1.11.8 19. 1997-04-03 François Pinard: tar and zero blocks rmail/2-gzip-mode 1. 1993-01-26 Jean-loup Gailly: gzip vs. zip (was: gzip0.8.1 will not unzip un 2. 1993-04-30 Jean-loup Gailly: tar with compression on tapes 3. 1993-09-29 Esa Karell: Broken pipe/gtar: child returned status 1 4. 1993-11-04 Esa Karell: gtar: child returned status 2 5. 1994-02-13 Richard Stallman: tar idea 6. 1994-08-22 jloup@chorus.fr: Re: gzip useage question 7. 1994-08-22 jloup@chorus.fr: Re: gzip useage question 8. 1994-12-21 David L. Wade: tar-1.11.2 why not compression AND multiple tapes 9. 1994-12-24 Francois Pinard: Re: tar-1.11.2 why not compression AND multiple 10. 1995-02-05 Michael Hohmuth: gzip-1.2.4: SIGSEGV in huft_build() 11. 1995-05-08 Fred Clift: Possible bug with gnu tar 1.11.2 12. 1995-05-28 K. Berry: revised tar.texi 13. 1995-07-05 Jean-loup Gailly: Re: tar with compression on tapes 14. 1995-07-05 François Pinard: Re: tar with compression on tapes 15. 1995-10-27 François Pinard: Re: Compressed multiple volumes with tar? 16. 1995-12-20 Jean-loup Gailly: Re: bug in gzip -9 on Solaris X86 2.4 (gzip-1. 17. 1996-04-26 Deven T. Corzine: "Do What I Mean" patch for GNU tar 1.11.8 18. 1996-07-01 Marty Leisner: tar 1.11.9 19. 1996-07-01 Marty Leisner: tar 1.11.9 20. ....-..-.. Mark Bynum: Re: tar-1.11.9 & SGI 6.1 Compilation Problems 21. 1996-07-09 François Pinard: Re: tar 1.11.9 22. 1996-07-18 Jean-loup Gailly: (none) 23. 1996-07-22 François Pinard: Re: tar multi-volume compresse' 24. 1996-07-22 Jean-loup Gailly: Re: tar multi-volume compressé 25. 1996-08-28 Andrew R. Cook: GNU-tar suggestions 26. 1996-09-03 Marc Espie: Re: mounting compressed files as filesystems (was Re 27. 1996-09-20 Jim Meyering: Re: Prerelease: GNU tar 1.11.12 28. 1996-09-20 Jakub Jelinek: Re: Prerelease: GNU tar 1.11.12 29. 1996-09-20 François Pinard: Re: Prerelease: GNU tar 1.11.12 30. 1996-09-20 Martin Mares: Re: Prerelease: GNU tar 1.11.12 31. 1996-09-20 K. Berry: Re: Prerelease: GNU tar 1.11.12 32. 1996-09-20 Ulrich Drepper: Re: Prerelease: GNU tar 1.11.12 33. 1996-09-20 Ulrich Drepper: Re: Prerelease: GNU tar 1.11.12 34. 1996-09-20 Ulrich Drepper: Re: Prerelease: GNU tar 1.11.12 35. 1996-09-22 Mark Eichin: Re: compression in tar 36. 1996-09-22 Göran Uddeborg: compression in tar 37. 1996-09-23 Tom Tromey: Re: compression in tar 38. 1996-09-23 Ulrich Drepper: Re: compression in tar 39. 1997-03-15 Nelson H. F. Beebe: Short wishlist for GNU tar 40. 1997-03-16 François Pinard: Re: Short wishlist for GNU tar 41. 1997-04-02 François Pinard: Re: Is there a GNU tar with zlib and not gzip? 42. 1997-04-09 François Pinard: Re: Finding GNU tar ports 43. 1997-04-09 François Pinard: Re: Finding GNU tar ports 44. 1997-04-09 François Pinard: Re: Sugestions for tar 45. 1997-04-09 Lars Hecking: Sugestions for tar 46. 1997-04-21 François Pinard: Re: nitpicking about --totals gnu tar 1.11p 47. 1997-04-21 François Pinard: Re: nitpicking about --totals gnu tar 1.11p 48. 1997-04-21 Erick Branderhorst: nitpicking about --totals gnu tar 1.11p 49. 1997-04-21 Erick Branderhorst: Re: nitpicking about --totals gnu tar 1.11p 50. 1997-04-23 Marty Leisner: pipelining too many operations in tar? 51. 1997-04-23 François Pinard: Re: pipelining too many operations in tar? 52. 1997-04-23 François Pinard: Re: pipelining too many operations in tar? 53. 1997-04-02 Felix von Leitner: Is there a GNU tar with zlib and not gzip? rmail/2-gzip-per-block 1. 1993-09-10 Jean-loup Gailly: Re: TAR-suggestion 2. 1994-11-13 peter hayward: Re: Can DAT drives switch compression on and off? 3. 1994-11-14 Ron Pritchett: Re: Can DAT drives switch compression on and off? 4. 1994-11-15 Marc Ewing: Re: Can DAT drives switch compression on and off? 5. 1994-11-17 wd: Re: Can DAT drives switch compression on and off? rmail/2-gzip-per-file 1. 1993-04-20 Frank Terhaar-Yonkers: gtar hacks 2* 1993-04-26 Frank Terhaar-Yonkers: Re: gtar hacks 3. 1993-05-30 Brian J. Murrell: Re: file compression with tar 4. 1993-09-08 Casper: TAR-suggestion 5. 1994-08-02 Francois Pinard: Re: gzip useage question 6. 1994-09-02 Delemar: Re: Which is better: tar->gzip or gzip->tar? 7. 1994-09-02 Delemar: Re: Which is better: tar->gzip or gzip->tar? 8. 1994-09-07 jonboy@neuromancer.ucr.edu: Re: Any decent backup software for L 9. 1994-09-08 Kai Petzke: Re: Which is better: tar->gzip or gzip->tar? 10. 1994-11-16 Doug McLaren: gnu tar with slightly different --gzip option ? 11. 1994-12-01 Koen Holtman: afio version 2.4 (archiver & backup program) 12. 1995-01-20 Dave Gymer: Re: DISCUSSION: afio 2.4.1 new feature 13. 1995-02-14 bpreece@eos.ncsu.edu: tar enhancement: compress files? 14. 1995-02-14 Daniel Quinlan: Re: tar enhancement: compress files? 15. 1995-03-12 David Kastrup: Re: Safe to use TAR to backup? 16. 1995-03-13 Steven A. Reisman: Re: Safe to use TAR to backup? 17. 1995-06-09 François Pinard: tar -y / -Y 18. 1995-06-09 Jean-loup Gailly: Re: tar -y / -Y 19. 1995-11-11 Skip Montanaro: Short tar file for tar 1.11.8 on prep? 20. 1995-11-11 François Pinard: Re: Short tar file for tar 1.11.8 on prep? rmail/2-incomplete-write 1* 1993-12-23 Bruno Haible: obvious bug in cat and several other text utiliti 2* 1994-08-16 Thomas.Koenig@ciw.uni-karlsruhe.de: tar, on Linux this time 3. 1994-09-01 Chris Metcalf: lossage with "tar cz" writing to gzip; easy fix? 4* 1994-09-02 Chris Metcalf: Re: lossage with "tar cz" writing to gzip; easy 5. 1994-09-08 Mitch Davis: Re: lossage with "tar cz" writing to gzip; easy fix 6. 1995-04-07 Greg McGary: GNU tar is vulnerable to EINTR failures 7* 1995-05-09 Greg McGary: tar patches for safe_read, full_write 8. 1995-06-24 Bruno Haible: tar-1.11.8 fails when interrupted rmail/2-performance 1. 1986-06-02 Keld J|rn Simonsen: (none) 2. 1989-06-24 Brian Fox: tar idea 3. 1990-03-01 Tom Karches: (none) 4. 1990-03-02 gnu: pdtar searching whole tape for simple files 5. 1990-09-02 Steve Nuchia: Re: UNIX semantics do permit full support for asyn 6. 1990-11-17 Jay Ts: Re: tar or cpio, which is better? 7* 1993-03-20 RP Chamberlin: New patches for gnu tar-1.11.1 8. 1993-05-20 Barracuda: GNU tar 1.10 problem 9. 1993-06-03 Barry Margolin: GNU tar suggestions 10. 1993-06-16 Matthias Rabe: Re: Proposal for improvement of gtar 1.11.2 11. 1993-06-21 Superuser: GNU Tar and SCO UNIX 3.2.4 12. 1993-07-13 Doug Lenz: Suggestion Only... 13. 1994-04-22 mib@gnu.ai.mit.edu: Re: GNUtar problem 14. 1994-04-26 les@chinet.chinet.com: Re: GNUtar problem 15. 1994-05-10 Joerg Weule: Help -- whom to write for tar extension ? 16. 1994-06-10 Werner Krebs: improvements to tar 1.11.2 17. 1994-06-19 J"org Weule: (none) 18. 1994-08-05 haible@ma2s2.mathematik.uni-karlsruhe.de: Re: Prerelease: GNU ta 19. 1994-08-12 root@apollo.west.oic.com: gnu tar 20. 1994-08-19 ig25@fg30.rz.uni-karlsruhe.de: Buffering for GNU cat 21. 1994-08-23 Russell Cattelan: tar mods 22* 1994-08-24 cattelan@thebarn.com: Re: tar mods 23. 1994-10-08 fheitkamp@nova.wright.edu: Speeding Linux Tar 24. 1994-10-12 Garry Adkins: Re: Tar and z option with DAT drive 25. 1994-10-12 Claus-Dieter Bredl: Re: Tar and z option with DAT drive 26. 1994-11-30 Russell Cattelan: Latest and greatest tar 27. 1995-01-20 Frankie K.T. Chu: tar like GTAK of OS/2... 28. 1995-02-24 Randall Glass: tar 1.11.2 29. 1995-05-26 Charles Lamb: local tar modification to avoid reading partial fi 30* 1995-08-31 Greg Lehey: tar: amélioration des performances pour hard links 31. 1995-09-02 François Pinard: hash routines in GNU tar 32. 1995-11-08 François Pinard: Re: Quick one for ya 33. 1995-11-23 François Pinard: Re: Quick one for ya 34* 1995-12-19 Alain Knaff: dd seek performace bug (Was: Re: KERNEL BUGS tofix 35. 1995-12-25 Bela Lubkin: some GNU tar build problems (+autoconf, NLS) 36. 1996-01-17 Russell Cattelan: Re: New Posix specs for tar. 37. 1996-01-23 Russell Cattelan: It's working!!! 38. 1996-02-08 phr: dds extensions to gnu tar. 39. 1996-02-17 François Pinard: Re: dds extensions to gnu tar. 40. 1996-02-20 Dr. Joerg Weule: dds extensions to gnu tar 41. 1996-02-20 phr: Re: dds extensions to gnu tar 42. 1996-02-27 Adrian Biland: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 43. 1996-02-27 François Pinard: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 44. 1996-02-27 François Pinard: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 45. 1996-02-28 Adrian Biland: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 46. 1996-02-28 François Pinard: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 47. 1996-02-28 Adrian Biland: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 48. 1996-03-06 Noah Friedman: Unusual request for GNU tar 49. 1996-03-06 Noah Friedman: Re: Unusual request for GNU tar 50. 1996-03-12 François Pinard: Re: produite de QoS sur IP 51. 1996-04-17 François Pinard: [filbo@armory.com: some GNU tar build problems 52. 1996-04-18 Michael I. Bushnell, p/BSG: Re: [filbo@armory.com: some GNU tar 53. 1996-05-18 Elmer Fittery: GTAR/GTAK for the OS/2 54. 1996-08-02 Enno Busse: GNU tar 55. 1996-09-26 Jurgen Botz: Re: Streaming tar? 56. 1996-09-26 Thomas Koenig: Streaming tar? 57. 1996-09-30 François Pinard: Re: Streaming tar? 58. 1997-04-22 Marc Boucher: Re: la vie (was: Re: GNU tar 1.11.14 bugs) rmail/2-switch-interaction 1. 1990-11-17 Jay Ts: Re: tar or cpio, which is better? 2* 1993-02-02 Scott L. Burson: tar 1.11.1: "Prepare volume #3 for /dev/nrst9 3. 1993-08-04 Richard Stallman: [warren@nysernet.org: error recover in gnutar 4. 1993-09-29 Ronald Aarts: remark about GNU tar 1.11.2 5* 1993-12-09 Heiko Muenkel: Problem with tar on Suns 6. 1994-12-14 Viertola Harri: GNU Tar behaviour rmail/2-switch-out-sequence 1. 1989-06-14 Brant Cheikes: bug in tar-1.07 on AT&T UNIXpc 2. 1992-12-11 Richard Stallman: [dump-remind@gnu.ai.mit.edu: Backup needs new 3. 1992-12-19 Richard Stallman: [dump-remind@gnu.ai.mit.edu: Backup needs new 4. 1994-01-11 Hiroyuki Bessho: GNU tar 1.11.2 multivolume bugs 5. 1994-05-03 Ben Stuyts: Problem with GNU tar level-0 script 6. 1994-05-18 u31b3hs@pool.informatik.rwth-aachen.de: Two GNU tar 1.11.2 probl 7. 1994-09-15 yjsu@hinet.net: (none) 8. 1994-10-03 Brynn Rogers: tar cM possible (probable?) bug 9. 1994-10-11 Patrick.Condran@corp.sun.com: Re: gnutar 1.10 for HP-UX 700 seri 10. 1995-01-20 Francois Pinard: Re: gnutar: Multi volume archives 11. 1995-12-20 Daniel S. Barclay: Re: tar-1.11.8 bug found and fixed 12. 1996-07-23 Steve Murphy: gnu tar multivolume problem rmail/2-switch-various 1. 1991-07-15 Saul Lubkin: tar 1.10 problem with "-dM", "-WM", "-ML" or "-MR" 2. 1991-07-15 Saul Lubkin: tar 1.10 problem with "-dM", "-WM", "-ML" or "-MR" 3. 1991-08-13 Pierce Cantrell: GNU tar 1.10 Patch for multi-volume, long filen 4. 1992-11-19 John P. Rouillard: Patch for putting verbose listing info into f 5. 1994-10-05 dean@fors751.ice.ncr.doe.ca: gnutar 1.10 for HP-UX 700 series (9 6. 1995-07-19 Werner Almesberger: gnu-tar segfaults with --new-volume-script 7. 1996-01-02 Dr. Joerg Weule: Re: *Re: tar -- my patch for tar-1.11.8 -- bug 8. 1996-03-24 CIC inc, Tech: bug report - tar 1.11.8 9. 1996-04-23 Ulf Lunde: gtar on SCO Unix won't restore multiple floppy volume 10. 1996-04-23 John R. Vanderpool: Re: tar-1.11.8 11. 1996-04-23 François Pinard: Re: tar-1.11.8 12. 1996-12-28 Leonard Samuelson: --info-script exit conditions... rmail/2-tape-marks 1. 1995-02-01 Ed Sirett: Re: gnu-tar.1.11.2 - Verification on tape media. 2. 1995-02-17 Ed Silva: Re: gnutar EOT handling. 3. 1995-03-28 Charles Lamb: tar and EOF markers 4. 1995-03-28 François Pinard: Re: tar and EOF markers 5. 1996-01-04 John David Anglin: Re: Prerelease: GNU tar 1.11.9 - renamed opti 6. 1996-09-10 Frank Koenen: Re: Help, tar version 1.11.8 on AIX 4.2... rmail/2-tape-remote 1* 1989-06-09 Dave Gagne: Tar 1.07 Problem. 2* 1991-09-03 Roland Schemers III: GNU tar 3* 1993-03-30 Robert Eckardt: tar-1.11.2 4. 1993-04-27 Kambiz Aghaiepour: Problem with gtar-1.11.2 5. 1993-07-19 Esa Karell: gtar, AIX 3.2.3, -Z option doesn't work 6. 1993-08-10 Gijsb. Wiesenekker: problem with gnutar-1.11.2 on RS6000. 7. 1994-07-27 mende@piecomputer.rutgers.edu: Re: (gnu)tar 1.10 patch 8. 1994-08-09 Francois Pinard: Re: Prerelease: GNU tar version 1.11.3 9. 1994-08-16 Thomas.Koenig@ciw.uni-karlsruhe.de: tar, on Linux this time 10. 1994-08-19 haible@ma2s2.mathematik.uni-karlsruhe.de: Re: Prerelease: GNU ta 11. 1994-08-19 haible@ma2s2.mathematik.uni-karlsruhe.de: Re: Prerelease: GNU ta 12. 1994-08-21 pinard@IRO.UMontreal.CA: 1.11.5 - premier essai 13. 1994-08-22 Francois Pinard: (none) 14. 1994-08-23 torkel@bibsyst.no: Re: Prerelease: GNU tar version 1.11.5 15* 1994-08-23 piercarl@ltd.c-d.com: Re: Prerelease: GNU tar version 1.11.4 16. 1994-08-23 wbader@CSEE.Lehigh.Edu: more on tar and sco unix 17. 1994-09-02 John David Anglin: Installation directory for rmt -- tar-1.11.5 18. 1994-09-07 tilman@gb1.sema.de: Re: Prerelease: GNU tar version 1.11.5 19. 1994-10-12 David Kastrup: Absurd backup problem with tar 20. 1994-12-07 Jeff Longcore: tar-1.11.2 installation complaint 21. 1994-12-08 Francois Pinard: Re: tar-1.11.2 installation complaint 22. 1995-01-05 David J. MacKenzie: rtapelib.c, location of rmt 23* 1995-03-19 W. Phillip Moore: Inconfigurability in cpio-2.3 Makefile.in 24. 1995-03-21 François Pinard: Re: GNU tar: BSD42 not set under FreeBSD, --spa 25. 1995-03-31 Friedhelm Waitzmann: Re: How do I forward incoming mail to a mai 26* 1995-04-20 Mike Jagdis: Patch to cpio 2.3/tar 1.11.2 for remote archives 27. 1995-06-16 David Kemp: rmt on an rs6000; missing mtio.h 28* 1995-08-18 W.J. Martin: Another 2 bugs in tar-1.11.8... 29. 1995-09-16 Karl Berry: tar 1.11.8 segmentation fault on remote create 30. 1995-09-17 Karl Berry: Re: tar 1.11.8 segmentation fault on remote create 31. 1995-10-12 Matthew J. D'Errico: Re: tar-1.11.8 'make' 32. 1995-10-27 François Pinard: Re: tar-1.11.8 remote 'tar'ring broken... 33* 1995-11-16 Phil Hands: tar-1.11.8: rtapelib/rmt ``oflags'' architecture de 34. 1996-03-26 John R. Vanderpool: tar-1.11.8 35. 1996-06-25 Cho, KwangJe: Hi! I need your help for which installation of GNU 36. 1996-07-11 Joerg Hoehle: awareness of colons in filenames (tar and --force- 37. 1996-07-18 François Pinard: Re: [sanvila@unex.es: (tar pretest) Corrected p 38. 1996-07-18 Philippe.Defert@cern.ch: [sanvila@unex.es: (tar pretest) Correct 39. 1996-07-18 François Pinard: Re: [sanvila@unex.es: (tar pretest) Corrected p 40. 1996-08-02 Constantine Giannios: tar and cpio rtapelib.c bugs. 41. 1996-08-29 Joerg Hoehle: Re: recode-3.4 latin1:html and Umlauts bug 42. 1996-09-09 François Pinard: Re: recode-3.4 latin1:html and Umlauts bug 43. 1996-09-25 Alois Steindl: 2 Problems with remote archives 44. 1996-09-25 Alois Steindl: 2 Problems with remote archives 45. 1996-09-30 Alois Steindl: Re: 2 Problems with remote archives 46. 1996-11-27 Norman Yelle: RE: ufsdump vs AIX (fwd) 47. 1996-12-05 Jerry Sweet: tar 1.11.8 I/O errors with rmt 48. 1997-01-29 Walter Harms: GnuTar -- rmt problem 49. 1997-02-02 Walter Harms: tar-1.11.14 problem on SCO 50. 1997-02-11 Griswold, Victor: tar 1.11.8, cygwin32 B17.1: Problem with remot 51. 1997-02-11 Griswold, Victor: tar 1.11.8, cygwin32 B17.1: Problem with remot 52. 1997-02-25 François Pinard: Re: Bug in tar-1.11.8 53. 1997-02-25 Sylvain ROUGIER: Re: Bug in tar-1.11.8 54. 1997-02-25 François Pinard: Re: GnuTar -- rmt problem 55. 1997-03-07 Walter Harms: Re: GnuTar -- rmt problem 56. 1997-03-12 Lindsay Harris: rmt on linux systems rmail/2-tape-salvaging 1. 1990-10-13 Jean-Pierre Radley: Re: Recovering corrupted tar's 2. 1991-03-21 Rich Salz: v24i077: Tool to salvage data from damaged tar tapes 3. 1991-10-29 Robert W. Reinke: gnutar 4. 1993-08-04 Warren Burstein: error recover in gnutar after write-protected t 5. 1994-10-05 Leon Shieh: Help Recovering Tar Tape Needed 6. 1994-10-06 brown@bibliotech.com: GNU tar and bad blocks 7. 1994-10-08 Ray Vermey: Help Recovering Tar Tape Needed 8. 1995-03-27 Michael Haak: reading a corrupted Tar-File ? 9. 1995-03-27 Michael G. Phillips: Re: reading a corrupted Tar-File ? 10. 1995-04-18 François Pinard: GNU tar [was: (none)] 11. 1995-09-19 François Pinard: Re: short question 12. 1995-09-19 François Pinard: Re: short question 13* 1995-11-02 (Erik Bennett): dd vs 64bit off_t 14. 1995-11-02 Jim Meyering: Re: od.c vs. 64bit off_t 15. 1995-11-30 François Pinard: Re: 16. 1996-04-15 François Pinard: Re: Looking for way to reconstruct partially ov 17. 1996-05-17 CodeWarrior: gzip proglem... 18. 1996-09-04 Alois Steindl: Possible risks with gnutar 19. 1996-09-19 Alois Steindl: One further remark to: Possible risks with gnutar 20. 1996-09-20 François Pinard: tar and GNU ecc? 21. 1996-09-20 Martin Mares: Re: Prerelease: GNU tar 1.11.12 22. 1996-09-20 Ulrich Drepper: Re: tar and GNU ecc? 23. 1996-09-22 François Pinard: Re: trouble backing up. 24. 1996-10-04 der Mouse: Re: tar xevf on tape #2 (tape suite): possible or not 25. 1996-10-07 Denis Fortin: Re: tar xevf on tape #2 (tape suite): possible or rmail/2-tape-various 1. 1993-07-16 Van Snyder: tar 1.11.1 2. 1995-08-22 Ajay Gupta: Re: tar problem for GNU tar ... 3. 1995-08-23 François Pinard: Re: tar problem for GNU tar ... 4. 1995-10-27 François Pinard: Re: GNU tar 5* 1995-12-07 Dr. Joerg Weule: Re: tar -- my patch for tar-1.11.8 -- bug fixe 6. 1996-02-11 David Nugent: Remote tape support (rmt/mt) in GNU cpio 2.4.2 7. 1996-02-27 Adrian Biland: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 8. 1996-02-28 Joachim Seelig: tar-probs multivolume 9. 1996-05-12 Volker Kuhlmann: cpio 2.4.2 10. 1996-05-16 Jason R. Mastaler: Re: tar 1.11.8 on BSD/OS 11. 1996-05-27 Noah Friedman: efs 1.14: using "rexec" as efs-remote-shell-file- 12. 1996-05-27 Kevin Broadey: Re: efs 1.14: using "rexec" as efs-remote-shell-f 13. 1996-05-27 Noah Friedman: Re: efs 1.14: using "rexec" as efs-remote-shell-f 14. 1996-06-04 Peter Tobias: Re: Bug#3100: bug#3100 15. 1996-06-05 Brian Mays: SCSI Support for cpio's mt under the Linux kernel 16. 1996-06-05 Particle Man: tar 1.11.8 & bsdi 17. 1996-06-14 Mark Bynum: Re: tar-1.11.9 & SGI 6.1 Compilation Problems 18. 1996-06-17 Mark Bynum: Re: tar-1.11.9 & SGI 6.1 Compilation Problems 19. 1996-08-13 Frank Koenen: Help, tar version 1.11.8 on AIX 4.2... 20. 1996-09-10 Frank Koenen: Re: Help, tar version 1.11.8 on AIX 4.2... 21. 1996-09-10 François Pinard: Re: Help, tar version 1.11.8 on AIX 4.2... 22. 1996-11-22 François Pinard: Re: GNU tar and DLT 23. 1996-11-22 Rob Lucchesi: GNU tar and DLT 24. 1996-11-25 Robert Lucchesi: Re: GNU tar and DLT 25. 1997-01-31 François Pinard: Re: Extra gnutar info 26. 1997-03-04 John R. Vanderpool: Re: tar-1.11.8 27. 1997-03-04 Thomas Schmeidl: bug report for 1.11.14 28. 1997-03-07 David Johnson: Problem with 1.11.14 & --listed-incremental 29. 1997-03-07 François Pinard: Re: GnuTar -- rmt problem 30. 1997-03-07 François Pinard: Re: Compilation de tar-1.11o 31. 1997-03-08 James E. Carpenter: Problem with tar under Linux with an EXB-820 rmail/2-unexpected-eof 1. 1992-08-29 David J. MacKenzie: another tar format difference 2. 1993-04-28 Kambiz Aghaiepour: Re: Problem with gtar-1.11.2 3. 1994-11-07 Jim Meyering: GNU tar vs SunOS tar (was Re: is this tar file ok? 4. 1994-11-07 Shauh-Teh Juang: fileutils-3.12.tar.gz 5. 1994-11-08 john@bostech.com: Re: is this tar file ok? 6. 1994-11-10 Nelson Minar: fileutils-3.12 tar file problem 7. 1994-11-11 Jim Meyering: GNU tar vs SunOS /bin/tar 8. 1994-11-11 Francois Pinard: Re: GNU tar vs SunOS /bin/tar 9. 1994-11-11 Jim Meyering: Re: fileutils-3.12 : tar file is 'foul' 10. 1995-01-10 Christian Jonsson: Re: kpathsea 2.6/xdvik 18f/dvipsk 5.58f/dvilj 11. 1995-01-12 Peter Dyballa: Re: GNU tar incompatibility? 12. 1995-01-29 Kai: Re: gnu tar on bsdi 13. 1995-06-18 Paul Eggert: tar-1.11.8 compatibility problems with SunOS 4.1.x 14. 1995-06-19 Dave Barr: Re: Release: GNU tar 1.11.8 15. 1995-06-28 Sean Foderaro: eof problem in tar distribution 16. 1996-03-21 Martin Gregory: tar-1.11.8 installation 17. 1996-03-28 Kevin Cosgrove: ftp://prep.ai.mit.edu/pub/gnu/tar-1.11.8.tar.gz rmail/2-verify-compare 1. 1991-07-15 Saul Lubkin: tar 1.10 problem with "-dM", "-WM", "-ML" or "-MR" 2. 1991-07-30 Saul Lubkin: Re: gnutar on ISC 2.2 3* 1991-08-03 Max Hailperin: contextualization of tar 1.10 diffs 4. 1993-05-20 Jim Burnes: tar-1.10 bug 5* 1993-09-30 Vic Abell: GNU tar 1.11.2 under NeXTSTEP 3.1 (followup) 6. 1993-12-20 Frank Gales [ET]: gnutar 7. 1994-08-25 graham@tybj3.eglin.af.mil: GNU cpio version 2.3 suggestion and p 8. 1994-09-23 brown@bibliotech.com: GNU tar enhancement 9. 1994-09-23 Francois Pinard: Re: GNU tar enhancement 10. 1994-10-19 iros1.IRO.UMontreal.CA!iastate.edu!gora: Problem with gtar 11. 1994-10-19 iros1.IRO.UMontreal.CA!iastate.edu!gora: Re: Problem with gtar 12* 1995-01-19 Ed Sirett: gnu-tar.1.11.2 - Verification on tape media. 13. 1995-02-01 Ed Sirett: Re: gnu-tar.1.11.2 - Verification on tape media. 14. 1995-02-07 Francois Pinard: Re: gnu-tar.1.11.2 - Verification on tape media 15. 1995-02-07 Ed Sirett: Re: gnu-tar.1.11.2 - Verification on tape media. 16. 1995-02-08 Ed Sirett: Re: gnu-tar.1.11.2 - Verification on tape media. 17. 1995-03-19 Alan Bawden: GNU tar: BSD42 not set under FreeBSD, --sparse fail 18. 1995-09-05 greene%sahama.UUCP@cub.kscorp.com: tar 1.11.8 bug 19. 1995-11-07 Robert Weiner: Re: bug in gcpio/gtar 20. 1995-12-24 Jonathan Thornburg: GNU tar 1.11.8: --compare doesn't work for m 21. 1996-02-08 Danny Heap: Gnu tar+verify misses EOF?? 22. 1996-03-03 Jonathan Thornburg: gnu tar 1.11.9: --compare (still) broken on 23. 1996-03-08 Mark Tuempfel: Problem with GNU tar 1.11.8 24. 1996-04-23 Marty Leisner: Re: backup patches to gnu tar... 25. 1996-05-27 Pete Holsberg: Bug In Gtar 1.11.8?? 26. 1996-07-10 Marty Leisner: Re: *buffer caching floppy drives in tar 27. 1996-12-31 Loris Caren: tar verify option 28. 1997-01-10 Loris Caren: Re: tar verify option rmail/3-cpio-things 1* 1994-06-24 marc@redhat.com: cpio-2.3 and st_size of symlinks 2. 1994-09-08 Alberto Maria Segre: FTAPE and GNU mt screw up 3. 1995-10-29 François Pinard: Current cpio maintainer 4. 1995-10-29 François Pinard: Re: Some GNU tar suggestions: checksums 5. 1995-10-29 François Pinard: Re: Some GNU tar suggestions: checksums 6. 1995-10-30 GNU Mailing List Maintenance: Current cpio maintainer 7. 1995-10-30 Tom Tromey: Re: Some GNU tar suggestions: checksums 8. 1995-10-30 François Pinard: Re: Some GNU tar suggestions: checksums 9. 1995-10-30 François Pinard: Re: Some GNU tar suggestions: checksums 10. 1995-10-31 Tom Tromey: Re: Some GNU tar suggestions: checksums 11. 1995-11-04 Tom Tromey: fnmatch, cpio 12. 1995-11-04 François Pinard: Re: fnmatch, cpio 13. 1995-11-04 Tom Tromey: Re: fnmatch, cpio 14. 1995-11-06 Tom Tromey: Re: gettext-0.9.6: po/Makefile 15* 1995-11-23 Joerg Dorchain: mt-"bug" (cpio-2.3) 16. 1995-11-26 François Pinard: Re: Automake and cpio 17. 1995-11-26 Tom Tromey: Re: Automake and cpio 18. 1995-12-03 Tom Tromey: Re: Notes about AutoMake 19. 1995-12-03 François Pinard: Re: Notes about AutoMake 20. 1995-12-05 François Pinard: Re: Notes about AutoMake 21. 1995-12-05 François Pinard: Re: Notes about AutoMake 22. 1995-12-15 Tom Tromey: Re: [marks@phx.com: bug in cpio configure for solari 23. 1996-01-11 Arnold D. Robbins: cpio 2.4.1, cpio.texi doesn't tex well 24. 1996-02-17 François Pinard: Re: tar backup scripts 25. 1996-02-17 Tom Tromey: Re: tar backup scripts 26. 1996-02-20 Noah Friedman: Re: tar backup scripts 27. 1996-02-20 François Pinard: Re: tar backup scripts 28. 1996-02-20 Noah Friedman: Re: tar backup scripts 29. 1996-02-29 Tom Tromey: Re: tar backup scripts 30. 1996-02-29 François Pinard: Re: tar backup scripts 31. 1996-03-10 Tom Tromey: Re: cpio messages translated to French 32. 1996-03-10 François Pinard: Re: cpio messages translated to French 33. 1996-03-11 Tom Tromey: cpio 34. 1996-03-11 François Pinard: Re: cpio 35. 1996-04-02 Brian Mays: cpio-2.4.2: Bug with '-V' flag for mt. 36. 1996-04-02 Brian Mays: cpio-2.4.2: Suggested feature 37. 1996-04-02 Brian Mays: cpio-2.4.2: Bug with cpio's '-a' feature 38. 1996-04-02 Brian Mays: cpio-2.4.2: Bug in mt 39. 1996-04-16 Forrest Aldrich: CPIO remote drive access not working 40. 1996-04-18 David Del Piero: Fix for GNU CPIO 2.4.2 41. 1996-10-08 Marko Jahnke: fix?! for "mt" (cpio 2.4.2) 42. 1996-11-08 Michel Henri: -cpio flag of gnufind 43. 1996-11-15 Han Holl: Cpio 2.4.2 & 2.4.1 bug 44. 1996-11-16 Geoffrey T. Dairiki: Bug in cpio-2.4.2, and other questions... 45. 1996-11-23 Paul Southworth: cpio 2.4.2 buglet 46. ....-..-.. jfk@edm2.uem.mz: cpio-2.3 enhancement request rmail/3-format-hurd 1. 1996-08-07 Thomas Bushnell, n/BSG: Backup of Hurd systems 2. 1996-08-08 François Pinard: Re: Backup of Hurd systems rmail/3-format-posix 1. 1994-08-02 Francois Pinard: ustar compatibility, from cpio distribution 2. 1995-07-10 Joerg Schilling: Re: ufsdump vs. tar ? 3. 1995-07-12 François Pinard: Re: Request suggestion on tar extension 4. 1995-07-16 Joerg Schilling: Re: ufsdump vs. tar ? 5. 1995-07-17 François Pinard: Re: ufsdump vs. tar ? 6. 1995-08-09 Dr. Joerg Weule: tar -- my patch for tar-1.11.8 -- bug fixes 7. 1995-08-23 François Pinard: Re: tar problem for GNU tar ... 8. 1995-10-27 François Pinard: Re: filename length limitation in tar 9. 1995-12-20 François Pinard: tar and cpio compatibility 10. 1995-12-20 François Pinard: Question on GNU tar and sparse files 11. 1996-01-17 Russell Cattelan: New Posix specs for tar. 12. 1996-01-18 François Pinard: Re: New Posix specs for tar. 13. 1996-01-18 François Pinard: Re: New Posix specs for tar. 14. 1996-01-19 Russell Cattelan: Re: New Posix specs for tar. 15. 1996-02-11 Russell Cattelan: Re: New Posix specs for tar. 16. 1996-03-25 François Pinard: Re: bug in GNU tar's interpretation of USTAR fo 17. 1996-10-07 Ulrich Drepper: Re: getopt and -W 18. 1996-10-09 François Pinard: Re: getopt and -W 19. 1997-01-30 Richard Stallman: Tar plans and POSIX 20. 1997-01-31 François Pinard: Re: Tar plans and POSIX 21. 1997-01-31 Richard Stallman: Re: Tar plans and POSIX 22. 1997-02-27 Scott Bertilson: GNU tar-1.11.8, long paths, Solaris/SunOS 23. 1997-02-28 François Pinard: Re: GNU tar-1.11.8, long paths, Solaris/SunOS rmail/3-format-ufos 1. 1988-03-10 Chris Maio: p.d. tar 2. 1989-06-29 Scott Garfinkle: HP diffs for tar 3* 1989-06-30 Scott Garfinkle: my tar patches 4. 1991-07-10 Jan Dj{rv: Question about tar format 5. 1991-10-11 friedman@gnu.ai.mit.edu: Beware of copying HPUX devices with GNU 6. 1993-04-13 Noah Friedman: doschk-1.0 is available on prep.ai.mit.edu 7. 1993-05-21 Noah Friedman: doschk 1.1 is available on prep.ai.mit.edu 8. 1993-05-22 Francois Pinard: doschk 1.1 is available on prep.ai.mit.edu 9. 1993-05-27 Daniel R. Guilderson: GNU tar and SCO UNIX: what to do? 10* 1993-05-27 Andreas Schwab: Bug in doschk 1.1 11. 1993-05-28 Daniel R. Guilderson: Tar link type extensions for SCO UNIX 12* 1993-05-28 Daniel R. Guilderson: SCO UNIX 3.2v4 patches to GNU tar 1.11.2 13. 1994-06-05 Deron E. Meranda: GNU tar 1.11.2 doesn't handle hard-linked dire 14. 1994-07-04 Jordan Hazen: Why does 'tar -clf' archive /proc filesystem? 15. 1994-07-04 dave@hiauly1.hia.nrc.ca: Re: Patches for tar-1.11.2 for hpux s70 16. 1994-07-08 M. Shawn Easter: Re: Why does 'tar -clf' archive /proc filesyste 17. 1994-07-09 Juha Virtanen: Re: Why does 'tar -clf' archive /proc filesystem? 18. 1994-07-12 dave@hiauly1.hia.nrc.ca: Re: Patches for tar-1.11.2 for hpux s70 19. 1994-08-05 haible@ma2s2.mathematik.uni-karlsruhe.de: Re: Prerelease: GNU ta 20* 1994-08-16 R.K.Lloyd@csc.liv.ac.uk: Re: Prerelease: GNU tar version 1.11.4 21. 1994-08-17 R.K.Lloyd@csc.liv.ac.uk: Re: Prerelease: GNU tar version 1.11.4 22* 1994-09-01 lkv@mania.robin.de: bug-fix for GNU-tar under HP-UX 23. 1995-12-02 Dale R. Worley: tar improvement 24. 1995-12-20 Daniel S. Barclay: Re: tar-1.11.8 bug found and fixed 25. 1996-07-07 Tor Lillqvist: Patches to tar: 24 bit minor device numbers and u 26. 1996-07-12 Keith Michaels: GNU cpio problem with inodes > 65535 27. 1996-09-20 Wolfram Wagner: Re: GNU tar 1.11.11 pretest 28. 1996-12-10 Paul Uiterlinden: tar bug? (socket becomes pipe) rmail/3-pax-specifications 1. 1993-12-07 Don Cragun: (POSIX.2 38) Proposal to replace ISO 1001 based new 2. 1993-12-13 Hal Jespersen: (POSIX.2 42) Re: Some feedback on your new pax pr 3. 1993-12-18 Hal Jespersen: (POSIX.2 44) Re: Comments on pax proposal 4. 1993-12-22 Don Cragun: (POSIX.2 48) Re: (POSIX.2 44) Re: Comments on pax pr 5. 1993-12-23 Hal Jespersen: (POSIX.2 50) new pax proposal [nroff] 6. 1993-12-27 Hal Jespersen: (POSIX.2 52) pax prefix/name 7. 1994-08-15 Francois Pinard: Re: A pax implementation for GNU 8. 1995-04-20 Tom Tromey: Re: Bug in GNU tar 1.11.2 9. 1995-04-21 François Pinard: Re: Bug in GNU tar 1.11.2 10. 1995-08-02 Ulrich Drepper: Re: dialect handling, and LANG settings 11. ---- -- -- Hal Jespersen: pax proposal rmail/3-pax-utility-project 1. 1993-12-26 Richard Stallman: Re: pax proposals 2. 1994-02-28 Isaac Charles: Re: pax 3. 1994-05-29 j chapman flack: Integrating the 'pax' archiver with GNU utiliti 4. 1994-08-13 gjb@maxim.gba.oz.au: A pax implementation for GNU 5. 1994-08-15 Francois Pinard: Re: A pax implementation for GNU 6. 1994-08-16 gjb@maxim.gba.oz.au: Re: A pax implementation for GNU 7. 1994-08-16 gjb@maxim.gba.oz.au: Re: A pax implementation for GNU 8. 1994-08-16 Francois Pinard: Re: A pax implementation for GNU 9. 1995-04-21 Tom Tromey: Re: Bug in GNU tar 1.11.2 10. 1995-04-25 François Pinard: Re: Bug in GNU tar 1.11.2 11. 1995-08-02 Sergio Gelato: Re: TAR in Perl? 12. 1995-10-15 Ulrich Drepper: another tar proposal 13. 1995-10-31 Tom Tromey: Re: Some GNU tar suggestions: checksums 14. 1995-12-06 François Pinard: Re: Notes about AutoMake 15. 1995-12-06 Tom Tromey: Re: Notes about AutoMake 16. 1997-04-03 Tom Tromey: Re: tar security 17. 1997-04-03 François Pinard: Re: tar security rmail/3-sparse-automatic 1. 1990-09-14 ian@sibyl.eleceng.ua.oz.au: Weird fileutils bug. 2. 1994-09-27 bap@scr.siemens.com: Re: gtar bug (under linux) 3. 1994-09-27 bap@scr.siemens.com: Re: gtar bug (under linux) 4. 1994-09-30 Francois Pinard: Re: gtar bug (under linux) 5. 1994-09-30 faith@cs.unc.edu: Re: gtar bug (under linux) 6. 1994-12-09 Jeremy Fitzhardinge: cp fails to make sparse files under linux 7* 1995-02-13 Harald Koenig: small patch for cp in fileutils-3.12 8. 1995-02-24 Dick Streefland: [tar-1.11.6] --sparse suggestion / Broken pipe 9. 1995-02-24 Francois Pinard: Re: [tar-1.11.6] --sparse suggestion / Broken p 10* 1995-02-26 David Monro: bug + added feature in fileutils 3.12 cp 11. 1995-06-25 François Pinard: Sparsifying GNU cp... 12. 1995-06-26 Jim Meyering: Re: Sparsifying GNU cp... rmail/3-sparse-option 1* 1992-10-29 Jeff Moskow: tar enhancement. 2. 1993-08-18 Joachim Holzfuss: tar 1.11.2: --sparse hangs tar 3. 1993-11-29 Dominic Dunlop: GNU tar 1.11.2: --sparse has no effect in tmpfs 4. 1994-09-20 m.dsouza@mrc-apu.cam.ac.uk: Bug in tar-1.11.5 5* 1995-01-28 Alan Modra: Re: tar-1.11.2 improvements & fixes 6* 1995-02-05 Karl Berry: tar: sparse file extraction bug 7. 1995-05-27 Maarten Litmaath: another bug found in GNU tar 1.11.2 8. 1995-06-19 davidm@cs.su.oz.au: bug + added feature in fileutils 3.12 cp 9* 1995-11-19 Alain Knaff: SUGGESTION: Create sparse files out of ordinary ta 10. 1995-11-23 François Pinard: Re: SUGGESTION: Create sparse files out of ordi 11. 1995-11-24 Alain Knaff: Re: SUGGESTION: Create sparse files out of ordinary 12. 1995-11-24 François Pinard: Re: SUGGESTION: Create sparse files out of ordi 13. 1996-02-28 fulco@sig.uvsq.fr: pb tar sur DGUX 5.4R3.11 14. 1996-02-28 François Pinard: Re: pb tar sur DGUX 5.4R3.11 15. 1996-07-10 Brian Mays: cpio --sparse errors 16. 1997-03-21 Andreas Degert: gnu tar 1.11.8 - bug description (sparse files) 17. 1997-03-21 Andreas Degert: gnu tar 1.11.8 - bug description (sparse files) 18. 1997-03-29 François Pinard: Re: gnu tar 1.11.8 - bug description (sparse fi 19. 1997-04-01 Andreas Degert: Re: gnu tar 1.11.8 - bug description (sparse fil rmail/3-sparse-theory 1. 1989-03-31 Piet van Oostrum: Saving diskspace on preloaded Unix TeXs 2. 1990-12-11 Barry Shein: Re: How do you find the symbolic links to files. 3. 1990-12-12 Dan Bernstein: Re: How do you find the symbolic links to files. 4. 1990-12-15 John F Haugh II: Re: holes in files 5. 1994-08-16 meyering@idefix.comco.com: Re: Sparse files 6. 1994-08-16 meyering@idefix.comco.com: Re: Sparse files 7. 1994-08-24 djm@va.pubnix.com: Re: Sparse files 8. 1994-08-24 djm@va.pubnix.com: Re: Sparse files 9. 1995-02-06 Karl Berry: Re: tar: sparse file extraction bug 10. 1995-02-24 Dick Streefland: [tar-1.11.6] --sparse suggestion / Broken pipe 11. 1995-12-20 François Pinard: Re: Question on GNU tar and sparse files 12. 1997-03-30 François Pinard: Re: GNU tar 1.11.9 problem: --sparse is very *s 13. 1997-03-30 William Bader: re: reading files rmail/4-date-atimes 1* 1993-04-26 Richard O'Neill: Re: GNU Tar Bugs related to `-g' and `-G', wit 2. 1995-02-24 Shaheen Tonse T3156: Re: Gnu Tar 3. 1995-04-27 Sherwood Botsford: Re: Location of present release of gnutar 4* 1995-09-03 Dale R Worley: Tar does not handle --atime-preserve with --diff 5* 1995-10-30 Dale R. Worley: Re: Tar does not handle --atime-preserve with - 6. 1996-10-16 Noah Friedman: Re: (no subject) 7. 1996-10-16 Thomas Bushnell, n/BSG: Re: (no subject) 8. 1996-10-16 François Pinard: GNU tar: preserving atime? 9. 1996-10-17 Mark Burgess: Re: (no subject) 10. 1996-10-17 Noah Friedman: Re: (no subject) 11. 1996-10-17 Thomas Bushnell, n/BSG: Re: (no subject) 12. 1996-10-17 Thomas Bushnell, n/BSG: Re: (no subject) 13. 1996-10-18 Karl Heuer: Re: GNU tar: preserving atime? 14. 1996-10-21 Miles Bader: Re: (no subject) rmail/4-date-dirs 1. 1991-09-11 Gerben Wierda: tar 1.10 and directories on SUNOS 3.5, SUNOS 4.1. 2* 1991-09-11 wierda@ltb.bso.nl: here is a quick and dirty hack for the direc 3. 1995-01-07 Dino Dini: Still maintaining tar? 4* 1995-01-08 Dino Dini: Fixes/improvements to tar-1.11.2 5. 1995-06-17 Bryan Higgins: Re: tar --newer 6. 1995-06-23 David Martin: Problem with GNU tar -N option 7. 1995-09-29 Yeo Ann Kian: tar --newer=DATE 8. 1995-10-11 Len Hatfield: A question on gnu tar rmail/4-date-various 1. 1991-10-13 Magnus.Harlander@physik.tu-muenchen.de: Problem with incremental 2. 1994-07-13 carol@vizbiz.com: Re: --newer DATE option 3. 1994-11-23 Donald Douglas Jolley: Understanding the syntax for invoking tar 4. 1995-01-04 Francois Pinard: Re: bug found in GNU tar-1.11.2 5. 1995-07-05 Paul Aspinwall: tar -G -N is confused! 6. 1995-11-08 John Heller: Bug in cpio-2.3 7. 1995-11-13 Mike: Re: Bug in cpio-2.3 8. 1996-02-03 Ramani Pichumani: GNU tar 1.11.8 doesn't honor year in -N option 9. 1996-04-18 Akiko MATSUSHITA: [tar-1.11.8] problem of `--newer=DATE' 10. 1996-05-04 Bryan Higgins: Re: tar --newer 11. 1996-05-30 Andreas Mirwald: Prob: (g)tar 12. 1996-09-30 Homer Wilson Smith: Tar bug in NEWER 13. 1997-02-18 David Quattlebaum: GNU tar and the --newer option 14. 1997-03-27 Timothy J. Lee: GNU tar --newer question 15. 1997-04-25 Sven Verdoolaege: tar list.c mtime check rmail/4-delete-problems 1. 1991-07-04 Stuart Kemp: gnutar 1.10 problems 2. 1996-11-22 Vince Del Vecchio: Re: GNU Tar delete problem [1.09, also 1.11.2 3. 1996-11-29 Eric Backus: Re: tar 1.11.8 4. 1997-03-04 Thomas Schmeidl: bug report for 1.11.14 5. 1997-04-19 Bruno Haible: tar-1.11p on HP-UX 9 with cc 6. 1997-04-19 Bruno Haible: tar-1.11p on HP-UX 9 with cc 7. 1997-04-19 Bruno Haible: tar-1.11p on HP-UX 10 with cc 8. 1997-04-19 Bruno Haible: tar-1.11p on HP-UX 10 with cc 9. 1997-04-19 Bruno Haible: tar-1.11p on HP-UX 10 with cc 10. 1997-04-22 François Pinard: Re: bug report for 1.11.14 rmail/4-directory-option 1. 1991-12-29 Francois Pinard: GNU tar: options -C and -T do not work well tog 2. 1994-08-03 eddy@gen.cam.ac.uk: GNU tar status: here it is! [Re: bug in GNU 3. 1994-08-04 pinard@IRO.UMontreal.CA: Re: GNU tar status: here it is! [Re: bu 4. 1994-10-06 dave@hiauly1.hia.nrc.ca: Re: Possible problem with tar-1.11.5 5. 1994-11-04 patrick timmons: bug with tar 1.11.2 ? 6. 1995-02-07 Marty Leisner: problems with tar-1.11.[56] 7. 1995-02-07 Marty Leisner: problems with tar-1.11.[56] 8. 1995-02-07 Marty Leisner: problems with tar-1.11.[56] 9. 1995-02-07 Francois Pinard: Re: problems with tar-1.11.[56] 10. 1995-05-17 John David Anglin: Re: Prerelease: GNU tar 1.11.7 11. 1995-05-28 K. Berry: revised tar.texi 12* 1995-08-03 Kevin L. Smith: bug & fix for GNU Tar 1.11.2 13. 1996-02-29 Marty Leisner: proposal for tar 14. 1996-02-29 François Pinard: Re: proposal for tar 15. 1996-03-10 Andreas Kostyrka: Re: Duplicating a file system 16. 1996-05-30 Larry M. Augustin: GNU tar feature suggestion 17. 1996-12-05 Steve Biederman: gtar with -C, -T, and relative pathnames 18. 1996-12-05 Steve Biederman: gtar with -C, -T, and relative pathnames 19. 1997-03-29 François Pinard: Re: gtar with -C, -T, and relative pathnames 20. 1997-03-31 François Pinard: Re: gtar with -C, -T, and relative pathnames 21. 1997-03-31 Steve Biederman: Re: gtar with -C, -T, and relative pathnames 22. 1997-03-31 Steve Biederman: Re: gtar with -C, -T, and relative pathnames 23. 1997-03-31 Steve Biederman: Re: gtar with -C, -T, and relative pathnames rmail/4-exclude-option 1. 1989-05-23 Gerry Wiener: problem with tar1.05 and tar1.07 on sun4-os4 2* 1989-07-06 Steven M Romig: tar 1.07 bugs 3. 1991-08-14 Eric Hanchrow: `tar' 1.10 +extract option sure is hard to use! 4. 1991-09-25 John A. Turner: tar 1.10 5. 1991-09-26 wierda@ltb.bso.nl: Exclude pattern does not work and directory i 6. 1993-08-10 Ken Harrenstien: GNU tar misfeature 7* 1994-06-17 Andreas Schwab: Tar 1.11.2: bug with --exclude 8. 1994-10-02 ellson@hotair.att.com: tar-1.11.2 -X switch doesn't work 9. 1995-02-02 Marty Leisner: tar feature (not documented?) 10. 1995-06-20 wbader: tar problem under sco 11. 1995-06-30 Stuart Poulin: Tar - enhancement, tar verses cpio 12. 1995-11-24 Kimball Collins: Re: gtar: -X option and filename length 13* 1995-11-27 Reiner Hammer: GNU tar exclude lists 14. 1995-11-27 Reiner Hammer: GNU tar exclude lists 15. 1995-12-29 William Bader: Re: tar question 16. 1996-01-23 Paul Nevai: tar 17. 1996-01-23 François Pinard: Re: tar 18. 1996-02-05 Jonathan Thornburg: 'tar --exclude-from=big.file' is slow 19. 1996-03-24 Savochkin Andrey Vladimirovich: Re: Moving Linux 20. 1996-06-17 Mark Bynum: Re: tar-1.11.9 & SGI 6.1 Compilation Problems 21. 1996-08-26 Torkel Hasle: bug in gni tar 1.11.11 22. 1996-08-28 Ralph Finch: GNU tar help with --exclude-from 23. 1996-11-09 François Pinard: Re: tar 1.11.8 bug with '*/' file filter 24. 1996-11-09 Nat Makarevitch: Re: tar 1.11.8 bug with '*/' file filter 25. 1997-03-23 Peter Hirsch: Re: gnu tar bug 26. 1997-03-29 François Pinard: Re: gnu tar bug rmail/4-exit-statuses 1* 1993-03-25 Jim Meyering: tar-1.11.2 nit 2. 1994-08-09 holger@hotbso.rhein-main.DE: Re: GNU tar: exit statuses 3. 1995-10-27 Greg Chung: Re: GNU tar 4* 1995-11-30 Greg Chung: Re: GNU tar 5. 1996-02-25 Noah Friedman: tar exit status 6. 1996-04-03 John R. Vanderpool: Re: tar-1.11.8 7. 1996-04-08 John R. Vanderpool: Re: tar-1.11.8 8. 1996-04-11 John R. Vanderpool: Re: tar-1.11.8 9. 1996-04-11 François Pinard: Re: tar-1.11.8 10. 1996-06-17 François Pinard: Re: tar-1.11.9 & SGI 6.1 Compilation Problems 11. 1997-04-25 Richard Stallman: Error I don't understand. 12. 1997-04-25 François Pinard: Re: Error I don't understand. 13. 1997-04-25 François Pinard: Re: Error I don't understand. rmail/4-files-from-problems 1. 1995-06-27 Stefan Bohm: Bug in tar-1.11.8 rmail/4-huge-archives 1. 1996-09-16 Bob Kaehms: Re: BIG File Question 2. 1996-09-17 Bob Kaehms: Re: BIG File Question rmail/4-sigchild-problems 1. 1994-08-18 Marc Aurele La France: On SIGCHLD signals 2* 1994-08-22 tsi@gpu.srv.ualberta.ca: Changes to GNU tar-1.11.2 package 3. 1994-08-23 tsi@gpu.srv.ualberta.ca: Re: Changes to GNU tar-1.11.2 package 4* 1995-04-13 Marc Aurele La France: Re: Changes to GNU tar-1.11.2 package 5. 1995-08-07 James H Caldwell Jr: GNU Tar (one quick question) rmail/4-update-problems 1. 1994-03-14 Matthew Swift: tar 1.11.2 on NeXT 3.0 black: bus errors 2. 1994-10-12 Carsten Menke: tar --update or --append on Connor Archive Viper 3. 1994-11-07 brad@instep.wimsey.com: WARNING: bug in gnutar 4. 1995-09-24 Stephen Wray: can tar *really* not append??? 5. 1995-10-03 Gerald D. Anderson: tar -r bug 1.11.2 & 1.11.8 6. 1997-01-25 melissa@gnu.ai.mit.edu: --update problem? 7. 1997-01-28 melissa@gnu.ai.mit.edu: my earlier message about --update 8. 1997-02-16 Thomas Ackermann: gnu tar 1.11.8 9. 1997-02-25 François Pinard: Re: gnu tar 1.11.8 10. 1997-03-04 Thomas Schmeidl: bug report for 1.11.14 11. 1997-04-22 François Pinard: Re: bug report for 1.11.14 rmail/5-dump-config 1* 1993-05-03 Sarantos Kapidakis: tar/addition 2. 1994-07-27 wbader@CSEE.Lehigh.Edu: Re: GNU tar: exit statuses 3. 1994-07-27 Francois Pinard: Re: GNU tar: exit statuses 4. 1994-07-27 wbader@CSEE.Lehigh.Edu: Re: GNU tar: exit statuses 5. 1996-11-07 K. Berry: Re: source code for GNU tar 6. 1996-11-13 William Bader: languages rmail/5-dump-emulation 1. 1992-10-08 Noah Friedman: [Harald.Eikrem@delab.sintef.no: backup dump w/ GN 2. 1993-10-02 Alan Stebbens: Re: tar-1.11.2 and incremental backups 3. 1994-05-19 Steve Warren: gnu tar --newer option question 4. 1995-10-27 Nate Williams: Re: buffer caching floppy drives in tar 5. 1993-02-25 Patrick Sobalvarro: ITS Grim File Reaper rmail/5-dump-mode 1. 1989-01-18 Antti Louko: Re: GNU-tar vs dump(1) 2. 1991-07-12 Ernest Hua: tar 1.10 option G 3* 1991-09-11 wierda@ltb.bso.nl: here is a quick and dirty hack for the direc 4. 1993-08-02 Michael I Bushnell: Re: 1.11.1 on SCO - can't close tape device 5. 1993-08-25 Michael C. Grant: GNU tar 1.11.2 incremental backup question 6. 1993-10-01 ITS Unix Administrator: Re: tar 7. 1994-02-18 Leslie Mikesell: find/cpio vs. gnutar 8. 1994-04-21 Gert van Antwerpen: GNUtar problem 9* 1994-05-06 Dean Gaudet: gnu tar-1.11.2, ultrix 4.2, and atol 10. 1995-01-19 phr@gnu.ai.mit.edu: tape backup 11. 1995-01-19 Richard Stallman: Re: tape backup 12. 1995-02-07 Marbury, Gerald D.: GNU tar version 1.11.2 13. 1995-10-19 swift@acs.bu.edu: tar --listed-incremental should recognize file 14* 1995-12-12 Andrew J. Schorr: gnu tar 1.11.8 has problem extracting a direc 15. 1995-12-28 Michael Giddings: Problems with gnutar:core dump 16. 1995-12-28 François Pinard: Re: Problems with gnutar:core dump 17. 1996-04-14 Bdale Garbee: Bug#1144 18. 1995-07-23 Ian Jackson: tar --listed-incremental doesn't restore renames 19. 1996-08-28 Andrew R. Cook: GNU-tar suggestions 20. 1997-03-28 Timothy J. Lee: GNU tar suggestion 21. 1997-03-29 François Pinard: Re: GNU tar --newer question 22. 1997-03-29 François Pinard: Re: GNU tar suggestion 23. 1997-04-20 François Pinard: Re: backup problems 24. 1997-04-20 Richard Stallman: Re: backup problems rmail/5-dump-scripts 1. 1992-09-30 Derek Beatty: tar 1.11.1 --listed-incremental with --atime-prese 2. 1992-09-30 Derek Beatty: (none) 3. 1993-04-20 root: tar 1.11.2/level-{0,1} 4. 1993-05-21 LEE@lpi.jsc.nasa.gov: Questions about tar-1.11.2 5. 1993-06-19 tim: GNU tar 6. 1993-10-22 Alberto Santini: about tar1.11.2 7. 1993-10-22 Noah Friedman: about tar1.11.2 8. 1993-11-30 Richard Stallman: Backup script bug 9. 1994-02-21 K Kubat: Backup scripts V1.00 10. 1994-02-26 Bennett Todd: Incrementals (was Re: find/cpio vs. gnutar) 11. 1994-08-11 rms@gnu.ai.mit.edu: idea for dump scripts 12. 1994-08-16 rms@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 13. 1994-08-17 friedman@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 14. 1994-08-17 rms@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 15. 1994-08-17 friedman@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 16. 1994-08-17 friedman@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 17. 1994-08-17 rms@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 18. 1994-08-23 Ashok Aiyar: Re: Any decent backup software for Linux ??? 19. 1994-08-23 Leslie Mikesell: Re: Any decent backup software for Linux ??? 20. 1994-08-26 rms@gnu.ai.mit.edu: Re: GNU tar scripts maintainance 21. 1994-09-04 rms@gnu.ai.mit.edu: tar changes 22. 1994-09-04 rms@gnu.ai.mit.edu: Re: tar changes 23. 1994-09-05 Francois Pinard: Re: tar changes 24. 1994-09-05 rms@gnu.ai.mit.edu: Re: tar changes 25. 1994-09-06 henrik@picard.tamu.edu: How does one restore from a level-0 dump 26. 1994-09-06 Jonathan Warburton-Brown: L.B.U - A Linux Backup Utility 27. 1994-10-03 dave@hiauly1.hia.nrc.ca: Re: Possible problem with tar-1.11.5 28. 1994-11-22 Kurt Mader: Backup scripts (GNU tar) 29. 1994-11-22 Noah Friedman: [mader@cecam.fr: Backup scripts (GNU tar)] 30. 1995-01-20 Koen Holtman: DISCUSSION: afio 2.4.1 new feature 31. 1995-01-23 Joel M. Hoffman: Re: DISCUSSION: afio 2.4.1 new feature 32. 1995-01-29 Milan Hodoscek: Re: GNU tar 1.11.2 and IRIX kisg 5.3 11091812 IP 33. 1995-01-29 Milan Hodoscek: Re: GNU tar 1.11.2 and IRIX kisg 5.3 11091812 IP 34. 1995-02-02 Cliff Rayman: Re: tar backups w/ active files? 35. 1995-02-07 Jason Uberig: tar 1.11.2: FSF backup scripts: problem/question 36. 1995-02-18 Gerry Frank Gilmore: Re: tar backups w/ active files? 37. 1995-02-24 Noah Friedman: Re: GNU tar 1.11.2 and IRIX kisg 5.3 11091812 IP2 38. 1995-02-24 Noah Friedman: tar 1.11.2: FSF backup scripts: problem/question 39. 1995-02-24 Jason Uberig: Re: tar 1.11.2: FSF backup scripts: problem/questi 40. 1995-02-25 Milan Hodoscek: Re: GNU tar 1.11.2 and IRIX kisg 5.3 11091812 IP 41. 1995-02-25 Leslie Mikesell: Re: tar 1.11.2: FSF backup scripts: problem/que 42. 1995-03-05 Trever Miller: Re: Safe to use TAR to backup? 43. 1995-03-11 Leslie Mikesell: Re: Safe to use TAR to backup? 44. 1995-03-17 Michael Meissner: Re: Safe to use TAR to backup? 45. 1995-04-24 Noah Friedman: As if you didn't have enough to do already 46. 1995-04-27 Uri Meth: tar-1.11.2 47. 1995-05-15 asb@ulysses.att.com: GNU tar incremental backup problem 48. 1995-05-22 M. Damerell: Re: GNU tar incremental backup problem 49. 1995-06-17 Richard Stallman: scripts 50. 1995-06-17 François Pinard: Re: scripts 51. 1996-02-17 Noah Friedman: tar backup scripts 52. 1996-03-03 Jonathan Thornburg: gnu tar 1.11.9: summary of build problems 53. 1996-03-06 Paul Rubin: tar incremental dump question/bug 54. 1996-03-06 Paul Rubin: re: previous msg (incremental dumps with tar) 55. 1996-03-06 phr: re: previous msg (tar incremental dumps) 56. 1996-03-06 François Pinard: Re: tar incremental dump question/bug 57. 1996-03-06 Noah Friedman: Re: tar incremental dump question/bug 58. 1996-07-18 François Pinard: Re: pattern matching dans un Makefile 59. 1996-09-20 François Pinard: Solaris door files [was: Re: GNU tar 1.11.11 pr rmail/5-emacs-mode 1. 1995-04-07 François Pinard: Re: GNU tar is vulnerable to EINTR failures 2. 1995-04-07 Greg McGary: FYI: tar-mode.el hacks 3. 1996-02-27 Richard Stallman: Re: tar feature wanted 4. 1996-02-27 François Pinard: Re: tar feature wanted 5. 1996-10-14 Jari Aalto: Re: tarring files in dired 6. 1996-10-14 Trey Jackson: Re: tarring files in dired 7. 1996-11-19 Jim Blandy: dired-tar.el rmail/5-mysteries 1. 1996-02-22 fulco@sig.uvsq.fr: autre probleme avec tar sur DG 2. 1996-02-23 Adrian Biland: tar-1.11.8: bug in '--totals' on AIX 4.1.3 3. 1996-02-25 François Pinard: Re: autre probleme avec tar sur DG 4. 1996-02-25 François Pinard: Re: tar-1.11.8: bug in '--totals' on AIX 4.1.3 5. 1996-02-28 Joachim Seelig: tar-probs multivolume 6. 1996-02-27 François Pinard: Re: tar-probs multivolume rmail/5-per-file-script 1. 1995-01-23 Karel Kubat: Re: DISCUSSION: afio 2.4.1 new feature 2. 1995-01-24 Koen Holtman: Re: DISCUSSION: afio 2.4.1 new feature 3. 1995-01-24 Karel Kubat: Re: DISCUSSION: afio 2.4.1 new feature 4. 1995-01-24 Koen Holtman: Re: DISCUSSION: afio 2.4.1 new feature rmail/5-xtar 1. 1995-11-01 François Pinard: xtar rmail/announce 1. 1994-12-04 pinard@IRO.UMontreal.CA: Prerelease: GNU tar 1.11.6 2. 1995-05-17 François Pinard: Prerelease: GNU tar 1.11.7 3. 1995-06-17 François Pinard: GNU tar maintainance 4. 1995-06-17 François Pinard: Release: GNU tar 1.11.8 5. 1995-12-29 François Pinard: Prerelease: GNU tar 1.11.9 6. 1996-07-10 François Pinard: Releasing pretest of tar 7. 1996-07-15 François Pinard: Creation of the tar-forum mailing list 8. 1996-07-16 François Pinard: Prerelease: GNU tar 1.11.10 9. 1996-07-16 François Pinard: Tools for fully modifying tar 10. 1996-07-18 François Pinard: Prerelease: GNU tar 1.11.11 11. 1996-09-19 François Pinard: Prerelease: GNU tar 1.11.12 12. 1996-09-30 François Pinard: Re: tar 1.11.11 13. 1996-11-09 François Pinard: Prerelease: GNU tar 1.11.13 14. 1996-11-19 François Pinard: Prerelease: GNU tar 1.11.14 15. 1996-11-19 François Pinard: Re: Prerelease: GNU tar 1.11.14 16. 1996-12-07 Jim Meyering: Re: tar 1.11.4 pointer bug in get_directory_conten 17. 1997-02-27 François Pinard: Re: Prerelease: GNU tar 1.11.14 18. 1997-03-27 François Pinard: Finding GNU tar ports 19. 1997-04-05 François Pinard: Advance announcement of tar 1.11o 20. 1997-04-11 François Pinard: Prerelease: GNU tar 1.11o 21. 1997-04-18 François Pinard: Prerelease: GNU tar 1.11p 22. 1997-04-22 François Pinard: The incoming tar 1.12, and --delete type option 23. 1997-04-22 François Pinard: Prerelease: GNU tar 1.11q 24. 1997-04-23 François Pinard: GNU tar 1.12 imminent rmail/conf-bsd 1. 1995-08-04 cmattern@mindspring.com: gnu tar 1.11.8 won't compile for me 2. 1996-05-03 Trent Fisher: GNU tar on AIX 4.1 3. 1996-11-14 Thomas M. Browder: (none) 4. 1996-11-27 David Mansfield: tar-1.11.8 BUG rmail/conf-dir-appolo 1* 1993-05-11 Oliver Trepte: Gnu tar 1.11.2 rmail/conf-dir-next 1* 1993-09-30 Vic Abell: GNU tar 1.11.2 under NeXTSTEP 3.1 (followup) 2. 1994-09-09 abe@vic.cc.purdue.edu: Re: Prerelease: GNU tar version 1.11.5 3. 1994-10-17 amon@walt.music.qub.ac.uk: Has anyone compiled gnutar 1.11.2 for 4. 1994-12-02 Stephen J. Perkins: Gnutar on NeXTSTEP 5. 1995-09-01 Nelson H. F. Beebe: Comments on tar 1.11.8 on NeXT Mach 3.0 6. 1995-10-10 psupko@blackbox.madentech.com: tar ver 1.11.2 compilation proble 7. 1996-07-16 François Pinard: GNU tar and NeXTSTEP 8. 1996-09-18 Richard Frith-Macdonald: Problems with make (3.75) on NeXTstep 9. 1996-10-15 François Pinard: Re: 2 Trivial Bugs 10. 1996-11-24 K. Berry: Re: Can't compile texinfo-3.9 on NeXTSTEP 11. 1996-11-27 Tom Hageman: Re: Can't compile texinfo-3.9 on NeXTSTEP rmail/conf-llseek 1. 1991-06-19 Kirk Hays: Summary of responses to prior art on "long long" type 2. 1996-06-21 Thomas Quinot: Re: When? 64-Bit lseek()? 3. 1996-06-21 Carsten Paeth: Re: When? 64-Bit lseek()? 4. 1996-06-21 LD Landis: Re: When? 64-Bit lseek()? 5. 1996-06-21 Aaron Ucko: Re: When? 64-Bit lseek()? 6. 1996-06-21 Theodore Y. Ts'o: Re: When? 64-Bit lseek()? 7. 1996-06-27 Stephen C. Tweedie: Re: When? 64-Bit lseek()? 8. 1996-08-19 Theodore Y. Ts'o: Re: 64bit lseek (Was: Re: >31 bit filesystems) 9. 1996-08-20 Stephen C. Tweedie: Re: 64bit lseek (Was: Re: >31 bit filesystem rmail/conf-types 1. 1995-02-28 Andrey A. Chernov, Black Mage: Re: GNU tar on FreeBSD 2.0 2. 1996-09-20 Göran Uddeborg: device number types 3. 1996-11-19 Marcus Daniels: tar-1.1.14 on Sequent PTX 4.1.3 4. 1996-11-27 Wolfram Wagner: GNU tar 1.11.14 - problem with --totals and SunO 5. 1996-12-10 Ju\"rgen Fluk: findutils-4.1: "long long" off_t and -ls/-printf rmail/conf-various 1. 1997-04-16 François Pinard: tar config 2. 1997-04-22 Marcus G. Daniels: localedir/DATADIR 3. 1997-04-24 Nelson H. F. Beebe: Re: GNU tar 1.11q 4. 1997-04-24 Thomas Koenig: Re: 1.11q fails to compile on HP-UX 9.07 5. 1997-04-26 Ulrich Drepper: Re: [marcus@cathcart.sysc.pdx.edu: localedir/DAT rmail/conf-wait-irix 1. 1996-03-18 Jean-Philippe Martin-Flatin: Re: GNU tar 1.11.2 2. 1996-04-22 John R. Vanderpool: Re: tar-1.11.8 3. 1997-04-07 Ariel Faigon: tar build problems. rmail/conf-wait-next 1. 1996-02-23 Nelson H. F. Beebe: tar 1.11.9 on NeXT Mach 3.2 systems 2. 1996-02-25 François Pinard: Re: tar 1.11.9 on NeXT Mach 3.2 systems 3. 1996-07-16 Marcus Daniels: tar-1.11.10 4. 1996-08-29 Sherwood Botsford: Errors from gcc 2.7.2 on NextStep 3.2 for tar 5. 1996-10-18 Lele Gaifax: Re: Italian messages for GNU tar 1.11.11 6. 1996-11-06 François Pinard: Re: Italian messages for GNU tar 1.11.11 7. 1997-04-23 Nelson H. F. Beebe: Re: GNU tar 1.11q 8. 1997-04-24 Robert E. Brown: tar 1.11.q configure bug 9. 1997-04-24 Alois Steindl: Re: Prerelease: GNU tar 1.11q 10. 1997-04-24 Nelson H. F. Beebe: Re: GNU tar 1.11q rmail/doc-admin 1. 1996-04-26 François Pinard: GNU tar tutorial 2. 1997-03-04 François Pinard: Integrating tar manuals 3. 1997-03-15 François Pinard: @kbd .vs. @samp 4. 1997-03-17 François Pinard: Here is a tar.texi 5. 1997-03-24 François Pinard: Re: README for /gd/gnuorg 6. 1997-03-28 François Pinard: Re: finally, melissa replies. 7. 1997-04-01 François Pinard: tar-mew.texi in tar pretest? 8. 1997-04-02 François Pinard: Re: Structure of tar manual 9. 1997-04-05 Richard Stallman: Re: tar-mew.texi in tar pretest? 10. 1997-04-22 Melissa Weisshaus: Re: Manual structure (please reply) 11. 1997-04-23 François Pinard: Re: @kbd .vs. @samp (please reply) rmail/doc-dates 1. 1994-11-24 K. Berry: time zone correction 2. 1994-12-04 Jim Meyering: Re: time zone correction 3. 1995-04-04 Jim Meyering: Re: Spacing in getdate.texi 4. 1995-06-10 Karl Berry: next month 5. 1995-06-12 Jim Meyering: Re: next month 6. 1995-06-12 François Pinard: Re: next month 7. 1995-06-12 K. Berry: Re: next month 8. 1996-02-20 Karl Berry: date --file= 9. 1996-02-28 Jim Meyering: Re: beginning of time 10. 1996-04-19 Markus Kuhn: getdate manual 11. 1996-04-19 Jim Meyering: Re: [mskuhn@cip.informatik.uni-erlangen.de: getdat 12. 1996-04-28 Markus Kuhn: Re: getdate manual 13. 1996-08-25 K. Berry: quote for getdate.y 14. 1997-01-11 kb@cs.umb.edu: Re: possible bug in the chapter,"date input forma 15. 1997-01-28 Dennis Biringer: GNU Tar Manual Correction 16. 1997-01-28 François Pinard: Re: GNU Tar Manual Correction 17. 1997-02-04 Jim Meyering: Re: GNU Tar Manual Correction 18. 1997-04-09 François Pinard: getdate.texi rmail/doc-debugging 1. 1996-09-16 François Pinard: Re: BIG File Question 2. 1997-03-08 François Pinard: Re: Problem with tar under Linux with an EXB-82 rmail/doc-exclude 1. 1997-03-27 François Pinard: Re: Documentation on gnu tar 2. 1997-03-27 Ulrich Windl: Documentation on gnu tar rmail/doc-history 1. ....-..-.. John Gilmore: Re: I'm writing a public domain -tar- 2. 1985-09-14 Richard M. Stallman: I'm writing a public domain -tar- 3. 1985-12-03 John Gilmore: Re: tar 4. ....-..-.. David C. Anderson: Re: tar 5. 1986-10-31 John Gilmore: Re: wanted: a VMS program to write UNIX tar tapes 6. 1986-12-22 Richard M. Stallman: I got the tar 7. 1987-02-14 John Gilmore: Re: tar 8. 1987-12-15 Brian Reid: (none) 9. 1988-02-03 Jay Fenlason: (none) 10. 1988-03-15 Jay Fenlason: tar extension 11. 1988-03-15 John Gilmore: Re: tar extension 12. 1988-03-16 John Gilmore: PD tar "r" option 13. 1988-04-25 John Gilmore: Re: PD tar 14. 1988-04-27 John Gilmore: Re: binary tar distrib 15. 1988-09-15 Richard Stallman: GNU tar 16. 1988-09-16 gnu: Re: GNU tar 17. 1988-09-16 Richard Stallman: GNU tar 18. 1988-09-19 Jay Fenlason: (none) 19. 1989-01-12 gnu: Re: hi! 20. 1990-03-09 Dan Lanciani: tar manpage 21. 1990-08-09 gnu: Re: tar utility 22. 1990-09-20 Kianusch Sayah-Karadji: tar 23. 1991-05-09 logixwi!jpm@uunet.UU.NET: tar 24. 1991-06-17 gnu: Re: pdtar 25. 1991-07-01 Joe Stong: pdtar 26. 1991-12-13 gnu: Re: pdtar 27. 1992-01-29 gnu: Re: tar for DOS 28. 1992-07-10 Bob Schreibmaier: Re: ndir directory access library 29. 1992-07-14 gnu: Re: ndir directory access library 30. 1993-06-04 gnu: Re: tar - public domain version 31. 1994-08-02 Francois Pinard: Prerelease: GNU tar version 1.11.3 32. 1994-08-16 Francois Pinard: Prerelease: GNU tar version 1.11.4 33. 1994-12-04 pinard@iro.umontreal.ca: Prerelease: GNU tar 1.11.6 34. 1995-03-12 John Gilmore: Re: pdtar 35. 1995-05-17 François Pinard: Prerelease: GNU tar 1.11.7 36. 1995-06-17 François Pinard: Release: GNU tar 1.11.8 37. 1995-06-21 John Gilmore: (none) 38. 1995-12-29 François Pinard: Prerelease: GNU tar 1.11.9 39. 1996-07-16 François Pinard: Prerelease: GNU tar 1.11.10 40. 1996-07-18 François Pinard: Prerelease: GNU tar 1.11.11 41. 1996-07-26 John Gilmore: Re: tar and MS-DOS drive 42. 1996-11-21 François Pinard: Re: tar email history excavation 43. 1996-11-22 François Pinard: Re: GNU tar 1.11.14 pretest rmail/doc-ignore-failed 1. 1997-04-23 François Pinard: Re: questionable tar behavior rmail/doc-incremental 1. 1993-05-21 LEE@lpi.jsc.nasa.gov: Questions about tar-1.11.2 2. 1993-07-26 Rob Parry: Compile error in regex.c in tar 1.11.2 3. 1993-08-02 Michael I Bushnell: Re: 1.11.1 on SCO - can't close tape device 4. 1994-03-15 Michael I Bushnell: Re: Questions on which features work in gtar 5. 1994-03-17 Leslie Mikesell: Re: Questions on which features work in gtar-1. 6. 1994-05-20 les@mcs.com: Re: gnu tar --newer option question 7. 1994-06-19 Leslie Mikesell: Re: GNU tar incremental backup bug... 8. 1994-10-10 thornbur@physics.ubc.ca: GNU tar 1.11.2: should --atime-preserve 9. 1994-12-11 rodrigo vanegas: GNU tar and incremental backups 10. 1995-01-19 phr@gnu.ai.mit.edu: tape backup 11. 1995-12-20 Noah Friedman: Re: tar-1.11.2 and incremental backups 12. 1995-12-20 Noah Friedman: Re: tar-1.11.2 and incremental backups 13. 1996-02-08 John R. Vanderpool: Re: status of GNU tar 14. 1996-03-14 bukys@cs.rochester.edu: question re listed incrementals 15. 1996-03-14 François Pinard: Re: question re listed incrementals 16. 1996-10-23 Alexandre Oliva: GNU Tar 1.11.8 - incremental backups and restor 17. 1996-10-28 Leslie Mikesell: Re: GNU Tar 1.11.8 - incremental backups and re 18. 1996-10-28 Thomas Bushnell, n/BSG: Re: GNU Tar 1.11.8 - incremental backups 19. 1996-10-30 Alexandre Oliva: Re: GNU Tar 1.11.8 - incremental backups and re 20. 1996-11-03 Leslie Mikesell: Re: GNU Tar 1.11.8 - incremental backups and re 21. 1996-11-03 Leslie Mikesell: Re: GNU Tar 1.11.8 - incremental backups and re 22. 1996-11-04 Thomas Bushnell, n/BSG: Re: GNU Tar 1.11.8 - incremental backups 23. 1996-11-04 Alexandre Oliva: Re: GNU Tar 1.11.8 - incremental backups and re 24. 1996-11-05 Alexandre Oliva: Re: GNU Tar 1.11.8 - incremental backups and re 25. 1996-11-06 Stephan Trebels: Re: GNU Tar 1.11.8 - incremental backups and re 26. 1996-11-07 Leslie Mikesell: Re: GNU Tar 1.11.8 - incremental backups and re 27. 1996-11-11 Leslie Mikesell: Re: GNU Tar 1.11.8 - incremental backups and re 28. 1997-02-21 François Pinard: GNU tar for Backup/Restore rmail/doc-info-script 1. 1997-04-15 François Pinard: Re: A feature to add 2. 1997-04-16 Alexander V. Lukyanov: Re: A feature to add 3. 1997-04-16 Alexander V. Lukyanov: Re: A feature to add rmail/doc-long-long 1. 1996-09-16 François Pinard: Re: BIG File Question rmail/doc-melissa 1. 1997-04-17 François Pinard: tar.texi - a few changes 2. 1997-04-17 François Pinard: tar.texi and --help 3. 1997-04-24 François Pinard: Little changes to tar.texi 4. 1997-04-25 Melissa Weisshaus: update on progress rmail/doc-other-tars 1. 1997-03-13 François Pinard: Re: tar 1.11.8 compatibility problem 2. 1997-03-13 Moser Ulrich: tar 1.11.8 compatibility problem rmail/doc-ports 1. 1995-12-31 François Pinard: Re: Prerelease: GNU tar 1.11.9 2. 1996-01-12 François Pinard: Re: Tarred and Gzipped rmail/doc-quoting 1. 1996-09-18 François Pinard: Quoting in tar (and also, matching) 2. 1996-09-19 Göran Uddeborg: Re: Quoting in tar (and also, matching) 3. 1996-09-20 K. Berry: Re: Quoting in tar (and also, matching) 4. 1996-09-19 Francesco Potorti`: Quoting in tar (and also, matching) rmail/doc-security 1. 1997-03-29 François Pinard: Re: tar bug rmail/doc-unlink-first 1. 1997-04-10 Nelson H. F. Beebe: Undesirable behavior of tar 2. 1997-04-10 Christopher Vickery: Re: Undesirable behavior of tar 3. 1997-04-10 Bruno Haible: Re: Undesirable behavior of tar 4. 1997-04-10 Bruno Haible: Re: Undesirable behavior of tar 5. 1997-04-10 Göran Uddeborg: Undesirable behavior of tar 6. 1997-04-11 John David Anglin: Re: Undesirable behavior of tar rmail/doc-various 1. 1997-04-05 François Pinard: Re: tar security rmail/mailing-list 1. 1996-08-07 Majordomo@IRO.UMontreal.CA: Majordomo results 2. 1996-12-29 Majordomo@IRO.UMontreal.CA: Majordomo results 3. 1997-04-15 Majordomo@IRO.UMontreal.CA: Majordomo results 4. 1997-04-18 Mail Delivery Subsystem: Returned mail: User unknown 5. 1997-04-20 Mail Delivery Subsystem: Returned mail: User unknown 6. 1997-04-20 Mail Delivery Subsystem: Returned mail: User unknown 7. 1997-04-22 Mail Delivery Subsystem: Returned mail: User unknown 8. 1997-04-23 Mail Delivery Subsystem: Returned mail: User unknown 9. 1997-04-23 Mail Delivery Subsystem: Returned mail: Cannot send message for 10. 1997-04-24 Mail Delivery Subsystem: Returned mail: Host unknown (Name serve 11. 1997-04-24 Mail Delivery Subsystem: Returned mail: Host unknown (Name serve 12. 1997-04-25 Mail Delivery Subsystem: Returned mail: Host unknown (Name serve admin/buffer-1.16/RMAIL 1. 1993-05-31 Lee M J McLoughlin: v37i098: buffer1.16 - Very Fast Tape Writer, admin/jörg/RMAIL 1. 1995-08-13 François Pinard: Joerg 2. 1995-08-13 François Pinard: Re: tar -- my patch for tar-1.11.8 -- bug fixes tar-1.13/COPYING0000444000176300016070000004310506357250523006755 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble 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. 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. 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. 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. 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. 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. 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. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 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". 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. 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. 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. 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: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) 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. 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. 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. 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: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) 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. 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. 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. 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. 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. 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. 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. 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. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 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. 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. 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. 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. NO WARRANTY 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. 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. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs 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. 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. Copyright (C) 19yy 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 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 Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. 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. 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: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice 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. tar-1.13/ChangeLog0000664000176300016070000014227306741023004007473 1999-07-08 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released. * configure.in (AC_EXEEXT): Add. * lib/Makefile.am (noinst_HEADERS): Add basename.h, exclude.h. Remove full-write.h. (libtar_a_SOURCES): Add exclude.c. * lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h: New files. * lib/full-write.c: Include safe-read.h instead of full-write.h. * lib/safe-read.h (safe_read): New decl. * src/rmt.c: Include safe-read.h. * src/rtapelib.c: Include basename.h, save-read.h. (rmt_open__): Use base_name to compute base name. * src/common.h: Include basename.h, exclude.h; don't include full-write.h. (exclude_option): Remove decl. (excluded): New decl. (add_exclude, add_exclude_file, check_exclude): Remove decls. * src/list.c (read_and): Use excluded_filename instead of check_exclude. Check base name of incoming file name, not entire file name, when deciding whether to exclude it. * src/create.c (finish_sparse_file): Use excluded_filename instead of check_exclude. Don't bother to stat excluded file names. * src/incremen.c (get_directory_contents): Likewise. * src/names.c (exclude_pool, exclude_pool_size, allocated_exclude_pool_size, simple_exclude_array, simple_excludes, allocated_simple_excludes, pattern_exclude_array, pattern_excludes, allocated_pattern_excludes, add_exclude, add_exclude_file, check_exclude): Remove; now done in ../lib/exclude.c. * src/tar.c (decode_options): Initialize `excluded'. Use new add_exclude_file and add_exclude functions. 1999-07-05 Paul Eggert * m4/gettext.m4: Use changequote rather than [[ ]]. * lib/safe-read.c: Renamed from lib/full-read.c. (safe_read): Renamed from full_read. All uses changed. * lib/safe-read.h, lib/full-write.h: New files. * lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h. (libtar_a_SOURCES): Rename full-read.c to safe-read.c. * lib/full-write.c: Include full-write.h. * src/common.h: Include full-write.h, safe-read.h. * src/system.h: (full_read, full_write): Remove decls. * src/Makefile.am (datadir): New var; needed for Solaris gettext. * src/system.h (bindtextdomain, textdomain): undef before defining, to avoid preprocessor warnings with --disable-nls on hosts whose locale.h includes libintl.h. * lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol expands to a macro, which occurs in HP-UX 10.20 with strtoumax. (strtol, strtoul): New decls (for pre-ANSI hosts), to replace the above decl. 1999-07-02 Paul Eggert * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4. * m4/mktime.m4: New file. * m4/Makefile.am.in, m4/README: Remove these files. * m4/Makefile.am (EXTRA_DIST): Add mktime.m4; remove README, Makefile.am.in. (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0. * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME, not AM_FUNC_MKTIME. * src/tar.c: Include signal.h. (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not. (main): Ensure SIGCHLD is not ignored. (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION, MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION, OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION, RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION, VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES, OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR, OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH, OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so they don't overlap with char codes. Use an enum instead of a lot of #defines. * src/system.h (ISASCII): Remove. (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID, S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW, MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX, LONG_MAX): New macros. * src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h. (read_directory_file): Cast ISSPACE arg to unsigned char. * src/misc.c (ISPRINT): Remove; now in system.h. (remove_any_file): Add brackets to pacify gcc -Wall. * src/list.c: Don't include ; system.h already does this. (ISODIGIT, ISSPACE): Remove; now in system.h. (decode_header): No need to AND mode with 07777; MODE_FROM_OCT does this now. (from_oct): Cast ISSPACE arg to unsigned char. * src/create.c (mode_to_oct): Translate modes from internal to external form. * src/list.c (mode_from_oct): Translate modes from external to internal form. Do not complain about unrecognized mode bits. * src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC, TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs. * src/extract.c: (extr_init, make_directories, extract_archive): Do not assume mode bits have traditional Unix values. * src/list.c (decode_mode): Likewise. * src/create.c (start_header, dump_file): Likewise. * src/buffer.c (child_open_for_compress, child_open_for_uncompress, open_archive, (close_archive): Likewise. * src/compare.c (diff_archive): Likewise. * src/extract.c (set_mode): Use %04 not %0.4 format. (extract_sparse_file): Do not use data_block uninitialized. Check for lseek failures. * src/rtapelib.c (rmt_lseek__): Convert lseek whence values to portable integers on the wire. * src/rmt.c (main): Likewise. Check for whence values out of range. * src/create.c (finish_sparse_file): Use lseek whence macros instead of integers. * src/buffer.c (backspace_output): Likewise. * src/compare.c (diff_archive, verify_volume): Likewise. * src/delete.c (move_archive): Likewise. * src/extract.c (extract_sparse_file): Likewise. * src/create.c (dump_file): Do not invoke finish_sparse_file on a negative file descriptor. * src/buffer.c: Add braces to pacify gcc -Wall. * src/compare.c (diff_sparse_files): Report lseek errors. * configure.in (ALL_LINGUAS): Add cs, es, ru. * PORTS, TODO: gnu.ai.mit.edu -> gnu.org * src/arith.c, src/buffer.c (new_volume): Don't put ^G in message to be internationalized; \a doesn't work with msgfmt. * src/tar.c (long_options, main, usage, OPTION_STRING): Remove -E or --ending-file. * src/list.c (read_and): Likewise. * src/common.h (ending_file_option): Likewise. * src/buffer.c (close_archive): Likewise. * tests/after: Don't run two commands together in a pipeline, as some old shells mishandle pipeline exit status. 1999-06-28 Paul Eggert * configure.in (AM_INIT_AUTOMAKE): version 1.12.64015. * NEWS: Describe changes since 1.12. * README: Update bug reporting address; move paxutils ref to NEWS. Handle EINTR correctly. * lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c. * lib/full-read.c, lib/full-write.c: New files. * src/buffer.c (child_open_for_compress, child_open_for_uncompress): Prefer full_read to read and full_write to write. * src/compare.c (process_rawdata, diff_sparse_files): Likewise. * src/create.c (deal_with_sparse, finish_sparse_file, dump_file): Likewise. * src/extract.c (extract_sparse_file): Likewise. * src/rmt.c (get_string, main, report_error_message, report_numbered_error): Likewise. * src/rmt.h (rmtread, rmtwrite): Likewise. * src/rtapelib.c (do_command, get_status_string, rmt_read__, rmt_write__, rmt_ioctl__): Likewise. * src/update.c (append_file): Likewise. * src/system.h (full_read, full_write): New decls. * po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c, lib/xmalloc.c, src/arith.c, src/misc.c. * src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): New macros. All uses of STDIN and STDOUT changed. * src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO instead of 0 and STDOUT_FILENO instead of 1. * src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO instead of fileno (stdin) and fileno (stdout) or 0 and 1. * src/rmt.c (private_strerror): Avoid const. Translate results. * tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work in the presence of NFS clock skew. 1999-06-25 Paul Eggert * configure.in (AM_INIT_AUTOMAKE): version 1.12.64014. * src/buffer.c (write_archive_buffer): New function. (child_open_for_compress, flush_write, flush_read): Use it to write buffers. (open_archive): Report error if fstat of archive fails. Improve efficiency of check for /dev/null. Also, fix some corner cases with remote archives and /dev/null checking. (close_archive): Test for input fifo only if not remote. Truncate output archive only if it's not remote. * src/misc.c (remove_any_file): Don't terminate if you see . or ..; just skip them. 1999-06-18 Paul Eggert * configure.in (AM_INIT_AUTOMAKE): version 1.12.64013. Output sizes using a format that's more compatible with traditional tar (and with GNU Emacs). * src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT): Don't subtract 1 from size. * src/create.c (to_oct): Prepend leading zeros, not spaces. Output a trailing NUL unless the value won't fit without it. (finish_header): No need to append NUL to chksum, now that to_oct is doing it. 1999-06-16 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012. * src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since @INTLLIBS@ might invoke rpl_realloc. * src/tar.c (backup_type): Remove decl; backupfile.h now has it. (intconv): Remove; use xstrto* fns instead. ("xstrtol.h"): Include. (check_decimal): Remove. (long_options, usage, OPTION_STRING, decode_options): Remove -y, --bzip2, --unbzip2. (decode_options): Use xget_version instead of get_version. Check for overflow with -b and -L and RECORD_SIZE_OPTION. Replace invocations of check_decimal with xstrtoumax. * tests/preset.in (echo_n, echo_c): Remove. * tests/after: Don't rely on $echo_c and $echo_n. * lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h, lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c, m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4, m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4, m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4, m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4: New files. * configure.in(fp_PROG_ECHO): Remove; no longer needed. (AC_SYS_LARGEFILE): Renamed from AC_LFS. (jm_AC_HEADER_INTTYPES_H): Replaces inline code. (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add. (AC_CHECK_FUNCS): Remove lchown. (AC_REPLACE_FUNCS): Remove basename, dirname. Add lchown, strtol, strtoul. (jm_FUNC_MKTIME): Add. (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS are also built via the ANSI2KNR-filtering rules. Use a no-op line to work around bug in automake 1.4 with malloc and realloc. (AC_OUTPUT): Add m4/Makefile. * lib/Makefile.am (EXTRA_DIST): Add lchown.c, malloc.c, mktime.c, realloc.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c. (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h. (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c, xstrtoul.c, xstrtoumax.c. Remove getversion.c. ($(srcdir)/getdate.c:): Remove `expect conflicts' line. * src/system.h (uintmax_t): Don't declare; configure now does this. * src/common.h (backup_type): New decl. * src/common.h, src/misc.c, src/tar.c: Move include of backupfile.h to common.h. * src/misc.c (maybe_backup_file): Pass backup_type to find_backup_file_name. * src/list.c (print_header): Change sizes of uform and gform from 11 to UINTMAX_STRSIZE_BOUND. * doc/tar.texi: Remove --bzip2. Fix @xref typos reported by latest makeinfo. * Makefile.am (ACLOCAL_AMFLAGS): New macro. (SUBDIRS): Add m4. (M4DIR, ACINCLUDE_INPUTS): New macros. ($(srcdir)/acinclude.m4): New rule. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs; now generated automatically by autoconf. 1999-05-15 Paul Eggert * doc/tar.texi: Remove -y. 1999-04-09 Paul Eggert * src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo (we were allocating too much storage). (uintmax_t): Don't declare; configure now does this. * ABOUT-NLS: Update to gettext 0.10.35 edition. 1999-03-22 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010 * acinclude.m4 (AC_LFS_FLAGS): Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default. (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS. (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros. * configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros; needed for latest GNU xmalloc.c. * Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h. (libtar_a_SOURCES): Add quotearg.c. * list.c: Include . (from_oct): Add forward decl. (read_header): Return HEADER_FAILURE if we can't parse the checksum. (from_oct): Report an error only if TYPE is nonzero. Quote any funny characters in bad header. 1999-03-20 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009 * acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later. (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers changed. (AC_LFS): Simplify AIX revision number test. 1999-03-17 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008 * configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE): Remove; it doesn't work that well with AC_CANONICAL_HOST. (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc. * Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES. * Makefile.am (EXTRA_DIST): Remove gmalloc.c. * acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove. * tar.texi: Fix bug-report addr. * README: Remove --with-included-malloc. Upgrade version numbers of build software. 1999-03-07 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007. * acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1, where bindtextdomain and gettext require -lintl. (AC_LFS_FLAGS): Simplify so that it only gets the flags; `no' means it failed. (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros. (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need to add anything to the command line (it's all in config.h). Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS. 1999-03-01 Paul Eggert * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006. * acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2. * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct, off_from_oct, size_from_oct, time_from_oct, uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros like OFF_MAX, which are not reliable (e.g. OFF_MAX in AIX 4.2 is incorrect). * src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX, SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used. * src/incremen.c (get_directory_contents): Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2. Have statx depend on STX_HIDDEN, not AIX. * src/create.c (to_oct): New parameter substitute, giving a substitute value to use when the original value is out of range. Do not append a space to the output; modern tars don't. When a value is out of range, specify the maximum value, not the number of bits. (GID_NOBODY, UID_NOBODY): New macros. (gid_to_oct, uid_to_oct): Use them as substitutes. (finish_header): Do not assume that UINTMAX_TO_OCT appends a space. (dump_file): Check whether the file changed as we read it. * src/rmt.c (main): Remove suspicious AIX/386 code. 1999-02-19 Paul Eggert * intl/localealias.c (read_alias_file): Don't assume that memcpy returns a type compatible with char *; it doesn't on SunOS 4.1.4 with Sun cc, since doesn't declare memcpy. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005. * src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2. * doc/tar.texi: Add --bzip2, --unbzip2 options. * configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE): Add. (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this. (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this. * acinclude.m4 (AM_WITH_NLS): Update to latest gettext version (serial 5). (AC_LFS_FLAGS): New macro (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of working only with unset variables. Append to CFLAGS, not CPPFLAGS. Work properly in cross-compilation scenario, by checking for getconf with AC_CHECK_TOOL and by ditching uname in favor of AC_CANONICAL_HOST and $host_os. Add --disable-lfs option. * lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch: replace FORCE_ALLOCA_H with HAVE_ALLOCA_H. * lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr, since getdate.y now uses ANSI code. * config.guess, config.sub: New files; taken from automake 1.4. * intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/gettext.h, intl/gettextP.h, intl/hash-string.h, intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h, intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c: Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109. 1999-02-01 Paul Eggert * src/tar.c: Update copyright. * NEWS: 1.12.64004 1999-02-01 Paul Eggert * NEWS, configure.in: Version 1.12.64004 * configure.in (AC_LFS): Use this macro, instead of open-coding it. * acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros. * src/extract.c (extract_archive): Fix bug when extracting sparse files: they were trashing the tar file header. * src/tar.c: (long_options, usage, OPTION_STRING, decode_options): Add -y or --bzip2 or --bunzip2 option. 1999-01-30 Paul Eggert * src/names.c (cached_no_such_uname, cached_no_such_gname, cached_no_such_uid, cached_no_such_gid): New vars. (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid): Cache failures, too. * src/tar.c (decode_options): Don't pass names longer than UNAME_FIELD_SIZE to uname_to_uid, as it messes up the cache. Similarly for gname_to_uid. 1999-01-27 Paul Eggert * NEWS, configure.in: Version 1.12.64003 * src/buffer.c (backspace_output, close_archive): Cast rmtlseek position arg to off_t, for benefit of K&R compilers with long long. * src/compare.c (verify_volume): Likewise. * NEWS, configure.in: Version 1.12.64002 * src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct, size_to_oct, time_to_oct, uid_to_oct): Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long. * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct, off_from_oct, size_from_oct, time_from_oct, uid_from_oct): Likewise. 1999-01-25 Paul Eggert * incremen.sh: Fix timing bug in regression test. 1999-01-22 Paul Eggert * NEWS, configure.in: Update version * Makefile.am (localedir): Change to $(datadir)/locale. (DEFS): New macro, defining LOCALEDIR. (tar.o, tar._o, rmt.o, rmt._o): Remove. (INCLUDES): Add -I.. * Makefile.am (localedir): Change to $(datadir)/locale. 1999-01-21 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.64001. * tests/Makefile.am (localedir): Change to $(datadir)/locale. * src/Makefile.am (localedir): Likewise. (DEFS): New macro, defining LOCALEDIR. (tar.o, tar._o, rmt.o, rmt._o): Remove. (INCLUDES): Add `-I..'. * tests/incremen.sh: Fix timing bug. 1999-01-20 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.64000. `lfs.7' changed to `64000' in version number to conform to gnits standards. * COPYING, INSTALL, doc/texinfo.tex, install-sh, missing, mkinstalldirs, ansi2knr.c: Update to latest public versions. Rebuild with automake 1.4 and autoconf 2.13, to work around some porting problems. 1998-12-07 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.lfs.6. * src/list.c (read_header): Accept file names as specified by POSIX.1-1996 section 10.1.1. 1998-11-30 Paul Eggert * configure.in: Quote the output of uname. * src/extract.c (set_stat): chmod after chown even when not root; if we are using --same-owner this is needed e.g. on Solaris 2.5.1. 1998-11-15 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.lfs.5. * configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS, ac_getconfs, ac_result): Special case for HP-UX 10.20 or later. 1998-10-28 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.lfs.4. * src/system.h (voidstar): Use void * if __STDC__ is defined, not merely nonzero. * src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC. On many installations, rexec is disabled. 1998-08-07 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.lfs.3. * src/names.c (uid_to_uname, gid_to_gname): Don't used cached name for nameless users and groups. 1998-02-17 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.lfs.2. * NEWS, README: Add explanation of why this isn't an official version. 1998-02-02 Paul Eggert * NEWS, README, configure.in: Unofficial version 1.12.lfs.1. This is an unofficial version. 1997-11-19 Paul Eggert * configure.in (HAVE_INTTYPES_H): Don't ignore cache variable if it's already set. 1997-10-30 Paul Eggert * configure.in (CPPFLAGS, LDFLAGS, LIBS): Set to appropriate values if large file support needs explicit enabling. (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t, ssize_t): New macros to configure. (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add. * acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, major_t, minor_t, ssize_t): New macros. 1997-04-25 François Pinard * Release 1.12. * configure.in: Check for the inline keyword. 1997-04-24 François Pinard * Makefile.am (BABYL): Delete admin/RMAIL, renamed rmail/announce. * PORTS: New file. (EXTRA_DIST): Adjusted. 1997-04-23 François Pinard * BI-PATCHES: Patches for Bison 1.25. * Makefile.am (EXTRA_DIST): Adjusted. * configure.in (AC_PROG_INSTALL): Call deleted. AM_INIT_AUTOMAKE takes care of this already. 1997-04-22 François Pinard * Prerelease 1.11q. * configure.in: Use gethostent instead of gethostbyname while checking for -lnsl. It seems SINIX systems require this. Reported by Bruno Haible. 1997-04-19 François Pinard * acinclude.m4: New fp_WITH_INCLUDED_MALLOC macro. * configure.in: Use it instead of the HP/UX test for GNU malloc. Reported by Bruno Haible. 1997-04-17 François Pinard * Prerelease 1.11p. * acinclude.m4 (cl_FUNC_GMALLOC): New macro, yet still unused, as it requires config.guess. I have to think more about this. Reported by Bruno Haible. 1997-04-16 François Pinard * AC-PATCHES: Patches for Autoconf 2.12. * AM-PATCHES: Patches for Automake 1.1n. * Makefile.am (EXTRA_DIST): Adjusted. 1997-04-15 François Pinard * configure.in: Ensure all cpp directives are left justified. Reported by Kaveh R. Ghazi. 1997-04-12 François Pinard * configure.in: Add fnmatch.o to LIBOBJS if AC_FUNC_FNMATCH says no working copy was found. This is not done automatically. Reported by Bruno Haible, Bryant Fujimoto, John David Anglin, Kaveh R. Ghazi, Laurent Caillat-Vallet, Sakai Kiyotaka and Santiago Vila Doncel. 1997-04-11 François Pinard * configure.in: Much simplify the -lsocket and -lnsl tests. Reported by Larry Schwimmer. 1997-04-11 François Pinard * Prerelease 1.11o. * configure.in: Do not check for gettimeofday anymore. * configure.in: Do not anymore blindly add -lnsl if gethostname is found, nor -lsocket if setsockopt is found. Instead, for resolving setsockopt, try none, -lsocket, and -lsocket -lnsl, in that order. For resoving gethostbyname, try none, than -lnsl. Reported by Ariel Faigon, Heiko Schlichting, Jean-Philippe Martin-Flatin, John J. Szetela, John R. Vanderpool, Kaveh R. Ghazi, Larry Schwimmer, Marcus Daniels, Mark Bynum and Russell Cattelan. 1997-04-10 François Pinard * configure.in: Define _GNU_SOURCE to get FNM_LEADIR_DIR, etc. * acconfig.h: Document _GNU_SOURCE. Reported by Andreas Jaeger, Becki Kain, Brendan Kehoe, David N. Brown, J. Dean Brock, James V. DI Toro III, Jeffrey Mark Siskind, Jürgen Reiss, Paul Eggert, Roland McGrath, Rolf Niepraschk, Roman Gollent, Thomas Bushnell n/BSG and Ulrich Drepper. 1997-03-26 François Pinard * configure.in (ALL_LINGUAS): Add it. 1997-03-20 François Pinard * configure.in: Require Autoconf 2.12. 1997-02-25 François Pinard * configure.in: Use AM_CONFIG_HEADER and AM_GNU_GETTEXT instead of AC_CONFIG_HEADER and ud_GNU_GETTEXT. Use AC_FUNC_FNMATCH instead of AM_FUNC_FNMATCH. Do not take care anymore of stamp-h in AC_OUTPUT, leave it to Automake. * acinclude.m4: Replaced whole, from elsewhere. * Makefile.am (EXTRA_DIST): Leave README-alpha to Automake. 1997-02-12 François Pinard * configure.in: Delete README-alpha code, Automake handles it now. 1996-11-18 François Pinard * Prerelease 1.11.14. * Makefile.am (BABYL): Add admin/RMAIL. * configure.in: Check for sys/buf.h, as BSD/OS. Reported by Dan Reish. 1996-11-09 François Pinard * configure.in: Replace a missing basename. Reported by Bryant Fujimoto, Erick Branderhorst, Greg Black, John David Anglin, John J. Szetela, Kaveh R. Ghazi, Kurt Jaeger, Marcus Daniels, Santiago Vila Doncel and William Bader. 1996-11-08 François Pinard * Prerelease 1.11.13. * configure.in: Replace a missing dirname. 1996-10-07 François Pinard * configure.in: Clean out some macro calls made useless since AM_INIT_AUTOMAKE implies them. 1996-09-20 François Pinard * configure.in: Do not check anymore for regex. 1996-09-19 François Pinard * Prerelease 1.11.12 * configure.in: Check echo for newline suppression. 1996-09-18 François Pinard * configure.in: Do not add open3.o to LIBOBJS anymore. 1996-09-05 François Pinard * configure.in (ALL_LINGUAS): Add pl. 1996-09-04 François Pinard * configure.in (AC_OUTPUT): Prepare tests/Makefile and tests/preset. * Use AM_ version of fp_ macros. * Makefile.am (SUBDIRS): Add tests/. 1996-07-18 François Pinard * Prerelease 1.11.11. * configure.in: Use AC_PREREQ(2.10). 1996-07-16 François Pinard * configure.in (ALL_LINGUAS): Add nl. Reported by Erick Branderhorst. 1996-07-12 François Pinard * Prerelease 1.11.10. * configure.in (ALL_LINGUAS): Add ko and sl. 1996-05-01 François Pinard * configure.in: Check for fsync, and linux/fd.h. Reported by Marty Leisner. 1996-04-17 François Pinard * Makefile.am (EXTRA_DIST): New name for DIST_OTHERS. * configure.in (ALL_LINGUAS): Add no. * Makefile.am (BABYL): Consider rmail/* instead of rmail/*/*. 1996-02-28 François Pinard * configure.in: Avoid PROGRAMS, instead use RMT to substitute rmt. * Makefile.am (SUBDIRS): Use intl and po instead of @INTLSUB@ and @POSUB@. * configure.in: Check for poll.h and stropts.h. Check for nap, napms, poll, select and usleep. 1996-02-12 François Pinard * Makefile.am: Remove CONFIG_HEADER, not required by Automake 0.29. * configure.in: Temporarily remove a \ in AC_OUTPUT for automake. 1996-02-03 François Pinard * configure.in: Check size of unsigned long (assume 32 bits if cross-compiling) and long long (assume not available). 1996-01-14 François Pinard * Makefile.am (AUTOMAKE_OPTIONS): Select gnits and dist-shar. (dist-zoo): New goal, experimental for now. 1996-01-07 François Pinard * Makefile.am: Force distribution of BACKLOG. Reported by Jonathan Thornburg. * Makefile.am: Declare BABYL. Force distribution of AUTHORS and rebox.el. Add id, ID and dist-shar targets. Add parts of previous Makefile.in as FIXME comments. 1995-12-30 François Pinard * configure.in: Ensure there is a link for libintl.h. Reported by Daniel S. Barclay, Göran Uddeborg, Jonathan Thornburg, Ken Raeburn and Minh Tran-Le. 1995-12-29 François Pinard * Prerelease 1.11.9. * Makefile.am: New file. * configure.in: Decide if README-alpha should be distributed. From Ulrich Drepper. 1995-12-28 François Pinard * configure.in (AC_OUTPUT): Call sed for po/Makefile.in. * Makefile.in: Distribute ABOUT-NLS rather than NLS, and do not distribute config.guess or config.sub anymore. * configure.in: Test for lchown. 1995-12-19 François Pinard * configure.in: Prefer avoiding union wait, and use it only if using int fails. This turns around the previous test, as directly checking for union wait is seemingly seeking for trouble. Reported by Alan Bawden, Chris Arthur, Coranth Gryphon, Jean-Philippe Martin-Flatin, Robert Bernstein and Tarang Kumar Patel. * configure.in: Check for strerror, so lib/error.c will not try to define sys_errlist in the case strerror is already provided. Reported by Coranth Gryphon, Chris Arthur, David J. MacKenzie, Erich Stefan Boleyn, Greg Black, Jason R. Mastaler, Michael Innis Bushnell, Robert Bernstein, Santiago Vila Doncel, Skip Montanaro and Thomas Krebs. * configure.in: Quote the selected shell. I wonder why this error did not show up before! * configure.in: Check and for BSDi. Reported by Chris Arthur and Skip Montanaro. 1995-12-17 François Pinard * configure.in: Be more systematic at caching test results. Reported by Ulrich Drepper. * configure.in: While checking for remote tape header files, only include if it was found to exist. * configure.in: Prefer #if to #ifdef while checking for open3. 1995-11-30 François Pinard * configure.in: Check for net/errno.h and sys/inet.h, trying to get EOPNOTSUPP defined. * configure.in: Check for sgtty.h. 1995-11-06 François Pinard * acconfig.h: Document HAVE_STPCPY for the time being. I do not understand yet why this is mandatory: it should be automatic from AC_CHECK_FUNCS(stpcpy) in aclocal.m4, through autoheader. * configure.in: Use fp_FUNC_FNMATCH, to get around non-working versions on SCO Unix 3.2v4.2, and Solaris. Reported by Chad Hurwitz, Dennis Pixton, Per Foreby, Richard Westerik, Robert Weiner and Tom Tromey. 1995-10-27 François Pinard * configure.in: Add /usr/bin/rcmd as a possible remote shell, as this is the name used by SCO Unix 3.2.4. Reported by Bela Lubkin and Rodney Brown. 1995-07-23 François Pinard * configure.in: Adapt for GNU gettext 0.8. 1995-07-10 François Pinard * Makefile.in (default): Define to all. 1995-06-18 François Pinard * configure.in: For mknod, also include prior to , as Ultrix needs this. Reported by Bruce Jerrick, Bryant Fujimoto, Conrad Hughes, Erich Stefan Boleyn, Jason R. Mastaler, Joshua R. Poulson, Jurgen Botz, Serge Granik, Simon Wright, Ulrich Drepper and Vince Del Vecchio. * configure.in: Replace execlp as needed (for Minix, mainly). * configure.in: Force compilation of lib/open3.c if required. Clean out old NO_OPEN3 code. 1995-06-17 François Pinard * Release 1.11.8. * Makefile.in (DISTFILES): Distribute config.guess and config.sub. Reported by Ulrich Drepper. * acconfig.h, aclocal.m4, configure.in: Last minutes additions, and glimpses to the future gettext 0.6.1. Reported by Ulrich Drepper. * acconfig.h: Document HAVE_MKNOD. * configure.in: Test for mknod only once included. Reported by Alan Modra, Ray Dassen and Ulrich Drepper. * aclocal.m4: Test for re_rx_search instead of rx_compile, the latter not being exported unless RX_WANT_RX_DEFS is defined. Reported by Alan Modra. 1995-06-15 François Pinard * Makefile.in (dist): Do not hide copying rule. * configure.in: Adjustments to NLS, so .sed scripts may now all reside in intl/. 1995-06-13 François Pinard * Makefile.in (pot): New goal, triggering po/tar.pot. 1995-06-07 François Pinard * configure.in: Substitute POTFILES by contents of po/POTFILES. * configure.in: More adjustments for GNU gettext 0.6. * config.guess, config.sub: New files, all taken from gettext 0.6. 1995-06-04 François Pinard * Makefile.in (check): New goal. 1995-05-30 François Pinard * Makefile.in (DISTFILES): Do not distribute SUPPORT, now integrated in the documentation. Reported by Karl Berry. 1995-05-28 François Pinard * configure.in: Check for isascii, not iascii. Reported by Alan Modra, Bruno Haible and Greg McGary. 1995-05-16 François Pinard * Prerelease 1.11.7. * Makefile.in (DISTFILES): Distribute NLS. * configure.in, acconfig.h: Many adjustments for GNU gettext. 1995-05-09 François Pinard * configure.in: Clean glocale out. * Makefile.in (SUBDIRS): Add po. * Makefile.in (pofile): New goal. 1995-05-08 François Pinard * configure.in: Call ud_WITH_NLS, create intl/Makefile.in. Compute size of unsigned short and unsigned int. * acconfig.h: Document ENABLE_NLS, HAVE_CATGETS and HAVE_GETTEXT. * Makefile.in: Process intl subdirectory. * configure.in (LINGUAS): Add pt. * src/pt.po: New file, for Portuguese. Reported by Antonio Jose Coutinho. 1995-03-19 François Pinard * configure.in: Remove GLOCALE, add LINGUAS, use fp_WITH_CATALOGS. * acconfig.h: Add description for WITH_CATALOGS. 1995-02-22 François Pinard * configure.in, Makefile.in: Replace `date' by `echo timestamp'. 1995-02-19 François Pinard * Makefile.in: Support ID files. Do not distribute TAGS. 1995-02-05 François Pinard * Makefile.in (maintainer-clean): New name for realclean. 1995-01-02 François Pinard * configure.in: Check for . Reported by Joseph E. Sacco. 1995-01-01 François Pinard * Makefile.in (DISTFILES): Distribute SUPPORT, with *pre*-releases. 1994-12-18 François Pinard * configure.in: Check for isascii. Reported by Bruno Haible. 1994-12-11 François Pinard * configure.in: Use fp_WITH_REGEX. * acconfig.h: Document WITH_REGEX. 1994-12-10 François Pinard * src/de.tt: New file, for German. Reported by Ulrich Drepper. 1994-12-03 François Pinard * Prerelease 1.11.6. * configure.in: Localize, adapting from how it is done in sharutils. * src/fr.tt: New file, for French. * configure.in, {,*/}Makefile.in, acconfig.h: Rename PRODUCT to PACKAGE. 1994-11-26 François Pinard * configure.in: Check for and . 1994-11-02 François Pinard * configure.in: Check for const only after having found possible ANSIfying compiler flags, this is of no use to check it before. 1994-11-01 François Pinard * {,*/}Makefile.in: Clean up, following those of GNU m4. I will not detail all the changes here. * configure.in: Likewise. * acconfig.h: Document PRODUCT and VERSION. 1994-10-04 François Pinard * configure.in: Correct shell assignment for ac_cv_path_RSH. Reported by Kaveh R. Ghazi. 1994-09-14 François Pinard * Makefile.in: Cleanup... Use subshells for all cd's. (MDEFINES): Do not use $(INSTALL...), because ./install-sh will not be relocated correctly. (DISTFILES): Distribute install-sh, not install.sh. (tags): Make only in lib and src. (TAGS): Deleted. (distclean, realclean): Remove config.status. (distclean-local): Don't. (*-recursive): Combine, use sed to strip -recursive in subgoals. (Makefile): Have ./config.status create this Makefile only. (stamp-h): Have ./config.status create config.h only. Do not create stamp-h here, it is now done from configure. (stamp-h.in): Use date instead of touch. * configure.in (AC_OUTPUT): Create stamp-h. 1994-09-09 François Pinard * configure.in: Use fp_ macros for accessing aclocal.m4. Revert _OS_ macros to their previous names, to follow Autoconf. 1994-09-08 François Pinard * configure.in: Delete AC_OS_XENIX, now within AC_HEADER_DIRENT. 1994-09-01 François Pinard * configure.in (PROGS): Warn if $DEFAULT_ARCHIVE was specified, while not being found on the current system. Reported by Robert Bernstein. 1994-08-31 François Pinard * Makefile.in: Distribute it. * Makefile.in (distclean-local): Delete config.log. 1994-08-27 François Pinard * acconfig.h: Document HAVE_UNION_WAIT, no more in Autoconf. 1994-08-24 François Pinard * configure.in: Replace AC_SYS_REMOTE_TAPE by its definition, distillating it around. It is going out of Autoconf. Do not backslash quotes anymore while defining unquoted, this is now corrected in Autoconf. 1994-08-23 François Pinard * configure.in: Do not define RTAPELIB nor HAVE_RTAPELIB. 1994-08-22 François Pinard Little cleanup in installation: * configure.in: Do not check for wait3, this function is not used. * Makefile.in: Remove useless RSH substitutions. * configure.in: Use `-g -O' instead of `-g' as CFLAGS default value, when GNU C is being used. Delay testing for presets. Reported by Chris Arthur. 1994-08-21 François Pinard * Prerelease 1.11.5. * Makefile.in (BACKLOG, dist, shar): Correct for when a different build directory. * configure.in: Check for union wait. Adapted from make 3.71. * configure.in: Replace both mkdir and rmdir, not just mkdir, because NS32016 running SysVr2.2 has mkdir and lacks rmdir. Reported by Greg Black. * configure.in: Do not try anymore to discover the archive device by looking around for various device names. If the installer does not override it, nicely use `-' as a convenient default. Reported by Andreas Schwab and Kaveh R. Ghazi. 1994-08-20 François Pinard * configure.in: Correct a checking message. Reported by Bruno Haible. 1994-08-17 François Pinard * configure.in: Replace AC_PROG_RSH with its expansion. Correct the no/true confusion in tests. Do not substitute RSH anymore in src/Makefile, instead define REMOTE_SHELL in config.h. Replace NO_REMOTE by HAVE_RTAPELIB, with inverted meaning. Substitute RTAPELIB by $Urtapelib.o instead of rtapelib.o. * acconfig.h: Document HAVE_RTAPELIB and REMOTE_SHELL. Reported by Andreas Schwab. * configure.in: Checking for remote shell, use the RSH environment variable if set. This is done only when not already in the cache. Reported by Kaveh R. Ghazi. * configure.in: Include when testing . Reported by Andreas Schwab. * configure.in: Also create doc/Makefile. * Makefile.in: Add doc in subdirs, set infodir, update MDEFINES. 1994-08-16 François Pinard * configure.in: Undo the `test -b' patch of 1994-08-05. Ultrix 4.2 test does not know about -b. Grrr... Reported by Kaveh R. Ghazi. * configure.in: Check for , HAVE_SYS_GENTAPE_H is tested in rmt.c. Check for , to avoid playing with M_UNIX anymore in rmt.c. Reported by Daniel R. Guilderson and Kaveh R. Ghazi. * configure.in: Use proper function names in AC_CHECK_LIB's. Reported by Alexander Dupuy and Kurt Jaeger. * configure.in: Use $LIBOBJS, not LIBOJBS, while adding to it. Reported by Demizu Noritoshi and Kaveh R. Ghazi. 1994-08-15 François Pinard * Prerelease 1.11.4. 1994-08-14 François Pinard * configure.in: Decide MTIO_CHECK_FIELD by grepping . * acconfig.h: Document it. Reported by Ben A. Mesander. * Makefile.in: Substitute CC, INSTALL, INSTALL_PROGRAM, INSTALL_DATA, RSH, CFLAGS, LDFLAGS, LIBS, prefix, exec_prefix, binprefix, bindir and libexecdir. (MDEFINES): New, using the previous substitutions. (all, install, uninstall): Use it. Reported by Bruno Haible. 1994-08-13 François Pinard * configure.in: Check for . 1994-08-11 François Pinard * configure.in: For , also ensure struct utimbuf is defined by the header file before defining HAVE_UTIME_H. Some systems will not define the structure without _POSIX_SOURCE. * acconfig.h: Document HAVE_UTIME_H. Reported by James W. McKelvey and Robert E. Brown. * configure.in: Instead of replacing strstr, check for it, so HAVE_STRSTR gets defined, then replace it explicitely if required. 1994-08-09 François Pinard * configure.in: Updated for Autoconf 2.0. 1994-08-08 François Pinard * configure.in: Replace memset, mkdir (and rmdir), rename, strstr, ftruncate, when not found. Reported by Kaveh R. Ghazi (for memset and strstr). Reported by Bruno Haible (for mkdir and rename). 1994-08-05 François Pinard * configure.in: Remove padding test. * acconfig.h: Remove PADDING_IN_TAR_HEADER. Reported by Bruno Haible. * configure.in: While defining DEFAULT_ARCHIVE, check for a block device, instead of mere existence. But is `test -b' portable? Test for /dev/fd0, instead of for /dev/fd. Put rct tests last. Reported by Andreas Schwab. * configure.in: Define uid_t and gid_t if necessary. Reported by Jonathan I. Kamens. * Makefile.in (distclean-local): Delete config.cache. Reported by Thomas Koenig. * configure.in: Change malloc_dbg to dmalloc, mutatis mutandi. * acconfig.h: According changes. * configure.in: Test for broken stat macros, and for mkfifo. * configure.in: Check for ST_BLKSIZE and ST_BLOCKS. 1994-08-02 François Pinard * Prerelease 1.11.3. * Makefile.in (dist, shar): Distribute the scripts directory. 1994-08-01 François Pinard * configure.in: Check for . 1994-07-30 François Pinard * configure.in: When --with-malloc-dbg, define WITH_MALLOC_DBG and add -lmalloc_dbg to LIBS. * acconfig.h: Document WITH_MALLOC_DBG. * configure.in: Try deciding DEVICE_PREFIX and DENSITY_LETTER from the selected DEFAULT_ARCHIVE. * acconfig.h: Document DEVICE_PREFIX and DENSITY_LETTER. Reported by Danny R. Johnston. 1994-07-29 François Pinard * aclocal.m4: Adapt AC_PROTOTYPES to caching. * Using configure as generated by a more recent Autoconf solves a problem of rename being rejected on HP-UX in ANSI mode, because of a conflicting prototype from . In this context, Autoconf now uses ctype.c instead for defining __stub macros. Reported by Alan Modra, Burkhard Plache, Edward Welbourne, Henrik Bakman, Jeffrey Goldberg, Jim Farrell, Kimmy Posey, Michael Maass, Mike Nolan, Richard Lloyd, Robert McGraw, Robert W. Kim, Stefan Skoglund, Tarang Kumar Patel, Tilman Schmidt, Tim Ramsey, Van Snyder and W. Phillip Moore. 1994-07-26 François Pinard * configure.in: Check for . Do not define BSD42, do not look anymore if /vmunix, /sdmach or /../../mach exist. * acconfig.h: Remove BSD42. 1994-07-24 François Pinard * configure.in: Add gmalloc.o to LIBOBJS, instead of AC_SUBST'ing MALLOC. Check for valloc only if gmalloc.o is not being selected. valloc was possibly defined both in "port.h" and GNU malloc. * acconfig.h: Add a description for HAVE_VALLOC. J.T. Conklin, Nelson H.F. Beebe and Tilman Schmidt. 1994-07-22 François Pinard * configure.in: Use provided fnmatch only as a replacement. * configure.in: Check for , needed for defining _IOW and _IOR on the Tektronix XD88. Reported by Kaveh R. Ghazi. 1994-07-20 François Pinard * Makefile.in (BACKLOG): New goal, for summarizing the maintainance backlog. Distribute file BACKLOG. 1994-07-08 François Pinard * regex.c, regex.h: Use newer versions. This solves a few problems reported by users. Reported by Chris Hopps and John David Anglin. 1994-07-06 François Pinard * configure.in: Check for . 1994-07-05 François Pinard * configure.in: Substitute DEFAULT_ARCHIVE and DEFAULT_BLOCKING from the environment. Check for /dev/tape first while trying to decide the default archive, because it is often symlinked right. * acconfig.h: Explain DEFAULT_ARCHIVE and DEFAULT_BLOCKING. * configure.in: Use AC_SET_MAKE. * Makefile.in: Use @SET_MAKE@. Reported by Jim Meyering. * configure.in: Integrate the check, previously in testpad.c, about a needed padding field in the tar header struct. * acconfig.h: Explain PADDING_IN_TAR_HEADER. 1994-07-02 François Pinard * configure.in: Check for -linet, this library is required on a few systems for gettimeofday() or getservbyname(). Also, on ISC 4.0, this avoids a broken version of rename(). Reported by Dean Gaudet, Goeran Uddeborg, Mike Rogers and Peder Chr. Norgaard. * configure.in: Ensure -lsocket is tested after -lnsl. This is required in particular for SINIX-Z, an SVR4.0 system. Reported by Manfred Weichel and Mark Frost. * configure.in: All tests reordered for clarity. 1994-07-01 François Pinard * configure.in: Use AC_TIME_WITH_SYS_TIME, test for . This should solve the problem of multiple inclusions of . Also, also check for , for getdate.y tests this. Reported by Jim Meyering, John Rouillard, Karl Berry and Rick Emerson. 1994-06-30 François Pinard * configure.in: AC_CONST was already added since 1.11.2, but no ChangeLog entry for it, so here is one, with list of reporters. * AIX 3.2 RS/6000 IBM's compiler was unable to compile regex.c, this might be solved already through improved Autoconf tests. Reported by Alexey Vovenko, Ben A. Mesander, Bryant Fujimoto, Christian. T. Dum, Christopher Vickery, Dan Bloch, David K. Drum, David Lemson, Demizu Noritoshi, Dimitris Fousekis, Ezra Peisach, Hugh Secker-Walker, Indra Singhal, J.T. Conklin, Jan Hoeglund, Janice Burton, Jeff Siegel, Jim Blandy, John L. Chmielewski, John Rouillard, Jonathan N. Sherman, Kevin D Quitt, Kurt Jaeger, Mark Frost, Matthew Braun, Michael Kubik, Michael Helm, Moritz D. Klingholz, Neil Jerram, Nelson H.F. Beebe, Nick Barron, Paul Eggert, R. Scott Butler, Rob Parry, Ron Guilmette, Scott Grosch, Sherwood and Stephen Saroff. * Makefile.in: Completely replaced, lurking at the previous one. At the same time, solve a few minor problems reported by users. The most frequently reported ones pertained to a trailing \ in a comment, and rmt installing in /etc. Reported by Dean Gaudet, Gerben Wierda, James W. McKelvey, John L. Chmielewski, Karl Berry, Mike Rogers, Ralf Suckow and Richard Lloyd. * configure.in: Also process lib/Makefile.in and src/Makefile.in. Substitute CFLAGS, LDFLAGS and YFLAGS from the environment. Use AC_CHECKING instead of using echo explicitely. Use AC_HEADER_CHECK(unistd.h) instead of obsolete AC_UNISTD_H. * configure.in: Generate a configuration header file. This not only puts less clutter in make output, but also goes around some compilers' limits about the number of allowed -D options. Reported by Nelson H.F. Beebe. * acconfig.h: New file. * Split distribution into a few subdirectories, for easing maintainance. So far: src, lib, scripts, msdos which are to be distributed; then rmail, texinfo, ARCH and misc to be kept here. * scripts/ChangeLog: Initialized by moving entries related to scripts out of this ChangeLog. * Taking over maintenance duties. tar-1.13/INSTALL0000444000176300016070000001722706353460253006760 Basic Installation ================== These are generic installation instructions. 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'). 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. 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'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== 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: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== 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 `..'. 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. Installation Names ================== 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'. 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. 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. 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'. Optional Features ================= 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. 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. Specifying the System Type ========================== 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: CPU-COMPANY-SYSTEM 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. 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. Sharing Defaults ================ 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. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. tar-1.13/Makefile.am0000444000176300016070000000466406737256156007777 # Main Makefile for GNU tar. # Copyright 1994, 1995, 1996, 1997, 1999 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. AUTOMAKE_OPTIONS = gnits dist-shar BABYL = rmail/* admin/*/RMAIL EXTRA_DIST = PORTS rebox.el ACLOCAL_AMFLAGS = SUBDIRS = doc lib intl m4 src scripts po tests all-local: $(CONFIG_HEADER) id: ID ID: cd lib && $(MAKE) $@ cd src && $(MAKE) $@ # 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 \ $(M4DIR)/inttypes_h.m4 $(M4DIR)/isc-posix.m4 $(M4DIR)/jm-mktime.m4 \ $(M4DIR)/largefile.m4 $(M4DIR)/lcmessage.m4 $(M4DIR)/malloc.m4 \ $(M4DIR)/mktime.m4 $(M4DIR)/progtest.m4 $(M4DIR)/realloc.m4 \ $(M4DIR)/uintmax_t.m4 $(M4DIR)/ulonglong.m4 $(M4DIR)/utimbuf.m4 \ $(M4DIR)/utime.m4 $(M4DIR)/utimes.m4 $(M4DIR)/xstrtoumax.m4 $(srcdir)/acinclude.m4 : $(ACINCLUDE_INPUTS) cat $(ACINCLUDE_INPUTS) >$(srcdir)/acinclude.m4 dist-zoo: $(DISTFILES) rm -rf $(distdir) mkdir $(distdir) distdir=`cd $(distdir) && pwd` \ && cd $(srcdir) \ && automake --include-deps --output-dir=$$distdir @for file in $(DISTFILES); do \ test -f $(distdir)/$$file \ || cp -p $(srcdir)/$$file $(distdir)/$$file; \ done for subdir in $(SUBDIRS); do \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) dist) || exit 1; \ done @sublist="$(DIST_SUBDIRS)"; \ for dir in $$sublist; do \ echo copying directory $$dir; \ tar -chf - $$dir | (cd $(distdir) && tar -xBpf -); \ done chmod -R a+r $(distdir) find $(distdir) -type f | xargs dosfn # find $(distdir) -type f | xargs recode :ibmpc mv $(distdir) $(PACKAGE) find $(PACKAGE) -type f | zoo ahIq $(PACKAGE).zoo rm -rf $(PACKAGE) tar-1.13/Makefile.in0000664000176300016070000003315506740607430007776 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. # Main Makefile for GNU tar. # Copyright 1994, 1995, 1996, 1997, 1999 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ 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 DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ AUTOMAKE_OPTIONS = gnits dist-shar BABYL = rmail/* admin/*/RMAIL EXTRA_DIST = PORTS rebox.el ACLOCAL_AMFLAGS = SUBDIRS = doc lib intl m4 src scripts po tests # 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 $(M4DIR)/inttypes_h.m4 $(M4DIR)/isc-posix.m4 $(M4DIR)/jm-mktime.m4 $(M4DIR)/largefile.m4 $(M4DIR)/lcmessage.m4 $(M4DIR)/malloc.m4 $(M4DIR)/mktime.m4 $(M4DIR)/progtest.m4 $(M4DIR)/realloc.m4 $(M4DIR)/uintmax_t.m4 $(M4DIR)/ulonglong.m4 $(M4DIR)/utimbuf.m4 $(M4DIR)/utime.m4 $(M4DIR)/utimes.m4 $(M4DIR)/xstrtoumax.m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = DIST_COMMON = README ./stamp-h.in ABOUT-NLS AUTHORS BACKLOG COPYING \ ChangeLog INSTALL Makefile.am Makefile.in NEWS THANKS TODO acconfig.h \ acinclude.m4 aclocal.m4 config.guess config.h.in config.sub configure \ configure.in install-sh missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status $(ACLOCAL_M4): configure.in acinclude.m4 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) config.h: stamp-h @if test ! -f $@; then \ rm -f stamp-h; \ $(MAKE) stamp-h; \ else :; fi stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ $(SHELL) ./config.status @echo timestamp > stamp-h 2> /dev/null $(srcdir)/config.h.in: $(srcdir)/stamp-h.in @if test ! -f $@; then \ rm -f $(srcdir)/stamp-h.in; \ $(MAKE) $(srcdir)/stamp-h.in; \ else :; fi $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h cd $(top_srcdir) && $(AUTOHEADER) @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null mostlyclean-hdr: clean-hdr: distclean-hdr: -rm -f config.h maintainer-clean-hdr: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. @SET_MAKE@ all-recursive install-data-recursive install-exec-recursive \ installdirs-recursive install-recursive uninstall-recursive \ check-recursive installcheck-recursive info-recursive dvi-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ rev="$$subdir $$rev"; \ test "$$subdir" = "." && dot_seen=yes; \ done; \ test "$$dot_seen" = "no" && rev=". $$rev"; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist -rm -rf $(distdir) GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz mkdir $(distdir)/=build mkdir $(distdir)/=inst dc_install_base=`cd $(distdir)/=inst && pwd`; \ cd $(distdir)/=build \ && ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) dist -rm -rf $(distdir) @banner="$(distdir).tar.gz is ready for distribution"; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes" dist: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) dist-shar: distdir -chmod -R a+r $(distdir) shar $(distdir) | gzip > $(distdir).shar.gz -rm -rf $(distdir) dist-all: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) shar $(distdir) | gzip > $(distdir).shar.gz -rm -rf $(distdir) distdir: $(DISTFILES) @if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" > /dev/null; then :; else \ echo "NEWS not updated; not releasing" 1>&2; \ exit 1; \ fi -rm -rf $(distdir) mkdir $(distdir) -chmod 777 $(distdir) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done for subdir in $(SUBDIRS); do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ || exit 1; \ fi; \ done info-am: info: info-recursive dvi-am: dvi: dvi-recursive check-am: all-am check: check-recursive installcheck-am: installcheck: installcheck-recursive all-recursive-am: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive install-exec-am: install-exec: install-exec-recursive install-data-am: install-data: install-data-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-recursive uninstall-am: uninstall: uninstall-recursive all-am: Makefile config.h all-local all-redirect: all-recursive-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: installdirs-recursive installdirs-am: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-recursive clean-am: clean-hdr clean-tags clean-generic mostlyclean-am clean: clean-recursive distclean-am: distclean-hdr distclean-tags distclean-generic clean-am distclean: distclean-recursive -rm -f config.status maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \ maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-recursive -rm -f config.status .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ install-data-recursive uninstall-data-recursive install-exec-recursive \ uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ all-recursive check-recursive installcheck-recursive info-recursive \ dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ install-exec-am install-exec install-data-am install-data install-am \ install uninstall-am uninstall all-local all-redirect all-am all \ installdirs-am installdirs mostlyclean-generic distclean-generic \ clean-generic maintainer-clean-generic clean mostlyclean distclean \ maintainer-clean all-local: $(CONFIG_HEADER) id: ID ID: cd lib && $(MAKE) $@ cd src && $(MAKE) $@ $(srcdir)/acinclude.m4 : $(ACINCLUDE_INPUTS) cat $(ACINCLUDE_INPUTS) >$(srcdir)/acinclude.m4 dist-zoo: $(DISTFILES) rm -rf $(distdir) mkdir $(distdir) distdir=`cd $(distdir) && pwd` \ && cd $(srcdir) \ && automake --include-deps --output-dir=$$distdir @for file in $(DISTFILES); do \ test -f $(distdir)/$$file \ || cp -p $(srcdir)/$$file $(distdir)/$$file; \ done for subdir in $(SUBDIRS); do \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) dist) || exit 1; \ done @sublist="$(DIST_SUBDIRS)"; \ for dir in $$sublist; do \ echo copying directory $$dir; \ tar -chf - $$dir | (cd $(distdir) && tar -xBpf -); \ done chmod -R a+r $(distdir) find $(distdir) -type f | xargs dosfn # find $(distdir) -type f | xargs recode :ibmpc mv $(distdir) $(PACKAGE) find $(PACKAGE) -type f | zoo ahIq $(PACKAGE).zoo rm -rf $(PACKAGE) # 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. .NOEXPORT: tar-1.13/NEWS0000444000176300016070000001625406741022146006421 GNU tar NEWS - User visible changes. Copyright 1994, 1995-1998, 1999 Free Software Foundation, Inc. version 1.13 - Paul Eggert, 1999-07-08. * Support for large files, e.g. files larger than 2 GB on many 32-bit hosts. Also, support for larger uids, device ids, etc. * Many bug fixes and porting fixes. * This release is only for fixes. A more ambitious test release, with new features, is available as part of the paxutils. Please see: http://www.iro.umontreal.ca/contrib/paxutils/ The fixes in this release are intended to be merged with paxutils at some point, but they haven't been merged yet. * An interim GNU tar alpha had new --bzip2 and --ending-file options, but they have been removed to maintain compatibility with paxutils. Please try --use=bzip2 instead of --bzip2. Version 1.12 - François Pinard, 1997-04. Sensitive matters * Use shell globbing patterns for --label, instead of regular expressions. * Do not quote anymore internally over the quoting done by the shell. Output for humans * Offer internationalisation capabilities of most recent GNU gettext. * Messages available in many more languages, thanks to all translators! * Usage of ISO 8601 dates in listings, instead of local American dates. * More normalisation and cleanup in error messages. Creation * For helping using tar with find, offer a --no-recursion option. * Implement --numeric-owner for ignoring symbolic names at create time. * New --owner, --group --mode options, still preliminary. * Recognise creating an archive on /dev/null, so Amanda works faster. * Object to the creation of an empty archive (like in `tar cf FILE'). * Barely start implementing --posix and POSIXLY_CORRECT. Extraction * Make a better job at restoring file and directory attributes. * Automatically attempt deleting existing files when in the way. * Option --unlink-first (-U) removes most files prior to extraction. * Option --recursive-unlink removes non-empty directories when in the way. * Option --numeric-owner ignores owner/group names, it uses UID/GID instead. * Use global umask when creating missing intermediate directories. * When symlinks are not available, extract symbolic links as hard links. * Diagnose extraction of contiguous files as regular files. * New --backup, --suffix and --version-control options. Various changes * Better support of huge archives with --tape-length and --totals. * Rename option --read-full-blocks (-B) to --read-full-records (-B). * Rename option --block-size (-b) to --blocking-factor (-b). * Rename option --record-number (-R) to --block-number (-R). * With --block-number (-R), report null blocks and end of file. * Implement --record-size for introducing a size in bytes. * Delete --block-compress option and rather decide it automatically. * Rename option --modification-time to --touch. Many bugs are squashed, while others still run free. Version 1.11.8 - François Pinard, 1995-06. * Messages available in French, German, Portuguese and Swedish. * The distribution provides a rudimentary Texinfo manual. * The device defaults to stdin/stdout, unless overridden by the installer. * Option --sparse (-S) should work on more systems. * Option --rsh-command may select an alternative remote shell program. Most changes are internal, and should yield better portability. Version 1.11.2 - Michael Bushnell, 1993-03. * Changes in backup scripts: cleaned up considerably; notices error conditions better over rsh; DUMP_REMIND_SCRIPT is now an option in backup-specs; new file dump-remind is an example of a DUMP_REMIND_SCRIPT. * Superfluous "Reading dirname" was a bug; fixed. * Incompatibility problems with a bug on Solaris are fixed. * New option --gzip (aliases are --ungzip and -z); calls gzip instead of compress. Also, --use-compress-program lets you specify any compress program. --compress-block is renamed --block-compress and now requires one of the three compression options to be specified. * Several error messages are cleaned up. * Directory owners are now set properly when running as root. * Provide DUMP_REMIND_SCRIPT in backup-specs as a possible option for --info-script. * Behave better with broken rmt servers. * Dump scripts no longer use --atime-preserve; this causes a nasty probem. * Several Makefile cleanups. Version 1.11.1 - Michael Bushnell, 1992-09. * Many bug fixes. Version 1.11 - Michael Bushnell, 1992-09. Version 1.10.16 - 1992-07. Version 1.10.15 - 1992-06. Version 1.10.14 - 1992-05. Version 1.10.13 - 1992-01. * Many bug fixes. * Now uses GNU standard configure, generated by Autoconf. * Long options now use `--'; use of `+' is deprecated and support for it will eventually be removed. * New option --null causes filenames read by -T to be null-terminated, and causes -C to be ignored. * New option --remove-files deletes files (but not directories) after they are added to the archive. * New option --ignore-failed-read prevents read-errors from affecting the exit status. * New option --checkpoint prints occasional messages as the tape is being read or written. * New option --show-omitted-dirs prints the names of directories omitted from the archive. * Some tape drives which use a non-standard method of indicating end-of-tape now work correctly with multi-tape archives. * --volno-file: Read the volume number used in prompting the user (but not in recording volume ID's on the archive) from a file. * When using --multi-volume, you can now give multiple -f arguments; the various tape drives will get used in sequence and then wrap around to the beginning. * Remote archive names no longer have to be in /dev: any file with a `:' is interpreted as remote. If new option --force-local is given, then even archive files with a `:' are considered local. * New option --atime-preserve restores (if possible) atimes to their original values after dumping the file. * No longer does tar confusingly dump "." when you don't tell it what to dump. * When extracting directories, tar now correctly restores their modification and access times. * Longnames support is redone differently--long name info directly precedes the long-named file or link in the archive, so you no longer have to wait for the extract to hit the end of the tape for long names to work. Version 1.10 - Michael Bushnell, 1991-07. * Filename to -G is optional. -C works right. Names +newer and +newer-mtime work right. * -g is now +incremental, -G is now +listed-incremental. * Sparse files now work correctly. * +volume is now called +label. * +exclude now takes a filename argument, and +exclude-from does what +exclude used to do. * Exit status is now correct. * +totals keeps track of total I/O and prints it when tar exits. * When using +label with +extract, the label is now a regexp. * New option +tape-length (-L) does multi-volume handling like BSD dump: you tell tar how big the tape is and it will prompt at that point instead of waiting for a write error. * New backup scripts level-0 and level-1 which might be useful to people. They use a file "backup-specs" for information, and shouldn't need local modification. These are what we use to do all our backups at the FSF. Version 1.09 - Jay Fenlason, 1990-10. Version 1.08 - Jay Fenlason, 1990-01. Versions 1.07 back to 1.00 by Jay Fenlason. * See ChangeLog for more details. tar-1.13/THANKS0000444000176300016070000004312206737250270006635 GNU tar THANKS file Public domain tar was written by John Gilmore, with contributions from Henry Spencer, Fred Fish, Ian Darwin, Geoff Collyer, Stan Barber, Guy Harris, Dave Brower, Richard Todd, Michael Rendell, Stu Heiss and Rich $alz. The FSF version, named GNU `tar', was derived from PDTAR by Jay Fenlason and Joy Kendall, and was maintained in turn by François Pinard and Paul Eggert. Many people further contributed to GNU tar by reporting problems, suggesting various improvements or submitting actual code. Here is a list of these people. Help me keep it complete and exempt of errors. See various ChangeLogs for a detailed description of contributions. Aage Robeck aagero@ifi.uio.no Akiko Matsushita matusita@sra.co.jp Alan Bawden Alan@lcs.mit.edu Alan Cox alan@cymru.net Alan Modra alan@spri.levels.unisa.edu.au Albert W. Dorrington awdorrin@ictest.delcoelect.com Alex Schmidt root@lacesm.ufsm.br Alexander Dupuy dupuy@smarts.com Alexander Lehmann alex@hal.rhein-main.de Alexander V. Lukyanov lav@long.yar.ru Alois Steindl Alois.Steindl+Mechanik@tuwien.ac.at Amos Yahil ayahil@sbast4.ess.sunysb.edu Anders Andersson andersa@docs.uu.se Anders Liljeborg anders@fysik4.kth.se Andre Novaes Cunha Andre.Cunha@br.global-one.net Andreas Degert ad@papyrus.hamburg.com Andreas Haumer andreas@vlsivie.tuwien.ac.at Andreas Jaeger aj@arthur.pfalz.de Andreas Koppenhoefer koppenh@trick.informatik.uni-stuttgart.de Andreas Reuter ar205@bonzo.geowiss.nat.tu-bs.de Andreas Schwab schwab@issan.informatik.uni-dortmund.de Andrew A. Ivanov ivanov@mics.msu.su Andrew J. Schorr schorr@ead.dsa.com Andrew Torda torda@igc.chem.ethz.ch Andrey A. Chernov ache@astral.msk.su Andy Gay andy@rdl.co.uk Antonio Jose Coutinho ajc@di.uminho.pt Ariel Faigon ariel@engr.sgi.com Arne Wichmann aw@math.uni-sb.de Arnold Robbins arnold@gnu.org Art Isbell aisbell@cubicsol.com Axel Boldt boldt@math.ucsb.edu Axel Habermann kiwi@belly.in-berlin.de Bdale Garbee bdale@gag.com Becki Kain beckers@josephus.furph.com Bela Lubkin filbo@armory.com Ben A. Mesander ben@piglet.cr.usgs.gov Benedikt Stockebrand benedikt@devnull.ruhr.de Bennett Todd bet@mordor.com Benny Holmgren benny@hgs.se Bernard Chen bern@cs.ucla.edu Bernard Derval derval@iro.umontreal.ca Bo Nygaard Bai bai@iesd.auc.dk Bob Kaehms kaehms@was.archive.org Bob Mende Pie mende@piecomputer.rutgers.edu Bradley A. Smith basmith@prometheus.chem.umn.edu Brendan Kehoe brendan@cygnus.com Brett Gaines gaines@saifr00.ateng.az.honeywell.com Brian Perkins bperkins@netspace.org Brian R. Smith brian@cygnus.com Bruce Evans bde@runx.oz.au Bruce Jerrick bruce@cse.ogi.edu Bruno Haible haible@ilog.fr Bryant Fujimoto fujimoto@denali.chem.washington.edu Burkhard Plache plache@krusty.optimax.ns.ca Calvin Cliff cliff@trifid.astro.ucla.edu Cameron Elliott cam@mvbms.mvbms.com Carl Streeter streeter@cae.wisc.edu Carsten Heyl heyl@nads.de Cesar Romani romani@ifm.uni-hamburg.de Chad Hurwitz churritz@cts.com Chance Reschke creschke@usra.edu Charles Fu ccwf@klab.caltech.edu Charles Lopes Charles.Lopes@infm.ulst.ac.uk Charles M. Hannum mycroft@gnu.org Chip Salzenberg tct!chip Chris Arthur csa@gnu.org Chris F.M. Verberne verberne@prl.philips.nl Chris G. Demetriou cgd@sun-lamp.cs.berkeley.edu Chris Hopps sycom.mi.org!ro-chp!chopps Chris Metcalf metcalf@catfish.lcs.mit.edu Chris Ransom chris@quests.com Christian Callsen Christian.Callsen@eng.sun.com Christian Kirsch ck@held.mind.de Christian T. Dum ctd@mpe-garching.mpg.de Christian von Roques roques@pond.sub.org Christoph Litauer litauer@mailhost.uni-koblenz.de Christophe Colle colle@krtkg1.rug.ac.be Christopher T. Johnson cjohnson@camelot.com Christopher Vickery vickery@ipc1.cs.qc.edu Claude Scarpelli claude@genethon.fr Claus Heine Claus_Heine@ac2.maus.de Cliff Krumvieda cliff@cs.cornell.edu Clinton Carr clint@netcom.com Conrad Hughes chughes@maths.tcd.ie Constantin Belous const@cris.net Coranth Gryphon gryphon@bur.visidyne.com Dale R. Worley worley@world.std.com Dale Wiles wiles@geordi.calspan.com Dan Bloch dan@transarc.com Dan Reish dreish@izzy.net Daniel Hagerty hag@gnu.org Daniel Quinlan quinlan@pathname.com Daniel R. Guilderson d.guilderson@ma30.bull.com Daniel S. Barclay daniel@compass-da.com Daniel Trinkle trinkle@cs.purdue.edu Danny R. Johnston danny@cs.weber.edu Dave Barr barr@math.psu.edu Dave Gentzel gentzel@nova.enet.dec.com Dave Gregorich dtg@ipac.caltech.edu David J. MacKenzie djm@uunet.uu.net David Johnson David.W.Johnson@colorado.edu David K. Drum ccdavid@mizzou1.missouri.edu David Lawyer david.lawyer@patchbay.com David Lemson lemson@uiuc.edu David Mansfield david@cobite.com David Martin dmartin@lerc.nasa.gov David N. Brown dbrown@lorien.physics.louisville.edu David Nugent davidn@blaze.net.au David Shaw david.shaw@alcatel.com.au David Steiner dsteiner@ispa.uni-osnabrueck.de David Taylor taylor@think.com Dean Gaudet dgaudet@watdragon.uwaterloo.ca Demizu Noritoshi nori-d@is.aist-nara.ac.jp Denis Fortin fortin@acm.org Dennis Pixton dennis@math.binghamton.edu Dick Streefland dicks@tasking.nl Dietmar Braun dietmar@highway.bertelsmann.de Dimitri Bougoulias opus@hol.gr Dimitris Fousekis dfousek@leon.nrcps.ariadne-t.gr Dirk Herr-Hoyman hoymand@gate.net Don Bennett dpb@netcom.com Donald B Gordon dbgordon@gnu.org Donald H. Locker dhl@spuf1d83.lcp.chrysler.com Douglas Scott doug@foxtrot.ccmrc.ucsb.edu Drew Sullivan drew@sni.ca Drew Trieger trieger@woodstock.abbott.com Dunstan Vavasour dev@cegelecproj.co.uk Ed Childs echilds@bgs.com Edgar Taube et@immd8.informatik.uni-erlangen.de Eduardo Kortright eduardo@cs.ua.edu Eduardo V. de Rivas eddie@asterion.com Edward Welbourne eddy@gen.cam.ac.uk Elmar Heeb heeb@itp.ethz.ch Elmer Fittery elmerf@ptw.com Eric Backus ericb@lsid.hp.com Eric Benson eb@amazon.com Eric M. Boehm Eric.M.Boehm@optimumtech.com Eric Norum eric@ee.ualberta.ca Erich Stefan Boleyn erich@uruk.org Erick Branderhorst branderh@debian.iaehv.nl Erik D. Frederick edf@deckard.mc.duke.edu Esa Karell karell@cs.helsinki.fi Ezra Peisach epeisach@mit.edu Fabio d'Alessi cars@civ.bio.unipd.it Frank Koenen koenfr@lidp.com Franz-Werner Gergen gergen@edvulx.mpi-stuttgart.mpg.de François Pinard pinard@iro.umontreal.ca Fritz Elfert fritz@fsun.triltsch.de George Chyu gschyu@ccgate.dp.beckman.com Gerben Wierda gerben@rna.indiv.nluug.nl Gerd Knorr kraxel@cs.tu-berlin.de Giorgio Signorini signo@chim.unifi.it Graham Whitted gbw@sgrail.com Grant McDorman grant@isgtec.com Greg Black gjb@gba.oz.au Greg Chung gchung@caip.rutgers.edu Greg Hudson ghudson@mit.edu Greg Maples greg@clari.net Greg McGary gkm@cstone.net Göran Uddeborg gvran@uddeborg.pp.se Hans Guerth 100664.3101@compuserve.com Harald König koenig@tat.physik.uni-tuebingen.de Harald Milz hm@seneca.ix.de Heiko Schinke mdqac@biochemtech.uni-halle.de Heiko Schlichting heiko@fu-berlin.de Henrik Bakman hb@csd.uu.se Hernan Prieto Schmidt hernan@pea.usp.br Hiroyuki Bessho bsh@grotto.iijnet.or.jp Holger Teutsch holger@hotbso.rhein-main.de Hugh Secker-Walker hugh@ear.mit.edu Hunyue Yau hunyue.yau@picksys.com Ian Jackson ijackson@gnu.org Ian Lance Taylor ian@cygnus.com Ian T. Zimmerman itz@crl.com Indra Singhal indra@synoptics.com J. Dean Brock brock@cs.unca.edu J.J. Bailey jjb@jagware.bcc.com J.T. Conklin jtc@cygnus.com James Crawford Ralston qralston+@pitt.edu James E. Carpenter jimc@zach1.tiac.net James H Caldwell Jr caldwell@cs.fsu.edu James Stevens James.Stevens@jrcs.co.uk James V. DI Toro III karrde@gats.hampton.va.us James W. McKelvey mckelvey@fafnir.com Jamie Zawinski jwz@lucid.com Jan Carlson janc@sni.ca Jan Djarv jan.djarv@mbox200.swipnet.se Janice Burton r06a165@bcc25.kodak.com Janne Snabb snabb@niksula.hut.fi Jason R. Mastaler jason@webmaster.net Jay Fenlason hack@gnu.org Jean-Michel Soenen soenen@lectra.fr Jean-Ph. Martin-Flatin syj@ecmwf.int Jean-loup Gailly jloup@chorus.fr Jeff Moskow jeff@rtr.com Jeff Prothero jsp@betz.biostr.washington.edu Jeff Siegel js@hornet.att.com Jeff Sorensen sorenj@alumni.rpi.edu Jeffrey Goldberg J.Goldberg@cranfield.ac.uk Jeffrey Mark Siskind Qobi@emba.uvm.edu Jeffrey W. Parker jwpkr@mcs.com Jens Henrik Jensen recjhl@mediator.uni-c.dk Jim Blandy jimb@totoro.cs.oberlin.edu Jim Clausing jac@postbox.acs.ohio-state.edu Jim Farrell jwf@platinum.com Jim Meyering meyering@na-net.ornl.gov Jim Murray jjm@jjm.com Joachim Holzfuss Joachim.Holzfuss@iap.physik.th-darmstadt.de Joachim Seelig joachim@kruemel.han.de Joe DeBattista joed@itsa.ucsf.edu Johan Vromans jvromans@squirrel.nl Johannes Helander jvh@cs.hut.fi John Clark jclark@gray.cscwc.pima.edu John D. Sybalsky John_D._Sybalsky.MV@envos.xerox.com John David Anglin dave@hiauly1.hia.nrc.ca John Gilmore gnu@toad.com John J. Szetela johns@angelo.amd.com John L. Chmielewski jlc@attmail.com John Oleynick juo@klinzhai.rutgers.edu John R. Vanderpool fish@daacdev1.stx.com John Rouillard rouilj@cs.umb.edu Jon Lewis jlewis@inorganic5.fdt.net Jonathan I. Kamens jik@cam.ov.com Jonathan N. Sherman sysjns@etacrs1.safb.af.mil Jonathan Thornburg thornbur@theory.physics.ubc.ca Joseph E. Sacco jsacco@ssl.com Joshua R. Poulson jrp@plaza.ds.adp.com Joutsiniemi Tommi Il tj75064@cs.tut.fi Joy Kendall jak8@world.std.com Judy Ricker jricker@gdstech.grumman.com Juha Sarlin juha@tds.kth.se Jurgen Botz jbotz@orixa.mtholyoke.edu Jürgen Lüters jlueters@t-online.de Jürgen Reiss reiss@psychologie.uni-wuerzburg.de Jyh-Shyang Wang erik@vsp.ee.nctu.edu.tw Jörg Weule weule@cs.uni-duesseldorf.de Jörgen Hägg Jorgen.Hagg@axis.se Kai Petzke wpp@marie.physik.tu-berlin.de Kai Schlichting kai@computel.com Karl Berry karl@cs.umb.edu Karl Heuer kwzh@gnu.org Karl Vogel vogelke@c-17igp.wpafb.af.mil Karlos Z. Smith kazen@viptx.net Karsten Thygesen karthy@kom.auc.dk Kaveh R. Ghazi ghazi@caip.rutgers.edu Keith Young youngk@astro.ocis.temple.edu Kelly Stephens kstephen@holli.com Ken Raeburn raeburn@cygnus.com Ken Steube steube@sdsc.edu Kevin D Quitt drs@netcom.com Kevin Dalley kevin@aimnet.com Kimball Collins kpc@ptolemy.arc.nasa.gov Kimmy Posey kimmyd@bnr.ca Koji Kishi kis@rqa.sony.co.jp Konno Hiroharu konno@pac.co.jp Kurt Jaeger pi@lf.net Larry Creech lcreech@lonestar.rcclub.org Larry Schwimmer rosebud@cyclone.stanford.edu Laurent Caillat-Vallet caillat@noe.lyon.cemagref.fr Laurent Sainte-Marthe smarthe@genethon.fr Les Mikesell les@mcs.com Loren J. Rittle rittle@comm.mot.com Loïc Prylli Loic.Prylli@lip.ens-lyon.fr Luke Mewburn lukem@connect.com.au Manfred Weichel Manfred.Weichel@mch.sni.de Manuel Munier Manuel.Munier@loria.fr Marc Boucher marc@cam.org Marc Ewing marc@redhat.com Marcin Matuszewski marcin@frodo.nask.org.pl Marcus Daniels marcus@sysc.pdx.edu Mark Bynum bynum@cennas.nhmfl.gov Mark Clements mpc@mbsmm.com Mark Frost mfrost@ncd.com Mark Kollert Mark.Kollert@oi42.kwu.siemens.de Mark W. Eichin eichin@cygnus.com Markus Kuhn mskuhn@cip.informatik.uni-erlangen.de Martin Bellenberg sunsoft@ifm.uni-hamburg.de Martin Goik goma0002@fh-karlsruhe.de Martin Mares mj@k332.feld.cvut.cz Marty Leisner leisner@eso.mc.xerox.com Massimo Dal Zotto dz@cs.unitn.it Mats Lofkvist d87-mal@nada.kth.se Matt Power mhpower@mit.edu Matthew J. D'Errico doc@deathstar.lis.cch.com Matti Aarnio mea@utu.fi Max Hailperin max@nic.gac.edu Maxime Taksar mmt@redbrick.com Melissa Weisshaus melissa@gnu.org Michael Dietrich mdt@is.in-berlin.de Michael Ellis bosun@aquarius.seaoar.uvic.ca Michael Giddings giddings@whitewater.chem.wisc.edu Michael Hayes michaelh@poroporo.chch.cri.nz Michael Helm mike@fionn.lbl.gov Michael Holmes mholmes@lccinc.com Michael Kaufman mkaufman@netgsi.com Michael Kubik mkubik@qitgsdv1.telecom.com.au Michael Lin mlin@lynx.com Michael Maass michael.maass@bk.bosch.de Michael Meissner meissner@cygnus.com Michael P Urban urban@cobra.jpl.nasa.gov Michael Schmidt michael@muc.de Michael Schwingen m.schwingen@stochastik.rwth-aachen.de Michael Smolsky fnsiguc@astro.weizmann.ac.il Mike Muuss mike@brl.mil Mike Nolan nolan@lpl.arizona.edu Mike Rogers mike@demon.net Mike Silano silano@newton.cs.jhu.edu Mike Walker M.D.Walker@larc.nasa.gov Milan Hodoscek milan@kihp6.ki.si Minh Tran-Le tranle@intellicorp.com Mitsuaki Masuhara masuhara@mcprv.mec.mei.co.jp Neil Faulks neil@dcs.kcl.ac.uk Neil Jerram nj104@cus.cam.ac.uk Nelson H.F. Beebe beebe@math.utah.edu Nick Barron nikb@cix.compulink.co.uk Noah Friedman friedman@gnu.org Noel Cragg noel@red-bean.com Norbert Kiesel norbert@rwthi3.informatik.rwth-aachen.de Olaf Schlueter olaf@toppoint.de Olaf Wucknitz owucknitz@hs.uni-hamburg.de Oliver Trepte oliver@fysik4.kth.se Olivier Roussel roussel@lifl.fr Oswald P. Backus IV backus@lks.csi.com Pascal Meheut pascal@cnam.cnam.fr Patrick Fulconis fulco@sig.uvsq.fr Patrick Timmons timmons@electech.polymtl.ca Paul Eggert eggert@twinsun.com Paul Kanz paul@icx.com Paul Mitchell P.Mitchell@surrey.ac.uk Paul Nevai pali+@osu.edu Paul Nordstrom 100067.3532@compuserve.com Paul O'Connor oconnorp@ul.ie Paul Siddall pauls@postman.essex.ac.uk Peder Chr. Norgaard pcn@tbit.dk Pekka Janhunen Pekka.Janhunen@fmi.fi Per Bojsen pb@delta.dk Per Foreby perf@efd.lth.se Pete Geenhuizen peteg@beno.css.gov Peter Carah pete@looneytunes.com Peter Fox fox@gec-mi-at.co.uk Peter Kutschera peter@zditr1.arcs.ac.at Peter Seebach seebs@taniemarie.solon.com Phil Hands phil@hands.com Philippe Defert defert@cern.ch Piercarlo Grandi piercarl@sabi.demon.co.uk Pierce Cantrell cantrell@ee.tamu.edu R. Kent Dybvig dyb@cadence.bloomington.in.us R. Scott Butler butler@prism.es.dupont.com Rainer Orth ro@thp.uni-koeln.de Ralf Suckow suckow@contrib.de Ralph Schleicher rs@purple.ul.bawue.de Randy Bias randyb@edge.edge.net Ray Dassen jdassen@wi.leidenuniv.nl Reuben J. Ravago reuben@asti.dost.gov.ph Reuben Sumner rasumner@undergrad.math.uwaterloo.ca Ricardo Marek ricky@ornet.co.il Richard Deal deal@xi.cs.fsu.edu Richard J. Kettlewell rjk@greenend.org.uk Richard Lloyd R.K.Lloyd@csc.liv.ac.uk Richard O'Neill richard@nexus.vnus.bc.ca Richard Sims rbs@acs.bu.edu Richard Stallman rms@gnu.org Richard Westerik richardw@bssi.nl Rick Emerson rick@ssg.com Rob Parry rparry@hydrolab.arsusda.gov Robert Anthony Nader naderr@usa.net Robert Bernstein rocky@panix.com Robert E. Brown brown@bibliotech.com Robert Frey bobf@unix.advansys.com Robert Leslie rob@mars.org Robert Lipe robertl@arnet.com Robert McGraw mcgraw@sunspot.noao.edu Robert W. Kim robertwk@aixpdslib.seas.ucla.edu Robert Weiner robert@progplus.com Robert Weissenfels robert@hop.ping.de Rocky Giannini rocky@nova.umd.edu Rod Buchanan rod.buchanan@kratos.co.uk Rod Thompson rodt@synopsys.com Roderich Schupp roderich@syntec.m.eunet.de Rodney Brown RBrown@cocam.com.au Roland McGrath roland@gnu.org Roland Schemers III schemers@vela.acs.oakland.edu Rolf Niepraschk niepraschk@chbrb.berlin.ptb.de Roman Gollent roman@portal.stwing.upenn.edu Roman Czyborra czyborra@cs.tu-berlin.de Ron Guilmette rfg@netcom.com Roy Marantz marantz@nbcs.rutgers.edu Russ Evans e_gs18@ub.nmh.ac.uk Russell Cattelan cattelan@thebarn.com Ryutaro Susukita susukita@pn.scphys.kyoto-u.ac.jp Sam Richards sam@blueskyprod.com Sakai Kiyotaka ksakai@netwk.ntt-at.co.jp Santiago Vila Doncel sanvila@unex.es Sarah Quady squady@warp10.keck.hawaii.edu Saul Lubkin lubkin@cs.rochester.edu Scott Grosch garath@engin.umich.edu Scott Hunziker ksh@eskimo.com Scott J. Kramer sjk@graham.com Scott L. Burson gyro@zeta-soft.com Scott S. Bertilson scott@geom.umn.edu Serge Granik serge@euler.berkeley.edu Seth Robertson seth@ctr.columbia.edu Sherwood Botsford sherwood@space.ualberta.ca Simon Wright simon.j.wright@gecm.com Sisira Jayasinghe sisira.jayasinghe@sdrc.com Skip Montanaro skip@automatrix.com Simon Wright simon@pogner.demon.co.uk Stefan Skoglund sp2stes1@ida.his.se Steffen Stempel stempel@ira.uka.de Stephen Gildea gildea@intouchsys.com Stephen J Bevan stephenb@harlequin.co.uk Stephen Saroff saroff@msc.edu Stuart Kemp skemp@bmc.com Stuart Poulin stuart@indsys.com Sven Verdoolaege skimo@breughel.ufsia.ac.be Sylvain Rougier un@grolier.fr Tarang Kumar Patel mombasa@ptolemy.arc.nasa.gov Ted Rule Ted_Rule@flextech.co.uk The King elvis@gnu.org Thomas Bushnell n/BSG thomas@gnu.org Thomas König Thomas.Koenig@ciw.uni-karlsruhe.de Thomas Krebs krebs@faps.uni-erlangen.de Thomas M. Browder Jr. browder@use1.eglin.af.mil Thomas Priesner priesner@flo.sh.bosch.de Thomas Waas waas@echild.aiss.de Thorbjxrn Willoch willoch@oslo.sgp.slb.com Tilman Schmidt ts@gb1.sema.de Tim Bradshaw tfb@aiai.ed.ac.uk Tim Lashua tim@winternet.com Tim Magill tim@tct.com Tim P. Starrin noid@cyborg.larc.nasa.gov Tim Ramsey tar@ksu.ksu.edu Tim Rylance tkr@puffball.demon.co.uk Tim Towers tzt@uniplex.co.uk Timothy J. Lee timlee@netcom.com Timothy Fossum fossum@cs.uwp.edu Tito Flagella tito@di.unipi.it Tom Popovitch tpop@informix.com Tom Quinn trq@astro.washington.edu Tom Tromey tromey@drip.colorado.edu Tor Lillqvist tml@hemuli.tte.vtt.fi Torbjorn Granlund tege@sics.se Torkel Hasle torkel@bibsyst.no Torsten Lull tlupi@gppc.de Toshiaki Nishi toshi@sss.osa.sharp.co.jp Travis L. Priest T.L.Priest@larc.nasa.gov Troy Rudolph rudtr01@cai.com Tsutomu Yamada tsutomu@sra.co.jp Ulrich Drepper drepper@gnu.org Van Snyder vsnyder@math.jpl.nasa.gov Vic Abell abe@cc.purdue.edu Victor J. Griswold vgris@aironet.com Vince Del Vecchio vdelvecc@inmet.com W. Phillip Moore wpm@morgan.com Warner Losh imp@boulder.parcplace.com Warren Dodge warrend@sptekwv3.wv.tek.com Wayne Christopher wayne@icemcfd.com Werner Almesberger werner.almesberger@lrc.di.epfl.ch William Bader william@nscs.fast.net William J. Eaton wje@hoffman.rstnu.bcm.tmc.edu William Kucharski kucharsk@netcom.com Wlodzimierz Jan Martin wjm@pg.gda.pl Wolfgang Rupprecht wolfgang@wsrcc.com Wolfram Gloger Wolfram.Gloger@dent.med.uni-muenchen.de Wolfram Wagner ww@mpi-sb.mpg.de Yasushi Suzudo SGR00413@niftyserve.or.jp Yu-Min Liang min@taz.ho.att.com tar-1.13/TODO0000444000176300016070000000145106737050404006406 * TODO file for GNU tar -*- outline -*- 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. .* create.c: diagnostics missing when `goto badfile'. .* compare.c: confusion between stderr and stdlis, WARN and ERROR. .* --ignore-failed-read might have been defeated. .* Better clean sources for list.c, extract.c, create.c and buffer.c. .* revise all NAMSIZ references, too often related to short buffers. .* current_link_name, current_file_name not always quoted when printed. .* Take over script maintenance, implement a `restore' script. .* Make a debugging feature out of all `#if 0'. tar-1.13/acconfig.h0000444000176300016070000000501306731701275007641 /* Special definitions for GNU tar, processed by autoheader. Copyright 1994, 1997, 1999 Free Software Foundation, Inc. François Pinard , 1993. */ /* This is unconditionally defined for setting a GNU environment. */ #undef _GNU_SOURCE /* Define to `int' if doesn't define. */ #undef daddr_t /* Define to a string giving the full name of the default archive file. */ #undef DEFAULT_ARCHIVE /* Define to a number giving the default blocking size for archives. */ #undef DEFAULT_BLOCKING /* Define to 1 if density may be indicated by [lmh] at end of device. */ #undef DENSITY_LETTER /* Define to a string giving the prefix of the default device, without the part specifying the unit and density. */ #undef DEVICE_PREFIX /* Define to 1 if you lack a 3-argument version of open, and want to emulate it with system calls you do have. */ #undef EMUL_OPEN3 /* Define to 1 if you have getgrgid(3). */ #undef HAVE_GETGRGID /* Define to 1 if you have getpwuid(3). */ #undef HAVE_GETPWUID /* Define to 1 if you have the valloc function. */ #undef HAVE_VALLOC /* Define to 1 if some rsh exists, or if you have . */ #undef HAVE_RTAPELIB /* Define to 1 if mknod function is available. */ #undef HAVE_MKNOD /* Define if struct stat has a char st_fstype[] member. */ #undef HAVE_ST_FSTYPE_STRING /* Define if `union wait' is the type of the first arg to wait functions. */ #undef HAVE_UNION_WAIT /* Define to 1 if utime.h exists and declares struct utimbuf. */ #undef HAVE_UTIME_H /* Define to `int' if doesn't define. */ #undef major_t /* Define to `int' if doesn't define. */ #undef minor_t /* Define to mt_model (v.g., for DG/UX), else to mt_type. */ #undef MTIO_CHECK_FIELD /* Define to the name of the distribution. */ #undef PACKAGE /* Define to 1 if ANSI function prototypes are usable. */ #undef PROTOTYPES /* Define to the full path of your rsh, if any. */ #undef REMOTE_SHELL /* Define to `int' if doesn't define. */ #undef ssize_t /* Path to directory containing system wide message catalog sources. */ #undef STD_INC_PATH /* Define to the version of the distribution. */ #undef VERSION /* Define to 1 if using the `glocale' package for message catalogs. */ #undef WITH_CATALOGS /* Define to 1 for better use of the debugging malloc library. See site ftp.antaire.com in antaire/src, file dmalloc/dmalloc.tar.gz. */ #undef WITH_DMALLOC /* Define to 1 if GNU regex should be used instead of GNU rx. */ #undef WITH_REGEX tar-1.13/acinclude.m40000664000176300016070000007632006740055067010126 # 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. ## ----------------------------------------- ## ## ANSIfy the C compiler whenever possible. ## ## From Franc,ois Pinard ## ## ----------------------------------------- ## # serial 2 # @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 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 CC="$ac_save_CC $ac_arg" 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) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); 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 AC_MSG_RESULT([none needed]) else AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) #serial 2 dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl AC_DEFUN(jm_STRUCT_DIRENT_D_INO, [AC_REQUIRE([AC_HEADER_DIRENT])dnl AC_CACHE_CHECK([for d_ino member in directory struct], jm_cv_struct_dirent_d_ino, [AC_TRY_LINK(dnl [ #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 */ ], [struct dirent dp; dp.d_ino = 0;], jm_cv_struct_dirent_d_ino=yes, jm_cv_struct_dirent_d_ino=no) ] ) if test $jm_cv_struct_dirent_d_ino = yes; then AC_DEFINE(D_INO_IN_DIRENT, 1, [Define if there is a member named d_ino in the struct describing directory headers.]) fi ] ) # 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. # serial 107 AC_PREREQ(2.13) dnl Minimum Autoconf version required. AC_DEFUN(AM_WITH_NLS, [AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) USE_INCLUDED_LIBINTL=no dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If gettext or catgets are available (in this order) we dnl use this. Else we have to fall back to GNU NLS library. dnl catgets is only used if permitted by option --with-catgets. nls_cv_header_intl= nls_cv_header_libgt= CATOBJEXT=NONE AC_CHECK_HEADER(libintl.h, [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, [AC_TRY_LINK([#include ], [return (int) gettext ("")], gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) if test "$gt_cv_func_gettext_libc" != "yes"; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, gettext)]) fi if test "$gt_cv_func_gettext_libc" = "yes" \ || test "$ac_cv_lib_intl_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT, 1, [Define to 1 if you have gettext and don't want to use GNU gettext.]) AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then AC_CHECK_FUNCS(dcgettext) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) INSTOBJEXT=.mo fi fi ]) if test "$CATOBJEXT" = "NONE"; then AC_MSG_CHECKING([whether catgets can be used]) AC_ARG_WITH(catgets, [ --with-catgets use catgets functions if available], nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) AC_MSG_RESULT($nls_cv_use_catgets) if test "$nls_cv_use_catgets" = "yes"; then dnl No gettext in C library. Try catgets next. AC_CHECK_LIB(i, main) AC_CHECK_FUNC(catgets, [AC_DEFINE(HAVE_CATGETS, 1, [Define as 1 if you have catgets and don't want to use GNU gettext.]) INTLOBJS="\$(CATOBJS)" AC_PATH_PROG(GENCAT, gencat, no)dnl if test "$GENCAT" != "no"; then AC_PATH_PROG(GMSGFMT, gmsgfmt, no) if test "$GMSGFMT" = "no"; then AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) fi AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) USE_INCLUDED_LIBINTL=yes CATOBJEXT=.cat INSTOBJEXT=.cat DATADIRNAME=lib INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi]) fi fi if test "$CATOBJEXT" = "NONE"; then dnl Neither gettext nor catgets in included in the C library. dnl Fall back on GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. INTLOBJS="\$(GETTOBJS)" AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_SUBST(MSGFMT) USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INSTOBJEXT=.mo DATADIRNAME=share INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po else DATADIRNAME=share nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test -z "$nls_cv_header_intl"; then # Clean out junk possibly left behind by a previous configuration. rm -f intl/libintl.h fi AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) # If this is used in GNU gettext we have to set USE_NLS to `yes' # because some of the sources are only built for this goal. if test "$PACKAGE" = gettext; then USE_NLS=yes USE_INCLUDED_LIBINTL=yes fi dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLDEPS) AC_SUBST(INTLLIBS) AC_SUBST(INTLOBJS) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) AC_DEFUN(AM_GNU_GETTEXT, [AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) if test "${ac_cv_func_stpcpy+set}" != "set"; then AC_CHECK_FUNCS(stpcpy) fi if test "${ac_cv_func_stpcpy}" = "yes"; then AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) fi AM_LC_MESSAGES AM_WITH_NLS if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl The reference to in the installed file dnl must be resolved because we cannot expect the users of this dnl to define HAVE_LOCALE_H. if test $ac_cv_header_locale_h = yes; then INCLUDE_LOCALE_H="#include " else INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" fi AC_SUBST(INCLUDE_LOCALE_H) dnl Determine which catalog format we have (if any is needed) dnl For now we know about two different formats: dnl Linux libc-5 and the normal X/Open format test -d intl || mkdir intl if test "$CATOBJEXT" = ".cat"; then AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) dnl Transform the SED scripts while copying because some dumb SEDs dnl cannot handle comments. sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed fi dnl po2tbl.sed is always needed. sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed dnl In the intl/Makefile.in we have a special dependency which makes dnl only sense for gettext. We comment this out for non-gettext dnl packages. if test "$PACKAGE" = "gettext"; then GT_NO="#NO#" GT_YES= else GT_NO= GT_YES="#YES#" fi AC_SUBST(GT_NO) AC_SUBST(GT_YES) dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl *** For now the libtool support in intl/Makefile is not for real. l= AC_SUBST(l) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po changequote(, )dnl case "$srcdir" in .) posrcprefix="../" ;; /* | [A-Za-z]:*) posrcprefix="$srcdir/" ;; *) posrcprefix="../$srcdir/" ;; esac changequote([, ])dnl rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) #serial 3 dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], jm_ac_cv_header_inttypes_h=yes, jm_ac_cv_header_inttypes_h=no)]) if test $jm_ac_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) 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 undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) #serial 7 dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl dnl mktime.c uses localtime_r if it exists. Check for it. AC_CHECK_FUNCS(localtime_r) if test $ac_cv_func_working_mktime = no; then AC_DEFINE_UNQUOTED(mktime, rpl_mktime, [Define to rpl_mktime if the replacement function should be used.]) fi ]) #serial 4 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 dnl Written by Paul Eggert . dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, [AC_CACHE_CHECK([for $1 value to request large file support], ac_cv_sys_largefile_$1, [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { ac_cv_sys_largefile_$1=no ifelse($1, CFLAGS, [case "$host_os" in # IRIX 6.2 and later require cc -n32. changequote(, )dnl irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl if test "$GCC" != yes; then ac_cv_sys_largefile_CFLAGS=-n32 fi ac_save_CC="$CC" CC="$CC $ac_cv_sys_largefile_CFLAGS" AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) CC="$ac_save_CC" esac]) }])]) dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, [case $2 in no) ;; ?*) case "[$]$1" in '') $1=$2 ;; *) $1=[$]$1' '$2 ;; esac ;; esac]) 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, [AC_CACHE_CHECK([for $1], $2, [$2=no changequote(, )dnl $4 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in -D$1) $2=1 ;; -D$1=*) $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; esac done changequote([, ])dnl ]) if test "[$]$2" != no; then AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) fi]) AC_DEFUN(AC_SYS_LARGEFILE, [AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_ENABLE(largefile, [ --disable-largefile omit support for large files]) if test "$enable_largefile" != no; then AC_CHECK_TOOL(GETCONF, getconf) AC_SYS_LARGEFILE_FLAGS(CFLAGS) AC_SYS_LARGEFILE_FLAGS(LDFLAGS) AC_SYS_LARGEFILE_FLAGS(LIBS) for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in no) ;; -D_FILE_OFFSET_BITS=*) ;; -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; -D_LARGE_FILES | -D_LARGE_FILES=*) ;; -D?* | -I?*) AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; *) AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; esac done AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, ac_cv_sys_file_offset_bits, [Number of bits in a file offset, on hosts where this is settable.] [case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_file_offset_bits=64 ;; esac]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, ac_cv_sys_largefile_source, [Define to make fseeko etc. visible, on some hosts.], [case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_largefile_source=1 ;; esac]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, ac_cv_sys_large_files, [Define for large files, on AIX-style hosts.], [case "$host_os" in # AIX 4.2 and later aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) ac_cv_sys_large_files=1 ;; esac]) fi ]) # 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. # serial 2 AC_PREREQ(2.13) dnl Minimum Autoconf version required. AC_DEFUN(AM_LC_MESSAGES, [if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your locale.h file contains LC_MESSAGES.]) fi fi]) #serial 3 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 AC_DEFUN(jm_FUNC_MALLOC, [ dnl xmalloc.c requires that this symbol be defined so it doesn't dnl mistakenly use a broken malloc -- as it might if this test were omitted. AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, [Define if the malloc check has been performed. ]) AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, [AC_TRY_RUN([ char *malloc (); int main () { exit (malloc (0) ? 0 : 1); } ], jm_cv_func_working_malloc=yes, jm_cv_func_working_malloc=no, dnl When crosscompiling, assume malloc is broken. jm_cv_func_working_malloc=no) ]) if test $jm_cv_func_working_malloc = no; then AC_SUBST(LIBOBJS) LIBOBJS="$LIBOBJS malloc.$ac_objext" AC_DEFINE_UNQUOTED(malloc, rpl_malloc, [Define to rpl_malloc if the replacement function should be used.]) fi ]) #serial 1 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. 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 #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_UNISTD_H # include #endif #if !HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { (const char *) 0, "TZ=GMT0", "TZ=JST-9", "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])) /* Fail if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test) */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; if (mktime (&tm) == (time_t)-1) exit (1); } static void mktime_test (now) time_t now; { struct tm *lt; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); now = time_t_max - now; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); } static void irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); if (tm.tm_mon != 2 || tm.tm_mday != 31) exit (1); } static void bigtime_test (j) int j; { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) exit (1); } } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) continue; time_t_max--; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) mktime_test (t); mktime_test ((time_t) 60 * 60); mktime_test ((time_t) 60 * 60 * 24); for (j = 1; 0 < j; j *= 2) bigtime_test (j); bigtime_test (j - 1); } irix_6_4_bug (); spring_forward_gap (); 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 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. # serial 1 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 /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done 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 ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) #serial 3 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 AC_DEFUN(jm_FUNC_REALLOC, [ dnl xmalloc.c requires that this symbol be defined so it doesn't dnl mistakenly use a broken realloc -- as it might if this test were omitted. AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, [Define if the realloc check has been performed. ]) AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, [AC_TRY_RUN([ char *realloc (); int main () { exit (realloc (0, 0) ? 0 : 1); } ], jm_cv_func_working_realloc=yes, jm_cv_func_working_realloc=no, dnl When crosscompiling, assume realloc is broken. jm_cv_func_working_realloc=no) ]) if test $jm_cv_func_working_realloc = no; then AC_SUBST(LIBOBJS) LIBOBJS="$LIBOBJS realloc.$ac_objext" AC_DEFINE_UNQUOTED(realloc, rpl_realloc, [Define to rpl_realloc if the replacement function should be used.]) fi ]) #serial 3 dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) if test $jm_ac_cv_header_inttypes_h = no; then AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' if doesn't define.]) fi ]) #serial 1 dnl From Paul Eggert. AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_COMPILE([], [unsigned long long i = (unsigned long long) -1;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the unsigned long long type.]) fi ]) #serial 2 dnl From Jim Meyering 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. AC_DEFUN(jm_STRUCT_UTIMBUF, [ AC_CHECK_HEADERS(utime.h) AC_REQUIRE([AC_HEADER_TIME]) AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, [AC_TRY_COMPILE( [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif ], [static struct utimbuf x; x.actime = x.modtime;], fu_cv_sys_struct_utimbuf=yes, fu_cv_sys_struct_utimbuf=no) ]) if test $fu_cv_sys_struct_utimbuf = yes; then AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . Some systems have utime.h but don't declare the struct anywhere. ]) fi ]) #serial 1 dnl From Jim Meyering dnl Replace the utime function on systems that need it. dnl FIXME AC_DEFUN(jm_FUNC_UTIME, [ AC_CHECK_HEADERS(utime.h) AC_REQUIRE([jm_STRUCT_UTIMBUF]) AC_REQUIRE([AC_FUNC_UTIME_NULL]) if test $ac_cv_func_utime_null = no; then jm_FUNC_UTIMES_NULL AC_REPLACE_FUNCS(utime) fi ]) #serial 3 dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. 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)); }], ac_cv_func_utimes_null=yes, ac_cv_func_utimes_null=no, ac_cv_func_utimes_null=no) rm -f core core.* *.core]) if test $ac_cv_func_utimes_null = yes; then AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, [Define if utimes accepts a null argument]) fi ] ) #serial 1 # autoconf tests required for use of xstrtoumax.c AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) AC_CHECK_HEADERS(stdlib.h) AC_REPLACE_FUNCS(strtoumax) dnl We don't need (and can't compile) the replacement strtoull dnl unless the type `unsigned long long' exists. dnl Also, only the replacement strtoumax invokes strtoull, dnl so we need the replacement strtoull only if strtoumax does not exist. case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in yes,no) AC_REPLACE_FUNCS(strtoull) ;; esac ]) tar-1.13/aclocal.m40000664000176300016070000011040006740607330007555 dnl aclocal.m4 generated automatically by aclocal 1.4 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. 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. # 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. # serial 2 # @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 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 CC="$ac_save_CC $ac_arg" 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) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); 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 AC_MSG_RESULT([none needed]) else AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) #serial 2 dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl AC_DEFUN(jm_STRUCT_DIRENT_D_INO, [AC_REQUIRE([AC_HEADER_DIRENT])dnl AC_CACHE_CHECK([for d_ino member in directory struct], jm_cv_struct_dirent_d_ino, [AC_TRY_LINK(dnl [ #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 */ ], [struct dirent dp; dp.d_ino = 0;], jm_cv_struct_dirent_d_ino=yes, jm_cv_struct_dirent_d_ino=no) ] ) if test $jm_cv_struct_dirent_d_ino = yes; then AC_DEFINE(D_INO_IN_DIRENT, 1, [Define if there is a member named d_ino in the struct describing directory headers.]) fi ] ) # 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. # serial 107 AC_PREREQ(2.13) dnl Minimum Autoconf version required. AC_DEFUN(AM_WITH_NLS, [AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) USE_INCLUDED_LIBINTL=no dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If gettext or catgets are available (in this order) we dnl use this. Else we have to fall back to GNU NLS library. dnl catgets is only used if permitted by option --with-catgets. nls_cv_header_intl= nls_cv_header_libgt= CATOBJEXT=NONE AC_CHECK_HEADER(libintl.h, [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, [AC_TRY_LINK([#include ], [return (int) gettext ("")], gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) if test "$gt_cv_func_gettext_libc" != "yes"; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, gettext)]) fi if test "$gt_cv_func_gettext_libc" = "yes" \ || test "$ac_cv_lib_intl_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT, 1, [Define to 1 if you have gettext and don't want to use GNU gettext.]) AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then AC_CHECK_FUNCS(dcgettext) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) INSTOBJEXT=.mo fi fi ]) if test "$CATOBJEXT" = "NONE"; then AC_MSG_CHECKING([whether catgets can be used]) AC_ARG_WITH(catgets, [ --with-catgets use catgets functions if available], nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) AC_MSG_RESULT($nls_cv_use_catgets) if test "$nls_cv_use_catgets" = "yes"; then dnl No gettext in C library. Try catgets next. AC_CHECK_LIB(i, main) AC_CHECK_FUNC(catgets, [AC_DEFINE(HAVE_CATGETS, 1, [Define as 1 if you have catgets and don't want to use GNU gettext.]) INTLOBJS="\$(CATOBJS)" AC_PATH_PROG(GENCAT, gencat, no)dnl if test "$GENCAT" != "no"; then AC_PATH_PROG(GMSGFMT, gmsgfmt, no) if test "$GMSGFMT" = "no"; then AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) fi AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) USE_INCLUDED_LIBINTL=yes CATOBJEXT=.cat INSTOBJEXT=.cat DATADIRNAME=lib INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi]) fi fi if test "$CATOBJEXT" = "NONE"; then dnl Neither gettext nor catgets in included in the C library. dnl Fall back on GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. INTLOBJS="\$(GETTOBJS)" AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_SUBST(MSGFMT) USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INSTOBJEXT=.mo DATADIRNAME=share INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po else DATADIRNAME=share nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test -z "$nls_cv_header_intl"; then # Clean out junk possibly left behind by a previous configuration. rm -f intl/libintl.h fi AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) # If this is used in GNU gettext we have to set USE_NLS to `yes' # because some of the sources are only built for this goal. if test "$PACKAGE" = gettext; then USE_NLS=yes USE_INCLUDED_LIBINTL=yes fi dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLDEPS) AC_SUBST(INTLLIBS) AC_SUBST(INTLOBJS) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) AC_DEFUN(AM_GNU_GETTEXT, [AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) if test "${ac_cv_func_stpcpy+set}" != "set"; then AC_CHECK_FUNCS(stpcpy) fi if test "${ac_cv_func_stpcpy}" = "yes"; then AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) fi AM_LC_MESSAGES AM_WITH_NLS if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl The reference to in the installed file dnl must be resolved because we cannot expect the users of this dnl to define HAVE_LOCALE_H. if test $ac_cv_header_locale_h = yes; then INCLUDE_LOCALE_H="#include " else INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" fi AC_SUBST(INCLUDE_LOCALE_H) dnl Determine which catalog format we have (if any is needed) dnl For now we know about two different formats: dnl Linux libc-5 and the normal X/Open format test -d intl || mkdir intl if test "$CATOBJEXT" = ".cat"; then AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) dnl Transform the SED scripts while copying because some dumb SEDs dnl cannot handle comments. sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed fi dnl po2tbl.sed is always needed. sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed dnl In the intl/Makefile.in we have a special dependency which makes dnl only sense for gettext. We comment this out for non-gettext dnl packages. if test "$PACKAGE" = "gettext"; then GT_NO="#NO#" GT_YES= else GT_NO= GT_YES="#YES#" fi AC_SUBST(GT_NO) AC_SUBST(GT_YES) dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl *** For now the libtool support in intl/Makefile is not for real. l= AC_SUBST(l) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po changequote(, )dnl case "$srcdir" in .) posrcprefix="../" ;; /* | [A-Za-z]:*) posrcprefix="$srcdir/" ;; *) posrcprefix="../$srcdir/" ;; esac changequote([, ])dnl rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) #serial 3 dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], jm_ac_cv_header_inttypes_h=yes, jm_ac_cv_header_inttypes_h=no)]) if test $jm_ac_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) 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 undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) #serial 7 dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl dnl mktime.c uses localtime_r if it exists. Check for it. AC_CHECK_FUNCS(localtime_r) if test $ac_cv_func_working_mktime = no; then AC_DEFINE_UNQUOTED(mktime, rpl_mktime, [Define to rpl_mktime if the replacement function should be used.]) fi ]) #serial 4 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 dnl Written by Paul Eggert . dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, [AC_CACHE_CHECK([for $1 value to request large file support], ac_cv_sys_largefile_$1, [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { ac_cv_sys_largefile_$1=no ifelse($1, CFLAGS, [case "$host_os" in # IRIX 6.2 and later require cc -n32. changequote(, )dnl irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl if test "$GCC" != yes; then ac_cv_sys_largefile_CFLAGS=-n32 fi ac_save_CC="$CC" CC="$CC $ac_cv_sys_largefile_CFLAGS" AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) CC="$ac_save_CC" esac]) }])]) dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, [case $2 in no) ;; ?*) case "[$]$1" in '') $1=$2 ;; *) $1=[$]$1' '$2 ;; esac ;; esac]) 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, [AC_CACHE_CHECK([for $1], $2, [$2=no changequote(, )dnl $4 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in -D$1) $2=1 ;; -D$1=*) $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; esac done changequote([, ])dnl ]) if test "[$]$2" != no; then AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) fi]) AC_DEFUN(AC_SYS_LARGEFILE, [AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_ENABLE(largefile, [ --disable-largefile omit support for large files]) if test "$enable_largefile" != no; then AC_CHECK_TOOL(GETCONF, getconf) AC_SYS_LARGEFILE_FLAGS(CFLAGS) AC_SYS_LARGEFILE_FLAGS(LDFLAGS) AC_SYS_LARGEFILE_FLAGS(LIBS) for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in no) ;; -D_FILE_OFFSET_BITS=*) ;; -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; -D_LARGE_FILES | -D_LARGE_FILES=*) ;; -D?* | -I?*) AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; *) AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; esac done AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, ac_cv_sys_file_offset_bits, [Number of bits in a file offset, on hosts where this is settable.] [case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_file_offset_bits=64 ;; esac]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, ac_cv_sys_largefile_source, [Define to make fseeko etc. visible, on some hosts.], [case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_largefile_source=1 ;; esac]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, ac_cv_sys_large_files, [Define for large files, on AIX-style hosts.], [case "$host_os" in # AIX 4.2 and later aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) ac_cv_sys_large_files=1 ;; esac]) fi ]) # 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. # serial 2 AC_PREREQ(2.13) dnl Minimum Autoconf version required. AC_DEFUN(AM_LC_MESSAGES, [if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your locale.h file contains LC_MESSAGES.]) fi fi]) #serial 3 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 AC_DEFUN(jm_FUNC_MALLOC, [ dnl xmalloc.c requires that this symbol be defined so it doesn't dnl mistakenly use a broken malloc -- as it might if this test were omitted. AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, [Define if the malloc check has been performed. ]) AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, [AC_TRY_RUN([ char *malloc (); int main () { exit (malloc (0) ? 0 : 1); } ], jm_cv_func_working_malloc=yes, jm_cv_func_working_malloc=no, dnl When crosscompiling, assume malloc is broken. jm_cv_func_working_malloc=no) ]) if test $jm_cv_func_working_malloc = no; then AC_SUBST(LIBOBJS) LIBOBJS="$LIBOBJS malloc.$ac_objext" AC_DEFINE_UNQUOTED(malloc, rpl_malloc, [Define to rpl_malloc if the replacement function should be used.]) fi ]) #serial 1 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. 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 #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_UNISTD_H # include #endif #if !HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { (const char *) 0, "TZ=GMT0", "TZ=JST-9", "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])) /* Fail if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test) */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; if (mktime (&tm) == (time_t)-1) exit (1); } static void mktime_test (now) time_t now; { struct tm *lt; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); now = time_t_max - now; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); } static void irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); if (tm.tm_mon != 2 || tm.tm_mday != 31) exit (1); } static void bigtime_test (j) int j; { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) exit (1); } } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) continue; time_t_max--; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) mktime_test (t); mktime_test ((time_t) 60 * 60); mktime_test ((time_t) 60 * 60 * 24); for (j = 1; 0 < j; j *= 2) bigtime_test (j); bigtime_test (j - 1); } irix_6_4_bug (); spring_forward_gap (); 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 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. # serial 1 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 /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done 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 ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) #serial 3 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 AC_DEFUN(jm_FUNC_REALLOC, [ dnl xmalloc.c requires that this symbol be defined so it doesn't dnl mistakenly use a broken realloc -- as it might if this test were omitted. AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, [Define if the realloc check has been performed. ]) AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, [AC_TRY_RUN([ char *realloc (); int main () { exit (realloc (0, 0) ? 0 : 1); } ], jm_cv_func_working_realloc=yes, jm_cv_func_working_realloc=no, dnl When crosscompiling, assume realloc is broken. jm_cv_func_working_realloc=no) ]) if test $jm_cv_func_working_realloc = no; then AC_SUBST(LIBOBJS) LIBOBJS="$LIBOBJS realloc.$ac_objext" AC_DEFINE_UNQUOTED(realloc, rpl_realloc, [Define to rpl_realloc if the replacement function should be used.]) fi ]) #serial 3 dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) if test $jm_ac_cv_header_inttypes_h = no; then AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' if doesn't define.]) fi ]) #serial 1 dnl From Paul Eggert. AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_COMPILE([], [unsigned long long i = (unsigned long long) -1;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the unsigned long long type.]) fi ]) #serial 2 dnl From Jim Meyering 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. AC_DEFUN(jm_STRUCT_UTIMBUF, [ AC_CHECK_HEADERS(utime.h) AC_REQUIRE([AC_HEADER_TIME]) AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, [AC_TRY_COMPILE( [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif ], [static struct utimbuf x; x.actime = x.modtime;], fu_cv_sys_struct_utimbuf=yes, fu_cv_sys_struct_utimbuf=no) ]) if test $fu_cv_sys_struct_utimbuf = yes; then AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . Some systems have utime.h but don't declare the struct anywhere. ]) fi ]) #serial 1 dnl From Jim Meyering dnl Replace the utime function on systems that need it. dnl FIXME AC_DEFUN(jm_FUNC_UTIME, [ AC_CHECK_HEADERS(utime.h) AC_REQUIRE([jm_STRUCT_UTIMBUF]) AC_REQUIRE([AC_FUNC_UTIME_NULL]) if test $ac_cv_func_utime_null = no; then jm_FUNC_UTIMES_NULL AC_REPLACE_FUNCS(utime) fi ]) #serial 3 dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. 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)); }], ac_cv_func_utimes_null=yes, ac_cv_func_utimes_null=no, ac_cv_func_utimes_null=no) rm -f core core.* *.core]) if test $ac_cv_func_utimes_null = yes; then AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, [Define if utimes accepts a null argument]) fi ] ) #serial 1 # autoconf tests required for use of xstrtoumax.c AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) AC_CHECK_HEADERS(stdlib.h) AC_REPLACE_FUNCS(strtoumax) dnl We don't need (and can't compile) the replacement strtoull dnl unless the type `unsigned long long' exists. dnl Also, only the replacement strtoumax invokes strtoull, dnl so we need the replacement strtoull only if strtoumax does not exist. case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in yes,no) AC_REPLACE_FUNCS(strtoull) ;; esac ]) # Like AC_CONFIG_HEADER, but automatically create stamp file. 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 case " <<$>>CONFIG_HEADERS " in *" <<$>>am_file "*<<)>> echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx ;; esac am_indx=`expr "<<$>>am_indx" + 1` done<<>>dnl>>) changequote([,]))]) # 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. # serial 1 dnl Usage: dnl AM_INIT_AUTOMAKE(package,version, [no-define]) 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 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])]) # # Check to make sure that the build environment is sane. # 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 ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "[$]*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "[$]*" != "X $srcdir/configure conftestfile" \ && test "[$]*" != "X conftestfile $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "[$]2" = conftestfile ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi rm -f conftest* AC_MSG_RESULT(yes)]) 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 $1=$2 AC_MSG_RESULT(found) else $1="$3/missing $2" AC_MSG_RESULT(missing) fi AC_SUBST($1)]) # serial 1 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 AC_MSG_RESULT(yes) AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes]) U= ANSI2KNR= else AC_MSG_RESULT(no) U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. AC_HEADER_STDC AC_CHECK_HEADERS(string.h) fi AC_SUBST(U)dnl AC_SUBST(ANSI2KNR)dnl ]) # serial 1 AC_DEFUN(AM_WITH_DMALLOC, [AC_MSG_CHECKING(if malloc debugging is wanted) AC_ARG_WITH(dmalloc, [ --with-dmalloc use dmalloc, as in ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz], [if test "$withval" = yes; then AC_MSG_RESULT(yes) AC_DEFINE(WITH_DMALLOC,1, [Define if using the dmalloc debugging malloc package]) LIBS="$LIBS -ldmalloc" LDFLAGS="$LDFLAGS -g" else AC_MSG_RESULT(no) fi], [AC_MSG_RESULT(no)]) ]) tar-1.13/config.guess0000444000176300016070000007165406707233117010250 #! /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. # 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). # # Use $HOST_CC if defined. $CC may point to a cross-compiler if test x"$CC_FOR_BUILD" = x; then if test x"$HOST_CC" != x; then CC_FOR_BUILD="$HOST_CC" else if test x"$CC" != x; then CC_FOR_BUILD="$CC" else CC_FOR_BUILD=cc fi fi fi # 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 PATH=$PATH:/.attbin ; export PATH fi 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 dummy=dummy-$$ trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in alpha:OSF1:*:*) if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` fi # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. cat <$dummy.s .globl main .ent main main: .frame \$30,0,\$26,0 .prologue 0 .long 0x47e03d80 # implver $0 lda \$2,259 .long 0x47e20c21 # amask $2,$1 srl \$1,8,\$2 sll \$2,2,\$2 sll \$0,3,\$0 addl \$1,\$0,\$0 addl \$2,\$0,\$0 ret \$31,(\$26),1 .end main EOF $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null if test "$?" = 0 ; then ./$dummy case "$?" in 7) UNAME_MACHINE="alpha" ;; 15) UNAME_MACHINE="alphaev5" ;; 14) UNAME_MACHINE="alphaev56" ;; 10) UNAME_MACHINE="alphapca56" ;; 16) UNAME_MACHINE="alphaev6" ;; esac fi rm -f $dummy.s $dummy echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` exit 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-cbm-sysv4 exit 0;; amiga:NetBSD:*:*) echo m68k-cbm-netbsd${UNAME_RELEASE} exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit 0 ;; arc64:OpenBSD:*:*) echo mips64el-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hkmips:OpenBSD:*:*) echo mips-unknown-openbsd${UNAME_RELEASE} exit 0 ;; pmax:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sgi:OpenBSD:*:*) echo mips-unknown-openbsd${UNAME_RELEASE} exit 0 ;; wgrisc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; arm32:NetBSD:*:*) echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; SR2?01:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit 0;; Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit 0 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; atari*:NetBSD:*:*) echo m68k-atari-netbsd${UNAME_RELEASE} exit 0 ;; atari*:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit 0 ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit 0 ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; sun3*:NetBSD:*:*) echo m68k-sun-netbsd${UNAME_RELEASE} exit 0 ;; sun3*:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mac68k:NetBSD:*:*) echo m68k-apple-netbsd${UNAME_RELEASE} exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; macppc:NetBSD:*:*) echo powerpc-apple-netbsd${UNAME_RELEASE} exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD $dummy.c -o $dummy \ && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ -o ${TARGET_BINARY_INTERFACE}x = x ] ; then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit 0 ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i?86:AIX:*:*) echo i386-ibm-aix exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit 0 ;; *:AIX:*:4) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=4.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[34678]??:HP-UX:*:*) case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/6?? | 9000/7?? | 9000/80[024] | 9000/8?[136790] | 9000/892 ) sed 's/^ //' << EOF >$dummy.c #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` rm -f $dummy.c $dummy esac HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; *9??*:MPE*:*:*) echo hppa1.0-hp-mpeix exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; i?86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*X-MP:*:*:*) echo xmp-cray-unicos exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} exit 0 ;; CRAY*T3E:*:*:*) echo t3e-cray-unicosmk${UNAME_RELEASE} exit 0 ;; CRAY-2:*:*:*) echo cray2-cray-unicos exit 0 ;; F300:UNIX_System_V:*:*) FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit 0 ;; F301:UNIX_System_V:*:*) echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` exit 0 ;; hp3[0-9][05]:NetBSD:*:*) echo m68k-hp-netbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit 0 ;; i?86:BSD/386:*:* | i?86:BSD/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) if test -x /usr/bin/objformat; then if test "elf" = "`/usr/bin/objformat`"; then echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` exit 0 fi fi echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; *:NetBSD:*:*) echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit 0 ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; *:Linux:*:*) # uname on the ARM produces all sorts of strangeness, and we need to # filter it out. case "$UNAME_MACHINE" in armv*) UNAME_MACHINE=$UNAME_MACHINE ;; arm* | sa110*) UNAME_MACHINE="arm" ;; esac # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. ld_help_string=`cd /; ld --help 2>&1` ld_supported_emulations=`echo $ld_help_string \ | sed -ne '/supported emulations:/!d s/[ ][ ]*/ /g s/.*supported emulations: *// s/ .*// p'` case "$ld_supported_emulations" in i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; esac if test "${UNAME_MACHINE}" = "alpha" ; then sed 's/^ //' <$dummy.s .globl main .ent main main: .frame \$30,0,\$26,0 .prologue 0 .long 0x47e03d80 # implver $0 lda \$2,259 .long 0x47e20c21 # amask $2,$1 srl \$1,8,\$2 sll \$2,2,\$2 sll \$0,3,\$0 addl \$1,\$0,\$0 addl \$2,\$0,\$0 ret \$31,(\$26),1 .end main EOF LIBC="" $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null if test "$?" = 0 ; then ./$dummy case "$?" in 7) UNAME_MACHINE="alpha" ;; 15) UNAME_MACHINE="alphaev5" ;; 14) UNAME_MACHINE="alphaev56" ;; 10) UNAME_MACHINE="alphapca56" ;; 16) UNAME_MACHINE="alphaev6" ;; esac objdump --private-headers $dummy | \ grep ld.so.1 > /dev/null if test "$?" = 0 ; then LIBC="libc1" fi fi rm -f $dummy.s $dummy echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 elif test "${UNAME_MACHINE}" = "mips" ; then cat >$dummy.c </dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy else # Either a pre-BFD a.out linker (linux-gnuoldld) # or one that does not give us useful --help. # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. # If ld does not provide *any* "supported emulations:" # that means it is gnuoldld. echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 case "${UNAME_MACHINE}" in i?86) VENDOR=pc; ;; *) VENDOR=unknown; ;; esac # Determine whether the default compiler is a.out or elf cat >$dummy.c < #ifdef __cplusplus int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); # else printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif # else printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif #else printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); #endif return 0; } EOF $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy 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. i?86:DYNIX/ptx:4*:*) echo i386-sequent-sysv4 exit 0 ;; i?86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} fi exit 0 ;; i?86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit 0 ;; i?86:UnixWare:*:*) if /bin/uname -X 2>/dev/null >/dev/null ; then (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 fi echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION} exit 0 ;; pc:*:*:*) # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit 0 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit 0 ;; paragon:*:*:*) echo i860-intel-osf1 exit 0 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; M68*:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4.3${OS_REL} && exit 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit 0 ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit 0 ;; PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; news*:NEWS-OS:*:6*) echo mips-sony-newsos6 exit 0 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit 0 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit 0 ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit 0 ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit 0 ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit 0 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) printf ("vax-dec-bsd\n"); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi #echo '(Unable to guess system type)' 1>&2 exit 1 tar-1.13/config.h.in0000664000176300016070000002733006737274254007764 /* config.h.in. Generated automatically from configure.in by autoheader. */ /* Define if on AIX 3. System headers sometimes define this. We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE #undef _ALL_SOURCE #endif /* Define if using alloca.c. */ #undef C_ALLOCA /* Define to empty if the keyword does not work. */ #undef const /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. This function is required for alloca.c support on those systems. */ #undef CRAY_STACKSEG_END /* Define to `int' if doesn't define. */ #undef gid_t /* Define if you have alloca, as a function or macro. */ #undef HAVE_ALLOCA /* Define if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define if you don't have vprintf but do have _doprnt. */ #undef HAVE_DOPRNT /* Define if your system has a working fnmatch function. */ #undef HAVE_FNMATCH /* Define if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define if your struct stat has st_blksize. */ #undef HAVE_ST_BLKSIZE /* Define if your struct stat has st_blocks. */ #undef HAVE_ST_BLOCKS /* Define if you have the vprintf function. */ #undef HAVE_VPRINTF /* Define as __inline if that's what the C compiler calls it. */ #undef inline /* Define if major, minor, and makedev are declared in . */ #undef MAJOR_IN_MKDEV /* Define if major, minor, and makedev are declared in . */ #undef MAJOR_IN_SYSMACROS /* Define if on MINIX. */ #undef _MINIX /* Define to `int' if doesn't define. */ #undef mode_t /* Define to `long' if doesn't define. */ #undef off_t /* Define to `int' if doesn't define. */ #undef pid_t /* Define if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define if you need to in order for stat and other things to work. */ #undef _POSIX_SOURCE /* Define as the return type of signal handlers (int or void). */ #undef RETSIGTYPE /* Define to `unsigned' if doesn't define. */ #undef size_t /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define if the `S_IS*' macros in do not work properly. */ #undef STAT_MACROS_BROKEN /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define to `int' if doesn't define. */ #undef uid_t /* This is unconditionally defined for setting a GNU environment. */ #undef _GNU_SOURCE /* Define to `int' if doesn't define. */ #undef daddr_t /* Define to a string giving the full name of the default archive file. */ #undef DEFAULT_ARCHIVE /* Define to a number giving the default blocking size for archives. */ #undef DEFAULT_BLOCKING /* Define to 1 if density may be indicated by [lmh] at end of device. */ #undef DENSITY_LETTER /* Define to a string giving the prefix of the default device, without the part specifying the unit and density. */ #undef DEVICE_PREFIX /* Define to 1 if you lack a 3-argument version of open, and want to emulate it with system calls you do have. */ #undef EMUL_OPEN3 /* Define to 1 if you have getgrgid(3). */ #undef HAVE_GETGRGID /* Define to 1 if you have getpwuid(3). */ #undef HAVE_GETPWUID /* Define to 1 if mknod function is available. */ #undef HAVE_MKNOD /* Define if struct stat has a char st_fstype[] member. */ #undef HAVE_ST_FSTYPE_STRING /* Define if `union wait' is the type of the first arg to wait functions. */ #undef HAVE_UNION_WAIT /* Define to 1 if utime.h exists and declares struct utimbuf. */ #undef HAVE_UTIME_H /* Define to `int' if doesn't define. */ #undef major_t /* Define to `int' if doesn't define. */ #undef minor_t /* Define to mt_model (v.g., for DG/UX), else to mt_type. */ #undef MTIO_CHECK_FIELD /* Define to the full path of your rsh, if any. */ #undef REMOTE_SHELL /* Define to `int' if doesn't define. */ #undef ssize_t /* The number of bytes in a long long. */ #undef SIZEOF_LONG_LONG /* The number of bytes in a unsigned long. */ #undef SIZEOF_UNSIGNED_LONG /* Define if you have the __argz_count function. */ #undef HAVE___ARGZ_COUNT /* Define if you have the __argz_next function. */ #undef HAVE___ARGZ_NEXT /* Define if you have the __argz_stringify function. */ #undef HAVE___ARGZ_STRINGIFY /* Define if you have the alarm function. */ #undef HAVE_ALARM /* Define if you have the dcgettext function. */ #undef HAVE_DCGETTEXT /* Define if you have the execlp function. */ #undef HAVE_EXECLP /* Define if you have the fsync function. */ #undef HAVE_FSYNC /* Define if you have the ftime function. */ #undef HAVE_FTIME /* Define if you have the ftruncate function. */ #undef HAVE_FTRUNCATE /* Define if you have the getcwd function. */ #undef HAVE_GETCWD /* Define if you have the getpagesize function. */ #undef HAVE_GETPAGESIZE /* Define if you have the isascii function. */ #undef HAVE_ISASCII /* Define if you have the lchown function. */ #undef HAVE_LCHOWN /* Define if you have the localtime_r function. */ #undef HAVE_LOCALTIME_R /* Define if you have the memset function. */ #undef HAVE_MEMSET /* Define if you have the mkdir function. */ #undef HAVE_MKDIR /* Define if you have the mkfifo function. */ #undef HAVE_MKFIFO /* Define if you have the munmap function. */ #undef HAVE_MUNMAP /* Define if you have the nap function. */ #undef HAVE_NAP /* Define if you have the napms function. */ #undef HAVE_NAPMS /* Define if you have the poll function. */ #undef HAVE_POLL /* Define if you have the putenv function. */ #undef HAVE_PUTENV /* Define if you have the rename function. */ #undef HAVE_RENAME /* Define if you have the rmdir function. */ #undef HAVE_RMDIR /* Define if you have the select function. */ #undef HAVE_SELECT /* Define if you have the setenv function. */ #undef HAVE_SETENV /* Define if you have the setlocale function. */ #undef HAVE_SETLOCALE /* Define if you have the stpcpy function. */ #undef HAVE_STPCPY /* Define if you have the strcasecmp function. */ #undef HAVE_STRCASECMP /* Define if you have the strchr function. */ #undef HAVE_STRCHR /* Define if you have the strdup function. */ #undef HAVE_STRDUP /* Define if you have the strerror function. */ #undef HAVE_STRERROR /* Define if you have the strstr function. */ #undef HAVE_STRSTR /* Define if you have the strtol function. */ #undef HAVE_STRTOL /* Define if you have the strtoul function. */ #undef HAVE_STRTOUL /* Define if you have the strtoull function. */ #undef HAVE_STRTOULL /* Define if you have the strtoumax function. */ #undef HAVE_STRTOUMAX /* Define if you have the usleep function. */ #undef HAVE_USLEEP /* Define if you have the header file. */ #undef HAVE_ARGZ_H /* Define if you have the header file. */ #undef HAVE_DIRENT_H /* Define if you have the header file. */ #undef HAVE_FCNTL_H /* Define if you have the header file. */ #undef HAVE_LIMITS_H /* Define if you have the header file. */ #undef HAVE_LINUX_FD_H /* Define if you have the header file. */ #undef HAVE_LOCALE_H /* Define if you have the header file. */ #undef HAVE_MALLOC_H /* Define if you have the header file. */ #undef HAVE_MEMORY_H /* Define if you have the header file. */ #undef HAVE_NDIR_H /* Define if you have the header file. */ #undef HAVE_NET_ERRNO_H /* Define if you have the header file. */ #undef HAVE_NETDB_H /* Define if you have the header file. */ #undef HAVE_NL_TYPES_H /* Define if you have the header file. */ #undef HAVE_POLL_H /* Define if you have the header file. */ #undef HAVE_SGTTY_H /* Define if you have the header file. */ #undef HAVE_STDLIB_H /* Define if you have the header file. */ #undef HAVE_STRING_H /* Define if you have the header file. */ #undef HAVE_STROPTS_H /* Define if you have the header file. */ #undef HAVE_SYS_BUF_H /* Define if you have the header file. */ #undef HAVE_SYS_DEVICE_H /* Define if you have the header file. */ #undef HAVE_SYS_DIR_H /* Define if you have the header file. */ #undef HAVE_SYS_GENTAPE_H /* Define if you have the header file. */ #undef HAVE_SYS_INET_H /* Define if you have the header file. */ #undef HAVE_SYS_IO_TRIOCTL_H /* Define if you have the header file. */ #undef HAVE_SYS_IOCCOM_H /* Define if you have the header file. */ #undef HAVE_SYS_MTIO_H /* Define if you have the header file. */ #undef HAVE_SYS_NDIR_H /* Define if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define if you have the header file. */ #undef HAVE_SYS_TAPE_H /* Define if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define if you have the header file. */ #undef HAVE_SYS_TIMEB_H /* Define if you have the header file. */ #undef HAVE_SYS_TPRINTF_H /* Define if you have the header file. */ #undef HAVE_SYS_WAIT_H /* Define if you have the header file. */ #undef HAVE_UNISTD_H /* Define if you have the i library (-li). */ #undef HAVE_LIBI /* Define if you have the intl library (-lintl). */ #undef HAVE_LIBINTL /* Define if you have the nsl library (-lnsl). */ #undef HAVE_LIBNSL /* Define if you have the socket library (-lsocket). */ #undef HAVE_LIBSOCKET /* Name of package */ #undef PACKAGE /* Version number of package */ #undef VERSION /* Number of bits in a file offset, on hosts where this is settable. case in # HP-UX 10.20 and later hpux10.2-90-9* | hpux11-9* | hpux2-90-9*) ac_cv_sys_file_offset_bits=64 ;; esac */ #undef _FILE_OFFSET_BITS /* Define to make fseeko etc. visible, on some hosts. */ #undef _LARGEFILE_SOURCE /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define if compiler has function prototypes */ #undef PROTOTYPES /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_INTTYPES_H /* Define if there is a member named d_ino in the struct describing directory headers. */ #undef D_INO_IN_DIRENT /* Define if you have the unsigned long long type. */ #undef HAVE_UNSIGNED_LONG_LONG /* Define to `unsigned long' or `unsigned long long' if doesn't define. */ #undef uintmax_t /* Define if the malloc check has been performed. */ #undef HAVE_DONE_WORKING_MALLOC_CHECK /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to rpl_mktime if the replacement function should be used. */ #undef mktime /* Define if the realloc check has been performed. */ #undef HAVE_DONE_WORKING_REALLOC_CHECK /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc /* Define if using the dmalloc debugging malloc package */ #undef WITH_DMALLOC /* Define to 1 if you have the stpcpy function. */ #undef HAVE_STPCPY /* Define if your locale.h file contains LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if NLS is requested. */ #undef ENABLE_NLS /* Define to 1 if you have gettext and don't want to use GNU gettext. */ #undef HAVE_GETTEXT /* Define as 1 if you have catgets and don't want to use GNU gettext. */ #undef HAVE_CATGETS tar-1.13/config.sub0000444000176300016070000004774506707233120007711 #! /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. # 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. # 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. # 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. # 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. if [ x$1 = x ] then echo Configuration name missing. 1>&2 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 echo "or $0 ALIAS" 1>&2 echo where ALIAS is a recognized configuration type. 1>&2 exit 1 fi # First pass through any local machine types. case $1 in *local*) echo $1 exit 0 ;; *) ;; esac # 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 linux-gnu*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### 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 -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple) os= basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | 580 | i960 | h8300 \ | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w \ | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ | 1750a | dsp16xx | pdp11 | mips64 | mipsel | mips64el \ | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | sparc | sparclet | sparclite | sparc64 | v850) basic_machine=$basic_machine-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i[34567]86) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ | xmp-* | ymp-* \ | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67] \ | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | clipper-* | orion-* \ | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | sparc64-* | mips64-* | mipsel-* \ | mips64el-* | mips64orion-* | mips64orionel-* \ | mipstx39-* | mipstx39el-* \ | f301-* | armv*-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-cbm ;; amigaos | amigados) basic_machine=m68k-cbm os=-amigaos ;; amigaunix | amix) basic_machine=m68k-cbm os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | ymp) basic_machine=ymp-cray os=-unicos ;; cray2) basic_machine=cray2-cray os=-unicos ;; [ctj]90-cray) basic_machine=c90-cray os=-unicos ;; crds | unos) basic_machine=m68k-crds ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp os=-mpeix ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp os=-mpeix ;; i370-ibm* | ibm*) basic_machine=i370-ibm os=-mvs ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i[34567]86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i[34567]86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i[34567]86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i[34567]86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; miniframe) basic_machine=m68000-convergent ;; mipsel*-linux*) basic_machine=mipsel-unknown os=-linux-gnu ;; mips*-linux*) basic_machine=mips-unknown os=-linux-gnu ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netwinder) basic_machine=armv4l-corel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; np1) basic_machine=np1-gould ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5 | k5 | k6 | nexen) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86) basic_machine=i686-pc ;; pentiumii | pentium2) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexen-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=rs6000-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; symmetry) basic_machine=i386-sequent os=-dynix ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; tower | tower-32) basic_machine=m68k-ncr ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; xmp) basic_machine=xmp-cray os=-unicos ;; xps | xps100) basic_machine=xps100-honeywell ;; *mint | *MiNT) basic_machine=m68k-atari os=-mint ;; none) basic_machine=none-none os=-none ;; # 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. mips) if [ x$os = x-linux-gnu ]; then basic_machine=mips-unknown else basic_machine=mips-mips fi ;; romp) basic_machine=romp-ibm ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sparc) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \ | -openstep* | -mpeix* | -oskit*) # Remember, each alternative MUST END IN *, to match a version number. ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -ctix* | -uts*) os=-sysv ;; -ns2 ) os=-nextstep2 ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -xenix) os=-xenix ;; -*mint | -*MiNT) os=-mint ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # 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. # 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. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-corel) os=-linux ;; arm*-semi) os=-aout ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-ibm) os=-aix ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f301-fujitsu) os=-uxpv ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # 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 *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs*) vendor=ibm ;; -ptx*) vendor=sequent ;; -vxsim* | -vxworks*) vendor=wrs ;; -aux*) vendor=apple ;; -*mint | -*MiNT) vendor=atari ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os tar-1.13/configure0000775000176300016070000055630406740607337007654 #! /bin/sh # 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. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help --disable-largefile omit support for large files" ac_help="$ac_help --with-dmalloc use dmalloc, as in ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" ac_help="$ac_help --disable-nls do not use Native Language Support" ac_help="$ac_help --with-included-gettext use the GNU gettext library included here" ac_help="$ac_help --with-catgets use catgets functions if available" # 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' # 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 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # 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 exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # 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 case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # 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 # 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 # 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 # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi 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 ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fi done if test -z "$ac_aux_dir"; then { 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. # 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 echo $ac_n "checking host system type""... $ac_c" 1>&6 echo "configure:566: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac 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 # 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 echo $ac_n "(cached) $ac_c" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ac_t""$INSTALL" 1>&6 # 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}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 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 ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "$*" != "X $srcdir/configure conftestfile" \ && test "$*" != "X conftestfile $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } fi test "$2" = conftestfile ) then # Ok. : else { 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 program_transform_name= else # Double any \ or $. echo might interpret backslashes. cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED program_transform_name="`echo $program_transform_name|sed -f conftestsed`" rm -f conftestsed fi test "$program_prefix" != NONE && program_transform_name="s,^,${program_prefix},; $program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftestmake <<\EOF all: @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 eval ac_cv_prog_make_${ac_make}_set=yes else 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 echo "$ac_t""yes" 1>&6 SET_MAKE= else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi PACKAGE=tar VERSION=1.13 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { 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 ACLOCAL=aclocal echo "$ac_t""found" 1>&6 else ACLOCAL="$missing_dir/missing aclocal" echo "$ac_t""missing" 1>&6 fi 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 AUTOCONF=autoconf echo "$ac_t""found" 1>&6 else AUTOCONF="$missing_dir/missing autoconf" echo "$ac_t""missing" 1>&6 fi 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 AUTOMAKE=automake echo "$ac_t""found" 1>&6 else AUTOMAKE="$missing_dir/missing automake" echo "$ac_t""missing" 1>&6 fi 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 AUTOHEADER=autoheader echo "$ac_t""found" 1>&6 else AUTOHEADER="$missing_dir/missing autoheader" echo "$ac_t""missing" 1>&6 fi 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 MAKEINFO=makeinfo echo "$ac_t""found" 1>&6 else MAKEINFO="$missing_dir/missing makeinfo" echo "$ac_t""missing" 1>&6 fi cat >> confdefs.h <<\EOF #define _GNU_SOURCE 1 EOF ALL_LINGUAS="cs de es fr it ko nl no pl pt ru sl sv" # 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi 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 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 cat > conftest.$ac_ext << EOF #line 952 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 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 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { 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 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi 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 CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. 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 : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" 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 : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" 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 : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 if test $ac_cv_prog_gcc = yes; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < Autoconf TIOCGETP EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "$ac_pattern" >/dev/null 2>&1; then rm -rf conftest* ac_cv_prog_gcc_traditional=yes else rm -rf conftest* ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "$ac_pattern" >/dev/null 2>&1; then rm -rf conftest* ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi echo $ac_n "checking for AIX""... $ac_c" 1>&6 echo "configure:1175: checking for AIX" >&5 cat > conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF #define _ALL_SOURCE 1 EOF else rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 MINIX=yes else echo "$ac_t""no" 1>&6 MINIX= fi if test "$MINIX" = yes; then cat >> confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF cat >> confdefs.h <<\EOF #define _POSIX_1_SOURCE 2 EOF cat >> confdefs.h <<\EOF #define _MINIX 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_cygwin=no fi rm -f conftest* rm -f conftest* fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_mingw32=no fi rm -f conftest* rm -f conftest* fi echo "$ac_t""$ac_cv_mingw32" 1>&6 MINGW32= test "$ac_cv_mingw32" = yes && MINGW32=yes 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$CYGWIN" = yes || test "$MINGW32" = yes; then ac_cv_exeext=.exe else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; esac done else { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } fi rm -f conftest* test x"${ac_cv_exeext}" = x && ac_cv_exeext=no fi fi EXEEXT="" test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} echo "$ac_t""${ac_cv_exeext}" 1>&6 ac_exeext=$EXEEXT # 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_YACC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then echo "$ac_t""$YACC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:1408: checking build system type" >&5 build_alias=$build case "$build_alias" in NONE) case $nonopt in NONE) build_alias=$host_alias ;; *) build_alias=$nonopt ;; esac ;; esac 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 if test $host != $build; then ac_tool_prefix=${host_alias}- else ac_tool_prefix= fi # Check whether --enable-largefile or --disable-largefile was given. if test "${enable_largefile+set}" = set; then enableval="$enable_largefile" : fi if test "$enable_largefile" != no; then # 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$GETCONF"; then ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_GETCONF="${ac_tool_prefix}getconf" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf" fi fi GETCONF="$ac_cv_prog_GETCONF" if test -n "$GETCONF"; then echo "$ac_t""$GETCONF" 1>&6 else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || { ac_cv_sys_largefile_CFLAGS=no case "$host_os" in # IRIX 6.2 and later require cc -n32. irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) if test "$GCC" != yes; then ac_cv_sys_largefile_CFLAGS=-n32 fi ac_save_CC="$CC" CC="$CC $ac_cv_sys_largefile_CFLAGS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_sys_largefile_CFLAGS=no fi rm -f conftest* CC="$ac_save_CC" esac } fi echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || { ac_cv_sys_largefile_LDFLAGS=no } fi echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || { ac_cv_sys_largefile_LIBS=no } fi echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in no) ;; -D_FILE_OFFSET_BITS=*) ;; -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; -D_LARGE_FILES | -D_LARGE_FILES=*) ;; -D?* | -I?*) case "$ac_flag" in no) ;; ?*) case "$CPPFLAGS" in '') CPPFLAGS="$ac_flag" ;; *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;; esac ;; esac ;; *) case "$ac_flag" in no) ;; ?*) case "$CFLAGS" in '') CFLAGS="$ac_flag" ;; *) CFLAGS=$CFLAGS' '"$ac_flag" ;; esac ;; esac ;; esac done case "$ac_cv_sys_largefile_LDFLAGS" in no) ;; ?*) case "$LDFLAGS" in '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;; *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;; esac ;; esac case "$ac_cv_sys_largefile_LIBS" in no) ;; ?*) case "$LIBS" in '') LIBS="$ac_cv_sys_largefile_LIBS" ;; *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;; esac ;; esac 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_file_offset_bits=no for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in -D_FILE_OFFSET_BITS) ac_cv_sys_file_offset_bits=1 ;; -D_FILE_OFFSET_BITS=*) ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; esac done fi echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 if test "$ac_cv_sys_file_offset_bits" != no; then cat >> confdefs.h <&6 echo "configure:1602: checking for _LARGEFILE_SOURCE" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_largefile_source=no case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_largefile_source=1 ;; esac for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in -D_LARGEFILE_SOURCE) ac_cv_sys_largefile_source=1 ;; -D_LARGEFILE_SOURCE=*) ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; esac done fi echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 if test "$ac_cv_sys_largefile_source" != no; then cat >> confdefs.h <&6 echo "configure:1631: checking for _LARGE_FILES" >&5 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_large_files=no case "$host_os" in # AIX 4.2 and later aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) ac_cv_sys_large_files=1 ;; esac for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in -D_LARGE_FILES) ac_cv_sys_large_files=1 ;; -D_LARGE_FILES=*) ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; esac done fi echo "$ac_t""$ac_cv_sys_large_files" 1>&6 if test "$ac_cv_sys_large_files" != no; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lcposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lcposix" else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 CC="$ac_save_CC $ac_arg" 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) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); 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; int main() { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } EOF if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_prog_cc_stdc="$ac_arg"; break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done CC="$ac_save_CC" fi if test -z "$am_cv_prog_cc_stdc"; then echo "$ac_t""none needed" 1>&6 else echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac 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 echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define PROTOTYPES 1 EOF U= ANSI2KNR= else echo "$ac_t""no" 1>&6 U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # 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 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # 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 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else 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); } 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 : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } ; return 0; } EOF if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_const=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then cat >> confdefs.h <<\EOF #define const EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done fi echo "$ac_t""$ac_cv_c_inline" 1>&6 case "$ac_cv_c_inline" in inline | yes) ;; no) cat >> confdefs.h <<\EOF #define inline EOF ;; *) 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_unsigned_long=4 else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(unsigned long)); 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 ac_cv_sizeof_unsigned_long=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_unsigned_long=0 fi rm -fr conftest* fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_long_long=0 else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(long long)); 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 ac_cv_sizeof_long_long=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long_long=0 fi rm -fr conftest* fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* jm_ac_cv_header_inttypes_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* jm_ac_cv_header_inttypes_h=no fi rm -f conftest* fi echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 if test $jm_ac_cv_header_inttypes_h = yes; then 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. 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* tar_cv_header_utime_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tar_cv_header_utime_h=no fi rm -f conftest* fi 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 if test $ac_cv_header_sys_mtio_h = yes; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* tar_cv_header_rmt=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tar_cv_header_rmt=no fi rm -f conftest* fi echo "$ac_t""$tar_cv_header_rmt" 1>&6 test $tar_cv_header_rmt = yes && RMT=rmt fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "getgrgid" >/dev/null 2>&1; then rm -rf conftest* tar_cv_header_getgrgid=yes else rm -rf conftest* tar_cv_header_getgrgid=no fi rm -f conftest* fi echo "$ac_t""$tar_cv_header_getgrgid" 1>&6 test $tar_cv_header_getgrgid = yes && cat >> confdefs.h <<\EOF #define HAVE_GETGRGID 1 EOF 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "getpwuid" >/dev/null 2>&1; then rm -rf conftest* tar_cv_header_getpwuid=yes else rm -rf conftest* tar_cv_header_getpwuid=no fi rm -f conftest* fi echo "$ac_t""$tar_cv_header_getpwuid" 1>&6 test $tar_cv_header_getpwuid = yes && cat >> confdefs.h <<\EOF #define HAVE_GETPWUID 1 EOF 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "mt_model" >/dev/null 2>&1; then rm -rf conftest* tar_cv_header_mtio_check_field=mt_model else rm -rf conftest* tar_cv_header_mtio_check_field=mt_type fi rm -f conftest* fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* 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 echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -ldir" else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lx" else echo "$ac_t""no" 1>&6 fi fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_header_sys_types_h_makedev=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_sys_types_h_makedev=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define MAJOR_IN_MKDEV 1 EOF else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define MAJOR_IN_SYSMACROS 1 EOF else echo "$ac_t""no" 1>&6 fi fi fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #if defined(S_ISBLK) && defined(S_IFDIR) # if S_ISBLK (S_IFDIR) You lose. # endif #endif #if defined(S_ISBLK) && defined(S_IFCHR) # if S_ISBLK (S_IFCHR) You lose. # endif #endif #if defined(S_ISLNK) && defined(S_IFREG) # if S_ISLNK (S_IFREG) You lose. # endif #endif #if defined(S_ISSOCK) && defined(S_IFREG) # if S_ISSOCK (S_IFREG) You lose. # endif #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "You lose" >/dev/null 2>&1; then rm -rf conftest* ac_cv_header_stat_broken=yes else rm -rf conftest* ac_cv_header_stat_broken=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 if test $ac_cv_header_stat_broken = yes; then cat >> confdefs.h <<\EOF #define STAT_MACROS_BROKEN 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # 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 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # 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 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else 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); } 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 : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_header_time=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_time=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_time" 1>&6 if test $ac_cv_header_time = yes; then cat >> confdefs.h <<\EOF #define TIME_WITH_SYS_TIME 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_struct_st_blksize=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_struct_st_blksize=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 if test $ac_cv_struct_st_blksize = yes; then cat >> confdefs.h <<\EOF #define HAVE_ST_BLKSIZE 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_struct_st_blocks=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_struct_st_blocks=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 if test $ac_cv_struct_st_blocks = yes; then cat >> confdefs.h <<\EOF #define HAVE_ST_BLOCKS 1 EOF else LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 */ 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 rm -rf conftest* jm_cv_struct_dirent_d_ino=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* jm_cv_struct_dirent_d_ino=no fi rm -f conftest* fi echo "$ac_t""$jm_cv_struct_dirent_d_ino" 1>&6 if test $jm_cv_struct_dirent_d_ino = yes; then cat >> confdefs.h <<\EOF #define D_INO_IN_DIRENT 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* diff_cv_st_fstype_string=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* diff_cv_st_fstype_string=no fi rm -f conftest* fi echo "$ac_t""$diff_cv_st_fstype_string" 1>&6 if test $diff_cv_st_fstype_string = yes; then cat >> confdefs.h <<\EOF #define HAVE_ST_FSTYPE_STRING 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #ifdef signal #undef signal #endif #ifdef __cplusplus extern "C" void (*signal (int, void (*)(int)))(int); #else void (*signal ()) (); #endif int main() { int i; ; return 0; } EOF if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_signal=int fi rm -f conftest* fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_mode_t=yes else rm -rf conftest* ac_cv_type_mode_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_mode_t" 1>&6 if test $ac_cv_type_mode_t = no; then cat >> confdefs.h <<\EOF #define mode_t int EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_pid_t=yes else rm -rf conftest* ac_cv_type_pid_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_pid_t" 1>&6 if test $ac_cv_type_pid_t = no; then cat >> confdefs.h <<\EOF #define pid_t int EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_off_t=yes else rm -rf conftest* ac_cv_type_off_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_off_t" 1>&6 if test $ac_cv_type_off_t = no; then cat >> confdefs.h <<\EOF #define off_t long EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_size_t=yes else rm -rf conftest* ac_cv_type_size_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_size_t" 1>&6 if test $ac_cv_type_size_t = no; then cat >> confdefs.h <<\EOF #define size_t unsigned EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "uid_t" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_uid_t=yes else rm -rf conftest* ac_cv_type_uid_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_uid_t" 1>&6 if test $ac_cv_type_uid_t = no; then cat >> confdefs.h <<\EOF #define uid_t int EOF cat >> confdefs.h <<\EOF #define gid_t int EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_daddr_t=yes else rm -rf conftest* ac_cv_type_daddr_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 if test $ac_cv_type_daddr_t = no; then cat >> confdefs.h <<\EOF #define daddr_t long EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_major_t=yes else rm -rf conftest* ac_cv_type_major_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_major_t" 1>&6 if test $ac_cv_type_major_t = no; then cat >> confdefs.h <<\EOF #define major_t int EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_minor_t=yes else rm -rf conftest* ac_cv_type_minor_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_minor_t" 1>&6 if test $ac_cv_type_minor_t = no; then cat >> confdefs.h <<\EOF #define minor_t int EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_ssize_t=yes else rm -rf conftest* ac_cv_type_ssize_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 if test $ac_cv_type_ssize_t = no; then cat >> confdefs.h <<\EOF #define ssize_t int EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_unsigned_long_long=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_unsigned_long_long=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 if test $ac_cv_type_unsigned_long_long = yes; then cat >> confdefs.h <<\EOF #define HAVE_UNSIGNED_LONG_LONG 1 EOF fi if test $jm_ac_cv_header_inttypes_h = no; then test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' cat >> confdefs.h <&6 echo "configure:3352: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in yes,no) 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done ;; esac 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* tar_cv_func_mknod=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tar_cv_func_mknod=no fi rm -f conftest* fi echo "$ac_t""$tar_cv_func_mknod" 1>&6 test $tar_cv_func_mknod = yes && cat >> confdefs.h <<\EOF #define HAVE_MKNOD 1 EOF # 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. 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char gethostent(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostent) || defined (__stub___gethostent) choke me #else gethostent(); #endif ; return 0; } EOF if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostent=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_gethostent=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_gethostent = no; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char setsockopt(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_setsockopt) || defined (__stub___setsockopt) choke me #else setsockopt(); #endif ; return 0; } EOF if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_setsockopt=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_setsockopt=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_setsockopt = no; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi fi # 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* ac_cv_header_alloca_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_alloca_h=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif 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 rm -rf conftest* ac_cv_func_alloca_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_alloca_works=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF fi if test $ac_cv_func_alloca_works = no; then # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=alloca.${ac_objext} cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF 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 echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5 | egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi 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 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <&6 fi done fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { 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 ac_cv_c_stack_direction=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else # 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 ac_cv_func_fnmatch_works=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_fnmatch_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_fnmatch_works=no fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6 if test $ac_cv_func_fnmatch_works = yes; then cat >> confdefs.h <<\EOF #define HAVE_FNMATCH 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char vprintf(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_vprintf) || defined (__stub___vprintf) choke me #else vprintf(); #endif ; return 0; } EOF if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_vprintf=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_VPRINTF 1 EOF else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char _doprnt(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub__doprnt) || defined (__stub____doprnt) choke me #else _doprnt(); #endif ; return 0; } EOF if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func__doprnt=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_DOPRNT 1 EOF else echo "$ac_t""no" 1>&6 fi fi for ac_func in execlp ftruncate lchown memset mkdir rename rmdir \ 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done cat >> confdefs.h <&6 echo "configure:4244: checking for working malloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then jm_cv_func_working_malloc=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then jm_cv_func_working_malloc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* jm_cv_func_working_malloc=no fi rm -fr conftest* fi fi echo "$ac_t""$jm_cv_func_working_malloc" 1>&6 if test $jm_cv_func_working_malloc = no; then LIBOBJS="$LIBOBJS malloc.$ac_objext" cat >> confdefs.h <&6 echo "configure:4292: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_func_working_mktime=no else cat > conftest.$ac_ext < # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_UNISTD_H # include #endif #if !HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { (const char *) 0, "TZ=GMT0", "TZ=JST-9", "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])) /* Fail if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test) */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; if (mktime (&tm) == (time_t)-1) exit (1); } static void mktime_test (now) time_t now; { struct tm *lt; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); now = time_t_max - now; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); } static void irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); if (tm.tm_mon != 2 || tm.tm_mday != 31) exit (1); } static void bigtime_test (j) int j; { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) exit (1); } } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) continue; time_t_max--; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) mktime_test (t); mktime_test ((time_t) 60 * 60); mktime_test ((time_t) 60 * 60 * 24); for (j = 1; 0 < j; j *= 2) bigtime_test (j); bigtime_test (j - 1); } irix_6_4_bug (); spring_forward_gap (); exit (0); } 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 ac_cv_func_working_mktime=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_working_mktime=no fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 if test $ac_cv_func_working_mktime = no; then LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done if test $ac_cv_func_working_mktime = no; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then jm_cv_func_working_realloc=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then jm_cv_func_working_realloc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* jm_cv_func_working_realloc=no fi rm -fr conftest* fi fi echo "$ac_t""$jm_cv_func_working_realloc" 1>&6 if test $jm_cv_func_working_realloc = no; then LIBOBJS="$LIBOBJS realloc.$ac_objext" cat >> confdefs.h <&6 echo "configure:4682: checking for 3-argument open" >&5 if eval "test \"`echo '$''{'tar_cv_func_open3'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* tar_cv_func_open3=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tar_cv_func_open3=no fi rm -f conftest* fi echo "$ac_t""$tar_cv_func_open3" 1>&6 if test $tar_cv_func_open3 = no; then cat >> confdefs.h <<\EOF #define EMUL_OPEN3 1 EOF fi # `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. 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* tar_cv_header_union_wait=no else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tar_cv_header_union_wait=yes fi rm -f conftest* fi 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 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RSH"; then tar_cv_path_RSH=$RSH else tar_cv_path_RSH=no for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \ /usr/bin/nsh /usr/bin/rcmd do if test -f $ac_file; then tar_cv_path_RSH=$ac_file break fi done fi fi echo "$ac_t""$tar_cv_path_RSH" 1>&6 if test $tar_cv_path_RSH = no; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done else cat >> confdefs.h <&6 echo "configure:4831: checking for default archive" >&5 if test -z "$DEFAULT_ARCHIVE"; then DEFAULT_ARCHIVE=- else if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then echo "configure: warning: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" 1>&2 fi # FIXME: Look for DEFTAPE in . # FIXME: Let DEVICE_PREFIX be configured from the environment. # FIXME: Rearrange, here. case $DEFAULT_ARCHIVE in *[0-7][lmh]) device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'` cat >> confdefs.h <> confdefs.h <<\EOF #define DENSITY_LETTER 1 EOF ;; *[0-7]) device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'` cat >> confdefs.h <> confdefs.h <&6 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 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 withval="$with_dmalloc" if test "$withval" = yes; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define WITH_DMALLOC 1 EOF LIBS="$LIBS -ldmalloc" LDFLAGS="$LDFLAGS -g" else echo "$ac_t""no" 1>&6 fi else echo "$ac_t""no" 1>&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext < #include #include /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef HAVE_UNISTD_H # include # endif /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # 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 */ #endif /* no HAVE_GETPAGESIZE */ #ifdef __cplusplus extern "C" { void *malloc(unsigned); } #else char *malloc(); #endif int main() { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize(); /* * First, make a file with some known garbage in it. */ data = malloc(pagesize); if (!data) exit(1); for (i = 0; i < pagesize; ++i) *(data + i) = rand(); umask(0); fd = creat("conftestmmap", 0600); if (fd < 0) exit(1); if (write(fd, data, pagesize) != pagesize) exit(1); close(fd); /* * Next, try to mmap the file at a fixed address which * already has something else allocated at it. If we can, * also make sure that we see the same garbage. */ fd = open("conftestmmap", O_RDWR); if (fd < 0) exit(1); data2 = malloc(2 * pagesize); if (!data2) exit(1); data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) exit(1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) exit(1); /* * Finally, make sure that changes to the mapped area * do not percolate back to the file as seen by read(). * (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = malloc(pagesize); if (!data3) exit(1); if (read(fd, data3, pagesize) != pagesize) exit(1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) exit(1); close(fd); unlink("conftestmmap"); exit(0); } 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 ac_cv_func_mmap_fixed_mapped=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_mmap_fixed_mapped=no fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >> confdefs.h <<\EOF #define HAVE_MMAP 1 EOF fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done if test "${ac_cv_func_stpcpy+set}" != "set"; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done fi if test "${ac_cv_func_stpcpy}" = "yes"; then cat >> confdefs.h <<\EOF #define HAVE_STPCPY 1 EOF fi if test $ac_cv_header_locale_h = yes; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* am_cv_val_LC_MESSAGES=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* am_cv_val_LC_MESSAGES=no fi rm -f conftest* fi echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 if test $am_cv_val_LC_MESSAGES = yes; then cat >> confdefs.h <<\EOF #define HAVE_LC_MESSAGES 1 EOF fi fi echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 echo "configure:5364: checking whether NLS is requested" >&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" USE_NLS=$enableval else USE_NLS=yes fi echo "$ac_t""$USE_NLS" 1>&6 USE_INCLUDED_LIBINTL=no if test "$USE_NLS" = "yes"; then cat >> confdefs.h <<\EOF #define ENABLE_NLS 1 EOF echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 echo "configure:5384: checking whether included gettext is requested" >&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" nls_cv_force_use_gnu_gettext=$withval else nls_cv_force_use_gnu_gettext=no fi echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then nls_cv_header_intl= nls_cv_header_libgt= CATOBJEXT=NONE 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* gt_cv_func_gettext_libc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gt_cv_func_gettext_libc=no fi rm -f conftest* fi echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 if test "$gt_cv_func_gettext_libc" != "yes"; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi else echo "$ac_t""no" 1>&6 fi fi if test "$gt_cv_func_gettext_libc" = "yes" \ || test "$ac_cv_lib_intl_gettext" = "yes"; then cat >> confdefs.h <<\EOF #define HAVE_GETTEXT 1 EOF # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then echo "$ac_t""$MSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$MSGFMT" != "no"; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named 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 ; return 0; } EOF if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMSGFMT" in /*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ac_t""$GMSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ac_t""$XGETTEXT" 1>&6 else echo "$ac_t""no" 1>&6 fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* CATOBJEXT=.gmo DATADIRNAME=share else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CATOBJEXT=.mo DATADIRNAME=lib fi rm -f conftest* INSTOBJEXT=.mo fi fi else echo "$ac_t""no" 1>&6 fi if test "$CATOBJEXT" = "NONE"; then echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 echo "configure:5742: checking whether catgets can be used" >&5 # Check whether --with-catgets or --without-catgets was given. if test "${with_catgets+set}" = set; then withval="$with_catgets" nls_cv_use_catgets=$withval else nls_cv_use_catgets=no fi echo "$ac_t""$nls_cv_use_catgets" 1>&6 if test "$nls_cv_use_catgets" = "yes"; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-li $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 fi 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 builtin and then its argument prototype would still apply. */ char catgets(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_catgets) || defined (__stub___catgets) choke me #else catgets(); #endif ; return 0; } EOF if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_catgets=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_catgets=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_CATGETS 1 EOF INTLOBJS="\$(CATOBJS)" # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$GENCAT" in /*) ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_GENCAT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" ;; esac fi GENCAT="$ac_cv_path_GENCAT" if test -n "$GENCAT"; then echo "$ac_t""$GENCAT" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$GENCAT" != "no"; then # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMSGFMT" in /*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ac_t""$GMSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$GMSGFMT" = "no"; then # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMSGFMT" in /*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ac_t""$GMSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi fi # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ac_t""$XGETTEXT" 1>&6 else echo "$ac_t""no" 1>&6 fi USE_INCLUDED_LIBINTL=yes CATOBJEXT=.cat INSTOBJEXT=.cat DATADIRNAME=lib INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi else echo "$ac_t""no" 1>&6 fi fi fi if test "$CATOBJEXT" = "NONE"; then nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then INTLOBJS="\$(GETTOBJS)" # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then echo "$ac_t""$MSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMSGFMT" in /*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ac_t""$GMSGFMT" 1>&6 else echo "$ac_t""no" 1>&6 fi # 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 echo $ac_n "(cached) $ac_c" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ac_t""$XGETTEXT" 1>&6 else echo "$ac_t""no" 1>&6 fi USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INSTOBJEXT=.mo DATADIRNAME=share INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po else DATADIRNAME=share nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test -z "$nls_cv_header_intl"; then # Clean out junk possibly left behind by a previous configuration. rm -f intl/libintl.h fi # If this is used in GNU gettext we have to set USE_NLS to `yes' # because some of the sources are only built for this goal. if test "$PACKAGE" = gettext; then USE_NLS=yes USE_INCLUDED_LIBINTL=yes fi for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 echo "configure:6181: checking for catalogs to be installed" >&5 NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS echo "$ac_t""$LINGUAS" 1>&6 fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi if test $ac_cv_header_locale_h = yes; then INCLUDE_LOCALE_H="#include " else INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" fi test -d intl || mkdir intl if test "$CATOBJEXT" = ".cat"; then 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 echo $ac_n "(cached) $ac_c" 1>&6 else 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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 msgformat=linux else echo "$ac_t""no" 1>&6 msgformat=xopen fi sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed fi sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed if test "$PACKAGE" = "gettext"; then GT_NO="#NO#" GT_YES= else GT_NO= GT_YES="#YES#" fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi l= test -d po || mkdir po case "$srcdir" in .) posrcprefix="../" ;; /* | [A-Za-z]:*) posrcprefix="$srcdir/" ;; *) posrcprefix="../$srcdir/" ;; esac rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES # 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" # 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/'` 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 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # 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 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 DEFS=-DHAVE_CONFIG_H # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} 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. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" 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 CEOF EOF cat >> $CONFIG_STATUS <<\EOF # 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 if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 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* # 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' 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 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.in EOF # 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 # 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 # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail while : do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in ' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals cat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fi fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF srcdir=$ac_given_srcdir while test -n "$ac_sources"; do set $ac_dests; ac_dest=$1; shift; ac_dests=$* set $ac_sources; ac_source=$1; shift; ac_sources=$* echo "linking $srcdir/$ac_source to $ac_dest" if test ! -r $srcdir/$ac_source; then { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } fi rm -f $ac_dest # Make relative symlinks. # Remove last slash and all that follows it. Not all systems have dirname. ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then # The dest file is in a subdirectory. test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dest_dir_suffix. ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dest_dir_suffix= ac_dots= fi case "$srcdir" in [/$]*) ac_rel_source="$srcdir/$ac_source" ;; *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; esac # Make a symlink if possible; otherwise try a hard link. if ln -s $ac_rel_source $ac_dest 2>/dev/null || ln $srcdir/$ac_source $ac_dest; then : else { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } fi done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 tar-1.13/configure.in0000444000176300016070000001776606740607316010253 # Configure template for GNU tar. # Copyright 1991, 94, 95, 96, 97, 98, 1999 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. 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" 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) 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) jm_AC_HEADER_INTTYPES_H # 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. AC_CACHE_CHECK(for utime.h, tar_cv_header_utime_h, [AC_TRY_COMPILE([ #include #include ], [struct utimbuf foo], tar_cv_header_utime_h=yes, tar_cv_header_utime_h=no)]) test $tar_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H) if test $ac_cv_header_sys_mtio_h = yes; then AC_CACHE_CHECK(for remote tape header files, tar_cv_header_rmt, [AC_TRY_CPP([ #if HAVE_SGTTY_H # include #endif #include ], tar_cv_header_rmt=yes, tar_cv_header_rmt=no)]) test $tar_cv_header_rmt = yes && RMT=rmt AC_SUBST(RMT) fi AC_CACHE_CHECK(for getgrgid declaration, tar_cv_header_getgrgid, [AC_EGREP_HEADER(getgrgid, grp.h, tar_cv_header_getgrgid=yes, tar_cv_header_getgrgid=no)]) test $tar_cv_header_getgrgid = yes && AC_DEFINE(HAVE_GETGRGID) AC_CACHE_CHECK(for getpwuid declaration, tar_cv_header_getpwuid, [AC_EGREP_HEADER(getpwuid, pwd.h, tar_cv_header_getpwuid=yes, tar_cv_header_getpwuid=no)]) test $tar_cv_header_getpwuid = yes && AC_DEFINE(HAVE_GETPWUID) AC_CACHE_CHECK(which ioctl field to test for reversed bytes, tar_cv_header_mtio_check_field, [AC_EGREP_HEADER(mt_model, sys/mtio.h, tar_cv_header_mtio_check_field=mt_model, tar_cv_header_mtio_check_field=mt_type)]) AC_DEFINE_UNQUOTED(MTIO_CHECK_FIELD, $tar_cv_header_mtio_check_field) 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, [AC_TRY_COMPILE([#include #include ], [struct stat s; s.st_fstype[0] = 'x';], diff_cv_st_fstype_string=yes, diff_cv_st_fstype_string=no)]) AC_MSG_RESULT($diff_cv_st_fstype_string) if test $diff_cv_st_fstype_string = yes; then AC_DEFINE(HAVE_ST_FSTYPE_STRING) fi 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 AC_CHECK_FUNCS(fsync ftime getcwd isascii mkfifo nap napms poll \ select strerror strstr usleep) AC_CACHE_CHECK(for mknod, tar_cv_func_mknod, [AC_TRY_LINK([ #include #include ], [mknod (0, 0, 0)], tar_cv_func_mknod=yes, tar_cv_func_mknod=no)]) test $tar_cv_func_mknod = yes && AC_DEFINE(HAVE_MKNOD) # 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. AC_CHECK_FUNC(gethostent) if test $ac_cv_func_gethostent = no; then AC_CHECK_LIB(nsl, gethostent) fi AC_CHECK_FUNC(setsockopt) if test $ac_cv_func_setsockopt = no; then AC_CHECK_LIB(socket, setsockopt) fi 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 \ strtol strtoul) jm_FUNC_MALLOC jm_FUNC_MKTIME jm_FUNC_REALLOC test "$ac_cv_func_strstr" = yes || LIBOBJS="$LIBOBJS strstr.o" # The 3-argument open happens to go along with the O_* defines, which # are easier to check for. AC_CACHE_CHECK(for 3-argument open, tar_cv_func_open3, [AC_TRY_COMPILE([ #if HAVE_FCNTL_H # include #else # include #endif], [int x = O_RDONLY], tar_cv_func_open3=yes, tar_cv_func_open3=no)]) if test $tar_cv_func_open3 = no; then AC_DEFINE(EMUL_OPEN3) fi # `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. AC_CACHE_CHECK(for union wait, tar_cv_header_union_wait, [AC_TRY_COMPILE([ #include #if HAVE_SYS_WAIT_H # include #endif], [int status; int pid; pid = wait (&status);], tar_cv_header_union_wait=no, tar_cv_header_union_wait=yes)]) test $tar_cv_header_union_wait = yes && AC_DEFINE(HAVE_UNION_WAIT) AC_CACHE_CHECK(for remote shell, tar_cv_path_RSH, [if test -n "$RSH"; then tar_cv_path_RSH=$RSH else tar_cv_path_RSH=no for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \ /usr/bin/nsh /usr/bin/rcmd do if test -f $ac_file; then tar_cv_path_RSH=$ac_file break fi done fi]) if test $tar_cv_path_RSH = no; then AC_CHECK_HEADERS(netdb.h) else AC_DEFINE_UNQUOTED(REMOTE_SHELL, "$tar_cv_path_RSH") fi AC_MSG_CHECKING(for default archive) if test -z "$DEFAULT_ARCHIVE"; then DEFAULT_ARCHIVE=- else if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then AC_MSG_WARN(DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system) fi # FIXME: Look for DEFTAPE in . # FIXME: Let DEVICE_PREFIX be configured from the environment. # FIXME: Rearrange, here. case $DEFAULT_ARCHIVE in changequote(, )dnl *[0-7][lmh]) device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'` changequote([, ])dnl AC_DEFINE_UNQUOTED(DEVICE_PREFIX, "$device_prefix") AC_DEFINE(DENSITY_LETTER) ;; changequote(, )dnl *[0-7]) device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'` changequote([, ])dnl AC_DEFINE_UNQUOTED(DEVICE_PREFIX, "$device_prefix") ;; esac fi AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE, "$DEFAULT_ARCHIVE") AC_MSG_RESULT($DEFAULT_ARCHIVE) AC_MSG_CHECKING(for default blocking) DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20} AC_DEFINE_UNQUOTED(DEFAULT_BLOCKING, $DEFAULT_BLOCKING) AC_MSG_RESULT($DEFAULT_BLOCKING) AM_WITH_DMALLOC AM_GNU_GETTEXT # 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" # 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/'` AC_OUTPUT([Makefile doc/Makefile intl/Makefile lib/Makefile \ m4/Makefile po/Makefile.in \ scripts/Makefile src/Makefile tests/Makefile tests/preset]) tar-1.13/install-sh0000555000176300016070000001274306666765520007745 #!/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. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: chmodcmd="" else instcmd=$mkdirprog fi else # 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 '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # 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 if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # 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. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 tar-1.13/missing0000555000176300016070000001420206647032060007311 #! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997 Free Software Foundation, Inc. # Franc,ois Pinard , 1996. # 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. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing - GNU libit 0.0" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`configure.in'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` if test -z "$files"; then files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` test -z "$files" || files="$files.in" else files=`echo "$files" | sed -e 's/:/ /g'` fi test -z "$files" && files="config.h.in" touch $files ;; automake) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print \ | sed 's/^\(.*\).am$/touch \1.in/' \ | sh ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 tar-1.13/mkinstalldirs0000555000176300016070000000132206647445675010543 #! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain # $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr fi fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here tar-1.13/PORTS0000444000176300016070000001162706737050403006555 * Ports of GNU tar and other micro-tars -*- outline -*- Please write tar-bugs@gnu.org if you are aware of various ports of GNU tar to non-Unix systems not listed here, or for corrections. Please provide the goal system, a complete and stable URL, the maintainer name and address, the tar version used as a base, and your comments. .* Amiga . + ftp://ftp.wustl.edu/systems/amiga/aminet/util/arc/GNUtar-1.11.8.lha maintained by Enrico Forestieri Based on tar 1.11.8. . + ftp://ftp.ninemoons.com/pub/ade/current/amiga-bin/tar-1.11.8-bin.lha maintained by the ADE group Based on tar 1.11.8, needs ixemul.library. . + ftp://ftp.wustl.edu/systems/amiga/aminet/util/arc/gnutar.lha maintained by .* DEC alpha (NT) . + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip maintained by Drew Bliss & Geoff Voelker .* DEC VAX (VMS) . + http://www.lp.se/free/vmstar/ maintained by Richard Levitte This is not GNU tar, but a separate implementation. . + maintained by William Bader For V4.7. Based on an old PDtar. Requires compatible shared libraries to run V5 or V6 executables. .* IBM/PC (DV/X) . + ftp://qdeck.com/ (?) maintained by David Ronis For Desqview/X. Everything works besides compression. Copy of hacked sources available, some of DV/X's programmer's library also needed. .* IBM/PC (MSDOS) . + http://www.simtel.net/simtel.net/ http://www.leo.org/pub/comp/platforms/pc/gnuish (Germany) ftp://ftp.simtel.net/simtelnet/gnu ftp://ftp.leo.org/pub/comp/platforms/pc/gnuish maintained by Darrel Hankerson You get many GNU tools, not only `tar'. The GNUish project is described in `gnuish_t.htm'. . + The DJGPP development tools also include some `tar' utilities. . + ftp://ftp.mcs.com/mcsnet.users/les/dos-gnutar/ maintained by Leslie Mikesell Based on tar 1.11.2. Support for SCSI (via ASPI) and network (rsh over packet driver). No support for win95 long file names. . + ftp://ftp.wu-wien.ac.at:pub/src/PCmisc/aspi-tar/* maintained by Christoph Splittgerber Based on tar 1.10. Support for SCSI (via ASPI). . + ftp://wuarchive (?) Several DOS version based on PDtar. John Gilmore says he has copies of several vintages saved. . + ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.exe ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.taz ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.zip . + ftp://ftp.cdrom.com/.4/os2/archiver/tar.zip Based on PDtar. . + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip maintained by Drew Bliss & Geoff Voelker GNU tar for NT (intel and Alpha platforms). . + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip maintained by Tillmann Steinbrecher The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. . + http://people.darmstadt.netsurf.de/tst/tar.htm maintained by Tillmann Steinbrecher This is not a `tar' port, but an index of them. .* IBM/PC (OS/2) . + http://www.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtar254.zip http://www.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtak254.zip maintained by Andreas Kaiser Version 2.54. Based on tar 1.10. The second archive contains SCSI drivers (DAT streamers notably) and rmt-type programs. . + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip maintained by Tillmann Steinbrecher The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. .* IBM/PC (Win32: Windows 95, NT 3.5 or NT 4.0) . + ftp://ftp.cygnus.com:~ftp/pub/sac/win32/usersrc/* maintained by Cygnus GNU-Win32 B17.1 distribution. Download all files, `cat' them together, and `untar' the result. You get many GNU tools, not only `tar'. Based on tar 1.11.2. . + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip maintained by Drew Bliss & Geoff Voelker GNU tar for NT (intel and Alpha platforms). . + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip maintained by Tillmann Steinbrecher The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. .* IBM/PC (Windows 3.1) . + ftp://ftp.mcs.com/mcsnet.users/les/win-gnutar/ maintained by Leslie Mikesell Support for network (rsh over winsock). No support for win95 long file names. . + ftp://ftp.gamesdomain.ru/.1/os/windows/programr/tar.zip Based on GNU tar 1.11.2. .* Macintosh . + There is a tar in Stuffit Expander which is available many places and comes with MacOS. It creates some spurious files but works on average. . + There is an excellent GNU tar bundled in Tenon MachTen, but it does not seem to be available separately. tar-1.13/rebox.el0000444000176300016070000007323106736600013007360 ;;; Handling of comment boxes. ;;; Copyright (C) 1991, 92, 93, 94, 95, 96, 97 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. ;;; François Pinard , April 1991. ;;; I first observed rounded corners, as in style 223 boxes, in code from ;;; Warren Tucker , a previous shar maintainer. ;;; Refilling paragraphs inside comments, stretching or shrinking the ;;; surrounding box as needed, is a pain to do "by hand". This GNU Emacs ;;; LISP code eases my life on this and I find it fair, giving all sources ;;; for a package, to also give the means for nicely modifying comments. ;;; The function rebox-comment discovers the extent of the boxed comments ;;; near the cursor, possibly refills the text, then adjusts the comment ;;; box style. The function rebox-region does the same, except that it ;;; takes the current region as a boxed comment. Numeric prefixes are ;;; used to add or remove a box, change its style (language, quality or ;;; type), or to prevent refilling of its text. A minus sign alone as ;;; prefix asks for interactive style selection. ;;; For most Emacs language editing modes, refilling does not make sense ;;; outside comments, so you may redefine the M-q command and link it to ;;; this file. For example, I use this in my .emacs file: ;;; (setq c-mode-hook ;;; '(lambda () ;;; (define-key c-mode-map "\M-q" 'rebox-comment))) ;;; (autoload 'rebox-comment "rebox" nil t) ;;; (autoload 'rebox-region "rebox" nil t) ;;; The cursor should be within a comment before any of these commands, ;;; or else it should be between two comments, in which case the command ;;; applies to the next comment. When the command is given without prefix, ;;; the current comment box style is recognized from the comment itself ;;; as far as possible, and preserved. A prefix may be used to force ;;; a particular box style. A style is made up of three attributes: a ;;; language (the hundreds digit), a quality (the tens digit) and a type ;;; (the units digit). A zero or negative flag value changes the default ;;; box style to its absolute value. Zero digits in default style, ;;; when not overriden in flag, asks for recognition of corresponding ;;; attributes from the current box. `C-u' avoids refilling the text, ;;; using the default box style. `C-u -' defines the style interactively. ;;; Box language is associated with comment delimiters. Values are 100 ;;; for none or unknown, 200 for `/*' and `*/' as in plain C, 300 for ;;; '//' as in C++, 400 for `#' as in most scripting languages, 500 for ;;; `;' as in LISP or assembler and 600 for `%' as in TeX or PostScript. ;;; Box quality differs according to language. For unknown languages (100) ;;; or for the C language (200), values are 10 for simple, 20 or 30 for ;;; rounded, and 40 for starred. For all others, box quality indicates ;;; the thickness in characters of the left and right sides of the box: ;;; values are 10, 20, 30 or 40 for 1, 2, 3 or 4 characters wide. C++ ;;; quality 10 is always promoted to 20. Roughly said, simple quality ;;; boxes (10) use comment delimiters to left and right of each comment ;;; line, and also for the top or bottom line when applicable. Rounded ;;; quality boxes (20 or 30) try to suggest rounded corners in boxes. ;;; Starred quality boxes (40) mostly use a left margin of asterisks or ;;; X'es, and use them also in box surroundings. Experiment a little to ;;; see what happens. ;;; Box type values are 1 for fully opened boxes for which boxing is done ;;; only for the left and right but not for top or bottom, 2 for half ;;; single lined boxes for which boxing is done on all sides except top, ;;; 3 for fully single lined boxes for which boxing is done on all sides, ;;; 4 for half double lined boxes which is like type 2 but more bold, ;;; or 5 for fully double lined boxes which is like type 3 but more bold. ;;; The special style 221 or 231 is worth a note, because it is fairly ;;; common: the whole C comment stays between a single opening `/*' ;;; and a single closing `*/'. The special style 111 deletes a box. ;;; The initial default style is 023 so, unless overriden, comments are ;;; put in single lined boxes, C comments are of rounded quality. (defvar rebox-default-style 0 "*Preferred style for box comments.") ;;; Help strings for prompting or error messages. (defconst REBOX_HELP_FOR_LANGUAGE "Box language is 100-none, 200-/*, 300-//, 400-#, 500-;, 600-%%") (defconst REBOX_LANGUAGE_NONE 100) (defconst REBOX_LANGUAGE_C 200) (defconst REBOX_LANGUAGE_C++ 300) (defconst REBOX_LANGUAGE_AWK 400) (defconst REBOX_LANGUAGE_LISP 500) (defconst REBOX_LANGUAGE_TEX 600) (defun rebox-help-string-for-language (language) (cond ((= language 0) "default language") ((= language REBOX_LANGUAGE_NONE) "no language") ((= language REBOX_LANGUAGE_C) "plain C") ((= language REBOX_LANGUAGE_C++) "C++") ((= language REBOX_LANGUAGE_AWK) "sh/Perl/make") ((= language REBOX_LANGUAGE_LISP) "LISP/assembler") ((= language REBOX_LANGUAGE_TEX) "TeX/PostScript") (t ""))) (defconst REBOX_HELP_FOR_QUALITY "Box quality/width is 10-simple, 20-rounded, 30-rounded or 40-starred") (defconst REBOX_QUALITY_SIMPLE_ONE 10) (defconst REBOX_QUALITY_ROUNDED_TWO 20) (defconst REBOX_QUALITY_ROUNDED_THREE 30) (defconst REBOX_QUALITY_STARRED_FOUR 40) (defun rebox-help-string-for-quality (quality) (cond ((= quality 0) "default quality") ((= quality REBOX_QUALITY_SIMPLE_ONE) "square or 1-wide") ((= quality REBOX_QUALITY_ROUNDED_TWO) "rounded or 2-wide") ((= quality REBOX_QUALITY_ROUNDED_THREE) "rounded or 3-wide") ((= quality REBOX_QUALITY_STARRED_FOUR) "starred or 4-wide") (t ""))) (defconst REBOX_HELP_FOR_TYPE "Box type is 1-open, 2-half-single, 3-single, 4-half-double or 5-double") (defconst REBOX_TYPE_OPEN 1) (defconst REBOX_TYPE_HALF_SINGLE 2) (defconst REBOX_TYPE_SINGLE 3) (defconst REBOX_TYPE_HALF_DOUBLE 4) (defconst REBOX_TYPE_DOUBLE 5) (defun rebox-help-string-for-type (type) (cond ((= type 0) "default type") ((= type REBOX_TYPE_OPEN) "opened box") ((= type REBOX_TYPE_HALF_SINGLE) "half normal") ((= type REBOX_TYPE_SINGLE) "full normal") ((= type REBOX_TYPE_HALF_DOUBLE) "half bold") ((= type REBOX_TYPE_DOUBLE) "full bold") (t ""))) (defconst REBOX_MAX_LANGUAGE 6) (defconst REBOX_MAX_QUALITY 4) (defconst REBOX_MAX_TYPE 5) ;;; Request the style interactively, using the minibuffer. (defun rebox-ask-for-style () (let (key language quality type) (while (not language) (message REBOX_HELP_FOR_LANGUAGE) (setq key (read-char)) (if (and (>= key ?0) (<= key (+ ?0 REBOX_MAX_LANGUAGE))) (setq language (- key ?0)))) (while (not quality) (message REBOX_HELP_FOR_QUALITY) (setq key (read-char)) (if (and (>= key ?0) (<= key (+ ?0 REBOX_MAX_QUALITY))) (setq quality (- key ?0)))) (while (not type) (message REBOX_HELP_FOR_TYPE) (setq key (read-char)) (if (and (>= key ?0) (<= key (+ ?0 REBOX_MAX_TYPE))) (setq type (- key ?0)))) (+ (* 100 language) (* 10 quality) type))) ;;; Write some TEXT followed by an edited STYLE value into the minibuffer. (defun rebox-show-style (text style) (message (concat text (format " (%03d)" style) ": " (rebox-help-string-for-language (* (/ style 100) 100)) ", " (rebox-help-string-for-quality (* (% (/ style 10) 10) 10)) ", " (rebox-help-string-for-type (% style 10))))) ;;; Validate FLAG and usually return t if not interrupted by errors. ;;; But if FLAG is zero or negative, then change default box style and ;;; return nil. (defun rebox-validate-flag (flag) ;; Validate flag. (if (numberp flag) (let ((value (if (< flag 0) (- flag) flag))) (if (> (/ value 100) REBOX_MAX_LANGUAGE) (error REBOX_HELP_FOR_LANGUAGE)) (if (> (% (/ value 10) 10) REBOX_MAX_QUALITY) (error REBOX_HELP_FOR_QUALITY)) (if (> (% value 10) REBOX_MAX_TYPE) (error REBOX_HELP_FOR_TYPE)))) ;; Change default box style if requested. (if (and (numberp flag) (<= flag 0)) (progn (setq flag (- flag)) (if (not (zerop (/ flag 100))) (setq rebox-default-style (+ (* (/ flag 100) 100) (% rebox-default-style 100)))) (if (not (zerop (% (/ flag 10) 10))) (setq rebox-default-style (+ (* (/ rebox-default-style 100) 100) (* (% (/ flag 10) 10) 10) (% rebox-default-style 10)))) (if (not (zerop (% flag 10))) (setq rebox-default-style (+ (* (/ rebox-default-style 10) 10) (% flag 10)))) (rebox-show-style "Default style" rebox-default-style) nil) t)) ;;; Return the minimum value of the left margin of all lines, or -1 if ;;; all lines are empty. (defun rebox-left-margin () (let ((margin -1)) (goto-char (point-min)) (while (not (eobp)) (skip-chars-forward " \t") (if (not (looking-at "\n")) (setq margin (if (< margin 0) (current-column) (min margin (current-column))))) (forward-line 1)) margin)) ;;; Return the maximum value of the right margin of all lines. Any ;;; sentence ending a line has a space guaranteed before the margin. (defun rebox-right-margin () (let ((margin 0) period) (goto-char (point-min)) (while (not (eobp)) (end-of-line) (if (bobp) (setq period 0) (backward-char 1) (setq period (if (looking-at "[.?!]") 1 0)) (forward-char 1)) (setq margin (max margin (+ (current-column) period))) (forward-char 1)) margin)) ;;; Return a regexp to match the start or end of a comment for some ;;; LANGUAGE, leaving the comment marks themselves available in \1. ;; FIXME: Recognize style 1** boxes. (defun rebox-regexp-start (language) (cond ((= language 0) "^[ \t]*\\(/\\*\\|//+\\|#+\\|;+\\|%+\\)") ((= language REBOX_LANGUAGE_NONE) "^\\(\\)") ((= language REBOX_LANGUAGE_C) "^[ \t]*\\(/\\*\\)") ((= language REBOX_LANGUAGE_C++) "^[ \t]*\\(//+\\)") ((= language REBOX_LANGUAGE_AWK) "^[ \t]*\\(#+\\)") ((= language REBOX_LANGUAGE_LISP) "^[ \t]*\\(;+\\)") ((= language REBOX_LANGUAGE_TEX) "^[ \t]*\\(%+\\)"))) (defun rebox-regexp-end (language) (cond ((= language 0) "\\(\\*/\\|//+\\|#+\\|;+\\|%+\\)[ \t]*$") ((= language REBOX_LANGUAGE_NONE) "\\(\\)$") ((= language REBOX_LANGUAGE_C) "\\(\\*/\\)[ \t]*$") ((= language REBOX_LANGUAGE_C++) "\\(//+\\)[ \t]*$") ((= language REBOX_LANGUAGE_AWK) "\\(#+\\)[ \t]*$") ((= language REBOX_LANGUAGE_LISP) "\\(;+\\)[ \t]*$") ((= language REBOX_LANGUAGE_TEX) "\\(%+\\)[ \t]*$"))) ;;; By looking at the text starting at the cursor position, guess the ;;; language in use, and return it. (defun rebox-guess-language () (let ((language REBOX_LANGUAGE_NONE) (value (* 100 REBOX_MAX_LANGUAGE))) (while (not (zerop value)) (if (looking-at (rebox-regexp-start value)) (progn (setq language value) (setq value 0)) (setq value (- value 100)))) language)) ;;; Find the limits of the block of comments following or enclosing ;;; the cursor, or return an error if the cursor is not within such a ;;; block of comments. Extend it as far as possible in both ;;; directions, then narrow the buffer around it. (defun rebox-find-and-narrow () (save-excursion (let (start end temp language) ;; Find the start of the current or immediately following comment. (beginning-of-line) (skip-chars-forward " \t\n") (beginning-of-line) (if (not (looking-at (rebox-regexp-start 0))) (progn (setq temp (point)) (if (re-search-forward "\\*/" nil t) (progn (re-search-backward "/\\*") (if (> (point) temp) (error "outside any comment block")) (setq temp (point)) (beginning-of-line) (skip-chars-forward " \t") (if (not (= (point) temp)) (error "text before start of comment")) (beginning-of-line)) (error "outside any comment block")))) (setq start (point)) (setq language (rebox-guess-language)) ;; - find the end of this comment (if (= language REBOX_LANGUAGE_C) (progn (search-forward "*/") (if (not (looking-at "[ \t]*$")) (error "text after end of comment")))) (end-of-line) (if (eobp) (insert "\n") (forward-char 1)) (setq end (point)) ;; - try to extend the comment block backwards (goto-char start) (while (and (not (bobp)) (if (= language REBOX_LANGUAGE_C) (progn (skip-chars-backward " \t\n") (if (and (looking-at "[ \t]*\n[ \t]*/\\*") (> (point) 2)) (progn (backward-char 2) (if (looking-at "\\*/") (progn (re-search-backward "/\\*") (setq temp (point)) (beginning-of-line) (skip-chars-forward " \t") (if (= (point) temp) (progn (beginning-of-line) t))))))) (previous-line 1) (looking-at (rebox-regexp-start language)))) (setq start (point))) ;; - try to extend the comment block forward (goto-char end) (while (looking-at (rebox-regexp-start language)) (if (= language REBOX_LANGUAGE_C) (progn (re-search-forward "[ \t]*/\\*") (re-search-forward "\\*/") (if (looking-at "[ \t]*$") (progn (beginning-of-line) (forward-line 1) (setq end (point))))) (forward-line 1) (setq end (point)))) ;; - narrow to the whole block of comments (narrow-to-region start end)))) ;;; After refilling it if REFILL is not nil, while respecting a left ;;; MARGIN, put the narrowed buffer back into a boxed LANGUAGE comment ;;; box of a given QUALITY and TYPE. (defun rebox-reconstruct (refill margin language quality type) (rebox-show-style "Style" (+ language quality type)) (let (right-margin nw nn ne ww ee sw ss se x xx) ;; - decide the elements of the box being produced (cond ((= language REBOX_LANGUAGE_NONE) ;; - planify a comment for no language in particular (cond ((= quality REBOX_QUALITY_SIMPLE_ONE) ;; - planify a simple box (cond ((= type REBOX_TYPE_OPEN) (setq nw "") (setq sw "") (setq ww "") (setq ee "")) ((= type REBOX_TYPE_HALF_SINGLE) (setq nw "") (setq ww "| ") (setq ee " |") (setq sw "+-") (setq ss ?-) (setq se "-+")) ((= type REBOX_TYPE_SINGLE) (setq nw "+-") (setq nn ?-) (setq ne "-+") (setq ww "| ") (setq ee " |") (setq sw "+-") (setq ss ?-) (setq se "-+")) ((= type REBOX_TYPE_HALF_DOUBLE) (setq nw "") (setq ww "| ") (setq ee " |") (setq sw "*=") (setq ss ?=) (setq se "=*")) ((= type REBOX_TYPE_DOUBLE) (setq nw "*=") (setq nn ?=) (setq ne "=*") (setq ww "| ") (setq ee " |") (setq sw "*=") (setq ss ?=) (setq se "=*")))) ((or (= quality REBOX_QUALITY_ROUNDED_TWO) (= quality REBOX_QUALITY_ROUNDED_THREE)) ;; - planify a rounded box (cond ((= type REBOX_TYPE_OPEN) (setq nw "") (setq sw "") (setq ww "| ") (setq ee " |")) ((= type REBOX_TYPE_HALF_SINGLE) (setq nw "") (setq ww "| ") (setq ee " |") (setq sw "`-") (setq ss ?-) (setq se "-'")) ((= type REBOX_TYPE_SINGLE) (setq nw ".-") (setq nn ?-) (setq ne "-.") (setq ww "| ") (setq ee " |") (setq sw "`-") (setq ss ?-) (setq se "-'")) ((= type REBOX_TYPE_HALF_DOUBLE) (setq nw "") (setq ww "| " ) (setq ee " |" ) (setq sw "\\=") (setq ss ?=) (setq se "=/" )) ((= type REBOX_TYPE_DOUBLE) (setq nw "/=" ) (setq nn ?=) (setq ne "=\\") (setq ww "| " ) (setq ee " |" ) (setq sw "\\=") (setq ss ?=) (setq se "=/" )))) ((= quality REBOX_QUALITY_STARRED_FOUR) ;; - planify a starred box (cond ((= type REBOX_TYPE_OPEN) (setq nw "") (setq sw "") (setq ww "| ") (setq ee "")) ((= type REBOX_TYPE_HALF_SINGLE) (setq nw "") (setq ww "* ") (setq ee " *") (setq sw "**") (setq ss ?*) (setq se "**")) ((= type REBOX_TYPE_SINGLE) (setq nw "**") (setq nn ?*) (setq ne "**") (setq ww "* ") (setq ee " *") (setq sw "**") (setq ss ?*) (setq se "**")) ((= type REBOX_TYPE_HALF_DOUBLE) (setq nw "") (setq ww "X ") (setq ee " X") (setq sw "XX") (setq ss ?X) (setq se "XX")) ((= type REBOX_TYPE_DOUBLE) (setq nw "XX") (setq nn ?X) (setq ne "XX") (setq ww "X ") (setq ee " X") (setq sw "XX") (setq ss ?X) (setq se "XX")))))) ((= language REBOX_LANGUAGE_C) ;; - planify a comment for C (cond ((= quality REBOX_QUALITY_SIMPLE_ONE) ;; - planify a simple C comment (cond ((= type REBOX_TYPE_OPEN) (setq nw "") (setq sw "") (setq ww "/* ") (setq ee " */")) ((= type REBOX_TYPE_HALF_SINGLE) (setq nw "") (setq ww "/* ") (setq ee " */") (setq sw "/* ") (setq ss ?-) (setq se " */")) ((= type REBOX_TYPE_SINGLE) (setq nw "/* ") (setq nn ?-) (setq ne " */") (setq ww "/* ") (setq ee " */") (setq sw "/* ") (setq ss ?-) (setq se " */")) ((= type REBOX_TYPE_HALF_DOUBLE) (setq nw "") (setq ww "/* ") (setq ee " */") (setq sw "/* ") (setq ss ?=) (setq se " */")) ((= type REBOX_TYPE_DOUBLE) (setq nw "/* ") (setq nn ?=) (setq ne " */") (setq ww "/* ") (setq ee " */") (setq sw "/* ") (setq ss ?=) (setq se " */")))) ((or (= quality REBOX_QUALITY_ROUNDED_TWO) (= quality REBOX_QUALITY_ROUNDED_THREE)) ;; - planify a rounded C comment (cond ((= type REBOX_TYPE_OPEN) ;; ``open rounded'' is a special case (setq nw "") (setq sw "") (setq ww " ") (setq ee "")) ((= type REBOX_TYPE_HALF_SINGLE) (setq nw "/*") (setq nn ? ) (setq ne " .") (setq ww "| ") (setq ee " |") (setq sw "`-") (setq ss ?-) (setq se "*/")) ((= type REBOX_TYPE_SINGLE) (setq nw "/*") (setq nn ?-) (setq ne "-.") (setq ww "| ") (setq ee " |") (setq sw "`-") (setq ss ?-) (setq se "*/")) ((= type REBOX_TYPE_HALF_DOUBLE) (setq nw "/*" ) (setq nn ? ) (setq ne " \\") (setq ww "| " ) (setq ee " |" ) (setq sw "\\=") (setq ss ?=) (setq se "*/" )) ((= type REBOX_TYPE_DOUBLE) (setq nw "/*" ) (setq nn ?=) (setq ne "=\\") (setq ww "| " ) (setq ee " |" ) (setq sw "\\=") (setq ss ?=) (setq se "*/" )))) ((= quality REBOX_QUALITY_STARRED_FOUR) ;; - planify a starred C comment (cond ((= type REBOX_TYPE_OPEN) (setq nw "/* ") (setq nn ? ) (setq ne "") (setq ww " * ") (setq ee "") (setq sw " */") (setq ss ? ) (setq se "")) ((= type REBOX_TYPE_HALF_SINGLE) (setq nw "/* ") (setq nn ? ) (setq ne " *") (setq ww " * ") (setq ee " *") (setq sw " **") (setq ss ?*) (setq se "**/")) ((= type REBOX_TYPE_SINGLE) (setq nw "/**") (setq nn ?*) (setq ne "**") (setq ww " * ") (setq ee " *") (setq sw " **") (setq ss ?*) (setq se "**/")) ((= type REBOX_TYPE_HALF_DOUBLE) (setq nw "/* " ) (setq nn ? ) (setq ne " *\\") (setq ww "|* " ) (setq ee " *|" ) (setq sw "\\**") (setq ss ?*) (setq se "**/" )) ((= type REBOX_TYPE_DOUBLE) (setq nw "/**" ) (setq nn ?*) (setq ne "**\\") (setq ww "|* " ) (setq ee " *|" ) (setq sw "\\**") (setq ss ?*) (setq se "**/" )))))) (t ;; - planify a comment for all other things (if (and (= language REBOX_LANGUAGE_C++) (= quality REBOX_QUALITY_SIMPLE_ONE)) (setq quality REBOX_QUALITY_ROUNDED_TWO)) (setq x (cond ((= language REBOX_LANGUAGE_C++) ?/) ((= language REBOX_LANGUAGE_AWK) ?#) ((= language REBOX_LANGUAGE_LISP) ?\;) ((= language REBOX_LANGUAGE_TEX) ?%))) (setq xx (make-string (/ quality 10) x)) (setq ww (concat xx " ")) (cond ((= type REBOX_TYPE_OPEN) (setq nw "") (setq sw "") (setq ee "")) ((= type REBOX_TYPE_HALF_SINGLE) (setq ee (concat " " xx)) (setq nw "") (setq sw ww) (setq ss ?-) (setq se ee)) ((= type REBOX_TYPE_SINGLE) (setq ee (concat " " xx)) (setq nw ww) (setq nn ?-) (setq ne ee) (setq sw ww) (setq ss ?-) (setq se ee)) ((= type REBOX_TYPE_HALF_DOUBLE) (setq ee (concat " " xx)) (setq xx (make-string (1+ (/ quality 10)) x)) (setq nw "") (setq sw xx) (setq ss x) (setq se xx)) ((= type REBOX_TYPE_DOUBLE) (setq ee (concat " " xx)) (setq xx (make-string (1+ (/ quality 10)) x)) (setq nw xx) (setq nn x) (setq ne xx) (setq sw xx) (setq ss x) (setq se xx))))) ;; - possibly refill, and adjust margins to account for left inserts (if (not (and flag (listp flag))) (let ((fill-prefix (make-string margin ? )) (fill-column (- fill-column (+ (length ww) (length ee))))) (fill-region (point-min) (point-max)))) (setq right-margin (+ (rebox-right-margin) (length ww))) ;; - construct the box comment, from top to bottom (goto-char (point-min)) (if (and (= language REBOX_LANGUAGE_C) (or (= quality REBOX_QUALITY_ROUNDED_TWO) (= quality REBOX_QUALITY_ROUNDED_THREE)) (= type REBOX_TYPE_OPEN)) (progn ;; - construct an 33 style comment (skip-chars-forward " " (+ (point) margin)) (insert (make-string (- margin (current-column)) ? ) "/* ") (end-of-line) (forward-char 1) (while (not (eobp)) (skip-chars-forward " " (+ (point) margin)) (insert (make-string (- margin (current-column)) ? ) ww) (beginning-of-line) (forward-line 1)) (backward-char 1) (insert " */")) ;; - construct all other comment styles ;; construct one top line (if (not (zerop (length nw))) (progn (indent-to margin) (insert nw) (if (or (not (eq nn ? )) (not (zerop (length ne)))) (insert (make-string (- right-margin (current-column)) nn) ne)) (insert "\n"))) ;; construct one middle line (while (not (eobp)) (skip-chars-forward " " (+ (point) margin)) (insert (make-string (- margin (current-column)) ? ) ww) (end-of-line) (if (not (zerop (length ee))) (progn (indent-to right-margin) (insert ee))) (beginning-of-line) (forward-line 1)) ;; construct one bottom line (if (not (zerop (length sw))) (progn (indent-to margin) (insert sw) (if (or (not (eq ss ? )) (not (zerop (length se)))) (insert (make-string (- right-margin (current-column)) ss) se "\n"))))))) ;;; Add, delete or adjust a comment box in the narrowed buffer. ;;; Various FLAG values are explained at beginning of this file. (defun rebox-engine (flag) (let ((undo-list buffer-undo-list) (marked-point (point-marker)) (language (progn (goto-char (point-min)) (rebox-guess-language))) (quality 0) (type 0)) (untabify (point-min) (point-max)) ;; Remove all the comment marks, and move all the text rigidly to the ;; left for insuring that the left margin stays at the same place. ;; At the same time, try recognizing the box style, saving its quality ;; in QUALITY and its type in TYPE. (LANGUAGE is already guessed.) (let ((indent-tabs-mode nil) (previous-margin (rebox-left-margin)) actual-margin) ;; FIXME: Cleanup style 1** boxes. ;; FIXME: Recognize really all cases of type and quality. ;; - remove all comment marks (if (= language REBOX_LANGUAGE_NONE) nil (goto-char (point-min)) (while (re-search-forward (rebox-regexp-start language) nil t) (goto-char (match-beginning 1)) (delete-region (point) (match-end 1)) (insert (make-string (- (match-end 1) (point)) ? ))) (goto-char (point-min)) (while (re-search-forward (rebox-regexp-end language) nil t) (replace-match "" t t))) (if (= language REBOX_LANGUAGE_C) (progn (goto-char (point-min)) (while (re-search-forward "\\*/ */\\*" nil t) (replace-match " " t t)) (goto-char (point-min)) (while (re-search-forward "^\\( *\\)|\\*\\(.*\\)\\*| *$" nil t) (setq quality REBOX_QUALITY_STARRED_FOUR) (setq type REBOX_TYPE_DOUBLE) (replace-match "\\1 \\2" t)) (goto-char (point-min)) (while (re-search-forward "^\\( *\\)\\*\\(.*\\)\\* *$" nil t) (setq quality REBOX_QUALITY_STARRED_FOUR) (setq type REBOX_TYPE_SINGLE) (replace-match "\\1 \\2" t)) (goto-char (point-min)) (while (re-search-forward "^\\( *\\)|\\(.*\\)| *$" nil t) (setq quality REBOX_QUALITY_ROUNDED_TWO) (replace-match "\\1 \\2" t)) (goto-char (point-min)) (if (zerop quality) (while (re-search-forward "^\\( +\\)\\* " nil t) (setq quality REBOX_QUALITY_STARRED_FOUR) (setq type REBOX_TYPE_OPEN) (replace-match "\\1 " t))))) ;; - remove the first dashed or starred line (goto-char (point-min)) (if (looking-at "^ *\\(--+\\|\\*\\*+\\)[.\+\\]? *\n") (progn (setq type REBOX_TYPE_SINGLE) (replace-match "" t t)) (if (looking-at "^ *\\(==\\|XX+\\|##+\\|;;+\\)[.\+\\]? *\n") (progn (setq type REBOX_TYPE_DOUBLE) (replace-match "" t t)))) ;; - remove the last dashed or starred line (goto-char (point-max)) (previous-line 1) (if (looking-at "^ *[`\+\\]?*--+ *\n") (progn (if (= type REBOX_TYPE_OPEN) (setq type REBOX_TYPE_HALF_SINGLE)) (replace-match "" t t)) (if (looking-at "^ *[`\+\\]?*\\(==+\\|##+\\|;;+\\) *\n") (progn (if (= type REBOX_TYPE_OPEN) (setq type REBOX_TYPE_HALF_DOUBLE)) (replace-match "" t t)) (if (looking-at "^ *\\*\\*+[.\+\\]? *\n") (progn (setq quality REBOX_QUALITY_STARRED_FOUR) (setq type REBOX_TYPE_HALF_SINGLE) (replace-match "" t t)) (if (looking-at "^ *XX+[.\+\\]? *\n") (progn (setq quality REBOX_QUALITY_STARRED_FOUR) (setq type REBOX_TYPE_HALF_DOUBLE) (replace-match "" t t)))))) ;; - remove all spurious whitespace (goto-char (point-min)) (while (re-search-forward " +$" nil t) (replace-match "" t t)) (goto-char (point-min)) (if (looking-at "\n+") (replace-match "" t t)) (goto-char (point-max)) (skip-chars-backward "\n") (if (looking-at "\n\n+") (replace-match "\n" t t)) (goto-char (point-min)) (while (re-search-forward "\n\n\n+" nil t) (replace-match "\n\n" t t)) ;; - move the text left is adequate (setq actual-margin (rebox-left-margin)) (if (not (= previous-margin actual-margin)) (indent-rigidly (point-min) (point-max) (- previous-margin actual-margin)))) ;; Override box style according to FLAG or chosen default style. ;; Else, use either recognized style elements or built-in defaults. (cond ((and (numberp flag) (not (zerop (/ flag 100)))) (setq language (* (/ flag 100) 100))) ((not (zerop (/ rebox-default-style 100))) (setq language (* (/ rebox-default-style 100) 100)))) (cond ((and (numberp flag) (not (zerop (% (/ flag 10) 10)))) (setq quality (* (% (/ flag 10) 10) 10))) ((not (zerop (% (/ rebox-default-style 10) 10))) (setq quality (* (% (/ rebox-default-style 10) 10) 10))) ((zerop quality) (setq quality REBOX_QUALITY_ROUNDED_TWO))) (cond ((and (numberp flag) (not (zerop (% flag 10)))) (setq type (% flag 10))) ((not (zerop (% rebox-default-style 10))) (setq type (% rebox-default-style 10))) ((zerop type) (setq type 1))) ;; Possibly refill, then reconstruct the comment box. (let ((indent-tabs-mode nil)) (rebox-reconstruct (not (and flag (listp flag))) (rebox-left-margin) language quality type)) ;; Retabify to the left only (adapted from tabify.el). (if indent-tabs-mode (progn (goto-char (point-min)) (while (re-search-forward "^[ \t][ \t]+" nil t) (let ((column (current-column))) (delete-region (match-beginning 0) (point)) (indent-to column))))) ;; Restore the point position. (goto-char (marker-position marked-point)) ;; Remove all intermediate boundaries from the undo list. (if (not (eq buffer-undo-list undo-list)) (let ((cursor buffer-undo-list)) (while (not (eq (cdr cursor) undo-list)) (if (car (cdr cursor)) (setq cursor (cdr cursor)) (rplacd cursor (cdr (cdr cursor))))))))) ;;; Set or reset the Taarna team's own way for a C style. You do not ;;; really want to know about this. (defvar c-mode-taarna-style nil "*Non-nil for Taarna team C-style.") (defun taarna-mode () (interactive) (if c-mode-taarna-style (progn (setq c-mode-taarna-style nil) (setq c-indent-level 2) (setq c-continued-statement-offset 2) (setq c-brace-offset 0) (setq c-argdecl-indent 5) (setq c-label-offset -2) (setq c-tab-always-indent t) (setq rebox-default-style REBOX_QUALITY_ROUNDED_TWO) (message "C mode: GNU style")) (setq c-mode-taarna-style t) (setq c-indent-level 4) (setq c-continued-statement-offset 4) (setq c-brace-offset -4) (setq c-argdecl-indent 4) (setq c-label-offset -4) (setq c-tab-always-indent t) (setq rebox-default-style (+ REBOX_QUALITY_SIMPLE_ONE REBOX_TYPE_HALF_SINGLE)) (message "C mode: Taarna style"))) ;;; Rebox the current region. (defun rebox-region (flag) (interactive "P") (if (eq flag '-) (setq flag (rebox-ask-for-style))) (if (rebox-validate-flag flag) (save-restriction (narrow-to-region (region-beginning) (region-end)) (rebox-engine flag)))) ;;; Rebox the surrounding comment. (defun rebox-comment (flag) (interactive "P") (if (eq flag '-) (setq flag (rebox-ask-for-style))) (if (rebox-validate-flag flag) (save-restriction (rebox-find-and-narrow) (rebox-engine flag)))) tar-1.13/doc/0000777000176300017630000000000006741044404006551 5tar-1.13/doc/ChangeLog0000444000176300016070000001226106330211623010225 1997-04-23 François Pinard * Release 1.12. * Makefile.am (EXTRA_DIST): Remove tar-mew.texi for the release. (tar.dvi) [!PUBLISH]: Delete @smallbook. Call sed in all cases. 1997-04-11 François Pinard * Prerelease 1.11o. * Makefile.am (tar.info): Comment about needed makeinfo version. Reported by Sherwood Botsford. 1997-04-10 François Pinard * Makefile.am (EXTRA_DIST): Add tar-mew.texi. 1997-03-16 François Pinard * Makefile.am (tar.dvi): Merely use tar.texi and rely on -I to resolve it in $(srcdir). Remove tmp-tar.info* files right away. (CLEANFILES): Define to tmp-*. 1997-03-14 François Pinard * Makefile.am: Rename RENDERING, QUALITY, DRAFT and DEBUG to RENDITION, PUBLISH, DISTRIB and PROOF respectively. Ensure that `@set DISTRIB' gets replaced after macro-expansion and before TeX. 1996-11-06 François Pinard * Prerelease 1.11.13. * getdate.texi: New file, from elsewhere. * tar.texi: Replace a lot of text by an include of getdate.texi. * Makefile.am: Adjusted. 1996-08-24 François Pinard * Prerelease 1.11.12. * Makefile.am (EXTRA_DIST): Remove texinfo.tex, now that Automake handles it automatically. 1996-07-18 François Pinard * Prerelease 1.11.11. * Makefile.am (tar.info): Remove -I$(srcdir), which was useless. 1996-07-17 François Pinard * Makefile.am (EXTRA_DIST): Include texinfo.tex, until Automake does it automatically. 1996-07-16 François Pinard * Prerelease 1.11.10. * Makefile.am (EXTRA_DIST): Distribute convtexi.pl, for now. 1996-04-22 François Pinard * Makefile.am: Implement rendering levels (QUALITY, DRAFT or DEBUG). 1996-04-17 François Pinard * Makefile.am (EXTRA_DIST): New name for DIST_OTHER. 1996-03-03 François Pinard * Makefile.am (tar.dvi): Comment about needed makeinfo version. Reported by Jonathan Thornburg. 1996-02-12 François Pinard * Makefile.am: Replace TEXINFO by info_TEXINFOS for Automake 0.29. 1996-01-14 François Pinard * Makefile.am (AUTOMAKE_OPTIONS): Select gnits. 1996-01-08 François Pinard * Makefile.am: New file. * tar.texi: New name for tar.texinfo. 1995-12-30 François Pinard * Makefile.in (check): New goal, doing nothing. Reported by Cesar Romani, Joachim Seelig, Mark Bynum and Ulrich Drepper. 1995-11-29 François Pinard * Makefile.in (clean): Remove tmp-* files. 1995-11-27 François Pinard * Makefile.in: Use -I$(srcdir) with makeinfo, and -otmp-tar.info so tar.info in build directory does not shadow the real one. (tar.dvi): Depend on version.texi. Add $(srcdir) to TEXINPUTS so texinfo.tex is found, as texi2dvi gets no clue from the file name. (DISTFILES): Also distribute tar.info-8. 1995-11-22 François Pinard * Makefile.in (DISTFILES): Distribute ChangeLog. * ChangeLog: New file, extracted from top-level ChangeLog. 1995-06-22 François Pinard * Makefile.in: Get rid of docwarn.texi, now replaced by the @UNREVISED macro, right into tar.texinfo. 1995-06-18 François Pinard * Makefile.in (tar.dvi): First macro-expand tar.texinfo. 1995-06-07 François Pinard * Makefile.in: Use subdir and distdir. 1995-06-03 François Pinard * tar.texinfo: Use header.texi. * Makefile.in: Prepare header.texi from src/tar.h. Distribute it. 1995-05-28 François Pinard * Makefile.in (DISTFILES): Add tar.info-3. Reported by Bruno Haible. 1995-02-22 François Pinard * Makefile.in: Replace `date' by `echo timestamp'. 1995-02-13 François Pinard * Makefile.in: Use top_srcdir. 1995-02-05 François Pinard * Makefile.in (maintainer-clean): New name for realclean. 1994-12-03 François Pinard * Makefile.in (DISTFILES): Include docwarn.texi. 1994-11-07 François Pinard * Makefile.in (stamp-vti): Use new -r option to date. 1994-11-05 François Pinard * Makefile.in (realclean): Also remove stamp-vti. 1994-09-14 François Pinard * Makefile.in: Cleanup... (texclean): Deleted, merged into mostlyclean. (Makefile): Have ./config.status create this Makefile only. 1994-08-30 François Pinard * Makefile.in (tar.info): Make the documentation in the source directory only. 1994-08-21 François Pinard * Makefile.in: Correct for when a different build directory. * docwarn.texi: New file. * Makefile.in: Distribute it. 1994-08-17 François Pinard * Makefile.in: New file. * tar.texinfo: New file. * texinfo.tex: New, from elsewhere. tar-1.13/doc/Makefile.am0000444000176300016070000000433406327773032010526 # Makefile for GNU tar documentation. # Copyright (C) 1994, 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. AUTOMAKE_OPTIONS = gnits info_TEXINFOS = tar.texi EXTRA_DIST = convtexi.pl getdate.texi header.texi CLEANFILES = tmp-* # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. # Just call `make dvi RENDITION=PROOF' if you want PROOF rendition. RENDITION = DISTRIB tar.info: tar.texi getdate.texi header.texi version.texi @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" @echo " for expanding Texinfo macros, if it comes from a" @echo " Texinfo distribution which is earlier than version 3.7." cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi tar.dvi: tar.texi getdate.texi header.texi version.texi @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" @echo " for expanding Texinfo macros, if it comes from a" @echo " Texinfo distribution which is earlier than version 3.7." $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \ -I$(srcdir) tar.texi rm -f tmp-tar.sed tmp-tar.info* test $(RENDITION) = DISTRIB \ || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/' test $(RENDITION) = PUBLISH \ || echo >>tmp-tar.sed '/^@smallbook/d' sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi rm -f tmp-tar.sed tmp-tar.tmp TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi mv tmp-tar.dvi $@ header.texi: $(top_srcdir)/src/tar.h sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \ | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi tar-1.13/doc/Makefile.in0000664000176300016070000002626306740607413010546 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. # Makefile for GNU tar documentation. # Copyright (C) 1994, 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ 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 DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ AUTOMAKE_OPTIONS = gnits info_TEXINFOS = tar.texi EXTRA_DIST = convtexi.pl getdate.texi header.texi CLEANFILES = tmp-* # 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 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best all: all-redirect .SUFFIXES: .SUFFIXES: .dvi .info .ps .texi .texinfo .txi $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps doc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status $(srcdir)/version.texi: stamp-vti @: $(srcdir)/stamp-vti: tar.texi $(top_srcdir)/configure.in @echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/tar.texi`" > vti.tmp @echo "@set EDITION $(VERSION)" >> vti.tmp @echo "@set VERSION $(VERSION)" >> vti.tmp @cmp -s vti.tmp $(srcdir)/version.texi \ || (echo "Updating $(srcdir)/version.texi"; \ cp vti.tmp $(srcdir)/version.texi) -@rm -f vti.tmp @cp $(srcdir)/version.texi $@ mostlyclean-vti: -rm -f vti.tmp clean-vti: distclean-vti: maintainer-clean-vti: -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi tar.info: tar.texi version.texi tar.dvi: tar.texi version.texi DVIPS = dvips .texi.info: @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .texi.dvi: TEXINPUTS=.:$$TEXINPUTS \ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< .texi: @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .texinfo.info: @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .texinfo: @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .texinfo.dvi: TEXINPUTS=.:$$TEXINPUTS \ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< .txi.info: @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .txi.dvi: TEXINPUTS=.:$$TEXINPUTS \ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< .txi: @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .dvi.ps: $(DVIPS) $< -o $@ install-info-am: $(INFO_DEPS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(infodir) @list='$(INFO_DEPS)'; \ for file in $$list; do \ d=$(srcdir); \ for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ if test -f $$d/$$ifile; then \ echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \ $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \ else : ; fi; \ done; \ done @$(POST_INSTALL) @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ list='$(INFO_DEPS)'; \ for file in $$list; do \ echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\ install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\ done; \ else : ; fi uninstall-info: $(PRE_UNINSTALL) @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ ii=yes; \ else ii=; fi; \ list='$(INFO_DEPS)'; \ for file in $$list; do \ test -z "$ii" \ || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \ done @$(NORMAL_UNINSTALL) list='$(INFO_DEPS)'; \ for file in $$list; do \ (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ done dist-info: $(INFO_DEPS) list='$(INFO_DEPS)'; \ for base in $$list; do \ d=$(srcdir); \ for file in `cd $$d && eval echo $$base*`; do \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file; \ done; \ done mostlyclean-aminfo: -rm -f tar.aux tar.cp tar.cps tar.dvi tar.fn tar.fns tar.ky tar.kys \ tar.ps tar.log tar.pg tar.toc tar.tp tar.tps tar.vr tar.vrs \ tar.op tar.tr tar.cv tar.cn clean-aminfo: distclean-aminfo: maintainer-clean-aminfo: cd $(srcdir) && for i in $(INFO_DEPS); do \ rm -f $$i; \ if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \ rm -f $$i-[0-9]*; \ fi; \ done tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = doc distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done $(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 install-data-am: install-info-am install-data: install-data-am install-am: all-am @$(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: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(infodir) mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-vti mostlyclean-aminfo mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-vti clean-aminfo clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-vti distclean-aminfo distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-vti maintainer-clean-aminfo \ maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .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 tar.info: tar.texi getdate.texi header.texi version.texi @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" @echo " for expanding Texinfo macros, if it comes from a" @echo " Texinfo distribution which is earlier than version 3.7." cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi tar.dvi: tar.texi getdate.texi header.texi version.texi @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" @echo " for expanding Texinfo macros, if it comes from a" @echo " Texinfo distribution which is earlier than version 3.7." $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \ -I$(srcdir) tar.texi rm -f tmp-tar.sed tmp-tar.info* test $(RENDITION) = DISTRIB \ || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/' test $(RENDITION) = PUBLISH \ || echo >>tmp-tar.sed '/^@smallbook/d' sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi rm -f tmp-tar.sed tmp-tar.tmp TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi mv tmp-tar.dvi $@ header.texi: $(top_srcdir)/src/tar.h sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \ | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi # 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. .NOEXPORT: tar-1.13/doc/mdate-sh0000555000176300016070000000516706324007053010115 #!/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. # Prevent date giving response in another language. LANG=C export LANG LC_ALL=C export LC_ALL LC_TIME=C export LC_TIME # 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 set - x`ls -L -l -d $1` else 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 # Find the month. Next argument is day, followed by the year or time. month= until test $month do shift case $1 in Jan) month=January; nummonth=1;; Feb) month=February; nummonth=2;; Mar) month=March; nummonth=3;; Apr) month=April; nummonth=4;; May) month=May; nummonth=5;; Jun) month=June; nummonth=6;; Jul) month=July; nummonth=7;; Aug) month=August; nummonth=8;; Sep) month=September; nummonth=9;; Oct) month=October; nummonth=10;; Nov) month=November; nummonth=11;; Dec) month=December; nummonth=12;; esac done day=$2 # Here we have to deal with the problem that the ls output gives either # the time of day or the year. case $3 in *:*) set `date`; eval year=\$$# case $2 in Jan) nummonthtod=1;; Feb) nummonthtod=2;; Mar) nummonthtod=3;; Apr) nummonthtod=4;; May) nummonthtod=5;; Jun) nummonthtod=6;; Jul) nummonthtod=7;; Aug) nummonthtod=8;; Sep) nummonthtod=9;; Oct) nummonthtod=10;; Nov) nummonthtod=11;; Dec) nummonthtod=12;; esac # For the first six month of the year the time notation can also # be used for files modified in the last year. if (expr $nummonth \> $nummonthtod) > /dev/null; then year=`expr $year - 1` fi;; *) year=$3;; esac # The result. echo $day $month $year tar-1.13/doc/stamp-vti0000664000176300016070000000007606740607414010343 @set UPDATED 16 June 1999 @set EDITION 1.13 @set VERSION 1.13 tar-1.13/doc/texinfo.tex0000444000176300016070000057465106714633400010700 % 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/. \message{Loading texinfo [version \texinfoversion]:} % 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]}% \catcode`+=\active \catcode`\_=\active} % 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 % We never want plain's outer \+ definition in Texinfo. % For @tex, we can use \tabalign. \let\+ = \relax % Get ready for pdf. \newif\ifpdf \ifx\pdfoutput\undefined\else \input pdfcolor \pdfoutput=1 \pdftrue \fi \message{Basics,} \chardef\other=12 % If this character appears in an error message or help string, it % starts a new line in the output. \newlinechar = `^^J % 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 % Ignore a token. % \def\gobble#1{} \hyphenation{ap-pen-dix} \hyphenation{mini-buf-fer mini-buf-fers} \hyphenation{eshell} \hyphenation{white-space} % Margin to add to right of even pages, to left of odd pages. \newdimen \bindingoffset \newdimen \normaloffset \newdimen\pagewidth \newdimen\pageheight % 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 \tracingpages1 \tracingoutput1 \tracinglostchars1 \tracingmacros2 \tracingparagraphs1 \tracingrestores1 \showboxbreadth\maxdimen\showboxdepth\maxdimen }% \else \def\loggingall{\tracingcommands3 \tracingstats2 \tracingpages1 \tracingoutput1 \tracinglostchars1 \tracingmacros2 \tracingparagraphs1 \tracingrestores1 \tracingscantokens1 \tracingassigns1 \tracingifs1 \tracinggroups1 \tracingnesting2 \showboxbreadth\maxdimen\showboxdepth\maxdimen }% \fi % 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 % Main output routine. \chardef\PAGE = 255 \output = {\onepageout{\pagecontents\PAGE}} \newbox\headlinebox \newbox\footlinebox % \onepageout takes a vbox as an argument. Note that \pagecontents % does insertions, but you have to call it yourself. \def\onepageout#1{% \ifcropmarks \hoffset=0pt \else \hoffset=\normaloffset \fi % \ifodd\pageno \advance\hoffset by \bindingoffset \else \advance\hoffset by -\bindingoffset\fi % % Do this outside of the \shipout so @code etc. will be expanded in % the headline as they should be, not taken literally (outputting ''code). \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}% \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}% % {% % Have to do this stuff outside the \shipout because we want it to % take effect in \write's, yet the group defined by the \vbox ends % before the \shipout runs. % \escapechar = `\\ % use backslash in output files. \indexdummies % don't expand commands in the output. \normalturnoffactive % \ in index entries must not stay \, e.g., if % the page break happens to be in the middle of an example. \shipout\vbox{% \ifcropmarks \vbox to \outervsize\bgroup \hsize = \outerhsize \vskip-\topandbottommargin \vtop to0pt{% \line{\ewtop\hfil\ewtop}% \nointerlineskip \line{% \vbox{\moveleft\cornerthick\nstop}% \hfill \vbox{\moveright\cornerthick\nstop}% }% \vss}% \vskip\topandbottommargin \line\bgroup \hfil % center the page within the outer (page) hsize. \ifodd\pageno\hskip\bindingoffset\fi \vbox\bgroup \fi % \unvbox\headlinebox \pagebody{#1}% \ifdim\ht\footlinebox > 0pt % Only leave this space if the footline is nonempty. % (We lessened \vsize for it in \oddfootingxxx.) % The \baselineskip=24pt in plain's \makefootline has no effect. \vskip 2\baselineskip \unvbox\footlinebox \fi % \ifpdf\pdfmkdest{\the\pageno}\fi % \ifcropmarks \egroup % end of \vbox\bgroup \hfil\egroup % end of (centering) \line\bgroup \vskip\topandbottommargin plus1fill minus1fill \boxmaxdepth = \cornerthick \vbox to0pt{\vss \line{% \vbox{\moveleft\cornerthick\nsbot}% \hfill \vbox{\moveright\cornerthick\nsbot}% }% \nointerlineskip \line{\ewbot\hfil\ewbot}% }% \egroup % \vbox from first cropmarks clause \fi }% end of \shipout\vbox }% end of group with \turnoffactive \advancepageno \ifnum\outputpenalty>-20000 \else\dosupereject\fi } \newinsert\margin \dimen\margin=\maxdimen \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 \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} } % 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 {\hrule height\cornerthick depth\cornerlong width\cornerthick}} \def\ewbot{\vrule height0pt depth\cornerthick width\cornerlong} \def\nsbot{\vbox {\hrule height\cornerlong depth\cornerthick width\cornerthick}} % 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{% \let\next = #1% \begingroup \obeylines \futurelet\temp\parseargx } % 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{% % \obeyedspace is defined far below, after the definition of \sepspaces. \ifx\obeyedspace\temp \expandafter\parseargdiscardspace \else \expandafter\parseargline \fi } % Remove a single space (as the delimiter token to the macro call). {\obeyspaces % \gdef\parseargdiscardspace {\futurelet\temp\parseargx}} {\obeylines % \gdef\parseargline#1^^M{% \endgroup % End of the group started in \parsearg. % % First remove any @c comment, then any @comment. % Result of each macro is put in \toks0. \argremovec #1\c\relax % \expandafter\argremovecomment \the\toks0 \comment\relax % % % Call the caller's macro, saved as \next in \parsearg. \expandafter\next\expandafter{\the\toks0}% }% } % 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}} % \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{% \begingroup \ignoreactivespaces \edef\temp{#1}% \global\toks0 = \expandafter{\temp}% \endgroup } % Change the active space to expand to nothing. % \begingroup \obeyspaces \gdef\ignoreactivespaces{\obeyspaces\let =\empty} \endgroup \def\flushcr{\ifx\par\lisppar \def\next##1{}\else \let\next=\relax \fi \next} %% 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 % @begin foo is the same as @foo, for now. \newhelp\EMsimple{Press RETURN to continue.} \outer\def\begin{\parsearg\beginxxx} \def\beginxxx #1{% \expandafter\ifx\csname #1\endcsname\relax {\errhelp=\EMsimple \errmessage{Undefined command @begin #1}}\else \csname #1\endcsname\fi} % @end foo executes the definition of \Efoo. % \def\end{\parsearg\endxxx} \def\endxxx #1{% \removeactivespaces{#1}% \edef\endthing{\the\toks0}% % \expandafter\ifx\csname E\endthing\endcsname\relax \expandafter\ifx\csname \endthing\endcsname\relax % There's no \foo, i.e., no ``environment'' foo. \errhelp = \EMsimple \errmessage{Undefined command `@end \endthing'}% \else \unmatchedenderror\endthing \fi \else % Everything's ok; the right environment has been started. \csname E\endthing\endcsname \fi } % There is an environment #1, but it hasn't been started. Give an error. % \def\unmatchedenderror#1{% \errhelp = \EMsimple \errmessage{This `@end #1' doesn't have a matching `@#1'}% } % Define the control sequence \E#1 to give an unmatched @end error. % \def\defineunmatchedend#1{% \expandafter\def\csname E#1\endcsname{\unmatchedenderror{#1}}% } % Single-spacing is done by various environments (specifically, in % \nonfillstart and \quotations). \newskip\singlespaceskip \singlespaceskip = 12.5pt \def\singlespace{% % Why was this kern here? It messes up equalizing space above and below % environments. --karl, 6may93 %{\advance \baselineskip by -\singlespaceskip %\kern \baselineskip}% \setleading \singlespaceskip } %% Simple single-character @ commands % @@ prints an @ % Kludge this until the fonts are right (grr). \def\@{{\tt\char64}} % 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\'{{'}} % Used to generate quoted braces. \def\mylbrace {{\tt\char123}} \def\myrbrace {{\tt\char125}} \let\{=\mylbrace \let\}=\myrbrace \begingroup % Definitions to produce actual \{ & \} command in an index. \catcode`\{ = 12 \catcode`\} = 12 \catcode`\[ = 1 \catcode`\] = 2 \catcode`\@ = 0 \catcode`\\ = 12 @gdef@lbracecmd[\{]% @gdef@rbracecmd[\}]% @endgroup % 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 % Other special characters: @questiondown @exclamdown % Plain TeX defines: @AA @AE @O @OE @L (and lowercase versions) @ss. \def\questiondown{?`} \def\exclamdown{!`} % Dotless i and dotless j, used for accents. \def\imacro{i} \def\jmacro{j} \def\dotless#1{% \def\temp{#1}% \ifx\temp\imacro \ptexi \else\ifx\temp\jmacro \j \else \errmessage{@dotless can be used only with i or j}% \fi\fi } % 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 % Avoid using \@M directly, because that causes trouble % if the definition is written into an index file. \global\let\tiepenalty = \@M \gdef\tie{\leavevmode\penalty\tiepenalty\ } } % @: forces normal size whitespace following. \def\:{\spacefactor=1000 } % @* forces a line break. \def\*{\hfil\break\hbox{}\ignorespaces} % @. is an end-of-sentence period. \def\.{.\spacefactor=3000 } % @! is an end-of-sentence bang. \def\!{!\spacefactor=3000 } % @? is an end-of-sentence query. \def\?{?\spacefactor=3000 } % @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}} % @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 \ifnum\catcode13=\active \else \errhelp = \groupinvalidhelp \errmessage{@group invalid in context where filling is enabled}% \fi % % The \vtop we start below produces a box with normal height and large % depth; thus, TeX puts \baselineskip glue before it, and (when the % next line of text is done) \lineskip glue after it. (See p.82 of % the TeXbook.) Thus, space below is not quite equal to space % above. But it's pretty close. \def\Egroup{% \egroup % End the \vtop. \endgroup % End the \group. }% % \vtop\bgroup % We have to put a strut on the last line in case the @group is in % the midst of an example, rather than completely enclosing it. % Otherwise, the interline space between the last line of the group % and the first line afterwards is too small. But we can't put the % strut in \Egroup, since there it would be on a line by itself. % Hence this just inserts a strut at the beginning of each line. \everypar = {\strut}% % % Since we have a strut on every line, we don't need any of TeX's % normal interline spacing. \offinterlineskip % % OK, but now we have to do something about blank % lines in the input in @example-like environments, which normally % just turn into \lisppar, which will insert no space now that we've % turned off the interline space. Simplest is to make them be an % empty paragraph. \ifx\par\lisppar \edef\par{\leavevmode \par}% % % Reset ^^M's definition to new definition of \par. \obeylines \fi % % Do @comment since we are called inside an environment such as % @example, where each end-of-line in the input causes an % end-of-line in the output. We don't want the end-of-line after % the `@group' to put extra space in the output. Since @group % should appear on a line by itself (according to the Texinfo % manual), we don't worry about eating any user text. \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.} % @need space-in-mils % forces a page break if there is not space-in-mils remaining. \newdimen\mil \mil=0.001in \def\need{\parsearg\needx} % 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 %}} \def\needx#1{% % Go into vertical mode, so we don't make a big box in the middle of a % paragraph. \par % % Don't add any leading before our big empty box, but allow a page % break, since the best break might be right here. \allowbreak \nointerlineskip \vtop to #1\mil{\vfil}% % % TeX does not even consider page breaks if a penalty added to the % main vertical list is 10000 or more. But in order to see if the % empty box we just added fits on the page, we must make it consider % page breaks. On the other hand, we don't want to actually break the % page after the empty box. So we use a penalty of 9999. % % There is an extremely small chance that TeX will actually break the % page at this \penalty, if there are no other feasible breakpoints in % sight. (If the user is using lots of big @group commands, which % almost-but-not-quite fill up a page, TeX will have a hard time doing % good page breaking, for example.) However, I could not construct an % example where a page broke at this \penalty; if it happens in a real % document, then we can reconsider our strategy. \penalty9999 % % Back up by the size of the box, whether we did a page break or not. \kern -#1\mil % % Do not allow a page break right after this kern. \nobreak } % @br forces paragraph break \let\br = \par % @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{% \leavevmode \hbox to 1.5em{% \hskip 0pt plus 0.25fil minus 0.25fil .\hss.\hss.% \hskip 0pt plus 0.5fil minus 0.5fil }% } % @enddots{} is an end-of-sentence ellipsis. % \def\enddots{% \leavevmode \hbox to 2em{% \hskip 0pt plus 0.25fil minus 0.25fil .\hss.\hss.\hss.% \hskip 0pt plus 0.5fil minus 0.5fil }% \spacefactor=3000 } % @page forces the start of a new page % \def\page{\par\vfill\supereject} % @exdent text.... % outputs text on separate line in roman font, starting at standard page margin % This records the amount of indent in the innermost environment. % That's how much \exdent should take out. \newskip\exdentamount % 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}} % 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}}}} % @inmargin{TEXT} puts TEXT in the margin next to the current paragraph. \def\inmargin#1{% \strut\vadjust{\nobreak\kern-\strutdepth \vtop to \strutdepth{\baselineskip\strutdepth\vss \llap{\rightskip=\inmarginspacing \vbox{\noindent #1}}\null}}} \newskip\inmarginspacing \inmarginspacing=1cm \def\strutdepth{\dp\strutbox} %\hbox{{\rm#1}}\hfil\break}} % @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 \catcode`\\=12 \catcode`~=12 \catcode`^=12 \catcode`_=12 \catcode`|=12 \catcode`<=12 \catcode`>=12 \catcode`+=12 \parsearg\includezzz} % Restore active chars for included file. \def\includezzz#1{\endgroup\begingroup % Read the included file in a group so nested @include's work. \def\thisfile{#1}% \input\thisfile \endgroup} \def\thisfile{} % @center line outputs that line, centered \def\center{\parsearg\centerzzz} \def\centerzzz #1{{\advance\hsize by -\leftskip \advance\hsize by -\rightskip \centerline{#1}}} % @sp n outputs n lines of vertical space \def\sp{\parsearg\spxxx} \def\spxxx #1{\vskip #1\baselineskip} % @comment ...line which is ignored... % @c is the same as @comment % @ignore ... @end ignore is another way to write a comment \def\comment{\begingroup \catcode`\^^M=\other% \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other% \commentxxx} {\catcode`\^^M=\other \gdef\commentxxx#1^^M{\endgroup}} \let\c=\comment % @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{% \def\temp{#1}% \ifx\temp\asisword \else \ifx\temp\noneword \defaultparindent = 0pt \else \defaultparindent = #1em \fi \fi \parindent = \defaultparindent } % @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{% \def\temp{#1}% \ifx\temp\asisword \else \ifx\temp\noneword \lispnarrowing = 0pt \else \lispnarrowing = #1em \fi \fi } % @asis just yields its argument. Used with @table, for example. % \def\asis#1{#1} % @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} % @bullet and @minus need the same treatment as @math, just above. \def\bullet{\implicitmath\ptexbullet\implicitmath} \def\minus{\implicitmath-\implicitmath} % @refill is a no-op. \let\refill=\relax % 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 % @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{% \iflinks \readauxfile \fi % \openindices needs to do some work in any case. \openindices \fixbackslash % Turn off hack to swallow `\input texinfo'. \global\let\setfilename=\comment % Ignore extra @setfilename cmds. % % If texinfo.cnf is present on the system, read it. % Useful for site-wide @afourpaper, etc. % Just to be on the safe side, close the input stream before the \input. \openin 1 texinfo.cnf \ifeof1 \let\temp=\relax \else \def\temp{\input texinfo.cnf }\fi \closein1 \temp % \comment % Ignore the actual filename. } % Called from \setfilename. % \def\openindices{% \newindex{cp}% \newcodeindex{fn}% \newcodeindex{vr}% \newcodeindex{tp}% \newcodeindex{ky}% \newcodeindex{pg}% } % @bye. \outer\def\bye{\pagealignmacro\tracingstats=1\ptexend} \message{pdf,} % adobe `portable' document format \newcount\tempnum \newcount\lnkcount \newtoks\filename \newcount\filenamelength \newcount\pgn \ifpdf \def\pdfmkdest#1{\pdfdest name{#1@} xyz} \def\pdfmkpgn#1{#1@} % Adding outlines to PDF; macros for calculating structure of outlines % come from Petr Olsak \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0% \else \csname#1\endcsname \fi} \def\advancenumber#1{\tempnum=\expnumber{#1}\relax \advance\tempnum by1 \expandafter\xdef\csname#1\endcsname{\the\tempnum}} \def\pdfmakeoutlines{{% \openin 1 \jobname.toc \ifeof 1\else\bgroup \closein 1 \def\code##1{##1} \def\file##1{##1} \def\TeX##1{TeX} \def\tt{} \def\char{char} \def\samp##1{##1} \def\kbd##1{##1} \def\key##1{##1} \def\rawbackslashxx{\string\\} \def\chapentry ##1##2##3{} \def\unnumbchapentry ##1##2{} \def\secentry ##1##2##3##4{\advancenumber{chap##2}} \def\unnumbsecentry ##1##2{} \def\subsecentry ##1##2##3##4##5{\advancenumber{sec##2.##3}} \def\unnumbsubsecentry ##1##2{} \def\subsubsecentry ##1##2##3##4##5##6{\advancenumber{subsec##2.##3.##4}} \def\unnumbsubsubsecentry ##1##2{} \input \jobname.toc \def\chapentry ##1##2##3{% \pdfoutline goto name{\pdfmkpgn{##3}}count-\expnumber{chap##2}{##1}} \def\unnumbchapentry ##1##2{% \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} \def\secentry ##1##2##3##4{% \pdfoutline goto name{\pdfmkpgn{##4}}count-\expnumber{sec##2.##3}{##1}} \def\unnumbsecentry ##1##2{% \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} \def\subsecentry ##1##2##3##4##5{% \pdfoutline goto name{\pdfmkpgn{##5}}count-\expnumber{subsec##2.##3.##4}{##1}} \def\unnumbsubsecentry ##1##2{% \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} \def\subsubsecentry ##1##2##3##4##5##6{% \pdfoutline goto name{\pdfmkpgn{##6}}{##1}} \def\unnumbsubsubsecentry ##1##2{% \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} \input \jobname.toc \egroup\fi }} \pdfmakeoutlines \def\makelinks #1,{% \def\params{#1}\def\E{END}% \ifx\params\E \let\nextmakelinks=\relax \else \let\nextmakelinks=\makelinks \ifnum\lnkcount>0,\fi \picknum{#1}% \Blue\pdfannotlink attr{/Border [0 0 0]} goto name{\pdfmkpgn{\the\pgn}}% #1% \advance\lnkcount by 1% \Black\pdfendlink \fi \nextmakelinks } \def\picknum#1{\expandafter\pn#1} \def\pn#1{% \def\p{#1}% \ifx\p\lbrace \let\nextpn=\ppn \else \let\nextpn=\ppnn \def\first{#1} \fi \nextpn } \def\ppn#1{\pgn=#1\gobble} \def\ppnn{\pgn=\first} \def\pdfmklnk#1{\lnkcount=0\makelinks #1,END,} \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} \def\skipspaces#1{\def\PP{#1}\def\D{|}% \ifx\PP\D\let\nextsp\relax \else\let\nextsp\skipspaces \ifx\p\space\else\addtokens{\filename}{\PP}% \advance\filenamelength by 1 \fi \fi \nextsp} \def\getfilename#1{\filenamelength=0\expandafter\skipspaces#1|\relax} \def\pdflink#1{% \leavevmode\Red \begingroup \normalturnoffactive\def\@{@}% \pdfannotlink attr{/Border [0 0 0]}% user{/Subtype /Link /A << /S /URI /URI (#1) >>}% \endgroup } \else \let\pdflink = \gobble \fi % end \ifpdf \message{fonts,} % Font-change commands. % 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. % We don't need math for this one. \def\ttsl{\tenttsl} % Use Computer Modern fonts at \magstephalf (11pt). \newcount\mainmagstep \mainmagstep=\magstephalf % 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} % 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} \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 % 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} % 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 % 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} % 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 % 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 % \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} %\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} %\let\ssecbf=\ssecrm % 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. % 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{% \textfont0 = \tenrm \textfont1 = \teni \textfont2 = \tensy \textfont\itfam = \tenit \textfont\slfam = \tensl \textfont\bffam = \tenbf \textfont\ttfam = \tentt \textfont\sffam = \tensf } % 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{% \let\tenrm=\textrm \let\tenit=\textit \let\tensl=\textsl \let\tenbf=\textbf \let\tentt=\texttt \let\smallcaps=\textsc \let\tensf=\textsf \let\teni=\texti \let\tensy=\textsy \let\tenttsl=\textttsl \resetmathfonts} \def\titlefonts{% \let\tenrm=\titlerm \let\tenit=\titleit \let\tensl=\titlesl \let\tenbf=\titlebf \let\tentt=\titlett \let\smallcaps=\titlesc \let\tensf=\titlesf \let\teni=\titlei \let\tensy=\titlesy \let\tenttsl=\titlettsl \resetmathfonts \setleading{25pt}} \def\titlefont#1{{\titlefonts\rm #1}} \def\chapfonts{% \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc \let\tensf=\chapsf \let\teni=\chapi \let\tensy=\chapsy \let\tenttsl=\chapttsl \resetmathfonts \setleading{19pt}} \def\secfonts{% \let\tenrm=\secrm \let\tenit=\secit \let\tensl=\secsl \let\tenbf=\secbf \let\tentt=\sectt \let\smallcaps=\secsc \let\tensf=\secsf \let\teni=\seci \let\tensy=\secsy \let\tenttsl=\secttsl \resetmathfonts \setleading{16pt}} \def\subsecfonts{% \let\tenrm=\ssecrm \let\tenit=\ssecit \let\tensl=\ssecsl \let\tenbf=\ssecbf \let\tentt=\ssectt \let\smallcaps=\ssecsc \let\tensf=\ssecsf \let\teni=\sseci \let\tensy=\ssecsy \let\tenttsl=\ssecttsl \resetmathfonts \setleading{15pt}} \let\subsubsecfonts = \subsecfonts % Maybe make sssec fonts scaled magstephalf? \def\indexfonts{% \let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl \let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc \let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl \resetmathfonts \setleading{12pt}} % Set up the default fonts, so we can use them for creating boxes. % \textfonts % Define these so they can be easily changed for other fonts. \def\angleleft{$\langle$} \def\angleright{$\rangle$} % Count depth in font-changes, for error checks \newcount\fontdepth \fontdepth=0 % Fonts for short table of contents. \setfont\shortcontrm\rmshape{12}{1000} \setfont\shortcontbf\bxshape{12}{1000} \setfont\shortcontsl\slshape{12}{1000} %% Add scribe-like font environments, plus @l for inline lisp (usually sans %% serif) and @ii for TeX italic % \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} \let\i=\smartitalic \let\var=\smartslanted \let\dfn=\smartslanted \let\emph=\smartitalic \let\cite=\smartslanted \def\b#1{{\bf #1}} \let\strong=\b % 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 = `- } \def\t#1{% {\tt \rawbackslash \frenchspacing #1}% \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{% \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{% \vbox{\hrule\kern-0.4pt \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}% \kern-0.4pt\hrule}% \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} % @file, @option are the same as @samp. \let\file=\samp \let\option=\samp % @code is a modification of @t, % which makes spaces the same size as normal in the surrounding text. \def\tclose#1{% {% % Change normal interword space to be same as for the current font. \spaceskip = \fontdimen2\font % % Switch to typewriter. \tt % % But `\ ' produces the large typewriter interword space. \def\ {{\spaceskip = 0pt{} }}% % % Turn off hyphenation. \nohyphenation % \rawbackslash \frenchspacing #1% }% \null } % 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. % 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. { \catcode`\-=\active \catcode`\_=\active % \global\def\code{\begingroup \catcode`\-=\active \let-\codedash \catcode`\_=\active \let_\codeunder \codex } % % If we end up with any active - characters when handling the index, % just treat them as a normal -. \global\def\indexbreaks{\catcode`\-=\active \let-\realdash} } \def\realdash{-} \def\codedash{-\discretionary{}{}{}} \def\codeunder{\ifusingtt{\normalunderscore\discretionary{}{}{}}{\_}} \def\codex #1{\tclose{#1}\endgroup} %\let\exp=\tclose %Was temporary % @kbd is like @code, except that if the argument is just one @key command, % then @kbd has no effect. % @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{% \def\arg{#1}% \ifx\arg\worddistinct \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% \else\ifx\arg\wordexample \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% \else\ifx\arg\wordcode \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% \fi\fi\fi } \def\worddistinct{distinct} \def\wordexample{example} \def\wordcode{code} % 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} \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} % For @url, @env, @command quotes seem unnecessary, so use \code. \let\url=\code \let\env=\code \let\command=\code % @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{% \pdflink{#1}% \setbox0 = \hbox{\ignorespaces #3}% \ifdim\wd0 > 0pt \unhbox0 % third arg given, show only that \else \setbox0 = \hbox{\ignorespaces #2}% \ifdim\wd0 > 0pt \ifpdf \unhbox0\ (\code{#1})% DVI: 2nd arg given, show both it and url \else \unhbox0 % PDF: 2nd arg given, show only it \fi \else \code{#1}% only url given, so show it \fi \fi % \ifpdf \Black\pdfendlink \fi } % 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 \def\email#1{\doemail#1,,\finish} \def\doemail#1,#2,#3\finish{% \pdflink{mailto:#1}% \setbox0 = \hbox{\ignorespaces #2}% \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi \Black\pdfendlink } \else \let\email=\uref \fi % 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 } % 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} \def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par} % @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} % 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 % @acronym downcases the argument and prints in smallcaps. \def\acronym#1{{\smallcaps \lowercase{#1}}} % @pounds{} is a sterling sign. \def\pounds{{\it\$}} \message{page headings,} \newskip\titlepagetopglue \titlepagetopglue = 1.5in \newskip\titlepagebottomglue \titlepagebottomglue = 2pc % First the title page. Must do @settitle before @titlepage. \newif\ifseenauthor \newif\iffinishedtitlepage % Do an implicit @contents or @shortcontents after @end titlepage if the % user says @setcontentsaftertitlepage or @setshortcontentsaftertitlepage. % \newif\ifsetcontentsaftertitlepage \let\setcontentsaftertitlepage = \setcontentsaftertitlepagetrue \newif\ifsetshortcontentsaftertitlepage \let\setshortcontentsaftertitlepage = \setshortcontentsaftertitlepagetrue \def\shorttitlepage{\parsearg\shorttitlepagezzz} \def\shorttitlepagezzz #1{\begingroup\hbox{}\vskip 1.5in \chaprm \centerline{#1}% \endgroup\page\hbox{}\page} \def\titlepage{\begingroup \parindent=0pt \textfonts \let\subtitlerm=\tenrm \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}% % \def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines}% % % Leave some space at the very top of the page. \vglue\titlepagetopglue % % Now you can print the title using @title. \def\title{\parsearg\titlezzz}% \def\titlezzz##1{\leftline{\titlefonts\rm ##1} % print a rule at the page bottom also. \finishedtitlepagefalse \vskip4pt \hrule height 4pt width \hsize \vskip4pt}% % No rule at page bottom unless we print one at the top with @title. \finishedtitlepagetrue % % Now you can put text using @subtitle. \def\subtitle{\parsearg\subtitlezzz}% \def\subtitlezzz##1{{\subtitlefont \rightline{##1}}}% % % @author should come last, but may come many times. \def\author{\parsearg\authorzzz}% \def\authorzzz##1{\ifseenauthor\else\vskip 0pt plus 1filll\seenauthortrue\fi {\authorfont \leftline{##1}}}% % % Most title ``pages'' are actually two pages long, with space % at the top of the second. We don't want the ragged left on the second. \let\oldpage = \page \def\page{% \iffinishedtitlepage\else \finishtitlepage \fi \oldpage \let\page = \oldpage \hbox{}}% % \def\page{\oldpage \hbox{}} } \def\Etitlepage{% \iffinishedtitlepage\else \finishtitlepage \fi % It is important to do the page break before ending the group, % because the headline and footline are only empty inside the group. % If we use the new definition of \page, we always get a blank page % after the title page, which we certainly don't want. \oldpage \endgroup % % If they want short, they certainly want long too. \ifsetshortcontentsaftertitlepage \shortcontents \contents \global\let\shortcontents = \relax \global\let\contents = \relax \fi % \ifsetcontentsaftertitlepage \contents \global\let\contents = \relax \global\let\shortcontents = \relax \fi % \HEADINGSon } \def\finishtitlepage{% \vskip4pt \hrule height 2pt width \hsize \vskip\titlepagebottomglue \finishedtitlepagetrue } %%% Set up page headings and footings. \let\thispage=\folio \newtoks\evenheadline % headline on even pages \newtoks\oddheadline % headline on odd pages \newtoks\evenfootline % footline on even pages \newtoks\oddfootline % footline on odd pages % Now make Tex use those variables \headline={{\textfonts\rm \ifodd\pageno \the\oddheadline \else \the\evenheadline \fi}} \footline={{\textfonts\rm \ifodd\pageno \the\oddfootline \else \the\evenfootline \fi}\HEADINGShook} \let\HEADINGShook=\relax % 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 \def\evenheading{\parsearg\evenheadingxxx} \def\oddheading{\parsearg\oddheadingxxx} \def\everyheading{\parsearg\everyheadingxxx} \def\evenfooting{\parsearg\evenfootingxxx} \def\oddfooting{\parsearg\oddfootingxxx} \def\everyfooting{\parsearg\everyfootingxxx} {\catcode`\@=0 % \gdef\evenheadingxxx #1{\evenheadingyyy #1@|@|@|@|\finish} \gdef\evenheadingyyy #1@|#2@|#3@|#4\finish{% \global\evenheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} \gdef\oddheadingxxx #1{\oddheadingyyy #1@|@|@|@|\finish} \gdef\oddheadingyyy #1@|#2@|#3@|#4\finish{% \global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} \gdef\everyheadingxxx#1{\oddheadingxxx{#1}\evenheadingxxx{#1}}% \gdef\evenfootingxxx #1{\evenfootingyyy #1@|@|@|@|\finish} \gdef\evenfootingyyy #1@|#2@|#3@|#4\finish{% \global\evenfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} \gdef\oddfootingxxx #1{\oddfootingyyy #1@|@|@|@|\finish} \gdef\oddfootingyyy #1@|#2@|#3@|#4\finish{% \global\oddfootline = {\rlap{\centerline{#2}}\line{#1\hfil#3}}% % % Leave some space for the footline. Hopefully ok to assume % @evenfooting will not be used by itself. \global\advance\pageheight by -\baselineskip \global\advance\vsize by -\baselineskip } \gdef\everyfootingxxx#1{\oddfootingxxx{#1}\evenfootingxxx{#1}} % }% unbind the catcode of @. % @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. \def\headings #1 {\csname HEADINGS#1\endcsname} \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 % 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} \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 } \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 } % Subroutines used in generating headings % Produces Day Month Year style of output. \def\today{% \number\day\space \ifcase\month \or\putwordMJan\or\putwordMFeb\or\putwordMMar\or\putwordMApr \or\putwordMMay\or\putwordMJun\or\putwordMJul\or\putwordMAug \or\putwordMSep\or\putwordMOct\or\putwordMNov\or\putwordMDec \fi \space\number\year} % @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}} \message{tables,} % Tables -- @table, @ftable, @vtable, @item(x), @kitem(x), @xitem(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 % used internally for \itemindent minus \itemmargin \newdimen\itemmax % 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). \newif\ifitemxneedsnegativevskip \def\itemxpar{\par\ifitemxneedsnegativevskip\nobreak\vskip-\parskip\nobreak\fi} \def\internalBitem{\smallbreak \parsearg\itemzzz} \def\internalBitemx{\itemxpar \parsearg\itemzzz} \def\internalBxitem "#1"{\def\xitemsubtopix{#1} \smallbreak \parsearg\xitemzzz} \def\internalBxitemx "#1"{\def\xitemsubtopix{#1} \itemxpar \parsearg\xitemzzz} \def\internalBkitem{\smallbreak \parsearg\kitemzzz} \def\internalBkitemx{\itemxpar \parsearg\kitemzzz} \def\kitemzzz #1{\dosubind {kw}{\code{#1}}{for {\bf \lastfunction}}% \itemzzz {#1}} \def\xitemzzz #1{\dosubind {kw}{\code{#1}}{for {\bf \xitemsubtopic}}% \itemzzz {#1}} \def\itemzzz #1{\begingroup % \advance\hsize by -\rightskip \advance\hsize by -\tableindent \setbox0=\hbox{\itemfont{#1}}% \itemindex{#1}% \nobreak % This prevents a break before @itemx. % % If the item text does not fit in the space we have, put it on a line % by itself, and do not allow a page break either before or after that % line. We do not start a paragraph here because then if the next % command is, e.g., @kindex, the whatsit would get put into the % horizontal list on a line by itself, resulting in extra blank space. \ifdim \wd0>\itemmax % % Make this a paragraph so we get the \parskip glue and wrapping, % but leave it ragged-right. \begingroup \advance\leftskip by-\tableindent \advance\hsize by\tableindent \advance\rightskip by0pt plus1fil \leavevmode\unhbox0\par \endgroup % % We're going to be starting a paragraph, but we don't want the % \parskip glue -- logically it's part of the @item we just started. \nobreak \vskip-\parskip % % Stop a page break at the \parskip glue coming up. Unfortunately % we can't prevent a possible page break at the following % \baselineskip glue. \nobreak \endgroup \itemxneedsnegativevskipfalse \else % The item text fits into the space. Start a paragraph, so that the % following text (if any) will end up on the same line. \noindent % Do this with kerns and \unhbox so that if there is a footnote in % the item text, it can migrate to the main vertical list and % eventually be printed. \nobreak\kern-\tableindent \dimen0 = \itemmax \advance\dimen0 by \itemmargin \advance\dimen0 by -\wd0 \unhbox0 \nobreak\kern\dimen0 \endgroup \itemxneedsnegativevskiptrue \fi } \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}} % Contains a kludge to get @end[description] to work. \def\description{\tablez{\dontindex}{1}{}{}{}{}} % @table, @ftable, @vtable. \def\table{\begingroup\inENV\obeylines\obeyspaces\tablex} {\obeylines\obeyspaces% \gdef\tablex #1^^M{% \tabley\dontindex#1 \endtabley}} \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}} \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}} \def\dontindex #1{} \def\fnitemindex #1{\doind {fn}{\code{#1}}}% \def\vritemindex #1{\doind {vr}{\code{#1}}}% {\obeyspaces % \gdef\tabley#1#2 #3 #4 #5 #6 #7\endtabley{\endgroup% \tablez{#1}{#2}{#3}{#4}{#5}{#6}}} \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 % } % This is the counter used by @enumerate, which is really @itemize \newcount \itemno \def\itemize{\parsearg\itemizezzz} \def\itemizezzz #1{% \begingroup % ended by the @end itemize \itemizey {#1}{\Eitemize} } \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} % Set sfcode to normal for the chars that usually have another value. % These are `.?!:;,' \def\frenchspacing{\sfcode46=1000 \sfcode63=1000 \sfcode33=1000 \sfcode58=1000 \sfcode59=1000 \sfcode44=1000 } % \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}}% % 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{% \begingroup % ended by the @end enumerate % % If we were given no argument, pretend we were given `1'. \def\thearg{#1}% \ifx\thearg\empty \def\thearg{1}\fi % % Detect if the argument is a single token. If so, it might be a % letter. Otherwise, the only valid thing it can be is a number. % (We will always have one token, because of the test we just made. % This is a good thing, since \splitoff doesn't work given nothing at % all -- the first parameter is undelimited.) \expandafter\splitoff\thearg\endmark \ifx\rest\empty % Only one token in the argument. It could still be anything. % A ``lowercase letter'' is one whose \lccode is nonzero. % An ``uppercase letter'' is one whose \lccode is both nonzero, and % not equal to itself. % Otherwise, we assume it's a number. % % We need the \relax at the end of the \ifnum lines to stop TeX from % continuing to look for a . % \ifnum\lccode\expandafter`\thearg=0\relax \numericenumerate % a number (we hope) \else % It's a letter. \ifnum\lccode\expandafter`\thearg=\expandafter`\thearg\relax \lowercaseenumerate % lowercase letter \else \uppercaseenumerate % uppercase letter \fi \fi \else % Multiple tokens in the argument. We hope it's a number. \numericenumerate \fi } % An @enumerate whose labels are integers. The starting integer is % given in \thearg. % \def\numericenumerate{% \itemno = \thearg \startenumeration{\the\itemno}% } % The starting (lowercase) letter is in \thearg. \def\lowercaseenumerate{% \itemno = \expandafter`\thearg \startenumeration{% % Be sure we're not beyond the end of the alphabet. \ifnum\itemno=0 \errmessage{No more lowercase letters in @enumerate; get a bigger alphabet}% \fi \char\lccode\itemno }% } % The starting (uppercase) letter is in \thearg. \def\uppercaseenumerate{% \itemno = \expandafter`\thearg \startenumeration{% % Be sure we're not beyond the end of the alphabet. \ifnum\itemno=0 \errmessage{No more uppercase letters in @enumerate; get a bigger alphabet} \fi \char\uccode\itemno }% } % 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{% \advance\itemno by -1 \itemizey{#1.}\Eenumerate\flushcr } % @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} % Definition of @item while inside @itemize. \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} % @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. % Table can continue over pages but will only break between lines. % 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. % 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} % 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. % @item, @tab, @multitable or @end multitable do not need to be on their % own lines, but it will not hurt if they are. % Sample multitable: % @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 % 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 % Macros used to set up halign preamble: % \let\endsetuptable\relax \def\xendsetuptable{\endsetuptable} \let\columnfractions\relax \def\xcolumnfractions{\columnfractions} \newif\ifsetpercent % #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 {% \global\advance\colcount by 1 \expandafter\xdef\csname col\the\colcount\endcsname{.#2\hsize}% \setuptable } \newcount\colcount \def\setuptable#1{% \def\firstarg{#1}% \ifx\firstarg\xendsetuptable \let\go = \relax \else \ifx\firstarg\xcolumnfractions \global\setpercenttrue \else \ifsetpercent \let\go\pickupwholefraction \else \global\advance\colcount by 1 \setbox0=\hbox{#1\unskip }% Add a normal word space as a separator; % typically that is always in the input, anyway. \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}% \fi \fi \ifx\go\pickupwholefraction % Put the argument back for the \pickupwholefraction call, so % we'll always have a period there to be parsed. \def\go{\pickupwholefraction#1}% \else \let\go = \setuptable \fi% \fi \go } % 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{&} % @multitable ... @end multitable definitions: % \def\multitable{\parsearg\dotable} \def\dotable#1{\bgroup \vskip\parskip \let\item\crcr \tolerance=9500 \hbadness=9500 \setmultitablespacing \parskip=\multitableparskip \parindent=\multitableparindent \overfullrule=0pt \global\colcount=0 \def\Emultitable{\global\setpercentfalse\cr\egroup\egroup}% % % To parse everything between @multitable and @item: \setuptable#1 \endsetuptable % % \everycr will reset column counter, \colcount, at the end of % each line. Every column entry will cause \colcount to advance by one. % The table preamble % looks at the current \colcount to find the correct column width. \everycr{\noalign{% % % \filbreak%% keeps underfull box messages off when table breaks over pages. % Maybe so, but it also creates really weird page breaks when the table % breaks over pages. Wouldn't \vfil be better? Wait until the problem % manifests itself, so it can be fixed for real --karl. \global\colcount=0\relax}}% % % This preamble sets up a generic column definition, which will % be used as many times as user calls for columns. % \vtop will set a single line and will also let text wrap and % continue for many paragraphs if desired. \halign\bgroup&\global\advance\colcount by 1\relax \multistrut\vtop{\hsize=\expandafter\csname col\the\colcount\endcsname % % In order to keep entries from bumping into each other % we will add a \leftskip of \multitablecolspace to all columns after % the first one. % % If a template has been used, we will add \multitablecolspace % to the width of each template entry. % % If the user has set preamble in terms of percent of \hsize we will % use that dimension as the width of the column, and the \leftskip % will keep entries from bumping into each other. Table will start at % left margin and final column will justify at right margin. % % Make sure we don't inherit \rightskip from the outer environment. \rightskip=0pt \ifnum\colcount=1 % The first column will be indented with the surrounding text. \advance\hsize by\leftskip \else \ifsetpercent \else % If user has not set preamble in terms of percent of \hsize % we will advance \hsize by \multitablecolspace. \advance\hsize by \multitablecolspace \fi % In either case we will make \leftskip=\multitablecolspace: \leftskip=\multitablecolspace \fi % Ignoring space at the beginning and end avoids an occasional spurious % blank line, when TeX decides to break the line at the space before the % box from the multistrut, so the strut ends up on a line by itself. % For example: % @multitable @columnfractions .11 .89 % @item @code{#} % @tab Legal holiday which is valid in major parts of the whole country. % Is automatically provided with highlighting sequences respectively marking % characters. \noindent\ignorespaces##\unskip\multistrut}\cr } \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 %% than skip between lines in the table. \fi% \ifdim\multitableparskip=0pt \global\multitableparskip=\multitablelinespace \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller %% than skip between lines in the table. \fi} \message{conditionals,} % Prevent errors for section commands. % Used in @ignore and in failing conditionals. \def\ignoresections{% \let\chapter=\relax \let\unnumbered=\relax \let\top=\relax \let\unnumberedsec=\relax \let\unnumberedsection=\relax \let\unnumberedsubsec=\relax \let\unnumberedsubsection=\relax \let\unnumberedsubsubsec=\relax \let\unnumberedsubsubsection=\relax \let\section=\relax \let\subsec=\relax \let\subsubsec=\relax \let\subsection=\relax \let\subsubsection=\relax \let\appendix=\relax \let\appendixsec=\relax \let\appendixsection=\relax \let\appendixsubsec=\relax \let\appendixsubsection=\relax \let\appendixsubsubsec=\relax \let\appendixsubsubsection=\relax \let\contents=\relax \let\smallbook=\relax \let\titlepage=\relax } % 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{% \let\defcodeindex = \relax \let\defcv = \relax \let\deffn = \relax \let\deffnx = \relax \let\defindex = \relax \let\defivar = \relax \let\defmac = \relax \let\defmethod = \relax \let\defop = \relax \let\defopt = \relax \let\defspec = \relax \let\deftp = \relax \let\deftypefn = \relax \let\deftypefun = \relax \let\deftypeivar = \relax \let\deftypevar = \relax \let\deftypevr = \relax \let\defun = \relax \let\defvar = \relax \let\defvr = \relax \let\ref = \relax \let\xref = \relax \let\printindex = \relax \let\pxref = \relax \let\settitle = \relax \let\setchapternewpage = \relax \let\setchapterstyle = \relax \let\everyheading = \relax \let\evenheading = \relax \let\oddheading = \relax \let\everyfooting = \relax \let\evenfooting = \relax \let\oddfooting = \relax \let\headings = \relax \let\include = \relax \let\lowersections = \relax \let\down = \relax \let\raisesections = \relax \let\up = \relax \let\set = \relax \let\clear = \relax \let\item = \relax } % Ignore @ignore ... @end ignore. % \def\ignore{\doignore{ignore}} % 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}} % @dircategory CATEGORY -- specify a category of the dir file % which this file should belong to. Ignore this in TeX. \let\dircategory = \comment % Ignore text until a line `@end #1'. % \def\doignore#1{\begingroup % Don't complain about control sequences we have declared \outer. \ignoresections % % Define a command to swallow text until we reach `@end #1'. % This @ is a catcode 12 token (that is the normal catcode of @ in % this texinfo.tex file). We change the catcode of @ below to match. \long\def\doignoretext##1@end #1{\enddoignore}% % % Make sure that spaces turn into tokens that match what \doignoretext wants. \catcode32 = 10 % % Ignore braces, too, so mismatched braces don't cause trouble. \catcode`\{ = 9 \catcode`\} = 9 % % We must not have @c interpreted as a control sequence. \catcode`\@ = 12 % % Make the letter c a comment character so that the rest of the line % will be ignored. This way, the document can have (for example) % @c @end ifinfo % and the @end ifinfo will be properly ignored. % (We've just changed @ to catcode 12.) \catcode`\c = 14 % % And now expand that command. \doignoretext } % What we do to finish off ignored text. % \def\enddoignore{\endgroup\ignorespaces}% \newif\ifwarnedobs\warnedobsfalse \def\obstexwarn{% \ifwarnedobs\relax\else % We need to warn folks that they may have trouble with TeX 3.0. % This uses \immediate\write16 rather than \message to get newlines. \immediate\write16{} \immediate\write16{WARNING: for users of Unix TeX 3.0!} \immediate\write16{This manual trips a bug in TeX version 3.0 (tex hangs).} \immediate\write16{If you are running another version of TeX, relax.} \immediate\write16{If you are running Unix TeX 3.0, kill this TeX process.} \immediate\write16{ Then upgrade your TeX installation if you can.} \immediate\write16{ (See ftp://ftp.gnu.org/pub/gnu/TeX.README.)} \immediate\write16{If you are stuck with version 3.0, run the} \immediate\write16{ script ``tex3patch'' from the Texinfo distribution} \immediate\write16{ to use a workaround.} \immediate\write16{} \global\warnedobstrue \fi } % **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 % Ignore text, except that we keep track of conditional commands for % purposes of nesting, up to an `@end #1' command. % \def\nestedignore#1{% \obstexwarn % We must actually expand the ignored text to look for the @end % command, so that nested ignore constructs work. Thus, we put the % text into a \vbox and then do nothing with the result. To minimize % the change of memory overflow, we follow the approach outlined on % page 401 of the TeXbook: make the current font be a dummy font. % \setbox0 = \vbox\bgroup % Don't complain about control sequences we have declared \outer. \ignoresections % % Define `@end #1' to end the box, which will in turn undefine the % @end command again. \expandafter\def\csname E#1\endcsname{\egroup\ignorespaces}% % % We are going to be parsing Texinfo commands. Most cause no % trouble when they are used incorrectly, but some commands do % complicated argument parsing or otherwise get confused, so we % undefine them. % % We can't do anything about stray @-signs, unfortunately; % they'll produce `undefined control sequence' errors. \ignoremorecommands % % Set the current font to be \nullfont, a TeX primitive, and define % all the font commands to also use \nullfont. We don't use % dummy.tfm, as suggested in the TeXbook, because not all sites % might have that installed. Therefore, math mode will still % produce output, but that should be an extremely small amount of % stuff compared to the main input. % \nullfont \let\tenrm = \nullfont \let\tenit = \nullfont \let\tensl = \nullfont \let\tenbf = \nullfont \let\tentt = \nullfont \let\smallcaps = \nullfont \let\tensf = \nullfont % Similarly for index fonts (mostly for their use in % smallexample) \let\indrm = \nullfont \let\indit = \nullfont \let\indsl = \nullfont \let\indbf = \nullfont \let\indtt = \nullfont \let\indsc = \nullfont \let\indsf = \nullfont % % Don't complain when characters are missing from the fonts. \tracinglostchars = 0 % % Don't bother to do space factor calculations. \frenchspacing % % Don't report underfull hboxes. \hbadness = 10000 % % Do minimal line-breaking. \pretolerance = 10000 % % Do not execute instructions in @tex \def\tex{\doignore{tex}}% % Do not execute macro definitions. % `c' is a comment character, so the word `macro' will get cut off. \def\macro{\doignore{ma}}% } % @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 \catcode`\-=12 \catcode`\_=12 % Allow - and _ in VAR. \parsearg\setxxx} \def\setxxx#1{\setyyy#1 \endsetyyy} \def\setyyy#1 #2\endsetyyy{% \def\temp{#2}% \ifx\temp\empty \global\expandafter\let\csname SET#1\endcsname = \empty \else \setzzz{#1}#2\endsetzzz % Remove the trailing space \setxxx inserted. \fi \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}} % @clear VAR clears (i.e., unsets) the variable VAR. % \def\clear{\parsearg\clearxxx} \def\clearxxx#1{\global\expandafter\let\csname SET#1\endcsname=\relax} % @value{foo} gets the text saved in variable foo. { \catcode`\_ = \active % % We might end up with active _ or - characters in the argument if % we're called from @code, as @code{@value{foo-bar_}}. So \let any % such active characters to their normal equivalents. \gdef\value{\begingroup \catcode`\-=12 \catcode`\_=12 \indexbreaks \let_\normalunderscore \valuexxx} } \def\valuexxx#1{\expandablevalue{#1}\endgroup} % 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{% \expandafter\ifx\csname SET#1\endcsname\relax {[No value for ``#1'']}% \else \csname SET#1\endcsname \fi } % @ifset VAR ... @end ifset reads the `...' iff VAR has been defined % with @set. % \def\ifset{\parsearg\ifsetxxx} \def\ifsetxxx #1{% \expandafter\ifx\csname SET#1\endcsname\relax \expandafter\ifsetfail \else \expandafter\ifsetsucceed \fi } \def\ifsetsucceed{\conditionalsucceed{ifset}} \def\ifsetfail{\nestedignore{ifset}} \defineunmatchedend{ifset} % @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{% \expandafter\ifx\csname SET#1\endcsname\relax \expandafter\ifclearsucceed \else \expandafter\ifclearfail \fi } \def\ifclearsucceed{\conditionalsucceed{ifclear}} \def\ifclearfail{\nestedignore{ifclear}} \defineunmatchedend{ifclear} % @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} % 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{% \edef\temp{% % Remember the current value of \E#1. \let\nece{prevE#1} = \nece{E#1}% % % At the `@end #1', redefine \E#1 to be its previous value. \def\nece{E#1}{\let\nece{E#1} = \nece{prevE#1}}% }% \temp } % 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} % @defininfoenclose. \let\definfoenclose=\comment \message{indexing,} % Index generation facilities % 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}} % \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{% \iflinks \expandafter\newwrite \csname#1indfile\endcsname \openout \csname#1indfile\endcsname \jobname.#1 % Open the file \fi \expandafter\xdef\csname#1index\endcsname{% % Define @#1index \noexpand\doindex{#1}} } % @defindex foo == \newindex{foo} \def\defindex{\parsearg\newindex} % Define @defcodeindex, like @defindex except put all entries in @code. \def\newcodeindex#1{% \iflinks \expandafter\newwrite \csname#1indfile\endcsname \openout \csname#1indfile\endcsname \jobname.#1 \fi \expandafter\xdef\csname#1index\endcsname{% \noexpand\docodeindex{#1}} } \def\defcodeindex{\parsearg\newcodeindex} % @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 {% \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname \expandafter\closeout\csname#1indfile\endcsname \expandafter\let\csname#1indfile\endcsname=\synindexfoo \expandafter\xdef\csname#1index\endcsname{% define \xxxindex \noexpand\doindex{#2}}% } % @syncodeindex foo bar similar, but put all entries made for index foo % inside @code. \def\syncodeindex#1 #2 {% \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname \expandafter\closeout\csname#1indfile\endcsname \expandafter\let\csname#1indfile\endcsname=\synindexfoo \expandafter\xdef\csname#1index\endcsname{% define \xxxindex \noexpand\docodeindex{#2}}% } % 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. % \doindex just uses \parsearg; it calls \doind for the actual work. % This is because \doind is more useful to call from other macros. % There is also \dosubind {index}{topic}{subtopic} % which makes an entry in a two-level index such as the operation index. \def\doindex#1{\edef\indexname{#1}\parsearg\singleindexer} \def\singleindexer #1{\doind{\indexname}{#1}} % 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}}} \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 } % 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 \gdef\unsepspaces{\obeyspaces\let =\space}} % \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{...} \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\@{@}% } % 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. {\catcode`\@=0 \catcode`\\=\other @gdef@realbackslash{\}} \let\indexbackslash=0 %overridden during \printindex. \let\SETmarginindex=\relax % put index entries in margin (undocumented)? % For \ifx comparisons. \def\emptymacro{\empty} % Most index entries go through here, but \dosubind is the general case. % \def\doind#1#2{\dosubind{#1}{#2}\empty} % 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{% % Put the index entry in the margin if desired. \ifx\SETmarginindex\relax\else \insert\margin{\hbox{\vrule height8pt depth3pt width0pt #2}}% \fi {% \count255=\lastpenalty {% \indexdummies % Must do this here, since \bf, etc expand at this stage \escapechar=`\\ {% \let\folio = 0% We will expand all macros now EXCEPT \folio. \def\rawbackslashxx{\indexbackslash}% \indexbackslash isn't defined now % so it will be output as is; and it will print as backslash. % \def\thirdarg{#3}% % % If third arg is present, precede it with space in sort key. \ifx\thirdarg\emptymacro \let\subentry = \empty \else \def\subentry{ #3}% \fi % % First process the index entry with all font commands turned % off to get the string to sort by. {\indexnofonts \xdef\indexsorttmp{#2\subentry}}% % % Now the real index entry with the fonts. \toks0 = {#2}% % % If third (subentry) arg is present, add it to the index % string. And include a space. \ifx\thirdarg\emptymacro \else \toks0 = \expandafter{\the\toks0 \space #3}% \fi % % Set up the complete index entry, with both the sort key % and the original text, including any font commands. We write % three arguments to \entry to the .?? file, texindex reduces to % two when writing the .??s sorted result. \edef\temp{% \write\csname#1indfile\endcsname{% \realbackslash entry{\indexsorttmp}{\folio}{\the\toks0}}% }% % % If a skip is the last thing on the list now, preserve it % by backing up by \lastskip, doing the \write, then inserting % the skip again. Otherwise, the whatsit generated by the % \write will make \lastskip zero. The result is that sequences % like this: % @end defun % @tindex whatever % @defun ... % will have extra space inserted, because the \medbreak in the % start of the @defun won't see the skip inserted by the @end of % the previous defun. % % But don't do any of this if we're not in vertical mode. We % don't want to do a \vskip and prematurely end a paragraph. % % Avoid page breaks due to these extra skips, too. % \iflinks \ifvmode \skip0 = \lastskip \ifdim\lastskip = 0pt \else \nobreak\vskip-\lastskip \fi \fi % \temp % do the write % % \ifvmode \ifdim\skip0 = 0pt \else \nobreak\vskip\skip0 \fi \fi \fi }% }% \penalty\count255 }% } % 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. % Define the user-accessible indexing commands % @findex, @vindex, @kindex, @cindex. \def\findex {\fnindex} \def\kindex {\kyindex} \def\cindex {\cpindex} \def\vindex {\vrindex} \def\tindex {\tpindex} \def\pindex {\pgindex} \def\cindexsub {\begingroup\obeylines\cindexsub} {\obeylines % \gdef\cindexsub "#1" #2^^M{\endgroup % \dosubind{cp}{#2}{#1}}} % Define the macros used in formatting output of the sorted index material. % @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 \dobreak \chapheadingskip{10000}% % \indexfonts \rm \tolerance = 9500 \indexbreaks % % See if the index file exists and is nonempty. % Change catcode of @ here so that if the index file contains % \initial {@} % as its first line, TeX doesn't complain about mismatched braces % (because it thinks @} is a control sequence). \catcode`\@ = 11 \openin 1 \jobname.#1s \ifeof 1 % \enddoublecolumns gets confused if there is no text in the index, % and it loses the chapter title and the aux file entries for the % index. The easiest way to prevent this problem is to make sure % there is some text. \putwordIndexNonexistent \else % % If the index file exists but is empty, then \openin leaves \ifeof % false. We have to make TeX try to read something from the file, so % it can discover if there is anything in it. \read 1 to \temp \ifeof 1 \putwordIndexIsEmpty \else % Index files are almost Texinfo source, but we use \ as the escape % character. It would be better to use @, but that's too big a change % to make right now. \def\indexbackslash{\rawbackslashxx}% \catcode`\\ = 0 \escapechar = `\\ \begindoublecolumns \input \jobname.#1s \enddoublecolumns \fi \fi \closein 1 \endgroup} % These macros are used by the sorted index file itself. % Change them to control the appearance of the index. \def\initial#1{{% % Some minor font changes for the special characters. \let\tentt=\sectt \let\tt=\sectt \let\sf=\sectt % % Remove any glue we may have, we'll be inserting our own. \removelastskip % % We like breaks before the index initials, so insert a bonus. \penalty -300 % % Typeset the initial. Making this add up to a whole number of % baselineskips increases the chance of the dots lining up from column % to column. It still won't often be perfect, because of the stretch % we need before each entry, but it's better. % % No shrink because it confuses \balancecolumns. \vskip 1.67\baselineskip plus .5\baselineskip \leftline{\secbf #1}% \vskip .33\baselineskip plus .1\baselineskip % % Do our best not to break after the initial. \nobreak }} % 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 % % Start a new paragraph if necessary, so our assignments below can't % affect previous text. \par % % Do not fill out the last line with white space. \parfillskip = 0in % % No extra space above this paragraph. \parskip = 0in % % Do not prefer a separate line ending with a hyphen to fewer lines. \finalhyphendemerits = 0 % % \hangindent is only relevant when the entry text and page number % don't both fit on one line. In that case, bob suggests starting the % dots pretty far over on the line. Unfortunately, a large % indentation looks wrong when the entry text itself is broken across % lines. So we use a small indentation and put up with long leaders. % % \hangafter is reset to 1 (which is the value we want) at the start % of each paragraph, so we need not do anything with that. \hangindent = 2em % % When the entry text needs to be broken, just fill out the first line % with blank space. \rightskip = 0pt plus1fil % % A bit of stretch before each entry for the benefit of balancing columns. \vskip 0pt plus1pt % % Start a ``paragraph'' for the index entry so the line breaking % parameters we've set above will have an effect. \noindent % % Insert the text of the index entry. TeX will do line-breaking on it. #1% % The following is kludged to not output a line of dots in the index if % there are no page numbers. The next person who breaks this will be % cursed by a Unix daemon. \def\tempa{{\rm }}% \def\tempb{#2}% \edef\tempc{\tempa}% \edef\tempd{\tempb}% \ifx\tempc\tempd\ \else% % % If we must, put the page number on a line of its own, and fill out % this line with blank space. (The \hfil is overwhelmed with the % fill leaders glue in \indexdotfill if the page number does fit.) \hfil\penalty50 \null\nobreak\indexdotfill % Have leaders before the page number. % % The `\ ' here is removed by the implicit \unskip that TeX does as % part of (the primitive) \par. Without it, a spurious underfull % \hbox ensues. \ #2% The page number ends the paragraph. \fi% \par \endgroup} % Like \dotfill except takes at least 1 em. \def\indexdotfill{\cleaders \hbox{$\mathsurround=0pt \mkern1.5mu ${\it .}$ \mkern1.5mu$}\hskip 1em plus 1fill} \def\primary #1{\line{#1\hfil}} \newskip\secondaryindent \secondaryindent=0.5cm \def\secondary #1#2{ {\parfillskip=0in \parskip=0in \hangindent =1in \hangafter=1 \noindent\hskip\secondaryindent\hbox{#1}\indexdotfill #2\par }} % 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 \newbox\partialpage \newdimen\doublecolumnhsize \def\begindoublecolumns{\begingroup % ended by \enddoublecolumns % Grab any single-column material above us. \output = {% % % Here is a possibility not foreseen in manmac: if we accumulate a % whole lot of material, we might end up calling this \output % routine twice in a row (see the doublecol-lose test, which is % essentially a couple of indexes with @setchapternewpage off). In % that case we just ship out what is in \partialpage with the normal % output routine. Generally, \partialpage will be empty when this % runs and this will be a no-op. See the indexspread.tex test case. \ifvoid\partialpage \else \onepageout{\pagecontents\partialpage}% \fi % \global\setbox\partialpage = \vbox{% % Unvbox the main output page. \unvbox\PAGE \kern-\topskip \kern\baselineskip }% }% \eject % run that output routine to set \partialpage % % Use the double-column output routine for subsequent pages. \output = {\doublecolumnout}% % % Change the page size parameters. We could do this once outside this % routine, in each of @smallbook, @afourpaper, and the default 8.5x11 % format, but then we repeat the same computation. Repeating a couple % of assignments once per index is clearly meaningless for the % execution time, so we may as well do it in one place. % % First we halve the line length, less a little for the gutter between % the columns. We compute the gutter based on the line length, so it % changes automatically with the paper format. The magic constant % below is chosen so that the gutter has the same value (well, +-<1pt) % as it did when we hard-coded it. % % We put the result in a separate register, \doublecolumhsize, so we % can restore it in \pagesofar, after \hsize itself has (potentially) % been clobbered. % \doublecolumnhsize = \hsize \advance\doublecolumnhsize by -.04154\hsize \divide\doublecolumnhsize by 2 \hsize = \doublecolumnhsize % % Double the \vsize as well. (We don't need a separate register here, % since nobody clobbers \vsize.) \advance\vsize by -\ht\partialpage \vsize = 2\vsize } % The double-column output routine for all double-column pages except % the last. % \def\doublecolumnout{% \splittopskip=\topskip \splitmaxdepth=\maxdepth % Get the available space for the double columns -- the normal % (undoubled) page height minus any material left over from the % previous page. \dimen@ = \vsize \divide\dimen@ by 2 % % box0 will be the left-hand column, box2 the right. \setbox0=\vsplit255 to\dimen@ \setbox2=\vsplit255 to\dimen@ \onepageout\pagesofar \unvbox255 \penalty\outputpenalty } \def\pagesofar{% % Re-output the contents of the output page -- any previous material, % followed by the two boxes we just split, in box0 and box2. \unvbox\partialpage % \hsize = \doublecolumnhsize \wd0=\hsize \wd2=\hsize \hbox to\pagewidth{\box0\hfil\box2}% } \def\enddoublecolumns{% \output = {% % Split the last of the double-column material. Leave it on the % current page, no automatic page break. \balancecolumns % % If we end up splitting too much material for the current page, % though, there will be another page break right after this \output % invocation ends. Having called \balancecolumns once, we do not % want to call it again. Therefore, reset \output to its normal % definition right away. (We hope \balancecolumns will never be % called on to balance too much material, but if it is, this makes % the output somewhat more palatable.) \global\output = {\onepageout{\pagecontents\PAGE}}% }% \eject \endgroup % started in \begindoublecolumns % % \pagegoal was set to the doubled \vsize above, since we restarted % the current page. We're now back to normal single-column % typesetting, so reset \pagegoal to the normal \vsize (after the % \endgroup where \vsize got restored). \pagegoal = \vsize } \def\balancecolumns{% % Called at the end of the double column material. \setbox0 = \vbox{\unvbox255}% like \box255 but more efficient, see p.120. \dimen@ = \ht0 \advance\dimen@ by \topskip \advance\dimen@ by-\baselineskip \divide\dimen@ by 2 % target to split to %debug\message{final 2-column material height=\the\ht0, target=\the\dimen@.}% \splittopskip = \topskip % Loop until we get a decent breakpoint. {% \vbadness = 10000 \loop \global\setbox3 = \copy0 \global\setbox1 = \vsplit3 to \dimen@ \ifdim\ht3>\dimen@ \global\advance\dimen@ by 1pt \repeat }% %debug\message{split to \the\dimen@, column heights: \the\ht1, \the\ht3.}% \setbox0=\vbox to\dimen@{\unvbox1}% \setbox2=\vbox to\dimen@{\unvbox3}% % \pagesofar } \catcode`\@ = \other \message{sectioning,} % Chapters, sections, etc. \newcount\chapno \newcount\secno \secno=0 \newcount\subsecno \subsecno=0 \newcount\subsubsecno \subsubsecno=0 % 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} % Each @chapter defines this as the name of the chapter. % page headings and footings can use it. @section does likewise. \def\thischapter{} \def\thissection{} \newcount\absseclevel % used to calculate proper heading level \newcount\secbase\secbase=0 % @raise/lowersections modify this count % @raisesections: treat @section as chapter, @subsection as section, etc. \def\raisesections{\global\advance\secbase by -1} \let\up=\raisesections % original BFox name % @lowersections: treat @chapter as section, @section as subsection, etc. \def\lowersections{\global\advance\secbase by 1} \let\down=\lowersections % original BFox name % 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 \chapterzzz{#2} \or \seczzz{#2} \or \numberedsubseczzz{#2} \or \numberedsubsubseczzz{#2} \else \ifnum \absseclevel<0 \chapterzzz{#2} \else \numberedsubsubseczzz{#2} \fi \fi } % like \numhead, but chooses appendix heading levels \def\apphead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel \appendixzzz{#2} \or \appendixsectionzzz{#2} \or \appendixsubseczzz{#2} \or \appendixsubsubseczzz{#2} \else \ifnum \absseclevel<0 \appendixzzz{#2} \else \appendixsubsubseczzz{#2} \fi \fi } % like \numhead, but chooses numberless heading levels \def\unnmhead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel \unnumberedzzz{#2} \or \unnumberedseczzz{#2} \or \unnumberedsubseczzz{#2} \or \unnumberedsubsubseczzz{#2} \else \ifnum \absseclevel<0 \unnumberedzzz{#2} \else \unnumberedsubsubseczzz{#2} \fi \fi } % @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}% {\the\chapno}}}% \temp \donoderef \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec } \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}% {\putwordAppendix{} \appendixletter}}}% \temp \appendixnoderef \global\let\section = \appendixsec \global\let\subsection = \appendixsubsec \global\let\subsubsection = \appendixsubsubsec } % @centerchap is like @unnumbered, but the heading is centered. \outer\def\centerchap{\parsearg\centerchapyyy} \def\centerchapyyy #1{{\let\unnumbchapmacro=\centerchapmacro \unnumberedyyy{#1}}} % @top is like @unnumbered. \outer\def\top{\parsearg\unnumberedyyy} \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 } % 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}% {\the\chapno}{\the\secno}}}% \temp \donoderef \nobreak } \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}% {\appendixletter}{\the\secno}}}% \temp \appendixnoderef \nobreak } \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 } % 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}% {\the\chapno}{\the\secno}{\the\subsecno}}}% \temp \donoderef \nobreak } \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}% {\appendixletter}{\the\secno}{\the\subsecno}}}% \temp \appendixnoderef \nobreak } \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% {\the\toks0}}}% \temp \unnumbnoderef \nobreak } % 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} {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% \temp \donoderef \nobreak } \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} {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% \temp \appendixnoderef \nobreak } \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% {\the\toks0}}}% \temp \unnumbnoderef \nobreak } % 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} \def\infoappendix{\parsearg\appendixzzz} \def\infoappendixsec{\parsearg\appendixseczzz} \def\infoappendixsubsec{\parsearg\appendixsubseczzz} \def\infoappendixsubsubsec{\parsearg\appendixsubsubseczzz} \def\infochapter{\parsearg\chapterzzz} \def\infosection{\parsearg\sectionzzz} \def\infosubsection{\parsearg\subsectionzzz} \def\infosubsubsection{\parsearg\subsubsectionzzz} % 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 % Define @majorheading, @heading and @subheading % 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. \def\majorheading{\parsearg\majorheadingzzz} \def\majorheadingzzz #1{% {\advance\chapheadingskip by 10pt \chapbreak }% {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 \parindent=0pt\raggedright \rm #1\hfill}}\bigskip \par\penalty 200} \def\chapheading{\parsearg\chapheadingzzz} \def\chapheadingzzz #1{\chapbreak % {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 \parindent=0pt\raggedright \rm #1\hfill}}\bigskip \par\penalty 200} % @heading, @subheading, @subsubheading. \def\heading{\parsearg\plainsecheading} \def\subheading{\parsearg\plainsubsecheading} \def\subsubheading{\parsearg\plainsubsubsecheading} % These macros generate a chapter, section, etc. heading only % (including whitespace, linebreaking, etc. around it), % given all the information in convenient, parsed form. %%% Args are the skip and penalty (usually negative) \def\dobreak#1#2{\par\ifdim\lastskip<#1\removelastskip\penalty#2\vskip#1\fi} \def\setchapterstyle #1 {\csname CHAPF#1\endcsname} %%% Define plain chapter starts, and page on/off switching for it % Parameter controlling skip before chapter headings (if needed) \newskip\chapheadingskip \def\chapbreak{\dobreak \chapheadingskip {-4000}} \def\chappager{\par\vfill\supereject} \def\chapoddpage{\chappager \ifodd\pageno \else \hbox to 0pt{} \chappager\fi} \def\setchapternewpage #1 {\csname CHAPPAG#1\endcsname} \def\CHAPPAGoff{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chapbreak \global\let\pagealignmacro=\chappager} \def\CHAPPAGon{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chappager \global\let\pagealignmacro=\chappager \global\def\HEADINGSon{\HEADINGSsingle}} \def\CHAPPAGodd{ \global\let\contentsalignmacro = \chapoddpage \global\let\pchapsepmacro=\chapoddpage \global\let\pagealignmacro=\chapoddpage \global\def\HEADINGSon{\HEADINGSdouble}} \CHAPPAGon \def\CHAPFplain{ \global\let\chapmacro=\chfplain \global\let\unnumbchapmacro=\unnchfplain \global\let\centerchapmacro=\centerchfplain} % Plain chapter opening. % #1 is the text, #2 the chapter number or empty if unnumbered. \def\chfplain#1#2{% \pchapsepmacro {% \chapfonts \rm \def\chapnum{#2}% \setbox0 = \hbox{#2\ifx\chapnum\empty\else\enspace\fi}% \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright \hangindent = \wd0 \centerparametersmaybe \unhbox0 #1\par}% }% \nobreak\bigskip % no page break after a chapter title \nobreak } % Plain opening for unnumbered. \def\unnchfplain#1{\chfplain{#1}{}} % @centerchap -- centered and unnumbered. \let\centerparametersmaybe = \relax \def\centerchfplain#1{{% \def\centerparametersmaybe{% \advance\rightskip by 3\rightskip \leftskip = \rightskip \parfillskip = 0pt }% \chfplain{#1}{}% }} \CHAPFplain % The default \def\unnchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 \parindent=0pt\raggedright \rm #1\hfill}}\bigskip \par\nobreak } \def\chfopen #1#2{\chapoddpage {\chapfonts \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}% \par\penalty 5000 % } \def\centerchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 \parindent=0pt \hfill {\rm #1}\hfill}}\bigskip \par\nobreak } \def\CHAPFopen{ \global\let\chapmacro=\chfopen \global\let\unnumbchapmacro=\unnchfopen \global\let\centerchapmacro=\centerchfopen} % 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}} % 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}} % 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}} % 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{% {% \expandafter\advance\csname #1headingskip\endcsname by \parskip \csname #1headingbreak\endcsname }% {% % Switch to the right set of fonts. \csname #1fonts\endcsname \rm % % Only insert the separating space if we have a section number. \def\secnum{#2}% \setbox0 = \hbox{#2\ifx\secnum\empty\else\enspace\fi}% % \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright \hangindent = \wd0 % zero if no section number \unhbox0 #3}% }% \ifdim\parskip<10pt \nobreak\kern10pt\nobreak\kern-\parskip\fi \nobreak } \message{toc,} % Table of contents. \newwrite\tocfile % 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{% \iftocfileopened\else \immediate\openout\tocfile = \jobname.toc \global\tocfileopenedtrue \fi \iflinks \write\tocfile{#1{\folio}}\fi } \newskip\contentsrightmargin \contentsrightmargin=1in \newcount\savepageno \newcount\lastnegativepageno \lastnegativepageno = -1 % Finish up the main text and prepare to read what we've written % to \tocfile. % \def\startcontents#1{% % If @setchapternewpage on, and @headings double, the contents should % start on an odd page, unlike chapters. Thus, we maintain % \contentsalignmacro in parallel with \pagealignmacro. % From: Torbjorn Granlund \contentsalignmacro \immediate\closeout\tocfile % % Don't need to put `Contents' or `Short Contents' in the headline. % It is abundantly clear what they are. \unnumbchapmacro{#1}\def\thischapter{}% \savepageno = \pageno \begingroup % Set up to handle contents files properly. \catcode`\\=0 \catcode`\{=1 \catcode`\}=2 \catcode`\@=11 % We can't do this, because then an actual ^ in a section % title fails, e.g., @chapter ^ -- exponentiation. --karl, 9jul97. %\catcode`\^=7 % to see ^^e4 as \"a etc. juha@piuha.ydi.vtt.fi \raggedbottom % Worry more about breakpoints than the bottom. \advance\hsize by -\contentsrightmargin % Don't use the full line length. % % Roman numerals for page numbers. \ifnum \pageno>0 \pageno = \lastnegativepageno \fi } % Normal (long) toc. \def\contents{% \startcontents{\putwordTOC}% \openin 1 \jobname.toc \ifeof 1 \else \closein 1 \input \jobname.toc \fi \vfill \eject \contentsalignmacro % in case @setchapternewpage odd is in effect \endgroup \lastnegativepageno = \pageno \pageno = \savepageno } % And just the chapters. \def\summarycontents{% \startcontents{\putwordShortTOC}% % \let\chapentry = \shortchapentry \let\unnumbchapentry = \shortunnumberedentry % We want a true roman here for the page numbers. \secfonts \let\rm=\shortcontrm \let\bf=\shortcontbf \let\sl=\shortcontsl \rm \hyphenpenalty = 10000 \advance\baselineskip by 1pt % Open it up a little. \def\secentry ##1##2##3##4{} \def\unnumbsecentry ##1##2{} \def\subsecentry ##1##2##3##4##5{} \def\unnumbsubsecentry ##1##2{} \def\subsubsecentry ##1##2##3##4##5##6{} \def\unnumbsubsubsecentry ##1##2{} \openin 1 \jobname.toc \ifeof 1 \else \closein 1 \input \jobname.toc \fi \vfill \eject \contentsalignmacro % in case @setchapternewpage odd is in effect \endgroup \lastnegativepageno = \pageno \pageno = \savepageno } \let\shortcontents = \summarycontents \ifpdf \pdfcatalog{/PageMode /UseOutlines}% \fi % 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, ... % Chapter-level things, for both the long and short contents. \def\chapentry#1#2#3{\dochapentry{#2\labelspace#1}{#3}} % See comments in \dochapentry re vbox and related settings \def\shortchapentry#1#2#3{% \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno{#3}}% } % 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 \def\shortchaplabel#1{% % We typeset #1 in a box of constant width, regardless of the text of % #1, so the chapter titles will come out aligned. \setbox0 = \hbox{#1}% \dimen0 = \ifdim\wd0 > \shortappendixwidth \shortappendixwidth \else 0pt \fi % % This space should be plenty, since a single number is .5em, and the % widest letter (M) is 1em, at least in the Computer Modern fonts. % (This space doesn't include the extra space that gets added after % the label; that gets put in by \shortchapentry above.) \advance\dimen0 by 1.1em \hbox to \dimen0{#1\hfil}% } \def\unnumbchapentry#1#2{\dochapentry{#1}{#2}} \def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno{#2}}} % Sections. \def\secentry#1#2#3#4{\dosecentry{#2.#3\labelspace#1}{#4}} \def\unnumbsecentry#1#2{\dosecentry{#1}{#2}} % Subsections. \def\subsecentry#1#2#3#4#5{\dosubsecentry{#2.#3.#4\labelspace#1}{#5}} \def\unnumbsubsecentry#1#2{\dosubsecentry{#1}{#2}} % And subsubsections. \def\subsubsecentry#1#2#3#4#5#6{% \dosubsubsecentry{#2.#3.#4.#5\labelspace#1}{#6}} \def\unnumbsubsubsecentry#1#2{\dosubsubsecentry{#1}{#2}} % This parameter controls the indentation of the various levels. \newdimen\tocindent \tocindent = 3pc % 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{% \penalty-300 \vskip1\baselineskip plus.33\baselineskip minus.25\baselineskip \begingroup \chapentryfonts \tocentry{#1}{\dopageno{#2}}% \endgroup \nobreak\vskip .25\baselineskip plus.1\baselineskip } \def\dosecentry#1#2{\begingroup \secentryfonts \leftskip=\tocindent \tocentry{#1}{\dopageno{#2}}% \endgroup} \def\dosubsecentry#1#2{\begingroup \subsecentryfonts \leftskip=2\tocindent \tocentry{#1}{\dopageno{#2}}% \endgroup} \def\dosubsubsecentry#1#2{\begingroup \subsubsecentryfonts \leftskip=3\tocindent \tocentry{#1}{\dopageno{#2}}% \endgroup} % 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 \vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks % Do not use \turnoffactive in these arguments. Since the toc is % typeset in cmr, so characters such as _ would come out wrong; we % have to do the usual translation tricks. \entry{#1}{#2}% \endgroup} % Space between chapter (or whatever) number and the title. \def\labelspace{\hskip1em \relax} \def\dopageno#1{{\rm #1}} \def\doshortpageno#1{{\rm #1}} \def\chapentryfonts{\secfonts \rm} \def\secentryfonts{\textfonts} \let\subsecentryfonts = \textfonts \let\subsubsecentryfonts = \textfonts \message{environments,} % @foo ... @end foo. % 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 %{\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} %} % @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}} % 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} \global\setbox\errorbox=\hbox to \dimen0{\hfil \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right. \advance\hsize by -2\dimen2 % Rules. \vbox{ \hrule height\dimen2 \hbox{\vrule width\dimen2 \kern3pt % Space to left of text. \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below. \kern3pt\vrule width\dimen2}% Space to right. \hrule height\dimen2} \hfil} % The @error{} command. \def\error{\leavevmode\lower.7ex\copy\errorbox} % @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. \def\tex{\begingroup \catcode `\\=0 \catcode `\{=1 \catcode `\}=2 \catcode `\$=3 \catcode `\&=4 \catcode `\#=6 \catcode `\^=7 \catcode `\_=8 \catcode `\~=13 \let~=\tie \catcode `\%=14 \catcode 43=12 % plus \catcode`\"=12 \catcode`\==12 \catcode`\|=12 \catcode`\<=12 \catcode`\>=12 \escapechar=`\\ % \let\b=\ptexb \let\bullet=\ptexbullet \let\c=\ptexc \let\,=\ptexcomma \let\.=\ptexdot \let\dots=\ptexdots \let\equiv=\ptexequiv \let\!=\ptexexclam \let\i=\ptexi \let\{=\ptexlbrace \let\+=\tabalign \let\}=\ptexrbrace \let\*=\ptexstar \let\t=\ptext % \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}% \def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi}% \def\@{@}% \let\Etex=\endgroup} % Define @lisp ... @endlisp. % @lisp does a \begingroup so it can rebind things, % including the definition of @endlisp (which normally is erroneous). % Amount to narrow the margins by for @lisp. \newskip\lispnarrowing \lispnarrowing=0.4in % 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} % 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}} % Define \obeyedspace to be our active space, whatever it is. This is % for use in \parsearg. {\sepspaces% \global\let\obeyedspace= } % This space is always present above and below environments. \newskip\envskipamount \envskipamount = 0pt % 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}} \let\afterenvbreak = \aboveenvbreak % \nonarrowing is a flag. If "set", @lisp etc don't narrow margins. \let\nonarrowing=\relax % @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 \ctl\leaders\hrule height\circthick\hfil\ctr \hskip\rskip}} \def\cartbot{\hbox to \cartouter{\hskip\lskip \cbl\leaders\hrule height\circthick\hfil\cbr \hskip\rskip}} % \newskip\lskip\newskip\rskip \long\def\cartouche{% \begingroup \lskip=\leftskip \rskip=\rightskip \leftskip=0pt\rightskip=0pt %we want these *outside*. \cartinner=\hsize \advance\cartinner by-\lskip \advance\cartinner by-\rskip \cartouter=\hsize \advance\cartouter by 18.4pt % allow for 3pt kerns on either % side, and for 6pt waste from % each corner char, and rule thickness \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip % Flag to tell @lisp, etc., not to narrow margin. \let\nonarrowing=\comment \vbox\bgroup \baselineskip=0pt\parskip=0pt\lineskip=0pt \carttop \hbox\bgroup \hskip\lskip \vrule\kern3pt \vbox\bgroup \hsize=\cartinner \kern3pt \begingroup \baselineskip=\normbskip \lineskip=\normlskip \parskip=\normpskip \vskip -\parskip \def\Ecartouche{% \endgroup \kern3pt \egroup \kern3pt\vrule \hskip\rskip \egroup \cartbot \egroup \endgroup }} % This macro is called at the beginning of all the @example variants, % inside a group. \def\nonfillstart{% \aboveenvbreak \inENV % This group ends at the end of the body \hfuzz = 12pt % Don't be fussy \sepspaces % Make spaces be word-separators rather than space tokens. \singlespace \let\par = \lisppar % don't ignore blank lines \obeylines % each line of input is a line of output \parskip = 0pt \parindent = 0pt \emergencystretch = 0pt % don't try to avoid overfull boxes % @cartouche defines \nonarrowing to inhibit narrowing % at next level down. \ifx\nonarrowing\relax \advance \leftskip by \lispnarrowing \exdentamount=\lispnarrowing \let\exdent=\nofillexdent \let\nonarrowing=\relax \fi } % 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} % @lisp: indented, narrowed, typewriter font. \def\lisp{\begingroup \nonfillstart \let\Elisp = \nonfillfinish \tt \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special. \gobble % eat return } % @example: Same as @lisp. \def\example{\begingroup \def\Eexample{\nonfillfinish\endgroup}\lisp} % @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} % Real @smallexample and @smalllisp (when @smallbook): use smaller fonts. % Originally contributed by Pavel@xerox. \def\smalllispx{\begingroup \def\Esmalllisp{\nonfillfinish\endgroup}% \def\Esmallexample{\nonfillfinish\endgroup}% \indexfonts \lisp } % @display: same as @lisp except keep current font. % \def\display{\begingroup \nonfillstart \let\Edisplay = \nonfillfinish \gobble } % @smalldisplay (when @smallbook): @display plus smaller fonts. % \def\smalldisplayx{\begingroup \def\Esmalldisplay{\nonfillfinish\endgroup}% \indexfonts \rm \display } % @format: same as @display except don't narrow margins. % \def\format{\begingroup \let\nonarrowing = t \nonfillstart \let\Eformat = \nonfillfinish \gobble } % @smallformat (when @smallbook): @format plus smaller fonts. % \def\smallformatx{\begingroup \def\Esmallformat{\nonfillfinish\endgroup}% \indexfonts \rm \format } % @flushleft (same as @format). % \def\flushleft{\begingroup \def\Eflushleft{\nonfillfinish\endgroup}\format} % @flushright. % \def\flushright{\begingroup \let\nonarrowing = t \nonfillstart \let\Eflushright = \nonfillfinish \advance\leftskip by 0pt plus 1fill \gobble } % @quotation does normal linebreaking (hence we can't use \nonfillstart) % and narrows the margins. % \def\quotation{% \begingroup\inENV %This group ends at the end of the @quotation body {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip \singlespace \parindent=0pt % We have retained a nonzero parskip for the environment, since we're % doing normal filling. So to avoid extra space below the environment... \def\Equotation{\parskip = 0pt \nonfillfinish}% % % @cartouche defines \nonarrowing to inhibit narrowing at next level down. \ifx\nonarrowing\relax \advance\leftskip by \lispnarrowing \advance\rightskip by \lispnarrowing \exdentamount = \lispnarrowing \let\nonarrowing = \relax \fi } \message{defuns,} % @defun etc. % Allow user to change definition object font (\df) internally \def\setdeffont #1 {\csname DEF#1\endcsname} \newskip\defbodyindent \defbodyindent=.4in \newskip\defargsindent \defargsindent=50pt \newskip\deftypemargin \deftypemargin=12pt \newskip\deflastargmargin \deflastargmargin=18pt \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} % Make control sequences which act like normal parenthesis chars. \let\lparen = ( \let\rparen = ) {\activeparens % Now, smart parens don't turn on until &foo (see \amprm) % 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 \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} % 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 \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. % also in that case restore the outer-level definition of (. \ifnum \parencount=1 {\rm \char `\)}\sl \let(=\oprm \else \char `\) \fi \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`\]}} % Active &'s sneak into the index arguments, so make sure it's defined. { \catcode`& = 13 \global\let& = \ampnr } % First, defname, which formats the header line itself. % #1 should be the function name. % #2 should be the type of definition, such as "Function". \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 } % 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. \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} % #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}}} % @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}}} \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}}} % 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. \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} % 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{% \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\spacesplit{#3{##1}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines } \def\defvrparsebody#1#2#3#4 {% \parsebodycommon{#1}{#2}{#3}% \spacesplit{#3{#4}}% } % 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 {% \parsebodycommon{#1}{#2}{#3}% \spacesplit{\parsetpheaderline{#3{#4}}}\empty } % 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} % 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{% #1{\removeemptybraces#2\relax}{#3}% }% \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}}} % 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. {\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}} % So much for the things common to all kinds of definitions. % Define @defun. % First, define the processing that is wanted for arguments of \defun % Use this to expand the args and terminate the paragraph they make up \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 } \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 } % Do complete processing of one @defun or @defunx line already parsed. % @deffn Command forward-char nchars \def\deffn{\defmethparsebody\Edeffn\deffnx\deffnheader} \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 } % @defun == @deffn Function \def\defun{\defparsebody\Edefun\defunx\defunheader} \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 } % @deftypefun int foobar (int @var{foo}, float @var{bar}) \def\deftypefun{\defparsebody\Edeftypefun\deftypefunx\deftypefunheader} % #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 } % @deftypefn {Library Function} int foobar (int @var{foo}, float @var{bar}) \def\deftypefn{\defmethparsebody\Edeftypefn\deftypefnx\deftypefnheader} % \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} % #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 } % @defmac == @deffn Macro \def\defmac{\defparsebody\Edefmac\defmacx\defmacheader} \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 } % @defspec == @deffn Special Form \def\defspec{\defparsebody\Edefspec\defspecx\defspecheader} \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 } % @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 % } % @deftypemethod CLASS RETURN-TYPE METHOD ARG... % \def\deftypemethod{% \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{% \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index \begingroup \defname{\defheaderxcond#2\relax$$$#3}{\putwordMethodon\ \code{#1}}% \deftypefunargs{#4}% \endgroup } % @deftypeivar CLASS TYPE VARNAME % \def\deftypeivar{% \deftypemethparsebody\Edeftypeivar\deftypeivarx\deftypeivarheader} % % #1 is the class name, #2 the data type, #3 the variable name. \def\deftypeivarheader#1#2#3{% \dosubind{vr}{\code{#3}}{\putwordof\ \code{#1}}% entry in variable index \begingroup \defname{#3}{\putwordInstanceVariableof\ \code{#1}}% \defvarargs{#3}% \endgroup } % @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{% \dosubind{fn}{\code{#2}}{\putwordon\ \code{#1}}% entry in function index \begingroup \defname{#2}{\putwordMethodon\ \code{#1}}% \defunargs{#3}% \endgroup } % @defcv {Class Option} foo-class foo-flag \def\defcv #1 {\def\defcvtype{#1}% \defopvarparsebody\Edefcv\defcvx\defcvarheader\defcvtype} \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 % } % @defivar CLASS VARNAME == @defcv {Instance Variable} CLASS VARNAME % \def\defivar{\defvrparsebody\Edefivar\defivarx\defivarheader} % \def\defivarheader#1#2#3{% \dosubind {vr}{\code{#2}}{\putwordof\ #1}% entry in var index \begingroup \defname{#2}{\putwordInstanceVariableof\ #1}% \defvarargs{#3}% \endgroup } % @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} % @defvr Counter foo-count \def\defvr{\defvrparsebody\Edefvr\defvrx\defvrheader} \def\defvrheader #1#2#3{\doind {vr}{\code{#2}}% \begingroup\defname {#2}{#1}\defvarargs{#3}\endgroup} % @defvar == @defvr Variable \def\defvar{\defvarparsebody\Edefvar\defvarx\defvarheader} \def\defvarheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index \begingroup\defname {#1}{\putwordDefvar}% \defvarargs {#2}\endgroup % } % @defopt == @defvr {User Option} \def\defopt{\defvarparsebody\Edefopt\defoptx\defoptheader} \def\defoptheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index \begingroup\defname {#1}{\putwordDefopt}% \defvarargs {#2}\endgroup % } % @deftypevar int foobar \def\deftypevar{\defvarparsebody\Edeftypevar\deftypevarx\deftypevarheader} % #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}}} % @deftypevr {Global Flag} int enable \def\deftypevr{\defvrparsebody\Edeftypevr\deftypevrx\deftypevrheader} \def\deftypevrheader #1#2#3{\dovarind#3 \relax% \begingroup\defname {\defheaderxcond#2\relax$$$#3}{#1} \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak \endgroup} % Now define @deftp % Args are printed in bold, a slight difference from @defvar. \def\deftpargs #1{\bf \defvarargs{#1}} % @deftp Class window height width ... \def\deftp{\deftpparsebody\Edeftp\deftpx\deftpheader} \def\deftpheader #1#2#3{\doind {tp}{\code{#2}}% \begingroup\defname {#2}{#1}\deftpargs{#3}\endgroup} % 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}} \message{macros,} % @macro. % 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 \newwrite\macscribble \def\scanmacro#1{% \begingroup \newlinechar`\^^M % Undo catcode changes of \startcontents and \doprintindex \catcode`\@=0 \catcode`\\=12 \escapechar=`\@ % Append \endinput to make sure that TeX does not see the ending newline. \toks0={#1\endinput}% \immediate\openout\macscribble=\jobname.tmp \immediate\write\macscribble{\the\toks0}% \immediate\closeout\macscribble \let\xeatspaces\eatspaces \input \jobname.tmp \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 \newcount\paramno % Count of parameters \newtoks\macname % Macro name \newif\ifrecursive % Is it recursive? \def\macrolist{} % List of all defined macros in the form % \do\macro1\do\macro2... % 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} % 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} } % 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}% } % 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 \. % 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. \def\macrobodyctxt{% \catcode`\~=12 \catcode`\^=12 \catcode`\_=12 \catcode`\|=12 \catcode`\<=12 \catcode`\>=12 \catcode`\+=12 \catcode`\{=12 \catcode`\}=12 \catcode`\@=12 \catcode`\^^M=12 \usembodybackslash} \def\macroargctxt{% \catcode`\~=12 \catcode`\^=12 \catcode`\_=12 \catcode`\|=12 \catcode`\<=12 \catcode`\>=12 \catcode`\+=12 \catcode`\@=12 \catcode`\\=12} % \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. {\catcode`@=0 @catcode`@\=@active @gdef@usembodybackslash{@let\=@mbodybackslash} @gdef@mbodybackslash#1\{@csname macarg.#1@endcsname} } \expandafter\def\csname macarg.\endcsname{\realbackslash} \def\macro{\recursivefalse\parsearg\macroxxx} \def\rmacro{\recursivetrue\parsearg\macroxxx} \def\macroxxx#1{% \getargs{#1}% now \macname is the macname and \argl the arglist \ifx\argl\empty % no arguments \paramno=0% \else \expandafter\parsemargdef \argl;% \fi \if1\csname ismacro.\the\macname\endcsname \message{Warning: redefining \the\macname}% \else \expandafter\ifx\csname \the\macname\endcsname \relax \else \errmessage{The name \the\macname\space is reserved}\fi \global\cslet{macsave.\the\macname}{\the\macname}% \global\expandafter\let\csname ismacro.\the\macname\endcsname=1% % Add the macroname to \macrolist \toks0 = \expandafter{\macrolist\do}% \xdef\macrolist{\the\toks0 \expandafter\noexpand\csname\the\macname\endcsname}% \fi \begingroup \macrobodyctxt \ifrecursive \expandafter\parsermacbody \else \expandafter\parsemacbody \fi} \def\unmacro{\parsearg\unmacroxxx} \def\unmacroxxx#1{% \if1\csname ismacro.#1\endcsname \global\cslet{#1}{macsave.#1}% \global\expandafter\let \csname ismacro.#1\endcsname=0% % Remove the macro name from \macrolist \begingroup \edef\tempa{\expandafter\noexpand\csname#1\endcsname}% \def\do##1{% \def\tempb{##1}% \ifx\tempa\tempb % remove this \else \toks0 = \expandafter{\newmacrolist\do}% \edef\newmacrolist{\the\toks0\expandafter\noexpand\tempa}% \fi}% \def\newmacrolist{}% % Execute macro list to define \newmacrolist \macrolist \global\let\macrolist\newmacrolist \endgroup \else \errmessage{Macro #1 not defined}% \fi } % 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}} % 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). % 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. \def\parsemargdef#1;{\paramno=0\def\paramlist{}% \let\hash\relax\let\xeatspaces\relax\parsemargdefxxx#1,;,} \def\parsemargdefxxx#1,{% \if#1;\let\next=\relax \else \let\next=\parsemargdefxxx \advance\paramno by 1% \expandafter\edef\csname macarg.\eatspaces{#1}\endcsname {\xeatspaces{\hash\the\paramno}}% \edef\paramlist{\paramlist\hash\the\paramno,}% \fi\next} % These two commands read recursive and nonrecursive macro bodies. % (They're different since rec and nonrec macros end differently.) \long\def\parsemacbody#1@end macro% {\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% \long\def\parsermacbody#1@end rmacro% {\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% % 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{% \let\hash=##% convert placeholders to macro parameter chars \ifrecursive \ifcase\paramno % 0 \expandafter\xdef\csname\the\macname\endcsname{% \noexpand\scanmacro{\temp}}% \or % 1 \expandafter\xdef\csname\the\macname\endcsname{% \bgroup\noexpand\macroargctxt \noexpand\braceorline \expandafter\noexpand\csname\the\macname xxx\endcsname}% \expandafter\xdef\csname\the\macname xxx\endcsname##1{% \egroup\noexpand\scanmacro{\temp}}% \else % many \expandafter\xdef\csname\the\macname\endcsname{% \bgroup\noexpand\macroargctxt \noexpand\csname\the\macname xx\endcsname}% \expandafter\xdef\csname\the\macname xx\endcsname##1{% \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% \expandafter\expandafter \expandafter\xdef \expandafter\expandafter \csname\the\macname xxx\endcsname \paramlist{\egroup\noexpand\scanmacro{\temp}}% \fi \else \ifcase\paramno % 0 \expandafter\xdef\csname\the\macname\endcsname{% \noexpand\norecurse{\the\macname}% \noexpand\scanmacro{\temp}\egroup}% \or % 1 \expandafter\xdef\csname\the\macname\endcsname{% \bgroup\noexpand\macroargctxt \noexpand\braceorline \expandafter\noexpand\csname\the\macname xxx\endcsname}% \expandafter\xdef\csname\the\macname xxx\endcsname##1{% \egroup \noexpand\norecurse{\the\macname}% \noexpand\scanmacro{\temp}\egroup}% \else % many \expandafter\xdef\csname\the\macname\endcsname{% \bgroup\noexpand\macroargctxt \expandafter\noexpand\csname\the\macname xx\endcsname}% \expandafter\xdef\csname\the\macname xx\endcsname##1{% \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% \expandafter\expandafter \expandafter\xdef \expandafter\expandafter \csname\the\macname xxx\endcsname \paramlist{% \egroup \noexpand\norecurse{\the\macname}% \noexpand\scanmacro{\temp}\egroup}% \fi \fi} \def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}} % \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{% \ifx\nchar\bgroup\else \expandafter\parsearg \fi \next} % 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}% \edef\next{\macrolist}\expandafter\endgroup\next} % @alias. \def\alias#1=#2{\gdef#1{#2}} \message{cross references,} % @xref etc. \newwrite\auxfile \newif\ifhavexrefs % True if xref values are known. \newif\ifwarnedxrefs % True if we warned once that they aren't known. % @inforef is relatively simple. \def\inforef #1{\inforefzzz #1,,,,**} \def\inforefzzz #1,#2,#3,#4**{\putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}}, node \samp{\ignorespaces#1{}}} % @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 % The sectioning commands (@chapter, etc.) call these. \def\donoderef{% \ifx\lastnode\relax\else \expandafter\expandafter\expandafter\setref{\lastnode}% {Ysectionnumberandtype}% \global\let\lastnode=\relax \fi } \def\unnumbnoderef{% \ifx\lastnode\relax\else \expandafter\expandafter\expandafter\setref{\lastnode}{Ynothing}% \global\let\lastnode=\relax \fi } \def\appendixnoderef{% \ifx\lastnode\relax\else \expandafter\expandafter\expandafter\setref{\lastnode}% {Yappendixletterandtype}% \global\let\lastnode=\relax \fi } % @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 \ifhmode \@savsk\lastskip \@savsf\spacefactor \fi } \gdef\@esphack{\relax \ifhmode \spacefactor\@savsf \ifdim\@savsk>\z@ \ignorespaces \fi \fi } \gdef\anchor#1{\@bsphack \setref{#1}{Ynothing}\@esphack} } % \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{{% \indexdummies \ifpdf \pdfmkdest{#1}\fi \dosetq{#1-title}{Ytitle}% \dosetq{#1-pg}{Ypagenumber}% \dosetq{#1-snt}{#2}% }} % @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 \def\printedmanual{\ignorespaces #5}% \def\printednodename{\ignorespaces #3}% \setbox1=\hbox{\printedmanual}% \setbox0=\hbox{\printednodename}% \ifdim \wd0 = 0pt % No printed node name was explicitly given. \expandafter\ifx\csname SETxref-automatic-section-title\endcsname\relax % Use the node name inside the square brackets. \def\printednodename{\ignorespaces #1}% \else % Use the actual chapter/section title appear inside % the square brackets. Use the real section title if we have it. \ifdim \wd1 > 0pt % It is in another manual, so we don't have it. \def\printednodename{\ignorespaces #1}% \else \ifhavexrefs % We know the real title if we have the xref values. \def\printednodename{\refx{#1-title}{}}% \else % Otherwise just copy the Info node name. \def\printednodename{\ignorespaces #1}% \fi% \fi \fi \fi % % If we use \unhbox0 and \unhbox1 to print the node names, TeX does not % insert empty discretionaries after hyphens, which means that it will % not find a line break at a hyphen in a node names. Since some manuals % are best written with fairly long node names, containing hyphens, this % is a loss. Therefore, we give the text of the node name again, so it % is as if TeX is seeing it for the first time. \ifpdf \leavevmode \getfilename{#4}% \ifnum\filenamelength>0 \pdfannotlink attr{/Border [0 0 0]}% goto file{\the\filename.pdf} name{#1@}% \else \pdfannotlink attr{/Border [0 0 0]}% goto name{#1@}% \fi \BlueGreen \fi % \ifdim \wd1 > 0pt \putwordsection{} ``\printednodename'' \putwordin{} \cite{\printedmanual}% \else % _ (for example) has to be the character _ for the purposes of the % control sequence corresponding to the node, but it has to expand % into the usual \leavevmode...\vrule stuff for purposes of % printing. So we \turnoffactive for the \refx-snt, back on for the % printing, back off for the \refx-pg. {\normalturnoffactive % Only output a following space if the -snt ref is nonempty; for % @unnumbered and @anchor, it won't be. \setbox2 = \hbox{\ignorespaces \refx{#1-snt}{}}% \ifdim \wd2 > 0pt \refx{#1-snt}\space\fi }% % [mynode], [\printednodename],\space % page 3 \turnoffactive \putwordpage\tie\refx{#1-pg}{}% \fi \ifpdf \Black\pdfendlink \fi \endgroup} % \dosetq is the interface for calls from other macros % Use \normalturnoffactive so that punctuation chars such as underscore % and backslash work in node names. (\turnoffactive doesn't do \.) \def\dosetq#1#2{% {\let\folio=0% \normalturnoffactive \edef\next{\write\auxfile{\internalsetq{#1}{#2}}}% \iflinks \next \fi }% } % \internalsetq {foo}{page} expands into % CHARACTERS 'xrdef {foo}{...expansion of \Ypage...} % When the aux file is read, ' is the escape character \def\internalsetq #1#2{'xrdef {#1}{\csname #2\endcsname}} % Things to be expanded by \internalsetq \def\Ypagenumber{\folio} \def\Ytitle{\thissection} \def\Ynothing{} \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 } \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 } \gdef\xreftie{'tie} % 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 \let\linenumber = \empty % Non-3.0. \else \def\linenumber{\the\inputlineno:\space} \fi % Define \refx{NAME}{SUFFIX} to reference a cross-reference string named NAME. % If its value is nonempty, SUFFIX is output afterward. \def\refx#1#2{% \expandafter\ifx\csname X#1\endcsname\relax % If not defined, say something at least. \angleleft un\-de\-fined\angleright \iflinks \ifhavexrefs \message{\linenumber Undefined cross reference `#1'.}% \else \ifwarnedxrefs\else \global\warnedxrefstrue \message{Cross reference values unknown; you must run TeX again.}% \fi \fi \fi \else % It's defined, so just use it. \csname X#1\endcsname \fi #2% Output the suffix in any case. } % This is the macro invoked by entries in the aux file. % \def\xrdef#1{\begingroup % Reenable \ as an escape while reading the second argument. \catcode`\\ = 0 \afterassignment\endgroup \expandafter\gdef\csname X#1\endcsname } % Read the last existing aux file, if any. No error if none exists. \def\readauxfile{\begingroup \catcode`\^^@=\other \catcode`\^^A=\other \catcode`\^^B=\other \catcode`\^^C=\other \catcode`\^^D=\other \catcode`\^^E=\other \catcode`\^^F=\other \catcode`\^^G=\other \catcode`\^^H=\other \catcode`\^^K=\other \catcode`\^^L=\other \catcode`\^^N=\other \catcode`\^^P=\other \catcode`\^^Q=\other \catcode`\^^R=\other \catcode`\^^S=\other \catcode`\^^T=\other \catcode`\^^U=\other \catcode`\^^V=\other \catcode`\^^W=\other \catcode`\^^X=\other \catcode`\^^Z=\other \catcode`\^^[=\other \catcode`\^^\=\other \catcode`\^^]=\other \catcode`\^^^=\other \catcode`\^^_=\other \catcode`\@=\other \catcode`\^=\other % It was suggested to define this as 7, which would allow ^^e4 etc. % in xref tags, i.e., node names. But since ^^e4 notation isn't % supported in the main text, it doesn't seem desirable. Furthermore, % that is not enough: for node names that actually contain a ^ % character, we would end up writing a line like this: 'xrdef {'hat % b-title}{'hat b} and \xrdef does a \csname...\endcsname on the first % argument, and \hat is not an expandable control sequence. It could % all be worked out, but why? Either we support ^^ or we don't. % % The other change necessary for this was to define \auxhat: % \def\auxhat{\def^{'hat }}% extra space so ok if followed by letter % and then to call \auxhat in \setq. % \catcode`\~=\other \catcode`\[=\other \catcode`\]=\other \catcode`\"=\other \catcode`\_=\other \catcode`\|=\other \catcode`\<=\other \catcode`\>=\other \catcode`\$=\other \catcode`\#=\other \catcode`\&=\other \catcode`+=\other % avoid \+ for paranoia even though we've turned it off % Make the characters 128-255 be printing characters {% \count 1=128 \def\loop{% \catcode\count 1=\other \advance\count 1 by 1 \ifnum \count 1<256 \loop \fi }% }% % The aux file uses ' as the escape (for now). % Turn off \ as an escape so we do not lose on % entries which were dumped with control sequences in their names. % For example, 'xrdef {$\leq $-fun}{page ...} made by @defun ^^ % Reference to such entries still does not work the way one would wish, % but at least they do not bomb out when the aux file is read in. \catcode`\{=1 \catcode`\}=2 \catcode`\%=\other \catcode`\'=0 \catcode`\\=\other % \openin 1 \jobname.aux \ifeof 1 \else \closein 1 \input \jobname.aux \global\havexrefstrue \global\warnedobstrue \fi % Open the new aux file. TeX will close it automatically at exit. \openout\auxfile=\jobname.aux \endgroup} % Footnotes. \newcount \footnoteno % 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 } % @footnotestyle is meaningful for info output only. \let\footnotestyle=\comment \let\ptexfootnote=\footnote {\catcode `\@=11 % % Auto-number footnotes. Otherwise like plain. \gdef\footnote{% \global\advance\footnoteno by \@ne \edef\thisfootno{$^{\the\footnoteno}$}% % % In case the footnote comes at the end of a sentence, preserve the % extra spacing after we do the footnote number. \let\@sf\empty \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi % % Remove inadvertent blank space before typesetting the footnote number. \unskip \thisfootno\@sf \footnotezzz }% % 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 % We want to typeset this text as a normal paragraph, even if the % footnote reference occurs in (for example) a display environment. % So reset some parameters. \interlinepenalty\interfootnotelinepenalty \splittopskip\ht\strutbox % top baseline for broken footnotes \splitmaxdepth\dp\strutbox \floatingpenalty\@MM \leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip \xspaceskip\z@skip \parindent\defaultparindent % % Hang the footnote text off the number. \hang \textindent{\thisfootno}% % % Don't crash into the line above the footnote text. Since this % expands into a box, it must come within the paragraph, lest it % provide a place where TeX can split the footnote. \footstrut \futurelet\next\fo@t } \def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t \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} }%end \catcode `\@=11 % 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{% \normalbaselineskip = #1\relax \normallineskip = \lineskipfactor\normalbaselineskip \normalbaselines \setbox\strutbox =\hbox{% \vrule width0pt height\strutheightpercent\baselineskip depth \strutdepthpercent \baselineskip }% } % @| 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\|{% % \vadjust can only be used in horizontal mode. \leavevmode % % Append this vertical mode material after the current line in the output. \vadjust{% % We want to insert a rule with the height and depth of the current % leading; that is exactly what \strutbox is supposed to record. \vskip-\baselineskip % % \vadjust-items are inserted at the left edge of the type. So % the \llap here moves out into the left-hand margin. \llap{% % % For a thicker or thinner bar, change the `1pt'. \vrule height\baselineskip width1pt % % This is the space between the bar and the text. \hskip 12pt }% }% } % 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} % @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 \closein 1 % Do not bother showing banner with post-v2.7 epsf.tex (available in % doc/epsf.tex until it shows up on ctan). \def\epsfannounce{\toks0 = }% \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 work. It is also included in the Texinfo distribution, or you can get it from ftp://tug.org/tex/epsf.tex.} % \def\image#1{% \ifx\epsfbox\undefined \ifwarnednoepsf \else \errhelp = \noepsfhelp \errmessage{epsf.tex not found, images will be ignored}% \global\warnednoepsftrue \fi \else \imagexxx #1,,,\finish \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{% \ifx\pdfoutput\undefined % \epsfbox itself resets \epsf?size at each figure. \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi \setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi \begingroup \catcode`\^^M = 5 % in case we're inside an example % If the image is by itself, center it. \ifvmode \nobreak\bigskip % Usually we'll have text after the image which will insert % \parskip glue, so insert it here too to equalize the space % above and below. \nobreak\vskip\parskip \nobreak \centerline{\epsfbox{#1.eps}}% \bigbreak \else % In the middle of a paragraph, no extra space. \epsfbox{#1.eps}% \fi \endgroup \else \centerline{\pdfimage #1.pdf}% \fi } \message{localization,} % and i18n. % @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{% \tex % read txi-??.tex file in plain TeX. % Read the file if it exists. \openin 1 txi-#1.tex \ifeof1 \errhelp = \nolanghelp \errmessage{Cannot read language file txi-#1.tex}% \let\temp = \relax \else \def\temp{\input txi-#1.tex }% \fi \temp \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.} % @documentencoding should change something in TeX eventually, most % likely, but for now just recognize it. \let\documentencoding = \comment % Page size parameters. % \newdimen\defaultparindent \defaultparindent = 15pt \chapheadingskip = 15pt plus 4pt minus 2pt \secheadingskip = 12pt plus 3pt minus 2pt \subsecheadingskip = 9pt plus 2pt minus 2pt % Prevent underfull vbox error messages. \vbadness = 10000 % Don't be so finicky about underfull hboxes, either. \hbadness = 2000 % Following George Bush, just get rid of widows and orphans. \widowpenalty=10000 \clubpenalty=10000 % 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{% \ifx\emergencystretch\thisisundefined % Allow us to assign to \emergencystretch anyway. \def\emergencystretch{\dimen0}% \else \emergencystretch = .15\hsize \fi } % 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{% \voffset = #3\relax \topskip = #6\relax \splittopskip = \topskip % \vsize = #1\relax \advance\vsize by \topskip \outervsize = \vsize \advance\outervsize by 2\topandbottommargin \pageheight = \vsize % \hsize = #2\relax \outerhsize = \hsize \advance\outerhsize by 0.5in \pagewidth = \hsize % \normaloffset = #4\relax \bindingoffset = #5\relax % \parindent = \defaultparindent \setemergencystretch } % @letterpaper (the default). \def\letterpaper{{\globaldefs = 1 \parskip = 3pt plus 2pt minus 1pt \setleading{13.2pt}% % % If page is nothing but text, make it come out even. \internalpagesizes{46\baselineskip}{6in}{\voffset}{.25in}{\bindingoffset}{36pt}% }} % Use @smallbook to reset parameters for 7x9.5 (or so) format. \def\smallbook{{\globaldefs = 1 \parskip = 2pt plus 1pt \setleading{12pt}% % \internalpagesizes{7.5in}{5.in}{\voffset}{.25in}{\bindingoffset}{16pt}% % \lispnarrowing = 0.3in \tolerance = 700 \hfuzz = 1pt \contentsrightmargin = 0pt \deftypemargin = 0pt \defbodyindent = .5cm % \let\smalldisplay = \smalldisplayx \let\smallexample = \smalllispx \let\smallformat = \smallformatx \let\smalllisp = \smalllispx }} % Use @afourpaper to print on European A4 paper. \def\afourpaper{{\globaldefs = 1 \setleading{12pt}% \parskip = 3pt plus 2pt minus 1pt % \internalpagesizes{53\baselineskip}{160mm}{\voffset}{4mm}{\bindingoffset}{44pt}% % \tolerance = 700 \hfuzz = 1pt }} % 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 \setleading{13.6pt}% % \afourpaper \internalpagesizes{237mm}{150mm}{3.6mm}{3.6mm}{3mm}{7mm}% % \globaldefs = 0 }} % Use @afourwide to print on European A4 paper in wide format. \def\afourwide{% \afourpaper \internalpagesizes{9.5in}{6.5in}{\hoffset}{\normaloffset}{\bindingoffset}{7mm}% % \globaldefs = 0 } % @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{{% \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \hsize=#2\relax \fi \globaldefs = 1 % \parskip = 3pt plus 2pt minus 1pt \setleading{13.2pt}% % \internalpagesizes{#1}{\hsize}{\voffset}{\normaloffset}{\bindingoffset}{44pt}% }} % Set default to letter. % \letterpaper \message{and turning on texinfo input format.} % 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{$} % 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} % 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} % 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. \catcode`\"=\active \def\activedoublequote{{\tt\char34}} \let"=\activedoublequote \catcode`\~=\active \def~{{\tt\char126}} \chardef\hat=`\^ \catcode`\^=\active \def^{{\tt \hat}} \catcode`\_=\active \def_{\ifusingtt\normalunderscore\_} % Subroutine for the previous macro. \def\_{\leavevmode \kern.06em \vbox{\hrule width.3em height.1ex}} \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$} % Set up an active definition for =, but don't enable it most of the time. {\catcode`\==\active \global\def={{\tt \char 61}}} \catcode`+=\active \catcode`\_=\active % 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} \catcode`\@=0 % \rawbackslashxx output one backslash character in current font \global\chardef\rawbackslashxx=`\\ %{\catcode`\\=\other %@gdef@rawbackslashxx{\}} % \rawbackslash redefines \ as input to do \rawbackslashxx. {\catcode`\\=\active @gdef@rawbackslash{@let\=@rawbackslashxx }} % \normalbackslash outputs one backslash in fixed width font. \def\normalbackslash{{\tt\rawbackslashxx}} % \catcode 17=0 % Define control-q \catcode`\\=\active % 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} @def@normalturnoffactive{@let"=@normaldoublequote @let\=@normalbackslash @let~=@normaltilde @let^=@normalcaret @let_=@normalunderscore @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater @let+=@normalplus @let$=@normaldollar} % Make _ and + \other characters, temporarily. % This is canceled by @fixbackslash. @otherifyactive % 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 % 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{% @ifx\@eatinput @let\ = @normalbackslash @fi @catcode`+=@active @catcode`@_=@active } % Say @foo, not \foo, in error messages. @escapechar = `@@ % These look ok in all fonts, so just make them not special. @catcode`@& = @other @catcode`@# = @other @catcode`@% = @other @c Set initial fonts. @textfonts @rm @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: tar-1.13/doc/version.texi0000664000176300016070000000007606737251613011056 @set UPDATED 16 June 1999 @set EDITION 1.13 @set VERSION 1.13 tar-1.13/doc/tar.texi0000444000176300016070000126420306731702242010151 \input texinfo @c %**start of header @setfilename tar.info @settitle GNU tar @finalout @smallbook @c %**end of header @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 ====================================================================== @ifclear PUBLISH @ifclear DISTRIB @ifclear PROOF @set DISTRIB @end ifclear @end ifclear @end ifclear @ifset PUBLISH @set RENDITION The book, version @end ifset @ifset DISTRIB @set RENDITION FTP release, version @end ifset @ifset PROOF @set RENDITION Proof reading version @end ifset @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 --------------------------------------------------------------------- @c Output marks for nodes needing revision, but not in PUBLISH rendition. @macro UNREVISED @ifclear PUBLISH @quotation @emph{(This message will disappear, once this node revised.)} @end quotation @end ifclear @end macro @c Output various FIXME information only in PROOF rendition. @macro FIXME{string} @allow-recursion @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset @end macro @macro FIXME-ref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset @end macro @macro FIXME-pxref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset @end macro @macro FIXME-xref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset @end macro @c @macro option{entry} @c @quote-arg @c @opindex{--\entry\} @c @value{\entry\} @c @end macro @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} @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} @set op-append @kbd{--append} (@kbd{-r}) @set ref-append @ref{add} @set xref-append @xref{add} @set pxref-append @pxref{add} @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} @set op-backup @kbd{--backup} @set ref-backup @ref{Backup options} @set xref-backup @xref{Backup options} @set pxref-backup @pxref{Backup options} @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} @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} @set op-checkpoint @kbd{--checkpoint} @set ref-checkpoint @ref{verbose} @set xref-checkpoint @xref{verbose} @set pxref-checkpoint @pxref{verbose} @set op-compare @kbd{--compare} (@kbd{--diff}, @kbd{-d}) @set ref-compare @ref{compare} @set xref-compare @xref{compare} @set pxref-compare @pxref{compare} @set op-compress @kbd{--compress} (@kbd{--uncompress}, @kbd{-Z}) @set ref-compress @ref{gzip} @set xref-compress @xref{gzip} @set pxref-compress @pxref{gzip} @set op-concatenate @kbd{--concatenate} (@kbd{--catenate}, @kbd{-A}) @set ref-concatenate @ref{concatenate} @set xref-concatenate @xref{concatenate} @set pxref-concatenate @pxref{concatenate} @set op-create @kbd{--create} (@kbd{-c}) @set ref-create @ref{create} @set xref-create @xref{create} @set pxref-create @pxref{create} @set op-delete @kbd{--delete} @set ref-delete @ref{delete} @set xref-delete @xref{delete} @set pxref-delete @pxref{delete} @set op-dereference @kbd{--dereference} (@kbd{-h}) @set ref-dereference @ref{dereference} @set xref-dereference @xref{dereference} @set pxref-dereference @pxref{dereference} @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} @set op-exclude @kbd{--exclude=@var{pattern}} @set ref-exclude @ref{exclude} @set xref-exclude @xref{exclude} @set pxref-exclude @pxref{exclude} @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} @set op-extract @kbd{--extract} (@kbd{--get}, @kbd{-x}) @set ref-extract @ref{extract} @set xref-extract @xref{extract} @set pxref-extract @pxref{extract} @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} @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} @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} @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} @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} @set op-help @kbd{--help} @set ref-help @ref{help} @set xref-help @xref{help} @set pxref-help @pxref{help} @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} @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} @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} @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} @set op-interactive @kbd{--interactive} (@kbd{-w}) @set ref-interactive @ref{interactive} @set xref-interactive @xref{interactive} @set pxref-interactive @pxref{interactive} @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} @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} @set op-list @kbd{--list} (@kbd{-t}) @set ref-list @ref{list} @set xref-list @xref{list} @set pxref-list @pxref{list} @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} @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} @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} @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} @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} @set op-null @kbd{--null} @set ref-null @ref{files} @set xref-null @xref{files} @set pxref-null @pxref{files} @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} @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} @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} @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} @set op-posix @kbd{--posix} @set ref-posix @ref{posix} @set xref-posix @xref{posix} @set pxref-posix @pxref{posix} @set op-preserve @kbd{--preserve} @set ref-preserve @ref{Attributes} @set xref-preserve @xref{Attributes} @set pxref-preserve @pxref{Attributes} @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} @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} @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 @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} @set op-rsh-command @kbd{rsh-command=@var{command}} @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? @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} @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? @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} @set op-sparse @kbd{--sparse} (@kbd{-S}) @set ref-sparse @ref{sparse} @set xref-sparse @xref{sparse} @set pxref-sparse @pxref{sparse} @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} @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} @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} @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} @set op-totals @kbd{--totals} @set ref-totals @ref{verbose} @set xref-totals @xref{verbose} @set pxref-totals @pxref{verbose} @set op-touch @kbd{--touch} (@kbd{-m}) @set ref-touch @ref{Writing} @set xref-touch @xref{Writing} @set pxref-touch @pxref{Writing} @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} @set op-update @kbd{--update} (@kbd{-u}) @set ref-update @ref{update} @set xref-update @xref{update} @set pxref-update @pxref{update} @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} @set op-verbose @kbd{--verbose} (@kbd{-v}) @set ref-verbose @ref{verbose} @set xref-verbose @xref{verbose} @set pxref-verbose @pxref{verbose} @set op-verify @kbd{--verify} (@kbd{-W}) @set ref-verify @ref{verify} @set xref-verify @xref{verify} @set pxref-verify @pxref{verify} @set op-version @kbd{--version} @set ref-version @ref{help} @set xref-version @xref{help} @set pxref-version @pxref{help} @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} @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} @include version.texi @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 @defindex op @syncodeindex op cp @ifinfo @format START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY @end format @end ifinfo @ifinfo This file documents GNU @code{tar}, a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. @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). @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. 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 @setchapternewpage odd @shorttitlepage GNU @code{tar} @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 @page @vskip 0pt plus 1filll Copyright @copyright{} 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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 @ifinfo 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}. @end ifinfo @node Top, Introduction, (dir), (dir) @menu * Introduction:: * Tutorial:: * tar invocation:: * operations:: * Backups:: * Choosing:: * Date input formats:: * Formats:: * Media:: * Index:: --- The Detailed Node Listing --- Introduction * 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 Tutorial Introduction to @code{tar} * 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:: Two Frequently Used Options * file tutorial:: * verbose tutorial:: * help tutorial:: How to Create Archives * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: How to List Archives * list dir:: How to Extract Members from an Archive * extracting archives:: * extracting files:: * extract dir:: * failing commands:: Invoking GNU @code{tar} * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: The Three Option Styles * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles All @code{tar} Options * Operation Summary:: * Option Summary:: * Short Option Summary:: GNU @code{tar} Operations * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: Advanced GNU @code{tar} Operations * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare:: How to Add Files to Existing Archives: @code{--append} * appending files:: Appending Files to an Archive * multiple:: Updating an Archive * how to update:: Options Used by @code{--extract} * Reading:: Options to Help Read Archives * Writing:: Changing How @code{tar} Writes Files * Scarce:: Coping with Scarce Resources Options to Help Read Archives * read full records:: * Ignore Zeros:: * Ignore Failed Read:: Changing How @code{tar} Writes Files * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files:: Options to Prevent Overwriting Files * Keep Old Files:: * Unlink First:: * Recursive Unlink:: Coping with Scarce Resources * Starting File:: * Same Order:: Performing Backups and Restoring Files * 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 Setting Parameters for Backups and Restoration * backup-specs example:: An Example Text of @file{Backup-specs} * Script Syntax:: Syntax for @file{Backup-specs} Choosing Files and Names for @code{tar} * 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 Reading Names from a File * nul:: Excluding Some Files * problems with exclude:: Crossing Filesystem Boundaries * directory:: Changing Directory * absolute:: Absolute File Names Date input formats * 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. Controlling the Archive Format * 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} Making @code{tar} Archives More Portable * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems Using Less Space through Compression * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files Tapes and Other Archive Media * 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:: Blocking * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive Many Archives on One Tape * Tape Positioning:: Tape Positions and Tape Marks * mt:: The @code{mt} Utility Using Multiple Tapes * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files @end menu @node Introduction, Tutorial, Top, Top @chapter Introduction 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. @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 @node Book Contents, Definitions, Introduction, Introduction @ifinfo @heading What this Book Contains @end ifinfo 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. 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. 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}.) The third chapter presents the remaining five operations, and information about using @code{tar} options and option syntax. @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. 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. 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.) @node Definitions, What tar Does, Book Contents, Introduction @section Some Definitions @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. @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. @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}. @node What tar Does, Naming tar Archives, Definitions, Introduction @section What @code{tar} Does @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. 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). @FIXME{the following table entries need a bit of work..} You can use @code{tar} archives in many ways. We want to stress a few of them: storage, backup, and transportation. @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. 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. 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!) @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. @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 @node Naming tar Archives, posix compliance, What tar Does, Introduction @section How @code{tar} Archives are Named 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. @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. @node posix compliance, Authors, Naming tar Archives, Introduction @section POSIX Compliance @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...} 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. 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. @node Authors, Reports, posix compliance, Introduction @section GNU @code{tar} Authors 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. 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. @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.} @FIXME{History is more important, and surely more interesting, than actual names. Quoting names without history would be meaningless. FP} 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.} For version 1.12, Daniel Hagerty contributed a great deal of technical consulting. In particular, he is the primary author of @ref{Backups}. @node Reports, , Authors, Introduction @section Reporting bugs or suggestions @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}. @node Tutorial, tar invocation, Introduction, Top @chapter Tutorial Introduction to @code{tar} 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. @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 @node assumptions, stylistic conventions, Tutorial, Tutorial @ifinfo @heading Assumptions this Tutorial Makes @end ifinfo 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: @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?}. @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}. @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. @FIXME{this is a cop out. need to add some simple tape drive info.} @end itemize @node stylistic conventions, basic tar options, assumptions, Tutorial @ifinfo @heading Stylistic Conventions @end ifinfo 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: @smallexample This is an example of a line which would otherwise not fit in this space. @end smallexample @FIXME{how often do we use smallexample?} @node basic tar options, frequent operations, stylistic conventions, Tutorial @section Basic @code{tar} Operations and Options @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. 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. 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. 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}.) 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 @example @kbd{tar --create --verbose --file=afiles.tar apple angst aspic} @end example @noindent you can type @example @kbd{tar -c -v -f afiles.tar apple angst aspic} @end example @noindent or even @example @kbd{tar -cvf afiles.tar apple angst aspic} @end example @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. 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. 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. @node frequent operations, Two Frequent Options, basic tar options, Tutorial @section The Three Most Frequently Used Operations 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. @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 @node Two Frequent Options, create, frequent operations, Tutorial @section Two Frequently Used Options 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.) @menu * file tutorial:: * verbose tutorial:: * help tutorial:: @end menu @node file tutorial, verbose tutorial, Two Frequent Options, Two Frequent Options @unnumberedsubsec The @samp{--file} Option @table @kbd @item --file=@var{archive-name} @itemx -f @var{archive-name} Specify the name of an archive file. @end table 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. 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: @example tar: can't open /dev/rmt8 : No such device or address tar: can't open /dev/rsmt0 : I/O error @end example @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}. @node verbose tutorial, help tutorial, file tutorial, Two Frequent Options @unnumberedsubsec The @samp{--verbose} Option @table @kbd @item --verbose @itemx -v Show the files being worked on as @code{tar} is running. @end table @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. 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 @example @kbd{tar -cvf afiles.tar apple angst aspic} @end example @noindent above, you might say @example @kbd{tar -cvvf afiles.tar apple angst aspic} @end example @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: @example $ @kbd{tar --create --verbose --verbose @dots{}} @end example @noindent Note that you must double the hyphens properly each time. Later in the tutorial, we will give examples using @w{@samp{--verbose --verbose}}. @node help tutorial, , verbose tutorial, Two Frequent Options @unnumberedsubsec Getting Help: Using the @code{--help} Option @table @kbd @item --help 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 @node create, list, Two Frequent Options, Tutorial @section How to Create Archives @UNREVISED 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. 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. 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}. 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. @menu * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: @end menu @node prepare for examples, Creating the archive, create, create @subsection Preparing a Practice Directory for Examples 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. 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. 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. 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. @node Creating the archive, create verbose, prepare for examples, create @subsection Creating the Archive To place the files @file{blues}, @file{folk}, and @file{jazz} into an archive named @file{collection.tar}, use the following command: @example $ @kbd{tar --create --file=collection.tar blues folk jazz} @end example The order of the arguments is not very important, @emph{when using long option forms}. You could also say: @example $ @kbd{tar blues --create folk --file=collection.tar jazz} @end example @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). 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. 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. 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?}. 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. 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: @example blues folk jazz collection.tar @end example @noindent Creating the archive @samp{collection.tar} did not destroy the copies of the files in the directory. 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. @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}. @node create verbose, short create, Creating the archive, create @subsection Running @samp{--create} with @samp{--verbose} 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: @example $ @kbd{tar --create --verbose --file=collection.tar blues folk jazz} blues folk jazz @end example 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 . @end ifinfo 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. @node short create, create dir, create verbose, create @subsection Short Forms with @samp{create} 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: @example $ @kbd{tar -cvf collection.tar blues folk jazz} blues folk jazz @end example @noindent As you can see, the system responds the same no matter whether you use long or short option forms. @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: @example $ @kbd{tar -cfv collection.tar blues folk jazz} @end example @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. 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. This example, @example $ @kbd{tar blues --create folk --file=collection.tar jazz} @end example @noindent is confusing as it is. When shown using short forms, however, it becomes much more so: @example $ @kbd{tar blues -c folk -f collection.tar jazz} @end example @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. 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.) @node create dir, , short create, create @subsection Archiving Directories @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. To archive a directory, first move to its superior directory. If you have followed the previous instructions in this tutorial, you should type: @example $ @kbd{cd ..} $ @end example @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: @example $ @kbd{tar --create --verbose --file=music.tar practice} @end example @noindent @code{tar} should output: @example practice/ practice/blues practice/folk practice/jazz practice/collection.tar @end example 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). If you give @code{tar} a command such as @example $ @kbd{tar --create --file=foo.tar .} @end example @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.}) @node list, extract, create, Tutorial @section How to List Archives 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, @example $ @kbd{tar --list --file=collection.tar} @end example @noindent The output of @code{tar} would then be: @example blues folk jazz @end example @FIXME{we hope this will change. if it doesn't, need to show the creation of bfiles somewhere above!!! : } @noindent The archive @file{bfiles.tar} would list as follows: @example ./birds baboon ./box @end example @noindent Be sure to use a @value{op-file} option just as with @value{op-create} to specify the name of the archive. 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. If you had used @value{op-verbose} mode, the example above would look like: @example $ @kbd{tar --list --verbose --file=collection.tar folk} -rw-rw-rw- myself user 62 1990-05-23 10:55 folk @end example @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}. @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}. 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. @menu * list dir:: @end menu @node list dir, , list, list @unnumberedsubsec Listing the Contents of a Stored Directory @UNREVISED @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..} 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. For example, to find out about files in the directory @file{practice}, in the archive file @file{music.tar}, type: @example $ @kbd{tar --list --verbose --file=music.tar practice} @end example @code{tar} responds: @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 When you use a directory name as a file name argument, @code{tar} acts on all the files (including sub-directories) in that directory. @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 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. 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. @menu * extracting archives:: * extracting files:: * extract dir:: * failing commands:: @end menu @node extracting archives, extracting files, extract, extract @subsection Extracting an Entire Archive To extract an entire archive, specify the archive file name only, with no individual file names as arguments. For example, @example $ @kbd{tar -xvf collection.tar} @end example @noindent produces this: @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 @node extracting files, extract dir, extracting archives, extract @subsection Extracting Specific Files 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?} 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. You can now extract the member @file{blues} from the archive file @file{collection.tar} like this: @example $ @kbd{tar --extract --file=collection.tar blues} @end example @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}. @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}). If you give the @value{op-verbose} option, then @value{op-extract} will print the names of the archive members as it extracts them. @node extract dir, failing commands, extracting files, extract @subsection Extracting Files that are Directories 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. 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. 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: @example $ @kbd{tar -xvf music.tar practice/folk practice/jazz} @end example @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!).} @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. @FIXME{IMPORTANT! show the final structure, here. figure out what it will be.} @node failing commands, , extract dir, extract @subsection Commands That Will Fail Here are some sample commands you might try which will not work, and why they won't work. If you try to use this command, @example $ @kbd{tar -xvf music.tar folk jazz} @end example @noindent you will get the following response: @example tar: folk: Not found in archive tar: jazz: Not found in archive $ @end example @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: @example $ @kbd{tar -tvf music.tar} practice/folk practice/jazz practice/rock @end example @FIXME{make sure the above works when going through the examples in order...} @noindent Likewise, if you try to use this command, @example $ @kbd{tar -tvf music.tar folk jazz} @end example @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. If you have forgotten the correct names of the files in the archive, use @w{@kbd{tar --list --verbose}} to list them correctly. @FIXME{more examples, here? hag thinks it's a good idea.} @node going further, , extract, Tutorial @section Going Further Ahead in this Manual @FIXME{need to write up a node here about the things that are going to be in the rest of the manual.} @node tar invocation, operations, Tutorial, Top @chapter Invoking GNU @code{tar} @UNREVISED 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. 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. 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}). @menu * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: @end menu @node Synopsis, using tar options, tar invocation, tar invocation @section General Synopsis of @code{tar} The GNU @code{tar} program is invoked as either one of: @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 The second form is for when old options are being used. 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. 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. 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. @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}. 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}. 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. 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. 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. @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. 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. @node using tar options, Styles, Synopsis, tar invocation @section Using @code{tar} Options 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. 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}.) 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}. 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. @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.} @node Styles, All Options, using tar options, tar invocation @section The Three Option Styles 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. 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. @FIXME{hag to write a brief paragraph on the option(s) which can optionally take an argument} @menu * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles @end menu @node Mnemonic Options, Short Options, Styles, Styles @subsection Mnemonic Option Style @FIXME{have to decide whether or ot to replace other occurrences of "mnemonic" with "long", or *ugh* vice versa.} 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.) 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: @example $ @kbd{tar --create --verbose --blocking-factor=20 --file=/dev/rmt0} @end example @noindent gives a fairly good set of hints about what the command does, even for those not fully acquainted with @code{tar}. 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. @node Short Options, Old Options, Mnemonic Options, Styles @subsection Short Option Style 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. The short option names are faster to type than long option names. 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}. 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.}. 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: @example $ @kbd{tar -c -v -b 20 -f /dev/rmt0} @end example 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. @node Old Options, Mixing, Short Options, Styles @subsection Old Option Style @UNREVISED 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}. @FIXME{bob suggests having an uglier example. :-) } 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: @example $ @kbd{tar cvbf 20 /dev/rmt0} @end example @noindent Here, @samp{20} is the argument of @samp{-b} and @samp{/dev/rmt0} is the argument of @samp{-f}. 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. If you want to reorder the letters in the old option argument, be sure to reorder any corresponding argument appropriately. This old way of writing @code{tar} options can surprise even experienced users. For example, the two commands: @example @kbd{tar cfz archive.tar.gz file} @kbd{tar -cfz archive.tar.gz file} @end example @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. Old options are kept for compatibility with old versions of @code{tar}. This second example could be corrected in many ways, among which the following are equivalent: @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 @FIXME{still could explain this better; it's redundant:} @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. @node Mixing, , Old Options, Styles @subsection Mixing Option Styles 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. For example, all the following commands are wholly equivalent, and illustrate the many combinations and orderings of option styles. @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 On the other hand, the following commands are @emph{not} equivalent to the previous set: @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 @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..} @node All Options, help, Styles, tar invocation @section All @code{tar} Options 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. @menu * Operation Summary:: * Option Summary:: * Short Option Summary:: @end menu @node Operation Summary, Option Summary, All Options, All Options @subsection Operations @table @kbd @item --append @itemx -r Appends files to the end of the archive. @xref{append}. @item --catenate @itemx -A Same as @samp{--concatenate}. @xref{concatenate}. @item --compare @itemx -d Compares archive members with their counterparts in the file system, and reports differences in file size, mode, owner, modification date and contents. @xref{compare}. @item --concatenate @itemx -A Appends other @code{tar} archives to the end of the archive. @xref{concatenate}. @item --create @itemx -c Creates a new @code{tar} archive. @xref{create}. @item --delete Deletes members from the archive. Don't try this on a archive on a tape! @xref{delete}. @item --diff @itemx -d Same @samp{--compare}. @xref{compare}. @item --extract @itemx -x Extracts members from the archive into the file system. @xref{extract}. @item --get @itemx -x Same as @samp{--extract}. @xref{extract}. @item --list @itemx -t Lists the members in an archive. @xref{list}. @item --update @itemx -u @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}. @end table @node Option Summary, Short Option Summary, Operation Summary, All Options @subsection @code{tar} Options @table @kbd @item --absolute-names @itemx -P Normally when creating an archive, @code{tar} strips an initial @samp{/} from member names. This option disables that behavior. @FIXME-xref{}. @item --after-date (See @samp{--newer}; @FIXME-pxref{}.) @item --atime-preserve Tells @code{tar} to preserve the access time field in a file's inode when dumping it. @FIXME-xref{}. @item --backup=@var{backup-type} 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{}. @item --block-number @itemx -R With this option present, @code{tar} prints error messages for read errors with the block number in the archive file. @FIXME-xref{}. @item --blocking-factor=@var{blocking} @itemx -b @var{blocking} Sets the blocking factor @code{tar} uses to @var{blocking} x 512 bytes per record. @FIXME-xref{}. @item --checkpoint 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{}. @item --compress @itemx --uncompress @itemx -Z @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{}. @item --confirmation (See @samp{--interactive}; @FIXME-pxref{}.) @item --dereference @itemx -h 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{}. @item --directory=@var{dir} @itemx -C @var{dir} 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{}. @item --exclude=@var{pattern} When performing operations, @code{tar} will skip files that match @var{pattern}. @FIXME-xref{}. @item --exclude-from=@var{file} @itemx -X @var{file} Similar to @samp{--exclude}, except @code{tar} will use the list of patterns in the file @var{file}. @FIXME-xref{}. @item --file=@var{archive} @itemx -f @var{archive} @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{}. @item --files-from=@var{file} @itemx -T @var{file} @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{}. @item --force-local 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{}. @item --group=@var{group} 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{}. Also see the comments for the @value{op-owner} option. @item --gunzip (See @samp{--gzip}; @FIXME-pxref{}.) @item --gzip @itemx --gunzip @itemx --ungzip @itemx -z 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{}. @item --help @code{tar} will print out a short message summarizing the operations and options to @code{tar} and exit. @FIXME-xref{}. @item --ignore-failed-read Instructs @code{tar} to exit successfully if it encounters an unreadable file. @xref{Reading}. @item --ignore-umask @FIXME{does this exist?} (See @samp{--preserve-permissions}; @pxref{Writing}.) @item --ignore-zeros @itemx -i With this option, @code{tar} will ignore zeroed blocks in the archive, which normally signals EOF. @xref{Reading}. @item --incremental @itemx -G 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{}. @item --info-script=@var{script-file} @itemx --new-volume-script=@var{script-file} @itemx -F @var{script-file} When @code{tar} is performing multi-tape backups, @var{script-file} is run at the end of each tape. @FIXME-xref{}. @item --interactive @itemx --confirmation @itemx -w Specifies that @code{tar} should ask the user for confirmation before performing potentially destructive options, such as overwriting files. @FIXME-xref{}. @item --keep-old-files @itemx -k When extracting files from an archive, @code{tar} will not overwrite existing files if this option is present. @xref{Writing}. @item --label=@var{name} @itemx -V @var{name} 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{}. @item --listed-incremental=@var{snapshot-file} @itemx -g @var{snapshot-file} 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{}. @item --mode=@var{permissions} 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. 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. @item --multi-volume @itemx -M Informs @code{tar} that it should create or otherwise operate on a multi-volume @code{tar} archive. @FIXME-xref{}. @item --new-volume-script (see --info-script) @item --newer=@var{date} @itemx --after-date=@var{date} @itemx -N When creating an archive, @code{tar} will only add files that have changed since @var{date}. @FIXME-xref{}. @item --newer-mtime 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). @item --no-recursion With this option, @code{tar} will not recurse into directories unless a directory is explicitly named as an argument to @code{tar}. @FIXME-xref{}. @item --null 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{}. @item --numeric-owner 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{}. @item --old-archive (See @samp{--portability}; @FIXME-pxref{}.) @item --one-file-system @itemx -l Used when creating an archive. Prevents @code{tar} from recursing into directories that are on different file systems from the current directory. @FIXME-xref{}. @item --owner=@var{user} 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{}. 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. @item --portability @itemx --old-archive @itemx -o Tells @code{tar} to create an archive that is compatible with Unix V7 @code{tar}. @FIXME-xref{}. @item --posix Instructs @code{tar} to create a POSIX compliant @code{tar} archive. @FIXME-xref{}. @item --preserve Synonymous with specifying both @samp{--preserve-permissions} and @samp{--same-order}. @FIXME-xref{}. @item --preserve-order (See @samp{--same-order}; @pxref{Reading}.) @item --preserve-permissions @itemx --same-permissions @itemx -p 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}. @item --read-full-records @itemx -B Specifies that @code{tar} should reblock its input, for reading from pipes on systems with buggy implementations. @xref{Reading}. @item --record-size=@var{size} Instructs @code{tar} to use @var{size} bytes per record when accessing the archive. @FIXME-xref{}. @item --recursive-unlink Similar to the @samp{--unlink-first} option, removing existing directory hierarchies before extracting directories of the same name from the archive. @xref{Writing}. @item --remove-files Directs @code{tar} to remove the source file from the file system after appending it to an archive. @FIXME-xref{}. @item --rsh-command=@var{cmd} Notifies @code{tar} that is should use @var{cmd} to communicate with remote devices. @FIXME-xref{}. @item --same-order @itemx --preserve-order @itemx -s 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}. @item --same-owner When extracting an archive, @code{tar} will attempt to preserve the owner specified in the @code{tar} archive with this option present. @FIXME-xref{}. @item --same-permissions (See @samp{--preserve-permissions}; @pxref{Writing}.) @item --show-omitted-dirs Instructs @code{tar} to mention directories its skipping over when operating on a @code{tar} archive. @FIXME-xref{}. @item --sparse @itemx -S Invokes a GNU extension when adding files to an archive that handles sparse files efficiently. @FIXME-xref{}. @item --starting-file=@var{name} @itemx -K @var{name} This option affects extraction only; @code{tar} will skip extracting files in the archive until it finds one that matches @var{name}. @xref{Scarce}. @item --suffix=@var{suffix} Alters the suffix @code{tar} uses when backing up files from the default @samp{~}. @FIXME-xref{}. @item --tape-length=@var{num} @itemx -L @var{num} Specifies the length of tapes that @code{tar} is writing as being @w{@var{num} x 1024} bytes long. @FIXME-xref{}. @item --to-stdout @itemx -O During extraction, @code{tar} will extract files to stdout rather than to the file system. @xref{Writing}. @item --totals Displays the total number of bytes written after creating an archive. @FIXME-xref{}. @item --touch @itemx -m Sets the modification time of extracted files to the extraction time, rather than the modification time stored in the archive. @xref{Writing}. @item --uncompress (See @samp{--compress}; @FIXME-pxref{}.) @item --ungzip (See @samp{--gzip}; @FIXME-pxref{}.) @item --unlink-first @itemx -U Directs @code{tar} to remove the corresponding file from the file system before extracting it from the archive. @xref{Writing}. @item --use-compress-program=@var{prog} Instructs @code{tar} to access the archive through @var{prog}, which is presumed to be a compression program of some sort. @FIXME-xref{}. @item --verbose @itemx -v 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{}. @item --verify @itemx -W Verifies that the archive was correctly written when creating an archive. @FIXME-xref{}. @item --version @code{tar} will print an informational message about what version it is and a copyright message, some credits, and then exit. @FIXME-xref{}. @item --volno-file=@var{file} 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 @node Short Option Summary, , Option Summary, All Options @subsection Short Options Cross Reference Here is an alphabetized list of all of the short option forms, matching them with the equivalent long option. @table @kbd @item -A @samp{--concatenate} @item -B @samp{--read-full-records} @item -C @samp{--directory} @item -F @samp{--info-script} @item -G @samp{--incremental} @item -K @samp{--starting-file} @item -L @samp{--tape-length} @item -M @samp{--multi-volume} @item -N @samp{--newer} @item -O @samp{--to-stdout} @item -P @samp{--absolute-names} @item -R @samp{--block-number} @item -S @samp{--sparse} @item -T @samp{--files-from} @item -U @samp{--unlink-first} @item -V @samp{--label} @item -W @samp{--verify} @item -X @samp{--exclude-from} @item -Z @samp{--compress} @item -b @samp{--blocking-factor} @item -c @samp{--create} @item -d @samp{--compare} @item -f @samp{--file} @item -g @samp{--listed-incremental} @item -h @samp{--dereference} @item -i @samp{--ignore-zeros} @item -k @samp{--keep-old-files} @item -l @samp{--one-file-system} @item -m @samp{--touch} @item -o @samp{--portability} @item -p @samp{--preserve-permissions} @item -r @samp{--append} @item -s @samp{--same-order} @item -t @samp{--list} @item -u @samp{--update} @item -v @samp{--verbose} @item -w @samp{--interactive} @item -x @samp{--extract} @item -z @samp{--gzip} @end table @node help, verbose, All Options, tar invocation @section GNU @code{tar} documentation 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: @example tar (GNU tar) @value{VERSION} @end example @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}}}. 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: @example $ @kbd{tar --help | less} @end example @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: @example tar --help | grep @var{keyword} @end example @noindent for getting only the pertinent lines. 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! 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. 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}. @node verbose, interactive, help, tar invocation @section Checking @code{tar} progress @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 @cindex Getting more information during the operation @cindex Information during operation @cindex Feedback from @code{tar} 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. 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}. 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: @example $ @kbd{tar --extract --file=archive.tar --verbose --verbose} $ @kbd{tar xvv archive.tar} @end example 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. 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. 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. @FIXME{There is some confusion here. It seems that -R once wrote a message at @samp{every} record read or written.} 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. 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. 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}. @node interactive, , verbose, tar invocation @section Asking for Confirmation During Operations @cindex Interactive operation 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. 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. If @code{tar} is reading the archive from the standard input, @code{tar} opens the file @file{/dev/tty} to support the interactive communications. 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. @node operations, Backups, tar invocation, Top @chapter GNU @code{tar} Operations @menu * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: @end menu @node Basic tar, Advanced tar, operations, operations @section Basic GNU @code{tar} Operations 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. @table @asis @item @value{op-create} 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: @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 :-). @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 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: @example @kbd{tar --create --file=empty-archive.tar --files-from=/dev/null} @kbd{tar cfT empty-archive.tar /dev/null} @end example @item @value{op-extract} A socket is stored, within a GNU @code{tar} archive, as a pipe. @item @value{op-list} 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. 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. @end table @node Advanced tar, extract options, Basic tar, operations @section Advanced GNU @code{tar} Operations 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. 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. @FIXME{check this after the chapter is actually revised to make sure it still introduces the info in the chapter correctly : ).} @menu * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare:: @end menu @node Operations, current state, Advanced tar, Advanced tar @subsection The Five Advanced @code{tar} Operations @UNREVISED 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}. 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}. 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}. 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.) The five operations that we will cover in this chapter are: @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 @node current state, append, Operations, Advanced tar @ifinfo @subsection The Current State of the Practice Files @end ifinfo Currently, the listing of the directory using @code{ls} is as follows: @example @end example @noindent The archive file @samp{collection.tar} looks like this: @example $ @kbd{tar -tvf collection.tar} @end example @noindent The archive file @samp{music.tar} looks like this: @example $ @kbd{tar -tvf music.tar} @end example @FIXME{need to fill in the above!!!} @node append, update, current state, Advanced tar @subsection How to Add Files to Existing Archives: @code{--append} @UNREVISED 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}.) @FIXME{Explain in second paragraph whether you can get to the previous version -- explain whole situation somewhat more clearly.} 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. 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. @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...} There are a few ways to get around this. @FIXME-xref{Multiple Members with the Same Name}. @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.) @menu * appending files:: Appending Files to an Archive * multiple:: @end menu @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 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. @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}. 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}: @example $ @kbd{tar --append --file=collection.tar rock} @end example @noindent If you now use the @value{op-list} operation, you will see that @file{rock} has been added to the archive: @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 @FIXME{in theory, dan will (soon) try to turn this node into what it's title claims it will become...} @node multiple, , appending files, append @subsubsection Multiple Files with the Same Name 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. 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. You can append the new, changed copy of the file @file{blues} to the archive in this way: @example $ @kbd{tar --append --verbose --file=collection.tar blues} blues @end example @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: @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 @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}.) @node update, concatenate, append, Advanced tar @subsection Updating an Archive @UNREVISED @cindex Updating an archive 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}). Unfortunately, you cannot use @samp{--update} with magnetic tape drives. The operation will fail. @FIXME{other examples of media on which --update will fail? need to ask charles and/or mib/thomas/dave shevett..} 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}). @menu * how to update:: @end menu @node how to update, , update, update @subsubsection How to Update an Archive Using @code{--update} 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). @FIXME{note: the above parenthetical added because in fact, this behavior just confused the author. :-) } 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: @example $ @kbd{tar --update -v -f collection.tar blues folk rock classical} blues classical $ @end example @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. (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. @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}. @node concatenate, delete, update, Advanced tar @subsection Combining Archives with @code{--concatenate} @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. 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}. 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}: @example $ @kbd{tar -cvf bluesrock.tar blues rock} blues classical $ @kbd{tar -cvf folkjazz.tar folk jazz} folk jazz @end example @noindent If you like, You can run @samp{tar --list} to make sure the archives contain what they are supposed to: @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 We can concatenate these two archives with @code{tar}: @example $ @kbd{cd ..} $ @kbd{tar --concatenate --file=bluesrock.tar jazzfolk.tar} @end example 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}: @example $ @kbd{tar --list --file=bluesrock.tar} blues rock jazz folk @end example 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?} Like @value{op-append}, this operation cannot be performed on some tape drives, due to deficiencies in the formats those tape drives use. @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. 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. @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. @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 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. Unlike other operations, @samp{--delete} has no short form. @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}. 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, @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 @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!} The @value{op-delete} option has been reported to work properly when @code{tar} acts as a filter from @code{stdin} to @code{stdout}. @node compare, , delete, Advanced tar @subsection Comparing Archive Members with the File System @cindex Verifying the currency of an archive @UNREVISED 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. You have to specify the record size of the archive when modifying an archive with a non-default record size. @code{tar} ignores files in the file system that do not have corresponding members in the archive. 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.) @example $ @kbd{tar --compare --file=bluesrock.tar rock blues funk} rock blues tar: funk not found in archive @end example @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: @example funk: does not exist @end example @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.} 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}. @node extract options, backup, Advanced tar, operations @section Options Used by @code{--extract} @UNREVISED @FIXME{i need to get dan to go over these options with me and see if there's a better way of organizing them.} 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. @menu * Reading:: Options to Help Read Archives * Writing:: Changing How @code{tar} Writes Files * Scarce:: Coping with Scarce Resources @end menu @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 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}. 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. 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}. @menu * read full records:: * Ignore Zeros:: * Ignore Failed Read:: @end menu @node read full records, Ignore Zeros, Reading, Reading @unnumberedsubsubsec Reading Full Records @FIXME{need sentence or so of intro here} @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 @node Ignore Zeros, Ignore Failed Read, read full records, Reading @unnumberedsubsubsec Ignoring Blocks of Zeros 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). 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. @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 @node Ignore Failed Read, , Ignore Zeros, Reading @unnumberedsubsubsec Ignore Fail Read @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?!} @table @kbd @item --ignore-failed-read Do not exit with nonzero on unreadable files or directories. @end table @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 @FIXME{need to mention the brand new option, --backup} @menu * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files:: @end menu @node Prevention Overwriting, Keep Old Files, Writing, Writing @unnumberedsubsubsec Options to Prevent Overwriting Files 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. 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. @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.} 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. @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. @menu * Keep Old Files:: * Unlink First:: * Recursive Unlink:: @end menu @node Keep Old Files, Unlink First, Prevention Overwriting, Writing @unnumberedsubsubsec Keep Old Files @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 @node Unlink First, Recursive Unlink, Keep Old Files, Writing @unnumberedsubsubsec Unlink First @table @kbd @item --unlink-first @itemx -U Try removing files before extracting over them, instead of trying to overwrite them. @end table @node Recursive Unlink, Modification Times, Unlink First, Writing @unnumberedsubsubsec Recursive Unlink @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 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. @node Modification Times, Setting Access Permissions, Recursive Unlink, Writing @unnumberedsubsubsec Setting Modification Times 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. 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}. @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 @node Setting Access Permissions, Writing to Standard Output, Modification Times, Writing @unnumberedsubsubsec Setting Access Permissions 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.} @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 @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?} @node Writing to Standard Output, remove files, Setting Access Permissions, Writing @unnumberedsubsubsec Writing to Standard Output 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. @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 @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?} @node remove files, , Writing to Standard Output, Writing @unnumberedsubsubsec Removing Files @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...} @table @kbd @item --remove-files Remove files after adding them to the archive. @end table @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 @menu * Starting File:: * Same Order:: @end menu @node Starting File, Same Order, Scarce, Scarce @unnumberedsubsubsec Starting File @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 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}.) @node Same Order, , Starting File, Scarce @unnumberedsubsubsec Same Order @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 @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?} @FIXME{i think this explanation is lacking.} 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. This option is probably never needed on modern computer systems. @node backup, Applications, extract options, operations @section Backup options @cindex backup options 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. 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. 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. 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. @table @samp @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. @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. @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}. @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): @table @samp @item t @itemx numbered @opindex numbered @r{backup method} Always make numbered backups. @item nil @itemx existing @opindex existing @r{backup method} Make numbered backups of files that already have them, simple backups of the others. @item never @itemx simple @opindex simple @r{backup method} Always make simple backups. @end table @end table 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): @example tar () @{ /usr/local/bin/tar --backup $*; @} @end example @node Applications, looking ahead, backup, operations @section Notable @code{tar} Usages @UNREVISED @FIXME{Using Unix file linking capability to recreate directory structures---linking files into one subdirectory and then @code{tar}ring that directory.} @FIXME{Nice hairy example using absolute-names, newer, etc.} @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. 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: @smallexample $ @kbd{cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -)} @end smallexample @noindent The command also works using short option forms: @FIXME{The following using standard input/output correct??} @smallexample $ @w{@kbd{cd sourcedir; tar --create --file=- . | (cd targetdir; tar --extract --file=-)}} @end smallexample @noindent This is one of the easiest methods to transfer a @code{tar} archive. @node looking ahead, , Applications, operations @section Looking Ahead: The Rest of this Manual 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. :-)} 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}. There are various ways of causing @code{tar} to skip over some files, and not archive them. @xref{Choosing}. @node Backups, Choosing, operations, Top @chapter Performing Backups and Restoring Files @UNREVISED 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. 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: @example http://www.cs.umd.edu/projects/amanda/amanda.html ftp://ftp.cs.umd.edu/pub/amanda @end example @ifclear PUBLISH Here is a possible plan for a future documentation about the backuping scripts which are provided within the GNU @code{tar} distribution. @example .* dumps . + what are dumps . + different levels of dumps . - full dump = dump everything . - level 1, level 2 dumps etc, - A level n dump dumps everything changed since the last level n-1 dump (?) . + how to use scripts for dumps (ie, the concept) . - scripts to run after editing backup specs (details) . + Backup Specs, what is it. . - how to customize . - actual text of script [/sp/dump/backup-specs] . + Problems . - rsh doesn't work . - rtape isn't installed . - (others?) . + the --incremental option of tar . + tapes . - write protection . - types of media . : different sizes and types, useful for different things . - files and tape marks one tape mark between files, two at end. . - positioning the tape MT writes two at end of write, backspaces over one when writing again. @end example @end ifclear This chapter documents both the provided FSF scripts and @code{tar} options which are more specific to usage as a backup tool. 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}. @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 @node Full Dumps, Inc Dumps, Backups, Backups @section Using @code{tar} to Perform Full Dumps @UNREVISED @cindex full dumps @cindex dumps, full @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.) 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. 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. 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. 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. 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. @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. @value{op-incremental} @FIXME{look it up} @value{op-incremental} handle old GNU-format incremental backup. 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. 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. The @value{op-incremental} option means the archive is an incremental backup. Its meaning depends on the command that it modifies. 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. 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}. 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. @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. @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. 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. GNU @code{tar} actually writes the file twice: once before the data and written, and once after. @node Inc Dumps, incremental and listed-incremental, Full Dumps, Backups @section Using @code{tar} to Perform Incremental Dumps @UNREVISED @cindex incremental dumps @cindex dumps, incremental Performing incremental dumps is similar to performing full dumps, although a few more options will usually be needed. 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. 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. 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. @example #!/bin/csh # Dump thingie set now = `date` set then = `cat date.nfs.dump` /u/hack/bin/tar -c -G -v\ -f /dev/rtu20\ -b 126\ -N "$then"\ -V "Dump from $then to $now"\ /alpha-bits/gp\ /gnu/hack\ /hobbes/u\ /spiff/u\ /sugar-bombs/u echo $now > date.nfs.dump mt -f /dev/rtu20 rew @end example Output from this script is stored in a file, for the operator to read later. This script uses the file @file{date.nfs.dump} to store the date/time of the last dump. 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. @node incremental and listed-incremental, Backup Levels, Inc Dumps, Backups @section The Incremental Options @UNREVISED @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. @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. 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. @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. 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. @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. @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. 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. 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. @FIXME{this section needs to be written} @node Backup Levels, Backup Parameters, incremental and listed-incremental, Backups @section Levels of Backups @UNREVISED 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. 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. 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). 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. 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. 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. @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. @FIXME{shorten node names} @node Backup Parameters, Scripted Backups, Backup Levels, Backups @section Setting Parameters for Backups and Restoration @UNREVISED 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. @FIXME{This about backup scripts needs to be written: BS is a shell script .... thus ... @file{backup-specs} is in shell script syntax.} @FIXME-xref{Script Syntax}, for an explanation of this syntax. @FIXME{Whats a parameter .... looked at by the backup scripts ... which will be expecting to find ... now syntax ... value is linked to lame ... @file{backup-specs} specifies the following parameters:} @table @samp @item ADMINISTRATOR The user name of the backup administrator. @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}. @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. @FIXME{examples for all ...} @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'. @item BLOCKING The blocking factor @code{tar} will use when writing the dump archive. @value{xref-blocking-factor}. @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. 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. @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. @FIXME{Same file name, be specific. Through NFS ...} @end table @menu * backup-specs example:: An Example Text of @file{Backup-specs} * Script Syntax:: Syntax for @file{Backup-specs} @end menu @node backup-specs example, Script Syntax, Backup Parameters, Backup Parameters @subsection An Example Text of @file{Backup-specs} @UNREVISED The following is the text of @file{backup-specs} as it appears at FSF: @example # site-specific parameters for file system backup. ADMINISTRATOR=friedman BACKUP_HOUR=1 TAPE_FILE=/dev/nrsmt0 TAPE_STATUS="mts -t $TAPE_FILE" BLOCKING=124 BACKUP_DIRS=" albert:/fs/fsf apple-gunkies:/gd albert:/fs/gd2 albert:/fs/gp geech:/usr/jla churchy:/usr/roland albert:/ albert:/usr apple-gunkies:/ apple-gunkies:/usr gnu:/hack gnu:/u apple-gunkies:/com/mailer/gnu apple-gunkies:/com/archive/gnu" BACKUP_FILES="/com/mailer/aliases /com/mailer/league*[a-z]" @end example @node Script Syntax, , backup-specs example, Backup Parameters @subsection Syntax for @file{Backup-specs} @UNREVISED @file{backup-specs} is in shell script syntax. The following conventions should be considered when editing the script: @FIXME{"conventions?"} 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. A quoted string typically cannot contain wildcards. In @file{backup-specs}, however, the parameters BACKUP_DIRS and BACKUP_FILES can contain wildcards. @node Scripted Backups, Scripted Restoration, Backup Parameters, Backups @section Using the Backup Scripts @UNREVISED The syntax for running a backup script is: @example @file{script-name} [@var{time-to-be-run}] @end example 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}). 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?} 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. 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}. The script also prints the name of each system being dumped to the standard output. @node Scripted Restoration, , Scripted Backups, Backups @section Using the Restore Script @UNREVISED @ifset PUBLISH The @code{tar} distribution does not provide restoring scripts. @end ifset @ifclear PUBLISH @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 @FIXME{A section on non-scripted restore may be a good idea.} To restore files that were archived using a scripted backup, use the @code{restore} script. The syntax for the script is: 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. 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. 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. @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 @value{xref-incremental}, and @value{ref-listed-incremental}, for an explanation of how the script makes that determination. @FIXME{this may be an option, not a given} @end ifclear @node Choosing, Date input formats, Backups, Top @chapter Choosing Files and Names for @code{tar} @UNREVISED @FIXME{Melissa (still) Doesn't Really Like This ``Intro'' Paragraph!!!} 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. @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 @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 @FIXME{should the title of this section actually be, "naming an archive"?} 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. @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 For example, in this @code{tar} command, @example $ @kbd{tar -cvf collection.tar blues folk jazz} @end example @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. 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. @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. 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. @FIXME{might want a different example here; this is already used in "notable tar usages".} @example $ @kbd{cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -)} @end example @FIXME{help!} @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: @example @kbd{--file=@var{hostname}:/@var{dev}/@var{file name}} @end example @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. 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. @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..} 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. @node Selecting Archive Members, files, file, Choosing @section Selecting Archive Members @cindex Specifying files to act on @cindex Specifying archive members @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}. 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 If you specify a directory name as a file name argument, all the files in that directory are operated on by @code{tar}. 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. 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. @node files, exclude, Selecting Archive Members, Choosing @section Reading Names from a File @UNREVISED @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. @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 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. 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. @FIXME{add bob's example, from his message on 2-10-97} 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.) @example $ @kbd{find . -size -400 -print > small-files} $ @kbd{tar -c -v -z -T small-files -f little.tgz} @end example @noindent @FIXME{say more here to conclude the example/section?} @menu * nul:: @end menu @node nul, , files, files @ifinfo @unnumberedsubsec @kbd{NUL} Terminated File Names @end ifinfo @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}. @table @kbd @item --null Only consider @kbd{NUL} terminated file names, instead of files that terminate in a newline. @end table 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}. 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. @example $ @kbd{find . -size +800 -print0 > long-files} $ @kbd{tar -c -v --null --files-from=long-files --file=big.tar} @end example @FIXME{say anything else here to conclude the section?} @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 To avoid operating on files whose names match a particular pattern, use the @value{op-exclude} or @value{op-exclude-from} options. @table @kbd @item --exclude=@var{pattern} Causes @code{tar} to ignore files that match the @var{pattern}. @end table @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. @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 @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. @FIXME{do the exclude options files need to have stuff separated by newlines the same as the files-from option does?} @menu * problems with exclude:: @end menu @node problems with exclude, , exclude, exclude @unnumberedsubsec Problems with Using the @code{exclude} Options @FIXME{put in for the editor's/editors' amusement, but should be taken out in the final draft, just in case! : } @ignore subtitled: getting screwed using exclewed @end ignore Some users find @samp{exclude} options confusing. Here are some common pitfalls: @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. @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. @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. For example, write: @example $ @kbd{tar -c -f @var{archive.tar} -X '*/tmp/*' @var{directory}} @end example @noindent rather than: @example $ @kbd{tar -c -f @var{archive.tar} -X */tmp/* @var{directory}} @end example @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. @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. @end itemize @node Wildcards, after, exclude, Choosing @section Wildcards Patterns and Matching @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}. @FIXME{the next few paragraphs need work.} 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. 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.) @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. 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. @FIXME{need to add a sentence or so here to make this clear for those who don't have dan around.} 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. 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. @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 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. 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. 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. @table @kbd @item --after-date=@var{date} @itemx --newer=@var{date} @itemx -N @var{date} Only store files newer than @var{date}. Acts on files only if their modification or inode-changed times are later than @var{date}. Use in conjunction with any operation. @item --newer-mtime=@var{date} Acts like @value{op-after-date}, but only looks at modification times. @end table 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.) 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. 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). 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. @FIXME{Need example of --newer-mtime with quoted argument.} @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 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, @example $ @kbd{tar -cf @var{archive.tar} --newer="`date -r @var{file}`" /home} @end example @noindent which tells @FIXME{need to fill this in!}. @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 @FIXME{arrggh! this is still somewhat confusing to me. :-< } @FIXME{show dan bob's comments, from 2-10-97} 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. 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. @table @kbd @item --no-recursion Prevents @code{tar} from recursively descending directories. @end table 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}. 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. @FIXME{example here} @node one, , recurse, Choosing @section Crossing Filesystem Boundaries @cindex File system boundaries, not crossing @UNREVISED @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. @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 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. It is reported that using this option, the mount point is is archived, but nothing under it. 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. @menu * directory:: Changing Directory * absolute:: Absolute File Names @end menu @node directory, absolute, one, one @subsection Changing the Working Directory @FIXME{need to read over this node now for continuity; i've switched things around some.} @cindex Changing directory mid-stream @cindex Directory, changing mid-stream @cindex Working directory, specifying @UNREVISED 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. @table @kbd @item --directory=@var{directory} @itemx -C @var{directory} Changes the working directory in the middle of a command line. @end table For example, @example $ @kbd{tar -c -f jams.tar grape prune -C food cherry} @end example @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. 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. Contrast this with the command, @example $ @kbd{tar -c -f jams.tar grape prune -C food red/cherry} @end example @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}. 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}: @example $ @kbd{tar -c -f foo.tar -C /etc passwd hosts -C /lib libc.a} @end example @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. 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. @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?} 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.) @node absolute, , directory, one @subsection Absolute File Names @UNREVISED @table @kbd @item -P @itemx --absolute-names Do not strip leading slashes from file names. @end table 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). 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}. 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}. If you use the @value{op-absolute-names} option, @code{tar} will do neither of these transformations. To archive or extract files relative to the root directory, specify the @value{op-absolute-names} option. Normally, @code{tar} acts on files relative to the working directory---ignoring superior directory names when archiving, and ignoring leading slashes when extracting. 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. @FIXME{Should be an example in the tutorial/wizardry section using this to transfer files between systems.} @FIXME{Is write access an issue?} @table @kbd @item --absolute-names Preserves full file names (inclusing superior dirctory names) when archiving files. Preserves leading slash when extracting files. @end table @FIXME{this is still horrible; need to talk with dan on monday.} @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. 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}: @example $ @kbd{tar -c -f archive.tar /home 2> /dev/null} @end example @noindent Another solution, both nicer and simpler, would be to change to the @file{/} directory first, and then avoid absolute notation. For example: @example $ @kbd{(cd / && tar -c -f archive.tar home)} $ @kbd{tar -c -f archive.tar -C / home} @end example @node Date input formats, Formats, Choosing, Top @chapter Date input formats @cindex date input formats @findex getdate @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. @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{} --- Robert Grudin, @cite{Time and the Art of Living}. @end quotation 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. @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. @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 @node General date syntax, Calendar date item, Date input formats, Date input formats @section General date syntax @cindex general date syntax @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: @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 @noindent We describe each of these item types in turn, below. @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}. @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. @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. @node Calendar date item, Time of day item, General date syntax, Date input formats @section Calendar date item @cindex calendar date item 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: @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 The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: @example 9/17 sep 17 @end example Here are the rules. @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. @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}. When months are written literally, the calendar date may be given as any of the following: @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 Or, omitting the year: @example @var{month} @var{day} @end example @node Time of day item, Timezone item, Calendar date item, Date input formats @section Time of day item @cindex time of day item 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: @example 20:02:0 20:02 8:02pm 20:02-0500 # In EST (Eastern U.S. Standard Time). @end example 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. @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.) @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. Either @samp{am}/@samp{pm} or a timezone correction may be specified, but not both. @node Timezone item, Day of week item, Time of day item, Date input formats @section Timezone item @cindex timezone item 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. Here are many non-daylight-savings-time timezones, indexed by the zone hour value. @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 @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. @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 @node Day of week item, Relative item in date strings, Timezone item, Date input formats @section Day of week item @cindex day of week item 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. 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. @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. A comma following a day of the week item is ignored. @node Relative item in date strings, Pure numbers in date strings, Day of week item, Date input formats @section Relative item in date strings @cindex relative items in date strings @cindex displacement of dates @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: @example 1 year 1 year ago 3 years 2 days @end example @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. @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}. @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}). @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}. 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. @node Pure numbers in date strings, Authors of getdate, Relative item in date strings, Date input formats @section Pure numbers in date strings @cindex pure numbers in date strings The precise intepretation of a pure decimal number is dependent of the context in the date string. 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. 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. 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. @node Authors of getdate, , Pure numbers in date strings, Date input formats @section Authors of @code{getdate} @cindex authors of @code{getdate} @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. @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}). @node Formats, Media, Date input formats, Top @chapter Controlling the Archive Format @FIXME{need an intro here} @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 @node Portability, Compression, Formats, Formats @section Making @code{tar} Archives More Portable 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. 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. @menu * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems @end menu @node Portable Names, dereference, Portability, Portability @subsection Portable Names 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. 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. @node dereference, old, Portable Names, Portability @subsection Symbolic Links @cindex File names, using symbolic links @cindex Symbolic link as file name 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. 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. 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.) 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. @node old, posix, dereference, Portability @subsection Old V7 Archives @cindex Format, old style @cindex Old style format @cindex Old style archives 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. When updating an archive, do not use @value{op-old-archive} unless the archive was created with using this option. 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. @node posix, Checksumming, old, Portability @subsection GNU @code{tar} and POSIX @code{tar} 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. 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. 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}). @FIXME{is there a way to tell which flavor of tar was used to write a particular archive before you try to read it?} 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. 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. 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! 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{} 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. 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. 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. 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}. 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. 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. 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. 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. 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). 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}. 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. 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. @node Checksumming, , posix, Portability @subsection Checksumming Problems 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. 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? 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. @node Compression, Attributes, Portability, Formats @section Using Less Space through Compression @menu * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files @end menu @node gzip, sparse, Compression, Compression @subsection Creating and Reading Compressed Archives @cindex Compressed archives @cindex Storing archives in compressed format @UNREVISED @table @kbd @item -z @itemx --gzip @itemx --ungzip Filter the archive through @code{gzip}. @end table @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. 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.) 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. 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: @example $ @kbd{tar cfz archive.tar.gz subdir} @end example @noindent to save all of @samp{subdir} into a @code{gzip}'ed archive. Later you can do: @example $ @kbd{tar xfz archive.tar.gz} @end example @noindent to explode and unpack. 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: @example $ @kbd{tar tfz archive.tar.gz} @end example @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. 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! @table @kbd @item -Z @itemx --compress @itemx --uncompress Filter the archive through @code{compress}. Otherwise like @value{op-gzip}. @item --use-compress-program=@var{prog} Filter through @var{prog} (must accept @samp{-d}). @end table @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. 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. 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. 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. @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 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. 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}. 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). 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. 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). 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. 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. @node sparse, , gzip, Compression @subsection Archiving Sparse Files @cindex Sparse Files @UNREVISED @table @kbd @item -S @itemx --sparse Handle sparse files efficiently. @end table 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. 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. 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. 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. @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. @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. 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 @code{tar} ignores the @value{op-sparse} option when reading an archive. @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 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.) 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.}. 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: @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). 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 @node Attributes, Standard, Compression, Formats @section Handling File Attributes @UNREVISED 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. Handling of file attributes @table @kbd @item --atime-preserve Do not change access times on dumped files. @item -m @itemx --touch Do not extract file modified time. 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. This option is meaningless with @value{op-list}. @item --same-owner Create extracted files with the same ownership they have in the archive. 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. 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. @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. 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. 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. 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. @item -p @itemx --same-permissions @itemx --preserve-permissions Extract all protection information. 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. This option is meaningless with @value{op-list}. @item --preserve Same as both @value{op-same-permissions} and @value{op-same-order}. The @value{op-preserve} option has no equivalent short option name. It is equivalent to @value{op-same-permissions} plus @value{op-same-order}. @FIXME{I do not see the purpose of such an option. (Neither I. FP.)} @end table @node Standard, Extensions, Attributes, Formats @section The Standard Format @UNREVISED 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. 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. 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}. 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. 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. 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. 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. The header block is defined in C as follows. In the GNU @code{tar} distribution, this is part of file @file{src/tar.h}: @example @include header.texi @end example 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. 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. 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. The @code{name} field is the file name of the file, with directory names (if any) preceding the file name, separated by slashes. @FIXME{how big a name before field overflows?} 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. 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. 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. 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. 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. 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. 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. 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. 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. 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: 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. The header can hold four of these @code{struct sparse} at the moment; if more are needed, they are not stored in the header. 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. 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}. 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. @table @asis @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. @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. @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. @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. @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. @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. @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. @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. @end table Other values are reserved for specification in future revisions of the P1003 standard, and should not be used by any @code{tar} program. 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. 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}. @node Extensions, cpio, Standard, Formats @section GNU Extensions to the Archive Format @UNREVISED The GNU format uses additional file types to describe new types of files in an archive. These are listed below. @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. @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. @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. @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. @end table 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. @node cpio, , Extensions, Formats @section Comparison of @code{tar} and @code{cpio} @UNREVISED @FIXME{Reorganize the following material} 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. @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). (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.) @code{cpio} handles special files; traditional @code{tar} doesn't. @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). @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. @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. @quotation What type of check sum (if any) is used, and how is this calculated. @end quotation 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. @quotation If anyone knows why @code{cpio} was made when @code{tar} was present at the unix scene, @end quotation 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. 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. The main difference is just in the command syntax and header format. @code{tar} is a little more tape-oriented in that everything is blocked to start on a record boundary. @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 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. @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 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. 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. 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). @node Media, Index, Formats, Top @chapter Tapes and Other Archive Media @UNREVISED A few special cases about tape handling warrant more detailed description. These special cases are discussed below. 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. Archives are usually written on dismountable media---tape cartridges, mag tapes, or floppy disks. 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. 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. 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. @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 @node Device, Remote Tape Server, Media, Media @section Device Selection and Switching @UNREVISED @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 This option is used to specify the file name of the archive @code{tar} works on. 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. 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. 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. 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. 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. 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{}. @table @kbd @item --force-local Archive file is local even if it contains a colon. @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. 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}. @item -[0-7][lmh] Specify drive and density. @item -M @itemx --multi-volume Create/list/extract multi-volume archive. 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}. @item -L @var{num} @itemx --tape-length=@var{num} Change tape after writing @var{num} x 1024 bytes. 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. @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 @node Remote Tape Server, Common Problems and Solutions, Device, Media @section The Remote Tape Server @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. 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}. @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. 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. 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{}}. @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. 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}. 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. Some other media can be backspaced, and @code{tar} will work on them once @code{tar} is modified to do so. 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. @node Common Problems and Solutions, Blocking, Remote Tape Server, Media @section Some Common Problems and their Solutions @ifclear PUBLISH @format errors from system: permission denied no such file or directory not owner errors from @code{tar}: directory checksum error header format error errors from media/system: i/o error device busy @end format @end ifclear @node Blocking, Many, Common Problems and Solutions, Media @section Blocking @UNREVISED @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. John Gilmore, the writer of the public domain @code{tar} from which GNU @code{tar} was originally derived, wrote (June 1995): @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. 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 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}. 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}. 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. 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. 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. @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. 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. 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. @menu * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive @end menu @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 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. 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. @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 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. 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. @FIXME{Need example of using a cartridge with blocking factor=126 or more.} 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. 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: @example Cannot write to /dev/dlt: Invalid argument @end example @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. 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. @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 Device blocking @table @kbd @item -b @var{blocks} @itemx --blocking-factor=@var{blocks} Set record size to @math{@var{blocks} * 512} bytes. 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. 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. 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. 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. 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{} 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. 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 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: @itemize @bullet @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. @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. @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. @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 @item -i @itemx --ignore-zeros Ignore blocks of zeros in archive (means EOF). 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. 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. @item -B @itemx --read-full-records Reblock as we read (for reading 4.2BSD pipes). 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. 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. This option is also useful with the commands for updating an archive. @end table Tape blocking @FIXME{Appropriate options should be moved here from elsewhere.} @cindex blocking factor @cindex tape blocking 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. @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. 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. 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. I might also use @samp{--number-blocks} instead of @samp{--block-number}, so @samp{--block} will then expand to @samp{--blocking-factor} unambiguously. @node Many, Using Multiple Tapes, Blocking, Media @section Many Archives on One Tape @FIXME{Appropriate options should be moved here from elsewhere.} @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. 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: @example $ @kbd{tar cf /dev/tape @var{directory}} @end example @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. @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. 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: @example $ @kbd{mt -f /dev/nrtape rewind} $ @kbd{tar cf /dev/nrtape @var{directory-1}} @end example @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. So, you may now save @var{directory-2} as a second archive after the first on the same tape by issuing the command: @example $ @kbd{tar cf /dev/nrtape @var{directory-2}} @end example @noindent and so on for all the archives you want to put on the same tape. 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: @example $ @kbd{mt -f /dev/nrtape rewind} $ @kbd{mt -f /dev/nrtape fsf 16} $ @kbd{tar cf /dev/nrtape @var{directory-17}} @end example In all the previous examples, we put aside blocking considerations, but you should do the proper things for that as well. @xref{Blocking}. @menu * Tape Positioning:: Tape Positions and Tape Marks * mt:: The @code{mt} Utility @end menu @node Tape Positioning, mt, Many, Many @subsection Tape Positions and Tape Marks @UNREVISED 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. If you think of data as a series of records "rrrr"'s, and tape marks as "*"'s, a tape might look like the following: @example rrrr*rrrrrr*rrrrr*rr*rrrrr**------------------------- @end example 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. 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: @example rrrr*rrrrrr*rrrrr*rr*rrrrr*rrr*rrrr**---------------- @end example @node mt, , Tape Positioning, Many @subsection The @code{mt} Utility @UNREVISED @FIXME{Is it true that this only works on non-block devices? should explain the difference, (fixed or variable).} @value{xref-blocking-factor}. 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"?} The syntax of the @code{mt} command is: @example @kbd{mt [-f @var{tapename}] @var{operation} [@var{number}]} @end example 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: @FIXME{is there any use for record operations?} @table @kbd @item eof @itemx weof Writes @var{number} tape marks at the current position on the tape. @item fsf Moves tape position forward @var{number} files. @item bsf Moves tape position back @var{number} files. @item rewind Rewinds the tape. (Ignores @var{number}). @item offline @itemx rewoff1 Rewinds the tape and takes the tape device off-line. (Ignores @var{number}). @item status Prints status information about the tape unit. @end table @FIXME{Is there a better way to frob the spacing on the list?} 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}. @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. @FIXME{New node on how to find an archive?} 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. @FIXME{Program to list all the labels on a tape?} @node Using Multiple Tapes, label, Many, Media @section Using Multiple Tapes @UNREVISED 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. 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.) 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. When prompting for a new tape, @code{tar} accepts any of the following responses: @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 (You should only type @samp{y} after you have changed the tape; otherwise @code{tar} will write over the volume it just finished.) 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}. 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. 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.) 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). Multi-volume archives 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. 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. 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: @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 @menu * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files @end menu @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 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. 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. 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}. 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. @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. 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. 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. @cindex Labelling multi-volume archives @FIXME{example} @FIXME{There should be a sample program here, including an exit before end. Is the exit status even checked in tar? :-(} @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. @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 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. @node Tape Files, , Multi-Volume Archives, Using Multiple Tapes @subsection Tape Files @UNREVISED 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}. 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}. People seem to often do: @example @kbd{--label="@var{some-prefix} `date +@var{some-format}`"} @end example or such, for pushing a common date in all volumes or an archive set. @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 @table @kbd @item -V @var{name} @itemx --label=@var{name} Create archive with volume name @var{name}. @end table 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. @FIXME{Should the arg to --label be a quoted string?? No.} 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. 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. 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. The @value{op-label} was once called @samp{--volume}, but is not available under that name anymore. 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: @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 @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 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: @example $ @kbd{tar cfMV /dev/tape "Daily backup for `date +%Y-%m-%d`"} $ @kbd{tar --create --file=/dev/tape --multi-volume \ --volume="Daily backup for `date +%Y-%m-%d`"} @end example 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. @FIXME{was --volume} @node verify, Write Protection, label, Media @section Verifying Data as It is Stored @cindex Verifying a write operation @cindex Double-checking a write operation @table @kbd @item -W @itemx --verify Attempt to verify the archive after writing. @end table 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. 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. 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. 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. 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. 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}. 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. 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. @node Write Protection, , verify, Media @section Write Protection 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). 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. @node Index, , Media, Top @unnumbered Index @printindex cp @summarycontents @contents @bye @c Local variables: @c texinfo-column-for-description: 32 @c End: tar-1.13/doc/convtexi.pl0000555000176300016070000000513406736577747010713 #!/usr/local/bin/perl -- # -*-Perl-*- eval "exec /usr/local/bin/perl -S $0 $*" if 0; # Copy a Texinfo file, replacing @value's, @FIXME's and other gooddies. # Copyright © 1996 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. # François Pinard , 1996. $_ = <>; while ($_) { if (/^\@c()$/ || /^\@c (.*)/ || /^\@(include .*)/) { if ($topseen) { print "\@format\n"; print "\@strong{\@\@c} $1\n"; $_ = <>; while (/\@c (.*)/) { print "\@strong{\@\@c} $1\n"; $_ = <>; } print "\@end format\n"; } else { $delay .= "\@format\n"; $delay .= "\@strong{\@\@c} $1\n"; $_ = <>; while (/\@c (.*)/) { $delay .= "\@strong{\@\@c} $1\n"; $_ = <>; } $delay .= "\@end format\n"; } } elsif (/^\@chapter /) { print; # print $delay; $delay = ''; $topseen = 1; $_ = <>; } elsif (/^\@macro /) { $_ = <> while ($_ && ! /^\@end macro/); $_ = <>; } elsif (/^\@set ([^ ]+) (.*)/) { $set{$1} = $2; $_ = <>; } elsif (/^\@UNREVISED/) { print "\@quotation\n"; print "\@emph{(This message will disappear, once this node is revised.)}\n"; print "\@end quotation\n"; $_ = <>; } else { while (/\@value{([^\}]*)}/) { if (defined $set{$1}) { $_ = "$`$set{$1}$'"; } else { $_ = "$`\@strong{}$1\@strong{}$'"; } } while (/\@FIXME-?([a-z]*)\{/) { $tag = $1 eq '' ? 'fixme' : $1; $tag =~ y/a-z/A-Z/; print "$`\@strong{<$tag>}"; $_ = $'; $level = 1; while ($level > 0) { if (/([{}])/) { if ($1 eq '{') { $level++; print "$`\{"; $_ = $'; } elsif ($level > 1) { $level--; print "$`\}"; $_ = $'; } else { $level = 0; print "$`\@strong{}"; $_ = $'; } } else { print; $_ = <>; } } } print; $_ = <>; } } exit 0; tar-1.13/doc/getdate.texi0000444000176300016070000004077406506204220010775 @node Date input formats @chapter Date input formats @cindex date input formats @findex getdate First, a quote: @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. @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{} --- Robert Grudin, @cite{Time and the Art of Living}. @end quotation 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. @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. @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 @node General date syntax @section General date syntax @cindex general date syntax @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: @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 @noindent We describe each of these item types in turn, below. @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}. @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. @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. @node Calendar date item @section Calendar date item @cindex calendar date item 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: @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 The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: @example 9/17 sep 17 @end example Here are the rules. @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. @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}. When months are written literally, the calendar date may be given as any of the following: @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 Or, omitting the year: @example @var{month} @var{day} @end example @node Time of day item @section Time of day item @cindex time of day item 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: @example 20:02:0 20:02 8:02pm 20:02-0500 # In EST (Eastern U.S. Standard Time). @end example 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. @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}. @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. Either @samp{am}/@samp{pm} or a time zone correction may be specified, but not both. @node Time zone item @section Time zone item @cindex time zone item 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. Here are many non-daylight-saving-time time zones, indexed by the zone hour value. @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 @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. @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 @node Day of week item @section Day of week item @cindex day of week item 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. 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. @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. A comma following a day of the week item is ignored. @node Relative item in date strings @section Relative item in date strings @cindex relative items in date strings @cindex displacement of dates @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: @example 1 year 1 year ago 3 years 2 days @end example @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. @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}. @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}). @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}. 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. @node Pure numbers in date strings @section Pure numbers in date strings @cindex pure numbers in date strings The precise intepretation of a pure decimal number is dependent of the context in the date string. 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. 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. 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. @node Authors of getdate @section Authors of @code{getdate} @cindex authors of @code{getdate} @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. @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}). tar-1.13/doc/header.texi0000664000176300016070000002203106703600734010607 /* GNU tar Archive Format description. */ /* If OLDGNU_COMPATIBILITY is not zero, tar produces archives which, by default, are readable by older versions of GNU tar. This can be overriden by using --posix; in this case, POSIXLY_CORRECT in environment may be set for enforcing stricter conformance. If OLDGNU_COMPATIBILITY is zero or undefined, tar will eventually produces archives which, by default, POSIX compatible; then either using --posix or defining POSIXLY_CORRECT enforces stricter conformance. This #define will disappear in a few years. FP, June 1995. */ #define OLDGNU_COMPATIBILITY 1 /*---------------------------------------------. | `tar' Header Block, from POSIX 1003.1-1990. | `---------------------------------------------*/ /* POSIX header. */ struct posix_header @{ /* byte offset */ char name[100]; /* 0 */ char mode[8]; /* 100 */ char uid[8]; /* 108 */ char gid[8]; /* 116 */ char size[12]; /* 124 */ char mtime[12]; /* 136 */ char chksum[8]; /* 148 */ char typeflag; /* 156 */ char linkname[100]; /* 157 */ char magic[6]; /* 257 */ char version[2]; /* 263 */ char uname[32]; /* 265 */ char gname[32]; /* 297 */ char devmajor[8]; /* 329 */ char devminor[8]; /* 337 */ char prefix[155]; /* 345 */ /* 500 */ @}; #define TMAGIC "ustar" /* ustar and a null */ #define TMAGLEN 6 #define TVERSION "00" /* 00 and no null */ #define TVERSLEN 2 /* 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 */ /* 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 */ /* 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 */ /*-------------------------------------. | `tar' Header Block, GNU extensions. | `-------------------------------------*/ /* In GNU tar, SYMTYPE is for to symbolic links, and CONTTYPE is for contiguous files, so maybe disobeying the `reserved' comment in POSIX header description. I suspect these were meant to be used this way, and should not have really been `reserved' in the published standards. */ /* *BEWARE* *BEWARE* *BEWARE* that the following information is still boiling, and may change. Even if the OLDGNU format description should be accurate, the so-called GNU format is not yet fully decided. It is surely meant to use only extensions allowed by POSIX, but the sketch below repeats some ugliness from the OLDGNU format, which should rather go away. Sparse files should be saved in such a way that they do *not* require two passes at archive creation time. Huge files get some POSIX fields to overflow, alternate solutions have to be sought for this. */ /* Descriptor for a single file hole. */ struct sparse @{ /* byte offset */ char offset[12]; /* 0 */ char numbytes[12]; /* 12 */ /* 24 */ @}; /* Sparse files are not supported in POSIX ustar format. For sparse files with a POSIX header, a GNU extra header is provided which holds overall sparse information and a few sparse descriptors. When an old GNU header replaces both the POSIX header and the GNU extra header, it holds some sparse descriptors too. Whether POSIX or not, if more sparse descriptors are still needed, they are put into as many successive sparse headers as necessary. The following constants tell how many sparse descriptors fit in each kind of header able to hold them. */ #define SPARSES_IN_EXTRA_HEADER 16 #define SPARSES_IN_OLDGNU_HEADER 4 #define SPARSES_IN_SPARSE_HEADER 21 /* The GNU extra header contains some information GNU tar needs, but not foreseen in POSIX header format. It is only used after a POSIX header (and never with old GNU headers), and immediately follows this POSIX header, when typeflag is a letter rather than a digit, so signaling a GNU extension. */ struct extra_header @{ /* byte offset */ char atime[12]; /* 0 */ char ctime[12]; /* 12 */ char offset[12]; /* 24 */ char realsize[12]; /* 36 */ char longnames[4]; /* 48 */ char unused_pad1[68]; /* 52 */ struct sparse sp[SPARSES_IN_EXTRA_HEADER]; /* 120 */ char isextended; /* 504 */ /* 505 */ @}; /* Extension header for sparse files, used immediately after the GNU extra header, and used only if all sparse information cannot fit into that extra header. There might even be many such extension headers, one after the other, until all sparse information has been recorded. */ struct sparse_header @{ /* byte offset */ struct sparse sp[SPARSES_IN_SPARSE_HEADER]; /* 0 */ char isextended; /* 504 */ /* 505 */ @}; /* The old GNU format header conflicts with POSIX format in such a way that POSIX archives may fool old GNU tar's, and POSIX tar's might well be fooled by old GNU tar archives. An old GNU format header uses the space used by the prefix field in a POSIX header, and cumulates information normally found in a GNU extra header. With an old GNU tar header, we never see any POSIX header nor GNU extra header. Supplementary sparse headers are allowed, however. */ struct oldgnu_header @{ /* byte offset */ char unused_pad1[345]; /* 0 */ char atime[12]; /* 345 */ char ctime[12]; /* 357 */ char offset[12]; /* 369 */ char longnames[4]; /* 381 */ char unused_pad2; /* 385 */ struct sparse sp[SPARSES_IN_OLDGNU_HEADER]; /* 386 */ char isextended; /* 482 */ char realsize[12]; /* 483 */ /* 495 */ @}; /* OLDGNU_MAGIC uses both magic and version fields, which are contiguous. Found in an archive, it indicates an old GNU header format, which will be hopefully become obsolescent. With OLDGNU_MAGIC, uname and gname are valid, though the header is not truly POSIX conforming. */ #define OLDGNU_MAGIC "ustar " /* 7 chars and a null */ /* The standards committee allows only capital A through capital Z for user-defined expansion. */ /* This is a dir entry that contains the names of files that were in the dir at the time the dump was made. */ #define GNUTYPE_DUMPDIR 'D' /* Identifies the *next* file on the tape as having a long linkname. */ #define GNUTYPE_LONGLINK 'K' /* Identifies the *next* file on the tape as having a long name. */ #define GNUTYPE_LONGNAME 'L' /* This is the continuation of a file that began on another volume. */ #define GNUTYPE_MULTIVOL 'M' /* For storing filenames that do not fit into the main header. */ #define GNUTYPE_NAMES 'N' /* This is for sparse files. */ #define GNUTYPE_SPARSE 'S' /* This file is a tape/volume header. Ignore it on extraction. */ #define GNUTYPE_VOLHDR 'V' /*--------------------------------------. | tar Header Block, overall structure. | `--------------------------------------*/ /* tar files are made in basic blocks of this size. */ #define BLOCKSIZE 512 enum archive_format @{ DEFAULT_FORMAT, /* format to be decided later */ V7_FORMAT, /* old V7 tar format */ OLDGNU_FORMAT, /* GNU format as per before tar 1.12 */ POSIX_FORMAT, /* restricted, pure POSIX format */ GNU_FORMAT /* POSIX format with GNU extensions */ @}; union block @{ char buffer[BLOCKSIZE]; struct posix_header header; struct extra_header extra_header; struct oldgnu_header oldgnu_header; struct sparse_header sparse_header; @}; /* End of Format description. */ tar-1.13/doc/tar.info0000444000176300016070000001173206737251615010140 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  Indirect: tar.info-1: 1167 tar.info-2: 49886 tar.info-3: 96814 tar.info-4: 142517 tar.info-5: 191978 tar.info-6: 237228 tar.info-7: 282918 tar.info-8: 328377  Tag Table: (Indirect) Node: Top1167 Node: Introduction7517 Node: Book Contents8238 Node: Definitions10433 Node: What tar Does12227 Node: Naming tar Archives14987 Node: posix compliance15711 Node: Authors16674 Node: Reports18104 Node: Tutorial18351 Node: assumptions19163 Node: stylistic conventions21658 Node: basic tar options22278 Node: frequent operations25912 Node: Two Frequent Options26558 Node: file tutorial27184 Node: verbose tutorial28296 Node: help tutorial30030 Node: create30384 Node: prepare for examples31880 Node: Creating the archive33597 Node: create verbose36362 Node: short create37174 Node: create dir40119 Node: list42704 Node: list dir45220 Node: extract46288 Node: extracting archives47451 Node: extracting files47948 Node: extract dir49886 Node: failing commands51797 Node: going further52855 Node: tar invocation52997 Node: Synopsis54501 Node: using tar options58938 Node: Styles61089 Node: Mnemonic Options62537 Node: Short Options64384 Node: Old Options66240 Node: Mixing69350 Node: All Options71831 Node: Operation Summary72430 Node: Option Summary73698 Node: Short Option Summary85446 Node: help86720 Node: verbose90365 Node: interactive94503 Node: operations96578 Node: Basic tar96814 Node: Advanced tar100288 Node: Operations101147 Node: current state103124 Node: append103527 Node: appending files106092 Node: multiple107872 Node: update110260 Node: how to update111262 Node: concatenate113048 Node: delete116379 Node: compare118361 Node: extract options120006 Node: Reading120910 Node: read full records122535 Node: Ignore Zeros122887 Node: Ignore Failed Read123924 Node: Writing124129 Node: Prevention Overwriting124540 Node: Keep Old Files127024 Node: Unlink First127548 Node: Recursive Unlink127794 Node: Modification Times129075 Node: Setting Access Permissions129856 Node: Writing to Standard Output130484 Node: remove files131566 Node: Scarce131755 Node: Starting File131991 Node: Same Order132836 Node: backup133672 Node: Applications137427 Node: looking ahead138684 Node: Backups139501 Node: Full Dumps142517 Node: Inc Dumps148137 Node: incremental and listed-incremental150228 Node: Backup Levels154197 Node: Backup Parameters156826 Node: backup-specs example159205 Node: Script Syntax160124 Node: Scripted Backups160862 Node: Scripted Restoration162660 Node: Choosing164245 Node: file165187 Node: Selecting Archive Members168702 Node: files170042 Node: nul171641 Node: exclude173028 Node: problems with exclude174364 Node: Wildcards176558 Node: after179612 Node: recurse182922 Node: one184718 Node: directory186349 Node: absolute189027 Node: Date input formats191978 Node: General date syntax194390 Node: Calendar date item195862 Node: Time of day item197811 Node: Timezone item199581 Node: Day of week item202866 Node: Relative item in date strings203844 Node: Pure numbers in date strings205769 Node: Authors of getdate206747 Node: Formats207478 Node: Portability208014 Node: Portable Names209140 Node: dereference209840 Node: old211223 Node: posix212304 Node: Checksumming222590 Node: Compression224472 Node: gzip224776 Node: sparse231666 Node: Attributes237228 Node: Standard242327 Node: Extensions264856 Node: cpio267402 Node: Media272146 Node: Device274072 Node: Remote Tape Server278682 Node: Common Problems and Solutions282534 Node: Blocking282918 Node: Format Variations289525 Node: Blocking Factor290471 Node: Many302378 Node: Tape Positioning306168 Node: mt308039 Node: Using Multiple Tapes309873 Node: Multi-Volume Archives314969 Node: Tape Files319053 Node: label320523 Node: verify324607 Node: Write Protection327556 Node: Index328377  End Tag Table tar-1.13/doc/tar.info-10000444000176300016070000014133606737251615010302 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir) * Menu: * Introduction:: * Tutorial:: * tar invocation:: * operations:: * Backups:: * Choosing:: * Date input formats:: * Formats:: * Media:: * Index:: --- The Detailed Node Listing --- Introduction * Book Contents:: What this Book Contains * Definitions:: Some Definitions * What tar Does:: What `tar' Does * Naming tar Archives:: How `tar' Archives are Named * posix compliance:: * Authors:: GNU `tar' Authors * Reports:: Reporting bugs or suggestions Tutorial Introduction to `tar' * assumptions:: * stylistic conventions:: * basic tar options:: Basic `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:: Two Frequently Used Options * file tutorial:: * verbose tutorial:: * help tutorial:: How to Create Archives * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: How to List Archives * list dir:: How to Extract Members from an Archive * extracting archives:: * extracting files:: * extract dir:: * failing commands:: Invoking GNU `tar' * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: The Three Option Styles * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles All `tar' Options * Operation Summary:: * Option Summary:: * Short Option Summary:: GNU `tar' Operations * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: Advanced GNU `tar' Operations * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare:: How to Add Files to Existing Archives: `--append' * appending files:: Appending Files to an Archive * multiple:: Updating an Archive * how to update:: Options Used by `--extract' * Reading:: Options to Help Read Archives * Writing:: Changing How `tar' Writes Files * Scarce:: Coping with Scarce Resources Options to Help Read Archives * read full records:: * Ignore Zeros:: * Ignore Failed Read:: Changing How `tar' Writes Files * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files:: Options to Prevent Overwriting Files * Keep Old Files:: * Unlink First:: * Recursive Unlink:: Coping with Scarce Resources * Starting File:: * Same Order:: Performing Backups and Restoring Files * Full Dumps:: Using `tar' to Perform Full Dumps * Inc Dumps:: Using `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 Setting Parameters for Backups and Restoration * backup-specs example:: An Example Text of `Backup-specs' * Script Syntax:: Syntax for `Backup-specs' Choosing Files and Names for `tar' * 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 Reading Names from a File * nul:: Excluding Some Files * problems with exclude:: Crossing Filesystem Boundaries * directory:: Changing Directory * absolute:: Absolute File Names Date input formats * 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. Controlling the Archive Format * Portability:: Making `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 `tar' and `cpio' Making `tar' Archives More Portable * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems Using Less Space through Compression * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files Tapes and Other Archive Media * 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:: Blocking * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive Many Archives on One Tape * Tape Positioning:: Tape Positions and Tape Marks * mt:: The `mt' Utility Using Multiple Tapes * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files  File: tar.info, Node: Introduction, Next: Tutorial, Prev: Top, Up: Top Introduction ************ Welcome to the GNU `tar' manual. GNU `tar' is used to create and manipulate files ("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. * Menu: * Book Contents:: What this Book Contains * Definitions:: Some Definitions * What tar Does:: What `tar' Does * Naming tar Archives:: How `tar' Archives are Named * posix compliance:: * Authors:: GNU `tar' Authors * Reports:: Reporting bugs or suggestions  File: tar.info, Node: Book Contents, Next: Definitions, Prev: Introduction, Up: Introduction What this Book Contains ======================= 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 `tar' and its documentation, and where you should send bug reports or comments. The second chapter is a tutorial (*note Tutorial::.) which provides a gentle introduction for people who are new to using `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. Although the tutorial is paced and structured to allow beginners to learn how to use `tar', it is not intended solely for beginners. The tutorial explains how to use the three most frequently used operations (`create', `list', and `extract') as well as two frequently used options (`file' and `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; *note Tutorial::..) The third chapter presents the remaining five operations, and information about using `tar' options and option syntax. The other chapters are meant to be used as a reference. Each chapter presents everything that needs to be said about a specific topic. One of the chapters (*note Date input formats::.) exists in its entirety in other GNU manuals, and is mostly self-contained. In addition, one section of this manual (*note Standard::.) contains a big quote which is taken directly from `tar' sources. 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.)  File: tar.info, Node: Definitions, Next: What tar Does, Prev: Book Contents, Up: Introduction Some Definitions ================ The `tar' program is used to create and manipulate `tar' archives. An "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 `tar' to "create" a new archive in a specified directory. The files inside an archive are called "members". Within this manual, we use the term "file" to refer only to files accessible in the normal ways (by `ls', `cat', and so forth), and the term "member" to refer only to the members of an archive. Similarly, a "file name" is the name of a file, as it resides in the filesystem, and a "member name" is the name of an archive member within the archive. The term "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 "extracting the archive". The term "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 "list" the members in a given archive (this is often thought of as "printing" them to the standard output, or the command line), or "append" members to a pre-existing archive. All of these operations can be peformed using `tar'.  File: tar.info, Node: What tar Does, Next: Naming tar Archives, Prev: Definitions, Up: Introduction What `tar' Does =============== The `tar' program provides the ability to create `tar' archives, as well as various other kinds of manipulation. For example, you can use `tar' on previously created archives to extract files, to store additional files, or to update or list files which were already stored. Initially, `tar' archives were used to store files conveniently on magnetic tape. The name `tar' comes from this use; it stands for `t'ape `ar'chiver. Despite the utility's name, `tar' can direct its output to available devices, files, or other programs (using pipes). `tar' may even access remote devices or files (as archives). You can use `tar' archives in many ways. We want to stress a few of them: storage, backup, and transportation. Storage Often, `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 `tar' archives, so that all the files relating to a particular program (or set of related programs) can be transferred as a single unit. 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 `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 `tar' archives useful. 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 `tar' can be used to move archives in all dimensions, even time!) Backup Because the archive created by `tar' is capable of preserving file information and directory structure, `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 `tar' has special features that allow it to be used to make incremental and full dumps of all the files in a filesystem. 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.  File: tar.info, Node: Naming tar Archives, Next: posix compliance, Prev: What tar Does, Up: Introduction How `tar' Archives are Named ============================ Conventionally, `tar' archives are given names ending with `.tar'. This is not necessary for `tar' to operate properly, but this manual follows that convention in order to accustom readers to it and to make examples more clear. Often, people refer to `tar' archives as "`tar' files," and archive members as "files" or "entries". For people familiar with the operation of `tar', this causes no difficulty. However, in this manual, we consistently refer to "archives" and "archive members" to make learning to use `tar' easier for novice users.  File: tar.info, Node: posix compliance, Next: Authors, Prev: Naming tar Archives, Up: Introduction POSIX Compliance ================ 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 `POSIXLY_CORRECT', GNU `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 `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. 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 `tar' extensions will be allowed.  File: tar.info, Node: Authors, Next: Reports, Prev: posix compliance, Up: Introduction GNU `tar' Authors ================= GNU `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 Franc,ois Pinard, with the help of numerous and kind users. We wish to stress that `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 `THANKS' file from the GNU `tar' distribution. Jay Fenlason put together a draft of a GNU `tar' manual, borrowing notes from the original man page from John Gilmore. This draft has been distributed in `tar' versions 1.04 (or even before?) through 1.10, then withdrawn in version 1.11. Thomas Bushnell, n/BSG and Amy Gorin worked on a tutorial and manual for GNU `tar'. Franc,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. For version 1.12, Daniel Hagerty contributed a great deal of technical consulting. In particular, he is the primary author of *Note Backups::.  File: tar.info, Node: Reports, Prev: Authors, Up: Introduction Reporting bugs or suggestions ============================= If you find problems or have suggestions about this program or manual, please report them to `tar-bugs@gnu.org'.  File: tar.info, Node: Tutorial, Next: tar invocation, Prev: Introduction, Up: Top Tutorial Introduction to `tar' ****************************** This chapter guides you through some basic examples of three `tar' operations: `--create', `--list', and `--extract'. If you already know how to use some other version of `tar', then you may not need to read this chapter. This chapter omits most complicated details about how `tar' works. * Menu: * assumptions:: * stylistic conventions:: * basic tar options:: Basic `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::  File: tar.info, Node: assumptions, Next: stylistic conventions, Prev: Tutorial, Up: Tutorial Assumptions this Tutorial Makes =============================== This chapter is paced to allow beginners to learn about `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: * Before you start to work through this tutorial, you should understand what the terms "archive" and "archive member" mean (*note 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 . * 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 `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 `/home/fsf/melissa'. All of my examples are in a subdirectory of the directory named by that path name; the subdirectory is called `practice'. * 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. *Note Media::, for complete information on using `tar' archives with tape drives.  File: tar.info, Node: stylistic conventions, Next: basic tar options, Prev: assumptions, Up: Tutorial Stylistic Conventions ===================== In the examples, `$' represents a typical shell prompt. It precedes lines you should type; to make this more clear, those lines are shown in `this font', as opposed to lines which represent the computer's response; those lines are shown in `this font', or sometimes `like this'. When we have lines which are too long to be displayed in any other way, we will show them like this: This is an example of a line which would otherwise not fit in this space.  File: tar.info, Node: basic tar options, Next: frequent operations, Prev: stylistic conventions, Up: Tutorial Basic `tar' Operations and Options ================================== `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 `tar' fall into one of two classes: operations, and options. Some arguments fall into a class called "operations"; exactly one of these is both allowed and required for any instance of using `tar'; you may _not_ specify more than one. People sometimes speak of "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. The other arguments fall into the class known as "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 `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. You can write most of the `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. We will indicate those abbreviations appropriately to get you used to seeing them. (Note that the "old style" option forms exist in GNU `tar' for compatibility with Unix `tar'. We present a full discussion of this way of writing options and operations appears in *Note Old Options::, and we discuss the other two styles of writing options in *Note Mnemonic Options:: and *Note Short Options::.) 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 `tar' commands easier. For example, instead of typing tar --create --verbose --file=afiles.tar apple angst aspic you can type tar -c -v -f afiles.tar apple angst aspic or even tar -cvf afiles.tar apple angst aspic For more information on option syntax, see *Note 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. The term, "option", can be confusing at times, since "operations" are often lumped in with the actual, _optional_ "options" in certain general class statements. For example, we just talked about "short and long forms of options and operations". However, experienced `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. Similarly, the term "command" can be confusing, as it is often used in two different ways. People sometimes refer to `tar' "commands". A `tar' "command" is the entire command line of user input which tells `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 `tar' command". When the word "command" is used specifically like this, a person is usually referring to the `tar' _operation_, not the whole line. Again, use context to figure out which of the meanings the speaker intends.  File: tar.info, Node: frequent operations, Next: Two Frequent Options, Prev: basic tar options, Up: Tutorial The Three Most Frequently Used Operations ========================================= 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. `--create' `-c' Create a new `tar' archive. `--list' `-t' List the contents of an archive. `--extract' `-x' Extract one or more members from an archive.  File: tar.info, Node: Two Frequent Options, Next: create, Prev: frequent operations, Up: Tutorial Two Frequently Used Options =========================== To understand how to run `tar' in the three operating modes listed previously, you also need to understand how to use two of the options to `tar': `--file' (which takes an archive file as an argument) and `--verbose'. (You are usually not _required_ to specify either of these options when you run `tar', but they can be very useful in making things more clear and helping you avoid errors.) * Menu: * file tutorial:: * verbose tutorial:: * help tutorial::  File: tar.info, Node: file tutorial, Next: verbose tutorial, Prev: Two Frequent Options, Up: Two Frequent Options The `--file' Option ------------------- `--file=ARCHIVE-NAME' `-f ARCHIVE-NAME' Specify the name of an archive file. You can specify an argument for the `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') option whenever you use `tar'; this option determines the name of the archive file that `tar' will work on. If you don't specify this argument, then `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 `tar' will print an error message. The error message might look roughly like one of the following: tar: can't open /dev/rmt8 : No such device or address tar: can't open /dev/rsmt0 : I/O error To avoid confusion, we recommend that you always specfiy an archive file name by using `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') when writing your `tar' commands. For more information on using the `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') option, see *Note file::.  File: tar.info, Node: verbose tutorial, Next: help tutorial, Prev: file tutorial, Up: Two Frequent Options The `--verbose' Option ---------------------- `--verbose' `-v' Show the files being worked on as `tar' is running. `--verbose' (`-v') shows details about the results of running `tar'. This can be especially useful when the results might not be obvious. For example, if you want to see the progress of `tar' as it writes files into the archive, you can use the `--verbose' option. In the beginning, you may find it useful to use `--verbose' at all times; when you are more accustomed to `tar', you will likely want to use it at certain times but not at others. We will use `--verbose' at times to help make something clear, and we will give many examples both using and not using `--verbose' to show the differences. Sometimes, a single instance of `--verbose' on the command line will show a full, `ls' style listing of an archive or files, giving sizes, owners, and similar information. Other times, `--verbose' will only show files or members that the particular operation is operating on at the time. In the latter case, you can use `--verbose' twice in a command to get a listing such as that in the former case. For example, instead of saying tar -cvf afiles.tar apple angst aspic above, you might say tar -cvvf afiles.tar apple angst aspic 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: $ tar --create --verbose --verbose ... Note that you must double the hyphens properly each time. Later in the tutorial, we will give examples using `--verbose --verbose'.  File: tar.info, Node: help tutorial, Prev: verbose tutorial, Up: Two Frequent Options Getting Help: Using the `--help' Option --------------------------------------- `--help' The `--help' option to `tar' prints out a very brief list of all operations and option available for the current version of `tar' available on your system.  File: tar.info, Node: create, Next: list, Prev: Two Frequent Options, Up: Tutorial How to Create Archives ====================== _(This message will disappear, once this node revised.)_ One of the basic operations of `tar' is `--create' (`-c'), which you use to create a `tar' archive. We will explain `--create' first because, in order to learn about the other operations, you will find it useful to have an archive available to practice on. 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 _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. The three files you will archive in this example are called `blues', `folk', and `jazz'. The archive is called `collection.tar'. This section will proceed slowly, detailing how to use `--create' in `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 `tar' works. * Menu: * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir::  File: tar.info, Node: prepare for examples, Next: Creating the archive, Prev: create, Up: create Preparing a Practice Directory for Examples ------------------------------------------- To follow along with this and future examples, create a new directory called `practice' containing files called `blues', `folk' and `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 `practice' is a subdirectory of your home directory. Now `cd' to the directory named `practice'; `practice' is now your "working directory". (_Please note_: Although the full path name of this directory is `/HOMEDIR/practice', in our examples we will refer to this directory as `practice'; the HOMEDIR is presumed. In general, you should check that the files to be archived exist where you think they do (in the working directory) by running `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. 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, `collection.tar'), or that you don't care about its contents. Whenever you use `create', `tar' will erase the current contents of the file named by `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') if it exists. `tar' will not tell you if you are about to overwrite a file unless you specify an option which does this . To add files to an existing archive, you need to use a different option, such as `--append' (`-r'); see *Note append:: for information on how to do this.  File: tar.info, Node: Creating the archive, Next: create verbose, Prev: prepare for examples, Up: create Creating the Archive -------------------- To place the files `blues', `folk', and `jazz' into an archive named `collection.tar', use the following command: $ tar --create --file=collection.tar blues folk jazz The order of the arguments is not very important, _when using long option forms_. You could also say: $ tar blues --create folk --file=collection.tar jazz 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 `tar', to avoid errors). Note that the part of the command which says, `--file=collection.tar' is considered to be _one_ argument. If you substituted any other string of characters for ``collection.tar'', then that string would become the name of the archive file you create. 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. *Note short create::, for more information on this. In this example, you type the command as shown above: `--create' is the operation which creates the new archive (`collection.tar'), and `--file' is the option which lets you give it the name you chose. The files, `blues', `folk', and `jazz', are now members of the archive, `collection.tar' (they are "file name arguments" to the `--create' operation) . Now that they are are in the archive, they are called _archive members_, not files . When you create an archive, you _must_ specify which files you want placed in the archive. If you do not specify any archive members, GNU `tar' will complain. If you now list the contents of the working directory (`ls'), you will find the archive file listed as well as the files you saw previously: blues folk jazz collection.tar Creating the archive `collection.tar' did not destroy the copies of the files in the directory. Keep in mind that if you don't indicate an operation, `tar' will not run and will prompt you for one. If you don't name any files, `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. _Caution_: Do not attempt to use `--create' (`-c') to add files to an existing archive; it will delete the archive and write a new one. Use `--append' (`-r') instead. *Note append::.  File: tar.info, Node: create verbose, Next: short create, Prev: Creating the archive, Up: create Running `--create' with `--verbose' ----------------------------------- If you include the `--verbose' (`-v') option on the command line, `tar' will list the files it is acting on as it is working. In verbose mode, the `create' example above would appear as: $ tar --create --verbose --file=collection.tar blues folk jazz blues folk jazz This example is just like the example we showed which did not use `--verbose', except that `tar' generated the remaining lines . In the rest of the examples in this chapter, we will frequently use `verbose' mode so we can show actions or `tar' responses that you would otherwise not see, and which are important for you to understand.  File: tar.info, Node: short create, Next: create dir, Prev: create verbose, Up: create Short Forms with `create' ------------------------- As we said before, the `--create' (`-c') operation is one of the most basic uses of `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 *Note Styles::; for now, here is what the previous example (including the `--verbose' (`-v') option) looks like using short option forms: $ tar -cvf collection.tar blues folk jazz blues folk jazz As you can see, the system responds the same no matter whether you use long or short option forms. 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: $ tar -cfv collection.tar blues folk jazz In this case, `tar' will make an archive file called `v', containing the files `blues', `folk', and `jazz', because the `v' is the closest "file name" to the `-f' option, and is thus taken to be the chosen archive file name. `tar' will try to add a file called `collection.tar' to the `v' archive file; if the file `collection.tar' did not already exist, `tar' will report an error indicating that this file does not exist. If the file `collection.tar' does already exist (e.g., from a previous command you may have run), then `tar' will add this file to the archive. Because the `-v' option did not get registered, `tar' will not run under `verbose' mode, and will not report its progress. 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. This example, $ tar blues --create folk --file=collection.tar jazz is confusing as it is. When shown using short forms, however, it becomes much more so: $ tar blues -c folk -f collection.tar jazz It would be very easy to put the wrong string of characters immediately following the `-f', but doing that could sacrifice valuable data. 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 `tar' to report an error if you have set the shell environment variable, `POSIXLY_CORRECT'; *note posix compliance::. for more information on this.)  File: tar.info, Node: create dir, Prev: short create, Up: create Archiving Directories --------------------- You can archive a directory by specifying its directory name as a file name argument to `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. To archive a directory, first move to its superior directory. If you have followed the previous instructions in this tutorial, you should type: $ cd .. $ This will put you into the directory which contains `practice', i.e. your home directory. Once in the superior directory, you can specify the subdirectory, `practice', as a file name argument. To store `practice' in the new archive file `music.tar', type: $ tar --create --verbose --file=music.tar practice `tar' should output: practice/ practice/blues practice/folk practice/jazz practice/collection.tar Note that the archive thus created is not in the subdirectory `practice', but rather in the current working directory--the directory from which `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 `tar'. For example, you will probably not be able to store your home directory in an archive by invoking `tar' from the root directory; *Note absolute::. (Note also that `collection.tar', the original archive file, has itself been archived. `tar' will accept any file as a file to be archived, regardless of its content. When `music.tar' is extracted, the archive file `collection.tar' will be re-written into the file system). If you give `tar' a command such as $ tar --create --file=foo.tar . `tar' will report `tar: foo.tar is the archive; not dumped'. This happens because `tar' creates the archive `foo.tar' in the current directory before putting any files into it. Then, when `tar' attempts to add all the files in the directory `.' to the archive, it notices that the file `foo.tar' is the same as the archive, and skips it. (It makes no sense to put an archive into itself.) GNU `tar' will continue in this case, and create the archive normally, except for the exclusion of that one file. (_Please note:_ Other versions of `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 `tar'. )  File: tar.info, Node: list, Next: extract, Prev: create, Up: Tutorial How to List Archives ==================== Frequently, you will find yourself wanting to determine exactly what a particular archive contains. You can use the `--list' (`-t') 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 `collection.tar' that you created in the last section with the command, $ tar --list --file=collection.tar The output of `tar' would then be: blues folk jazz The archive `bfiles.tar' would list as follows: ./birds baboon ./box Be sure to use a `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') option just as with `--create' (`-c') to specify the name of the archive. If you use the `--verbose' (`-v') option with `--list', then `tar' will print out a listing reminiscent of `ls -l', showing owner, file size, and so forth. If you had used `--verbose' (`-v') mode, the example above would look like: $ tar --list --verbose --file=collection.tar folk -rw-rw-rw- myself user 62 1990-05-23 10:55 folk You can specify one or more individual member names as arguments when using `list'. In this case, `tar' will only list the names of members you identify. For example, `tar --list --file=afiles.tar apple' would only print `apple'. Because `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 `tar' that you give the exact member names. For example, `tar --list --file=bfiles birds' would produce an error message something like `tar: birds: Not found in archive', because there is no member named `birds', only one named `./birds'. While the names `birds' and `./birds' name the same file, _member_ names are compared using a simplistic name comparison, in which an exact match is necessary. *Note absolute::. However, `tar --list --file=collection.tar folk' would respond with `folk', because `folk' is in the archive 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 `--list' with no file names as arguments, `tar' will print the names of all the members stored in the specified archive. * Menu: * list dir::  File: tar.info, Node: list dir, Prev: list, Up: list Listing the Contents of a Stored Directory ------------------------------------------ _(This message will disappear, once this node revised.)_ To get information about the contents of an archived directory, use the directory name as a file name argument in conjunction with `--list' (`-t'). To find out file attributes, include the `--verbose' (`-v') option. For example, to find out about files in the directory `practice', in the archive file `music.tar', type: $ tar --list --verbose --file=music.tar practice `tar' responds: 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 When you use a directory name as a file name argument, `tar' acts on all the files (including sub-directories) in that directory.  File: tar.info, Node: extract, Next: going further, Prev: list, Up: Tutorial How to Extract Members from an Archive ====================================== _(This message will disappear, once this node revised.)_ 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 "extraction". To extract files from an archive, use the `--extract' (`--get', `-x') operation. As with `--create' (`-c'), specify the name of the archive with `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME'). Extracting an archive does not modify the archive in any way; you can extract it multiple times if you want or need to. Using `--extract', you can extract an entire archive, or specific files. The files can be directories containing other files, or not. As with `--create' (`-c') and `--list' (`-t'), you may use the short or the long form of the operation without affecting the performance. * Menu: * extracting archives:: * extracting files:: * extract dir:: * failing commands::  File: tar.info, Node: extracting archives, Next: extracting files, Prev: extract, Up: extract Extracting an Entire Archive ---------------------------- To extract an entire archive, specify the archive file name only, with no individual file names as arguments. For example, $ tar -xvf collection.tar produces this: -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  File: tar.info, Node: extracting files, Next: extract dir, Prev: extracting archives, Up: extract Extracting Specific Files ------------------------- To extract specific archive members, give their exact member names as arguments, as printed by `--list' (`-t'). If you had mistakenly deleted one of the files you had placed in the archive `collection.tar' earlier (say, `blues'), you can extract it from the archive without changing the archive's structure. It will be identical to the original file `blues' that you deleted. First, make sure you are in the `practice' directory, and list the files in the directory. Now, delete the file, `blues', and list the files in the directory again. You can now extract the member `blues' from the archive file `collection.tar' like this: $ tar --extract --file=collection.tar blues If you list the files in the directory again, you will see that the file `blues' has been restored, with its original permissions, creation times, and owner. (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 _not_ have been made to the archive member.) The archive file, `collection.tar', is the same as it was before you extracted `blues'. You can confirm this by running `tar' with `--list' (`-t'). Remember that as with other operations, specifying the exact member name is important. `tar --extract --file=bfiles.tar birds' will fail, because there is no member named `birds'. To extract the member named `./birds', you must specify `tar --extract --file=bfiles.tar ./birds'. To find the exact member names of the members of an archive, use `--list' (`-t') (*note list::.). If you give the `--verbose' (`-v') option, then `--extract' (`--get', `-x') will print the names of the archive members as it extracts them. tar-1.13/doc/tar.info-20000444000176300016070000013573706737251615010313 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: extract dir, Next: failing commands, Prev: extracting files, Up: extract Extracting Files that are Directories ------------------------------------- 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. 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, `tar' will create the directory. We can demonstrate how to use `--extract' to extract a directory file with an example. Change to the `practice' directory if you weren't there, and remove the files `folk' and `jazz'. Then, go back to the parent directory and extract the archive `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 `music.tar'. To extract only the files you deleted, use the following command: $ tar -xvf music.tar practice/folk practice/jazz Because you created the directory with `practice' as part of the file names of each of the files by archiving the `practice' directory as `practice', you must give `practice' as part of the file names when you extract those files from the archive.  File: tar.info, Node: failing commands, Prev: extract dir, Up: extract Commands That Will Fail ----------------------- Here are some sample commands you might try which will not work, and why they won't work. If you try to use this command, $ tar -xvf music.tar folk jazz you will get the following response: tar: folk: Not found in archive tar: jazz: Not found in archive $ This is because these files were not originally _in_ the parent directory `..', where the archive is located; they were in the `practice' directory, and their file names reflect this: $ tar -tvf music.tar practice/folk practice/jazz practice/rock Likewise, if you try to use this command, $ tar -tvf music.tar folk jazz 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. If you have forgotten the correct names of the files in the archive, use `tar --list --verbose' to list them correctly.  File: tar.info, Node: going further, Prev: extract, Up: Tutorial Going Further Ahead in this Manual ==================================  File: tar.info, Node: tar invocation, Next: operations, Prev: Tutorial, Up: Top Invoking GNU `tar' ****************** _(This message will disappear, once this node revised.)_ This chapter is about how one invokes the GNU `tar' command, from the command synopsis (*note Synopsis::.). There are numerous options, and many styles for writing them. One mandatory option specifies the operation `tar' should perform (*note Operation Summary::.), other options are meant to detail how this operation should be performed (*note Option Summary::.). Non-option arguments are not always interpreted the same way, depending on what the operation is. You will find in this chapter everything about option styles and rules for writing them (*note 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 `tar' manual. Some options are so special they are fully described right in this chapter. They have the effect of inhibiting the normal operation of `tar' or else, they globally alter the amount of feedback the user receives about what is going on. These are the `--help' and `--version' (*note help::.), `--verbose' (`-v') (*note verbose::.) and `--interactive' (`-w') options (*note interactive::.). * Menu: * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive::  File: tar.info, Node: Synopsis, Next: using tar options, Prev: tar invocation, Up: tar invocation General Synopsis of `tar' ========================= The GNU `tar' program is invoked as either one of: tar OPTION... [NAME]... tar LETTER... [ARGUMENT]... [OPTION]... [NAME]... The second form is for when old options are being used. You can use `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 `tar', which is called the "operation", specifies which action to take. The other arguments to `tar' are either "options", which change the way `tar' performs an operation, or file names or archive members, which specify the files or members `tar' is to act on. 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 `tar' main command) is usually given first. Each NAME in the synopsis above is interpreted as an archive member name when the main command is one of `--compare' (`--diff', `-d'), `--delete', `--extract' (`--get', `-x'), `--list' (`-t') or `--update' (`-u'). When naming archive members, you must give the exact name of the member in the archive, as it is printed by `--list' (`-t'). For `--append' (`-r') and `--create' (`-c'), these 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 `tar' command. `tar' interprets relative file names as being relative to the working directory. `tar' will make all file names relative (by removing leading slashes when archiving or restoring files), unless you specify otherwise (using the `--absolute-names' (`-P') option). *Note absolute::, for more information about `--absolute-names' (`-P'). If you give the name of a directory as either a file name or a member name, then `tar' acts recursively on all the files and directories beneath that directory. For example, the name `/' identifies all the files in the filesystem to `tar'. 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. *Note Wildcards::, for more information about globbing. The problem is that shells may only glob using existing files in the file system. Only `tar' itself may glob on archive members, so when needed, you must ensure that wildcard characters reach `tar' without being interpreted by the shell first. Using a backslash before `*' or `?', or putting the whole argument between quotes, is usually sufficient for this. Even if NAMEs are often specified on the command line, they can also be read from a text file in the file system, using the `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES') option. If you don't use any file name arguments, `--append' (`-r'), `--delete' and `--concatenate' (`--catenate', `-A') will do nothing, while `--create' (`-c') will usually yield a diagnostic and inhibit `tar' execution. The other operations of `tar' (`--list' (`-t'), `--extract' (`--get', `-x'), `--compare' (`--diff', `-d'), and `--update' (`-u')) will act on the entire contents of the archive. Besides successful exits, GNU `tar' may fail for many reasons. Some reasons correspond to bad usage, that is, when the `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 `tar' has completed all its work. Some errors are such that it would not meaningful, or at least risky, to continue processing: `tar' then aborts processing immediately. All abnormal exits, whether immediate or delayed, should always be clearly diagnosed on `stderr', after a line stating the nature of the error. GNU `tar' returns only a few exit statuses. I'm really aiming simplicity in that area, for now. If you are not using the `--compare' (`--diff', `-d') 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.  File: tar.info, Node: using tar options, Next: Styles, Prev: Synopsis, Up: tar invocation Using `tar' Options =================== GNU `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 `tar' program by specifying one, and only one operation as an argument to the `tar' command (two lists of four operations each may be found at *Note frequent operations:: and *Note 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. You can customize and control `tar''s performance by running `tar' with one or more options (such as `--verbose' (`-v'), which we used in the tutorial). As we said in the tutorial, "options" are arguments to `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 *note All Options::..) Note that `tar' options are case sensitive. For example, the options `-T' and `-t' are different; the first requires an argument for stating the name of a file providing a list of NAMEs, while the second does not require an argument and is another way to write `--list' (`-t'). In addition to the eight operations, there are many options to `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.  File: tar.info, Node: Styles, Next: All Options, Prev: using tar options, Up: tar invocation The Three Option Styles ======================= There are three styles for writing operations and options to the command line invoking `tar'. The different styles were developed at different times during the history of `tar'. These styles will be presented below, from the most recent to the oldest. Some options must take an argument. (For example, `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') takes the name of an archive file as an argument. If you do not supply an archive file name, `tar' will use a default, but this can be confusing; thus, we recommend that you always supply a specific archive file name.) Where you _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. * Menu: * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles  File: tar.info, Node: Mnemonic Options, Next: Short Options, Prev: Styles, Up: Styles Mnemonic Option Style --------------------- Each option has at least one long (or mnemonic) name starting with two dashes in a row, e.g. `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 `--compare' and `--diff'. In addition, long option names can be given unique abbreviations. For example, `--cre' can be used in place of `--create' because there is no other mnemonic option which begins with `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, `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 `tar --help' to see a list of options. Be aware that if you run `tar' with a unique abbreviation for the long name of an option you didn't want to use, you are stuck; `tar' will perform the command as ordered.) 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: $ tar --create --verbose --blocking-factor=20 --file=/dev/rmt0 gives a fairly good set of hints about what the command does, even for those not fully acquainted with `tar'. Mnemonic options which require arguments take those arguments immediately following the option name; they are introduced by an equal sign. For example, the `--file' option (which tells the name of the `tar' archive) is given a file such as `archive.tar' as argument by using the notation `--file=archive.tar' for the mnemonic option.  File: tar.info, Node: Short Options, Next: Old Options, Prev: Mnemonic Options, Up: Styles Short Option Style ------------------ Most options also have a short option name. Short options start with a single dash, and are followed by a single character, e.g. `-t' (which is equivalent to `--list'). The forms are absolutely identical in function; they are interchangeable. The short option names are faster to type than long option names. 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 `-f archive.tar' or `-farchive.tar' instead of using `--file=archive.tar'. Both `--file=ARCHIVE-NAME' and `-f ARCHIVE-NAME' denote the option which indicates a specific archive, here named `archive.tar'. 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. ``tar' -cvf'. Only the last option in such a set is allowed to have an argument(1). 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: $ tar -c -v -b 20 -f /dev/rmt0 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. ---------- Footnotes ---------- (1) Clustering many options, the last of which has an argument, is a rather opaque way to write options. Some wonder if GNU `getopt' should not even be made helpful enough for considering such usages as invalid.  File: tar.info, Node: Old Options, Next: Mixing, Prev: Short Options, Up: Styles Old Option Style ---------------- _(This message will disappear, once this node revised.)_ 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(1). This set of letters must be the first to appear on the command line, after the `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 `t' is the same as the short option `-t', and consequently, the same as the mnemonic option `--list'. So for example, the command `tar cv' specifies the option `-v' in addition to the operation `-c'. 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: $ tar cvbf 20 /dev/rmt0 Here, `20' is the argument of `-b' and `/dev/rmt0' is the argument of `-f'. 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 `tar cvbf 20 /dev/rmt0', for example, `20' is the argument for `-b', `/dev/rmt0' is the argument for `-f', and `-v' does not have a corresponding argument. Even using short options like in `tar -c -v -b 20 -f /dev/rmt0' is clearer, putting all arguments next to the option they pertain to. If you want to reorder the letters in the old option argument, be sure to reorder any corresponding argument appropriately. This old way of writing `tar' options can surprise even experienced users. For example, the two commands: tar cfz archive.tar.gz file tar -cfz archive.tar.gz file are quite different. The first example uses `archive.tar.gz' as the value for option `f' and recognizes the option `z'. The second example, however, uses `z' as the value for option `f'--probably not what was intended. Old options are kept for compatibility with old versions of `tar'. This second example could be corrected in many ways, among which the following are equivalent: tar -czf archive.tar.gz file tar -cf archive.tar.gz -z file tar cf archive.tar.gz -z file As far as we know, all `tar' programs, GNU and non-GNU, support old options. GNU `tar' supports them not only for historical reasons, but also because many people are used to them. For compatibility with Unix `tar', the first argument is always treated as containing command and option letters even if it doesn't start with `-'. Thus, `tar c' is equivalent to `tar -c': both of them specify the `--create' (`-c') command to create an archive. ---------- Footnotes ---------- (1) 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.  File: tar.info, Node: Mixing, Prev: Old Options, Up: Styles Mixing Option Styles -------------------- All three styles may be intermixed in a single `tar' command, so long as the rules for each style are fully respected(1). Old style options and either of the modern styles of options may be mixed within a single `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 `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. For example, all the following commands are wholly equivalent, and illustrate the many combinations and orderings of option styles. tar --create --file=archive.tar tar --create -f archive.tar tar --create -farchive.tar tar --file=archive.tar --create tar --file=archive.tar -c tar -c --file=archive.tar tar -c -f archive.tar tar -c -farchive.tar tar -cf archive.tar tar -cfarchive.tar tar -f archive.tar --create tar -f archive.tar -c tar -farchive.tar --create tar -farchive.tar -c tar c --file=archive.tar tar c -f archive.tar tar c -farchive.tar tar cf archive.tar tar f archive.tar --create tar f archive.tar -c tar fc archive.tar On the other hand, the following commands are _not_ equivalent to the previous set: tar -f -c archive.tar tar -fc archive.tar tar -fcarchive.tar tar -farchive.tarc tar cfarchive.tar 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 `tar' archive would be a file named `-c', `c', `carchive.tar' or `archive.tarc', respectively. The first two examples also specify a single non-option, NAME argument having the value `archive.tar'. The last example contains only old style option letters (repeating option `c' twice), not all of which are meaningful (eg., `.', `h', or `i'), with no argument value. ---------- Footnotes ---------- (1) Before GNU `tar' version 1.11.6, a bug prevented intermixing old style options with mnemonic options in some cases.  File: tar.info, Node: All Options, Next: help, Prev: Styles, Up: tar invocation All `tar' Options ================= The coming manual sections contain an alphabetical listing of all `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 `tar' commands in scripts. * Menu: * Operation Summary:: * Option Summary:: * Short Option Summary::  File: tar.info, Node: Operation Summary, Next: Option Summary, Prev: All Options, Up: All Options Operations ---------- `--append' `-r' Appends files to the end of the archive. *Note append::. `--catenate' `-A' Same as `--concatenate'. *Note concatenate::. `--compare' `-d' Compares archive members with their counterparts in the file system, and reports differences in file size, mode, owner, modification date and contents. *Note compare::. `--concatenate' `-A' Appends other `tar' archives to the end of the archive. *Note concatenate::. `--create' `-c' Creates a new `tar' archive. *Note create::. `--delete' Deletes members from the archive. Don't try this on a archive on a tape! *Note delete::. `--diff' `-d' Same `--compare'. *Note compare::. `--extract' `-x' Extracts members from the archive into the file system. *Note extract::. `--get' `-x' Same as `--extract'. *Note extract::. `--list' `-t' Lists the members in an archive. *Note list::. `--update' `-u' 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. *Note update::.  File: tar.info, Node: Option Summary, Next: Short Option Summary, Prev: Operation Summary, Up: All Options `tar' Options ------------- `--absolute-names' `-P' Normally when creating an archive, `tar' strips an initial `/' from member names. This option disables that behavior. . `--after-date' (See `--newer'; .) `--atime-preserve' Tells `tar' to preserve the access time field in a file's inode when dumping it. . `--backup=BACKUP-TYPE' Rather than deleting files from the file system, `tar' will back them up using simple or numbered backups, depending upon BACKUP-TYPE. . `--block-number' `-R' With this option present, `tar' prints error messages for read errors with the block number in the archive file. . `--blocking-factor=BLOCKING' `-b BLOCKING' Sets the blocking factor `tar' uses to BLOCKING x 512 bytes per record. . `--checkpoint' This option directs `tar' to print periodic checkpoint messages as it reads through the archive. Its intended for when you want a visual indication that `tar' is still running, but don't want to see `--verbose' output. . `--compress' `--uncompress' `-Z' `tar' will use the `compress' program when reading or writing the archive. This allows you to directly act on archives while saving space. . `--confirmation' (See `--interactive'; .) `--dereference' `-h' When creating a `tar' archive, `tar' will archive the file that a symbolic link points to, rather than archiving the symlink. . `--directory=DIR' `-C DIR' When this option is specified, `tar' will change its current directory to DIR before performing any operations. When this option is used during archive creation, it is order sensitive. . `--exclude=PATTERN' When performing operations, `tar' will skip files that match PATTERN. . `--exclude-from=FILE' `-X FILE' Similar to `--exclude', except `tar' will use the list of patterns in the file FILE. . `--file=ARCHIVE' `-f ARCHIVE' `tar' will use the file ARCHIVE as the `tar' archive it performs operations on, rather than `tar''s compilation dependent default. . `--files-from=FILE' `-T FILE' `tar' will use the contents of FILE as a list of archive members or files to operate on, in addition to those specified on the command-line. . `--force-local' Forces `tar' to interpret the filename given to `--file' as a local file, even if it looks like a remote tape drive name. . `--group=GROUP' Files added to the `tar' archive will have a group id of GROUP, rather than the group from the source file. GROUP is first decoded as a group symbolic name, but if this interpretation fails, it has to be a decimal numeric group ID. . Also see the comments for the `--owner=USER' option. `--gunzip' (See `--gzip'; .) `--gzip' `--gunzip' `--ungzip' `-z' This option tells `tar' to read or write archives through `gzip', allowing `tar' to directly operate on several kinds of compressed archives transparently. . `--help' `tar' will print out a short message summarizing the operations and options to `tar' and exit. . `--ignore-failed-read' Instructs `tar' to exit successfully if it encounters an unreadable file. *Note Reading::. `--ignore-umask' (See `--preserve-permissions'; *note Writing::..) `--ignore-zeros' `-i' With this option, `tar' will ignore zeroed blocks in the archive, which normally signals EOF. *Note Reading::. `--incremental' `-G' Used to inform `tar' that it is working with an old GNU-format incremental backup archive. It is intended primarily for backwards compatibility only. . `--info-script=SCRIPT-FILE' `--new-volume-script=SCRIPT-FILE' `-F SCRIPT-FILE' When `tar' is performing multi-tape backups, SCRIPT-FILE is run at the end of each tape. . `--interactive' `--confirmation' `-w' Specifies that `tar' should ask the user for confirmation before performing potentially destructive options, such as overwriting files. . `--keep-old-files' `-k' When extracting files from an archive, `tar' will not overwrite existing files if this option is present. *Note Writing::. `--label=NAME' `-V NAME' When creating an archive, instructs `tar' to write NAME as a name record in the archive. When extracting or listing archives, `tar' will only operate on archives that have a label matching the pattern specified in NAME. . `--listed-incremental=SNAPSHOT-FILE' `-g SNAPSHOT-FILE' During a `--create' operation, specifies that the archive that `tar' creates is a new GNU-format incremental backup, using SNAPSHOT-FILE to determine which files to backup. With other operations, informs `tar' that the archive is in incremental format. . `--mode=PERMISSIONS' When adding files to an archive, `tar' will use PERMISSIONS for the archive members, rather than the permissions from the files. The program `chmod' and this `tar' option share the same syntax for what PERMISSIONS might be. *Note Permissions: (filetutils)File permissions. This reference also has useful information for those not being overly familiar with the Unix permission system. Of course, 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 `a+rw' adds read and write permissions for everybody, while retaining executable bits on directories or on any other file already marked as executable. `--multi-volume' `-M' Informs `tar' that it should create or otherwise operate on a multi-volume `tar' archive. . `--new-volume-script' (see -info-script) `--newer=DATE' `--after-date=DATE' `-N' When creating an archive, `tar' will only add files that have changed since DATE. . `--newer-mtime' In conjunction with `--newer', `tar' will only add files whose contents have changed (as opposed to just `--newer', which will also back up files for which any status information has changed). `--no-recursion' With this option, `tar' will not recurse into directories unless a directory is explicitly named as an argument to `tar'. . `--null' When `tar' is using the `--files-from' option, this option instructs `tar' to expect filenames terminated with `NUL', so `tar' can correctly work with file names that contain newlines. . `--numeric-owner' This option will notify `tar' that it should use numeric user and group IDs when creating a `tar' file, rather than names. . `--old-archive' (See `--portability'; .) `--one-file-system' `-l' Used when creating an archive. Prevents `tar' from recursing into directories that are on different file systems from the current directory. . `--owner=USER' Specifies that `tar' should use USER as the owner of members when creating archives, instead of the user associated with the source file. USER is first decoded as a user symbolic name, but if this interpretation fails, it has to be a decimal numeric user ID. . There is no value indicating a missing number, and `0' usually means `root'. Some people like to force `0' as the value to offer in their distributions for the owner of files, because the `root' user is anonymous anyway, so that might as well be the owner of anonymous archives. `--portability' `--old-archive' `-o' Tells `tar' to create an archive that is compatible with Unix V7 `tar'. . `--posix' Instructs `tar' to create a POSIX compliant `tar' archive. . `--preserve' Synonymous with specifying both `--preserve-permissions' and `--same-order'. . `--preserve-order' (See `--same-order'; *note Reading::..) `--preserve-permissions' `--same-permissions' `-p' When `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 `tar' that it should use the permissions directly from the archive. *Note Writing::. `--read-full-records' `-B' Specifies that `tar' should reblock its input, for reading from pipes on systems with buggy implementations. *Note Reading::. `--record-size=SIZE' Instructs `tar' to use SIZE bytes per record when accessing the archive. . `--recursive-unlink' Similar to the `--unlink-first' option, removing existing directory hierarchies before extracting directories of the same name from the archive. *Note Writing::. `--remove-files' Directs `tar' to remove the source file from the file system after appending it to an archive. . `--rsh-command=CMD' Notifies `tar' that is should use CMD to communicate with remote devices. . `--same-order' `--preserve-order' `-s' This option is an optimization for `tar' when running on machines with small amounts of memory. It informs `tar' that the list of file arguments has already been sorted to match the order of files in the archive. *Note Reading::. `--same-owner' When extracting an archive, `tar' will attempt to preserve the owner specified in the `tar' archive with this option present. . `--same-permissions' (See `--preserve-permissions'; *note Writing::..) `--show-omitted-dirs' Instructs `tar' to mention directories its skipping over when operating on a `tar' archive. . `--sparse' `-S' Invokes a GNU extension when adding files to an archive that handles sparse files efficiently. . `--starting-file=NAME' `-K NAME' This option affects extraction only; `tar' will skip extracting files in the archive until it finds one that matches NAME. *Note Scarce::. `--suffix=SUFFIX' Alters the suffix `tar' uses when backing up files from the default `~'. . `--tape-length=NUM' `-L NUM' Specifies the length of tapes that `tar' is writing as being NUM x 1024 bytes long. . `--to-stdout' `-O' During extraction, `tar' will extract files to stdout rather than to the file system. *Note Writing::. `--totals' Displays the total number of bytes written after creating an archive. . `--touch' `-m' Sets the modification time of extracted files to the extraction time, rather than the modification time stored in the archive. *Note Writing::. `--uncompress' (See `--compress'; .) `--ungzip' (See `--gzip'; .) `--unlink-first' `-U' Directs `tar' to remove the corresponding file from the file system before extracting it from the archive. *Note Writing::. `--use-compress-program=PROG' Instructs `tar' to access the archive through PROG, which is presumed to be a compression program of some sort. . `--verbose' `-v' Specifies that `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. . `--verify' `-W' Verifies that the archive was correctly written when creating an archive. . `--version' `tar' will print an informational message about what version it is and a copyright message, some credits, and then exit. . `--volno-file=FILE' Used in conjunction with `--multi-volume'. `tar' will keep track of which volume of a multi-volume archive its working in FILE. .  File: tar.info, Node: Short Option Summary, Prev: Option Summary, Up: All Options Short Options Cross Reference ----------------------------- Here is an alphabetized list of all of the short option forms, matching them with the equivalent long option. `-A' `--concatenate' `-B' `--read-full-records' `-C' `--directory' `-F' `--info-script' `-G' `--incremental' `-K' `--starting-file' `-L' `--tape-length' `-M' `--multi-volume' `-N' `--newer' `-O' `--to-stdout' `-P' `--absolute-names' `-R' `--block-number' `-S' `--sparse' `-T' `--files-from' `-U' `--unlink-first' `-V' `--label' `-W' `--verify' `-X' `--exclude-from' `-Z' `--compress' `-b' `--blocking-factor' `-c' `--create' `-d' `--compare' `-f' `--file' `-g' `--listed-incremental' `-h' `--dereference' `-i' `--ignore-zeros' `-k' `--keep-old-files' `-l' `--one-file-system' `-m' `--touch' `-o' `--portability' `-p' `--preserve-permissions' `-r' `--append' `-s' `--same-order' `-t' `--list' `-u' `--update' `-v' `--verbose' `-w' `--interactive' `-x' `--extract' `-z' `--gzip'  File: tar.info, Node: help, Next: verbose, Prev: All Options, Up: tar invocation GNU `tar' documentation ======================= Being careful, the first thing is really checking that you are using GNU `tar', indeed. The `--version' option will generate a message giving confirmation that you are using GNU `tar', with the precise version of GNU `tar' you are using. `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, `tar --version' might return: tar (GNU tar) 1.13 The first occurrence of `tar' in the result above is the program name in the package (for example, `rmt' is another program), while the second occurrence of `tar' is the name of the package itself, containing possibly many programs. The package is currently named `tar', after the name of the main program it contains(1). Another thing you might want to do is checking the spelling or meaning of some particular `tar' option, without resorting to this manual, for once you have carefully read it. GNU `tar' has a short help feature, triggerable through the `--help' option. By using this option, `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: $ tar --help | less presuming, here, that you like using `less' for a pager. Other popular pagers are `more' and `pg'. If you know about some KEYWORD which interests you and do not want to read all the `--help' output, another common idiom is doing: tar --help | grep KEYWORD for getting only the pertinent lines. The perceptive reader would have noticed some contradiction in the previous paragraphs. It is written that both `--version' and `--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! 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 `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 `tar' distribution, provided you have TeX already installed somewhere, and a laser printer around. Just configure the distribution, execute the command `make dvi', then print `doc/tar.dvi' the usual way (contact your local guru to know how). If GNU `tar' has been conveniently installed at your place, this manual is also available in interactive, hypertextual form as an Info file. Just call `info tar' or, if you do not have the `info' program handy, use the Info reader provided within GNU Emacs, calling `tar' from the main Info menu. There is currently no `man' page for GNU `tar'. If you observe such a `man' page on the system you are running, either it does not long to GNU `tar', or it has not been produced by GNU. Currently, GNU `tar' documentation is provided in Texinfo format only, if we except, of course, the short result of `tar --help'. ---------- Footnotes ---------- (1) There are plans to merge the `cpio' and `tar' packages into a single one which would be called `paxutils'. So, who knows if, one of this days, the `--version' would not yield `tar (GNU paxutils) 3.2'  File: tar.info, Node: verbose, Next: interactive, Prev: help, Up: tar invocation Checking `tar' progress ======================= Typically, `tar' performs most operations without reporting any information to the user except error messages. When using `tar' with many options, particularly ones with complicated or difficult-to-predict behavior, it is possible to make serious mistakes. `tar' provides several options that make observing `tar' easier. These options cause `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. Normally, the `--list' (`-t') 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 `--verbose' (`-v') option causes `tar' to print the name of each file or archive member as it is processed. This and the other options which make `tar' print status information can be useful in monitoring `tar'. With `--create' (`-c') or `--extract' (`--get', `-x'), `--verbose' (`-v') used once just prints the names of the files or members as they are processed. Using it twice causes `tar' to print a longer listing (reminiscent of `ls -l') for each member. Since `--list' (`-t') already prints the names of the members, `--verbose' (`-v') used once with `--list' (`-t') causes `tar' to print an `ls -l' type listing of the files in the archive. The following examples both extract members with long list output: $ tar --extract --file=archive.tar --verbose --verbose $ tar xvv archive.tar Verbose output appears on the standard output except when an archive is being written to the standard output, as with `tar --create --file=- --verbose' (`tar cfv -', or even `tar cv'--if the installer let standard output be the default archive). In that case `tar' writes verbose output to the standard error stream. The `--totals' option--which is only meaningful when used with `--create' (`-c')--causes `tar' to print the total amount written to the archive, after it has been fully created. The `--checkpoint' option prints an occasional message as `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 `--block-number' (`-R'), but do want visual confirmation that `tar' is actually making forward progress. The `--show-omitted-dirs' option, when reading an archive--with `--list' (`-t') or `--extract' (`--get', `-x'), 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 `--exclude=PATTERN' option, or some other reason. If `--block-number' (`-R') is used, `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 `--block-number' (`-R') is used. Note that GNU `tar' drains the archive before exiting when reading the archive from a pipe. This option is especially useful when reading damaged archives, since it helps pinpoint the damaged sections. It can also be used with `--list' (`-t') 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). .  File: tar.info, Node: interactive, Prev: verbose, Up: tar invocation Asking for Confirmation During Operations ========================================= Typically, `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 (*note Choosing::.), or by performing an operation interactively, using the `--interactive' (`-w') option. `tar' also accepts `--confirmation' for this option. When the `--interactive' (`-w') option is specified, before reading, writing, or deleting files, `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 `y'. If your input line begins with anything other than `y', `tar' skips that file. If `tar' is reading the archive from the standard input, `tar' opens the file `/dev/tty' to support the interactive communications. 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 `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.  File: tar.info, Node: operations, Next: Backups, Prev: tar invocation, Up: Top GNU `tar' Operations ******************** * Menu: * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: tar-1.13/doc/tar.info-30000444000176300016070000013342606737251615010305 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Basic tar, Next: Advanced tar, Prev: operations, Up: operations Basic GNU `tar' Operations ========================== The basic `tar' operations, `--create' (`-c'), `--list' (`-t') and `--extract' (`--get', `-x'), are currently presented and described in the tutorial chapter of this manual. This section provides some complementary notes for these operations. `--create' (`-c') Creating an empty archive would have some kind of elegance. One can initialize an empty archive and later use `--append' (`-r') 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 `tar' to destroy a magnetic tape with an empty archive(1). The two most common errors are: 1. Mistakingly using `create' instead of `extract', when the intent was to extract the full contents of an archive. This error is likely: keys `c' and `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 "exploding" an archive, they usually mean something else :-). 2. Forgetting the argument to `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 `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. So, recognizing the likelihood and the catastrophical nature of these errors, GNU `tar' now takes some distance from elegance, and cowardly refuses to create an archive when `--create' (`-c') option is given, there are no arguments besides options, and `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES') option is _not_ used. To get around the cautiousness of GNU `tar' and nevertheless create an archive with nothing in it, one may still use, as the value for the `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES') option, a file with no names in it, as shown in the following commands: tar --create --file=empty-archive.tar --files-from=/dev/null tar cfT empty-archive.tar /dev/null `--extract' (`--get', `-x') A socket is stored, within a GNU `tar' archive, as a pipe. `--list' (`-t') GNU `tar' now shows dates as `1996-11-09', while it used to show them as `Nov 11 1996'. (One can revert to the old behavior by defining `USE_OLD_CTIME' in `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. Look up if you are curious, it contains a detailed explanation of the ISO 8601 standard. ---------- Footnotes ---------- (1) This is well described in `Unix-haters Handbook', by Simson Garfinkel, Daniel Weise & Steven Strassmann, IDG Books, ISBN 1-56884-203-1.  File: tar.info, Node: Advanced tar, Next: extract options, Prev: Basic tar, Up: operations Advanced GNU `tar' Operations ============================= Now that you have learned the basics of using GNU `tar', you may want to learn about further ways in which `tar' can help you. 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 `tar' commands. Additionally, this chapter includes options which allow you to define the output from `tar' more carefully, and provide help and error correction in special circumstances. * Menu: * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare::  File: tar.info, Node: Operations, Next: current state, Prev: Advanced tar, Up: Advanced tar The Five Advanced `tar' Operations ---------------------------------- _(This message will disappear, once this node revised.)_ In the last chapter, you learned about the first three operations to `tar'. This chapter presents the remaining five operations to `tar': `--append', `--update', `--concatenate', `--delete', and `--compare'. 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 `practice', the files are `jazz', `blues', `folk', `rock', and the two archive files you created are `collection.tar' and `music.tar'. We will also use the archive files `afiles.tar' and `bfiles.tar'. `afiles.tar' contains the members `apple', `angst', and `aspic'. `bfiles.tar' contains the members `./birds', `baboon', and `./box'. Unless we state otherwise, all practicing you do and examples you follow in this chapter will take place in the `practice' directory that you created in the previous chapter; see *Note prepare for examples::. (Below in this section, we will remind you of the state of the examples where the last chapter left them.) The five operations that we will cover in this chapter are: `--append' `-r' Add new entries to an archive that already exists. `--update' `-r' Add more recent copies of archive members to the end of an archive, if they exist. `--concatenate' `--catenate' `-A' Add one or more pre-existing archives to the end of another archive. `--delete' Delete items from an archive (does not work on tapes). `--compare' `--diff' `-d' Compare archive members to their counterparts in the file system.  File: tar.info, Node: current state, Next: append, Prev: Operations, Up: Advanced tar The Current State of the Practice Files --------------------------------------- Currently, the listing of the directory using `ls' is as follows: The archive file `collection.tar' looks like this: $ tar -tvf collection.tar The archive file `music.tar' looks like this: $ tar -tvf music.tar  File: tar.info, Node: append, Next: update, Prev: current state, Up: Advanced tar How to Add Files to Existing Archives: `--append' ------------------------------------------------- _(This message will disappear, once this node revised.)_ If you want to add files to an existing archive, you don't need to create a new archive; you can use `--append' (`-r'). The archive must already exist in order to use `--append'. (A related operation is the `--update' operation; you can use this to add newer versions of archive members to an existing archive. To learn how to do this with `--update', *note update::..) If you use `--append' (`-r') 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. `tar' _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 `--list' (`-t'), you will see all of those members listed, with their modification times, owners, etc. Other operations don't deal with these members as perfectly as you might prefer; if you were to use `--extract' (`--get', `-x') 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 `--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 _overwrite_ a file of the same name which existed in the directory already, and `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. There are a few ways to get around this. . If you want to replace an archive member, use `--delete' to delete the member you want to remove from the archive, , and then use `--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 *Note delete:: and *Note Media::, for more information.) * Menu: * appending files:: Appending Files to an Archive * multiple::  File: tar.info, Node: appending files, Next: multiple, Prev: append, Up: append Appending Files to an Archive ............................. _(This message will disappear, once this node revised.)_ The simplest way to add a file to an already existing archive is the `--append' (`-r') operation, which writes specified files into the archive whether or not they are already among the archived files. When you use `--append', you _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 `--verbose' (`-v') option will print out the names of the files as they are written into the archive. `--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 `tar' archive, or else the results of using this operation will be unpredictable. *Note Media::. To demonstrate using `--append' to add a file to an archive, create a file called `rock' in the `practice' directory. Make sure you are in the `practice' directory. Then, run the following `tar' command to add `rock' to `collection.tar': $ tar --append --file=collection.tar rock If you now use the `--list' (`-t') operation, you will see that `rock' has been added to the archive: $ 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  File: tar.info, Node: multiple, Prev: appending files, Up: append Multiple Files with the Same Name ................................. You can use `--append' (`-r') 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 `tar' option called `--update'; *note update::. for more information. We describe this use of `--append' here for the sake of completeness.) 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. Supposing you change the file `blues' and then append the changed version to `collection.tar'. As you saw above, the original `blues' is in the archive `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. You can append the new, changed copy of the file `blues' to the archive in this way: $ tar --append --verbose --file=collection.tar blues blues Because you specified the `--verbose' option, `tar' has printed the name of the file being appended as it was acted on. Now list the contents of the archive: $ 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 The newest version of `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 `blues' will be overwritten by the newer version. You can confirm this by extracting the archive and running `ls' on the directory. *Note Writing::, for more information. (_Please note:_ This is the case unless you employ the `--backup' option; .)  File: tar.info, Node: update, Next: concatenate, Prev: append, Up: Advanced tar Updating an Archive ------------------- _(This message will disappear, once this node revised.)_ In the previous section, you learned how to use `--append' (`-r') to add a file to an existing archive. A related operation is `--update' (`-u'). The `--update' operation updates a `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 `--append' (`-r')). Unfortunately, you cannot use `--update' with magnetic tape drives. The operation will fail. Both `--update' and `--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 `--backup' option (). * Menu: * how to update::  File: tar.info, Node: how to update, Prev: update, Up: update How to Update an Archive Using `--update' ......................................... You must use file name arguments with the `--update' (`-u') operation. If you don't specify any files, `tar' won't act on any files and won't tell you that it didn't do anything (which may end up confusing you). To see the `--update' option at work, create a new file, `classical', in your practice directory, and some extra text to the file `blues', using any text editor. Then invoke `tar' with the `update' operation and the `--verbose' (`-v') option specified, using the names of all the files in the practice directory as file name arguments: $ tar --update -v -f collection.tar blues folk rock classical blues classical $ Because we have specified verbose mode, `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 `tar --list' and look at the archive, you will see `blues' and `classical' at its end. There will be a total of two versions of the member `blues'; the one at the end will be newer and larger, since you added text before updating it. (The reason `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. *Note Media::, for more information about tapes. `--update' (`-u') 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 `tar' options intended specifically for backups are more efficient. If you need to run backups, please consult *Note Backups::.  File: tar.info, Node: concatenate, Next: delete, Prev: update, Up: Advanced tar Combining Archives with `--concatenate' --------------------------------------- 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 `--concatenate' (`--catenate', `-A') operation. To use `--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, . To demonstrate how `--concatenate' works, create two small archives called `bluesrock.tar' and `folkjazz.tar', using the relevant files from `practice': $ tar -cvf bluesrock.tar blues rock blues classical $ tar -cvf folkjazz.tar folk jazz folk jazz If you like, You can run `tar --list' to make sure the archives contain what they are supposed to: $ 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 $ 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 We can concatenate these two archives with `tar': $ cd .. $ tar --concatenate --file=bluesrock.tar jazzfolk.tar If you now list the contents of the `bluesclass.tar', you will see that now it also contains the archive members of `jazzfolk.tar': $ tar --list --file=bluesrock.tar blues rock jazz folk When you use `--concatenate', the source and target archives must already exist and must have been created using compatable format parameters (). The new, concatenated archive will be called by the same name as the first archive listed on the command line. Like `--append' (`-r'), this operation cannot be performed on some tape drives, due to deficiencies in the formats those tape drives use. It may seem more intuitive to you to want or try to use `cat' to concatenate two archives instead of using the `--concatenate' operation; after all, `cat' is the utility for combining files. However, `tar' archives incorporate an end-of-file marker which must be removed if the concatenated archives are to be read properly as one archive. `--concatenate' removes the end-of-archive marker from the target archive before each new archive is appended. If you use `cat' to combine the archives, the result will not be a valid `tar' format archive. If you need to retrieve files from an archive that was added to using the `cat' utility, use the `--ignore-zeros' (`-i') option. *Note Ignore Zeros::, for further information on dealing with archives improperly combined using the `cat' shell utility. You must specify the source archives using `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') (*note file::.). If you do not specify the target archive, `tar' uses the value of the environment variable `TAPE', or, if this has not been set, the default archive name.  File: tar.info, Node: delete, Next: compare, Prev: concatenate, Up: Advanced tar Removing Archive Members Using `--delete' ----------------------------------------- _(This message will disappear, once this node revised.)_ You can remove members from an archive by using the `--delete' option. Specify the name of the archive with `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') and then specify the names of the members to be deleted; if you list no member names, nothing will be deleted. The `--verbose' (`-v') option will cause `tar' to print the names of the members as they are deleted. As with `--extract' (`--get', `-x'), you must give the exact member names when using `tar --delete'. `--delete' will remove all versions of the named file from the archive. The `--delete' operation can run very slowly. Unlike other operations, `--delete' has no short form. This operation will rewrite the archive. You can only use `--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. *Note Media::. To delete all versions of the file `blues' from the archive `collection.tar' in the `practice' directory, make sure you are in that directory, and then, $ tar --list --file=collection.tar blues folk jazz rock practice/blues practice/folk practice/jazz practice/rock practice/blues $ tar --delete --file=collection.tar blues $ tar --list --file=collection.tar folk jazz rock $ The `--delete' option has been reported to work properly when `tar' acts as a filter from `stdin' to `stdout'.  File: tar.info, Node: compare, Prev: delete, Up: Advanced tar Comparing Archive Members with the File System ---------------------------------------------- _(This message will disappear, once this node revised.)_ The `--compare' (`-d'), or `--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 _only_ specify archive member names, not file names. If you do not name any members, then `tar' will compare the entire archive. If a file is represented in the archive but does not exist in the file system, `tar' reports a difference. You have to specify the record size of the archive when modifying an archive with a non-default record size. `tar' ignores files in the file system that do not have corresponding members in the archive. The following example compares the archive members `rock', `blues' and `funk' in the archive `bluesrock.tar' with files of the same name in the file system. (Note that there is no file, `funk'; `tar' will report an error message.) $ tar --compare --file=bluesrock.tar rock blues funk rock blues tar: funk not found in archive Depending on the system where you are running `tar' and the version you are running, `tar' may have a different error message, such as: funk: does not exist The spirit behind the `--compare' (`--diff', `-d') 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, *Note verify::.  File: tar.info, Node: extract options, Next: backup, Prev: Advanced tar, Up: operations Options Used by `--extract' =========================== _(This message will disappear, once this node revised.)_ The previous chapter showed how to use `--extract' (`--get', `-x') to extract an archive into the filesystem. Various options cause `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 `--extract' when certain special considerations arise. You may review the information presented in *Note extract:: for more basic information about the `--extract' operation. * Menu: * Reading:: Options to Help Read Archives * Writing:: Changing How `tar' Writes Files * Scarce:: Coping with Scarce Resources  File: tar.info, Node: Reading, Next: Writing, Prev: extract options, Up: extract options Options to Help Read Archives ----------------------------- _(This message will disappear, once this node revised.)_ Normally, `tar' will request data in full record increments from an archive storage device. If the device cannot return a full record, `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 `--read-full-records' (`-B') option in conjunction with the `--extract' (`--get', `-x') or `--list' (`-t') operations. *Note Blocking::. The `--read-full-records' (`-B') option is turned on by default when `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, `tar' would fail as soon as it read an incomplete record from the pipe. If you're not sure of the blocking factor of an archive, you can read the archive by specifying `--read-full-records' (`-B') and `--blocking-factor=512-SIZE' (`-b 512-SIZE'), using a blocking factor larger than what the archive uses. This lets you avoid having to determine the blocking factor of an archive. *Note Blocking Factor::. * Menu: * read full records:: * Ignore Zeros:: * Ignore Failed Read::  File: tar.info, Node: read full records, Next: Ignore Zeros, Prev: Reading, Up: Reading Reading Full Records .................... `--read-full-records' `-B' Use in conjunction with `--extract' (`--get', `-x') to read an archive which contains incomplete records, or one which has a blocking factor less than the one specified.  File: tar.info, Node: Ignore Zeros, Next: Ignore Failed Read, Prev: read full records, Up: Reading Ignoring Blocks of Zeros ........................ Normally, `tar' stops reading when it encounters a block of zeros between file entries (which usually indicates the end of the archive). `--ignore-zeros' (`-i') allows `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 `cat'-ing several archives together). The `--ignore-zeros' (`-i') option is turned off by default because many versions of `tar' write garbage after the end-of-archive entry, since that part of the media is never supposed to be read. GNU `tar' does not write after the end of an archive, but seeks to maintain compatablity among archiving utilities. `--ignore-zeros' `-i' To ignore blocks of zeros (ie. end-of-archive entries) which may be encountered while reading an archive. Use in conjunction with `--extract' (`--get', `-x') or `--list' (`-t').  File: tar.info, Node: Ignore Failed Read, Prev: Ignore Zeros, Up: Reading Ignore Fail Read ................ `--ignore-failed-read' Do not exit with nonzero on unreadable files or directories.  File: tar.info, Node: Writing, Next: Scarce, Prev: Reading, Up: extract options Changing How `tar' Writes Files ------------------------------- _(This message will disappear, once this node revised.)_ * Menu: * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files::  File: tar.info, Node: Prevention Overwriting, Next: Keep Old Files, Prev: Writing, Up: Writing Options to Prevent Overwriting Files .................................... Normally, `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. To prevent `tar' from extracting an archive member from an archive if doing so will overwrite a file in the file system, use `--keep-old-files' (`-k') in conjunction with `--extract'. When this option is specified, `tar' will report an error stating the name of the files in conflict instead of overwriting the file with the corresponding extracted archive member. The `--unlink-first' (`-U') option removes existing files, symbolic links, empty directories, devices, etc., _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 _is_ the original program text. You could use the `--unlink-first' (`-U') 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 _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. If you specify the `--recursive-unlink' option, `tar' removes _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. * Menu: * Keep Old Files:: * Unlink First:: * Recursive Unlink::  File: tar.info, Node: Keep Old Files, Next: Unlink First, Prev: Prevention Overwriting, Up: Writing Keep Old Files .............. `--keep-old-files' `-k' Do not overwrite existing files from archive. The `--keep-old-files' (`-k') option prevents `tar' from over-writing existing files with files with the same name from the archive. The `--keep-old-files' (`-k') option is meaningless with `--list' (`-t'). Prevents `tar' from overwriting files in the file system during extraction.  File: tar.info, Node: Unlink First, Next: Recursive Unlink, Prev: Keep Old Files, Up: Writing Unlink First ............ `--unlink-first' `-U' Try removing files before extracting over them, instead of trying to overwrite them.  File: tar.info, Node: Recursive Unlink, Next: Modification Times, Prev: Unlink First, Up: Writing Recursive Unlink ................ `--recursive-unlink' When this option is specified, try removing files and directory hierarchies before extracting over them. _This is a dangerous option!_ Some people argue that GNU `tar' should not hesitate to overwrite files with other files when extracting. When extracting a `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 `usr/local' is a link to `usr/local2'. Since then, maybe the site removed the link and renamed the whole hierarchy from `/usr/local2' to `/usr/local'. Such things happen all the time. I guess it would not be welcome at all that GNU `tar' removes the whole hierarchy just to make room for the link to be reinstated (unless it _also_ simultaneously restores the full `/usr/local2', of course! GNU `tar' is indeed able to remove a whole hierarchy to reestablish a symbolic link, for example, but _only if_ `--recursive-unlink' is specified to allow this behaviour. In any case, single files are silently removed.  File: tar.info, Node: Modification Times, Next: Setting Access Permissions, Prev: Recursive Unlink, Up: Writing Setting Modification Times .......................... Normally, `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 `umask' setting. To set the modification times of extracted files to the time when the files were extracted, use the `--touch' (`-m') option in conjunction with `--extract' (`--get', `-x'). `--touch' `-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 `--extract' (`--get', `-x').  File: tar.info, Node: Setting Access Permissions, Next: Writing to Standard Output, Prev: Modification Times, Up: Writing Setting Access Permissions .......................... To set the modes (access permissions) of extracted files to those recorded for those files in the archive, use `--same-persmissions' in conjunction with the `--extract' (`--get', `-x') operation. `--preserve-permission' `--same-permission' `--ignore-umask' `-p' Set modes of extracted archive members to those recorded in the archive, instead of current umask settings. Use in conjunction with `--extract' (`--get', `-x').  File: tar.info, Node: Writing to Standard Output, Next: remove files, Prev: Setting Access Permissions, Up: Writing Writing to Standard Output .......................... To write the extracted files to the standard output, instead of creating the files on the file system, use `--to-stdout' (`-O') in conjunction with `--extract' (`--get', `-x'). 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. `--to-stdout' `-O' Writes files to the standard output. Used in conjunction with `--extract' (`--get', `-x'). Extract files to standard output. When this option is used, instead of creating the files specified, `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 `--list' (`-t').  File: tar.info, Node: remove files, Prev: Writing to Standard Output, Up: Writing Removing Files .............. `--remove-files' Remove files after adding them to the archive.  File: tar.info, Node: Scarce, Prev: Writing, Up: extract options Coping with Scarce Resources ---------------------------- _(This message will disappear, once this node revised.)_ * Menu: * Starting File:: * Same Order::  File: tar.info, Node: Starting File, Next: Same Order, Prev: Scarce, Up: Scarce Starting File ............. `--starting-file=NAME' `-K NAME' Starts an operation in the middle of an archive. Use in conjunction with `--extract' (`--get', `-x') or `--list' (`-t'). If a previous attempt to extract files failed due to lack of disk space, you can use `--starting-file=NAME' (`-K NAME') to start extracting only after member 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 `tar', remove unnecessary files from the file system, and then restart the same `tar' operation. In this case, `--starting-file=NAME' (`-K NAME') is not necessary. *Note Inc Dumps::, *Note interactive::, and *Note exclude::.)  File: tar.info, Node: Same Order, Prev: Starting File, Up: Scarce Same Order .......... `--same-order' `--preserve-order' `-s' To process large lists of file names on machines with small amounts of memory. Use in conjunction with `--compare' (`--diff', `-d'), `--list' (`-t') or `--extract' (`--get', `-x'). The `--same-order' (`--preserve-order', `-s') option tells `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 `tar -t' on the archive and editing its output. This option is probably never needed on modern computer systems.  File: tar.info, Node: backup, Next: Applications, Prev: extract options, Up: operations Backup options ============== GNU `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 (`cp', `install', `ln', and `mv', for example) offer similar options. 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. 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. 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. `--backup' Make backups of files that are about to be overwritten or removed. Without this option, the original versions are destroyed. `--suffix=SUFFIX' Append SUFFIX to each backup file made with `-b'. If this option is not specified, the value of the `SIMPLE_BACKUP_SUFFIX' environment variable is used. And if `SIMPLE_BACKUP_SUFFIX' is not set, the default is `~', just as in Emacs. `--version-control=METHOD' Use METHOD to determine the type of backups made with `--backup'. If this option is not specified, the value of the `VERSION_CONTROL' environment variable is used. And if `VERSION_CONTROL' is not set, the default backup type is `existing'. This option corresponds to the Emacs variable `version-control'; the same values for METHOD are accepted as in Emacs. This options also more descriptive name. The valid METHODs (unique abbreviations are accepted): `t' `numbered' Always make numbered backups. `nil' `existing' Make numbered backups of files that already have them, simple backups of the others. `never' `simple' Always make simple backups. Some people express the desire to _always_ use the 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): tar () { /usr/local/bin/tar --backup $*; }  File: tar.info, Node: Applications, Next: looking ahead, Prev: backup, Up: operations Notable `tar' Usages ==================== _(This message will disappear, once this node revised.)_ 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 `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 `tar' program. 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 "pipe", which is one a Unix redirection mechanism: $ cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -) The command also works using short option forms: $ cd sourcedir; tar --create --file=- . | (cd targetdir; tar --extract --file=-) This is one of the easiest methods to transfer a `tar' archive.  File: tar.info, Node: looking ahead, Prev: Applications, Up: operations Looking Ahead: The Rest of this Manual ====================================== You have now seen how to use all eight of the operations available to `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 `tar' (this can help you save time if you expect to archive the same list of files a number of times), and how to If there are too many files to conveniently list on the command line, you can list the names in a file, and `tar' will read that file. *Note files::. There are various ways of causing `tar' to skip over some files, and not archive them. *Note Choosing::.  File: tar.info, Node: Backups, Next: Choosing, Prev: operations, Up: Top Performing Backups and Restoring Files ************************************** _(This message will disappear, once this node revised.)_ GNU `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. Some users are enthusiastic about `Amanda' (The Advanced Maryland Automatic Network Disk Archiver), a backup system developed by James da Silva `jds@cs.umd.edu' and available on many Unix systems. This is free software, and it is available at these places: http://www.cs.umd.edu/projects/amanda/amanda.html ftp://ftp.cs.umd.edu/pub/amanda Here is a possible plan for a future documentation about the backuping scripts which are provided within the GNU `tar' distribution. .* dumps . + what are dumps . + different levels of dumps . - full dump = dump everything . - level 1, level 2 dumps etc, - A level n dump dumps everything changed since the last level n-1 dump (?) . + how to use scripts for dumps (ie, the concept) . - scripts to run after editing backup specs (details) . + Backup Specs, what is it. . - how to customize . - actual text of script [/sp/dump/backup-specs] . + Problems . - rsh doesn't work . - rtape isn't installed . - (others?) . + the --incremental option of tar . + tapes . - write protection . - types of media . : different sizes and types, useful for different things . - files and tape marks one tape mark between files, two at end. . - positioning the tape MT writes two at end of write, backspaces over one when writing again. This chapter documents both the provided FSF scripts and `tar' options which are more specific to usage as a backup tool. To "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 "backups" are also called "dumps". * Menu: * Full Dumps:: Using `tar' to Perform Full Dumps * Inc Dumps:: Using `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 tar-1.13/doc/tar.info-40000444000176300016070000014270406737251615010305 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Full Dumps, Next: Inc Dumps, Prev: Backups, Up: Backups Using `tar' to Perform Full Dumps ================================= _(This message will disappear, once this node revised.)_ Full dumps should only be made when no other people or programs are modifying files in the filesystem. If files are modified while `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.) You will want to use the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-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. Unless the filesystem you are dumping is guaranteed to fit on one volume, you will need to use the `--multi-volume' (`-M') option. Make sure you have enough tapes on hand to complete the backup. If you want to dump each filesystem separately you will need to use the `--one-file-system' (`-l') option to prevent `tar' from crossing filesystem boundaries when storing (sub)directories. The `--incremental' (`-G') 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. Unless you are in a hurry, and trust the `tar' program (and your tapes), it is a good idea to use the `--verify' (`-W') 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. `--listed-incremental=SNAPSHOT-FILE' (`-g SNAPSHOT-FILE') 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. `--incremental' (`-G') `--incremental' (`-G') handle old GNU-format incremental backup. This option should only be used when creating an incremental backup of a filesystem. When the `--incremental' (`-G') option is used, `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. Note that this option causes `tar' to create a non-standard archive that may not be readable by non-GNU versions of the `tar' program. The `--incremental' (`-G') option means the archive is an incremental backup. Its meaning depends on the command that it modifies. If the `--incremental' (`-G') option is used with `--list' (`-t'), `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 `Y' if the file is present in the archive, an `N' if the file is not included in the archive, or a `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. If the `--incremental' (`-G') option is used with `--extract' (`--get', `-x'), then when the entry for a directory is found, all files that currently exist in that directory but are not listed in the archive _are deleted from the directory_. 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 `--incremental' (`-G'), the file system will probably fill up with files that shouldn't exist any more. `--listed-incremental=SNAPSHOT-FILE' (`-g SNAPSHOT-FILE') handle new GNU-format incremental backup. This option handles new GNU-format incremental backup. It has much the same effect as `--incremental' (`-G'), but also the time when the dump is done and the list of directories dumped is written to the given FILE. When restoring, only files newer than the saved time are restored, and the direcotyr list is used to speed up operations. `--listed-incremental=SNAPSHOT-FILE' (`-g SNAPSHOT-FILE') acts like `--incremental' (`-G'), but when used in conjunction with `--create' (`-c') will also cause `tar' to use the file 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 `tar'. If the file FILE does not exist when this option is specified, `tar' will create it, and include all appropriate files in the archive. The file, which is archive independent, contains the date it was last modified and a list of devices, inode numbers and directory names. `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. GNU `tar' actually writes the file twice: once before the data and written, and once after.  File: tar.info, Node: Inc Dumps, Next: incremental and listed-incremental, Prev: Full Dumps, Up: Backups Using `tar' to Perform Incremental Dumps ======================================== _(This message will disappear, once this node revised.)_ Performing incremental dumps is similar to performing full dumps, although a few more options will usually be needed. You will need to use the `-N DATE' option to tell `tar' to only store files that have been modified since DATE. DATE should be the date and time of the last full/incremental dump. A standard scheme is to do a _monthly_ (full) dump once a month, a _weekly_ dump once a week of everything since the last monthly and a _daily_ every day of everything since the last (weekly or monthly) dump. 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 `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 _not_ store files that would have gone onto that dump. #!/bin/csh # Dump thingie set now = `date` set then = `cat date.nfs.dump` /u/hack/bin/tar -c -G -v\ -f /dev/rtu20\ -b 126\ -N "$then"\ -V "Dump from $then to $now"\ /alpha-bits/gp\ /gnu/hack\ /hobbes/u\ /spiff/u\ /sugar-bombs/u echo $now > date.nfs.dump mt -f /dev/rtu20 rew Output from this script is stored in a file, for the operator to read later. This script uses the file `date.nfs.dump' to store the date/time of the last dump. 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 `mt' command after the dump is made.  File: tar.info, Node: incremental and listed-incremental, Next: Backup Levels, Prev: Inc Dumps, Up: Backups The Incremental Options ======================= _(This message will disappear, once this node revised.)_ `--incremental' (`-G') is used in conjunction with `--create' (`-c'), `--extract' (`--get', `-x') or `--list' (`-t') when backing up and restoring file systems. An archive cannot be extracted or listed with the `--incremental' (`-G') 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 `--listed-incremental=SNAPSHOT-FILE' (`-g SNAPSHOT-FILE'), which is described below. `--incremental' (`-G') in conjunction with `--create' (`-c') causes `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. Note that this option causes `tar' to create a non-standard archive that may not be readable by non-GNU versions of the `tar' program. `--incremental' (`-G') in conjunction with `--extract' (`--get', `-x') causes `tar' to read the lists of directory contents previously stored in the archive, _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. 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 `--incremental' (`-G') isn't specified, the file system will probably fill up with files that shouldn't exist any more. `--incremental' (`-G') in conjunction with `--list' (`-t'), causes `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 `Y' if the file is present in the archive, an `N' if the file is not included in the archive, or a `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. `--listed-incremental=SNAPSHOT-FILE' (`-g SNAPSHOT-FILE') acts like `--incremental' (`-G'), but when used in conjunction with `--create' (`-c') will also cause `tar' to use the file 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 `tar'. If the file FILE does not exist when this option is specified, `tar' will create it, and include all appropriate files in the archive. The file FILE, which is archive independent, contains the date it was last modified and a list of devices, inode numbers and directory names. `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. 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 `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.  File: tar.info, Node: Backup Levels, Next: Backup Parameters, Prev: incremental and listed-incremental, Up: Backups Levels of Backups ================= _(This message will disappear, once this node revised.)_ An archive containing all the files in the file system is called a "full backup" or "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. It is more efficient to do a full dump only occasionally. To back up files between full dumps, you can a incremental dump. A "level one" dump archives all the files that have changed since the last full dump. 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). GNU `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 `tar' commands by hand. Before you use these scripts, you need to edit the file `backup-specs', which specifies parameters used by the backup scripts and by the restore script. . . Once the backup parameters are set, you can perform backups or restoration by running the appropriate script. The name of the restore script is `restore'. . The names of the level one and full backup scripts are, respectively, `level-1' and `level-0'. The `level-0' script also exists under the name `weekly', and the `level-1' under the name `daily'--these additional names can be changed according to your backup schedule. , for more information on running the restoration script. , for more information on running the backup scripts. _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. . *Note Inc Dumps::, and *Note Inc Dumps::, before making such an attempt.  File: tar.info, Node: Backup Parameters, Next: Scripted Backups, Prev: Backup Levels, Up: Backups Setting Parameters for Backups and Restoration ============================================== _(This message will disappear, once this node revised.)_ The file `backup-specs' specifies backup parameters for the backup and restoration scripts provided with `tar'. You must edit `backup-specs' to fit your system configuration and schedule before using these scripts. , for an explanation of this syntax. `ADMINISTRATOR' The user name of the backup administrator. `BACKUP_HOUR' The hour at which the backups are done. This can be a number from 0 to 23, or the string `now'. `TAPE_FILE' The device `tar' writes the archive to. This device should be attached to the host on which the dump scripts are run. `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'. `BLOCKING' The blocking factor `tar' will use when writing the dump archive. *Note Blocking Factor::. `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. The host name specifies which host to run `tar' on, and should normally be the host that actually contains the file system. However, the host machine must have GNU `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 `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. `BACKUP_FILES' A list of individual files to be dumped. These should be accessible from the machine on which the backup script is run. * Menu: * backup-specs example:: An Example Text of `Backup-specs' * Script Syntax:: Syntax for `Backup-specs'  File: tar.info, Node: backup-specs example, Next: Script Syntax, Prev: Backup Parameters, Up: Backup Parameters An Example Text of `Backup-specs' --------------------------------- _(This message will disappear, once this node revised.)_ The following is the text of `backup-specs' as it appears at FSF: # site-specific parameters for file system backup. ADMINISTRATOR=friedman BACKUP_HOUR=1 TAPE_FILE=/dev/nrsmt0 TAPE_STATUS="mts -t $TAPE_FILE" BLOCKING=124 BACKUP_DIRS=" albert:/fs/fsf apple-gunkies:/gd albert:/fs/gd2 albert:/fs/gp geech:/usr/jla churchy:/usr/roland albert:/ albert:/usr apple-gunkies:/ apple-gunkies:/usr gnu:/hack gnu:/u apple-gunkies:/com/mailer/gnu apple-gunkies:/com/archive/gnu" BACKUP_FILES="/com/mailer/aliases /com/mailer/league*[a-z]"  File: tar.info, Node: Script Syntax, Prev: backup-specs example, Up: Backup Parameters Syntax for `Backup-specs' ------------------------- _(This message will disappear, once this node revised.)_ `backup-specs' is in shell script syntax. The following conventions should be considered when editing the script: 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. A quoted string typically cannot contain wildcards. In `backup-specs', however, the parameters BACKUP_DIRS and BACKUP_FILES can contain wildcards.  File: tar.info, Node: Scripted Backups, Next: Scripted Restoration, Prev: Backup Parameters, Up: Backups Using the Backup Scripts ======================== _(This message will disappear, once this node revised.)_ The syntax for running a backup script is: `script-name' [TIME-TO-BE-RUN] where TIME-TO-BE-RUN can be a specific system time, or can be `now'. If you do not specify a time, the script runs at the time specified in `backup-specs' (). 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 `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. . . The backup scripts write two files on the file system. The first is a record file in `/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. , for a more detailed explanation of this file. 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 `log-MMM-DDD-YYYY-level-1' or `log-MMM-DDD-YYYY-full'. The script also prints the name of each system being dumped to the standard output.  File: tar.info, Node: Scripted Restoration, Prev: Scripted Backups, Up: Backups Using the Restore Script ======================== _(This message will disappear, once this node revised.)_ *Warning:* The GNU `tar' distribution does _not_ provide any such `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. To restore files that were archived using a scripted backup, use the `restore' script. The syntax for the script is: 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. 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. , for a discussion of tape positioning. If you specify `--all' as the FILES argument, the `restore' script extracts all the files in the archived file system into the active file system. *Warning:* The script will delete files from the active file system if they were not in the file system when the archive was made. *Note Inc Dumps::, and *Note Inc Dumps::, for an explanation of how the script makes that determination.  File: tar.info, Node: Choosing, Next: Date input formats, Prev: Backups, Up: Top Choosing Files and Names for `tar' ********************************** _(This message will disappear, once this node revised.)_ Certain options to `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. * 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  File: tar.info, Node: file, Next: Selecting Archive Members, Prev: Choosing, Up: Choosing Choosing and Naming Archive Files ================================= _(This message will disappear, once this node revised.)_ By default, `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 `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 `tar' where to find (or create) the archive. The `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') option allows you to either specify or name a file to use as the archive instead of the default archive file location. `--file=ARCHIVE-NAME' `-f ARCHIVE-NAME' Name the archive to create or operate on. Use in conjunction with any operation. For example, in this `tar' command, $ tar -cvf collection.tar blues folk jazz `collection.tar' is the name of the archive. It must directly follow the `-f' option, since whatever directly follows `-f' _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 `tar' will use this file's name for the archive name. 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. If you do not name the archive, `tar' uses the value of the environment variable `TAPE' as the file name for the archive. If that is not available, `tar' uses a default, compiled-in archive name, usually that for tape unit zero (ie. `/dev/tu00'). `tar' always needs an archive name. If you use `-' as an ARCHIVE-NAME, `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 `-' as an ARCHIVE-NAME when modifying an archive, `tar' reads the original archive from its standard input and writes the entire new archive to its standard output. $ cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -) To specify an archive file on a device attached to a remote machine, use the following: --file=HOSTNAME:/DEV/FILE NAME `tar' will complete the remote connection, if possible, and prompt you for a username and password. If you use `--file=@HOSTNAME:/DEV/FILE NAME', `tar' will complete the remote connection, if possible, using your username as the username on the remote machine. If the archive file name includes a colon (`:'), then it is assumed to be a file on another machine. If the archive file is `USER@HOST:FILE', then FILE is used on the host HOST. The remote host is accessed using the `rsh' program, with a username of USER. If the username is omitted (along with the `@' sign), then your user name will be used. (This is the normal `rsh' behavior.) It is necessary for the remote machine, in addition to permitting your `rsh' access, to have the `/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 `--force-local' option. When the archive is being created to `/dev/null', GNU `tar' tries to minimize input and output operations. The Amanda backup system, when used with GNU `tar', has an initial sizing pass which uses this feature.  File: tar.info, Node: Selecting Archive Members, Next: files, Prev: file, Up: Choosing Selecting Archive Members ========================= "File Name arguments" specify which files in the file system `tar' operates on, when creating or adding to an archive, or which archive members `tar' operates on, when reading or deleting from an archive. *Note Operations::. To specify file names, you can include them as the last arguments on the command line, as follows: tar OPERATION [OPTION1 OPTION2 ...] [FILE NAME-1 FILE NAME-2 ...] If you specify a directory name as a file name argument, all the files in that directory are operated on by `tar'. If you do not specify files when `tar' is invoked with `--create' (`-c'), `tar' operates on all the non-directory files in the working directory. If you specify either `--list' (`-t') or `--extract' (`--get', `-x'), `tar' operates on all the archive members in the archive. If you specify any operation other than one of these three, `tar' does nothing. By default, `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 `tar' selects the files or members upon which to operate; . In general, these methods work both for specifying the names of files and archive members.  File: tar.info, Node: files, Next: exclude, Prev: Selecting Archive Members, Up: Choosing Reading Names from a File ========================= _(This message will disappear, once this node revised.)_ 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 `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES') option to `tar'. Give the name of the file which contains the list of files to include as the argument to `--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 `find' utility. `--files-from=FILE NAME' `-T FILE NAME' Get names to extract or create from file FILE NAME. If you give a single dash as a file name for `--files-from', (i.e., you specify either `--files-from=-' or `-T -'), then the file names are read from standard input. Unless you are running `tar' with `--create', you can not use both `--files-from=-' and `--file=-' (`-f -') in the same command. The following example shows how to use `find' to generate a list of files smaller than 400K in length and put that list into a file called `small-files'. You can then use the `-T' option to `tar' to specify the files from that file, `small-files', to create the archive `little.tgz'. (The `-z' option to `tar' compresses the archive with `gzip'; *note gzip::. for more information.) $ find . -size -400 -print > small-files $ tar -c -v -z -T small-files -f little.tgz * Menu: * nul::  File: tar.info, Node: nul, Prev: files, Up: files `NUL' Terminated File Names --------------------------- The `--null' option causes `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES') to read file names terminated by a `NUL' instead of a newline, so files whose names contain newlines can be archived using `--files-from'. `--null' Only consider `NUL' terminated file names, instead of files that terminate in a newline. The `--null' option is just like the one in GNU `xargs' and `cpio', and is useful with the `-print0' predicate of GNU `find'. In `tar', `--null' also causes `--directory=DIRECTORY' (`-C DIRECTORY') options to be treated as file names to archive, in case there are any files out there called `-C'. This example shows how to use `find' to generate a list of files larger than 800K in length and put that list into a file called `long-files'. The `-print0' option to `find' just just like `-print', except that it separates files with a `NUL' rather than with a newline. You can then run `tar' with both the `--null' and `-T' options to specify that `tar' get the files from that file, `long-files', to create the archive `big.tgz'. The `--null' option to `tar' will cause `tar' to recognize the `NUL' separator between files. $ find . -size +800 -print0 > long-files $ tar -c -v --null --files-from=long-files --file=big.tar  File: tar.info, Node: exclude, Next: Wildcards, Prev: files, Up: Choosing Excluding Some Files ==================== _(This message will disappear, once this node revised.)_ To avoid operating on files whose names match a particular pattern, use the `--exclude=PATTERN' or `--exclude-from=FILE-OF-PATTERNS' (`-X FILE-OF-PATTERNS') options. `--exclude=PATTERN' Causes `tar' to ignore files that match the PATTERN. The `--exclude=PATTERN' option will prevent any file or member which matches the shell wildcards (PATTERN) from being operated on (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 `/tmp' except the file `/tmp/foo', you can use the command `tar --create --file=arch.tar --exclude=foo'. You may give multiple `--exclude' options. `--exclude-from=FILE' `-X FILE' Causes `tar' to ignore files that match the patterns listed in FILE. Use the `--exclude-from=FILE-OF-PATTERNS' option to read a list of shell wildcards, one per line, from FILE; `tar' will ignore files matching those regular expressions. Thus if `tar' is called as `tar -c -X foo .' and the file `foo' contains a single line `*.o', no files whose names end in `.o' will be added to the archive. * Menu: * problems with exclude::  File: tar.info, Node: problems with exclude, Prev: exclude, Up: exclude Problems with Using the `exclude' Options ----------------------------------------- Some users find `exclude' options confusing. Here are some common pitfalls: * The main operating mode of `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 `*.o', but explicitly name the file `catc.o' after all the options have been listed, `catc.o' _will_ be included in the archive. * You can sometimes confuse the meanings of `--exclude=PATTERN' and `--exclude-from=FILE-OF-PATTERNS' (`-X FILE-OF-PATTERNS'). Be careful: use `--exclude=PATTERN' when files to be excluded are given as a pattern on the command line. Use `--exclude-from=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. * When you use `--exclude=PATTERN', be sure to quote the PATTERN parameter, so GNU `tar' sees wildcard characters like `*'. If you do not do this, the shell might expand the `*' itself using files at hand, so `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. For example, write: $ tar -c -f ARCHIVE.TAR -X '*/tmp/*' DIRECTORY rather than: $ tar -c -f ARCHIVE.TAR -X */tmp/* DIRECTORY * You must use use shell syntax, or globbing, rather than `regexp' syntax, when using exclude options in `tar'. If you try to use `regexp' syntax to describe files to be excluded, your command might fail. * In earlier versions of `tar', what is now the `--exclude-from=FILE-OF-PATTERNS' option was called `--exclude-PATTERN' instead. Now, `--exclude=PATTERN' applies to patterns listed on the command line and `--exclude-from=FILE-OF-PATTERNS' applies to patterns listed in a file.  File: tar.info, Node: Wildcards, Next: after, Prev: exclude, Up: Choosing Wildcards Patterns and Matching =============================== "Globbing" is the operation by which "wildcard" characters, `*' or `?' for example, are replaced and expanded into all existing files matching the given pattern. However, `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 `tar' archives. This section has the purpose of explaining wildcard syntax for `tar'. A 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: `a' will match only `a', and not `A'. The character `?' in the pattern matches any single character in the matched string. The character `*' in the pattern matches zero, one, or more single characters in the matched string. The character `\' says to take the following character of the pattern _literally_; it is useful when one needs to match the `?', `*', `[' or `\' characters, themselves. The character `[', up to the matching `]', introduces a character class. A "character class" is a list of acceptable characters for the next single character of the matched string. For example, `[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 `\' lose their special meaning; for example, `[-\\[*?]]' would match any of the characters, `-', `\', `[', `*', `?', or `]'. (Due to parsing constraints, the characters `-' and `]' must either come _first_ or _last_ in a character class.) If the first character of the class after the opening `[' is `!' or `^', then the meaning of the class is reversed. Rather than listing character to match, it lists those characters which are _forbidden_ as the next single character of the matched string. Other characters of the class stand for themselves. The special construction `[A-E]', using an hyphen between two letters, is meant to represent all characters between A and E, inclusive. Periods (`.') or forward slashes (`/') 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. There are some discussions floating in the air and asking for modifications in the way GNU `tar' accomplishes wildcard matches. We perceive any change of semantics in this area as a delicate thing to impose on GNU `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 _possible_ that slight amendments be later brought to the previous description. Your opinions on the matter are welcome.  File: tar.info, Node: after, Next: recurse, Prev: Wildcards, Up: Choosing Operating Only on New Files =========================== _(This message will disappear, once this node revised.)_ The `--after-date=DATE' (`--newer=DATE', `-N DATE') option causes `tar' to only work on files whose modification or inode-changed times are newer than the DATE given. If you use this option when creating or appending to an archive, the archive will only include new files. If you use `--after-date' when extracting an archive, `tar' will only extract files newer than the DATE you specify. If you only want `tar' to make the date comparison based on modification of the actual contents of the file (rather than inode changes), then use the `--newer-mtime=DATE' option. You may use these options with any operation. Note that these options differ from the `--update' (`-u') operation in that they allow you to specify a particular date against which `tar' can compare when deciding whether or not to archive the files. `--after-date=DATE' `--newer=DATE' `-N DATE' Only store files newer than DATE. Acts on files only if their modification or inode-changed times are later than DATE. Use in conjunction with any operation. `--newer-mtime=DATE' Acts like `--after-date=DATE' (`--newer=DATE', `-N DATE'), but only looks at modification times. These options limit `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 *Note Date input formats::; remember that the entire date argument must be quoted if it contains any spaces.) Gurus would say that `--after-date=DATE' (`--newer=DATE', `-N DATE') tests both the `mtime' (time the contents of the file were last modified) and `ctime' (time the file's status was last changed: owner, permissions, etc) fields, while `--newer-mtime=DATE' tests only `mtime' field. To be precise, `--after-date=DATE' (`--newer=DATE', `-N DATE') checks _both_ `mtime' and `ctime' and processes the file if either one is more recent than DATE, while `--newer-mtime=DATE' only checks `mtime' and disregards `ctime'. Neither uses `atime' (the last time the contents of the file were looked at). 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. *Please Note:* `--after-date=DATE' (`--newer=DATE', `-N DATE') and `--newer-mtime=DATE' should not be used for incremental backups. Some files (such as those in renamed directories) are not selected properly by these options. *Note incremental and listed-incremental::. To select files newer than the modification time of a file that already exists, you can use the `--reference' (`-r') option of GNU `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 `--newer' uses to determine which files to archive. For example, you could say, $ tar -cf ARCHIVE.TAR --newer="`date -r FILE`" /home which tells .  File: tar.info, Node: recurse, Next: one, Prev: after, Up: Choosing Descending into Directories =========================== _(This message will disappear, once this node revised.)_ Usually, `tar' will recursively explore all directories (either those given on the command line or through the `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES') option) for the various files they contain. However, you may not always want `tar' to act this way. The `--no-recursion' option inhibits `tar''s recursive descent into specified directories. If you specify `--no-recursion', you can use the `find' utility for hunting through levels of directories to construct a list of file names which you could then pass to `tar'. `find' allows you to be more selective when choosing which files to archive; see *Note files:: for more information on using `find' with `tar', or look. `--no-recursion' Prevents `tar' from recursively descending directories. When you use `--no-recursion', GNU `tar' grabs directory entries themselves, but does not descend on them recursively. Many people use `find' for locating files they want to back up, and since `tar' _usually_ recursively descends on directories, they have to use the `! -d' option to `find' as they usually do not want all the files in a directory. They then use the {No Value For "op-file-from"} option to archive the files located via `find'. The problem when restoring files archived in this manner is that the directories themselves are not in the archive; so the `--same-permissions' (`--preserve-permissions', `-p') option does not affect them--while users might really like it to. Specifying `--no-recursion' is a way to tell `tar' to grab only the directory entries given to it, adding no new files on its own.  File: tar.info, Node: one, Prev: recurse, Up: Choosing Crossing Filesystem Boundaries ============================== _(This message will disappear, once this node revised.)_ `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 `tar' and specifying `--one-file-system' (`-l'). This option only affects files that are archived because they are in a directory that is being archived; `tar' will still archive files explicitly named on the command line or through `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES'), regardless of where they reside. `--one-file-system' `-l' Prevents `tar' from crossing file system boundaries when archiving. Use in conjunction with any write operation. The `--one-file-system' option causes `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 `tar' will not archive that file. If the file is a directory itself, `tar' will not archive anything beneath it; in other words, `tar' will not cross mount points. It is reported that using this option, the mount point is is archived, but nothing under it. This option is useful for making full or incremental archival backups of a file system. If this option is used in conjunction with `--verbose' (`-v'), files that are excluded are mentioned by name on the standard error. * Menu: * directory:: Changing Directory * absolute:: Absolute File Names  File: tar.info, Node: directory, Next: absolute, Prev: one, Up: one Changing the Working Directory ------------------------------ _(This message will disappear, once this node revised.)_ 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 `--files-from=FILE-OF-NAMES' (`-T FILE-OF-NAMES'), use `--directory=DIRECTORY' (`-C DIRECTORY'). This will change the working directory to the directory DIRECTORY after that point in the list. `--directory=DIRECTORY' `-C DIRECTORY' Changes the working directory in the middle of a command line. For example, $ tar -c -f jams.tar grape prune -C food cherry will place the files `grape' and `prune' from the current directory into the archive `jams.tar', followed by the file `cherry' from the directory `food'. This option is especially useful when you have several widely separated files that you want to store in the same archive. Note that the file `cherry' is recorded in the archive under the precise name `cherry', _not_ `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 `tar --extract', all three files will be written in the current directory. Contrast this with the command, $ tar -c -f jams.tar grape prune -C food red/cherry which records the third file in the archive under the name `red/cherry' so that, if the archive is extracted using `tar --extract', the third file will be written in a subdirectory named `orange-colored'. You can use the `--directory' option to make the archive independent of the original name of the directory holding the files. The following command places the files `/etc/passwd', `/etc/hosts', and `/lib/libc.a' into the archive `foo.tar': $ tar -c -f foo.tar -C /etc passwd hosts -C /lib libc.a However, the names of the archive members will be exactly what they were on the command line: `passwd', `hosts', and `libc.a'. They will not appear to be related by file name to the original directories where those files were located. Note that `--directory' options are interpreted consecutively. If `--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 `tar', due to a previous `--directory' option. When using `--files-from' (*note files::.), you can put `-C' options in the file list. Unfortunately, you cannot put `--directory' options in the file list. (This interpretation can be disabled by using the `--null' option.)  File: tar.info, Node: absolute, Prev: directory, Up: one Absolute File Names ------------------- _(This message will disappear, once this node revised.)_ `-P' `--absolute-names' Do not strip leading slashes from file names. By default, GNU `tar' drops a leading `/' on input or output. This option turns off this behavior; it is equivalent to changing to the root directory before running `tar' (except it also turns off the usual warning message). When `tar' extracts archive members from an archive, it strips any leading slashes (`/') 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 `/etc/passwd', `tar' will extract it as if the name were really `etc/passwd'. Other `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 `tar' program to use. Therefore, GNU `tar' also strips leading slashes from member names when putting members into the archive. For example, if you ask `tar' to add the file `/bin/ls' to an archive, it will do so, but the member name will be `bin/ls'. If you use the `--absolute-names' (`-P') option, `tar' will do neither of these transformations. To archive or extract files relative to the root directory, specify the `--absolute-names' (`-P') option. Normally, `tar' acts on files relative to the working directory--ignoring superior directory names when archiving, and ignoring leading slashes when extracting. When you specify `--absolute-names' (`-P'), `tar' stores file names including all superior directory names, and preserves leading slashes. If you only invoked `tar' from the root directory you would never need the `--absolute-names' (`-P') option, but using this option may be more convenient than switching to root. `--absolute-names' Preserves full file names (inclusing superior dirctory names) when archiving files. Preserves leading slash when extracting files. `tar' prints out a message about removing the `/' from file names. This message appears once per GNU `tar' invocation. It represents something which ought to be told; ignoring what it means can cause very serious surprises, later. Some people, nevertheless, do not want to see this message. Wanting to play really dangerously, one may of course redirect `tar' standard error to the sink. For example, under `sh': $ tar -c -f archive.tar /home 2> /dev/null Another solution, both nicer and simpler, would be to change to the `/' directory first, and then avoid absolute notation. For example: $ (cd / && tar -c -f archive.tar home) $ tar -c -f archive.tar -C / home tar-1.13/doc/tar.info-50000444000176300016070000013252106737251615010302 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Date input formats, Next: Formats, Prev: Choosing, Up: Top Date input formats ****************** 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. ... 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. ... -- Robert Grudin, `Time and the Art of Living'. 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 `getdate' function) is not described here. 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. * 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.  File: tar.info, Node: General date syntax, Next: Calendar date item, Prev: Date input formats, Up: Date input formats General date syntax =================== A "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: * calendar date items * time of the day items * time zone items * day of the week items * relative items * pure numbers. We describe each of these item types in turn, below. 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: `first' for 1, `next' for 2, `third' for 3, `fourth' for 4, `fifth' for 5, `sixth' for 6, `seventh' for 7, `eighth' for 8, `ninth' for 9, `tenth' for 10, `eleventh' for 11 and `twelfth' for 12. Also, `last' means exactly -1. 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. 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.  File: tar.info, Node: Calendar date item, Next: Time of day item, Prev: General date syntax, Up: Date input formats Calendar date item ================== A "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: 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 The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: 9/17 sep 17 Here are the rules. For numeric months, the ISO 8601 format `YEAR-MONTH-DAY' is allowed, where YEAR is any positive number, MONTH is a number between 01 and 12, and DAY is a number between 01 and 31. A leading zero must be present if a number is less than ten. If YEAR is less than 100, then 1900 is added to it to force a date in this century. The construct `MONTH/DAY/YEAR', popular in the United States, is accepted. Also `MONTH/DAY', omitting the year. Literal months may be spelled out in full: `January', `February', `March', `April', `May', `June', `July', `August', `September', `October', `November' or `December'. Literal months may be abbreviated to their first three letters, possibly followed by an abbreviating dot. It is also permitted to write `Sept' instead of `September'. When months are written literally, the calendar date may be given as any of the following: DAY MONTH YEAR DAY MONTH MONTH DAY YEAR DAY-MONTH-YEAR Or, omitting the year: MONTH DAY  File: tar.info, Node: Time of day item, Next: Timezone item, Prev: Calendar date item, Up: Date input formats Time of day item ================ A "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: 20:02:0 20:02 8:02pm 20:02-0500 # In EST (Eastern U.S. Standard Time). More generally, the time of the day may be given as `HOUR:MINUTE:SECOND', where HOUR is a number between 0 and 23, MINUTE is a number between 0 and 59, and SECOND is a number between 0 and 59. Alternatively, `:SECOND' can be omitted, in which case it is taken to be zero. If the time is followed by `am' or `pm' (or `a.m.' or `p.m.'), HOUR is restricted to run from 1 to 12, and `:MINUTE' may be omitted (taken to be zero). `am' indicates the first half of the day, `pm' indicates the second half of the day. In this notation, 12 is the predecessor of 1: midnight is `12am' while noon is `12pm'. (This is the zero-oriented interpretation of `12am' and `12pm', as opposed to the old tradition derived from Latin which uses `12m' for noon and `12pm' for midnight.) The time may alternatively be followed by a timezone correction, expressed as `SHHMM', where S is `+' or `-', HH is a number of zone hours and 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 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. Either `am'/`pm' or a timezone correction may be specified, but not both.  File: tar.info, Node: Timezone item, Next: Day of week item, Prev: Time of day item, Up: Date input formats Timezone item ============= A "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. Here are many non-daylight-savings-time timezones, indexed by the zone hour value. +000 `GMT' for Greenwich Mean, `UT' or `UTC' for Universal (Coordinated), `WET' for Western European and `Z' for militaries. +100 `WAT' for West Africa and `A' for militaries. +200 `AT' for Azores and `B' for militaries. +300 `C' for militaries. +400 `AST' for Atlantic Standard and `D' for militaries. +500 `E' for militaries and `EST' for Eastern Standard. +600 `CST' for Central Standard and `F' for militaries. +700 `G' for militaries and `MST' for Mountain Standard. +800 `H' for militaries and `PST' for Pacific Standard. +900 `I' for militaries and `YST' for Yukon Standard. +1000 `AHST' for Alaska-Hawaii Standard, `CAT' for Central Alaska, `HST' for Hawaii Standard and `K' for militaries. +1100 `L' for militaries and `NT' for Nome. +1200 `IDLW' for International Date Line West and `M' for militaries. -100 `CET' for Central European, `FWT' for French Winter, `MET' for Middle European, `MEWT' for Middle European Winter, `N' for militaries and `SWT' for Swedish Winter. -200 `EET' for Eastern European, USSR Zone 1 and `O' for militaries. -300 `BT' for Baghdad, USSR Zone 2 and `P' for militaries. -400 `Q' for militaries and `ZP4' for USSR Zone 3. -500 `R' for militaries and `ZP5' for USSR Zone 4. -600 `S' for militaries and `ZP6' for USSR Zone 5. -700 `T' for militaries and `WAST' for West Australian Standard. -800 `CCT' for China Coast, USSR Zone 7 and `U' for militaries. -900 `JST' for Japan Standard, USSR Zone 8 and `V' for militaries. -1000 `EAST' for East Australian Standard, `GST' for Guam Standard, USSR Zone 9 and `W' for militaries. -1100 `X' for militaries. -1200 `IDLE' for International Date Line East, `NZST' for New Zealand Standard, `NZT' for New Zealand and `Y' for militaries. Here are many DST timezones, indexed by the zone hour value. Also, by following a non-DST timezone by the string `DST' in a separate word (that is, separated by some whitespace), the corresponding DST timezone may be specified. 0 `BST' for British Summer. +400 `ADT' for Atlantic Daylight. +500 `EDT' for Eastern Daylight. +600 `CDT' for Central Daylight. +700 `MDT' for Mountain Daylight. +800 `PDT' for Pacific Daylight. +900 `YDT' for Yukon Daylight. +1000 `HDT' for Hawaii Daylight. -100 `MEST' for Middle European Summer, `MESZ' for Middle European Summer, `SST' for Swedish Summer and `FST' for French Summer. -700 `WADT' for West Australian Daylight. -1000 `EADT' for Eastern Australian Daylight. -1200 `NZDT' for New Zealand Daylight.  File: tar.info, Node: Day of week item, Next: Relative item in date strings, Prev: Timezone item, Up: Date input formats Day of week item ================ 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. Days of the week may be spelled out in full: `Sunday', `Monday', `Tuesday', `Wednesday', `Thursday', `Friday' or `Saturday'. Days may be abbreviated to their first three letters, optionally followed by a period. The special abbreviations `Tues' for `Tuesday', `Wednes' for `Wednesday' and `Thur' or `Thurs' for `Thursday' are also allowed. A number may precede a day of the week item to move forward supplementary weeks. It is best used in expression like `third monday'. In this context, `last DAY' or `next DAY' is also acceptable; they move one week before or after the day that DAY by itself would represent. A comma following a day of the week item is ignored.  File: tar.info, Node: Relative item in date strings, Next: Pure numbers in date strings, Prev: Day of week item, Up: Date input formats Relative item in date strings ============================= "Relative items" adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples: 1 year 1 year ago 3 years 2 days The unit of time displacement may be selected by the string `year' or `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 `fortnight' which is worth 14 days, `week' worth 7 days, `day' worth 24 hours, `hour' worth 60 minutes, `minute' or `min' worth 60 seconds, and `second' or `sec' worth one second. An `s' suffix on these units is accepted and ignored. 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 `ago' is equivalent to preceding the unit by a multiplicator with value -1. The string `tomorrow' is worth one day in the future (equivalent to `day'), the string `yesterday' is worth one day in the past (equivalent to `day ago'). The strings `now' or `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 `12:00 today'. The string `this' also has the meaning of a zero-valued time displacement, but is preferred in date strings like `this thursday'. 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.  File: tar.info, Node: Pure numbers in date strings, Next: Authors of getdate, Prev: Relative item in date strings, Up: Date input formats Pure numbers in date strings ============================ The precise intepretation of a pure decimal number is dependent of the context in the date string. If the decimal number is of the form YYYYMMDD and no other calendar date item (*note Calendar date item::.) appears before it in the date string, then YYYY is read as the year, MM as the month number and DD as the day of the month, for the specified calendar date. If the decimal number is of the form HHMM and no other time of day item appears before it in the date string, then HH is read as the hour of the day and MM as the minute of the hour, for the specified time of the day. MM can also be omitted. 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.  File: tar.info, Node: Authors of getdate, Prev: Pure numbers in date strings, Up: Date input formats Authors of `getdate' ==================== `getdate' was originally implemented by Steven M. Bellovin (`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 (`rsalz@bbn.com') and Jim Berets (`jberets@bbn.com') in August, 1990. Various revisions for the GNU system were made by David MacKenzie, Jim Meyering, and others. This chapter was originally produced by Franc,ois Pinard (`pinard@iro.umontreal.ca') from the `getdate.y' source code, and then edited by K. Berry (`kb@cs.umb.edu').  File: tar.info, Node: Formats, Next: Media, Prev: Date input formats, Up: Top Controlling the Archive Format ****************************** * Menu: * Portability:: Making `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 `tar' and `cpio'  File: tar.info, Node: Portability, Next: Compression, Prev: Formats, Up: Formats Making `tar' Archives More Portable =================================== Creating a `tar' archive on a particular system that is meant to be useful later on many other machines and with other versions of `tar' is more challenging than you might think. `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 `tar' archives more portable. One golden rule is simplicity. For example, limit your `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. * Menu: * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems  File: tar.info, Node: Portable Names, Next: dereference, Prev: Portability, Up: Portability Portable Names -------------- Use _straight_ file and directory names, made up of printable ASCII characters, avoiding colons, slashes, backslashes, spaces, and other _dangerous_ characters. Avoid deep directory nesting. Accounting for oldish System V machines, limit your file and directory names to 14 characters or less. If you intend to have your `tar' archives to be read under MSDOS, you should not rely on case distinction for file names, and you might use the GNU `doschk' program for helping you further diagnosing illegal MSDOS names, which are even more limited than System V's.  File: tar.info, Node: dereference, Next: old, Prev: Portable Names, Up: Portability Symbolic Links -------------- Normally, when `tar' archives a symbolic link, it writes a block to the archive naming the target of the link. In that way, the `tar' archive is a faithful record of the filesystem contents. `--dereference' (`-h') is used with `--create' (`-c'), and causes `tar' to archive the files symbolic links point to, instead of the links themselves. When this option is used, when `tar' encounters a symbolic link, it will archive the linked-to file, instead of simply recording the presence of a symbolic link. 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 `tar', an extracted file might be linked to a file name that no longer exists in the file system. If a linked-to file is encountered again by `tar' while creating the same archive, an entire second copy of it will be stored. (This _might_ be considered a bug.) So, for portable archives, do not archive symbolic links as such, and use `--dereference' (`-h'): many systems do not support symbolic links, and moreover, your distribution might be unusable if it contains unresolved symbolic links.  File: tar.info, Node: old, Next: posix, Prev: dereference, Up: Portability Old V7 Archives --------------- Certain old versions of `tar' cannot handle additional information recorded by newer `tar' programs. To create an archive in V7 format (not ANSI), which can be read by these old versions, specify the `--old-archive' (`-o') option in conjunction with the `--create' (`-c'). `tar' also accepts `--portability' for this option. When you specify it, `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. When updating an archive, do not use `--old-archive' (`-o') unless the archive was created with using this option. In most cases, a _new_ format archive can be read by an _old_ `tar' program without serious trouble, so this option should seldom be needed. On the other hand, most modern `tar's are able to read old format archives, so it might be safer for you to always use `--old-archive' (`-o') for your distributions.  File: tar.info, Node: posix, Next: Checksumming, Prev: old, Up: Portability GNU `tar' and POSIX `tar' ------------------------- GNU `tar' was based on an early draft of the POSIX 1003.1 `ustar' standard. GNU extensions to `tar', such as the support for file names longer than 100 characters, use portions of the `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 `tar' is incompatible with the current POSIX spec, and with `tar' programs that follow it. We plan to reimplement these GNU extensions in a new way which is upward compatible with the latest POSIX `tar' format, but we don't know when this will be done. In the mean time, there is simply no telling what might happen if you read a GNU `tar' archive, which uses the GNU extensions, using some other `tar' program. So if you want to read the archive with another `tar' program, be sure to write it using the `--old-archive' option (`-o'). Traditionally, old `tar's have a limit of 100 characters. GNU `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 `@MaNgLeD@' file names, or such; while a second approach used `././@LongLink' and other tricks, yielding better success. In theory, GNU `tar' should be able to handle file names of practically unlimited length. So, if GNU `tar' fails to dump and retrieve files having more than 100 characters, then there is a bug in GNU `tar', indeed. But, being strictly POSIX, the limit was still 100 characters. For various other purposes, GNU `tar' used areas left unassigned in the POSIX draft. POSIX later revised P1003.1 `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 `tar' use the same fields for quite other purposes, it became incompatible with the latest POSIX standards. 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 `tar' extension format or POSIX extensions, would it be for very long file names or other specialities, this archive becomes non-portable to other `tar' implementations. In fact, anything can happen. The most forgiving `tar's will merely unpack the file using a wrong name, and maybe create another file named something like `@LongName', with the true file name in it. `tar's not protecting themselves may segment violate! Compatibility concerns make all this thing more difficult, as we will have to support _all_ these things together, for a while. GNU `tar' should be able to produce and read true POSIX format files, while being able to detect old GNU `tar' formats, besides old V7 format, and process them conveniently. It would take years before this whole area stabilizes... 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 `tar' will go non-POSIX again, or merely refuse to archive the file. There are plans so GNU `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 `/' and `' means). There are also some points which the standard does not make clear, Existing practice will then drive what I should do. POSIX mandates that, when a file name cannot fit within 100 to 256 characters (the variance comes from the fact a `/' 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 _not_ be stored. Unless some `--posix' option is given (or `POSIXLY_CORRECT' is set), I suspect that GNU `tar' should disobey this specification, and automatically switch to using GNU extensions to overcome file name or link name length limitations. 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 `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 `tar' should produce POSIX format by default, whenever possible, producing archives older versions of GNU `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 `tar' to go closer to POSIX. We can rush it. Another possibility is to produce the current GNU `tar' format by default for a few years, but have GNU `tar' versions from some 1.POSIX and up able to recognize all three formats, and let older GNU `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 `tar' versions prior to 1.POSIX. 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 `--posix' or `POSIXLY_CORRECT'. Otherwise, if `tar' is given long names, or `-[VMSgG]', then it should automatically go non-POSIX. I think this is easily granted without much discussion. Another point is that only `mtime' is stored in POSIX archives, while GNU `tar' currently also store `atime' and `ctime'. If we want GNU `tar' to go closer to POSIX, my choice would be to drop `atime' and `ctime' support on average. On the other hand, I perceive that full dumps or incremental dumps need `atime' and `ctime' support, so for those special applications, POSIX has to be avoided altogether. A few users requested that `--sparse' (`-S') be always active by default, I think that before replying to them, we have to decide if we want GNU `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 `--sparse' (`-S') would become selected by default when producing such archives, whatever the reason is. So, `--sparse' (`-S') alone might be redefined to force GNU-format archives, and recover its previous meaning from this fact. GNU-format as it exists now can easily fool other POSIX `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 `ctime', `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 `tar's. So other POSIX `tar's might be at least able to provide kind of correct listings for the archives produced by GNU `tar', if not able to process them otherwise. Using these projected extensions might induce older `tar's to fail. We would use the same approach as for POSIX. I'll put out a `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 `tar's will have flooded out `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 `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 `tar' for both changes, without effecting them, from 1.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). So, a future `tar' will have a `--posix' flag forcing the usage of truly POSIX headers, and so, producing archives previous GNU `tar' will not be able to read. So, _once_ pretest will announce that feature, it would be particularly useful that users test how exchangeable will be archives between GNU `tar' with `--posix' and other POSIX `tar'. In a few years, when GNU `tar' will produce POSIX headers by default, `--posix' will have a strong meaning and will disallow GNU extensions. But in the meantime, for a long while, `--posix' in GNU tar will not disallow GNU extensions like `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL'), `--multi-volume' (`-M'), `--sparse' (`-S'), or very long file or link names. However, `--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 `tar's will react to these. GNU `tar' prior to 1.POSIX, and after 1.POSIX without `--posix', generates and checks `ustar ', with two suffixed spaces. This is sufficient for older GNU `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 `tar' has other POSIX incompatibilities, and I need to segregate GNU `tar' semi-POSIX archives from truly POSIX archives, for GNU `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.  File: tar.info, Node: Checksumming, Prev: posix, Up: Portability Checksumming Problems --------------------- SunOS and HP-UX `tar' fail to accept archives created using GNU `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 `tar' uses unsigned checksums while creating archives, as per POSIX standards. On reading, GNU `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. GNU `tar' compute checksums both ways, and accept any on read, so GNU tar can read Sun tapes even with their wrong checksums. GNU `tar' produces the standard checksum, however, raising incompatibilities with Sun. That is to say, GNU `tar' has not been modified to _produce_ incorrect archives to be read by buggy `tar''s. I've been told that more recent Sun `tar' now read standard archives, so maybe Sun did a similar patch, after all? The story seems to be that when Sun first imported `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 `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 `tar' archives to be compatible with Sun's. The current standards do not favor Sun `tar' format. In any case, it now falls on the shoulders of SunOS and HP-UX users to get a `tar' able to read the good archives they receive.  File: tar.info, Node: Compression, Next: Attributes, Prev: Portability, Up: Formats Using Less Space through Compression ==================================== * Menu: * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files  File: tar.info, Node: gzip, Next: sparse, Prev: Compression, Up: Compression Creating and Reading Compressed Archives ---------------------------------------- _(This message will disappear, once this node revised.)_ `-z' `--gzip' `--ungzip' Filter the archive through `gzip'. Some format parameters must be taken into consideration when modifying an archive: . Compressed archives cannot be modified. You can use `--gzip' and `--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 `tar' program to enforce the specified (or default) record size. The default compression parameters are used; if you need to override them, avoid the `--gzip' (`--gunzip', `--ungzip', `-z') option and run `gzip' explicitly. (Or set the `GZIP' environment variable.) The `--gzip' (`--gunzip', `--ungzip', `-z') option does not work with the `--multi-volume' (`-M') option, or with the `--update' (`-u'), `--append' (`-r'), `--concatenate' (`--catenate', `-A'), or `--delete' operations. It is not exact to say that GNU `tar' is to work in concert with `gzip' in a way similar to `zip', say. Surely, it is possible that `tar' and `gzip' be done with a single call, like in: $ tar cfz archive.tar.gz subdir to save all of `subdir' into a `gzip''ed archive. Later you can do: $ tar xfz archive.tar.gz to explode and unpack. The difference is that the whole archive is compressed. With `zip', archive members are archived individually. `tar''s method yields better compression. On the other hand, one can view the contents of a `zip' archive without having to decompress it. As for the `tar' and `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: $ tar tfz archive.tar.gz About corrupted compressed archives: `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. There are pending suggestions for having a per-volume or per-file compression in GNU `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! `-Z' `--compress' `--uncompress' Filter the archive through `compress'. Otherwise like `--gzip' (`--gunzip', `--ungzip', `-z'). `--use-compress-program=PROG' Filter through PROG (must accept `-d'). `--compress' (`--uncompress', `-Z') 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. `--compress' (`--uncompress', `-Z') causes `tar' to compress when writing the archive, or to uncompress when reading the archive. To perform compression and uncompression on the archive, `tar' runs the `compress' utility. `tar' uses the default compression parameters; if you need to override them, avoid the `--compress' (`--uncompress', `-Z') option and run the `compress' utility explicitly. It is useful to be able to call the `compress' utility from within `tar' because the `compress' utility by itself cannot access remote tape drives. The `--compress' (`--uncompress', `-Z') option will not work in conjunction with the `--multi-volume' (`-M') option or the `--append' (`-r'), `--update' (`-u'), `--append' (`-r') and `--delete' operations. *Note Operations::, for more information on these operations. If there is no compress utility available, `tar' will report an error. *Please note* that the `compress' program may be covered by a patent, and therefore we recommend you stop using it. `--compress' `--uncompress' `-z' `-Z' When this option is specified, `tar' will compress (when writing an archive), or uncompress (when reading an archive). Used in conjunction with the `--create' (`-c'), `--extract' (`--get', `-x'), `--list' (`-t') and `--compare' (`--diff', `-d') operations. You can have archives be compressed by using the `--gzip' (`--gunzip', `--ungzip', `-z') option. This will arrange for `tar' to use the `gzip' program to be used to compress or uncompress the archive wren writing or reading it. To use the older, obsolete, `compress' program, use the `--compress' (`--uncompress', `-Z') option. The GNU Project recommends you not use `compress', because there is a patent covering the algorithm it uses. You could be sued for patent infringment merely by running `compress'. 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 `--gzip' (`--gunzip', `--ungzip', `-z'), but I'd also like the output to be fed through a program like GNU `ecc' (actually, right now that's `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 `tar' through `ecc', but then I lose (though I haven't started using it yet, I confess) the ability to have `tar' use `rmt' for it's I/O (I think). 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. By the way, I like `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 `loc@soliton.com', May 1995). Isn't that exactly the role of the `--use-compress-prog=PROGRAM' option? I never tried it myself, but I suspect you may want to write a PROG script or program able to filter stdin to stdout to way you want. It should recognize the `-d' option, for when extraction is needed rather than creation. It has been reported that if one writes compressed data (through the `--gzip' (`--gunzip', `--ungzip', `-z') or `--compress' (`--uncompress', `-Z') 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.  File: tar.info, Node: sparse, Prev: gzip, Up: Compression Archiving Sparse Files ---------------------- _(This message will disappear, once this node revised.)_ `-S' `--sparse' Handle sparse files efficiently. This option causes all files to be put in the archive to be tested for sparseness, and handled specially if they are. The `--sparse' (`-S') option is useful when many `dbm' files, for example, are being backed up. Using this option dramatically decreases the amount of space needed to store such a file. 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. 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, `tar' could create an archive longer than the original. To have `tar' attempt to recognize the holes in a file, use `--sparse' (`-S'). When you use the `--sparse' (`-S') option, then, for any file using less disk space than would be expected from its length, `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 `--sparse' (`-S') is not needed on extraction) any such files have hols created wherever the continuous stretches of zeros were found. Thus, if you use `--sparse' (`-S'), `tar' archives won't take more space than the original. 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 `--sparse' (`-S') option in conjunction with the `--create' (`-c') operation, `tar' tests all files for sparseness while archiving. If `tar' finds a file to be sparse, it uses a sparse representation of the file in the archive. *Note create::, for more information about creating archives. `--sparse' (`-S') 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. *Please Note:* Always use `--sparse' (`-S') when performing file system backups, to avoid archiving the expanded forms of files stored sparsely in the system. Even if your system has no sparse files currently, some may be created in the future. If you use `--sparse' (`-S') 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). `tar' ignores the `--sparse' (`-S') option when reading an archive. `--sparse' `-S' Files stored sparsely in the file system are represented sparsely in the archive. Use in conjunction with write operations. However, users should be well aware that at archive creation time, GNU `tar' still has to read whole disk file to locate the "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 `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.) This reading is required in all cases and is not related to the fact the `--sparse' (`-S') option is used or not, so by merely _not_ using the option, you are not saving time(1). Programs like `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 `tar' uses a more portable and straightforward archiving approach, it would be fairly difficult that it does otherwise. Elizabeth Zwicky writes to `comp.unix.internals', on 1990-12-10: What I did say is that you cannot tell the difference between a hole and an equivalent number of nulls without reading raw blocks. `st_blocks' at best tells you how many holes there are; it doesn't tell you _where_. Just as programs may, conceivably, care what `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). 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. ---------- Footnotes ---------- (1) Well! We should say the whole truth, here. When `--sparse' (`-S') is selected while creating an archive, the current `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. tar-1.13/doc/tar.info-60000444000176300016070000013341106737251615010302 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Attributes, Next: Standard, Prev: Compression, Up: Formats Handling File Attributes ======================== _(This message will disappear, once this node revised.)_ When `tar' reads files, this causes them to have the access times updated. To have `tar' attempt to set the access times back to what they were before they were read, use the `--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 (*note Backups::.), but it is good enough for some purposes. Handling of file attributes `--atime-preserve' Do not change access times on dumped files. `-m' `--touch' Do not extract file modified time. When this option is used, `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. This option is meaningless with `--list' (`-t'). `--same-owner' Create extracted files with the same ownership they have in the archive. When using super-user at extraction time, ownership is always restored. So, this option is meaningful only for non-root users, when `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 `suid' or `sgid' attributes of files are easily and silently lost when files are given away. When writing an archive, `tar' writes the user id and user name separately. If it can't find a user name (because the user id is not in `/etc/passwd'), then it does not write one. When restoring, and doing a `chmod' like when you use `--same-permissions' (`--preserve-permissions', `-p') (), it tries to look the name (if one was written) up in `/etc/passwd'. If it fails, then it uses the user id stored in the archive instead. `--numeric-owner' The `--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. 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. The numeric ids are _always_ saved into `tar' archives. The identifying names are added at create time when provided by the system, unless `--old-archive' (`-o') 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. When making a `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 `tar' archive out of this directory, before cleaning everything out. Of course, we could add a lot of options to GNU `tar' for fine tuning permissions and ownership. This is not the good way, I think. GNU `tar' is already crowded with options and moreover, the approach just explained gives you a great deal of control already. `-p' `--same-permissions' `--preserve-permissions' Extract all protection information. This option causes `tar' to set the modes (access permissions) of extracted files exactly as recorded in the archive. If this option is not used, the current `umask' setting limits the permissions on extracted files. This option is meaningless with `--list' (`-t'). `--preserve' Same as both `--same-permissions' (`--preserve-permissions', `-p') and `--same-order' (`--preserve-order', `-s'). The `--preserve' option has no equivalent short option name. It is equivalent to `--same-permissions' (`--preserve-permissions', `-p') plus `--same-order' (`--preserve-order', `-s').  File: tar.info, Node: Standard, Next: Extensions, Prev: Attributes, Up: Formats The Standard Format =================== _(This message will disappear, once this node revised.)_ 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 `tar' utility or Tar mode in GNU Emacs. 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 "archive member"), and consists of a file header and the contents of the file. File headers contain file names and statistics, checksum information which `tar' uses to detect file corruption, and information about file types. 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 *Note update::, and to learn more about having more than one archive member with the same name, see . In addition to entries describing archive members, an archive may contain entries which `tar' itself uses to store information. *Note label::, for an example of such an archive entry. A `tar' archive file contains a series of blocks. Each block contains `BLOCKSIZE' bytes. Although this format may be thought of as being on magnetic tape, other media are often used. 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. The blocks may be "blocked" for physical I/O operations. Each record of N blocks (where N is set by the `--blocking-factor=512-SIZE' (`-b 512-SIZE') option to `tar') is written with a single `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. The header block is defined in C as follows. In the GNU `tar' distribution, this is part of file `src/tar.h': /* GNU tar Archive Format description. */ /* If OLDGNU_COMPATIBILITY is not zero, tar produces archives which, by default, are readable by older versions of GNU tar. This can be overriden by using --posix; in this case, POSIXLY_CORRECT in environment may be set for enforcing stricter conformance. If OLDGNU_COMPATIBILITY is zero or undefined, tar will eventually produces archives which, by default, POSIX compatible; then either using --posix or defining POSIXLY_CORRECT enforces stricter conformance. This #define will disappear in a few years. FP, June 1995. */ #define OLDGNU_COMPATIBILITY 1 /*---------------------------------------------. | `tar' Header Block, from POSIX 1003.1-1990. | `---------------------------------------------*/ /* POSIX header. */ struct posix_header { /* byte offset */ char name[100]; /* 0 */ char mode[8]; /* 100 */ char uid[8]; /* 108 */ char gid[8]; /* 116 */ char size[12]; /* 124 */ char mtime[12]; /* 136 */ char chksum[8]; /* 148 */ char typeflag; /* 156 */ char linkname[100]; /* 157 */ char magic[6]; /* 257 */ char version[2]; /* 263 */ char uname[32]; /* 265 */ char gname[32]; /* 297 */ char devmajor[8]; /* 329 */ char devminor[8]; /* 337 */ char prefix[155]; /* 345 */ /* 500 */ }; #define TMAGIC "ustar" /* ustar and a null */ #define TMAGLEN 6 #define TVERSION "00" /* 00 and no null */ #define TVERSLEN 2 /* 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 */ /* 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 */ /* 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 */ /*-------------------------------------. | `tar' Header Block, GNU extensions. | `-------------------------------------*/ /* In GNU tar, SYMTYPE is for to symbolic links, and CONTTYPE is for contiguous files, so maybe disobeying the `reserved' comment in POSIX header description. I suspect these were meant to be used this way, and should not have really been `reserved' in the published standards. */ /* *BEWARE* *BEWARE* *BEWARE* that the following information is still boiling, and may change. Even if the OLDGNU format description should be accurate, the so-called GNU format is not yet fully decided. It is surely meant to use only extensions allowed by POSIX, but the sketch below repeats some ugliness from the OLDGNU format, which should rather go away. Sparse files should be saved in such a way that they do *not* require two passes at archive creation time. Huge files get some POSIX fields to overflow, alternate solutions have to be sought for this. */ /* Descriptor for a single file hole. */ struct sparse { /* byte offset */ char offset[12]; /* 0 */ char numbytes[12]; /* 12 */ /* 24 */ }; /* Sparse files are not supported in POSIX ustar format. For sparse files with a POSIX header, a GNU extra header is provided which holds overall sparse information and a few sparse descriptors. When an old GNU header replaces both the POSIX header and the GNU extra header, it holds some sparse descriptors too. Whether POSIX or not, if more sparse descriptors are still needed, they are put into as many successive sparse headers as necessary. The following constants tell how many sparse descriptors fit in each kind of header able to hold them. */ #define SPARSES_IN_EXTRA_HEADER 16 #define SPARSES_IN_OLDGNU_HEADER 4 #define SPARSES_IN_SPARSE_HEADER 21 /* The GNU extra header contains some information GNU tar needs, but not foreseen in POSIX header format. It is only used after a POSIX header (and never with old GNU headers), and immediately follows this POSIX header, when typeflag is a letter rather than a digit, so signaling a GNU extension. */ struct extra_header { /* byte offset */ char atime[12]; /* 0 */ char ctime[12]; /* 12 */ char offset[12]; /* 24 */ char realsize[12]; /* 36 */ char longnames[4]; /* 48 */ char unused_pad1[68]; /* 52 */ struct sparse sp[SPARSES_IN_EXTRA_HEADER]; /* 120 */ char isextended; /* 504 */ /* 505 */ }; /* Extension header for sparse files, used immediately after the GNU extra header, and used only if all sparse information cannot fit into that extra header. There might even be many such extension headers, one after the other, until all sparse information has been recorded. */ struct sparse_header { /* byte offset */ struct sparse sp[SPARSES_IN_SPARSE_HEADER]; /* 0 */ char isextended; /* 504 */ /* 505 */ }; /* The old GNU format header conflicts with POSIX format in such a way that POSIX archives may fool old GNU tar's, and POSIX tar's might well be fooled by old GNU tar archives. An old GNU format header uses the space used by the prefix field in a POSIX header, and cumulates information normally found in a GNU extra header. With an old GNU tar header, we never see any POSIX header nor GNU extra header. Supplementary sparse headers are allowed, however. */ struct oldgnu_header { /* byte offset */ char unused_pad1[345]; /* 0 */ char atime[12]; /* 345 */ char ctime[12]; /* 357 */ char offset[12]; /* 369 */ char longnames[4]; /* 381 */ char unused_pad2; /* 385 */ struct sparse sp[SPARSES_IN_OLDGNU_HEADER]; /* 386 */ char isextended; /* 482 */ char realsize[12]; /* 483 */ /* 495 */ }; /* OLDGNU_MAGIC uses both magic and version fields, which are contiguous. Found in an archive, it indicates an old GNU header format, which will be hopefully become obsolescent. With OLDGNU_MAGIC, uname and gname are valid, though the header is not truly POSIX conforming. */ #define OLDGNU_MAGIC "ustar " /* 7 chars and a null */ /* The standards committee allows only capital A through capital Z for user-defined expansion. */ /* This is a dir entry that contains the names of files that were in the dir at the time the dump was made. */ #define GNUTYPE_DUMPDIR 'D' /* Identifies the *next* file on the tape as having a long linkname. */ #define GNUTYPE_LONGLINK 'K' /* Identifies the *next* file on the tape as having a long name. */ #define GNUTYPE_LONGNAME 'L' /* This is the continuation of a file that began on another volume. */ #define GNUTYPE_MULTIVOL 'M' /* For storing filenames that do not fit into the main header. */ #define GNUTYPE_NAMES 'N' /* This is for sparse files. */ #define GNUTYPE_SPARSE 'S' /* This file is a tape/volume header. Ignore it on extraction. */ #define GNUTYPE_VOLHDR 'V' /*--------------------------------------. | tar Header Block, overall structure. | `--------------------------------------*/ /* tar files are made in basic blocks of this size. */ #define BLOCKSIZE 512 enum archive_format { DEFAULT_FORMAT, /* format to be decided later */ V7_FORMAT, /* old V7 tar format */ OLDGNU_FORMAT, /* GNU format as per before tar 1.12 */ POSIX_FORMAT, /* restricted, pure POSIX format */ GNU_FORMAT /* POSIX format with GNU extensions */ }; union block { char buffer[BLOCKSIZE]; struct posix_header header; struct extra_header extra_header; struct oldgnu_header oldgnu_header; struct sparse_header sparse_header; }; /* End of Format description. */ 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. 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 `tar' format does not distinguish text files from binary files, and no translation of file contents is performed. The `name', `linkname', `magic', `uname', and `gname' are null-terminated character strings. All other fileds are zero-filled octal numbers in ASCII. Each numeric field of width W contains W minus 2 digits, a space, and a null, except `size', and `mtime', which do not contain the trailing null. The `name' field is the file name of the file, with directory names (if any) preceding the file name, separated by slashes. The `mode' field provides nine bits specifying file permissions and three bits to specify the Set UID, Set GID, and Save Text ("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 _other_ permission. The `uid' and `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. The `size' field is the size of the file in bytes; linked files are archived with this field specified as zero. , in particular the `--incremental' (`-G') option. The `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. The `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 `chksum' field is treated as if it were all blanks. The `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, `tar' issues a warning to the standard error. The `atime' and `ctime' fields are used in making incremental backups; they store, respectively, the particular file's access time and last inode-change time. The `offset' is used by the `--multi-volume' (`-M') 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. The following fields were added to deal with sparse files. A file is "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 `tar' uses to detect a sparse file, and once such a file is detected, it is treated differently from non-sparse files. Sparse files are often `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 `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 `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: The `sp' is an array of `struct sparse'. Each `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. The header can hold four of these `struct sparse' at the moment; if more are needed, they are not stored in the header. The `isextended' flag is set when an `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. The `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 `isextended' gets set and the next block is an `extended_header'. Each `extended_header' structure contains an array of 21 sparse structures, along with a similar `isextended' flag that the header had. There can be an indeterminate number of such `extended_header's to describe a sparse file. `REGTYPE' `AREGTYPE' These flags represent a regular file. In order to be compatible with older versions of `tar', a `typeflag' value of `AREGTYPE' should be silently recognized as a regular file. New archives should be created using `REGTYPE'. Also, for backward compatibility, `tar' treats a regular file whose name ends with a slash as a directory. `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 `linkname' field with a trailing null. `SYMTYPE' This represents a symbolic link to another file. The linked-to name is specified in the `linkname' field with a trailing null. `CHRTYPE' `BLKTYPE' These represent character special files and block special files respectively. In this case the `devmajor' and `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. `DIRTYPE' This flag specifies a directory or sub-directory. The directory name in the `name' field should end with a slash. On systems where disk allocation is performed on a directory basis, the `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 `size' field of zero indicates no such limiting. Systems which do not support limiting in this manner should ignore the `size' field. `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. `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. `A' ... `Z' These are reserved for custom implementations. Some of these are used in the GNU modified format, as described below. Other values are reserved for specification in future revisions of the P1003 standard, and should not be used by any `tar' program. The `magic' field indicates that this archive was output in the P1003 archive format. If this field contains `TMAGIC', the `uname' and `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 `uid' and `gid' fields. For references, see ISO/IEC 9945-1:1990 or IEEE Std 1003.1-1990, pages 169-173 (section 10.1) for `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 `pax - Portable archive interchange'.  File: tar.info, Node: Extensions, Next: cpio, Prev: Standard, Up: Formats GNU Extensions to the Archive Format ==================================== _(This message will disappear, once this node revised.)_ The GNU format uses additional file types to describe new types of files in an archive. These are listed below. `GNUTYPE_DUMPDIR' `'D'' This represents a directory and a list of files created by the `--incremental' (`-G') option. The `size' field gives the total size of the associated list of files. Each file name is preceded by either a `Y' (the file should be in this archive) or an `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. `GNUTYPE_MULTIVOL' `'M'' This represents a file continued from another volume of a multi-volume archive created with the `--multi-volume' (`-M') option. The original type of the file is not given here. The `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 `offset' field gives the offset from the beginning of the file where this part of the file begins. Thus `size' plus `offset' should equal the original size of the file. `GNUTYPE_SPARSE' `'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. `GNUTYPE_VOLHDR' `'V'' This file type is used to mark the volume header that was given with the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') option when the archive was created. The `name' field contains the `name' given after the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') option. The `size' field is zero. Only the first file in each volume of an archive should have this type. You may have trouble reading a GNU format archive on a non-GNU system if the options `--incremental' (`-G'), `--multi-volume' (`-M'), `--sparse' (`-S'), or `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') were used when writing the archive. In general, if `tar' does not use the GNU-added fields of the header, other versions of `tar' should be able to read the archive. Otherwise, the `tar' program will give an error, the most likely one being a checksum error.  File: tar.info, Node: cpio, Prev: Extensions, Up: Formats Comparison of `tar' and `cpio' ============================== _(This message will disappear, once this node revised.)_ The `cpio' archive formats, like `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 `cpio' can read and write archives with arbitrary pathname lengths, but other `cpio' implementations may crash unexplainedly trying to read them. `tar' handles symbolic links in the form in which it comes in BSD; `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 `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 `cpio' that Berkeley picked up from AT&T and put into a later BSD release--I think I gave them my changes). (SVR4 does some funny stuff with `tar'; basically, its `cpio' can handle `tar' format input, and write it on output, and it probably handles symbolic links. They may not have bothered doing anything to enhance `tar' as a result.) `cpio' handles special files; traditional `tar' doesn't. `tar' comes with V7, System III, System V, and BSD source; `cpio' comes only with System III, System V, and later BSD (4.3-tahoe and later). `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); `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 `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. `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 _only_ one you can use to retrieve the file; `cpio's way puts one copy for every link, but you can retrieve it using any of the names. What type of check sum (if any) is used, and how is this calculated. See the attached manual pages for `tar' and `cpio' format. `tar' uses a checksum which is the sum of all the bytes in the `tar' header for a file; `cpio' uses no checksum. If anyone knows why `cpio' was made when `tar' was present at the unix scene, It wasn't. `cpio' first showed up in PWB/UNIX 1.0; no generally-available version of UNIX had `tar' at the time. I don't know whether any version that was generally available _within AT&T_ had `tar', or, if so, whether the people within AT&T who did `cpio' knew about it. On restore, if there is a corruption on a tape `tar' will stop at that point, while `cpio' will skip over it and try to restore the rest of the files. The main difference is just in the command syntax and header format. `tar' is a little more tape-oriented in that everything is blocked to start on a record boundary. 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.) Theoretically it should be easier under `tar' since the blocking lets you find a header with some variation of `dd skip=NN'. However, modern `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. If anyone knows why `cpio' was made when `tar' was present at the unix scene, please tell me about this too. Probably because it is more media efficient (by not blocking everything and using only the space needed for the headers where `tar' always uses 512 bytes per file header) and it knows how to archive special files. You might want to look at the freely available alternatives. The major ones are `afio', GNU `tar', and `pax', each of which have their own extensions with some backwards compatibility. Sparse files were `tar'red as sparse files (which you can easily test, because the resulting archive gets smaller, and GNU `cpio' can no longer read it).  File: tar.info, Node: Media, Next: Index, Prev: Formats, Up: Top Tapes and Other Archive Media ***************************** _(This message will disappear, once this node revised.)_ A few special cases about tape handling warrant more detailed description. These special cases are discussed below. Many complexities surround the use of `tar' on tape drives. Since the creation and manipulation of archives located on magnetic tape was the original purpose of `tar', it contains many features making such manipulation easier. Archives are usually written on dismountable media--tape cartridges, mag tapes, or floppy disks. 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. 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 "error count" (number of non-usable bits) of more than 10k. 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. * 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::  File: tar.info, Node: Device, Next: Remote Tape Server, Prev: Media, Up: Media Device Selection and Switching ============================== _(This message will disappear, once this node revised.)_ `-f [HOSTNAME:]FILE' `--file=[HOSTNAME:]FILE' Use archive file or device FILE on HOSTNAME. This option is used to specify the file name of the archive `tar' works on. If the file name is `-', `tar' reads the archive from standard input (when listing or extracting), or writes it to standard output (when creating). If the `-' file name is given when updating an archive, `tar' will read the original archive from its standard input, and will write the entire new archive to its standard output. If the file name contains a `:', it is interpreted as `hostname:file name'. If the HOSTNAME contains an "at" sign (`@'), it is treated as `user@hostname:file name'. In either case, `tar' will invoke the command `rsh' (or `remsh') to start up an `/etc/rmt' on the remote machine. If you give an alternate login name, it will be given to the `rsh'. Naturally, the remote machine must have an executable `/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 `tar'; it's compiled and installed by default. If this option is not given, but the environment variable `TAPE' is set, its value is used; otherwise, old versions of `tar' used a default archive name (which was picked when `tar' was compiled). The default is normally set up to be the "first" tape drive or other transportable I/O medium on the system. Starting with version 1.11.5, GNU `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 _most_ actual usages of `tar' are done with pipes or disks, not really tapes, cartridges or diskettes. 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 `/dev/tape' as a default, but this is _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. GNU `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 `DEFTAPE' in `'. `--force-local' Archive file is local even if it contains a colon. `--rsh-command=COMMAND' Use remote COMMAND instead of `rsh'. This option exists so that people who use something other than the standard `rsh' (e.g., a Kerberized `rsh') can access a remote device. When this command is not used, the shell command found when the `tar' program was installed is used instead. This is the first found of `/usr/ucb/rsh', `/usr/bin/remsh', `/usr/bin/rsh', `/usr/bsd/rsh' or `/usr/bin/nsh'. The installer may have overriden this by defining the environment variable `RSH' _at installation time_. `-[0-7][lmh]' Specify drive and density. `-M' `--multi-volume' Create/list/extract multi-volume archive. This option causes `tar' to write a "multi-volume" archive--one that may be larger than will fit on the medium used to hold it. *Note Multi-Volume Archives::. `-L NUM' `--tape-length=NUM' Change tape after writing NUM x 1024 bytes. 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. `-F FILE' `--info-script=FILE' `--new-volume-script=FILE' Execute `file' at end of each tape. This implies `--multi-volume' (`-M').  File: tar.info, Node: Remote Tape Server, Next: Common Problems and Solutions, Prev: Device, Up: Media The Remote Tape Server ====================== In order to access the tape drive on a remote machine, `tar' uses the remote tape server written at the University of California at Berkeley. The remote tape server must be installed as `/etc/rmt' on any machine whose tape drive you want to use. `tar' calls `/etc/rmt' by running an `rsh' or `remsh' to the remote machine, optionally using a different login name if one is supplied. A copy of the source for the remote tape server is provided. It is Copyright (C) 1983 by the Regents of the University of California, but can be freely distributed. Instructions for compiling and installing it are included in the `Makefile'. Unless you use the `--absolute-names' (`-P') option, GNU `tar' will not allow you to create an archive that contains absolute file names (a file name beginning with `/'.) If you try, `tar' will automatically remove the leading `/' from the file names it stores in the archive. It will also type a warning message telling you what it is doing. When reading an archive that was created with a different `tar' program, GNU `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 `tar' tape to an operator to restore; the operator used Sun `tar' instead of GNU `tar', and the result was that it replaced large portions of our `/bin' and friends with versions from the tape; needless to say, we were unhappy about having to recover the file system from backup tapes. For example, if the archive contained a file `/usr/bin/computoy', GNU `tar' would extract the file to `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 `cd /' before extracting the files from the archive, or you should either use the `--absolute-names' (`-P') option, or use the command `tar -C / ...'. 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. In order to update an archive, `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 `lseek'), and industry-standard 9-track magnetic tape (or any other kind of tape that can be backspaced with the `MTIOCTOP' `ioctl'. This means that the `--append' (`-r'), `--update' (`-u'), `--concatenate' (`--catenate', `-A'), and `--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. Some other media can be backspaced, and `tar' will work on them once `tar' is modified to do so. Archives created with the `--multi-volume' (`-M'), `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL'), and `--incremental' (`-G') options may not be readable by other version of `tar'. In particular, restoring a file that was split over a volume boundary will require some careful work with `dd', if it can be done at all. Other versions of `tar' may also create an empty file whose name is that of the volume header. Some versions of `tar' may create normal files instead of directories archived with the `--incremental' (`-G') option.  File: tar.info, Node: Common Problems and Solutions, Next: Blocking, Prev: Remote Tape Server, Up: Media Some Common Problems and their Solutions ======================================== errors from system: permission denied no such file or directory not owner errors from `tar': directory checksum error header format error errors from media/system: i/o error device busy tar-1.13/doc/tar.info-70000444000176300016070000013304206737251615010303 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Blocking, Next: Many, Prev: Common Problems and Solutions, Up: Media Blocking ======== _(This message will disappear, once this node revised.)_ "Block" and "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. John Gilmore, the writer of the public domain `tar' from which GNU `tar' was originally derived, wrote (June 1995): 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 `F' (fixed sized records), `V' (variable sized records), `FB' (fixed blocked: fixed size records, N to a block), `VB' (variable size records, N to a block), `VSB' (variable spanned blocked: variable sized records that can occupy more than one block), etc. The `JCL' `DD RECFORM=' parameter specified this to the operating system. The Unix man page on `tar' was totally confused about this. When I wrote `PD TAR', I used the historically correct terminology (`tar' writes data records, which are grouped into blocks). It appears that the bogus terminology made it into POSIX (no surprise here), and now Franc,ois has migrated that terminology back into the source code too. The term "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 "block" usually refers to a disk physical block, _assuming_ that each disk block is 512 bytes in length. It is true that some disk devices have different physical blocks, but `tar' ignore these differences in its own format, which is meant to be portable, so a `tar' block is always 512 bytes in length, and "block" always mean a `tar' block. The term "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 `tar'. The term "physical record" is another way to speak of a physical block, those two terms are somewhat interchangeable. In this manual, the term "record" usually refers to a tape physical block, _assuming_ that the `tar' archive is kept on magnetic tape. It is true that archives may be put on disk or used with pipes, but nevertheless, `tar' tries to read and write the archive one "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 "reblocking", or more simply, "blocking". The term "logical record" refers to the logical organization of many characters into something meaningful to the application. The term "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 "record" in GNU `tar'. When writing to tapes, `tar' writes the contents of the archive in chunks known as "records". To change the default blocking factor, use the `--blocking-factor=512-SIZE' (`-b 512-SIZE') option. Each record will then be composed of 512-SIZE blocks. (Each `tar' block is 512 bytes. *Note 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. 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. When reading an archive, `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, `tar' will print a message about a non-standard blocking factor, and then operate normally. On some tape devices, however, `tar' cannot figure out the record size itself. On most of those, you can specify a blocking factor (with `--blocking-factor=512-SIZE' (`-b 512-SIZE')) larger than the actual blocking factor, and then use the `--read-full-records' (`-B') option. (If you specify a blocking factor with `--blocking-factor=512-SIZE' (`-b 512-SIZE') and don't use the `--read-full-records' (`-B') option, then `tar' will not attempt to figure out the recording size itself.) On some devices, you must always specify the record size exactly with `--blocking-factor=512-SIZE' (`-b 512-SIZE') when reading, because `tar' cannot figure it out. In any case, use `--list' (`-t') before doing any extractions to see whether `tar' is reading the archive correctly. `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. `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. In a standard `tar' file (no options), the block size is 512 and the record size is 10240, for a blocking factor of 20. What the `--blocking-factor=512-SIZE' (`-b 512-SIZE') 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. If you use a blocking factor larger than 20, older `tar' programs might not be able to read the archive, so we recommend this as a limit to use in practice. GNU `tar', however, will support arbitrarily large record sizes, limited only by the amount of virtual memory or the physical characteristics of the tape device. * Menu: * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive  File: tar.info, Node: Format Variations, Next: Blocking Factor, Prev: Blocking, Up: Blocking Format Variations ----------------- _(This message will disappear, once this node revised.)_ 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. 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, `tar' uses default parameters. You cannot modify a compressed archive. If you create an archive with the `--blocking-factor=512-SIZE' (`-b 512-SIZE') option specified (*note Blocking Factor::.), you must specify that blocking-factor when operating on the archive. *Note Formats::, for other examples of format parameter considerations.  File: tar.info, Node: Blocking Factor, Prev: Format Variations, Up: Blocking The Blocking Factor of an Archive --------------------------------- _(This message will disappear, once this node revised.)_ The data in an archive is grouped into blocks, which are 512 bytes. Blocks are read and written in whole number multiples called "records". The number of blocks in a record (ie. the size of a record in units of 512 bytes) is called the "blocking factor". The `--blocking-factor=512-SIZE' (`-b 512-SIZE') 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 `tar --list --file=ARCHIVE-NAME'. This may not work on some devices. 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 `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. *Note create::, for information on writing archives. Archives with blocking factors larger than 20 cannot be read by very old versions of `tar', or by some newer versions of `tar' running on old machines with small address spaces. With GNU `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. 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: Cannot write to /dev/dlt: Invalid argument In such cases, it sometimes happen that the `tar' bundled by the system is aware of block size idiosyncrasies, while GNU `tar' requires an explicit specification for the block size, which it cannot guess. This yields some people to consider GNU `tar' is misbehaving, because by comparison, `the bundle `tar' works OK'. Adding `-b 256', for example, might resolve the problem. 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 `--list' (`-t') without specifying a blocking factor--`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 `--read-full-records' (`-B') option while specifying a blocking factor larger then the blocking factor of the archive (ie. `tar --extract --read-full-records --blocking-factor=300'. *Note list::, for more information on the `--list' (`-t') operation. *Note Reading::, for a more detailed explanation of that option. `--blocking-factor=NUMBER' `-b NUMBER' Specifies the blocking factor of an archive. Can be used with any operation, but is usually not necessary with `--list' (`-t'). Device blocking `-b BLOCKS' `--blocking-factor=BLOCKS' Set record size to BLOCKS * 512 bytes. This option is used to specify a "blocking factor" for the archive. When reading or writing the archive, `tar', will do reads and writes of the archive in records of 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, `tar' pads the archive out to the next record boundary. The default blocking factor is set when `tar' is compiled, and is typically 20. Blocking factors larger than 20 cannot be read by very old versions of `tar', or by some newer versions of `tar' running on old machines with small address spaces. 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. 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. 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... With GNU `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. 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: * the archive is subject to a compression option, * the archive is not handled through standard input or output, nor redirected nor piped, * the archive is directly handled to a local disk, instead of any special device, * `--blocking-factor=512-SIZE' (`-b 512-SIZE') is not explicitely specified on the `tar' invocation. In previous versions of GNU `tar', the `--compress-block' option (or even older: `--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: * `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 `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. * `compress' does not show this problem, but as Jean-loup pointed out to Michael, `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. * `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. `tar' might ignore the exit status returned, but I hate doing that, as it weakens the protection `tar' offers users against other possible problems at decompression time. If `gzip' was silently skipping trailing zeros _and_ also avoiding setting the exit status in this innocuous case, that would solve this situation. * `tar' should become more solid at not stopping to read a pipe at the first null block encountered. This inelegantly breaks the pipe. `tar' should rather drain the pipe out before exiting itself. `-i' `--ignore-zeros' Ignore blocks of zeros in archive (means EOF). The `--ignore-zeros' (`-i') option causes `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 `cat'-ing several archives together, this option allows `tar' to read the entire archive. This option is not on by default because many versions of `tar' write garbage after the zeroed blocks. Note that this option causes `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. `-B' `--read-full-records' Reblock as we read (for reading 4.2BSD pipes). If `--read-full-records' (`-B') is used, `tar' will not panic if an attempt to read a record from the archive does not return a full record. Instead, `tar' will keep reading until it has obtained a full record. This option is turned on by default when `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 `tar' requested. If this option was not used, `tar' would fail as soon as it read an incomplete record from the pipe. This option is also useful with the commands for updating an archive. Tape blocking 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 "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. 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. `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 (`-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. 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. 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. I might also use `--number-blocks' instead of `--block-number', so `--block' will then expand to `--blocking-factor' unambiguously.  File: tar.info, Node: Many, Next: Using Multiple Tapes, Prev: Blocking, Up: Media Many Archives on One Tape ========================= Most tape devices have two entries in the `/dev' directory, or entries that come in pairs, which differ only in the minor number for this device. Let's take for example `/dev/tape', which often points to the only or usual tape device of a given system. There might be a corresponding `/dev/nrtape' or `/dev/ntape'. The simpler name is the _rewinding_ version of the device, while the name having `nr' in it is the _no rewinding_ version of the same device. A rewinding tape device will bring back the tape to its beginning point automatically when this device is opened or closed. Since `tar' opens the archive file before using it and closes it afterwards, this means that a simple: $ tar cf /dev/tape DIRECTORY will reposition the tape to its beginning both prior and after saving 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. So, a rewinding device is normally meant to hold one and only one file. If you want to put more than one `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 _cannot_ be recovered. To save DIRECTORY-1 as a first archive at the beginning of a tape, and leave that tape ready for a second archive, you should use: $ mt -f /dev/nrtape rewind $ tar cf /dev/nrtape DIRECTORY-1 "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 `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. So, you may now save DIRECTORY-2 as a second archive after the first on the same tape by issuing the command: $ tar cf /dev/nrtape DIRECTORY-2 and so on for all the archives you want to put on the same tape. 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 DIRECTORY-17, say, by using these commands: $ mt -f /dev/nrtape rewind $ mt -f /dev/nrtape fsf 16 $ tar cf /dev/nrtape DIRECTORY-17 In all the previous examples, we put aside blocking considerations, but you should do the proper things for that as well. *Note Blocking::. * Menu: * Tape Positioning:: Tape Positions and Tape Marks * mt:: The `mt' Utility  File: tar.info, Node: Tape Positioning, Next: mt, Prev: Many, Up: Many Tape Positions and Tape Marks ----------------------------- _(This message will disappear, once this node revised.)_ 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 "tape marks" on the archive media. Tape drives write one tape mark between files, two at the end of all the file entries. If you think of data as a series of records "rrrr"'s, and tape marks as "*"'s, a tape might look like the following: rrrr*rrrrrr*rrrrr*rr*rrrrr**------------------------- Tape devices read and write tapes using a read/write "tape head"--a physical part of the device which can only access one point on the tape at a time. When you use `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 `restore' script will find the archive automatically. . ). *Note mt::, for an explanation of the tape moving utility. 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: rrrr*rrrrrr*rrrrr*rr*rrrrr*rrr*rrrr**----------------  File: tar.info, Node: mt, Prev: Tape Positioning, Up: Many The `mt' Utility ---------------- _(This message will disappear, once this node revised.)_ *Note Blocking Factor::. You can use the `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. The syntax of the `mt' command is: mt [-f TAPENAME] OPERATION [NUMBER] where TAPENAME is the name of the tape device, NUMBER is the number of times an operation is performed (with a default of one), and OPERATION is one of the following: `eof' `weof' Writes NUMBER tape marks at the current position on the tape. `fsf' Moves tape position forward NUMBER files. `bsf' Moves tape position back NUMBER files. `rewind' Rewinds the tape. (Ignores NUMBER). `offline' `rewoff1' Rewinds the tape and takes the tape device off-line. (Ignores NUMBER). `status' Prints status information about the tape unit. If you don't specify a TAPENAME, `mt' uses the environment variable TAPE; if TAPE does not exist, `mt' uses the device `/dev/rmt12'. `mt' returns a 0 exit status when the operation(s) were successful, 1 if the command was unrecognized, and 2 if an operation failed. If you use `--extract' (`--get', `-x') with the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') option specified, `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 ARCHIVE-NAME specified. ARCHIVE-NAME can be any regular expression. If the labels match, `tar' extracts the archive. *Note label::. . `tar --list --label' will cause `tar' to print the label.  File: tar.info, Node: Using Multiple Tapes, Next: label, Prev: Many, Up: Media Using Multiple Tapes ==================== _(This message will disappear, once this node revised.)_ 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 `tar' commands, but this can be inconvenient, particularly if you are using options like `--exclude=PATTERN' or dumping entire filesystems. Therefore, `tar' supports multiple tapes automatically. Use `--multi-volume' (`-M') on the command line, and then `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 `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 `--multi-volume' (`-M'), and then put in the second tape when prompted, so `tar' can restore both halves of the file.) GNU `tar' multi-volume archives do not use a truly portable format. You need GNU `tar' at both end to process them properly. When prompting for a new tape, `tar' accepts any of the following responses: `?' Request `tar' to explain possible responses `q' Request `tar' to exit immediately. `n FILE NAME' Request `tar' to write the next volume on the file FILE NAME. `!' Request `tar' to run a subshell. `y' Request `tar' to begin writing the next volume. (You should only type `y' after you have changed the tape; otherwise `tar' will write over the volume it just finished.) If you want more elaborate behavior than this, give `tar' the `--info-script=SCRIPT-NAME' (`--new-volume-script=SCRIPT-NAME', `-F SCRIPT-NAME') option. The file SCRIPT-NAME is expected to be a program (or shell script) to be run instead of the normal prompting procedure. When the program finishes, `tar' will immediately begin writing the next volume. The behavior of the `n' response to the normal tape-change prompt is not available if you use `--info-script=SCRIPT-NAME' (`--new-volume-script=SCRIPT-NAME', `-F SCRIPT-NAME'). The method `tar' uses to detect end of tape is not perfect, and fails on some operating systems or on some devices. You can use the `--tape-length=1024-SIZE' (`-L 1024-SIZE') option if `tar' can't detect the end of the tape itself. This option selects `--multi-volume' (`-M') automatically. The 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. The volume number used by `tar' in its tape-change prompt can be changed; if you give the `--volno-file=FILE-OF-NUMBER' option, then 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 `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 *Note label::, it _only_ affects the number used in the prompt.) If you want `tar' to cycle through a series of tape drives, then you can use the `n' response to the tape-change prompt. This is error prone, however, and doesn't work at all with `--info-script=SCRIPT-NAME' (`--new-volume-script=SCRIPT-NAME', `-F SCRIPT-NAME'). Therefore, if you give `tar' multiple `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') 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 `tar' prompt for a tape change (or run the info script). Multi-volume archives With `--multi-volume' (`-M'), `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. Each volume of a multi-volume archive is an independent `tar' archive, complete in itself. For example, you can list or extract any volume alone; just don't specify `--multi-volume' (`-M'). 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 `--extract --multi-volume' (`-xM') starting on or before the volume where the file begins. For example, let's presume someone has two tape drives on a system named `/dev/tape0' and `/dev/tape1'. For having GNU `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: $ tar --create --multi-volume --file=/dev/tape0 --file=/dev/tape1 FILES $ tar cMff /dev/tape0 /dev/tape1 FILES * Menu: * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files  File: tar.info, Node: Multi-Volume Archives, Next: Tape Files, Prev: Using Multiple Tapes, Up: Using Multiple Tapes Archives Longer than One Tape or Disk ------------------------------------- _(This message will disappear, once this node revised.)_ To create an archive that is larger than will fit on a single unit of the media, use the `--multi-volume' (`-M') option in conjunction with the `--create' (`-c') option (*note create::.). A "multi-volume" archive can be manipulated like any other archive (provided the `--multi-volume' (`-M') option is specified), but is stored on more than one tape or disk. When you specify `--multi-volume' (`-M'), `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. 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 `--list' (`-t'), without `--multi-volume' (`-M') specified. To extract an archive member from one volume (assuming it is described that volume), use `--extract' (`--get', `-x'), again without `--multi-volume' (`-M'). 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 `--multi-volume' (`-M') to extract it successfully. In this case, you should load the volume where the archive member starts, and use `tar --extract --multi-volume'--`tar' will prompt for later volumes as it needs them. *Note extracting archives::, for more information about extracting archives. `--info-script=SCRIPT-NAME' (`--new-volume-script=SCRIPT-NAME', `-F SCRIPT-NAME') is like `--multi-volume' (`-M'), except that `tar' does not prompt you directly to change media volumes when a volume is full--instead, `tar' runs commands you have stored in SCRIPT-NAME. For example, this option can be used to eject cassettes, or to broadcast messages such as `Someone please come change my tape' when performing unattended backups. When SCRIPT-NAME is done, `tar' will assume that the media has been changed. 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. If a multi-volume archive was labeled using `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') (*note label::.) when it was created, `tar' will not automatically label volumes which are added later. To label subsequent volumes, specify `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') again in conjunction with the `--append' (`-r'), `--update' (`-u') or `--concatenate' (`--catenate', `-A') operation. `--multi-volume' `-M' Creates a multi-volume archive, when used in conjunction with `--create' (`-c'). To perform any other operation on a multi-volume archive, specify `--multi-volume' (`-M') in conjunction with that operation. `--info-script=PROGRAM-FILE' `-F PROGRAM-FILE' Creates a multi-volume archive via a script. Used in conjunction with `--create' (`-c'). Beware that there is _no_ real standard about the proper way, for a `tar' archive, to span volume boundaries. If you have a multi-volume created by some vendor's `tar', there is almost no chance you could read all the volumes with GNU `tar'. The converse is also true: you may not expect multi-volume archives created by GNU `tar' to be fully recovered by vendor's `tar'. Since there is little chance that, in mixed system configurations, some vendor's `tar' will work on another vendor's machine, and there is a great chance that GNU `tar' will work on most of them, your best bet is to install GNU `tar' on all machines between which you know exchange of files is possible.  File: tar.info, Node: Tape Files, Prev: Multi-Volume Archives, Up: Using Multiple Tapes Tape Files ---------- _(This message will disappear, once this node revised.)_ To give the archive a name which will be recorded in it, use the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') option. This will write a special block identifying VOLUME-LABEL as the name of the archive to the front of the archive which will be displayed when the archive is listed with `--list' (`-t'). If you are creating a multi-volume archive with `--multi-volume' (`-M') (), then the volume label will have `Volume NNN' appended to the name you give, where NNN is the number of the volume of the archive. (If you use the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') option when reading an archive, it checks to make sure the label on the tape matches the one you give. *Note label::. When `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 `tar'. To do this, use the `mt' command. For more information on the `mt' command and on the organization of tapes into a sequence of tape files, see *Note mt::. People seem to often do: --label="SOME-PREFIX `date +SOME-FORMAT`" or such, for pushing a common date in all volumes or an archive set.  File: tar.info, Node: label, Next: verify, Prev: Using Multiple Tapes, Up: Media Including a Label in the Archive ================================ _(This message will disappear, once this node revised.)_ `-V NAME' `--label=NAME' Create archive with volume name NAME. This option causes `tar' to write out a "volume header" at the beginning of the archive. If `--multi-volume' (`-M') is used, each volume of the archive will have a volume header of `NAME Volume N', where N is 1 for the first volume, 2 for the next, and so on. To avoid problems caused by misplaced paper labels on the archive media, you can include a "label" entry--an archive member which contains the name of the archive--in the archive itself. Use the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') option in conjunction with the `--create' (`-c') operation to include a label entry in the archive as it is being created. If you create an archive using both `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') and `--multi-volume' (`-M'), each volume of the archive will have an archive label of the form `ARCHIVE-LABEL Volume N', where N is 1 for the first volume, 2 for the next, and so on. , for information on creating multiple volume archives. If you list or extract an archive using `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL'), `tar' will print an error if the archive label doesn't match the ARCHIVE-LABEL specified, and will then not list nor extract the archive. In those cases, ARCHIVE-LABEL argument is interpreted as a globbing-style pattern which must match the actual magnetic volume label. *Note exclude::, for a precise description of how match is attempted(1). If the switch `--multi-volume' (`-M') is being used, the volume label matcher will also suffix ARCHIVE-LABEL by ` 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. The `--label=ARCHIVE-LABEL' (`-V ARCHIVE-LABEL') was once called `--volume', but is not available under that name anymore. To find out an archive's label entry (or to find out if an archive has a label at all), use `tar --list --verbose'. `tar' will print the label first, and then print archive member information, as in the example below: $ 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 `--label=ARCHIVE-LABEL' `-V ARCHIVE-LABEL' Includes an "archive-label" at the beginning of the archive when the archive is being created, when used in conjunction with the `--create' (`-c') option. Checks to make sure the archive label matches the one specified (when used in conjunction with the `--extract' (`--get', `-x') option. To get a common information on all tapes of a series, use the `--label=ARCHIVE-LABEL' (`-V ARCHIVE-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: $ tar cfMV /dev/tape "Daily backup for `date +%Y-%m-%d`" $ tar --create --file=/dev/tape --multi-volume \ --volume="Daily backup for `date +%Y-%m-%d`" Also note that each label has its own date and time, which corresponds to when GNU `tar' initially attempted to write it, often soon after the operator launches `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. ---------- Footnotes ---------- (1) Previous versions of `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 `tar'.  File: tar.info, Node: verify, Next: Write Protection, Prev: label, Up: Media Verifying Data as It is Stored ============================== `-W' `--verify' Attempt to verify the archive after writing. This option causes `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. 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. You can insure the accuracy of an archive by comparing files in the system with archive members. `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. To check for discrepancies in an archive immediately after it is written, use the `--verify' (`-W') option in conjunction with the `--create' (`-c') operation. When this option is specified, `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. 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. One can explicitely compare an already made archive with the file system by using the `--compare' (`--diff', `-d') option, instead of using the more automatic `--verify' (`-W') option. *Note compare::. Note that these two options have a slightly different intent. The `--compare' (`--diff', `-d') option how identical are the logical contents of some archive with what is on your disks, while the `--verify' (`-W') option is really for checking if the physical contents agree and if the recording media itself is of dependable quality. So, for the `--verify' (`-W') operation, `tar' tries to defeat all in-memory cache pertaining to the archive, while it lets the speed optimization undisturbed for the `--compare' (`--diff', `-d') option. If you nevertheless use `--compare' (`--diff', `-d') 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. The `--verify' (`-W') 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.  File: tar.info, Node: Write Protection, Prev: verify, Up: Media Write Protection ================ Almost all tapes and diskettes, and in a few rare cases, even disks can be "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). 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. tar-1.13/doc/tar.info-80000444000176300016070000003460406737251615010310 This is tar.info, produced by Makeinfo version 3.12f from tar.texi. START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY This file documents GNU `tar', a utility used to store, backup, and transport files. Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. 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. 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. 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. This file documents GNU `tar', which is a utility used to store, backup, and transport files. `tar' is a tape (or disk) archiver. This manual documents the release 1.13.  File: tar.info, Node: Index, Prev: Media, Up: Top Index ***** * Menu: * --list with file name arguments: list. * -backup: backup. * -suffix: backup. * -version-control: backup. * Adding archives to an archive: concatenate. * Adding files to an Archive: appending files. * Age, excluding files by: after. * Alaska-Hawaii Time: Timezone item. * Appending files to an Archive: appending files. * Archive Name: file. * Archive creation: file. * Archives, Appending files to: appending files. * Archiving Directories: create dir. * Atlantic Standard Time: Timezone item. * Avoiding recursion in directories: recurse. * Azores Time: Timezone item. * Baghdad Time: Timezone item. * Bellovin, Steven M.: Authors of getdate. * Berets, Jim: Authors of getdate. * Berry, K.: Authors of getdate. * Block number where error occured: verbose. * Blocking Factor: Blocking Factor. * Blocks per record: Blocking Factor. * Bytes per record: Blocking Factor. * Central Alaska Time: Timezone item. * Central European Time: Timezone item. * Central Standard Time: Timezone item. * Changing directory mid-stream: directory. * Character class, excluding characters from: Wildcards. * China Coast Time: Timezone item. * Choosing an archive file: file. * Compressed archives: gzip. * Concatenating Archives: concatenate. * DAT blocking: Blocking Factor. * Deleting files from an archive: delete. * Deleting from tape archives: delete. * Descending directories, avoiding: recurse. * Directing output: file. * Directories, Archiving: create dir. * Directories, avoiding recursion: recurse. * Directory, changing mid-stream: directory. * Disk space, running out of: Scarce. * Double-checking a write operation: verify. * East Australian Standard Time: Timezone item. * Eastern European Time: Timezone item. * Eastern Standard Time: Timezone item. * End-of-archive entries, ignoring: Reading. * Error message, block number of: verbose. * Exabyte blocking: Blocking Factor. * Excluding characters from a character class: Wildcards. * Excluding file by age: after. * Excluding files by file system: exclude. * Excluding files by name and pattern: exclude. * Extraction: extract. * Feedback from tar: verbose. * File Name arguments, alternatives: files. * File name arguments, using --list with: list. * File names, excluding files by: exclude. * File names, terminated by NUL: nul. * File names, using symbolic links: dereference. * File system boundaries, not crossing: one. * Format Options: Format Variations. * Format Parameters: Format Variations. * Format, old style: old. * French Winter Time: Timezone item. * Getting more information during the operation: verbose. * Greenwich Mean Time: Timezone item. * Guam Standard Time: Timezone item. * Hawaii Standard Time: Timezone item. * ISO 8601 date format: Calendar date item. * Ignoring end-of-archive entries: Reading. * Information during operation: verbose. * Information on progress and status of operations: verbose. * Interactive operation: interactive. * International Date Line East: Timezone item. * International Date Line West: Timezone item. * Japan Standard Time: Timezone item. * Labeling an archive: label. * Labelling multi-volume archives: Multi-Volume Archives. * Labels on the archive media: label. * Large lists of file names on small machines: Reading. * Lists of file names: files. * MacKenzie, David: Authors of getdate. * Members, replacing with other members: append. * Meyering, Jim: Authors of getdate. * Middle European Time: Timezone item. * Middle European Winter Time: Timezone item. * Middle of the archive, starting in the: Scarce. * Modes of extracted files: Writing. * Modification time, excluding files by: after. * Modification times of extracted files: Writing. * Mountain Standard Time: Timezone item. * Multi-volume archives: Multi-Volume Archives. * NUL terminated file names: nul. * Naming an archive: file. * New Zealand Standard Time: Timezone item. * Nome Standard Time: Timezone item. * Number of blocks per record: Blocking Factor. * Number of bytes per record: Blocking Factor. * Old style archives: old. * Old style format: old. * Options when reading archives: Reading. * Options, archive format specifying: Format Variations. * Options, format specifying: Format Variations. * Overwriting old files, prevention: Writing. * Pacific Standard Time: Timezone item. * Permissions of extracted files: Writing. * Pinard, F.: Authors of getdate. * Progress information: verbose. * Protecting old files: Writing. * Reading file names from a file: files. * Reading incomplete records: Reading. * Record Size: Blocking Factor. * Records, incomplete: Reading. * Recursion in directories, avoiding: recurse. * Removing files from an archive: delete. * Replacing members with other members: append. * Resurrecting files from an archive: extract. * Retrieving files from an archive: extract. * Running out of space: Reading. * Running out of space during extraction: Scarce. * SIMPLE_BACKUP_SUFFIX: backup. * Salz, Rich: Authors of getdate. * Small memory: Reading. * Space on the disk, recovering from lack of: Scarce. * Sparse Files: sparse. * Specifying archive members: Selecting Archive Members. * Specifying files to act on: Selecting Archive Members. * Standard input and output: file. * Standard output, writing extracted files to: Writing. * Status information: verbose. * Storing archives in compressed format: gzip. * Swedish Winter Time: Timezone item. * Symbolic link as file name: dereference. * Tapes, using --delete and: delete. * USSR Zone: Timezone item. * Ultrix 3.1 and write failure: Remote Tape Server. * Universal Coordinated Time: Timezone item. * Updating an archive: update. * VERSION_CONTROL: backup. * Verbose operation: verbose. * Verifying a write operation: verify. * Verifying the currency of an archive: compare. * Version of the tar program: verbose. * West African Time: Timezone item. * West Australian Standard Time: Timezone item. * Western European Time: Timezone item. * Where is the archive?: file. * Working directory, specifying: directory. * Writing extracted files to standard output: Writing. * Writing new archives: file. * Yukon Standard Time: Timezone item. * abbreviations for months: Calendar date item. * absolute file names: Remote Tape Server. * ago in date strings: Relative item in date strings. * am in date strings: Time of day item. * archive: Definitions. * archive member: Definitions. * authors of getdate: Authors of getdate. * backup files, type made: backup. * backup options: backup. * backup suffix: backup. * backups, making: backup. * beginning of time, for Unix: Date input formats. * blocking factor: Blocking Factor. * bug reports: Reports. * calendar date item: Calendar date item. * case, ignored in dates: General date syntax. * cat vs concatenate: concatenate. * comments, in dates: General date syntax. * concatenate vs cat: concatenate. * corrupted archives <1>: gzip. * corrupted archives: Full Dumps. * date format, ISO 8601: Calendar date item. * date input formats: Date input formats. * day in date strings: Relative item in date strings. * day of week item: Day of week item. * daylight savings time: Timezone item. * displacement of dates: Relative item in date strings. * dumps, full: Full Dumps. * dumps, incremental: Inc Dumps. * entry: Naming tar Archives. * epoch, for Unix: Date input formats. * exclude: exclude. * exclude-from: exclude. * existing backup method: backup. * exit status: Synopsis. * extraction: Definitions. * file name: Definitions. * first in date strings: General date syntax. * fortnight in date strings: Relative item in date strings. * full dumps: Full Dumps. * general date syntax: General date syntax. * getdate: Date input formats. * hour in date strings: Relative item in date strings. * incremental dumps: Inc Dumps. * items in date strings: General date syntax. * last DAY: Day of week item. * last in date strings: General date syntax. * member: Definitions. * member name: Definitions. * midnight in date strings: Time of day item. * minute in date strings: Relative item in date strings. * minutes, timezone correction by: Time of day item. * month in date strings: Relative item in date strings. * month names in date strings: Calendar date item. * months, written-out: General date syntax. * next DAY: Day of week item. * next in date strings: General date syntax. * noon in date strings: Time of day item. * now in date strings: Relative item in date strings. * ntape device: Many. * numbered backup method: backup. * numbers, written-out: General date syntax. * option syntax, traditional: Old Options. * ordinal numbers: General date syntax. * pm in date strings: Time of day item. * pure numbers in date strings: Pure numbers in date strings. * relative items in date strings: Relative item in date strings. * remote tape drive: Remote Tape Server. * reporting bugs: Reports. * return status: Synopsis. * rmt: Remote Tape Server. * simple backup method: backup. * tape blocking: Blocking Factor. * tape marks: Many. * tape positioning: Many. * tar: What tar Does. * tar archive: Definitions. * tar entry: Naming tar Archives. * tar file: Naming tar Archives. * tar to standard input and output: file. * this in date strings: Relative item in date strings. * time of day item: Time of day item. * timezone correction: Time of day item. * timezone item: Timezone item. * today in date strings: Relative item in date strings. * tomorrow in date strings: Relative item in date strings. * unpacking: Definitions. * uuencode: Applications. * version-control Emacs variable: backup. * week in date strings: Relative item in date strings. * year in date strings: Relative item in date strings. * yesterday in date strings: Relative item in date strings. tar-1.13/lib/0000777000176300017630000000000006741044405006553 5tar-1.13/lib/ChangeLog0000444000176300016070000001763706330212552010244 1997-04-25 François Pinard * Release 1.12. 1997-04-16 François Pinard * Prerelease 1.11p. The distribution did not have getdate.c updated: * Makefile.am (libtar_a_SOURCES): Use getdate.y, not getdate.c. (EXTRA_DIST): Do not include getdate.y anymore. * getdate.c: Specify $(srcdir)/, to silence GNU make. Reported by Bruno Haible. 1997-04-15 François Pinard * Makefile.am (getdate.c): Announce 13 conflicts, not 10. Reported by Bruno Haible, Bryant Fujimoto and Wolfram Wagner. 1997-04-11 François Pinard * Prerelease 1.11o. * getdate.h: New file. * Makefile.am: Adjusted. 1997-04-10 François Pinard * modechange.c, modechange.h: New files. * Makefile.am: Adjusted. 1997-02-25 François Pinard * Makefile.am: Adapt library name to Automake 1.1l. 1996-11-09 François Pinard * Prerelease 1.11.14. * basename.c: New file. 1996-11-09 François Pinard * Prerelease 1.11.13. * Makefile.am: Use tar_DEPENDENCIES. Avoid BUILT_SOURCES, put getdate.c instead of getdate.y in tar_SOURCES and keep getdate.c in EXTRA_DIST. 1996-11-06 François Pinard * argmatch.c, argmatch.h, backupfile.c, backupfile.h, dirname.c, getversion.c: New files. * Makefile.am: Adjusted. Reported by Marty Leisner. 1996-10-31 François Pinard * safe-stat.h: Deleted. * Makefile.am (noinst_HEADERS): Adjusted. Reported by Jim Meyering. 1996-09-20 François Pinard * regex.c, regex.h, rx.c, rx.h: Deleted. * Makefile.am: Adjusted. 1996-09-19 François Pinard * Prerelease 1.11.12. * execlp.c: Include stdio.h, not only stdio! 1996-09-16 François Pinard * open3.h: File deleted after being merged into system.h. * open3.c: File deleted, moved back into src/. * Makefile.am: Adjusted. Reported by Jim Meyering. 1996-08-24 François Pinard * Makefile.am (EXTRA_DIST): $(BUILT_SOURCES) is no longer necessary, as Automake now handles it automatically. 1996-07-16 François Pinard * Prerelease 1.11.11. * Makefile.am (EXTRA_DIST): Move stpcpy.c there, from tar_SOURCES. Reported by Ulrich Drepper. 1996-04-17 François Pinard * Prerelease 1.11.10. * Makefile.am (EXTRA_DIST): New name for DIST_OTHER. 1996-02-28 François Pinard * msleep.c: New file, from elsewhere. * Makefile.am: Adjusted. 1996-02-12 François Pinard * Makefile.am: Remove CONFIG_HEADER, not required by Automake 0.29. 1996-01-14 François Pinard * Makefile.am (AUTOMAKE_OPTIONS): Select gnits. 1996-01-07 François Pinard * Makefile.am: Add parts of previous Makefile.in as FIXME comments. 1996-01-01 François Pinard * error.h: New file, from elsewhere. * Makefile.am: Add error.h to HEADERS. Reported by Jim Meyering. 1995-12-30 François Pinard * Makefile.am (INCLUDES): Add -I../intl to get libintl.h. Reported by Daniel S. Barclay, Göran Uddeborg, Jonathan Thornburg and Minh Tran-Le. 1995-12-29 François Pinard * Prerelease 1.11.9. * Makefile.am: New file. 1995-11-22 François Pinard * Makefile.in (DISTFILES): Distribute ChangeLog. * ChangeLog: New, extracted from the top-level ChangeLog. 1995-06-18 François Pinard * execlp.c (execlp): New, extracted from src/port.c. * Makefile.in: Adjusted. * open3.h: New, moved from src/. * open3.c: New, extracted from src/port.c. * Makefile.in: Adjusted. Clean out old NO_OPEN3 code. * insremque.h, insremque.c: Deleted. * Makefile.in: Adjusted. 1995-06-17 François Pinard * Makefile.in (DISTFILES): Remove COPYING.LIB. * COPYING.LIB: Deleted. 1995-06-15 François Pinard * Makefile.in (dist): Do not hide copying rule. 1995-06-07 François Pinard * Makefile.in: Use subdir and distdir. * stpcpy.c, xgetcwd.c: New functions needed by gettext. * Makefile.in: Adjusted to always compile these. 1995-05-16 François Pinard * insremque.h, insremque.c: New files, from GNU gettext. * Makefile.in: Take care of insremque.[hc]. 1995-03-19 François Pinard * Makefile.in: Remove GLOCALE, add LINGUAS, use fp_WITH_CATALOGS. 1995-02-19 François Pinard * Makefile.in: Support ID files. Do not distribute TAGS. 1995-02-05 François Pinard * Makefile.in (maintainer-clean): New name for realclean. 1994-12-18 François Pinard * safe-stat.h: New, from elsewhere. This solves the fact that mkdir.c, rmdir.c and rename.c were needing it. * Makefile.in (Makefile): Distribute it. Reported by Bruno Haible and Sherwood Botsford. 1994-12-11 François Pinard * rx.c, rx.h: New, from elsewhere. * Makefile.in: Adjust accordingly. 1994-12-03 François Pinard * Makefile.in: Localize, adapting from how it is done in sharutils. 1994-09-14 François Pinard * Makefile.in: Cleanup... (DISTFILES): Distribute TAGS. (check): Deleted. (TAGS): Make TAGS in $(srcdir) only. (distclean): Do not remove TAGS. (realclean): Remove TAGS. (Makefile): Have ./config.status create this Makefile only. 1994-08-22 François Pinard Little cleanup in installation: * Makefile.in (install, check): Depend on all. 1994-08-21 François Pinard * Makefile.in: Correct for when a different build directory. * rmdir.c: New, split out of mkdir.c. * Makefile.in: Distribute it. Reported by Greg Black. 1994-08-17 François Pinard * ftruncate.c: Revised, because there is no ftruncate capability whatsoever in Interactive Unix. Reported by Peder Chr. Norgaard. 1994-08-08 François Pinard * memset.c, mkdir.c, rename.c, strstr.c and ftruncate.c: New, from elsewhere. * Makefile.in: Distribute them. 1994-08-05 François Pinard * Makefile.in (getdate.c): Tell the installer to expect 10 shift/reduce conflicts instead of 9. Reported by Andreas Schwab. * fileblocks.c: New, from elsewhere. * Makefile.in: Distribute it. 1994-08-02 François Pinard * xstrdup.c: New, from elsewhere. * Makefile.in: Adjusted. 1994-07-29 François Pinard * error.c: Add error_print_progname virtual routine. 1994-07-24 François Pinard * gmalloc.c: New, from elsewhere. This renames and updates what was previously malloc.c. This also solves __const vs const. * Makefile.in: Distribute gmalloc.c. Reported by Cliff Krumvieda, Francois Pinard, Henrik Bakman, J.T. Conklin, Nelson H.F. Beebe and Tilman Schmidt. 1994-07-22 François Pinard * Makefile.in (LIBOBJS): Get configured list of replacements. * fnmatch.h: Undefine FNM_PATHNAME and FNM_PERIOD, for HP-UX defines them in . * getdate.y: Acknowledging here a few reports which are likely solved by going to an updated version of getdate.y. Reported by Andrey A. Chernov, Bruce Evans, Dean Gaudet, Ian T. Zimmerman, Jeff Prothero, Mike Nolan, Milan Hodoscek, Peder Chr. Norgaard, Sarah Quady, Tarang Kumar Patel and Thomas Koenig. 1994-07-02 François Pinard * xmalloc.c: New file, from elsewhere. * error.c: New, from elsewhere. * Makefile.in: Adjusted. 1994-06-30 François Pinard * Makefile.in: New file. tar-1.13/lib/Makefile.am0000444000176300016070000000343306740567220010525 # Makefile for GNU tar library. # Copyright 1994, 1995, 1996, 1997, 1999 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. AUTOMAKE_OPTIONS = gnits ../src/ansi2knr noinst_LIBRARIES = libtar.a 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 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 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 INCLUDES = -I.. -I$(srcdir) -I../intl libtar_a_LIBADD = @ALLOCA@ @LIBOBJS@ libtar_a_DEPENDENCIES = $(libtar_a_LIBADD) # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule. $(srcdir)/getdate.c: getdate.y cd $(srcdir) && \ $(YACC) $(YFLAGS) getdate.y; \ mv -f y.tab.c getdate.c tar-1.13/lib/Makefile.in0000664000176300016070000004577306740607415010560 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. # Makefile for GNU tar library. # Copyright 1994, 1995, 1996, 1997, 1999 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ 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 DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ AUTOMAKE_OPTIONS = gnits ../src/ansi2knr noinst_LIBRARIES = libtar.a 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 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 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 INCLUDES = -I.. -I$(srcdir) -I../intl libtar_a_LIBADD = @ALLOCA@ @LIBOBJS@ libtar_a_DEPENDENCIES = $(libtar_a_LIBADD) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) DEFS = @DEFS@ -I. -I$(srcdir) -I.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ ANSI2KNR = ../src/ansi2knr libtar_a_OBJECTS = addext$U.o argmatch$U.o backupfile$U.o basename$U.o \ error$U.o exclude$U.o full-write$U.o getdate$U.o getopt$U.o getopt1$U.o \ modechange$U.o msleep$U.o quotearg$U.o safe-read$U.o xgetcwd$U.o \ xmalloc$U.o xstrdup$U.o xstrtol$U.o xstrtoul$U.o xstrtoumax$U.o AR = ar CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ HEADERS = $(noinst_HEADERS) DIST_COMMON = ChangeLog Makefile.am Makefile.in alloca.c execlp.c \ fileblocks.c fnmatch.c ftruncate.c getdate.c lchown.c malloc.c memset.c \ mkdir.c realloc.c rename.c rmdir.c strstr.c strtol.c strtoul.c \ strtoull.c strtoumax.c utime.c DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best SOURCES = $(libtar_a_SOURCES) OBJECTS = $(libtar_a_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s .y $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps lib/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-noinstLIBRARIES: clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) distclean-noinstLIBRARIES: maintainer-clean-noinstLIBRARIES: .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ../src/ansi2knr: ../src/ansi2knr.o cd ../src && $(MAKE) $(AM_MAKEFLAGS) ansi2knr ../src/ansi2knr.o: cd ../src && $(MAKE) $(AM_MAKEFLAGS) ansi2knr.o mostlyclean-kr: -rm -f *_.c clean-kr: distclean-kr: maintainer-clean-kr: libtar.a: $(libtar_a_OBJECTS) $(libtar_a_DEPENDENCIES) -rm -f libtar.a $(AR) cru libtar.a $(libtar_a_OBJECTS) $(libtar_a_LIBADD) $(RANLIB) libtar.a addext_.c: addext.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/addext.c; then echo $(srcdir)/addext.c; else echo addext.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > addext_.c alloca_.c: alloca.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/alloca.c; then echo $(srcdir)/alloca.c; else echo alloca.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > alloca_.c argmatch_.c: argmatch.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/argmatch.c; then echo $(srcdir)/argmatch.c; else echo argmatch.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > argmatch_.c backupfile_.c: backupfile.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/backupfile.c; then echo $(srcdir)/backupfile.c; else echo backupfile.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > backupfile_.c basename_.c: basename.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/basename.c; then echo $(srcdir)/basename.c; else echo basename.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > basename_.c error_.c: error.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/error.c; then echo $(srcdir)/error.c; else echo error.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > error_.c exclude_.c: exclude.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/exclude.c; then echo $(srcdir)/exclude.c; else echo exclude.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > exclude_.c execlp_.c: execlp.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/execlp.c; then echo $(srcdir)/execlp.c; else echo execlp.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > execlp_.c fileblocks_.c: fileblocks.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/fileblocks.c; then echo $(srcdir)/fileblocks.c; else echo fileblocks.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > fileblocks_.c fnmatch_.c: fnmatch.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/fnmatch.c; then echo $(srcdir)/fnmatch.c; else echo fnmatch.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > fnmatch_.c ftruncate_.c: ftruncate.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/ftruncate.c; then echo $(srcdir)/ftruncate.c; else echo ftruncate.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > ftruncate_.c full-write_.c: full-write.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/full-write.c; then echo $(srcdir)/full-write.c; else echo full-write.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > full-write_.c getdate_.c: getdate.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/getdate.c; then echo $(srcdir)/getdate.c; else echo getdate.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > getdate_.c getopt_.c: getopt.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/getopt.c; then echo $(srcdir)/getopt.c; else echo getopt.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > getopt_.c getopt1_.c: getopt1.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/getopt1.c; then echo $(srcdir)/getopt1.c; else echo getopt1.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > getopt1_.c lchown_.c: lchown.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/lchown.c; then echo $(srcdir)/lchown.c; else echo lchown.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > lchown_.c malloc_.c: malloc.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/malloc.c; then echo $(srcdir)/malloc.c; else echo malloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > malloc_.c memset_.c: memset.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/memset.c; then echo $(srcdir)/memset.c; else echo memset.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > memset_.c mkdir_.c: mkdir.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mkdir.c; then echo $(srcdir)/mkdir.c; else echo mkdir.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > mkdir_.c modechange_.c: modechange.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/modechange.c; then echo $(srcdir)/modechange.c; else echo modechange.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > modechange_.c msleep_.c: msleep.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/msleep.c; then echo $(srcdir)/msleep.c; else echo msleep.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > msleep_.c quotearg_.c: quotearg.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/quotearg.c; then echo $(srcdir)/quotearg.c; else echo quotearg.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > quotearg_.c realloc_.c: realloc.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/realloc.c; then echo $(srcdir)/realloc.c; else echo realloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > realloc_.c rename_.c: rename.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/rename.c; then echo $(srcdir)/rename.c; else echo rename.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > rename_.c rmdir_.c: rmdir.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/rmdir.c; then echo $(srcdir)/rmdir.c; else echo rmdir.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > rmdir_.c safe-read_.c: safe-read.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/safe-read.c; then echo $(srcdir)/safe-read.c; else echo safe-read.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > safe-read_.c strstr_.c: strstr.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strstr.c; then echo $(srcdir)/strstr.c; else echo strstr.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strstr_.c strtol_.c: strtol.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strtol.c; then echo $(srcdir)/strtol.c; else echo strtol.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strtol_.c strtoul_.c: strtoul.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strtoul.c; then echo $(srcdir)/strtoul.c; else echo strtoul.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strtoul_.c strtoull_.c: strtoull.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strtoull.c; then echo $(srcdir)/strtoull.c; else echo strtoull.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strtoull_.c strtoumax_.c: strtoumax.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strtoumax.c; then echo $(srcdir)/strtoumax.c; else echo strtoumax.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strtoumax_.c utime_.c: utime.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/utime.c; then echo $(srcdir)/utime.c; else echo utime.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > utime_.c xgetcwd_.c: xgetcwd.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xgetcwd.c; then echo $(srcdir)/xgetcwd.c; else echo xgetcwd.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xgetcwd_.c xmalloc_.c: xmalloc.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xmalloc.c; then echo $(srcdir)/xmalloc.c; else echo xmalloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xmalloc_.c xstrdup_.c: xstrdup.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xstrdup.c; then echo $(srcdir)/xstrdup.c; else echo xstrdup.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xstrdup_.c xstrtol_.c: xstrtol.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xstrtol.c; then echo $(srcdir)/xstrtol.c; else echo xstrtol.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xstrtol_.c xstrtoul_.c: xstrtoul.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xstrtoul.c; then echo $(srcdir)/xstrtoul.c; else echo xstrtoul.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xstrtoul_.c xstrtoumax_.c: xstrtoumax.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xstrtoumax.c; then echo $(srcdir)/xstrtoumax.c; else echo xstrtoumax.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xstrtoumax_.c addext_.o alloca_.o argmatch_.o backupfile_.o basename_.o error_.o \ exclude_.o execlp_.o fileblocks_.o fnmatch_.o ftruncate_.o \ full-write_.o getdate_.o getopt_.o getopt1_.o lchown_.o malloc_.o \ memset_.o mkdir_.o modechange_.o msleep_.o quotearg_.o realloc_.o \ rename_.o rmdir_.o safe-read_.o strstr_.o strtol_.o strtoul_.o \ strtoull_.o strtoumax_.o utime_.o xgetcwd_.o xmalloc_.o xstrdup_.o \ xstrtol_.o xstrtoul_.o xstrtoumax_.o : $(ANSI2KNR) .y.c: $(YACC) $(AM_YFLAGS) $(YFLAGS) $< && mv y.tab.c $*.c if test -f y.tab.h; then \ if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ else :; fi getdate.h: getdate.c tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = lib distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ 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 install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile $(LIBRARIES) $(HEADERS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: -test -z "getdatehgetdatec" || rm -f getdateh getdatec mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ mostlyclean-kr mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-noinstLIBRARIES clean-compile clean-kr clean-tags \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-noinstLIBRARIES distclean-compile distclean-kr \ distclean-tags distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ maintainer-clean-compile maintainer-clean-kr \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile mostlyclean-kr distclean-kr clean-kr \ maintainer-clean-kr tags mostlyclean-tags distclean-tags clean-tags \ maintainer-clean-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 # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule. $(srcdir)/getdate.c: getdate.y cd $(srcdir) && \ $(YACC) $(YFLAGS) getdate.y; \ mv -f y.tab.c getdate.c # 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. .NOEXPORT: tar-1.13/lib/alloca.c0000444000176300016070000003364506632643612010100 /* alloca.c -- allocate automatically reclaimed memory (Mostly) portable public-domain implementation -- D A Gwyn This implementation of the PWB library alloca function, which is used to allocate space off the run-time stack so that it is automatically reclaimed upon procedure exit, was inspired by discussions with J. Q. Johnson of Cornell. J.Otto Tennant contributed the Cray support. There are some preprocessor constants that can be defined when compiling for your specific system, for improved efficiency; however, the defaults should be okay. The general concept of this implementation is to keep track of all alloca-allocated blocks, and reclaim any that are found to be deeper in the stack than the current invocation. This heuristic does not reclaim storage as soon as it becomes invalid, but it will do so eventually. As a special case, alloca(0) reclaims storage without allocating any. It is a good idea to use alloca(0) in your main control loop, etc. to force garbage collection. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef emacs # include "blockinput.h" #endif /* If compiling with GCC 2, this file's not needed. */ #if !defined (__GNUC__) || __GNUC__ < 2 /* If someone has defined alloca as a macro, there must be some other way alloca is supposed to work. */ # ifndef alloca # ifdef emacs # ifdef static /* actually, only want this if static is defined as "" -- this is for usg, in which emacs must undefine static in order to make unexec workable */ # ifndef STACK_DIRECTION you lose -- must know STACK_DIRECTION at compile-time # endif /* STACK_DIRECTION undefined */ # endif /* static */ # endif /* emacs */ /* If your stack is a linked list of frames, you have to provide an "address metric" ADDRESS_FUNCTION macro. */ # if defined (CRAY) && defined (CRAY_STACKSEG_END) long i00afunc (); # define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg)) # else # define ADDRESS_FUNCTION(arg) &(arg) # endif # if __STDC__ typedef void *pointer; # else typedef char *pointer; # endif # ifndef NULL # define NULL 0 # endif /* Different portions of Emacs need to call different versions of malloc. The Emacs executable needs alloca to call xmalloc, because ordinary malloc isn't protected from input signals. On the other hand, the utilities in lib-src need alloca to call malloc; some of them are very simple, and don't have an xmalloc routine. Non-Emacs programs expect this to call xmalloc. Callers below should use malloc. */ # ifndef emacs # define malloc xmalloc # endif extern pointer malloc (); /* Define STACK_DIRECTION if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ # ifndef STACK_DIRECTION # define STACK_DIRECTION 0 /* Direction unknown. */ # endif # if STACK_DIRECTION != 0 # define STACK_DIR STACK_DIRECTION /* Known at compile-time. */ # else /* STACK_DIRECTION == 0; need run-time code. */ static int stack_dir; /* 1 or -1 once known. */ # define STACK_DIR stack_dir static void find_stack_direction () { static char *addr = NULL; /* Address of first `dummy', once known. */ auto char dummy; /* To get stack address. */ if (addr == NULL) { /* Initial entry. */ addr = ADDRESS_FUNCTION (dummy); find_stack_direction (); /* Recurse once. */ } else { /* Second entry. */ if (ADDRESS_FUNCTION (dummy) > addr) stack_dir = 1; /* Stack grew upward. */ else stack_dir = -1; /* Stack grew downward. */ } } # endif /* STACK_DIRECTION == 0 */ /* An "alloca header" is used to: (a) chain together all alloca'ed blocks; (b) keep track of stack depth. It is very important that sizeof(header) agree with malloc alignment chunk size. The following default should work okay. */ # ifndef ALIGN_SIZE # define ALIGN_SIZE sizeof(double) # endif typedef union hdr { char align[ALIGN_SIZE]; /* To force sizeof(header). */ struct { union hdr *next; /* For chaining headers. */ char *deep; /* For stack depth measure. */ } h; } header; static header *last_alloca_header = NULL; /* -> last alloca header. */ /* Return a pointer to at least SIZE bytes of storage, which will be automatically reclaimed upon exit from the procedure that called alloca. Originally, this space was supposed to be taken from the current stack frame of the caller, but that method cannot be made to work for some implementations of C, for example under Gould's UTX/32. */ pointer alloca (unsigned size) { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe); # if STACK_DIRECTION == 0 if (STACK_DIR == 0) /* Unknown growth direction. */ find_stack_direction (); # endif /* Reclaim garbage, defined as all alloca'd storage that was allocated from deeper in the stack than currently. */ { register header *hp; /* Traverses linked list. */ # ifdef emacs BLOCK_INPUT; # endif for (hp = last_alloca_header; hp != NULL;) if ((STACK_DIR > 0 && hp->h.deep > depth) || (STACK_DIR < 0 && hp->h.deep < depth)) { register header *np = hp->h.next; free ((pointer) hp); /* Collect garbage. */ hp = np; /* -> next header. */ } else break; /* Rest are not deeper. */ last_alloca_header = hp; /* -> last valid storage. */ # ifdef emacs UNBLOCK_INPUT; # endif } if (size == 0) return NULL; /* No allocation required. */ /* Allocate combined header + user data storage. */ { register pointer new = malloc (sizeof (header) + size); /* Address of header. */ ((header *) new)->h.next = last_alloca_header; ((header *) new)->h.deep = depth; last_alloca_header = (header *) new; /* User storage begins just after header. */ return (pointer) ((char *) new + sizeof (header)); } } # if defined (CRAY) && defined (CRAY_STACKSEG_END) # ifdef DEBUG_I00AFUNC # include # endif # ifndef CRAY_STACK # define CRAY_STACK # ifndef CRAY2 /* Stack structures for CRAY-1, CRAY X-MP, and CRAY Y-MP */ struct stack_control_header { long shgrow:32; /* Number of times stack has grown. */ long shaseg:32; /* Size of increments to stack. */ long shhwm:32; /* High water mark of stack. */ long shsize:32; /* Current size of stack (all segments). */ }; /* The stack segment linkage control information occurs at the high-address end of a stack segment. (The stack grows from low addresses to high addresses.) The initial part of the stack segment linkage control information is 0200 (octal) words. This provides for register storage for the routine which overflows the stack. */ struct stack_segment_linkage { long ss[0200]; /* 0200 overflow words. */ long sssize:32; /* Number of words in this segment. */ long ssbase:32; /* Offset to stack base. */ long:32; long sspseg:32; /* Offset to linkage control of previous segment of stack. */ long:32; long sstcpt:32; /* Pointer to task common address block. */ long sscsnm; /* Private control structure number for microtasking. */ long ssusr1; /* Reserved for user. */ long ssusr2; /* Reserved for user. */ long sstpid; /* Process ID for pid based multi-tasking. */ long ssgvup; /* Pointer to multitasking thread giveup. */ long sscray[7]; /* Reserved for Cray Research. */ long ssa0; long ssa1; long ssa2; long ssa3; long ssa4; long ssa5; long ssa6; long ssa7; long sss0; long sss1; long sss2; long sss3; long sss4; long sss5; long sss6; long sss7; }; # else /* CRAY2 */ /* The following structure defines the vector of words returned by the STKSTAT library routine. */ struct stk_stat { long now; /* Current total stack size. */ long maxc; /* Amount of contiguous space which would be required to satisfy the maximum stack demand to date. */ long high_water; /* Stack high-water mark. */ long overflows; /* Number of stack overflow ($STKOFEN) calls. */ long hits; /* Number of internal buffer hits. */ long extends; /* Number of block extensions. */ long stko_mallocs; /* Block allocations by $STKOFEN. */ long underflows; /* Number of stack underflow calls ($STKRETN). */ long stko_free; /* Number of deallocations by $STKRETN. */ long stkm_free; /* Number of deallocations by $STKMRET. */ long segments; /* Current number of stack segments. */ long maxs; /* Maximum number of stack segments so far. */ long pad_size; /* Stack pad size. */ long current_address; /* Current stack segment address. */ long current_size; /* Current stack segment size. This number is actually corrupted by STKSTAT to include the fifteen word trailer area. */ long initial_address; /* Address of initial segment. */ long initial_size; /* Size of initial segment. */ }; /* The following structure describes the data structure which trails any stack segment. I think that the description in 'asdef' is out of date. I only describe the parts that I am sure about. */ struct stk_trailer { long this_address; /* Address of this block. */ long this_size; /* Size of this block (does not include this trailer). */ long unknown2; long unknown3; long link; /* Address of trailer block of previous segment. */ long unknown5; long unknown6; long unknown7; long unknown8; long unknown9; long unknown10; long unknown11; long unknown12; long unknown13; long unknown14; }; # endif /* CRAY2 */ # endif /* not CRAY_STACK */ # ifdef CRAY2 /* Determine a "stack measure" for an arbitrary ADDRESS. I doubt that "lint" will like this much. */ static long i00afunc (long *address) { struct stk_stat status; struct stk_trailer *trailer; long *block, size; long result = 0; /* We want to iterate through all of the segments. The first step is to get the stack status structure. We could do this more quickly and more directly, perhaps, by referencing the $LM00 common block, but I know that this works. */ STKSTAT (&status); /* Set up the iteration. */ trailer = (struct stk_trailer *) (status.current_address + status.current_size - 15); /* There must be at least one stack segment. Therefore it is a fatal error if "trailer" is null. */ if (trailer == 0) abort (); /* Discard segments that do not contain our argument address. */ while (trailer != 0) { block = (long *) trailer->this_address; size = trailer->this_size; if (block == 0 || size == 0) abort (); trailer = (struct stk_trailer *) trailer->link; if ((block <= address) && (address < (block + size))) break; } /* Set the result to the offset in this segment and add the sizes of all predecessor segments. */ result = address - block; if (trailer == 0) { return result; } do { if (trailer->this_size <= 0) abort (); result += trailer->this_size; trailer = (struct stk_trailer *) trailer->link; } while (trailer != 0); /* We are done. Note that if you present a bogus address (one not in any segment), you will get a different number back, formed from subtracting the address of the first block. This is probably not what you want. */ return (result); } # else /* not CRAY2 */ /* Stack address function for a CRAY-1, CRAY X-MP, or CRAY Y-MP. Determine the number of the cell within the stack, given the address of the cell. The purpose of this routine is to linearize, in some sense, stack addresses for alloca. */ static long i00afunc (long address) { long stkl = 0; long size, pseg, this_segment, stack; long result = 0; struct stack_segment_linkage *ssptr; /* Register B67 contains the address of the end of the current stack segment. If you (as a subprogram) store your registers on the stack and find that you are past the contents of B67, you have overflowed the segment. B67 also points to the stack segment linkage control area, which is what we are really interested in. */ stkl = CRAY_STACKSEG_END (); ssptr = (struct stack_segment_linkage *) stkl; /* If one subtracts 'size' from the end of the segment, one has the address of the first word of the segment. If this is not the first segment, 'pseg' will be nonzero. */ pseg = ssptr->sspseg; size = ssptr->sssize; this_segment = stkl - size; /* It is possible that calling this routine itself caused a stack overflow. Discard stack segments which do not contain the target address. */ while (!(this_segment <= address && address <= stkl)) { # ifdef DEBUG_I00AFUNC fprintf (stderr, "%011o %011o %011o\n", this_segment, address, stkl); # endif if (pseg == 0) break; stkl = stkl - pseg; ssptr = (struct stack_segment_linkage *) stkl; size = ssptr->sssize; pseg = ssptr->sspseg; this_segment = stkl - size; } result = address - this_segment; /* If you subtract pseg from the current end of the stack, you get the address of the previous stack segment's end. This seems a little convoluted to me, but I'll bet you save a cycle somewhere. */ while (pseg != 0) { # ifdef DEBUG_I00AFUNC fprintf (stderr, "%011o %011o\n", pseg, size); # endif stkl = stkl - pseg; ssptr = (struct stack_segment_linkage *) stkl; size = ssptr->sssize; pseg = ssptr->sspseg; result += size; } return (result); } # endif /* not CRAY2 */ # endif /* CRAY */ # endif /* no alloca */ #endif /* not GCC version 2 */ tar-1.13/lib/execlp.c0000444000176300016070000001020206322324253010076 /* Provide an execlp replacement for Minix. Copyright (C) 1988, 1994, 1995, 1997 Free Software Foundation, Inc. This file is part of GNU Tar. GNU Tar 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. GNU Tar 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 GNU Tar; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #if HAVE_CONFIG_H # include #endif /* For defining NULL. */ #include #if STDC_HEADERS # include #else char *getenv (); char *malloc (); #endif #include #ifndef errno extern int errno; #endif #include #include #if STDC_HEADERS || HAVE_STRING_H # include #else # include # ifndef strchr # define strchr index # endif #endif /* Synopsis: execlp (file, arg0, arg1... argN, (char *) NULL) Exec a program, automatically searching for the program through all the directories on the PATH. This version is naive about variable argument lists and assumes a quite straightforward C calling sequence. It will not work on systems having odd stacks. */ int execlp (filename, arg0) char *filename; char *arg0; { register char *p, *path; register char *fnbuffer; char **argstart = &arg0; struct stat statbuf; extern char **environ; if (p = getenv ("PATH"), p == NULL) { /* Could not find path variable -- try to exec given filename. */ return execve (filename, argstart, environ); } /* Make a place to build the filename. We malloc larger than we need, but we know it will fit in this. */ fnbuffer = malloc (strlen (p) + 1 + strlen (filename)); if (fnbuffer == NULL) { errno = ENOMEM; return -1; } /* Try each component of the path to see if the file's there and executable. */ for (path = p; path; path = p) { /* Construct full path name to try. */ if (p = strchr (path, ':'), !p) strcpy (fnbuffer, path); else { strncpy (fnbuffer, path, p - path); fnbuffer[p - path] = '\0'; p++; /* skip : for next time */ } if (strlen (fnbuffer) != 0) strcat (fnbuffer, "/"); strcat (fnbuffer, filename); /* Check to see if file is there and is a normal file. */ if (stat (fnbuffer, &statbuf) < 0) { if (errno == ENOENT) continue; /* file not there,keep on looking */ else goto fail; /* failed for some reason, return */ } if (!S_ISREG (statbuf.st_mode)) continue; if (execve (fnbuffer, argstart, environ) < 0 && errno != ENOENT && errno != ENOEXEC) { /* Failed, for some other reason besides "file. */ goto fail; } /* If we got error ENOEXEC, the file is executable but is not an object file. Try to execute it as a shell script, returning error if we can't execute /bin/sh. FIXME, this code is broken in several ways. Shell scripts should not in general be executed by the user's SHELL variable program. On more mature systems, the script can specify with #!/bin/whatever. Also, this code clobbers argstart[-1] if the exec of the shell fails. */ if (errno == ENOEXEC) { char *shell; /* Try to execute command "sh arg0 arg1 ...". */ if (shell = getenv ("SHELL"), shell == NULL) shell = "/bin/sh"; argstart[-1] = shell; argstart[0] = fnbuffer; execve (shell, &argstart[-1], environ); goto fail; /* exec didn't work */ } /* If we succeeded, the execve() doesn't return, so we can only be here is if the file hasn't been found yet. Try the next place on the path. */ } /* All attempts failed to locate the file. Give up. */ errno = ENOENT; fail: free (fnbuffer); return -1; } tar-1.13/lib/fileblocks.c0000444000176300016070000000407706632643612010757 /* Convert file size to number of blocks on System V-like machines. Copyright (C) 1990, 1997, 1998 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. */ /* Written by Brian L. Matthews, blm@6sceng.UUCP. */ #if HAVE_CONFIG_H # include #endif #include #if HAVE_SYS_PARAM_H # include #endif #if !HAVE_ST_BLOCKS && !defined _POSIX_SOURCE && defined BSIZE # if HAVE_UNISTD_H # include # endif # ifndef NINDIR # if defined (__DJGPP__) typedef long daddr_t; /* for disk address */ # endif /* 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 */ /* Number of direct block addresses in an inode. */ # define NDIR 10 /* Return the number of 512-byte blocks in a file of SIZE bytes. */ off_t st_blocks (off_t size) { off_t datablks = size / 512 + (size % 512 != 0); off_t indrblks = 0; if (datablks > NDIR) { indrblks = (datablks - NDIR - 1) / NINDIR + 1; if (datablks > NDIR + NINDIR) { indrblks += (datablks - NDIR - NINDIR - 1) / (NINDIR * NINDIR) + 1; if (datablks > NDIR + NINDIR + NINDIR * NINDIR) indrblks++; } } return datablks + indrblks; } #else /* This declaration is solely to ensure that after preprocessing this file is never empty. */ extern int textutils_fileblocks_unused; #endif tar-1.13/lib/fnmatch.c0000444000176300016070000001303706632643612010256 /* Copyright (C) 1991, 1992, 1993, 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. */ #if HAVE_CONFIG_H # include #endif /* Enable GNU extensions in fnmatch.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #include #include #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #if defined _LIBC || !defined __GNU_LIBRARY__ # if defined STDC_HEADERS || !defined isascii # define ISASCII(c) 1 # else # define ISASCII(c) isascii(c) # endif # define ISUPPER(c) (ISASCII (c) && isupper (c)) # ifndef errno extern int errno; # endif /* Match STRING against the filename pattern PATTERN, returning zero if it matches, nonzero if not. */ int fnmatch (const char *pattern, const char *string, int flags) { register const char *p = pattern, *n = string; register char c; /* Note that this evaluates C many times. */ # define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c)) while ((c = *p++) != '\0') { c = FOLD (c); switch (c) { case '?': if (*n == '\0') return FNM_NOMATCH; else if ((flags & FNM_FILE_NAME) && *n == '/') return FNM_NOMATCH; else if ((flags & FNM_PERIOD) && *n == '.' && (n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/'))) return FNM_NOMATCH; break; case '\\': if (!(flags & FNM_NOESCAPE)) { c = *p++; if (c == '\0') /* Trailing \ loses. */ return FNM_NOMATCH; c = FOLD (c); } if (FOLD (*n) != c) return FNM_NOMATCH; break; case '*': if ((flags & FNM_PERIOD) && *n == '.' && (n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/'))) return FNM_NOMATCH; for (c = *p++; c == '?' || c == '*'; c = *p++) { if ((flags & FNM_FILE_NAME) && *n == '/') /* A slash does not match a wildcard under FNM_FILE_NAME. */ return FNM_NOMATCH; else if (c == '?') { /* A ? needs to match one character. */ if (*n == '\0') /* There isn't another character; no match. */ return FNM_NOMATCH; else /* One character of the string is consumed in matching this ? wildcard, so *??? won't match if there are less than three characters. */ ++n; } } if (c == '\0') return 0; { char c1 = (!(flags & FNM_NOESCAPE) && c == '\\') ? *p : c; c1 = FOLD (c1); for (--p; *n != '\0'; ++n) if ((c == '[' || FOLD (*n) == c1) && fnmatch (p, n, flags & ~FNM_PERIOD) == 0) return 0; return FNM_NOMATCH; } case '[': { /* Nonzero if the sense of the character class is inverted. */ register int not; if (*n == '\0') return FNM_NOMATCH; if ((flags & FNM_PERIOD) && *n == '.' && (n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/'))) return FNM_NOMATCH; not = (*p == '!' || *p == '^'); if (not) ++p; c = *p++; for (;;) { register char cstart = c, cend = c; if (!(flags & FNM_NOESCAPE) && c == '\\') { if (*p == '\0') return FNM_NOMATCH; cstart = cend = *p++; } cstart = cend = FOLD (cstart); if (c == '\0') /* [ (unterminated) loses. */ return FNM_NOMATCH; c = *p++; c = FOLD (c); if ((flags & FNM_FILE_NAME) && c == '/') /* [/] can never match. */ return FNM_NOMATCH; if (c == '-' && *p != ']') { cend = *p++; if (!(flags & FNM_NOESCAPE) && cend == '\\') cend = *p++; if (cend == '\0') return FNM_NOMATCH; cend = FOLD (cend); c = *p++; } if (FOLD (*n) >= cstart && FOLD (*n) <= cend) goto matched; if (c == ']') break; } if (!not) return FNM_NOMATCH; break; matched:; /* Skip the rest of the [...] that already matched. */ while (c != ']') { if (c == '\0') /* [... (unterminated) loses. */ return FNM_NOMATCH; c = *p++; if (!(flags & FNM_NOESCAPE) && c == '\\') { if (*p == '\0') return FNM_NOMATCH; /* XXX 1003.2d11 is unclear if this is right. */ ++p; } } if (not) return FNM_NOMATCH; } break; default: if (c != FOLD (*n)) return FNM_NOMATCH; } ++n; } if (*n == '\0') return 0; if ((flags & FNM_LEADING_DIR) && *n == '/') /* The FNM_LEADING_DIR flag says that "foo*" matches "foobar/frobozz". */ return 0; return FNM_NOMATCH; # undef FOLD } #endif /* _LIBC or not __GNU_LIBRARY__. */ tar-1.13/lib/ftruncate.c0000444000176300016070000000321406632643612010625 /* ftruncate emulations that work on some System V's. This file is in the public domain. */ #if HAVE_CONFIG_H # include #endif #include #include #ifdef F_CHSIZE int ftruncate (int fd, off_t length) { return fcntl (fd, F_CHSIZE, length); } #else /* not F_CHSIZE */ # ifdef F_FREESP /* By William Kucharski . */ # include # include # if HAVE_UNISTD_H # include # endif int ftruncate (int fd, off_t length) { struct flock fl; struct stat filebuf; if (fstat (fd, &filebuf) < 0) return -1; if (filebuf.st_size < length) { /* Extend file length. */ if (lseek (fd, (length - 1), SEEK_SET) < 0) return -1; /* Write a "0" byte. */ if (write (fd, "", 1) != 1) return -1; } else { /* Truncate length. */ fl.l_whence = 0; fl.l_len = 0; fl.l_start = length; fl.l_type = F_WRLCK; /* write lock on file space */ /* This relies on the *undocumented* F_FREESP argument to fcntl, which truncates the file so that it ends at the position indicated by fl.l_start. Will minor miracles never cease? */ if (fcntl (fd, F_FREESP, &fl) < 0) return -1; } return 0; } # else /* not F_CHSIZE nor F_FREESP */ # if HAVE_CHSIZE int ftruncate (int fd, off_t length) { return chsize (fd, length); } # else /* not F_CHSIZE nor F_FREESP nor HAVE_CHSIZE */ # include # ifndef errno extern int errno; # endif int ftruncate (int fd, off_t length) { errno = EIO; return -1; } # endif /* not HAVE_CHSIZE */ # endif /* not F_FREESP */ #endif /* not F_CHSIZE */ tar-1.13/lib/getdate.c0000664000176300016070000015257306741031543010263 /* A Bison parser, made from getdate.y by GNU Bison version 1.28 */ #define YYBISON 1 /* Identify Bison output. */ #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 #line 1 "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. */ #ifdef HAVE_CONFIG_H # include # ifdef HAVE_ALLOCA_H # include # endif #endif /* Since the code of getdate.y is not included in the Emacs executable itself, there is no need to #define static in this file. Even if the code were included in the Emacs executable, it probably wouldn't do any harm to #undef it here; this will only cause problems if we try to write to a static variable, which I don't think this code needs to do. */ #ifdef emacs # undef static #endif #include #include #if HAVE_STDLIB_H # include /* for `free'; used by Bison 1.27 */ #endif #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 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)) /* ISDIGIT differs from ISDIGIT_LOCALE, as follows: - Its arg may be any int or unsigned int; it need not be an unsigned char. - It's guaranteed to evaluate its argument exactly once. - It's typically faster. Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that only '0' through '9' are digits. Prefer ISDIGIT to ISDIGIT_LOCALE unless it's important to use the locale's definition of `digit' even when the host does not conform to Posix. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) #if defined (STDC_HEADERS) || defined (USG) # include #endif #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif #ifndef ATTRIBUTE_UNUSED # define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #endif /* Some old versions of bison generate parsers that use bcopy. That loses on systems that don't provide the function, so we have to redefine it here. */ #if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) # define bcopy(from, to, len) memcpy ((to), (from), (len)) #endif /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc), as well as gratuitiously global symbol names, so we can have multiple yacc generated parsers in the same program. Note that these are only the variables produced by yacc. If other parser generators (bison, byacc, etc) produce additional global names that conflict at link time, then those parser generators need to be fixed instead of adding those names to this list. */ #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 static int yylex (); static int yyerror (); #define EPOCH 1970 #define HOUR(x) ((x) * 60) #define MAX_BUFF_LEN 128 /* size of buffer to read the date into */ /* ** An entry in the lexical lookup table. */ typedef struct _TABLE { const char *name; int type; int value; } TABLE; /* ** Meridian: am, pm, or 24-hour style. */ typedef enum _MERIDIAN { MERam, MERpm, MER24 } MERIDIAN; /* ** 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; #line 182 "getdate.y" typedef union { int Number; enum _MERIDIAN Meridian; } YYSTYPE; #include #ifndef __cplusplus #ifndef __STDC__ #define const #endif #endif #define YYFINAL 61 #define YYFLAG -32768 #define YYNTBASE 22 #define YYTRANSLATE(x) ((unsigned)(x) <= 272 ? yytranslate[x] : 32) static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 20, 2, 2, 21, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 19, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }; #if YYDEBUG != 0 static const short yyprhs[] = { 0, 0, 1, 4, 6, 8, 10, 12, 14, 16, 19, 24, 29, 36, 43, 45, 47, 50, 52, 55, 58, 62, 68, 72, 76, 79, 84, 87, 91, 94, 96, 99, 102, 104, 107, 110, 112, 115, 118, 120, 123, 126, 128, 131, 134, 136, 139, 142, 144, 146, 147 }; static const short yyrhs[] = { -1, 22, 23, 0, 24, 0, 25, 0, 27, 0, 26, 0, 28, 0, 30, 0, 16, 10, 0, 16, 19, 16, 31, 0, 16, 19, 16, 15, 0, 16, 19, 16, 19, 16, 31, 0, 16, 19, 16, 19, 16, 15, 0, 18, 0, 6, 0, 18, 7, 0, 4, 0, 4, 20, 0, 16, 4, 0, 16, 21, 16, 0, 16, 21, 16, 21, 16, 0, 16, 15, 15, 0, 16, 12, 15, 0, 12, 16, 0, 12, 16, 20, 16, 0, 16, 12, 0, 16, 12, 16, 0, 29, 3, 0, 29, 0, 16, 17, 0, 15, 17, 0, 17, 0, 16, 13, 0, 15, 13, 0, 13, 0, 16, 5, 0, 15, 5, 0, 5, 0, 16, 8, 0, 15, 8, 0, 8, 0, 16, 11, 0, 15, 11, 0, 11, 0, 16, 14, 0, 15, 14, 0, 14, 0, 16, 0, 0, 10, 0 }; #endif #if YYDEBUG != 0 static const short yyrline[] = { 0, 198, 199, 202, 205, 208, 211, 214, 217, 220, 226, 232, 241, 247, 259, 262, 265, 271, 275, 279, 285, 289, 307, 313, 319, 323, 328, 332, 339, 347, 350, 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, 383, 386, 389, 392, 395, 398, 401, 406, 439, 443 }; #endif #if YYDEBUG != 0 || defined (YYERROR_VERBOSE) 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 static const short yyr1[] = { 0, 22, 22, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 31, 31 }; static const short yyr2[] = { 0, 0, 2, 1, 1, 1, 1, 1, 1, 2, 4, 4, 6, 6, 1, 1, 2, 1, 2, 2, 3, 5, 3, 3, 2, 4, 2, 3, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 0, 1 }; static const short yydefact[] = { 1, 0, 17, 38, 15, 41, 44, 0, 35, 47, 0, 48, 32, 14, 2, 3, 4, 6, 5, 7, 29, 8, 18, 24, 37, 40, 43, 34, 46, 31, 19, 36, 39, 9, 42, 26, 33, 45, 0, 30, 0, 0, 16, 28, 0, 23, 27, 22, 49, 20, 25, 50, 11, 0, 10, 0, 49, 21, 13, 12, 0, 0 }; static const short yydefgoto[] = { 1, 14, 15, 16, 17, 18, 19, 20, 21, 54 }; static const short yypact[] = {-32768, 0, -19,-32768,-32768,-32768,-32768, -13,-32768,-32768, 30, 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, 23,-32768,-32768, 24,-32768,-32768,-32768, 27, 28,-32768, -32768,-32768, 29,-32768, 32, -8,-32768,-32768,-32768, 50, -32768 }; static const short yypgoto[] = {-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -5 }; #define YYLAST 51 static const short yytable[] = { 60, 22, 51, 23, 2, 3, 4, 58, 5, 45, 46, 6, 7, 8, 9, 10, 11, 12, 13, 30, 31, 42, 43, 32, 44, 33, 34, 35, 36, 37, 38, 47, 39, 48, 40, 24, 41, 51, 25, 49, 50, 26, 52, 27, 28, 56, 53, 29, 57, 55, 61, 59 }; static const short yycheck[] = { 0, 20, 10, 16, 4, 5, 6, 15, 8, 15, 16, 11, 12, 13, 14, 15, 16, 17, 18, 4, 5, 7, 3, 8, 20, 10, 11, 12, 13, 14, 15, 15, 17, 16, 19, 5, 21, 10, 8, 16, 16, 11, 15, 13, 14, 16, 19, 17, 16, 21, 0, 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. */ /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 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. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ /* This is the parser code that is written into each bison parser when the %semantic_parser declaration is not specified in the grammar. It was written by Richard Stallman by simplifying the hairy parser used when %semantic_parser is specified. */ #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 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; 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. So I turned it off. rms, 2 May 1997. */ /* #include */ #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, 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 */ #ifdef YYSTACK_USE_ALLOCA #define YYSTACK_ALLOC alloca #else #define YYSTACK_ALLOC malloc #endif /* Note: there must be only one dollar sign in this file. It is replaced by the list of actions, each action as one case of the switch. */ #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. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(token, value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { yychar = (token), yylval = (value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { yyerror ("syntax error: cannot back up"); YYERROR; } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 #ifndef YYPURE #define YYLEX yylex() #endif #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 /* If nonreentrant, generate the variables here */ #ifndef YYPURE int yychar; /* the lookahead symbol */ YYSTYPE yylval; /* the semantic value of the */ /* lookahead symbol */ #ifdef YYLSP_NEEDED YYLTYPE yylloc; /* location data for the lookahead */ /* symbol */ #endif int yynerrs; /* number of parse errors so far */ #endif /* not YYPURE */ #if YYDEBUG != 0 int yydebug; /* nonzero means print parse trace */ /* Since this is uninitialized, it does not stop multiple parsers from coexisting. */ #endif /* YYINITDEPTH indicates the initial size of the parser's stacks */ #ifndef YYINITDEPTH #define YYINITDEPTH 200 #endif /* YYMAXDEPTH is the maximum size the stacks can grow to (effective only if the built-in stack extension method is used). */ #if YYMAXDEPTH == 0 #undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH #define YYMAXDEPTH 10000 #endif /* Define __yy_memcpy. Note that the size argument should be passed with type unsigned int, because that is what the non-GCC definitions require. With GCC, __builtin_memcpy takes an arg of type size_t, but it can handle unsigned int. */ #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 /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (to, from, count) char *to; char *from; unsigned int count; { register char *f = from; register char *t = to; register int i = count; while (i-- > 0) *t++ = *f++; } #else /* __cplusplus */ /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (char *to, char *from, unsigned int count) { register char *t = to; register char *f = from; register int i = count; while (i-- > 0) *t++ = *f++; } #endif #endif #line 217 "/opt/reb/share/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. It should actually point to an object. Grammar actions can access the variable by casting it to the proper pointer type. */ #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 */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ #ifdef YYPARSE_PARAM int yyparse (void *); #else int yyparse (void); #endif #endif int yyparse(YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { register int yystate; register int yyn; register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ short *yyss = yyssa; /* refer to the stacks thru separate pointers */ YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ #ifdef YYLSP_NEEDED YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else #define YYPOPSTACK (yyvsp--, yyssp--) #endif int yystacksize = YYINITDEPTH; int yyfree_stacks = 0; #ifdef YYPURE int yychar; YYSTYPE yylval; int yynerrs; #ifdef YYLSP_NEEDED YYLTYPE yylloc; #endif #endif YYSTYPE yyval; /* the variable used to return */ /* semantic values from the action */ /* routines */ int yylen; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Starting parse\n"); #endif yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss - 1; yyvsp = yyvs; #ifdef YYLSP_NEEDED yylsp = yyls; #endif /* Push a new state, which is found in yystate . */ /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yynewstate: *++yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* Give user a chance to reallocate the stack */ /* Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; short *yyss1 = yyss; #ifdef YYLSP_NEEDED YYLTYPE *yyls1 = yyls; #endif /* Get the current used size of the three stacks, in elements. */ int size = yyssp - yyss + 1; #ifdef yyoverflow /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */ #ifdef YYLSP_NEEDED /* This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yyls1, size * sizeof (*yylsp), &yystacksize); #else yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yystacksize); #endif yyss = yyss1; yyvs = yyvs1; #ifdef YYLSP_NEEDED yyls = yyls1; #endif #else /* no yyoverflow */ /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) { yyerror("parser stack overflow"); if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 2; } yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; #ifndef YYSTACK_USE_ALLOCA yyfree_stacks = 1; #endif yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); __yy_memcpy ((char *)yyss, (char *)yyss1, size * (unsigned int) sizeof (*yyssp)); yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * (unsigned int) sizeof (*yyvsp)); #ifdef YYLSP_NEEDED yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); __yy_memcpy ((char *)yyls, (char *)yyls1, size * (unsigned int) sizeof (*yylsp)); #endif #endif /* no yyoverflow */ yyssp = yyss + size - 1; yyvsp = yyvs + size - 1; #ifdef YYLSP_NEEDED yylsp = yyls + size - 1; #endif #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Stack size increased to %d\n", yystacksize); #endif if (yyssp >= yyss + yystacksize - 1) YYABORT; } #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Entering state %d\n", yystate); #endif goto yybackup; yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYFLAG) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* yychar is either YYEMPTY or YYEOF or a valid token in external form. */ if (yychar == YYEMPTY) { #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Reading a token: "); #endif yychar = YYLEX; } /* Convert token to internal form (in yychar1) for indexing tables with */ if (yychar <= 0) /* This means end of input. */ { yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Now at end of input.\n"); #endif } else { yychar1 = YYTRANSLATE(yychar); #if YYDEBUG != 0 if (yydebug) { fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); /* Give the individual parser a way to print the precise meaning of a token, for further debugging info. */ #ifdef YYPRINT YYPRINT (stderr, yychar, yylval); #endif fprintf (stderr, ")\n"); } #endif } yyn += yychar1; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) goto yydefault; yyn = yytable[yyn]; /* yyn is what to do for this token type in this state. Negative => reduce, -yyn is rule number. Positive => shift, yyn is new state. New state is final state => don't bother to shift, just return success. 0, or most negative number => error. */ if (yyn < 0) { if (yyn == YYFLAG) goto yyerrlab; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrlab; if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); #endif /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif /* count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /* Do the default action for the current state. */ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; if (yylen > 0) yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) { int i; fprintf (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) fprintf (stderr, "%s ", yytname[yyrhs[i]]); fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif switch (yyn) { case 3: #line 202 "getdate.y" { yyHaveTime++; ; break;} case 4: #line 205 "getdate.y" { yyHaveZone++; ; break;} case 5: #line 208 "getdate.y" { yyHaveDate++; ; break;} case 6: #line 211 "getdate.y" { yyHaveDay++; ; break;} case 7: #line 214 "getdate.y" { yyHaveRel++; ; break;} case 9: #line 220 "getdate.y" { yyHour = yyvsp[-1].Number; yyMinutes = 0; yySeconds = 0; yyMeridian = yyvsp[0].Meridian; ; break;} case 10: #line 226 "getdate.y" { yyHour = yyvsp[-3].Number; yyMinutes = yyvsp[-1].Number; yySeconds = 0; yyMeridian = yyvsp[0].Meridian; ; break;} case 11: #line 232 "getdate.y" { yyHour = yyvsp[-3].Number; yyMinutes = yyvsp[-1].Number; yyMeridian = MER24; yyHaveZone++; yyTimezone = (yyvsp[0].Number < 0 ? -yyvsp[0].Number % 100 + (-yyvsp[0].Number / 100) * 60 : - (yyvsp[0].Number % 100 + (yyvsp[0].Number / 100) * 60)); ; break;} case 12: #line 241 "getdate.y" { yyHour = yyvsp[-5].Number; yyMinutes = yyvsp[-3].Number; yySeconds = yyvsp[-1].Number; yyMeridian = yyvsp[0].Meridian; ; break;} case 13: #line 247 "getdate.y" { yyHour = yyvsp[-5].Number; yyMinutes = yyvsp[-3].Number; yySeconds = yyvsp[-1].Number; yyMeridian = MER24; yyHaveZone++; yyTimezone = (yyvsp[0].Number < 0 ? -yyvsp[0].Number % 100 + (-yyvsp[0].Number / 100) * 60 : - (yyvsp[0].Number % 100 + (yyvsp[0].Number / 100) * 60)); ; break;} case 14: #line 259 "getdate.y" { yyTimezone = yyvsp[0].Number; ; break;} case 15: #line 262 "getdate.y" { yyTimezone = yyvsp[0].Number - 60; ; break;} case 16: #line 266 "getdate.y" { yyTimezone = yyvsp[-1].Number - 60; ; break;} case 17: #line 271 "getdate.y" { yyDayOrdinal = 1; yyDayNumber = yyvsp[0].Number; ; break;} case 18: #line 275 "getdate.y" { yyDayOrdinal = 1; yyDayNumber = yyvsp[-1].Number; ; break;} case 19: #line 279 "getdate.y" { yyDayOrdinal = yyvsp[-1].Number; yyDayNumber = yyvsp[0].Number; ; break;} case 20: #line 285 "getdate.y" { yyMonth = yyvsp[-2].Number; yyDay = yyvsp[0].Number; ; break;} case 21: #line 289 "getdate.y" { /* Interpret as YYYY/MM/DD if $1 >= 1000, otherwise as MM/DD/YY. The goal in recognizing YYYY/MM/DD is solely to support legacy machine-generated dates like those in an RCS log listing. If you want portability, use the ISO 8601 format. */ if (yyvsp[-4].Number >= 1000) { yyYear = yyvsp[-4].Number; yyMonth = yyvsp[-2].Number; yyDay = yyvsp[0].Number; } else { yyMonth = yyvsp[-4].Number; yyDay = yyvsp[-2].Number; yyYear = yyvsp[0].Number; } ; break;} case 22: #line 307 "getdate.y" { /* ISO 8601 format. yyyy-mm-dd. */ yyYear = yyvsp[-2].Number; yyMonth = -yyvsp[-1].Number; yyDay = -yyvsp[0].Number; ; break;} case 23: #line 313 "getdate.y" { /* e.g. 17-JUN-1992. */ yyDay = yyvsp[-2].Number; yyMonth = yyvsp[-1].Number; yyYear = -yyvsp[0].Number; ; break;} case 24: #line 319 "getdate.y" { yyMonth = yyvsp[-1].Number; yyDay = yyvsp[0].Number; ; break;} case 25: #line 323 "getdate.y" { yyMonth = yyvsp[-3].Number; yyDay = yyvsp[-2].Number; yyYear = yyvsp[0].Number; ; break;} case 26: #line 328 "getdate.y" { yyMonth = yyvsp[0].Number; yyDay = yyvsp[-1].Number; ; break;} case 27: #line 332 "getdate.y" { yyMonth = yyvsp[-1].Number; yyDay = yyvsp[-2].Number; yyYear = yyvsp[0].Number; ; break;} case 28: #line 339 "getdate.y" { yyRelSeconds = -yyRelSeconds; yyRelMinutes = -yyRelMinutes; yyRelHour = -yyRelHour; yyRelDay = -yyRelDay; yyRelMonth = -yyRelMonth; yyRelYear = -yyRelYear; ; break;} case 30: #line 350 "getdate.y" { yyRelYear += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 31: #line 353 "getdate.y" { yyRelYear += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 32: #line 356 "getdate.y" { yyRelYear += yyvsp[0].Number; ; break;} case 33: #line 359 "getdate.y" { yyRelMonth += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 34: #line 362 "getdate.y" { yyRelMonth += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 35: #line 365 "getdate.y" { yyRelMonth += yyvsp[0].Number; ; break;} case 36: #line 368 "getdate.y" { yyRelDay += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 37: #line 371 "getdate.y" { yyRelDay += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 38: #line 374 "getdate.y" { yyRelDay += yyvsp[0].Number; ; break;} case 39: #line 377 "getdate.y" { yyRelHour += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 40: #line 380 "getdate.y" { yyRelHour += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 41: #line 383 "getdate.y" { yyRelHour += yyvsp[0].Number; ; break;} case 42: #line 386 "getdate.y" { yyRelMinutes += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 43: #line 389 "getdate.y" { yyRelMinutes += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 44: #line 392 "getdate.y" { yyRelMinutes += yyvsp[0].Number; ; break;} case 45: #line 395 "getdate.y" { yyRelSeconds += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 46: #line 398 "getdate.y" { yyRelSeconds += yyvsp[-1].Number * yyvsp[0].Number; ; break;} case 47: #line 401 "getdate.y" { yyRelSeconds += yyvsp[0].Number; ; break;} case 48: #line 407 "getdate.y" { if (yyHaveTime && yyHaveDate && !yyHaveRel) yyYear = yyvsp[0].Number; else { if (yyvsp[0].Number>10000) { yyHaveDate++; yyDay= (yyvsp[0].Number)%100; yyMonth= (yyvsp[0].Number/100)%100; yyYear = yyvsp[0].Number/10000; } else { yyHaveTime++; if (yyvsp[0].Number < 100) { yyHour = yyvsp[0].Number; yyMinutes = 0; } else { yyHour = yyvsp[0].Number / 100; yyMinutes = yyvsp[0].Number % 100; } yySeconds = 0; yyMeridian = MER24; } } ; break;} case 49: #line 440 "getdate.y" { yyval.Meridian = MER24; ; break;} case 50: #line 444 "getdate.y" { yyval.Meridian = yyvsp[0].Meridian; ; break;} } /* the action file gets copied in in place of this dollarsign */ #line 543 "/opt/reb/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; #ifdef YYLSP_NEEDED yylsp -= yylen; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif *++yyvsp = yyval; #ifdef YYLSP_NEEDED yylsp++; if (yylen == 0) { yylsp->first_line = yylloc.first_line; yylsp->first_column = yylloc.first_column; yylsp->last_line = (yylsp-1)->last_line; yylsp->last_column = (yylsp-1)->last_column; yylsp->text = 0; } else { yylsp->last_line = (yylsp+yylen-1)->last_line; yylsp->last_column = (yylsp+yylen-1)->last_column; } #endif /* Now "shift" the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTBASE] + *yyssp; if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTBASE]; goto yynewstate; yyerrlab: /* here on detecting error */ if (! yyerrstatus) /* If not already recovering from an error, report this error. */ { ++yynerrs; #ifdef YYERROR_VERBOSE yyn = yypact[yystate]; if (yyn > YYFLAG && yyn < YYLAST) { int size = 0; char *msg; int x, count; count = 0; /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) size += strlen(yytname[x]) + 15, count++; msg = (char *) malloc(size + 15); if (msg != 0) { strcpy(msg, "parse error"); if (count < 5) { count = 0; for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) { strcat(msg, count == 0 ? ", expecting `" : " or `"); strcat(msg, yytname[x]); strcat(msg, "'"); count++; } } yyerror(msg); free(msg); } else yyerror ("parse error; also virtual memory exceeded"); } else #endif /* YYERROR_VERBOSE */ yyerror("parse error"); } goto yyerrlab1; yyerrlab1: /* here on error raised explicitly by an action */ if (yyerrstatus == 3) { /* if just tried and failed to reuse lookahead token after an error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); #endif yychar = YYEMPTY; } /* Else will try to reuse lookahead token after shifting the error token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; yyerrdefault: /* current state does not do anything special for the error token. */ #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ if (yyn) goto yydefault; #endif yyerrpop: /* pop the current state because it cannot handle the error token */ if (yyssp == yyss) YYABORT; yyvsp--; yystate = *--yyssp; #ifdef YYLSP_NEEDED yylsp--; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "Error: state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif yyerrhandle: yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; yyn += YYTERROR; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) goto yyerrdefault; yyn = yytable[yyn]; if (yyn < 0) { if (yyn == YYFLAG) goto yyerrpop; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrpop; if (yyn == YYFINAL) YYACCEPT; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting error token, "); #endif *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; yyacceptlab: /* YYACCEPT comes here. */ if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 0; yyabortlab: /* YYABORT comes here. */ if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 1; } #line 449 "getdate.y" /* Include this file down here because bison inserts code above which may define-away `const'. We want the prototype for get_date to have the same signature as the function definition does. */ #include "getdate.h" extern struct tm *gmtime (); extern struct tm *localtime (); extern time_t mktime (); /* Month and day table. */ static TABLE const MonthDayTable[] = { { "january", tMONTH, 1 }, { "february", tMONTH, 2 }, { "march", tMONTH, 3 }, { "april", tMONTH, 4 }, { "may", tMONTH, 5 }, { "june", tMONTH, 6 }, { "july", tMONTH, 7 }, { "august", tMONTH, 8 }, { "september", tMONTH, 9 }, { "sept", tMONTH, 9 }, { "october", tMONTH, 10 }, { "november", tMONTH, 11 }, { "december", tMONTH, 12 }, { "sunday", tDAY, 0 }, { "monday", tDAY, 1 }, { "tuesday", tDAY, 2 }, { "tues", tDAY, 2 }, { "wednesday", tDAY, 3 }, { "wednes", tDAY, 3 }, { "thursday", tDAY, 4 }, { "thur", tDAY, 4 }, { "thurs", tDAY, 4 }, { "friday", tDAY, 5 }, { "saturday", tDAY, 6 }, { NULL, 0, 0 } }; /* Time units table. */ static TABLE const UnitsTable[] = { { "year", tYEAR_UNIT, 1 }, { "month", tMONTH_UNIT, 1 }, { "fortnight", tDAY_UNIT, 14 }, { "week", tDAY_UNIT, 7 }, { "day", tDAY_UNIT, 1 }, { "hour", tHOUR_UNIT, 1 }, { "minute", tMINUTE_UNIT, 1 }, { "min", tMINUTE_UNIT, 1 }, { "second", tSEC_UNIT, 1 }, { "sec", tSEC_UNIT, 1 }, { NULL, 0, 0 } }; /* Assorted relative-time words. */ static TABLE const OtherTable[] = { { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 }, { "yesterday", tMINUTE_UNIT, -1 * 24 * 60 }, { "today", tMINUTE_UNIT, 0 }, { "now", tMINUTE_UNIT, 0 }, { "last", tUNUMBER, -1 }, { "this", tMINUTE_UNIT, 0 }, { "next", tUNUMBER, 1 }, { "first", tUNUMBER, 1 }, /* { "second", tUNUMBER, 2 }, */ { "third", tUNUMBER, 3 }, { "fourth", tUNUMBER, 4 }, { "fifth", tUNUMBER, 5 }, { "sixth", tUNUMBER, 6 }, { "seventh", tUNUMBER, 7 }, { "eighth", tUNUMBER, 8 }, { "ninth", tUNUMBER, 9 }, { "tenth", tUNUMBER, 10 }, { "eleventh", tUNUMBER, 11 }, { "twelfth", tUNUMBER, 12 }, { "ago", tAGO, 1 }, { NULL, 0, 0 } }; /* The timezone table. */ static TABLE const TimezoneTable[] = { { "gmt", tZONE, HOUR ( 0) }, /* Greenwich Mean */ { "ut", tZONE, HOUR ( 0) }, /* Universal (Coordinated) */ { "utc", tZONE, HOUR ( 0) }, { "wet", tZONE, HOUR ( 0) }, /* Western European */ { "bst", tDAYZONE, HOUR ( 0) }, /* British Summer */ { "wat", tZONE, HOUR ( 1) }, /* West Africa */ { "at", tZONE, HOUR ( 2) }, /* Azores */ #if 0 /* For completeness. BST is also British Summer, and GST is * also Guam Standard. */ { "bst", tZONE, HOUR ( 3) }, /* Brazil Standard */ { "gst", tZONE, HOUR ( 3) }, /* Greenland Standard */ #endif #if 0 { "nft", tZONE, HOUR (3.5) }, /* Newfoundland */ { "nst", tZONE, HOUR (3.5) }, /* Newfoundland Standard */ { "ndt", tDAYZONE, HOUR (3.5) }, /* Newfoundland Daylight */ #endif { "ast", tZONE, HOUR ( 4) }, /* Atlantic Standard */ { "adt", tDAYZONE, HOUR ( 4) }, /* Atlantic Daylight */ { "est", tZONE, HOUR ( 5) }, /* Eastern Standard */ { "edt", tDAYZONE, HOUR ( 5) }, /* Eastern Daylight */ { "cst", tZONE, HOUR ( 6) }, /* Central Standard */ { "cdt", tDAYZONE, HOUR ( 6) }, /* Central Daylight */ { "mst", tZONE, HOUR ( 7) }, /* Mountain Standard */ { "mdt", tDAYZONE, HOUR ( 7) }, /* Mountain Daylight */ { "pst", tZONE, HOUR ( 8) }, /* Pacific Standard */ { "pdt", tDAYZONE, HOUR ( 8) }, /* Pacific Daylight */ { "yst", tZONE, HOUR ( 9) }, /* Yukon Standard */ { "ydt", tDAYZONE, HOUR ( 9) }, /* Yukon Daylight */ { "hst", tZONE, HOUR (10) }, /* Hawaii Standard */ { "hdt", tDAYZONE, HOUR (10) }, /* Hawaii Daylight */ { "cat", tZONE, HOUR (10) }, /* Central Alaska */ { "ahst", tZONE, HOUR (10) }, /* Alaska-Hawaii Standard */ { "nt", tZONE, HOUR (11) }, /* Nome */ { "idlw", tZONE, HOUR (12) }, /* International Date Line West */ { "cet", tZONE, -HOUR (1) }, /* Central European */ { "met", tZONE, -HOUR (1) }, /* Middle European */ { "mewt", tZONE, -HOUR (1) }, /* Middle European Winter */ { "mest", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ { "mesz", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ { "swt", tZONE, -HOUR (1) }, /* Swedish Winter */ { "sst", tDAYZONE, -HOUR (1) }, /* Swedish Summer */ { "fwt", tZONE, -HOUR (1) }, /* French Winter */ { "fst", tDAYZONE, -HOUR (1) }, /* French Summer */ { "eet", tZONE, -HOUR (2) }, /* Eastern Europe, USSR Zone 1 */ { "bt", tZONE, -HOUR (3) }, /* Baghdad, USSR Zone 2 */ #if 0 { "it", tZONE, -HOUR (3.5) },/* Iran */ #endif { "zp4", tZONE, -HOUR (4) }, /* USSR Zone 3 */ { "zp5", tZONE, -HOUR (5) }, /* USSR Zone 4 */ #if 0 { "ist", tZONE, -HOUR (5.5) },/* Indian Standard */ #endif { "zp6", tZONE, -HOUR (6) }, /* USSR Zone 5 */ #if 0 /* For completeness. NST is also Newfoundland Standard, and SST is * also Swedish Summer. */ { "nst", tZONE, -HOUR (6.5) },/* North Sumatra */ { "sst", tZONE, -HOUR (7) }, /* South Sumatra, USSR Zone 6 */ #endif /* 0 */ { "wast", tZONE, -HOUR (7) }, /* West Australian Standard */ { "wadt", tDAYZONE, -HOUR (7) }, /* West Australian Daylight */ #if 0 { "jt", tZONE, -HOUR (7.5) },/* Java (3pm in Cronusland!) */ #endif { "cct", tZONE, -HOUR (8) }, /* China Coast, USSR Zone 7 */ { "jst", tZONE, -HOUR (9) }, /* Japan Standard, USSR Zone 8 */ #if 0 { "cast", tZONE, -HOUR (9.5) },/* Central Australian Standard */ { "cadt", tDAYZONE, -HOUR (9.5) },/* Central Australian Daylight */ #endif { "east", tZONE, -HOUR (10) }, /* Eastern Australian Standard */ { "eadt", tDAYZONE, -HOUR (10) }, /* Eastern Australian Daylight */ { "gst", tZONE, -HOUR (10) }, /* Guam Standard, USSR Zone 9 */ { "nzt", tZONE, -HOUR (12) }, /* New Zealand */ { "nzst", tZONE, -HOUR (12) }, /* New Zealand Standard */ { "nzdt", tDAYZONE, -HOUR (12) }, /* New Zealand Daylight */ { "idle", tZONE, -HOUR (12) }, /* International Date Line East */ { NULL, 0, 0 } }; /* Military timezone table. */ static TABLE const MilitaryTable[] = { { "a", tZONE, HOUR ( 1) }, { "b", tZONE, HOUR ( 2) }, { "c", tZONE, HOUR ( 3) }, { "d", tZONE, HOUR ( 4) }, { "e", tZONE, HOUR ( 5) }, { "f", tZONE, HOUR ( 6) }, { "g", tZONE, HOUR ( 7) }, { "h", tZONE, HOUR ( 8) }, { "i", tZONE, HOUR ( 9) }, { "k", tZONE, HOUR ( 10) }, { "l", tZONE, HOUR ( 11) }, { "m", tZONE, HOUR ( 12) }, { "n", tZONE, HOUR (- 1) }, { "o", tZONE, HOUR (- 2) }, { "p", tZONE, HOUR (- 3) }, { "q", tZONE, HOUR (- 4) }, { "r", tZONE, HOUR (- 5) }, { "s", tZONE, HOUR (- 6) }, { "t", tZONE, HOUR (- 7) }, { "u", tZONE, HOUR (- 8) }, { "v", tZONE, HOUR (- 9) }, { "w", tZONE, HOUR (-10) }, { "x", tZONE, HOUR (-11) }, { "y", tZONE, HOUR (-12) }, { "z", tZONE, HOUR ( 0) }, { NULL, 0, 0 } }; /* ARGSUSED */ static int yyerror (s) char *s ATTRIBUTE_UNUSED; { return 0; } static int ToHour (Hours, Meridian) int Hours; MERIDIAN Meridian; { switch (Meridian) { case MER24: if (Hours < 0 || Hours > 23) return -1; return Hours; case MERam: if (Hours < 1 || Hours > 12) return -1; if (Hours == 12) Hours = 0; return Hours; case MERpm: if (Hours < 1 || Hours > 12) return -1; if (Hours == 12) Hours = 0; return Hours + 12; default: abort (); } /* NOTREACHED */ } static int ToYear (Year) int Year; { if (Year < 0) Year = -Year; /* XPG4 suggests that years 00-68 map to 2000-2068, and years 69-99 map to 1969-1999. */ if (Year < 69) Year += 2000; else if (Year < 100) Year += 1900; return Year; } static int LookupWord (buff) char *buff; { register char *p; register char *q; register const TABLE *tp; int i; int abbrev; /* Make it lowercase. */ for (p = buff; *p; p++) if (ISUPPER ((unsigned char) *p)) *p = tolower (*p); if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0) { yylval.Meridian = MERam; return tMERIDIAN; } if (strcmp (buff, "pm") == 0 || strcmp (buff, "p.m.") == 0) { yylval.Meridian = MERpm; return tMERIDIAN; } /* See if we have an abbreviation for a month. */ if (strlen (buff) == 3) abbrev = 1; else if (strlen (buff) == 4 && buff[3] == '.') { abbrev = 1; buff[3] = '\0'; } else abbrev = 0; for (tp = MonthDayTable; tp->name; tp++) { if (abbrev) { if (strncmp (buff, tp->name, 3) == 0) { yylval.Number = tp->value; return tp->type; } } else if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } } for (tp = TimezoneTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } if (strcmp (buff, "dst") == 0) return tDST; for (tp = UnitsTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } /* Strip off any plural and try the units table again. */ i = strlen (buff) - 1; if (buff[i] == 's') { buff[i] = '\0'; for (tp = UnitsTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } buff[i] = 's'; /* Put back for "this" in OtherTable. */ } for (tp = OtherTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } /* Military timezones. */ if (buff[1] == '\0' && ISALPHA ((unsigned char) *buff)) { for (tp = MilitaryTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } } /* Drop out any periods and try the timezone table again. */ for (i = 0, p = q = buff; *q; q++) if (*q != '.') *p++ = *q; else i++; *p = '\0'; if (i) for (tp = TimezoneTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } return tID; } static int yylex () { register unsigned char c; register char *p; char buff[20]; int Count; int sign; for (;;) { while (ISSPACE ((unsigned char) *yyInput)) yyInput++; if (ISDIGIT (c = *yyInput) || c == '-' || c == '+') { if (c == '-' || c == '+') { sign = c == '-' ? -1 : 1; if (!ISDIGIT (*++yyInput)) /* skip the '-' sign */ continue; } else sign = 0; for (yylval.Number = 0; ISDIGIT (c = *yyInput++);) yylval.Number = 10 * yylval.Number + c - '0'; yyInput--; if (sign < 0) yylval.Number = -yylval.Number; return sign ? tSNUMBER : tUNUMBER; } if (ISALPHA (c)) { for (p = buff; (c = *yyInput++, ISALPHA (c)) || c == '.';) if (p < &buff[sizeof buff - 1]) *p++ = c; *p = '\0'; yyInput--; return LookupWord (buff); } if (c != '(') return *yyInput++; Count = 0; do { c = *yyInput++; if (c == '\0') return c; if (c == '(') Count++; else if (c == ')') Count--; } while (Count > 0); } } #define TM_YEAR_ORIGIN 1900 /* Yield A - B, measured in seconds. */ static long difftm (struct tm *a, struct tm *b) { int ay = a->tm_year + (TM_YEAR_ORIGIN - 1); int by = b->tm_year + (TM_YEAR_ORIGIN - 1); long days = ( /* difference in day of year */ a->tm_yday - b->tm_yday /* + intervening leap days */ + ((ay >> 2) - (by >> 2)) - (ay / 100 - by / 100) + ((ay / 100 >> 2) - (by / 100 >> 2)) /* + difference in years * 365 */ + (long) (ay - by) * 365 ); return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) + (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec)); } time_t get_date (const char *p, const time_t *now) { struct tm tm, tm0, *tmp; time_t Start; yyInput = p; Start = now ? *now : time ((time_t *) NULL); tmp = localtime (&Start); if (!tmp) return -1; yyYear = tmp->tm_year + TM_YEAR_ORIGIN; yyMonth = tmp->tm_mon + 1; yyDay = tmp->tm_mday; yyHour = tmp->tm_hour; yyMinutes = tmp->tm_min; yySeconds = tmp->tm_sec; tm.tm_isdst = tmp->tm_isdst; yyMeridian = MER24; yyRelSeconds = 0; yyRelMinutes = 0; yyRelHour = 0; yyRelDay = 0; yyRelMonth = 0; yyRelYear = 0; yyHaveDate = 0; yyHaveDay = 0; yyHaveRel = 0; yyHaveTime = 0; yyHaveZone = 0; if (yyparse () || yyHaveTime > 1 || yyHaveZone > 1 || yyHaveDate > 1 || yyHaveDay > 1) return -1; tm.tm_year = ToYear (yyYear) - TM_YEAR_ORIGIN + yyRelYear; tm.tm_mon = yyMonth - 1 + yyRelMonth; tm.tm_mday = yyDay + yyRelDay; if (yyHaveTime || (yyHaveRel && !yyHaveDate && !yyHaveDay)) { tm.tm_hour = ToHour (yyHour, yyMeridian); if (tm.tm_hour < 0) return -1; tm.tm_min = yyMinutes; tm.tm_sec = yySeconds; } else { tm.tm_hour = tm.tm_min = tm.tm_sec = 0; } tm.tm_hour += yyRelHour; tm.tm_min += yyRelMinutes; tm.tm_sec += yyRelSeconds; /* Let mktime deduce tm_isdst if we have an absolute timestamp, or if the relative timestamp mentions days, months, or years. */ if (yyHaveDate | yyHaveDay | yyHaveTime | yyRelDay | yyRelMonth | yyRelYear) tm.tm_isdst = -1; tm0 = tm; Start = mktime (&tm); if (Start == (time_t) -1) { /* Guard against falsely reporting errors near the time_t boundaries when parsing times in other time zones. For example, if the min time_t value is 1970-01-01 00:00:00 UTC and we are 8 hours ahead of UTC, then the min localtime value is 1970-01-01 08:00:00; if we apply mktime to 1970-01-01 00:00:00 we will get an error, so we apply mktime to 1970-01-02 08:00:00 instead and adjust the time zone by 24 hours to compensate. This algorithm assumes that there is no DST transition within a day of the time_t boundaries. */ if (yyHaveZone) { tm = tm0; if (tm.tm_year <= EPOCH - TM_YEAR_ORIGIN) { tm.tm_mday++; yyTimezone -= 24 * 60; } else { tm.tm_mday--; yyTimezone += 24 * 60; } Start = mktime (&tm); } if (Start == (time_t) -1) return Start; } if (yyHaveDay && !yyHaveDate) { tm.tm_mday += ((yyDayNumber - tm.tm_wday + 7) % 7 + 7 * (yyDayOrdinal - (0 < yyDayOrdinal))); Start = mktime (&tm); if (Start == (time_t) -1) return Start; } if (yyHaveZone) { long delta; struct tm *gmt = gmtime (&Start); if (!gmt) return -1; delta = yyTimezone * 60L + difftm (&tm, gmt); if ((Start + delta < Start) != (delta < 0)) return -1; /* time_t overflow */ Start += delta; } return Start; } #if defined (TEST) /* ARGSUSED */ int main (ac, av) int ac; char *av[]; { char buff[MAX_BUFF_LEN + 1]; time_t d; (void) printf ("Enter date, or blank line to exit.\n\t> "); (void) fflush (stdout); buff[MAX_BUFF_LEN] = 0; while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) { d = get_date (buff, (time_t *) NULL); if (d == -1) (void) printf ("Bad format - couldn't convert.\n"); else (void) printf ("%s", ctime (&d)); (void) printf ("\t> "); (void) fflush (stdout); } exit (0); /* NOTREACHED */ } #endif /* defined (TEST) */ tar-1.13/lib/lchown.c0000444000176300016070000000270606655066116010134 /* Provide a stub lchown function for systems that lack it. Copyright (C) 1998, 1999 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. */ /* written by Jim Meyering */ #include #include #include #include #ifndef errno extern int errno; #endif #include "lchown.h" /* Declare chown to avoid a warning. Don't include unistd.h, because it may have a conflicting prototype for lchown. */ int chown (); /* Work just like chown, except when FILE is a symbolic link. In that case, set errno to ENOSYS and return -1. */ int lchown (const char *file, uid_t uid, gid_t gid) { struct stat stats; if (lstat (file, &stats) == 0 && S_ISLNK (stats.st_mode)) { errno = ENOSYS; return -1; } return chown (file, uid, gid); } tar-1.13/lib/malloc.c0000444000176300016070000000215406632643613010104 /* Work around bug on some systems where malloc (0) fails. Copyright (C) 1997, 1998 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. */ /* written by Jim Meyering */ #if HAVE_CONFIG_H # include #endif #undef malloc #include char *malloc (); /* Allocate an N-byte block of memory from the heap. If N is zero, allocate a 1-byte block. */ char * rpl_malloc (size_t n) { if (n == 0) n = 1; return malloc (n); } tar-1.13/lib/memset.c0000444000176300016070000000165406632643613010133 /* memset.c -- set an area of memory to a given value Copyright (C) 1991 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. */ char * memset (char *str, int c, unsigned int len) { register char *st = str; while (len-- > 0) *st++ = c; return str; } tar-1.13/lib/mkdir.c0000444000176300016070000000555706711011361007740 /* BSD compatible make directory function for System V Copyright (C) 1988, 1990, 1998 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. */ #if HAVE_CONFIG_H # include #endif #include #include #include #ifndef errno extern int errno; #endif #if STAT_MACROS_BROKEN # undef S_ISDIR #endif #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #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 /* mkdir adapted from GNU tar. */ /* Make directory DPATH, with permission mode DMODE. Written by Robert Rother, Mariah Corporation, August 1985 (sdcsvax!rmr or rmr@uscd). If you want it, it's yours. Severely hacked over by John Gilmore to make a 4.2BSD compatible subroutine. 11Mar86; hoptoad!gnu Modified by rmtodd@uokmax 6-28-87 -- when making an already existing dir, subroutine didn't return EEXIST. It does now. */ int mkdir (const char *dpath, mode_t dmode) { pid_t cpid; mode_t mode; int status; struct stat statbuf; if (stat (dpath, &statbuf) == 0) { errno = EEXIST; /* stat worked, so it already exists. */ return -1; } /* If stat fails for a reason other than non-existence, return error. */ if (errno != ENOENT) return -1; cpid = fork (); switch (cpid) { case -1: /* Cannot fork. */ return -1; /* errno is already set. */ case 0: /* Child process. */ /* Cheap hack to set mode of new directory. Since this child process is going away anyway, we zap its umask. This won't suffice to set SUID, SGID, etc. on this directory, so the parent process calls chmod afterward. */ mode = umask (0); /* Get current umask. */ /* Set for mkdir. */ umask (mode | ((S_IRWXU | S_IRWXG | S_IRWXO) & ~dmode)); execl ("/bin/mkdir", "mkdir", dpath, (char *) 0); _exit (1); default: /* Parent process. */ /* Wait for kid to finish. */ while (wait (&status) != cpid) /* Do nothing. */ ; if (status) { /* /bin/mkdir failed. */ errno = EIO; return -1; } return chmod (dpath, dmode); } } tar-1.13/lib/realloc.c0000444000176300016070000000237206427257405010262 /* Work around bug on some systems where realloc (NULL, 0) fails. Copyright (C) 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. */ /* written by Jim Meyering */ #if HAVE_CONFIG_H # include #endif #undef realloc #include char *malloc (); char *realloc (); /* Change the size of an allocated block of memory P to N bytes, with error checking. If N is zero, change it to 1. If P is NULL, use malloc. */ char * rpl_realloc (p, n) char *p; size_t n; { if (n == 0) n = 1; if (p == 0) return malloc (n); return realloc (p, n); } tar-1.13/lib/rename.c0000444000176300016070000000537506700011443010076 /* BSD compatible rename and directory rename function for System V. Copyright (C) 1988, 1990 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. */ #if HAVE_CONFIG_H # include #endif #include #include #include #ifndef errno extern int errno; #endif #if STAT_MACROS_BROKEN # undef S_ISDIR #endif #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif /* Rename file FROM to file TO. Return 0 if successful, -1 if not. */ int rename (char *from, char *to) { struct stat from_stats, to_stats; if (stat (from, &from_stats)) return -1; /* Be careful not to unlink `from' if it happens to be equal to `to' or (on filesystems that silently truncate filenames after 14 characters) if `from' and `to' share the significant characters. */ if (stat (to, &to_stats)) { if (errno != ENOENT) return -1; } else { if ((from_stats.st_dev == to_stats.st_dev) && (from_stats.st_ino == to_stats.st_ino)) /* `from' and `to' designate the same file on that filesystem. */ return 0; if (unlink (to) && errno != ENOENT) return -1; } #ifdef MVDIR /* If MVDIR is defined, it should be the full filename of a setuid root program able to link and unlink directories. If MVDIR is not defined, then the capability of renaming directories may be missing. */ if (S_ISDIR (from_stats.st_mode)) { /* Need a setuid root process to link and unlink directories. */ int status; pid_t pid = fork (); switch (pid) { case -1: /* Error. */ return -1; /* errno already set */ case 0: /* Child. */ execl (MVDIR, "mvdir", from, to, (char *) 0); _exit (1); default: /* Parent. */ while (wait (&status) != pid) /* Do nothing. */ ; if (status) { /* MVDIR failed. */ errno = EIO; return -1; } } } else #endif /* MVDIR */ { if (link (from, to)) return -1; if (unlink (from) && errno != ENOENT) { unlink (to); return -1; } } return 0; } tar-1.13/lib/rmdir.c0000444000176300016070000000362606700011443007741 /* BSD compatible remove directory function for System V Copyright (C) 1988, 1990 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. */ #if HAVE_CONFIG_H # include #endif #include #include #include #ifndef errno extern int errno; #endif #if STAT_MACROS_BROKEN # undef S_ISDIR #endif #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif /* rmdir adapted from GNU tar. */ /* Remove directory DPATH. Return 0 if successful, -1 if not. */ int rmdir (dpath) char *dpath; { pid_t cpid; int status; struct stat statbuf; if (stat (dpath, &statbuf) != 0) return -1; /* errno already set */ if (!S_ISDIR (statbuf.st_mode)) { errno = ENOTDIR; return -1; } cpid = fork (); switch (cpid) { case -1: /* cannot fork */ return -1; /* errno already set */ case 0: /* child process */ execl ("/bin/rmdir", "rmdir", dpath, (char *) 0); _exit (1); default: /* parent process */ /* Wait for kid to finish. */ while (wait (&status) != cpid) /* Do nothing. */ ; if (status) { /* /bin/rmdir failed. */ errno = EIO; return -1; } return 0; } } tar-1.13/lib/strstr.c0000444000176300016070000000510506632643614010176 /* Copyright (C) 1994 Free Software Foundation, Inc. This file is part of the GNU C Library. 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. */ /* * My personal strstr() implementation that beats most other algorithms. * Until someone tells me otherwise, I assume that this is the * fastest implementation of strstr() in C. * I deliberately chose not to comment it. You should have at least * as much fun trying to understand it, as I had to write it :-). * * Stephen R. van den Berg, berg@pool.informatik.rwth-aachen.de */ #include #include typedef unsigned chartype; char * strstr (const char *phaystack, const char *pneedle) { register const unsigned char *haystack, *needle; register chartype b, c; haystack = (const unsigned char *) phaystack; needle = (const unsigned char *) pneedle; b = *needle; if (b != '\0') { haystack--; /* possible ANSI violation */ do { c = *++haystack; if (c == '\0') goto ret0; } while (c != b); c = *++needle; if (c == '\0') goto foundneedle; ++needle; goto jin; for (;;) { register chartype a; register const unsigned char *rhaystack, *rneedle; do { a = *++haystack; if (a == '\0') goto ret0; if (a == b) break; a = *++haystack; if (a == '\0') goto ret0; shloop: } while (a != b); jin: a = *++haystack; if (a == '\0') goto ret0; if (a != c) goto shloop; rhaystack = haystack-- + 1; rneedle = needle; a = *rneedle; if (*rhaystack == a) do { if (a == '\0') goto foundneedle; ++rhaystack; a = *++needle; if (*rhaystack != a) break; if (a == '\0') goto foundneedle; ++rhaystack; a = *++needle; } while (*rhaystack == a); needle = rneedle; /* took the register-poor aproach */ if (a == '\0') break; } } foundneedle: return (char*) haystack; ret0: return 0; } tar-1.13/lib/strtol.c0000444000176300016070000002635506714043101010160 /* Convert string representation of a number into an integer value. Copyright (C) 1991, 92, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. 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. */ #if HAVE_CONFIG_H # include #endif #ifdef _LIBC # define USE_NUMBER_GROUPING # define STDC_HEADERS # define HAVE_LIMITS_H #endif #include #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(Val) errno = (Val) #endif #ifdef HAVE_LIMITS_H # include #endif #ifdef STDC_HEADERS # include # include # include #else # ifndef NULL # define NULL 0 # endif #endif #ifdef USE_NUMBER_GROUPING # include "../locale/localeinfo.h" #endif /* Nonzero if we are defining `strtoul' or `strtoull', operating on unsigned integers. */ #ifndef UNSIGNED # define UNSIGNED 0 # define INT LONG int #else # define INT unsigned LONG int #endif /* 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 /* If QUAD is defined, we are defining `strtoll' or `strtoull', 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 /* The extra casts work around common compiler bugs, 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) \ ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \ : (t) 0)) # endif # ifndef TYPE_MAXIMUM # define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t))) # endif # 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 # if __GNUC__ == 2 && __GNUC_MINOR__ < 7 /* Work around gcc bug with using this constant. */ static const unsigned long long int maxquad = ULONG_LONG_MAX; # undef STRTOL_ULONG_MAX # define STRTOL_ULONG_MAX maxquad # endif #else # define LONG long # 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 /* We use this code also for the extended locale handling where the function gets as an additional argument the locale which has to be used. To access the values we have to redefine the _NL_CURRENT macro. */ #ifdef USE_IN_EXTENDED_LOCALE_MODEL # undef _NL_CURRENT # define _NL_CURRENT(category, item) \ (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 #if defined _LIBC || defined HAVE_WCHAR_H # include #endif #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 /* For compilers which are ansi but don't define __STDC__, like SGI 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 #ifdef USE_NUMBER_GROUPING /* This file defines a function to check for correct grouping. */ # include "grouping.h" #endif /* Convert NPTR to an `unsigned long int' or `long int' in base BASE. If BASE is 0 the base is determined by the presence of a leading zero, indicating octal or a leading "0x" or "0X", indicating hexadecimal. If BASE is < 2 or > 36, it is reset to 10. If ENDPTR is not NULL, a pointer to the character after the last one converted is stored in *ENDPTR. */ INT INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM) const STRING_TYPE *nptr; STRING_TYPE **endptr; int base; int group; LOCALE_PARAM_DECL { int negative; register unsigned LONG int cutoff; register unsigned int cutlim; register unsigned LONG int i; register const STRING_TYPE *s; register UCHAR_TYPE c; const STRING_TYPE *save, *end; int overflow; #ifdef USE_NUMBER_GROUPING # ifdef USE_IN_EXTENDED_LOCALE_MODEL struct locale_data *current = loc->__locales[LC_NUMERIC]; # endif /* The thousands character of the current locale. */ wchar_t thousands = L'\0'; /* The numeric grouping specification of the current locale, in the format described in . */ const char *grouping; if (group) { grouping = _NL_CURRENT (LC_NUMERIC, GROUPING); if (*grouping <= 0 || *grouping == CHAR_MAX) grouping = NULL; else { /* Figure out the thousands separator character. */ # if defined _LIBC || defined _HAVE_BTOWC thousands = __btowc (*_NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP)); if (thousands == WEOF) thousands = L'\0'; # endif if (thousands == L'\0') grouping = NULL; } } else grouping = NULL; #endif if (base < 0 || base == 1 || base > 36) { __set_errno (EINVAL); return 0; } save = s = nptr; /* Skip white space. */ while (ISSPACE (*s)) ++s; if (*s == L_('\0')) goto noconv; /* Check for a sign. */ if (*s == L_('-')) { negative = 1; ++s; } else if (*s == L_('+')) { negative = 0; ++s; } else negative = 0; /* Recognize number prefix and if BASE is zero, figure it out ourselves. */ if (*s == L_('0')) { if ((base == 0 || base == 16) && TOUPPER (s[1]) == L_('X')) { s += 2; base = 16; } else if (base == 0) base = 8; } else if (base == 0) base = 10; /* Save the pointer so we can check later if anything happened. */ save = s; #ifdef USE_NUMBER_GROUPING if (group) { /* Find the end of the digit string and check its grouping. */ end = s; for (c = *end; c != L_('\0'); c = *++end) if ((wchar_t) c != thousands && ((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base)) break; if (*s == thousands) end = s; else end = correctly_grouped_prefix (s, end, thousands, grouping); } else #endif end = NULL; cutoff = STRTOL_ULONG_MAX / (unsigned LONG int) base; cutlim = STRTOL_ULONG_MAX % (unsigned LONG int) base; overflow = 0; i = 0; for (c = *s; c != L_('\0'); c = *++s) { if (s == end) break; if (c >= L_('0') && c <= L_('9')) c -= L_('0'); else if (ISALPHA (c)) c = TOUPPER (c) - L_('A') + 10; else break; if ((int) c >= base) break; /* Check for overflow. */ if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (unsigned LONG int) base; i += c; } } /* Check if anything actually happened. */ if (s == save) goto noconv; /* Store in ENDPTR the address of one character past the last character we converted. */ if (endptr != NULL) *endptr = (STRING_TYPE *) s; #if !UNSIGNED /* Check for a value that is within the range of `unsigned LONG int', but outside the range of `LONG int'. */ if (overflow == 0 && i > (negative ? -((unsigned LONG int) (STRTOL_LONG_MIN + 1)) + 1 : (unsigned LONG int) STRTOL_LONG_MAX)) overflow = 1; #endif if (overflow) { __set_errno (ERANGE); #if UNSIGNED return STRTOL_ULONG_MAX; #else return negative ? STRTOL_LONG_MIN : STRTOL_LONG_MAX; #endif } /* Return the result of the appropriate sign. */ return negative ? -i : i; noconv: /* We must handle a special case here: the base is 0 or 16 and the first two characters are '0' and 'x', but the rest are no hexadecimal digits. This is no error case. We return 0 and ENDPTR points to the `x`. */ if (endptr != NULL) { if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') && save[-2] == L_('0')) *endptr = (STRING_TYPE *) &save[-1]; else /* There was no number to convert. */ *endptr = (STRING_TYPE *) nptr; } return 0L; } /* External user entry point. */ #if _LIBC - 0 == 0 # undef PARAMS # if defined (__STDC__) && __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif /* Prototype. */ INT strtol PARAMS ((const STRING_TYPE *nptr, STRING_TYPE **endptr, int base)); #endif INT #ifdef weak_function weak_function #endif strtol (nptr, endptr, base LOCALE_PARAM) const STRING_TYPE *nptr; STRING_TYPE **endptr; int base; LOCALE_PARAM_DECL { return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); } tar-1.13/lib/strtoul.c0000444000176300016070000000157306353460272010353 /* Copyright (C) 1991 Free Software Foundation, Inc. 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. 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. */ #define UNSIGNED 1 #include tar-1.13/lib/strtoull.c0000444000176300016070000000212006707637514010524 /* Function to parse an `unsigned long long int' from text. Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. 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. */ #define QUAD 1 #include "strtoul.c" #ifdef _LIBC strong_alias (__strtoull_internal, __strtouq_internal) weak_alias (strtoull, strtouq) #endif tar-1.13/lib/strtoumax.c0000444000176300016070000000306206707251407010701 /* Convert string representation of a number into an uintmax_t value. Copyright 1999 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. */ /* Written by Paul Eggert. */ #if HAVE_CONFIG_H # include #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_STDLIB_H # include #endif #ifndef PARAMS # if defined PROTOTYPES || defined __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif #if HAVE_UNSIGNED_LONG_LONG && ! HAVE_STRTOULL unsigned long long strtoull PARAMS ((char const *, char **, int)); #endif uintmax_t strtoumax (char const *ptr, char **endptr, int base) { #define USE_IF_EQUIVALENT(function) \ if (sizeof (uintmax_t) == sizeof function (ptr, endptr, base)) \ return function (ptr, endptr, base); #if HAVE_UNSIGNED_LONG_LONG USE_IF_EQUIVALENT (strtoull) #endif USE_IF_EQUIVALENT (strtoul) abort (); } tar-1.13/lib/utime.c0000444000176300016070000000411306710777224007760 /* Copyright (C) 1998 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. */ /* derived from a function in touch.c */ #ifdef HAVE_CONFIG_H # include #endif #undef utime #include #ifdef HAVE_UTIME_H # include #endif #include "safe-read.h" /* Some systems (even some that do have ) don't declare this structure anywhere. */ #ifndef HAVE_STRUCT_UTIMBUF struct utimbuf { long actime; long modtime; }; #endif /* Emulate utime (file, NULL) for systems (like 4.3BSD) that do not interpret it to set the access and modification times of FILE to the current time. Return 0 if successful, -1 if not. */ static int utime_null (const char *file) { #if HAVE_UTIMES_NULL return utimes (file, 0); #else int fd; char c; int status = 0; struct stat sb; fd = open (file, O_RDWR); if (fd < 0 || fstat (fd, &sb) < 0 || safe_read (fd, &c, sizeof (char)) < 0 || lseek (fd, (off_t) 0, SEEK_SET) < 0 || full_write (fd, &c, sizeof (char)) < 0 /* Maybe do this -- it's necessary on SunOS4.1.3 with some combination of patches, but that system doesn't use this code: it has utimes. || fsync (fd) < 0 */ || ftruncate (fd, st.st_size) < 0 || close (fd) < 0) status = -1; return status; #endif } int rpl_utime (const char *file, const struct utimbuf *times) { if (times) return utime (file, times); return utime_null (file); } tar-1.13/lib/addext.c0000444000176300016070000000510506650664444010112 /* addext.c -- add an extension to a file name Copyright (C) 1990, 1997, 1998, 1999 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; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie and Paul Eggert */ #if HAVE_CONFIG_H # include #endif #ifndef HAVE_DOS_FILE_NAMES # define HAVE_DOS_FILE_NAMES 0 #endif #ifndef HAVE_LONG_FILE_NAMES # define HAVE_LONG_FILE_NAMES 0 #endif #include #if HAVE_LIMITS_H # include #endif #ifndef _POSIX_NAME_MAX # define _POSIX_NAME_MAX 14 #endif #include #if HAVE_STRING_H # include #else # include #endif #if HAVE_UNISTD_H # include #endif char *base_name PARAMS ((char const *)); /* Append to FILENAME the extension EXT, unless the result would be too long, in which case just append the character E. */ void addext (char *filename, char const *ext, int e) { char *s = base_name (filename); size_t slen = strlen (s), extlen = strlen (ext); long slen_max = -1; #if HAVE_PATHCONF && defined _PC_NAME_MAX if (slen + extlen <= _POSIX_NAME_MAX && ! HAVE_DOS_FILE_NAMES) /* The file name is so short there's no need to call pathconf. */ slen_max = _POSIX_NAME_MAX; else if (s == filename) slen_max = pathconf (".", _PC_NAME_MAX); else { char c = *s; *s = 0; slen_max = pathconf (filename, _PC_NAME_MAX); *s = c; } #endif if (slen_max < 0) slen_max = HAVE_LONG_FILE_NAMES ? 255 : 14; if (HAVE_DOS_FILE_NAMES && slen_max <= 12) { /* Live within DOS's 8.3 limit. */ char *dot = strchr (s, '.'); if (dot) { slen -= dot + 1 - s; s = dot + 1; slen_max = 3; } else slen_max = 8; extlen = 9; /* Don't use EXT. */ } if (slen + extlen <= slen_max) strcpy (s + slen, ext); else { if (slen_max <= slen) slen = slen_max - 1; s[slen] = e; s[slen + 1] = 0; } } tar-1.13/lib/argmatch.c0000444000176300016070000002030606653075333010423 /* argmatch.c -- find a match for a string in an array Copyright (C) 1990, 1998, 1999 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. */ /* Written by David MacKenzie Modified by Akim Demaille */ #include "argmatch.h" #include #ifdef STDC_HEADERS # include #endif #if HAVE_LOCALE_H # include #endif #if ENABLE_NLS # include # define _(Text) gettext (Text) #else # define _(Text) Text #endif #include "error.h" #include "quotearg.h" /* When reporting an invalid argument, show nonprinting characters by using the quoting style ARGMATCH_QUOTING_STYLE. Do not use literal_quoting_style. */ #ifndef ARGMATCH_QUOTING_STYLE # define ARGMATCH_QUOTING_STYLE escape_quoting_style #endif /* The following test is to work around the gross typo in systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE is defined to 0, not 1. */ #if !EXIT_FAILURE # undef EXIT_FAILURE # define EXIT_FAILURE 1 #endif /* Non failing version of argmatch call this function after failing. */ #ifndef ARGMATCH_DIE # define ARGMATCH_DIE exit (EXIT_FAILURE) #endif #ifdef ARGMATCH_DIE_DECL ARGMATCH_DIE_DECL; #endif static void __argmatch_die (void) { ARGMATCH_DIE; } /* Used by XARGMATCH and XARGCASEMATCH. See description in argmatch.h. Default to __argmatch_die, but allow caller to change this at run-time. */ argmatch_exit_fn argmatch_die = __argmatch_die; /* If ARG is an unambiguous match for an element of the null-terminated array ARGLIST, return the index in ARGLIST of the matched element, else -1 if it does not match any element or -2 if it is ambiguous (is a prefix of more than one element). If SENSITIVE, comparison is case sensitive. If VALLIST is none null, use it to resolve ambiguities limited to synonyms, i.e., for "yes", "yop" -> 0 "no", "nope" -> 1 "y" is a valid argument, for `0', and "n" for `1'. */ static int __argmatch_internal (const char *arg, const char *const *arglist, const char *vallist, size_t valsize, int case_sensitive) { int i; /* Temporary index in ARGLIST. */ size_t arglen; /* Length of ARG. */ int matchind = -1; /* Index of first nonexact match. */ int ambiguous = 0; /* If nonzero, multiple nonexact match(es). */ arglen = strlen (arg); /* Test all elements for either exact match or abbreviated matches. */ for (i = 0; arglist[i]; i++) { if (case_sensitive ? !strncmp (arglist[i], arg, arglen) : !strncasecmp (arglist[i], arg, arglen)) { if (strlen (arglist[i]) == arglen) /* Exact match found. */ return i; else if (matchind == -1) /* First nonexact match found. */ matchind = i; else { /* Second nonexact match found. */ if (vallist == NULL || memcmp (vallist + valsize * matchind, vallist + valsize * i, valsize)) { /* There is a real ambiguity, or we could not disambiguate. */ ambiguous = 1; } } } } if (ambiguous) return -2; else return matchind; } /* argmatch - case sensitive version */ int argmatch (const char *arg, const char *const *arglist, const char *vallist, size_t valsize) { return __argmatch_internal (arg, arglist, vallist, valsize, 1); } /* argcasematch - case insensitive version */ int argcasematch (const char *arg, const char *const *arglist, const char *vallist, size_t valsize) { return __argmatch_internal (arg, arglist, vallist, valsize, 0); } /* Error reporting for argmatch. CONTEXT is a description of the type of entity that was being matched. VALUE is the invalid value that was given. PROBLEM is the return value from argmatch. */ void argmatch_invalid (const char *context, const char *value, int problem) { enum quoting_style saved_quoting_style; char const *format; /* Make sure to have a good quoting style to report errors. literal is insane here. */ saved_quoting_style = get_quoting_style (NULL); set_quoting_style (NULL, ARGMATCH_QUOTING_STYLE); format = (problem == -1 ? _("invalid argument `%s' for `%s'") : _("ambiguous argument `%s' for `%s'")); error (0, 0, format, quotearg (value), context); set_quoting_style (NULL, saved_quoting_style); } /* List the valid arguments for argmatch. ARGLIST is the same as in argmatch. VALLIST is a pointer to an array of values. VALSIZE is the size of the elements of VALLIST */ void argmatch_valid (const char *const *arglist, const char *vallist, size_t valsize) { int i; const char *last_val = NULL; /* We try to put synonyms on the same line. The assumption is that synonyms follow each other */ fprintf (stderr, _("Valid arguments are:")); for (i = 0; arglist[i]; i++) if ((i == 0) || memcmp (last_val, vallist + valsize * i, valsize)) { fprintf (stderr, "\n - `%s'", arglist[i]); last_val = vallist + valsize * i; } else { fprintf (stderr, ", `%s'", arglist[i]); } putc ('\n', stderr); } /* Never failing versions of the previous functions. CONTEXT is the context for which argmatch is called (e.g., "--version-control", or "$VERSION_CONTROL" etc.). Upon failure, calls the (supposed never to return) function EXIT_FN. */ int __xargmatch_internal (const char *context, const char *arg, const char *const *arglist, const char *vallist, size_t valsize, int case_sensitive, argmatch_exit_fn exit_fn) { int res = __argmatch_internal (arg, arglist, vallist, valsize, case_sensitive); if (res >= 0) /* Success. */ return res; /* We failed. Explain why. */ argmatch_invalid (context, arg, res); argmatch_valid (arglist, vallist, valsize); (*exit_fn) (); return -1; /* To please the compilers. */ } /* Look for VALUE in VALLIST, an array of objects of size VALSIZE and return the first corresponding argument in ARGLIST */ const char * argmatch_to_argument (const char *value, const char *const *arglist, const char *vallist, size_t valsize) { int i; for (i = 0; arglist[i]; i++) if (!memcmp (value, vallist + valsize * i, valsize)) return arglist[i]; return NULL; } #ifdef TEST /* * Based on "getversion.c" by David MacKenzie */ char *program_name; extern const char *getenv (); /* When to make backup files. */ enum backup_type { /* Never make backups. */ none, /* Make simple backups of every file. */ simple, /* Make numbered backups of files that already have numbered backups, and simple backups of the others. */ numbered_existing, /* Make numbered backups of every file. */ numbered }; /* Two tables describing arguments (keys) and their corresponding values */ static const char *const backup_args[] = { "no", "none", "off", "simple", "never", "existing", "nil", "numbered", "t", 0 }; static const enum backup_type backup_vals[] = { none, none, none, simple, simple, numbered_existing, numbered_existing, numbered, numbered }; int main (int argc, const char *const *argv) { const char *cp; enum backup_type backup_type = none; program_name = (char *) argv[0]; if (argc > 2) { fprintf (stderr, "Usage: %s [VERSION_CONTROL]\n", program_name); exit (1); } if ((cp = getenv ("VERSION_CONTROL"))) backup_type = XARGCASEMATCH ("$VERSION_CONTROL", cp, backup_args, backup_vals); if (argc == 2) backup_type = XARGCASEMATCH (program_name, argv[1], backup_args, backup_vals); printf ("The version control is `%s'\n", ARGMATCH_TO_ARGUMENT (backup_type, backup_args, backup_vals)); return 0; } #endif tar-1.13/lib/backupfile.c0000444000176300016070000001640206650664444010750 /* backupfile.c -- make Emacs style backup file names Copyright (C) 1990-1997, 1998, 1999 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; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie . Some algorithms adapted from GNU Emacs. */ #if HAVE_CONFIG_H # include #endif #include #include #include #include #if HAVE_STRING_H # include #else # include #endif #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 #if CLOSEDIR_VOID /* Fake a return value. */ # define CLOSEDIR(d) (closedir (d), 0) #else # define CLOSEDIR(d) closedir (d) #endif #if STDC_HEADERS # include #else char *malloc (); #endif #ifndef HAVE_DECL_GETENV char *getenv (); #endif char *base_name PARAMS ((char const *)); #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 #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. 302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit; 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) /* ISDIGIT differs from isdigit, as follows: - Its arg may be any int or unsigned int; it need not be an unsigned char. - It's guaranteed to evaluate its argument exactly once. - It's typically faster. Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that only '0' through '9' are digits. Prefer ISDIGIT to isdigit unless it's important to use the locale's definition of `digit' even when the host does not conform to Posix. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) #if D_INO_IN_DIRENT # define REAL_DIR_ENTRY(dp) ((dp)->d_ino != 0) #else # define REAL_DIR_ENTRY(dp) 1 #endif /* The extension added to file names to produce a simple (as opposed to numbered) backup file name. */ const char *simple_backup_suffix = "~"; static int max_backup_version PARAMS ((const char *, const char *)); static int version_number PARAMS ((const char *, const char *, size_t)); /* Return the name of the new backup file for file FILE, allocated with malloc. Return 0 if out of memory. FILE must not end with a '/' unless it is the root directory. Do not call this function if backup_type == none. */ char * find_backup_file_name (const char *file, enum backup_type backup_type) { size_t backup_suffix_size_max; size_t file_len = strlen (file); size_t numbered_suffix_size_max = INT_STRLEN_BOUND (int) + 4; char *s; const char *suffix = simple_backup_suffix; /* Allow room for simple or `.~N~' backups. */ backup_suffix_size_max = strlen (simple_backup_suffix) + 1; if (HAVE_DIR && backup_suffix_size_max < numbered_suffix_size_max) backup_suffix_size_max = numbered_suffix_size_max; s = malloc (file_len + backup_suffix_size_max + numbered_suffix_size_max); if (s) { strcpy (s, file); #if HAVE_DIR if (backup_type != simple) { int highest_backup; size_t dir_len = base_name (s) - s; strcpy (s + dir_len, "."); highest_backup = max_backup_version (file + dir_len, s); if (! (backup_type == numbered_existing && highest_backup == 0)) { char *numbered_suffix = s + (file_len + backup_suffix_size_max); sprintf (numbered_suffix, ".~%d~", highest_backup + 1); suffix = numbered_suffix; } strcpy (s, file); } #endif /* HAVE_DIR */ addext (s, suffix, '~'); } return s; } #if HAVE_DIR /* Return the number of the highest-numbered backup file for file FILE in directory DIR. If there are no numbered backups of FILE in DIR, or an error occurs reading DIR, return 0. */ static int max_backup_version (const char *file, const char *dir) { DIR *dirp; struct dirent *dp; int highest_version; int this_version; size_t file_name_length; dirp = opendir (dir); if (!dirp) return 0; highest_version = 0; file_name_length = strlen (file); while ((dp = readdir (dirp)) != 0) { if (!REAL_DIR_ENTRY (dp) || NLENGTH (dp) < file_name_length + 4) continue; this_version = version_number (file, dp->d_name, file_name_length); if (this_version > highest_version) highest_version = this_version; } if (CLOSEDIR (dirp)) return 0; return highest_version; } /* If BACKUP is a numbered backup of BASE, return its version number; otherwise return 0. BASE_LENGTH is the length of BASE. */ static int version_number (const char *base, const char *backup, size_t base_length) { int version; const char *p; version = 0; if (strncmp (base, backup, base_length) == 0 && backup[base_length] == '.' && backup[base_length + 1] == '~') { for (p = &backup[base_length + 2]; ISDIGIT (*p); ++p) version = version * 10 + *p - '0'; if (p[0] != '~' || p[1]) version = 0; } return version; } #endif /* HAVE_DIR */ static const char * const backup_args[] = { /* In a series of synonyms, present the most meaning full first, so that argmatch_valid be more readable. */ "none", "off", "simple", "never", "existing", "nil", "numbered", "t", 0 }; static const enum backup_type backup_types[] = { none, none, simple, simple, numbered_existing, numbered_existing, numbered, numbered }; /* Return the type of backup specified by VERSION. If VERSION is NULL or the empty string, return numbered_existing. If VERSION is invalid or ambiguous, fail with a diagnostic appropriate for the specified CONTEXT. Unambiguous abbreviations are accepted. */ enum backup_type get_version (const char *context, const char *version) { if (version == 0 || *version == 0) return numbered_existing; else return XARGMATCH (context, version, backup_args, backup_types); } /* Return the type of backup specified by VERSION. If VERSION is NULL, use the value of the envvar VERSION_CONTROL. If the specified string is invalid or ambiguous, fail with a diagnostic appropriate for the specified CONTEXT. Unambiguous abbreviations are accepted. */ enum backup_type xget_version (const char *context, const char *version) { if (version && *version) return get_version (context, version); else return get_version ("$VERSION_CONTROL", getenv ("VERSION_CONTROL")); } tar-1.13/lib/basename.c0000444000176300016070000000317206674230102010400 /* basename.c -- return the last element in a path Copyright (C) 1990, 1998, 1999 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. */ #if HAVE_CONFIG_H # include #endif #ifndef FILESYSTEM_PREFIX_LEN # define FILESYSTEM_PREFIX_LEN(Filename) 0 #endif #ifndef ISSLASH # define ISSLASH(C) ((C) == '/') #endif /* In general, we can't use the builtin `basename' function if available, since it has different meanings in different environments. In some environments the builtin `basename' modifies its argument. If NAME is all slashes, be sure to return `/'. */ char * base_name (char const *name) { char const *base = name += FILESYSTEM_PREFIX_LEN (name); int all_slashes = 1; char const *p; for (p = name; *p; p++) { if (ISSLASH (*p)) base = p + 1; else all_slashes = 0; } /* If NAME is all slashes, arrange to return `/'. */ if (*base == '\0' && ISSLASH (*name) && all_slashes) --base; return (char *) base; } tar-1.13/lib/error.c0000444000176300016070000001432406623610346007765 /* Error handler for noninteractive utilities Copyright (C) 1990,91,92,93,94,95,96,97,98 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie . */ #ifdef HAVE_CONFIG_H # include #endif #include #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 #if STDC_HEADERS || _LIBC # include # include #else void exit (); #endif #include "error.h" #ifndef _ # define _(String) String #endif /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ void (*error_print_progname) ( #if __STDC__ - 0 void #endif ); /* This variable is incremented each time `error' is called. */ unsigned int error_message_count; #ifdef _LIBC /* In the GNU C library, there is a predefined variable for this. */ # define program_name program_invocation_name # include /* In GNU libc we want do not want to use the common name `error' directly. Instead make it a weak alias. */ # define error __error # define error_at_line __error_at_line #else /* not _LIBC */ /* The calling program should define program_name and set it to the name of the executing program. */ extern char *program_name; # 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) int errnum; { extern char *sys_errlist[]; extern int sys_nerr; if (errnum > 0 && errnum <= sys_nerr) return _(sys_errlist[errnum]); return _("Unknown system error"); } # define strerror private_strerror # endif /* HAVE_STRERROR */ # endif /* HAVE_STRERROR_R */ #endif /* not _LIBC */ /* Print the program name and error message MESSAGE, which is a printf-style format string with optional args. If ERRNUM is nonzero, print its corresponding system error message. Exit with status STATUS if it is nonzero. */ /* VARARGS */ void #if defined VA_START && __STDC__ error (int status, int errnum, const char *message, ...) #else error (status, errnum, message, va_alist) int status; int errnum; char *message; va_dcl #endif { #ifdef VA_START va_list args; #endif if (error_print_progname) (*error_print_progname) (); else { fflush (stdout); fprintf (stderr, "%s: ", program_name); } #ifdef VA_START VA_START (args, message); # if HAVE_VPRINTF || _LIBC vfprintf (stderr, message, args); # else _doprnt (message, args, stderr); # endif va_end (args); #else fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8); #endif ++error_message_count; if (errnum) { #if defined HAVE_STRERROR_R || defined _LIBC char errbuf[1024]; /* Don't use __strerror_r's return value because on some systems (at least DEC UNIX 4.0[A-D]) strerror_r returns `int'. */ __strerror_r (errnum, errbuf, sizeof errbuf); fprintf (stderr, ": %s", errbuf); #else fprintf (stderr, ": %s", strerror (errnum)); #endif } putc ('\n', stderr); fflush (stderr); if (status) exit (status); } /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ int error_one_per_line; void #if defined VA_START && __STDC__ error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) #else error_at_line (status, errnum, file_name, line_number, message, va_alist) int status; int errnum; const char *file_name; unsigned int line_number; char *message; va_dcl #endif { #ifdef VA_START va_list args; #endif if (error_one_per_line) { static const char *old_file_name; static unsigned int old_line_number; if (old_line_number == line_number && (file_name == old_file_name || !strcmp (old_file_name, file_name))) /* Simply return and print nothing. */ return; old_file_name = file_name; old_line_number = line_number; } if (error_print_progname) (*error_print_progname) (); else { fflush (stdout); fprintf (stderr, "%s:", program_name); } if (file_name != NULL) fprintf (stderr, "%s:%d: ", file_name, line_number); #ifdef VA_START VA_START (args, message); # if HAVE_VPRINTF || _LIBC vfprintf (stderr, message, args); # else _doprnt (message, args, stderr); # endif va_end (args); #else fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8); #endif ++error_message_count; if (errnum) { #if defined HAVE_STRERROR_R || defined _LIBC char errbuf[1024]; fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf)); #else fprintf (stderr, ": %s", strerror (errnum)); #endif } putc ('\n', stderr); fflush (stderr); if (status) exit (status); } #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 tar-1.13/lib/exclude.c0000444000176300016070000000571306452422776010277 /* exclude.c -- exclude file names Copyright 1992, 1993, 1994, 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; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Paul Eggert */ #if HAVE_CONFIG_H # include #endif #include #ifndef errno extern int errno; #endif #include #include #include #include void *xmalloc PARAMS ((size_t)); void *xrealloc PARAMS ((void *, size_t)); /* Keep track of excluded file name patterns. */ struct exclude { char const **exclude; int exclude_alloc; int exclude_count; }; struct exclude * new_exclude (void) { struct exclude *ex = (struct exclude *) xmalloc (sizeof (struct exclude)); ex->exclude_count = 0; ex->exclude_alloc = 64; ex->exclude = (char const **) xmalloc (ex->exclude_alloc * sizeof (char *)); return ex; } int excluded_filename (struct exclude const *ex, char const *f) { char const * const *exclude = ex->exclude; int exclude_count = ex->exclude_count; int i; for (i = 0; i < exclude_count; i++) if (fnmatch (exclude[i], f, 0) == 0) return 1; return 0; } void add_exclude (struct exclude *ex, char const *pattern) { if (ex->exclude_alloc <= ex->exclude_count) ex->exclude = (char const **) xrealloc (ex->exclude, ((ex->exclude_alloc *= 2) * sizeof (char *))); ex->exclude[ex->exclude_count++] = pattern; } int add_exclude_file (struct exclude *ex, char const *filename, char line_end) { int use_stdin = filename[0] == '-' && !filename[1]; FILE *in; char *buf; char *p; char const *pattern; char const *lim; size_t buf_alloc = 1024; size_t buf_count = 0; int c; int e = 0; if (use_stdin) in = stdin; else if (! (in = fopen (filename, "r"))) return -1; buf = xmalloc (buf_alloc); while ((c = getc (in)) != EOF) { buf[buf_count++] = c; if (buf_count == buf_alloc) buf = xrealloc (buf, buf_alloc *= 2); } buf = xrealloc (buf, buf_count + 1); if (ferror (in)) e = errno; if (!use_stdin && fclose (in) != 0) e = errno; for (pattern = p = buf, lim = buf + buf_count; p <= lim; p++) if (p < lim ? *p == line_end : buf < p && p[-1]) { *p = '\0'; add_exclude (ex, pattern); pattern = p + 1; } errno = e; return e ? -1 : 0; } tar-1.13/lib/full-write.c0000444000176300016070000000345406740560662010735 /* full-write.c -- an interface to write that retries after interrupts Copyright (C) 1993, 1994, 1997, 1998, 1999 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. Copied largely from GNU C's cccp.c. */ #if HAVE_CONFIG_H # include #endif #include #include "safe-read.h" #if HAVE_UNISTD_H # include #endif #include #ifndef errno extern int errno; #endif /* Write LEN bytes at PTR to descriptor DESC, retrying if interrupted. Return LEN upon success, write's (negative) error code otherwise. */ ssize_t full_write (int desc, const char *ptr, size_t len) { ssize_t total_written = 0; while (len > 0) { ssize_t written = write (desc, ptr, len); /* FIXME: write on my slackware Linux 1.2.13 returns zero when I try to write more data than there is room on a floppy disk. This puts dd into an infinite loop. Reproduce with dd if=/dev/zero of=/dev/fd0. */ if (written < 0) { #ifdef EINTR if (errno == EINTR) continue; #endif return written; } total_written += written; ptr += written; len -= written; } return total_written; } tar-1.13/lib/getdate.y0000444000176300016070000006225106720703047010300 %{ /* ** 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. */ #ifdef HAVE_CONFIG_H # include # ifdef HAVE_ALLOCA_H # include # endif #endif /* Since the code of getdate.y is not included in the Emacs executable itself, there is no need to #define static in this file. Even if the code were included in the Emacs executable, it probably wouldn't do any harm to #undef it here; this will only cause problems if we try to write to a static variable, which I don't think this code needs to do. */ #ifdef emacs # undef static #endif #include #include #if HAVE_STDLIB_H # include /* for `free'; used by Bison 1.27 */ #endif #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 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)) /* ISDIGIT differs from ISDIGIT_LOCALE, as follows: - Its arg may be any int or unsigned int; it need not be an unsigned char. - It's guaranteed to evaluate its argument exactly once. - It's typically faster. Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that only '0' through '9' are digits. Prefer ISDIGIT to ISDIGIT_LOCALE unless it's important to use the locale's definition of `digit' even when the host does not conform to Posix. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) #if defined (STDC_HEADERS) || defined (USG) # include #endif #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif #ifndef ATTRIBUTE_UNUSED # define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #endif /* Some old versions of bison generate parsers that use bcopy. That loses on systems that don't provide the function, so we have to redefine it here. */ #if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) # define bcopy(from, to, len) memcpy ((to), (from), (len)) #endif /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc), as well as gratuitiously global symbol names, so we can have multiple yacc generated parsers in the same program. Note that these are only the variables produced by yacc. If other parser generators (bison, byacc, etc) produce additional global names that conflict at link time, then those parser generators need to be fixed instead of adding those names to this list. */ #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 static int yylex (); static int yyerror (); #define EPOCH 1970 #define HOUR(x) ((x) * 60) #define MAX_BUFF_LEN 128 /* size of buffer to read the date into */ /* ** An entry in the lexical lookup table. */ typedef struct _TABLE { const char *name; int type; int value; } TABLE; /* ** Meridian: am, pm, or 24-hour style. */ typedef enum _MERIDIAN { MERam, MERpm, MER24 } MERIDIAN; /* ** 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; %} /* This grammar has 13 shift/reduce conflicts. */ %expect 13 %union { int Number; enum _MERIDIAN Meridian; } %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 %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 %% spec : /* NULL */ | spec item ; item : time { yyHaveTime++; } | zone { yyHaveZone++; } | date { yyHaveDate++; } | day { yyHaveDay++; } | rel { yyHaveRel++; } | number ; time : tUNUMBER tMERIDIAN { yyHour = $1; yyMinutes = 0; yySeconds = 0; yyMeridian = $2; } | tUNUMBER ':' tUNUMBER o_merid { yyHour = $1; yyMinutes = $3; yySeconds = 0; yyMeridian = $4; } | tUNUMBER ':' tUNUMBER tSNUMBER { yyHour = $1; yyMinutes = $3; yyMeridian = MER24; yyHaveZone++; yyTimezone = ($4 < 0 ? -$4 % 100 + (-$4 / 100) * 60 : - ($4 % 100 + ($4 / 100) * 60)); } | tUNUMBER ':' tUNUMBER ':' tUNUMBER o_merid { yyHour = $1; yyMinutes = $3; yySeconds = $5; yyMeridian = $6; } | tUNUMBER ':' tUNUMBER ':' tUNUMBER tSNUMBER { yyHour = $1; yyMinutes = $3; yySeconds = $5; yyMeridian = MER24; yyHaveZone++; yyTimezone = ($6 < 0 ? -$6 % 100 + (-$6 / 100) * 60 : - ($6 % 100 + ($6 / 100) * 60)); } ; zone : tZONE { yyTimezone = $1; } | tDAYZONE { yyTimezone = $1 - 60; } | tZONE tDST { yyTimezone = $1 - 60; } ; day : tDAY { yyDayOrdinal = 1; yyDayNumber = $1; } | tDAY ',' { yyDayOrdinal = 1; yyDayNumber = $1; } | tUNUMBER tDAY { yyDayOrdinal = $1; yyDayNumber = $2; } ; date : tUNUMBER '/' tUNUMBER { yyMonth = $1; yyDay = $3; } | tUNUMBER '/' tUNUMBER '/' tUNUMBER { /* Interpret as YYYY/MM/DD if $1 >= 1000, otherwise as MM/DD/YY. The goal in recognizing YYYY/MM/DD is solely to support legacy machine-generated dates like those in an RCS log listing. If you want portability, use the ISO 8601 format. */ if ($1 >= 1000) { yyYear = $1; yyMonth = $3; yyDay = $5; } else { yyMonth = $1; yyDay = $3; yyYear = $5; } } | tUNUMBER tSNUMBER tSNUMBER { /* ISO 8601 format. yyyy-mm-dd. */ yyYear = $1; yyMonth = -$2; yyDay = -$3; } | tUNUMBER tMONTH tSNUMBER { /* e.g. 17-JUN-1992. */ yyDay = $1; yyMonth = $2; yyYear = -$3; } | tMONTH tUNUMBER { yyMonth = $1; yyDay = $2; } | tMONTH tUNUMBER ',' tUNUMBER { yyMonth = $1; yyDay = $2; yyYear = $4; } | tUNUMBER tMONTH { yyMonth = $2; yyDay = $1; } | tUNUMBER tMONTH tUNUMBER { yyMonth = $2; yyDay = $1; yyYear = $3; } ; rel : relunit tAGO { yyRelSeconds = -yyRelSeconds; yyRelMinutes = -yyRelMinutes; yyRelHour = -yyRelHour; yyRelDay = -yyRelDay; yyRelMonth = -yyRelMonth; yyRelYear = -yyRelYear; } | relunit ; relunit : tUNUMBER tYEAR_UNIT { yyRelYear += $1 * $2; } | tSNUMBER tYEAR_UNIT { yyRelYear += $1 * $2; } | tYEAR_UNIT { yyRelYear += $1; } | tUNUMBER tMONTH_UNIT { yyRelMonth += $1 * $2; } | tSNUMBER tMONTH_UNIT { yyRelMonth += $1 * $2; } | tMONTH_UNIT { yyRelMonth += $1; } | tUNUMBER tDAY_UNIT { yyRelDay += $1 * $2; } | tSNUMBER tDAY_UNIT { yyRelDay += $1 * $2; } | tDAY_UNIT { yyRelDay += $1; } | tUNUMBER tHOUR_UNIT { yyRelHour += $1 * $2; } | tSNUMBER tHOUR_UNIT { yyRelHour += $1 * $2; } | tHOUR_UNIT { yyRelHour += $1; } | tUNUMBER tMINUTE_UNIT { yyRelMinutes += $1 * $2; } | tSNUMBER tMINUTE_UNIT { yyRelMinutes += $1 * $2; } | tMINUTE_UNIT { yyRelMinutes += $1; } | tUNUMBER tSEC_UNIT { yyRelSeconds += $1 * $2; } | tSNUMBER tSEC_UNIT { yyRelSeconds += $1 * $2; } | tSEC_UNIT { yyRelSeconds += $1; } ; number : tUNUMBER { if (yyHaveTime && yyHaveDate && !yyHaveRel) yyYear = $1; else { if ($1>10000) { yyHaveDate++; yyDay= ($1)%100; yyMonth= ($1/100)%100; yyYear = $1/10000; } else { yyHaveTime++; if ($1 < 100) { yyHour = $1; yyMinutes = 0; } else { yyHour = $1 / 100; yyMinutes = $1 % 100; } yySeconds = 0; yyMeridian = MER24; } } } ; o_merid : /* NULL */ { $$ = MER24; } | tMERIDIAN { $$ = $1; } ; %% /* Include this file down here because bison inserts code above which may define-away `const'. We want the prototype for get_date to have the same signature as the function definition does. */ #include "getdate.h" extern struct tm *gmtime (); extern struct tm *localtime (); extern time_t mktime (); /* Month and day table. */ static TABLE const MonthDayTable[] = { { "january", tMONTH, 1 }, { "february", tMONTH, 2 }, { "march", tMONTH, 3 }, { "april", tMONTH, 4 }, { "may", tMONTH, 5 }, { "june", tMONTH, 6 }, { "july", tMONTH, 7 }, { "august", tMONTH, 8 }, { "september", tMONTH, 9 }, { "sept", tMONTH, 9 }, { "october", tMONTH, 10 }, { "november", tMONTH, 11 }, { "december", tMONTH, 12 }, { "sunday", tDAY, 0 }, { "monday", tDAY, 1 }, { "tuesday", tDAY, 2 }, { "tues", tDAY, 2 }, { "wednesday", tDAY, 3 }, { "wednes", tDAY, 3 }, { "thursday", tDAY, 4 }, { "thur", tDAY, 4 }, { "thurs", tDAY, 4 }, { "friday", tDAY, 5 }, { "saturday", tDAY, 6 }, { NULL, 0, 0 } }; /* Time units table. */ static TABLE const UnitsTable[] = { { "year", tYEAR_UNIT, 1 }, { "month", tMONTH_UNIT, 1 }, { "fortnight", tDAY_UNIT, 14 }, { "week", tDAY_UNIT, 7 }, { "day", tDAY_UNIT, 1 }, { "hour", tHOUR_UNIT, 1 }, { "minute", tMINUTE_UNIT, 1 }, { "min", tMINUTE_UNIT, 1 }, { "second", tSEC_UNIT, 1 }, { "sec", tSEC_UNIT, 1 }, { NULL, 0, 0 } }; /* Assorted relative-time words. */ static TABLE const OtherTable[] = { { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 }, { "yesterday", tMINUTE_UNIT, -1 * 24 * 60 }, { "today", tMINUTE_UNIT, 0 }, { "now", tMINUTE_UNIT, 0 }, { "last", tUNUMBER, -1 }, { "this", tMINUTE_UNIT, 0 }, { "next", tUNUMBER, 1 }, { "first", tUNUMBER, 1 }, /* { "second", tUNUMBER, 2 }, */ { "third", tUNUMBER, 3 }, { "fourth", tUNUMBER, 4 }, { "fifth", tUNUMBER, 5 }, { "sixth", tUNUMBER, 6 }, { "seventh", tUNUMBER, 7 }, { "eighth", tUNUMBER, 8 }, { "ninth", tUNUMBER, 9 }, { "tenth", tUNUMBER, 10 }, { "eleventh", tUNUMBER, 11 }, { "twelfth", tUNUMBER, 12 }, { "ago", tAGO, 1 }, { NULL, 0, 0 } }; /* The timezone table. */ static TABLE const TimezoneTable[] = { { "gmt", tZONE, HOUR ( 0) }, /* Greenwich Mean */ { "ut", tZONE, HOUR ( 0) }, /* Universal (Coordinated) */ { "utc", tZONE, HOUR ( 0) }, { "wet", tZONE, HOUR ( 0) }, /* Western European */ { "bst", tDAYZONE, HOUR ( 0) }, /* British Summer */ { "wat", tZONE, HOUR ( 1) }, /* West Africa */ { "at", tZONE, HOUR ( 2) }, /* Azores */ #if 0 /* For completeness. BST is also British Summer, and GST is * also Guam Standard. */ { "bst", tZONE, HOUR ( 3) }, /* Brazil Standard */ { "gst", tZONE, HOUR ( 3) }, /* Greenland Standard */ #endif #if 0 { "nft", tZONE, HOUR (3.5) }, /* Newfoundland */ { "nst", tZONE, HOUR (3.5) }, /* Newfoundland Standard */ { "ndt", tDAYZONE, HOUR (3.5) }, /* Newfoundland Daylight */ #endif { "ast", tZONE, HOUR ( 4) }, /* Atlantic Standard */ { "adt", tDAYZONE, HOUR ( 4) }, /* Atlantic Daylight */ { "est", tZONE, HOUR ( 5) }, /* Eastern Standard */ { "edt", tDAYZONE, HOUR ( 5) }, /* Eastern Daylight */ { "cst", tZONE, HOUR ( 6) }, /* Central Standard */ { "cdt", tDAYZONE, HOUR ( 6) }, /* Central Daylight */ { "mst", tZONE, HOUR ( 7) }, /* Mountain Standard */ { "mdt", tDAYZONE, HOUR ( 7) }, /* Mountain Daylight */ { "pst", tZONE, HOUR ( 8) }, /* Pacific Standard */ { "pdt", tDAYZONE, HOUR ( 8) }, /* Pacific Daylight */ { "yst", tZONE, HOUR ( 9) }, /* Yukon Standard */ { "ydt", tDAYZONE, HOUR ( 9) }, /* Yukon Daylight */ { "hst", tZONE, HOUR (10) }, /* Hawaii Standard */ { "hdt", tDAYZONE, HOUR (10) }, /* Hawaii Daylight */ { "cat", tZONE, HOUR (10) }, /* Central Alaska */ { "ahst", tZONE, HOUR (10) }, /* Alaska-Hawaii Standard */ { "nt", tZONE, HOUR (11) }, /* Nome */ { "idlw", tZONE, HOUR (12) }, /* International Date Line West */ { "cet", tZONE, -HOUR (1) }, /* Central European */ { "met", tZONE, -HOUR (1) }, /* Middle European */ { "mewt", tZONE, -HOUR (1) }, /* Middle European Winter */ { "mest", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ { "mesz", tDAYZONE, -HOUR (1) }, /* Middle European Summer */ { "swt", tZONE, -HOUR (1) }, /* Swedish Winter */ { "sst", tDAYZONE, -HOUR (1) }, /* Swedish Summer */ { "fwt", tZONE, -HOUR (1) }, /* French Winter */ { "fst", tDAYZONE, -HOUR (1) }, /* French Summer */ { "eet", tZONE, -HOUR (2) }, /* Eastern Europe, USSR Zone 1 */ { "bt", tZONE, -HOUR (3) }, /* Baghdad, USSR Zone 2 */ #if 0 { "it", tZONE, -HOUR (3.5) },/* Iran */ #endif { "zp4", tZONE, -HOUR (4) }, /* USSR Zone 3 */ { "zp5", tZONE, -HOUR (5) }, /* USSR Zone 4 */ #if 0 { "ist", tZONE, -HOUR (5.5) },/* Indian Standard */ #endif { "zp6", tZONE, -HOUR (6) }, /* USSR Zone 5 */ #if 0 /* For completeness. NST is also Newfoundland Standard, and SST is * also Swedish Summer. */ { "nst", tZONE, -HOUR (6.5) },/* North Sumatra */ { "sst", tZONE, -HOUR (7) }, /* South Sumatra, USSR Zone 6 */ #endif /* 0 */ { "wast", tZONE, -HOUR (7) }, /* West Australian Standard */ { "wadt", tDAYZONE, -HOUR (7) }, /* West Australian Daylight */ #if 0 { "jt", tZONE, -HOUR (7.5) },/* Java (3pm in Cronusland!) */ #endif { "cct", tZONE, -HOUR (8) }, /* China Coast, USSR Zone 7 */ { "jst", tZONE, -HOUR (9) }, /* Japan Standard, USSR Zone 8 */ #if 0 { "cast", tZONE, -HOUR (9.5) },/* Central Australian Standard */ { "cadt", tDAYZONE, -HOUR (9.5) },/* Central Australian Daylight */ #endif { "east", tZONE, -HOUR (10) }, /* Eastern Australian Standard */ { "eadt", tDAYZONE, -HOUR (10) }, /* Eastern Australian Daylight */ { "gst", tZONE, -HOUR (10) }, /* Guam Standard, USSR Zone 9 */ { "nzt", tZONE, -HOUR (12) }, /* New Zealand */ { "nzst", tZONE, -HOUR (12) }, /* New Zealand Standard */ { "nzdt", tDAYZONE, -HOUR (12) }, /* New Zealand Daylight */ { "idle", tZONE, -HOUR (12) }, /* International Date Line East */ { NULL, 0, 0 } }; /* Military timezone table. */ static TABLE const MilitaryTable[] = { { "a", tZONE, HOUR ( 1) }, { "b", tZONE, HOUR ( 2) }, { "c", tZONE, HOUR ( 3) }, { "d", tZONE, HOUR ( 4) }, { "e", tZONE, HOUR ( 5) }, { "f", tZONE, HOUR ( 6) }, { "g", tZONE, HOUR ( 7) }, { "h", tZONE, HOUR ( 8) }, { "i", tZONE, HOUR ( 9) }, { "k", tZONE, HOUR ( 10) }, { "l", tZONE, HOUR ( 11) }, { "m", tZONE, HOUR ( 12) }, { "n", tZONE, HOUR (- 1) }, { "o", tZONE, HOUR (- 2) }, { "p", tZONE, HOUR (- 3) }, { "q", tZONE, HOUR (- 4) }, { "r", tZONE, HOUR (- 5) }, { "s", tZONE, HOUR (- 6) }, { "t", tZONE, HOUR (- 7) }, { "u", tZONE, HOUR (- 8) }, { "v", tZONE, HOUR (- 9) }, { "w", tZONE, HOUR (-10) }, { "x", tZONE, HOUR (-11) }, { "y", tZONE, HOUR (-12) }, { "z", tZONE, HOUR ( 0) }, { NULL, 0, 0 } }; /* ARGSUSED */ static int yyerror (s) char *s ATTRIBUTE_UNUSED; { return 0; } static int ToHour (Hours, Meridian) int Hours; MERIDIAN Meridian; { switch (Meridian) { case MER24: if (Hours < 0 || Hours > 23) return -1; return Hours; case MERam: if (Hours < 1 || Hours > 12) return -1; if (Hours == 12) Hours = 0; return Hours; case MERpm: if (Hours < 1 || Hours > 12) return -1; if (Hours == 12) Hours = 0; return Hours + 12; default: abort (); } /* NOTREACHED */ } static int ToYear (Year) int Year; { if (Year < 0) Year = -Year; /* XPG4 suggests that years 00-68 map to 2000-2068, and years 69-99 map to 1969-1999. */ if (Year < 69) Year += 2000; else if (Year < 100) Year += 1900; return Year; } static int LookupWord (buff) char *buff; { register char *p; register char *q; register const TABLE *tp; int i; int abbrev; /* Make it lowercase. */ for (p = buff; *p; p++) if (ISUPPER ((unsigned char) *p)) *p = tolower (*p); if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0) { yylval.Meridian = MERam; return tMERIDIAN; } if (strcmp (buff, "pm") == 0 || strcmp (buff, "p.m.") == 0) { yylval.Meridian = MERpm; return tMERIDIAN; } /* See if we have an abbreviation for a month. */ if (strlen (buff) == 3) abbrev = 1; else if (strlen (buff) == 4 && buff[3] == '.') { abbrev = 1; buff[3] = '\0'; } else abbrev = 0; for (tp = MonthDayTable; tp->name; tp++) { if (abbrev) { if (strncmp (buff, tp->name, 3) == 0) { yylval.Number = tp->value; return tp->type; } } else if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } } for (tp = TimezoneTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } if (strcmp (buff, "dst") == 0) return tDST; for (tp = UnitsTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } /* Strip off any plural and try the units table again. */ i = strlen (buff) - 1; if (buff[i] == 's') { buff[i] = '\0'; for (tp = UnitsTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } buff[i] = 's'; /* Put back for "this" in OtherTable. */ } for (tp = OtherTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } /* Military timezones. */ if (buff[1] == '\0' && ISALPHA ((unsigned char) *buff)) { for (tp = MilitaryTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } } /* Drop out any periods and try the timezone table again. */ for (i = 0, p = q = buff; *q; q++) if (*q != '.') *p++ = *q; else i++; *p = '\0'; if (i) for (tp = TimezoneTable; tp->name; tp++) if (strcmp (buff, tp->name) == 0) { yylval.Number = tp->value; return tp->type; } return tID; } static int yylex () { register unsigned char c; register char *p; char buff[20]; int Count; int sign; for (;;) { while (ISSPACE ((unsigned char) *yyInput)) yyInput++; if (ISDIGIT (c = *yyInput) || c == '-' || c == '+') { if (c == '-' || c == '+') { sign = c == '-' ? -1 : 1; if (!ISDIGIT (*++yyInput)) /* skip the '-' sign */ continue; } else sign = 0; for (yylval.Number = 0; ISDIGIT (c = *yyInput++);) yylval.Number = 10 * yylval.Number + c - '0'; yyInput--; if (sign < 0) yylval.Number = -yylval.Number; return sign ? tSNUMBER : tUNUMBER; } if (ISALPHA (c)) { for (p = buff; (c = *yyInput++, ISALPHA (c)) || c == '.';) if (p < &buff[sizeof buff - 1]) *p++ = c; *p = '\0'; yyInput--; return LookupWord (buff); } if (c != '(') return *yyInput++; Count = 0; do { c = *yyInput++; if (c == '\0') return c; if (c == '(') Count++; else if (c == ')') Count--; } while (Count > 0); } } #define TM_YEAR_ORIGIN 1900 /* Yield A - B, measured in seconds. */ static long difftm (struct tm *a, struct tm *b) { int ay = a->tm_year + (TM_YEAR_ORIGIN - 1); int by = b->tm_year + (TM_YEAR_ORIGIN - 1); long days = ( /* difference in day of year */ a->tm_yday - b->tm_yday /* + intervening leap days */ + ((ay >> 2) - (by >> 2)) - (ay / 100 - by / 100) + ((ay / 100 >> 2) - (by / 100 >> 2)) /* + difference in years * 365 */ + (long) (ay - by) * 365 ); return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) + (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec)); } time_t get_date (const char *p, const time_t *now) { struct tm tm, tm0, *tmp; time_t Start; yyInput = p; Start = now ? *now : time ((time_t *) NULL); tmp = localtime (&Start); if (!tmp) return -1; yyYear = tmp->tm_year + TM_YEAR_ORIGIN; yyMonth = tmp->tm_mon + 1; yyDay = tmp->tm_mday; yyHour = tmp->tm_hour; yyMinutes = tmp->tm_min; yySeconds = tmp->tm_sec; tm.tm_isdst = tmp->tm_isdst; yyMeridian = MER24; yyRelSeconds = 0; yyRelMinutes = 0; yyRelHour = 0; yyRelDay = 0; yyRelMonth = 0; yyRelYear = 0; yyHaveDate = 0; yyHaveDay = 0; yyHaveRel = 0; yyHaveTime = 0; yyHaveZone = 0; if (yyparse () || yyHaveTime > 1 || yyHaveZone > 1 || yyHaveDate > 1 || yyHaveDay > 1) return -1; tm.tm_year = ToYear (yyYear) - TM_YEAR_ORIGIN + yyRelYear; tm.tm_mon = yyMonth - 1 + yyRelMonth; tm.tm_mday = yyDay + yyRelDay; if (yyHaveTime || (yyHaveRel && !yyHaveDate && !yyHaveDay)) { tm.tm_hour = ToHour (yyHour, yyMeridian); if (tm.tm_hour < 0) return -1; tm.tm_min = yyMinutes; tm.tm_sec = yySeconds; } else { tm.tm_hour = tm.tm_min = tm.tm_sec = 0; } tm.tm_hour += yyRelHour; tm.tm_min += yyRelMinutes; tm.tm_sec += yyRelSeconds; /* Let mktime deduce tm_isdst if we have an absolute timestamp, or if the relative timestamp mentions days, months, or years. */ if (yyHaveDate | yyHaveDay | yyHaveTime | yyRelDay | yyRelMonth | yyRelYear) tm.tm_isdst = -1; tm0 = tm; Start = mktime (&tm); if (Start == (time_t) -1) { /* Guard against falsely reporting errors near the time_t boundaries when parsing times in other time zones. For example, if the min time_t value is 1970-01-01 00:00:00 UTC and we are 8 hours ahead of UTC, then the min localtime value is 1970-01-01 08:00:00; if we apply mktime to 1970-01-01 00:00:00 we will get an error, so we apply mktime to 1970-01-02 08:00:00 instead and adjust the time zone by 24 hours to compensate. This algorithm assumes that there is no DST transition within a day of the time_t boundaries. */ if (yyHaveZone) { tm = tm0; if (tm.tm_year <= EPOCH - TM_YEAR_ORIGIN) { tm.tm_mday++; yyTimezone -= 24 * 60; } else { tm.tm_mday--; yyTimezone += 24 * 60; } Start = mktime (&tm); } if (Start == (time_t) -1) return Start; } if (yyHaveDay && !yyHaveDate) { tm.tm_mday += ((yyDayNumber - tm.tm_wday + 7) % 7 + 7 * (yyDayOrdinal - (0 < yyDayOrdinal))); Start = mktime (&tm); if (Start == (time_t) -1) return Start; } if (yyHaveZone) { long delta; struct tm *gmt = gmtime (&Start); if (!gmt) return -1; delta = yyTimezone * 60L + difftm (&tm, gmt); if ((Start + delta < Start) != (delta < 0)) return -1; /* time_t overflow */ Start += delta; } return Start; } #if defined (TEST) /* ARGSUSED */ int main (ac, av) int ac; char *av[]; { char buff[MAX_BUFF_LEN + 1]; time_t d; (void) printf ("Enter date, or blank line to exit.\n\t> "); (void) fflush (stdout); buff[MAX_BUFF_LEN] = 0; while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) { d = get_date (buff, (time_t *) NULL); if (d == -1) (void) printf ("Bad format - couldn't convert.\n"); else (void) printf ("%s", ctime (&d)); (void) printf ("\t> "); (void) fflush (stdout); } exit (0); /* NOTREACHED */ } #endif /* defined (TEST) */ tar-1.13/lib/getopt.c0000444000176300016070000007256606647030355010154 /* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* This tells Alpha OSF/1 not to define a getopt prototype in . Ditto for AIX 3.2 and . */ #ifndef _NO_PROTO # define _NO_PROTO #endif #ifdef HAVE_CONFIG_H # include #endif #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ # ifndef const # define const # endif #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #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 #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ # include # include #endif /* GNU C library. */ #ifdef VMS # include # if HAVE_STRING_H - 0 # include # endif #endif #ifndef _ /* This is for other GNU distributions with internationalized messages. When compiling libc, the _ macro is predefined. */ # ifdef HAVE_LIBINTL_H # include # define _(msgid) gettext (msgid) # else # define _(msgid) (msgid) # endif #endif /* This version of `getopt' appears to the caller like standard Unix `getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. As `getopt' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. Setting the environment variable POSIXLY_CORRECT disables permutation. Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ #include "getopt.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg = NULL; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Formerly, initialization of getopt depended on optind==0, which causes problems with re-calling getopt as programs generally don't know that. */ int __getopt_initialized = 0; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ static char *nextchar; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Describe how to deal with options that follow non-option ARGV-elements. If the caller did not specify anything, the default is REQUIRE_ORDER if the environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment variable POSIXLY_CORRECT, or using `+' as the first character of the list of option characters. PERMUTE is the default. We permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. Using `-' as the first character of the list of option characters selects this mode of operation. The special argument `--' forces an end of option-scanning regardless of the value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause `getopt' to return -1 with `optind' != ARGC. */ static enum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } ordering; /* Value of POSIXLY_CORRECT environment variable. */ static char *posixly_correct; #ifdef __GNU_LIBRARY__ /* We want to avoid inclusion of string.h with non-GNU libraries because there are many ways it can cause trouble. On some systems, it contains special magic macros that don't work in GCC. */ # include # define my_index strchr #else # if HAVE_STRING_H # include # else # include # endif /* Avoid depending on library functions or files whose names are inconsistent. */ #ifndef getenv extern char *getenv (); #endif static char * my_index (str, chr) const char *str; int chr; { while (*str) { if (*str == chr) return (char *) str; str++; } return 0; } /* If using GCC, we can safely declare strlen this way. 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. 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, and has done so at least since version 2.4.5. -- rms. */ extern int strlen (const char *); # endif /* not __STDC__ */ #endif /* __GNUC__ */ #endif /* not __GNU_LIBRARY__ */ /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. `first_nonopt' is the index in ARGV of the first of them; `last_nonopt' is the index after the last of them. */ static int first_nonopt; static int last_nonopt; #ifdef _LIBC /* Bash 2.0 gives us an environment variable containing flags indicating ARGV elements that should not be considered arguments. */ /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; static int nonoption_flags_max_len; static int nonoption_flags_len; static int original_argc; static char *const *original_argv; /* Make sure the environment variable bash 2.0 puts in the environment is valid for the getopt call we must make sure that the ARGV passed to getopt is that one passed to the process. */ static void __attribute__ ((unused)) store_args_and_env (int argc, char *const *argv) { /* XXX This is no good solution. We should rather copy the args so that we can compare them later. But we must not use malloc(3). */ original_argc = argc; original_argv = argv; } # ifdef text_set_element text_set_element (__libc_subinit, store_args_and_env); # endif /* text_set_element */ # define SWAP_FLAGS(ch1, ch2) \ if (nonoption_flags_len > 0) \ { \ char __tmp = __getopt_nonoption_flags[ch1]; \ __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ __getopt_nonoption_flags[ch2] = __tmp; \ } #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ #if defined __STDC__ && __STDC__ static void exchange (char **); #endif static void exchange (argv) char **argv; { int bottom = first_nonopt; int middle = last_nonopt; int top = optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ #ifdef _LIBC /* First make sure the handling of the `__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (nonoption_flags_len > 0 && top >= nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) nonoption_flags_len = nonoption_flags_max_len = 0; else { memset (__mempcpy (new_str, __getopt_nonoption_flags, nonoption_flags_max_len), '\0', top + 1 - nonoption_flags_max_len); nonoption_flags_max_len = top + 1; __getopt_nonoption_flags = new_str; } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; register int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; register int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; SWAP_FLAGS (bottom + i, middle + i); } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ first_nonopt += (optind - last_nonopt); last_nonopt = optind; } /* Initialize the internal data when the first call is made. */ #if defined __STDC__ && __STDC__ static const char *_getopt_initialize (int, char *const *, const char *); #endif static const char * _getopt_initialize (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ first_nonopt = last_nonopt = optind; nextchar = NULL; posixly_correct = getenv ("POSIXLY_CORRECT"); /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { ordering = REQUIRE_ORDER; ++optstring; } else if (posixly_correct != NULL) ordering = REQUIRE_ORDER; else ordering = PERMUTE; #ifdef _LIBC if (posixly_correct == NULL && argc == original_argc && argv == original_argv) { if (nonoption_flags_max_len == 0) { if (__getopt_nonoption_flags == NULL || __getopt_nonoption_flags[0] == '\0') nonoption_flags_max_len = -1; else { const char *orig_str = __getopt_nonoption_flags; int len = nonoption_flags_max_len = strlen (orig_str); if (nonoption_flags_max_len < argc) nonoption_flags_max_len = argc; __getopt_nonoption_flags = (char *) malloc (nonoption_flags_max_len); if (__getopt_nonoption_flags == NULL) nonoption_flags_max_len = -1; else memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), '\0', nonoption_flags_max_len - len); } } nonoption_flags_len = nonoption_flags_max_len; } else nonoption_flags_len = 0; #endif return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If `getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If `getopt' finds another option character, it returns that character, updating `optind' and `nextchar' so that the next call to `getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, `getopt' returns -1. Then `optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set `opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in `optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in `optarg', otherwise `optarg' is set to zero. If OPTSTRING starts with `-' or `+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with `--' instead of `-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a `=', or else the in next ARGV-element. When `getopt' finds a long-named option, it returns 0 if that option's `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ int _getopt_internal (argc, argv, optstring, longopts, longind, long_only) int argc; char *const *argv; const char *optstring; const struct option *longopts; int *longind; int long_only; { optarg = NULL; if (optind == 0 || !__getopt_initialized) { if (optind == 0) optind = 1; /* Don't scan ARGV[0], the program name. */ optstring = _getopt_initialize (argc, argv, optstring); __getopt_initialized = 1; } /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag from the shell indicating it is not an option. The later information is only used when the used in the GNU libc. */ #ifdef _LIBC # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ || (optind < nonoption_flags_len \ && __getopt_nonoption_flags[optind] == '1')) #else # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') #endif if (nextchar == NULL || *nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (last_nonopt > optind) last_nonopt = optind; if (first_nonopt > optind) first_nonopt = optind; if (ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (last_nonopt != optind) first_nonopt = optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (optind < argc && NONOPTION_P) optind++; last_nonopt = optind; } /* The special ARGV-element `--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (optind != argc && !strcmp (argv[optind], "--")) { optind++; if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (first_nonopt == last_nonopt) first_nonopt = optind; last_nonopt = argc; optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (first_nonopt != last_nonopt) optind = first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (ordering == REQUIRE_ORDER) return -1; optarg = argv[optind++]; return 1; } /* We have found another option-ARGV-element. Skip the initial punctuation. */ nextchar = (argv[optind] + 1 + (longopts != NULL && argv[optind][1] == '-')); } /* Decode the current option-ARGV-element. */ /* Check whether the ARGV-element is a long option. If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (longopts != NULL && (argv[optind][1] == '-' || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = -1; int option_index; for (nameend = nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == (unsigned int) strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (opterr) fprintf (stderr, _("%s: option `%s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; optind++; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (opterr) { if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, _("%s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); else /* +option or -option */ fprintf (stderr, _("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); } nextchar += strlen (nextchar); optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (opterr) fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. Otherwise interpret it as a short option. */ if (!long_only || argv[optind][1] == '-' || my_index (optstring, *nextchar) == NULL) { if (opterr) { if (argv[optind][1] == '-') /* --option */ fprintf (stderr, _("%s: unrecognized option `--%s'\n"), argv[0], nextchar); else /* +option or -option */ fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[optind][0], nextchar); } nextchar = (char *) ""; optind++; optopt = 0; return '?'; } } /* Look at and handle the next short option-character. */ { char c = *nextchar++; char *temp = my_index (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*nextchar == '\0') ++optind; if (temp == NULL || c == ':') { if (opterr) { if (posixly_correct) /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); else fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); } optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (opterr) { /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; /* optarg is now the argument, see if it's in the table of longopts. */ for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (opterr) fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (opterr) fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); nextchar += strlen (nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (opterr) fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } nextchar = NULL; return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*nextchar != '\0') { optarg = nextchar; optind++; } else optarg = NULL; nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (opterr) { /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; nextchar = NULL; } } return c; } } int getopt (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { return _getopt_internal (argc, argv, optstring, (const struct option *) 0, (int *) 0, 0); } #endif /* Not ELIDE_CODE. */ #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of `getopt'. */ int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ tar-1.13/lib/getopt1.c0000444000176300016070000001070606647030355010221 /* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include #endif #include "getopt.h" #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ #ifndef const #define const #endif #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #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 #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include #endif #ifndef NULL #define NULL 0 #endif int getopt_long (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 1); } #endif /* Not ELIDE_CODE. */ #ifdef TEST #include int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case 'd': printf ("option d with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ tar-1.13/lib/modechange.c0000444000176300016070000002762106711011675010730 /* modechange.c -- file mode manipulation Copyright (C) 1989, 1990, 1997, 1998, 1999 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. */ /* Written by David MacKenzie */ /* The ASCII mode string is compiled into a linked list of `struct modechange', which can then be applied to each file to be changed. We do this instead of re-parsing the ASCII string for each file because the compiled form requires less computation to use; when changing the mode of many files, this probably results in a performance gain. */ #if HAVE_CONFIG_H # include #endif #include "modechange.h" #include #include "xstrtol.h" #if STDC_HEADERS # include #else char *malloc (); #endif #ifndef NULL # define NULL 0 #endif #if STAT_MACROS_BROKEN # undef S_ISDIR #endif #if !defined(S_ISDIR) && defined(S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif #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 /* All the mode bits that can be affected by chmod. */ #define CHMOD_MODE_BITS \ (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) /* Return newly allocated memory to hold one element of type TYPE. */ #define talloc(type) ((type *) malloc (sizeof (type))) /* Create a mode_change entry with the specified `=ddd'-style mode change operation, where NEW_MODE is `ddd'. Return the new entry, or NULL upon failure. */ static struct mode_change * make_node_op_equals (mode_t new_mode) { struct mode_change *p; p = talloc (struct mode_change); if (p == NULL) return p; p->next = NULL; p->op = '='; p->flags = 0; p->value = new_mode; p->affected = CHMOD_MODE_BITS; /* Affect all permissions. */ return p; } /* Append entry E to the end of the link list with the specified HEAD and TAIL. */ static void mode_append_entry (struct mode_change **head, struct mode_change **tail, struct mode_change *e) { if (*head == NULL) *head = *tail = e; else { (*tail)->next = e; *tail = e; } } /* Return a linked list of file mode change operations created from MODE_STRING, an ASCII string that contains either an octal number specifying an absolute mode, or symbolic mode change operations with the form: [ugoa...][[+-=][rwxXstugo...]...][,...] MASKED_OPS is a bitmask indicating which symbolic mode operators (=+-) should not affect bits set in the umask when no users are given. Operators not selected in MASKED_OPS ignore the umask. Return MODE_INVALID if `mode_string' does not contain a valid representation of file mode change operations; return MODE_MEMORY_EXHAUSTED if there is insufficient memory. */ struct mode_change * mode_compile (const char *mode_string, unsigned int masked_ops) { struct mode_change *head; /* First element of the linked list. */ struct mode_change *tail; /* An element of the linked list. */ unsigned long mode_value; /* The mode value, if octal. */ char *string_end; /* Pointer to end of parsed value. */ mode_t umask_value; /* The umask value (surprise). */ head = NULL; #ifdef lint tail = NULL; #endif if (xstrtoul (mode_string, &string_end, 8, &mode_value, "") == LONGINT_OK) { struct mode_change *p; if (mode_value > CHMOD_MODE_BITS) return MODE_INVALID; p = make_node_op_equals ((mode_t) mode_value); if (p == NULL) return MODE_MEMORY_EXHAUSTED; mode_append_entry (&head, &tail, p); return head; } umask_value = umask (0); umask (umask_value); /* Restore the old value. */ --mode_string; /* One loop iteration for each "ugoa...=+-rwxXstugo...[=+-rwxXstugo...]". */ do { /* Which bits in the mode are operated on. */ mode_t affected_bits = 0; /* `affected_bits' modified by umask. */ mode_t affected_masked; /* Operators to actually use umask on. */ unsigned ops_to_mask = 0; int who_specified_p; affected_bits = 0; ops_to_mask = 0; /* Turn on all the bits in `affected_bits' for each group given. */ for (++mode_string;; ++mode_string) switch (*mode_string) { case 'u': affected_bits |= S_ISUID | S_IRWXU; break; case 'g': affected_bits |= S_ISGID | S_IRWXG; break; case 'o': affected_bits |= S_ISVTX | S_IRWXO; break; case 'a': affected_bits |= CHMOD_MODE_BITS; break; default: goto no_more_affected; } no_more_affected: /* If none specified, affect all bits, except perhaps those set in the umask. */ if (affected_bits) who_specified_p = 1; else { who_specified_p = 0; affected_bits = CHMOD_MODE_BITS; ops_to_mask = masked_ops; } while (*mode_string == '=' || *mode_string == '+' || *mode_string == '-') { struct mode_change *change = talloc (struct mode_change); if (change == NULL) { mode_free (head); return MODE_MEMORY_EXHAUSTED; } change->next = NULL; change->op = *mode_string; /* One of "=+-". */ affected_masked = affected_bits; /* Per the Single Unix Spec, if `who' is not specified and the `=' operator is used, then clear all the bits first. */ if (!who_specified_p && ops_to_mask & (*mode_string == '=' ? MODE_MASK_EQUALS : 0)) { struct mode_change *p = make_node_op_equals (0); if (p == NULL) return MODE_MEMORY_EXHAUSTED; mode_append_entry (&head, &tail, p); } if (ops_to_mask & (*mode_string == '=' ? MODE_MASK_EQUALS : *mode_string == '+' ? MODE_MASK_PLUS : MODE_MASK_MINUS)) affected_masked &= ~umask_value; change->affected = affected_masked; change->value = 0; change->flags = 0; /* Add the element to the tail of the list, so the operations are performed in the correct order. */ mode_append_entry (&head, &tail, change); /* Set `value' according to the bits set in `affected_masked'. */ for (++mode_string;; ++mode_string) switch (*mode_string) { case 'r': change->value |= ((S_IRUSR | S_IRGRP | S_IROTH) & affected_masked); break; case 'w': change->value |= ((S_IWUSR | S_IWGRP | S_IWOTH) & affected_masked); break; case 'X': change->flags |= MODE_X_IF_ANY_X; /* Fall through. */ case 'x': change->value |= ((S_IXUSR | S_IXGRP | S_IXOTH) & affected_masked); break; case 's': /* Set the setuid/gid bits if `u' or `g' is selected. */ change->value |= (S_ISUID | S_ISGID) & affected_masked; break; case 't': /* Set the "save text image" bit if `o' is selected. */ change->value |= S_ISVTX & affected_masked; break; case 'u': /* Set the affected bits to the value of the `u' bits on the same file. */ if (change->value) goto invalid; change->value = S_IRWXU; change->flags |= MODE_COPY_EXISTING; break; case 'g': /* Set the affected bits to the value of the `g' bits on the same file. */ if (change->value) goto invalid; change->value = S_IRWXG; change->flags |= MODE_COPY_EXISTING; break; case 'o': /* Set the affected bits to the value of the `o' bits on the same file. */ if (change->value) goto invalid; change->value = S_IRWXO; change->flags |= MODE_COPY_EXISTING; break; default: goto no_more_values; } no_more_values:; } } while (*mode_string == ','); if (*mode_string == 0) return head; invalid: mode_free (head); return MODE_INVALID; } /* Return a file mode change operation that sets permissions to match those of REF_FILE. Return MODE_BAD_REFERENCE if REF_FILE can't be accessed. */ struct mode_change * mode_create_from_ref (const char *ref_file) { struct mode_change *change; /* the only change element */ struct stat ref_stats; if (stat (ref_file, &ref_stats)) return MODE_BAD_REFERENCE; change = talloc (struct mode_change); if (change == NULL) return MODE_MEMORY_EXHAUSTED; change->op = '='; change->flags = 0; change->affected = CHMOD_MODE_BITS; change->value = ref_stats.st_mode; change->next = NULL; return change; } /* Return file mode OLDMODE, adjusted as indicated by the list of change operations CHANGES. If OLDMODE is a directory, the type `X' change affects it even if no execute bits were set in OLDMODE. The returned value has the S_IFMT bits cleared. */ mode_t mode_adjust (mode_t oldmode, const struct mode_change *changes) { mode_t newmode; /* The adjusted mode and one operand. */ mode_t value; /* The other operand. */ newmode = oldmode & CHMOD_MODE_BITS; for (; changes; changes = changes->next) { if (changes->flags & MODE_COPY_EXISTING) { /* Isolate in `value' the bits in `newmode' to copy, given in the mask `changes->value'. */ value = newmode & changes->value; if (changes->value & S_IRWXU) /* Copy `u' permissions onto `g' and `o'. */ value |= ((value & S_IRUSR ? S_IRGRP | S_IROTH : 0) | (value & S_IWUSR ? S_IWGRP | S_IROTH : 0) | (value & S_IXUSR ? S_IXGRP | S_IXOTH : 0)); else if (changes->value & S_IRWXG) /* Copy `g' permissions onto `u' and `o'. */ value |= ((value & S_IRGRP ? S_IRUSR | S_IROTH : 0) | (value & S_IWGRP ? S_IWUSR | S_IROTH : 0) | (value & S_IXGRP ? S_IXUSR | S_IXOTH : 0)); else /* Copy `o' permissions onto `u' and `g'. */ value |= ((value & S_IROTH ? S_IRUSR | S_IRGRP : 0) | (value & S_IWOTH ? S_IWUSR | S_IRGRP : 0) | (value & S_IXOTH ? S_IXUSR | S_IXGRP : 0)); /* In order to change only `u', `g', or `o' permissions, or some combination thereof, clear unselected bits. This can not be done in mode_compile because the value to which the `changes->affected' mask is applied depends on the old mode of each file. */ value &= changes->affected; } else { value = changes->value; /* If `X', do not affect the execute bits if the file is not a directory and no execute bits are already set. */ if ((changes->flags & MODE_X_IF_ANY_X) && !S_ISDIR (oldmode) && (newmode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0) /* Clear the execute bits. */ value &= ~ (S_IXUSR | S_IXGRP | S_IXOTH); } switch (changes->op) { case '=': /* Preserve the previous values in `newmode' of bits that are not affected by this change operation. */ newmode = (newmode & ~changes->affected) | value; break; case '+': newmode |= value; break; case '-': newmode &= ~value; break; } } return newmode; } /* Free the memory used by the list of file mode change operations CHANGES. */ void mode_free (register struct mode_change *changes) { register struct mode_change *next; while (changes) { next = changes->next; free (changes); changes = next; } } tar-1.13/lib/msleep.c0000444000176300016070000000572406327136114010122 /* Sleep a given number of milliseconds. Copyright (C) 1992, 1993, 1994, 1997 Free Software Foundation, Inc. François Pinard , 1992. 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. */ #ifdef HAVE_CONFIG_H # include #endif /* This code is heavily borrowed from Taylor UUCP 1.03. Ian picks one of usleep, nap, napms, poll, select and sleep, in decreasing order of preference. The sleep function is always available. */ /* In many cases, we will sleep if the wanted number of milliseconds is higher than this value. */ #define THRESHOLD_FOR_SLEEP 30000 /* Include some header files. */ #if HAVE_UNISTD_H # include #endif #if HAVE_POLL # if HAVE_STROPTS_H # include # endif # if HAVE_POLL_H # include # include # endif # if !HAVE_STROPTS_H && !HAVE_POLL_H /* We need a definition for struct pollfd, although it doesn't matter what it contains. */ struct pollfd { int idummy; }; # endif #else # if HAVE_SELECT # include # endif #endif /*---------------------------------------. | Sleep a given number of milliseconds. | `---------------------------------------*/ void msleep (milliseconds) int milliseconds; { #if HAVE_USLEEP if (milliseconds > 0) usleep (milliseconds * (long) 1000); #else # if HAVE_NAP if (milliseconds > 0) nap ((long) milliseconds); # else # if HAVE_NAPMS if (milliseconds >= THRESHOLD_FOR_SLEEP) { sleep (milliseconds / 1000); milliseconds %= 1000; } if (milliseconds > 0) napms (milliseconds); # else # if HAVE_POLL struct pollfd sdummy; /* poll(2) checks this address */ if (milliseconds >= THRESHOLD_FOR_SLEEP) { sleep (milliseconds / 1000); milliseconds %= 1000; } if (milliseconds > 0) poll (&sdummy, 0, milliseconds); # else # if HAVE_SELECT struct timeval s; if (milliseconds >= THRESHOLD_FOR_SLEEP) { sleep (milliseconds / 1000); milliseconds %= 1000; } if (milliseconds > 0) { s.tv_sec = milliseconds / 1000; s.tv_usec = (milliseconds % 1000) * (long) 1000; select (0, NULL, NULL, NULL, &s); } # else /* Round the time up to the next full second. */ if (milliseconds > 0) sleep ((milliseconds + 999) / 1000); # endif # endif # endif # endif #endif } tar-1.13/lib/quotearg.c0000444000176300016070000002152506651004116010455 /* quotearg.c - quote arguments for output Copyright (C) 1998, 1999 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. */ /* Written by Paul Eggert */ #if HAVE_CONFIG_H # include #endif #include #include #include #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 #if HAVE_LIMITS_H # include #endif #ifndef CHAR_BIT # define CHAR_BIT 8 #endif #ifndef UCHAR_MAX # define UCHAR_MAX ((unsigned char) -1) #endif #if HAVE_STDLIB_H # include #endif #if HAVE_STRING_H # include #endif #define INT_BITS (sizeof (int) * CHAR_BIT) struct quoting_options { /* Basic quoting style. */ enum quoting_style style; /* Quote the chararacters indicated by this bit vector even if the quoting style would not normally require them to be quoted. */ int quote_these_too[((UCHAR_MAX + 1) / INT_BITS + ((UCHAR_MAX + 1) % INT_BITS != 0))]; }; /* Names of quoting styles. */ char const *const quoting_style_args[] = { "literal", "shell", "shell-always", "c", "escape", 0 }; /* Correspondances to quoting style names. */ enum quoting_style const quoting_style_vals[] = { literal_quoting_style, shell_quoting_style, shell_always_quoting_style, c_quoting_style, escape_quoting_style }; /* The default quoting options. */ static struct quoting_options default_quoting_options; /* Allocate a new set of quoting options, with contents initially identical to O if O is not null, or to the default if O is null. It is the caller's responsibility to free the result. */ struct quoting_options * clone_quoting_options (struct quoting_options *o) { struct quoting_options *p = (struct quoting_options *) xmalloc (sizeof (struct quoting_options)); *p = *(o ? o : &default_quoting_options); return p; } /* 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) { return (o ? o : &default_quoting_options)->style; } /* In O (or in the default if O is null), set the value of the quoting style to S. */ void set_quoting_style (struct quoting_options *o, enum quoting_style s) { (o ? o : &default_quoting_options)->style = s; } /* In O (or in the default if O is null), set the value of the quoting options for character C to I. Return the old value. Currently, the only values defined for I are 0 (the default) and 1 (which means to quote the character even if it would not otherwise be quoted). */ int set_char_quoting (struct quoting_options *o, char c, int i) { unsigned char uc = c; int *p = (o ? o : &default_quoting_options)->quote_these_too + uc / INT_BITS; int shift = uc % INT_BITS; int r = (*p >> shift) & 1; *p ^= ((i & 1) ^ r) << shift; return r; } /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of argument ARG (of size ARGSIZE), using O to control quoting. If O is null, use the default. Terminate the output with a null character, and return the written size of the output, not counting the terminating null. If BUFFERSIZE is too small to store the output string, return the value that would have been returned had BUFFERSIZE been large enough. If ARGSIZE is -1, use the string length of the argument for ARGSIZE. */ size_t quotearg_buffer (char *buffer, size_t buffersize, char const *arg, size_t argsize, struct quoting_options const *o) { unsigned char c; size_t i; size_t len; int quote_mark; struct quoting_options const *p = o ? o : &default_quoting_options; enum quoting_style quoting_style = p->style; #define STORE(c) \ do \ { \ if (len < buffersize) \ buffer[len] = (c); \ len++; \ } \ while (0) switch (quoting_style) { case shell_quoting_style: if (! (argsize == (size_t) -1 ? arg[0] == '\0' : argsize == 0)) { switch (arg[0]) { case '#': case '~': break; default: len = 0; for (i = 0; ; i++) { if (argsize == (size_t) -1 ? arg[i] == '\0' : i == argsize) goto done; c = arg[i]; switch (c) { case '\t': case '\n': case ' ': case '!': /* special in csh */ case '"': case '$': case '&': case '\'': case '(': case ')': case '*': case ';': case '<': case '>': case '?': case '[': case '\\': case '^': /* special in old /bin/sh, e.g. SunOS 4.1.4 */ case '`': case '|': goto needs_quoting; } if (p->quote_these_too[c / INT_BITS] & (1 << (c % INT_BITS))) goto needs_quoting; STORE (c); } needs_quoting:; break; } } /* Fall through. */ case shell_always_quoting_style: quote_mark = '\''; break; case c_quoting_style: quote_mark = '"'; break; default: quote_mark = 0; break; } len = 0; if (quote_mark) STORE (quote_mark); for (i = 0; ! (argsize == (size_t) -1 ? arg[i] == '\0' : i == argsize); i++) { c = arg[i]; switch (quoting_style) { case literal_quoting_style: break; case shell_quoting_style: case shell_always_quoting_style: if (c == '\'') { STORE ('\''); STORE ('\\'); STORE ('\''); } break; case c_quoting_style: case escape_quoting_style: switch (c) { case '?': /* Do not generate trigraphs. */ case '\\': goto store_escape; /* Not all C compilers know what \a means. */ case 7 : c = 'a'; goto store_escape; case '\b': c = 'b'; goto store_escape; case '\f': c = 'f'; goto store_escape; case '\n': c = 'n'; goto store_escape; case '\r': c = 'r'; goto store_escape; case '\t': c = 't'; goto store_escape; case '\v': c = 'v'; goto store_escape; case '"': if (quoting_style == c_quoting_style) goto store_escape; break; default: if (!ISGRAPH (c)) { STORE ('\\'); STORE ('0' + (c >> 6)); STORE ('0' + ((c >> 3) & 7)); c = '0' + (c & 7); goto store_c; } break; } if (! (p->quote_these_too[c / INT_BITS] & (1 << (c % INT_BITS)))) goto store_c; store_escape: STORE ('\\'); } store_c: STORE (c); } if (quote_mark) STORE (quote_mark); done: if (len < buffersize) buffer[len] = '\0'; return len; } /* Use storage slot N to return a quoted version of the string ARG. OPTIONS specifies the quoting options. The returned value points to static storage that can be reused by the next call to this function with the same value of N. N must be nonnegative. N is deliberately declared with type `int' to allow for future extensions (using negative values). */ static char * quotearg_n_options (int n, char const *arg, struct quoting_options const *options) { static unsigned int nslots; static struct slotvec { size_t size; char *val; } *slotvec; if (nslots <= n) { int n1 = n + 1; size_t s = n1 * sizeof (struct slotvec); if (! (0 < n1 && n1 == s / sizeof (struct slotvec))) abort (); slotvec = (struct slotvec *) xrealloc (slotvec, s); memset (slotvec + nslots, 0, (n1 - nslots) * sizeof (struct slotvec)); nslots = n; } { size_t size = slotvec[n].size; char *val = slotvec[n].val; size_t qsize = quotearg_buffer (val, size, arg, (size_t) -1, options); if (size <= qsize) { slotvec[n].size = size = qsize + 1; slotvec[n].val = val = xrealloc (val, size); quotearg_buffer (val, size, arg, (size_t) -1, options); } return val; } } char * quotearg_n (unsigned int n, char const *arg) { return quotearg_n_options (n, arg, &default_quoting_options); } char * quotearg (char const *arg) { return quotearg_n (0, arg); } char * quotearg_char (char const *arg, char ch) { struct quoting_options options; options = default_quoting_options; set_char_quoting (&options, ch, 1); return quotearg_n_options (0, arg, &options); } char * quotearg_colon (char const *arg) { return quotearg_char (arg, ':'); } tar-1.13/lib/safe-read.c0000444000176300016070000000271706553503153010465 /* safe-read.c -- an interface to read that retries after interrupts Copyright (C) 1993, 1994, 1998 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. */ #if HAVE_CONFIG_H # include #endif #include #if HAVE_UNISTD_H # include #endif #include #ifndef errno extern int errno; #endif #include "safe-read.h" /* Read LEN bytes at PTR from descriptor DESC, retrying if interrupted. Return the actual number of bytes read, zero for EOF, or negative for an error. */ ssize_t safe_read (int desc, void *ptr, size_t len) { ssize_t n_chars; if (len <= 0) return len; #ifdef EINTR do { n_chars = read (desc, ptr, len); } while (n_chars < 0 && errno == EINTR); #else n_chars = read (desc, ptr, len); #endif return n_chars; } tar-1.13/lib/xgetcwd.c0000444000176300016070000000356406271545636010315 /* xgetcwd.c -- return current directory with unlimited length Copyright (C) 1992, 1996 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. */ /* Written by David MacKenzie . */ #if HAVE_CONFIG_H # include #endif #include #include #ifndef errno extern int errno; #endif #include #include "pathmax.h" #if HAVE_GETCWD char *getcwd (); #else char *getwd (); # define getcwd(Buf, Max) getwd (Buf) #endif /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 char *xmalloc (); char *xrealloc (); void free (); /* Return the current directory, newly allocated, arbitrarily long. Return NULL and set errno on error. */ char * xgetcwd () { char *cwd; char *ret; unsigned path_max; errno = 0; path_max = (unsigned) PATH_MAX; path_max += 2; /* The getcwd docs say to do this. */ cwd = xmalloc (path_max); errno = 0; while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE) { path_max += PATH_INCR; cwd = xrealloc (cwd, path_max); errno = 0; } if (ret == NULL) { int save_errno = errno; free (cwd); errno = save_errno; return NULL; } return cwd; } tar-1.13/lib/xmalloc.c0000444000176300016070000000525306706514104010271 /* xmalloc.c -- malloc with out of memory checking Copyright (C) 1990-1997, 98, 99 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. */ #if HAVE_CONFIG_H # include #endif #include #if STDC_HEADERS # include #else void *calloc (); void *malloc (); void *realloc (); void free (); #endif #if ENABLE_NLS # include # define _(Text) gettext (Text) #else # define textdomain(Domain) # define _(Text) Text #endif #define N_(Text) Text #include "error.h" #include "xalloc.h" #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #endif #ifndef HAVE_DONE_WORKING_MALLOC_CHECK you must run the autoconf test for a properly working malloc -- see malloc.m4 #endif #ifndef HAVE_DONE_WORKING_REALLOC_CHECK you must run the autoconf test for a properly working realloc -- see realloc.m4 #endif /* Exit value when the requested amount of memory is not available. The caller may set it to some other value. */ int xalloc_exit_failure = EXIT_FAILURE; /* If non NULL, call this function when memory is exhausted. */ void (*xalloc_fail_func) () = 0; /* If XALLOC_FAIL_FUNC is NULL, or does return, display this message before exiting when memory is exhausted. Goes through gettext. */ char *const xalloc_msg_memory_exhausted = N_("Memory exhausted"); static void xalloc_fail (void) { if (xalloc_fail_func) (*xalloc_fail_func) (); error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted)); } /* Allocate N bytes of memory dynamically, with error checking. */ void * xmalloc (size_t n) { void *p; p = malloc (n); if (p == 0) xalloc_fail (); return p; } /* Change the size of an allocated block of memory P to N bytes, with error checking. If P is NULL, run xmalloc. */ void * xrealloc (void *p, size_t n) { p = realloc (p, n); if (p == 0) xalloc_fail (); return p; } /* Allocate memory for N elements of S bytes, with error checking. */ void * xcalloc (size_t n, size_t s) { void *p; p = calloc (n, s); if (p == 0) xalloc_fail (); return p; } tar-1.13/lib/xstrdup.c0000444000176300016070000000244606474717526010363 /* xstrdup.c -- copy a string with out of memory checking Copyright (C) 1990, 1996, 1998 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. */ #if HAVE_CONFIG_H # include #endif #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif #if STDC_HEADERS || HAVE_STRING_H # include #else # include #endif #include char *xmalloc PARAMS ((size_t n)); /* Return a newly allocated copy of STRING. */ char * xstrdup (const char *string) { return strcpy (xmalloc (strlen (string) + 1), string); } tar-1.13/lib/xstrtol.c0000444000176300016070000001304506737624076010365 /* A more useful interface to strtol. Copyright 1995, 1996, 1998, 1999 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. */ /* Written by Jim Meyering. */ #if HAVE_CONFIG_H # include #endif #ifndef __strtol # define __strtol strtol # define __strtol_t long int # define __xstrtol xstrtol #endif /* Some pre-ANSI implementations (e.g. SunOS 4) need stderr defined if assertion checking is enabled. */ #include #if STDC_HEADERS # include #endif #if HAVE_STRING_H # include #else # include # ifndef strchr # define strchr index # endif #endif #include #include #include #ifndef errno extern int errno; #endif #if HAVE_LIMITS_H # include #endif #ifndef CHAR_BIT # define CHAR_BIT 8 #endif /* 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. It is necessary at least when t == time_t. */ #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0)) #define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t)) #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 ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) #include "xstrtol.h" #ifndef strtol long int strtol (); #endif #ifndef strtoul unsigned long int strtoul (); #endif #ifndef strtoumax uintmax_t strtoumax (); #endif static int bkm_scale (__strtol_t *x, int scale_factor) { __strtol_t product = *x * scale_factor; if (*x != product / scale_factor) return 1; *x = product; return 0; } static int bkm_scale_by_power (__strtol_t *x, int base, int power) { while (power--) if (bkm_scale (x, base)) return 1; return 0; } /* FIXME: comment. */ strtol_error __xstrtol (const char *s, char **ptr, int strtol_base, __strtol_t *val, const char *valid_suffixes) { char *t_ptr; char **p; __strtol_t tmp; assert (0 <= strtol_base && strtol_base <= 36); p = (ptr ? ptr : &t_ptr); if (! TYPE_SIGNED (__strtol_t)) { const char *q = s; while (ISSPACE ((unsigned char) *q)) ++q; if (*q == '-') return LONGINT_INVALID; } errno = 0; tmp = __strtol (s, p, strtol_base); if (errno != 0) return LONGINT_OVERFLOW; if (*p == s) return LONGINT_INVALID; /* Let valid_suffixes == NULL mean `allow any suffix'. */ /* FIXME: update all callers except the ones that allow suffixes after the number, changing last parameter NULL to `""'. */ if (!valid_suffixes) { *val = tmp; return LONGINT_OK; } if (**p != '\0') { int base = 1024; int suffixes = 1; int overflow; if (!strchr (valid_suffixes, **p)) { *val = tmp; return LONGINT_INVALID_SUFFIX_CHAR; } if (strchr (valid_suffixes, '0')) { /* The ``valid suffix'' '0' is a special flag meaning that an optional second suffix is allowed, which can change the base, e.g. "100MD" for 100 megabytes decimal. */ switch (p[0][1]) { case 'B': suffixes++; break; case 'D': base = 1000; suffixes++; break; } } switch (**p) { case 'b': overflow = bkm_scale (&tmp, 512); break; case 'B': overflow = bkm_scale (&tmp, 1024); break; case 'c': overflow = 0; break; case 'E': /* Exa */ overflow = bkm_scale_by_power (&tmp, base, 6); break; case 'G': /* Giga */ overflow = bkm_scale_by_power (&tmp, base, 3); break; case 'k': /* kilo */ overflow = bkm_scale_by_power (&tmp, base, 1); break; case 'M': /* Mega */ case 'm': /* 'm' is undocumented; for backward compatibility only */ overflow = bkm_scale_by_power (&tmp, base, 2); break; case 'P': /* Peta */ overflow = bkm_scale_by_power (&tmp, base, 5); break; case 'T': /* Tera */ overflow = bkm_scale_by_power (&tmp, base, 4); break; case 'w': overflow = bkm_scale (&tmp, 2); break; case 'Y': /* Yotta */ overflow = bkm_scale_by_power (&tmp, base, 8); break; case 'Z': /* Zetta */ overflow = bkm_scale_by_power (&tmp, base, 7); break; default: *val = tmp; return LONGINT_INVALID_SUFFIX_CHAR; break; } if (overflow) return LONGINT_OVERFLOW; (*p) += suffixes; } *val = tmp; return LONGINT_OK; } #ifdef TESTING_XSTRTO # include # include "error.h" char *program_name; int main (int argc, char** argv) { strtol_error s_err; int i; program_name = argv[0]; for (i=1; i%lu (%s)\n", argv[i], val, p); } else { STRTOL_FATAL_ERROR (argv[i], "arg", s_err); } } exit (0); } #endif /* TESTING_XSTRTO */ tar-1.13/lib/xstrtoul.c0000444000176300016070000000015606706514104010533 #define __strtol strtoul #define __strtol_t unsigned long int #define __xstrtol xstrtoul #include "xstrtol.c" tar-1.13/lib/xstrtoumax.c0000444000176300016070000000202206707251764011072 /* xstrtoumax.c -- A more useful interface to strtoumax. Copyright 1999 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. */ /* Written by Paul Eggert. */ #if HAVE_CONFIG_H # include #endif #if HAVE_INTTYPES_H # include #endif #define __strtol strtoumax #define __strtol_t uintmax_t #define __xstrtol xstrtoumax #include "xstrtol.c" tar-1.13/lib/argmatch.h0000444000176300016070000001075206653103122010420 /* argmatch.h -- definitions and prototypes for argmatch.c Copyright (C) 1990, 1998, 1999 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. */ /* Written by David MacKenzie Modified by Akim Demaille */ #ifndef ARGMATCH_H_ # define ARGMATCH_H_ 1 # if HAVE_CONFIG_H # include # endif # include # ifndef PARAMS # if PROTOTYPES || (defined (__STDC__) && __STDC__) # define PARAMS(args) args # else # define PARAMS(args) () # endif /* GCC. */ # endif /* Not PARAMS. */ /* Assert there are as many real arguments as there are values (argument list ends with a NULL guard). There is no execution cost, since it will be statically evalauted to `assert (0)' or `assert (1)'. Unfortunately there is no -Wassert-0. */ # undef ARRAY_CARDINALITY # define ARRAY_CARDINALITY(Array) (sizeof ((Array)) / sizeof (*(Array))) # define ARGMATCH_ASSERT(Arglist, Vallist) \ assert (ARRAY_CARDINALITY ((Arglist)) == ARRAY_CARDINALITY ((Vallist)) + 1) /* Return the index of the element of ARGLIST (NULL terminated) that matches with ARG. If VALLIST is not NULL, then use it to resolve false ambiguities (i.e., different matches of ARG but corresponding to the same values in VALLIST). */ int argmatch PARAMS ((const char *arg, const char *const *arglist, const char *vallist, size_t valsize)); int argcasematch PARAMS ((const char *arg, const char *const *arglist, const char *vallist, size_t valsize)); # define ARGMATCH(Arg, Arglist, Vallist) \ argmatch ((Arg), (Arglist), (const char *) (Vallist), sizeof (*(Vallist))) # define ARGCASEMATCH(Arg, Arglist, Vallist) \ argcasematch ((Arg), (Arglist), (const char *) (Vallist), sizeof (*(Vallist))) /* xargmatch calls this function when it fails. This function should not return. By default, this is a function that calls ARGMATCH_DIE which in turn defaults to `exit (EXIT_FAILURE)'. */ typedef void (*argmatch_exit_fn) PARAMS ((void)); extern argmatch_exit_fn argmatch_die; /* Report on stderr why argmatch failed. Report correct values. */ void argmatch_invalid PARAMS ((const char *context, const char *value, int problem)); /* Left for compatibility with the old name invalid_arg */ # define invalid_arg(Context, Value, Problem) \ argmatch_invalid ((Context), (Value), (Problem)) /* Report on stderr the list of possible arguments. */ void argmatch_valid PARAMS ((const char *const *arglist, const char *vallist, size_t valsize)); # define ARGMATCH_VALID(Arglist, Vallist) \ argmatch_valid (Arglist, (const char *) Vallist, sizeof (*(Vallist))) /* Same as argmatch, but upon failure, reports a explanation on the failure, and exits using the function EXIT_FN. */ int __xargmatch_internal PARAMS ((const char *context, const char *arg, const char *const *arglist, const char *vallist, size_t valsize, int case_sensitive, argmatch_exit_fn exit_fn)); /* Programmer friendly interface to __xargmatch_internal. */ # define XARGMATCH(Context, Arg, Arglist, Vallist) \ (Vallist [__xargmatch_internal ((Context), (Arg), (Arglist), \ (const char *) (Vallist), \ sizeof (*(Vallist)), \ 1, argmatch_die)]) # define XARGCASEMATCH(Context, Arg, Arglist, Vallist) \ (Vallist [__xargmatch_internal ((Context), (Arg), (Arglist), \ (const char *) (Vallist), \ sizeof (*(Vallist)), \ 0, argmatch_die)]) /* Convert a value into a corresponding argument. */ const char *argmatch_to_argument PARAMS ((char const *value, const char *const *arglist, const char *vallist, size_t valsize)); # define ARGMATCH_TO_ARGUMENT(Value, Arglist, Vallist) \ argmatch_to_argument ((char const *) &(Value), (Arglist), \ (const char *) (Vallist), sizeof (*(Vallist))) #endif /* ARGMATCH_H_ */ tar-1.13/lib/backupfile.h0000444000176300016070000000355506650664444010762 /* backupfile.h -- declarations for making Emacs style backup file names Copyright (C) 1990-1992, 1997-1999 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; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef BACKUPFILE_H_ # define BACKUPFILE_H_ /* When to make backup files. */ enum backup_type { /* Never make backups. */ none, /* Make simple backups of every file. */ simple, /* Make numbered backups of files that already have numbered backups, and simple backups of the others. */ numbered_existing, /* Make numbered backups of every file. */ numbered }; # define VALID_BACKUP_TYPE(Type) \ ((Type) == none \ || (Type) == simple \ || (Type) == numbered_existing \ || (Type) == numbered) extern char const *simple_backup_suffix; # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif 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)); #endif /* ! BACKUPFILE_H_ */ tar-1.13/lib/basename.h0000444000176300016070000000030306740713460010405 #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif char *base_name PARAMS ((char const *name)); tar-1.13/lib/error.h0000444000176300016070000000516006352654250007771 /* Declaration for error-reporting function Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. 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. 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. */ #ifndef _ERROR_H #define _ERROR_H 1 #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 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 #ifdef __cplusplus extern "C" { #endif #if defined (__STDC__) && __STDC__ /* Print a message with `fprintf (stderr, FORMAT, ...)'; if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ extern void error (int status, int errnum, const char *format, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void error_at_line (int status, int errnum, const char *fname, unsigned int lineno, const char *format, ...) __attribute__ ((__format__ (__printf__, 5, 6))); /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ extern void (*error_print_progname) (void); #else void error (); void error_at_line (); extern void (*error_print_progname) (); #endif /* This variable is incremented each time `error' is called. */ extern unsigned int error_message_count; /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ extern int error_one_per_line; #ifdef __cplusplus } #endif #endif /* error.h */ tar-1.13/lib/exclude.h0000444000176300016070000000243206452423017010264 /* exclude.h -- declarations for excluding file names Copyright 1992, 1993, 1994, 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; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Paul Eggert */ #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif struct exclude; 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 *)); tar-1.13/lib/fnmatch.h0000444000176300016070000000460406172336264010264 /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. 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. 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. */ #ifndef _FNMATCH_H #define _FNMATCH_H 1 #ifdef __cplusplus extern "C" { #endif #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 it is used only inside the prototype for `fnmatch', which is elided in non-ANSI C where `const' is problematical. */ #endif /* C++ or ANSI C. */ /* We #undef these before defining them because some losing systems (HP-UX A.08.07 for example) define these in . */ #undef FNM_PATHNAME #undef FNM_NOESCAPE #undef FNM_PERIOD /* 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. */ #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 /* Value returned by `fnmatch' if STRING does not match PATTERN. */ #define FNM_NOMATCH 1 /* Match STRING against the filename pattern PATTERN, returning zero if it matches, FNM_NOMATCH if not. */ extern int fnmatch __P ((const char *__pattern, const char *__string, int __flags)); #ifdef __cplusplus } #endif #endif /* fnmatch.h */ tar-1.13/lib/getopt.h0000444000176300016070000001334506647030355010147 /* Declarations for getopt. Copyright (C) 1989,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _GETOPT_H #ifndef __need_getopt # define _GETOPT_H 1 #endif #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero. The field `has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. */ struct option { # if defined __STDC__ && __STDC__ const char *name; # else char *name; # endif /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the `has_arg' field of `struct option'. */ # define no_argument 0 # define required_argument 1 # define optional_argument 2 #endif /* need getopt */ /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options missing arguments, `optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter takes an argument, to be placed in `optarg'. If a letter in OPTS is followed by two colons, its argument is optional. This behavior is specific to the GNU `getopt'. The argument `--' causes premature termination of argument scanning, explicitly telling `getopt' that there are no more options. If OPTS begins with `--', then non-option arguments are treated as arguments to the option '\0'. This behavior is specific to the GNU `getopt'. */ #if defined __STDC__ && __STDC__ # ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation 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__ */ # ifndef __need_getopt extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind); extern int getopt_long_only (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind); /* Internal only. Users should not call this directly. */ extern int _getopt_internal (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only); # endif #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt extern int getopt_long (); extern int getopt_long_only (); extern int _getopt_internal (); # endif #endif /* __STDC__ */ #ifdef __cplusplus } #endif /* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt #endif /* getopt.h */ tar-1.13/lib/getdate.h0000444000176300016070000000242506502632236010253 /* Copyright (C) 1995, 1997, 1998 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. */ #if HAVE_CONFIG_H # include #endif #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif #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) */ time_t get_date PARAMS ((const char *p, const time_t *now)); tar-1.13/lib/getpagesize.h0000444000176300016070000000116205426320432011136 /* Emulate getpagesize on systems that lack it. */ #ifndef HAVE_GETPAGESIZE #ifdef VMS #define getpagesize() 512 #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef _SC_PAGESIZE #define getpagesize() sysconf(_SC_PAGESIZE) #else #include #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 */ #endif /* not HAVE_GETPAGESIZE */ tar-1.13/lib/lchown.h0000444000176300016070000000027406553505531010133 /* 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 tar-1.13/lib/modechange.h0000444000176300016070000000461606710772235010741 /* modechange.h -- definitions for file mode manipulation Copyright (C) 1989, 1990, 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. */ /* Masks for the `flags' field in a `struct mode_change'. */ #if ! defined MODECHANGE_H_ # define MODECHANGE_H_ # if HAVE_CONFIG_H # include # endif # include /* Affect the execute bits only if at least one execute bit is set already, or if the file is a directory. */ # define MODE_X_IF_ANY_X 01 /* If set, copy some existing permissions for u, g, or o onto the other two. Which of u, g, or o is copied is determined by which bits are set in the `value' field. */ # define MODE_COPY_EXISTING 02 struct mode_change { char op; /* One of "=+-". */ char flags; /* Special operations. */ mode_t affected; /* Set for u/g/o/s/s/t, if to be affected. */ mode_t value; /* Bits to add/remove. */ struct mode_change *next; /* Link to next change in list. */ }; /* 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) /* 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 # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif 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 *)); #endif tar-1.13/lib/pathmax.h0000444000176300016070000000327005772431144010302 /* Define PATH_MAX somehow. Requires sys/types.h. Copyright (C) 1992 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. */ #ifndef _PATHMAX_H #define _PATHMAX_H #ifdef HAVE_UNISTD_H #include #endif /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define PATH_MAX but might cause redefinition warnings when sys/param.h is later included (as on MORE/BSD 4.3). */ #if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) && !defined(__GNUC__)) #include #endif #ifndef _POSIX_PATH_MAX #define _POSIX_PATH_MAX 255 #endif #if !defined(PATH_MAX) && defined(_PC_PATH_MAX) #define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif /* Don't include sys/param.h if it already has been. */ #if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) #include #endif #if !defined(PATH_MAX) && defined(MAXPATHLEN) #define PATH_MAX MAXPATHLEN #endif #ifndef PATH_MAX #define PATH_MAX _POSIX_PATH_MAX #endif #endif /* _PATHMAX_H */ tar-1.13/lib/quotearg.h0000444000176300016070000001001706643204456010466 /* quotearg.h - quote arguments for output Copyright (C) 1998, 1999 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. */ /* Written by Paul Eggert */ /* Basic quoting styles. */ enum quoting_style { literal_quoting_style, /* --quoting-style=literal */ shell_quoting_style, /* --quoting-style=shell */ shell_always_quoting_style, /* --quoting-style=shell-always */ c_quoting_style, /* --quoting-style=c */ escape_quoting_style /* --quoting-style=escape */ }; /* For now, --quoting-style=literal is the default, but this is planned to change to --quoting-style=shell in the future. */ #ifndef DEFAULT_QUOTING_STYLE # define DEFAULT_QUOTING_STYLE literal_quoting_style #endif /* Names of quoting styles and their corresponding values. */ extern char const *const quoting_style_args[]; extern enum quoting_style const quoting_style_vals[]; struct quoting_options; #ifndef PARAMS # if defined PROTOTYPES || defined __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif /* The functions listed below set and use a hidden variable that contains the default quoting style options. */ /* Allocate a new set of quoting options, with contents initially identical to O if O is not null, or to the default if O is null. It is the caller's responsibility to free the result. */ struct quoting_options *clone_quoting_options PARAMS ((struct quoting_options *o)); /* 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)); /* In O (or in the default if O is null), set the value of the quoting style to S. */ void set_quoting_style PARAMS ((struct quoting_options *o, enum quoting_style s)); /* In O (or in the default if O is null), set the value of the quoting options for character C to I. Return the old value. Currently, the only values defined for I are 0 (the default) and 1 (which means to quote the character even if it would not otherwise be quoted). */ int set_char_quoting PARAMS ((struct quoting_options *o, char c, int i)); /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of argument ARG (of size ARGSIZE), using O to control quoting. If O is null, use the default. Terminate the output with a null character, and return the written size of the output, not counting the terminating null. If BUFFERSIZE is too small to store the output string, return the value that would have been returned had BUFFERSIZE been large enough. If ARGSIZE is -1, use the string length of the argument for ARGSIZE. */ size_t quotearg_buffer PARAMS ((char *buffer, size_t buffersize, char const *arg, size_t argsize, struct quoting_options const *o)); /* Use storage slot N to return a quoted version of the string ARG. Use the default quoting options. The returned value points to static storage that can be reused by the next call to this function with the same value of N. N must be nonnegative. */ char *quotearg_n PARAMS ((unsigned int n, char const *arg)); /* Equivalent to quotearg_n (0, ARG). */ char *quotearg PARAMS ((char const *arg)); /* Like quotearg (ARG), except also quote any instances of CH. */ char *quotearg_char PARAMS ((char const *arg, char ch)); /* Equivalent to quotearg_char (ARG, ':'). */ char *quotearg_colon PARAMS ((char const *arg)); tar-1.13/lib/safe-read.h0000444000176300016070000000043106740566366010476 #ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif 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)); tar-1.13/lib/xalloc.h0000444000176300016070000000372306643203653010125 /* xalloc.h -- malloc with out-of-memory checking Copyright (C) 1990-1998, 1999 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. */ #ifndef XALLOC_H_ # define XALLOC_H_ # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif /* Exit value when the requested amount of memory is not available. It is initialized to EXIT_FAILURE, but the caller may set it to some other value. */ extern int xalloc_exit_failure; /* If this pointer is non-zero, run the specified function upon each allocation failure. It is initialized to zero. */ extern void (*xalloc_fail_func) (); /* If XALLOC_FAIL_FUNC is undefined or a function that returns, this message must be non-NULL. It is translated via gettext. The default value is "Memory exhausted". */ extern char *const xalloc_msg_memory_exhausted; void *xmalloc PARAMS ((size_t n)); void *xcalloc PARAMS ((size_t n, size_t s)); void *xrealloc PARAMS ((void *p, size_t n)); # 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) \ ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_bytes))) #endif /* !XALLOC_H_ */ tar-1.13/lib/xstrtol.h0000444000176300016070000000323506706514104010354 #ifndef XSTRTOL_H_ # define XSTRTOL_H_ 1 # if HAVE_INTTYPES_H # include /* for uintmax_t */ # endif # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif # endif # ifndef _STRTOL_ERROR enum strtol_error { LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW }; typedef enum strtol_error strtol_error; # endif # define _DECLARE_XSTRTOL(name, type) \ strtol_error \ name PARAMS ((const char *s, char **ptr, int base, \ type *val, const char *valid_suffixes)); _DECLARE_XSTRTOL (xstrtol, long int) _DECLARE_XSTRTOL (xstrtoul, unsigned long int) _DECLARE_XSTRTOL (xstrtoumax, uintmax_t) # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \ do \ { \ switch ((Err)) \ { \ case LONGINT_OK: \ abort (); \ \ case LONGINT_INVALID: \ error ((Exit_code), 0, "invalid %s `%s'", \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_INVALID_SUFFIX_CHAR: \ error ((Exit_code), 0, "invalid character following %s `%s'", \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_OVERFLOW: \ error ((Exit_code), 0, "%s `%s' too large", \ (Argument_type_string), (Str)); \ break; \ } \ } \ while (0) # define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) \ _STRTOL_ERROR (2, Str, Argument_type_string, Err) # define STRTOL_FAIL_WARN(Str, Argument_type_string, Err) \ _STRTOL_ERROR (0, Str, Argument_type_string, Err) #endif /* not XSTRTOL_H_ */ tar-1.13/lib/mktime.c0000444000176300016070000003541606662554744010143 /* Convert a `struct tm' to a time_t value. Copyright (C) 1993, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert (eggert@twinsun.com). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Define this to have a standalone program to test this implementation of mktime. */ /* #define DEBUG 1 */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define HAVE_LIMITS_H 1 # define STDC_HEADERS 1 #endif /* Assume that leap seconds are possible, unless told otherwise. If the host has a `zic' command with a `-L leapsecondfilename' option, then it supports leap seconds; otherwise it probably doesn't. */ #ifndef LEAP_SECONDS_POSSIBLE # define LEAP_SECONDS_POSSIBLE 1 #endif #include /* Some systems define `time_t' here. */ #include #if HAVE_LIMITS_H # include #endif #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 */ #ifndef __P # if defined __GNUC__ || (defined __STDC__ && __STDC__) # define __P(args) args # else # define __P(args) () # endif /* GCC. */ #endif /* Not __P. */ #ifndef CHAR_BIT # define CHAR_BIT 8 #endif /* 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. It is necessary at least when t == time_t. */ #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0)) #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t))) #ifndef INT_MIN # define INT_MIN TYPE_MINIMUM (int) #endif #ifndef INT_MAX # define INT_MAX TYPE_MAXIMUM (int) #endif #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 #define TM_YEAR_BASE 1900 #define EPOCH_YEAR 1970 #ifndef __isleap /* Nonzero if YEAR is a leap year (every 4 years, except every 100th isn't, and every 400th is). */ # define __isleap(year) \ ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) #endif /* How many days come before each month (0-12). */ const unsigned short int __mon_yday[2][13] = { /* Normal years. */ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, /* Leap years. */ { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } }; #ifdef _LIBC # define my_mktime_localtime_r __localtime_r #else /* If we're a mktime substitute in a GNU program, then prefer localtime to localtime_r, since many localtime_r implementations are buggy. */ static struct tm * my_mktime_localtime_r (const time_t *t, struct tm *tp) { struct tm *l = localtime (t); if (! l) return 0; *tp = *l; return tp; } #endif /* ! _LIBC */ /* Yield the difference between (YEAR-YDAY HOUR:MIN:SEC) and (*TP), measured in seconds, ignoring leap seconds. YEAR uses the same numbering as TM->tm_year. All values are in range, except possibly YEAR. If TP is null, return a nonzero value. 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, const struct tm *tp) { if (!tp) return 1; else { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow. time_t overflow is OK, since only the low order bits of the correct time_t answer are needed. Don't convert to time_t until after all divisions are done, since time_t might be unsigned. */ int a4 = (year >> 2) + (TM_YEAR_BASE >> 2) - ! (year & 3); int b4 = (tp->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (tp->tm_year & 3); int a100 = a4 / 25 - (a4 % 25 < 0); int b100 = b4 / 25 - (b4 % 25 < 0); int a400 = a100 >> 2; int b400 = b100 >> 2; int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); time_t years = year - (time_t) tp->tm_year; time_t days = (365 * years + intervening_leap_days + (yday - tp->tm_yday)); return (60 * (60 * (24 * days + (hour - tp->tm_hour)) + (min - tp->tm_min)) + (sec - tp->tm_sec)); } } /* Use CONVERT to convert *T to a broken down time in *TP. If *T is out of range for conversion, adjust it so that it is the nearest in-range value and then convert that. */ static struct tm * ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), time_t *t, struct tm *tp) { struct tm *r; if (! (r = (*convert) (t, tp)) && *t) { time_t bad = *t; time_t ok = 0; struct tm tm; /* BAD is a known unconvertible time_t, and OK is a known good one. Use binary search to narrow the range between BAD and OK until they differ by 1. */ while (bad != ok + (bad < 0 ? -1 : 1)) { time_t mid = *t = (bad < 0 ? bad + ((ok - bad) >> 1) : ok + ((bad - ok) >> 1)); if ((r = (*convert) (t, tp))) { tm = *r; ok = mid; } else bad = mid; } if (!r && ok) { /* The last conversion attempt failed; revert to the most recent successful attempt. */ *t = ok; *tp = tm; r = tp; } } return r; } /* Convert *TP to a time_t value, inverting the monotonic and mostly-unit-linear conversion function CONVERT. Use *OFFSET to keep track of a guess at the offset of the result, compared to what the result would be for UTC without leap seconds. If *OFFSET's guess is correct, only one CONVERT call is needed. */ time_t __mktime_internal (struct tm *tp, struct tm *(*convert) (const time_t *, struct tm *), time_t *offset) { time_t t, dt, t0, t1, t2; struct tm tm; /* The maximum number of probes (calls to CONVERT) should be enough to handle any combinations of time zone rule changes, solar time, leap seconds, and oscillations around a spring-forward gap. POSIX.1 prohibits leap seconds, but some hosts have them anyway. */ int remaining_probes = 6; /* Time requested. Copy it in case CONVERT modifies *TP; this can occur if TP is localtime's returned value and CONVERT is localtime. */ int sec = tp->tm_sec; int min = tp->tm_min; int hour = tp->tm_hour; int mday = tp->tm_mday; int mon = tp->tm_mon; int year_requested = tp->tm_year; int isdst = tp->tm_isdst; /* Ensure that mon is in range, and set year accordingly. */ int mon_remainder = mon % 12; int negative_mon_remainder = mon_remainder < 0; int mon_years = mon / 12 - negative_mon_remainder; int year = year_requested + mon_years; /* The other values need not be in range: the remaining code handles minor overflows correctly, assuming int and time_t arithmetic wraps around. Major overflows are caught at the end. */ /* Calculate day of year from year, month, and day of month. The result need not be in range. */ int yday = ((__mon_yday[__isleap (year + TM_YEAR_BASE)] [mon_remainder + 12 * negative_mon_remainder]) + mday - 1); int sec_requested = sec; #if LEAP_SECONDS_POSSIBLE /* Handle out-of-range seconds specially, since ydhms_tm_diff assumes every minute has 60 seconds. */ if (sec < 0) sec = 0; if (59 < sec) sec = 59; #endif /* Invert CONVERT by probing. First assume the same offset as last time. Then repeatedly use the error to improve the guess. */ tm.tm_year = EPOCH_YEAR - TM_YEAR_BASE; tm.tm_yday = tm.tm_hour = tm.tm_min = tm.tm_sec = 0; t0 = ydhms_tm_diff (year, yday, hour, min, sec, &tm); for (t = t1 = t2 = t0 + *offset; (dt = ydhms_tm_diff (year, yday, hour, min, sec, ranged_convert (convert, &t, &tm))); t1 = t2, t2 = t, t += dt) if (t == t1 && t != t2 && (isdst < 0 || tm.tm_isdst < 0 || (isdst != 0) != (tm.tm_isdst != 0))) /* We can't possibly find a match, as we are oscillating between two values. The requested time probably falls within a spring-forward gap of size DT. Follow the common practice in this case, which is to return a time that is DT away from the requested time, preferring a time whose tm_isdst differs from the requested value. In practice, this is more useful than returning -1. */ break; else if (--remaining_probes == 0) return -1; /* If we have a match, check whether tm.tm_isdst has the requested value, if any. */ if (dt == 0 && isdst != tm.tm_isdst && 0 <= isdst && 0 <= tm.tm_isdst) { /* tm.tm_isdst has the wrong value. Look for a neighboring time with the right value, and use its UTC offset. Heuristic: probe the previous three calendar quarters (approximately), looking for the desired isdst. This isn't perfect, but it's good enough in practice. */ int quarter = 7889238; /* seconds per average 1/4 Gregorian year */ int i; /* If we're too close to the time_t limit, look in future quarters. */ if (t < TIME_T_MIN + 3 * quarter) quarter = -quarter; for (i = 1; i <= 3; i++) { time_t ot = t - i * quarter; struct tm otm; ranged_convert (convert, &ot, &otm); if (otm.tm_isdst == isdst) { /* We found the desired tm_isdst. Extrapolate back to the desired time. */ t = ot + ydhms_tm_diff (year, yday, hour, min, sec, &otm); ranged_convert (convert, &t, &tm); break; } } } *offset = t - t0; #if LEAP_SECONDS_POSSIBLE if (sec_requested != tm.tm_sec) { /* Adjust time to reflect the tm_sec requested, not the normalized value. Also, repair any damage from a false match due to a leap second. */ t += sec_requested - sec + (sec == 0 && tm.tm_sec == 60); if (! (*convert) (&t, &tm)) return -1; } #endif if (TIME_T_MAX / INT_MAX / 366 / 24 / 60 / 60 < 3) { /* time_t isn't large enough to rule out overflows in ydhms_tm_diff, so check for major overflows. A gross check suffices, since if t has overflowed, it is off by a multiple of TIME_T_MAX - TIME_T_MIN + 1. So ignore any component of the difference that is bounded by a small value. */ double dyear = (double) year_requested + mon_years - tm.tm_year; double dday = 366 * dyear + mday; double dsec = 60 * (60 * (24 * dday + hour) + min) + sec_requested; /* On Irix4.0.5 cc, dividing TIME_T_MIN by 3 does not produce correct results, ie., it erroneously gives a positive value of 715827882. Setting a variable first then doing math on it seems to work. (ghazi@caip.rutgers.edu) */ const time_t time_t_max = TIME_T_MAX; const time_t time_t_min = TIME_T_MIN; if (time_t_max / 3 - time_t_min / 3 < (dsec < 0 ? - dsec : dsec)) return -1; } *tp = tm; return t; } static time_t localtime_offset; /* Convert *TP to a time_t value. */ time_t mktime (tp) struct tm *tp; { #ifdef _LIBC /* POSIX.1 8.1.1 requires that whenever mktime() is called, the time zone names contained in the external variable `tzname' shall be set as if the tzset() function had been called. */ __tzset (); #endif return __mktime_internal (tp, my_mktime_localtime_r, &localtime_offset); } #ifdef weak_alias weak_alias (mktime, timelocal) #endif #if DEBUG static int not_equal_tm (a, b) struct tm *a; struct tm *b; { return ((a->tm_sec ^ b->tm_sec) | (a->tm_min ^ b->tm_min) | (a->tm_hour ^ b->tm_hour) | (a->tm_mday ^ b->tm_mday) | (a->tm_mon ^ b->tm_mon) | (a->tm_year ^ b->tm_year) | (a->tm_mday ^ b->tm_mday) | (a->tm_yday ^ b->tm_yday) | (a->tm_isdst ^ b->tm_isdst)); } static void print_tm (tp) struct tm *tp; { if (tp) printf ("%04d-%02d-%02d %02d:%02d:%02d yday %03d wday %d isdst %d", tp->tm_year + TM_YEAR_BASE, tp->tm_mon + 1, tp->tm_mday, tp->tm_hour, tp->tm_min, tp->tm_sec, tp->tm_yday, tp->tm_wday, tp->tm_isdst); else printf ("0"); } static int check_result (tk, tmk, tl, lt) time_t tk; struct tm tmk; time_t tl; struct tm *lt; { if (tk != tl || !lt || not_equal_tm (&tmk, lt)) { printf ("mktime ("); print_tm (&tmk); printf (")\nyields ("); print_tm (lt); printf (") == %ld, should be %ld\n", (long) tl, (long) tk); return 1; } return 0; } int main (argc, argv) int argc; char **argv; { int status = 0; struct tm tm, tmk, tml; struct tm *lt; time_t tk, tl; char trailer; if ((argc == 3 || argc == 4) && (sscanf (argv[1], "%d-%d-%d%c", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &trailer) == 3) && (sscanf (argv[2], "%d:%d:%d%c", &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &trailer) == 3)) { tm.tm_year -= TM_YEAR_BASE; tm.tm_mon--; tm.tm_isdst = argc == 3 ? -1 : atoi (argv[3]); tmk = tm; tl = mktime (&tmk); lt = localtime (&tl); if (lt) { tml = *lt; lt = &tml; } printf ("mktime returns %ld == ", (long) tl); print_tm (&tmk); printf ("\n"); status = check_result (tl, tmk, tl, lt); } else if (argc == 4 || (argc == 5 && strcmp (argv[4], "-") == 0)) { time_t from = atol (argv[1]); time_t by = atol (argv[2]); time_t to = atol (argv[3]); if (argc == 4) for (tl = from; tl <= to; tl += by) { lt = localtime (&tl); if (lt) { tmk = tml = *lt; tk = mktime (&tmk); status |= check_result (tk, tmk, tl, tml); } else { printf ("localtime (%ld) yields 0\n", (long) tl); status = 1; } } else for (tl = from; tl <= to; tl += by) { /* Null benchmark. */ lt = localtime (&tl); if (lt) { tmk = tml = *lt; tk = tl; status |= check_result (tk, tmk, tl, tml); } else { printf ("localtime (%ld) yields 0\n", (long) tl); status = 1; } } } else 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", argv[0], argv[0], argv[0]); return status; } #endif /* DEBUG */ /* Local Variables: compile-command: "gcc -DDEBUG -DHAVE_LIMITS_H -DSTDC_HEADERS -Wall -W -O -g mktime.c -o mktime" End: */ tar-1.13/lib/stpcpy.c0000444000176300016070000000264006632643613010157 /* stpcpy.c -- copy a string and return pointer to end of new string Copyright (C) 1992, 1995, 1997, 1998 Free Software Foundation, Inc. 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. 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #undef __stpcpy #undef stpcpy #ifndef weak_alias # define __stpcpy stpcpy #endif /* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ char * __stpcpy (char *dest, const char *src) { register char *d = dest; register const char *s = src; do *d++ = *s; while (*s++ != '\0'); return d - 1; } #ifdef weak_alias weak_alias (__stpcpy, stpcpy) #endif tar-1.13/intl/0000777000176300017630000000000006741044406006754 5tar-1.13/intl/ChangeLog0000444000176300016070000010504206606172172010441 1998-10-05 Jim Meyering * Makefile.in (uninstall): Uninstall only if the current package is gettext. From Akim Demaille. 1998-04-29 Ulrich Drepper * intl/localealias.c (read_alias_file): Use unsigned char for local variables. Remove unused variable tp. * intl/l10nflist.c (_nl_normalize_codeset): Use unsigned char * for type of codeset. For loosing Solaris systems. * intl/loadinfo.h: Adapt prototype of _nl_normalize_codeset. * intl/bindtextdom.c (BINDTEXTDOMAIN): Don't define local variable len if not needed. Patches by Jim Meyering. 1998-04-28 Ulrich Drepper * loadmsgcat.c (_nl_load_domain): Don't assign the element use_mmap if mmap is not supported. * hash-string.h: Don't include . 1998-04-27 Ulrich Drepper * textdomain.c: Use strdup is available. * localealias.c: Define HAVE_MEMPCPY so that we can use this function. Define and use semapahores to protect modfication of global objects when compiling for glibc. Add code to allow freeing alias table. * l10nflist.c: Don't assume stpcpy not being a macro. * gettextP.h: Define internal_function macri if not already done. Use glibc byte-swap macros instead of defining SWAP when compiled for glibc. (struct loaded_domain): Add elements to allow unloading. * Makefile.in (distclean): Don't remove libintl.h here. * bindtextdomain.c: Carry over changes from glibc. Use strdup if available. * dcgettext.c: Don't assume stpcpy not being a macro. Mark internal functions. Add memory freeing code for glibc. * dgettext.c: Update copyright. * explodename.c: Include stdlib.h and string.h only if they exist. Use strings.h eventually. * finddomain.c: Mark internal functions. Use strdup if available. Add memory freeing code for glibc. 1997-10-10 20:00 Ulrich Drepper * libgettext.h: Fix dummy textdomain and bindtextdomain macros. They should return reasonable values. Reported by Tom Tromey . 1997-09-16 03:33 Ulrich Drepper * libgettext.h: Define PARAMS also to `args' if __cplusplus is defined. * intlh.inst.in: Likewise. Reported by Jean-Marc Lasgouttes . * libintl.glibc: Update from current glibc version. 1997-09-06 02:10 Ulrich Drepper * intlh.inst.in: Reformat copyright. 1997-08-19 15:22 Ulrich Drepper * dcgettext.c (DCGETTEXT): Remove wrong comment. 1997-08-16 00:13 Ulrich Drepper * Makefile.in (install-data): Don't change directory to install. 1997-08-01 14:30 Ulrich Drepper * cat-compat.c: Fix copyright. * localealias.c: Don't define strchr unless !HAVE_STRCHR. * loadmsgcat.c: Update copyright. Fix typos. * l10nflist.c: Don't define strchr unless !HAVE_STRCHR. (_nl_make_l10nflist): Handle sponsor and revision correctly. * gettext.c: Update copyright. * gettext.h: Likewise. * hash-string.h: Likewise. * finddomain.c: Remoave dead code. Define strchr only if !HAVE_STRCHR. * explodename.c: Include . * explodename.c: Reformat copyright text. (_nl_explode_name): Fix typo. * dcgettext.c: Define and use __set_errno. (guess_category_value): Don't use setlocale if HAVE_LC_MESSAGES is not defined. * bindtextdom.c: Pretty printing. 1997-05-01 02:25 Ulrich Drepper * dcgettext.c (guess_category_value): Don't depend on HAVE_LC_MESSAGES. We don't need the macro here. Patch by Bruno Haible . * cat-compat.c (textdomain): DoN't refer to HAVE_SETLOCALE_NULL macro. Instead use HAVE_LOCALE_NULL and define it when using glibc, as in dcgettext.c. Patch by Bruno Haible . * Makefile.in (CPPFLAGS): New variable. Reported by Franc,ois Pinard. Mon Mar 10 06:51:17 1997 Ulrich Drepper * Makefile.in: Implement handling of libtool. * gettextP.h: Change data structures for use of generic lowlevel i18n file handling. Wed Dec 4 20:21:18 1996 Ulrich Drepper * textdomain.c: Put parentheses around arguments of memcpy macro definition. * localealias.c: Likewise. * l10nflist.c: Likewise. * finddomain.c: Likewise. * bindtextdom.c: Likewise. Reported by Thomas Esken. Mon Nov 25 22:57:51 1996 Ulrich Drepper * textdomain.c: Move definition of `memcpy` macro to right position. Fri Nov 22 04:01:58 1996 Ulrich Drepper * finddomain.c [!HAVE_STRING_H && !_LIBC]: Define memcpy using bcopy if not already defined. Reported by Thomas Esken. * bindtextdom.c: Likewise. * l10nflist.c: Likewise. * localealias.c: Likewise. * textdomain.c: Likewise. Tue Oct 29 11:10:27 1996 Ulrich Drepper * Makefile.in (libdir): Change to use exec_prefix instead of prefix. Reported by Knut-HåvardAksnes . Sat Aug 31 03:07:09 1996 Ulrich Drepper * l10nflist.c (_nl_normalize_codeset): We convert to lower case, so don't prepend uppercase `ISO' for only numeric arg. Fri Jul 19 00:15:46 1996 Ulrich Drepper * l10nflist.c: Move inclusion of argz.h, ctype.h, stdlib.h after definition of _GNU_SOURCE. Patch by Roland McGrath. * Makefile.in (uninstall): Fix another bug with `for' loop and empty arguments. Patch by Jim Meyering. Correct name os uninstalled files: no intl- prefix anymore. * Makefile.in (install-data): Again work around shells which cannot handle mpty for list. Reported by Jim Meyering. Sat Jul 13 18:11:35 1996 Ulrich Drepper * Makefile.in (install): Split goal. Now depend on install-exec and install-data. (install-exec, install-data): New goals. Created from former install goal. Reported by Karl Berry. Sat Jun 22 04:58:14 1996 Ulrich Drepper * Makefile.in (MKINSTALLDIRS): New variable. Path to mkinstalldirs script. (install): use MKINSTALLDIRS variable or if the script is not present try to find it in the $top_scrdir). Wed Jun 19 02:56:56 1996 Ulrich Drepper * l10nflist.c: Linux libc *partly* includes the argz_* functions. Grr. Work around by renaming the static version and use macros for renaming. Tue Jun 18 20:11:17 1996 Ulrich Drepper * l10nflist.c: Correct presence test macros of __argz_* functions. * l10nflist.c: Include based on test of it instead when __argz_* functions are available. Reported by Andreas Schwab. Thu Jun 13 15:17:44 1996 Ulrich Drepper * explodename.c, l10nflist.c: Define NULL for dumb systems. Tue Jun 11 17:05:13 1996 Ulrich Drepper * intlh.inst.in, libgettext.h (dcgettext): Rename local variable result to __result to prevent name clash. * l10nflist.c, localealias.c, dcgettext.c: Define _GNU_SOURCE to get prototype for stpcpy and strcasecmp. * intlh.inst.in, libgettext.h: Move declaration of `_nl_msg_cat_cntr' outside __extension__ block to prevent warning from gcc's -Wnested-extern option. Fri Jun 7 01:58:00 1996 Ulrich Drepper * Makefile.in (install): Remove comment. Thu Jun 6 17:28:17 1996 Ulrich Drepper * Makefile.in (install): Work around for another Buglix stupidity. Always use an `else' close for `if's. Reported by Nelson Beebe. * Makefile.in (intlh.inst): Correct typo in phony rule. Reported by Nelson Beebe. Thu Jun 6 01:49:52 1996 Ulrich Drepper * dcgettext.c (read_alias_file): Rename variable alloca_list to block_list as the macro calls assume. Patch by Eric Backus. * localealias.c [!HAVE_ALLOCA]: Define alloca as macro using malloc. (read_alias_file): Rename varriabe alloca_list to block_list as the macro calls assume. Patch by Eric Backus. * l10nflist.c: Correct conditional for inclusion. Reported by Roland McGrath. * Makefile.in (all): Depend on all-@USE_INCLUDED_LIBINTL@, not all-@USE_NLS@. * Makefile.in (install): intlh.inst comes from local dir, not $(srcdir). * Makefile.in (intlh.inst): Special handling of this goal. If used in gettext, this is really a rul to construct this file. If used in any other package it is defined as a .PHONY rule with empty body. * finddomain.c: Extract locale file information handling into l10nfile.c. Rename local stpcpy__ function to stpcpy. * dcgettext.c (stpcpy): Add local definition. * l10nflist.c: Solve some portability problems. Patches partly by Thomas Esken. Add local definition of stpcpy. Tue Jun 4 02:47:49 1996 Ulrich Drepper * intlh.inst.in: Don't depend including on HAVE_LOCALE_H. Instead configure must rewrite this fiile depending on the result of the configure run. * Makefile.in (install): libintl.inst is now called intlh.inst. Add rules for updating intlh.inst from intlh.inst.in. * libintl.inst: Renamed to intlh.inst.in. * localealias.c, dcgettext.c [__GNUC__]: Define HAVE_ALLOCA to 1 because gcc has __buitlin_alloca. Reported by Roland McGrath. Mon Jun 3 00:32:16 1996 Ulrich Drepper * Makefile.in (installcheck): New goal to fulfill needs of automake's distcheck. * Makefile.in (install): Reorder commands so that VERSION is found. * Makefile.in (gettextsrcdir): Now use subdirectory intl/ in @datadir@/gettext. (COMSRCS): Add l10nfile.c. (OBJECTS): Add l10nfile.o. (DISTFILES): Rename to DISTFILE.normal. Remove $(DISTFILES.common). (DISTFILE.gettext): Remove $(DISTFILES.common). (all-gettext): Remove goal. (install): If $(PACKAGE) = gettext install, otherwose do nothing. No package but gettext itself should install libintl.h + headers. (dist): Extend goal to work for gettext, too. (dist-gettext): Remove goal. * dcgettext.c [!HAVE_ALLOCA]: Define macro alloca by using malloc. Sun Jun 2 17:33:06 1996 Ulrich Drepper * loadmsgcat.c (_nl_load_domain): Parameter is now comes from find_l10nfile. Sat Jun 1 02:23:03 1996 Ulrich Drepper * l10nflist.c (__argz_next): Add definition. * dcgettext.c [!HAVE_ALLOCA]: Add code for handling missing alloca code. Use new l10nfile handling. * localealias.c [!HAVE_ALLOCA]: Add code for handling missing alloca code. * l10nflist.c: Initial revision. Tue Apr 2 18:51:18 1996 Ulrich Drepper * Makefile.in (all-gettext): New goal. Same as all-yes. Thu Mar 28 23:01:22 1996 Karl Eichwalder * Makefile.in (gettextsrcdir): Define using @datadir@. Tue Mar 26 12:39:14 1996 Ulrich Drepper * finddomain.c: Include . Reported by Roland McGrath. Sat Mar 23 02:00:35 1996 Ulrich Drepper * finddomain.c (stpcpy): Rename to stpcpy__ to prevent clashing with external declaration. Sat Mar 2 00:47:09 1996 Ulrich Drepper * Makefile.in (all-no): Rename from all_no. Sat Feb 17 00:25:59 1996 Ulrich Drepper * gettextP.h [loaded_domain]: Array `successor' must now contain up to 63 elements (because of codeset name normalization). * finddomain.c: Implement codeset name normalization. Thu Feb 15 04:39:09 1996 Ulrich Drepper * Makefile.in (all): Define to `all-@USE_NLS@'. (all-yes, all_no): New goals. `all-no' is noop, `all-yes' is former all. Mon Jan 15 21:46:01 1996 Howard Gayle * localealias.c (alias_compare): Increment string pointers in loop of strcasecmp replacement. Fri Dec 29 21:16:34 1995 Ulrich Drepper * Makefile.in (install-src): Who commented this goal out ? :-) Fri Dec 29 15:08:16 1995 Ulrich Drepper * dcgettext.c (DCGETTEXT): Save `errno'. Failing system calls should not effect it because a missing catalog is no error. Reported by Harald Knig . Tue Dec 19 22:09:13 1995 Ulrich Drepper * Makefile.in (Makefile): Explicitly use $(SHELL) for running shell scripts. Fri Dec 15 17:34:59 1995 Andreas Schwab * Makefile.in (install-src): Only install library and header when we use the own implementation. Don't do it when using the system's gettext or catgets functions. * dcgettext.c (find_msg): Must not swap domain->hash_size here. Sat Dec 9 16:24:37 1995 Ulrich Drepper * localealias.c, libintl.inst, libgettext.h, hash-string.h, gettextP.h, finddomain.c, dcgettext.c, cat-compat.c: Use PARAMS instead of __P. Suggested by Roland McGrath. Tue Dec 5 11:39:14 1995 Larry Schwimmer * libgettext.h: Use `#if !defined (_LIBINTL_H)' instead of `#if !_LIBINTL_H' because Solaris defines _LIBINTL_H as empty. Mon Dec 4 15:42:07 1995 Ulrich Drepper * Makefile.in (install-src): Install libintl.inst instead of libintl.h.install. Sat Dec 2 22:51:38 1995 Marcus Daniels * cat-compat.c (textdomain): Reverse order in which files are tried you load. First try local file, when this failed absolute path. Wed Nov 29 02:03:53 1995 Nelson H. F. Beebe * cat-compat.c (bindtextdomain): Add missing { }. Sun Nov 26 18:21:41 1995 Ulrich Drepper * libintl.inst: Add missing __P definition. Reported by Nelson Beebe. * Makefile.in: Add dummy `all' and `dvi' goals. Reported by Tom Tromey. Sat Nov 25 16:12:01 1995 Franc,ois Pinard * hash-string.h: Capitalize arguments of macros. Sat Nov 25 12:01:36 1995 Ulrich Drepper * Makefile.in (DISTFILES): Prevent files names longer than 13 characters. libintl.h.glibc->libintl.glibc, libintl.h.install->libintl.inst. Reported by Joshua R. Poulson. Sat Nov 25 11:31:12 1995 Eric Backus * dcgettext.c: Fix bug in preprocessor conditionals. Sat Nov 25 02:35:27 1995 Nelson H. F. Beebe * libgettext.h: Solaris cc does not understand #if !SYMBOL1 && !SYMBOL2. Sad but true. Thu Nov 23 16:22:14 1995 Ulrich Drepper * hash-string.h (hash_string): Fix for machine with >32 bit `unsigned long's. * dcgettext.c (DCGETTEXT): Fix horrible bug in loop for alternative translation. Thu Nov 23 01:45:29 1995 Ulrich Drepper * po2tbl.sed.in, linux-msg.sed, xopen-msg.sed: Some further simplifications in message number generation. Mon Nov 20 21:08:43 1995 Ulrich Drepper * libintl.h.glibc: Use __const instead of const in prototypes. * Makefile.in (install-src): Install libintl.h.install instead of libintl.h. This is a stripped-down version. Suggested by Peter Miller. * libintl.h.install, libintl.h.glibc: Initial revision. * localealias.c (_nl_expand_alias, read_alias_file): Protect prototypes in type casts by __P. Tue Nov 14 16:43:58 1995 Ulrich Drepper * hash-string.h: Correct prototype for hash_string. Sun Nov 12 12:42:30 1995 Ulrich Drepper * hash-string.h (hash_string): Add prototype. * gettextP.h: Fix copyright. (SWAP): Add prototype. Wed Nov 8 22:56:33 1995 Ulrich Drepper * localealias.c (read_alias_file): Forgot sizeof. Avoid calling *printf function. This introduces a big overhead. Patch by Roland McGrath. Tue Nov 7 14:21:08 1995 Ulrich Drepper * finddomain.c, cat-compat.c: Wrong indentation in #if for stpcpy. * finddomain.c (stpcpy): Define substitution function local. The macro was to flaky. * cat-compat.c: Fix typo. * xopen-msg.sed, linux-msg.sed: While bringing message number to right place only accept digits. * linux-msg.sed, xopen-msg.sed: Now that the counter does not have leading 0s we don't need to remove them. Reported by Marcus Daniels. * Makefile.in (../po/cat-id-tbl.o): Use $(top_srdir) in dependency. Reported by Marcus Daniels. * cat-compat.c: (stpcpy) [!_LIBC && !HAVE_STPCPY]: Define replacement. Generally cleanup using #if instead of #ifndef. * Makefile.in: Correct typos in comment. By Franc,ois Pinard. Mon Nov 6 00:27:02 1995 Ulrich Drepper * Makefile.in (install-src): Don't install libintl.h and libintl.a if we use an available gettext implementation. Sun Nov 5 22:02:08 1995 Ulrich Drepper * libgettext.h: Fix typo: HAVE_CATGETTS -> HAVE_CATGETS. Reported by Franc,ois Pinard. * libgettext.h: Use #if instead of #ifdef/#ifndef. * finddomain.c: Comments describing what has to be done should start with FIXME. Sun Nov 5 19:38:01 1995 Ulrich Drepper * Makefile.in (DISTFILES): Split. Use DISTFILES with normal meaning. DISTFILES.common names the files common to both dist goals. DISTFILES.gettext are the files only distributed in GNU gettext. Sun Nov 5 17:32:54 1995 Ulrich Drepper * dcgettext.c (DCGETTEXT): Correct searching in derived locales. This was necessary since a change in _nl_find_msg several weeks ago. I really don't know this is still not fixed. Sun Nov 5 12:43:12 1995 Ulrich Drepper * loadmsgcat.c (_nl_load_domain): Test for FILENAME == NULL. This might mark a special condition. * finddomain.c (make_entry_rec): Don't make illegal entry as decided. * Makefile.in (dist): Suppress error message when ln failed. Get files from $(srcdir) explicitly. * libgettext.h (gettext_const): Rename to gettext_noop. Fri Nov 3 07:36:50 1995 Ulrich Drepper * finddomain.c (make_entry_rec): Protect against wrong locale names by testing mask. * libgettext.h (gettext_const): Add macro definition. Capitalize macro arguments. Thu Nov 2 23:15:51 1995 Ulrich Drepper * finddomain.c (_nl_find_domain): Test for pointer != NULL before accessing value. Reported by Tom Tromey. * gettext.c (NULL): Define as (void*)0 instad of 0. Reported by Franc,ois Pinard. Mon Oct 30 21:28:52 1995 Ulrich Drepper * po2tbl.sed.in: Serious typo bug fixed by Jim Meyering. Sat Oct 28 23:20:47 1995 Ulrich Drepper * libgettext.h: Disable dcgettext optimization for Solaris 2.3. * localealias.c (alias_compare): Peter Miller reported that tolower in some systems is even dumber than I thought. Protect call by `isupper'. Fri Oct 27 22:22:51 1995 Ulrich Drepper * Makefile.in (libdir, includedir): New variables. (install-src): Install libintl.a and libintl.h in correct dirs. Fri Oct 27 22:07:29 1995 Ulrich Drepper * Makefile.in (SOURCES): Fix typo: intrl.compat.c -> intl-compat.c. * po2tbl.sed.in: Patch for buggy SEDs by Christian von Roques. * localealias.c: Fix typo and superflous test. Reported by Christian von Roques. Fri Oct 6 11:52:05 1995 Ulrich Drepper * finddomain.c (_nl_find_domain): Correct some remainder from the pre-CEN syntax. Now we don't have a constant number of successors anymore. Wed Sep 27 21:41:13 1995 Ulrich Drepper * Makefile.in (DISTFILES): Add libintl.h.glibc. * Makefile.in (dist-libc): Add goal for packing sources for glibc. (COMSRCS, COMHDRS): Splitted to separate sources shared with glibc. * loadmsgcat.c: Forget to continue #if line. * localealias.c: [_LIBC]: Rename strcasecmp to __strcasecmp to keep ANSI C name space clean. * dcgettext.c, finddomain.c: Better comment to last change. * loadmsgcat.c: [_LIBC]: Rename fstat, open, close, read, mmap, and munmap to __fstat, __open, __close, __read, __mmap, and __munmap resp to keep ANSI C name space clean. * finddomain.c: [_LIBC]: Rename stpcpy to __stpcpy to keep ANSI C name space clean. * dcgettext.c: [_LIBC]: Rename getced and stpcpy to __getcwd and __stpcpy resp to keep ANSI C name space clean. * libgettext.h: Include sys/types.h for those old SysV systems out there. Reported by Francesco Potorti`. * loadmsgcat.c (use_mmap): Define if compiled for glibc. * bindtextdom.c: Include all those standard headers unconditionally if _LIBC is defined. * finddomain.c: Fix 2 times defiend -> defined. * textdomain.c: Include libintl.h instead of libgettext.h when compiling for glibc. Include all those standard headers unconditionally if _LIBC is defined. * localealias.c, loadmsgcat.c: Prepare to be compiled in glibc. * gettext.c: Include libintl.h instead of libgettext.h when compiling for glibc. Get NULL from stddef.h if we compile for glibc. * finddomain.c: Include libintl.h instead of libgettext.h when compiling for glibc. Include all those standard headers unconditionally if _LIBC is defined. * dcgettext.c: Include all those standard headers unconditionally if _LIBC is defined. * dgettext.c: If compiled in glibc include libintl.h instead of libgettext.h. (locale.h): Don't rely on HAVE_LOCALE_H when compiling for glibc. * dcgettext.c: If compiled in glibc include libintl.h instead of libgettext.h. (getcwd): Don't rely on HAVE_GETCWD when compiling for glibc. * bindtextdom.c: If compiled in glibc include libintl.h instead of libgettext.h. Mon Sep 25 22:23:06 1995 Ulrich Drepper * localealias.c (_nl_expand_alias): Don't call bsearch if NMAP <= 0. Reported by Marcus Daniels. * cat-compat.c (bindtextdomain): String used in putenv must not be recycled. Reported by Marcus Daniels. * libgettext.h (__USE_GNU_GETTEXT): Additional symbol to signal that we use GNU gettext library. * cat-compat.c (bindtextdomain): Fix bug with the strange stpcpy replacement. Reported by Nelson Beebe. Sat Sep 23 08:23:51 1995 Ulrich Drepper * cat-compat.c: Include for stpcpy prototype. * localealias.c (read_alias_file): While expand strdup code temporary variable `cp' hided higher level variable with same name. Rename to `tp'. * textdomain.c (textdomain): Avoid warning by using temporary variable in strdup code. * finddomain.c (_nl_find_domain): Remove unused variable `application'. Thu Sep 21 15:51:44 1995 Ulrich Drepper * localealias.c (alias_compare): Use strcasecmp() only if available. Else use implementation in place. * intl-compat.c: Wrapper functions now call *__ functions instead of __*. * libgettext.h: Declare prototypes for *__ functions instead for __*. * cat-compat.c, loadmsgcat.c: Don't use xmalloc, xstrdup, and stpcpy. These functions are not part of the standard libc and so prevent libintl.a from being used standalone. * bindtextdom.c: Don't use xmalloc, xstrdup, and stpcpy. These functions are not part of the standard libc and so prevent libintl.a from being used standalone. Rename to bindtextdomain__ if not used in GNU C Library. * dgettext.c: Rename function to dgettext__ if not used in GNU C Library. * gettext.c: Don't use xmalloc, xstrdup, and stpcpy. These functions are not part of the standard libc and so prevent libintl.a from being used standalone. Functions now called gettext__ if not used in GNU C Library. * dcgettext.c, localealias.c, textdomain.c, finddomain.c: Don't use xmalloc, xstrdup, and stpcpy. These functions are not part of the standard libc and so prevent libintl.a from being used standalone. Sun Sep 17 23:14:49 1995 Ulrich Drepper * finddomain.c: Correct some bugs in handling of CEN standard locale definitions. Thu Sep 7 01:49:28 1995 Ulrich Drepper * finddomain.c: Implement CEN syntax. * gettextP.h (loaded_domain): Extend number of successors to 31. Sat Aug 19 19:25:29 1995 Ulrich Drepper * Makefile.in (aliaspath): Remove path to X11 locale dir. * Makefile.in: Make install-src depend on install. This helps gettext to install the sources and other packages can use the install goal. Sat Aug 19 15:19:33 1995 Ulrich Drepper * Makefile.in (uninstall): Remove stuff installed by install-src. Tue Aug 15 13:13:53 1995 Ulrich Drepper * VERSION.in: Initial revision. * Makefile.in (DISTFILES): Add VERSION file. This is not necessary for gettext, but for other packages using this library. Tue Aug 15 06:16:44 1995 Ulrich Drepper * gettextP.h (_nl_find_domain): New prototype after changing search strategy. * finddomain.c (_nl_find_domain): We now try only to find a specified catalog. Fall back to other catalogs listed in the locale list is now done in __dcgettext. * dcgettext.c (__dcgettext): Now we provide message fall back even to different languages. I.e. if a message is not available in one language all the other in the locale list a tried. Formerly fall back was only possible within one language. Implemented by moving one loop from _nl_find_domain to here. Mon Aug 14 23:45:50 1995 Ulrich Drepper * Makefile.in (gettextsrcdir): Directory where source of GNU gettext library are made available. (INSTALL, INSTALL_DATA): Programs used for installing sources. (gettext-src): New. Rule to install GNU gettext sources for use in gettextize shell script. Sun Aug 13 14:40:48 1995 Ulrich Drepper * loadmsgcat.c (_nl_load_domain): Use mmap for loading only when munmap function is also available. * Makefile.in (install): Depend on `all' goal. Wed Aug 9 11:04:33 1995 Ulrich Drepper * localealias.c (read_alias_file): Do not overwrite '\n' when terminating alias value string. * localealias.c (read_alias_file): Handle long lines. Ignore the rest not fitting in the buffer after the initial `fgets' call. Wed Aug 9 00:54:29 1995 Ulrich Drepper * gettextP.h (_nl_load_domain): Add prototype, replacing prototype for _nl_load_msg_cat. * finddomain.c (_nl_find_domain): Remove unneeded variable filename and filename_len. (expand_alias): Remove prototype because functions does not exist anymore. * localealias.c (read_alias_file): Change type of fname_len parameter to int. (xmalloc): Add prototype. * loadmsgcat.c: Better prototypes for xmalloc. Tue Aug 8 22:30:39 1995 Ulrich Drepper * finddomain.c (_nl_find_domain): Allow alias name to be constructed from the four components. * Makefile.in (aliaspath): New variable. Set to preliminary value. (SOURCES): Add localealias.c. (OBJECTS): Add localealias.o. * gettextP.h: Add prototype for _nl_expand_alias. * finddomain.c: Aliasing handled in intl/localealias.c. * localealias.c: Aliasing for locale names. * bindtextdom.c: Better prototypes for xmalloc and xstrdup. Mon Aug 7 23:47:42 1995 Ulrich Drepper * Makefile.in (DISTFILES): gettext.perl is now found in misc/. * cat-compat.c (bindtextdomain): Correct implementation. dirname parameter was not used. Reported by Marcus Daniels. * gettextP.h (loaded_domain): New fields `successor' and `decided' for oo, lazy message handling implementation. * dcgettext.c: Adopt for oo, lazy message handliing. Now we can inherit translations from less specific locales. (find_msg): New function. * loadmsgcat.c, finddomain.c: Complete rewrite. Implement oo, lazy message handling :-). We now have an additional environment variable `LANGUAGE' with a higher priority than LC_ALL for the LC_MESSAGE locale. Here we can set a colon separated list of specifications each of the form `language[_territory[.codeset]][@modifier]'. Sat Aug 5 09:55:42 1995 Ulrich Drepper * finddomain.c (unistd.h): Include to get _PC_PATH_MAX defined on system having it. Fri Aug 4 22:42:00 1995 Ulrich Drepper * finddomain.c (stpcpy): Include prototype. * Makefile.in (dist): Remove `copying instead' message. Wed Aug 2 18:52:03 1995 Ulrich Drepper * Makefile.in (ID, TAGS): Do not use $^. Tue Aug 1 20:07:11 1995 Ulrich Drepper * Makefile.in (TAGS, ID): Use $^ as command argument. (TAGS): Give etags -o option t write to current directory, not $(srcdir). (ID): Use $(srcdir) instead os $(top_srcdir)/src. (distclean): Remove ID. Sun Jul 30 11:51:46 1995 Ulrich Drepper * Makefile.in (gnulocaledir): New variable, always using share/ for data directory. (DEFS): Add GNULOCALEDIR, used in finddomain.c. * finddomain.c (_nl_default_dirname): Set to GNULOCALEDIR, because it always has to point to the directory where GNU gettext Library writes it to. * intl-compat.c (textdomain, bindtextdomain): Undefine macros before function definition. Sat Jul 22 01:10:02 1995 Ulrich Drepper * libgettext.h (_LIBINTL_H): Protect definition in case where this file is included as libgettext.h on Solaris machines. Add comment about this. Wed Jul 19 02:36:42 1995 Ulrich Drepper * intl-compat.c (textdomain): Correct typo. Wed Jul 19 01:51:35 1995 Ulrich Drepper * dcgettext.c (dcgettext): Function now called __dcgettext. * dgettext.c (dgettext): Now called __dgettext and calls __dcgettext. * gettext.c (gettext): Function now called __gettext and calls __dgettext. * textdomain.c (textdomain): Function now called __textdomain. * bindtextdom.c (bindtextdomain): Function now called __bindtextdomain. * intl-compat.c: Initial revision. * Makefile.in (SOURCES): Add intl-compat.c. (OBJECTS): We always compile the GNU gettext library functions. OBJECTS contains all objects but cat-compat.o, ../po/cat-if-tbl.o, and intl-compat.o. (GETTOBJS): Contains now only intl-compat.o. * libgettext.h: Re-include protection matches dualistic character of libgettext.h. For all functions in GNU gettext library define __ counter part. * finddomain.c (strchr): Define as index if not found in C library. (_nl_find_domain): For relative paths paste / in between. Tue Jul 18 16:37:45 1995 Ulrich Drepper * loadmsgcat.c, finddomain.c: Add inclusion of sys/types.h. * xopen-msg.sed: Fix bug with `msgstr ""' lines. A little bit better comments. Tue Jul 18 01:18:27 1995 Ulrich Drepper * Makefile.in: po-mode.el, makelinks, combine-sh are now found in ../misc. * po-mode.el, makelinks, combine-sh, elisp-comp: Moved to ../misc/. * libgettext.h, gettextP.h, gettext.h: Uniform test for __STDC__. Sun Jul 16 22:33:02 1995 Ulrich Drepper * Makefile.in (INSTALL, INSTALL_DATA): New variables. (install-data, uninstall): Install/uninstall .elc file. * po-mode.el (Installation comment): Add .pox as possible extension of .po files. Sun Jul 16 13:23:27 1995 Ulrich Drepper * elisp-comp: Complete new version by Franc,ois: This does not fail when not compiling in the source directory. Sun Jul 16 00:12:17 1995 Ulrich Drepper * Makefile.in (../po/cat-id-tbl.o): Use $(MAKE) instead of make for recursive make. * Makefile.in (.el.elc): Use $(SHELL) instead of /bin/sh. (install-exec): Add missing dummy goal. (install-data, uninstall): @ in multi-line shell command at beginning, not in front of echo. Reported by Eric Backus. Sat Jul 15 00:21:28 1995 Ulrich Drepper * Makefile.in (DISTFILES): Rename libgettext.perl to gettext.perl to fit in 14 chars file systems. * gettext.perl: Rename to gettext.perl to fit in 14 chars file systems. Thu Jul 13 23:17:20 1995 Ulrich Drepper * cat-compat.c: If !STDC_HEADERS try to include malloc.h. Thu Jul 13 20:55:02 1995 Ulrich Drepper * po2tbl.sed.in: Pretty printing. * linux-msg.sed, xopen-msg.sed: Correct bugs with handling substitute flags in branches. * hash-string.h (hash_string): Old K&R compilers don't under stand `unsigned char'. * gettext.h (nls_uint32): Some old K&R compilers (eg HP) don't understand `unsigned int'. * cat-compat.c (msg_to_cat_id): De-ANSI-fy prototypes. Thu Jul 13 01:34:33 1995 Ulrich Drepper * Makefile.in (ELCFILES): New variable. (DISTFILES): Add elisp-comp. Add implicit rule for .el -> .elc compilation. (install-data): install $ELCFILES (clean): renamed po-to-tbl and po-to-msg to po2tbl and po2msg resp. * elisp-comp: Initial revision Wed Jul 12 16:14:52 1995 Ulrich Drepper * Makefile.in: cat-id-tbl.c is now found in po/. This enables us to use an identical intl/ directory in all packages. * dcgettext.c (dcgettext): hashing does not work for table size <= 2. * textdomain.c: fix typo (#if def -> #if defined) Tue Jul 11 18:44:43 1995 Ulrich Drepper * Makefile.in (stamp-cat-id): use top_srcdir to address source files (DISTFILES,distclean): move tupdate.perl to src/ * po-to-tbl.sed.in: add additional jump to clear change flag to recognize multiline strings Tue Jul 11 01:32:50 1995 Ulrich Drepper * textdomain.c: Protect inclusion of stdlib.h and string.h. * loadmsgcat.c: Protect inclusion of stdlib.h. * libgettext.h: Protect inclusion of locale.h. Allow use in C++ programs. Define NULL is not happened already. * Makefile.in (DISTFILES): ship po-to-tbl.sed.in instead of po-to-tbl.sed. (distclean): remove po-to-tbl.sed and tupdate.perl. * tupdate.perl.in: Substitute Perl path even in exec line. Don't include entries without translation from old .po file. Tue Jul 4 00:41:51 1995 Ulrich Drepper * tupdate.perl.in: use "Updated: " in msgid "". * cat-compat.c: Fix typo (LOCALDIR -> LOCALEDIR). Define getenv if !__STDC__. * bindtextdom.c: Protect stdlib.h and string.h inclusion. Define free if !__STDC__. * finddomain.c: Change DEF_MSG_DOM_DIR to LOCALEDIR. Define free if !__STDC__. * cat-compat.c: Change DEF_MSG_DOM_DIR to LOCALEDIR. Mon Jul 3 23:56:30 1995 Ulrich Drepper * Makefile.in: Use LOCALEDIR instead of DEF_MSG_DOM_DIR. Remove unneeded $(srcdir) from Makefile.in dependency. * makelinks: Add copyright and short description. * po-mode.el: Last version for 0.7. * tupdate.perl.in: Fix die message. * dcgettext.c: Protect include of string.h. * gettext.c: Protect include of stdlib.h and further tries to get NULL. * finddomain.c: Some corrections in includes. * Makefile.in (INCLUDES): Prune list correct path to Makefile.in. * po-to-tbl.sed: Adopt for new .po file format. * linux-msg.sed, xopen-msg.sed: Adopt for new .po file format. Sun Jul 2 23:55:03 1995 Ulrich Drepper * tupdate.perl.in: Complete rewrite for new .po file format. Sun Jul 2 02:06:50 1995 Ulrich Drepper * First official release. This directory contains all the code needed to internationalize own packages. It provides functions which allow to use the X/Open catgets function with an interface like the Uniforum gettext function. For system which does not have neither of those a complete implementation is provided. tar-1.13/intl/Makefile.in0000444000176300016070000001456006606172057010742 # 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. PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. VPATH = @srcdir@ 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 INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ l = @l@ AR = ar CC = @CC@ LIBTOOL = @LIBTOOL@ RANLIB = @RANLIB@ DEFS = -DLOCALEDIR=\"$(localedir)\" -DGNULOCALEDIR=\"$(gnulocaledir)\" \ -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) 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 .SUFFIXES: .SUFFIXES: .c .o .lo .c.o: $(COMPILE) $< .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) $< INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib all: all-@USE_INCLUDED_LIBINTL@ all-yes: libintl.$la intlh.inst all-no: libintl.a: $(OBJECTS) rm -f $@ $(AR) cru $@ $(OBJECTS) $(RANLIB) $@ libintl.la: $(OBJECTS) $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \ -version-info 1:0 -rpath $(libdir) ../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot cd ../po && $(MAKE) cat-id-tbl.$lo check: all # This installation goal is only used in GNU gettext. Packages which # only use the library should use install instead. # 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 if test "$(PACKAGE)" = "gettext" \ && test '@INTLOBJS@' = '$(GETTOBJS)'; then \ if test -r $(MKINSTALLDIRS); then \ $(MKINSTALLDIRS) $(libdir) $(includedir); \ else \ $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \ fi; \ $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \ $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext"; then \ if test -r $(MKINSTALLDIRS); then \ $(MKINSTALLDIRS) $(gettextsrcdir); \ else \ $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ fi; \ $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \ dists="$(DISTFILES.common)"; \ for file in $$dists; do \ $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: if test "$(PACKAGE)" = "gettext"; then \ dists="$(DISTFILES.common)"; \ for file in $$dists; do \ rm -f $(gettextsrcdir)/$$file; \ done; \ fi info dvi: $(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 tags: TAGS TAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) id: ID ID: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) mostlyclean: rm -f *.a *.o *.lo core core.* clean: mostlyclean distclean: clean rm -f Makefile ID TAGS po2msg.sed po2tbl.sed maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." # 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) if test "$(PACKAGE)" = gettext; then \ additional="$(DISTFILES.gettext)"; \ else \ additional="$(DISTFILES.normal)"; \ fi; \ for file in $(DISTFILES.common) $$additional; do \ ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done dist-libc: tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc Makefile: Makefile.in ../config.status cd .. \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status # 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: # 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. .NOEXPORT: tar-1.13/intl/linux-msg.sed0000444000176300016070000000520506054750773011315 # 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 { i\ $set 1 # Automatically created by po2msg.sed h s/.*/0/ x } # # Mitch's old catalog format does not allow comments. # # We copy the original message as a comment into the .msg file. # /^msgid/ { s/msgid[ ]*"// # # This does not work now with the new format. # /"$/! { # s/\\$// # s/$/ ... (more lines following)"/ # } x # The following nice solution is by # Bruno td # Increment a decimal number in pattern space. # First hide trailing `9' digits. :d s/9\(_*\)$/_\1/ td # Assure at least one digit is available. s/^\(_*\)$/0\1/ # Increment the last digit. s/8\(_*\)$/9\1/ s/7\(_*\)$/8\1/ s/6\(_*\)$/7\1/ s/5\(_*\)$/6\1/ s/4\(_*\)$/5\1/ s/3\(_*\)$/4\1/ s/2\(_*\)$/3\1/ s/1\(_*\)$/2\1/ s/0\(_*\)$/1\1/ # Convert the hidden `9' digits to `0's. s/_/0/g x G 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/ { s/msgstr[ ]*"\(.*\)"/# \1/ # Clear substitution flag. tb # Append the next line. :b N # Look whether second part is continuation line. s/\(.*\n\)"\(.*\)"/\1\2/ # Yes, then branch. ta P D # Note that D includes a jump to the start!! # We found a continuation line. But before printing insert '\'. :a s/\(.*\)\(\n.*\)/\1\\\2/ P # We cannot use D here. s/.*\n\(.*\)/\1/ tb } d tar-1.13/intl/po2tbl.sed.in0000444000176300016070000000456506173442316011202 # 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 { 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[] = { h s/.*/0/ x } # # Write msgid entries in C array form. # /^msgid/ { s/msgid[ ]*\(".*"\)/ {\1/ tb # Append the next line :b N # Look whether second part is continuation line. s/\(.*\)"\(\n\)"\(.*"\)/\1\2\3/ # Yes, then branch. 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. s/\(.*\)\n.*/\1/ bc # We found a continuation line. But before printing insert '\'. :a s/\(.*\)\(\n.*\)/\1\\\2/ P # We cannot use D here. 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. tb # Not reached :c x # The following nice solution is by # Bruno td # Increment a decimal number in pattern space. # First hide trailing `9' digits. :d s/9\(_*\)$/_\1/ td # Assure at least one digit is available. s/^\(_*\)$/0\1/ # Increment the last digit. s/8\(_*\)$/9\1/ s/7\(_*\)$/8\1/ s/6\(_*\)$/7\1/ s/5\(_*\)$/6\1/ s/4\(_*\)$/5\1/ s/3\(_*\)$/4\1/ s/2\(_*\)$/3\1/ s/1\(_*\)$/2\1/ s/0\(_*\)$/1\1/ # Convert the hidden `9' digits to `0's. s/_/0/g x G s/\(.*\)\n\([0-9]*\)/\1, \2},/ s/\(.*\)"$/\1/ p } # # Last line. # $ { i\ };\ g s/0*\(.*\)/int _msg_tbl_length = \1;/p } d tar-1.13/intl/xopen-msg.sed0000444000176300016070000000537606054750715011314 # 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 { i\ $set 1 # Automatically created by po2msg.sed h s/.*/0/ 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)"/ # } s/^msgid[ ]*"\(.*\)"$/$ 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/ { s/msgstr[ ]*"\(.*\)"/\1/ x # The following nice solution is by # Bruno td # Increment a decimal number in pattern space. # First hide trailing `9' digits. :d s/9\(_*\)$/_\1/ td # Assure at least one digit is available. s/^\(_*\)$/0\1/ # Increment the last digit. s/8\(_*\)$/9\1/ s/7\(_*\)$/8\1/ s/6\(_*\)$/7\1/ s/5\(_*\)$/6\1/ s/4\(_*\)$/5\1/ s/3\(_*\)$/4\1/ s/2\(_*\)$/3\1/ s/1\(_*\)$/2\1/ s/0\(_*\)$/1\1/ # Convert the hidden `9' digits to `0's. s/_/0/g x # Bring the line in the format ` ' G s/^[^\n]*$/& / s/\(.*\)\n\([0-9]*\)/\2 \1/ # Clear flag from last substitution. tb # Append the next line. :b N # Look whether second part is a continuation line. s/\(.*\n\)"\(.*\)"/\1\2/ # Yes, then branch. ta P D # Note that `D' includes a jump to the start!! # We found a continuation line. But before printing insert '\'. :a s/\(.*\)\(\n.*\)/\1\\\2/ P # We cannot use the sed command `D' here s/.*\n\(.*\)/\1/ tb } d tar-1.13/intl/gettext.h0000444000176300016070000000620506521171207010517 /* Internal header for GNU gettext internationalization functions. Copyright (C) 1995, 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 Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _GETTEXT_H #define _GETTEXT_H 1 #include #if HAVE_LIMITS_H || _LIBC # include #endif /* @@ end of prolog @@ */ /* The magic number of the GNU message catalog format. */ #define _MAGIC 0x950412de #define _MAGIC_SWAPPED 0xde120495 /* Revision number of the currently used .mo (binary) file format. */ #define MO_REVISION_NUMBER 0 /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but doing that would require that the configure script compile and *run* the resulting executable. Locally running cross-compiled executables is usually not possible. */ #if __STDC__ # define UINT_MAX_32_BITS 4294967295U #else # define UINT_MAX_32_BITS 0xFFFFFFFF #endif /* If UINT_MAX isn't defined, assume it's a 32-bit type. This should be valid for all systems GNU cares about because that doesn't include 16-bit systems, and only modern systems (that certainly have ) have 64+-bit integral types. */ #ifndef UINT_MAX # define UINT_MAX UINT_MAX_32_BITS #endif #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 /* The following line is intended to throw an error. Using #error is not portable enough. */ "Cannot determine unsigned 32-bit data type." # endif # endif #endif /* Header for binary .mo file format. */ struct mo_file_header { /* The magic number. */ nls_uint32 magic; /* The revision number of the file format. */ nls_uint32 revision; /* The number of strings pairs. */ nls_uint32 nstrings; /* Offset of table with start offsets of original strings. */ nls_uint32 orig_tab_offset; /* Offset of table with start offsets of translation strings. */ nls_uint32 trans_tab_offset; /* Size of hashing table. */ nls_uint32 hash_tab_size; /* Offset of first hashing entry. */ nls_uint32 hash_tab_offset; }; struct string_desc { /* Length of addressed string. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* @@ begin of epilog @@ */ #endif /* gettext.h */ tar-1.13/intl/gettextP.h0000444000176300016070000000420606521171744010644 /* Header describing internals of gettext library Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Written by 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. */ #ifndef _GETTEXTP_H #define _GETTEXTP_H #include "loadinfo.h" /* @@ end of prolog @@ */ #ifndef PARAMS # if __STDC__ # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif #ifndef internal_function # define internal_function #endif #ifndef W # define W(flag, data) ((flag) ? SWAP (data) : (data)) #endif #ifdef _LIBC # include # define SWAP(i) bswap_32 (i) #else static nls_uint32 SWAP PARAMS ((nls_uint32 i)); static inline nls_uint32 SWAP (i) nls_uint32 i; { return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } #endif struct loaded_domain { const char *data; int use_mmap; size_t mmap_size; int must_swap; nls_uint32 nstrings; struct string_desc *orig_tab; struct string_desc *trans_tab; nls_uint32 hash_size; nls_uint32 *hash_tab; }; struct binding { struct binding *next; char *domainname; char *dirname; }; struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname, char *__locale, const char *__domainname)) internal_function; void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain)) internal_function; void _nl_unload_domain PARAMS ((struct loaded_domain *__domain)) internal_function; /* @@ begin of epilog @@ */ #endif /* gettextP.h */ tar-1.13/intl/hash-string.h0000444000176300016070000000337306521462632011272 /* Implements a string hashing function. Copyright (C) 1995, 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 Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* @@ end of prolog @@ */ #ifndef PARAMS # if __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif /* We assume to have `unsigned long int' value with at least 32 bits. */ #define HASHWORDBITS 32 /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ static unsigned long hash_string PARAMS ((const char *__str_param)); static inline unsigned long hash_string (str_param) const char *str_param; { unsigned long int hval, g; const char *str = str_param; /* Compute the hash value for the given string. */ hval = 0; while (*str != '\0') { hval <<= 4; hval += (unsigned long) *str++; g = hval & ((unsigned long) 0xf << (HASHWORDBITS - 4)); if (g != 0) { hval ^= g >> (HASHWORDBITS - 8); hval ^= g; } } return hval; } tar-1.13/intl/libgettext.h0000444000176300016070000001314506521201241011177 /* Message catalogs for internationalization. Copyright (C) 1995, 1996, 1997, 1998 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. */ /* Because on some systems (e.g. Solaris) we sometimes have to include the systems libintl.h as well as this file we have more complex include protection above. But the systems header might perhaps also define _LIBINTL_H and therefore we have to protect the definition here. */ #if !defined _LIBINTL_H || !defined _LIBGETTEXT_H #ifndef _LIBINTL_H # define _LIBINTL_H 1 #endif #define _LIBGETTEXT_H 1 /* We define an additional symbol to signal that we use the GNU implementation of gettext. */ #define __USE_GNU_GETTEXT 1 #include #if HAVE_LOCALE_H # include #endif #ifdef __cplusplus extern "C" { #endif /* @@ end of prolog @@ */ #ifndef PARAMS # if __STDC__ || defined __cplusplus # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif #ifndef NULL # if !defined __cplusplus || defined __GNUC__ # define NULL ((void *) 0) # else # define NULL (0) # endif #endif #if !HAVE_LC_MESSAGES /* This value determines the behaviour of the gettext() and dgettext() function. But some system does not have this defined. Define it to a default value. */ # define LC_MESSAGES (-1) #endif /* Declarations for gettext-using-catgets interface. Derived from Jim Meyering's libintl.h. */ struct _msg_ent { const char *_msg; int _msg_number; }; #if HAVE_CATGETS /* These two variables are defined in the automatically by po-to-tbl.sed generated file `cat-id-tbl.c'. */ extern const struct _msg_ent _msg_tbl[]; extern int _msg_tbl_length; #endif /* For automatical extraction of messages sometimes no real translation is needed. Instead the string itself is the result. */ #define gettext_noop(Str) (Str) /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ extern char *gettext PARAMS ((const char *__msgid)); extern char *gettext__ PARAMS ((const char *__msgid)); /* Look up MSGID in the DOMAINNAME message catalog for the current LC_MESSAGES locale. */ extern char *dgettext PARAMS ((const char *__domainname, const char *__msgid)); extern char *dgettext__ PARAMS ((const char *__domainname, const char *__msgid)); /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ extern char *dcgettext PARAMS ((const char *__domainname, const char *__msgid, int __category)); extern char *dcgettext__ PARAMS ((const char *__domainname, const char *__msgid, int __category)); /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ extern char *textdomain PARAMS ((const char *__domainname)); extern char *textdomain__ PARAMS ((const char *__domainname)); /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ extern char *bindtextdomain PARAMS ((const char *__domainname, const char *__dirname)); extern char *bindtextdomain__ PARAMS ((const char *__domainname, const char *__dirname)); #if ENABLE_NLS /* Solaris 2.3 has the gettext function but dcgettext is missing. So we omit this optimization for Solaris 2.3. BTW, Solaris 2.4 has dcgettext. */ # if !HAVE_CATGETS && (!HAVE_GETTEXT || HAVE_DCGETTEXT) # define gettext(Msgid) \ dgettext (NULL, Msgid) # define dgettext(Domainname, Msgid) \ dcgettext (Domainname, Msgid, LC_MESSAGES) # if defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ >= 7 /* This global variable is defined in loadmsgcat.c. We need a sign, whether a new catalog was loaded, which can be associated with all translations. */ extern int _nl_msg_cat_cntr; # define dcgettext(Domainname, Msgid, Category) \ (__extension__ \ ({ \ char *__result; \ if (__builtin_constant_p (Msgid)) \ { \ static char *__translation__; \ static int __catalog_counter__; \ if (! __translation__ || __catalog_counter__ != _nl_msg_cat_cntr) \ { \ __translation__ = \ dcgettext__ (Domainname, Msgid, Category); \ __catalog_counter__ = _nl_msg_cat_cntr; \ } \ __result = __translation__; \ } \ else \ __result = dcgettext__ (Domainname, Msgid, Category); \ __result; \ })) # endif # endif #else # 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) #endif /* @@ begin of epilog @@ */ #ifdef __cplusplus } #endif #endif tar-1.13/intl/loadinfo.h0000444000176300016070000000455506521653766010653 /* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. 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. */ #ifndef PARAMS # if __STDC__ # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif /* 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 #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE) #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER) struct loaded_l10nfile { const char *filename; int decided; const void *data; struct loaded_l10nfile *next; struct loaded_l10nfile *successor[1]; }; extern const char *_nl_normalize_codeset PARAMS ((const unsigned char *codeset, size_t name_len)); extern struct loaded_l10nfile * _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *special, const char *sponsor, const char *revision, const char *filename, int do_allocate)); extern const char *_nl_expand_alias PARAMS ((const char *name)); extern int _nl_explode_name PARAMS ((char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset, const char **special, const char **sponsor, const char **revision)); tar-1.13/intl/bindtextdom.c0000444000176300016070000001232306521653224011351 /* Implementation of the bindtextdomain(3) function Copyright (C) 1995, 1996, 1997, 1998 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. */ #ifdef HAVE_CONFIG_H # include #endif #if defined STDC_HEADERS || defined _LIBC # include #else # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif #if defined HAVE_STRING_H || defined _LIBC # include #else # include # ifndef memcpy # define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num) # endif #endif #ifdef _LIBC # include #else # include "libgettext.h" #endif #include "gettext.h" #include "gettextP.h" /* @@ end of prolog @@ */ /* Contains the default location of the message catalogs. */ extern const char _nl_default_dirname[]; /* List with bindings of specific domains. */ extern struct binding *_nl_domain_bindings; /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ 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 /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ char * BINDTEXTDOMAIN (domainname, dirname) const char *domainname; const char *dirname; { struct binding *binding; /* Some sanity checks. */ if (domainname == NULL || domainname[0] == '\0') return NULL; for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (dirname == NULL) /* The current binding has be to returned. */ return binding == NULL ? (char *) _nl_default_dirname : binding->dirname; if (binding != NULL) { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ if (strcmp (dirname, binding->dirname) != 0) { char *new_dirname; if (strcmp (dirname, _nl_default_dirname) == 0) new_dirname = (char *) _nl_default_dirname; else { #if defined _LIBC || defined HAVE_STRDUP new_dirname = strdup (dirname); if (new_dirname == NULL) return NULL; #else size_t len = strlen (dirname) + 1; new_dirname = (char *) malloc (len); if (new_dirname == NULL) return NULL; memcpy (new_dirname, dirname, len); #endif } if (binding->dirname != _nl_default_dirname) free (binding->dirname); binding->dirname = new_dirname; } } else { /* We have to create a new binding. */ #if !defined _LIBC && !defined HAVE_STRDUP size_t len; #endif struct binding *new_binding = (struct binding *) malloc (sizeof (*new_binding)); if (new_binding == NULL) return NULL; #if defined _LIBC || defined HAVE_STRDUP new_binding->domainname = strdup (domainname); if (new_binding->domainname == NULL) return NULL; #else len = strlen (domainname) + 1; new_binding->domainname = (char *) malloc (len); if (new_binding->domainname == NULL) return NULL; memcpy (new_binding->domainname, domainname, len); #endif if (strcmp (dirname, _nl_default_dirname) == 0) new_binding->dirname = (char *) _nl_default_dirname; else { #if defined _LIBC || defined HAVE_STRDUP new_binding->dirname = strdup (dirname); if (new_binding->dirname == NULL) return NULL; #else len = strlen (dirname) + 1; new_binding->dirname = (char *) malloc (len); if (new_binding->dirname == NULL) return NULL; memcpy (new_binding->dirname, dirname, len); #endif } /* Now enqueue it. */ if (_nl_domain_bindings == NULL || strcmp (domainname, _nl_domain_bindings->domainname) < 0) { new_binding->next = _nl_domain_bindings; _nl_domain_bindings = new_binding; } else { binding = _nl_domain_bindings; while (binding->next != NULL && strcmp (domainname, binding->next->domainname) > 0) binding = binding->next; new_binding->next = binding->next; binding->next = new_binding; } binding = new_binding; } return binding->dirname; } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__bindtextdomain, bindtextdomain); #endif tar-1.13/intl/dcgettext.c0000444000176300016070000004020006521172301011006 /* Implementation of the dcgettext(3) function. Copyright (C) 1995, 1996, 1997, 1998 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(val) errno = (val) #endif #if defined STDC_HEADERS || defined _LIBC # include #else char *getenv (); # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif #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 #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include "gettext.h" #include "gettextP.h" #ifdef _LIBC # include #else # include "libgettext.h" #endif #include "hash-string.h" /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object 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 /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 /* The following is from pathmax.h. */ /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define PATH_MAX but might cause redefinition warnings when sys/param.h is later included (as on MORE/BSD 4.3). */ #if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) && !defined(__GNUC__)) # include #endif #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 #endif #if !defined(PATH_MAX) && defined(_PC_PATH_MAX) # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif /* Don't include sys/param.h if it already has been. */ #if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) # include #endif #if !defined(PATH_MAX) && defined(MAXPATHLEN) # define PATH_MAX MAXPATHLEN #endif #ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX #endif /* XPG3 defines the result of `setlocale (category, NULL)' as: ``Directs `setlocale()' to query `category' and return the current setting of `local'.'' However it does not specify the exact format. And even worse: POSIX defines this not at all. So we can use this feature only on selected system (e.g. those using GNU C Library). */ #ifdef _LIBC # define HAVE_LOCALE_NULL #endif /* Name of the default domain used for gettext(3) prior any call to textdomain(3). The default value for this is "messages". */ const char _nl_default_default_domain[] = "messages"; /* Value used as the default domain for gettext(3). */ const char *_nl_current_default_domain = _nl_default_default_domain; /* Contains the default location of the message catalogs. */ const char _nl_default_dirname[] = GNULOCALEDIR; /* List with bindings of specific domains created by bindtextdomain() calls. */ struct binding *_nl_domain_bindings; /* Prototypes for local functions. */ static char *find_msg PARAMS ((struct loaded_l10nfile *domain_file, 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, const char *categoryname)) internal_function; /* For those loosing systems which don't have `alloca' we have to add 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 { void *address; struct block_list *next; }; # define ADD_BLOCK(list, addr) \ do { \ struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ /* If we cannot get a free block we cannot add the new element to \ the list. */ \ if (newp != NULL) { \ newp->address = (addr); \ newp->next = (list); \ (list) = newp; \ } \ } while (0) # define FREE_BLOCKS(list) \ do { \ while (list != NULL) { \ struct block_list *old = list; \ list = list->next; \ free (old); \ } \ } while (0) # undef alloca # define alloca(size) (malloc (size)) #endif /* have alloca */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCGETTEXT __dcgettext #else # define DCGETTEXT dcgettext__ #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCGETTEXT (domainname, msgid, category) const char *domainname; const char *msgid; int category; { #ifndef HAVE_ALLOCA struct block_list *block_list = NULL; #endif struct loaded_l10nfile *domain; struct binding *binding; const char *categoryname; const char *categoryvalue; char *dirname, *xdomainname; char *single_locale; char *retval; int saved_errno = errno; /* If no real MSGID is given return NULL. */ if (msgid == NULL) return NULL; /* If DOMAINNAME is NULL, we are interested in the default domain. If CATEGORY is not LC_MESSAGES this might not make much sense but the defintion left this undefined. */ if (domainname == NULL) domainname = _nl_current_default_domain; /* First find matching binding. */ for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding == NULL) dirname = (char *) _nl_default_dirname; else if (binding->dirname[0] == '/') dirname = binding->dirname; else { /* We have a relative path. Make it absolute now. */ size_t dirname_len = strlen (binding->dirname) + 1; size_t path_max; char *ret; path_max = (unsigned) PATH_MAX; path_max += 2; /* The getcwd docs say to do this. */ dirname = (char *) alloca (path_max + dirname_len); ADD_BLOCK (block_list, dirname); __set_errno (0); while ((ret = getcwd (dirname, path_max)) == NULL && errno == ERANGE) { path_max += PATH_INCR; dirname = (char *) alloca (path_max + dirname_len); ADD_BLOCK (block_list, dirname); __set_errno (0); } if (ret == NULL) { /* We cannot get the current working directory. Don't signal an error but simply return the default string. */ FREE_BLOCKS (block_list); __set_errno (saved_errno); return (char *) msgid; } stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname); } /* Now determine the symbolic name of CATEGORY and its value. */ categoryname = category_to_name (category); categoryvalue = guess_category_value (category, categoryname); xdomainname = (char *) alloca (strlen (categoryname) + strlen (domainname) + 5); ADD_BLOCK (block_list, xdomainname); stpcpy (stpcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), domainname), ".mo"); /* Creating working area. */ single_locale = (char *) alloca (strlen (categoryvalue) + 1); ADD_BLOCK (block_list, single_locale); /* Search for the given string. This is a loop because we perhaps got an ordered list of languages to consider for th translation. */ while (1) { /* Make CATEGORYVALUE point to the next element of the list. */ while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') ++categoryvalue; if (categoryvalue[0] == '\0') { /* The whole contents of CATEGORYVALUE has been searched but no valid entry has been found. We solve this situation by implicitly appending a "C" entry, i.e. no translation will take place. */ single_locale[0] = 'C'; single_locale[1] = '\0'; } else { char *cp = single_locale; while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') *cp++ = *categoryvalue++; *cp = '\0'; } /* If the current locale value is C (or POSIX) we don't load a domain. Return the MSGID. */ if (strcmp (single_locale, "C") == 0 || strcmp (single_locale, "POSIX") == 0) { FREE_BLOCKS (block_list); __set_errno (saved_errno); return (char *) msgid; } /* Find structure describing the message catalog matching the DOMAINNAME and CATEGORY. */ domain = _nl_find_domain (dirname, single_locale, xdomainname); if (domain != NULL) { retval = find_msg (domain, msgid); if (retval == NULL) { int cnt; for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) { retval = find_msg (domain->successor[cnt], msgid); if (retval != NULL) break; } } if (retval != NULL) { FREE_BLOCKS (block_list); __set_errno (saved_errno); return retval; } } } /* NOTREACHED */ } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcgettext, dcgettext); #endif static char * internal_function find_msg (domain_file, msgid) struct loaded_l10nfile *domain_file; const char *msgid; { size_t top, act, bottom; struct loaded_domain *domain; if (domain_file->decided == 0) _nl_load_domain (domain_file); if (domain_file->data == NULL) return NULL; domain = (struct loaded_domain *) domain_file->data; /* Locate the MSGID and its translation. */ if (domain->hash_size > 2 && domain->hash_tab != NULL) { /* Use the hashing table. */ nls_uint32 len = strlen (msgid); nls_uint32 hash_val = hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); nls_uint32 nstr = W (domain->must_swap, domain->hash_tab[idx]); if (nstr == 0) /* Hash table entry is empty. */ return NULL; if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) == len && strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[nstr - 1].offset)) == 0) return (char *) domain->data + W (domain->must_swap, domain->trans_tab[nstr - 1].offset); while (1) { if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; nstr = W (domain->must_swap, domain->hash_tab[idx]); if (nstr == 0) /* Hash table entry is empty. */ return NULL; if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) == len && strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[nstr - 1].offset)) == 0) return (char *) domain->data + W (domain->must_swap, domain->trans_tab[nstr - 1].offset); } /* NOTREACHED */ } /* Now we try the default method: binary search in the sorted array of messages. */ bottom = 0; top = domain->nstrings; while (bottom < top) { int cmp_val; act = (bottom + top) / 2; cmp_val = strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[act].offset)); if (cmp_val < 0) top = act; else if (cmp_val > 0) bottom = act + 1; else break; } /* If an translation is found return this. */ return bottom >= top ? NULL : (char *) domain->data + W (domain->must_swap, domain->trans_tab[act].offset); } /* Return string representation of locale CATEGORY. */ static const char * internal_function category_to_name (category) int category; { const char *retval; switch (category) { #ifdef LC_COLLATE case LC_COLLATE: retval = "LC_COLLATE"; break; #endif #ifdef LC_CTYPE case LC_CTYPE: retval = "LC_CTYPE"; break; #endif #ifdef LC_MONETARY case LC_MONETARY: retval = "LC_MONETARY"; break; #endif #ifdef LC_NUMERIC case LC_NUMERIC: retval = "LC_NUMERIC"; break; #endif #ifdef LC_TIME case LC_TIME: retval = "LC_TIME"; break; #endif #ifdef LC_MESSAGES case LC_MESSAGES: retval = "LC_MESSAGES"; break; #endif #ifdef LC_RESPONSE case LC_RESPONSE: retval = "LC_RESPONSE"; break; #endif #ifdef LC_ALL case LC_ALL: /* This might not make sense but is perhaps better than any other value. */ retval = "LC_ALL"; break; #endif default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } /* Guess value of current locale from value of the environment variables. */ static const char * internal_function guess_category_value (category, categoryname) int category; const char *categoryname; { const char *retval; /* The highest priority value is the `LANGUAGE' environment variable. This is a GNU extension. */ retval = getenv ("LANGUAGE"); if (retval != NULL && retval[0] != '\0') return retval; /* `LANGUAGE' is not set. So we have to proceed with the POSIX methods of looking to `LC_ALL', `LC_xxx', and `LANG'. On some systems this can be done by the `setlocale' function itself. */ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL return setlocale (category, NULL); #else /* Setting of LC_ALL overwrites all other. */ retval = getenv ("LC_ALL"); if (retval != NULL && retval[0] != '\0') return retval; /* Next comes the name of the desired category. */ retval = getenv (categoryname); if (retval != NULL && retval[0] != '\0') return retval; /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval != NULL && retval[0] != '\0') return retval; /* We use C as the default domain. POSIX says this is implementation defined. */ return "C"; #endif } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) char *dest; const char *src; { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif #ifdef _LIBC /* If we want to free all resources we have to do some work at program's end. */ static void __attribute__ ((unused)) free_mem (void) { struct binding *runp; for (runp = _nl_domain_bindings; runp != NULL; runp = runp->next) { free (runp->domainname); if (runp->dirname != _nl_default_dirname) /* Yes, this is a pointer comparison. */ free (runp->dirname); } if (_nl_current_default_domain != _nl_default_default_domain) /* Yes, again a pointer comparison. */ free ((char *) _nl_current_default_domain); } text_set_element (__libc_subfreeres, free_mem); #endif tar-1.13/intl/dgettext.c0000444000176300016070000000337206521171636010666 /* Implementation of the dgettext(3) function 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. */ #ifdef HAVE_CONFIG_H # include #endif #if defined HAVE_LOCALE_H || defined _LIBC # include #endif #ifdef _LIBC # include #else # include "libgettext.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ 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 /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale. */ char * DGETTEXT (domainname, msgid) const char *domainname; const char *msgid; { return DCGETTEXT (domainname, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dgettext, dgettext); #endif tar-1.13/intl/gettext.c0000444000176300016070000000362306521171162010513 /* Implementation of gettext(3) function. Copyright (C) 1995, 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. */ #ifdef HAVE_CONFIG_H # include #endif #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 #ifdef _LIBC # include #else # include "libgettext.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ 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 /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * GETTEXT (msgid) const char *msgid; { return DGETTEXT (NULL, msgid); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__gettext, gettext); #endif tar-1.13/intl/finddomain.c0000444000176300016070000001333406521172161011137 /* Handle list of needed message catalogs Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Written by 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #if defined STDC_HEADERS || defined _LIBC # include #else # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif #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 #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include "gettext.h" #include "gettextP.h" #ifdef _LIBC # include #else # include "libgettext.h" #endif /* @@ end of prolog @@ */ /* List of already loaded domains. */ static struct loaded_l10nfile *_nl_loaded_domains; /* Return a data structure describing the message catalog described by the DOMAINNAME and CATEGORY parameters with respect to the currently established bindings. */ struct loaded_l10nfile * internal_function _nl_find_domain (dirname, locale, domainname) const char *dirname; char *locale; const char *domainname; { struct loaded_l10nfile *retval; const char *language; const char *modifier; const char *territory; const char *codeset; const char *normalized_codeset; const char *special; const char *sponsor; const char *revision; const char *alias_value; int mask; /* LOCALE can consist of up to four recognized parts for the XPG syntax: language[_territory[.codeset]][@modifier] and six parts for the CEN syntax: language[_territory][+audience][+special][,[sponsor][_revision]] Beside the first part all of them are allowed to be missing. If the full specified locale is not found, the less specific one are looked for. The various parts will be stripped off according to the following order: (1) revision (2) sponsor (3) special (4) codeset (5) normalized codeset (6) territory (7) audience/modifier */ /* If we have already tested for this locale entry there has to be one data set in the list of loaded domains. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, 0, locale, NULL, NULL, NULL, NULL, NULL, NULL, NULL, domainname, 0); if (retval != NULL) { /* We know something about this locale. */ int cnt; if (retval->decided == 0) _nl_load_domain (retval); if (retval->data != NULL) return retval; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided == 0) _nl_load_domain (retval->successor[cnt]); if (retval->successor[cnt]->data != NULL) break; } return cnt >= 0 ? retval : NULL; /* NOTREACHED */ } /* See whether the locale value is an alias. If yes its value *overwrites* the alias name. No test for the original value is done. */ alias_value = _nl_expand_alias (locale); if (alias_value != NULL) { #if defined _LIBC || defined HAVE_STRDUP locale = strdup (alias_value); if (locale == NULL) return NULL; #else size_t len = strlen (alias_value) + 1; locale = (char *) malloc (len); if (locale == NULL) return NULL; memcpy (locale, alias_value, len); #endif } /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_' and `@' if we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ mask = _nl_explode_name (locale, &language, &modifier, &territory, &codeset, &normalized_codeset, &special, &sponsor, &revision); /* Create all possible locale entries which might be interested in generalization. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, mask, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, domainname, 1); if (retval == NULL) /* This means we are out of core. */ return NULL; if (retval->decided == 0) _nl_load_domain (retval); if (retval->data == NULL) { int cnt; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided == 0) _nl_load_domain (retval->successor[cnt]); if (retval->successor[cnt]->data != NULL) break; } } /* The room for an alias was dynamically allocated. Free it now. */ if (alias_value != NULL) free (locale); return retval; } #ifdef _LIBC static void __attribute__ ((unused)) free_mem (void) { struct loaded_l10nfile *runp = _nl_loaded_domains; while (runp != NULL) { struct loaded_l10nfile *here = runp; if (runp->data != NULL) _nl_unload_domain ((struct loaded_domain *) runp->data); runp = runp->next; free (here); } } text_set_element (__libc_subfreeres, free_mem); #endif tar-1.13/intl/loadmsgcat.c0000444000176300016070000001374506521461150011152 /* Load needed message catalogs. Copyright (C) 1995, 1996, 1997, 1998 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #if defined STDC_HEADERS || defined _LIBC # include #endif #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #if (defined HAVE_MMAP && defined HAVE_MUNMAP) || defined _LIBC # include #endif #include "gettext.h" #include "gettextP.h" /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ISO C functions. This is required by the standard because some ISO C functions will require linking with this object 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 /* We need a sign, whether a new catalog was loaded, which can be associated with all translations. This is important if the translations are cached by one of GCC's features. */ int _nl_msg_cat_cntr = 0; /* Load the message catalogs specified by FILENAME. If it is no valid message catalog do nothing. */ void internal_function _nl_load_domain (domain_file) struct loaded_l10nfile *domain_file; { int fd; size_t size; struct stat st; struct mo_file_header *data = (struct mo_file_header *) -1; #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || defined _LIBC int use_mmap = 0; #endif struct loaded_domain *domain; domain_file->decided = 1; domain_file->data = NULL; /* If the record does not represent a valid locale the FILENAME might be NULL. This can happen when according to the given specification the locale file name is different for XPG and CEN syntax. */ if (domain_file->filename == NULL) return; /* Try to open the addressed file. */ fd = open (domain_file->filename, O_RDONLY); if (fd == -1) return; /* We must know about the size of the file. */ if (fstat (fd, &st) != 0 || (size = (size_t) st.st_size) != st.st_size || size < sizeof (struct mo_file_header)) { /* Something went wrong. */ close (fd); return; } #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || defined _LIBC /* Now we are ready to load the file. If mmap() is available we try this first. If not available or it failed we try to load it. */ data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); if (data != (struct mo_file_header *) -1) { /* mmap() call was successful. */ close (fd); use_mmap = 1; } #endif /* If the data is not yet available (i.e. mmap'ed) we try to load it manually. */ if (data == (struct mo_file_header *) -1) { size_t to_read; char *read_ptr; data = (struct mo_file_header *) malloc (size); if (data == NULL) return; to_read = size; read_ptr = (char *) data; do { long int nb = (long int) read (fd, read_ptr, to_read); if (nb == -1) { close (fd); return; } read_ptr += nb; to_read -= nb; } while (to_read > 0); close (fd); } /* Using the magic number we can test whether it really is a message catalog file. */ if (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED) { /* The magic number is wrong: not a message catalog file. */ #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || defined _LIBC if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); return; } domain_file->data = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); if (domain_file->data == NULL) return; domain = (struct loaded_domain *) domain_file->data; domain->data = (char *) data; #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || defined _LIBC domain->use_mmap = use_mmap; #endif domain->mmap_size = size; domain->must_swap = data->magic != _MAGIC; /* Fill in the information about the available tables. */ switch (W (domain->must_swap, data->revision)) { case 0: domain->nstrings = W (domain->must_swap, data->nstrings); domain->orig_tab = (struct string_desc *) ((char *) data + W (domain->must_swap, data->orig_tab_offset)); domain->trans_tab = (struct string_desc *) ((char *) data + W (domain->must_swap, data->trans_tab_offset)); domain->hash_size = W (domain->must_swap, data->hash_tab_size); domain->hash_tab = (nls_uint32 *) ((char *) data + W (domain->must_swap, data->hash_tab_offset)); break; default: /* This is an illegal revision. */ #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || defined _LIBC if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); free (domain); domain_file->data = NULL; return; } /* Show that one domain is changed. This might make some cached translations invalid. */ ++_nl_msg_cat_cntr; } #ifdef _LIBC void internal_function _nl_unload_domain (domain) struct loaded_domain *domain; { if (domain->use_mmap) munmap ((caddr_t) domain->data, domain->mmap_size); else free ((void *) domain->data); free (domain); } #endif tar-1.13/intl/localealias.c0000444000176300016070000002356506556720574011326 /* Handle aliases for locale names. Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Written by 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif #if defined STDC_HEADERS || defined _LIBC # include #else char *getenv (); # ifdef HAVE_MALLOC_H # include # else void free (); # endif #endif #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 #include "gettext.h" #include "gettextP.h" /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define strcasecmp __strcasecmp # define mempcpy __mempcpy # define HAVE_MEMPCPY 1 /* We need locking here since we can be called from different places. */ # include __libc_lock_define_initialized (static, lock); #endif /* For those loosing systems which don't have `alloca' we have to add 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 { void *address; struct block_list *next; }; # define ADD_BLOCK(list, addr) \ do { \ struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ /* If we cannot get a free block we cannot add the new element to \ the list. */ \ if (newp != NULL) { \ newp->address = (addr); \ newp->next = (list); \ (list) = newp; \ } \ } while (0) # define FREE_BLOCKS(list) \ do { \ while (list != NULL) { \ struct block_list *old = list; \ list = list->next; \ free (old); \ } \ } while (0) # undef alloca # define alloca(size) (malloc (size)) #endif /* have alloca */ struct alias_map { const char *alias; const char *value; }; 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; /* Prototypes for local functions. */ static size_t read_alias_file PARAMS ((const char *fname, int fname_len)) internal_function; static void extend_alias_table PARAMS ((void)); static int alias_compare PARAMS ((const struct alias_map *map1, const struct alias_map *map2)); const char * _nl_expand_alias (name) const char *name; { static const char *locale_alias_path = LOCALE_ALIAS_PATH; struct alias_map *retval; const char *result = NULL; size_t added; #ifdef _LIBC __libc_lock_lock (lock); #endif do { struct alias_map item; item.alias = name; if (nmap > 0) retval = (struct alias_map *) bsearch (&item, map, nmap, sizeof (struct alias_map), (int (*) PARAMS ((const void *, const void *)) ) alias_compare); else retval = NULL; /* We really found an alias. Return the value. */ if (retval != NULL) { result = retval->value; break; } /* Perhaps we can find another alias file. */ added = 0; while (added == 0 && locale_alias_path[0] != '\0') { const char *start; while (locale_alias_path[0] == ':') ++locale_alias_path; start = locale_alias_path; while (locale_alias_path[0] != '\0' && locale_alias_path[0] != ':') ++locale_alias_path; if (start < locale_alias_path) added = read_alias_file (start, locale_alias_path - start); } } while (added != 0); #ifdef _LIBC __libc_lock_unlock (lock); #endif return result; } static size_t internal_function read_alias_file (fname, fname_len) const char *fname; int fname_len; { #ifndef HAVE_ALLOCA struct block_list *block_list = NULL; #endif FILE *fp; char *full_fname; size_t added; static const char aliasfile[] = "/locale.alias"; full_fname = (char *) alloca (fname_len + sizeof aliasfile); ADD_BLOCK (block_list, full_fname); #ifdef HAVE_MEMPCPY mempcpy (mempcpy (full_fname, fname, fname_len), aliasfile, sizeof aliasfile); #else memcpy (full_fname, fname, fname_len); memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); #endif fp = fopen (full_fname, "r"); if (fp == NULL) { FREE_BLOCKS (block_list); return 0; } added = 0; while (!feof (fp)) { /* It is a reasonable approach to use a fix buffer here because a) we are only interested in the first two fields b) these fields must be usable as file names and so must not be that long */ char buf[BUFSIZ]; char *alias; char *value; unsigned char *cp; if (fgets (buf, sizeof buf, fp) == NULL) /* EOF reached. */ break; /* Possibly not the whole line fits into the buffer. Ignore the rest of the line. */ if (strchr (buf, '\n') == NULL) { char altbuf[BUFSIZ]; do if (fgets (altbuf, sizeof altbuf, fp) == NULL) /* Make sure the inner loop will be left. The outer loop will exit at the `feof' test. */ break; while (strchr (altbuf, '\n') == NULL); } cp = (unsigned char *) buf; /* Ignore leading white space. */ while (isspace (cp[0])) ++cp; /* A leading '#' signals a comment line. */ if (cp[0] != '\0' && cp[0] != '#') { alias = (char *) cp++; while (cp[0] != '\0' && !isspace (cp[0])) ++cp; /* Terminate alias name. */ if (cp[0] != '\0') *cp++ = '\0'; /* Now look for the beginning of the value. */ while (isspace (cp[0])) ++cp; if (cp[0] != '\0') { size_t alias_len; size_t value_len; value = (char *) cp++; while (cp[0] != '\0' && !isspace (cp[0])) ++cp; /* Terminate value. */ if (cp[0] == '\n') { /* This has to be done to make the following test for the end of line possible. We are looking for the terminating '\n' which do not overwrite here. */ *cp++ = '\0'; *cp = '\n'; } else if (cp[0] != '\0') *cp++ = '\0'; if (nmap >= maxmap) extend_alias_table (); alias_len = strlen (alias) + 1; value_len = strlen (value) + 1; if (string_space_act + alias_len + value_len > string_space_max) { /* Increase size of memory pool. */ size_t new_size = (string_space_max + (alias_len + value_len > 1024 ? alias_len + value_len : 1024)); char *new_pool = (char *) realloc (string_space, new_size); if (new_pool == NULL) { FREE_BLOCKS (block_list); return added; } string_space = new_pool; string_space_max = new_size; } map[nmap].alias = memcpy (&string_space[string_space_act], alias, alias_len); string_space_act += alias_len; map[nmap].value = memcpy (&string_space[string_space_act], value, value_len); string_space_act += value_len; ++nmap; ++added; } } } /* Should we test for ferror()? I think we have to silently ignore errors. --drepper */ fclose (fp); if (added > 0) qsort (map, nmap, sizeof (struct alias_map), (int (*) PARAMS ((const void *, const void *))) alias_compare); FREE_BLOCKS (block_list); return added; } static void extend_alias_table () { size_t new_size; struct alias_map *new_map; new_size = maxmap == 0 ? 100 : 2 * maxmap; new_map = (struct alias_map *) realloc (map, (new_size * sizeof (struct alias_map))); if (new_map == NULL) /* Simply don't extend: we don't have any more core. */ return; map = new_map; maxmap = new_size; } #ifdef _LIBC static void __attribute__ ((unused)) free_mem (void) { if (string_space != NULL) free (string_space); if (map != NULL) free (map); } text_set_element (__libc_subfreeres, free_mem); #endif static int alias_compare (map1, map2) const struct alias_map *map1; const struct alias_map *map2; { #if defined _LIBC || defined HAVE_STRCASECMP return strcasecmp (map1->alias, map2->alias); #else const unsigned char *p1 = (const unsigned char *) map1->alias; const unsigned char *p2 = (const unsigned char *) map2->alias; unsigned char c1, c2; if (p1 == p2) return 0; do { /* I know this seems to be odd but the tolower() function in some systems libc cannot handle nonalpha characters. */ c1 = isupper (*p1) ? tolower (*p1) : *p1; c2 = isupper (*p2) ? tolower (*p2) : *p2; if (c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); return c1 - c2; #endif } tar-1.13/intl/textdomain.c0000444000176300016070000000630106521172104011174 /* Implementation of the textdomain(3) function. Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Written by 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. */ #ifdef HAVE_CONFIG_H # include #endif #if defined STDC_HEADERS || defined _LIBC # include #endif #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 #ifdef _LIBC # include #else # include "libgettext.h" #endif /* @@ end of prolog @@ */ /* Name of the default text domain. */ extern const char _nl_default_default_domain[]; /* Default text domain in which entries for gettext(3) are to be found. */ extern const char *_nl_current_default_domain; /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ 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 /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ char * TEXTDOMAIN (domainname) const char *domainname; { char *old; /* A NULL pointer requests the current setting. */ if (domainname == NULL) return (char *) _nl_current_default_domain; old = (char *) _nl_current_default_domain; /* If domain name is the null string set to default domain "messages". */ if (domainname[0] == '\0' || strcmp (domainname, _nl_default_default_domain) == 0) _nl_current_default_domain = _nl_default_default_domain; else { /* If the following malloc fails `_nl_current_default_domain' will be NULL. This value will be returned and so signals we are out of core. */ #if defined _LIBC || defined HAVE_STRDUP _nl_current_default_domain = strdup (domainname); #else size_t len = strlen (domainname) + 1; char *cp = (char *) malloc (len); if (cp != NULL) memcpy (cp, domainname, len); _nl_current_default_domain = cp; #endif } if (old != _nl_default_default_domain) free (old); return (char *) _nl_current_default_domain; } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__textdomain, textdomain); #endif tar-1.13/intl/l10nflist.c0000444000176300016070000002424406521653556010661 /* Handle list of needed message catalogs Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Contributed by 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. */ #ifdef HAVE_CONFIG_H # include #endif #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 #if defined _LIBC || defined HAVE_ARGZ_H # include #endif #include #include #if defined STDC_HEADERS || defined _LIBC # include #endif #include "loadinfo.h" /* 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 /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object 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 /* Define function which are usually not available. */ #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)); static size_t argz_count__ (argz, len) const char *argz; size_t len; { size_t count = 0; while (len > 0) { size_t part_len = strlen (argz); argz += part_len + 1; len -= part_len + 1; count++; } return count; } # undef __argz_count # define __argz_count(argz, len) argz_count__ (argz, len) #endif /* !_LIBC && !HAVE___ARGZ_COUNT */ #if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's except the last into the character SEP. */ static void argz_stringify__ PARAMS ((char *argz, size_t len, int sep)); static void argz_stringify__ (argz, len, sep) char *argz; size_t len; int sep; { while (len > 0) { size_t part_len = strlen (argz); argz += part_len; len -= part_len + 1; if (len > 0) *argz++ = sep; } } # undef __argz_stringify # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) #endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */ #if !defined _LIBC && !defined HAVE___ARGZ_NEXT static char *argz_next__ PARAMS ((char *argz, size_t argz_len, const char *entry)); static char * argz_next__ (argz, argz_len, entry) char *argz; size_t argz_len; const char *entry; { if (entry) { if (entry < argz + argz_len) entry = strchr (entry, '\0') + 1; return entry >= argz + argz_len ? NULL : (char *) entry; } else if (argz_len > 0) return argz; else return 0; } # undef __argz_next # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) #endif /* !_LIBC && !HAVE___ARGZ_NEXT */ /* Return number of bits set in X. */ static int pop PARAMS ((int x)); static inline int pop (x) int x; { /* We assume that no more than 16 bits are used. */ x = ((x & ~0x5555) >> 1) + (x & 0x5555); x = ((x & ~0x3333) >> 2) + (x & 0x3333); x = ((x >> 4) + x) & 0x0f0f; x = ((x >> 8) + x) & 0xff; return x; } struct loaded_l10nfile * _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, filename, do_allocate) struct loaded_l10nfile **l10nfile_list; const char *dirlist; size_t dirlist_len; int mask; const char *language; const char *territory; const char *codeset; const char *normalized_codeset; const char *modifier; const char *special; const char *sponsor; const char *revision; const char *filename; int do_allocate; { char *abs_filename; struct loaded_l10nfile *last = NULL; struct loaded_l10nfile *retval; char *cp; size_t entries; int cnt; /* Allocate room for the full file name. */ abs_filename = (char *) malloc (dirlist_len + strlen (language) + ((mask & TERRITORY) != 0 ? strlen (territory) + 1 : 0) + ((mask & XPG_CODESET) != 0 ? strlen (codeset) + 1 : 0) + ((mask & XPG_NORM_CODESET) != 0 ? strlen (normalized_codeset) + 1 : 0) + (((mask & XPG_MODIFIER) != 0 || (mask & CEN_AUDIENCE) != 0) ? strlen (modifier) + 1 : 0) + ((mask & CEN_SPECIAL) != 0 ? strlen (special) + 1 : 0) + (((mask & CEN_SPONSOR) != 0 || (mask & CEN_REVISION) != 0) ? (1 + ((mask & CEN_SPONSOR) != 0 ? strlen (sponsor) + 1 : 0) + ((mask & CEN_REVISION) != 0 ? strlen (revision) + 1 : 0)) : 0) + 1 + strlen (filename) + 1); if (abs_filename == NULL) return NULL; retval = NULL; last = NULL; /* Construct file name. */ memcpy (abs_filename, dirlist, dirlist_len); __argz_stringify (abs_filename, dirlist_len, ':'); cp = abs_filename + (dirlist_len - 1); *cp++ = '/'; cp = stpcpy (cp, language); if ((mask & TERRITORY) != 0) { *cp++ = '_'; cp = stpcpy (cp, territory); } if ((mask & XPG_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, codeset); } if ((mask & XPG_NORM_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, normalized_codeset); } if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) { /* This component can be part of both syntaces but has different leading characters. For CEN we use `+', else `@'. */ *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; cp = stpcpy (cp, modifier); } if ((mask & CEN_SPECIAL) != 0) { *cp++ = '+'; cp = stpcpy (cp, special); } if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0) { *cp++ = ','; if ((mask & CEN_SPONSOR) != 0) cp = stpcpy (cp, sponsor); if ((mask & CEN_REVISION) != 0) { *cp++ = '_'; cp = stpcpy (cp, revision); } } *cp++ = '/'; stpcpy (cp, filename); /* Look in list of already loaded domains whether it is already available. */ last = NULL; for (retval = *l10nfile_list; retval != NULL; retval = retval->next) if (retval->filename != NULL) { int compare = strcmp (retval->filename, abs_filename); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It's not in the list. */ retval = NULL; break; } last = retval; } if (retval != NULL || do_allocate == 0) { free (abs_filename); return retval; } retval = (struct loaded_l10nfile *) malloc (sizeof (*retval) + (__argz_count (dirlist, dirlist_len) * (1 << pop (mask)) * sizeof (struct loaded_l10nfile *))); if (retval == NULL) return NULL; retval->filename = abs_filename; retval->decided = (__argz_count (dirlist, dirlist_len) != 1 || ((mask & XPG_CODESET) != 0 && (mask & XPG_NORM_CODESET) != 0)); retval->data = NULL; if (last == NULL) { retval->next = *l10nfile_list; *l10nfile_list = retval; } else { retval->next = last->next; last->next = retval; } entries = 0; /* If the DIRLIST is a real list the RETVAL entry corresponds not to a real file. So we have to use the DIRLIST separation mechanism of the inner loop. */ cnt = __argz_count (dirlist, dirlist_len) == 1 ? mask - 1 : mask; for (; cnt >= 0; --cnt) if ((cnt & ~mask) == 0 && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) { /* Iterate over all elements of the DIRLIST. */ char *dir = NULL; while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) != NULL) retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, filename, 1); } retval->successor[entries] = NULL; return retval; } /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. */ const char * _nl_normalize_codeset (codeset, name_len) const unsigned char *codeset; size_t name_len; { int len = 0; int only_digit = 1; char *retval; char *wp; size_t cnt; for (cnt = 0; cnt < name_len; ++cnt) if (isalnum (codeset[cnt])) { ++len; if (isalpha (codeset[cnt])) only_digit = 0; } retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); if (retval != NULL) { if (only_digit) wp = stpcpy (retval, "iso"); else wp = retval; for (cnt = 0; cnt < name_len; ++cnt) if (isalpha (codeset[cnt])) *wp++ = tolower (codeset[cnt]); else if (isdigit (codeset[cnt])) *wp++ = codeset[cnt]; *wp = '\0'; } return (const char *) retval; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) char *dest; const char *src; { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif tar-1.13/intl/explodename.c0000444000176300016070000001101006521171661011321 /* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Contributed by 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. */ #ifdef HAVE_CONFIG_H # include #endif #if defined STDC_HEADERS || defined _LIBC # include #endif #if defined HAVE_STRING_H || defined _LIBC # include #else # include #endif #include #include "loadinfo.h" /* 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 /* @@ end of prolog @@ */ int _nl_explode_name (name, language, modifier, territory, codeset, normalized_codeset, special, sponsor, revision) char *name; const char **language; const char **modifier; const char **territory; const char **codeset; const char **normalized_codeset; const char **special; const char **sponsor; const char **revision; { enum { undecided, xpg, cen } syntax; char *cp; int mask; *modifier = NULL; *territory = NULL; *codeset = NULL; *normalized_codeset = NULL; *special = NULL; *sponsor = NULL; *revision = NULL; /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_' and `@' if we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ mask = 0; syntax = undecided; *language = cp = name; while (cp[0] != '\0' && cp[0] != '_' && cp[0] != '@' && cp[0] != '+' && cp[0] != ',') ++cp; if (*language == cp) /* This does not make sense: language has to be specified. Use this entry as it is without exploding. Perhaps it is an alias. */ cp = strchr (*language, '\0'); else if (cp[0] == '_') { /* Next is the territory. */ cp[0] = '\0'; *territory = ++cp; while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@' && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= TERRITORY; if (cp[0] == '.') { /* Next is the codeset. */ syntax = xpg; cp[0] = '\0'; *codeset = ++cp; while (cp[0] != '\0' && cp[0] != '@') ++cp; mask |= XPG_CODESET; if (*codeset != cp && (*codeset)[0] != '\0') { *normalized_codeset = _nl_normalize_codeset (*codeset, cp - *codeset); if (strcmp (*codeset, *normalized_codeset) == 0) free ((char *) *normalized_codeset); else mask |= XPG_NORM_CODESET; } } } if (cp[0] == '@' || (syntax != xpg && cp[0] == '+')) { /* Next is the modifier. */ syntax = cp[0] == '@' ? xpg : cen; cp[0] = '\0'; *modifier = ++cp; while (syntax == cen && cp[0] != '\0' && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= XPG_MODIFIER | CEN_AUDIENCE; } if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_')) { syntax = cen; if (cp[0] == '+') { /* Next is special application (CEN syntax). */ cp[0] = '\0'; *special = ++cp; while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= CEN_SPECIAL; } if (cp[0] == ',') { /* Next is sponsor (CEN syntax). */ cp[0] = '\0'; *sponsor = ++cp; while (cp[0] != '\0' && cp[0] != '_') ++cp; mask |= CEN_SPONSOR; } if (cp[0] == '_') { /* Next is revision (CEN syntax). */ cp[0] = '\0'; *revision = ++cp; mask |= CEN_REVISION; } } /* For CEN syntax values it might be important to have the separator character in the file name, not for XPG syntax. */ if (syntax == xpg) { if (*territory != NULL && (*territory)[0] == '\0') mask &= ~TERRITORY; if (*codeset != NULL && (*codeset)[0] == '\0') mask &= ~XPG_CODESET; if (*modifier != NULL && (*modifier)[0] == '\0') mask &= ~XPG_MODIFIER; } return mask; } tar-1.13/intl/intl-compat.c0000444000176300016070000000315606030245214011252 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext Library. Copyright (C) 1995 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. */ #ifdef HAVE_CONFIG_H # include #endif #include "libgettext.h" /* @@ end of prolog @@ */ #undef gettext #undef dgettext #undef dcgettext #undef textdomain #undef bindtextdomain char * bindtextdomain (domainname, dirname) const char *domainname; const char *dirname; { return bindtextdomain__ (domainname, dirname); } char * dcgettext (domainname, msgid, category) const char *domainname; const char *msgid; int category; { return dcgettext__ (domainname, msgid, category); } char * dgettext (domainname, msgid) const char *domainname; const char *msgid; { return dgettext__ (domainname, msgid); } char * gettext (msgid) const char *msgid; { return gettext__ (msgid); } char * textdomain (domainname) const char *domainname; { return textdomain__ (domainname); } tar-1.13/intl/cat-compat.c0000444000176300016070000001474106370357475011101 /* Compatibility code for gettext-using-catgets interface. Copyright (C) 1995, 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #ifdef STDC_HEADERS # include # include #else char *getenv (); # ifdef HAVE_MALLOC_H # include # endif #endif #ifdef HAVE_NL_TYPES_H # include #endif #include "libgettext.h" /* @@ end of prolog @@ */ /* XPG3 defines the result of `setlocale (category, NULL)' as: ``Directs `setlocale()' to query `category' and return the current setting of `local'.'' However it does not specify the exact format. And even worse: POSIX defines this not at all. So we can use this feature only on selected system (e.g. those using GNU C Library). */ #ifdef _LIBC # define HAVE_LOCALE_NULL #endif /* The catalog descriptor. */ static nl_catd catalog = (nl_catd) -1; /* Name of the default catalog. */ static const char default_catalog_name[] = "messages"; /* Name of currently used catalog. */ static const char *catalog_name = default_catalog_name; /* Get ID for given string. If not found return -1. */ static int msg_to_cat_id PARAMS ((const char *msg)); /* Substitution for systems lacking this function in their C library. */ #if !_LIBC && !HAVE_STPCPY static char *stpcpy PARAMS ((char *dest, const char *src)); #endif /* Set currently used domain/catalog. */ char * textdomain (domainname) const char *domainname; { nl_catd new_catalog; char *new_name; size_t new_name_len; char *lang; #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES \ && defined HAVE_LOCALE_NULL lang = setlocale (LC_MESSAGES, NULL); #else lang = getenv ("LC_ALL"); if (lang == NULL || lang[0] == '\0') { lang = getenv ("LC_MESSAGES"); if (lang == NULL || lang[0] == '\0') lang = getenv ("LANG"); } #endif if (lang == NULL || lang[0] == '\0') lang = "C"; /* See whether name of currently used domain is asked. */ if (domainname == NULL) return (char *) catalog_name; if (domainname[0] == '\0') domainname = default_catalog_name; /* Compute length of added path element. */ new_name_len = sizeof (LOCALEDIR) - 1 + 1 + strlen (lang) + sizeof ("/LC_MESSAGES/") - 1 + sizeof (PACKAGE) - 1 + sizeof (".cat"); new_name = (char *) malloc (new_name_len); if (new_name == NULL) return NULL; strcpy (new_name, PACKAGE); new_catalog = catopen (new_name, 0); if (new_catalog == (nl_catd) -1) { /* NLSPATH search didn't work, try absolute path */ sprintf (new_name, "%s/%s/LC_MESSAGES/%s.cat", LOCALEDIR, lang, PACKAGE); new_catalog = catopen (new_name, 0); if (new_catalog == (nl_catd) -1) { free (new_name); return (char *) catalog_name; } } /* Close old catalog. */ if (catalog != (nl_catd) -1) catclose (catalog); if (catalog_name != default_catalog_name) free ((char *) catalog_name); catalog = new_catalog; catalog_name = new_name; return (char *) catalog_name; } char * bindtextdomain (domainname, dirname) const char *domainname; const char *dirname; { #if HAVE_SETENV || HAVE_PUTENV char *old_val, *new_val, *cp; size_t new_val_len; /* This does not make much sense here but to be compatible do it. */ if (domainname == NULL) return NULL; /* Compute length of added path element. If we use setenv we don't need the first byts for NLSPATH=, but why complicate the code for this peanuts. */ new_val_len = sizeof ("NLSPATH=") - 1 + strlen (dirname) + sizeof ("/%L/LC_MESSAGES/%N.cat"); old_val = getenv ("NLSPATH"); if (old_val == NULL || old_val[0] == '\0') { old_val = NULL; new_val_len += 1 + sizeof (LOCALEDIR) - 1 + sizeof ("/%L/LC_MESSAGES/%N.cat"); } else new_val_len += strlen (old_val); new_val = (char *) malloc (new_val_len); if (new_val == NULL) return NULL; # if HAVE_SETENV cp = new_val; # else cp = stpcpy (new_val, "NLSPATH="); # endif cp = stpcpy (cp, dirname); cp = stpcpy (cp, "/%L/LC_MESSAGES/%N.cat:"); if (old_val == NULL) { # if __STDC__ stpcpy (cp, LOCALEDIR "/%L/LC_MESSAGES/%N.cat"); # else cp = stpcpy (cp, LOCALEDIR); stpcpy (cp, "/%L/LC_MESSAGES/%N.cat"); # endif } else stpcpy (cp, old_val); # if HAVE_SETENV setenv ("NLSPATH", new_val, 1); free (new_val); # else putenv (new_val); /* Do *not* free the environment entry we just entered. It is used from now on. */ # endif #endif return (char *) domainname; } #undef gettext char * gettext (msg) const char *msg; { int msgid; if (msg == NULL || catalog == (nl_catd) -1) return (char *) msg; /* Get the message from the catalog. We always use set number 1. The message ID is computed by the function `msg_to_cat_id' which works on the table generated by `po-to-tbl'. */ msgid = msg_to_cat_id (msg); if (msgid == -1) return (char *) msg; return catgets (catalog, 1, msgid, (char *) msg); } /* Look through the table `_msg_tbl' which has `_msg_tbl_length' entries for the one equal to msg. If it is found return the ID. In case when the string is not found return -1. */ static int msg_to_cat_id (msg) const char *msg; { int cnt; for (cnt = 0; cnt < _msg_tbl_length; ++cnt) if (strcmp (msg, _msg_tbl[cnt]._msg) == 0) return _msg_tbl[cnt]._msg_number; return -1; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) char *dest; const char *src; { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif tar-1.13/intl/VERSION0000444000176300016070000000005106523146711007727 GNU gettext library from gettext-0.10.35 tar-1.13/m4/0000777000176300017630000000000006741044406006326 5tar-1.13/m4/Makefile.am0000444000176300016070000000051406737265504010302 ## Process this file with automake to produce Makefile.in -*-Makefile-*- 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 tar-1.13/m4/Makefile.in0000664000176300016070000001157406740607417010324 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ 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 DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ 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 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps m4/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = m4 distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ 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 install-data-am: install-data: install-data-am install-am: all-am @$(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: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .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 # 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. .NOEXPORT: tar-1.13/m4/ccstdc.m40000444000176300016070000000564406731703113007747 # 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. ## ----------------------------------------- ## ## ANSIfy the C compiler whenever possible. ## ## From Franc,ois Pinard ## ## ----------------------------------------- ## # serial 2 # @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 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 CC="$ac_save_CC $ac_arg" 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) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); 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 AC_MSG_RESULT([none needed]) else AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) tar-1.13/m4/d-ino.m40000444000176300016070000000173006653515537007520 #serial 2 dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl AC_DEFUN(jm_STRUCT_DIRENT_D_INO, [AC_REQUIRE([AC_HEADER_DIRENT])dnl AC_CACHE_CHECK([for d_ino member in directory struct], jm_cv_struct_dirent_d_ino, [AC_TRY_LINK(dnl [ #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 */ ], [struct dirent dp; dp.d_ino = 0;], jm_cv_struct_dirent_d_ino=yes, jm_cv_struct_dirent_d_ino=no) ] ) if test $jm_cv_struct_dirent_d_ino = yes; then AC_DEFINE(D_INO_IN_DIRENT, 1, [Define if there is a member named d_ino in the struct describing directory headers.]) fi ] ) tar-1.13/m4/gettext.m40000444000176300016070000002452606740054665010203 # 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. # serial 107 AC_PREREQ(2.13) dnl Minimum Autoconf version required. AC_DEFUN(AM_WITH_NLS, [AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) USE_INCLUDED_LIBINTL=no dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If gettext or catgets are available (in this order) we dnl use this. Else we have to fall back to GNU NLS library. dnl catgets is only used if permitted by option --with-catgets. nls_cv_header_intl= nls_cv_header_libgt= CATOBJEXT=NONE AC_CHECK_HEADER(libintl.h, [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, [AC_TRY_LINK([#include ], [return (int) gettext ("")], gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) if test "$gt_cv_func_gettext_libc" != "yes"; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, gettext)]) fi if test "$gt_cv_func_gettext_libc" = "yes" \ || test "$ac_cv_lib_intl_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT, 1, [Define to 1 if you have gettext and don't want to use GNU gettext.]) AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then AC_CHECK_FUNCS(dcgettext) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) INSTOBJEXT=.mo fi fi ]) if test "$CATOBJEXT" = "NONE"; then AC_MSG_CHECKING([whether catgets can be used]) AC_ARG_WITH(catgets, [ --with-catgets use catgets functions if available], nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) AC_MSG_RESULT($nls_cv_use_catgets) if test "$nls_cv_use_catgets" = "yes"; then dnl No gettext in C library. Try catgets next. AC_CHECK_LIB(i, main) AC_CHECK_FUNC(catgets, [AC_DEFINE(HAVE_CATGETS, 1, [Define as 1 if you have catgets and don't want to use GNU gettext.]) INTLOBJS="\$(CATOBJS)" AC_PATH_PROG(GENCAT, gencat, no)dnl if test "$GENCAT" != "no"; then AC_PATH_PROG(GMSGFMT, gmsgfmt, no) if test "$GMSGFMT" = "no"; then AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) fi AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) USE_INCLUDED_LIBINTL=yes CATOBJEXT=.cat INSTOBJEXT=.cat DATADIRNAME=lib INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi]) fi fi if test "$CATOBJEXT" = "NONE"; then dnl Neither gettext nor catgets in included in the C library. dnl Fall back on GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. INTLOBJS="\$(GETTOBJS)" AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_SUBST(MSGFMT) USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INSTOBJEXT=.mo DATADIRNAME=share INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po else DATADIRNAME=share nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test -z "$nls_cv_header_intl"; then # Clean out junk possibly left behind by a previous configuration. rm -f intl/libintl.h fi AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) # If this is used in GNU gettext we have to set USE_NLS to `yes' # because some of the sources are only built for this goal. if test "$PACKAGE" = gettext; then USE_NLS=yes USE_INCLUDED_LIBINTL=yes fi dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLDEPS) AC_SUBST(INTLLIBS) AC_SUBST(INTLOBJS) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) AC_DEFUN(AM_GNU_GETTEXT, [AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) if test "${ac_cv_func_stpcpy+set}" != "set"; then AC_CHECK_FUNCS(stpcpy) fi if test "${ac_cv_func_stpcpy}" = "yes"; then AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) fi AM_LC_MESSAGES AM_WITH_NLS if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl The reference to in the installed file dnl must be resolved because we cannot expect the users of this dnl to define HAVE_LOCALE_H. if test $ac_cv_header_locale_h = yes; then INCLUDE_LOCALE_H="#include " else INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" fi AC_SUBST(INCLUDE_LOCALE_H) dnl Determine which catalog format we have (if any is needed) dnl For now we know about two different formats: dnl Linux libc-5 and the normal X/Open format test -d intl || mkdir intl if test "$CATOBJEXT" = ".cat"; then AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) dnl Transform the SED scripts while copying because some dumb SEDs dnl cannot handle comments. sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed fi dnl po2tbl.sed is always needed. sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed dnl In the intl/Makefile.in we have a special dependency which makes dnl only sense for gettext. We comment this out for non-gettext dnl packages. if test "$PACKAGE" = "gettext"; then GT_NO="#NO#" GT_YES= else GT_NO= GT_YES="#YES#" fi AC_SUBST(GT_NO) AC_SUBST(GT_YES) dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl *** For now the libtool support in intl/Makefile is not for real. l= AC_SUBST(l) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po changequote(, )dnl case "$srcdir" in .) posrcprefix="../" ;; /* | [A-Za-z]:*) posrcprefix="$srcdir/" ;; *) posrcprefix="../$srcdir/" ;; esac changequote([, ])dnl rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) tar-1.13/m4/inttypes_h.m40000444000176300016070000000115506646226745010703 #serial 3 dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], jm_ac_cv_header_inttypes_h=yes, jm_ac_cv_header_inttypes_h=no)]) if test $jm_ac_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) tar-1.13/m4/isc-posix.m40000444000176300016070000000114706525613070010417 #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 undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) tar-1.13/m4/jm-mktime.m40000444000176300016070000000060506716055331010373 #serial 7 dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl dnl mktime.c uses localtime_r if it exists. Check for it. AC_CHECK_FUNCS(localtime_r) if test $ac_cv_func_working_mktime = no; then AC_DEFINE_UNQUOTED(mktime, rpl_mktime, [Define to rpl_mktime if the replacement function should be used.]) fi ]) tar-1.13/m4/largefile.m40000444000176300016070000000703306731703113010430 #serial 4 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 dnl Written by Paul Eggert . dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, [AC_CACHE_CHECK([for $1 value to request large file support], ac_cv_sys_largefile_$1, [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { ac_cv_sys_largefile_$1=no ifelse($1, CFLAGS, [case "$host_os" in # IRIX 6.2 and later require cc -n32. changequote(, )dnl irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl if test "$GCC" != yes; then ac_cv_sys_largefile_CFLAGS=-n32 fi ac_save_CC="$CC" CC="$CC $ac_cv_sys_largefile_CFLAGS" AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) CC="$ac_save_CC" esac]) }])]) dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, [case $2 in no) ;; ?*) case "[$]$1" in '') $1=$2 ;; *) $1=[$]$1' '$2 ;; esac ;; esac]) 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, [AC_CACHE_CHECK([for $1], $2, [$2=no changequote(, )dnl $4 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in -D$1) $2=1 ;; -D$1=*) $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; esac done changequote([, ])dnl ]) if test "[$]$2" != no; then AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) fi]) AC_DEFUN(AC_SYS_LARGEFILE, [AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_ENABLE(largefile, [ --disable-largefile omit support for large files]) if test "$enable_largefile" != no; then AC_CHECK_TOOL(GETCONF, getconf) AC_SYS_LARGEFILE_FLAGS(CFLAGS) AC_SYS_LARGEFILE_FLAGS(LDFLAGS) AC_SYS_LARGEFILE_FLAGS(LIBS) for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do case "$ac_flag" in no) ;; -D_FILE_OFFSET_BITS=*) ;; -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; -D_LARGE_FILES | -D_LARGE_FILES=*) ;; -D?* | -I?*) AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; *) AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; esac done AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, ac_cv_sys_file_offset_bits, [Number of bits in a file offset, on hosts where this is settable.] [case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_file_offset_bits=64 ;; esac]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, ac_cv_sys_largefile_source, [Define to make fseeko etc. visible, on some hosts.], [case "$host_os" in # HP-UX 10.20 and later hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) ac_cv_sys_largefile_source=1 ;; esac]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, ac_cv_sys_large_files, [Define for large files, on AIX-style hosts.], [case "$host_os" in # AIX 4.2 and later aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) ac_cv_sys_large_files=1 ;; esac]) fi ]) tar-1.13/m4/lcmessage.m40000444000176300016070000000156406654507574010465 # 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. # serial 2 AC_PREREQ(2.13) dnl Minimum Autoconf version required. AC_DEFUN(AM_LC_MESSAGES, [if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your locale.h file contains LC_MESSAGES.]) fi fi]) tar-1.13/m4/malloc.m40000444000176300016070000000177006657223040007752 #serial 3 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 AC_DEFUN(jm_FUNC_MALLOC, [ dnl xmalloc.c requires that this symbol be defined so it doesn't dnl mistakenly use a broken malloc -- as it might if this test were omitted. AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, [Define if the malloc check has been performed. ]) AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, [AC_TRY_RUN([ char *malloc (); int main () { exit (malloc (0) ? 0 : 1); } ], jm_cv_func_working_malloc=yes, jm_cv_func_working_malloc=no, dnl When crosscompiling, assume malloc is broken. jm_cv_func_working_malloc=no) ]) if test $jm_cv_func_working_malloc = no; then AC_SUBST(LIBOBJS) LIBOBJS="$LIBOBJS malloc.$ac_objext" AC_DEFINE_UNQUOTED(malloc, rpl_malloc, [Define to rpl_malloc if the replacement function should be used.]) fi ]) tar-1.13/m4/mktime.m40000444000176300017630000000756706737255742010023 #serial 1 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. 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 #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_UNISTD_H # include #endif #if !HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { (const char *) 0, "TZ=GMT0", "TZ=JST-9", "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])) /* Fail if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test) */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; if (mktime (&tm) == (time_t)-1) exit (1); } static void mktime_test (now) time_t now; { struct tm *lt; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); now = time_t_max - now; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); } static void irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); if (tm.tm_mon != 2 || tm.tm_mday != 31) exit (1); } static void bigtime_test (j) int j; { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) exit (1); } } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) continue; time_t_max--; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) mktime_test (t); mktime_test ((time_t) 60 * 60); mktime_test ((time_t) 60 * 60 * 24); for (j = 1; 0 < j; j *= 2) bigtime_test (j); bigtime_test (j - 1); } irix_6_4_bug (); spring_forward_gap (); 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 LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi ]) tar-1.13/m4/progtest.m40000444000176300016070000000260206405015313010336 # 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. # serial 1 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 /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done 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 ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) tar-1.13/m4/realloc.m40000444000176300016070000000202306657223125010120 #serial 3 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 AC_DEFUN(jm_FUNC_REALLOC, [ dnl xmalloc.c requires that this symbol be defined so it doesn't dnl mistakenly use a broken realloc -- as it might if this test were omitted. AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, [Define if the realloc check has been performed. ]) AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, [AC_TRY_RUN([ char *realloc (); int main () { exit (realloc (0, 0) ? 0 : 1); } ], jm_cv_func_working_realloc=yes, jm_cv_func_working_realloc=no, dnl When crosscompiling, assume realloc is broken. jm_cv_func_working_realloc=no) ]) if test $jm_cv_func_working_realloc = no; then AC_SUBST(LIBOBJS) LIBOBJS="$LIBOBJS realloc.$ac_objext" AC_DEFINE_UNQUOTED(realloc, rpl_realloc, [Define to rpl_realloc if the replacement function should be used.]) fi ]) tar-1.13/m4/uintmax_t.m40000444000176300016070000000110706707352471010514 #serial 3 dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) if test $jm_ac_cv_header_inttypes_h = no; then AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' if doesn't define.]) fi ]) tar-1.13/m4/ulonglong.m40000444000176300016070000000072206707246401010505 #serial 1 dnl From Paul Eggert. AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_COMPILE([], [unsigned long long i = (unsigned long long) -1;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the unsigned long long type.]) fi ]) tar-1.13/m4/utimbuf.m40000444000176300016070000000171306646227325010163 #serial 2 dnl From Jim Meyering 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. AC_DEFUN(jm_STRUCT_UTIMBUF, [ AC_CHECK_HEADERS(utime.h) AC_REQUIRE([AC_HEADER_TIME]) AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, [AC_TRY_COMPILE( [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif ], [static struct utimbuf x; x.actime = x.modtime;], fu_cv_sys_struct_utimbuf=yes, fu_cv_sys_struct_utimbuf=no) ]) if test $fu_cv_sys_struct_utimbuf = yes; then AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . Some systems have utime.h but don't declare the struct anywhere. ]) fi ]) tar-1.13/m4/utime.m40000444000176300016070000000051106556355170007626 #serial 1 dnl From Jim Meyering dnl Replace the utime function on systems that need it. dnl FIXME AC_DEFUN(jm_FUNC_UTIME, [ AC_CHECK_HEADERS(utime.h) AC_REQUIRE([jm_STRUCT_UTIMBUF]) AC_REQUIRE([AC_FUNC_UTIME_NULL]) if test $ac_cv_func_utime_null = no; then jm_FUNC_UTIMES_NULL AC_REPLACE_FUNCS(utime) fi ]) tar-1.13/m4/utimes.m40000444000176300016070000000156206646227345010022 #serial 3 dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. 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)); }], ac_cv_func_utimes_null=yes, ac_cv_func_utimes_null=no, ac_cv_func_utimes_null=no) rm -f core core.* *.core]) if test $ac_cv_func_utimes_null = yes; then AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, [Define if utimes accepts a null argument]) fi ] ) tar-1.13/m4/xstrtoumax.m40000444000176300016070000000116306707352471010744 #serial 1 # autoconf tests required for use of xstrtoumax.c AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) AC_CHECK_HEADERS(stdlib.h) AC_REPLACE_FUNCS(strtoumax) dnl We don't need (and can't compile) the replacement strtoull dnl unless the type `unsigned long long' exists. dnl Also, only the replacement strtoumax invokes strtoull, dnl so we need the replacement strtoull only if strtoumax does not exist. case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in yes,no) AC_REPLACE_FUNCS(strtoull) ;; esac ]) tar-1.13/src/0000777000176300017630000000000006741044407006576 5tar-1.13/src/ChangeLog0000444000176300016070000046174606615753674010316 1998-10-28 Paul Eggert * Unofficial version 1.12.lfs.4. * system.h (voidstar): Use void * if __STDC__ is defined, not merely nonzero. * rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC. On many installations, rexec is disabled. 1998-08-07 Paul Eggert * names.c (uid_to_uname, gid_to_gname): Don't used cached name for nameless users and groups. 1998-02-02 Paul Eggert * Unofficial version 1.12.lfs.1. 1997-12-17 Paul Eggert * incremen.c (ST_DEV_MSB): New macro. (NFS_FILE_STAT): Use most significant bit of st_dev, even if it's unsigned. 1997-12-08 Paul Eggert * system.h (ST_NBLOCKS): Fix typo in definition. 1997-12-03 Junio Hamano * buffer.c, common.h, list.c, tar.c: Implement -E (ending-file) option. 1997-11-10 Paul Eggert * rmt.c (main): Don't assume mt_count is of type daddr_t. * delete.c (records_read): Now off_t. (move_archive): Don't assume mt_count is of type daddr_t. 1997-10-30 Paul Eggert * arith.h (TARLONG_FORMAT): Fix typo: %uld -> %lu. Use unsigned when long long (%lld -> %llu). (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long. (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long. * arith.c (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long. * rmt.c (allocated_size): Now size_t, and now initialized to 0. (prepare_record_buffer): Arg is now size_t. Remove now-useless casts. (main): Use `long' for status, so that it can store ssize_t. Use daddr_t, mode_t, size_t, off_t when appropriate. Convert daddr_t and off_t values ourselves, since they might be longer than long. Convert other types using `long' primitives. When processing MTIOCTOP, do not try to pass resulting count back, since it won't work (it could be too large) and it's not expected anyway. * update.c: (append_file) Use off_t, size_t, ssize_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. (update_archive): Cast -1 to dev_t when necessary. * tar.c (check_decimal): Now returns 1 if successful, 0 otherwise, and returns uintmax_t value into new arg. Check for arithmetic overflow. (decode_options): Avoid overflow if record_size fits in size_t but not int. Check for overflow on user or group ids. * compare.c (diff_init, process_rawdata, read_and_process, diff_sparse_files, diff_archive): Use off_t, pid_t, size_t, ssize_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. (process_noop, process_rawdata, process_dumpdir, read_and_process): Size arg is now size_t. (diff_sparse_files): Arg is now off_t. Check for size_t overflow when allocating buffer. * rtapelib.c (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__): Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. (get_status_string, get_status_off): New function. (get_status): Now returns long, so that it can store ssize_t. Invoke get_status_string to do the real work. (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t. (rmt_lseek__): Now returns off_t, using new get_status_off function. (rmt_ioctl__): Convert mt_count by hand, since it might be longer than long. * mangle.c (extract_mangle): Check for overflow when converting off_t to size_t. Use off_t, size_t when appropriate. Remove now-useless casts. * system.h (mode_t): Remove; now done by autoconf. (ST_NBLOCKS): Do not overflow if st_size is near maximum. Return number of ST_NBLOCKSIZE-byte blocks, not number of 512-byte blocks; this also helps to avoid overflow. (st_blocks): Declare if needed. (ST_NBLOCKSIZE): New macro. (, ): Include if available. (CHAR_BIT): New macro. (uintmax_t): New typedef. (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND, UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros. * names.c (name_init): Fix typo in error message: FILE* was passed, but char* was wanted. (read_name_from_file, name_gather, addname, name_match, name_scan, add_exclude): Use size_t when appropriate. Remove now-useless casts. (exclude_pool_size, allocated_exclude_pool_size): Now size_t. * extract.c (newdir_umask, current_umask): Now mode_t. (extract_sparse_file): Args now use off_t. (set_mode, set_stat, make_directories, extract_sparse_file, extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. * misc.c (quote_copy_string): Use size_t when appropriate. Remove now-useless casts. * list.c (read_and, list_archive, read_header, decode_mode, print_header, print_for_mkdir): Use mode_t, off_t, size_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. (read_header): Check for overflow when converting header size. (from_oct): Now static. Now returns uintmax_t. `where' arg is now const char *. Size arg is now size_t. Now takes new type and maxval args. Compute result using uintmax_t, not long. Report error if field does not contain octal number in range. (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct, off_from_oct, size_from_oct, time_from_oct, uid_from_oct, uintmax_from_oct): New functions. (stringify_uintmax_t_backwards): New function. (decode_mode, print_for_mkdir): Mode arg is now mode_t. (skip_file): Offset arg is now off_t. * buffer.c (record_start_block, save_totsize, save_sizeleft, real_s_totsize, real_s_sizeleft, current_block_ordinal): Now off_t. (write_error): Arg is now ssize_t. (child_pid): Now pid_t. (available_space_after): Now size_t. (child_open_for_compress, child_open_for_uncompress, flush_write, open_archive, flush_write, write_error, flush_read, close_archive): Use pid_t, ssize_t, size_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. * delete.c (records_read): Now daddr_t. (move_archive): Arg is now daddr_t. Check for overflow when computing offset. (move_archive, delete_archive_members): Use daddr_t, off_t when appropriate. Remove now-useless casts. * rmt.h (rmt_read__, rmt_write__): Now returns ssize_t. (rmt_lseek): Now returns off_t. * create.c (to_oct): Now static. Value arg is now uintmax_t. Accept new args giving name of type of octal field, for error messages. Report an error if the value is too large to fit in the field. (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions. (write_eot, write_long, finish_header, deal_with_sparse, finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when appropriate. Remove now-useless casts. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for off_t. (find_new_file_size): 1st arg is now off_t*. (finish_sparse_file): Args now use off_t, not long. Check for lseek error. (create_archive, dump_file): Cast -1 to dev_t when necessary. (dump_file): Device arg is now dev_t. Avoid overflow when testing whether file has holes by using the new ST_NBLOCKSIZE macro. * incremen.c: these numbers. (write_dir_file): Cast time_t to unsigned long before printing as %lu. * common.h: uintmax_from_oct): New decls. (print_for_mkdir): 2nd arg is now mode_t. (skip_file): Arg is now off_t. 1997-04-25 François Pinard * Release 1.12. * tar.c (main): Attempt to clarify the delayed error exit message. Reported by Richard Stallman. * list.c (decode_mode): New name for demode. * list.c (read_and): Set current_stat.st_mtime before testing it. Reported by Sven Verdoolaege. 1997-04-24 François Pinard * create.c (dump_file): Before asserting that we cannot access a directory, make sure tar is not installed suid root. Reported by Dietmar Braun. * misc.c (quote_copy_string): Undo 1996-05-02 change, meant for the file mangler, now obsolete. This will do neater listings. Reported by Max Hailperin and Noah Friedman. * buffer.c, incremen.c, misc.c, tar.c: Replace dangling semicolons by continue; or break; depending on context. Reported by Robert E. Brown. 1997-04-23 François Pinard * arith.c (add_to_tarlong_helper): Compare a superdigit against a value, rather than an unsigned sum against zero. Reported by Bruno Haible. * misc.c (quote_copy_string): Replace many if's by a switch. 1997-04-22 François Pinard * Prerelease 1.11q. * extract.c (extract_archive): Check if directory extraction was attempted over an existing directory before attempting recovery, so avoiding extraction loops in cases like DIR/../DIR. Reported by Marc Boucher. * delete.c (delete_archive_members): New name for junk_archive. * common.h, tar.c (main): Adjusted. 1997-04-20 François Pinard * tar.c (usage): Update comment about --mode. 1997-04-19 François Pinard * buffer.c: Include if necessary. Reported by Bruno Haible. * common.h: Declare write_dir_file for incremen.c. Reported by Bruno Haible. * incremen.c (get_directory_contents): Nest an assignment and test within another set of aesthetical parentheses. Reported by Bruno Haible. * tar.c (check_octal): Deleted. Reported by Bruno Haible. * buffer.c (flush_archive): Add one impossible switch case. * delete.c (junk_archive): Add two impossible switch cases. * list.c (read_and): Add one impossible switch case. * update.c (update_archive): Add two impossible switch cases. Reported by Bruno Haible. * names.c (name_gather): Explicitly declare allocated_length as an int, do not imply it. Reported by Bruno Haible. 1997-04-18 François Pinard * Prerelease 1.11p. * Makefile.am (tar._o, rmt._o): Revise rules further. Reported by Bruno Haible and Ken Steube. 1997-04-16 François Pinard * arith.h: Prefer a single long over a long long, if possible. Also reject long long if it is not long enough :-). Reported by Bruno Haible. 1997-04-15 François Pinard * buffer.c, tar.c, update.c, common.h: Replace _COMMAND suffixed constants by _SUBCOMMAND suffixed. Rename enum command by enum subcommand, main_command_option by subcommand_option and set_main_command_option by set_subcommand_option. * create.c (dump_file): Remove badperror label, call WARN explicitly at the two other needed places instead. Remove badfile label, expand the proper code at the three other needed places instead. Delete the critical_error flag, just set exit_status to TAREXIT_FAILURE rather than setting this flag. 1997-04-12 François Pinard * delete.c (move_archive): Declare it void. Reported by Bruno Haible and Kaveh R. Ghazi. 1997-04-11 François Pinard * Prerelease 1.11o. * Makefile.am: Duplicate rules for the ansi2knr case. Reported by Kaveh R. Ghazi and Marcus Daniels. 1997-04-10 François Pinard * common.h: Change mode_option from int to struct mode_change *. * tar.c (decode_option): Use mode_compile. * create.c (start_header): Use mode_adjust. 1997-04-09 François Pinard * All: Replace all flag_ prefixed variables by _option suffixed. * tar.c: Replace OPTION_ prefixed macros by _OPTION suffixed. * buffer.c, tar.c, update.c, common.h: Replace COMMAND_ prefixed macros by _COMMAND suffixed, COMMAND_NONE by UNKNOWN_COMMAND, and delete TOO_MANY_COMMAND. Turn these into an enum and declare main_command_option of this enum type, to replace command_mode, which was an int, everywhere. * tar.c (decode_options): Initialise main_command_option. (set_main_command_option): New function to replace SET_COMMAND_MODE. Diagnostic ambiguous command as soon as seen. However, be forgiving if command has merely been repeated. * buffer.c, tar.c, common.h: Have info_script_option be at the same time a flag and the option value, no need for a separate info_script variable. Rename rsh_command to rsh_command_option, tape_length to tape_length_option, compress_program to use_compress_program_option, volno_file to volno_file_option. * tar.c (set_use_compress_program_option): New function. * buffer.c, names.c, tar.c, common.h: Have files_from_option be at the same time a flag and the option value, no need for a separate namefile_name variable. * buffer.c, create.c, tar.c, commun.h: Rename volume_label to volume_label_option. * incremen.c, tar.c, common.h: Rename gnu_dumpfile to listed_incremental_option. Let it unitialised for just incremental. * create.c (create_archive): No need to check both incremental_option and listed_incremental_option, as the later implies the former already. * create.c, tar.c, common.h: Rename preset_owner to owner_option, preset_group to group_option and preset_mode to mode_option. * create.c, incremen.c, list.c, tar.c, commun.h: Have after_date_option be a Boolean instead of a three-valued flag. Rename threshold_time to newer_mdate_option, which may be looked at without checking after_date_option first, as threshold_time before. Make newer_cdate_option an alias for newer_mdate_option. 1997-04-08 François Pinard * buffer.c: Use int after extern to declare time_to_start_writing. * extract.c: Use int after static to declare we_are_root. Reported by Ariel Faigon. 1997-04-03 François Pinard * list.c (read_and): Use the proper enum constants in switch, instead of oldish and wrong numbers. Reported by Martin Mares. 1997-04-01 François Pinard * arith.c [SUPERDIGIT] (zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong, add_to_tarlong, mult_tarlong, print_tarlong): Rename all functions by adding a _helper suffix. * arith.h [SUPERDIGIT]: Replace function prototypes by macros, each calling the function with _helper appended, and extracting pointers out of the tarlong structures. Reported by Andrew A. Ivanov and Kaveh R. Ghazi. * buffer.c (child_open_for_compress): Copy all records coming out of the compressor, not only the last one. Reported by Alois Steindl, Mark Bynum, Martin Mares, Nelson H. F. Beebe, Scott J. Kramer and Torkel Hasle. 1997-03-29 François Pinard * create.c (dump_file): Ignore unreadable directories when --ignore-failed-read. Reported by Ralph Schleicher. * create.c (deal_with_sparse): Chain the last partial zero block with the preceding data, do not try sparing it. This correction is approximative, as the whole thing should be rethought. Reported by Andreas Degert. 1997-03-24 François Pinard * All: Rename head to current_header, hstat to current_stat, and header_format to current_format. * update.c (update_archive): Rename nstat to stat_data. * create.c: Do not extern hstat, as common.h does it. (deal_with_sparse): Get rid of amidst_data, since numbytes is already usable as a flag for the same thing. 1997-03-21 François Pinard * names.c (name_gather): Do not declare static variables which do not need to be. Have allocated_length represent the full allocated length, instead of only the name part. It's clearer. (addname): Similar cleanups. 1997-03-20 François Pinard * compare.c: Always call report_difference when there is a problem, so the exit status will be set in all cases. Build the message string if necessary, so avoiding stdargs/varargs. (report_difference): If NULL argument, just set the exit status without reporting a message. Move out the word `differs' in all callers, do not insert into an English message. (read_and_process): Return void, as the int result is never used. Assume processors returns nonzero for success and zero for failure, instead of 0 for success and -1 for error. (process_rawdata, process_dumpdir): Adjusted. * compare.c: Remove different as a global variable, it is useless. (diff_sparse_files): Make different a local variable, reinitialise it on each call. Otherwise, after any error elsewhere, all sparse files were always and falsely reported as erroneous. Reported by James E. Carpenter and Tim Towers. 1997-02-25 François Pinard * tar.c: Adjust copyright years in --version output. * create.c (dump_file): Allow saving directories even with -o. Reported by Daniel Trinkle. 1996-11-26 François Pinard * compare.c (verify_volume) [FDFLUSH]: Use fsync even in that case. Reported by Marty Leisner. 1996-11-25 François Pinard * buffer.c (new_volume): Write file name in two words. * names.c (name_next): Idem. * buffer.c (flush_read): Speak of record size instead of blocksize. Reported by Christian Kirsch. 1996-11-22 François Pinard * list.c (read_header): Return failure, instead of success, whenever checksums do not match. Reported by Marc Boucher and Marty Leisner. * incremen.c (get_directory_contents): Use stat_data instead of current_header for checking normal files. Otherwise, new or modified files in old directories were not dumped, that is, if a directory was older than the listed entry, it was skipped completely without checking the contained files. Reported by David Johnson, John David Anglin and Wolfram Wagner. * buffer.c (open_archive): When updating the archive, initialize the access variable with reading mode, not update mode. Reported by Andreas Schwab. * delete.c (junk_archive): Initially jump directly into the loop, so deleting a file after a big one will not destroying the archive. Reported by Akiko Matsushita, Andreas Schwab, Eric Backus, Jeff Siegel, Saul Lubkin, Stuart Kemp and Yasushi Suzudo. 1996-11-19 François Pinard * incremen.c (get_directory_contents): Compute distance using the start of the proper buffer. Reported by David Johnson, Donald H. Locker, John David Anglin, Marc Boucher and Noah Friedman. * tar.c (usage): Revise the mandatory/optional sentence again. Reported by Karl Berry. 1996-11-18 François Pinard * Prerelease 1.11.14. * tar.c (usage): Explain the purpose of the program. * tar.c (usage): Clarify the mandatory/optional sentence. Reported by Alex Schmidt. * system.h [HAVE_SYS_TAPE_H]: Include sys/buf.h if it exists, to avoid many warnings on BSD/OS. Reported by Dan Reish. 1996-11-11 François Pinard * incremen.c (write_directory_file): Renamed from write_dir_file. (get_directory_contents): Renamed from get_dir_contents. * common.h: Adjusted. * all: Cleanup around local variables, renaming them more appropriately, using initializers when natural, and moving them closer to the blocks where they are used. A bit of reorganisation in the sources: * common.h: New file, for holding all GNU tar specific definitions, which were previously held in tar.h. * tar.h: Now limited to the archive format description only. * all: Include common.h instead of tar.h. * delete.c: New file, holding delete code out of update.c. * update.c: Now limited to appending type of commands. * compare.c: New name for diffarch.c. * incremen.c: New name for increm.c. * names.c: Moved over all name processing from tar.c. * tar.c, common.h: Adjusted. * Makefile.am: Adjusted. * system.h (lstat) [!S_ISLNK]: Define as stat. * create.c, diffarch.c, increm.c: Remove similar definitions. * tar.c: Merge --version-control into --backup, make it obsolete. 1996-11-10 François Pinard * all: Add a FIXME comment everywhere errno is modified by tar. * buffer.c (new_volume): Return nonzero/zero for success/failure, instead of zero/negative. Callers adjusted. Use xstrdup on file name given by user with the answer "n", so avoiding the apparently useless allocation of one extra byte. Avoid using p. * buffer.c: Add DEBUG_FORK conditional code. Reported by Thomas König and Ulrich Drepper. * misc.c (maybe_backup_file): In the renaming message, say that the previous file is being renamed, not the newly extracted one. * buffer.c (backspace_output): Change return type to void, since returned values were never used. * update.c (move_arch): Idem. (xdup2): New name for redirect, order of arguments was not natural. 1996-11-09 François Pinard * all: Remove all white lines between open braces and comments. * tar.h: Declare access_mode as an enum and as a variable. Adjust declaration of open_archive. * buffer.c: (open_archive, new_volume): Use access instead of reading. Callers adjusted for using enum access_mode arguments. (flush_archive, close_archive): Use access_mode, and cleanup. * diffarch.c (verify_volume): Use access_mode. * buffer.c (child_open_for_compress, child_open_for_uncompress): Split of previous child_open_for_compress. Clean up. (open_archive): Adjusted for calling the proper function above. 1996-11-09 François Pinard * Prerelease 1.11.13. * tar.c (usage): Do not tie --posix anymore to 1.12. * extract.c (set_stat): Until we know better, for the time being, limit restoring symbolic link attributes to lchown only. * all: Mini clean up. Systematically set logical variables to one instead of auto-incrementing them (PDP-11 time is over by now! :-). Replace some single letter counters or cursors by variables named counter or cursor. Simplify a few C constructs. * buffer.c, tar.h: Delete read_error_flag, set but never used. Rename r_error_count to read_error_count. * create.c (clear_buffer): Use memset instead of explicit loop. (zero_block_p): Renamed from zero_block, callers adjusted. 1996-11-07 François Pinard * rmt.c (private_strerror): Add const's to sys_errlist declaration. Reported by Fabio d'Alessi. 1996-11-06 François Pinard * tar.h: Add OPTION_BACKUP, OPTION_SUFFIX, OPTION_VERSION_CONTROL. Renumber options from 3 instead of from 10. Declare flag_backup. * tar.c: Include backupfile.h. Implement --backup, --suffix and --version-control decoding. Adjust usage documentation. * misc.c (maybe_backup_file, un_backup_file): New functions. * tar.h: Adjusted. * buffer.c (child_open_for_compress, open_archive, new_volume): Use the new functions. * extract.c (extract_archive): Idem. Reported by Jeffrey Mark Siskind, Karl Berry, Karl Heuer, Marty Leisner, Melissa Weisshaus and William Bader. * misc.c (assign_string): Moved over from tar.c. * tar.h: Adjusted. 1996-10-28 François Pinard * tar.h: Declare enum read_header, for return values of read_header. * diffarch.c (verify_volume): Adjusted. * list.c (read_and, read_header): Adjusted. * update.c (junk_archive, update_archive): Adjusted. * update.c: Rename prev_status to previous_status. * update.c (junk_archive): Delete found_stuff, use logical_status. 1996-10-15 François Pinard * buffer.c (new_volume, open_archive): Soften messages. * create.c, extract.c: Add quotes around slashes in some messages. * tar.c (usage): Added a missing equal sign after --directory. Reported by Jan Djarv. 1996-09-22 François Pinard * tar.c: Write --no-recursion instead of --no-recurse. Reported by Noah Friedman. 1996-09-20 François Pinard * tar.h: Delete label_pattern. * tar.c (main): Do not compile anymore volume_label as a regexp. (usage): Document --label as accepting a globbing pattern. * buffer.c, tar.c: Do not include regex.h neither rx.h. * buffer.c (check_label_pattern): New function. (open_archive, flush_read): Use it, instead of re_match. * tar.c (decode_options): Better space --version output. 1996-09-19 François Pinard * Prerelease 1.11.12 * Makefile.am (EXTRA_PROGRAMS): Compile rmt properly, instead of letting make use default .c to executable rule. * tar.c: Include getopt.h. * system.h: Don't. * increm.c (get_dir_contents): Consider all NFS devices as equal before deciding that a directory was renamed, so automount will not fool GNU tar into spurious incremental redumping. Reported by Frank Koenen, Giorgio Signorini, Joachim Holzfuss, Konno Hiroharu, R. Kent Dybvig and Wolfram Wagner. * tar.c (usage): Add bug report address in --help output. (decode_options): Add copyright and authors in --version output. * increm.c: New name for gnu.c. * Makefile.am (tar_SOURCES): Adjusted. * gnu.c (init_buffer, add_buffer, get_buffer, flush_buffer): Moved over from misc.c. Deleted is_dot_or_dot_dot and remove_any_file. * misc.c (is_dot_or_dotdot, remove_any_file): Moved over from gnu.c. Deleted init_buffer, add_buffer, get_buffer and flush_buffer. * tar.h: Adjusted. 1996-09-18 François Pinard * buffer.c (write_error): Obey --totals before aborting. Reported by Greg Chung. * buffer.c (read_error, write_error): Renamed from readerror and writeerror. * tar.c (read_name_from_file): Rename c to character. 1996-09-17 François Pinard * arith.h (tarlong): The typedef tarlong, when an array, is now wrapped inside a struct to avoid bugs in EWS 4.2 C compiler. * arith.c: Adjusted. Reported by Paul Eggert. * buffer.c: Declare archive_stat statically. (open_archive): Do not declare archive_stat locally. (close_archive): Limit archive draining to while reading a pipe. Reported by Andreas Schwab. 1996-09-16 François Pinard * system.h: Define protected defaults for open parameter symbols. [EMUL_OPEN3]: Intercept open calls and redirect them to open3. * open3.c: New file, moved over from lib/. Merely include system.h rather than config.h, errno.h and open3.h. [EMUL_OPEN3]: The compilation of the file depends on this symbol. When it was in lib/, we were using LIBOBJS to control this. * Makefile.am: Adjusted. * extract.c: Don't call open3.h. Reported by Jim Meyering. 1996-09-09 François Pinard * Makefile.am (libexec_PROGRAMS): Rely on @RMT@, not rmt. (bin_PROGRAMS): Do not include @RMT@. * gnu.c (remove_any_file): Protect value of errno in case of failure to remove a directory, in non-recursive mode. This should correct spurious diagnostics while extracting directories over already existing hierarchies. Reported by Martin Mares and Marty Leisner. 1996-09-04 François Pinard * gnu.c (read_dir_file): Diagnose file names over PATH_MAX. (get_dir_contents, add_dir_name): Increase namebuf many times if this is needed to receive a loong file name. Reported by Carsten Heyl. * Makefile.am (tar.o, rmt.o): Special rules for defining LOCALEDIR, instead of having it defined on all compiles. * Makefile.am: Remove check related lines, moved over to tests/. 1996-09-03 François Pinard * Makefile.am: Use genfile in check_PROGRAMS, not noinst_PROGRAMS. (check-local): Do not depend on genfile. 1996-08-24 François Pinard * Makefile.am (EXTRA_DIST): Do not mention ansi2knr.1 nor ansi2knr.c, as Automake now handle them automatically. 1996-07-18 François Pinard * arith.h: Include tar.h, not arith.h, so FATAL_ERROR is defined. [!SUPER_DIGIT]: Declare arguments to ..._tarlong routines as pointers to unsigned long and not arrays, for avoiding pointers to arrays, and nevertheless have arrays passed by reference rather than by value. * arith.c: Adjusted function headers accordingly. * buffer.c, tar.c: Removed address-of operators, using tarlongs. Reported by Christian T. Dum, Jim Meyering and Kaveh R. Ghazi. * arith.h [SUPER_DIGIT]: Avoid indirection in all macros for Accumulators. This, in particular, solves a bug where the pointer value itself was printed, rather than the pointed to value. Reported by Drew Sullivan and Wolfram Wagner. * Makefile.am (EXTRA_DIST): Include ansi2knr.[1c] for now. Reported by Christian T. Dum, Jim Meyering and Kaveh R. Ghazi. 1996-07-17 François Pinard * Prerelease 1.11.11. * Makefile.am (check-local): Ensure relinking if the service libraries where modified (waiting for Automake to do it!). 1996-07-16 François Pinard * rmt.c (strerror): It is a macro on some systems. Reported by Santiago Vila Doncel. 1996-07-15 François Pinard * Prerelease 1.11.10. * checktar.sh: Use a more regular WARNING in message. 1996-07-09 François Pinard * tar.h: Declare that unquote_string as returning int, not char *. * misc.c (unquote_string): New name for un_quote_string. Clean up a bit, return a boolean indicator for success, not a string. * gnu.c (read_dir_file), mangle.c (extract_mangle), tar.c (add_exclude): Callers adjusted, so they never use a NULL return as an actual string. In fact, the result of unquote_string is always used, even if the quoting was improper. Reported by Johan Vromans. 1996-05-03 François Pinard * tar.h: Define TTY_NAME as a macro, instead of an external array. * tar.c: Remove declaration of TTY_NAME. * tar.h: Rename new_time to threshold time. Make it GLOBAL. * tar.c, create.c, gnu.c, list.c: Adjusted. (decode_options): Clarify -N and --newer-mtime decoding, ensure one of them is called at most, otherwise it would misbehave. 1996-05-02 François Pinard * misc.c (quote_copy_string): Ensure spaces are backslash-quoted. Reported by Max Hailperin. * list.c (decode_header): Some clean up. Recognize POSIX archive headers, avoid fetching atime or ctime in this case. [!S_IFBLK || !S_IFCHR]: Ensure st_rdev is cleared appropriately. * tar.h: Rename head_standard to header_format, so turning an int to an enum archive_format. Adjust decode_header prototype. * diffarch.c, extract.c, list.c, update.c: Usages changed. * create.c: Ensure oldgnu_header is only used when OLDGNU_FORMAT. (Correction just starting to be made--will be comprehensive...) Reported by Anders Andersson, Bdale Garbee, Chris G Demetriou and David J. MacKenzie. * buffer.c, gnu.c, rtapelib.c, tar.c: Diagnose errors on fclose. Reported by Jim Meyering. 1996-05-01 François Pinard * buffer.c (close_archive): If reading and the archive is finished, read until end of archive, for avoiding an error message from the upstream process if we are reading from a pipe. Reported by Bennett Todd, Dick Streefland, Don Bennett, Ian Lance Taylor, Jean-loup Gailly and Piercarlo Grandi. * create.c (dump_file): Add note about accuracy of st_blocks. Reported by Dick Streefland. * diffarch.c: Include if it exists. (verify_volume): fsync, than ioctl(, FDFLUSH) first. Reported by Marty Leisner. 1996-04-29 François Pinard * list.c (isotime): New function. (print_header) [!USE_OLD_CTIME]: Use it instead of ctime. Reported by Karl Berry and Markus Kuhn. 1996-04-23 François Pinard * extract.c (set_stat): Accept a new parameter telling if this is a symbolic link. In this case, and if lchown exists, use it instead of chown. Callers adjusted. (extract_archive): Do call set_stat over restored symbolic links. Reported by Andreas Koppenhoefer, Bernard Derval, Ian Jackson, Matt Power, Warren Dodge and Wolfram Gloger. * extract.c (extr_init): If the umask was very restrictive at start of tar, nevertheless ensure we create intermediate directories with such permissions that we can at least add files into them. (extract_archive): Same, but for final directory. Ensure directory attributes are restored in all cases. Reported by Piercarlo Grandi. * tar.c: Implement --owner, --group and --mode options. * tar.h: Declare preset_owner, preset_group and preset_mode. * create.c: Obey these variables. Reported by Ken Raeburn, Richard Stallman and Stephen Gildea. * create.c (dump_file): When wanting the length of the link name, use strlen, rather then doing wrong arithmetic giving the number of removed slashes at the beginning of it. Reported by Brian R. Smith. * create.c (start_header): Try removing leading slashes even for long file names. Reported by Art Isbell, Fritz Elfert and Robert E. Brown. * buffer.c (new_volume): Avoid calling closeout_volume_number if the --volno-file option was not specified, so avoiding crashes. * tar.c (usage): Document the --volno-file option. Reported by Christoph Litauer, Daniel S. Barclay, David Taylor, Erik D. Frederick, Larry Creech, Loïc Prylli, Loren J. Rittle, Marty Leisner, Neil Faulks, Paul Mitchell, Rocky Giannini, Roy Marantz, Sylvain Rougier, Timothy J. Lee and Werner Almesberger. 1996-04-22 François Pinard * system.h (N_): Define marking macro for delayed translations. * rmt.c: Use N_ instead of _ for returned strings. It does not make sense translating messages in a remote process, not knowing the language in use in the local process. 1996-04-18 François Pinard Instead of -UU for removing directories, request a long option. * tar.c: Implement --recursive-unlink. (usage): Document --recursive-unlink. (decode_options): Have --recursive-unlink imply --unlink-first. * tar.h: Declare --recursive-unlink. * extract.c (extract_archive): Use flag_recursive_unlink instead of flag_unlink_first > 1. Reported by Andreas Schwab. 1996-04-17 François Pinard * Makefile.am (EXTRA_DIST): New name for DIST_OTHER. * tar.c (addname, name_gather): Zero out freshly allocated struct name, to prevent garbage to get into the structure. Reported by Jonathan Kamens. 1996-03-28 François Pinard * create.c (dump_file): Cast %ld argument to (long). Reported by Constantin Belous and Jörgen Hägg. 1996-03-21 François Pinard * tar.c (main): Return int, not void. Reported by Timothy J. Lee and Peter Seebach. 1996-02-28 François Pinard * Makefile.am: Use RMT instead of PROGRAMS and noinst_HEADERS instead of HEADERS. 1996-02-12 François Pinard * Makefile.am: Remove CONFIG_HEADER, not required by Automake 0.29. 1996-02-03 François Pinard Ensure --totals work correctly for huge archives: * arith.h, arith.c: New files. * Makefile.am: Use arith.h and arith.c. * tar.h: Do not declare tot_written anymore, include "arith.h". * tar.c (main): Call init_total_written and print_total_written. * buffer.c: Rename tot_written to total_written, make it tarlong. (init_total_written, print_total_written): New routines. Reported by Albert W. Dorrington, Chris F.M. Verberne, David Martin, Eduardo Villasenor de Rivas, Greg Chung, Jim Meyering, John R. Vanderpool, Jon Lewis, Jörg Weule, Jörgen Hägg, Rod Thompson, Russell Cattelan, Ted Rule and Tor Lillqvist. Ensure --tape-length is usable for huge media: * tar.h: Declare tape_length as tarlong instead of int. * tar.c (decode_option): Decode tape_length as tarlong, and use its value pre-multiplied by 1024. * buffer.c (flush_write): Use bytes_written and tape_length as tarlongs. Declare bytes_written outside flush_write. (init_total_written): Zero out bytes_written as well. Reported by Dave Barr. 1996-01-15 François Pinard * rtapelib.c (rmt_open__) [MSDOS]: Do not call setuid/setgid. Reported by Yasushi Suzudo. 1996-01-14 François Pinard * Makefile.am (AUTOMAKE_OPTIONS): Select gnits and ansi2knr. 1996-01-08 François Pinard * create.c: Initialize linklist to NULL. Reported by Bradley A. Smith. 1996-01-07 François Pinard * Makefile.am: Add parts of previous Makefile.in as FIXME comments. 1996-01-03 François Pinard * tar.c (usage): Avoid an unescaped new line. Reported by Kaveh R. Ghazi and Mark Bynum. * system.h: Declare valloc if it exists and is not #defined. * create.c (start_header): Add missing DEFAULT_FORMAT case. * gnu.c (read_dir_file): Use NULL instead of (char *) 0. * Makefile.am: Install rmt in $(libexec), not in sbin. * tar.c (decode_options): Add a semicolon so default case is not completely empty, for better ANSI C compliance. Reported by John David Anglin, Kaveh R. Ghazi and Mark Bynum. 1996-01-02 François Pinard * buffer.c (open_archive): Allocate real_s_name at run time instead of statically, because PATH_MAX is not always constant. Reported by Bruno Haible, John David Anglin, Jonathan Thornburg, Kaveh R. Ghazi, Martin Bellenberg, Marty Leisner, Nelson H. F. Beebe, Roland McGrath and Thomas König. * Makefile.am (DIST_OTHER): Distribute BACKLOG. Reported by Marty Leisner. 1996-01-01 François Pinard * system.h: Include "error.h" instead of declaring error (). Reported by Jim Meyering. 1995-12-31 François Pinard * Makefile.am: New file. 1995-12-30 François Pinard * Makefile.in: Define LOCALEDIR in DEFS. * system.h [!ENABLE_NLS]: Add replacement for bindtextdomain. * tar.c (main): Add call to bindtextdomain. * rmt.c (main): Add calls to bindtextdomain and textdomain. Reported by Ulrich Drepper. * buffer.c, create.c, diffarch.c, gnu.c, list.c, rmt.h, system.h, tar.h, update.c: Replace __P by PARAMS, to respect ANSI C. * rtapelib.c, rmt.h: Replace all __rmt* symbols by rmt*__. 1995-12-28 François Pinard * Prerelease 1.11.9. * extract.c (extr_init): Initialize variables in any case, instead of partly relying on static initializations. Remove static initializations for those variables. 1995-12-24 François Pinard * extract.c (extract_archive): On systems not having symbolic links, attempt extracting symbolic links as hard links instead, as POSIX suggests. Emit a diagnostic on first occurrence. * extract.c (extract_archive): On systems not having contiguous files, continue extracting them as regular files as before, but emit a diagnostic on first occurrence. 1995-12-23 François Pinard * tar.h: Declare remove_any_file. * gnu.c (remove_any_file): New name for recursively_delete. Add a parameter to control recursion. Inverse return value, so 0 is failure. Ensure errno is always valid in this case. (gnu_restore): Specify recursion when calling remove_any_file. * extract.c (maybe_recoverable): New routine. (extract_archive): Call maybe_recoverable rather than make_directories, so deleting files is also tried. Some cleanup. * tar.h: Declare flag_unlink_first. * tar.c (decode_options): Decode --unlink-first (-U). (usage): Document it. * extract.c (extract_archive): With -U, call remove_any_file prior to extraction for everything except directories. Reported by Andrew J. Schorr, Andrey A. Chernov, Axel Boldt, Bo Nygaard Bai, Chris F.M. Verberne, Chris G. Demetriou, Christian Callsen, Daniel S. Barclay, Ian Jackson, James Stevens, Seth Robertson, Tito Flagella, Warner Losh and Wolfram Wagner. 1995-12-22 François Pinard * tar.c (name_close): Specify static. (main): Call name_close after create_archive. * create.c (create_archive): Do not call name_close. * tar.c: Clean out names_arg[cv] crumb. (name_next): Simplify routine by merging both loops. (addname): Avoid xstrdup'ing result of new_name, this corrects a memory leak. * extract.c: Normalize error message so the file is identified at the beginning of it. * tar.h (USAGE_ERROR): New macro. * tar.c: Use USAGE_ERROR as far as possible. Cleanup and normalization in string for usage errors. Better detection of conflicting options about archive format or compression program. * tar.c (decode_options): Decouple cases for -C and files. Count number of input files. Cowardly refuse to create an empty archive file, if -c is given without input file or list. Reported by Karl Berry and Robert Bernstein. 1995-12-21 François Pinard * buffer.c: Rename a few err variables to status. * extract.c: Rename a few check variables to status. Corrections to speed-up the sizeing pass in Amanda: * tar.h: Declare dev_null_output. * buffer.c (open_archive): Detect when archive is /dev/null. (flush_write): Avoid writing to /dev/null. * create.c (dump_file): Do not open file if archive is being written to /dev/null, nor read file nor restore times. Reported by Greg Maples and Tor Lillqvist. * gnu.c: Have dir_list properly initialized to NULL. Reported by Paul Nordstrom and Tim Lashua. * extract.c: Rename ourmask to newdir_umask. Rename and complement notumask to current_umask. * list.c (print_for_mkdir): New name for pr_mkdir. * tar.h: Adjust declaration. * extract.c (make_directories): New name for make_dirs. Some cleanup in variable names. * extract.c: Let newdir_umask be a global variable. (make_directories): Use newdir_umask while creating intermediate directories. They used to be 0777 unconditionally. Reported by Bruce Evans, Harald König and James Crawford Ralston. 1995-12-20 François Pinard * create.c (finish_header): Avoid printing the header for long names or links, this avoids spurious `Visible longname error's. Reported by Arne Wichmann, Chris F.M. Verberne, Frank Koenen, Franz-Werner Gergen, Ian Jackson, Jon Lewis, Mark Kollert, Paul Nordstrom, Ted Rule, Thomas Priesner, Tim Rylance and Tom Tromey. 1995-12-19 François Pinard * buffer.c: Have real_s_name able to hold PATH_MAX characters, not only NAME_FIELD_SIZE. It was breaking --multi-volume --listed-incremental when backing up long file names. Many symptoms really: a screwed-up date on the incremental data file, dumping incremental which should not have been, etc. * (flush_read): Avoid altering save_name pointer value, use cursor instead. Also avoid the optimization of cleaning each save_name only once per flush_read if it did not change: it was using `save_name = real_s_name;', and since save_name may be freed at any time, this is/was really running after trouble. Reported by Alexander V. Lukyanov, Axel Habermann, Chance Reschke, Claus Heine, Christian von Roques, Daniel Hagerty, Daniel S. Barclay, Dirk Herr-Hoyman, Donald H. Locker, Ed Childs, Heiko Schinke, Hunyue Yau, Goeran Uddeborg, Grant McDorman, Joachim Seelig, Joe DeBattista, Jonathan Thornburg, Joutsiniemi Tommi Il, Jürgen Lüters, Keith Young, Kelly Stephens, Kevin Dalley, Konno Hiroharu, Larry Creech, Martin Mares, Michael Dietrich, Michael Giddings, Michael Meissner, Michael P Urban, Paul Siddall, Pierce Cantrell, Peter Fox, Robert Frey, Roderich Schupp, Sam Richards, Stephen J Bevan, Torsten Lull, Wolfram Gloger and Yu-Min Liang. * system.h: Include and for BSDi. Reported by Chris Arthur, Dan Reish, Karl Berry and Skip Montanaro. * rmt.c (private_strerror): New, copied from lib/error.c. Remove sys_errlist declaration, and use syserror instead. Reported by Chris Arthur, Coranth Gryphon, Erich Stefan Boleyn, Fabio d'Alessi, Greg Hudson, Jason R. Mastaler, Skip Montanaro, Thomas Krebs and Troy Rudolph. 1995-12-17 François Pinard * extract.c (extract_archive): Unrecognized types were defaulted to sparse files instead of regular files, because of an improper /* Fall through. */. * create.c, diffarch.c, extract.c, gnu.c, list.c, rtapelib.c, tar.c: Drop register specifications, useless in GNU's tar, as tar does not use longjmp, and GNU C has -O automagically set. * extract.c (extract_archive): Inhibit creation of links, special devices, directories, etc., when --to-stdout option is being used. Reported by Donald B Gordon, Gerben Wierda, Greg Chung, Norbert Kiesel and Roman Czyborra. 1995-12-04 François Pinard * tar.h: Implement FATAL_ERROR, telling error is not recoverable. * tar.c (main): Diagnose delayed error, for TAREXIT_FAILURE only. * buffer.c, diffarch.c, gnu.c, list.c, tar.c, update.c: Replace all `ERROR ((TAREXIT_FAILURE,' by `FATAL_ERROR ((0,'. Reported by Marty Leisner. * list.c (read_and): When telling block numbers in verbose output, clearly list block numbers for NUL blocks and end of file. Reported by Jörg Weule. * tar.c (usage): Document --newer-time. Reported by Greg Chung. 1995-11-30 François Pinard * system.h: Conditionally include prior to . * rmt.c: Do not include anymore. Reported by Harald König and Kaveh R. Ghazi. * rtapelib.c: Remove seemingly useless include of setjmp.h. * rtapelib.c: Try to get EOPNOTSUPP defined in all cases. If needed, include net/errno.h or sys/inet.h when they exist. Reported by Goeran Uddeborg, J.J. Bailey, John L. Chmielewski, Peder Chr. Norgaard and Yasushi Suzudo. 1995-11-29 François Pinard * tar.c (decode_options): Diagnose --block-compress properly. Was segment violating because falling into --blocking-factor. * buffer.c, create.c, diffarch.c, genfile.c, gnu.c, tar.c: Uniformly write nonzero instead of non-zero. Reported by Karl Berry. * system.h, buffer.c, create.c, diffarch.c, tar.c, update.c [MSDOS]: Instead of __MSDOS__, all occurrences. * extract.c (extract_archive) [MSDOS]: Avoid delaying restoration of timestamps for directories. * buffer.c (child_open_for_compress): Add a missing semi-colon. * diffarch.c (diff_archive): Avoid comparing uid and gid. Reported by Yasushi Suzudo. * tar.c (usage): Correct absolute-paths to absolute-names. Reported by Jonathan Kamens. * tar.c (usage): Indicate that --exclude uses globbing, and that --label uses regexps. Reported by John R. Vanderpool and Matti Aarnio. * tar.c (names_notfound): Do not report a fake namelist entry, so gzipped empty archives will not produce spurious diagnostics. Reported by Jonathan Kamens. 1995-11-23 François Pinard * tar.c (name_scan, name_match): Avoid labels and gotos. 1995-11-22 François Pinard * Makefile.in (DISTFILES): Distribute ChangeLog. * ChangeLog: New, extracted from top-level ChangeLog. * tar.c (main, decode_options): Delay request_stdin for `-f' until all options processed, so we now for sure that `-' means standard input, not standard output. * tar.c (usage): Document that users should not count on POSIX support yet, saying it is only partially implemented so far. 1995-10-27 François Pinard * rtapelib.c (_rmt_shutdown): Add the errno_value parameter. (__rmt_open): Call shutdown if remote open fails, or else, we lose file descriptors. Reported by Holger Teutsch. 1995-10-20 Tom Tromey * tar.c (request_stdin): New function. (stdin_used_by): New variable. (name_init, add_exclude_file, decode_options): Use request_stdin if required. (confirm): Check stdin_used_by to see if stdin in use. * list.c (read_header): Consistently use sizeof to find size of checksum field. 1995-08-26 François Pinard * names.c (uid_to_uname, gid_to_gname): Ensure that the empty string is returned when not found, instead of the previous one. 1995-08-06 François Pinard * buffer.c (new_volume): Use stderr rather than stdlis for interactions. Clarify `archive == 0' into `archive == STDIN'. Reported by Scott Hunziker. 1995-08-02 François Pinard * diffarch.c (diff_archive): When symlink differs, report the file name, not the link name. Reported by Dale R. Worley and Wolfram Wagner. 1995-07-23 François Pinard * Makefile.in (Makefile): Remove some useless lines. 1995-06-27 François Pinard * tar.h: Sort out declarations a little better. * tar.c (decode_options): Reorder the cases in the big switch. * tar.h: Introduce OLDGNU_COMPATIBILITY, enum archive_format, variable archive_format. Delete flag_old_archive, flag_standard. * tar.c (decode_options): Initialize archive_format so that -o yields V7_FORMAT, nothing yields OLDGNU_FORMAT, --posix yields GNU_FORMAT, and --posix with POSIXLY_CORRECT yields POSIX_FORMAT. * create.c (start_header): Use TMAGIC and TVERSION if required. Replace all flag_old_archive and flag_standard appropriately. * tar.c: Implement a --record-size option, which is an alternate way of saying --blocking-factor, in bytes this time. * tar.h, tar.c, create.c (dump_file): Implement a --no-recurse option, to help using tar with find. Reported by Chris G. Demetriou, Jamie Zawinski, Kimball Collins, Oswald P. Backus IV and Stuart Poulin. * tar.h, tar.c, buffer.c (child_open_for_compress): Delete --block-compress, issue a warning if used. It was never obeyed while outputting on disk files, where it would have been useful. It was only obeyed for pipes, remotes and devices, that is, exactly when it would be an error not to specify it. Reported by Hans Guerth, James H Caldwell Jr, Jean-loup Gailly, Jeffrey W. Parker, John D. Sybalsky, Kai Schlichting, Marcin Matuszewski, Mike Silano, Paul O'Connor, Pete Geenhuizen and Richard Stallman. * buffer.c (open_archive): Cosmetic changes. * buffer.c, diffarch.c, tar.h, update.c: Rename fl_read by flush_read and fl_write by flush_write. 1995-06-26 François Pinard * tar.c (usage): Remind that `USER@' may be specified. Reported by John J. Szetela and Oliver Trepte. * tar.c (usage): Replace `modificators' by `modifiers'. Reported by Alan Modra. * extract.c (set_mode, set_stat): New functions, from previous code, elsewhere. Replace various occurrences of code appropriately with function calls. Ensure mode bits are properly set in all circumstances. This may imply calling set_mode twice. Reported by Piercarlo Grandi and Tim Magill. * extract.c: Save the whole stat information in saved directory information, instead of parts of it, all mistyped. (restore_saved_dir_info): Free information as we consume it. Simplify code by using set_mode and set_times. Rename routine to apply_delayed_set_stat, and do some other cleanup around it. * *.[hc]: Replace flag_confirm by flag_interactive, flag_do_chown by flag_same_owner, flag_exstdout by flag_to_stdout, flag_follow_links by flag_dereference, flag_gnudump by flag_incremental, flag_ignorez by flag_ignore_zeros, flag_keep by flag_keep_old_files, flag_local_filesys by flag_one_file_system, flag_modified by flag_touch, flag_multivol by flag_multi_volume, flag_namefile by flag_files_from, flag_new_files by flag_after_date, flag_oldarch by flag_old_archive, flag_reblock by flag_read_full_records, flag_run_script_at_end by flag_info_script, flag_sayblock by flag_block_number, flag_sorted_names by flag_same_order, flag_sparse_files by flag_sparse, flag_startfile by flag_starting_file, flag_use_protection by flag_same_permissions, OPTION_COMPRESS_PROG by OPTION_USE_COMPRESS_PROGRAM, flag_volhdr by volume_label, flag_compressprog by compress_program, flag_rsh_command by rsh_command, and flag_volno_file by volno_file. * tar.c: Rename --modification-time by --touch, and provide a warning for the old option. 1995-06-24 François Pinard * list.c (decode_header): At extraction time, use the stored uid if uname is unknown in this system, and use the stored gid if gname is unknown in this system, instead. This solves a long lasting bug by which restored files were all owned by root, using an incomplete /etc/passwd or /etc/group file. * names.c: Rename finduname to uid_to_uname and findgname to gid_to_gname, exchanging the order of arguments. Use uid_t and gid_t instead of int's. Use empty strings in cached_[ug]name for marking there is no valid cached translation, instead of using magic values for cached_[ug]id. Rename finduid to uname_to_uid and findgid to gname_to_gid, adding a second argument to store the result if found, and returning a success/failure indication, not anymore assuming the current [ug]id by default. * tar.h, create.c, list.c: Adjust prototypes and callers. Reported by Anders Andersson, Bernard Derval, Brian Perkins, Charles Fu, Daniel Trinkle, Ian Jackson, Johannes Helander, Michael Lin, Richard Sims, Robert E. Brown, Tim P. Starrin and Torkel Hasle. * tar.h, create.c, list.c, names.c, tar.c: Implement --numeric-owner, to replace the NONAMES define. Then, ensure some reasonable values to magic and linkflags if POSIX. Reported by Benedikt Stockebrand, Ian Jackson and Stephen Gildea. * buffer.c: Delete save_block function, as well as saved_block_pointer and saved_block variables. Blocks were carefully saved indeed, but never consulted after the fact. * tar.h: Delete save_block prototype. * *.c: Delete all usages of save_block. * rmt.c: Add static to variable declarations. * list.c (read_header): Rename recsum to recorded_sum. 1995-06-23 François Pinard * *.[hc]: Rename --read-full-blocks to --read-full-records, --block-size to --blocking-factor, and --record-number to --block-number. * tar.c (decode_options): Diagnose usage of old names. * *.[hc]: Rename saverec to save_block, findrec to find_next_block, and userec to set_next_block_after. Replace endofrecs by available_space_after which does the space computation instead of returning the end pointer, adjust and simplify all callers, by using variable data_block systematically. Also, rename union block field charptr to buffer. 1995-06-22 François Pinard * *.[hc]: Exchange "record" and "block" almost everywhere and whenever appropriate, to follow the terminology used in P1003.1-1990, and so removing a lot of confusion in sources. * tar.h: Prefer naming constants and fields per P1003-1.1990 as far as possible. Rename those remaining LF_xxx to GNUTYPE_xxx. * *.c: Adjusted accordingly. * tar.h: Clean up the header structure. Make very clear what is specified by POSIX, and what is GNU format, and what is extended header for sparse files. Use xxx_FIELD_SIZE instead of NAMSIZ, TUNMLEN and TGNMLEN. Dismangle some other names, on the way... * *.c: Adjusted accordingly. * tar.h: Do not declare baserec, declare current_block_ordinal. * buffer.c (current_block_ordinal): New function. Rename baserec to record_start_block, and make it static. * list.c: Use current_block_ordinal, avoid baserec computations. * buffer.c, list.c: Get rid of saved_recno and annofile. * buffer.c, diffarch.c: Move no_op and wantbytes from buffer.c to diffarch.c. Correct prototypes so first arg is long. * tar.h: Do not declare no_op nor wantbytes, anymore. * tar.h, buffer.c: Move ar_block, ar_record and ar_last from tar.h to buffer.c, renaming them to record_start, current_block, record_end respectively. * update.c: Add temporary extern declaration for record_start, current_block and record_end. * tar.h, buffer.c: Move ar_reading from tar.h to buffer.c, renaming it to reading_archive. * diffarch.c: Add temporary extern declaration for reading_archive. * buffer.c, create.c, diffarch.c, extract.c, gnu.c, list.c, names.c, rmt.c, rmt.h, rtapelib.c, tar.c, update.c: Replace many #ifdef's by #if's, and #ifndef's by #if !'s. * buffer.c (redirect): New name for dupto. Callers changed. * create.c (dump_file), extract.c (extract_archive, extract_sparse_file), tar.h: Remove crumb about ending_blanks and end_nulls. * Makefile.in (all): Do not prepare genfile by default, as it is only needed for checking. * tar.c (decode_options): Diagnose lacking arguments to old options. Reported by Aage Robeck, Alan Cox, Benny Holmgren, Bruno Haible, Daniel Quinlan, Michael Schmidt, Richard J. Kettlewell and Robert Leslie. 1995-06-21 François Pinard * rtapelib.c (__rmt_open): Avoid dereferencing remote_user when NULL. Reported by Alois Steindl, Amos Yahil, Anders Liljeborg, Andre Novaes Cunha, Andreas Haumer, Andreas Reuter, Andy Gay, Bdale Garbee, Bradley A. Smith, Brett Gaines, Bruce Jerrick, Calvin Cliff, Cameron Elliott, Charles Lopes, Charles M. Hannum, Chris Metcalf, Christophe Colle, Christopher T. Johnson, Dale Wiles, David Shaw, Dimitri Bougoulias, Daniel Hagerty, Dave Gregorich, David Mansfield, David Nugent, David Shaw, David Steiner, Douglas Scott, Dunstan Vavasour, Edgar Taube, Eduardo Kortright, Elmer Fittery, Eric Benson, Eric M. Boehm, Gerd Knorr, Graham Whitted, Harald Milz, Heiko Schlichting, James V. Di Toro III, Jan Carlson, Janne Snabb, Jeff Sorensen, Jens Henrik Jensen, Jim Clausing, John J. Szetela, John R. Vanderpool, Jurgen Botz, Karl Berry, Karlos Z. Smith, Karsten Thygesen, Koji Kishi, Luke Mewburn, Manuel Munier, Marc Ewing, Matthew J. D'Errico, Martin Goik, Maxime Taksar, maximum entropy, Michael Hayes, Michael Schwingen, Michael Smolsky, Michael Kaufman, Mike Walker, Minh Tran-Le, Mitsuaki Masuhara, Nelson H. F. Beebe, Noel Cragg, Olaf Wucknitz, Oliver Trepte, Olivier Roussel, Patrick Fulconis, Paul Kanz, Paul Nordstrom, Pekka Janhunen, Peter Carah, Peter Kutschera, Phil Hands, Randy Bias, Reuben J. Ravago, Ricardo Marek, Robert Anthony Nader, Rod Buchanan, Roderich Schupp, Russell Cattelan, Scott J. Kramer, Scott L. Burson, Simon Wright, Sisira Jayasinghe, Steffen Stempel, Thomas M. Browder Jr., Thomas Waas, Tim Bradshaw, Tim Lashua, Timothy J. Lee, Tom Popovitch, Toshiaki Nishi, Victor J. Griswold, Wayne Christopher, William J. Eaton, Wlodzimierz Jan Martin, Wolfgang Rupprecht and Wolfram Wagner. * tar.h: Remove external prototypes related to rtapelib.c, as those are already declared in rmt.h. 1995-06-18 François Pinard * buffer.c (xclose): New, from port.c (ck_close). Replace ck_close by xclose in all modules. * port.c: Remove ck_close. * port.c: Remove ck_malloc, because xmalloc can be used instead, now that it protects against malloc(0) returning NULL. * gnu.c (gnu_restore), list.c (read_header): Replace ck_malloc with xmalloc. In gnu_restore, remove skipping code in case of failed allocation, because tar already aborted in xmalloc. * tar.h: Delete ck_malloc declaration. * port.c: Remove mknod, link, chown and geteuid, which normally exist on Unix. To be reinserted later, as needed. Reported by Jyh-Shyang Wang, Nelson H. F. Beebe, Philippe Defert and Serge Granik. * tar.c: Declare TTY_NAME, moved over from port.c. * extract.c (extract_archive), tar.c (decode_options): Clean out old NO_OPEN3 code. * Makefile.in: Adjusted. * buffer.c (child_open): In-line previous ck_pipe code. * tar.h: Delete ck_pipe declaration. * port.c: Delete ck_pipe function. * misc.c: New, reorganizing remaining code from port.c. * port.c: Deleted. * Makefile.in: Adjusted. * misc.c (un_quote_string): If `\' ends a string to unquote, just pass it undisturbed. From Robert Lipe. * system.h: Replace many #ifdef by #if, #ifndef by #if !. 1995-06-17 François Pinard * Release 1.11.8. * Makefile.in (mostlyclean): Remove also _*.c and _*.o. * create.c (dump_file), gnu.c (get_dir_contents): Cast (int) explicitely for test. * Makefile.in ($(OBJECTS)): Depend on ../intl/libgettext.h instead of ../intl/libintl.h, which does not always exist. * genfile.c: Define EXIT_SUCCESS and EXIT_FAILURE if not. * tar.c (main): Use TAREXIT_SUCCESS instead of EXIT_SUCCESS. * tar.h: Use off_t instead of long for the second argument in __rmt_lseek declaration. * system.h: Remove typedef of off_t, because AC_TYPE_OFF_T takes care of it now. Reported by Coranth Gryphon, Jim Blandy and Thomas Krebs. 1995-06-15 François Pinard * checktar.sh: Send a message saying that it is still useless. 1995-06-11 François Pinard * tar.h, tar.c (decode_options), extract.c (extract_archive), diffarch.c (diff_archive), create.c (dump_file, start_header), tar.c (decode_options): Replace flag_absolute_paths by flag_absolute_names. * tar.c (decode_options): Implement OBSOLETE_ABSOLUTE_NAMES for reporting --absolute-paths as obsolete. * system.h: Conditionnaly include and define setlocale to void independently of ENABLE_NLS. Reported by Ulrich Drepper. 1995-06-10 François Pinard * tar.c (long_options): Use no_argument and require_argument, instead of constants. Have long option names translated to short options whenever possible, rather than setting flags directly: easing option management is worth a few extra nanoseconds. * tar.c (long_options): Add --gunzip as meaning -z. Reported by Bruno Haible. 1995-06-07 François Pinard * Makefile.in: Use subdir and distdir. * system.h [NLS]: Simplify by merely including . Also, define setlocale to empty only if the setlocale function is not known, instead of when is missing. * Makefile.in (INCLUDES): Use ../intl in compilations, taking care of the fact libintl.h might have been symlinked there. 1995-06-05 François Pinard * tar.c, tar.h: Rename TAR_EXTERN to GLOBAL. * tar.h: Delete COMMAND_VERSION. * tar.c: Replace OPTION_HELP and OPTION_VERSION commands by show_help and show_version variables, so `--version --create' will not diagnose `Too many commands'. Adjust things so this works. Reported by Marty Leisner. 1995-06-04 François Pinard * Makefile.in (check): New goal. * checktar.sh: New script. * genfile.c: New file. * Makefile.in (all): Prepare genfile. * Makefile.in: Distribute checktar.sh and genfile.c. 1995-06-03 François Pinard * tar.h: Adjust so extracted doc/header.texi is neater. 1995-05-30 François Pinard * tar.c (name_match): Use %s for printing directory, not %d. Reported by Marty Leisner. * tar.c (name_gather, addname): chdir_name receives string pointers which might later be overwritten, but nevertheless saved into structures, so, use xstrdup for the time being. Reported by Michael Holmes. * tar.c (name_next, name_from_list): Abort when chdir fails. Reported by Ian Jackson and Marty Leisner. 1995-05-28 François Pinard * rmt.h: Declare second argument of __rmt_lseek to be off_t instead of long, so it is the same as in rmt.c. Reported by Chris Arthur. * buffer.c (close_archive): Compensate for the addition of 2 to ar_block at open_archive time, for when -M used, just before calling free. Reported by Bruno Haible, Clinton Carr, Hernan Prieto Schmidt, Kevin Dalley, Loren J. Rittle and Marty Leisner. * rmt.c: Replace SSIZE by STRING_SIZE, avoiding a conflict with some header files. Reported by Kaveh R. Ghazi and William Bader. * tar.c: Use DEVICE_PREFIX instead of DEVICE_PREXIX, and WITH_REGEX instead of WITH_REGEC. Reported by Bruno Haible. 1995-05-16 François Pinard * Prerelease 1.11.7. * Makefile.in (tar): Have $(OBJECTS) depend on system.h. * system.h: Many adjustements for GNU gettext. 1995-05-09 François Pinard * Makefile.in: Clean glocale out. 1995-05-08 François Pinard * Makefile.in: Use libintl.a while linking. * system.h: Include unconditionally, instead only if WITH_CATALOG. Let define _() appropriately. * tar.c (main): Call textdomain. 1995-05-02 François Pinard * system.h, gnu.c, list.c, port.c: Avoid superfluous parentheses in macro definitions. * port.c: Capitalize macro arguments. * buffer.c, create.c, diffarch.c, tar.c: Use comma operator when assignment in test. 1995-04-27 François Pinard * port.c (link): Use WARN to report the message. Reported by Sherwood Botsford. 1995-03-19 François Pinard * Makefile.in: Remove GLOCALE, add LINGUAS, use fp_WITH_CATALOGS. * system.h: Use WITH_CATALOGS to define _() differently. 1995-03-14 François Pinard * rtapelib.c (__rmt_open): Close the unused side of each pipe, instead of the useful one, prior to processing. Reported by Charles Lopes and Minh Tran-Le. 1995-02-22 François Pinard * Makefile.in: Replace `date' by `echo timestamp'. 1995-02-19 François Pinard * Makefile.in: Support ID files. Do not distribute TAGS. 1995-02-13 François Pinard * Makefile.in: Use top_srcdir. 1995-02-11 François Pinard * gnu.c (is_dot_or_dotdot): Through NFS, readdir might deliver empty filenames under old Solaris 2.4, causing endless loops in tar. As a workaround, avoid `' as done already for `.' and `..'. Reported by Jan Carlson. 1995-02-05 François Pinard * Makefile.in (maintainer-clean): New name for realclean. 1995-01-04 François Pinard * extract.c (make_dirs) [MSDOS]: Correct for Turbo C, which may return EACCES instead of EEXIST on mkdir. Reported by Jeffrey Goldberg. * tar.c (usage) [MSDOS]: Do not tell about -N and related. (decode_options) [MSDOS]: Be blind to -N and related. Reported by Jeffrey Goldberg. * rmt.h (_remdev): A filename is not remote if the colon is preceeded by a slash, to take care of `/:/' which is a shorthand for `/...//fs' on OSF's Distributing Computing Environment (DCE) and Distributed File System (DFS). Reported by Travis L. Priest. 1995-01-03 François Pinard * tar.c (decode_options): Renamed from options. Convert oldish-style non-dashed options to modern writing before performing option decoding. Diagnose when modern options are met before old style options are fully converted. This allows mixing of option styles on a single call. Avoid getoldopt and use getopt_long instead. * getoldopt.c: Deleted. * tar.h: Prototype deleted. * Makefile.in: Adjusted. Reported by Bruno Haible, Les Mikesell, Patrick Timmons and Saul Lubkin. 1995-01-02 François Pinard * system.h: New file, split out of tar.h. * buffer.c, create.c, diffarch.c, extract.c, getoldopt.c, gnu.c, list.c, mangle.c, names.c, port.c, tar.c, update.c: Include "system.h", and move the inclusion of "tar.h" down after system dependent definitions. * Makefile.in: Distribute system.h. * rmt.c: Include "system.h", and simplify accordingly. * rtapelib.c: Include "system.h", and simplify accordingly. * rmt.h: Simplify according to the inclusion of "system.h". * system.h: Include conditionnaly , , , and . * buffer.c, diffarch.c, rmt.c, rtapelib.c, update.c: Simplify accordingly. * system.h: If it exists, include prior to , to account for problems when GNU libc 1.0x is installed over SunOS 4.1.3: GNU libc does not provide sys/mtio.h, so it is taken from Sun header files which use things like _IOW, which GNU libc despises, sys/ioccom.h then provides definitions. Reported by Joseph E. Sacco. 1994-12-27 François Pinard * rmt.h: Ensure strrchr is defined to rindex in some cases. Reported by Karl Vogel. 1994-12-18 François Pinard * tar.h: Include and declare ISASCII. * gnu.c: Adjust, declare and use ISDIGIT and ISSPACE. * list.c: Adjust, declare and use ISODIGIT and ISSPACE. * port.c: Adjust, declare and use ISPRINT. Reported by Bruno Haible, Konno Hiroharu and Max Hailperin. 1994-12-11 François Pinard * buffer.c, tar.c [WITH_REGEX]: Check it. 1994-12-03 François Pinard * Prerelease 1.11.6. * rmt.c: Adjust for localization, by including and , by defining _(), by defining and calling setlocale, and by defining and initializing program_name. * Makefile.in: Use locale.o and libtar.a with rmt. * Makefile.in: Ensure INSTALL_DATA is defined. * Makefile.in, tar.h, tar.c: Localize, adapting from how it is done in sharutils. * Makefile.in, tar.c: Rename PRODUCT to PACKAGE. 1994-11-29 François Pinard * buffer.c (backspace_output): Change cur from long to off_t. * diffarch.c (diff_archive): Idem for offset. * extract.c (extract_archive): Idem for offset. * rmt.c: Idem for lseek (). (main): For case 'L', use atol instead of atoi, and cast the result to (off_t) rather than (long). * rtapelib.c (__rmt_lseek): Idem of offset argument. * tar.h: Change offset of sp_array from int to off_t. * update.c (move_arch): Change cur from long to off_t. Reported by David J. MacKenzie. 1994-11-26 François Pinard * rmt.h, tar.h, buffer.c, create.c, diffarch.c, extract.c, gnu.c, list.c, rtapelib.c, update.c: Rename _ to __P. * tar.h, rmt.h: Declare _ as a macro returning its argument, or else, include and declare _ as gettext. * tar.c: Possibly include and call setlocale. * rmt.c, buffer.c, create.c, diffarch.c, extract.c, getoldopt.c, gnu.c, list.c, mangle.c, port.c, rtapelib.c, tar.c, update.c: Use _ macro over all localizable strings. * rtapelib.c: Declare prototype for xstrdup. Do not declare strstr, which is not needed. 1994-11-01 François Pinard * Makefile.in: Clean up, following those of GNU m4. I will not detail all the changes here. * tar.c: Use PRODUCT and VERSION instead of version_string. 1994-10-30 François Pinard * tar.h [__STDC__]: Use #if instead of #ifdef. 1994-10-27 François Pinard * rmt.h, tar.h, buffer.c, create.c, diffarch.c, extract.c, gnu.c, list.c, mangle.c, tar.c, update.c: Rename all f_* variables to flag_*. * tar.h, buffer.c, tar.c, update.c: Rename cmd_mode into command_mode. * tar.c (SET_COMMAND_MODE): New macro, use it. * port.c (quote_copy_string): Prevent sign extension of character while copying it to an int. * (un_quote_string): Increment to_there pointer in all cases. Reported by Konno Hiroharu, Mats Lofkvist, Max Hailperin and Ryutaro Susukita. 1994-10-09 François Pinard * rmt.c, rtapelib.c, tar.h: Get rid of CONFIG_BROKETS. 1994-10-04 François Pinard * diffarch.c (fill_in_sparse_array): Add a cast for Pyramid's dumb compiler. Later remove the cast and compare to 0 instead. * extract.c (extract_archive): Idem. Reported by Karl Vogel and Kaveh R. Ghazi. 1994-09-27 François Pinard * diffarch.c: Normalize capitalization in diagnostics. 1994-09-26 François Pinard * tar.c (name_next, name_match): Abort tar if directory cannot be changed, instead of going on. This is not an innocuous error. Reported by Marty Leisner. 1994-09-15 François Pinard * rtapelib.c: Include "rmt.h" only once has been included, because off_t might not be defined otherwise. Reported by James W. McKelvey, John L. Chmielewski, Karl Vogel, Kaveh R. Ghazi an and Jim Meyering and Tilman Schmidt. 1994-09-14 François Pinard * Makefile.in: Cleanup... (DISTFILES): Distribute TAGS. (ansi2knr): Use $(LIBS). (TAGS): Make TAGS in $(srcdir) only. (distclean): Do not remove TAGS. (realclean): Remove TAGS. (Makefile): Have ./config.status create this Makefile only. 1994-09-13 François Pinard * buffer.c: Remove the presetting of stdlis, because stdout is not a constant in GNU libc. Reported by Joseph E. Sacco and Thomas Bushnell n/BSG. * buffer.c (new_volume): Pass an otherwise unused argument to wait, do not use NULL. Reported by Thomas Bushnell n/BSG. 1994-09-05 François Pinard * Makefile.in (TAGS): Remove -t on etags call. It has been the default behavior for a few releases of Emacs and it seems that option -t is now disappearing (from Emacs 19.25, at least). Reported by Goeran Uddeborg. 1994-09-02 François Pinard * gnu.c (get_dir_contents): Do not set dp->allnew if dp is not set itself. Reported by Piercarlo Grandi. * extract.c (extract_archive): Issue diagnostic or verbose messages to msg_file, instead of stdout. Reported by Piercarlo Grandi. 1994-08-23 François Pinard * tar.h: Do not declare alloca if already defined, so HP's +Olibcalls compiler option works. Reported by John David Anglin. * rtapelib.c (__rmt_open): Use REMOTE_SHELL only if defined. Otherwise, if the command argument has been specified and REMOTE_SHELL is not defined, immediately return an error. Reported by Bruno Haible, Kaveh R. Ghazi, Marty Leisner, Torkel Hasle and William Bader. Because --rsh-command may always be given, even if no remote shell was found at configure time, remote capabilities are always compiled. This also solve other problems related to RTAPELIB. * Makefile.in: Always compile $Urtapelib.o. * buffer.c (child_open): Always test _remdev, do not depend anymore on HAVE_RTAPELIB. * rmt.h [!HAVE_RTAPELIB]: Remove some code. Reported by Andreas Schwab and Vic Abell. * rtapelib.c: Remove unused COMPAT (mis)feature. Remove most length limitations for remote host name, remote user name and remote device name. Duplicate path, and free it in all cases. * (_rmt_rexec): The `user' parameter may never by the empty string. Remove code for that case. 1994-08-22 François Pinard Little cleanup in installation: * Makefile.in: Remove rule for ../lib/libtar.a. 1994-08-21 François Pinard * Prerelease 1.11.5. * Makefile.in: Correct for when a different build directory. * tar.h: Replace W* definitions. Adapted from make 3.71. * buffer.c (close_archive): Replace WIFCOREDUMPED by WCOREDUMP. Previous WIFSIGNALED definition was excluding SIGSTOP, new definition do not exclude it anymore. We'll see. Reported by Demizu Noritoshi, Greg Black, Kaveh R. Ghazi, Robert E. Brown and Russ Evans. 1994-08-20 François Pinard This might (?) solve the dirent problems on NeXT's and Apollo's: * tar.h: Change includes and defines from older AC_DIR_HEADER style to newer and clearer AC_HEADER_DIRENT style. * create.c, gnu.c: Replace NLENGTH by NAMLEN. Reported by Drew Trieger, Hugh Secker-Walker, James W. McKelvey, Robert E. Brown and Thomas Krebs. 1994-08-17 François Pinard Remove some shadowings. * update.c (update_archive): Rename head_standard to unused. * buffer.c (open_archive): Rename head to label. (fl_read): Rename head to cursor. * gnu.c (dirent_cmp): Use (char *const *), not (const char **) for not loosing the const specifier while casting. * mangle.c (extract_mangle): Remove unused argument. * tar.h: Adjust prototype. * extract.c (extract_archive): Caller changed. * rtapelib.c (__rmt_open): Remove useless mode parameter. * rmt.h, tar.h: Adjust prototype. * rmt.h: Adjust macros calling __rmt_open. * create.c (deal_with_sparse): Remove unused argument. * create.c (dump_file): Caller changed. Reported by Greg Black. * Makefile.in: Avoid $U in defining RTAPELIB. Remove both rtapelib.o and _urtapelib.o explicit rules, not needed anymore. * rmt.h, buffer.c [HAVE_RTAPELIB]: Instead of !NO_REMOTE. Reported by Andreas Schwab. * Makefile.in: Correct a typo in $Ubuffer.o dependencies. Reported by Andreas Schwab. * rtapelib.c (__rmt_ioctl): Compile the MTIOCGET case only if this symbol is defined. This also solves a missing mt_type field on NS32016 running SysVr2.2. Reported by Greg Black. * rtapelib.c (__rmt_ioctl) : Conditionnalize only the MTIOCTOP case, not the whole routine, with the MTIOCTOP symbol. In case of unrecognized operation, return EOPNOTSUPP instead of EINVAL. * rmt.h: Always provide a prototype for __rmt_ioctl. Delete the RMTIOCTL machinery. 1994-08-16 François Pinard * rmt.c, buffer.c: Use a more uniform way of including or its alternates. Reported by Daniel R. Guilderson and Kaveh R. Ghazi. * Makefile.in: Split rule for $Urtapelib.o into one rule for rtapelib.o and one rule for _rtapelib.o, taking care of the fact that rtapelib.c is in $(srcdir) while _rtapelib.c is in current directory. Reported by Andreas Schwab, Kaveh R. Ghazi, Minh Tran-Le and Per Foreby. * rmt.c (string_error): Correct DEBUG2 into DEBUG1, and strint into string. Reported by Anders Andersson, Bruno Haible, Thomas Krebs and Thomas König. * Makefile.in: Add $U's to rtapelib and rmt specific rules. Reported by Thomas König. 1994-08-15 François Pinard * Prerelease 1.11.4. * rmt.c (numeric_error): Renamed from error. (string_error): New, to replace ERROR ((...)), unavailable in rmt.c. * rmt.c (checkbuf): Do not accept, nor return record. Use the global instead. This will get rid of useless shadowings. * rmt.h: Give prototypes for __rmt_* routines. * rtapelib.c: Include "rmt.h". * update.c (move_arch): Cast last rmtioctl argument to char *. * buffer.c (backspace_output): Idem. * diffarch.c (verify_volume): Idem. * Makefile.in (rmt): Declare dependencies over rmt.h. 1994-08-14 François Pinard * rtapelib.c: Use MTIO_CHECK_FIELD instead of mt_type. Reported by Ben A. Mesander. 1994-08-13 François Pinard * tar.h: Include if it exists, whether POSIX or not. Check if WIFSTOPPED is defined, to decide if defining others WIF*. Reported by Bruno Haible. 1994-08-11 François Pinard * extract.c (extract_archive) [O_CTG]: Declare longname variable. Initialize it as NULL. This dirty kludge will allow the module to compile on Masscomp's, for the time being. Reported by Ben A. Mesander. * tar.h, rtapelib.c: Declare strstr if we replaced it. Reported by Ben A. Mesander, Christian T. Dum and Kaveh R. Ghazi. 1994-08-10 François Pinard * create.c (dump_file): Do not test only for hpux, but also for __hpux. I added __hpux__ too, as done in tar.h. Reported by Richard Lloyd. * tar.h: Do not include anymore for HP-UX from HP-UX 8 and after, for which definitions are in , and reorganize the tests in this area. Reported by Christian T. Dum, Dimitris Fousekis, Kimmy Posey, Michael Maass, Richard Lloyd and Thomas König. 1994-08-09 François Pinard These changes for const-cleaning gnu.c and tar.c: * tar.c (read_name_from_file): Work directly on global variables instead of accepting parameters. Return success or failure as an int instead of the relocated name_buffer. (name_next): Caller changed, internal clean-up of the function. Remove trailing slashes on the command call too, not only when reading from a file through -T option. * gnu.c: Add const to name and dir_text in struct dirname. Reported by Ben A. Mesander, Bruno Haible, Christian T. Dum, Dean Gaudet, James W. McKelvey, Richard Lloyd and Robert E. Brown. 1994-08-08 François Pinard * tar.c (name_next, name_gather, addname): Use strcmp for checking for "-C", instead of decomposed tests, just for clarity. * Makefile.in (RSH): Define from configuration. (rtapelib.o): Define REMOTE_SHELL from $(RSH) while compiling. * rtapelib.c (__rmt_open): If command not given, use REMOTE_SHELL, instead of cascading tries of filenames. Reported by Bruno Haible. * tar.c: Include if FNM_LEADING_DIR is not defined, instead of checking for FNM_PATHNAME, because some define the later without defining the former. Reported by Thomas König. * create.c (dump_file): Cast alloca results, for those compilers not processing void * properly. Reported by Kaveh R. Ghazi. * Makefile.in: Get prefix and exec_prefix from configure. Reported by Andreas Schwab, Christian T. Dum and Dean Gaudet. * src/port.c: Delete mkdir (and rmdir), rename, strstr and ftruncate replacements. Reported by Kaveh R. Ghazi (for memset and strstr). Reported by Bruno Haible (for mkdir and rename). 1994-08-05 François Pinard * tar.h: Replace msg_file by stdlis. * buffer.c, gnu.c, list.c, diffarch.c: Idem. * tar.c (main): Print version on stdout, not stderr. * tar.h: Unconditionnaly insert the pad. Why play the game of forcing the compiler to do it for us? (Hum! I'm not so sure.) Reported by Bruno Haible. * list.c (read_header): Initialize signed_sum to 0. Use this opportunity for slightly reorganizing the code around. Reported by Anders Andersson, Andrey A. Chernov, Bruno Haible and Chris Ransom. * tar.c: Declare name_buffer_length as size_t instead of int. Reported by Andreas Schwab, J.T. Conklin, Kaveh R. Ghazi and Robert E. Brown. * rmt.h: Have the NO_REMOTE case be a particular case of the other, for rmtopen and rmtcreat were not transmitting the proper number of parameters to open and creat (since 26 July 1994). Reported by Andreas Schwab. * extract.c (extract_archive): Delay changing owner to after doing utime, for keeping long enough the permission of utime'ing. (extract_archive, restore_saved_dir_info): Idem for directories. Reported by Jonathan I. Kamens. * tar.h: Change malloc_dbg to dmalloc, mutatis mutandis. * tar.h: Undefine many macros if stat macros found to be broken. Define mkfifo only if configure did not find it. Include if not _POSIX_SOURCE, then if we have it, than "pathmax.h". Move _POSIX_VERSION dependent code further down. Do not declare getcwd if we do not have it. * tar.c: Do not include , now in "tar.h". Reported by Bernard Chen, Jean-Michel Soenen, John L. Chmielewski and Kaveh R. Ghazi. * tar.h: Define DEV_BSIZE, ST_BLKSIZE and ST_NBLOCKS, borrowing this code from both fileutils-3.9's "lib/system.h" and textutils-1.9's "system.h". * create.c (dump_file): Straighten the test for sparseness, which was requiring one block too much, most probably for trying to get around DEV_BSIZE/st_blksize confusion. Use ST_NBLOCKS, instead of computing a variable block_size and doing specific tests for HP-UX or Linux. Also rewrite the test so it works when ST_NBLOCKS is unsigned. Reported by Bruno Haible, Dean Gaudet, Dick Streefland, Harald König, Jim Meyering, Kai Petzke, Kaveh R. Ghazi and Torkel Hasle. 1994-08-04 François Pinard * tar.c: Do not include if we do not have it. Reported by Kaveh R. Ghazi. * Makefile.in (RTAPELIB): Prefix by $U for unprotoization. Reported by Kaveh R. Ghazi and Christian T. Dum. * port.c: Remove many static specifiers. Reported by Demizu Noritoshi, Kaveh R. Ghazi and William Bader. * rtapelib.c (__rmt_open): Replace system by remote, twice. Reported by Ben A. Mesander, Christian T. Dum, Demizu Noritoshi and Kaveh R. Ghazi. * tar.c (addname): Replace a forgotten EX_SYSTEM by TAREXIT_FAILURE. Reported by Demizu Noritoshi, James W. McKelvey, Kaveh R. Ghazi and Robert E. Brown. 1994-08-02 François Pinard * Prerelease 1.11.3. * tar.c (assign_string): New routines. * create.c (dump_file, start_header), extract.c (extract_archive), list.c (list_archive, read_header), buffer.c (open_archive), diffarch.c (diff_archive): Use assign_string for setting these variables to a string value or NULL. * buffer.c (open_archive): Sets current_file_name, current_link_name and save_name to NULL. (close_archive): Free each of them if not NULL. (fl_write): Take a copy of save_name into cursor, and advance the cursor instead, because save_name should stay free-able. Reported by Dave Gentzel, Harald Anlauf, Mark Clements, Robert Weissenfels, Ronald van Loon, Tsutomu Yamada and Vic Abell. * extract.c (extract_archive): Use xstrdup, for clarity. * gnu.c (add_dir): Idem. * list.c (print_header): Correct a little bug by which non-symbolic links were not printed properly quoted. * diffarch.c (diff_archive): Allocate tmpbuf to the proper size. NAMSIZ + 2 is not necessarily enough. 1994-08-01 François Pinard * tar.h: Refresh str*/mem* configured declarations. Among other things, this will solve previously missing #undef's. * rmt.h: Revise strchr configured declaration. * *.c: Replace bzero by memset, bcopy by memcpy, bcmp by memcmp, index by strchr and rindex by strrchr. * port.c: Delete functions bzero and bcmp, said to not exist on Minix. AC_MINIX in configure.in should guarantee POSIX things. Reported by Drew Trieger, Hugh Secker-Walker and Vic Abell. * tar.h, tar.c, buffer.c, update.c: Change CMD_* to COMMAND_*. * buffer.c (open_archive): Use strcmp to compare archive name to `-', instead of doing it explicitely. Just for clarity. * tar.h, tar.c, buffer.c: Replace ar_files by archive_name_array, n_ar_files by archive_names and ar_files_len by allocated_archive_names. Replace the index cur_ar_file by archive_name_cursor, which is a cursor in archive_name_array. * tar.c (main): Move the initialization of archive_name_array at beginning, taken from options routine. Free it at end of main. (options): Use xrealloc instead of ck_realloc for archive_name, for the already saved names to be preserved. Reported by Per Bojsen. * tar.h, tar.c: Replace name_file by namefile_name. * tar.c: Replace n_ind by name_array, n_indused by names, n_indalloc by allocated_names, and n_indscan by name_index. Replace namef by name_file, n_argv by names_argv and n_argc by names_argc. (main): Make an initial allocation for name_array at beginning, moved out from name_add, free it at end of main. * buffer.c (close_archive): Free ar_block at end. 1994-07-30 François Pinard * tar.h [WITH_MALLOC_DBG]: Include "malloc_dbg.h". * create.c (create_archive): Do not attempt creating a directory summary file if -G, since -G sets gnu_dumpfile to 0. Reported by Alexander Dupuy. * create.c (dump_file): Avoid a NULL dereference with -G when trying to dump an empty directory. * gnu.c (add_dir_name): Same thing. Reported by Rainer Orth. Correction for the improper `data differs' diagnostic given when the continuation of a multi-volume was compared. * diffarch.c (diff_archive): If multi-volume, update save_name and save_totsize before calling wantbytes. * buffer.c (wantbytes): If multi-volume, update save_sizeleft. Reported by Andreas Schwab, Denis Fortin, François Pinard, Hiroyuki Bessho, Olaf Schlueter, Simon Wright and Saul Lubkin. 1994-07-30 François Pinard * tar.c (options): Implement DEVICE_PREFIX and DENSITY_LETTER. Reported by Danny R. Johnston. * gnu.c (gnu_restore): Use CURRENT_FILE_NAME abbreviation. * extract.c (extract_archive): Idem. Reported by Timothy Fossum. 1994-07-29 François Pinard * create.c (dump_file): Abort if no memory for a possible link, remove related bogus code, and the variable nolinks. Reported by Andreas Schwab. * create.c (dump_file): Detect file sparseness correctly for Linux ext2 filesystem. Reported by Kai Petzke. * port.c (link) [!MSDOS]: Do not call setmode. Reported by Richard Deal. Reorganization for `tar -d' to provide a different exit status. * tar.h: Replace errors by exit_status. Declare TAREXIT_*. * buffer.c (child_open): Exit with exit_status. * tar.c (main): Initialize exit_status to TAREXIT_SUCCESS, and exit with exit_status. * buffer.c, diffarch.c, gnu.c, list.c, port.c, rmt.c, tar.c, update.c: Replace EXIT_FAILURE by TAREXIT_FAILURE, and EXIT_SUCCESS by TAREXIT_SUCCESS. * tar.h (ERROR), create.c (dump_file): Set exit_status to TAREXIT_FAILURE instead of increasing errors. * diffarch.c (sigh, diff_sparse_files): On differences, set exit_status to TAREXIT_DIFFERS if nothing more serious already. Reported by Tilman Schmidt. * rmt.c: Define EXIT_FAILURE and EXIT_SUCCESS if not already. * rtapelib.c: Define EXIT_ON_EXEC_ERROR to 128 and use it. 1994-07-27 François Pinard * diffarch.c (sigh): Increment errors, so a difference will yield a non-zero exit status at end. Reported by Nick Holloway. * tar.h: Rename TARERROR to WARN, then add ERROR which is similar, but increments the errors counter. * *.c: Replace all TARERROR by WARN or ERROR, deciding for each case. Many errors were not reflected in exit status. Reported by Carl Streeter, Esa Karell, George Chyu, Ian Jackson, Judy Ricker, Massimo Dal Zotto, Roland McGrath, Tilman Schmidt and Torkel Hasle. * buffer.c (child_open): Exit with EXIT_FAILURE if any error. * rtapelib.c: Use error for reporting errors. (do_command): New name for command. (get_status): New name for status. * buffer.c: Remove definition of MAGIC_STAT. (close_archive): Do not check MAGIC_STAT for an exit value, since this value is never returned. * *.c: Use TARERROR or exit with EXIT_FAILURE, instead of various esoteric statuses. Normalize using TARERROR with an exit status, instead of calling TARERROR with 0 first, then _exit. On exit calls, use EXIT_SUCCESS instead of 0. * tar.c: Do not use the exit status anymore for outputting an error counter value. Wrap around was creating spurious success. * tar.h: Remove EX_* definitions for tar exit statuses. Reported by Bob Mende and Torbjorn Granlund. 1994-07-26 François Pinard * tar.h: Add f_rsh_command variable. * tar.c: Add and process --rsh-command option. * buffer.c (open_archive, child_open, new_volume): Pass f_rsh_command to rmtopen and rmtcreat calls. * rmt.h (rmtopen, rmtcreat): Pass a supplementary argument. * rtapelib.c (__rmt_open): Accept and process a command argument, to replace rsh. Reported by Jonathan I. Kamens. * tar.h: Instead of including with BSD42 or for V7, merely include if it exists, otherwise . * buffer.c, diffarch.c, extract.c, list.c, port.c, update.c: Do not include or , because they are indirectly included through "tar.h". * create.c (dump_file): Remove the BSD42 conditional. If not f_sparse_files, initialize upperbound as when not BSD42. Reported by Alan Bawden, Claude Scarpelli, Laurent Sainte-Marthe, Noah Friedman, Reuben Sumner, Tom Quinn and William Bader. 1994-07-24 François Pinard * tar.h: Merely define valloc as being malloc if valloc does not exist. * port.h: Remove valloc, which was only a dummy for malloc. Reported by Cliff Krumvieda, Francois Pinard, Henrik Bakman, J.T. Conklin, Nelson H.F. Beebe and Tilman Schmidt. 1994-07-22 François Pinard * create.c (start_header): Cast NAMSIZ to size_t before comparing it to strlen result. Reported by Mark Frost. * tar.c (main): Zero out label_pattern before compiling in regular expressions, instead of using uninitialized memory. Reported by Holger Teutsch. * tar.c [!FNM_PATHNAME]: Include fnmatch.h only if unistd.h fails to define this symbol. Reported by Alan Modra, Christian T. Dum, Eddy ?, John Oleynick and Richard Lloyd. * buffer.c, diffarch.c, rtapelib.c, update.c: Include before , if it exists. Reported by Kaveh R. Ghazi. * tar.c (options): Use defined OPTION_* constants instead of anonymous numbers for long options not having a short option form. * rmt.h [!MTIOCTOP]: Do not define RMTIOCTL, so __rmt_ioctl will not be called if it has not been compiled in rtapelib.c. * tar.h: Add CMD_TOO_MANY. * tar.c (main): Use CMD_TOO_MANY, and get rid of badopt label. Reported by David J. MacKenzie. * tar.c (usage): New name for describe(). Rewritten with better help formatting and more logical grouping of options. Accepts an exit status argument. Callers adapted. Reported by Richard O'Neill. 1994-07-20 François Pinard * port.c (rename): Constify the arguments. Reported by Elmar Heeb, Jeff Prothero and John Clark. * tar.c (main): Declare version_string locally. * version.c: Deleted. * Makefile.in: Adjusted. 1994-07-19 François Pinard * tar.h: Merge "port.h" towards the beginning of tar.h. Include and , and define errno if needed. * *.c: Do not include "port.h" anymore after "tar.h", do not include , nor . Also move "tar.h" as the first file included in every module. This would solve, among other things, the problem of RE_DUP_MAX being redefined by , when included after "regex.h". * port.h: Deleted. * Makefile.in: Adjusted. Reported by Alan Modra, Christian T. Dum, Dimitris Fousekis, John David Anglin, Matthew Braun, Michael Maass, Richard Lloyd and Stefan Skoglund. * create.c (dump_file): Do not cast alloca result to (char *). The problem reported was that alloca result was seen as int, but with the changes just made, alloca should be properly declared. Reported by Bryant Fujimoto and Michael Kubik. 1994-07-06 François Pinard * create.c, extract.c [HAVE_UTIME_H]: Instead of _POSIX_VERSION, for choosing to include . Reported by Carl Swanson and Thomas Krebs. 1994-07-05 François Pinard * tar.c: Replace DEF_AR_FILE with DEFAULT_ARCHIVE, replace DEFBLOCKING with DEFAULT_BLOCKING. * rtapelib.c: Replace "??'" by "?? '" at two places in a comment, so avoiding Pyramid's DC/OSx compiler to complain about ANSI trigraph sequences. Even comments can trigger bugs, now! Reported by Mark Frost. * tar.h: Declare valloc. * buffer.c, diffarch.c: Remove declaration for valloc. * testpad.c: Deleted. * tar.h: Do not include "testpad.h" anymore. * Makefile.in: Delete testpad matters. * buffer.c (new_volume): Inside case 'n', strcpy into r then assign r to p, instead of strcpy'ing directly into p, for making the module const clean. 1994-07-03 François Pinard Rename a few variables to avoid shadowing variables or functions: * list.c (print_header): Change name to quoted_name. * buffer.c (child_open): Change pipe to local_pipe. * extract.c (extract_archive): Change namelen to namelen_bis. * rtapelib.c (__rmt_open): Change system to remote. * tar.c (options): Add two missing arguments to getoldopt call, NULL is not necessarily implied on all systems. * list.c (print_header): Add a few missing long specification in formats. * diffarch.c (compare_chunk, diff_sparse_files): Idem. * port.c (msg, msg_perror): Idem. * tar.h: Include prototypes for all functions which call from one module to another. Declare voidstar (use it everywhere instead of PTR). Move in the include from , and the include of option.h from tar.c and getoldopt.c, waiting for a better solution for all these things. * port.c: Removed PTR declaration and including . * getoldopt.c, tar.c: Remove including "option.h". 1994-07-02 François Pinard * *: Protoized all function headers. Added static to functions which can take it. Add many const specifiers. Remove unused variables. * port.c (xmalloc): Delete function, do not mask the true one. * port.c (ck_malloc): Use xmalloc, waiting for annihilation. * port.c (ck_realloc): Use xrealloc, waiting for annihilation. * *: Begin switching from ck_malloc (or even pure malloc) to xmalloc. Same for ck_realloc (pure realloc) to xrealloc. Doing this correctly is a delicate matter, which I'll continue without reporting it anymore, while doing other modifications. * *: Replace msg and msg_perror calls by TARERROR macro calls. Capitalize first word of all error messages, remove ending punctuation or newline. Systematically avoid contractions for `Cannot' and `Could not'. Always write `WARNING:' all in capitals. * tar.h: Declare TARERROR as calling error(). Rename variable tar to program_name. * tar.c (main, options), buffer.c (child_open), port.c (msg, msg_perror), gnu.c (gnu_restore): Rename variable tar to program_name. * gnu.c (gnu_restore): Remove a spurious repetition of program_name in error message. 1994-07-01 François Pinard * buffer.c, create.c extract.c, gnu.c, list.c, names.c, rmt.c, tar.c, update.c: Remove all (void) prefixes to function calls. There are limits to lint clutter. 1994-06-30 François Pinard * port.h: Remove definition of const. Let configure do it. * tar.h, rmt.c, rtapelib.c, version.c, testpad.c: Add a block for including or "config.h". If "tar.h" was included everywhere, the block will only be needed there. * *.[ch]: Reindented to GNU standards (they were not far). Got rid of all `* ' left prefixes in comments and refilled them. There is still a lot of cosmetic changes needed everywhere. I will not report them any more, doing them along the way of other things in the future. * Makefile.in: New file. * Split distribution into a few subdirectories, for easing maintainance. * Taking over maintenance duties. 1993-08-31 David J. MacKenzie * rmt.c [M_UNIX]: Include sys/tape.h instead of sys/mtio.h. Reported by Drew Sullivan and William Bader. 1993-07-29 David J. MacKenzie * Makefile.in (config.status): Run config.status --recheck, not configure, to get the right args passed. 1993-07-19 David J. MacKenzie * Makefile.in (libdir): Use standard GNU value -- $(exec_prefix)/lib, not /etc. 1993-07-08 David J. MacKenzie * Makefile.in (installdirs, configure, config.status, Makefile): New targets. 1993-06-14 Noah Friedman * Makefile.in (.c.o): Put -I. before -I$(srcdir), and make $(CFLAGS) last. 1993-05-22 The King * extract.c (extract_archive, restore_saved_dir_info): Print mode in octal, not in decimal. Reported by Scott S. Bertilson. 1993-03-26 Noah Friedman * configure.in: Better way of detecting HP-UX. Reported by Noah Friedman. 1993-03-25 Michael I Bushnell * version.c: Released version 1.11.2. * Makefile.in (dist): Do the link differently; some of the files have changed filesystems which makes it more complex. * Makefile.in (dist, shar): Use gzip instead of compress. * create.c (dump_file): Test for curdev == -1, not curdev < 0. Some losing NFS systems give negative device numbers sometimes. Reported by Thorbjxrn Willoch. 1993-03-19 Michael I Bushnell * buffer.c (new_volume): Write the global volume number to the volno file before running the info script, so that the script can look at it. 1993-03-17 Michael I Bushnell * tar.c (describe, long_options): Changed --compress-block to --block-compress. (options): Fixed f_compress_block sanity check error message to give the correct name of the option. 1993-03-16 Michael I Bushnell * extract.c (extract_archive): case LF_DIR: Do chown when necessary. Don't bother jumping to set_filestat for f_modified; repeat the chmod code here. Replace `break', deleted on 2 September 1992. * tar.c (describe, long_options, options): Added gzip options and use-compress-program option. * tar.h: Added new compression options. * buffer.c (child_open, open_archive): Use new compression options. * create.c (start_header): Only mask off high bits when creating old-style archives. * list.c (decode_header): Mask off potentially misleading high bits from the mode when reading headers. Reported by Paul Eggert. 1993-03-15 Michael I Bushnell * extract.c (extract_archive): Put arguments in the right order for error message. Reported by Bruno Haible. * create.c (deal_with_sparse): If the last byte was null, we didn't write it out. * gnu.c, create.c, extract.c, diffarch.c, list.c: Replace malloc calls with ck_malloc and realloc with ck_realloc. Reported by Jonathan Kamens. * tar.c (describe): Improve doc for -L. * tar.c (name_next): Don't apply exclusion to explicitly named files. * tar.c (long_options, describe): Added new-volume-script as an alias for info-script. * extract.c (extract_archive): LF_DUMPDIR case; misplaced paren. * extract.c (extract_archive): extract_file case, first if, include space for null in namelen computation. * extract.c (extract_sparse_file): Use value returned by write to properly create error message. * create.c (create_archive): Don't assume we have anything to dump. * buffer.c (open_archive): Set current_file_name for the volume header so that verbose listings work properly. * Makefile.in (realclean): Added getdate.c. * create.c (deal_with_sparse): If exactly 26 elements in sparsearray, only 25 were written. Reported by Jim Murray. * create.c (deal_with_sparse): If the file ends with a zero block, the last byte was not written. This is fixed in create rather than extract: if amidst_data is not set at EOF, put out a block with just the last byte of the file. Reported by Jim Murray. 1993-01-14 David J. MacKenzie * tar.c: Include fnmatch.h after port.h to make sure we get our FNM_* (e.g. on HPUX 8). 1992-11-24 David J. MacKenzie * tar.c (addname), gnu.c (read_dir_file) [HAVE_GETCWD]: Instead of USG. * port.h, rmt.h [HAVE_STRING_H]: Instead of USG. * port.h: Add dir header decls. * create.c, gnu.c: Use SYSNDIR, SYSDIR, and NDIR instead of BSD42 and USG. Rename DP_NAMELEN to NLENGTH. Use `struct dirent' instead of `struct direct'. * create.c, gnu.c, tar.c: Remove dir header decls. 1992-11-18 David J. MacKenzie * tar.c: Change FNM_TARPATH to FNM_LEADING_DIR to match change in fnmatch.[ch]. 1992-10-02 David J. MacKenzie * tar.c (describe): Fix some tab alignments. * Makefile.in (SRC3): Add getdate.c, for systems without bison/yacc (like MS-DOS). * diffarch.c (diff_sparse_files): Add missing arg to fprintf calls. * extract.c (extract_archive, restore_saved_dir_info), buffer.c (child_open), list.c (decode_header, print_header): Delete unused vars. * port.c [__MSDOS__]: Have strstr, rename, and mkdir. Don't define ck_pipe. * buffer.c, tar.c (init_volume_number, closeout_volume_number), create.c (write_long): Declare as void, not int, since they don't return a value. 1992-09-22 Michael I Bushnell * buffer.c (close_archive): Removed leftover `break' from when this was a switch. 1992-09-22 Noah Friedman * create.c, port.h: indented #pragma directives with 1 space. 1992-09-18 Michael I Bushnell * All source files: re indented using GNU indent. * rtapelib.c (__rmt_read): Only read the amount left in the buffer; otherwise a broken rmt server (which puts too much data out) could overwrite past our buffer. 1992-09-17 Michael I Bushnell * configure.in: Check for getpwuid and getgrgid. Reported by J.T. Conklin. * create.c: Throughout, use struct utimbuf rather than array of longs. Reported by J.T. Conklin and Michael Ellis. * Makefile.in (SRC3, AUX): Move alloca.c to SRC3. (OBJ3): Add @ALLOCA@. * Makefile.in (getdate.c): Look in srcdir for getdate.y. * buffer.c (close_archive): We can't check WTERMSIG meaningfully unless we already know tha WIFSIGNALED is true. (There is no guarantee it WTERMSIG will return zero when WIFSIGNALED is false.) * port.c (rmdir, mkdir): Check WIFSIGNALED rather than WTERMSIG. * Makefile.in (getdate.c): Use $(YACC) instead of `yacc'. 1992-09-15 Michael I Bushnell * version.c: Released version 1.11.1. * Makefile (AUX): Added NEWS. * Makefile.in (rmt): Added $(LIBS). * mangle.c (extract_mangle): Null terminate link name for losing archives missing it. * configure.in: Added tests for libraries needed on Solaris. * Makefile.in: added target and rule for getdate.c: getdate.y; some makes don't have one built in. 1992-09-14 Michael I Bushnell * tar.c (options, main): Advise use of --help rather than +help. Reported by J.T. Conklin. * create.c (write_long): Using hstat here is a Bad Idea, and totally unnecessary at that. * list.c (read_header): Compute both signed and normal checksums. Reported by Robert E. Brown. * diffarch.c, buffer.c: Declare valloc as void* rather than char*. Reported by Robert E. Brown. * Makefile.in: Don't install info files. * port.h: Undefine index and rindex if necessary; some string.h's define them for us. * tar.c (addname): Missing braces after if. * gnu.c (read_dir_file): Missing braces after if. * names.c: Add include of , * create.c (start_header): Set current_file_name so that print_header, used for verbose create, works properly. (dump_file): Set current_link_name when setting up symlink and hardlink records. Reported by Robert Crowe. * configure.in: Define BSD in the presence of /sdmach or /../../mach. Reported by Robert E. Brown. * configure.in: Check for malloc was scrambled. 1992-09-11 David J. MacKenzie * fnmatch.[ch]: New files. * wildmat.c: File removed. * tar.c: Include fnmatch.h and use fnmatch instead of wildmat. * Makefile.in, makefile.pc: Replace wildmat.o(bj) with fnmatch. 1992-09-10 David J. MacKenzie * buffer.c, tar.c: Remove redundant decls of getenv, rindex. * Makefile.in: Add uninstall target. Define libdir instead of hardcoding /etc for installing rmt. 1992-09-10 Michael I Bushnell * list.c (read_header): On second thought, that doesn't work either, so just store the names in malloced areas. Sigh. * NEWS: New file. * README: Removed things that belong in NEWS; point to it. * list.c (read_header): current_file_name and current_link_name need to be set to the arrays in head rather than header; header is the actual read buffer and will change. * extract.c (extract_archive): * buffer.c (new_volume): `#' directives need to start in column 1. Reported by J.T. Conklin. 1992-09-09 Michael I Bushnell * version.c: Release of version 1.11. * Makefile.in (AUX): Add getpagesize.h. (AUX): Comment out manuals. (all): Comment out dependency on tar.info. * Makefile, configure.in: Arrange to use local malloc on HP-UX. * port.h Use the canonical Autoconf chunk for alloca instead of just looking for gcc. 1992-09-09 Noah Friedman * port.h: If compiling with gcc, use __builtin_alloca. 1992-09-08 Michael I Bushnell * extract.c: Removed long name support from here. * list.c (read_header): Understand and skip longname/longlink headers here. Names for current file are stored in new global variables. All source files except create.c changed to refer to current_file_name and current_link_name instead of fields directly from the current header. 1992-09-03 Michael I Bushnell * create.c (write_long): New function. (dump_file): When writing link records or symlink records, use new write_long function instead of mangling when the link target is too long. (start_header): Use write_long instead of mangling for long names. * extract.c (saverec): Recognize LF_LONGNAME and LF_LONGLINK. (saverec): Throughout, use longname and longlink if they are set. 1992-09-02 Michael I Bushnell * mangle.c: This is now deprecated; retain extract_mangle for backward compatibility. * list.c (print_header): Prevent printing 0 when the gid or uid is null. Reported by Chris Arthur. * list.c (decode_header): Use the gid field when the gid is empty, and similarly for uid. Reported by Chris Arthur. * extract.c: saved_dir_info, saved_dir_info_head: new type and var. (extract_archive): When extracting directories, now save info in saved_dir_info_head. (restore_saved_dir_info): New function. * list.c (read_and): Call restore_saved_dir_info at the end of the run. Reported by Chris Arthur. 1992-08-31 Michael I Bushnell * create.c (create_archive): If there are no names specified, write nothing on the archive instead of dumping ".". * buffer.c (open_archive): Useful error message. * tar.c, tar.h: Recognize f_atime_preserve. * create.c (dump_file): Implement f_atime_preserve. * rmt.h (_remdev): Don't require /dev/ to be in remote archive names; obey new force-local flag. * tar.c, tar.h: Implement new force-local flag. Reported by Roland Schemers III. * tar.c (describe): same-owner and same-order were confused. * create.c (dump_file): Check for toplevel had sense reversed. * buffer.c (new_archive): Don't free old_name...when these come from the command line, they aren't malloced, and it isn't important to save this trivial amount of memory. * tar.h: replace ar_file with ar_files, n_ar_files, cur_ar_files. * buffer.c (open_archive): multi-volume compressed archives never worked; give an appropriate error. Change open of ar_file to open of ar_files[0]. (writeerror, readerror, flush_archive): use ar_files[cur_ar_file] instead of ar_file. (new_archive): Necessary changes to support ar_files. * tar.c (options): handle multiple tape drive arguments. 1992-08-28 Michael I Bushnell * list.c (decode_header), create.c (start_header), tar.h (TMAGIC): Undo djm's changes below; tar does not support the final Posix.1 format; it's bad to make it look like it does. 1992-07-19 David J. MacKenzie * port.h: Try to prevent redefining major. * port.c [minix]: Implies HAVE_BZERO. Fix a typo. * list.c (decode_header): Recognize the final POSIX.1 magic as well as the early draft magic for ustar. * create.c (start_header): Create a final POSIX.1 magic string instead of an early draft string for ustar. * tar.h (TMAGIC): Remove the trailing blanks. * rmt.c, rtapelib.c: Use POSIX and STDC headers if available. * rmt.h: Declare the external functions defined in rtapelib.c. 1992-07-14 David J. MacKenzie * pathmax.h: New file. * port.h: Include it. * create.c (create_archive): Allocate PATH_MAX instead of NAME_MAX for temporary buffer so we don't have to figure out what NAME_MAX is (portably). 1992-07-10 Michael I Bushnell * gnu.c (collect_and_sort_names): write_dir_file has no argument. 1992-07-06 David J. MacKenzie * port.c (rename): If unlinking the source at the end fails, unlink the destination instead to avoid leaving a mess. 1992-07-03 David J. MacKenzie * buffer.c, diffarch.c, update.c, rtapelib.c [HAVE_SYS_MTIO_H]: Instead of NO_MTIO. * port.c, tar.h [HAVE_FOO]: Instead of FOO_MISSING. 1992-06-23 David J. MacKenzie * rmt.c: Add #ifdefs to work on ISC. 1992-05-20 David J. MacKenzie * port.h: Define major, minor, makedev if the system doesn't. 1992-05-13 Michael I Bushnell * gnu.c (add_dir_name): Store legitimate value into dir_contents when get_dir_contents returns NULL. 1992-05-07 Michael I Bushnell * gnu.c (add_dir_name): Check for return of NULL from get_dir_contents; see djm's change of Fri Jul 26 01:12:58 1991. 1992-05-04 David J. MacKenzie * tar.h: Make comments for option names say -- instead of +. 1992-04-29 Michael I Bushnell * tar.c, tar.t: Added +volno-file option. buffer.c (init_volume_number, closeout_volume_number): New functions. tar.c (main): Call new functions in the right place. * buffer.c (fl_write, fl_read): Mod to allow losing tape drives which use short counts to indicate end of tape correctly handle the multi-tape stuff. The read half won't co-exist with f_reblock; there's no way to fix that, of course. * tar.c, tar.h: Added new option +show-omitted-dirs. list.c (read_and): Implemented show-omitted-dirs. Reported by Karl Berry. * tar.c, tar.h: Added new option +checkpoint. buffer.c (fl_read, fl_write): Implemented +checkpoint lazily. * create.c (dump_file): Added toplevel argument; some devices can be negative, so the old method was bogus. All callers changed. Reported by Max Hailperin. * tar.c, tar.h: Added new option +ignore-failed-read. create.c (dump_file): Implemented +ignore-failed-read. Reported by Bob Mende Pie. * create.c (finish_sparse_file): Commented out debugging printf. * tar.c, tar.h: Added new option +remove-files to delete files after they are added to the archive. create.c (dump_file): Implemented +remove-files for everything but directories. I don't think they need it. 1992-04-28 Michael I Bushnell * create.c: (dump_file): save_name needs to be set equal to p, not something inside the header, because the header changes at the first buffer flush. 1992-04-24 Michael I Bushnell * create.c: Djm incorrectly moved the include of port.h to precede the include of sys/file.h; restored. * tar.c (main): Cases CMD_EXTRACT and CMD_LIST: declare error string with const. * gnu.c (collect_and_sort_names): Leave if around write_dir_file in place. 1992-04-22 David J. MacKenzie * rtapelib.c: SIGTYPE -> RETSIGTYPE. 1992-03-09 David J. MacKenzie * rtapelib.c: Reformat and make comments more complete. Rename a few variables for clarity. 1992-03-05 David J. MacKenzie * tar.c (describe): Document long options as starting with --. 1992-01-23 David J. MacKenzie * tar.c (options): Check get_date return value for error indication. 1991-12-24 David J. MacKenzie * tar.c, gnu.c, extract.c, create.c, port.h, rmt.h [HAVE_UNISTD_H, _POSIX_VERSION]: Instead of POSIX ifdefs. 1991-12-20 Michael I Bushnell * testpad.c (main): flush stderr so perror and fprintf cooperate right. 1991-12-18 David J. MacKenzie * port.h [MAJOR_IN_MKDEV, MAJOR_IN_SYSMACROS]: To find where to get major, minor and makedev. * create.c, list.c, update.c: Don't check USG to include sys/sysmacros.h. 1991-12-12 Michael I Bushnell * mangle.c (extract_mangle): Correctly null terminate name of link target. 1991-11-21 Michael I Bushnell * create.c (dump_file, at start of ISREG output loop): use filename from header instead of real name to make sure that we get the mangled version and not one that is too long and overflows buffers. 1991-11-16 David J. MacKenzie * tar.h: Use new criteria for STDC version of msg. 1991-11-02 David J. MacKenzie * create.c, gnu.c, tar.c [USG]: Use DIRENT instead of NDIR to select between dirent.h and ndir.h. * port.c [FOO_MISSING]: Instead of WANT_FOO, to make sharing code and configure script with other utilities easier. [VPRINTF_MISSING, DOPRNT_MISSING]: Instead of FOO_MSG, to select error reporting routines. 1991-08-29 Michael I Bushnell * tar.c (long_options). Fixed info-script long option. Reported by Eric Norum. 1991-08-26 David J. MacKenzie * configure, Makefile.in: Only put $< in Makefiles if VPATH is being used, because older makes don't understand it. 1991-08-19 David J. MacKenzie * create.c: Indent '#pragma alloca' so non-ANSI compilers don't choke on it. 1991-08-14 David J. MacKenzie * list.c (UGSWIDTH): Increase from 11 (sort of like Unix tar) to 18, so that with normal user and group names of <= 8 chars, the columns never shift in a tar -t listing. 1991-08-02 David J. MacKenzie * Makefile.in (dist): Include texinfo.tex and tar.info*. (install): Install tar.info*. * configure: Set INSTALLDATA. * configure: Create config.status. Remove it and Makefile if interrupted while creating them. * configure: Check for +srcdir etc. arg and look for Makefile.in in that directory. Set VPATH if srcdir is not `.'. * Makefile.in: Add `prefix'. (tar.info): New target. 1991-07-30 David J. MacKenzie * configure [FTIME_MISSING]: Instead of NEED_TZSET. 1991-07-29 David J. MacKenzie * port.c [F_CHSIZE]: Additional version. 1991-07-27 David J. MacKenzie * rmt.h: Clean up ifdefs. * makefile.pc: Fix typo. * port.h [__MSDOS__]: Instead of MSDOS. [__MSDOS__]: Define off_t. Include io.h and not sys/param.h. [__TURBOC__]: Use void * and don't define const. 1991-07-26 David J. MacKenzie * buffer.c: Rename `eof' to `hit_eof' to avoid conflict with an MSDOS function. * gnu.c (get_dir_contents): Return NULL, not "\0\0\0\0", on error. * diffarch.c (diff_archive): Open files in binary mode. Don't use or free a non-malloc'd return value from get_dir_contents. * msd_dir.c [__TURBOC__]: Include stdlib.h. * rmt.h: lseek returns off_t, not long. * tar.c (describe): -X is +exclude-from, not +exclude. (names_notfound): Free memory only if amiga, not !unix. * tar.h, tar.c: Add +null option to make -T read null-terminated filenames (such as those produced by GNU find -print0), and disable -C option. This guarantees that odd filenames will get archived. * tar.c (read_name_from_file): New function. (name_next): Call it instead of fgets. From David J. MacKenzie. 1991-07-24 David J. MacKenzie * create.c [_AIX]: Declare alloca. * buffer.c (open_archive): Check for successful open before, not after, fstatting the fd. 1991-07-23 David J. MacKenzie * configure: Only define BSD42 if sys/file.h exists. If alloca is missing and /usr/ucblib exists (SVR4), use it instead of -lPW. * port.h [!__STDC__]: #define const. * gnu.c (dirent_cmp): Fix args to agree with ANSI C prototype. * create.c: Declare ck_realloc. * gnu.c, diffarch.c: Move check for symlinks to after port.h include. 1991-07-20 David J. MacKenzie * msd_dir.[ch]: Use POSIX-style `struct dirent' instead of `struct direct'. * create.c, gnu.c, tar.c: Adjust callers. 1991-07-18 David J. MacKenzie * port.c (ck_malloc, ck_realloc): Return PTR, not char *. * gnu.c, create.c, tar.c: Fix decls. * port.c: Don't use the preprocessor to guess missing functions on Unix; let configure do it. [WANT_GETWD] (getwd): Function removed; not needed because getcwd is used if needed. * gnu.c, tar.c [POSIX]: Use getcwd. * rtapelib.c: Use SIGTYPE instead of testing SIGNAL_VOID. Default to void (more common these days) instead of int. * tar.c, gnu.c, mangle.c: Remove VOIDSTAR defn. Use PTR instead. * port.h: Define PTR. * gnu.c, tar.c [__MSDOS__ || USG]: Remove incorrect getcwd decl. [!POSIX]: Put correct one in port.h. * tar.c (describe): Print on stdout instead of stderr; it's not so much a usage message (since you have to ask for it explicitly) as on-line help, and you really need to be able to page it because it's more than a screen long. * Make #ifdefs for sys/file.h or fcntl.h, directory header, sys/mtio.h consistent between files. Use NO_MTIO instead of tricks with USG and HAVE_MTIO and NO_RMTIOCTL. * Move decls of ANSI C and POSIX functions to port.h and use standard headers to declare them if available [STDC_HEADERS or POSIX]. * Add many missing function declarations and return types. * Some places used __MSDOS__, some MSDOS; standardize on __MSDOS__. * Change S_IF macros to S_IS for POSIX. * port.h: Define appropriate S_IS macros if missing. * port.h [POSIX]: Rename macros for testing exit status to conform to POSIX; use the system's versions if available. * Use POSIX PATH_MAX and NAME_MAX instead of MAXPATHLEN and MAXNAMLEN. * port.h: Define PATH_MAX and NAME_MAX. * create.c, gnu.c, tar.c: Use ck_malloc and free instead of auto arrays of size PATH_MAX or NAME_MAX, since with pathconf they might not be constants. * Move all definitions of O_* to port.h to reduce redundancy. * Make all source files that now need to include port.h do so. * port.c: Remove #undefs of WANT_* so you can use -DWANT_* when compiling, instead of having to edit port.c. [WANT_DUMB_GET_DATE] (get_date): Function removed. Even systems without bison can get bison output and compile it. [WANT_STRING] (index, rindex, bcopy, bzero, bcmp): Functions removed; the translation is now done by macros in port.h. * wildmat.c (wildmat): Use POSIX.2 '!' instead of '^' to negate character classes. 1991-07-15 David J. MacKenzie * testpad.c (main): Return type void. * port.c [WANT_STRING]: Don't include memory.h if NO_MEMORY_H. * create.c (dump_file) [AIX]: Fix typo, `allocate' for `alloca'. * gnu.c (collect_and_sort_names): Move misplaced brace out of #ifdef. Reported by Minh Tran-Le. * configure: Also look in sys/signal.h for signal decl. 1991-07-10 David J. MacKenzie * Rename rtape_server.c to rmt.c and rtape_lib.c to rtapelib.c. * configure, Makefile.in: $(INSTALLPROG) -> $(INSTALL). 1991-07-09 David J. MacKenzie * Most files: Refer to GPL version 2. * COPYING: Use version 2. * port.c [__TURBOC__] (utime): New function. * xmalloc: New function (just calls ck_malloc), for alloca.c and bison.simple (in getdate.y output). * Makefile.in (AUX): Include alloca.c and tcexparg.c, a command line globber for Turbo C. 1991-07-08 David J. MacKenzie * testpad.c: Open and write to testpad.h instead of stdout, because some MS-DOS makes (Borland's at least) can't do redirection in commands. * Makefile.in: Don't redirect testpad output. 1991-07-08 Michael I Bushnell * buffer.c (fl_read): Missing \n in printf. 1991-07-08 David J. MacKenzie * create.c, extract.c, gnu.c, diffarch.c, tar.c: Comment out unused variables. * tar.c (options): Cast get_date arg to VOIDSTAR instead of `struct timeb *', since on some non-BSD systems the latter is undefined. 1991-07-06 David J. MacKenzie * Replace Makefile with configure, Makefile.in, and makefile.pc. Update README with current compilation instructions. * port.c [WANT_RENAME] (rename): New function. 1991-07-03 Michael I Bushnell * testpad.c (main): Avoid warning from some compilers on array address. * rtape_server.c (sys_errlist): Should be declared extern. Reported by Stuart Kemp. 1991-07-01 Michael I Bushnell * Release of version 1.10; appropriate changes to README. * create.c: Removed printf's about sparse files. 1991-06-21 Michael I Bushnell * list.c (skip_extended_headers): Userec was being called in the wrong place. 1991-06-20 David J. MacKenzie * tar.h [STDC_MSG]: Use ANSI prototypes for msg and msg_perror, even if BSD42 is also. * Makefile: Replace DESTDIR with bindir. (install): Don't install tar.texinfo. There's no standard place for texinfo files, and /usr/local/man is inappropriate. Add TAGS, distclean, and realclean targets and SHELL= line. * version.c: Move old change history to bottom of ChangeLog. 1991-06-12 Michael I Bushnell * rtape_lib.c (__rmt_write) [SIGNAL_VOID]: Instead of USG. 1991-06-05 Michael I Bushnell * tar.c (name_match, addname): Ugly hack to handle -C without any files specified. tar.h (struct name): New field for ugly hack. 1991-06-03 Michael I Bushnell * testpad.c: New file to determine if we need special padding in struct header in tar.h. * tar.h (struct header): include padding if necessary, include testpad.h. * Makefile: rules to create testpad.h, etc. 1991-05-22 Michael I Bushnell * tar.c (options): -L takes an argument. * rtape_lib.c (__rmt_open): add /usr/bin/nsh to the list of remote shell programs. * create.c: define MAXPATHLEN if we don't get it from a system header file. * create.c (deal_with_sparse): return a real return value if we can't open the file. * tar.c (long_options): +newer takes an argument. (describe): fix printing in various trivial ways 1991-05-21 Michael I Bushnell * tar.c (long_options): +get and +concatentate don't require arguments 1991-05-20 Michael I Bushnell * create.c (write_eot): Don't try and write an EOF if we are already at one. * port.c (strstr): Looking for null string should return zero. 1991-05-19 Michael I Bushnell * tar.c (options): -l doesn't take an argument * Makefile: Minor fix for SGI 4D defines. Reported by Andrew Torda. * rtape_server.c (main.c): For 386/AIX. I'm suspicious about this one. * create.c (dump_file): For hidden files on AIX. gnu.c (collect_and_sort_name, get_dir_contents): AIX hidden file mod. Reported by Minh Tran-Le. * tar.c: (name_next): Allow -C inside a file list given to -T. Reported by David Taylor. * Makefile: Comment describing presence of USE_REXEC. * extract.c (extract_archive, case LF_SPARSE): zero check for last element on numbytes needs to look at value after converted from octal. * port.c [HAVE_STRSTR]: Check it, instead of always demanding strstr. Makefile: Comment describing presence of HAVE_STRSTR option. 1991-05-19 David J. MacKenzie * port.c (get_date): Renamed from getdate, to avoid SVR4 conflict. * tar.c: Call get_date instead of getdate. 1991-05-10 Noah Friedman * tar.c: added "\n\" to the end of some documentation strings where they were left off. 1991-05-09 Michael I Bushnell * Makefile: added level-0, level-1, and backup-specs to AUX. * version.c: changed to 1.10 beta. * README: updated for 1.10 beta release. 1991-04-02 Michael I Bushnell * create.c (dump_file): HPUX's st_blocks is in 1024 byte units instead of 512 like the rest of the world, so I special cased it. * tar.c: Undo Noah's changes. 1991-04-01 Noah Friedman (This ought to be temporary until things are fixed properly. ) * tar.c: (struct option long_options): flag for "sparse" zero if compiling under hpux. tar.c: (functon options): case 'S' is a no-op if compiling under hpux. 1991-03-30 Michael I Bushnell * tar.h: new variable tape_length. * tar.c (options): add new option +tape-length / -L. * buffer.c (fl_write): Turn #ifdef TEST code for limited tape length on always, for tape-length option. * create.c (dump_file): avoid apollo lossage where S_IFIFO == S_IFSOCK. * buffer.c: include regex.h * buffer.c (fl_read, open_archive): Use regex routines for volume header match. * xmalloc.c: removed file; wasn't necessary. * tar.c: (main) use ck_malloc instead of xmalloc. 1991-03-28 Noah Friedman * regex.c, regex.o: New links. * tar.c: include regex.h. * Makefile (OBJ2): Add regex.o. (regex.o, tar.o): Depend on regex.h (SRC2, AUX): Add the new files. 1991-03-23 Noah Friedman * Makefile: added default flags and options for compiling under hpux. * Added files alloca.c and xmalloc.c. 1991-03-23 Michael I Bushnell * port.c [HPUX]: Define WANT_VALLOC. 1991-03-15 David J. MacKenzie * rtape_lib.c [USG && !HAVE_MTIO]: Define NO_RMTIOCTL automatically. (_rmt_rexec): Temporarily re-open stdin and stdout to /dev/tty, to guarantee that rexec() can prompt and read the login name and password from the user. * Makefile: Mention -DUSE_REXEC. Reported by Pascal Meheut. 1991-03-08 Michael I Bushnell * tar.h, Makefile [HAVE_SIZE_T]: Might be useful for some people. * gnu.c: lstat->stat define where appropriate * buffer.c (fl_write): keep track of amount written for +totals. * tar.c, tar.h: set flag f_totals from +totals option. * tar.h (f_totals, tot_written): new variables. * tar.c (main): print total written with CMD_CREATE. * tar.c (main): return appropriate exit status 1991-01-17 David J. MacKenzie * port.c: Remove a spurious `+' between functions (a remnant of a context diff, apparently). 1991-01-09 Michael I Bushnell * create.c (where_is_data): Rewritten to be better, and then #ifdef-ed out. (deal_with_sparse): Severly pruned. Now we write or don't write only complete blocks, not worrying about partial blocks. This simplifies calculations, removes bugs, and elides the second scan through the block. The first was zero_record, the second was where_is_data. 1991-01-07 Michael I Bushnell * create.c (deal_with_sparse): Second computation (for short reads) of numbytes increment had subtraction backwards. Need to handle calling where_is_data better when we did a short read (it might go past the end of the read), also, set sparsearray[...].offset in this case too. 1991-01-04 Jay Fenlason * buffer.c: Return a special error code if the archive you're trying to read starts with a different label than the one specified on the command line. 1991-01-02 Jay Fenlason * gnu.c: Prepend the current directory to the gnu_dumpfile, so that -C's won't affect where the output goes. (sigh.) 1990-12-18 Jay Fenlason * gnu.c: Don't complain if the gnudumpfile we're reading info from doesn't exist. * create.c: Write out gnudumpfile after finishing writing the archive. * tar.c: Add +exclude FNAME, and make +exclude-from do what +exclude used to. * Make +version an operation, not an option. * Add +confirmation alias for +interactive. 1990-12-04 Jay Fenlason * tar.c (check_exclude): Don't let MUMBLE match MUMBLE.c or fooMUMBLE but only foo/MUMBLE. * mangle.c: New file. * create.c, extract.c: According changes. * extract.c: Don't complain when extracting an already existing link. Don't complain when extracting a directory iff it already exists. Don't ad u+wx to directories when running as root. Reported by Chip Salzenberg. * gnu.c: Make +listed-incremental work. Reported by Chip Salzenberg. * port.c: Add the F_FREESP emulation of the ftruncate syscall. 1990-11-21 Jay Fenlason Remove excess \n from lots of msg() calls. 1990-11-19 Jay Fenlason * tar.c: Rename +volume to +label. 1990-11-16 David J. MacKenzie * tar.c (describe): Include the default values for -b and -f (as set in the Makefile) in the message. 1990-11-15 Jay Fenlason * extract.c (extract_archive): Do the utime() call before the chmod() call, 'cuz some versons of utime() trash the file's mode bits. * list.c (read_and): Call do_something on volume headers and multivol files even if they don't match the names we're looking for, etc. 1990-11-06 Jay Fenlason * port.c (un-quote-string): Don't try to write a null if there's already one there. 1990-11-01 Jay Fenlason * buffer.c (new_volume): fflush(msg_file) before reading for confirmation on new volume. On EOF or error, print error msg and abort. 1990-10-29 Jay Fenlason * getdate.y: Use new version of getdate(). * tar.c (name_add): Use sizeof(char *) instead of sizeof(int) * README: Give the correct return address. 1990-10-25 Jay Fenlason rtape_lib.c [NO_RMTIOCTL]: Instead of RMTIOCTL, so it is on by default. rmt.h [NO_REMOTE]: Add _isrmt() #define. gnu.c: Add forward reference for add_dir_name(). 1990-10-16 Jay Fenlason Version 1.09 --- New -G file implementation of gnu-dump stuff. * tar.c (name_add): Get the calls to ck_realloc and ck_malloc right. 1990-10-11 Jay Fenlason * gnu.c: Fix A couple of typos. 1990-09-19 David J. MacKenzie * getdate.y [USG && !DAYLIGHT_MISSING] (ftime): Use `daylight'. 1990-09-17 Jay Fenlason * gnu.c (gnu_restore): Don't use a passed char* for the file name, use skipcrud+head->header.name, just like everything else does. This means that gnu_restore will still work with small buffers, etc. 1990-09-13 Jay Fenlason * tar.c (add_exclude): Don't bus-error if the exclude file doesn't end with a newline. 1990-09-09 David J. MacKenzie * Makefile (dist): Remove .fname when done. 1990-09-06 Jay Fenlason * gnu.c (gnu_restore): Rember to skip_file() over the directory contents, even if we don't have to do anything with them. * create.c, extract.c, diffarch.c: Free sparsearray after we're done with it. 1990-09-04 Jay Fenlason * Makefile: Include gnu.c in dist * gnu.c: Move add_dir above read_dir_file so that cc doesn't complain about add_dir returning void. 1990-09-02 David J. MacKenzie * getdate.y: Declare some more functions and add storage classes where omitted to shut compiler up. [USG] (ftime): Don't use extern var `daylight'; appears that some systems don't have it. 1990-08-29 David J. MacKenzie * getdate.y (lookup): In the code that allows `Aug.' to be recognized as `Aug', don't chop off the final `.' from words like `a.m.', so they can be recognized. 1990-08-16 Jay Fenlason * buffer.c (open_archive): If -O, write verbosity to stderr instead of stdout. 1990-08-10 Jay Fenlason * getdate.y: Handle an explicit DST in the input string. Reported by Per Foreby. 1990-07-16 Jay Fenlason * tar.c: rename -g -G +incremental, +listed-imcremental, etc. 1990-07-13 Jay Fenlason * tar.c: Make +newer and +newer-mtime work according to their names. * gnu.c: If +newer or +newer-mtime, use the time specified on the command line. * buffer.c, create.c: Add test to see if dimwit is trying to archive the archive. * tar.c (long_options[]): Re-ordered, so that groups of similar options are next to each other... I think. (describe): Modified to more closely reflect reality. 1990-07-06 Jay Fenlason * tar.c: Add compile-time option for SYS V (?) style tape-drive names /dev/rmt/{n}[lmh] * tar.c: Fix getopt-style stuff so that -C always works correctly. * gnu.c, tar.c: Make filename to -G optional. * {all over}: Replace some fprintf(stderr...) calls with calls to msg(). * port.c: Make -Dmumble_MSG option on command line override internal assumptions. * Makefile: Mention -Dmumble_MSG options 1990-07-06 David J. MacKenzie * tar.c (options): Don't change `c' if it is 0, as getopt now handles that internally. 1990-07-02 Jay Fenlason * gnu.c (new file): Moved all the f_gnudump stuff here where we can keep track of it easier. Also made -G take a file name where it stores the inode information about directories so that we can detect moved directores. * create.c (dump_file): Changed slightly to work with the new f_gnudump. * tar.c: Moved the f_gnudump stuff to gnu.c * tar.c, extract.c: Added the +do-chown option, which forces tar to always try to chown the created files to their original owners. * version.c: New version 1.09 1990-06-24 David J. MacKenzie * create.c: Change ifdefs for directory library header selection to be like the ones in tar.c. * Makefile [Xenix]: Link with -ldir to get the dirent.h directory library. 1990-06-07 David J. MacKenzie * Makefile, buffer.c, diffarch.c [HAVE_MTIO]: Instead of MTIO, as SCO Xenix defines 'MTIO' for an incompatible tape driver system in a file included by termio.h. * tar.h: Don't define size_t for Xenix. 1990-06-05 Jay Fenlason * create.c (dump_file): Only print the "... is on a different filesystem..." if f_verbose is on. also add a case for S_IFSOCK and treat it like a FIFO. (Not sure if that's the right thing to do or not, but it's better than all those Unknown File Type msgs.) 1990-05-31 Jay Fenlason * port.c [sparc]: Use instead of SPARC since the lowercase version is defined, and the uppercase one isn't. 1990-05-22 Jay Fenlason * port.c (ck_malloc): if size==0 pretend size=1 (ck_realloc): if(!ptr) call ck_malloc instead. 1990-05-15 Jay Fenlason * diffarch.c (diff_archive): If not f_absolute_paths, and attempt to open a file listed in the archive fails, try /filename also. This will allow diff to open the wrong file if both /filename and filename exist, but there's nothing we can do about that. 1990-05-11 Jay Fenlason * Makefile: Describe new -DMTIO option. * buffer.c, diffarch.c: Change ifdefs slightly, so that -DMTIO will include sys/mtio.h even if USG is defined. This is for HPUX and similar BSD/USG crossovers. 1990-05-08 Jay Fenlason * update.c (update_archive): Call reset_eof() when appropriate. * buffer.c (reset_eof): New function, that turns of EOF flag, and re-sets the ar_record and ar_last pointers. This will allow 'tar rf non-existant-file' to not core-dump. 1990-05-04 David J. MacKenzie * tar.c: Recognize the +sparse option. It was documented, but only the short form (-S) was actually recognized. 1990-04-17 Jay Fenlason * create.c: Don't access location 0 if ->dir_contents is null. 1990-04-11 Jay Fenlason * buffer.c (flush_archive, close_archive, new_volume): Always check the return value of rmtclose(), and only give a warning msg if it is <0. Some device drivers (including Sun floppy disk, and HP streaming tape) return -1 after an IO error (or something like that.) 1990-03-23 Jim Kingdon * tar.c (long_options): Make it so +append +extract +list +update +catenate and +delete don't take arguments. 1990-03-12 Jay Fenlason * buffer.c (open_archive, fl_write): Set the mtime of the volume header to the current time. 1990-03-07 Jay Fenlason * buffer.c Fix +compress-block A two character patch from Juha Sarlin. Replace #ifdef __GNU__ with #ifdef __STDC__. (new_volume): If open of new archive fails, ask again, as it probably is user error. * tar.c: Replace #ifdef __GNU__ with #ifdef __STDC__ * port.c: Clean up #ifdef and #defines a bit. (quote_copy_string): Sometimes the malloc'd buffer would be up to two characters too short. * extract.c (extract_archive): Don't declare ind static. * create.c (dump_file): Don't declare index_offset static. * diffarch.c: Remove diff_name variable, and always use head->header.name, which will always work, unlike diff_name, which becomes trash when the next block is read in. 1990-03-01 Jay Fenlason * Makefile: Mention the -NO_REMOTE option. * port.c [i386]: Fix typo, and define WANT_FTRUNCATE. 1990-02-26 Jim Kingdon * getdate.y: Declare yylex and yyerror as static. #define yyparse to getdate_yyparse. 1990-02-25 David J. MacKenzie * tar.c: Remove +old option, since it is a valid abbreviation of +old-archive, which does the same thing. (describe): A few small cleanups in message. 1990-02-05 Jay Fenlason * port.c [sparc]: Define LOSING_MSG, since doprnt_msg doesn't work. [WANT_GETWD]: Fix typo. 1990-01-26 Jay Fenlason Version 1.08 --- Sparse file support added. Also various other features. * diffarch.c (compare_chunk): Include correct arguments in a call to fprintf() for an error msg. (compare_chunks, compare_dir): First argument is a long, not an int. * tar.c (options): Use tar variable (argv[0]) as the name to print in an error msg, instead of a constant "tar". (confirm): Use external variable char TTY_NAME[] for name of file to open for confirmation input. * buffer.c (new_volume): Ditto. * port.c: Add declaration for TTY_NAME[]. * rmt.h: Add long declarations for lseek() and __rmt_lseek(); 1990-01-23 Jay Fenlason * tar.c, create.c: Create the +newer-mtime option, which is like +newer, but only looks for files whose mtime is newer than the given date. * rtape_lib.c [USG]: Make *both* instances of signal-handler stuff use void (*foo)(). 1990-01-11 Jay Fenlason * getdate.y : Parse European dates of the form YYMMDD. In ftime(): Init timezone by calling localtime(), and remember that timezone is in seconds, but we want timeb->timezone to be in minutes. Reported by Jörgen Haegg. * rtape_lib.c (__rmt_open): Also look for /usr/bsd/rsh. Declare signal handler as returning void instead of int if USG is defined. * port.c: Declare WANT_GETWD for SGI 4-D IRIS. * Makefile: Include defines for SGI 4D version. Reported by Mike Muuss. * buffer.c (fl_read): Work properly on broken Ultrix systems where read() returns -1 with errno==ENOSPC on end of tape. Correctly go on to the next volume if f_multivol. * list.c (list_archive, print_header): Flush msg_file after printing messages. * port.c: Delete unused references to alloca(). Don't crash if malloc() returns zero in quote_copy_string. Flush stderr in msg() and msg_perror(). * tar.c: Flush msg_file after printing confirmation msg. 1990-01-10 David J. MacKenzie * tar.c (main): Change -help option and references to it to +help, and remove suggestion to run info (which is unreleased, so not likely to be of any help). 1990-01-09 Jay Fenlason * create.c (dump_file): Close file descriptor if start_header() fails. (dump_file): Change test for `./'-ness to not think that `.' {any character} is a `./'. Reported by Piercarlo Grandi. * diffarch.c (diff_init): Print correct number of bytes in error message. 1990-01-09 David J. MacKenzie * Makefile: Add comment at top noting that two source files also contain #defines that might need to be changed by hand. * create.c, diffarch.c, extract.c: Change L_SET to 0 in lseek calls, because only BSD defines it. * create.c (dump_file) [BSD42]: Make sparse file checking code conditional because it uses st_blocks, which the other systems lack. 1990-01-02 Jay Fenlason * port.c (quote_copy_string): Fix so it doesn't scramble memory if the last character is non-printable. Reported by Kian-Tat Lim. 1989-12-19 Jim Kingdon * port.c [BSD42]: Define DOPRNT_MSG. tar.h [BSD42]: Do not prototype msg{,_perror}. 1989-12-08 Jay Fenlason * create.c (dump_file): Remove typo in msg. 1989-12-01 David J. MacKenzie * Makefile: Remove comments referring to certain systems lacking getopt, since it is now provided always and needed by all systems. * port.c: Remove copy of getopt.c, as it is now linked in separately to always get the current version. * tar.c: Rename +cat-tars option to +catenate or +concatenate, and +local-filesystem to +one-file-system (preferred by rms and used in GNU cp for the same purpose). (describe): Reflect changes. 1989-11-28 David J. MacKenzie * port.c: Move declaration of alloca into #else /* sparc */ so it will compile on sparcs. 1989-11-27 David J. MacKenzie * tar.c (options): Remove -version option (replaced by +version). (describe): Mention long options. 1989-11-25 David J. MacKenzie * getoldopt.c (getoldopt): Make `opt_index' argument a pointer to an int, not char. * tar.c: Modify long options per rms's suggestions: Make preserve-permissions an alias for same-permissions. Make preserve-order an alias for same-order. Define preserve to mean both of those combined. Make old an alias for old-archive. Make portability an alias for old-archive, also. Rename sym-links to dereference. Rename gnudump to incremental. Rename filename to file. Make compare an alias for diff. Leave diff but prefer compare. Rename blocking-factor to block-size. Rename chdir to directory. Make uncompress an alias for compress. Rename confirm to interactive. Make get an alias for extract. Rename volume-header to volume. Also make +version an alias for -version. (options): Shorten code that interprets long options by using the equivalent short options' code. This also makes it tons easier to change the long options. (describe): Make usage message more internally consistent stylistically. 1989-11-20 hack@ai.mit.edu * list.c (read_and): Call check_exclude() to see if the files should be skipped on extract or list. 1989-11-09 Jim Kingdon * buffer.c (fl_read): Fix typos in error message "tar EOF not on block boundary". 1989-10-23 * tar.c (long_options[]): Add an option for blocked compression. 1989-10-19 * buffer.c (writeerror): Print a more useful error msg. 1989-09-27 * tar.c (main): Mention "tar -help" if the luser types a non-workable set of options. 1989-09-11 * tar.c (options): Have -F correctly set info_script. 1989-08-29 * Makefile Include ChangeLog in tar.tar and tar.tar.Z 1989-08-28 * tar.c (options) Made -F imply -M. Also remind tar that the -f option takes an argument! * Modified -F option to make it do what (I think) it should. e.g, if you say -F, tar won't send a msg to msg_file and wait for a It'll just run the program it was given, and when the prog returns, the new tape had *better* be ready... * buffer.c (open_archive): Give error message and abort if the luser didn't give an archive name. 1989-08-25 Joy Kendall * Added code to make a new option to run a specified script at the end of each tape in a multi-volume backup. Changed: tar.c: made new switch, -F, and new long-named option, "info-script". Code is where you would expect. * tar.h: added flag f_run_script_at_end, and an extern char * called info_script, which optarg gets set to. * buffer.c (new_volume): if f_run_script_at_end is set, we give info_script to system(), otherwise we do what we've always done. 1989-08-24 Joy Kendall (These changes made over the course of 6/89 - 8/89) * diffarch.c: diff_archive: Added switches for LF_SPARSE in the case statements that needed it. Also, skip any extended headers if we need to when we skip over a file. (need to change the bit about, if the size doesn't agree AND the file is NOT sparse, then there's a discrepancy, because I added another field to the header which should be able to deal with the sizes): If the file is sparse, call the added routine "diff_sparse_files" to compare. Also added routine "fill_in_sparse_array". * extract.c: extract_archive: added the switch LF_SPARSE to the case statement as needed, and code to treat the sparse file. At label "again_file", modified opening the file to see if we should have O_APPEND be one of the modes. Added code at label "extract_file" to call the new routine "extract_sparse_file" when we have an LF_SPARSE flag. Note: really should erase the commented-out code in there, because it's confusing. * update.c: made sure that if a file needed to be "skipped" over, it would check to see if the linkflag was sparse, and if so, would then make sure to skip over any "extended headers" that might come after the header itself. Do so by calling "skip_extended_headers". * create.c: create_archive: added code to detect a sparse file when in the long case statement. Added ways to detect extended headers, and label "extend" (ack! should get rid of that, is atrocious). Call the new routine "finish_sparse_file" if the linkflag is LF_SPARSE to write the info to the tape. Also added routines "init_sparsearray", "deal_with_sparse", "clear_buffer", "where_is_data", "zero_record", and "find_new_file_size". * tar.h: Added the #define's SPARSE_EXT_HDR and SPARSE_IN_HDR. Added the struct sparse and the struct sp_array. Added the linkflag LF_SPARSE. Changed the tar header in several ways: - added an array of struct sparse's SPARSE_IN_HDR long - added a char flag isextended - added a char string realsize to store the true size of a sparse file Added another choice to the union record called a struct extended_header, which is an array of 21 struct sparse's and a char isextended flag. Added flag f_sparse_file to list of flags. * tar.c: added long-named options to make tar compatible with getopt_long, changed Makefile. 1989-03-03 David MacKenzie (edf at rocky2.rockefeller.edu) (I'm not completely sure all these have been integrated -- FP.) * buffer.c [USG]: ifdef'd out #include . (close_archive): SysV doesn't have ftruncate, so substituted fmtwrite (just copied the code for MS-DOS). * create.c: Unos lacks so provided a substitute. (start_header): Only strip leading paths if f_relative_paths is true. * extract.c: (extract_archive): Only strip leading paths if f_relative_paths is true. Because the Unos filesystem has only one timestamp, moved the utime call to after the chown and chmod calls. * getdate.y: Don't define ftime if Unos. * list.c: Defined size_t for Unos. [USG]: Don't include . Define stuff manually for Unos. (decode_header): Add braces around switch cases; some compilers require them. (print_header): Changed UGSWIDTH from 11 to 25 because the smaller value made tape listings of files owned by more than one user gradually get wider, making them hard to read. * port.c: Don't include if SysV. Define size_t for Unos. (mkdir): Add code to support Unos makedir sys call. (getopt): Use malloc instead of alloca, because tar doesn't use alloca anywhere else and many systems lack it. A few other changes from the current version of getopt.c incorporated. * rtape_lib.c: Undefine RMTIOCTL. Doesn't seem to be needed, and can't compile on Unos/SysV with it defined. Might need to be ifdef'd. * tar.c: Alias addname to add_name and rmdir to deldir on Unos due to C library weirdness. (options): Recognize new -P option to set f_relative paths. (describe): Clean up error message and add -P description. * tar.h: Add variable, f_relative_paths, to cause tar to strip leading `/' characters in pathnames during create and extract. * tar.texinfo: Fixed a couple of typos, detected by texi2roff. * update.c: Simulate for Unos. Previous releases by Jay Fenlason (hack@ai.mit.edu) * Version 1.07 --- New version to go on beta tape with GCC 1.35. Better USG support. Also support for __builtin_alloca if we're compiling with GCC. * diffarch.c: Include the correct header files so MTIOCTOP is defined. * tar.c: Don't print the verbose list of options unless given -help. The list of options is *way* too long. * Version 1.06 --- [__STDC__]: Use STDC_MSG. ENXIO meand end-of-volume in archive (for the UNIX PC) Added break after volume-header case (line 440) extract.c Added patch to rtape_lib.c (reported by Arnold Robbins). Added f_absolute_paths option. Deleted refereces to UN*X manual sections (dump(8), etc) Fixed to not core-dump on illegal options Modified msg_perror to call perror("") instead of perror(0) patch so -X - works Fixed tar.c so 'tar cf - -C dir' doesn't core-dump tar.c (name_match): Fixed to chdir() to the appropriate directory if the matching name's change_dir is set. This makes tar xv -C foo {files} work. * Version 1.05 --- A fix to make confirm() work when the archive is on stdin; include 'extern FILE *msg_file;' in pr_mkdir(). * tar.h [__STDC__]: Fix to work. Added to port.c: mkdir() ftruncate(): Removed: lstat() Fixed -G to work with -X Another fix to tar.texinfo Changed tar.c to say argv[0]":you must specify exactly ... buffer.c: modified child_open() to keep tar from hanging when it is done reading/writing a compressed archive added fflush(msg_file) before printing error messages create.c: fixed to make link_names non-absolute * Version 1.04 --- Added functions msg() and msg_perror(): Modified all the files to call them. Also checked that all (I hope) calls to msg_perror() have a valid errno value. (modified anno() to leave errno alone), etc. Re-fixed the -X option. This time for sure... re-modified the msg stuff. flushed anno() completely Modified the directory stuff so it should work on sysV boxes added ftime() to getdate.y Fixed un_quote_string() so it won't wedge on \" Also fixed \ddd (like \123, etc) More fixes to tar.texinfo * Version 1.03 --- Fixed buffer.c so 'tar tzf NON_EXISTENT_FILE' returns an error message instead of hanging forever. More fixes to tar.texinfo. * Version 1.02 --- Fixed tar.c so 'tar -h' and 'tar -v' don't cause core dump. Also fixed the 'usage' message to be more up-to-date. * diffarch.c [!MTIOCTOP]: Fixed so verify should compile. * Version 1.01 --- Fixed typoes in tar.texinfo. Fixed a bug in the #define for rmtcreat(). Fixed the -X option to not call realloc() of 0. * Version 1.00 --- version.c added. -version option added. Installed new version of the remote-tape library. Added -help option. tar-1.13/src/Makefile.am0000444000176300016070000000255106737602207010547 # Makefile for GNU tar sources. # Copyright (C) 1994, 1995, 1996, 1997, 1999 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. AUTOMAKE_OPTIONS = gnits ansi2knr bin_PROGRAMS = tar libexec_PROGRAMS = @RMT@ EXTRA_PROGRAMS = rmt 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 datadir = $(prefix)/@DATADIRNAME@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ INCLUDES = -I.. -I../intl -I$(top_srcdir)/lib # Link libtar.a after @INTLLIBS@, since @INTLLIBS@ might invoke rpl_realloc. LDADD = @INTLLIBS@ ../lib/libtar.a tar-1.13/src/Makefile.in0000664000176300016070000003564406740607422010573 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. # Makefile for GNU tar sources. # Copyright (C) 1994, 1995, 1996, 1997, 1999 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ AUTOMAKE_OPTIONS = gnits ansi2knr bin_PROGRAMS = tar libexec_PROGRAMS = @RMT@ EXTRA_PROGRAMS = rmt 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 datadir = $(prefix)/@DATADIRNAME@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ INCLUDES = -I.. -I../intl -I$(top_srcdir)/lib # Link libtar.a after @INTLLIBS@, since @INTLLIBS@ might invoke rpl_realloc. LDADD = @INTLLIBS@ ../lib/libtar.a mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = bin_PROGRAMS = tar$(EXEEXT) libexec_PROGRAMS = @RMT@ PROGRAMS = $(bin_PROGRAMS) $(libexec_PROGRAMS) CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ ANSI2KNR = @ANSI2KNR@ rmt_OBJECTS = rmt$U.o rmt_LDADD = $(LDADD) rmt_DEPENDENCIES = ../lib/libtar.a rmt_LDFLAGS = tar_OBJECTS = arith$U.o buffer$U.o compare$U.o create$U.o delete$U.o \ extract$U.o incremen$U.o list$U.o mangle$U.o misc$U.o names$U.o \ open3$U.o rtapelib$U.o tar$U.o update$U.o tar_LDADD = $(LDADD) tar_DEPENDENCIES = ../lib/libtar.a tar_LDFLAGS = CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ HEADERS = $(noinst_HEADERS) DIST_COMMON = ChangeLog Makefile.am Makefile.in ansi2knr.1 ansi2knr.c DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best SOURCES = $(rmt_SOURCES) $(tar_SOURCES) OBJECTS = $(rmt_OBJECTS) $(tar_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done mostlyclean-libexecPROGRAMS: clean-libexecPROGRAMS: -test -z "$(libexec_PROGRAMS)" || rm -f $(libexec_PROGRAMS) distclean-libexecPROGRAMS: maintainer-clean-libexecPROGRAMS: install-libexecPROGRAMS: $(libexec_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(libexecdir) @list='$(libexec_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-libexecPROGRAMS: @$(NORMAL_UNINSTALL) list='$(libexec_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: mostlyclean-krextra: clean-krextra: -rm -f ansi2knr distclean-krextra: maintainer-clean-krextra: ansi2knr: ansi2knr.o $(LINK) ansi2knr.o $(LIBS) ansi2knr.o: $(CONFIG_HEADER) mostlyclean-kr: -rm -f *_.c clean-kr: distclean-kr: maintainer-clean-kr: rmt$(EXEEXT): $(rmt_OBJECTS) $(rmt_DEPENDENCIES) @rm -f rmt$(EXEEXT) $(LINK) $(rmt_LDFLAGS) $(rmt_OBJECTS) $(rmt_LDADD) $(LIBS) tar$(EXEEXT): $(tar_OBJECTS) $(tar_DEPENDENCIES) @rm -f tar$(EXEEXT) $(LINK) $(tar_LDFLAGS) $(tar_OBJECTS) $(tar_LDADD) $(LIBS) arith_.c: arith.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/arith.c; then echo $(srcdir)/arith.c; else echo arith.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > arith_.c buffer_.c: buffer.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/buffer.c; then echo $(srcdir)/buffer.c; else echo buffer.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > buffer_.c compare_.c: compare.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/compare.c; then echo $(srcdir)/compare.c; else echo compare.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > compare_.c create_.c: create.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/create.c; then echo $(srcdir)/create.c; else echo create.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > create_.c delete_.c: delete.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/delete.c; then echo $(srcdir)/delete.c; else echo delete.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > delete_.c extract_.c: extract.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/extract.c; then echo $(srcdir)/extract.c; else echo extract.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > extract_.c incremen_.c: incremen.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/incremen.c; then echo $(srcdir)/incremen.c; else echo incremen.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > incremen_.c list_.c: list.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/list.c; then echo $(srcdir)/list.c; else echo list.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > list_.c mangle_.c: mangle.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mangle.c; then echo $(srcdir)/mangle.c; else echo mangle.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > mangle_.c misc_.c: misc.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/misc.c; then echo $(srcdir)/misc.c; else echo misc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > misc_.c names_.c: names.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/names.c; then echo $(srcdir)/names.c; else echo names.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > names_.c open3_.c: open3.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/open3.c; then echo $(srcdir)/open3.c; else echo open3.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > open3_.c rmt_.c: rmt.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/rmt.c; then echo $(srcdir)/rmt.c; else echo rmt.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > rmt_.c rtapelib_.c: rtapelib.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/rtapelib.c; then echo $(srcdir)/rtapelib.c; else echo rtapelib.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > rtapelib_.c tar_.c: tar.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/tar.c; then echo $(srcdir)/tar.c; else echo tar.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > tar_.c update_.c: update.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/update.c; then echo $(srcdir)/update.c; else echo update.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > update_.c arith_.o buffer_.o compare_.o create_.o delete_.o extract_.o \ incremen_.o list_.o mangle_.o misc_.o names_.o open3_.o rmt_.o \ rtapelib_.o tar_.o update_.o : $(ANSI2KNR) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ 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-binPROGRAMS install-libexecPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall-libexecPROGRAMS uninstall: uninstall-am all-am: Makefile $(ANSI2KNR) $(PROGRAMS) $(HEADERS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(libexecdir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-libexecPROGRAMS \ mostlyclean-compile mostlyclean-krextra mostlyclean-kr \ mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-libexecPROGRAMS clean-compile \ clean-krextra clean-kr clean-tags clean-generic \ mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-libexecPROGRAMS \ distclean-compile distclean-krextra distclean-kr \ distclean-tags distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-libexecPROGRAMS \ maintainer-clean-compile maintainer-clean-krextra \ maintainer-clean-kr maintainer-clean-tags \ maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-libexecPROGRAMS distclean-libexecPROGRAMS \ clean-libexecPROGRAMS maintainer-clean-libexecPROGRAMS \ uninstall-libexecPROGRAMS install-libexecPROGRAMS mostlyclean-compile \ distclean-compile clean-compile maintainer-clean-compile \ mostlyclean-krextra distclean-krextra clean-krextra \ maintainer-clean-krextra mostlyclean-kr distclean-kr clean-kr \ maintainer-clean-kr tags mostlyclean-tags distclean-tags clean-tags \ maintainer-clean-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 # 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. .NOEXPORT: tar-1.13/src/ansi2knr.10000444000176300016070000000277106357250524010327 .TH ANSI2KNR 1 "19 Jan 1996" .SH NAME ansi2knr \- convert ANSI C to Kernighan & Ritchie C .SH SYNOPSIS .I ansi2knr [--varargs] input_file [output_file] .SH DESCRIPTION If no output_file is supplied, output goes to stdout. .br There are no error messages. .sp .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. .sp The following constructs will confuse it: .br - Any other construct that starts at the left margin and follows the above syntax (such as a macro or function call). .br - Some macros that tinker with the syntax of the function header. .sp The --varargs switch is obsolete, and is recognized only for backwards compatibility. The present version of .I ansi2knr will always attempt to convert a ... argument to va_alist and va_dcl. .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 . tar-1.13/src/ansi2knr.c0000444000176300016070000004442006704654131010404 /* Copyright (C) 1989, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved. */ /*$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 */ /* 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. 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. 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. */ /* * Usage: ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]] * --filename provides the file name for the #line directive in the output, * overriding input_file (if present). * If no input_file is supplied, input is read from stdin. * If no output_file is supplied, output goes to stdout. * There are no error messages. * * 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), except that a line * consisting of only * identifier1(identifier2) * will not be considered a function definition unless identifier2 is * the word "void", and a line consisting of * identifier1(identifier2, <>) * will not be considered a function definition. * ansi2knr 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. * The following constructs will confuse it: * - Any other construct that starts at the left margin and * follows the above syntax (such as a macro or function call). * - Some macros that tinker with the syntax of function headers. */ /* * The original and principal author of ansi2knr is L. Peter Deutsch * . Other authors are noted in the change history * that follows (in reverse chronological order): lpd 1999-04-12 added minor fixes from Pavel Roskin for clean compilation with gcc -W -Wall lpd 1999-03-22 added hack to recognize lines consisting of identifier1(identifier2, xxx) as *not* being procedures lpd 1999-02-03 made indentation of preprocessor commands consistent lpd 1999-01-28 fixed two bugs: a '/' in an argument list caused an endless loop; quoted strings within an argument list confused the parser lpd 1999-01-24 added a check for write errors on the output, suggested by Jim Meyering lpd 1998-11-09 added further hack to recognize identifier(void) as being a procedure lpd 1998-10-23 added hack to recognize lines consisting of identifier1(identifier2) as *not* being procedures lpd 1997-12-08 made input_file optional; only closes input and/or output file if not stdin or stdout respectively; prints usage message on stderr rather than stdout; adds --filename switch (changes suggested by ) lpd 1996-01-21 added code to cope with not HAVE_CONFIG_H and with compilers that don't understand void, as suggested by Tom Lane lpd 1996-01-15 changed to require that the first non-comment token on the line following a function header be a left brace, to reduce sensitivity to macros, as suggested by Tom Lane lpd 1995-06-22 removed #ifndefs whose sole purpose was to define undefined preprocessor symbols as 0; changed all #ifdefs for configuration symbols to #ifs lpd 1995-04-05 changed copyright notice to make it clear that including ansi2knr in a program does not bring the entire program under the GPL lpd 1994-12-18 added conditionals for systems where ctype macros don't handle 8-bit characters properly, suggested by Francois Pinard ; removed --varargs switch (this is now the default) lpd 1994-10-10 removed CONFIG_BROKETS conditional lpd 1994-07-16 added some conditionals to help GNU `configure', suggested by Francois Pinard ; properly erase prototype args in function parameters, contributed by Jim Avera ; correct error in writeblanks (it shouldn't erase EOLs) lpd 1989-xx-xx original version */ /* Most of the conditionals here are to make ansi2knr work with */ /* or without the GNU configure machinery. */ #if HAVE_CONFIG_H # include #endif #include #include #if HAVE_CONFIG_H /* For properly autoconfiguring ansi2knr, use AC_CONFIG_HEADER(config.h). This will define HAVE_CONFIG_H and so, activate the following lines. */ # if STDC_HEADERS || HAVE_STRING_H # include # else # include # endif #else /* not HAVE_CONFIG_H */ /* Otherwise do it the hard way */ # ifdef BSD # include # else # ifdef VMS extern int strlen(), strncmp(); # else # include # endif # endif #endif /* not HAVE_CONFIG_H */ #if STDC_HEADERS # include #else /* malloc and free should be declared in stdlib.h, but if you've got a K&R compiler, they probably aren't. */ # ifdef MSDOS # include # else # ifdef VMS extern char *malloc(); extern void free(); # else extern char *malloc(); extern int free(); # endif # endif #endif /* Define NULL (for *very* old compilers). */ #ifndef NULL # define NULL (0) #endif /* * The ctype macros don't always handle 8-bit characters correctly. * Compensate for this here. */ #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 #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)) /* Scanning macros */ #define isidchar(ch) (is_alnum(ch) || (ch) == '_') #define isidfirstchar(ch) (is_alpha(ch) || (ch) == '_') /* Forward references */ char *skipspace(); char *scanstring(); int writeblanks(); int test1(); int convert1(); /* The main program */ int main(argc, argv) int argc; char *argv[]; { FILE *in = stdin; FILE *out = stdout; char *filename = 0; char *program_name = argv[0]; char *output_name = 0; #define bufsize 5000 /* arbitrary size */ char *buf; char *line; char *more; char *usage = "Usage: ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]]\n"; /* * In previous versions, ansi2knr recognized a --varargs switch. * If this switch was supplied, ansi2knr would attempt to convert * a ... argument to va_alist and va_dcl; if this switch was not * supplied, ansi2knr would simply drop any such arguments. * Now, ansi2knr always does this conversion, and we only * check for this switch for backward compatibility. */ int convert_varargs = 1; int output_error; while ( argc > 1 && argv[1][0] == '-' ) { if ( !strcmp(argv[1], "--varargs") ) { convert_varargs = 1; argc--; argv++; continue; } if ( !strcmp(argv[1], "--filename") && argc > 2 ) { filename = argv[2]; argc -= 2; argv += 2; continue; } fprintf(stderr, "%s: Unrecognized switch: %s\n", program_name, argv[1]); fprintf(stderr, usage); exit(1); } switch ( argc ) { default: fprintf(stderr, usage); exit(0); case 3: output_name = argv[2]; out = fopen(output_name, "w"); if ( out == NULL ) { fprintf(stderr, "%s: Cannot open output file %s\n", program_name, output_name); exit(1); } /* falls through */ case 2: in = fopen(argv[1], "r"); if ( in == NULL ) { fprintf(stderr, "%s: Cannot open input file %s\n", program_name, argv[1]); exit(1); } if ( filename == 0 ) filename = argv[1]; /* falls through */ case 1: break; } if ( filename ) fprintf(out, "#line 1 \"%s\"\n", filename); buf = malloc(bufsize); if ( buf == NULL ) { fprintf(stderr, "Unable to allocate read buffer!\n"); exit(1); } line = buf; while ( fgets(line, (unsigned)(buf + bufsize - line), in) != NULL ) { test: line += strlen(line); switch ( test1(buf) ) { case 2: /* a function header */ convert1(buf, out, 1, convert_varargs); break; case 1: /* a function */ /* Check for a { at the start of the next line. */ more = ++line; f: if ( line >= buf + (bufsize - 1) ) /* overflow check */ goto wl; if ( fgets(line, (unsigned)(buf + bufsize - line), in) == NULL ) goto wl; switch ( *skipspace(more, 1) ) { case '{': /* Definitely a function header. */ convert1(buf, out, 0, convert_varargs); fputs(more, out); break; case 0: /* The next line was blank or a comment: */ /* keep scanning for a non-comment. */ line += strlen(line); goto f; default: /* buf isn't a function header, but */ /* more might be. */ fputs(buf, out); strcpy(buf, more); line = buf; goto test; } break; case -1: /* maybe the start of a function */ if ( line != buf + (bufsize - 1) ) /* overflow check */ continue; /* falls through */ default: /* not a function */ wl: fputs(buf, out); break; } line = buf; } if ( line != buf ) fputs(buf, out); free(buf); if ( output_name ) { output_error = ferror(out); output_error |= fclose(out); } else { /* out == stdout */ fflush(out); output_error = ferror(out); } if ( output_error ) { fprintf(stderr, "%s: error writing to %s\n", program_name, (output_name ? output_name : "stdout")); exit(1); } if ( in != stdin ) fclose(in); return 0; } /* Skip over whitespace and comments, in either direction. */ char * skipspace(p, dir) register char *p; register int dir; /* 1 for forward, -1 for backward */ { for ( ; ; ) { while ( is_space(*p) ) p += dir; if ( !(*p == '/' && p[dir] == '*') ) break; p += dir; p += dir; while ( !(*p == '*' && p[dir] == '/') ) { if ( *p == 0 ) return p; /* multi-line comment?? */ p += dir; } p += dir; p += dir; } return p; } /* Scan over a quoted string, in either direction. */ char * scanstring(p, dir) register char *p; register int dir; { for (p += dir; ; p += dir) if (*p == '"' && p[-dir] != '\\') return p + dir; } /* * Write blanks over part of a string. * Don't overwrite end-of-line characters. */ int writeblanks(start, end) char *start; char *end; { char *p; for ( p = start; p < end; p++ ) if ( *p != '\r' && *p != '\n' ) *p = ' '; return 0; } /* * Test whether the string in buf is a function definition. * The string may contain and/or end with a newline. * Return as follows: * 0 - definitely not a function definition; * 1 - definitely a function definition; * 2 - definitely a function prototype (NOT USED); * -1 - may be the beginning of a function definition, * append another line and look again. * The reason we don't attempt to convert function prototypes is that * Ghostscript's declaration-generating macros look too much like * prototypes, and confuse the algorithms. */ int test1(buf) char *buf; { register char *p = buf; char *bend; char *endfn; int contin; if ( !isidfirstchar(*p) ) return 0; /* no name at left margin */ bend = skipspace(buf + strlen(buf) - 1, -1); switch ( *bend ) { case ';': contin = 0 /*2*/; break; case ')': contin = 1; break; case '{': return 0; /* not a function */ case '}': return 0; /* not a function */ default: contin = -1; } while ( isidchar(*p) ) p++; endfn = p; p = skipspace(p, 1); if ( *p++ != '(' ) return 0; /* not a function */ p = skipspace(p, 1); if ( *p == ')' ) return 0; /* no parameters */ /* Check that the apparent function name isn't a keyword. */ /* We only need to check for keywords that could be followed */ /* by a left parenthesis (which, unfortunately, is most of them). */ { static char *words[] = { "asm", "auto", "case", "char", "const", "double", "extern", "float", "for", "if", "int", "long", "register", "return", "short", "signed", "sizeof", "static", "switch", "typedef", "unsigned", "void", "volatile", "while", 0 }; char **key = words; char *kp; unsigned len = endfn - buf; while ( (kp = *key) != 0 ) { if ( strlen(kp) == len && !strncmp(kp, buf, len) ) return 0; /* name is a keyword */ key++; } } { char *id = p; int len; /* * Check for identifier1(identifier2) and not * identifier1(void), or identifier1(identifier2, xxxx). */ while ( isidchar(*p) ) p++; len = p - id; p = skipspace(p, 1); if (*p == ',' || (*p == ')' && (len != 4 || strncmp(id, "void", 4))) ) return 0; /* not a function */ } /* * If the last significant character was a ), we need to count * parentheses, because it might be part of a formal parameter * that is a procedure. */ if (contin > 0) { int level = 0; for (p = skipspace(buf, 1); *p; p = skipspace(p + 1, 1)) level += (*p == '(' ? 1 : *p == ')' ? -1 : 0); if (level > 0) contin = -1; } return contin; } /* Convert a recognized function definition or header to K&R syntax. */ int convert1(buf, out, header, convert_varargs) char *buf; FILE *out; int header; /* Boolean */ int convert_varargs; /* Boolean */ { char *endfn; register char *p; /* * The breaks table contains pointers to the beginning and end * of each argument. */ char **breaks; unsigned num_breaks = 2; /* for testing */ char **btop; char **bp; char **ap; char *vararg = 0; /* Pre-ANSI implementations don't agree on whether strchr */ /* is called strchr or index, so we open-code it here. */ for ( endfn = buf; *(endfn++) != '('; ) ; top: p = endfn; breaks = (char **)malloc(sizeof(char *) * num_breaks * 2); if ( breaks == NULL ) { /* Couldn't allocate break table, give up */ fprintf(stderr, "Unable to allocate break table!\n"); fputs(buf, out); return -1; } btop = breaks + num_breaks * 2 - 2; bp = breaks; /* Parse the argument list */ do { int level = 0; char *lp = NULL; char *rp = NULL; char *end = NULL; if ( bp >= btop ) { /* Filled up break table. */ /* Allocate a bigger one and start over. */ free((char *)breaks); num_breaks <<= 1; goto top; } *bp++ = p; /* Find the end of the argument */ for ( ; end == NULL; p++ ) { switch(*p) { case ',': if ( !level ) end = p; break; case '(': if ( !level ) lp = p; level++; break; case ')': if ( --level < 0 ) end = p; else rp = p; break; case '/': if (p[1] == '*') p = skipspace(p, 1) - 1; break; case '"': p = scanstring(p, 1) - 1; break; default: ; } } /* Erase any embedded prototype parameters. */ if ( lp && rp ) writeblanks(lp + 1, rp); p--; /* back up over terminator */ /* Find the name being declared. */ /* This is complicated because of procedure and */ /* array modifiers. */ for ( ; ; ) { p = skipspace(p - 1, -1); switch ( *p ) { case ']': /* skip array dimension(s) */ case ')': /* skip procedure args OR name */ { int level = 1; while ( level ) switch ( *--p ) { case ']': case ')': level++; break; case '[': case '(': level--; break; case '/': if (p > buf && p[-1] == '*') p = skipspace(p, -1) + 1; break; case '"': p = scanstring(p, -1) + 1; break; default: ; } } if ( *p == '(' && *skipspace(p + 1, 1) == '*' ) { /* We found the name being declared */ while ( !isidfirstchar(*p) ) p = skipspace(p, 1) + 1; goto found; } break; default: goto found; } } found: if ( *p == '.' && p[-1] == '.' && p[-2] == '.' ) { if ( convert_varargs ) { *bp++ = "va_alist"; vararg = p-2; } else { p++; if ( bp == breaks + 1 ) /* sole argument */ writeblanks(breaks[0], p); else writeblanks(bp[-1] - 1, p); bp--; } } else { while ( isidchar(*p) ) p--; *bp++ = p+1; } p = end; } while ( *p++ == ',' ); *bp = p; /* Make a special check for 'void' arglist */ if ( bp == breaks+2 ) { p = skipspace(breaks[0], 1); if ( !strncmp(p, "void", 4) ) { p = skipspace(p+4, 1); if ( p == breaks[2] - 1 ) { bp = breaks; /* yup, pretend arglist is empty */ writeblanks(breaks[0], p + 1); } } } /* Put out the function name and left parenthesis. */ p = buf; while ( p != endfn ) putc(*p, out), p++; /* Put out the declaration. */ if ( header ) { fputs(");", out); for ( p = breaks[0]; *p; p++ ) if ( *p == '\r' || *p == '\n' ) putc(*p, out); } else { for ( ap = breaks+1; ap < bp; ap += 2 ) { p = *ap; while ( isidchar(*p) ) putc(*p, out), p++; if ( ap < bp - 1 ) fputs(", ", out); } fputs(") ", out); /* Put out the argument declarations */ for ( ap = breaks+2; ap <= bp; ap += 2 ) (*ap)[-1] = ';'; if ( vararg != 0 ) { *vararg = 0; fputs(breaks[0], out); /* any prior args */ fputs("va_dcl", out); /* the final arg */ fputs(bp[0], out); } else fputs(breaks[0], out); } free((char *)breaks); return 0; } tar-1.13/src/rmt.c0000444000176300016070000002526606740567566007505 /* Remote connection server. Copyright 1994, 1995, 1996, 1997, 1999 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. */ /* Copyright (C) 1983 Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by the University of California, Berkeley. The name of the University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #include "system.h" #include "safe-read.h" #include #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #endif #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 #endif /* Maximum size of a string from the requesting program. */ #define STRING_SIZE 64 /* Name of executing program. */ const char *program_name; /* File descriptor of the tape device, or negative if none open. */ static int tape = -1; /* Buffer containing transferred data, and its allocated size. */ static char *record_buffer = NULL; static size_t allocated_size = 0; /* Buffer for constructing the reply. */ static char reply_buffer[BUFSIZ]; /* Debugging tools. */ static FILE *debug_file = NULL; #define DEBUG(File) \ if (debug_file) fprintf(debug_file, File) #define DEBUG1(File, Arg) \ if (debug_file) fprintf(debug_file, File, Arg) #define DEBUG2(File, Arg1, Arg2) \ if (debug_file) fprintf(debug_file, File, Arg1, Arg2) /*------------------------------------------------. | Return an error string, given an error number. | `------------------------------------------------*/ #if HAVE_STRERROR # ifndef strerror char *strerror (); # endif #else static char * private_strerror (int errnum) { extern char *sys_errlist[]; extern int sys_nerr; if (errnum > 0 && errnum <= sys_nerr) return _(sys_errlist[errnum]); return _("Unknown system error"); } # define strerror private_strerror #endif /*---. | ? | `---*/ static void report_error_message (const char *string) { DEBUG1 ("rmtd: E 0 (%s)\n", string); sprintf (reply_buffer, "E0\n%s\n", string); full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); } /*---. | ? | `---*/ static void report_numbered_error (int num) { DEBUG2 ("rmtd: E %d (%s)\n", num, strerror (num)); sprintf (reply_buffer, "E%d\n%s\n", num, strerror (num)); full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); } /*---. | ? | `---*/ static void get_string (char *string) { int counter; for (counter = 0; counter < STRING_SIZE; counter++) { if (safe_read (STDIN_FILENO, string + counter, 1) != 1) exit (EXIT_SUCCESS); if (string[counter] == '\n') break; } string[counter] = '\0'; } /*---. | ? | `---*/ static void prepare_record_buffer (size_t size) { if (size <= allocated_size) return; if (record_buffer) free (record_buffer); record_buffer = malloc (size); if (record_buffer == NULL) { DEBUG (_("rmtd: Cannot allocate buffer space\n")); report_error_message (N_("Cannot allocate buffer space")); exit (EXIT_FAILURE); /* exit status used to be 4 */ } allocated_size = size; #ifdef SO_RCVBUF while (size > 1024 && (setsockopt (STDIN_FILENO, SOL_SOCKET, SO_RCVBUF, (char *) &size, sizeof size) < 0)) size -= 1024; #else /* FIXME: I do not see any purpose to the following line... Sigh! */ size = 1 + ((size - 1) % 1024); #endif } /*---. | ? | `---*/ int main (int argc, char *const *argv) { char command; long status; /* FIXME: Localisation is meaningless, unless --help and --version are locally used. Localisation would be best accomplished by the calling tar, on messages found within error packets. */ program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); /* FIXME: Implement --help and --version as for any other GNU program. */ argc--, argv++; if (argc > 0) { debug_file = fopen (*argv, "w"); if (debug_file == 0) { report_numbered_error (errno); exit (EXIT_FAILURE); } setbuf (debug_file, NULL); } top: errno = 0; /* FIXME: errno should be read-only */ status = 0; if (safe_read (STDIN_FILENO, &command, 1) != 1) exit (EXIT_SUCCESS); switch (command) { /* FIXME: Maybe 'H' and 'V' for --help and --version output? */ case 'O': { char device_string[STRING_SIZE]; char mode_string[STRING_SIZE]; get_string (device_string); get_string (mode_string); DEBUG2 ("rmtd: O %s %s\n", device_string, mode_string); if (tape >= 0) close (tape); tape = open (device_string, atoi (mode_string), 0666); if (tape < 0) goto ioerror; goto respond; } case 'C': { char device_string[STRING_SIZE]; get_string (device_string); /* discard */ DEBUG ("rmtd: C\n"); if (close (tape) < 0) goto ioerror; tape = -1; goto respond; } case 'L': { char count_string[STRING_SIZE]; char position_string[STRING_SIZE]; off_t count = 0; int negative; int whence; char *p; get_string (count_string); get_string (position_string); DEBUG2 ("rmtd: L %s %s\n", count_string, position_string); /* Parse count_string, taking care to check for overflow. We can't use standard functions, since off_t might be longer than long. */ for (p = count_string; *p == ' ' || *p == '\t'; p++) continue; negative = *p == '-'; p += negative || *p == '+'; for (;;) { int digit = *p++ - '0'; if (9 < (unsigned) digit) break; else { off_t c10 = 10 * count; off_t nc = negative ? c10 - digit : c10 + digit; if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) { report_error_message (N_("Seek offset out of range")); exit (EXIT_FAILURE); } count = nc; } } switch (atoi (position_string)) { case 0: whence = SEEK_SET; break; case 1: whence = SEEK_CUR; break; case 2: whence = SEEK_END; break; default: report_error_message (N_("Seek direction out of range")); exit (EXIT_FAILURE); } count = lseek (tape, count, whence); if (count < 0) goto ioerror; /* Convert count back to string for reply. We can't use sprintf, since off_t might be longer than long. */ p = count_string + sizeof count_string; *--p = '\0'; do *--p = '0' + (int) (count % 10); while ((count /= 10) != 0); DEBUG1 ("rmtd: A %s\n", p); sprintf (reply_buffer, "A%s\n", p); full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); goto top; } case 'W': { char count_string[STRING_SIZE]; size_t size; size_t counter; get_string (count_string); size = atol (count_string); DEBUG1 ("rmtd: W %s\n", count_string); prepare_record_buffer (size); for (counter = 0; counter < size; counter += status) { status = safe_read (STDIN_FILENO, &record_buffer[counter], size - counter); if (status <= 0) { DEBUG (_("rmtd: Premature eof\n")); report_error_message (N_("Premature end of file")); exit (EXIT_FAILURE); /* exit status used to be 2 */ } } status = full_write (tape, record_buffer, size); if (status < 0) goto ioerror; goto respond; } case 'R': { char count_string[STRING_SIZE]; size_t size; get_string (count_string); DEBUG1 ("rmtd: R %s\n", count_string); size = atol (count_string); prepare_record_buffer (size); status = safe_read (tape, record_buffer, size); if (status < 0) goto ioerror; sprintf (reply_buffer, "A%ld\n", status); full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); full_write (STDOUT_FILENO, record_buffer, (size_t) status); goto top; } case 'I': { char operation_string[STRING_SIZE]; char count_string[STRING_SIZE]; get_string (operation_string); get_string (count_string); DEBUG2 ("rmtd: I %s %s\n", operation_string, count_string); #ifdef MTIOCTOP { struct mtop mtop; const char *p; off_t count = 0; int negative; /* Parse count_string, taking care to check for overflow. We can't use standard functions, since off_t might be longer than long. */ for (p = count_string; *p == ' ' || *p == '\t'; p++) continue; negative = *p == '-'; p += negative || *p == '+'; for (;;) { int digit = *p++ - '0'; if (9 < (unsigned) digit) break; else { off_t c10 = 10 * count; off_t nc = negative ? c10 - digit : c10 + digit; if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) { report_error_message (N_("Seek offset out of range")); exit (EXIT_FAILURE); } count = nc; } } mtop.mt_count = count; if (mtop.mt_count != count) { report_error_message (N_("Seek offset out of range")); exit (EXIT_FAILURE); } mtop.mt_op = atoi (operation_string); if (ioctl (tape, MTIOCTOP, (char *) &mtop) < 0) goto ioerror; } #endif goto respond; } case 'S': /* status */ { DEBUG ("rmtd: S\n"); #ifdef MTIOCGET { struct mtget operation; if (ioctl (tape, MTIOCGET, (char *) &operation) < 0) goto ioerror; status = sizeof (operation); sprintf (reply_buffer, "A%ld\n", status); full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); full_write (STDOUT_FILENO, (char *) &operation, sizeof (operation)); } #endif goto top; } default: DEBUG1 (_("rmtd: Garbage command %c\n"), command); report_error_message (N_("Garbage command")); exit (EXIT_FAILURE); /* exit status used to be 3 */ } respond: DEBUG1 ("rmtd: A %ld\n", status); sprintf (reply_buffer, "A%ld\n", status); full_write (STDOUT_FILENO, reply_buffer, strlen (reply_buffer)); goto top; ioerror: report_numbered_error (errno); goto top; } tar-1.13/src/arith.c0000444000176300016070000001125106736574575010002 /* Arithmetic for numbers greater than a unsigned long, for GNU tar. Copyright (C) 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. */ #include "system.h" /* common.h is needed to define FATAL_ERROR. It also includes arith.h. */ #include "common.h" /* GNU tar needs handling numbers exceeding 32 bits, which is the size of unsigned long ints for many C compilers. This module should provide machinery for handling at least BITS_PER_TARLONG bits per number. If `long long' ints are available and are sufficient for the task, they will be used preferrably. Russell Cattelan reports 165 Gb single tapes (digital video D2 tapes on Ampex drives), so requiring 38 bits for the tape length in bytes. He also reports breaking the terabyte limit with a single file (using SGI xFS file system over 37 28GB disk arrays attached to a Power Challenge XL; check out http://www.lcse.umn.edu/ for a picture), so requiring a little more than 40 bits for the file size in bytes. The POSIX header structure allows for 12 octal digits to represent file lengths, that is, up to 36 bits for the byte size of files. If `long long' is not supported by the compiler, SIZEOF_LONG_LONG will be set to zero by configure. In this case, or if `long long' ints does not have enough bits, then huge numbers are rather represented by an array of longs, with the least significant super-digit at position 0. For making multiplication and decimal input/output easy, the base of a super-digit is an exact exponent of 10, and is such that base*base fits in a long. */ #if SUPERDIGIT /*-------------------------------. | Check if ACCUMULATOR is zero. | `-------------------------------*/ int zerop_tarlong_helper (unsigned long *accumulator) { int counter; for (counter = LONGS_PER_TARLONG - 1; counter >= 0; counter--) if (accumulator[counter]) return 0; return 1; } /*----------------------------------------------. | Check if FIRST is strictly less than SECOND. | `----------------------------------------------*/ int lessp_tarlong_helper (unsigned long *first, unsigned long *second) { int counter; for (counter = LONGS_PER_TARLONG - 1; counter >= 0; counter--) if (first[counter] != second[counter]) return first[counter] < second[counter]; return 0; } /*----------------------------. | Reset ACCUMULATOR to zero. | `----------------------------*/ void clear_tarlong_helper (unsigned long *accumulator) { int counter; for (counter = 0; counter < LONGS_PER_TARLONG; counter++) accumulator[counter] = 0; } /*----------------------------. | To ACCUMULATOR, add VALUE. | `----------------------------*/ void add_to_tarlong_helper (unsigned long *accumulator, unsigned long value) { int counter; for (counter = 0; counter < LONGS_PER_TARLONG; counter++) { if (accumulator[counter] + value < SUPERDIGIT) { accumulator[counter] += value; return; } accumulator[counter] += value - SUPERDIGIT; value = 1; } FATAL_ERROR ((0, 0, _("Arithmetic overflow"))); } /*--------------------------------. | Multiply ACCUMULATOR by VALUE. | `--------------------------------*/ void mult_tarlong_helper (unsigned long *accumulator, unsigned long value) { int carry = 0; int counter; for (counter = 0; counter < LONGS_PER_TARLONG; counter++) { carry += accumulator[counter] * value; accumulator[counter] = carry % SUPERDIGIT; carry /= SUPERDIGIT; } if (carry) FATAL_ERROR ((0, 0, _("Arithmetic overflow"))); } /*----------------------------------------------------------. | Print the decimal representation of ACCUMULATOR on FILE. | `----------------------------------------------------------*/ void print_tarlong_helper (unsigned long *accumulator, FILE *file) { int counter = LONGS_PER_TARLONG - 1; while (counter > 0 && accumulator[counter] == 0) counter--; fprintf (file, "%uld", accumulator[counter]); while (counter > 0) fprintf (file, TARLONG_FORMAT, accumulator[--counter]); } #endif /* SUPERDIGIT */ tar-1.13/src/buffer.c0000444000176300016070000012707506740052437010137 /* Buffer management for tar. Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. Written by John Gilmore, on 1985-08-25. 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. */ #include "system.h" #include #include time_t time (); #if MSDOS # include #endif #if XENIX # include #endif #ifndef FNM_LEADING_DIR # include #endif #include "common.h" #include "rmt.h" #define DEBUG_FORK 0 /* if nonzero, childs are born stopped */ #define PREAD 0 /* read file descriptor from pipe() */ #define PWRITE 1 /* write file descriptor from pipe() */ /* Number of retries before giving up on read. */ #define READ_ERROR_MAX 10 /* Globbing pattern to append to volume label if initial match failed. */ #define VOLUME_LABEL_APPEND " Volume [1-9]*" /* Variables. */ static tarlong total_written; /* bytes written on all volumes */ static tarlong bytes_written; /* bytes written on this volume */ /* FIXME: The following four variables should ideally be static to this module. However, this cannot be done yet, as update.c uses the first three a lot, and compare.c uses the fourth. The cleanup continues! */ 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 */ static off_t record_start_block; /* block ordinal at record_start */ /* Where we write list messages (not errors, not interactions) to. Stdout unless we're writing a pipe, in which case stderr. */ FILE *stdlis; 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)); #if !MSDOS /* Obnoxious test to see if dimwit is trying to dump the archive. */ dev_t ar_dev; ino_t ar_ino; #endif /* PID of child program, if compress_option or remote archive access. */ static pid_t child_pid; /* Error recovery stuff */ static int read_error_count; /* Have we hit EOF yet? */ static int hit_eof; /* Checkpointing counter */ static int checkpoint; /* 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; int file_to_switch_to = -1; /* if remote update, close archive, and use this descriptor to write to */ static int volno = 1; /* which volume of a multi-volume tape we're on */ static int global_volno = 1; /* volume number to print in external messages */ /* The pointer save_name, which is set in function dump_file() of module create.c, points to the original long filename instead of the new, shorter mangled name that is set in start_header() of module create.c. The pointer save_name is only used in multi-volume mode when the file being processed is non-sparse; if a file is split between volumes, the save_name is used in generating the LF_MULTIVOL record on the second volume. (From Pierce Cantrell, 1991-08-13.) */ char *save_name; /* name of the file we are currently writing */ off_t save_totsize; /* total size of file we are writing, only valid if save_name is non NULL */ off_t save_sizeleft; /* where we are in the file we are writing, only valid if save_name is nonzero */ int write_archive_to_stdout = 0; /* Used by flush_read and flush_write to store the real info about saved names. */ static char *real_s_name = NULL; static off_t real_s_totsize; static off_t real_s_sizeleft; /* Functions. */ #if DEBUG_FORK static pid_t myfork (void) { pid_t result = fork(); if (result == 0) kill (getpid (), SIGSTOP); return result; } # define fork myfork #endif /* DEBUG FORK */ void init_total_written (void) { clear_tarlong (total_written); clear_tarlong (bytes_written); } void print_total_written (void) { fprintf (stderr, _("Total bytes written: ")); print_tarlong (total_written, stderr); fprintf (stderr, "\n"); } /*--------------------------------------------------------. | Compute and return the block ordinal at current_block. | `--------------------------------------------------------*/ off_t current_block_ordinal (void) { return record_start_block + (current_block - record_start); } /*------------------------------------------------------------------. | If the EOF flag is set, reset it, as well as current_block, etc. | `------------------------------------------------------------------*/ void reset_eof (void) { if (hit_eof) { hit_eof = 0; current_block = record_start; record_end = record_start + blocking_factor; access_mode = ACCESS_WRITE; } } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ union block * find_next_block (void) { if (current_block == record_end) { if (hit_eof) return NULL; flush_archive (); if (current_block == record_end) { hit_eof = 1; return NULL; } } return current_block; } /*------------------------------------------------------. | Indicate that we have used all blocks up thru BLOCK. | | | | FIXME: should the arg have an off-by-1? | `------------------------------------------------------*/ void set_next_block_after (union block *block) { while (block >= current_block) current_block++; /* Do *not* flush the archive here. If we do, the same argument to set_next_block_after could mean the next block (if the input record is exactly one block long), which is not what is intended. */ if (current_block > record_end) abort (); } /*------------------------------------------------------------------------. | 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. | `------------------------------------------------------------------------*/ size_t available_space_after (union block *pointer) { return record_end->buffer - pointer->buffer; } /*------------------------------------------------------------------. | Close file having descriptor FD, and abort if close unsucessful. | `------------------------------------------------------------------*/ static void xclose (int fd) { if (close (fd) < 0) FATAL_ERROR ((0, errno, _("Cannot close file #%d"), fd)); } /*-----------------------------------------------------------------------. | Duplicate file descriptor FROM into becoming INTO, or else, issue | | MESSAGE. INTO is closed first and has to be the next available slot. | `-----------------------------------------------------------------------*/ static void xdup2 (int from, int into, const char *message) { if (from != into) { int status = close (into); if (status < 0 && errno != EBADF) FATAL_ERROR ((0, errno, _("Cannot close descriptor %d"), into)); status = dup (from); if (status != into) FATAL_ERROR ((0, errno, _("Cannot properly duplicate %s"), message)); xclose (from); } } #if MSDOS /*-------------------------------------------------------. | Set ARCHIVE for writing, then compressing an archive. | `-------------------------------------------------------*/ static void child_open_for_compress (void) { FATAL_ERROR ((0, 0, _("Cannot use compressed or remote archives"))); } /*---------------------------------------------------------. | Set ARCHIVE for uncompressing, then reading an archive. | `---------------------------------------------------------*/ static void child_open_for_uncompress (void) { FATAL_ERROR ((0, 0, _("Cannot use compressed or remote archives"))); } #else /* not MSDOS */ /*---------------------------------------------------------------------. | 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). | `---------------------------------------------------------------------*/ static int is_regular_file (const char *name) { struct stat stbuf; if (stat (name, &stbuf) < 0) return 1; if (S_ISREG (stbuf.st_mode)) return 1; return 0; } static ssize_t write_archive_buffer (void) { ssize_t status; ssize_t written = 0; while (0 <= (status = rmtwrite (archive, record_start->buffer + written, record_size - written))) { written += status; if (written == record_size || _isrmt (archive) || ! S_ISFIFO (archive_stat.st_mode)) break; } return written ? written : status; } /*-------------------------------------------------------. | Set ARCHIVE for writing, then compressing an archive. | `-------------------------------------------------------*/ static void child_open_for_compress (void) { int parent_pipe[2]; int child_pipe[2]; pid_t grandchild_pid; if (pipe (parent_pipe) < 0) FATAL_ERROR ((0, errno, _("Cannot open pipe"))); child_pid = fork (); if (child_pid < 0) FATAL_ERROR ((0, errno, _("Cannot fork"))); if (child_pid > 0) { /* The parent tar is still here! Just clean up. */ archive = parent_pipe[PWRITE]; xclose (parent_pipe[PREAD]); return; } /* The new born child tar is here! */ program_name = _("tar (child)"); xdup2 (parent_pipe[PREAD], STDIN_FILENO, _("(child) Pipe to stdin")); xclose (parent_pipe[PWRITE]); /* Check if we need a grandchild tar. This happens only if either: a) we are writing stdout: to force reblocking; b) the file is to be accessed by rmt: compressor doesn't know how; c) the file is not a plain file. */ if (strcmp (archive_name_array[0], "-") != 0 && !_remdev (archive_name_array[0]) && is_regular_file (archive_name_array[0])) { if (backup_option) maybe_backup_file (archive_name_array[0], 1); /* We don't need a grandchild tar. Open the archive and launch the compressor. */ archive = creat (archive_name_array[0], MODE_RW); if (archive < 0) { int saved_errno = errno; if (backup_option) undo_last_backup (); FATAL_ERROR ((0, saved_errno, _("Cannot open archive %s"), archive_name_array[0])); } xdup2 (archive, STDOUT_FILENO, _("Archive to stdout")); execlp (use_compress_program_option, use_compress_program_option, (char *) 0); FATAL_ERROR ((0, errno, _("Cannot exec %s"), use_compress_program_option)); } /* We do need a grandchild tar. */ if (pipe (child_pipe) < 0) FATAL_ERROR ((0, errno, _("Cannot open pipe"))); grandchild_pid = fork (); if (grandchild_pid < 0) FATAL_ERROR ((0, errno, _("Child cannot fork"))); if (grandchild_pid > 0) { /* The child tar is still here! Launch the compressor. */ xdup2 (child_pipe[PWRITE], STDOUT_FILENO, _("((child)) Pipe to stdout")); xclose (child_pipe[PREAD]); execlp (use_compress_program_option, use_compress_program_option, (char *) 0); FATAL_ERROR ((0, errno, _("Cannot exec %s"), use_compress_program_option)); } /* The new born grandchild tar is here! */ program_name = _("tar (grandchild)"); /* Prepare for reblocking the data from the compressor into the archive. */ xdup2 (child_pipe[PREAD], STDIN_FILENO, _("(grandchild) Pipe to stdin")); xclose (child_pipe[PWRITE]); if (strcmp (archive_name_array[0], "-") == 0) archive = STDOUT_FILENO; else archive = rmtcreat (archive_name_array[0], MODE_RW, rsh_command_option); if (archive < 0) FATAL_ERROR ((0, errno, _("Cannot open archive %s"), archive_name_array[0])); /* Let's read out of the stdin pipe and write an archive. */ while (1) { ssize_t status = 0; char *cursor; size_t length; /* Assemble a record. */ for (length = 0, cursor = record_start->buffer; length < record_size; length += status, cursor += status) { size_t size = record_size - length; if (size < BLOCKSIZE) size = BLOCKSIZE; status = safe_read (STDIN_FILENO, cursor, size); if (status <= 0) break; } if (status < 0) FATAL_ERROR ((0, errno, _("Cannot read from compression program"))); /* Copy the record. */ if (status == 0) { /* We hit the end of the file. Write last record at full length, as the only role of the grandchild is doing proper reblocking. */ if (length > 0) { memset (record_start->buffer + length, 0, record_size - length); status = write_archive_buffer (); if (status != record_size) write_error (status); } /* There is nothing else to read, break out. */ break; } status = write_archive_buffer (); if (status != record_size) write_error (status); } #if 0 close_archive (); #endif exit (exit_status); } /*---------------------------------------------------------. | Set ARCHIVE for uncompressing, then reading an archive. | `---------------------------------------------------------*/ static void child_open_for_uncompress (void) { int parent_pipe[2]; int child_pipe[2]; pid_t grandchild_pid; if (pipe (parent_pipe) < 0) FATAL_ERROR ((0, errno, _("Cannot open pipe"))); child_pid = fork (); if (child_pid < 0) FATAL_ERROR ((0, errno, _("Cannot fork"))); if (child_pid > 0) { /* The parent tar is still here! Just clean up. */ read_full_records_option = 1; archive = parent_pipe[PREAD]; xclose (parent_pipe[PWRITE]); return; } /* The new born child tar is here! */ program_name = _("tar (child)"); xdup2 (parent_pipe[PWRITE], STDOUT_FILENO, _("(child) Pipe to stdout")); xclose (parent_pipe[PREAD]); /* Check if we need a grandchild tar. This happens only if either: a) we're reading stdin: to force unblocking; b) the file is to be accessed by rmt: compressor doesn't know how; c) the file is not a plain file. */ if (strcmp (archive_name_array[0], "-") != 0 && !_remdev (archive_name_array[0]) && is_regular_file (archive_name_array[0])) { /* We don't need a grandchild tar. Open the archive and lauch the uncompressor. */ archive = open (archive_name_array[0], O_RDONLY | O_BINARY, MODE_RW); if (archive < 0) FATAL_ERROR ((0, errno, _("Cannot open archive %s"), archive_name_array[0])); xdup2 (archive, STDIN_FILENO, _("Archive to stdin")); execlp (use_compress_program_option, use_compress_program_option, "-d", (char *) 0); FATAL_ERROR ((0, errno, _("Cannot exec %s"), use_compress_program_option)); } /* We do need a grandchild tar. */ if (pipe (child_pipe) < 0) FATAL_ERROR ((0, errno, _("Cannot open pipe"))); grandchild_pid = fork (); if (grandchild_pid < 0) FATAL_ERROR ((0, errno, _("Child cannot fork"))); if (grandchild_pid > 0) { /* The child tar is still here! Launch the uncompressor. */ xdup2 (child_pipe[PREAD], STDIN_FILENO, _("((child)) Pipe to stdin")); xclose (child_pipe[PWRITE]); execlp (use_compress_program_option, use_compress_program_option, "-d", (char *) 0); FATAL_ERROR ((0, errno, _("Cannot exec %s"), use_compress_program_option)); } /* The new born grandchild tar is here! */ program_name = _("tar (grandchild)"); /* Prepare for unblocking the data from the archive into the uncompressor. */ xdup2 (child_pipe[PWRITE], STDOUT_FILENO, _("(grandchild) Pipe to stdout")); xclose (child_pipe[PREAD]); if (strcmp (archive_name_array[0], "-") == 0) archive = STDIN_FILENO; else archive = rmtopen (archive_name_array[0], O_RDONLY | O_BINARY, MODE_RW, rsh_command_option); if (archive < 0) FATAL_ERROR ((0, errno, _("Cannot open archive %s"), archive_name_array[0])); /* Let's read the archive and pipe it into stdout. */ while (1) { char *cursor; size_t maximum; size_t count; ssize_t status; read_error_count = 0; error_loop: status = rmtread (archive, record_start->buffer, record_size); if (status < 0) { read_error (); goto error_loop; } if (status == 0) break; cursor = record_start->buffer; maximum = status; while (maximum) { count = maximum < BLOCKSIZE ? maximum : BLOCKSIZE; status = full_write (STDOUT_FILENO, cursor, count); if (status < 0) FATAL_ERROR ((0, errno, _("\ Cannot write to compression program"))); if (status != count) { ERROR ((0, 0, _("\ Write to compression program short %lu bytes"), (unsigned long) (count - status))); count = status; } cursor += count; maximum -= count; } } #if 0 close_archive (); #endif exit (exit_status); } #endif /* not MSDOS */ /*--------------------------------------------------------------------------. | 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. | `--------------------------------------------------------------------------*/ static int check_label_pattern (union block *label) { char *string; int result; if (fnmatch (volume_label_option, label->header.name, 0) == 0) return 1; if (!multi_volume_option) return 0; string = xmalloc (strlen (volume_label_option) + sizeof VOLUME_LABEL_APPEND + 1); strcpy (string, volume_label_option); strcat (string, VOLUME_LABEL_APPEND); result = fnmatch (string, label->header.name, 0) == 0; free (string); return result; } /*------------------------------------------------------------------------. | Open an archive file. The argument specifies whether we are reading or | | writing, or both. | `------------------------------------------------------------------------*/ void open_archive (enum access_mode access) { int backed_up_flag = 0; stdlis = to_stdout_option ? stderr : stdout; if (record_size == 0) FATAL_ERROR ((0, 0, _("Invalid value for record_size"))); if (archive_names == 0) FATAL_ERROR ((0, 0, _("No archive name given"))); current_file_name = NULL; current_link_name = NULL; /* FIXME: According to POSIX.1, PATH_MAX may well not be a compile-time constant, and the value from sysconf (_SC_PATH_MAX) may well not be any size that is reasonable to allocate a buffer. In the GNU system, there is no fixed limit. The only correct thing to do is to use dynamic allocation. (Roland McGrath) */ if (!real_s_name) real_s_name = (char *) xmalloc (PATH_MAX); /* FIXME: real_s_name is never freed. */ save_name = NULL; if (multi_volume_option) { record_start = (union block *) valloc (record_size + (2 * BLOCKSIZE)); if (record_start) record_start += 2; } else record_start = (union block *) valloc (record_size); if (!record_start) FATAL_ERROR ((0, 0, _("Could not allocate memory for blocking factor %d"), blocking_factor)); current_block = record_start; record_end = record_start + blocking_factor; /* When updating the archive, we start with reading. */ access_mode = access == ACCESS_UPDATE ? ACCESS_READ : access; if (multi_volume_option && verify_option) FATAL_ERROR ((0, 0, _("Cannot verify multi-volume archives"))); if (use_compress_program_option) { if (multi_volume_option) FATAL_ERROR ((0, 0, _("Cannot use multi-volume compressed archives"))); if (verify_option) FATAL_ERROR ((0, 0, _("Cannot verify compressed archives"))); switch (access) { case ACCESS_READ: child_open_for_uncompress (); break; case ACCESS_WRITE: child_open_for_compress (); break; case ACCESS_UPDATE: FATAL_ERROR ((0, 0, _("Cannot update compressed archives"))); break; } if (access == ACCESS_WRITE && strcmp (archive_name_array[0], "-") == 0) stdlis = stderr; } else if (strcmp (archive_name_array[0], "-") == 0) { read_full_records_option = 1; /* could be a pipe, be safe */ if (verify_option) FATAL_ERROR ((0, 0, _("Cannot verify stdin/stdout archive"))); switch (access) { case ACCESS_READ: archive = STDIN_FILENO; break; case ACCESS_WRITE: archive = STDOUT_FILENO; stdlis = stderr; break; case ACCESS_UPDATE: archive = STDIN_FILENO; stdlis = stderr; write_archive_to_stdout = 1; break; } } else if (verify_option) archive = rmtopen (archive_name_array[0], O_RDWR | O_CREAT | O_BINARY, MODE_RW, rsh_command_option); else switch (access) { case ACCESS_READ: archive = rmtopen (archive_name_array[0], O_RDONLY | O_BINARY, MODE_RW, rsh_command_option); break; case ACCESS_WRITE: if (backup_option) { maybe_backup_file (archive_name_array[0], 1); backed_up_flag = 1; } archive = rmtcreat (archive_name_array[0], MODE_RW, rsh_command_option); break; case ACCESS_UPDATE: archive = rmtopen (archive_name_array[0], O_RDWR | O_CREAT | O_BINARY, MODE_RW, rsh_command_option); break; } if (archive < 0 || (! _isrmt (archive) && fstat (archive, &archive_stat) < 0)) { int saved_errno = errno; if (backed_up_flag) undo_last_backup (); FATAL_ERROR ((0, saved_errno, _("Cannot open %s"), archive_name_array[0])); } #if !MSDOS /* Detect if outputting to "/dev/null". */ { static char const dev_null[] = "/dev/null"; struct stat dev_null_stat; dev_null_output = (strcmp (archive_name_array[0], dev_null) == 0 || (! _isrmt (archive) && stat (dev_null, &dev_null_stat) == 0 && S_ISCHR (archive_stat.st_mode) && archive_stat.st_rdev == dev_null_stat.st_rdev)); } if (!_isrmt (archive) && S_ISREG (archive_stat.st_mode)) { ar_dev = archive_stat.st_dev; ar_ino = archive_stat.st_ino; } else ar_dev = 0; #endif /* not MSDOS */ #if MSDOS setmode (archive, O_BINARY); #endif switch (access) { case ACCESS_READ: case ACCESS_UPDATE: record_end = record_start; /* set up for 1st record = # 0 */ find_next_block (); /* read it in, check for EOF */ if (volume_label_option) { union block *label = find_next_block (); if (!label) FATAL_ERROR ((0, 0, _("Archive not labelled to match `%s'"), volume_label_option)); if (!check_label_pattern (label)) FATAL_ERROR ((0, 0, _("Volume `%s' does not match `%s'"), label->header.name, volume_label_option)); } break; case ACCESS_WRITE: if (volume_label_option) { memset ((void *) record_start, 0, BLOCKSIZE); if (multi_volume_option) sprintf (record_start->header.name, "%s Volume 1", volume_label_option); else strcpy (record_start->header.name, volume_label_option); assign_string (¤t_file_name, record_start->header.name); record_start->header.typeflag = GNUTYPE_VOLHDR; TIME_TO_OCT (time (0), record_start->header.mtime); finish_header (record_start); #if 0 current_block++; #endif } break; } } /*--------------------------------------. | Perform a write to flush the buffer. | `--------------------------------------*/ void flush_write (void) { int copy_back; ssize_t status; if (checkpoint_option && !(++checkpoint % 10)) WARN ((0, 0, _("Write checkpoint %d"), checkpoint)); if (!zerop_tarlong (tape_length_option) && !lessp_tarlong (bytes_written, tape_length_option)) { errno = ENOSPC; /* FIXME: errno should be read-only */ status = 0; } else if (dev_null_output) status = record_size; else status = write_archive_buffer (); if (status != record_size && !multi_volume_option) write_error (status); else if (totals_option) add_to_tarlong (total_written, record_size); if (status > 0) add_to_tarlong (bytes_written, status); if (status == record_size) { if (multi_volume_option) { char *cursor; if (!save_name) { real_s_name[0] = '\0'; real_s_totsize = 0; real_s_sizeleft = 0; return; } cursor = save_name; #if MSDOS if (cursor[1] == ':') cursor += 2; #endif while (*cursor == '/') cursor++; strcpy (real_s_name, cursor); real_s_totsize = save_totsize; real_s_sizeleft = save_sizeleft; } return; } /* We're multivol. Panic if we didn't get the right kind of response. */ /* ENXIO is for the UNIX PC. */ if (status < 0 && errno != ENOSPC && errno != EIO && errno != ENXIO) write_error (status); /* If error indicates a short write, we just move to the next tape. */ if (!new_volume (ACCESS_WRITE)) return; clear_tarlong (bytes_written); if (volume_label_option && real_s_name[0]) { copy_back = 2; record_start -= 2; } else if (volume_label_option || real_s_name[0]) { copy_back = 1; record_start--; } else copy_back = 0; if (volume_label_option) { memset ((void *) record_start, 0, BLOCKSIZE); sprintf (record_start->header.name, "%s Volume %d", volume_label_option, volno); TIME_TO_OCT (time (0), record_start->header.mtime); record_start->header.typeflag = GNUTYPE_VOLHDR; finish_header (record_start); } if (real_s_name[0]) { int tmp; if (volume_label_option) record_start++; memset ((void *) record_start, 0, BLOCKSIZE); /* FIXME: Michael P Urban writes: [a long name file] is being written when a new volume rolls around [...] Looks like the wrong value is being preserved in real_s_name, though. */ strcpy (record_start->header.name, real_s_name); record_start->header.typeflag = GNUTYPE_MULTIVOL; OFF_TO_OCT (real_s_sizeleft, record_start->header.size); OFF_TO_OCT (real_s_totsize - real_s_sizeleft, record_start->oldgnu_header.offset); tmp = verbose_option; verbose_option = 0; finish_header (record_start); verbose_option = tmp; if (volume_label_option) record_start--; } status = write_archive_buffer (); if (status != record_size) write_error (status); else if (totals_option) add_to_tarlong (total_written, record_size); add_to_tarlong (bytes_written, record_size); if (copy_back) { record_start += copy_back; memcpy ((void *) current_block, (void *) (record_start + blocking_factor - copy_back), (size_t) (copy_back * BLOCKSIZE)); current_block += copy_back; if (real_s_sizeleft >= copy_back * BLOCKSIZE) real_s_sizeleft -= copy_back * BLOCKSIZE; else if ((real_s_sizeleft + BLOCKSIZE - 1) / BLOCKSIZE <= copy_back) real_s_name[0] = '\0'; else { char *cursor = save_name; #if MSDOS if (cursor[1] == ':') cursor += 2; #endif while (*cursor == '/') cursor++; strcpy (real_s_name, cursor); real_s_sizeleft = save_sizeleft; real_s_totsize = save_totsize; } copy_back = 0; } } /*---------------------------------------------------------------------. | 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. | `---------------------------------------------------------------------*/ static void write_error (ssize_t status) { int saved_errno = errno; /* It might be useful to know how much was written before the error occured. Beware that mere printing maybe change errno value. */ if (totals_option) print_total_written (); if (status < 0) FATAL_ERROR ((0, saved_errno, _("Cannot write to %s"), *archive_name_cursor)); else FATAL_ERROR ((0, 0, _("Only wrote %lu of %lu bytes to %s"), (unsigned long) status, (unsigned long) record_size, *archive_name_cursor)); } /*-------------------------------------------------------------------. | Handle read errors on the archive. If the read should be retried, | | returns to the caller. | `-------------------------------------------------------------------*/ static void read_error (void) { WARN ((0, errno, _("Read error on %s"), *archive_name_cursor)); if (record_start_block == 0) FATAL_ERROR ((0, 0, _("At beginning of tape, quitting now"))); /* Read error in mid archive. We retry up to READ_ERROR_MAX times and then give up on reading the archive. */ if (read_error_count++ > READ_ERROR_MAX) FATAL_ERROR ((0, 0, _("Too many errors, quitting"))); return; } /*-------------------------------------. | Perform a read to flush the buffer. | `-------------------------------------*/ void flush_read (void) { ssize_t status; /* result from system call */ size_t left; /* bytes left */ char *more; /* pointer to next byte to read */ if (checkpoint_option && !(++checkpoint % 10)) WARN ((0, 0, _("Read checkpoint %d"), checkpoint)); /* Clear the count of errors. This only applies to a single call to flush_read. */ read_error_count = 0; /* clear error count */ if (write_archive_to_stdout && record_start_block != 0) { status = write_archive_buffer (); if (status != record_size) write_error (status); } if (multi_volume_option) { if (save_name) { char *cursor = save_name; #if MSDOS if (cursor[1] == ':') cursor += 2; #endif while (*cursor == '/') cursor++; strcpy (real_s_name, cursor); real_s_sizeleft = save_sizeleft; real_s_totsize = save_totsize; } else { real_s_name[0] = '\0'; real_s_totsize = 0; real_s_sizeleft = 0; } } error_loop: status = rmtread (archive, record_start->buffer, record_size); if (status == record_size) return; if ((status == 0 || (status < 0 && errno == ENOSPC) || (status > 0 && !read_full_records_option)) && multi_volume_option) { union block *cursor; try_volume: switch (subcommand_option) { case APPEND_SUBCOMMAND: case CAT_SUBCOMMAND: case UPDATE_SUBCOMMAND: if (!new_volume (ACCESS_UPDATE)) return; break; default: if (!new_volume (ACCESS_READ)) return; break; } vol_error: status = rmtread (archive, record_start->buffer, record_size); if (status < 0) { read_error (); goto vol_error; } if (status != record_size) goto short_read; cursor = record_start; if (cursor->header.typeflag == GNUTYPE_VOLHDR) { if (volume_label_option) { if (!check_label_pattern (cursor)) { WARN ((0, 0, _("Volume `%s' does not match `%s'"), cursor->header.name, volume_label_option)); volno--; global_volno--; goto try_volume; } } if (verbose_option) fprintf (stdlis, _("Reading %s\n"), cursor->header.name); cursor++; } else if (volume_label_option) WARN ((0, 0, _("WARNING: No volume header"))); if (real_s_name[0]) { uintmax_t s1, s2; if (cursor->header.typeflag != GNUTYPE_MULTIVOL || strcmp (cursor->header.name, real_s_name)) { WARN ((0, 0, _("%s is not continued on this volume"), real_s_name)); volno--; global_volno--; goto try_volume; } s1 = UINTMAX_FROM_OCT (cursor->header.size); s2 = UINTMAX_FROM_OCT (cursor->oldgnu_header.offset); if (real_s_totsize != s1 + s2 || s1 + s2 < s2) { char totsizebuf[UINTMAX_STRSIZE_BOUND]; char s1buf[UINTMAX_STRSIZE_BOUND]; char s2buf[UINTMAX_STRSIZE_BOUND]; WARN ((0, 0, _("%s is the wrong size (%s != %s + %s)"), cursor->header.name, STRINGIFY_BIGINT (save_totsize, totsizebuf), STRINGIFY_BIGINT (s1, s1buf), STRINGIFY_BIGINT (s2, s2buf))); volno--; global_volno--; goto try_volume; } if (real_s_totsize - real_s_sizeleft != OFF_FROM_OCT (cursor->oldgnu_header.offset)) { WARN ((0, 0, _("This volume is out of sequence"))); volno--; global_volno--; goto try_volume; } cursor++; } current_block = cursor; return; } else if (status < 0) { read_error (); goto error_loop; /* try again */ } short_read: more = record_start->buffer + status; left = record_size - status; again: if (left % BLOCKSIZE == 0) { /* FIXME: for size=0, multi-volume support. On the first record, warn about the problem. */ if (!read_full_records_option && verbose_option && record_start_block == 0 && status > 0) WARN ((0, 0, _("Record size = %lu blocks"), (unsigned long) (status / BLOCKSIZE))); record_end = record_start + (record_size - left) / BLOCKSIZE; return; } if (read_full_records_option) { /* User warned us about this. Fix up. */ if (left > 0) { error2loop: status = rmtread (archive, more, left); if (status < 0) { read_error (); goto error2loop; /* try again */ } if (status == 0) FATAL_ERROR ((0, 0, _("Archive %s EOF not on block boundary"), *archive_name_cursor)); left -= status; more += status; goto again; } } else FATAL_ERROR ((0, 0, _("Only read %lu bytes from archive %s"), (unsigned long) status, *archive_name_cursor)); } /*-----------------------------------------------. | Flush the current buffer to/from the archive. | `-----------------------------------------------*/ void flush_archive (void) { record_start_block += record_end - record_start; current_block = record_start; record_end = record_start + blocking_factor; if (access_mode == ACCESS_READ && time_to_start_writing) { access_mode = ACCESS_WRITE; time_to_start_writing = 0; if (file_to_switch_to >= 0) { int status = rmtclose (archive); if (status < 0) WARN ((0, errno, _("WARNING: Cannot close %s (%d, %d)"), *archive_name_cursor, archive, status)); archive = file_to_switch_to; } else backspace_output (); } switch (access_mode) { case ACCESS_READ: flush_read (); break; case ACCESS_WRITE: flush_write (); break; case ACCESS_UPDATE: abort (); } } /*-------------------------------------------------------------------------. | 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! | `-------------------------------------------------------------------------*/ static void backspace_output (void) { #ifdef MTIOCTOP { struct mtop operation; operation.mt_op = MTBSR; operation.mt_count = 1; if (rmtioctl (archive, MTIOCTOP, (char *) &operation) >= 0) return; if (errno == EIO && rmtioctl (archive, MTIOCTOP, (char *) &operation) >= 0) return; } #endif { off_t position = rmtlseek (archive, (off_t) 0, SEEK_CUR); /* Seek back to the beginning of this record and start writing there. */ position -= record_size; if (rmtlseek (archive, position, SEEK_SET) != position) { /* Lseek failed. Try a different method. */ WARN ((0, 0, _("\ Could not backspace archive file; it may be unreadable without -i"))); /* Replace the first part of the record with NULs. */ if (record_start->buffer != output_start) memset (record_start->buffer, 0, (size_t) (output_start - record_start->buffer)); } } } /*-------------------------. | Close the archive file. | `-------------------------*/ void close_archive (void) { if (time_to_start_writing || access_mode == ACCESS_WRITE) flush_archive (); #if !MSDOS /* Manage to fully drain a pipe we might be reading, so to not break it on the producer after the EOF block. FIXME: one of these days, GNU tar might become clever enough to just stop working, once there is no more work to do, we might have to revise this area in such time. */ if (access_mode == ACCESS_READ && ! _isrmt (archive) && S_ISFIFO (archive_stat.st_mode)) while (rmtread (archive, record_start->buffer, record_size) > 0) continue; #endif if (! _isrmt (archive) && subcommand_option == DELETE_SUBCOMMAND) { #if MSDOS int status = write (archive, "", 0); #else off_t pos = lseek (archive, (off_t) 0, SEEK_CUR); int status = pos < 0 ? -1 : ftruncate (archive, pos); #endif if (status != 0) WARN ((0, errno, _("WARNING: Cannot truncate %s"), *archive_name_cursor)); } if (verify_option) verify_volume (); { int status = rmtclose (archive); if (status < 0) WARN ((0, errno, _("WARNING: Cannot close %s (%d, %d)"), *archive_name_cursor, archive, status)); } #if !MSDOS if (child_pid) { WAIT_T wait_status; pid_t child; /* Loop waiting for the right child to die, or for no more kids. */ while ((child = wait (&wait_status), child != child_pid) && child != -1) continue; if (child != -1) { if (WIFSIGNALED (wait_status) #if 0 && !WIFSTOPPED (wait_status) #endif ) { /* SIGPIPE is OK, everything else is a problem. */ if (WTERMSIG (wait_status) != SIGPIPE) ERROR ((0, 0, _("Child died with signal %d%s"), WTERMSIG (wait_status), WCOREDUMP (wait_status) ? _(" (core dumped)") : "")); } else { /* Child voluntarily terminated -- but why? /bin/sh returns SIGPIPE + 128 if its child, then do nothing. */ if (WEXITSTATUS (wait_status) != (SIGPIPE + 128) && WEXITSTATUS (wait_status)) ERROR ((0, 0, _("Child returned status %d"), WEXITSTATUS (wait_status))); } } } #endif /* !MSDOS */ if (current_file_name) free (current_file_name); if (current_link_name) free (current_link_name); if (save_name) free (save_name); free (multi_volume_option ? record_start - 2 : record_start); } /*------------------------------------------------. | Called to initialize the global volume number. | `------------------------------------------------*/ void init_volume_number (void) { FILE *file = fopen (volno_file_option, "r"); if (file) { fscanf (file, "%d", &global_volno); if (fclose (file) == EOF) ERROR ((0, errno, "%s", volno_file_option)); } else if (errno != ENOENT) ERROR ((0, errno, "%s", volno_file_option)); } /*-------------------------------------------------------. | Called to write out the closing global volume number. | `-------------------------------------------------------*/ void closeout_volume_number (void) { FILE *file = fopen (volno_file_option, "w"); if (file) { fprintf (file, "%d\n", global_volno); if (fclose (file) == EOF) ERROR ((0, errno, "%s", volno_file_option)); } else ERROR ((0, errno, "%s", volno_file_option)); } /*-----------------------------------------------------------------------. | We've hit the end of the old volume. Close it and open the next one. | | Return nonzero on success. | `-----------------------------------------------------------------------*/ static int new_volume (enum access_mode access) { static FILE *read_file = NULL; static int looped = 0; int status; if (!read_file && !info_script_option) /* FIXME: if fopen is used, it will never be closed. */ read_file = archive == STDIN_FILENO ? fopen (TTY_NAME, "r") : stdin; if (now_verifying) return 0; if (verify_option) verify_volume (); if (status = rmtclose (archive), status < 0) WARN ((0, errno, _("WARNING: Cannot close %s (%d, %d)"), *archive_name_cursor, archive, status)); global_volno++; volno++; archive_name_cursor++; if (archive_name_cursor == archive_name_array + archive_names) { archive_name_cursor = archive_name_array; looped = 1; } tryagain: if (looped) { /* We have to prompt from now on. */ if (info_script_option) { if (volno_file_option) closeout_volume_number (); system (info_script_option); } else while (1) { char input_buffer[80]; fputc ('\007', stderr); fprintf (stderr, _("Prepare volume #%d for %s and hit return: "), global_volno, *archive_name_cursor); fflush (stderr); if (fgets (input_buffer, sizeof (input_buffer), read_file) == 0) { fprintf (stderr, _("EOF where user reply was expected")); if (subcommand_option != EXTRACT_SUBCOMMAND && subcommand_option != LIST_SUBCOMMAND && subcommand_option != DIFF_SUBCOMMAND) WARN ((0, 0, _("WARNING: Archive is incomplete"))); exit (TAREXIT_FAILURE); } if (input_buffer[0] == '\n' || input_buffer[0] == 'y' || input_buffer[0] == 'Y') break; switch (input_buffer[0]) { case '?': { fprintf (stderr, _("\ n [name] Give a new file name for the next (and subsequent) volume(s)\n\ q Abort tar\n\ ! Spawn a subshell\n\ ? Print this list\n")); } break; case 'q': /* Quit. */ fprintf (stdlis, _("No new volume; exiting.\n")); if (subcommand_option != EXTRACT_SUBCOMMAND && subcommand_option != LIST_SUBCOMMAND && subcommand_option != DIFF_SUBCOMMAND) WARN ((0, 0, _("WARNING: Archive is incomplete"))); exit (TAREXIT_FAILURE); case 'n': /* Get new file name. */ { char *name = &input_buffer[1]; char *cursor; while (*name == ' ' || *name == '\t') name++; cursor = name; while (*cursor && *cursor != '\n') cursor++; *cursor = '\0'; /* FIXME: the following allocation is never reclaimed. */ *archive_name_cursor = xstrdup (name); } break; case '!': #if MSDOS spawnl (P_WAIT, getenv ("COMSPEC"), "-", 0); #else /* not MSDOS */ switch (fork ()) { case -1: WARN ((0, errno, _("Cannot fork!"))); break; case 0: { const char *shell = getenv ("SHELL"); if (shell == NULL) shell = "/bin/sh"; execlp (shell, "-sh", "-i", 0); FATAL_ERROR ((0, errno, _("Cannot exec a shell %s"), shell)); } default: { WAIT_T wait_status; wait (&wait_status); } break; } /* FIXME: I'm not sure if that's all that has to be done here. (jk) */ #endif /* not MSDOS */ break; } } } if (verify_option) archive = rmtopen (*archive_name_cursor, O_RDWR | O_CREAT, MODE_RW, rsh_command_option); else switch (access) { case ACCESS_READ: archive = rmtopen (*archive_name_cursor, O_RDONLY, MODE_RW, rsh_command_option); break; case ACCESS_WRITE: if (backup_option) maybe_backup_file (*archive_name_cursor, 1); archive = rmtcreat (*archive_name_cursor, MODE_RW, rsh_command_option); break; case ACCESS_UPDATE: archive = rmtopen (*archive_name_cursor, O_RDWR | O_CREAT, MODE_RW, rsh_command_option); break; } if (archive < 0) { WARN ((0, errno, _("Cannot open %s"), *archive_name_cursor)); if (!verify_option && access == ACCESS_WRITE && backup_option) undo_last_backup (); goto tryagain; } #if MSDOS setmode (archive, O_BINARY); #endif return 1; } tar-1.13/src/compare.c0000444000176300016070000005342606740045610010305 /* Diff files from a tar archive. Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. Written by John Gilmore, on 1987-04-30. 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. */ #include "system.h" #if HAVE_LINUX_FD_H # include #endif #include "common.h" #include "rmt.h" /* Spare space for messages, hopefully safe even after gettext. */ #define MESSAGE_BUFFER_SIZE 100 /* Nonzero if we are verifying at the moment. */ int now_verifying = 0; /* File descriptor for the file we are diffing. */ static int diff_handle; /* Area for reading file contents into. */ static char *diff_buffer = NULL; /*--------------------------------. | Initialize for a diff operation | `--------------------------------*/ void diff_init (void) { diff_buffer = (char *) valloc (record_size); if (!diff_buffer) FATAL_ERROR ((0, 0, _("Could not allocate memory for diff buffer of %lu bytes"), (unsigned long) record_size)); } /*------------------------------------------------------------------------. | Sigh about something that differs by writing a MESSAGE to stdlis, given | | MESSAGE is not NULL. Also set the exit status if not already. | `------------------------------------------------------------------------*/ static void report_difference (const char *message) { if (message) fprintf (stdlis, "%s: %s\n", current_file_name, message); if (exit_status == TAREXIT_SUCCESS) exit_status = TAREXIT_DIFFERS; } /*-----------------------------------------------------------------------. | Takes a buffer returned by read_and_process and does nothing with it. | `-----------------------------------------------------------------------*/ /* Yes, I know. SIZE and DATA are unused in this function. Some compilers may even report it. That's OK, just relax! */ static int process_noop (size_t size, char *data) { return 1; } /*---. | ? | `---*/ static int process_rawdata (size_t bytes, char *buffer) { ssize_t status = safe_read (diff_handle, diff_buffer, bytes); char message[MESSAGE_BUFFER_SIZE]; if (status != bytes) { if (status < 0) { WARN ((0, errno, _("Cannot read %s"), current_file_name)); report_difference (NULL); } else { sprintf (message, _("Could only read %lu of %lu bytes"), (unsigned long) status, (unsigned long) bytes); report_difference (message); } return 0; } if (memcmp (buffer, diff_buffer, bytes)) { report_difference (_("Data differs")); return 0; } return 1; } /*---. | ? | `---*/ /* Directory contents, only for GNUTYPE_DUMPDIR. */ static char *dumpdir_cursor; static int process_dumpdir (size_t bytes, char *buffer) { if (memcmp (buffer, dumpdir_cursor, bytes)) { report_difference (_("Data differs")); return 0; } dumpdir_cursor += bytes; return 1; } /*------------------------------------------------------------------------. | 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. | `------------------------------------------------------------------------*/ static void read_and_process (size_t size, int (*processor) (size_t, char *)) { union block *data_block; size_t data_size; if (multi_volume_option) save_sizeleft = size; while (size) { data_block = find_next_block (); if (data_block == NULL) { ERROR ((0, 0, _("Unexpected EOF on archive file"))); return; } data_size = available_space_after (data_block); if (data_size > size) data_size = size; if (!(*processor) (data_size, data_block->buffer)) processor = process_noop; set_next_block_after ((union block *) (data_block->buffer + data_size - 1)); size -= data_size; if (multi_volume_option) save_sizeleft -= data_size; } } /*---. | ? | `---*/ /* JK This routine should be used more often than it is ... look into that. Anyhow, what it does is translate the sparse information on the header, and in any subsequent extended headers, into an array of structures with true numbers, as opposed to character strings. It simply makes our life much easier, doing so many comparisong and such. */ static void fill_in_sparse_array (void) { int counter; /* Allocate space for our scratch space; it's initially 10 elements long, but can change in this routine if necessary. */ sp_array_size = 10; sparsearray = (struct sp_array *) xmalloc (sp_array_size * sizeof (struct sp_array)); /* There are at most five of these structures in the header itself; read these in first. */ for (counter = 0; counter < SPARSES_IN_OLDGNU_HEADER; counter++) { /* Compare to 0, or use !(int)..., for Pyramid's dumb compiler. */ if (current_header->oldgnu_header.sp[counter].numbytes == 0) break; sparsearray[counter].offset = OFF_FROM_OCT (current_header->oldgnu_header.sp[counter].offset); sparsearray[counter].numbytes = SIZE_FROM_OCT (current_header->oldgnu_header.sp[counter].numbytes); } /* If the header's extended, we gotta read in exhdr's till we're done. */ if (current_header->oldgnu_header.isextended) { /* How far into the sparsearray we are `so far'. */ static int so_far_ind = SPARSES_IN_OLDGNU_HEADER; union block *exhdr; while (1) { exhdr = find_next_block (); for (counter = 0; counter < SPARSES_IN_SPARSE_HEADER; counter++) { if (counter + so_far_ind > sp_array_size - 1) { /* We just ran out of room in our scratch area - realloc it. */ sp_array_size *= 2; sparsearray = (struct sp_array *) xrealloc (sparsearray, sp_array_size * sizeof (struct sp_array)); } /* Convert the character strings into offsets and sizes. */ sparsearray[counter + so_far_ind].offset = OFF_FROM_OCT (exhdr->sparse_header.sp[counter].offset); sparsearray[counter + so_far_ind].numbytes = SIZE_FROM_OCT (exhdr->sparse_header.sp[counter].numbytes); } /* If this is the last extended header for this file, we can stop. */ if (!exhdr->sparse_header.isextended) break; so_far_ind += SPARSES_IN_SPARSE_HEADER; set_next_block_after (exhdr); } /* Be sure to skip past the last one. */ set_next_block_after (exhdr); } } /*---. | ? | `---*/ /* JK Diff'ing a sparse file with its counterpart on the tar file is a bit of a different story than a normal file. First, we must know what areas of the file to skip through, i.e., we need to contruct a sparsearray, which will hold all the information we need. We must compare small amounts of data at a time as we find it. */ /* FIXME: This does not look very solid to me, at first glance. Zero areas are not checked, spurious sparse entries seemingly goes undetected, and I'm not sure overall identical sparsity is verified. */ static void diff_sparse_files (off_t size_of_file) { off_t remaining_size = size_of_file; char *buffer = (char *) xmalloc (BLOCKSIZE * sizeof (char)); size_t buffer_size = BLOCKSIZE; union block *data_block = NULL; int counter = 0; int different = 0; fill_in_sparse_array (); while (remaining_size > 0) { ssize_t status; size_t chunk_size; off_t offset; #if 0 off_t amount_read = 0; #endif data_block = find_next_block (); chunk_size = sparsearray[counter].numbytes; if (!chunk_size) break; offset = sparsearray[counter].offset; if (lseek (diff_handle, offset, SEEK_SET) < 0) { char buf[UINTMAX_STRSIZE_BOUND]; WARN ((0, errno, _("Cannot seek to %s in file %s"), STRINGIFY_BIGINT (offset, buf), current_file_name)); report_difference (NULL); } /* Take care to not run out of room in our buffer. */ while (buffer_size < chunk_size) { if (buffer_size * 2 < buffer_size) FATAL_ERROR ((0, 0, _("Memory exhausted"))); buffer_size *= 2; buffer = (char *) xrealloc (buffer, buffer_size * sizeof (char)); } while (chunk_size > BLOCKSIZE) { if (status = safe_read (diff_handle, buffer, BLOCKSIZE), status != BLOCKSIZE) { if (status < 0) { WARN ((0, errno, _("Cannot read %s"), current_file_name)); report_difference (NULL); } else { char message[MESSAGE_BUFFER_SIZE]; sprintf (message, _("Could only read %lu of %lu bytes"), (unsigned long) status, (unsigned long) chunk_size); report_difference (message); } break; } if (memcmp (buffer, data_block->buffer, BLOCKSIZE)) { different = 1; break; } chunk_size -= status; remaining_size -= status; set_next_block_after (data_block); data_block = find_next_block (); } if (status = safe_read (diff_handle, buffer, chunk_size), status != chunk_size) { if (status < 0) { WARN ((0, errno, _("Cannot read %s"), current_file_name)); report_difference (NULL); } else { char message[MESSAGE_BUFFER_SIZE]; sprintf (message, _("Could only read %lu of %lu bytes"), (unsigned long) status, (unsigned long) chunk_size); report_difference (message); } break; } if (memcmp (buffer, data_block->buffer, chunk_size)) { different = 1; break; } #if 0 amount_read += chunk_size; if (amount_read >= BLOCKSIZE) { amount_read = 0; set_next_block_after (data_block); data_block = find_next_block (); } #endif set_next_block_after (data_block); counter++; remaining_size -= chunk_size; } #if 0 /* If the number of bytes read isn't the number of bytes supposedly in the file, they're different. */ if (amount_read != size_of_file) different = 1; #endif set_next_block_after (data_block); free (sparsearray); if (different) report_difference (_("Data differs")); } /*---------------------------------------------------------------------. | 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. | `---------------------------------------------------------------------*/ static int get_stat_data (struct stat *stat_data) { int status = (dereference_option ? stat (current_file_name, stat_data) : lstat (current_file_name, stat_data)); if (status < 0) { if (errno == ENOENT) report_difference (_("File does not exist")); else { ERROR ((0, errno, _("Cannot stat file %s"), current_file_name)); report_difference (NULL); } #if 0 skip_file (current_stat.st_size); #endif return 0; } return 1; } /*----------------------------------. | Diff a file against the archive. | `----------------------------------*/ void diff_archive (void) { struct stat stat_data; size_t name_length; int status; errno = EPIPE; /* FIXME: errno should be read-only */ /* FIXME: remove perrors */ set_next_block_after (current_header); decode_header (current_header, ¤t_stat, ¤t_format, 1); /* Print the block from `current_header' and `current_stat'. */ if (verbose_option) { if (now_verifying) fprintf (stdlis, _("Verify ")); print_header (); } switch (current_header->header.typeflag) { default: WARN ((0, 0, _("Unknown file type '%c' for %s, diffed as normal file"), current_header->header.typeflag, current_file_name)); /* Fall through. */ case AREGTYPE: case REGTYPE: case GNUTYPE_SPARSE: case CONTTYPE: /* Appears to be a file. See if it's really a directory. */ name_length = strlen (current_file_name) - 1; if (current_file_name[name_length] == '/') goto really_dir; if (!get_stat_data (&stat_data)) { if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); goto quit; } if (!S_ISREG (stat_data.st_mode)) { report_difference (_("Not a regular file")); skip_file (current_stat.st_size); goto quit; } stat_data.st_mode &= MODE_ALL; if (stat_data.st_mode != current_stat.st_mode) report_difference (_("Mode differs")); #if !MSDOS /* stat() in djgpp's C library gives a constant number of 42 as the uid and gid of a file. So, comparing an FTP'ed archive just after unpack would fail on MSDOS. */ if (stat_data.st_uid != current_stat.st_uid) report_difference (_("Uid differs")); if (stat_data.st_gid != current_stat.st_gid) report_difference (_("Gid differs")); #endif if (stat_data.st_mtime != current_stat.st_mtime) report_difference (_("Mod time differs")); if (current_header->header.typeflag != GNUTYPE_SPARSE && stat_data.st_size != current_stat.st_size) { report_difference (_("Size differs")); skip_file (current_stat.st_size); goto quit; } diff_handle = open (current_file_name, O_NDELAY | O_RDONLY | O_BINARY); if (diff_handle < 0 && !absolute_names_option) { char *tmpbuf = xmalloc (strlen (current_file_name) + 2); *tmpbuf = '/'; strcpy (tmpbuf + 1, current_file_name); diff_handle = open (tmpbuf, O_NDELAY | O_RDONLY); free (tmpbuf); } if (diff_handle < 0) { ERROR ((0, errno, _("Cannot open %s"), current_file_name)); if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); report_difference (NULL); goto quit; } /* Need to treat sparse files completely differently here. */ if (current_header->header.typeflag == GNUTYPE_SPARSE) diff_sparse_files (current_stat.st_size); else { if (multi_volume_option) { assign_string (&save_name, current_file_name); save_totsize = current_stat.st_size; /* save_sizeleft is set in read_and_process. */ } read_and_process (current_stat.st_size, process_rawdata); if (multi_volume_option) assign_string (&save_name, NULL); } status = close (diff_handle); if (status < 0) ERROR ((0, errno, _("Error while closing %s"), current_file_name)); quit: break; #if !MSDOS case LNKTYPE: { dev_t dev; ino_t ino; if (!get_stat_data (&stat_data)) break; dev = stat_data.st_dev; ino = stat_data.st_ino; status = stat (current_link_name, &stat_data); if (status < 0) { if (errno == ENOENT) report_difference (_("Does not exist")); else { WARN ((0, errno, _("Cannot stat file %s"), current_file_name)); report_difference (NULL); } break; } if (stat_data.st_dev != dev || stat_data.st_ino != ino) { char *message = (char *) xmalloc (MESSAGE_BUFFER_SIZE + strlen (current_link_name)); sprintf (message, _("Not linked to %s"), current_link_name); report_difference (message); free (message); break; } break; } #endif /* not MSDOS */ #ifdef S_ISLNK case SYMTYPE: { char linkbuf[NAME_FIELD_SIZE + 3]; /* FIXME: may be too short. */ status = readlink (current_file_name, linkbuf, (sizeof linkbuf) - 1); if (status < 0) { if (errno == ENOENT) report_difference (_("No such file or directory")); else { WARN ((0, errno, _("Cannot read link %s"), current_file_name)); report_difference (NULL); } break; } linkbuf[status] = '\0'; /* null-terminate it */ if (strncmp (current_link_name, linkbuf, (size_t) status) != 0) report_difference (_("Symlink differs")); break; } #endif /* not S_ISLNK */ #ifdef S_IFCHR case CHRTYPE: current_stat.st_mode |= S_IFCHR; goto check_node; #endif /* not S_IFCHR */ #ifdef S_IFBLK /* If local system doesn't support block devices, use default case. */ case BLKTYPE: current_stat.st_mode |= S_IFBLK; goto check_node; #endif /* not S_IFBLK */ #ifdef S_ISFIFO /* If local system doesn't support FIFOs, use default case. */ case FIFOTYPE: # ifdef S_IFIFO current_stat.st_mode |= S_IFIFO; # endif current_stat.st_rdev = 0; /* FIXME: do we need this? */ goto check_node; #endif /* S_ISFIFO */ check_node: /* FIXME: deal with umask. */ if (!get_stat_data (&stat_data)) break; if (current_stat.st_rdev != stat_data.st_rdev) { report_difference (_("Device numbers changed")); break; } if ( #ifdef S_IFMT current_stat.st_mode != stat_data.st_mode #else /* POSIX lossage. */ ((current_stat.st_mode & MODE_ALL) != (stat_data.st_mode & MODE_ALL)) #endif ) { report_difference (_("Mode or device-type changed")); break; } break; case GNUTYPE_DUMPDIR: { char *dumpdir_buffer = get_directory_contents (current_file_name, (dev_t) 0); if (multi_volume_option) { assign_string (&save_name, current_file_name); save_totsize = current_stat.st_size; /* save_sizeleft is set in read_and_process. */ } if (dumpdir_buffer) { dumpdir_cursor = dumpdir_buffer; read_and_process (current_stat.st_size, process_dumpdir); free (dumpdir_buffer); } else read_and_process (current_stat.st_size, process_noop); if (multi_volume_option) assign_string (&save_name, NULL); /* Fall through. */ } case DIRTYPE: /* Check for trailing /. */ name_length = strlen (current_file_name) - 1; really_dir: while (name_length && current_file_name[name_length] == '/') current_file_name[name_length--] = '\0'; /* zap / */ if (!get_stat_data (&stat_data)) break; if (!S_ISDIR (stat_data.st_mode)) { report_difference (_("No longer a directory")); break; } if ((stat_data.st_mode & MODE_ALL) != (current_stat.st_mode & MODE_ALL)) report_difference (_("Mode differs")); break; case GNUTYPE_VOLHDR: break; case GNUTYPE_MULTIVOL: { off_t offset; name_length = strlen (current_file_name) - 1; if (current_file_name[name_length] == '/') goto really_dir; if (!get_stat_data (&stat_data)) break; if (!S_ISREG (stat_data.st_mode)) { report_difference (_("Not a regular file")); skip_file (current_stat.st_size); break; } stat_data.st_mode &= MODE_ALL; offset = OFF_FROM_OCT (current_header->oldgnu_header.offset); if (stat_data.st_size != current_stat.st_size + offset) { report_difference (_("Size differs")); skip_file (current_stat.st_size); break; } diff_handle = open (current_file_name, O_NDELAY | O_RDONLY | O_BINARY); if (diff_handle < 0) { WARN ((0, errno, _("Cannot open file %s"), current_file_name)); report_difference (NULL); skip_file (current_stat.st_size); break; } if (lseek (diff_handle, offset, SEEK_SET) < 0) { char buf[UINTMAX_STRSIZE_BOUND]; WARN ((0, errno, _("Cannot seek to %s in file %s"), STRINGIFY_BIGINT (offset, buf), current_file_name)); report_difference (NULL); break; } if (multi_volume_option) { assign_string (&save_name, current_file_name); save_totsize = stat_data.st_size; /* save_sizeleft is set in read_and_process. */ } read_and_process (current_stat.st_size, process_rawdata); if (multi_volume_option) assign_string (&save_name, NULL); status = close (diff_handle); if (status < 0) ERROR ((0, errno, _("Error while closing %s"), current_file_name)); break; } } } /*---. | ? | `---*/ void verify_volume (void) { if (!diff_buffer) diff_init (); /* Verifying an archive is meant to check if the physical media got it correctly, so try to defeat clever in-memory buffering pertaining to this particular media. On Linux, for example, the floppy drive would not even be accessed for the whole verification. The code was using fsync only when the ioctl is unavailable, but Marty Leisner says that the ioctl does not work when not preceded by fsync. So, until we know better, or maybe to please Marty, let's do it the unbelievable way :-). */ #if HAVE_FSYNC fsync (archive); #endif #ifdef FDFLUSH ioctl (archive, FDFLUSH); #endif #ifdef MTIOCTOP { struct mtop operation; int status; operation.mt_op = MTBSF; operation.mt_count = 1; if (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), status < 0) { if (errno != EIO || (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), status < 0)) { #endif if (rmtlseek (archive, (off_t) 0, SEEK_SET) != 0) { /* Lseek failed. Try a different method. */ WARN ((0, errno, _("Could not rewind archive file for verify"))); return; } #ifdef MTIOCTOP } } } #endif access_mode = ACCESS_READ; now_verifying = 1; flush_read (); while (1) { enum read_header status = read_header (); if (status == HEADER_FAILURE) { int counter = 0; while (status == HEADER_FAILURE); { counter++; status = read_header (); } ERROR ((0, 0, _("VERIFY FAILURE: %d invalid header(s) detected"), counter)); } if (status == HEADER_ZERO_BLOCK || status == HEADER_END_OF_FILE) break; diff_archive (); } access_mode = ACCESS_WRITE; now_verifying = 0; } tar-1.13/src/create.c0000444000176300016070000012165506740562450010130 /* Create a tar archive. Copyright 1985, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc. Written by John Gilmore, on 1985-08-25. 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. */ #include "system.h" #if !MSDOS # include # include #endif #if HAVE_UTIME_H # include #else struct utimbuf { long actime; long modtime; }; #endif #include "common.h" #ifndef MSDOS extern dev_t ar_dev; extern ino_t ar_ino; #endif extern struct name *gnu_list_name; /* This module is the only one that cares about `struct link's. */ struct link { struct link *next; dev_t dev; ino_t ino; short linkcount; char name[1]; }; struct link *linklist = NULL; /* points to first link in list */ /*------------------------------------------------------------------------. | 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! | `------------------------------------------------------------------------*/ /* Output VALUE in octal, using SUBSTITUTE if value won't fit. Output to buffer WHERE with size SIZE. TYPE is the kind of value being output (useful for diagnostics). Prefer SIZE - 1 octal digits (with leading '0's), followed by '\0'; but if SIZE octal digits would fit, omit the '\0'. */ static void to_oct (uintmax_t value, uintmax_t substitute, char *where, size_t size, const char *type) { uintmax_t v = value; size_t i = size; # define MAX_OCTAL_VAL_WITH_DIGITS(digits) \ ((digits) * 3 < sizeof (uintmax_t) * CHAR_BIT \ ? ((uintmax_t) 1 << ((digits) * 3)) - 1 \ : (uintmax_t) -1) /* Output a trailing NUL unless the value is too large. */ if (value <= MAX_OCTAL_VAL_WITH_DIGITS (size - 1)) where[--i] = '\0'; /* Produce the digits -- at least one. */ do { where[--i] = '0' + (int) (v & 7); /* one octal digit */ v >>= 3; } while (i != 0 && v != 0); /* Leading zeros, if necessary. */ while (i != 0) where[--i] = '0'; if (v != 0) { uintmax_t maxval = MAX_OCTAL_VAL_WITH_DIGITS (size); char buf1[UINTMAX_STRSIZE_BOUND]; char buf2[UINTMAX_STRSIZE_BOUND]; char buf3[UINTMAX_STRSIZE_BOUND]; char *value_string = STRINGIFY_BIGINT (value, buf1); char *maxval_string = STRINGIFY_BIGINT (maxval, buf2); if (substitute) { substitute &= maxval; WARN ((0, 0, _("%s value %s too large (max=%s); substituting %s"), type, value_string, maxval_string, STRINGIFY_BIGINT (substitute, buf3))); to_oct (substitute, (uintmax_t) 0, where, size, type); } else ERROR ((0, 0, _("%s value %s too large (max=%s)"), type, value_string, maxval_string)); } } #ifndef GID_NOBODY #define GID_NOBODY 0 #endif void gid_to_oct (gid_t v, char *p, size_t s) { 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) { to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "major_t"); } void minor_to_oct (minor_t v, char *p, size_t s) { to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "minor_t"); } void mode_to_oct (mode_t v, char *p, size_t s) { /* In the common case where the internal and external mode bits are the same, propagate all unknown bits to the external mode. This matches historical practice. Otherwise, just copy the bits we know about. */ uintmax_t u = ((S_ISUID == TSUID && S_ISGID == TSGID && S_ISVTX == TSVTX && S_IRUSR == TUREAD && S_IWUSR == TUWRITE && S_IXUSR == TUEXEC && S_IRGRP == TGREAD && S_IWGRP == TGWRITE && S_IXGRP == TGEXEC && S_IROTH == TOREAD && S_IWOTH == TOWRITE && S_IXOTH == TOEXEC) ? v : ((v & S_ISUID ? TSUID : 0) | (v & S_ISGID ? TSGID : 0) | (v & S_ISVTX ? TSVTX : 0) | (v & S_IRUSR ? TUREAD : 0) | (v & S_IWUSR ? TUWRITE : 0) | (v & S_IXUSR ? TUEXEC : 0) | (v & S_IRGRP ? TGREAD : 0) | (v & S_IWGRP ? TGWRITE : 0) | (v & S_IXGRP ? TGEXEC : 0) | (v & S_IROTH ? TOREAD : 0) | (v & S_IWOTH ? TOWRITE : 0) | (v & S_IXOTH ? TOEXEC : 0))); to_oct (u, (uintmax_t) 0, p, s, "mode_t"); } void off_to_oct (off_t v, char *p, size_t s) { to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "off_t"); } void size_to_oct (size_t v, char *p, size_t s) { to_oct ((uintmax_t) v, (uintmax_t) 0, p, s, "size_t"); } void time_to_oct (time_t v, char *p, size_t s) { 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) { 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) { to_oct (v, (uintmax_t) 0, p, s, "uintmax_t"); } /* Writing routines. */ /*-----------------------------------------------------------------------. | Just zeroes out the buffer so we don't confuse ourselves with leftover | | data. | `-----------------------------------------------------------------------*/ static void clear_buffer (char *buffer) { memset (buffer, 0, BLOCKSIZE); } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ void write_eot (void) { union block *pointer = find_next_block (); if (pointer) { size_t space = available_space_after (pointer); memset (pointer->buffer, 0, space); set_next_block_after (pointer); } } /*-----------------------------------------------------. | Write a GNUTYPE_LONGLINK or GNUTYPE_LONGNAME block. | `-----------------------------------------------------*/ /* FIXME: Cross recursion between start_header and write_long! */ static union block *start_header PARAMS ((const char *, struct stat *)); static void write_long (const char *p, char type) { size_t size = strlen (p) + 1; size_t bufsize; union block *header; struct stat foo; memset (&foo, 0, sizeof foo); foo.st_size = size; header = start_header ("././@LongLink", &foo); header->header.typeflag = type; finish_header (header); header = find_next_block (); bufsize = available_space_after (header); while (bufsize < size) { memcpy (header->buffer, p, bufsize); p += bufsize; size -= bufsize; set_next_block_after (header + (bufsize - 1) / BLOCKSIZE); header = find_next_block (); bufsize = available_space_after (header); } memcpy (header->buffer, p, size); memset (header->buffer + size, 0, bufsize - size); set_next_block_after (header + (size - 1) / BLOCKSIZE); } /* Header handling. */ /*---------------------------------------------------------------------. | 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. | `---------------------------------------------------------------------*/ static union block * start_header (const char *name, struct stat *st) { union block *header; if (!absolute_names_option) { static int warned_once = 0; #if MSDOS if (name[1] == ':') { name += 2; if (!warned_once) { warned_once = 1; WARN ((0, 0, _("Removing drive spec from names in the archive"))); } } #endif while (*name == '/') { name++; /* force relative path */ if (!warned_once) { warned_once = 1; WARN ((0, 0, _("\ Removing leading `/' from absolute path names in the archive"))); } } } /* Check the file name and put it in the block. */ if (strlen (name) >= (size_t) NAME_FIELD_SIZE) write_long (name, GNUTYPE_LONGNAME); header = find_next_block (); memset (header->buffer, 0, sizeof (union block)); assign_string (¤t_file_name, name); strncpy (header->header.name, name, NAME_FIELD_SIZE); header->header.name[NAME_FIELD_SIZE - 1] = '\0'; /* Override some stat fields, if requested to do so. */ if (owner_option != (uid_t) -1) st->st_uid = owner_option; if (group_option != (gid_t) -1) st->st_gid = group_option; if (mode_option) st->st_mode = ((st->st_mode & S_IFMT) | mode_adjust (st->st_mode, mode_option)); /* Paul Eggert tried the trivial test ($WRITER cf a b; $READER tvf a) for a few tars and came up with the following interoperability matrix: WRITER 1 2 3 4 5 6 7 8 9 READER . . . . . . . . . 1 = SunOS 4.2 tar # . . # # . . # # 2 = NEC SVR4.0.2 tar . . . # # . . # . 3 = Solaris 2.1 tar . . . . . . . . . 4 = GNU tar 1.11.1 . . . . . . . . . 5 = HP-UX 8.07 tar . . . . . . . . . 6 = Ultrix 4.1 . . . . . . . . . 7 = AIX 3.2 . . . . . . . . . 8 = Hitachi HI-UX 1.03 . . . . . . . . . 9 = Omron UNIOS-B 4.3BSD 1.60Beta . = works # = ``impossible file type'' The following mask for old archive removes the `#'s in column 4 above, thus making GNU tar both a universal donor and a universal acceptor for Paul's test. */ if (archive_format == V7_FORMAT) MODE_TO_OCT (st->st_mode & MODE_ALL, header->header.mode); else MODE_TO_OCT (st->st_mode, header->header.mode); UID_TO_OCT (st->st_uid, header->header.uid); GID_TO_OCT (st->st_gid, header->header.gid); OFF_TO_OCT (st->st_size, header->header.size); TIME_TO_OCT (st->st_mtime, header->header.mtime); if (incremental_option) if (archive_format == OLDGNU_FORMAT) { TIME_TO_OCT (st->st_atime, header->oldgnu_header.atime); TIME_TO_OCT (st->st_ctime, header->oldgnu_header.ctime); } header->header.typeflag = archive_format == V7_FORMAT ? AREGTYPE : REGTYPE; switch (archive_format) { case DEFAULT_FORMAT: case V7_FORMAT: break; case OLDGNU_FORMAT: /* Overwrite header->header.magic and header.version in one blow. */ strcpy (header->header.magic, OLDGNU_MAGIC); break; case POSIX_FORMAT: case GNU_FORMAT: strncpy (header->header.magic, TMAGIC, TMAGLEN); strncpy (header->header.version, TVERSION, TVERSLEN); break; } if (archive_format == V7_FORMAT || numeric_owner_option) { /* header->header.[ug]name are left as the empty string. */ } else { uid_to_uname (st->st_uid, header->header.uname); gid_to_gname (st->st_gid, header->header.gname); } return header; } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ void finish_header (union block *header) { size_t i; int sum; char *p; memcpy (header->header.chksum, CHKBLANKS, sizeof (header->header.chksum)); sum = 0; p = header->buffer; for (i = sizeof (*header); i-- != 0; ) /* We can't use unsigned char here because of old compilers, e.g. V7. */ sum += 0xFF & *p++; /* Fill in the checksum field. It's formatted differently from the other fields: it has [6] digits, a null, then a space -- rather than digits, then a null. We use to_oct. The final space is already there, from checksumming, and to_oct doesn't modify it. This is a fast way to do: sprintf(header->header.chksum, "%6o", sum); */ uintmax_to_oct ((uintmax_t) sum, header->header.chksum, 7); set_next_block_after (header); if (verbose_option && header->header.typeflag != GNUTYPE_LONGLINK && header->header.typeflag != GNUTYPE_LONGNAME) { /* These globals are parameters to print_header, sigh. */ current_header = header; /* current_stat is already set up. */ current_format = archive_format; print_header (); } } /* Sparse file processing. */ /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ static int zero_block_p (char *buffer) { int counter; for (counter = 0; counter < BLOCKSIZE; counter++) if (buffer[counter] != '\0') return 0; return 1; } /*---. | ? | `---*/ static void init_sparsearray (void) { int counter; sp_array_size = 10; /* Make room for our scratch space -- initially is 10 elts long. */ sparsearray = (struct sp_array *) xmalloc (sp_array_size * sizeof (struct sp_array)); for (counter = 0; counter < sp_array_size; counter++) { sparsearray[counter].offset = 0; sparsearray[counter].numbytes = 0; } } /*---. | ? | `---*/ static void find_new_file_size (off_t *filesize, int highest_index) { int counter; *filesize = 0; for (counter = 0; sparsearray[counter].numbytes && counter <= highest_index; counter++) *filesize += sparsearray[counter].numbytes; } /*-----------------------------------------------------------------------. | 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. | `-----------------------------------------------------------------------*/ /* There is little point in trimming small amounts of null data at the head and tail of blocks, only avoid dumping full null blocks. */ /* FIXME: this routine might accept bits of algorithmic cleanup, it is too kludgey for my taste... */ static int deal_with_sparse (char *name, union block *header) { size_t numbytes = 0; off_t offset = 0; int file; int sparse_index = 0; ssize_t count; char buffer[BLOCKSIZE]; if (archive_format == OLDGNU_FORMAT) header->oldgnu_header.isextended = 0; if (file = open (name, O_RDONLY), file < 0) /* This problem will be caught later on, so just return. */ return 0; init_sparsearray (); clear_buffer (buffer); while (count = safe_read (file, buffer, sizeof buffer), count != 0) { /* Realloc the scratch area as necessary. FIXME: should reallocate only at beginning of a new instance of non-zero data. */ if (sparse_index > sp_array_size - 1) { sparsearray = (struct sp_array *) xrealloc (sparsearray, 2 * sp_array_size * sizeof (struct sp_array)); sp_array_size *= 2; } /* Process one block. */ if (count == sizeof buffer) if (zero_block_p (buffer)) { if (numbytes) { sparsearray[sparse_index++].numbytes = numbytes; numbytes = 0; } } else { if (!numbytes) sparsearray[sparse_index].offset = offset; numbytes += count; } else /* Since count < sizeof buffer, we have the last bit of the file. */ if (!zero_block_p (buffer)) { if (!numbytes) sparsearray[sparse_index].offset = offset; numbytes += count; } else /* The next two lines are suggested by Andreas Degert, who says they are required for trailing full blocks to be written to the archive, when all zeroed. Yet, it seems to me that the case does not apply. Further, at restore time, the file is not as sparse as it should. So, some serious cleanup is *also* needed in this area. Just one more... :-(. FIXME. */ if (numbytes) numbytes += count; /* Prepare for next block. */ offset += count; /* FIXME: do not clear unless necessary. */ clear_buffer (buffer); } if (numbytes) sparsearray[sparse_index++].numbytes = numbytes; else { sparsearray[sparse_index].offset = offset - 1; sparsearray[sparse_index++].numbytes = 1; } close (file); return sparse_index - 1; } /*---. | ? | `---*/ static int finish_sparse_file (int file, off_t *sizeleft, off_t fullsize, char *name) { union block *start; size_t bufsize; int sparse_index = 0; ssize_t count; while (*sizeleft > 0) { start = find_next_block (); memset (start->buffer, 0, BLOCKSIZE); bufsize = sparsearray[sparse_index].numbytes; if (!bufsize) { /* We blew it, maybe. */ char buf1[UINTMAX_STRSIZE_BOUND]; char buf2[UINTMAX_STRSIZE_BOUND]; ERROR ((0, 0, _("Wrote %s of %s bytes to file %s"), STRINGIFY_BIGINT (fullsize - *sizeleft, buf1), STRINGIFY_BIGINT (fullsize, buf2), name)); break; } if (lseek (file, sparsearray[sparse_index++].offset, SEEK_SET) < 0) { char buf[UINTMAX_STRSIZE_BOUND]; ERROR ((0, errno, _("lseek error at byte %s in file %s"), STRINGIFY_BIGINT (sparsearray[sparse_index - 1].offset, buf), name)); break; } /* If the number of bytes to be written here exceeds the size of the temporary buffer, do it in steps. */ while (bufsize > BLOCKSIZE) { #if 0 if (amount_read) { count = safe_read (file, start->buffer + amount_read, BLOCKSIZE - amount_read); bufsize -= BLOCKSIZE - amount_read; amount_read = 0; set_next_block_after (start); start = find_next_block (); memset (start->buffer, 0, BLOCKSIZE); } #endif /* Store the data. */ count = safe_read (file, start->buffer, BLOCKSIZE); if (count < 0) { char buf[UINTMAX_STRSIZE_BOUND]; ERROR ((0, errno, _("\ Read error at byte %s, reading %lu bytes, in file %s"), STRINGIFY_BIGINT (fullsize - *sizeleft, buf), (unsigned long) bufsize, name)); return 1; } bufsize -= count; *sizeleft -= count; set_next_block_after (start); start = find_next_block (); memset (start->buffer, 0, BLOCKSIZE); } { char buffer[BLOCKSIZE]; clear_buffer (buffer); count = safe_read (file, buffer, bufsize); memcpy (start->buffer, buffer, BLOCKSIZE); } if (count < 0) { char buf[UINTMAX_STRSIZE_BOUND]; ERROR ((0, errno, _("Read error at byte %s, reading %lu bytes, in file %s"), STRINGIFY_BIGINT (fullsize - *sizeleft, buf), (unsigned long) bufsize, name)); return 1; } #if 0 if (amount_read >= BLOCKSIZE) { amount_read = 0; set_next_block_after (start + (count - 1) / BLOCKSIZE); if (count != bufsize) { ERROR ((0, 0, _("File %s shrunk, padding with zeros"), name)); return 1; } start = find_next_block (); } else amount_read += bufsize; #endif *sizeleft -= count; set_next_block_after (start); } free (sparsearray); #if 0 set_next_block_after (start + (count - 1) / BLOCKSIZE); #endif return 0; } /* Main functions of this module. */ /*---. | ? | `---*/ void create_archive (void) { char *p; open_archive (ACCESS_WRITE); if (incremental_option) { char *buffer = xmalloc (PATH_MAX); const char *q; char *bufp; collect_and_sort_names (); while (p = name_from_list (), p) dump_file (p, (dev_t) -1, 1); blank_name_list (); while (p = name_from_list (), p) { strcpy (buffer, p); if (p[strlen (p) - 1] != '/') strcat (buffer, "/"); bufp = buffer + strlen (buffer); for (q = gnu_list_name->dir_contents; q && *q; q += strlen (q) + 1) { if (*q == 'Y') { strcpy (bufp, q + 1); dump_file (buffer, (dev_t) -1, 1); } } } free (buffer); } else { while (p = name_next (1), p) dump_file (p, (dev_t) -1, 1); } write_eot (); close_archive (); if (listed_incremental_option) write_dir_file (); } /*----------------------------------------------------------------------. | 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. | `----------------------------------------------------------------------*/ /* FIXME: One should make sure that for *every* path leading to setting exit_status to failure, a clear diagnostic has been issued. */ void dump_file (char *p, dev_t parent_device, int top_level) { union block *header; char type; union block *exhdr; char save_typeflag; struct utimbuf restore_times; off_t restore_size; /* FIXME: `header' and `upperbound' might be used uninitialized in this function. Reported by Bruno Haible. */ if (interactive_option && !confirm ("add", p)) return; /* Use stat if following (rather than dumping) 4.2BSD's symbolic links. Otherwise, use lstat (which falls back to stat if no symbolic links). */ if (dereference_option != 0 #if STX_HIDDEN && !_LARGE_FILES /* AIX */ ? statx (p, ¤t_stat, STATSIZE, STX_HIDDEN) : statx (p, ¤t_stat, STATSIZE, STX_HIDDEN | STX_LINK) #else ? stat (p, ¤t_stat) : lstat (p, ¤t_stat) #endif ) { WARN ((0, errno, _("Cannot add file %s"), p)); if (!ignore_failed_read_option) exit_status = TAREXIT_FAILURE; return; } restore_times.actime = current_stat.st_atime; restore_times.modtime = current_stat.st_mtime; restore_size = current_stat.st_size; #ifdef S_ISHIDDEN if (S_ISHIDDEN (current_stat.st_mode)) { char *new = (char *) alloca (strlen (p) + 2); if (new) { strcpy (new, p); strcat (new, "@"); p = new; } } #endif /* See if we only want new files, and check if this one is too old to put in the archive. */ if (!incremental_option && !S_ISDIR (current_stat.st_mode) && current_stat.st_mtime < newer_mtime_option && (!after_date_option || current_stat.st_ctime < newer_ctime_option)) { if (parent_device == (dev_t) -1) WARN ((0, 0, _("%s: is unchanged; not dumped"), p)); /* FIXME: recheck this return. */ return; } #if !MSDOS /* See if we are trying to dump the archive. */ if (ar_dev && current_stat.st_dev == ar_dev && current_stat.st_ino == ar_ino) { WARN ((0, 0, _("%s is the archive; not dumped"), p)); return; } #endif /* Check for multiple links. We maintain a list of all such files that we've written so far. Any time we see another, we check the list and avoid dumping the data again if we've done it once already. */ if (current_stat.st_nlink > 1 && (S_ISREG (current_stat.st_mode) #ifdef S_ISCTG || S_ISCTG (current_stat.st_mode) #endif #ifdef S_ISCHR || S_ISCHR (current_stat.st_mode) #endif #ifdef S_ISBLK || S_ISBLK (current_stat.st_mode) #endif #ifdef S_ISFIFO || S_ISFIFO (current_stat.st_mode) #endif )) { struct link *lp; /* FIXME: First quick and dirty. Hashing, etc later. */ for (lp = linklist; lp; lp = lp->next) if (lp->ino == current_stat.st_ino && lp->dev == current_stat.st_dev) { char *link_name = lp->name; /* We found a link. */ while (!absolute_names_option && *link_name == '/') { static int warned_once = 0; if (!warned_once) { warned_once = 1; WARN ((0, 0, _("\ Removing leading `/' from absolute links"))); } link_name++; } if (strlen (link_name) >= NAME_FIELD_SIZE) write_long (link_name, GNUTYPE_LONGLINK); assign_string (¤t_link_name, link_name); current_stat.st_size = 0; header = start_header (p, ¤t_stat); if (header == NULL) { exit_status = TAREXIT_FAILURE; return; } strncpy (header->header.linkname, link_name, NAME_FIELD_SIZE); /* Force null truncated. */ header->header.linkname[NAME_FIELD_SIZE - 1] = 0; header->header.typeflag = LNKTYPE; finish_header (header); /* FIXME: Maybe remove from list after all links found? */ if (remove_files_option) if (unlink (p) == -1) ERROR ((0, errno, _("Cannot remove %s"), p)); /* We dumped it. */ return; } /* Not found. Add it to the list of possible links. */ lp = (struct link *) xmalloc ((size_t) (sizeof (struct link) + strlen (p))); lp->ino = current_stat.st_ino; lp->dev = current_stat.st_dev; strcpy (lp->name, p); lp->next = linklist; linklist = lp; } /* This is not a link to a previously dumped file, so dump it. */ if (S_ISREG (current_stat.st_mode) #ifdef S_ISCTG || S_ISCTG (current_stat.st_mode) #endif ) { int f; /* file descriptor */ size_t bufsize; ssize_t count; off_t sizeleft; union block *start; int header_moved; char isextended = 0; int upperbound; #if 0 static int cried_once = 0; #endif header_moved = 0; if (sparse_option) { /* Check the size of the file against the number of blocks allocated for it, counting both data and indirect blocks. If there is a smaller number of blocks that would be necessary to accommodate a file of this size, this is safe to say that we have a sparse file: at least one of those blocks in the file is just a useless hole. For sparse files not having more hole blocks than indirect blocks, the sparseness will go undetected. */ /* Bruno Haible sent me these statistics for Linux. It seems that some filesystems count indirect blocks in st_blocks, while others do not seem to: minix-fs tar: size=7205, st_blocks=18 and ST_NBLOCKS=18 extfs tar: size=7205, st_blocks=18 and ST_NBLOCKS=18 ext2fs tar: size=7205, st_blocks=16 and ST_NBLOCKS=16 msdos-fs tar: size=7205, st_blocks=16 and ST_NBLOCKS=16 Dick Streefland reports the previous numbers as misleading, because ext2fs use 12 direct blocks, while minix-fs uses only 6 direct blocks. Dick gets: ext2 size=20480 ls listed blocks=21 minix size=20480 ls listed blocks=21 msdos size=20480 ls listed blocks=20 It seems that indirect blocks *are* included in st_blocks. The minix filesystem does not account for phantom blocks in st_blocks, so `du' and `ls -s' give wrong results. So, the --sparse option would not work on a minix filesystem. */ if (ST_NBLOCKS (current_stat) < (current_stat.st_size / ST_NBLOCKSIZE + (current_stat.st_size % ST_NBLOCKSIZE != 0))) { off_t filesize = current_stat.st_size; int counter; header = start_header (p, ¤t_stat); if (header == NULL) { exit_status = TAREXIT_FAILURE; return; } header->header.typeflag = GNUTYPE_SPARSE; header_moved = 1; /* Call the routine that figures out the layout of the sparse file in question. UPPERBOUND is the index of the last element of the "sparsearray," i.e., the number of elements it needed to describe the file. */ upperbound = deal_with_sparse (p, header); /* See if we'll need an extended header later. */ if (upperbound > SPARSES_IN_OLDGNU_HEADER - 1) header->oldgnu_header.isextended = 1; /* We store the "real" file size so we can show that in case someone wants to list the archive, i.e., tar tvf . It might be kind of disconcerting if the shrunken file size was the one that showed up. */ OFF_TO_OCT (current_stat.st_size, header->oldgnu_header.realsize); /* This will be the new "size" of the file, i.e., the size of the file minus the blocks of holes that we're skipping over. */ find_new_file_size (&filesize, upperbound); current_stat.st_size = filesize; OFF_TO_OCT (filesize, header->header.size); for (counter = 0; counter < SPARSES_IN_OLDGNU_HEADER; counter++) { if (!sparsearray[counter].numbytes) break; OFF_TO_OCT (sparsearray[counter].offset, header->oldgnu_header.sp[counter].offset); SIZE_TO_OCT (sparsearray[counter].numbytes, header->oldgnu_header.sp[counter].numbytes); } } } else upperbound = SPARSES_IN_OLDGNU_HEADER - 1; sizeleft = current_stat.st_size; /* Don't bother opening empty, world readable files. Also do not open files when archive is meant for /dev/null. */ if (dev_null_output || (sizeleft == 0 && MODE_R == (MODE_R & current_stat.st_mode))) f = -1; else { f = open (p, O_RDONLY | O_BINARY); if (f < 0) { WARN ((0, errno, _("Cannot add file %s"), p)); if (!ignore_failed_read_option) exit_status = TAREXIT_FAILURE; return; } } /* If the file is sparse, we've already taken care of this. */ if (!header_moved) { header = start_header (p, ¤t_stat); if (header == NULL) { if (f >= 0) close (f); exit_status = TAREXIT_FAILURE; return; } } #ifdef S_ISCTG /* Mark contiguous files, if we support them. */ if (archive_format != V7_FORMAT && S_ISCTG (current_stat.st_mode)) header->header.typeflag = CONTTYPE; #endif isextended = header->oldgnu_header.isextended; save_typeflag = header->header.typeflag; finish_header (header); if (isextended) { #if 0 int sum = 0; #endif int counter; #if 0 union block *exhdr; int arraybound = SPARSES_IN_SPARSE_HEADER; #endif /* static */ int index_offset = SPARSES_IN_OLDGNU_HEADER; extend: exhdr = find_next_block (); if (exhdr == NULL) { exit_status = TAREXIT_FAILURE; return; } memset (exhdr->buffer, 0, BLOCKSIZE); for (counter = 0; counter < SPARSES_IN_SPARSE_HEADER; counter++) { if (counter + index_offset > upperbound) break; SIZE_TO_OCT (sparsearray[counter + index_offset].numbytes, exhdr->sparse_header.sp[counter].numbytes); OFF_TO_OCT (sparsearray[counter + index_offset].offset, exhdr->sparse_header.sp[counter].offset); } set_next_block_after (exhdr); #if 0 sum += counter; if (sum < upperbound) goto extend; #endif if (index_offset + counter <= upperbound) { index_offset += counter; exhdr->sparse_header.isextended = 1; goto extend; } } if (save_typeflag == GNUTYPE_SPARSE) { if (f < 0 || finish_sparse_file (f, &sizeleft, current_stat.st_size, p)) goto padit; } else while (sizeleft > 0) { if (multi_volume_option) { assign_string (&save_name, p); save_sizeleft = sizeleft; save_totsize = current_stat.st_size; } start = find_next_block (); bufsize = available_space_after (start); if (sizeleft < bufsize) { /* Last read -- zero out area beyond. */ bufsize = sizeleft; count = bufsize % BLOCKSIZE; if (count) memset (start->buffer + sizeleft, 0, (size_t) (BLOCKSIZE - count)); } if (f < 0) count = bufsize; else count = safe_read (f, start->buffer, bufsize); if (count < 0) { char buf[UINTMAX_STRSIZE_BOUND]; ERROR ((0, errno, _("\ Read error at byte %s, reading %lu bytes, in file %s"), STRINGIFY_BIGINT (current_stat.st_size - sizeleft, buf), (unsigned long) bufsize, p)); goto padit; } sizeleft -= count; /* This is nonportable (the type of set_next_block_after's arg). */ set_next_block_after (start + (count - 1) / BLOCKSIZE); if (count == bufsize) continue; else { char buf[UINTMAX_STRSIZE_BOUND]; ERROR ((0, 0, _("File %s shrunk by %s bytes, padding with zeros"), p, STRINGIFY_BIGINT (sizeleft, buf))); goto padit; /* short read */ } } if (multi_volume_option) assign_string (&save_name, NULL); if (f >= 0) { struct stat final_stat; if (fstat (f, &final_stat) != 0) ERROR ((0, errno, "%s: fstat", p)); else if (final_stat.st_mtime != restore_times.modtime || final_stat.st_size != restore_size) ERROR ((0, errno, _("%s: file changed as we read it"), p)); if (close (f) != 0) ERROR ((0, errno, _("%s: close"), p)); if (atime_preserve_option) utime (p, &restore_times); } if (remove_files_option) { if (unlink (p) == -1) ERROR ((0, errno, _("Cannot remove %s"), p)); } return; /* File shrunk or gave error, pad out tape to match the size we specified in the header. */ padit: while (sizeleft > 0) { save_sizeleft = sizeleft; start = find_next_block (); memset (start->buffer, 0, BLOCKSIZE); set_next_block_after (start); sizeleft -= BLOCKSIZE; } if (multi_volume_option) assign_string (&save_name, NULL); if (f >= 0) { close (f); if (atime_preserve_option) utime (p, &restore_times); } return; } #ifdef S_ISLNK else if (S_ISLNK (current_stat.st_mode)) { int size; char *buffer = (char *) alloca (PATH_MAX + 1); size = readlink (p, buffer, PATH_MAX + 1); if (size < 0) { WARN ((0, errno, _("Cannot add file %s"), p)); if (!ignore_failed_read_option) exit_status = TAREXIT_FAILURE; return; } buffer[size] = '\0'; if (size >= NAME_FIELD_SIZE) write_long (buffer, GNUTYPE_LONGLINK); assign_string (¤t_link_name, buffer); current_stat.st_size = 0; /* force 0 size on symlink */ header = start_header (p, ¤t_stat); if (header == NULL) { exit_status = TAREXIT_FAILURE; return; } strncpy (header->header.linkname, buffer, NAME_FIELD_SIZE); header->header.linkname[NAME_FIELD_SIZE - 1] = '\0'; header->header.typeflag = SYMTYPE; finish_header (header); /* nothing more to do to it */ if (remove_files_option) { if (unlink (p) == -1) ERROR ((0, errno, _("Cannot remove %s"), p)); } return; } #endif /* S_ISLNK */ else if (S_ISDIR (current_stat.st_mode)) { DIR *directory; struct dirent *entry; char *namebuf; size_t buflen; size_t len; dev_t our_device = current_stat.st_dev; /* If this tar program is installed suid root, like for Amanda, the access might look like denied, while it is not really. FIXME: I have the feeling this test is done too early. Couldn't it just be bundled in later actions? I guess that the proper support of --ignore-failed-read is the key of the current writing. */ if (access (p, R_OK) == -1 && geteuid () != 0) { WARN ((0, errno, _("Cannot add directory %s"), p)); if (!ignore_failed_read_option) exit_status = TAREXIT_FAILURE; return; } /* Build new prototype name. Ensure exactly one trailing slash. */ len = strlen (p); buflen = len + NAME_FIELD_SIZE; namebuf = xmalloc (buflen + 1); strncpy (namebuf, p, buflen); while (len >= 1 && namebuf[len - 1] == '/') len--; namebuf[len++] = '/'; namebuf[len] = '\0'; if (1) { /* The "1" above used to be "archive_format != V7_FORMAT", GNU tar was just not writing directory blocks at all. Daniel Trinkle writes: ``All old versions of tar I have ever seen have correctly archived an empty directory. The really old ones I checked included HP-UX 7 and Mt. Xinu More/BSD. There may be some subtle reason for the exclusion that I don't know, but the current behavior is broken.'' I do not know those subtle reasons either, so until these are reported (anew?), just allow directory blocks to be written even with old archives. */ current_stat.st_size = 0; /* force 0 size on dir */ /* FIXME: If people could really read standard archives, this should be: header = start_header (standard_option ? p : namebuf, ¤t_stat); but since they'd interpret DIRTYPE blocks as regular files, we'd better put the / on the name. */ header = start_header (namebuf, ¤t_stat); if (header == NULL) { exit_status = TAREXIT_FAILURE; return; /* eg name too long */ } if (incremental_option) header->header.typeflag = GNUTYPE_DUMPDIR; else /* if (standard_option) */ header->header.typeflag = DIRTYPE; /* If we're gnudumping, we aren't done yet so don't close it. */ if (!incremental_option) finish_header (header); /* done with directory header */ } if (incremental_option && gnu_list_name->dir_contents) { off_t sizeleft; off_t totsize; size_t bufsize; union block *start; ssize_t count; const char *buffer, *p_buffer; buffer = gnu_list_name->dir_contents; /* FOO */ totsize = 0; for (p_buffer = buffer; p_buffer && *p_buffer;) { size_t tmp; tmp = strlen (p_buffer) + 1; totsize += tmp; p_buffer += tmp; } totsize++; OFF_TO_OCT (totsize, header->header.size); finish_header (header); p_buffer = buffer; sizeleft = totsize; while (sizeleft > 0) { if (multi_volume_option) { assign_string (&save_name, p); save_sizeleft = sizeleft; save_totsize = totsize; } start = find_next_block (); bufsize = available_space_after (start); if (sizeleft < bufsize) { bufsize = sizeleft; count = bufsize % BLOCKSIZE; if (count) memset (start->buffer + sizeleft, 0, (size_t) (BLOCKSIZE - count)); } memcpy (start->buffer, p_buffer, bufsize); sizeleft -= bufsize; p_buffer += bufsize; set_next_block_after (start + (bufsize - 1) / BLOCKSIZE); } if (multi_volume_option) assign_string (&save_name, NULL); if (atime_preserve_option) utime (p, &restore_times); return; } /* See if we are about to recurse into a directory, and avoid doing so if the user wants that we do not descend into directories. */ if (no_recurse_option) return; /* See if we are crossing from one file system to another, and avoid doing so if the user only wants to dump one file system. */ if (one_file_system_option && !top_level && parent_device != current_stat.st_dev) { if (verbose_option) WARN ((0, 0, _("%s: On a different filesystem; not dumped"), p)); return; } /* Now output all the files in the directory. */ errno = 0; /* FIXME: errno should be read-only */ directory = opendir (p); if (!directory) { ERROR ((0, errno, _("Cannot open directory %s"), p)); return; } /* Hack to remove "./" from the front of all the file names. */ if (len == 2 && namebuf[0] == '.' && namebuf[1] == '/') len = 0; /* FIXME: Should speed this up by cd-ing into the dir. */ while (entry = readdir (directory), entry) { /* Skip `.', `..', and excluded file names. */ if (is_dot_or_dotdot (entry->d_name) || excluded_filename (excluded, entry->d_name)) continue; if ((int) NAMLEN (entry) + len >= buflen) { buflen = len + NAMLEN (entry); namebuf = (char *) xrealloc (namebuf, buflen + 1); #if 0 namebuf[len] = '\0'; ERROR ((0, 0, _("File name %s%s too long"), namebuf, entry->d_name)); continue; #endif } strcpy (namebuf + len, entry->d_name); dump_file (namebuf, our_device, 0); } closedir (directory); free (namebuf); if (atime_preserve_option) utime (p, &restore_times); return; } #ifdef S_ISCHR else if (S_ISCHR (current_stat.st_mode)) type = CHRTYPE; #endif #ifdef S_ISBLK else if (S_ISBLK (current_stat.st_mode)) type = BLKTYPE; #endif /* Avoid screwy apollo lossage where S_IFIFO == S_IFSOCK. */ #if (_ISP__M68K == 0) && (_ISP__A88K == 0) && defined(S_ISFIFO) else if (S_ISFIFO (current_stat.st_mode)) type = FIFOTYPE; #endif #ifdef S_ISSOCK else if (S_ISSOCK (current_stat.st_mode)) type = FIFOTYPE; #endif else goto unknown; if (archive_format == V7_FORMAT) goto unknown; current_stat.st_size = 0; /* force 0 size */ header = start_header (p, ¤t_stat); if (header == NULL) { exit_status = TAREXIT_FAILURE; return; /* eg name too long */ } header->header.typeflag = type; #if defined(S_IFBLK) || defined(S_IFCHR) if (type != FIFOTYPE) { MAJOR_TO_OCT (major (current_stat.st_rdev), header->header.devmajor); MINOR_TO_OCT (minor (current_stat.st_rdev), header->header.devminor); } #endif finish_header (header); if (remove_files_option) { if (unlink (p) == -1) ERROR ((0, errno, _("Cannot remove %s"), p)); } return; unknown: ERROR ((0, 0, _("%s: Unknown file type; file ignored"), p)); } tar-1.13/src/delete.c0000444000176300016070000002072006736775033010126 /* Delete entries from a tar archive. Copyright (C) 1988, 1992, 1994, 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. */ #include "system.h" #include "common.h" #include "rmt.h" 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; /* FIXME: This module should not directly handle the following three 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; /*-------------------------------------------------------------------------. | 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! | `-------------------------------------------------------------------------*/ static void move_archive (off_t count) { #ifdef MTIOCTOP { struct mtop operation; int status; if (count > 0) { operation.mt_op = MTFSR; operation.mt_count = count; if (operation.mt_count != count) FATAL_ERROR ((0, 0, _("Could not re-position archive file"))); } else { operation.mt_op = MTBSR; operation.mt_count = -count; if (operation.mt_count != -count) FATAL_ERROR ((0, 0, _("Could not re-position archive file"))); } if (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), status >= 0) return; if (errno == EIO) if (status = rmtioctl (archive, MTIOCTOP, (char *) &operation), status >= 0) return; } #endif /* MTIOCTOP */ { off_t position0 = rmtlseek (archive, (off_t) 0, SEEK_CUR); off_t increment = record_size * (off_t) count; off_t position = position0 + increment; if (increment / count != record_size || (position < position0) != (increment < 0) || rmtlseek (archive, position, SEEK_SET) != position) FATAL_ERROR ((0, 0, _("Could not re-position archive file"))); return; } } /*----------------------------------------------------------------. | Write out the record which has been filled. If MOVE_BACK_FLAG, | | backspace to where we started. | `----------------------------------------------------------------*/ static void write_record (int move_back_flag) { save_record = record_start; record_start = new_record; if (archive == STDIN_FILENO) { archive = STDOUT_FILENO; flush_write (); archive = STDIN_FILENO; } else { move_archive (-(records_read + 1)); flush_write (); } record_start = save_record; if (move_back_flag) { /* Move the tape head back to where we were. */ if (archive != STDIN_FILENO) move_archive (records_read); records_read--; } blocks_needed = blocking_factor; new_blocks = 0; } /*---. | ? | `---*/ void delete_archive_members (void) { enum read_header logical_status = HEADER_STILL_UNREAD; enum read_header previous_status = HEADER_STILL_UNREAD; /* FIXME: Should clean the routine before cleaning these variables :-( */ struct name *name; off_t blocks_to_skip = 0; off_t blocks_to_keep = 0; int kept_blocks_in_record; name_gather (); open_archive (ACCESS_UPDATE); while (logical_status == HEADER_STILL_UNREAD) { enum read_header status = read_header (); switch (status) { case HEADER_STILL_UNREAD: abort (); case HEADER_SUCCESS: if (name = name_scan (current_file_name), !name) { set_next_block_after (current_header); if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); break; } name->found = 1; logical_status = HEADER_SUCCESS; break; case HEADER_ZERO_BLOCK: case HEADER_END_OF_FILE: logical_status = HEADER_END_OF_FILE; break; case HEADER_FAILURE: set_next_block_after (current_header); switch (previous_status) { case HEADER_STILL_UNREAD: WARN ((0, 0, _("This does not look like a tar archive"))); /* Fall through. */ case HEADER_SUCCESS: case HEADER_ZERO_BLOCK: ERROR ((0, 0, _("Skipping to next header"))); /* Fall through. */ case HEADER_FAILURE: break; case HEADER_END_OF_FILE: abort (); } break; } previous_status = status; } if (logical_status != HEADER_SUCCESS) { write_eot (); close_archive (); names_notfound (); return; } write_archive_to_stdout = 0; new_record = (union block *) xmalloc (record_size); /* Save away blocks before this one in this record. */ new_blocks = current_block - record_start; blocks_needed = blocking_factor - new_blocks; if (new_blocks) memcpy ((void *) new_record, (void *) record_start, (size_t) (new_blocks * BLOCKSIZE)); #if 0 /* FIXME: Old code, before the goto was inserted. To be redesigned. */ set_next_block_after (current_header); if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); #endif logical_status = HEADER_STILL_UNREAD; goto flush_file; /* FIXME: Solaris 2.4 Sun cc (the ANSI one, not the old K&R) says: "delete.c", line 223: warning: loop not entered at top Reported by Bruno Haible. */ while (1) { enum read_header status; /* Fill in a record. */ if (current_block == record_end) { flush_archive (); records_read++; } status = read_header (); if (status == HEADER_ZERO_BLOCK && ignore_zeros_option) { set_next_block_after (current_header); continue; } if (status == HEADER_END_OF_FILE || status == HEADER_ZERO_BLOCK) { logical_status = HEADER_END_OF_FILE; memset (new_record[new_blocks].buffer, 0, (size_t) (BLOCKSIZE * blocks_needed)); new_blocks += blocks_needed; blocks_needed = 0; write_record (0); break; } if (status == HEADER_FAILURE) { ERROR ((0, 0, _("Deleting non-header from archive"))); set_next_block_after (current_header); continue; } /* Found another header. */ if (name = name_scan (current_file_name), name) { name->found = 1; flush_file: set_next_block_after (current_header); blocks_to_skip = (current_stat.st_size + BLOCKSIZE - 1) / BLOCKSIZE; while (record_end - current_block <= blocks_to_skip) { blocks_to_skip -= (record_end - current_block); flush_archive (); records_read++; } current_block += blocks_to_skip; blocks_to_skip = 0; continue; } /* Copy header. */ new_record[new_blocks] = *current_header; new_blocks++; blocks_needed--; blocks_to_keep = (current_stat.st_size + BLOCKSIZE - 1) / BLOCKSIZE; set_next_block_after (current_header); if (blocks_needed == 0) write_record (1); /* Copy data. */ kept_blocks_in_record = record_end - current_block; if (kept_blocks_in_record > blocks_to_keep) kept_blocks_in_record = blocks_to_keep; while (blocks_to_keep) { int count; if (current_block == record_end) { flush_read (); records_read++; current_block = record_start; kept_blocks_in_record = blocking_factor; if (kept_blocks_in_record > blocks_to_keep) kept_blocks_in_record = blocks_to_keep; } count = kept_blocks_in_record; if (count > blocks_needed) count = blocks_needed; memcpy ((void *) (new_record + new_blocks), (void *) current_block, (size_t) (count * BLOCKSIZE)); new_blocks += count; blocks_needed -= count; current_block += count; blocks_to_keep -= count; kept_blocks_in_record -= count; if (blocks_needed == 0) write_record (1); } } write_eot (); close_archive (); names_notfound (); } tar-1.13/src/extract.c0000444000176300016070000006737406737227024010347 /* Extract files from a tar archive. Copyright (C) 1988, 92,93,94,96,97,98, 1999 Free Software Foundation, Inc. Written by John Gilmore, on 1985-11-19. 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. */ #include "system.h" #include time_t time (); #if HAVE_UTIME_H # include #else struct utimbuf { long actime; long modtime; }; #endif #include "common.h" 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) */ #if 0 /* "Scratch" space to store the information about a sparse file before writing the info into the header or extended header. */ struct sp_array *sparsearray; /* Number of elts storable in the sparsearray. */ int sp_array_size = 10; #endif struct delayed_set_stat { struct delayed_set_stat *next; char *file_name; struct stat stat_info; }; static struct delayed_set_stat *delayed_set_stat_head; /*--------------------------. | Set up to extract files. | `--------------------------*/ void extr_init (void) { now = time ((time_t *) 0); we_are_root = geteuid () == 0; /* Option -p clears the kernel umask, so it does not affect proper restoration of file permissions. New intermediate directories will comply with umask at start of program. */ newdir_umask = umask (0); if (same_permissions_option) current_umask = 0; else { umask (newdir_umask); /* restore the kernel umask */ current_umask = newdir_umask; } /* FIXME: Just make sure we can add files in directories we create. Maybe should we later remove permissions we are adding, here? */ newdir_umask &= ~ MODE_WXUSR; } /*------------------------------------------------------------------. | Restore mode for FILE_NAME, from information given in STAT_INFO. | `------------------------------------------------------------------*/ static void set_mode (char *file_name, struct stat *stat_info) { /* We ought to force permission when -k is not selected, because if the file already existed, open or creat would save the permission bits from the previously created file, ignoring the ones we specified. But with -k selected, we know *we* created this file, so the mode bits were set by our open. If the file has abnormal mode bits, we must chmod since writing or chown has probably reset them. If the file is normal, we merely skip the chmod. This works because we did umask (0) when -p, so umask will have left the specified mode alone. */ if (!keep_old_files_option || (stat_info->st_mode & (S_ISUID | S_ISGID | S_ISVTX))) if (chmod (file_name, ~current_umask & stat_info->st_mode) < 0) ERROR ((0, errno, _("%s: Cannot change mode to %04lo"), file_name, (unsigned long) (~current_umask & stat_info->st_mode))); } /*----------------------------------------------------------------------. | 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. | `----------------------------------------------------------------------*/ /* FIXME: About proper restoration of symbolic link attributes, we still do not have it right. Pretesters' reports tell us we need further study and probably more configuration. For now, just use lchown if it exists, and punt for the rest. Sigh! */ static void set_stat (char *file_name, struct stat *stat_info, int symlink_flag) { struct utimbuf utimbuf; if (!symlink_flag) { /* We do the utime before the chmod because some versions of utime are broken and trash the modes of the file. */ if (!touch_option) { /* We set the accessed time to `now', which is really the time we started extracting files, unless incremental_option is used, in which case .st_atime is used. */ /* FIXME: incremental_option should set ctime too, but how? */ if (incremental_option) utimbuf.actime = stat_info->st_atime; else utimbuf.actime = now; utimbuf.modtime = stat_info->st_mtime; if (utime (file_name, &utimbuf) < 0) ERROR ((0, errno, _("%s: Could not change access and modification times"), file_name)); } /* Some systems allow non-root users to give files away. Once this done, it is not possible anymore to change file permissions, so we have to set permissions prior to possibly giving files away. */ set_mode (file_name, stat_info); } /* If we are root, set the owner and group of the extracted file, so we extract as the original owner. Or else, if we are running as a user, leave the owner and group as they are, so we extract as that user. */ if (we_are_root || same_owner_option) { #if HAVE_LCHOWN /* When lchown exists, it should be used to change the attributes of the symbolic link itself. In this case, a mere chown would change the attributes of the file the symbolic link is pointing to, and should be avoided. */ if (symlink_flag) { if (lchown (file_name, stat_info->st_uid, stat_info->st_gid) < 0) ERROR ((0, errno, _("%s: Cannot lchown to uid %lu gid %lu"), file_name, (unsigned long) stat_info->st_uid, (unsigned long) stat_info->st_gid)); } else { if (chown (file_name, stat_info->st_uid, stat_info->st_gid) < 0) ERROR ((0, errno, _("%s: Cannot chown to uid %lu gid %lu"), file_name, (unsigned long) stat_info->st_uid, (unsigned long) stat_info->st_gid)); } #else /* not HAVE_LCHOWN */ if (!symlink_flag) if (chown (file_name, stat_info->st_uid, stat_info->st_gid) < 0) ERROR ((0, errno, _("%s: Cannot chown to uid %lu gid %lu"), file_name, (unsigned long) stat_info->st_uid, (unsigned long) stat_info->st_gid)); #endif/* not HAVE_LCHOWN */ if (!symlink_flag) /* On a few systems, and in particular, those allowing to give files away, changing the owner or group destroys the suid or sgid bits. So let's attempt setting these bits once more. */ if (stat_info->st_mode & (S_ISUID | S_ISGID | S_ISVTX)) set_mode (file_name, stat_info); } } /*-----------------------------------------------------------------------. | 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. | `-----------------------------------------------------------------------*/ static int make_directories (char *file_name) { char *cursor; /* points into path */ int did_something = 0; /* did we do anything yet? */ int saved_errno = errno; /* remember caller's errno */ int status; for (cursor = strchr (file_name, '/'); cursor != NULL; cursor = strchr (cursor + 1, '/')) { /* Avoid mkdir of empty string, if leading or double '/'. */ if (cursor == file_name || cursor[-1] == '/') continue; /* Avoid mkdir where last part of path is '.'. */ if (cursor[-1] == '.' && (cursor == file_name + 1 || cursor[-2] == '/')) continue; *cursor = '\0'; /* truncate the path there */ status = mkdir (file_name, ~newdir_umask & MODE_RWX); if (status == 0) { /* Fix ownership. */ if (we_are_root) if (chown (file_name, current_stat.st_uid, current_stat.st_gid) < 0) ERROR ((0, errno, _("%s: Cannot change owner to uid %lu, gid %lu"), file_name, (unsigned long) current_stat.st_uid, (unsigned long) current_stat.st_gid)); print_for_mkdir (file_name, cursor - file_name, ~newdir_umask & MODE_RWX); did_something = 1; *cursor = '/'; continue; } *cursor = '/'; if (errno == EEXIST #if MSDOS /* Turbo C mkdir gives a funny errno. */ || errno == EACCES #endif ) /* Directory already exists. */ continue; /* Some other error in the mkdir. We return to the caller. */ break; } errno = saved_errno; /* FIXME: errno should be read-only */ return did_something; /* tell them to retry if we made one */ } /*--------------------------------------------------------------------. | 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. | `--------------------------------------------------------------------*/ static int maybe_recoverable (char *file_name) { switch (errno) { case EEXIST: /* Attempt deleting an existing file. However, with -k, just stay quiet. */ if (keep_old_files_option) return 0; return remove_any_file (file_name, 0); case ENOENT: /* Attempt creating missing intermediate directories. */ return make_directories (file_name); default: /* Just say we can't do anything about it... */ return 0; } } /*---. | ? | `---*/ static void extract_sparse_file (int fd, off_t *sizeleft, off_t totalsize, char *name) { int sparse_ind = 0; size_t written; ssize_t count; /* assuming sizeleft is initially totalsize */ while (*sizeleft > 0) { union block *data_block = find_next_block (); if (data_block == NULL) { ERROR ((0, 0, _("Unexpected EOF on archive file"))); return; } if (lseek (fd, sparsearray[sparse_ind].offset, SEEK_SET) < 0) { char buf[UINTMAX_STRSIZE_BOUND]; ERROR ((0, errno, _("%s: lseek error at byte %s"), STRINGIFY_BIGINT (sparsearray[sparse_ind].offset, buf), name)); return; } written = sparsearray[sparse_ind++].numbytes; while (written > BLOCKSIZE) { count = full_write (fd, data_block->buffer, BLOCKSIZE); if (count < 0) ERROR ((0, errno, _("%s: Could not write to file"), name)); written -= count; *sizeleft -= count; set_next_block_after (data_block); data_block = find_next_block (); } count = full_write (fd, data_block->buffer, written); if (count < 0) ERROR ((0, errno, _("%s: Could not write to file"), name)); else if (count != written) { char buf1[UINTMAX_STRSIZE_BOUND]; char buf2[UINTMAX_STRSIZE_BOUND]; ERROR ((0, 0, _("%s: Could only write %s of %s bytes"), name, STRINGIFY_BIGINT (totalsize - *sizeleft, buf1), STRINGIFY_BIGINT (totalsize, buf2))); skip_file (*sizeleft); } written -= count; *sizeleft -= count; set_next_block_after (data_block); } free (sparsearray); } /*----------------------------------. | Extract a file from the archive. | `----------------------------------*/ void extract_archive (void) { union block *data_block; int fd; int status; ssize_t sstatus; size_t name_length; size_t written; int openflag; off_t size; int skipcrud; int counter; char typeflag; #if 0 int sparse_ind = 0; #endif union block *exhdr; struct delayed_set_stat *data; #define CURRENT_FILE_NAME (skipcrud + current_file_name) set_next_block_after (current_header); decode_header (current_header, ¤t_stat, ¤t_format, 1); if (interactive_option && !confirm ("extract", current_file_name)) { if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); return; } /* Print the block from `current_header' and `current_stat'. */ if (verbose_option) print_header (); /* Check for fully specified file names and other atrocities. */ skipcrud = 0; while (!absolute_names_option && CURRENT_FILE_NAME[0] == '/') { static int warned_once = 0; skipcrud++; /* force relative path */ if (!warned_once) { warned_once = 1; WARN ((0, 0, _("\ Removing leading `/' from absolute path names in the archive"))); } } /* Take a safety backup of a previously existing file. */ if (backup_option && !to_stdout_option) if (!maybe_backup_file (CURRENT_FILE_NAME, 0)) { ERROR ((0, errno, _("%s: Was unable to backup this file"), CURRENT_FILE_NAME)); if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); return; } /* Extract the archive entry according to its type. */ typeflag = current_header->header.typeflag; switch (typeflag) { /* JK - What we want to do if the file is sparse is loop through the array of sparse structures in the header and read in and translate the character strings representing 1) the offset at which to write and 2) how many bytes to write into numbers, which we store into the scratch array, "sparsearray". This array makes our life easier the same way it did in creating the tar file that had to deal with a sparse file. After we read in the first five (at most) sparse structures, we check to see if the file has an extended header, i.e., if more sparse structures are needed to describe the contents of the new file. If so, we read in the extended headers and continue to store their contents into the sparsearray. */ case GNUTYPE_SPARSE: sp_array_size = 10; sparsearray = (struct sp_array *) xmalloc (sp_array_size * sizeof (struct sp_array)); for (counter = 0; counter < SPARSES_IN_OLDGNU_HEADER; counter++) { sparsearray[counter].offset = OFF_FROM_OCT (current_header->oldgnu_header.sp[counter].offset); sparsearray[counter].numbytes = SIZE_FROM_OCT (current_header->oldgnu_header.sp[counter].numbytes); if (!sparsearray[counter].numbytes) break; } if (current_header->oldgnu_header.isextended) { /* Read in the list of extended headers and translate them into the sparsearray as before. Note that this invalidates current_header. */ /* static */ int ind = SPARSES_IN_OLDGNU_HEADER; while (1) { exhdr = find_next_block (); for (counter = 0; counter < SPARSES_IN_SPARSE_HEADER; counter++) { if (counter + ind > sp_array_size - 1) { /* Realloc the scratch area since we've run out of room. */ sp_array_size *= 2; sparsearray = (struct sp_array *) xrealloc (sparsearray, sp_array_size * (sizeof (struct sp_array))); } /* Compare to 0, or use !(int)..., for Pyramid's dumb compiler. */ if (exhdr->sparse_header.sp[counter].numbytes == 0) break; sparsearray[counter + ind].offset = OFF_FROM_OCT (exhdr->sparse_header.sp[counter].offset); sparsearray[counter + ind].numbytes = SIZE_FROM_OCT (exhdr->sparse_header.sp[counter].numbytes); } if (!exhdr->sparse_header.isextended) break; else { ind += SPARSES_IN_SPARSE_HEADER; set_next_block_after (exhdr); } } set_next_block_after (exhdr); } /* Fall through. */ case AREGTYPE: case REGTYPE: case CONTTYPE: /* Appears to be a file. But BSD tar uses the convention that a slash suffix means a directory. */ name_length = strlen (CURRENT_FILE_NAME) - 1; if (CURRENT_FILE_NAME[name_length] == '/') goto really_dir; /* FIXME: deal with protection issues. */ again_file: openflag = (keep_old_files_option ? O_BINARY | O_NDELAY | O_WRONLY | O_CREAT | O_EXCL : O_BINARY | O_NDELAY | O_WRONLY | O_CREAT | O_TRUNC) | ((typeflag == GNUTYPE_SPARSE) ? 0 : O_APPEND); /* JK - The last | is a kludge to solve the problem the O_APPEND flag causes with files we are trying to make sparse: when a file is opened with O_APPEND, it writes to the last place that something was written, thereby ignoring any lseeks that we have done. We add this extra condition to make it able to lseek when a file is sparse, i.e., we don't open the new file with this flag. (Grump -- this bug caused me to waste a good deal of time, I might add) */ if (to_stdout_option) { fd = 1; goto extract_file; } if (unlink_first_option) remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); #if O_CTG /* Contiguous files (on the Masscomp) have to specify the size in the open call that creates them. */ if (typeflag == CONTTYPE) fd = open (CURRENT_FILE_NAME, openflag | O_CTG, current_stat.st_mode, current_stat.st_size); else fd = open (CURRENT_FILE_NAME, openflag, current_stat.st_mode); #else /* not O_CTG */ if (typeflag == CONTTYPE) { static int conttype_diagnosed = 0; if (!conttype_diagnosed) { conttype_diagnosed = 1; WARN ((0, 0, _("Extracting contiguous files as regular files"))); } } fd = open (CURRENT_FILE_NAME, openflag, current_stat.st_mode); #endif /* not O_CTG */ if (fd < 0) { if (maybe_recoverable (CURRENT_FILE_NAME)) goto again_file; ERROR ((0, errno, _("%s: Could not create file"), CURRENT_FILE_NAME)); if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); if (backup_option) undo_last_backup (); break; } extract_file: if (typeflag == GNUTYPE_SPARSE) { char *name; size_t name_length_bis; /* Kludge alert. NAME is assigned to header.name because during the extraction, the space that contains the header will get scribbled on, and the name will get munged, so any error messages that happen to contain the filename will look REAL interesting unless we do this. */ name_length_bis = strlen (CURRENT_FILE_NAME) + 1; name = (char *) xmalloc (name_length_bis); memcpy (name, CURRENT_FILE_NAME, name_length_bis); size = current_stat.st_size; extract_sparse_file (fd, &size, current_stat.st_size, name); } else for (size = current_stat.st_size; size > 0; size -= written) { if (multi_volume_option) { assign_string (&save_name, current_file_name); save_totsize = current_stat.st_size; save_sizeleft = size; } /* Locate data, determine max length writeable, write it, block that we have used the data, then check if the write worked. */ data_block = find_next_block (); if (data_block == NULL) { ERROR ((0, 0, _("Unexpected EOF on archive file"))); break; /* FIXME: What happens, then? */ } written = available_space_after (data_block); if (written > size) written = size; errno = 0; /* FIXME: errno should be read-only */ sstatus = full_write (fd, data_block->buffer, written); set_next_block_after ((union block *) (data_block->buffer + written - 1)); if (sstatus == written) continue; /* Error in writing to file. Print it, skip to next file in archive. */ if (sstatus < 0) ERROR ((0, errno, _("%s: Could not write to file"), CURRENT_FILE_NAME)); else ERROR ((0, 0, _("%s: Could only write %lu of %lu bytes"), CURRENT_FILE_NAME, (unsigned long) sstatus, (unsigned long) written)); skip_file (size - written); break; /* still do the close, mod time, chmod, etc */ } if (multi_volume_option) assign_string (&save_name, NULL); /* If writing to stdout, don't try to do anything to the filename; it doesn't exist, or we don't want to touch it anyway. */ if (to_stdout_option) break; status = close (fd); if (status < 0) { ERROR ((0, errno, _("%s: Error while closing"), CURRENT_FILE_NAME)); if (backup_option) undo_last_backup (); } set_stat (CURRENT_FILE_NAME, ¤t_stat, 0); break; case SYMTYPE: if (to_stdout_option) break; #ifdef S_ISLNK if (unlink_first_option) remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); while (status = symlink (current_link_name, CURRENT_FILE_NAME), status != 0) if (!maybe_recoverable (CURRENT_FILE_NAME)) break; if (status == 0) /* Setting the attributes of symbolic links might, on some systems, change the pointed to file, instead of the symbolic link itself. At least some of these systems have a lchown call, and the set_stat routine knows about this. */ set_stat (CURRENT_FILE_NAME, ¤t_stat, 1); else { ERROR ((0, errno, _("%s: Could not create symlink to `%s'"), CURRENT_FILE_NAME, current_link_name)); if (backup_option) undo_last_backup (); } break; #else /* not S_ISLNK */ { static int warned_once = 0; if (!warned_once) { warned_once = 1; WARN ((0, 0, _("\ Attempting extraction of symbolic links as hard links"))); } } /* Fall through. */ #endif /* not S_ISLNK */ case LNKTYPE: if (to_stdout_option) break; if (unlink_first_option) remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); again_link: { struct stat st1, st2; /* MSDOS does not implement links. However, djgpp's link() actually copies the file. */ status = link (current_link_name, CURRENT_FILE_NAME); if (status == 0) break; if (maybe_recoverable (CURRENT_FILE_NAME)) goto again_link; if (incremental_option && errno == EEXIST) break; if (stat (current_link_name, &st1) == 0 && stat (CURRENT_FILE_NAME, &st2) == 0 && st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) break; ERROR ((0, errno, _("%s: Could not link to `%s'"), CURRENT_FILE_NAME, current_link_name)); if (backup_option) undo_last_backup (); } break; #if S_IFCHR case CHRTYPE: current_stat.st_mode |= S_IFCHR; goto make_node; #endif #if S_IFBLK case BLKTYPE: current_stat.st_mode |= S_IFBLK; #endif #if defined(S_IFCHR) || defined(S_IFBLK) make_node: if (to_stdout_option) break; if (unlink_first_option) remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); status = mknod (CURRENT_FILE_NAME, current_stat.st_mode, current_stat.st_rdev); if (status != 0) { if (maybe_recoverable (CURRENT_FILE_NAME)) goto make_node; ERROR ((0, errno, _("%s: Could not make node"), CURRENT_FILE_NAME)); if (backup_option) undo_last_backup (); break; }; set_stat (CURRENT_FILE_NAME, ¤t_stat, 0); break; #endif #ifdef S_ISFIFO case FIFOTYPE: if (to_stdout_option) break; if (unlink_first_option) remove_any_file (CURRENT_FILE_NAME, recursive_unlink_option); while (status = mkfifo (CURRENT_FILE_NAME, current_stat.st_mode), status != 0) if (!maybe_recoverable (CURRENT_FILE_NAME)) break; if (status == 0) set_stat (CURRENT_FILE_NAME, ¤t_stat, 0); else { ERROR ((0, errno, _("%s: Could not make fifo"), CURRENT_FILE_NAME)); if (backup_option) undo_last_backup (); } break; #endif case DIRTYPE: case GNUTYPE_DUMPDIR: name_length = strlen (CURRENT_FILE_NAME) - 1; really_dir: /* Check for trailing /, and zap as many as we find. */ while (name_length && CURRENT_FILE_NAME[name_length] == '/') CURRENT_FILE_NAME[name_length--] = '\0'; if (incremental_option) { /* Read the entry and delete files that aren't listed in the archive. */ gnu_restore (skipcrud); } else if (typeflag == GNUTYPE_DUMPDIR) skip_file (current_stat.st_size); if (to_stdout_option) break; again_dir: status = mkdir (CURRENT_FILE_NAME, ((we_are_root ? 0 : MODE_WXUSR) | current_stat.st_mode)); if (status != 0) { /* If the directory creation fails, let's consider immediately the case where the directory already exists. We have three good reasons for clearing out this case before attempting recovery. 1) It would not be efficient recovering the error by deleting the directory in maybe_recoverable, then recreating it right away. We only hope we will be able to adjust its permissions adequately, later. 2) Removing the directory might fail if it is not empty. By exception, this real error is traditionally not reported. 3) Let's suppose `DIR' already exists and we are about to extract `DIR/../DIR'. This would fail because the directory already exists, and maybe_recoverable would react by removing `DIR'. This then would fail again because there are missing intermediate directories, and maybe_recoverable would react by creating `DIR'. We would then have an extraction loop. */ if (errno == EEXIST) { struct stat st1; int saved_errno = errno; if (stat (CURRENT_FILE_NAME, &st1) == 0 && S_ISDIR (st1.st_mode)) goto check_perms; errno = saved_errno; /* FIXME: errno should be read-only */ } if (maybe_recoverable (CURRENT_FILE_NAME)) goto again_dir; /* If we're trying to create '.', let it be. */ /* FIXME: Strange style... */ if (CURRENT_FILE_NAME[name_length] == '.' && (name_length == 0 || CURRENT_FILE_NAME[name_length - 1] == '/')) goto check_perms; ERROR ((0, errno, _("%s: Could not create directory"), CURRENT_FILE_NAME)); if (backup_option) undo_last_backup (); break; } check_perms: if (!we_are_root && MODE_WXUSR != (MODE_WXUSR & current_stat.st_mode)) { current_stat.st_mode |= MODE_WXUSR; WARN ((0, 0, _("Added write and execute permission to directory %s"), CURRENT_FILE_NAME)); } #if !MSDOS /* MSDOS does not associate timestamps with directories. In this case, no need to try delaying their restoration. */ if (touch_option) /* FIXME: I do not believe in this. Ignoring time stamps does not alleviate the need of delaying the restoration of directories' mode. Let's ponder this for a little while. */ set_mode (CURRENT_FILE_NAME, ¤t_stat); else { data = ((struct delayed_set_stat *) xmalloc (sizeof (struct delayed_set_stat))); data->file_name = xstrdup (CURRENT_FILE_NAME); data->stat_info = current_stat; data->next = delayed_set_stat_head; delayed_set_stat_head = data; } #endif /* !MSDOS */ break; case GNUTYPE_VOLHDR: if (verbose_option) fprintf (stdlis, _("Reading %s\n"), current_file_name); break; case GNUTYPE_NAMES: extract_mangle (); break; case GNUTYPE_MULTIVOL: ERROR ((0, 0, _("\ Cannot extract `%s' -- file is continued from another volume"), current_file_name)); skip_file (current_stat.st_size); if (backup_option) undo_last_backup (); break; case GNUTYPE_LONGNAME: case GNUTYPE_LONGLINK: ERROR ((0, 0, _("Visible long name error"))); skip_file (current_stat.st_size); if (backup_option) undo_last_backup (); break; default: WARN ((0, 0, _("Unknown file type '%c' for %s, extracted as normal file"), typeflag, CURRENT_FILE_NAME)); goto again_file; } #undef CURRENT_FILE_NAME } /*----------------------------------------------------------------. | Set back the utime and mode for all the extracted directories. | `----------------------------------------------------------------*/ void apply_delayed_set_stat (void) { struct delayed_set_stat *data; while (delayed_set_stat_head != NULL) { data = delayed_set_stat_head; delayed_set_stat_head = delayed_set_stat_head->next; set_stat (data->file_name, &data->stat_info, 0); free (data->file_name); free (data); } } tar-1.13/src/incremen.c0000444000176300016070000004552206740564335010467 /* GNU dump extensions to tar. Copyright (C) 1988, 92, 93, 94, 96, 97 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. */ #include "system.h" #include time_t time (); #include "common.h" /* Variable sized generic character buffers. */ struct accumulator { size_t allocated; size_t length; char *pointer; }; /* Amount of space guaranteed just after a reallocation. */ #define ACCUMULATOR_SLACK 50 /*---------------------------------------------------------. | Return the accumulated data from an ACCUMULATOR buffer. | `---------------------------------------------------------*/ static char * get_accumulator (struct accumulator *accumulator) { return accumulator->pointer; } /*-----------------------------------------------. | Allocate and return a new accumulator buffer. | `-----------------------------------------------*/ static struct accumulator * new_accumulator (void) { struct accumulator *accumulator = (struct accumulator *) xmalloc (sizeof (struct accumulator)); accumulator->allocated = ACCUMULATOR_SLACK; accumulator->pointer = (char *) xmalloc (ACCUMULATOR_SLACK); accumulator->length = 0; return accumulator; } /*-----------------------------------. | Deallocate an ACCUMULATOR buffer. | `-----------------------------------*/ static void delete_accumulator (struct accumulator *accumulator) { free (accumulator->pointer); free (accumulator); } /*----------------------------------------------------------------------. | At the end of an ACCUMULATOR buffer, add a DATA block of SIZE bytes. | `----------------------------------------------------------------------*/ static void add_to_accumulator (struct accumulator *accumulator, const char *data, size_t size) { if (accumulator->length + size > accumulator->allocated) { accumulator->allocated = accumulator->length + size + ACCUMULATOR_SLACK; accumulator->pointer = (char *) xrealloc (accumulator->pointer, accumulator->allocated); } memcpy (accumulator->pointer + accumulator->length, data, size); accumulator->length += size; } /* Incremental dump specialities. */ /* Current time. */ static time_t time_now; /* List of directory names. */ struct directory { struct directory *next; /* next entry in list */ const char *name; /* path name of directory */ dev_t device_number; /* device number for directory */ ino_t inode_number; /* inode number for directory */ char allnew; char nfs; const char *dir_text; }; static struct directory *directory_list = NULL; #if HAVE_ST_FSTYPE_STRING 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 /*-------------------------------------------------------------------. | Create and link a new directory entry for directory NAME, having a | | DEVICE_NUMBER and a INODE_NUMBER, with some TEXT. | `-------------------------------------------------------------------*/ static void note_directory (char *name, struct stat *st, const char *text) { struct directory *directory = (struct directory *) xmalloc (sizeof (struct directory)); directory->next = directory_list; directory_list = directory; directory->device_number = st->st_dev; directory->inode_number = st->st_ino; directory->name = xstrdup (name); directory->dir_text = text; directory->allnew = 0; directory->nfs = NFS_FILE_STAT (*st); } /*------------------------------------------------------------------------. | Return a directory entry for a given path NAME, or NULL if none found. | `------------------------------------------------------------------------*/ static struct directory * find_directory (char *name) { struct directory *directory; for (directory = directory_list; directory; directory = directory->next) { if (!strcmp (directory->name, name)) return directory; } return NULL; } /*---. | ? | `---*/ static int compare_dirents (const voidstar first, const voidstar second) { return strcmp ((*(char *const *) first) + 1, (*(char *const *) second) + 1); } /*---. | ? | `---*/ char * get_directory_contents (char *path, dev_t device) { struct accumulator *accumulator; /* Recursively scan the given PATH. */ { DIR *dirp = opendir (path); /* for scanning directory */ struct dirent *entry; /* directory entry being scanned */ char *name_buffer; /* directory, `/', and directory member */ size_t name_buffer_size; /* allocated size of name_buffer, minus 2 */ size_t name_length; /* used length in name_buffer */ struct directory *directory; /* for checking if already already seen */ int all_children; if (dirp == NULL) { ERROR ((0, errno, _("Cannot open directory %s"), path)); return NULL; } errno = 0; /* FIXME: errno should be read-only */ name_buffer_size = strlen (path) + NAME_FIELD_SIZE; name_buffer = xmalloc (name_buffer_size + 2); strcpy (name_buffer, path); if (path[strlen (path) - 1] != '/') strcat (name_buffer, "/"); name_length = strlen (name_buffer); directory = find_directory (path); all_children = directory ? directory->allnew : 0; accumulator = new_accumulator (); while (entry = readdir (dirp), entry) { /* Skip `.' and `..'. */ if (is_dot_or_dotdot (entry->d_name)) continue; if (excluded_filename (excluded, entry->d_name)) add_to_accumulator (accumulator, "N", 1); else { struct stat stat_data; if (NAMLEN (entry) + name_length >= name_buffer_size) { while (NAMLEN (entry) + name_length >= name_buffer_size) name_buffer_size += NAME_FIELD_SIZE; name_buffer = (char *) xrealloc (name_buffer, name_buffer_size + 2); } strcpy (name_buffer + name_length, entry->d_name); if (dereference_option #if STX_HIDDEN && !_LARGE_FILES /* AIX */ ? statx (name_buffer, &stat_data, STATSIZE, STX_HIDDEN) : statx (name_buffer, &stat_data, STATSIZE, STX_HIDDEN | STX_LINK) #else ? stat (name_buffer, &stat_data) : lstat (name_buffer, &stat_data) #endif ) { ERROR ((0, errno, _("Cannot stat %s"), name_buffer)); continue; } if (one_file_system_option && device != stat_data.st_dev) add_to_accumulator (accumulator, "N", 1); #ifdef AIX else if (S_ISHIDDEN (stat_data.st_mode)) { add_to_accumulator (accumulator, "D", 1); strcat (entry->d_name, "A"); entry->d_namlen++; } #endif else if (S_ISDIR (stat_data.st_mode)) { if (directory = find_directory (name_buffer), directory) { /* With NFS, the same file can have two different devices if an NFS directory is mounted in multiple locations, which is relatively common when automounting. For avoiding spurious incremental redumping of directories, we have to plainly consider all NFS devices as equal, relying on the i-node only to establish differences. */ if (! (((directory->nfs && NFS_FILE_STAT (stat_data)) || directory->device_number == stat_data.st_dev) && directory->inode_number == stat_data.st_ino)) { if (verbose_option) WARN ((0, 0, _("Directory %s has been renamed"), name_buffer)); directory->allnew = 1; directory->nfs = NFS_FILE_STAT (stat_data); directory->device_number = stat_data.st_dev; directory->inode_number = stat_data.st_ino; } directory->dir_text = ""; } else { if (verbose_option) WARN ((0, 0, _("Directory %s is new"), name_buffer)); note_directory (name_buffer, &stat_data, ""); directory = find_directory (name_buffer); directory->allnew = 1; } if (all_children && directory) directory->allnew = 1; add_to_accumulator (accumulator, "D", 1); } else if (!all_children && stat_data.st_mtime < newer_mtime_option && (!after_date_option || stat_data.st_ctime < newer_ctime_option)) add_to_accumulator (accumulator, "N", 1); else add_to_accumulator (accumulator, "Y", 1); } add_to_accumulator (accumulator, entry->d_name, NAMLEN (entry) + 1); } add_to_accumulator (accumulator, "\000\000", 2); free (name_buffer); closedir (dirp); } /* Sort the contents of the directory, now that we have it all. */ { char *pointer = get_accumulator (accumulator); size_t counter; char *cursor; char *buffer; char **array; char **array_cursor; counter = 0; for (cursor = pointer; *cursor; cursor += strlen (cursor) + 1) counter++; if (counter == 0) { delete_accumulator (accumulator); return NULL; } array = (char **) xmalloc (sizeof (char *) * (counter + 1)); array_cursor = array; for (cursor = pointer; *cursor; cursor += strlen (cursor) + 1) *array_cursor++ = cursor; *array_cursor = NULL; qsort ((voidstar) array, counter, sizeof (char *), compare_dirents); buffer = (char *) xmalloc ((size_t) (cursor - pointer + 2)); cursor = buffer; for (array_cursor = array; *array_cursor; array_cursor++) { char *string = *array_cursor; while ((*cursor++ = *string++)) continue; } *cursor = '\0'; delete_accumulator (accumulator); free (array); return buffer; } } /*----------------------------------------------------------------------. | 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. | `----------------------------------------------------------------------*/ static void add_hierarchy_to_namelist (char *path, dev_t device) { char *buffer = get_directory_contents (path, device); { struct name *name; for (name = namelist; name; name = name->next) if (strcmp (name->name, path) == 0) break; if (name) name->dir_contents = buffer ? buffer : "\0\0\0\0"; } if (buffer) { size_t name_length = strlen (path); size_t allocated_length = (name_length >= NAME_FIELD_SIZE ? name_length + NAME_FIELD_SIZE : NAME_FIELD_SIZE); char *name_buffer = xmalloc (allocated_length + 1); /* FIXME: + 2 above? */ char *string; size_t string_length; strcpy (name_buffer, path); if (name_buffer[name_length - 1] != '/') { name_buffer[name_length++] = '/'; name_buffer[name_length] = '\0'; } for (string = buffer; *string; string += string_length + 1) { string_length = strlen (string); if (*string == 'D') { if (name_length + string_length >= allocated_length) { while (name_length + string_length >= allocated_length) allocated_length += NAME_FIELD_SIZE; name_buffer = (char *) xrealloc (name_buffer, allocated_length + 1); } strcpy (name_buffer + name_length, string + 1); addname (name_buffer); add_hierarchy_to_namelist (name_buffer, device); } } free (name_buffer); } } /*---. | ? | `---*/ static void read_directory_file (void) { char *strp; FILE *fp; char buf[512]; static char *path = NULL; if (path == NULL) path = xmalloc (PATH_MAX); time (&time_now); if (listed_incremental_option[0] != '/') { #if HAVE_GETCWD if (!getcwd (path, PATH_MAX)) FATAL_ERROR ((0, 0, _("Could not get current directory"))); #else char *getwd (); if (!getwd (path)) FATAL_ERROR ((0, 0, _("Could not get current directory: %s"), path)); #endif if (strlen (path) + 1 + strlen (listed_incremental_option) + 1 > PATH_MAX) ERROR ((TAREXIT_FAILURE, 0, _("File name %s/%s too long"), path, listed_incremental_option)); strcat (path, "/"); strcat (path, listed_incremental_option); listed_incremental_option = path; } fp = fopen (listed_incremental_option, "r"); if (fp == 0 && errno != ENOENT) { ERROR ((0, errno, _("Cannot open %s"), listed_incremental_option)); return; } if (!fp) return; fgets (buf, sizeof (buf), fp); /* FIXME: Using after_date_option as a first time flag looks fairly dubious to me! So, using -N with incremental might be buggy just because of the next few lines. I saw a few unexplained, almost harsh advices, from other GNU people, about *not* using -N with incremental dumps, and here might lie (part of) the reason. */ if (!after_date_option) { newer_mtime_option = atol (buf); after_date_option = 1; } while (fgets (buf, sizeof (buf), fp)) { struct stat st; long l; strp = &buf[strlen (buf)]; if (strp[-1] == '\n') strp[-1] = '\0'; /* FIXME: For files ending with an incomplete line, maybe a NUL might be missing, here... */ memset (&st, 0, sizeof st); strp = buf; st.st_dev = l = atol (strp); if (st.st_dev != l) ERROR ((0, 0, _("Device number out of range"))); while (ISDIGIT (*strp)) strp++; st.st_ino = l = atol (strp); if (st.st_ino != l) ERROR ((0, 0, _("Inode number out of range"))); while (ISSPACE ((unsigned char) *strp)) strp++; while (ISDIGIT (*strp)) strp++; strp++; unquote_string (strp); note_directory (strp, &st, NULL); } if (fclose (fp) == EOF) ERROR ((0, errno, "%s", listed_incremental_option)); } /*---. | ? | `---*/ void write_dir_file (void) { FILE *fp; struct directory *directory; char *str; fp = fopen (listed_incremental_option, "w"); if (fp == 0) { ERROR ((0, errno, _("Cannot write to %s"), listed_incremental_option)); return; } fprintf (fp, "%lu\n", (unsigned long) time_now); for (directory = directory_list; directory; directory = directory->next) { if (!directory->dir_text) continue; str = quote_copy_string (directory->name); if (str) { fprintf (fp, "%lu %lu %s\n", (unsigned long) directory->device_number, (unsigned long) directory->inode_number, str); free (str); } else fprintf (fp, "%lu %lu %s\n", (unsigned long) directory->device_number, (unsigned long) directory->inode_number, directory->name); } if (fclose (fp) == EOF) ERROR ((0, errno, "%s", listed_incremental_option)); } /*---. | ? | `---*/ static int compare_names (char *param1, char *param2) { struct name *n1 = (struct name *) param1; struct name *n2 = (struct name *) param2; if (n1->found) return n2->found ? strcmp (n1->name, n2->name) : -1; if (n2->found) return 1; return strcmp (n1->name, n2->name); } /*-------------------------------------------------------------------------. | Collect all the names from argv[] (or whatever), then expand them into a | | directory tree, and put all the directories at the beginning. | `-------------------------------------------------------------------------*/ void collect_and_sort_names (void) { struct name *name; struct name *next_name; int num_names; struct stat statbuf; name_gather (); if (listed_incremental_option) read_directory_file (); if (!namelist) addname ("."); for (name = namelist; name; name = next_name) { next_name = name->next; if (name->found || name->dir_contents) continue; if (name->regexp) /* FIXME: just skip regexps for now */ continue; if (name->change_dir) if (chdir (name->change_dir) < 0) { ERROR ((0, errno, _("Cannot chdir to %s"), name->change_dir)); continue; } if ( #if STX_HIDDEN && !_LARGE_FILES /* AIX */ statx (name->name, &statbuf, STATSIZE, STX_HIDDEN | STX_LINK) #else lstat (name->name, &statbuf) < 0 #endif ) { ERROR ((0, errno, _("Cannot stat %s"), name->name)); continue; } if (S_ISDIR (statbuf.st_mode)) { name->found = 1; add_hierarchy_to_namelist (name->name, statbuf.st_dev); } } num_names = 0; for (name = namelist; name; name = name->next) num_names++; namelist = (struct name *) merge_sort ((voidstar) namelist, num_names, (char *) (&(namelist->next)) - (char *) namelist, compare_names); for (name = namelist; name; name = name->next) name->found = 0; if (listed_incremental_option) write_dir_file (); } /* Restoration of incremental dumps. */ /*---. | ? | `---*/ void gnu_restore (int skipcrud) { char *current_dir; char *archive_dir; struct accumulator *accumulator; char *p; DIR *dirp; struct dirent *d; char *cur, *arc; off_t size; size_t copied; union block *data_block; char *to; #define CURRENT_FILE_NAME (skipcrud + current_file_name) dirp = opendir (CURRENT_FILE_NAME); if (!dirp) { /* The directory doesn't exist now. It'll be created. In any case, we don't have to delete any files out of it. */ skip_file (current_stat.st_size); return; } accumulator = new_accumulator (); while (d = readdir (dirp), d) { if (is_dot_or_dotdot (d->d_name)) continue; add_to_accumulator (accumulator, d->d_name, NAMLEN (d) + 1); } closedir (dirp); add_to_accumulator (accumulator, "", 1); current_dir = get_accumulator (accumulator); size = current_stat.st_size; if (size != current_stat.st_size) FATAL_ERROR ((0, 0, _("Memory exhausted"))); archive_dir = (char *) xmalloc (size); to = archive_dir; for (; size > 0; size -= copied) { data_block = find_next_block (); if (!data_block) { ERROR ((0, 0, _("Unexpected EOF in archive"))); break; /* FIXME: What happens then? */ } copied = available_space_after (data_block); if (copied > size) copied = size; memcpy (to, data_block->buffer, copied); to += copied; set_next_block_after ((union block *) (data_block->buffer + copied - 1)); } for (cur = current_dir; *cur; cur += strlen (cur) + 1) { for (arc = archive_dir; *arc; arc += strlen (arc) + 1) { arc++; if (!strcmp (arc, cur)) break; } if (*arc == '\0') { p = new_name (CURRENT_FILE_NAME, cur); if (interactive_option && !confirm ("delete", p)) { free (p); continue; } if (verbose_option) fprintf (stdlis, _("%s: Deleting %s\n"), program_name, p); if (!remove_any_file (p, 1)) ERROR ((0, errno, _("Error while deleting %s"), p)); free (p); } } delete_accumulator (accumulator); free (archive_dir); #undef CURRENT_FILE_NAME } tar-1.13/src/list.c0000444000176300016070000006714406740564714007647 /* List a tar archive, with support routines for reading a tar archive. Copyright 1988,92,93,94,96,97,98,1999 Free Software Foundation, Inc. Written by John Gilmore, on 1985-08-26. 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. */ /* Define to non-zero for forcing old ctime() instead of isotime(). */ #undef USE_OLD_CTIME #include "system.h" #include #include #ifndef FNM_LEADING_DIR # include #endif #include "common.h" union block *current_header; /* points to current archive header */ struct stat current_stat; /* stat struct corresponding */ enum archive_format current_format; /* recognized format */ static uintmax_t from_oct PARAMS ((const char *, size_t, const char *, uintmax_t)); /*-----------------------------------. | Main loop for reading an archive. | `-----------------------------------*/ void read_and (void (*do_something) ()) { enum read_header status = HEADER_STILL_UNREAD; enum read_header prev_status; char save_typeflag; name_gather (); open_archive (ACCESS_READ); while (1) { prev_status = status; status = read_header (); switch (status) { case HEADER_STILL_UNREAD: abort (); case HEADER_SUCCESS: /* Valid header. We should decode next field (mode) first. Ensure incoming names are null terminated. */ /* FIXME: This is a quick kludge before 1.12 goes out. */ current_stat.st_mtime = TIME_FROM_OCT (current_header->header.mtime); if (!name_match (current_file_name) || current_stat.st_mtime < newer_mtime_option || excluded_filename (excluded, base_name (current_file_name))) { int isextended = 0; if (current_header->header.typeflag == GNUTYPE_VOLHDR || current_header->header.typeflag == GNUTYPE_MULTIVOL || current_header->header.typeflag == GNUTYPE_NAMES) { (*do_something) (); continue; } if (show_omitted_dirs_option && current_header->header.typeflag == DIRTYPE) WARN ((0, 0, _("Omitting %s"), current_file_name)); /* Skip past it in the archive. */ if (current_header->oldgnu_header.isextended) isextended = 1; save_typeflag = current_header->header.typeflag; set_next_block_after (current_header); if (isextended) { #if 0 union block *exhdr; while (1) { exhdr = find_next_block (); if (!exhdr->sparse_header.isextended) { set_next_block_after (exhdr); break; } } set_next_block_after (exhdr); #endif skip_extended_headers (); } /* Skip to the next header on the archive. */ if (save_typeflag != DIRTYPE) skip_file (current_stat.st_size); continue; } (*do_something) (); continue; case HEADER_ZERO_BLOCK: if (block_number_option) { char buf[UINTMAX_STRSIZE_BOUND]; fprintf (stdlis, _("block %s: ** Block of NULs **\n"), STRINGIFY_BIGINT (current_block_ordinal (), buf)); } set_next_block_after (current_header); status = prev_status; if (ignore_zeros_option) continue; break; case HEADER_END_OF_FILE: if (block_number_option) { char buf[UINTMAX_STRSIZE_BOUND]; fprintf (stdlis, _("block %s: ** End of File **\n"), STRINGIFY_BIGINT (current_block_ordinal (), buf)); } break; case HEADER_FAILURE: /* If the previous header was good, tell them that we are skipping bad ones. */ set_next_block_after (current_header); switch (prev_status) { case HEADER_STILL_UNREAD: WARN ((0, 0, _("Hmm, this doesn't look like a tar archive"))); /* Fall through. */ case HEADER_ZERO_BLOCK: case HEADER_SUCCESS: WARN ((0, 0, _("Skipping to next file header"))); break; case HEADER_END_OF_FILE: case HEADER_FAILURE: /* We are in the middle of a cascade of errors. */ break; } continue; } break; } apply_delayed_set_stat (); close_archive (); names_notfound (); /* print names not found */ } /*---------------------------------------------. | Print a header block, based on tar options. | `---------------------------------------------*/ void list_archive (void) { int isextended = 0; /* to remember if current_header is extended */ /* Print the header block. */ if (verbose_option) { if (verbose_option > 1) decode_header (current_header, ¤t_stat, ¤t_format, 0); print_header (); } if (incremental_option && current_header->header.typeflag == GNUTYPE_DUMPDIR) { off_t size; size_t written, check; union block *data_block; set_next_block_after (current_header); if (multi_volume_option) { assign_string (&save_name, current_file_name); save_totsize = current_stat.st_size; } for (size = current_stat.st_size; size > 0; size -= written) { if (multi_volume_option) save_sizeleft = size; data_block = find_next_block (); if (!data_block) { ERROR ((0, 0, _("EOF in archive file"))); break; /* FIXME: What happens, then? */ } written = available_space_after (data_block); if (written > size) written = size; errno = 0; /* FIXME: errno should be read-only */ check = fwrite (data_block->buffer, sizeof (char), written, stdlis); set_next_block_after ((union block *) (data_block->buffer + written - 1)); if (check != written) { ERROR ((0, errno, _("Only wrote %lu of %lu bytes to file %s"), (unsigned long) check, (unsigned long) written, current_file_name)); skip_file (size - written); break; } } if (multi_volume_option) assign_string (&save_name, NULL); fputc ('\n', stdlis); fflush (stdlis); return; } /* Check to see if we have an extended header to skip over also. */ if (current_header->oldgnu_header.isextended) isextended = 1; /* Skip past the header in the archive. */ set_next_block_after (current_header); /* If we needed to skip any extended headers, do so now, by reading extended headers and skipping past them in the archive. */ if (isextended) { #if 0 union block *exhdr; while (1) { exhdr = find_next_block (); if (!exhdr->sparse_header.isextended) { set_next_block_after (exhdr); break; } set_next_block_after (exhdr); } #endif skip_extended_headers (); } if (multi_volume_option) assign_string (&save_name, current_file_name); /* Skip to the next header on the archive. */ skip_file (current_stat.st_size); if (multi_volume_option) assign_string (&save_name, NULL); } /*-----------------------------------------------------------------------. | 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. | `-----------------------------------------------------------------------*/ /* The standard BSD tar sources create the checksum by adding up the bytes in the header as type char. I think the type char was unsigned on the PDP-11, but it's signed on the Next and Sun. It looks like the sources to BSD tar were never changed to compute the checksum currectly, so both the Sun and Next add the bytes of the header as signed chars. This doesn't cause a problem until you get a file with a name containing characters with the high bit set. So read_header computes two checksums -- signed and unsigned. */ /* FIXME: The signed checksum computation is broken on machines where char's are unsigned. It's uneasy to handle all cases correctly... */ enum read_header read_header (void) { size_t i; long unsigned_sum; /* the POSIX one :-) */ long signed_sum; /* the Sun one :-( */ long recorded_sum; uintmax_t parsed_sum; char *p; union block *header; char **longp; char *bp; union block *data_block; size_t size, written; static char *next_long_name, *next_long_link; while (1) { header = find_next_block (); current_header = header; if (!header) return HEADER_END_OF_FILE; parsed_sum = from_oct (header->header.chksum, sizeof header->header.chksum, (char *) 0, TYPE_MAXIMUM (long)); if (parsed_sum == (uintmax_t) -1) return HEADER_FAILURE; recorded_sum = parsed_sum; unsigned_sum = 0; signed_sum = 0; p = header->buffer; for (i = sizeof (*header); i-- != 0;) { /* We can't use unsigned char here because of old compilers, e.g. V7. */ unsigned_sum += 0xFF & *p; signed_sum += *p++; } /* Adjust checksum to count the "chksum" field as blanks. */ for (i = sizeof (header->header.chksum); i-- != 0;) { unsigned_sum -= 0xFF & header->header.chksum[i]; signed_sum -= header->header.chksum[i]; } unsigned_sum += ' ' * sizeof header->header.chksum; signed_sum += ' ' * sizeof header->header.chksum; if (unsigned_sum == sizeof header->header.chksum * ' ') { /* This is a zeroed block...whole block is 0's except for the blanks we faked for the checksum field. */ return HEADER_ZERO_BLOCK; } if (unsigned_sum != recorded_sum && signed_sum != recorded_sum) return HEADER_FAILURE; /* Good block. Decode file size and return. */ if (header->header.typeflag == LNKTYPE) current_stat.st_size = 0; /* links 0 size on tape */ else current_stat.st_size = OFF_FROM_OCT (header->header.size); header->header.name[NAME_FIELD_SIZE - 1] = '\0'; if (header->header.typeflag == GNUTYPE_LONGNAME || header->header.typeflag == GNUTYPE_LONGLINK) { longp = ((header->header.typeflag == GNUTYPE_LONGNAME) ? &next_long_name : &next_long_link); set_next_block_after (header); if (*longp) free (*longp); size = current_stat.st_size; if (size != current_stat.st_size) FATAL_ERROR ((0, 0, _("Memory exhausted"))); bp = *longp = (char *) xmalloc (size); for (; size > 0; size -= written) { data_block = find_next_block (); if (data_block == NULL) { ERROR ((0, 0, _("Unexpected EOF on archive file"))); break; } written = available_space_after (data_block); if (written > size) written = size; memcpy (bp, data_block->buffer, written); bp += written; set_next_block_after ((union block *) (data_block->buffer + written - 1)); } /* Loop! */ } else { char *name = next_long_name; struct posix_header *h = ¤t_header->header; char namebuf[sizeof h->prefix + 1 + sizeof h->name + 1]; if (! name) { /* Accept file names as specified by POSIX.1-1996 section 10.1.1. */ char *np = namebuf; if (h->prefix[0]) { memcpy (np, h->prefix, sizeof h->prefix); np[sizeof h->prefix] = '\0'; np += strlen (np); *np++ = '/'; } memcpy (np, h->name, sizeof h->name); np[sizeof h->name] = '\0'; name = namebuf; } assign_string (¤t_file_name, name); assign_string (¤t_link_name, (next_long_link ? next_long_link : current_header->header.linkname)); next_long_link = next_long_name = 0; return HEADER_SUCCESS; } } } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ void decode_header (union block *header, struct stat *stat_info, enum archive_format *format_pointer, int do_user_group) { enum archive_format format; if (strcmp (header->header.magic, TMAGIC) == 0) format = POSIX_FORMAT; else if (strcmp (header->header.magic, OLDGNU_MAGIC) == 0) format = OLDGNU_FORMAT; else format = V7_FORMAT; *format_pointer = format; stat_info->st_mode = MODE_FROM_OCT (header->header.mode); stat_info->st_mtime = TIME_FROM_OCT (header->header.mtime); if (format == OLDGNU_FORMAT && incremental_option) { stat_info->st_atime = TIME_FROM_OCT (header->oldgnu_header.atime); stat_info->st_ctime = TIME_FROM_OCT (header->oldgnu_header.ctime); } if (format == V7_FORMAT) { stat_info->st_uid = UID_FROM_OCT (header->header.uid); stat_info->st_gid = GID_FROM_OCT (header->header.gid); stat_info->st_rdev = 0; } else { if (do_user_group) { /* FIXME: Decide if this should somewhat depend on -p. */ if (numeric_owner_option || !*header->header.uname || !uname_to_uid (header->header.uname, &stat_info->st_uid)) stat_info->st_uid = UID_FROM_OCT (header->header.uid); if (numeric_owner_option || !*header->header.gname || !gname_to_gid (header->header.gname, &stat_info->st_gid)) stat_info->st_gid = GID_FROM_OCT (header->header.gid); } switch (header->header.typeflag) { #ifdef S_IFBLK case BLKTYPE: stat_info->st_rdev = makedev (MAJOR_FROM_OCT (header->header.devmajor), MINOR_FROM_OCT (header->header.devminor)); break; #endif #ifdef S_IFCHR case CHRTYPE: stat_info->st_rdev = makedev (MAJOR_FROM_OCT (header->header.devmajor), MINOR_FROM_OCT (header->header.devminor)); break; #endif default: stat_info->st_rdev = 0; } } } /*------------------------------------------------------------------------. | Quick and dirty octal conversion. Result is -1 if the field is invalid | | (all blank, or nonoctal). | `------------------------------------------------------------------------*/ static uintmax_t from_oct (const char *where0, size_t digs0, const char *type, uintmax_t maxval) { uintmax_t value; const char *where = where0; size_t digs = digs0; for (;;) { if (digs == 0) { if (type) ERROR ((0, 0, _("Blanks in header where octal %s value expected"), type)); return -1; } if (!ISSPACE ((unsigned char) *where)) break; where++; digs--; } value = 0; while (digs != 0 && ISODIGIT (*where)) { /* Scan til nonoctal. */ if (value << 3 >> 3 != value) goto out_of_range; value = (value << 3) | (*where++ - '0'); --digs; } if (digs != 0 && *where && !ISSPACE ((unsigned char) *where)) { if (type) { char buf[1000]; /* Big enough to represent any header. */ static struct quoting_options *o; if (!o) { o = clone_quoting_options ((struct quoting_options *) 0); set_quoting_style (o, escape_quoting_style); } quotearg_buffer (buf, sizeof buf, where0, digs0, o); ERROR ((0, 0, _("Header contains \"%.*s\" where octal %s value expected"), (int) sizeof buf, buf, type)); } return -1; } if (value <= maxval) return value; out_of_range: if (type) ERROR ((0, 0, _("Octal value `%.*s' is out of range for %s"), (int) digs0, where0, type)); return -1; } gid_t gid_from_oct (const char *p, size_t s) { return from_oct (p, s, "gid_t", (uintmax_t) TYPE_MAXIMUM (gid_t)); } major_t major_from_oct (const char *p, size_t s) { return from_oct (p, s, "major_t", (uintmax_t) TYPE_MAXIMUM (major_t)); } minor_t minor_from_oct (const char *p, size_t s) { return from_oct (p, s, "minor_t", (uintmax_t) TYPE_MAXIMUM (minor_t)); } mode_t mode_from_oct (const char *p, size_t s) { /* Do not complain about unrecognized mode bits. */ unsigned u = from_oct (p, s, "mode_t", TYPE_MAXIMUM (uintmax_t)); return ((u & TSUID ? S_ISUID : 0) | (u & TSGID ? S_ISGID : 0) | (u & TSVTX ? S_ISVTX : 0) | (u & TUREAD ? S_IRUSR : 0) | (u & TUWRITE ? S_IWUSR : 0) | (u & TUEXEC ? S_IXUSR : 0) | (u & TGREAD ? S_IRGRP : 0) | (u & TGWRITE ? S_IWGRP : 0) | (u & TGEXEC ? S_IXGRP : 0) | (u & TOREAD ? S_IROTH : 0) | (u & TOWRITE ? S_IWOTH : 0) | (u & TOEXEC ? S_IXOTH : 0)); } off_t off_from_oct (const char *p, size_t s) { return from_oct (p, s, "off_t", (uintmax_t) TYPE_MAXIMUM (off_t)); } size_t size_from_oct (const char *p, size_t s) { return from_oct (p, s, "size_t", (uintmax_t) TYPE_MAXIMUM (size_t)); } time_t time_from_oct (const char *p, size_t s) { return from_oct (p, s, "time_t", (uintmax_t) TYPE_MAXIMUM (time_t)); } uid_t uid_from_oct (const char *p, size_t s) { return from_oct (p, s, "uid_t", (uintmax_t) TYPE_MAXIMUM (uid_t)); } uintmax_t uintmax_from_oct (const char *p, size_t s) { return from_oct (p, s, "uintmax_t", TYPE_MAXIMUM (uintmax_t)); } /*----------------------------------------------------------------------. | 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) { *--buf = '\0'; do *--buf = '0' + (int) (o % 10); while ((o /= 10) != 0); return buf; } #if !USE_OLD_CTIME /*-------------------------------------------. | Return the time formatted along ISO 8601. | `-------------------------------------------*/ /* Also, see http://www.ft.uni-erlangen.de/~mskuhn/iso-time.html. */ static char * isotime (const time_t *time) { static char buffer[21]; struct tm *tm; tm = localtime (time); sprintf (buffer, "%4d-%02d-%02d %02d:%02d:%02d\n", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); return buffer; } #endif /* not USE_OLD_CTIME */ /*-------------------------------------------------------------------------. | Decode MODE from its binary form in a stat structure, and encode it into | | a 9 characters string STRING, terminated with a NUL. | `-------------------------------------------------------------------------*/ static void decode_mode (mode_t mode, char *string) { *string++ = mode & S_IRUSR ? 'r' : '-'; *string++ = mode & S_IWUSR ? 'w' : '-'; *string++ = (mode & S_ISUID ? (mode & S_IXUSR ? 's' : 'S') : (mode & S_IXUSR ? 'x' : '-')); *string++ = mode & S_IRGRP ? 'r' : '-'; *string++ = mode & S_IWGRP ? 'w' : '-'; *string++ = (mode & S_ISGID ? (mode & S_IXGRP ? 's' : 'S') : (mode & S_IXGRP ? 'x' : '-')); *string++ = mode & S_IROTH ? 'r' : '-'; *string++ = mode & S_IWOTH ? 'w' : '-'; *string++ = (mode & S_ISVTX ? (mode & S_IXOTH ? 't' : 'T') : (mode & S_IXOTH ? 'x' : '-')); *string = '\0'; } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ /* FIXME: Note that print_header uses the globals HEAD, HSTAT, and HEAD_STANDARD, which must be set up in advance. Not very clean... */ /* UGSWIDTH starts with 18, so with user and group names <= 8 chars, the columns never shift during the listing. */ #define UGSWIDTH 18 static int ugswidth = UGSWIDTH; /* maximum width encountered so far */ /* 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 void print_header (void) { char modes[11]; char *timestamp; /* These hold formatted ints. */ char uform[UINTMAX_STRSIZE_BOUND], gform[UINTMAX_STRSIZE_BOUND]; char *user, *group; char size[2 * UINTMAX_STRSIZE_BOUND]; /* holds formatted size or major,minor */ char uintbuf[UINTMAX_STRSIZE_BOUND]; time_t longie; /* to make ctime() call portable */ int pad; char *name; if (block_number_option) { char buf[UINTMAX_STRSIZE_BOUND]; fprintf (stdlis, _("block %s: "), STRINGIFY_BIGINT (current_block_ordinal (), buf)); } if (verbose_option <= 1) { /* Just the fax, mam. */ char *quoted_name = quote_copy_string (current_file_name); if (quoted_name) { fprintf (stdlis, "%s\n", quoted_name); free (quoted_name); } else fprintf (stdlis, "%s\n", current_file_name); } else { /* File type and modes. */ modes[0] = '?'; switch (current_header->header.typeflag) { case GNUTYPE_VOLHDR: modes[0] = 'V'; break; case GNUTYPE_MULTIVOL: modes[0] = 'M'; break; case GNUTYPE_NAMES: modes[0] = 'N'; break; case GNUTYPE_LONGNAME: case GNUTYPE_LONGLINK: ERROR ((0, 0, _("Visible longname error"))); break; case GNUTYPE_SPARSE: case REGTYPE: case AREGTYPE: case LNKTYPE: modes[0] = '-'; if (current_file_name[strlen (current_file_name) - 1] == '/') modes[0] = 'd'; break; case GNUTYPE_DUMPDIR: modes[0] = 'd'; break; case DIRTYPE: modes[0] = 'd'; break; case SYMTYPE: modes[0] = 'l'; break; case BLKTYPE: modes[0] = 'b'; break; case CHRTYPE: modes[0] = 'c'; break; case FIFOTYPE: modes[0] = 'p'; break; case CONTTYPE: modes[0] = 'C'; break; } decode_mode (current_stat.st_mode, modes + 1); /* Timestamp. */ longie = current_stat.st_mtime; #if USE_OLD_CTIME timestamp = ctime (&longie); timestamp[16] = '\0'; timestamp[24] = '\0'; #else timestamp = isotime (&longie); timestamp[16] = '\0'; #endif /* User and group names. */ if (*current_header->header.uname && current_format != V7_FORMAT) user = current_header->header.uname; else user = STRINGIFY_BIGINT (UINTMAX_FROM_OCT (current_header->header.uid), uform); if (*current_header->header.gname && current_format != V7_FORMAT) group = current_header->header.gname; else group = STRINGIFY_BIGINT (UINTMAX_FROM_OCT (current_header->header.gid), gform); /* Format the file size or major/minor device numbers. */ switch (current_header->header.typeflag) { #if defined(S_IFBLK) || defined(S_IFCHR) case CHRTYPE: case BLKTYPE: sprintf (size, "%lu,%lu", (unsigned long) major (current_stat.st_rdev), (unsigned long) minor (current_stat.st_rdev)); break; #endif case GNUTYPE_SPARSE: strcpy (size, STRINGIFY_BIGINT (UINTMAX_FROM_OCT (current_header->oldgnu_header.realsize), uintbuf)); break; default: strcpy (size, STRINGIFY_BIGINT (current_stat.st_size, uintbuf)); break; } /* Figure out padding and print the whole line. */ pad = strlen (user) + strlen (group) + strlen (size) + 1; if (pad > ugswidth) ugswidth = pad; #if USE_OLD_CTIME fprintf (stdlis, "%s %s/%s %*s%s %s %s", modes, user, group, ugswidth - pad, "", size, timestamp + 4, timestamp + 20); #else fprintf (stdlis, "%s %s/%s %*s%s %s", modes, user, group, ugswidth - pad, "", size, timestamp); #endif name = quote_copy_string (current_file_name); if (name) { fprintf (stdlis, " %s", name); free (name); } else fprintf (stdlis, " %s", current_file_name); switch (current_header->header.typeflag) { case SYMTYPE: name = quote_copy_string (current_link_name); if (name) { fprintf (stdlis, " -> %s\n", name); free (name); } else fprintf (stdlis, " -> %s\n", current_link_name); break; case LNKTYPE: name = quote_copy_string (current_link_name); if (name) { fprintf (stdlis, _(" link to %s\n"), name); free (name); } else fprintf (stdlis, _(" link to %s\n"), current_link_name); break; default: fprintf (stdlis, _(" unknown file type `%c'\n"), current_header->header.typeflag); break; case AREGTYPE: case REGTYPE: case GNUTYPE_SPARSE: case CHRTYPE: case BLKTYPE: case DIRTYPE: case FIFOTYPE: case CONTTYPE: case GNUTYPE_DUMPDIR: putc ('\n', stdlis); break; case GNUTYPE_VOLHDR: fprintf (stdlis, _("--Volume Header--\n")); break; case GNUTYPE_MULTIVOL: strcpy (size, STRINGIFY_BIGINT (UINTMAX_FROM_OCT (current_header->oldgnu_header.offset), uintbuf)); fprintf (stdlis, _("--Continued at byte %s--\n"), size); break; case GNUTYPE_NAMES: fprintf (stdlis, _("--Mangled file names--\n")); break; } } fflush (stdlis); } /*--------------------------------------------------------------. | Print a similar line when we make a directory automatically. | `--------------------------------------------------------------*/ void print_for_mkdir (char *pathname, int length, mode_t mode) { char modes[11]; char *name; if (verbose_option > 1) { /* File type and modes. */ modes[0] = 'd'; decode_mode (mode, modes + 1); if (block_number_option) { char buf[UINTMAX_STRSIZE_BOUND]; fprintf (stdlis, _("block %s: "), STRINGIFY_BIGINT (current_block_ordinal (), buf)); } name = quote_copy_string (pathname); if (name) { fprintf (stdlis, "%s %*s %.*s\n", modes, ugswidth + DATEWIDTH, _("Creating directory:"), length, name); free (name); } else fprintf (stdlis, "%s %*s %.*s\n", modes, ugswidth + DATEWIDTH, _("Creating directory:"), length, pathname); } } /*--------------------------------------------------------. | Skip over SIZE bytes of data in blocks in the archive. | `--------------------------------------------------------*/ void skip_file (off_t size) { union block *x; if (multi_volume_option) { save_totsize = size; save_sizeleft = size; } while (size > 0) { x = find_next_block (); if (x == NULL) FATAL_ERROR ((0, 0, _("Unexpected EOF on archive file"))); set_next_block_after (x); size -= BLOCKSIZE; if (multi_volume_option) save_sizeleft -= BLOCKSIZE; } } /*---. | ? | `---*/ void skip_extended_headers (void) { union block *exhdr; while (1) { exhdr = find_next_block (); if (!exhdr->sparse_header.isextended) { set_next_block_after (exhdr); break; } set_next_block_after (exhdr); } } tar-1.13/src/mangle.c0000444000176300016070000000707306736574622010136 /* Encode long filenames for GNU tar. Copyright (C) 1988, 1992, 1994, 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. */ #include "system.h" #include time_t time (); #include "common.h" struct mangled { struct mangled *next; int type; char mangled[NAME_FIELD_SIZE]; char *linked_to; char normal[1]; }; /* Should use a hash table, etc. . */ struct mangled *first_mangle; int mangled_num = 0; /*---------------------------------------------------------------------. | 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. | `---------------------------------------------------------------------*/ void extract_mangle (void) { off_t size = current_stat.st_size; char *buffer = xmalloc ((size_t) (size + 1)); char *copy = buffer; char *cursor = buffer; if (size != (size_t) size || size == (size_t) -1) FATAL_ERROR ((0, 0, _("Memory exhausted"))); buffer[size] = '\0'; while (size > 0) { union block *block = find_next_block (); size_t available; if (!block) { ERROR ((0, 0, _("Unexpected EOF in mangled names"))); return; } available = available_space_after (block); if (available > size) available = size; memcpy (copy, block->buffer, available); copy += available; size -= available; set_next_block_after ((union block *) (block->buffer + available - 1)); } while (*cursor) { char *next_cursor; char *name; char *name_end; next_cursor = strchr (cursor, '\n'); *next_cursor++ = '\0'; if (!strncmp (cursor, "Rename ", 7)) { name = cursor + 7; name_end = strchr (name, ' '); while (strncmp (name_end, " to ", 4)) { name_end++; name_end = strchr (name_end, ' '); } *name_end = '\0'; if (next_cursor[-2] == '/') next_cursor[-2] = '\0'; unquote_string (name_end + 4); if (rename (name, name_end + 4)) ERROR ((0, errno, _("Cannot rename %s to %s"), name, name_end + 4)); else if (verbose_option) WARN ((0, 0, _("Renamed %s to %s"), name, name_end + 4)); } #ifdef S_ISLNK else if (!strncmp (cursor, "Symlink ", 8)) { name = cursor + 8; name_end = strchr (name, ' '); while (strncmp (name_end, " to ", 4)) { name_end++; name_end = strchr (name_end, ' '); } *name_end = '\0'; unquote_string (name); unquote_string (name_end + 4); if (symlink (name, name_end + 4) && (unlink (name_end + 4) || symlink (name, name_end + 4))) ERROR ((0, errno, _("Cannot symlink %s to %s"), name, name_end + 4)); else if (verbose_option) WARN ((0, 0, _("Symlinked %s to %s"), name, name_end + 4)); } #endif else ERROR ((0, 0, _("Unknown demangling command %s"), cursor)); cursor = next_cursor; } } tar-1.13/src/misc.c0000444000176300016070000002753306737224331007617 /* Miscellaneous functions, not really specific to GNU tar. Copyright (C) 1988, 92, 94, 95, 96, 97, 1999 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. */ #include "system.h" #include "rmt.h" #include "common.h" /* Handling strings. */ /*-------------------------------------------------------------------------. | Assign STRING to a copy of VALUE if not NULL, or to NULL. If STRING was | | not NULL, it is freed first. | `-------------------------------------------------------------------------*/ void assign_string (char **string, const char *value) { if (*string) free (*string); *string = value ? xstrdup (value) : NULL; } /*------------------------------------------------------------------------. | 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. | `------------------------------------------------------------------------*/ char * quote_copy_string (const char *string) { const char *source = string; char *destination = NULL; char *buffer = NULL; int copying = 0; while (*source) { int character = (unsigned char) *source++; if (character == '\\') { if (!copying) { size_t length = (source - string) - 1; copying = 1; buffer = (char *) xmalloc (length + 5 + strlen (source) * 4); memcpy (buffer, string, length); destination = buffer + length; } *destination++ = '\\'; *destination++ = '\\'; } else if (ISPRINT (character)) { if (copying) *destination++ = character; } else { if (!copying) { size_t length = (source - string) - 1; copying = 1; buffer = (char *) xmalloc (length + 5 + strlen (source) * 4); memcpy (buffer, string, length); destination = buffer + length; } *destination++ = '\\'; switch (character) { case '\n': *destination++ = 'n'; break; case '\t': *destination++ = 't'; break; case '\f': *destination++ = 'f'; break; case '\b': *destination++ = 'b'; break; case '\r': *destination++ = 'r'; break; case '\177': *destination++ = '?'; break; default: *destination++ = (character >> 6) + '0'; *destination++ = ((character >> 3) & 07) + '0'; *destination++ = (character & 07) + '0'; break; } } } if (copying) { *destination = '\0'; return buffer; } return NULL; } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ int unquote_string (char *string) { int result = 1; char *source = string; char *destination = string; while (*source) if (*source == '\\') switch (*++source) { case '\\': *destination++ = '\\'; source++; break; case 'n': *destination++ = '\n'; source++; break; case 't': *destination++ = '\t'; source++; break; case 'f': *destination++ = '\f'; source++; break; case 'b': *destination++ = '\b'; source++; break; case 'r': *destination++ = '\r'; source++; break; case '?': *destination++ = 0177; source++; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': { int value = *source++ - '0'; if (*source < '0' || *source > '7') { *destination++ = value; break; } value = value * 8 + *source++ - '0'; if (*source < '0' || *source > '7') { *destination++ = value; break; } value = value * 8 + *source++ - '0'; *destination++ = value; break; } default: result = 0; *destination++ = '\\'; if (*source) *destination++ = *source++; break; } else if (source != destination) *destination++ = *source++; else source++, destination++; if (source != destination) *destination = '\0'; return result; } /* Sorting lists. */ /*---. | ? | `---*/ char * merge_sort (char *list, int length, int offset, int (*compare) (char *, char *)) { char *first_list; char *second_list; int first_length; int second_length; char *result; char **merge_point; char *cursor; int counter; #define SUCCESSOR(Pointer) \ (*((char **) (((char *) (Pointer)) + offset))) if (length == 1) return list; if (length == 2) { if ((*compare) (list, SUCCESSOR (list)) > 0) { result = SUCCESSOR (list); SUCCESSOR (result) = list; SUCCESSOR (list) = NULL; return result; } return list; } first_list = list; first_length = (length + 1) / 2; second_length = length / 2; for (cursor = list, counter = first_length - 1; counter; cursor = SUCCESSOR (cursor), counter--) continue; second_list = SUCCESSOR (cursor); SUCCESSOR (cursor) = NULL; first_list = merge_sort (first_list, first_length, offset, compare); second_list = merge_sort (second_list, second_length, offset, compare); merge_point = &result; while (first_list && second_list) if ((*compare) (first_list, second_list) < 0) { cursor = SUCCESSOR (first_list); *merge_point = first_list; merge_point = &SUCCESSOR (first_list); first_list = cursor; } else { cursor = SUCCESSOR (second_list); *merge_point = second_list; merge_point = &SUCCESSOR (second_list); second_list = cursor; } if (first_list) *merge_point = first_list; else *merge_point = second_list; return result; #undef SUCCESSOR } /* File handling. */ /* Saved names in case backup needs to be undone. */ static char *before_backup_name = NULL; static char *after_backup_name = NULL; /*------------------------------------------------------------------------. | Returns nonzero if p is `.' or `..'. This could be a macro for speed. | `------------------------------------------------------------------------*/ /* Early Solaris 2.4 readdir may return d->d_name as `' in NFS-mounted directories. The workaround here skips `' just like `.'. Without it, GNU tar would then treat `' much like `.' and loop endlessly. */ int is_dot_or_dotdot (const char *p) { return (p[0] == '\0' || (p[0] == '.' && (p[1] == '\0' || (p[1] == '.' && p[2] == '\0')))); } /*-------------------------------------------------------------------------. | 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). | `-------------------------------------------------------------------------*/ int remove_any_file (const char *path, int recurse) { struct stat stat_buffer; if (lstat (path, &stat_buffer) < 0) return 0; if (S_ISDIR (stat_buffer.st_mode)) { if (recurse) { DIR *dirp = opendir (path); struct dirent *dp; if (dirp == NULL) return 0; while (dp = readdir (dirp), dp) if (! is_dot_or_dotdot (dp->d_name)) { char *path_buffer = new_name (path, dp->d_name); if (!remove_any_file (path_buffer, 1)) { int saved_errno = errno; free (path_buffer); closedir (dirp); /* FIXME: errno should be read-only. */ errno = saved_errno; return 0; } free (path_buffer); } closedir (dirp); return rmdir (path) >= 0; } else { /* FIXME: Saving errno might not be needed anymore, now that extract_archive tests for the special case before recovery. */ int saved_errno = errno; if (rmdir (path) >= 0) return 1; errno = saved_errno; /* FIXME: errno should be read-only */ return 0; } } return unlink (path) >= 0; } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ int maybe_backup_file (const char *path, int archive) { struct stat file_stat; /* Check if we really need to backup the file. */ if (archive && _remdev (path)) return 1; if (stat (path, &file_stat)) { if (errno == ENOENT) return 1; ERROR ((0, errno, "%s", path)); return 0; } if (S_ISDIR (file_stat.st_mode)) return 1; #ifdef S_ISBLK if (archive && S_ISBLK (file_stat.st_mode)) return 1; #endif #ifdef S_ISCHR if (archive && S_ISCHR (file_stat.st_mode)) return 1; #endif assign_string (&before_backup_name, path); /* A run situation may exist between Emacs or other GNU programs trying to make a backup for the same file simultaneously. If theoretically possible, real problems are unlikely. Doing any better would require a convention, GNU-wide, for all programs doing backups. */ assign_string (&after_backup_name, NULL); after_backup_name = find_backup_file_name (path, backup_type); if (after_backup_name == NULL) FATAL_ERROR ((0, 0, "Virtual memory exhausted")); if (rename (before_backup_name, after_backup_name) == 0) { if (verbose_option) fprintf (stdlis, _("Renaming previous `%s' to `%s'\n"), before_backup_name, after_backup_name); return 1; } /* The backup operation failed. */ ERROR ((0, errno, _("%s: Cannot rename for backup"), before_backup_name)); assign_string (&after_backup_name, NULL); return 0; } /*-----------------------------------------------------------------------. | Try to restore the recently backed up file to its original name. This | | is usually only needed after a failed extraction. | `-----------------------------------------------------------------------*/ void undo_last_backup (void) { if (after_backup_name) { if (rename (after_backup_name, before_backup_name) != 0) ERROR ((0, errno, _("%s: Cannot rename from backup"), before_backup_name)); if (verbose_option) fprintf (stdlis, _("Renaming `%s' back to `%s'\n"), after_backup_name, before_backup_name); assign_string (&after_backup_name, NULL); } } tar-1.13/src/names.c0000444000176300016070000005052506740564713007771 /* Various processing of names. Copyright (C) 1988, 92, 94, 96, 97, 98, 1999 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. */ #include "system.h" #include #include #ifndef FNM_LEADING_DIR # include #endif #include "common.h" /* User and group names. */ extern struct group *getgrnam (); extern struct passwd *getpwnam (); #if !HAVE_GETPWUID extern struct passwd *getpwuid (); #endif #if !HAVE_GETGRGID extern struct group *getgrgid (); #endif /* Make sure you link with the proper libraries if you are running the Yellow Peril (thanks for the good laugh, Ian J.!), or, euh... NIS. This code should also be modified for non-UNIX systems to do something reasonable. */ static char cached_uname[UNAME_FIELD_SIZE] = ""; static char cached_gname[GNAME_FIELD_SIZE] = ""; 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 */ /* 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] = ""; /* These variables are valid only if nonzero. It's not worth optimizing 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; /*------------------------------------------. | Given UID, find the corresponding UNAME. | `------------------------------------------*/ void uid_to_uname (uid_t uid, char uname[UNAME_FIELD_SIZE]) { struct passwd *passwd; if (uid != 0 && uid == cached_no_such_uid) { *uname = '\0'; return; } if (!cached_uname[0] || uid != cached_uid) { passwd = getpwuid (uid); if (passwd) { cached_uid = uid; strncpy (cached_uname, passwd->pw_name, UNAME_FIELD_SIZE); } else { cached_no_such_uid = uid; *uname = '\0'; return; } } strncpy (uname, cached_uname, UNAME_FIELD_SIZE); } /*------------------------------------------. | Given GID, find the corresponding GNAME. | `------------------------------------------*/ void gid_to_gname (gid_t gid, char gname[GNAME_FIELD_SIZE]) { struct group *group; if (gid != 0 && gid == cached_no_such_gid) { *gname = '\0'; return; } if (!cached_gname[0] || gid != cached_gid) { setgrent (); /* FIXME: why?! */ group = getgrgid (gid); if (group) { cached_gid = gid; strncpy (cached_gname, group->gr_name, GNAME_FIELD_SIZE); } else { cached_no_such_gid = gid; *gname = '\0'; return; } } strncpy (gname, cached_gname, GNAME_FIELD_SIZE); } /*-------------------------------------------------------------------------. | Given UNAME, set the corresponding UID and return 1, or else, return 0. | `-------------------------------------------------------------------------*/ int uname_to_uid (char uname[UNAME_FIELD_SIZE], uid_t *uidp) { struct passwd *passwd; if (cached_no_such_uname[0] && strncmp (uname, cached_no_such_uname, UNAME_FIELD_SIZE) == 0) return 0; if (!cached_uname[0] || uname[0] != cached_uname[0] || strncmp (uname, cached_uname, UNAME_FIELD_SIZE) != 0) { passwd = getpwnam (uname); if (passwd) { cached_uid = passwd->pw_uid; strncpy (cached_uname, uname, UNAME_FIELD_SIZE); } else { strncpy (cached_no_such_uname, uname, UNAME_FIELD_SIZE); return 0; } } *uidp = cached_uid; return 1; } /*-------------------------------------------------------------------------. | Given GNAME, set the corresponding GID and return 1, or else, return 0. | `-------------------------------------------------------------------------*/ int gname_to_gid (char gname[GNAME_FIELD_SIZE], gid_t *gidp) { struct group *group; if (cached_no_such_gname[0] && strncmp (gname, cached_no_such_gname, GNAME_FIELD_SIZE) == 0) return 0; if (!cached_gname[0] || gname[0] != cached_gname[0] || strncmp (gname, cached_gname, GNAME_FIELD_SIZE) != 0) { group = getgrnam (gname); if (group) { cached_gid = group->gr_gid; strncpy (cached_gname, gname, GNAME_FIELD_SIZE); } else { strncpy (cached_no_such_gname, gname, GNAME_FIELD_SIZE); return 0; } } *gidp = cached_gid; return 1; } /* Names from the command call. */ 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? */ /*------------------------. | Initialize structures. | `------------------------*/ void init_names (void) { allocated_names = 10; name_array = (const char **) xmalloc (sizeof (const char *) * allocated_names); names = 0; } /*--------------------------------------------------------------. | Add NAME at end of name_array, reallocating it as necessary. | `--------------------------------------------------------------*/ void name_add (const char *name) { if (names == allocated_names) { allocated_names *= 2; name_array = (const char **) xrealloc (name_array, sizeof (const char *) * allocated_names); } name_array[names++] = name; } /* Names from external name file. */ 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 */ /*---. | ? | `---*/ /* FIXME: I should better check more closely. It seems at first glance that is_pattern is only used when reading a file, and ignored for all command line arguments. */ static inline int is_pattern (const char *string) { return strchr (string, '*') || strchr (string, '[') || strchr (string, '?'); } /*-----------------------------------------------------------------------. | Set up to gather file names for tar. They can either come from a file | | or were saved from decoding arguments. | `-----------------------------------------------------------------------*/ void name_init (int argc, char *const *argv) { name_buffer = xmalloc (NAME_FIELD_SIZE + 2); name_buffer_length = NAME_FIELD_SIZE; if (files_from_option) { if (!strcmp (files_from_option, "-")) { request_stdin ("-T"); name_file = stdin; } else if (name_file = fopen (files_from_option, "r"), !name_file) FATAL_ERROR ((0, errno, _("Cannot open file %s"), files_from_option)); } } /*---. | ? | `---*/ void name_term (void) { free (name_buffer); free (name_array); } /*---------------------------------------------------------------------. | 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. | `---------------------------------------------------------------------*/ static int read_name_from_file (void) { int character; size_t counter = 0; /* FIXME: getc may be called even if character was EOF the last time here. */ /* FIXME: This + 2 allocation might serve no purpose. */ while (character = getc (name_file), character != EOF && character != filename_terminator) { if (counter == name_buffer_length) { name_buffer_length += NAME_FIELD_SIZE; name_buffer = xrealloc (name_buffer, name_buffer_length + 2); } name_buffer[counter++] = character; } if (counter == 0 && character == EOF) return 0; if (counter == name_buffer_length) { name_buffer_length += NAME_FIELD_SIZE; name_buffer = xrealloc (name_buffer, name_buffer_length + 2); } name_buffer[counter] = '\0'; return 1; } /*------------------------------------------------------------------------. | 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. | `------------------------------------------------------------------------*/ char * name_next (int change_dirs) { const char *source; char *cursor; int chdir_flag = 0; if (filename_terminator == '\0') change_dirs = 0; while (1) { /* Get a name, either from file or from saved arguments. */ if (name_file) { if (!read_name_from_file ()) break; } else { if (name_index == names) break; source = name_array[name_index++]; if (strlen (source) > name_buffer_length) { free (name_buffer); name_buffer_length = strlen (source); name_buffer = xmalloc (name_buffer_length + 2); } strcpy (name_buffer, source); } /* Zap trailing slashes. */ cursor = name_buffer + strlen (name_buffer) - 1; while (cursor > name_buffer && *cursor == '/') *cursor-- = '\0'; if (chdir_flag) { if (chdir (name_buffer) < 0) FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), name_buffer)); chdir_flag = 0; } else if (change_dirs && strcmp (name_buffer, "-C") == 0) chdir_flag = 1; else { unquote_string (name_buffer); return name_buffer; } } /* No more names in file. */ if (name_file && chdir_flag) FATAL_ERROR ((0, 0, _("Missing file name after -C"))); return NULL; } /*------------------------------. | Close the name file, if any. | `------------------------------*/ void name_close (void) { if (name_file != NULL && name_file != stdin) if (fclose (name_file) == EOF) ERROR ((0, errno, "%s", name_buffer)); } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ void name_gather (void) { /* Buffer able to hold a single name. */ static struct name *buffer; static size_t allocated_length = 0; char *name; if (same_order_option) { if (allocated_length == 0) { allocated_length = sizeof (struct name) + NAME_FIELD_SIZE; buffer = (struct name *) xmalloc (allocated_length); /* FIXME: This memset is overkill, and ugly... */ memset (buffer, 0, allocated_length); } name = name_next (0); if (name) { if (strcmp (name, "-C") == 0) { char *copy = xstrdup (name_next (0)); name = name_next (0); if (!name) FATAL_ERROR ((0, 0, _("Missing file name after -C"))); buffer->change_dir = copy; } buffer->length = strlen (name); if (sizeof (struct name) + buffer->length >= allocated_length) { allocated_length = sizeof (struct name) + buffer->length; buffer = (struct name *) xrealloc (buffer, allocated_length); } strncpy (buffer->name, name, (size_t) buffer->length); buffer->name[buffer->length] = 0; buffer->next = NULL; buffer->found = 0; /* FIXME: Poorly named globals, indeed... */ namelist = buffer; namelast = namelist; } return; } /* Non sorted names -- read them all in. */ while (name = name_next (0), name) addname (name); } /*-----------------------------. | Add a name to the namelist. | `-----------------------------*/ void addname (const char *string) { /* FIXME: This is ugly. How is memory managed? */ static char *chdir_name = NULL; struct name *name; size_t length; if (strcmp (string, "-C") == 0) { chdir_name = xstrdup (name_next (0)); string = name_next (0); if (!chdir_name) FATAL_ERROR ((0, 0, _("Missing file name after -C"))); if (chdir_name[0] != '/') { char *path = xmalloc (PATH_MAX); /* FIXME: Shouldn't we use xgetcwd? */ #if HAVE_GETCWD if (!getcwd (path, PATH_MAX)) FATAL_ERROR ((0, 0, _("Could not get current directory"))); #else char *getwd (); if (!getwd (path)) FATAL_ERROR ((0, 0, _("Could not get current directory: %s"), path)); #endif chdir_name = new_name (path, chdir_name); free (path); } } length = string ? strlen (string) : 0; name = (struct name *) xmalloc (sizeof (struct name) + length); memset (name, 0, sizeof (struct name) + length); name->next = NULL; if (string) { name->fake = 0; name->length = length; /* FIXME: Possibly truncating a string, here? Tss, tss, tss! */ strncpy (name->name, string, length); name->name[length] = '\0'; } else name->fake = 1; name->found = 0; name->regexp = 0; /* assume not a regular expression */ name->firstch = 1; /* assume first char is literal */ name->change_dir = chdir_name; name->dir_contents = 0; if (string && is_pattern (string)) { name->regexp = 1; if (string[0] == '*' || string[0] == '[' || string[0] == '?') name->firstch = 0; } if (namelast) namelast->next = name; namelast = name; if (!namelist) namelist = name; } /*------------------------------------------------------------------------. | Return true if and only if name PATH (from an archive) matches any name | | from the namelist. | `------------------------------------------------------------------------*/ int name_match (const char *path) { size_t length = strlen (path); while (1) { struct name *cursor = namelist; if (!cursor) return 1; /* empty namelist is easy */ if (cursor->fake) { if (cursor->change_dir && chdir (cursor->change_dir)) FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), cursor->change_dir)); namelist = 0; return 1; } for (; cursor; cursor = cursor->next) { /* If first chars don't match, quick skip. */ if (cursor->firstch && cursor->name[0] != path[0]) continue; /* Regular expressions (shell globbing, actually). */ if (cursor->regexp) { if (fnmatch (cursor->name, path, FNM_LEADING_DIR) == 0) { cursor->found = 1; /* remember it matched */ if (starting_file_option) { free (namelist); namelist = NULL; } if (cursor->change_dir && chdir (cursor->change_dir)) FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), cursor->change_dir)); /* We got a match. */ return 1; } continue; } /* Plain Old Strings. */ if (cursor->length <= length /* archive length >= specified */ && (path[cursor->length] == '\0' || path[cursor->length] == '/') /* full match on file/dirname */ && strncmp (path, cursor->name, cursor->length) == 0) /* name compare */ { cursor->found = 1; /* remember it matched */ if (starting_file_option) { free ((void *) namelist); namelist = 0; } if (cursor->change_dir && chdir (cursor->change_dir)) FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), cursor->change_dir)); /* We got a match. */ return 1; } } /* Filename from archive not found in namelist. If we have the whole namelist here, just return 0. Otherwise, read the next name in and compare it. If this was the last name, namelist->found will remain on. If not, we loop to compare the newly read name. */ if (same_order_option && namelist->found) { name_gather (); /* read one more */ if (namelist->found) return 0; } else return 0; } } /*------------------------------------------------------------------. | Print the names of things in the namelist that were not matched. | `------------------------------------------------------------------*/ void names_notfound (void) { struct name *cursor; struct name *next; for (cursor = namelist; cursor; cursor = next) { next = cursor->next; if (!cursor->found && !cursor->fake) ERROR ((0, 0, _("%s: Not found in archive"), cursor->name)); /* We could free the list, but the process is about to die anyway, so save some CPU time. Amigas and other similarly broken software will need to waste the time, though. */ #ifdef amiga if (!same_order_option) free (cursor); #endif } namelist = (struct name *) NULL; namelast = (struct name *) NULL; if (same_order_option) { char *name; while (name = name_next (1), name) ERROR ((0, 0, _("%s: Not found in archive"), name)); } } /*---. | ? | `---*/ void name_expand (void) { } /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ struct name * name_scan (const char *path) { size_t length = strlen (path); while (1) { struct name *cursor = namelist; if (!cursor) return NULL; /* empty namelist is easy */ for (; cursor; cursor = cursor->next) { /* If first chars don't match, quick skip. */ if (cursor->firstch && cursor->name[0] != path[0]) continue; /* Regular expressions. */ if (cursor->regexp) { if (fnmatch (cursor->name, path, FNM_LEADING_DIR) == 0) return cursor; /* we got a match */ continue; } /* Plain Old Strings. */ if (cursor->length <= length /* archive length >= specified */ && (path[cursor->length] == '\0' || path[cursor->length] == '/') /* full match on file/dirname */ && strncmp (path, cursor->name, cursor->length) == 0) /* name compare */ return cursor; /* we got a match */ } /* Filename from archive not found in namelist. If we have the whole namelist here, just return 0. Otherwise, read the next name in and compare it. If this was the last name, namelist->found will remain on. If not, we loop to compare the newly read name. */ if (same_order_option && namelist->found) { name_gather (); /* read one more */ if (namelist->found) return NULL; } else return NULL; } } /*-----------------------------------------------------------------------. | 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 | `-----------------------------------------------------------------------*/ struct name *gnu_list_name = NULL; char * name_from_list (void) { if (!gnu_list_name) gnu_list_name = namelist; while (gnu_list_name && gnu_list_name->found) gnu_list_name = gnu_list_name->next; if (gnu_list_name) { gnu_list_name->found = 1; if (gnu_list_name->change_dir) if (chdir (gnu_list_name->change_dir) < 0) FATAL_ERROR ((0, errno, _("Cannot change to directory %s"), gnu_list_name->change_dir)); return gnu_list_name->name; } return NULL; } /*---. | ? | `---*/ void blank_name_list (void) { struct name *name; gnu_list_name = 0; for (name = namelist; name; name = name->next) name->found = 0; } /*---. | ? | `---*/ char * new_name (const char *path, const char *name) { char *buffer = (char *) xmalloc (strlen (path) + strlen (name) + 2); sprintf (buffer, "%s/%s", path, name); return buffer; } tar-1.13/src/open3.c0000444000176300016070000001314206736574762007716 /* Defines for Sys V style 3-argument open call. Copyright (C) 1988, 1994, 1995, 1996 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. */ #include "system.h" #if EMUL_OPEN3 /* open3.h -- #defines for the various flags for the Sys V style 3-argument open() call. On BSD or System 5, the system already has this in an include file. This file is needed for V7 and MINIX systems for the benefit of open3() in port.c, a routine that emulates the 3-argument call using system calls available on V7/MINIX. Written 1987-06-10 by Richard Todd. The names have been changed by John Gilmore, 1987-07-31, since Richard called it "bsdopen", and really this change was introduced in AT&T Unix systems before BSD picked it up. */ /*-----------------------------------------------------------------------. | 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. | `-----------------------------------------------------------------------*/ /* The routine obeys the following mode arguments: O_RDONLY file open for read only O_WRONLY file open for write only O_RDWR file open for both read & write O_CREAT file is created with specified mode if it needs to be O_TRUNC if file exists, it is truncated to 0 bytes O_EXCL used with O_CREAT--routine returns error if file exists */ /* Call that if present in most modern Unix systems. This version attempts to support all the flag bits except for O_NDELAY and O_APPEND, which are silently ignored. The emulation is not as efficient as the real thing (at worst, 4 system calls instead of one), but there's not much I can do about that. */ /* Array to give arguments to access for various modes FIXME, this table depends on the specific integer values of O_*, and also contains integers (args to 'access') that should be #define's. */ static int modes[] = { 04, /* O_RDONLY */ 02, /* O_WRONLY */ 06, /* O_RDWR */ 06, /* invalid, just cope: O_WRONLY+O_RDWR */ }; /* Shut off the automatic emulation of open(), we'll need it. */ #undef open int open3 (char *path, int flags, int mode) { int exists = 1; int call_creat = 0; /* We actually do the work by calling the open() or creat() system call, depending on the flags. Call_creat is true if we will use creat(), false if we will use open(). */ /* See if the file exists and is accessible in the requested mode. Strictly speaking we shouldn't be using access, since access checks against real uid, and the open call should check against euid. Most cases real uid == euid, so it won't matter. FIXME. FIXME, the construction "flags & 3" and the modes table depends on the specific integer values of the O_* #define's. Foo! */ if (access (path, modes[flags & 3]) < 0) { if (errno == ENOENT) { /* The file does not exist. */ exists = 0; } else { /* Probably permission violation. */ if (flags & O_EXCL) { /* Oops, the file exists, we didn't want it. No matter what the error, claim EEXIST. */ errno = EEXIST; /* FIXME: errno should be read-only */ } return -1; } } /* If we have the O_CREAT bit set, check for O_EXCL. */ if (flags & O_CREAT) { if ((flags & O_EXCL) && exists) { /* Oops, the file exists and we didn't want it to. */ errno = EEXIST; /* FIXME: errno should be read-only */ return -1; } /* If the file doesn't exist, be sure to call creat() so that it will be created with the proper mode. */ if (!exists) call_creat = 1; } else { /* If O_CREAT isn't set and the file doesn't exist, error. */ if (!exists) { errno = ENOENT; /* FIXME: errno should be read-only */ return -1; } } /* If the O_TRUNC flag is set and the file exists, we want to call creat() anyway, since creat() guarantees that the file will be truncated and open()-for-writing doesn't. (If the file doesn't exist, we're calling creat() anyway and the file will be created with zero length.) */ if ((flags & O_TRUNC) && exists) call_creat = 1; /* Actually do the call. */ if (call_creat) /* Call creat. May have to close and reopen the file if we want O_RDONLY or O_RDWR access -- creat() only gives O_WRONLY. */ { int fd = creat (path, mode); if (fd < 0 || (flags & O_WRONLY)) return fd; if (close (fd) < 0) return -1; /* Fall out to reopen the file we've created. */ } /* Calling old open, we strip most of the new flags just in case. */ return open (path, flags & (O_RDONLY | O_WRONLY | O_RDWR | O_BINARY)); } #endif /* EMUL_OPEN3 */ tar-1.13/src/rtapelib.c0000444000176300016070000004535406740567535010501 /* Functions for communicating with a remote tape drive. Copyright (C) 1988, 1992, 1994, 1996 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. */ /* The man page rmt(8) for /etc/rmt documents the remote mag tape protocol which rdump and rrestore use. Unfortunately, the man page is *WRONG*. The author of the routines I'm including originally wrote his code just based on the man page, and it didn't work, so he went to the rdump source to figure out why. The only thing he had to change was to check for the 'F' return code in addition to the 'E', and to separate the various arguments with \n instead of a space. I personally don't think that this is much of a problem, but I wanted to point it out. -- Arnold Robbins Originally written by Jeff Lee, modified some by Arnold Robbins. Redone as a library that can replace open, read, write, etc., by Fred Fish, with some additional work by Arnold Robbins. Modified to make all rmt* calls into macros for speed by Jay Fenlason. Use -DWITH_REXEC for rexec code, courtesy of Dan Kegel. */ #include "system.h" #include "basename.h" #include "safe-read.h" /* Try hard to get EOPNOTSUPP defined. 486/ISC has it in net/errno.h, 3B2/SVR3 has it in sys/inet.h. Otherwise, like on MSDOS, use EINVAL. */ #ifndef EOPNOTSUPP # if HAVE_NET_ERRNO_H # include # endif # if HAVE_SYS_INET_H # include # endif # ifndef EOPNOTSUPP # define EOPNOTSUPP EINVAL # endif #endif #include #if HAVE_NETDB_H # include #endif #include "rmt.h" /* FIXME: Just to shut up -Wall. */ int rexec (); /* Exit status if exec errors. */ #define EXIT_ON_EXEC_ERROR 128 /* FIXME: Size of buffers for reading and writing commands to rmt. */ #define COMMAND_BUFFER_SIZE 64 #ifndef RETSIGTYPE # define RETSIGTYPE void #endif /* FIXME: Maximum number of simultaneous remote tape connections. */ #define MAXUNIT 4 #define PREAD 0 /* read file descriptor from pipe() */ #define PWRITE 1 /* write file descriptor from pipe() */ /* Return the parent's read side of remote tape connection Fd. */ #define READ_SIDE(Fd) (from_remote[Fd][PREAD]) /* Return the parent's write side of remote tape connection Fd. */ #define WRITE_SIDE(Fd) (to_remote[Fd][PWRITE]) /* The pipes for receiving data from remote tape drives. */ static int from_remote[MAXUNIT][2] = {{-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}}; /* The pipes for sending data to remote tape drives. */ static int to_remote[MAXUNIT][2] = {{-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}}; /* Temporary variable used by macros in rmt.h. */ char *rmt_path__; /*----------------------------------------------------------------------. | Close remote tape connection HANDLE, and reset errno to ERRNO_VALUE. | `----------------------------------------------------------------------*/ static void _rmt_shutdown (int handle, int errno_value) { close (READ_SIDE (handle)); close (WRITE_SIDE (handle)); READ_SIDE (handle) = -1; WRITE_SIDE (handle) = -1; errno = errno_value; /* FIXME: errno should be read-only */ } /*-------------------------------------------------------------------------. | Attempt to perform the remote tape command specified in BUFFER on remote | | tape connection HANDLE. Return 0 if successful, -1 on error. | `-------------------------------------------------------------------------*/ static int do_command (int handle, const char *buffer) { size_t length; RETSIGTYPE (*pipe_handler) (); /* Save the current pipe handler and try to make the request. */ pipe_handler = signal (SIGPIPE, SIG_IGN); length = strlen (buffer); if (full_write (WRITE_SIDE (handle), buffer, length) == length) { signal (SIGPIPE, pipe_handler); return 0; } /* Something went wrong. Close down and go home. */ signal (SIGPIPE, pipe_handler); _rmt_shutdown (handle, EIO); return -1; } static char * get_status_string (int handle, char *command_buffer) { char *cursor; int counter; /* Read the reply command line. */ for (counter = 0, cursor = command_buffer; counter < COMMAND_BUFFER_SIZE; counter++, cursor++) { if (safe_read (READ_SIDE (handle), cursor, 1) != 1) { _rmt_shutdown (handle, EIO); return 0; } if (*cursor == '\n') { *cursor = '\0'; break; } } if (counter == COMMAND_BUFFER_SIZE) { _rmt_shutdown (handle, EIO); return 0; } /* Check the return status. */ for (cursor = command_buffer; *cursor; cursor++) if (*cursor != ' ') break; if (*cursor == 'E' || *cursor == 'F') { errno = atoi (cursor + 1); /* FIXME: errno should be read-only */ /* Skip the error message line. */ /* FIXME: there is better to do than merely ignoring error messages coming from the remote end. Translate them, too... */ { char character; while (safe_read (READ_SIDE (handle), &character, 1) == 1) if (character == '\n') break; } if (*cursor == 'F') _rmt_shutdown (handle, errno); return 0; } /* Check for mis-synced pipes. */ if (*cursor != 'A') { _rmt_shutdown (handle, EIO); return 0; } /* Got an `A' (success) response. */ return cursor + 1; } /*----------------------------------------------------------------------. | Read and return the status from remote tape connection HANDLE. If an | | error occurred, return -1 and set errno. | `----------------------------------------------------------------------*/ static long get_status (int handle) { char command_buffer[COMMAND_BUFFER_SIZE]; const char *status = get_status_string (handle, command_buffer); return status ? atol (status) : -1L; } static off_t get_status_off (int handle) { char command_buffer[COMMAND_BUFFER_SIZE]; const char *status = get_status_string (handle, command_buffer); if (! status) return -1; else { /* Parse status, taking care to check for overflow. We can't use standard functions, since off_t might be longer than long. */ off_t count = 0; int negative; for (; *status == ' ' || *status == '\t'; status++) continue; negative = *status == '-'; status += negative || *status == '+'; for (;;) { int digit = *status++ - '0'; if (9 < (unsigned) digit) break; else { off_t c10 = 10 * count; off_t nc = negative ? c10 - digit : c10 + digit; if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) return -1; count = nc; } } return count; } } #if WITH_REXEC /*-------------------------------------------------------------------------. | 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. | `-------------------------------------------------------------------------*/ static int _rmt_rexec (char *host, char *user) { int saved_stdin = dup (STDIN_FILENO); int saved_stdout = dup (STDOUT_FILENO); struct servent *rexecserv; int result; /* When using cpio -o < filename, stdin is no longer the tty. But the rexec subroutine reads the login and the passwd on stdin, to allow remote execution of the command. So, reopen stdin and stdout on /dev/tty before the rexec and give them back their original value after. */ if (freopen ("/dev/tty", "r", stdin) == NULL) freopen ("/dev/null", "r", stdin); if (freopen ("/dev/tty", "w", stdout) == NULL) freopen ("/dev/null", "w", stdout); if (rexecserv = getservbyname ("exec", "tcp"), !rexecserv) error (EXIT_ON_EXEC_ERROR, 0, _("exec/tcp: Service not available")); result = rexec (&host, rexecserv->s_port, user, NULL, "/etc/rmt", (int *) NULL); if (fclose (stdin) == EOF) error (0, errno, _("stdin")); fdopen (saved_stdin, "r"); if (fclose (stdout) == EOF) error (0, errno, _("stdout")); fdopen (saved_stdout, "w"); return result; } #endif /* WITH_REXEC */ /*------------------------------------------------------------------------. | 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. | `------------------------------------------------------------------------*/ int rmt_open__ (const char *path, int open_mode, int bias, const char *remote_shell) { int remote_pipe_number; /* pseudo, biased file descriptor */ char *path_copy ; /* copy of path string */ char *remote_host; /* remote host name */ char *remote_file; /* remote file name (often a device) */ char *remote_user; /* remote user name */ /* Find an unused pair of file descriptors. */ for (remote_pipe_number = 0; remote_pipe_number < MAXUNIT; remote_pipe_number++) if (READ_SIDE (remote_pipe_number) == -1 && WRITE_SIDE (remote_pipe_number) == -1) break; if (remote_pipe_number == MAXUNIT) { errno = EMFILE; /* FIXME: errno should be read-only */ return -1; } /* Pull apart the system and device, and optional user. */ { char *cursor; path_copy = xstrdup (path); remote_host = path_copy; remote_user = NULL; remote_file = NULL; for (cursor = path_copy; *cursor; cursor++) switch (*cursor) { default: break; case '@': if (!remote_user) { remote_user = remote_host; *cursor = '\0'; remote_host = cursor + 1; } break; case ':': if (!remote_file) { *cursor = '\0'; remote_file = cursor + 1; } break; } } /* FIXME: Should somewhat validate the decoding, here. */ if (remote_user && *remote_user == '\0') remote_user = NULL; #if WITH_REXEC /* Execute the remote command using rexec. */ READ_SIDE (remote_pipe_number) = _rmt_rexec (remote_host, remote_user); if (READ_SIDE (remote_pipe_number) < 0) { free (path_copy); return -1; } WRITE_SIDE (remote_pipe_number) = READ_SIDE (remote_pipe_number); #else /* not WITH_REXEC */ { const char *remote_shell_basename; pid_t status; /* Identify the remote command to be executed. */ if (!remote_shell) { #ifdef REMOTE_SHELL remote_shell = REMOTE_SHELL; #else errno = EIO; /* FIXME: errno should be read-only */ free (path_copy); return -1; #endif } remote_shell_basename = base_name (remote_shell); if (remote_shell_basename) remote_shell_basename++; else remote_shell_basename = remote_shell; /* Set up the pipes for the `rsh' command, and fork. */ if (pipe (to_remote[remote_pipe_number]) == -1 || pipe (from_remote[remote_pipe_number]) == -1) { free (path_copy); return -1; } status = fork (); if (status == -1) { free (path_copy); return -1; } if (status == 0) { /* Child. */ close (STDIN_FILENO); dup (to_remote[remote_pipe_number][PREAD]); close (to_remote[remote_pipe_number][PREAD]); close (to_remote[remote_pipe_number][PWRITE]); close (STDOUT_FILENO); dup (from_remote[remote_pipe_number][PWRITE]); close (from_remote[remote_pipe_number][PREAD]); close (from_remote[remote_pipe_number][PWRITE]); #if !MSDOS setuid (getuid ()); setgid (getgid ()); #endif if (remote_user) execl (remote_shell, remote_shell_basename, remote_host, "-l", remote_user, "/etc/rmt", (char *) 0); else execl (remote_shell, remote_shell_basename, remote_host, "/etc/rmt", (char *) 0); /* Bad problems if we get here. */ /* In a previous version, _exit was used here instead of exit. */ error (EXIT_ON_EXEC_ERROR, errno, _("Cannot execute remote shell")); } /* Parent. */ close (from_remote[remote_pipe_number][PWRITE]); close (to_remote[remote_pipe_number][PREAD]); } #endif /* not WITH_REXEC */ /* Attempt to open the tape device. */ { char command_buffer[COMMAND_BUFFER_SIZE]; sprintf (command_buffer, "O%s\n%d\n", remote_file, open_mode); if (do_command (remote_pipe_number, command_buffer) == -1 || get_status (remote_pipe_number) == -1) { _rmt_shutdown (remote_pipe_number, errno); free (path_copy); return -1; } } free (path_copy); return remote_pipe_number + bias; } /*----------------------------------------------------------------. | Close remote tape connection HANDLE and shut down. Return 0 if | | successful, -1 on error. | `----------------------------------------------------------------*/ int rmt_close__ (int handle) { int status; if (do_command (handle, "C\n") == -1) return -1; status = get_status (handle); _rmt_shutdown (handle, errno); return status; } /*-------------------------------------------------------------------------. | Read up to LENGTH bytes into BUFFER from remote tape connection HANDLE. | | Return the number of bytes read on success, -1 on error. | `-------------------------------------------------------------------------*/ ssize_t rmt_read__ (int handle, char *buffer, size_t length) { char command_buffer[COMMAND_BUFFER_SIZE]; ssize_t status, rlen; size_t counter; sprintf (command_buffer, "R%lu\n", (unsigned long) length); if (do_command (handle, command_buffer) == -1 || (status = get_status (handle)) == -1) return -1; for (counter = 0; counter < status; counter += rlen, buffer += rlen) { rlen = safe_read (READ_SIDE (handle), buffer, status - counter); if (rlen <= 0) { _rmt_shutdown (handle, EIO); return -1; } } return status; } /*-------------------------------------------------------------------------. | Write LENGTH bytes from BUFFER to remote tape connection HANDLE. Return | | the number of bytes written on success, -1 on error. | `-------------------------------------------------------------------------*/ ssize_t rmt_write__ (int handle, char *buffer, size_t length) { char command_buffer[COMMAND_BUFFER_SIZE]; RETSIGTYPE (*pipe_handler) (); sprintf (command_buffer, "W%lu\n", (unsigned long) length); if (do_command (handle, command_buffer) == -1) return -1; pipe_handler = signal (SIGPIPE, SIG_IGN); if (full_write (WRITE_SIDE (handle), buffer, length) == length) { signal (SIGPIPE, pipe_handler); return get_status (handle); } /* Write error. */ signal (SIGPIPE, pipe_handler); _rmt_shutdown (handle, EIO); return -1; } /*------------------------------------------------------------------------. | Perform an imitation lseek operation on remote tape connection HANDLE. | | Return the new file offset if successful, -1 if on error. | `------------------------------------------------------------------------*/ off_t rmt_lseek__ (int handle, off_t offset, int whence) { char command_buffer[COMMAND_BUFFER_SIZE]; char operand_buffer[UINTMAX_STRSIZE_BOUND]; uintmax_t u = offset < 0 ? - (uintmax_t) offset : (uintmax_t) offset; char *p = operand_buffer + sizeof operand_buffer; do *--p = '0' + (int) (u % 10); while ((u /= 10) != 0); if (offset < 0) *--p = '-'; switch (whence) { case SEEK_SET: whence = 0; break; case SEEK_CUR: whence = 1; break; case SEEK_END: whence = 2; break; default: abort (); } sprintf (command_buffer, "L%s\n%d\n", p, whence); if (do_command (handle, command_buffer) == -1) return -1; return get_status_off (handle); } /*-----------------------------------------------------------------------. | Perform a raw tape operation on remote tape connection HANDLE. Return | | the results of the ioctl, or -1 on error. | `-----------------------------------------------------------------------*/ int rmt_ioctl__ (int handle, int operation, char *argument) { switch (operation) { default: errno = EOPNOTSUPP; /* FIXME: errno should be read-only */ return -1; #ifdef MTIOCTOP case MTIOCTOP: { char command_buffer[COMMAND_BUFFER_SIZE]; char operand_buffer[UINTMAX_STRSIZE_BOUND]; uintmax_t u = (((struct mtop *) argument)->mt_count < 0 ? - (uintmax_t) ((struct mtop *) argument)->mt_count : (uintmax_t) ((struct mtop *) argument)->mt_count); char *p = operand_buffer + sizeof operand_buffer; do *--p = '0' + (int) (u % 10); while ((u /= 10) != 0); if (((struct mtop *) argument)->mt_count < 0) *--p = '-'; /* MTIOCTOP is the easy one. Nothing is transfered in binary. */ sprintf (command_buffer, "I%d\n%s\n", ((struct mtop *) argument)->mt_op, p); if (do_command (handle, command_buffer) == -1) return -1; return get_status (handle); } #endif /* MTIOCTOP */ #ifdef MTIOCGET case MTIOCGET: { ssize_t status; ssize_t counter; /* Grab the status and read it directly into the structure. This assumes that the status buffer is not padded and that 2 shorts fit in a long without any word alignment problems; i.e., the whole struct is contiguous. NOTE - this is probably NOT a good assumption. */ if (do_command (handle, "S") == -1 || (status = get_status (handle), status == -1)) return -1; for (; status > 0; status -= counter, argument += counter) { counter = safe_read (READ_SIDE (handle), argument, (size_t) status); if (counter <= 0) { _rmt_shutdown (handle, EIO); return -1; } } /* Check for byte position. mt_type (or mt_model) is a small integer field (normally) so we will check its magnitude. If it is larger than 256, we will assume that the bytes are swapped and go through and reverse all the bytes. */ if (((struct mtget *) argument)->MTIO_CHECK_FIELD < 256) return 0; for (counter = 0; counter < status; counter += 2) { char copy = argument[counter]; argument[counter] = argument[counter + 1]; argument[counter + 1] = copy; } return 0; } #endif /* MTIOCGET */ } } tar-1.13/src/tar.c0000444000176300016070000010337106740565176007456 /* A tar (tape archiver) program. Copyright (C) 1988, 92,93,94,95,96,97, 1999 Free Software Foundation, Inc. Written by John Gilmore, starting 1985-08-25. 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. */ #include "system.h" #include #include #if ! defined SIGCHLD && defined SIGCLD # define SIGCHLD SIGCLD #endif /* The following causes "common.h" to produce definitions of all the global variables, rather than just "extern" declarations of them. GNU tar does depend on the system loader to preset all GLOBAL variables to neutral (or zero) values, explicit initialisation is usually not done. */ #define GLOBAL #include "common.h" #include "xstrtol.h" time_t get_date (); /* Local declarations. */ #ifndef DEFAULT_ARCHIVE # define DEFAULT_ARCHIVE "tar.out" #endif #ifndef DEFAULT_BLOCKING # define DEFAULT_BLOCKING 20 #endif static void usage PARAMS ((int)); /* Miscellaneous. */ /*----------------------------------------------. | Doesn't return if stdin already requested. | `----------------------------------------------*/ /* Name of option using stdin. */ static const char *stdin_used_by = NULL; void request_stdin (const char *option) { if (stdin_used_by) USAGE_ERROR ((0, 0, _("Options `-%s' and `-%s' both want standard input"), stdin_used_by, option)); stdin_used_by = option; } /*--------------------------------------------------------. | Returns true if and only if the user typed 'y' or 'Y'. | `--------------------------------------------------------*/ int confirm (const char *message_action, const char *message_name) { static FILE *confirm_file = NULL; if (!confirm_file) { if (archive == 0 || stdin_used_by) confirm_file = fopen (TTY_NAME, "r"); else { request_stdin ("-w"); confirm_file = stdin; } if (!confirm_file) FATAL_ERROR ((0, 0, _("Cannot read confirmation from user"))); } fprintf (stdlis, "%s %s?", message_action, message_name); fflush (stdlis); { int reply = getc (confirm_file); int character; for (character = reply; character != '\n' && character != EOF; character = getc (confirm_file)) continue; return reply == 'y' || reply == 'Y'; } } /* Options. */ /* For long options that unconditionally set a single flag, we have getopt do it. For the others, we share the code for the equivalent short named option, the name of which is stored in the otherwise-unused `val' field of the `struct option'; for long options that have no equivalent short option, we use non-characters as pseudo short options, starting at CHAR_MAX + 1 and going upwards. */ enum { BACKUP_OPTION = CHAR_MAX + 1, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION, MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION, OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION, RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION, VOLNO_FILE_OPTION, /* Some cleanup is being made in GNU tar long options. Using old names is allowed for a while, but will also send a warning to stderr. Take old names out in 1.14, or in summer 1997, whichever happens last. */ OBSOLETE_ABSOLUTE_NAMES, OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR, OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH, OBSOLETE_VERSION_CONTROL }; /* If nonzero, display usage information and exit. */ static int show_help = 0; /* If nonzero, print the version on standard output and exit. */ static int show_version = 0; struct option long_options[] = { {"absolute-names", no_argument, NULL, 'P'}, {"absolute-paths", no_argument, NULL, OBSOLETE_ABSOLUTE_NAMES}, {"after-date", required_argument, NULL, 'N'}, {"append", no_argument, NULL, 'r'}, {"atime-preserve", no_argument, &atime_preserve_option, 1}, {"backup", optional_argument, NULL, BACKUP_OPTION}, {"block-compress", no_argument, NULL, OBSOLETE_BLOCK_COMPRESS}, {"block-number", no_argument, NULL, 'R'}, {"block-size", required_argument, NULL, OBSOLETE_BLOCKING_FACTOR}, {"blocking-factor", required_argument, NULL, 'b'}, {"catenate", no_argument, NULL, 'A'}, {"checkpoint", no_argument, &checkpoint_option, 1}, {"compare", no_argument, NULL, 'd'}, {"compress", no_argument, NULL, 'Z'}, {"concatenate", no_argument, NULL, 'A'}, {"confirmation", no_argument, NULL, 'w'}, /* FIXME: --selective as a synonym for --confirmation? */ {"create", no_argument, NULL, 'c'}, {"delete", no_argument, NULL, DELETE_OPTION}, {"dereference", no_argument, NULL, 'h'}, {"diff", no_argument, NULL, 'd'}, {"directory", required_argument, NULL, 'C'}, {"exclude", required_argument, NULL, EXCLUDE_OPTION}, {"exclude-from", required_argument, NULL, 'X'}, {"extract", no_argument, NULL, 'x'}, {"file", required_argument, NULL, 'f'}, {"files-from", required_argument, NULL, 'T'}, {"force-local", no_argument, &force_local_option, 1}, {"get", no_argument, NULL, 'x'}, {"group", required_argument, NULL, GROUP_OPTION}, {"gunzip", no_argument, NULL, 'z'}, {"gzip", no_argument, NULL, 'z'}, {"help", no_argument, &show_help, 1}, {"ignore-failed-read", no_argument, &ignore_failed_read_option, 1}, {"ignore-zeros", no_argument, NULL, 'i'}, /* FIXME: --ignore-end as a new name for --ignore-zeros? */ {"incremental", no_argument, NULL, 'G'}, {"info-script", required_argument, NULL, 'F'}, {"interactive", no_argument, NULL, 'w'}, {"keep-old-files", no_argument, NULL, 'k'}, {"label", required_argument, NULL, 'V'}, {"list", no_argument, NULL, 't'}, {"listed-incremental", required_argument, NULL, 'g'}, {"mode", required_argument, NULL, MODE_OPTION}, {"modification-time", no_argument, NULL, OBSOLETE_TOUCH}, {"multi-volume", no_argument, NULL, 'M'}, {"new-volume-script", required_argument, NULL, 'F'}, {"newer", required_argument, NULL, 'N'}, {"newer-mtime", required_argument, NULL, NEWER_MTIME_OPTION}, {"null", no_argument, NULL, NULL_OPTION}, {"no-recursion", no_argument, NULL, NO_RECURSE_OPTION}, {"numeric-owner", no_argument, &numeric_owner_option, 1}, {"old-archive", no_argument, NULL, 'o'}, {"one-file-system", no_argument, NULL, 'l'}, {"owner", required_argument, NULL, OWNER_OPTION}, {"portability", no_argument, NULL, 'o'}, {"posix", no_argument, NULL, POSIX_OPTION}, {"preserve", no_argument, NULL, PRESERVE_OPTION}, {"preserve-order", no_argument, NULL, 's'}, {"preserve-permissions", no_argument, NULL, 'p'}, {"recursive-unlink", no_argument, &recursive_unlink_option, 1}, {"read-full-blocks", no_argument, NULL, OBSOLETE_READ_FULL_RECORDS}, {"read-full-records", no_argument, NULL, 'B'}, /* FIXME: --partial-blocks might be a synonym for --read-full-records? */ {"record-number", no_argument, NULL, OBSOLETE_BLOCK_NUMBER}, {"record-size", required_argument, NULL, RECORD_SIZE_OPTION}, {"remove-files", no_argument, &remove_files_option, 1}, {"rsh-command", required_argument, NULL, RSH_COMMAND_OPTION}, {"same-order", no_argument, NULL, 's'}, {"same-owner", no_argument, &same_owner_option, 1}, {"same-permissions", no_argument, NULL, 'p'}, {"show-omitted-dirs", no_argument, &show_omitted_dirs_option, 1}, {"sparse", no_argument, NULL, 'S'}, {"starting-file", required_argument, NULL, 'K'}, {"suffix", required_argument, NULL, SUFFIX_OPTION}, {"tape-length", required_argument, NULL, 'L'}, {"to-stdout", no_argument, NULL, 'O'}, {"totals", no_argument, &totals_option, 1}, {"touch", no_argument, NULL, 'm'}, {"uncompress", no_argument, NULL, 'Z'}, {"ungzip", no_argument, NULL, 'z'}, {"unlink-first", no_argument, NULL, 'U'}, {"update", no_argument, NULL, 'u'}, {"use-compress-program", required_argument, NULL, USE_COMPRESS_PROGRAM_OPTION}, {"verbose", no_argument, NULL, 'v'}, {"verify", no_argument, NULL, 'W'}, {"version", no_argument, &show_version, 1}, {"version-control", required_argument, NULL, OBSOLETE_VERSION_CONTROL}, {"volno-file", required_argument, NULL, VOLNO_FILE_OPTION}, {0, 0, 0, 0} }; /*---------------------------------------------. | Print a usage message and exit with STATUS. | `---------------------------------------------*/ static void usage (int status) { if (status != TAREXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else { fputs (_("\ GNU `tar' saves many files together into a single tape or disk archive, and\n\ can restore individual files from the archive.\n"), stdout); printf (_("\nUsage: %s [OPTION]... [FILE]...\n"), program_name); 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"), stdout); fputs(_("\ \n\ Main operation mode:\n\ -t, --list list the contents of an archive\n\ -x, --extract, --get extract files from an archive\n\ -c, --create create a new archive\n\ -d, --diff, --compare find differences between archive and file system\n\ -r, --append append files to the end of an archive\n\ -u, --update only append files newer than copy in archive\n\ -A, --catenate append tar files to an archive\n\ --concatenate same as -A\n\ --delete delete from the archive (not on mag tapes!)\n"), stdout); fputs (_("\ \n\ Operation modifiers:\n\ -W, --verify attempt to verify the archive after writing it\n\ --remove-files remove files after adding them to the archive\n\ -k, --keep-old-files don't overwrite existing files when extracting\n\ -U, --unlink-first remove each file prior to extracting over it\n\ --recursive-unlink empty hierarchies prior to extracting directory\n\ -S, --sparse handle sparse files efficiently\n\ -O, --to-stdout extract files to standard output\n\ -G, --incremental handle old GNU-format incremental backup\n\ -g, --listed-incremental handle new GNU-format incremental backup\n\ --ignore-failed-read do not exit with nonzero on unreadable files\n"), stdout); fputs (_("\ \n\ Handling of file attributes:\n\ --owner=NAME force NAME as owner for added files\n\ --group=NAME force NAME as group for added files\n\ --mode=CHANGES force (symbolic) mode CHANGES for added files\n\ --atime-preserve don't change access times on dumped files\n\ -m, --modification-time don't extract file modified time\n\ --same-owner try extracting files with the same ownership\n\ --numeric-owner always use numbers for user/group names\n\ -p, --same-permissions extract all protection information\n\ --preserve-permissions same as -p\n\ -s, --same-order sort names to extract to match archive\n\ --preserve-order same as -s\n\ --preserve same as both -p and -s\n"), stdout); fputs (_("\ \n\ Device selection and switching:\n\ -f, --file=ARCHIVE use archive file or device ARCHIVE\n\ --force-local archive file is local even if has a colon\n\ --rsh-command=COMMAND use remote COMMAND instead of rsh\n\ -[0-7][lmh] specify drive and density\n\ -M, --multi-volume create/list/extract multi-volume archive\n\ -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n\ -F, --info-script=FILE run script at end of each tape (implies -M)\n\ --new-volume-script=FILE same as -F FILE\n\ --volno-file=FILE use/update the volume number in FILE\n"), stdout); fputs (_("\ \n\ Device blocking:\n\ -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n\ --record-size=SIZE SIZE bytes per record, multiple of 512\n\ -i, --ignore-zeros ignore zeroed blocks in archive (means EOF)\n\ -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n"), stdout); fputs (_("\ \n\ Archive format selection:\n\ -V, --label=NAME create archive with volume name NAME\n\ PATTERN at list/extract time, a globbing PATTERN\n\ -o, --old-archive, --portability write a V7 format archive\n\ --posix write a POSIX conformant archive\n\ -z, --gzip, --ungzip filter the archive through gzip\n\ -Z, --compress, --uncompress filter the archive through compress\n\ --use-compress-program=PROG filter through PROG (must accept -d)\n"), stdout); fputs (_("\ \n\ Local file selection:\n\ -C, --directory=DIR change to directory DIR\n\ -T, --files-from=NAME get names to extract or create from file NAME\n\ --null -T reads null-terminated names, disable -C\n\ --exclude=PATTERN exclude files, given as a globbing PATTERN\n\ -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n\ -P, --absolute-names don't strip leading `/'s from file names\n\ -h, --dereference dump instead the files symlinks point to\n\ --no-recursion avoid descending automatically in directories\n\ -l, --one-file-system stay in local file system when creating archive\n\ -K, --starting-file=NAME begin at file NAME in the archive\n"), stdout); #if !MSDOS fputs (_("\ -N, --newer=DATE only store files newer than DATE\n\ --newer-mtime compare date and time when data changed only\n\ --after-date=DATE same as -N\n"), stdout); #endif fputs (_("\ --backup[=CONTROL] backup before removal, choose version control\n\ --suffix=SUFFIX backup before removel, override usual suffix\n"), stdout); fputs (_("\ \n\ Informative output:\n\ --help print this help, then exit\n\ --version print tar program version number, then exit\n\ -v, --verbose verbosely list files processed\n\ --checkpoint print directory names while reading the archive\n\ --totals print total bytes written while creating archive\n\ -R, --block-number show block number within archive with each message\n\ -w, --interactive ask for confirmation for every action\n\ --confirmation same as -w\n"), stdout); 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\ t, numbered make numbered backups\n\ nil, existing numbered if numbered backups exist, simple otherwise\n\ never, simple always make simple backups\n"), stdout); 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"), DEFAULT_ARCHIVE, DEFAULT_BLOCKING); fputs (_("\ \n\ Report bugs to .\n"), stdout); } exit (status); } /*----------------------------. | Parse the options for tar. | `----------------------------*/ /* Available option letters are DEHIJQY and aejnqy. Some are reserved: y per-file gzip compression Y per-block gzip compression */ #define OPTION_STRING \ "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz" static void set_subcommand_option (enum subcommand subcommand) { if (subcommand_option != UNKNOWN_SUBCOMMAND && subcommand_option != subcommand) USAGE_ERROR ((0, 0, _("You may not specify more than one `-Acdtrux' option"))); subcommand_option = subcommand; } static void set_use_compress_program_option (const char *string) { if (use_compress_program_option && strcmp (use_compress_program_option, string) != 0) USAGE_ERROR ((0, 0, _("Conflicting compression options"))); use_compress_program_option = string; } static void decode_options (int argc, char *const *argv) { int optchar; /* option letter */ int input_files; /* number of input files */ const char *backup_suffix_string; const char *version_control_string = NULL; /* Set some default option values. */ subcommand_option = UNKNOWN_SUBCOMMAND; archive_format = DEFAULT_FORMAT; blocking_factor = DEFAULT_BLOCKING; record_size = DEFAULT_BLOCKING * BLOCKSIZE; excluded = new_exclude (); owner_option = -1; group_option = -1; backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX"); /* Convert old-style tar call by exploding option element and rearranging options accordingly. */ if (argc > 1 && argv[1][0] != '-') { int new_argc; /* argc value for rearranged arguments */ char **new_argv; /* argv value for rearranged arguments */ char *const *in; /* cursor into original argv */ char **out; /* cursor into rearranged argv */ const char *letter; /* cursor into old option letters */ char buffer[3]; /* constructed option buffer */ const char *cursor; /* cursor in OPTION_STRING */ /* Initialize a constructed option. */ buffer[0] = '-'; buffer[2] = '\0'; /* Allocate a new argument array, and copy program name in it. */ new_argc = argc - 1 + strlen (argv[1]); new_argv = (char **) xmalloc (new_argc * sizeof (char *)); in = argv; out = new_argv; *out++ = *in++; /* Copy each old letter option as a separate option, and have the corresponding argument moved next to it. */ for (letter = *in++; *letter; letter++) { buffer[1] = *letter; *out++ = xstrdup (buffer); cursor = strchr (OPTION_STRING, *letter); if (cursor && cursor[1] == ':') { if (in < argv + argc) *out++ = *in++; else USAGE_ERROR ((0, 0, _("Old option `%c' requires an argument."), *letter)); } } /* Copy all remaining options. */ while (in < argv + argc) *out++ = *in++; /* Replace the old option list by the new one. */ argc = new_argc; argv = new_argv; } /* Parse all options and non-options as they appear. */ input_files = 0; while (optchar = getopt_long (argc, argv, OPTION_STRING, long_options, NULL), optchar != EOF) switch (optchar) { case '?': usage (TAREXIT_FAILURE); case 0: break; case 1: /* File name or non-parsed option, because of RETURN_IN_ORDER ordering triggerred by the leading dash in OPTION_STRING. */ name_add (optarg); input_files++; break; case 'A': set_subcommand_option (CAT_SUBCOMMAND); break; case OBSOLETE_BLOCK_COMPRESS: WARN ((0, 0, _("Obsolete option, now implied by --blocking-factor"))); break; case OBSOLETE_BLOCKING_FACTOR: WARN ((0, 0, _("Obsolete option name replaced by --blocking-factor"))); /* Fall through. */ case 'b': { long l; if (! (xstrtol (optarg, (char **) 0, 10, &l, "") == LONGINT_OK && l == (blocking_factor = l) && 0 < blocking_factor && l == (record_size = l * (size_t) BLOCKSIZE) / BLOCKSIZE)) USAGE_ERROR ((0, 0, _("Invalid blocking factor"))); } break; case OBSOLETE_READ_FULL_RECORDS: WARN ((0, 0, _("Obsolete option name replaced by --read-full-records"))); /* Fall through. */ case 'B': /* Try to reblock input records. For reading 4.2BSD pipes. */ /* It would surely make sense to exchange -B and -R, but it seems that -B has been used for a long while in Sun tar ans most BSD-derived systems. This is a consequence of the block/record terminology confusion. */ read_full_records_option = 1; break; case 'c': set_subcommand_option (CREATE_SUBCOMMAND); break; case 'C': name_add ("-C"); name_add (optarg); break; case 'd': set_subcommand_option (DIFF_SUBCOMMAND); break; case 'f': if (archive_names == allocated_archive_names) { allocated_archive_names *= 2; archive_name_array = (const char **) xrealloc (archive_name_array, sizeof (const char *) * allocated_archive_names); } archive_name_array[archive_names++] = optarg; break; case 'F': /* Since -F is only useful with -M, make it implied. Run this script at the end of each tape. */ info_script_option = optarg; multi_volume_option = 1; break; case 'g': listed_incremental_option = optarg; /* Fall through. */ case 'G': /* We are making an incremental dump (FIXME: are we?); save directories at the beginning of the archive, and include in each directory its contents. */ incremental_option = 1; break; case 'h': /* Follow symbolic links. */ dereference_option = 1; break; case 'i': /* Ignore zero blocks (eofs). This can't be the default, because Unix tar writes two blocks of zeros, then pads out the record with garbage. */ ignore_zeros_option = 1; break; case 'k': /* Don't overwrite existing files. */ keep_old_files_option = 1; break; case 'K': starting_file_option = 1; addname (optarg); break; case 'l': /* When dumping directories, don't dump files/subdirectories that are on other filesystems. */ one_file_system_option = 1; break; case 'L': { unsigned long u; if (xstrtoul (optarg, (char **) 0, 10, &u, "") != LONG_MAX) USAGE_ERROR ((0, 0, _("Invalid tape length"))); clear_tarlong (tape_length_option); add_to_tarlong (tape_length_option, u); mult_tarlong (tape_length_option, 1024); multi_volume_option = 1; } break; case OBSOLETE_TOUCH: WARN ((0, 0, _("Obsolete option name replaced by --touch"))); /* Fall through. */ case 'm': touch_option = 1; break; case 'M': /* Make multivolume archive: when we can't write any more into the archive, re-open it, and continue writing. */ multi_volume_option = 1; break; #if !MSDOS case 'N': after_date_option = 1; /* Fall through. */ case NEWER_MTIME_OPTION: if (newer_mtime_option) USAGE_ERROR ((0, 0, _("More than one threshold date"))); newer_mtime_option = get_date (optarg, (voidstar) 0); if (newer_mtime_option == (time_t) -1) USAGE_ERROR ((0, 0, _("Invalid date format `%s'"), optarg)); break; #endif /* not MSDOS */ case 'o': if (archive_format == DEFAULT_FORMAT) archive_format = V7_FORMAT; else if (archive_format != V7_FORMAT) USAGE_ERROR ((0, 0, _("Conflicting archive format options"))); break; case 'O': to_stdout_option = 1; break; case 'p': same_permissions_option = 1; break; case OBSOLETE_ABSOLUTE_NAMES: WARN ((0, 0, _("Obsolete option name replaced by --absolute-names"))); /* Fall through. */ case 'P': absolute_names_option = 1; break; case 'r': set_subcommand_option (APPEND_SUBCOMMAND); break; case OBSOLETE_BLOCK_NUMBER: WARN ((0, 0, _("Obsolete option name replaced by --block-number"))); /* Fall through. */ case 'R': /* Print block numbers for debugging bad tar archives. */ /* It would surely make sense to exchange -B and -R, but it seems that -B has been used for a long while in Sun tar ans most BSD-derived systems. This is a consequence of the block/record terminology confusion. */ block_number_option = 1; break; case 's': /* Names to extr are sorted. */ same_order_option = 1; break; case 'S': sparse_option = 1; break; case 't': set_subcommand_option (LIST_SUBCOMMAND); verbose_option++; break; case 'T': files_from_option = optarg; break; case 'u': set_subcommand_option (UPDATE_SUBCOMMAND); break; case 'U': unlink_first_option = 1; break; case 'v': verbose_option++; break; case 'V': volume_label_option = optarg; break; case 'w': interactive_option = 1; break; case 'W': verify_option = 1; break; case 'x': set_subcommand_option (EXTRACT_SUBCOMMAND); break; case 'X': if (add_exclude_file (excluded, optarg, '\n') != 0) FATAL_ERROR ((0, errno, "%s", optarg)); break; case 'z': set_use_compress_program_option ("gzip"); break; case 'Z': set_use_compress_program_option ("compress"); break; case OBSOLETE_VERSION_CONTROL: WARN ((0, 0, _("Obsolete option name replaced by --backup"))); /* Fall through. */ case BACKUP_OPTION: backup_option = 1; if (optarg) version_control_string = optarg; break; case DELETE_OPTION: set_subcommand_option (DELETE_SUBCOMMAND); break; case EXCLUDE_OPTION: add_exclude (excluded, optarg); break; case GROUP_OPTION: if (! (strlen (optarg) < GNAME_FIELD_SIZE && gname_to_gid (optarg, &group_option))) { uintmax_t g; if (xstrtoumax (optarg, (char **) 0, 10, &g, "") == LONGINT_OK && g == (gid_t) g) group_option = g; else ERROR ((TAREXIT_FAILURE, 0, _("Invalid group given on option"))); } break; case MODE_OPTION: mode_option = mode_compile (optarg, MODE_MASK_EQUALS | MODE_MASK_PLUS | MODE_MASK_MINUS); if (mode_option == MODE_INVALID) ERROR ((TAREXIT_FAILURE, 0, _("Invalid mode given on option"))); if (mode_option == MODE_MEMORY_EXHAUSTED) ERROR ((TAREXIT_FAILURE, 0, _("Memory exhausted"))); break; case NO_RECURSE_OPTION: no_recurse_option = 1; break; case NULL_OPTION: filename_terminator = '\0'; break; case OWNER_OPTION: if (! (strlen (optarg) < UNAME_FIELD_SIZE && uname_to_uid (optarg, &owner_option))) { uintmax_t u; if (xstrtoumax (optarg, (char **) 0, 10, &u, "") == LONGINT_OK && u == (uid_t) u) owner_option = u; else ERROR ((TAREXIT_FAILURE, 0, _("Invalid owner given on option"))); } break; case POSIX_OPTION: #if OLDGNU_COMPATIBILITY if (archive_format == DEFAULT_FORMAT) archive_format = GNU_FORMAT; else if (archive_format != GNU_FORMAT) USAGE_ERROR ((0, 0, _("Conflicting archive format options"))); #else if (archive_format == DEFAULT_FORMAT) archive_format = POSIX_FORMAT; else if (archive_format != POSIX_FORMAT) USAGE_ERROR ((0, 0, _("Conflicting archive format options"))); #endif break; case PRESERVE_OPTION: same_permissions_option = 1; same_order_option = 1; break; case RECORD_SIZE_OPTION: { uintmax_t u; if (! (xstrtoumax (optarg, (char **) 0, 10, &u, "") == LONG_MAX && u == (size_t) u)) USAGE_ERROR ((0, 0, _("Invalid record size"))); record_size = u; if (record_size % BLOCKSIZE != 0) USAGE_ERROR ((0, 0, _("Record size must be a multiple of %d."), BLOCKSIZE)); blocking_factor = record_size / BLOCKSIZE; } break; case RSH_COMMAND_OPTION: rsh_command_option = optarg; break; case SUFFIX_OPTION: backup_option = 1; backup_suffix_string = optarg; break; case VOLNO_FILE_OPTION: volno_file_option = optarg; break; case USE_COMPRESS_PROGRAM_OPTION: set_use_compress_program_option (optarg); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': #ifdef DEVICE_PREFIX { int device = optchar - '0'; int density; static char buf[sizeof DEVICE_PREFIX + 10]; char *cursor; density = getopt_long (argc, argv, "lmh", NULL, NULL); strcpy (buf, DEVICE_PREFIX); cursor = buf + strlen (buf); #ifdef DENSITY_LETTER sprintf (cursor, "%d%c", device, density); #else /* not DENSITY_LETTER */ switch (density) { case 'l': #ifdef LOW_NUM device += LOW_NUM; #endif break; case 'm': #ifdef MID_NUM device += MID_NUM; #else device += 8; #endif break; case 'h': #ifdef HGH_NUM device += HGH_NUM; #else device += 16; #endif break; default: usage (TAREXIT_FAILURE); } sprintf (cursor, "%d", device); #endif /* not DENSITY_LETTER */ if (archive_names == allocated_archive_names) { allocated_archive_names *= 2; archive_name_array = (const char **) xrealloc (archive_name_array, sizeof (const char *) * allocated_archive_names); } archive_name_array[archive_names++] = buf; /* FIXME: How comes this works for many archives when buf is not xstrdup'ed? */ } break; #else /* not DEVICE_PREFIX */ USAGE_ERROR ((0, 0, _("Options `-[0-7][lmh]' not supported by *this* tar"))); #endif /* not DEVICE_PREFIX */ } /* Process trivial options. */ if (show_version) { printf ("tar (GNU %s) %s\n", PACKAGE, VERSION); fputs (_("\ \n\ Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.\n"), stdout); 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"), stdout); fputs (_("\ \n\ Written by John Gilmore and Jay Fenlason.\n"), stdout); exit (TAREXIT_SUCCESS); } if (show_help) usage (TAREXIT_SUCCESS); /* Derive option values and check option consistency. */ if (archive_format == DEFAULT_FORMAT) { #if OLDGNU_COMPATIBILITY archive_format = OLDGNU_FORMAT; #else archive_format = GNU_FORMAT; #endif } if (archive_format == GNU_FORMAT && getenv ("POSIXLY_CORRECT")) archive_format = POSIX_FORMAT; if ((volume_label_option != NULL || incremental_option || multi_volume_option || sparse_option) && archive_format != OLDGNU_FORMAT && archive_format != GNU_FORMAT) USAGE_ERROR ((0, 0, _("GNU features wanted on incompatible archive format"))); if (archive_names == 0) { /* If no archive file name given, try TAPE from the environment, or else, DEFAULT_ARCHIVE from the configuration process. */ archive_names = 1; archive_name_array[0] = getenv ("TAPE"); if (archive_name_array[0] == NULL) archive_name_array[0] = DEFAULT_ARCHIVE; } /* Allow multiple archives only with `-M'. */ if (archive_names > 1 && !multi_volume_option) USAGE_ERROR ((0, 0, _("Multiple archive files requires `-M' option"))); /* If ready to unlink hierarchies, so we are for simpler files. */ if (recursive_unlink_option) unlink_first_option = 1; /* Forbid using -c with no input files whatsoever. Check that `-f -', explicit or implied, is used correctly. */ switch (subcommand_option) { case CREATE_SUBCOMMAND: if (input_files == 0 && !files_from_option) USAGE_ERROR ((0, 0, _("Cowardly refusing to create an empty archive"))); break; case EXTRACT_SUBCOMMAND: case LIST_SUBCOMMAND: case DIFF_SUBCOMMAND: for (archive_name_cursor = archive_name_array; archive_name_cursor < archive_name_array + archive_names; archive_name_cursor++) if (!strcmp (*archive_name_cursor, "-")) request_stdin ("-f"); break; case CAT_SUBCOMMAND: case UPDATE_SUBCOMMAND: case APPEND_SUBCOMMAND: for (archive_name_cursor = archive_name_array; archive_name_cursor < archive_name_array + archive_names; archive_name_cursor++) if (!strcmp (*archive_name_cursor, "-")) USAGE_ERROR ((0, 0, _("Options `-Aru' are incompatible with `-f -'"))); default: break; } archive_name_cursor = archive_name_array; /* Prepare for generating backup names. */ if (backup_suffix_string) simple_backup_suffix = xstrdup (backup_suffix_string); if (backup_option) backup_type = xget_version ("--backup", version_control_string); } /* Tar proper. */ /*-----------------------. | Main routine for tar. | `-----------------------*/ int main (int argc, char *const *argv) { program_name = argv[0]; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); exit_status = TAREXIT_SUCCESS; filename_terminator = '\n'; /* Pre-allocate a few structures. */ allocated_archive_names = 10; archive_name_array = (const char **) xmalloc (sizeof (const char *) * allocated_archive_names); archive_names = 0; #ifdef SIGCHLD /* System V fork+wait does not work if SIGCHLD is ignored. */ signal (SIGCHLD, SIG_DFL); #endif init_names (); /* Decode options. */ decode_options (argc, argv); name_init (argc, argv); /* Main command execution. */ if (volno_file_option) init_volume_number (); switch (subcommand_option) { case UNKNOWN_SUBCOMMAND: USAGE_ERROR ((0, 0, _("You must specify one of the `-Acdtrux' options"))); case CAT_SUBCOMMAND: case UPDATE_SUBCOMMAND: case APPEND_SUBCOMMAND: update_archive (); break; case DELETE_SUBCOMMAND: delete_archive_members (); break; case CREATE_SUBCOMMAND: if (totals_option) init_total_written (); create_archive (); name_close (); if (totals_option) print_total_written (); break; case EXTRACT_SUBCOMMAND: extr_init (); read_and (extract_archive); break; case LIST_SUBCOMMAND: read_and (list_archive); break; case DIFF_SUBCOMMAND: diff_init (); read_and (diff_archive); break; } if (volno_file_option) closeout_volume_number (); /* Dispose of allocated memory, and return. */ free (archive_name_array); name_term (); if (exit_status == TAREXIT_FAILURE) error (0, 0, _("Error exit delayed from previous errors")); exit (exit_status); } tar-1.13/src/update.c0000444000176300016070000001320206740045610010125 /* Update a tar archive. Copyright (C) 1988, 1992, 1994, 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. */ /* Implement the 'r', 'u' and 'A' options for tar. 'A' means that the file names are tar files, and they should simply be appended to the end of the archive. No attempt is made to record the reads from the args; if they're on raw tape or something like that, it'll probably lose... */ #include "system.h" #include "common.h" /* FIXME: This module should not directly handle the following variable, instead, this should be done in buffer.c only. */ extern union block *current_block; /* We've hit the end of the old stuff, and its time to start writing new stuff to the tape. This involves seeking back one record and re-writing the current record (which has been changed). */ int time_to_start_writing = 0; /* Pointer to where we started to write in the first record we write out. This is used if we can't backspace the output and have to null out the first part of the record. */ char *output_start; /*------------------------------------------------------------------------. | Catenate file PATH to the archive without creating a header for it. It | | had better be a tar file or the archive is screwed. | `------------------------------------------------------------------------*/ static void append_file (char *path) { int handle; struct stat stat_data; off_t bytes_left; if (stat (path, &stat_data) != 0 || (handle = open (path, O_RDONLY | O_BINARY), handle < 0)) { ERROR ((0, errno, _("Cannot open file %s"), path)); return; } bytes_left = stat_data.st_size; while (bytes_left > 0) { union block *start = find_next_block (); size_t buffer_size = available_space_after (start); ssize_t status; if (bytes_left < buffer_size) { buffer_size = bytes_left; status = buffer_size % BLOCKSIZE; if (status) memset (start->buffer + bytes_left, 0, (size_t) (BLOCKSIZE - status)); } status = safe_read (handle, start->buffer, buffer_size); if (status < 0) { char buf[UINTMAX_STRSIZE_BOUND]; FATAL_ERROR ((0, errno, _("Read error at byte %s reading %lu bytes in file %s"), STRINGIFY_BIGINT (stat_data.st_size - bytes_left, buf), (unsigned long) buffer_size, path)); } bytes_left -= status; set_next_block_after (start + (status - 1) / BLOCKSIZE); if (status != buffer_size) { char buf[UINTMAX_STRSIZE_BOUND]; FATAL_ERROR ((0, 0, _("%s: File shrunk by %s bytes, (yark!)"), path, STRINGIFY_BIGINT (bytes_left, buf))); } } close (handle); } /*-----------------------------------------------------------------------. | 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. | `-----------------------------------------------------------------------*/ void update_archive (void) { enum read_header previous_status = HEADER_STILL_UNREAD; int found_end = 0; name_gather (); if (subcommand_option == UPDATE_SUBCOMMAND) name_expand (); open_archive (ACCESS_UPDATE); while (!found_end) { enum read_header status = read_header (); switch (status) { case HEADER_STILL_UNREAD: abort (); case HEADER_SUCCESS: { struct name *name; if (subcommand_option == UPDATE_SUBCOMMAND && (name = name_scan (current_file_name), name)) { struct stat stat_data; enum archive_format unused; decode_header (current_header, ¤t_stat, &unused, 0); if (stat (current_file_name, &stat_data) < 0) ERROR ((0, errno, _("Cannot stat %s"), current_file_name)); else if (current_stat.st_mtime >= stat_data.st_mtime) name->found = 1; } set_next_block_after (current_header); if (current_header->oldgnu_header.isextended) skip_extended_headers (); skip_file (current_stat.st_size); break; } case HEADER_ZERO_BLOCK: current_block = current_header; found_end = 1; break; case HEADER_END_OF_FILE: found_end = 1; break; case HEADER_FAILURE: set_next_block_after (current_header); switch (previous_status) { case HEADER_STILL_UNREAD: WARN ((0, 0, _("This does not look like a tar archive"))); /* Fall through. */ case HEADER_SUCCESS: case HEADER_ZERO_BLOCK: ERROR ((0, 0, _("Skipping to next header"))); /* Fall through. */ case HEADER_FAILURE: break; case HEADER_END_OF_FILE: abort (); } break; } previous_status = status; } reset_eof (); time_to_start_writing = 1; output_start = current_block->buffer; { char *path; while (path = name_from_list (), path) { if (interactive_option && !confirm ("add", path)) continue; if (subcommand_option == CAT_SUBCOMMAND) append_file (path); else dump_file (path, (dev_t) -1, 1); } } write_eot (); close_archive (); names_notfound (); } tar-1.13/src/arith.h0000444000176300016070000001035206426226517007772 /* Simple arithmetic for numbers greater than a unsigned long, for GNU tar. Copyright (C) 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. */ /* Also, see comments at beginning of arith.c. */ #define BITS_PER_BYTE 8 /* number of bits in each sizeof unit */ #define BITS_PER_TARLONG 42 /* wanted number of bits in each tarlong */ /* In all cases, tarlong is the proper type for a big number. For simulated arithmetic, SUPERDIGIT is the base, TARLONG_FORMAT is the format to print a single super-digit filled with zeroes to the left, and BITS_PER_SUPERDIGIT is the smallest number of bits required to fully represent each super-digit. LONGS_PER_TARLONG says how many longs are required for a full tarlong, and SIZEOF_TARLONG is the size of a tarlong in bytes. For straight compiler arithmetic, SUPERDIGIT is zero and TARLONG_FORMAT is the format to directly print a tarlong (without zero-filling). The values of SIZEOF_LONG_LONG and SIZEOF_UNSIGNED_LONG, below, are obtained through the configuration process. */ #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 #if SUPERDIGIT # define LONGS_PER_TARLONG \ ((BITS_PER_TARLONG + BITS_PER_SUPERDIGIT - 1) / BITS_PER_SUPERDIGIT) # define SIZEOF_TARLONG (LONGS_PER_TARLONG * sizeof (unsigned long)) /* The NEC EWS 4.2 C compiler gets confused by a pointer to a typedef that is an array. So we wrap the array into a struct. (Pouah!) */ struct tarlong { unsigned long digit[LONGS_PER_TARLONG]; }; typedef struct tarlong tarlong; 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 *)); # define zerop_tarlong(Accumulator) \ zerop_tarlong_helper (&(Accumulator).digit[0]) # define lessp_tarlong(First, Second) \ lessp_tarlong_helper (&(First).digit[0], &(Second).digit[0]) # define clear_tarlong(Accumulator) \ clear_tarlong_helper (&(Accumulator).digit[0]) # define add_to_tarlong(Accumulator, Value) \ add_to_tarlong_helper (&(Accumulator).digit[0], (unsigned long) (Value)) # define mult_tarlong(Accumulator, Value) \ mult_tarlong_helper (&(Accumulator).digit[0], (unsigned long) (Value)) # define print_tarlong(Accumulator, File) \ print_tarlong_helper (&(Accumulator).digit[0], (File)) #else /* not SUPERDIGIT */ # define zerop_tarlong(Accumulator) \ ((Accumulator) == 0) # define lessp_tarlong(First, Second) \ ((First) < (Second)) # define clear_tarlong(Accumulator) \ ((Accumulator) = 0) # define add_to_tarlong(Accumulator, Value) \ ((Accumulator) += (Value)) # define mult_tarlong(Accumulator, Value) \ ((Accumulator) *= (Value)) # define print_tarlong(Accumulator, File) \ (fprintf ((File), TARLONG_FORMAT, (Accumulator))) #endif /* not SUPERDIGIT */ tar-1.13/src/common.h0000444000176300016070000003723406740567242010165 /* Common declarations for the tar program. Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 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. */ /* Declare the GNU tar archive format. */ #include "tar.h" /* The checksum field is filled with this while the checksum is computed. */ #define CHKBLANKS " " /* 8 blanks, no null */ /* 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 /* Some various global definitions. */ /* Name of file to use for interacting with user. */ #if MSDOS # define TTY_NAME "con" #else # define TTY_NAME "/dev/tty" #endif /* GLOBAL is defined to empty in `tar.c' only, and left alone in other `*.c' modules. Here, we merely set it to "extern" if it is not already set. GNU tar does depend on the system loader to preset all GLOBAL variables to neutral (or zero) values, explicit initialisation is usually not done. */ #ifndef GLOBAL # define GLOBAL extern #endif /* Exit status for GNU tar. Let's try to keep this list as simple as possible. -d option strongly invites a status different for unequal comparison and other errors. */ GLOBAL int exit_status; #define TAREXIT_SUCCESS 0 #define TAREXIT_DIFFERS 1 #define TAREXIT_FAILURE 2 /* Both WARN and ERROR write a message on stderr and continue processing, however ERROR manages so tar will exit unsuccessfully. FATAL_ERROR writes a message on stderr and aborts immediately, with another message line telling so. USAGE_ERROR works like FATAL_ERROR except that the other message line suggests trying --help. All four macros accept a single argument of the form ((0, errno, _("FORMAT"), Args...)). `errno' is `0' when the error is not being detected by the system. */ #define WARN(Args) \ error Args #define ERROR(Args) \ (error Args, exit_status = TAREXIT_FAILURE) #define FATAL_ERROR(Args) \ (error Args, error (TAREXIT_FAILURE, 0, \ _("Error is not recoverable: exiting now")), 0) #define USAGE_ERROR(Args) \ (error Args, usage (TAREXIT_FAILURE), 0) /* Information gleaned from the command line. */ #include "arith.h" #include "backupfile.h" #include "basename.h" #include "exclude.h" #include "modechange.h" #include "safe-read.h" /* Name of this program. */ GLOBAL const char *program_name; /* Main command option. */ enum subcommand { UNKNOWN_SUBCOMMAND, /* none of the following */ APPEND_SUBCOMMAND, /* -r */ CAT_SUBCOMMAND, /* -A */ CREATE_SUBCOMMAND, /* -c */ DELETE_SUBCOMMAND, /* -D */ DIFF_SUBCOMMAND, /* -d */ EXTRACT_SUBCOMMAND, /* -x */ LIST_SUBCOMMAND, /* -t */ UPDATE_SUBCOMMAND /* -u */ }; GLOBAL enum subcommand subcommand_option; /* Selected format for output archive. */ GLOBAL enum archive_format archive_format; /* Either NL or NUL, as decided by the --null option. */ GLOBAL char filename_terminator; /* Size of each record, once in blocks, once in bytes. Those two variables are always related, the second being BLOCKSIZE times the first. They do not have _option in their name, even if their values is derived from option decoding, as these are especially important in tar. */ GLOBAL int blocking_factor; GLOBAL size_t record_size; /* Boolean value. */ GLOBAL int absolute_names_option; /* This variable tells how to interpret newer_mtime_option, below. If zero, files get archived if their mtime is not less than newer_mtime_option. If nonzero, files get archived if *either* their ctime or mtime is not less than newer_mtime_option. */ GLOBAL int after_date_option; /* Boolean value. */ GLOBAL int atime_preserve_option; /* Boolean value. */ GLOBAL int backup_option; /* Type of backups being made. */ GLOBAL enum backup_type backup_type; /* Boolean value. */ GLOBAL int block_number_option; /* Boolean value. */ GLOBAL int checkpoint_option; /* Specified name of compression program, or "gzip" as implied by -z. */ GLOBAL const char *use_compress_program_option; /* Boolean value. */ GLOBAL int dereference_option; /* Patterns that match file names to be excluded. */ GLOBAL struct exclude *excluded; /* Specified file containing names to work on. */ GLOBAL const char *files_from_option; /* Boolean value. */ GLOBAL int force_local_option; /* Specified value to be put into tar file in place of stat () results, or just -1 if such an override should not take place. */ GLOBAL gid_t group_option; /* Boolean value. */ GLOBAL int ignore_failed_read_option; /* Boolean value. */ GLOBAL int ignore_zeros_option; /* Boolean value. */ GLOBAL int incremental_option; /* Specified name of script to run at end of each tape change. */ GLOBAL const char *info_script_option; /* Boolean value. */ GLOBAL int interactive_option; /* Boolean value. */ GLOBAL int keep_old_files_option; /* Specified file name for incremental list. */ GLOBAL const char *listed_incremental_option; /* Specified mode change string. */ GLOBAL struct mode_change *mode_option; /* Boolean value. */ GLOBAL int multi_volume_option; /* The same variable hold the time, whether mtime or ctime. Just fake a non-existing option, for making the code clearer, elsewhere. */ #define newer_ctime_option newer_mtime_option /* Specified threshold date and time. Files having a more recent timestamp get archived (also see after_date_option above). If left to zero, it may be interpreted as very low threshold, just usable as such. */ GLOBAL time_t newer_mtime_option; /* Boolean value. */ GLOBAL int no_recurse_option; /* Boolean value. */ GLOBAL int numeric_owner_option; /* Boolean value. */ GLOBAL int one_file_system_option; /* Specified value to be put into tar file in place of stat () results, or just -1 if such an override should not take place. */ GLOBAL uid_t owner_option; /* Boolean value. */ GLOBAL int recursive_unlink_option; /* Boolean value. */ GLOBAL int read_full_records_option; /* Boolean value. */ GLOBAL int remove_files_option; /* Specified remote shell command. */ GLOBAL const char *rsh_command_option; /* Boolean value. */ GLOBAL int same_order_option; /* Boolean value. */ GLOBAL int same_owner_option; /* Boolean value. */ GLOBAL int same_permissions_option; /* Boolean value. */ GLOBAL int show_omitted_dirs_option; /* Boolean value. */ GLOBAL int sparse_option; /* Boolean value. */ GLOBAL int starting_file_option; /* Specified maximum byte length of each tape volume (multiple of 1024). */ GLOBAL tarlong tape_length_option; /* Boolean value. */ GLOBAL int to_stdout_option; /* Boolean value. */ GLOBAL int totals_option; /* Boolean value. */ GLOBAL int touch_option; /* Boolean value. */ GLOBAL int unlink_first_option; /* Count how many times the option has been set, multiple setting yields more verbose behavior. Value 0 means no verbosity, 1 means file name only, 2 means file name and all attributes. More than 2 is just like 2. */ GLOBAL int verbose_option; /* Boolean value. */ GLOBAL int verify_option; /* Specified name of file containing the volume number. */ GLOBAL const char *volno_file_option; /* Specified value or pattern. */ GLOBAL const char *volume_label_option; /* Other global variables. */ /* File descriptor for archive file. */ GLOBAL int archive; /* Nonzero when outputting to /dev/null. */ GLOBAL int dev_null_output; /* Name of file for the current archive entry. */ GLOBAL char *current_file_name; /* Name of link for the current archive entry. */ GLOBAL char *current_link_name; /* List of tape drive names, number of such tape drives, allocated number, 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; /* Structure for keeping track of filenames and lists thereof. */ struct name { struct name *next; size_t length; /* cached strlen(name) */ char found; /* a matching file has been found */ char firstch; /* first char is literally matched */ char regexp; /* this name is a regexp, not literal */ char *change_dir; /* set with the -C option */ const char *dir_contents; /* for incremental_option */ char fake; /* dummy entry */ char name[1]; }; GLOBAL struct name *namelist; /* points to first name in list */ GLOBAL struct name *namelast; /* points to last name in list */ /* Pointer to the start of the scratch space. */ struct sp_array { off_t offset; size_t numbytes; }; GLOBAL struct sp_array *sparsearray; /* Initial size of the sparsearray. */ GLOBAL int sp_array_size; /* Declarations for each module. */ /* FIXME: compare.c should not directly handle the following variable, instead, this should be done in buffer.c only. */ enum access_mode { ACCESS_READ, ACCESS_WRITE, ACCESS_UPDATE }; extern enum access_mode access_mode; /* Module buffer.c. */ extern FILE *stdlis; extern char *save_name; extern off_t save_sizeleft; extern off_t save_totsize; extern int write_archive_to_stdout; 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 *)); /* Module create.c. */ void create_archive PARAMS ((void)); void dump_file PARAMS ((char *, dev_t, int)); void finish_header PARAMS ((union block *)); void write_eot PARAMS ((void)); #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)) 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)); /* Module diffarch.c. */ extern int now_verifying; void diff_archive PARAMS ((void)); void diff_init PARAMS ((void)); void verify_volume PARAMS ((void)); /* Module extract.c. */ void extr_init PARAMS ((void)); void extract_archive PARAMS ((void)); void apply_delayed_set_stat PARAMS ((void)); /* Module delete.c. */ void delete_archive_members PARAMS ((void)); /* Module incremen.c. */ 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)); /* Module list.c. */ enum read_header { HEADER_STILL_UNREAD, /* for when read_header has not been called */ HEADER_SUCCESS, /* header successfully read and checksummed */ HEADER_ZERO_BLOCK, /* zero block where header expected */ HEADER_END_OF_FILE, /* true end of file while header expected */ HEADER_FAILURE /* ill-formed header, or bad checksum */ }; extern union block *current_header; extern struct stat current_stat; extern enum archive_format current_format; void decode_header PARAMS ((union block *, struct stat *, enum archive_format *, int)); #define STRINGIFY_BIGINT(i, b) \ stringify_uintmax_t_backwards ((uintmax_t) (i), (b) + sizeof (b)) char *stringify_uintmax_t_backwards PARAMS ((uintmax_t, char *)); #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)) 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)); 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)); /* Module mangle.c. */ void extract_mangle PARAMS ((void)); /* Module misc.c. */ void assign_string PARAMS ((char **, const char *)); char *quote_copy_string PARAMS ((const char *)); int unquote_string PARAMS ((char *)); char *merge_sort PARAMS ((char *, int, int, int (*) (char *, char *))); 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)); /* Module names.c. */ 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 *)); 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 *)); /* Module tar.c. */ int confirm PARAMS ((const char *, const char *)); void request_stdin PARAMS ((const char *)); /* Module update.c. */ extern char *output_start; void update_archive PARAMS ((void)); tar-1.13/src/rmt.h0000444000176300016070000000667106740045610007466 /* Definitions for communicating with a remote tape drive. Copyright (C) 1988, 1992, 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. */ extern char *rmt_path__; 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 *)); /* A filename is remote if it contains a colon not preceeded by a slash, to take care of `/:/' which is a shorthand for `/...//fs' on machines running OSF's Distributing Computing Environment (DCE) and Distributed File System (DFS). However, when --force-local, a filename is never remote. */ #define _remdev(Path) \ (!force_local_option && (rmt_path__ = strchr (Path, ':')) \ && rmt_path__ > (Path) && rmt_path__[-1] != '/') #define _isrmt(Fd) \ ((Fd) >= __REM_BIAS) #define __REM_BIAS 128 #ifndef O_CREAT # define O_CREAT 01000 #endif #define rmtopen(Path, Oflag, Mode, Command) \ (_remdev (Path) ? rmt_open__ (Path, Oflag, __REM_BIAS, Command) \ : open (Path, Oflag, Mode)) #define rmtaccess(Path, Amode) \ (_remdev (Path) ? 0 : access (Path, Amode)) #define rmtstat(Path, Buffer) \ (_remdev (Path) ? (errno = EOPNOTSUPP), -1 : stat (Path, Buffer)) /* FIXME: errno should be read-only */ #define rmtcreat(Path, Mode, Command) \ (_remdev (Path) \ ? rmt_open__ (Path, 1 | O_CREAT, __REM_BIAS, Command) \ : creat (Path, Mode)) #define rmtlstat(Path, Buffer) \ (_remdev (Path) ? (errno = EOPNOTSUPP), -1 : lstat (Path, Buffer)) /* FIXME: errno should be read-only */ #define rmtread(Fd, Buffer, Length) \ (_isrmt (Fd) ? rmt_read__ (Fd - __REM_BIAS, Buffer, Length) \ : safe_read (Fd, Buffer, Length)) #define rmtwrite(Fd, Buffer, Length) \ (_isrmt (Fd) ? rmt_write__ (Fd - __REM_BIAS, Buffer, Length) \ : full_write (Fd, Buffer, Length)) #define rmtlseek(Fd, Offset, Where) \ (_isrmt (Fd) ? rmt_lseek__ (Fd - __REM_BIAS, Offset, Where) \ : lseek (Fd, Offset, Where)) #define rmtclose(Fd) \ (_isrmt (Fd) ? rmt_close__ (Fd - __REM_BIAS) : close (Fd)) #define rmtioctl(Fd, Request, Argument) \ (_isrmt (Fd) ? rmt_ioctl__ (Fd - __REM_BIAS, Request, Argument) \ : ioctl (Fd, Request, Argument)) #define rmtdup(Fd) \ (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : dup (Fd)) /* FIXME: errno should be read-only */ #define rmtfstat(Fd, Buffer) \ (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : fstat (Fd, Buffer)) /* FIXME: errno should be read-only */ #define rmtfcntl(Fd, Command, Argument) \ (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : fcntl (Fd, Command, Argument)) /* FIXME: errno should be read-only */ #define rmtisatty(Fd) \ (_isrmt (Fd) ? 0 : isatty (Fd)) tar-1.13/src/system.h0000444000176300016070000003264706740045610010212 /* System dependent definitions for GNU tar. Copyright 1994, 1995, 1996, 1997, 1998, 1999 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. */ #if HAVE_CONFIG_H # include #endif /* Declare alloca. AIX requires this to be the first thing in the file. */ #if __GNUC__ # define alloca __builtin_alloca #else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif #include /* Declare a generic pointer type. */ #if defined (__STDC__) || defined(__TURBOC__) # define voidstar void * #else # define voidstar char * #endif #include /* CTYPE_DOMAIN (C) is nonzero if the unsigned char C can safely be given as an argument to macros like `isspace'. */ #if STDC_HEADERS # define CTYPE_DOMAIN(c) 1 #else # define CTYPE_DOMAIN(c) ((unsigned) (c) <= 0177) #endif #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)) /* Declare string and memory handling routines. Take care that an ANSI string.h and pre-ANSI memory.h might conflict, and that memory.h and strings.h conflict on some systems. */ #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 /* Declare errno. */ #include #ifndef errno extern int errno; #endif /* Declare open parameters. */ #if HAVE_FCNTL_H # include #else # include #endif /* 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 /* 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 /* MS-DOG forever, with my love! */ #ifndef O_BINARY # define O_BINARY 0 #endif /* Emulate System V 3-argument open call */ #if EMUL_OPEN3 # define open open3 #endif /* Declare file status routines and bits. */ #include #ifndef S_ISLNK # define lstat stat #endif #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 /* On MSDOS, there are missing things from . */ #if MSDOS # define S_ISUID 0 # define S_ISGID 0 # define S_ISVTX 0 #endif #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 #if !HAVE_MKFIFO # define mkfifo(Path, Mode) (mknod (Path, (Mode) | S_IFIFO, 0)) #endif #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 #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) #ifndef _POSIX_SOURCE # include #endif /* Include before any preprocessor test of _POSIX_VERSION. */ #if HAVE_UNISTD_H # include #endif #ifndef SEEK_SET # define SEEK_SET 0 #endif #ifndef SEEK_CUR # define SEEK_CUR 1 #endif #ifndef SEEK_END # define SEEK_END 2 #endif #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif #ifndef STDOUT_FILENO # define STDOUT_FILENO 1 #endif #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif /* Declare make device, major and minor. Since major is a function on SVR4, we have to resort to GOT_MAJOR instead of just testing if major is #define'd. */ #if MAJOR_IN_MKDEV # include # define GOT_MAJOR #endif #if MAJOR_IN_SYSMACROS # include # define GOT_MAJOR #endif /* Some defines the macros. */ #ifdef major # define GOT_MAJOR #endif #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 /* 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 #ifndef GOT_MAJOR # define major(Device) (((Device) >> 8) & 0xff) # define minor(Device) ((Device) & 0xff) # define makedev(Major, Minor) (((Major) << 8) | (Minor)) #endif #undef GOT_MAJOR /* Declare directory reading routines and structures. */ #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 /* Declare wait status. */ #if HAVE_SYS_WAIT_H # include #endif #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 #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 /* FIXME: It is wrong to use BLOCKSIZE for buffers when the logical block size is greater than 512 bytes; so ST_BLKSIZE code below, in preparation for some cleanup in this area, later. */ /* Get or fake the disk device blocksize. Usually defined by sys/param.h (if at all). */ #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 /* Extract or fake data from a `struct stat'. ST_BLKSIZE gives the optimal I/O blocksize for the file, in bytes. Some systems, like Sequents, return st_blksize of 0 on pipes. */ #if !HAVE_ST_BLKSIZE # define ST_BLKSIZE(Statbuf) DEV_BSIZE #else # define ST_BLKSIZE(Statbuf) \ ((Statbuf).st_blksize > 0 ? (Statbuf).st_blksize : DEV_BSIZE) #endif /* Extract or fake data from a `struct stat'. ST_NBLOCKS gives the number of ST_NBLOCKSIZE-byte blocks in the file (including indirect blocks). HP-UX counts st_blocks in 1024-byte units, this loses when mixing HP-UX and BSD filesystems with NFS. AIX PS/2 counts st_blocks in 4K units. */ #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 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 #ifndef ST_NBLOCKSIZE #define ST_NBLOCKSIZE 512 #endif /* This is a real challenge to properly get MTIO* symbols :-(. ISC uses . SCO and BSDi uses ; BSDi also requires and for defining tp_dev and tpr_t. It seems that the rest use , which itself requires other files, depending on systems. Pyramid defines _IOW in , for example. */ #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 /* Declare standard functions. */ #if STDC_HEADERS # include #else voidstar malloc (); voidstar realloc (); # if HAVE_GETCWD char *getcwd (); # endif char *getenv (); #endif #include #ifndef _POSIX_VERSION # if MSDOS # include # else off_t lseek (); # endif #endif #include #if WITH_DMALLOC # undef HAVE_VALLOC # define DMALLOC_FUNC_CHECK # include #endif #if HAVE_LIMITS_H # include #endif #ifndef CHAR_BIT # define CHAR_BIT 8 #endif #ifndef CHAR_MAX # define CHAR_MAX TYPE_MAXIMUM (char) #endif #ifndef LONG_MAX # define LONG_MAX TYPE_MAXIMUM (long) #endif #if HAVE_INTTYPES_H # include #endif /* These macros work even on ones'-complement hosts (!). The extra casts work around common compiler bugs. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) #define TYPE_MINIMUM(t) (TYPE_SIGNED (t) \ ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \ : (t) 0) #define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t)) /* Bound on length of the string representing an integer value of type t. Subtract one for the sign bit if t is signed; 302 / 1000 is log10 (2) rounded up; add one for integer division truncation; add one more for a minus sign if t is signed. */ #define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - TYPE_SIGNED (t)) * 302 / 1000 \ + 1 + TYPE_SIGNED (t)) #define UINTMAX_STRSIZE_BOUND (INT_STRLEN_BOUND (uintmax_t) + 1) /* Prototypes for external functions. */ #ifndef PARAMS # if PROTOTYPES # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif #if HAVE_LOCALE_H # include #endif #if !HAVE_SETLOCALE # define setlocale(Category, Locale) /* empty */ #endif #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 /* Library modules. */ #include "error.h" #if !HAVE_STRSTR char *strstr PARAMS ((const char *, const char *)); #endif #if HAVE_VALLOC # ifndef valloc voidstar valloc PARAMS ((size_t)); # endif #else # define valloc(Size) malloc (Size) #endif voidstar xmalloc PARAMS ((size_t)); voidstar xrealloc PARAMS ((voidstar, size_t)); char *xstrdup PARAMS ((const char *)); tar-1.13/src/tar.h0000444000176300016070000002140006324762766007455 /* Format of tar archives. Copyright (C) 1988, 92, 93, 94, 96, 97 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. */ /* GNU tar Archive Format description. */ /* If OLDGNU_COMPATIBILITY is not zero, tar produces archives which, by default, are readable by older versions of GNU tar. This can be overriden by using --posix; in this case, POSIXLY_CORRECT in environment may be set for enforcing stricter conformance. If OLDGNU_COMPATIBILITY is zero or undefined, tar will eventually produces archives which, by default, POSIX compatible; then either using --posix or defining POSIXLY_CORRECT enforces stricter conformance. This #define will disappear in a few years. FP, June 1995. */ #define OLDGNU_COMPATIBILITY 1 /*---------------------------------------------. | `tar' Header Block, from POSIX 1003.1-1990. | `---------------------------------------------*/ /* POSIX header. */ struct posix_header { /* byte offset */ char name[100]; /* 0 */ char mode[8]; /* 100 */ char uid[8]; /* 108 */ char gid[8]; /* 116 */ char size[12]; /* 124 */ char mtime[12]; /* 136 */ char chksum[8]; /* 148 */ char typeflag; /* 156 */ char linkname[100]; /* 157 */ char magic[6]; /* 257 */ char version[2]; /* 263 */ char uname[32]; /* 265 */ char gname[32]; /* 297 */ char devmajor[8]; /* 329 */ char devminor[8]; /* 337 */ char prefix[155]; /* 345 */ /* 500 */ }; #define TMAGIC "ustar" /* ustar and a null */ #define TMAGLEN 6 #define TVERSION "00" /* 00 and no null */ #define TVERSLEN 2 /* 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 */ /* 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 */ /* 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 */ /*-------------------------------------. | `tar' Header Block, GNU extensions. | `-------------------------------------*/ /* In GNU tar, SYMTYPE is for to symbolic links, and CONTTYPE is for contiguous files, so maybe disobeying the `reserved' comment in POSIX header description. I suspect these were meant to be used this way, and should not have really been `reserved' in the published standards. */ /* *BEWARE* *BEWARE* *BEWARE* that the following information is still boiling, and may change. Even if the OLDGNU format description should be accurate, the so-called GNU format is not yet fully decided. It is surely meant to use only extensions allowed by POSIX, but the sketch below repeats some ugliness from the OLDGNU format, which should rather go away. Sparse files should be saved in such a way that they do *not* require two passes at archive creation time. Huge files get some POSIX fields to overflow, alternate solutions have to be sought for this. */ /* Descriptor for a single file hole. */ struct sparse { /* byte offset */ char offset[12]; /* 0 */ char numbytes[12]; /* 12 */ /* 24 */ }; /* Sparse files are not supported in POSIX ustar format. For sparse files with a POSIX header, a GNU extra header is provided which holds overall sparse information and a few sparse descriptors. When an old GNU header replaces both the POSIX header and the GNU extra header, it holds some sparse descriptors too. Whether POSIX or not, if more sparse descriptors are still needed, they are put into as many successive sparse headers as necessary. The following constants tell how many sparse descriptors fit in each kind of header able to hold them. */ #define SPARSES_IN_EXTRA_HEADER 16 #define SPARSES_IN_OLDGNU_HEADER 4 #define SPARSES_IN_SPARSE_HEADER 21 /* The GNU extra header contains some information GNU tar needs, but not foreseen in POSIX header format. It is only used after a POSIX header (and never with old GNU headers), and immediately follows this POSIX header, when typeflag is a letter rather than a digit, so signaling a GNU extension. */ struct extra_header { /* byte offset */ char atime[12]; /* 0 */ char ctime[12]; /* 12 */ char offset[12]; /* 24 */ char realsize[12]; /* 36 */ char longnames[4]; /* 48 */ char unused_pad1[68]; /* 52 */ struct sparse sp[SPARSES_IN_EXTRA_HEADER]; /* 120 */ char isextended; /* 504 */ /* 505 */ }; /* Extension header for sparse files, used immediately after the GNU extra header, and used only if all sparse information cannot fit into that extra header. There might even be many such extension headers, one after the other, until all sparse information has been recorded. */ struct sparse_header { /* byte offset */ struct sparse sp[SPARSES_IN_SPARSE_HEADER]; /* 0 */ char isextended; /* 504 */ /* 505 */ }; /* The old GNU format header conflicts with POSIX format in such a way that POSIX archives may fool old GNU tar's, and POSIX tar's might well be fooled by old GNU tar archives. An old GNU format header uses the space used by the prefix field in a POSIX header, and cumulates information normally found in a GNU extra header. With an old GNU tar header, we never see any POSIX header nor GNU extra header. Supplementary sparse headers are allowed, however. */ struct oldgnu_header { /* byte offset */ char unused_pad1[345]; /* 0 */ char atime[12]; /* 345 */ char ctime[12]; /* 357 */ char offset[12]; /* 369 */ char longnames[4]; /* 381 */ char unused_pad2; /* 385 */ struct sparse sp[SPARSES_IN_OLDGNU_HEADER]; /* 386 */ char isextended; /* 482 */ char realsize[12]; /* 483 */ /* 495 */ }; /* OLDGNU_MAGIC uses both magic and version fields, which are contiguous. Found in an archive, it indicates an old GNU header format, which will be hopefully become obsolescent. With OLDGNU_MAGIC, uname and gname are valid, though the header is not truly POSIX conforming. */ #define OLDGNU_MAGIC "ustar " /* 7 chars and a null */ /* The standards committee allows only capital A through capital Z for user-defined expansion. */ /* This is a dir entry that contains the names of files that were in the dir at the time the dump was made. */ #define GNUTYPE_DUMPDIR 'D' /* Identifies the *next* file on the tape as having a long linkname. */ #define GNUTYPE_LONGLINK 'K' /* Identifies the *next* file on the tape as having a long name. */ #define GNUTYPE_LONGNAME 'L' /* This is the continuation of a file that began on another volume. */ #define GNUTYPE_MULTIVOL 'M' /* For storing filenames that do not fit into the main header. */ #define GNUTYPE_NAMES 'N' /* This is for sparse files. */ #define GNUTYPE_SPARSE 'S' /* This file is a tape/volume header. Ignore it on extraction. */ #define GNUTYPE_VOLHDR 'V' /*--------------------------------------. | tar Header Block, overall structure. | `--------------------------------------*/ /* tar files are made in basic blocks of this size. */ #define BLOCKSIZE 512 enum archive_format { DEFAULT_FORMAT, /* format to be decided later */ V7_FORMAT, /* old V7 tar format */ OLDGNU_FORMAT, /* GNU format as per before tar 1.12 */ POSIX_FORMAT, /* restricted, pure POSIX format */ GNU_FORMAT /* POSIX format with GNU extensions */ }; union block { char buffer[BLOCKSIZE]; struct posix_header header; struct extra_header extra_header; struct oldgnu_header oldgnu_header; struct sparse_header sparse_header; }; /* End of Format description. */ tar-1.13/scripts/0000777000176300017630000000000006741044407007476 5tar-1.13/scripts/ChangeLog0000444000176300016070000001533606330212176011161 1997-04-24 François Pinard * Release 1.12. * level-1, level-0: Replace --block-size by --blocking. 1996-04-17 François Pinard * Prerelease 1.11.10. * Makefile.am (EXTRA_DIST): New name for DIST_OTHER. 1996-01-14 François Pinard * Makefile.am (AUTOMAKE_OPTIONS): Select gnits. 1996-01-08 François Pinard * Makefile.am: New file. 1995-12-31 François Pinard * Makefile.in (check, dvi): New goals, doing nothing. Reported by Cesar Romani and Ulrich Drepper. 1995-06-21 François Pinard * Prerelease 1.11.9. * Makefile.in: Distribute the ChangeLog, now recovered! Reported by Andreas Schwab. 1995-06-17 François Pinard * Release 1.11.8. * WARNING: New file. * Makefile.in (DISTFILES): Distribute it. 1995-06-15 François Pinard * sripts/Makefile.in (dist): Do not hide copying rule. 1995-06-07 François Pinard * Makefile.in: Use subdir and distdir. 1995-02-05 François Pinard * Prerelease 1.11.7. * Makefile.in (maintainer-clean): New name for realclean. 1994-12-03 François Pinard * Prerelease 1.11.6. * ChangeLog: Replaced by a warning for now. It has seemingly been overwritten by the weekly script :-(. * Makefile.in (dist): Correct .../examples to .../scripts. 1994-09-14 François Pinard * Makefile.in: Cleanup... (check): Deleted. (Makefile): Have ./config.status create this Makefile only. 1994-06-30 François Pinard * Prerelease 1.11.5. * ChangeLog: Initialized by moving entries related to scripts out of this ChangeLog. 1993-11-24 Noah Friedman * dump-remind: Send mail notification to the original recipients that the dump has been continued when that is the case. 1993-03-31 Noah Friedman * level-0, level-1 (LOGFILE): Put logfile in `log' subdirectory. 1993-03-28 Noah Friedman * dump-remind (volno): Don't increment by one. 1993-03-25 Noah Friedman * level-0, level-1 (TAR_PART1): Use `--block-size', not just `--block', which is now ambiguous. 1993-03-24 Noah Friedman * backup-specs (TAR): New variable. * level-0, level-1 (TAR_PART1): Get path of GNU tar from `TAR' variable, don't hardcode it. 1993-03-20 Noah Friedman * backup-specs (SLEEP_MESSAGE): put backslashes in front of nested double quotes. * level-0, level-1 (BACKUP_DIRS): Don't put in quotes. (LOGFILE): Use sed to construct name, not awk. * dump-remind (recipients): Replaced inefficient pipeline with a single, simple sed script. (volno): Deal with the possibility that VOLNO_FILE may not be created yet. 1993-03-19 Michael I Bushnell * backup-specs (VOLNO_FILE): Removed abusive comment by Noah. 1993-03-18 Noah Friedman * Makefile.in (AUX): Include `dump-remind' in distribution. * backup-specs (SLEEP_MESSAGE): New variable. level-0, level-1: Use it instead of external `dont_touch' file. * level-0, level-1: Put most of the script in () and pipe everything from the subshell through tee -a $LOGFILE. Since you really want most of the output to go to the logfile anyway, and since all those pipelines were preventing one from getting the exit status of most commands, this seems like the right idea. * level-0, level-1 (LOGFILE): Use YYYY-MM-DD (all numeric) format for log file name, since that makes the file names sortable in a coherent way. Suffix should always be `level-n' where n is the dump level. level-0 script was just using `-full' instead. * level-0, level-1 (DUMP_LEVEL): New variable. Set to `0' or `1' in each script as appropriate. * level-0, level-1 (HOST): Renamed to `localhost' for clarity. (host): renamed to `remotehost' for clarity. * level-0, level-1 (startdate): New variable. Use it in Subject line of mailed report. * level-0, level-1: Fixed all instances where sed is called with a script on the command line to use `-e' option. * level-0, level-1: Don't try to call logfile.sed to filter LOGFILE. It's not distributed with tar and was never really used anyway. * level-0, level-1: Put quotes around most variable names (barring those that are known to intentionally contain text that should be expanded into multiple words, like `TAR_PART1'). * level-0, level-1: Got rid of annoying trailing backslashes in awk scripts. They were gratuitous. Made them a little more readable by adding some whitespace. 1992-10-21 Noah Friedman * level-0, level-1: put curly braces around variables for clarity. * backup-specs (DUMP_REMIND_SCRIPT): define it (but commented out so that distributed dump scripts won't use it by default). level-0, level-1 (TAR_PART1): use --info-script if DUMP_REMIND_SCRIPT is defined. dump-remind: new file (intended as an example). 1992-10-15 Noah Friedman * level-0, level-1: remove $LOGFILE.tmp files before exiting. 1992-09-24 Michael I Bushnell * level-0, level-1 (TAR_PART1): remove --atime-preserve because of a total screw. 1992-09-10 Noah Friedman * level-0, level-1 (TAR_PART1): put --atime-preserve inside quotes. 1992-09-09 Michael I Bushnell * level-0, level-1 (TAR_PART1): Use --atime-preserve. 1992-07-10 Michael I Bushnell * level-0, level-1: Avoid silly Sun awk lossage. 1992-04-30 Noah Friedman * level-1: Added `$' before VOLNO_FILE in definition of TAR_PART1. Added line to remove $VOLNO_FILE from any previous dump before starting. * level-0, level-1: Change long options to use `--' instead of `+' (support for `+' will go away soon) 1991-10-17 Michael I Bushnell * level-0: Repair damage from previous mod: stdin to rsh must be the terminal or tar's questions lose. 1991-08-31 Noah Friedman * level-0: Fixed several syntax errors associated with stdout/stderr redirection. Made sure remote host executes commands from sh where redirection is necessary, since root's shell might be csh in some places and the redirect syntax differs. 1991-07-01 Michael I Bushnell * Fix a misplaced quote in level-0 and change some >& into 2>&1. tar-1.13/scripts/Makefile.am0000444000176300016070000000154506135206512011440 # Makefile for GNU tar scripts. # Copyright (C) 1994 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. AUTOMAKE_OPTIONS = gnits EXTRA_DIST = WARNING backup-specs dump-remind level-0 level-1 weekly.new tar-1.13/scripts/Makefile.in0000664000176300016070000001302506740607424011462 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. # Makefile for GNU tar scripts. # Copyright (C) 1994 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ 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 DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ AUTOMAKE_OPTIONS = gnits 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 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps scripts/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status tags: TAGS TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = scripts distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ 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 install-data-am: install-data: install-data-am install-am: all-am @$(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: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .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 # 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. .NOEXPORT: tar-1.13/scripts/WARNING0000444000176300016070000000026706074357145010447 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. tar-1.13/scripts/backup-specs0000444000176300016070000000516605372467453011731 # site-specific parameters for file system backup. # User name of administrator of backups. ADMINISTRATOR=backup-reports # Hour at which backups are normally done. # This should be a number from 0 to 23. BACKUP_HOUR=1 # Location of GNU tar. This must be the same for all hosts. TAR=/usr/local/gnubin/tar # Device to use for dumping. It should be on the host # on which the dump scripts are run. TAPE_FILE=/dev/nrsmt0 # 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}" # Blocking factor to use for writing the dump. BLOCKING=124 # 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 # 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' # 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. BACKUP_DIRS=' albert:/fs/fsf sugar-bombs:/fs/gd albert:/fs/gd2 churchy:/fs/gd3 nutrimat:/fs/gp nutrimat:/fs/gp2 albert:/fs/mailer placebo:/archive nutrimat:/fs/dist albert:/ albert:/usr nutrimat:/ placebo:/ ernst:/usr1 ' # List of individual files to be dumped. # These should be accesible from the machine on which the dump is run. BACKUP_FILES='' # 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 ' BEGIN { for (i = 0; i < 30; i++) print \" \" \ \"D O N O T T O U C H T H I S T E R M I N A L !!!!!\" }' /dev/null`" # eof tar-1.13/scripts/dump-remind0000555000176300016070000000624605474626751011576 #!/bin/sh # This file is included in the GNU tar distribution as an example. It is # not used by default unless the proper line is uncommented in backup-specs. # System administrators will probably want to customize this and # backup-specs for their site. # # This script should be run by tar with --info-script (-F) to inform # interested parties that a tape for the next volume of the backup needs to # be put in the tape drive. # # Include location of `sendmail' and GNU finger. PATH="/usr/lib:/usr/local/gnubin:${PATH}" export PATH # Get definition of TAPE_FILE, VOLNO_FILE, and so on. . /home/gd2/dump/backup-specs mt -f "${TAPE_FILE}" rewind mt -f "${TAPE_FILE}" offl volno="`cat \"${VOLNO_FILE}\" 2> /dev/null`" if [ $? -ne 0 ]; then volno=0 fi # Get a list of people to whom to mail a request for changing the tape. # This egregious nightmare parses the output from GNU finger which shows # which users are logged into consoles (and thus in the office and capable # of changing tapes). # # Certain users (like `root') aren't real users, and shouldn't be notified. # Neither should `zippy', `elvis', etc. (on the GNU machines) since they're # just test accounts. recipients="` finger .clients 2> /dev/null \ | sed -ne ' 1{ /clientstatus: file has not changed in/{ n;n;n;n;d } n;n;d } s/^..................................................// $!{/^$/d /^root?*$/d /^zippy$/d /^fnord$/d /^elvis$/d /^snurd$/d H } ${g : 1 s/\(\n\)\([A-Za-z0-9_][A-Za-z0-9_]*\)\(\n.*\)\2\(.*\)/\1\2\3\4/g s/\n$//g t 1 s/^\n// s/\n$//g s/\n/, /g : 2 s/, ,/,/g t 2 p }'`" # Customized behavior for FSF machines, to bring attention to the fact that # the tape needs to be changed (who looks at the terminal?) sendmail -oi -t << __EOF__ From: `basename $0` (backup tape-changing reminder) To: ${recipients} Cc: ${ADMINISTRATOR} Subject: Backup needs new tape for volume ${volno} Reply-To: ${ADMINISTRATOR} This is an automated report from the backup script running on `hostname`. Volume ${volno} of the backup needs to be put in the tape drive. Usually whoever prepared the backup leaves labeled tapes on top of the drive itself. If there aren't any more, information about where to find tapes and how to label them are posted on the wall by apple-gunkies (unhelpfully obscured by a bookshelf). An online copy (which is probably more up-to-date) can also be found in ~friedman/etc/fsf/backup.how. __EOF__ echo "Please put volume ${volno} in tape drive and press RETURN" read input echo "Writing volume ${volno}..." sendmail -oi -t << __EOF__ From: `basename $0` (backup tape-changing reminder) To: ${recipients} Cc: ${ADMINISTRATOR} Subject: Volume ${volno} for backup has been added Reply-To: ${ADMINISTRATOR} This is an automated report from the backup script running on `hostname`. The backup has been continued, so for now no further attention is required. __EOF__ exit 0 # eof tar-1.13/scripts/level-00000555000176300016070000001457606327771612010621 #!/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. # Useful for backup-specs, in case things have to be done slightly # differently for different dump levels. DUMP_LEVEL=0 # Insure `mail' is in PATH. PATH="/usr/ucb:${PATH}" export PATH # 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 echo "The backup must be run as root or else some files will fail to be dumped." exit 1 fi # Get the values of BACKUP_DIRS, BACKUP_FILES, and other variables. . ./backup-specs # Maybe sleep until around specified or default hour. if [ "${1}" != "now" ]; then if [ "${1}x" != "x" ]; then spec="${1}" else spec="${BACKUP_HOUR}" fi pausetime="`date | awk ' { hr = substr($4, 1, 2); mn = substr($4, 4, 2); if((hr + 0) < (spec + 0)) print 3600 * (spec - hr) - 60 * mn; else print 3600 * (spec + (24 - hr)) - 60 * mn; }' spec=\"${spec}\"`" clear echo "${SLEEP_MESSAGE}" sleep "${pausetime}" fi # start doing things # 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`" here="`pwd`" # 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 ' s/[^ ]* *\([^ ]*\) *\([^ ]*\).* \([^ ]*\)$/\3-\1-\2/ /-[0-9]$/s/\([0-9]\)$/0\1/ /Jan/{s/Jan/01/p;q;} /Feb/{s/Feb/02/p;q;} /Mar/{s/Mar/03/p;q;} /Apr/{s/Apr/04/p;q;} /May/{s/May/05/p;q;} /Jun/{s/Jun/06/p;q;} /Jul/{s/Jul/07/p;q;} /Aug/{s/Aug/08/p;q;} /Sep/{s/Sep/09/p;q;} /Oct/{s/Oct/10/p;q;} /Nov/{s/Nov/11/p;q;} /Dec/{s/Dec/12/p;q;}'`-level-${DUMP_LEVEL}" localhost="`hostname | sed -e 's/\..*//'`" TAR_PART1="${TAR} -c --multi-volume --one-file-system --blocking=${BLOCKING} --sparse --volno-file=${VOLNO_FILE}" # Only use --info-script if DUMP_REMIND_SCRIPT was defined in backup-specs if [ "x${DUMP_REMIND_SCRIPT}" != "x" ]; then TAR_PART1="${TAR_PART1} --info-script='${DUMP_REMIND_SCRIPT}'" fi # Make sure the log file did not already exist. Create it. if [ -f "${LOGFILE}" ] ; then echo "Log file ${LOGFILE} already exists." 1>&2 exit 1 else touch "${LOGFILE}" fi # 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. ( # Caveat: Some version of `mt' require `-t', not `-f'. mt -f "${TAPE_FILE}" rewind rm -f "${VOLNO_FILE}" set - ${BACKUP_DIRS} while [ $# -ne 0 ] ; do date="`date`" remotehost="`echo \"${1}\" | sed -e 's/:.*$//'`" fs="`echo \"${1}\" | sed -e 's/^.*://'`" fsname="`echo \"${1}\" | sed -e 's/\//:/g'`" # This filename must be absolute; it is opened on the machine that runs tar. TAR_PART2="--listed=/etc/tar-backup/temp.level-0" TAR_PART3="--label='Full backup of ${fs} on ${remotehost} at ${date}' -C ${fs} ." echo "Backing up ${1} at ${date}" # Actually back things up. if [ "z${localhost}" != "z${remotehost}" ] ; then rsh "${remotehost}" mkdir /etc/tar-backup > /dev/null 2>&1 rsh "${remotehost}" rm -f /etc/tar-backup/temp.level-0 rsh "${remotehost}" ${TAR_PART1} -f "${localhost}:${TAPE_FILE}" ${TAR_PART2} ${TAR_PART3} else mkdir /etc/tar-backup > /dev/null 2>&1 rm -f /etc/tar-backup/temp.level-0 # Using `sh -c exec' causes nested quoting and shell substitution # to be handled here in the same way rsh handles it. sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3}" fi # `rsh' doesn't exit with the exit status of the remote command. What # stupid lossage. TODO: think of a reliable workaround. if [ $? -ne 0 ] ; then echo "Backup of ${1} failed." 1>&2 # I'm assuming that the tar will have written an empty # file to the tape, otherwise I should do a cat here. else if [ "z${localhost}" != "z${remotehost}" ] ; then rsh "${remotehost}" mv -f /etc/tar-backup/temp.level-0 "/etc/tar-backup/${fsname}.level-0" else mv -f /etc/tar-backup/temp.level-0 "/etc/tar-backup/${fsname}.level-0" fi fi ${TAPE_STATUS} sleep 60 shift done # Dump any individual files requested. if [ "x${BACKUP_FILES}" != "x" ] ; then date="`date`" TAR_PART2="--listed=/etc/tar-backup/temp.level-0" TAR_PART3="--label='Full backup of miscellaneous files at ${date}'" mkdir /etc/tar-backup > /dev/null 2>&1 rm -f /etc/tar-backup/temp.level-0 echo "Backing up miscellaneous files at ${date}" # Using `sh -c exec' causes nested quoting and shell substitution # to be handled here in the same way rsh handles it. sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3} ${BACKUP_FILES}" # `rsh' doesn't exit with the exit status of the remote command. What # lossage. TODO: think of a reliable workaround. if [ $? -ne 0 ] ; then echo "Backup of miscellaneous files failed." # I'm assuming that the tar will have written an empty # file to the tape, otherwise I should do a cat here. else mv -f /etc/tar-backup/temp.level-0 /etc/tar-backup/misc.level-0 fi ${TAPE_STATUS} else echo "No miscellaneous files specified" fi # Caveat: some versions of `mt' use `-t' instead of `-f'. mt -f "${TAPE_FILE}" rewind mt -f "${TAPE_FILE}" offl ) 2>&1 | tee -a "${LOGFILE}" echo "Sending the dump log to ${ADMINISTRATOR}" mail -s "Results of backup started ${startdate}" ${ADMINISTRATOR} < "${LOGFILE}" # eof tar-1.13/scripts/level-10000555000176300016070000001476606327771725010630 #!/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. # Useful for backup-specs, in case things have to be done slightly # differently for different dump levels. DUMP_LEVEL=1 # Insure `mail' is in PATH. PATH="/usr/ucb:${PATH}" export PATH # 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 echo "The backup must be run as root or else some files will fail to be dumped." exit 1 fi # Get the values of BACKUP_DIRS, BACKUP_FILES, and other variables. . ./backup-specs # Maybe sleep until around specified or default hour. if [ "z${1}" != "znow" ]; then if [ "${1}x" != "x" ]; then spec="${1}" else spec="${BACKUP_HOUR}" fi pausetime="`date | awk ' { hr = substr($4, 1, 2); mn = substr($4, 4, 2); if((hr + 0) < (spec + 0)) print 3600 * (spec - hr) - 60 * mn; else print 3600 * (spec + (24 - hr)) - 60 * mn; }' spec=\"${spec}\"`" clear echo "${SLEEP_MESSAGE}" sleep "${pausetime}" fi # start doing things # 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`" here="`pwd`" # 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 ' s/[^ ]* *\([^ ]*\) *\([^ ]*\).* \([^ ]*\)$/\3-\1-\2/ /-[0-9]$/s/\([0-9]\)$/0\1/ /Jan/{s/Jan/01/p;q;} /Feb/{s/Feb/02/p;q;} /Mar/{s/Mar/03/p;q;} /Apr/{s/Apr/04/p;q;} /May/{s/May/05/p;q;} /Jun/{s/Jun/06/p;q;} /Jul/{s/Jul/07/p;q;} /Aug/{s/Aug/08/p;q;} /Sep/{s/Sep/09/p;q;} /Oct/{s/Oct/10/p;q;} /Nov/{s/Nov/11/p;q;} /Dec/{s/Dec/12/p;q;}'`-level-${DUMP_LEVEL}" localhost="`hostname | sed -e 's/\..*//'`" TAR_PART1="${TAR} -c --multi-volume --one-file-system --blocking=${BLOCKING} --sparse --volno-file=${VOLNO_FILE}" # Only use --info-script if DUMP_REMIND_SCRIPT was defined in backup-specs if [ "x${DUMP_REMIND_SCRIPT}" != "x" ]; then TAR_PART1="${TAR_PART1} --info-script='${DUMP_REMIND_SCRIPT}'" fi # Make sure the log file did not already exist. Create it. if [ -f "${LOGFILE}" ] ; then echo "Log file ${LOGFILE} already exists." 1>&2 exit 1 else touch "${LOGFILE}" fi # 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. ( # Caveat: Some version of `mt' require `-t', not `-f'. mt -f "${TAPE_FILE}" rewind rm -f "${VOLNO_FILE}" set - ${BACKUP_DIRS} while [ $# -ne 0 ] ; do date="`date`" remotehost="`echo \"${1}\" | sed -e 's/:.*$//'`" fs="`echo \"${1}\" | sed -e 's/^.*://'`" fsname="`echo \"${1}\" | sed -e 's/\//:/g'`" # This filename must be absolute; it is opened on the machine that runs tar. TAR_PART2="--listed=/etc/tar-backup/temp.level-1" TAR_PART3="--label='level 1 backup of ${fs} on ${remotehost} at ${date}' -C ${fs} ." echo "Backing up ${1} at ${date}" echo "Last full dump on this filesystem:" if [ "z${remotehost}" != "z${localhost}" ] ; then rsh "${remotehost}" "ls -l /etc/tar-backup/${fsname}.level-0; \ cp /etc/tar-backup/${fsname}.level-0 /etc/tar-backup/temp.level-1" else ls -l "/etc/tar-backup/${fsname}.level-0" cp "/etc/tar-backup/${fsname}.level-0" /etc/tar-backup/temp.level-1 fi # Actually back things up. if [ "z${remotehost}" != "z${localhost}" ] ; then rsh "${remotehost}" ${TAR_PART1} -f "${localhost}:${TAPE_FILE}" ${TAR_PART2} ${TAR_PART3} else # Using `sh -c exec' causes nested quoting and shell substitution # to be handled here in the same way rsh handles it. sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3}" fi # `rsh' doesn't exit with the exit status of the remote command. What # stupid lossage. TODO: think of a reliable workaround. if [ $? -ne 0 ] ; then echo "Backup of ${1} failed." # I'm assuming that the tar will have written an empty # file to the tape, otherwise I should do a cat here. else if [ "z${localhost}" != "z${remotehost}" ] ; then rsh "${remotehost}" mv -f /etc/tar-backup/temp.level-1 "/etc/tar-backup/${fsname}.level-1" else mv -f /etc/tar-backup/temp.level-1 "/etc/tar-backup/${fsname}.level-1" fi fi ${TAPE_STATUS} sleep 60 shift done # Dump any individual files requested. if [ "x${BACKUP_FILES}" != "x" ] ; then date="`date`" TAR_PART2="--listed=/etc/tar-backup/temp.level-1" TAR_PART3="--label='Incremental backup of miscellaneous files at ${date}'" echo "Backing up miscellaneous files at ${date}" echo "Last full dump of these files:" ls -l /etc/tar-backup/misc.level-0 rm -f /etc/tar-backup/temp.level-1 cp /etc/tar-backup/misc.level-0 /etc/tar-backup/temp.level-1 # Using `sh -c exec' causes nested quoting and shell substitution # to be handled here in the same way rsh handles it. sh -c "exec ${TAR_PART1} -f \"${TAPE_FILE}\" ${TAR_PART2} ${TAR_PART3} ${BACKUP_FILES}" if [ $? -ne 0 ] ; then echo "Backup of miscellaneous files failed." 1>&2 # I'm assuming that the tar will have written an empty # file to the tape, otherwise I should do a cat here. else mv -f /etc/tar-backup/temp.level-1 /etc/tar-backup/misc.level-1 fi ${TAPE_STATUS} else echo "No miscellaneous files specified" fi # Caveat: some versions of `mt' use `-t' instead of `-f'. mt -f "${TAPE_FILE}" rewind mt -f "${TAPE_FILE}" offl ) 2>&1 | tee -a "${LOGFILE}" echo "Sending the dump log to ${ADMINISTRATOR}" mail -s "Results of backup started ${startdate}" ${ADMINISTRATOR} < "${LOGFILE}" # eof tar-1.13/scripts/weekly.new0000444000176300016070000000176704714071513011427 #!/bin/sh # start doing things TOBACKUP="albert:/" HOST=`hostname | sed 's/\..*//'` TAPEFILE=/dev/rfd0a LOGFILE=tar-out BLOCKING=20 TAR_PART1="/usr/local/bin/tar clbfVM $BLOCKING" rm -f $LOGFILE mt -f $TAPEFILE rewind host=`echo $TOBACKUP | sed 's/:.*$//'`; fs=`echo $TOBACKUP | sed 's/^.*://'`; date=`date`; fsname=`echo $TOBACKUP | sed 's/\//:/g'` TAR_PART2="'Weekly backup of $fs on $host at $date' -C $fs ." echo Backing up $TOBACKUP at $date | tee -a $LOGFILE # Actually back things up. if [ $HOST != $host ] ; then rsh $host $TAR_PART1 $HOST:$TAPEFILE $TAR_PART2 else sh -c "exec $TAR_PART1 $TAPEFILE $TAR_PART2" fi if [ $? -ne 0 ] ; then echo Backup of $TOBACKUP failed. | tee -a $LOGFILE echo mts at time of failure | tee -a $LOGFILE mts -t $TAPEFILE | tee -a $LOGFILE # I'm assuming that the tar will have written an empty # file to the tape, otherwise I should do a cat here. else echo $date > $fsname.lasttar fi sleep 60; mt -f $TAPEFILE rewind mt -f $TAPEFILE offl tar-1.13/po/0000777000176300017630000000000006741044410006417 5tar-1.13/po/Makefile.in.in0000444000176300016070000001536206606171761011021 # 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. PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = $(prefix)/@DATADIRNAME@ localedir = $(datadir)/locale gnulocaledir = $(prefix)/share/locale gettextsrcdir = $(prefix)/share/gettext/po subdir = po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ CC = @CC@ GENCAT = @GENCAT@ GMSGFMT = PATH=../src:$$PATH @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ MSGMERGE = PATH=../src:$$PATH msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ INCLUDES = -I.. -I$(top_srcdir)/intl COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) SOURCES = cat-id-tbl.c POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = Makefile.in.in POTFILES.in $(PACKAGE).pot \ stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) POTFILES = \ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ INSTOBJEXT = @INSTOBJEXT@ .SUFFIXES: .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .c.o: $(COMPILE) $< .po.pox: $(MAKE) $(PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && $(GENCAT) $@ $*.msg all: all-@USE_NLS@ all-yes: cat-id-tbl.c $(CATALOGS) all-no: $(srcdir)/$(PACKAGE).pot: $(POTFILES) $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ --add-comments --keyword=_ --keyword=N_ \ --files-from=$(srcdir)/POTFILES.in \ && test ! -f $(PACKAGE).po \ || ( rm -f $(srcdir)/$(PACKAGE).pot \ && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) $(srcdir)/cat-id-tbl.c: stamp-cat-id; @: $(srcdir)/stamp-cat-id: $(PACKAGE).pot rm -f cat-id-tbl.tmp sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \ | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \ rm cat-id-tbl.tmp; \ else \ echo cat-id-tbl.c changed; \ rm -f $(srcdir)/cat-id-tbl.c; \ mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \ fi cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all if test -x "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ fi @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ case "$$cat" in \ *.gmo) destdir=$(DESTDIR)$(gnulocaledir);; \ *) destdir=$(DESTDIR)$(localedir);; \ esac; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ dir=$$destdir/$$lang/LC_MESSAGES; \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $$dir; \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ fi; \ if test -r $$cat; then \ $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \ else \ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ fi; \ if test -r $$cat.m; then \ $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ else \ if test -r $(srcdir)/$$cat.m ; then \ $(INSTALL_DATA) $(srcdir)/$$cat.m \ $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ else \ true; \ fi; \ fi; \ done if test "$(PACKAGE)" = "gettext"; then \ if test -x "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ fi; \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ done check: all cat-id-tbl.o: ../intl/libgettext.h dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f $(GMOFILES) distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: update-po $(DISTFILES) dists="$(DISTFILES)"; \ for file in $$dists; do \ ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done update-po: Makefile $(MAKE) $(PACKAGE).pot PATH=`pwd`/../src:$$PATH; \ cd $(srcdir); \ catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ mv $$lang.po $$lang.old.po; \ echo "$$lang:"; \ if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ rm -f $$lang.old.po; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$lang.po; \ mv $$lang.old.po $$lang.po; \ fi; \ done POTFILES: POTFILES.in ( if test 'x$(srcdir)' != 'x.'; then \ posrcprefix='$(top_srcdir)/'; \ else \ posrcprefix="../"; \ fi; \ rm -f $@-t $@ \ && (sed -e '/^#/d' -e '/^[ ]*$$/d' \ -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | sed -e '$$s/\\$$//') > $@-t \ && chmod a-w $@-t \ && mv $@-t $@ ) Makefile: Makefile.in.in ../config.status POTFILES cd .. \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status # 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. .NOEXPORT: tar-1.13/po/POTFILES.in0000444000176300016070000000066506736027321010120 # List of files which contain translatable strings. # Copyright 1996, 1999 Free Software Foundation, Inc. # Library files lib/argmatch.c lib/error.c lib/getopt.c lib/xmalloc.c # 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 # Checking tools tests/genfile.c tar-1.13/po/tar.pot0000664000176300016070000007212006740567602007662 # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 1999-07-06 23:11-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: ENCODING\n" #: lib/argmatch.c:167 #, c-format msgid "invalid argument `%s' for `%s'" msgstr "" #: lib/argmatch.c:168 #, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:90 msgid "Unknown system error" msgstr "" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "" #: lib/getopt.c:707 #, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "" #: lib/getopt.c:725 lib/getopt.c:898 #, c-format msgid "%s: option `%s' requires an argument\n" msgstr "" #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, c-format msgid "%s: option requires an argument -- %c\n" msgstr "" #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "" #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:689 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:158 msgid "Total bytes written: " msgstr "" #: src/buffer.c:253 #, c-format msgid "Cannot close file #%d" msgstr "" #: src/buffer.c:269 #, c-format msgid "Cannot close descriptor %d" msgstr "" #: src/buffer.c:272 #, c-format msgid "Cannot properly duplicate %s" msgstr "" #: src/buffer.c:286 src/buffer.c:296 msgid "Cannot use compressed or remote archives" msgstr "" #: src/buffer.c:350 src/buffer.c:407 src/buffer.c:512 src/buffer.c:561 msgid "Cannot open pipe" msgstr "" #: src/buffer.c:354 src/buffer.c:516 msgid "Cannot fork" msgstr "" #. The new born child tar is here! #: src/buffer.c:367 src/buffer.c:530 msgid "tar (child)" msgstr "" #: src/buffer.c:369 msgid "(child) Pipe to stdin" msgstr "" #: src/buffer.c:394 src/buffer.c:440 src/buffer.c:549 src/buffer.c:594 #, c-format msgid "Cannot open archive %s" msgstr "" #: src/buffer.c:397 msgid "Archive to stdout" msgstr "" #: src/buffer.c:400 src/buffer.c:422 src/buffer.c:554 src/buffer.c:575 #, c-format msgid "Cannot exec %s" msgstr "" #: src/buffer.c:411 src/buffer.c:565 msgid "Child cannot fork" msgstr "" #: src/buffer.c:418 msgid "((child)) Pipe to stdout" msgstr "" #. The new born grandchild tar is here! #: src/buffer.c:428 src/buffer.c:581 msgid "tar (grandchild)" msgstr "" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:432 msgid "(grandchild) Pipe to stdin" msgstr "" #: src/buffer.c:467 msgid "Cannot read from compression program" msgstr "" #: src/buffer.c:532 msgid "(child) Pipe to stdout" msgstr "" #: src/buffer.c:551 msgid "Archive to stdin" msgstr "" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:571 msgid "((child)) Pipe to stdin" msgstr "" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:585 msgid "(grandchild) Pipe to stdout" msgstr "" #: src/buffer.c:624 msgid "Cannot write to compression program" msgstr "" #: src/buffer.c:629 #, c-format msgid "Write to compression program short %lu bytes" msgstr "" #: src/buffer.c:688 msgid "Invalid value for record_size" msgstr "" #: src/buffer.c:691 msgid "No archive name given" msgstr "" #: src/buffer.c:718 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "" #: src/buffer.c:727 msgid "Cannot verify multi-volume archives" msgstr "" #: src/buffer.c:732 msgid "Cannot use multi-volume compressed archives" msgstr "" #: src/buffer.c:734 msgid "Cannot verify compressed archives" msgstr "" #: src/buffer.c:747 msgid "Cannot update compressed archives" msgstr "" #: src/buffer.c:758 msgid "Cannot verify stdin/stdout archive" msgstr "" #: src/buffer.c:812 src/buffer.c:1703 src/compare.c:533 src/incremen.c:462 #, c-format msgid "Cannot open %s" msgstr "" #: src/buffer.c:857 #, c-format msgid "Archive not labelled to match `%s'" msgstr "" #: src/buffer.c:860 src/buffer.c:1190 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "" #: src/buffer.c:899 #, c-format msgid "Write checkpoint %d" msgstr "" #: src/buffer.c:1065 src/incremen.c:527 #, c-format msgid "Cannot write to %s" msgstr "" #: src/buffer.c:1068 #, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "" #: src/buffer.c:1081 #, c-format msgid "Read error on %s" msgstr "" #: src/buffer.c:1084 msgid "At beginning of tape, quitting now" msgstr "" #: src/buffer.c:1090 msgid "Too many errors, quitting" msgstr "" #: src/buffer.c:1106 #, c-format msgid "Read checkpoint %d" msgstr "" #: src/buffer.c:1198 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "" #: src/buffer.c:1202 msgid "WARNING: No volume header" msgstr "" #: src/buffer.c:1210 #, c-format msgid "%s is not continued on this volume" msgstr "" #: src/buffer.c:1224 #, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "" #: src/buffer.c:1236 msgid "This volume is out of sequence" msgstr "" #: src/buffer.c:1264 #, c-format msgid "Record size = %lu blocks" msgstr "" #: src/buffer.c:1285 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "" #: src/buffer.c:1293 #, c-format msgid "Only read %lu bytes from archive %s" msgstr "" #: src/buffer.c:1318 src/buffer.c:1429 src/buffer.c:1545 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "" #. Lseek failed. Try a different method. #: src/buffer.c:1374 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "" #: src/buffer.c:1419 #, c-format msgid "WARNING: Cannot truncate %s" msgstr "" #: src/buffer.c:1457 #, c-format msgid "Child died with signal %d%s" msgstr "" #: src/buffer.c:1459 msgid " (core dumped)" msgstr "" #: src/buffer.c:1468 #, c-format msgid "Child returned status %d" msgstr "" #: src/buffer.c:1575 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "" #: src/buffer.c:1581 msgid "EOF where user reply was expected" msgstr "" #: src/buffer.c:1586 src/buffer.c:1615 msgid "WARNING: Archive is incomplete" msgstr "" #: src/buffer.c:1599 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" #. Quit. #: src/buffer.c:1610 msgid "No new volume; exiting.\n" msgstr "" #: src/buffer.c:1645 msgid "Cannot fork!" msgstr "" #: src/buffer.c:1655 #, c-format msgid "Cannot exec a shell %s" msgstr "" #: src/compare.c:50 #, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, c-format msgid "Could only read %lu of %lu bytes" msgstr "" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "" #: src/compare.c:306 src/compare.c:777 #, c-format msgid "Cannot seek to %s in file %s" msgstr "" #: src/compare.c:422 msgid "File does not exist" msgstr "" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "" #: src/compare.c:459 msgid "Verify " msgstr "" #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "" #: src/compare.c:505 msgid "Uid differs" msgstr "" #: src/compare.c:507 msgid "Gid differs" msgstr "" #: src/compare.c:511 msgid "Mod time differs" msgstr "" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "" #: src/compare.c:582 msgid "Does not exist" msgstr "" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "" #: src/compare.c:616 msgid "No such file or directory" msgstr "" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "" #: src/compare.c:627 msgid "Symlink differs" msgstr "" #: src/compare.c:666 msgid "Device numbers changed" msgstr "" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "" #: src/compare.c:726 msgid "No longer a directory" msgstr "" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "" #: src/create.c:638 #, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "" #: src/create.c:648 #, c-format msgid "lseek error at byte %s in file %s" msgstr "" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "" #: src/create.c:716 #, c-format msgid "File %s shrunk, padding with zeros" msgstr "" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1559 #, c-format msgid "Cannot remove %s" msgstr "" #: src/create.c:1223 #, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "" #: src/create.c:1493 #, c-format msgid "File name %s%s too long" msgstr "" #: src/create.c:1564 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "" #: src/extract.c:107 #, c-format msgid "%s: Cannot change mode to %04lo" msgstr "" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "" #: src/extract.c:177 #, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "" #: src/extract.c:185 src/extract.c:196 #, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "" #: src/extract.c:252 #, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "" #: src/extract.c:366 #, c-format msgid "%s: Could only write %s of %s bytes" msgstr "" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "" #: src/extract.c:667 #, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "" #: src/extract.c:964 msgid "Visible long name error" msgstr "" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "" #: src/incremen.c:241 src/incremen.c:616 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "" #: src/incremen.c:275 #, c-format msgid "Directory %s has been renamed" msgstr "" #: src/incremen.c:287 #, c-format msgid "Directory %s is new" msgstr "" #: src/incremen.c:443 src/names.c:501 msgid "Could not get current directory" msgstr "" #: src/incremen.c:448 src/names.c:506 #, c-format msgid "Could not get current directory: %s" msgstr "" #: src/incremen.c:452 #, c-format msgid "File name %s/%s too long" msgstr "" #: src/incremen.c:495 msgid "Device number out of range" msgstr "" #: src/incremen.c:500 msgid "Inode number out of range" msgstr "" #: src/incremen.c:604 #, c-format msgid "Cannot chdir to %s" msgstr "" #: src/incremen.c:697 msgid "Unexpected EOF in archive" msgstr "" #: src/incremen.c:726 #, c-format msgid "%s: Deleting %s\n" msgstr "" #: src/incremen.c:728 #, c-format msgid "Error while deleting %s" msgstr "" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "" #: src/list.c:127 #, c-format msgid "block %s: ** Block of NULs **\n" msgstr "" #: src/list.c:141 #, c-format msgid "block %s: ** End of File **\n" msgstr "" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "" #: src/list.c:158 msgid "Skipping to next file header" msgstr "" #: src/list.c:213 msgid "EOF in archive file" msgstr "" #: src/list.c:225 #, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, c-format msgid "block %s: " msgstr "" #: src/list.c:808 msgid "Visible longname error" msgstr "" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr "" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr "" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "" #: src/list.c:968 #, c-format msgid "--Continued at byte %s--\n" msgstr "" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "" #: src/misc.c:449 #, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "" #. The backup operation failed. #: src/misc.c:456 #, c-format msgid "%s: Cannot rename for backup" msgstr "" #: src/misc.c:472 #, c-format msgid "%s: Cannot rename from backup" msgstr "" #: src/misc.c:475 #, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "" #: src/names.c:375 src/names.c:570 src/names.c:596 src/names.c:622 #: src/names.c:775 #, c-format msgid "Cannot change to directory %s" msgstr "" #: src/names.c:391 src/names.c:447 src/names.c:492 msgid "Missing file name after -C" msgstr "" #: src/names.c:660 src/names.c:679 #, c-format msgid "%s: Not found in archive" msgstr "" #: src/rmt.c:158 msgid "rmtd: Cannot allocate buffer space\n" msgstr "" #: src/rmt.c:160 msgid "Cannot allocate buffer space" msgstr "" #: src/rmt.c:286 src/rmt.c:406 src/rmt.c:416 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:299 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:338 msgid "rmtd: Premature eof\n" msgstr "" #: src/rmt.c:340 msgid "Premature end of file" msgstr "" #: src/rmt.c:448 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "" #: src/rmt.c:450 msgid "Garbage command" msgstr "" #: src/rtapelib.c:299 msgid "exec/tcp: Service not available" msgstr "" #: src/rtapelib.c:304 msgid "stdin" msgstr "" #: src/rtapelib.c:307 msgid "stdout" msgstr "" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:467 msgid "Cannot execute remote shell" msgstr "" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" #: src/tar.c:267 msgid "" "\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" msgstr "" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "" #: src/tar.c:501 #, c-format msgid "Old option `%c' requires an argument." msgstr "" #: src/tar.c:544 msgid "Obsolete option, now implied by --blocking-factor" msgstr "" #: src/tar.c:548 msgid "Obsolete option name replaced by --blocking-factor" msgstr "" #: src/tar.c:558 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:564 msgid "Obsolete option name replaced by --read-full-records" msgstr "" #: src/tar.c:658 msgid "Invalid tape length" msgstr "" #: src/tar.c:667 msgid "Obsolete option name replaced by --touch" msgstr "" #: src/tar.c:688 msgid "More than one threshold date" msgstr "" #: src/tar.c:692 #, c-format msgid "Invalid date format `%s'" msgstr "" #: src/tar.c:701 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "" #: src/tar.c:713 msgid "Obsolete option name replaced by --absolute-names" msgstr "" #: src/tar.c:725 msgid "Obsolete option name replaced by --block-number" msgstr "" #: src/tar.c:800 msgid "Obsolete option name replaced by --backup" msgstr "" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "" #: src/tar.c:885 msgid "Invalid record size" msgstr "" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "" #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "" #: src/tar.c:995 msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "" #: src/update.c:81 #, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "" #: src/update.c:92 #, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" tar-1.13/po/stamp-cat-id0000664000176300016070000000001206740567604010547 timestamp tar-1.13/po/cs.po0000664000176300016070000013306506740055245007316 # Czech translations for GNU tar # Copyright (C) 1997 Free Software Foundation, Inc. # Vladimir Michl , 1997. # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1999-01-14 18:39+01:00\n" "Last-Translator: Vladimir Michl \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Chybný formát data `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Nejednoznaèný vzorek `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Neznámá systémová chyba" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Pøepínaè `%c' vy¾aduje argument." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Pøepínaè `%c' vy¾aduje argument." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Pøepínaè `%c' vy¾aduje argument." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Pøepínaè `%c' vy¾aduje argument." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Pøepínaè `%c' vy¾aduje argument." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Pamì» vyèerpána" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Bajtù zapsáno celkem: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Soubor #%d není mo¾né uzavøít" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Popisovaè %d není mo¾né uzavøít" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "%s není mo¾né duplikovat" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Komprimované nebo vzdálené archívy nelze pou¾ít" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Rouru nelze otevøít" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Nový proces nelze vytvoøit" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (potomek)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(potomek) Roura na stdin" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Archiv %s není mo¾né otevøít" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archivace na stdout" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "%s není mo¾né spustit" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Potomek nemù¾e vytvoøit nový proces" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((potomek)) Roura na stdout" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (prapotomek)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(prapotomek) Roura na stdin" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Z kompresního programu nelze èíst" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(potomek) Roura na stdout" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archivace na stdin" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((potomek)) Roura na stdin" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(prapotomek) Roura na stdout" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Do kompresního programu nelze zapisovat" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Do kompresního programu bylo zapsáno o bajtù ménì: %d" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Chybná hodnota pro velikost záznamu" #: src/buffer.c:690 msgid "No archive name given" msgstr "Jméno archivu nebylo zadáno" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Pro blokový faktor (blokù na záznam) %d není mo¾né alokovat pamì»" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Vícesvazkový archív není mo¾né ovìøit" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Vícesvazkový komprimovaný archív nelze vytvoøit" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Komprimovaný archív nelze ovìøit" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Komprimovaný archív nelze aktualizovat" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Stdin/Stdout archív nelze ovìøit" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "%s nelze otevøít" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Pro vyhodnocení vzorku `%s' musí být svazek pojmenován" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Svazek `%s' neodpovídá vzorku `%s'" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Zapisuji testovací bod %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Do %s není mo¾né zapsat" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Zapsáno pouze %u z %u bajtù do %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Chyba pøi ètení z %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Páska na zaèátku, konèím" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Pøíli¹ mnoho chyb, konèím" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Ètení testovacího bodu %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Ètení z %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "VAROVÁNÍ: Chybí hlavièka svazku" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s nepokraèuje na tomto svazku" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s je ¹patné délky (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Tento svazek není následníkem pøedchozího" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Velikost záznamu = %d blokù" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "Konec (EOF) archivu %s není na hranici bloku" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Pøeèteno pouze bajtù: %d (%s)" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "VAROVÁNÍ: %s není mo¾né uzavøít (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "V archivu se nelze vrátit, proto mù¾e být bez -i neèitelný" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "VAROVÁNÍ: %s není mo¾né uzavøít (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Potomek byl ukonèen signálem %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (soubor `core' vytvoøen)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Potomek vrátil status %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Pøipravte svazek #%d souboru %s a stisknìte return:" #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "Místo u¾ivatelské odpovìdi byl zadán konec souboru" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "VAROVÁNÍ: Archiv je nekompletní" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [name] Zadání nového jména pro dal¹í (a následující) svazek(ky)\n" " q Ukonèení programu tar\n" " ! Vytvoøení podshell\n" " ? Vypísání této nápovìdy\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Není nový svazek; konèím.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Nový proces není mo¾né vytvoøit!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Shell %s není mo¾né spustit" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Diff buffer není mo¾né alokovat (velikost v bajtech: %d)" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "%s nelze èíst" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Je mo¾no pøeèíst pouze %d z %ld bajtù" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Data se li¹í" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Neoèekávaný konec archívu (EOF)" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Posun ukazatele na pozici %ld v souboru %s není mo¾no provést" #: src/compare.c:422 msgid "File does not exist" msgstr "Soubor neexistuje" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Funkci stat na soubor %s není mo¾né provést" #: src/compare.c:459 msgid "Verify " msgstr "Ovìøuji " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "Neznámý typ '%c' souboru %s, porovnáván jako normální soubor" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Není obyèejný soubor" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Práva se li¹í" #: src/compare.c:505 msgid "Uid differs" msgstr "Uid se li¹í" #: src/compare.c:507 msgid "Gid differs" msgstr "Gid se li¹í" #: src/compare.c:511 msgid "Mod time differs" msgstr "Èas poslední modifikace se li¹í" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Velikost se li¹í" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Chyba pøi uzavírání %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Neexistuje" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Není odkazem na %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Není souborem ani adresáøem" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Odkaz %s není mo¾né èíst" #: src/compare.c:627 msgid "Symlink differs" msgstr "Symbolický odkaz se li¹í" #: src/compare.c:666 msgid "Device numbers changed" msgstr "Èíslo zaøízení zmìnìno" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Práva nebo typ zaøízení zmìnìn" #: src/compare.c:726 msgid "No longer a directory" msgstr "U¾ není adresáøem" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Soubor %s není mo¾né otevøít" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Není mo¾né pøejít na zaèátek archivaèního souboru pro ovìøení" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "CHYBNÉ OVÌØENÍ: chybných hlavièek detekováno: %d" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Odstraòuji jméno disku ze jmen souborù v archivu" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Odstraòuji úvodní `/' z absolutních cest v archivu" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Zapsáno %ld z %ld bajtù do souboru %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Chyba pøi èetní %ld z %d bajtù ze souboru %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Chyba pøi ètení %ld z %d bajtù ze souboru %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Soubor %s je krat¹í o bajtù: %d. Doplòuji nulami." #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Soubor %s není mo¾né pøidat" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: není zmìnìn; neaktualizován" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s je archív; nearchivován" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Odstraòuji úvodní `/' z absolutních odkazù" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "%s není mo¾né smazat" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Soubor %s je krat¹í o bajtù: %d. Doplòuji nulami." #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "%s není mo¾né pøidat" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s je na jiném souborovém systému; nearchivován" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Do adresáøe %s není mo¾né vstoupit" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Jméno souboru %s%s je pøíli¹ dlouhé" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Neznámý typ souboru; soubor ignorován" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Pozici v archivu není mo¾né zmìnit" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Toto pravdìpodobnì není tar archív" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Pøeskakuji na dal¹í hlavièku" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Z archivu je mazáno to, co není hlavièka" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Zmìnit práva na %0.4o není mo¾né" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Zmìnit pøístupový èas a èas poslední modifikace není mo¾né" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: lchown na uid %d a gid %d není mo¾né provést" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: chown na uid %d a gid %d není mo¾né provést" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Zmìnit vlastníka na uid %d, gid %d není mo¾né" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Do souboru není mo¾né zapisovat" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Bylo mo¾no zapsat pouze %d z %d bajtù" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Tento soubor nebylo mo¾né zálohovat" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Souvisle ulo¾ené soubory rozbaluji jako obyèejné soubory" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Není mo¾né vytvoøit soubor" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Bylo mo¾no zapsat pouze %d z %d bajtù" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Chyba pøi uzavírání" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: symbolický odkaz na `%s' není mo¾né vytvoøit" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Zkou¹ím rozbalit symbolické odkazy jako pevné odkazy" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: symbolický odkaz na `%s' nelze vytvoøit" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Uzel nelze vytvoøit" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Není mo¾né vytvoøit rouru" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Není mo¾né vytvoøit adresáø" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Pøidána práva zápisu a vykonání adresáøi %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "`%s' není mo¾né rozbalit -- soubor je pokraèováním jiného" #: src/extract.c:964 msgid "Visible long name error" msgstr "Viditelná chyba dlouhého jména" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Neznámý typ `%c' souboru %s, rozbalen jako normální soubor" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Funkci stat na %s není mo¾né vykonat" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Adresáø %s byl pøejmenován" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Adresáø %s je nový" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Aktuální adresáø nelze èíst" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Aktuální adresáø %s nelze èíst" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Jméno souboru %s/%s je pøíli¹ dlouhé" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Èíslo zaøízení zmìnìno" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Do adresáøe %s není mo¾né vstoupit" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Neoèekávaný konec archívu" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Ma¾u %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Pøi mazání %s nastala chyba" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Vynechávám %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "blok %10ld: ** Blok NUL **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "blok %10ld: ** Konec souboru **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Tento soubor nevypadá jako tar archív" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Pøeskakuji na dal¹í hlavièku" #: src/list.c:213 msgid "EOF in archive file" msgstr "EOF v archívu" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Zapsáno pouze %ld z %ld bajtù do souboru %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "blok %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Viditelná chyba dlouhého jména" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " odkaz na %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " neznámý typ `%c' souboru\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Hlavièka svazku--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Pokraèováno od %ld bajtu--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Rozsekané jméno souboru--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Vytváøím adresáø:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Neoèekávaný konec v rozsekaném jménì" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "%s není mo¾né pøejmenovat na %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Soubor %s pøejmenován na %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "symbolický odkaz %s na %s není mo¾né vytvoøit" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s odkazuje na %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Neznámý pøíkaz %s pro spojování rozsekaných jmen" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Soubor %s pøejmenován na %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "%s není mo¾né pøejmenovat na %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "%s není mo¾né pøejmenovat na %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Soubor %s pøejmenován na %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Do adresáøe %s není mo¾né vstoupit" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Za -C chybí jméno souboru" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: V archivu nenalezen" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Místo pro buffer není mo¾né alokovat\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Místo pro buffer není mo¾né alokovat" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Pøedèasný konec souboru\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Pøedèasný konec souboru" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Neznámý pøíkaz %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Neznámý pøíkaz" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Slu¾ba není k dispozici" #: src/rtapelib.c:301 msgid "stdin" msgstr "stdin" #: src/rtapelib.c:304 msgid "stdout" msgstr "stdout" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Vzdálený shell není mo¾né spustit" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Pøepínaèe `-%s' a `-%s' oba dva chtìjí standardní vstup" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Potvrzení od u¾ivatele není mo¾né èíst" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Více informací získáte pøíkazem `%s --help'.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" " GNU `tar' je archivaèní program. Ukládá soubory do archivu na pásku nebo \n" "disk. Z archivu doká¾e rozbalit jak celé hierarchie souborù, tak i " "jednotlivé\n" "soubory.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Pou¾ití: %s [PØEPÍNAÈ]... [SOUBOR]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" " Jestli¾e dlouhé pøepínaèe mají povinný argument, pak tento argument je\n" "povinný i u jejich krátkých forem. Obdobnì je tomu v pøípadì, kdy je " "argument\n" "nepovinný.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Hlavní funkce:\n" " -t, --list vypí¹e obsah archivu\n" " -x, --extract, --get vyzvede soubor(y) z archivu\n" " -c, --create vytvoøí nový archiv\n" " -d, --diff, --compare nalezne rozdíly mezi archivem a souborovým " "systémem\n" " -r, --append pøidá soubory na konec archivu\n" " -u, --update pøidá pouze soubory novìj¹í, ne¾ jsou v archivu\n" " -A, --catenate pøidá soubory z tar archivu do archivu\n" " --concatenate stejné jako -A\n" " --delete ma¾e z archivu (nefunguje na magnetických " "páskách)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Modifikátory operací:\n" " -W, --verify ovìøí archív po jeho zápisu na médium\n" " --remove-files sma¾e originální soubory po jejich archivaci\n" " -k, --keep-old-files nepøepisuje soubory pøi rozbalování archivu\n" " -U, --unlink-first sma¾e soubory pøed jejich pøepsáním\n" " --recursive-unlink sma¾e prázdné hierarchie pøed \n" " rozbalováním adresáøù\n" " -S, --sparse soubory s dírami zpracuje efektivnìji\n" " -O, --to-stdout rozbalí archiv na standardní výstup\n" " -G, --incremental zpracuje starý GNU-formát inkrementální zálohy\n" " -g, --listed-incremental zpracuje nový GNU-formát inkrementální zálohy\n" " --ignore-failed-read ignoruje chyby pøi ètení souborù\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Zpracování atributù souborù:\n" " --owner=JMÉNO pou¾ije JMÉNO jako vlastníka pøidávaných " "souborù\n" " --group=JMÉNO pou¾ije JMÉNO jako skupinu pøidávaných " "souborù\n" " --mode=OSMIÈKOVÌ pou¾ije OSMIÈKOVÌ jako práva pøidávaných " "souborù\n" " --atime-preserve nemìní pøístupový èas na zpracovávaných\n" " souborech\n" " -m, --modification-time u rozbalovávaných souborù nenastaví èas\n" " poslední modifikace souboru z archivu\n" " --same-owner u rozbalovávaných souborù nastaví stejného\n" " vlastníka jako je v archivu\n" " --numeric-owner v¾dy pou¾ívá èísla pro jména " "vlastníka/skupiny\n" " -p, --same-permissions u rozbalovávaných souborù nastaví stejná\n" " práva, jaká mají v archivu\n" " --preserve-permissions stejné jako -p\n" " -s, --same-order seøazení jmen souborù pro rozbalení je\n" " stejné s archivem\n" " --preserve-order stejné jako -s\n" " --preserve stejné jako zadání -p a -s\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Výbìr zaøízení:\n" " -f, --file=ARCHIV pracuje s archivem nebo zaøízením ARCHIV\n" " --force-local archivní soubor je lokální, dokonce i kdy¾\n" " obsahuje ve jménì dvojteèku\n" " --rsh-command=PØÍKAZ pou¾ije PØÍKAZ pro pøihlá¹ení místo rsh\n" " -[0-7][lmh] zadání zaøízení a hustoty\n" " -M, --multi-volume práce s vícesvazkovým archivem\n" " -L, --tape-length=ÈÍSLO vymìní pásku po zapsání ÈÍSLO x 1024 bajtù\n" " -F, --info-script=SOUBOR spustí script na konci ka¾dé pásky\n" " (zahrnuje i -M)\n" " --new-volume-script=SOUBOR stejné jako -F SOUBOR\n" " --volno-file=SOUBOR pou¾ije/aktualizuje èíslo svazku v SOUBORu\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Bloky u zaøízení:\n" " -b, --blocking-factor=BLOKÙ BLOKÙ x 512 bajtù na záznam\n" " --record-size=VELIKOST VELIKOST bajtù na záznam, násobek 512\n" " -i, --ignore-zeros ignoruje nulové bloky v archivu,\n" " které normálnì znamenají EOF.\n" " -B, --read-full-records kdy¾ není pøeèteno tolik bajtù,\n" " kolik je po¾adováno, zkou¹í doèíst zbytek\n" " (vhodné pro roury)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Výbìr formátu archívu:\n" " -V, --label=JMÉNO vytvoøí archiv se jménem svazku JMÉNO\n" " VZOREK u obsahu/rozbalování globální vzorek\n" " pro jména souborù\n" " -o, --old-archive, --portability zapí¹e archiv ve formátu V7\n" " --posix zapí¹e archiv ve formátu POSIX\n" " -z, --gzip, --ungzip filtruje archiv pøes gzip\n" " -Z, --compress, --uncompress filtruje archiv pøes compress\n" " --use-compress-program=PROG filtruje pøes PROG (musí akceptovat " "-d)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Výbìr souborù:\n" " -C, --directory=ADRESÁØ operace vykonává v ADRESÁØi\n" " -T, --files-from=JMÉNO pøi rozbalování nebo vytváøení bere názvy\n" " souborù ze souboru JMÉNO\n" " --null -T ète nulou ukonèené jména, zakázáno -C\n" " --exclude=VZOREK nepracuje se soubory odpovídající VZORKu\n" " -X, --exclude-from=SOUBOR nepracuje se soubory, které odpovídají\n" " nìkterému vzorku v SOUBORu\n" " -P, --absolute-names neodstraòuje úvodní `/' ze jmen souborù\n" " -h, --dereference místo symbolických odkazù pou¾ije soubory,\n" " na které odkazy ukazují\n" " --no-recursion neprochází adresáøe\n" " -l, --one-file-system pøi vytváøení archivu zùstane v jednom\n" " souborovém systému\n" " -K, --starting-file=JMÉNO zaène od souboru JMÉNO z archivu\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATUM archivuje pouze soubory novìj¹í ne¾ DATUM\n" " --newer-mtime=DATUM archivuje pouze soubory, jejich¾ datum " "poslední\n" " zmìny dat je novìj¹í ne¾ DATUM\n" " --after-date=DATUM stejné jako -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=ØÍZENÍ] zpùsob zálohování souborù, pøed jejich " "pøepsáním\n" " --suffix=PØÍPONA zálohuje pøed pøepsáním (smazáním), jako " "pøíponu\n" " u zálo¾ních souborù pou¾ije PØÍPONU\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Informativní výstup:\n" " --help vypí¹e tuto nápovìdu a skonèí\n" " --version vypí¹e oznaèení verze programu tar a skonèí\n" " -v, --verbose vypisuje zpracovávané soubory\n" " --checkpoint vypisuje jména adresáøù pøi ètení archivu\n" " --totals vypí¹e celkem zapsaných bajtù pøi tvorbì archivu\n" " -R, --block-number s ka¾dou zprávou vypí¹e èíslo bloku v archivu\n" " -w, --interactive ¾ádá potvrzení ka¾dé akce\n" " --confirmation stejné jako -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" " Pøípona zálo¾ních souborù bude `~', pokud není nastavena pomocí --suffix\n" "nebo promìnné SIMPLE_BACKUP_SUFFIX. Jak se mají tvoøit zálo¾ní kopie, mù¾e " "být\n" "nastaveno pomocí pøepínaèe --backup nebo promìnné VERSION_CONTROL. Hodnoty\n" "mohou být:\n" "\n" " t, numbered tvoøí èíslované zálo¾ní kopie\n" " nil, existing èíslované, jestli¾e ji¾ èíslované zálo¾ní kopie\n" " existují, jinak tvoøí jednoduché\n" " never, simple tvoøí v¾dy jednoduché zálo¾ní kopie souborù\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" " GNU tar neumí èíst nebo produkovat `--posix' archivy. Jestli¾e je\n" "v prostøedí nastaveno POSIXLY_CORRECT, GNU roz¹íøení je zablokováno " "pøepínaèem\n" "`--posix'. Podpora POSIX formátu je èásteènì implementována, proto s ní " "pøíli¹\n" "nepoèítejte.\n" " ARCHIV mù¾e být SOUBOR, HOSTITEL:SOUBOR nebo U®IVATEL@HOSTITEL:SOUBOR,\n" "SOUBOR mù¾e být soubor nebo zaøízení. Implicitní pøepínaèe jsou `-f %s -b " "%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" " Chyby v programu oznamujte na adrese (pouze\n" "anglicky), pøipomínky k pøekladu zasílejte na adresu (èesky).\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Více jak jeden pøepínaè z `-Acdtrux' nemù¾e být zadán" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Odporující si kompresní pøepínaèe" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Pøepínaè `%c' vy¾aduje argument." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Zastaralý pøepínaè, nyní zahrnut v pøepínaèi --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Zastaralý pøepínaè, nahrazen pøepínaèem --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Zastaralý pøepínaè, nahrazen pøepínaèem --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Zastaralý pøepínaè, nahrazen pøepínaèem --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Více ne¾ jedeno poèáteèní datum" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Chybný formát data `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Odporující si archivní formáty" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Zastaralý pøepínaè, nahrazen pøepínaèem --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Zastaralý pøepínaè, nahrazen pøepínaèem --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Zastaralý pøepínaè, nahrazen pøepínaèem --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Zadána neplatná skupina" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Zadána chybná práva" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Zadán neplatný vlastník" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Chybná hodnota pro velikost záznamu" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Velikost záznamu musí být násobek %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Pøepínaè `-[0-7][lmh]' není podporován tímto tarem" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" " Toto je volné programové vybavení; podmínky pro kopírování a roz¹iøování\n" "naleznete ve zdrojových textech. Toto programové vybavení je zcela BEZ " "ZÁRUKY,\n" "a to i bez záruky PRODEJNOSTI nebo VHODNOSTI PRO NÌJAKÝ KONKRÉTNÍ ÚÈEL.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Autoøi: John Gilmore a Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "GNU roz¹íøení po¾adovány na nekompatibilním formátu archivu" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Více archivaèních souborù vy¾aduje pøepínaè `-M'" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Vytvoøení prázdného archívu odmítnuto." #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Pøepínaèe `-Aru' jsou nesluèitelné s pøepínaèem `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Musíte zadat jeden z pøepínaèù `-Acdtrux'" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Za bìhu programu nastala chyba" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Chyba pøi èetní %ld z %d bajtù ze souboru %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Soubor zkrácen o bajtù: %d" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Generuji datové soubory pro testování GNU taru.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Pou¾ití: %s [PØEPÍNAÈ]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" " Povinné argumenty u dlouhých pøepínaèù, jsou povinné také u odpovídajících " "\n" "krátkých pøepínaèù.\n" "\n" " -l, --file-length délka generovaného souboru\n" " --help vypí¹e tuto nápovìdu a skonèí\n" " --version vypí¹e oznaèení verze a skonèí\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Nejednoznaèný vzorek `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Neznámý vzorek `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Autor: François Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Momentálnì je zapsáno %d.\n" #~ msgid "%d at %d\n" #~ msgstr "pozice %d v %d úseku\n" tar-1.13/po/de.po0000664000176300016070000014170006740055246007275 # German messages for GNU tar. # Copyright (C) 1995, 1996 Free Software Foundation, Inc. # Ulrich Drepper , 1995? # Karl Eichwalder , 1996 # Christian Kirsch , 1996 # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1998-12-07 11:08+01:00\n" "Last-Translator: Christian Kirsch \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Version: 1\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Ungültiges Datumsformat ` %s'." #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Mehrdeutiges Muster `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Unbekannter Systemfehler." #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Die alte Option '%c' benötigt einen Parameter." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Die alte Option '%c' benötigt einen Parameter." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Die alte Option '%c' benötigt einen Parameter." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Die alte Option '%c' benötigt einen Parameter." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Die alte Option '%c' benötigt einen Parameter." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Kein Speicher mehr" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Gesamtzahl geschriebener Bytes: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Kann Datei #%d nicht schließen." #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Kann Deskriptor %d nicht schließen." #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Kann %s nicht duplizieren." #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Kann keine komprimierten oder nicht-lokalen Archive verwenden." #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Kann Pipe nicht öffnen." #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Kann nicht \"fork'en\"." #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (Kind)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(Kind) \"Pipe\" zu Standard-Eingabe." #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Kann Archiv '%s' nicht öffnen." #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archiv auf Standard-Ausgabe." #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Kann %s nicht ausführen." #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Kind-Prozeß kann nicht \"fork'en\"." #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((Kind-Prozeß)) Pipe zur Standard-Ausgabe." #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar Enkel (`tar (grandchild)')." #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "Enkel (`(grandchild)') Pipe zur Standard-Eingabe." #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Kann nicht vom Kompressionsprogramm lesen." #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(Kind) Pipe zu Standard-Ausgabe." #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archiv von Standard-Eingabe." #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((Kind-Prozeß)) Pipe zur Standard-Eingabe." #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "Enkel (`(grandchild)') Pipe zur Standard-Ausgabe (`stdout')." #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Kann nicht zum Kompressionsprogramm schreiben." #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Konnte letzte %d Bytes nicht zu Kompressionsprogramm ausgeben." #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Ungültiger Wert für \"record_size\"." # Ein Programm hat kein "Ich" #: src/buffer.c:690 msgid "No archive name given" msgstr "Kein Archiv-Name angegeben" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Konnte keinen Speicher für Blockungsfaktor %d reservieren." #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Kann mehrteilige Archive nicht prüfen." #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Kann keine mehrteiligen komprimierten Archive verwenden." #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Kann komprimierte Archive nicht prüfen" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Kann komprimierte Archive nicht aktualisieren" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Kann Archive auf Standard-Ein-/Ausgabe nicht prüfen." #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Kann %s nicht öffnen." #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Archiv nicht gekennzeichnet, um zu %s zu passen." #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Teil `%s' paßt nicht zu `%s'." #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Schreibe Checkpoint %d." #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Kann nicht auf %s schreiben." #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Habe nur %u von %u Bytes in %s geschrieben." #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Lesefehler bei %s." #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Am Anfang des Mediums, beende jetzt." #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Zu viele Fehler, beende." #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Lese Checkpoint %d." #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Lese %s.\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "WARNUNG: Kein Kopfteil vorhanden." #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "Dieser Teil ist keine Fortsetzung von %s." #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s hat die falsche Größe (%ld != %ld + %ld)." #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Dieser Teil ist nicht an der Reihe." # ?? Blockgröße == xx Blocks macht keinen Sinn #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Recordgröße = %d blocks" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "Archiv %s Dateiende nicht auf Blockgrenze." #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Habe nur %d Bytes von Archiv %s gelesen." #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "WARNUNG: Kann %s nicht schließen (%d, %d)." #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Kann Archiv-Datei nicht zurücksetzen; könnte ohne `-i'unlesbar sein." #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "WARNUNG: Kann %s nicht schließen (%d, %d)." #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Kind-Prozeß mit Signal %d%s gestorben." #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (Speicherabzug geschrieben)." #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Kind-Prozeß gab Status %d zurück." #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Medium #%d für %s einlegen und \"Return\" drücken: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "Dateiende gefunden, Benutzereingabe erwartet" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "WARNUNG: Archiv unvollständig" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [NAME] Für die nächsten (und folgenden) Medien neuen Dateinamen " "angeben\n" " q »tar« abbrechen\n" " ! Shell in einem Unterprozeß starten\n" " ? Diese Liste ausgeben\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Kein neues Medium; halte an.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Kann nicht `fork'en!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Kann keine `Shell' %s ausführen." #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Konnte keinen Speicher von %d Bytes für Vergleichspuffer belegen." #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Kann %s nicht lesen." #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Konnte nur %d von %ld Bytes lesen" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "unterschiedliche Daten" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Unerwartetes Dateiende in Archiv." #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Kann nicht auf %ld in Datei %s positionieren." #: src/compare.c:422 msgid "File does not exist" msgstr "Datei nicht vorhanden" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "`stat' auf '%s' fehlgeschlagen." #: src/compare.c:459 msgid "Verify " msgstr "Prüfe " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" "Unbekannter Dateityp '%c' für %s, Differenz wie für eine normale Datei." #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Keine reguläre Datei." #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "`mode' ist unterschiedlich" #: src/compare.c:505 msgid "Uid differs" msgstr "Benutzerkennung ist unterschiedlich" #: src/compare.c:507 msgid "Gid differs" msgstr "Gruppenkennung ist unterschiedlich" #: src/compare.c:511 msgid "Mod time differs" msgstr "Änderungszeit ist unterschiedlich" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Größe ist unterschiedlich" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Fehler beim Schließen von %s." #: src/compare.c:582 msgid "Does not exist" msgstr "Nicht vorhanden" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Nicht auf `%s' gelinkt." #: src/compare.c:616 msgid "No such file or directory" msgstr "Datei oder Verzeichnis nicht vorhanden." #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Kann Link `%s' nicht lesen." #: src/compare.c:627 msgid "Symlink differs" msgstr "Symbolischer Link ist unterschiedlich." #: src/compare.c:666 msgid "Device numbers changed" msgstr "Gerätenummer ist unterschiedlich." # Was ist da gemeint? ke #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Modus- oder Gerätenummer sind unterschiedlich." #: src/compare.c:726 msgid "No longer a directory" msgstr "Ist kein Verzeichnis mehr." #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Kann Datei '%s' nicht öffnen." #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Konnte Archiv zur Prüfung nicht zurückspulen." #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "FEHLER BEI PRÜFUNG: %d ungültiger Kopfteil bzw. -teile erkannt." #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Entferne Laufwerksbuchstaben von Namen im Archiv." #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Entferne führenden `/' von absoluten Dateinamen im Archiv." #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Schreibe %ld von %ld Bytes in Datei %s." #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Lesefehler bei Byte %ld beim Lesen von %d Bytes in Datei '%s'." #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Lesefehler bei Byte %ld beim Lesen von %d Bytes in Datei %s." #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Datei %s ist um %d Bytes geschrumpft, fülle mit Nullen auf." #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Kann Datei %s nicht hinzufügen." #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: ist unverändert; nicht gesichert." #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s ist ein Archiv; nicht gesichert." #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Entferne führenden `/' von absoluten Links." #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Kann %s nicht entfernen." #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Datei %s ist um %d Bytes geschrumpft, fülle mit Nullen auf." #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Kann Verzeichnis %s nicht erzeugen." #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: Auf einem anderen Dateisystem; nicht gesichert." #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Kann Verzeichnis %s nicht öffnen." #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Dateiname %s%s ist zu lang." #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Unbekannter Dateityp; Datei ignoriert." #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Konnte Datei nicht positionieren." #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Das sieht nicht wie ein »tar«-Archiv aus." #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Springe zum nächsten Kopfteil." #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Lösche nicht-Kopfteil aus dem Archiv" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Kann Zugriffsrechte nicht zu %0.4o ändern." # Klingt nicht ;-( ke # # Die alte Üs ist wohl nicht richtig ("Zugriffsrechte und Änderungszeit"). #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Konnte Zugriffs- und Veränderungszeit nicht ändern." #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Kann kein »lchown« zu uid %d, gid %d." #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Kann kein »chown« zu uid %d, gid %d." #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Kann Datei-Eigentümer nicht zu uid %d, gid %d ändern." #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Kann nicht in Datei schreiben." #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Kann nur %d von %d Bytes schreiben." #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Konnte keine Sicherheitskopie von dieser Datei erstellen" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Extrahiere zusammenhängende Dateien (`contiguous files') als reguläre." #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Kann Datei nicht anlegen." #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Kann nur %d von %d Bytes schreiben." #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Fehler beim Schließen." # Wie drückt man das richtig aus? "Verweis _nach_..."? ke. #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Kann keinen symbolischen Link auf '%s' anlegen." #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Versuche symbolische Links als harte Links herauszuholen." #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Kann nicht zu '%s' linken." # Was ist damit gemeint? ke. #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Kann Gerätedatei nicht anlegen." #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Kann \"fifo\" (= file in, file out) nicht anlegen." #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Kann Verzeichnis nicht anlegen." #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Setze Schreib- und Ausführungsrechte für Verzeichnis %s." #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "" "Kann '%s' nicht herausholen -- Datei ist Fortsetzung eines anderen Teils." #: src/extract.c:964 msgid "Visible long name error" msgstr "Fehler bei langem Dateinamen." #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Unbekannter Dateityp '%c' für %s, wie eine normale Datei herausgeholt." #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "`stat' auf %s fehlgeschlagen." #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Verzeichnis '%s' wurde umbenannt." #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Verzeichnis '%s' ist neu." #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Konnte aktuelles Verzeichnis nicht ermitteln." #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Konnte aktuelles Verzeichnis nicht ermitteln: %s." #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Dateiname %s/%s ist zu lang." #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Gerätenummer ist unterschiedlich." #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Kann nicht zu Verzeichnis '%s' wechseln." #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Unerwartetes Dateiende im Archiv." #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Lösche '%s'.\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Fehler beim Löschen von '%s'." #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Lasse '%s' aus." #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "Block %10ld: ** Block aus NULs **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "Block %10ld: ** Ende der Datei **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Hmm, das sieht nicht wie ein »tar«-Archiv aus." #: src/list.c:158 msgid "Skipping to next file header" msgstr "Springe zum Kopfteil der nächsten Datei." #: src/list.c:213 msgid "EOF in archive file" msgstr "Dateiende in der Archiv-Datei." #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Habe nur %ld von %ld Bytes in Datei '%s' geschrieben." #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "Block %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Fehler bei langem Dateinamen." #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " Link auf '%s'.\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " unbekannter Dateityp '%c'.\n" # Alte Üs: Band Kopfteil. Kann diese Meldung auch bei Disketten # ausgegeben werden? Dann kann man ja nicht "Band" sagen; am besten # einfach "Volume" lassen. ke. #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Vorspann des Teils--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Fortgesetzt bei Byte %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Verstümmelte Dateinamen--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Erzeuge Verzeichnis:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Unerwartetes Dateiende in verstümmelten Namen." #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Kann '%s' nicht in '%s' umbenennen." #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Benenne '%s' in '%s' um." #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Kann keinen symbolischen Link von '%s' auf '%s' einrichten." #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "Symbolischer Link von '%s' auf '%s'." #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Unbekanntes Kommando »%s« beim Zusammensetzen von Namen." #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Benenne '%s' in '%s' um." #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Kann '%s' nicht in '%s' umbenennen." #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Kann '%s' nicht in '%s' umbenennen." #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Benenne '%s' in '%s' um." #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Kann nicht zu Verzeichnis '%s' wechseln." #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Dateiname nach '-C' fehlt." #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Nicht im Archiv gefunden." #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Kann Speicherplatz für Puffer nicht reservieren.\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Kann keinen Speicher für Puffer reservieren." #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Vorzeitiges Dateiende.\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Vorzeitiges Dateiende." #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Ungültiges Kommando '%c'.\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Ungültiges Kommando." #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Service nicht verfügbar." #: src/rtapelib.c:301 msgid "stdin" msgstr "Standardeingabe" #: src/rtapelib.c:304 msgid "stdout" msgstr "Standardausgabe" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Kann Remote-Shell nicht ausführen." #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Die beiden Optionen '-%s' und '-%s' verlangen Standard-Eingabe." #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Kann keine Bestätigung vom Benutzer bekommen." #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "`%s --help' zeigt weitere Informationen.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU «tar» schreibt mehrere Dateien in ein Archiv auf Band oder Festplatte " "und\n" "kann einzelne Dateien aus diesem Archiv herausholen.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Aufruf: %s [OPTION]... [DATEI]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Wenn eine lange Option ein Argument erfordert, ist es für die entsprechende\n" "kurze Option auch erforderlich. Das gleich gilt für optionale Argumente.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Aktionen:\n" " -t, --list Inhalt eines Archivs anzeigen\n" " -x, --extract, --get Dateien aus Archiv holen\n" " -c, --create neues Archiv erzeugen\n" " -d, --diff, --compare Dateien im Archiv und im Dateisystem vergleichen\n" " -r, --append Dateien an das Archiv anhängen\n" " -u, --update nur Dateien anhängen, die jünger sind als ihre " "Archiv-Version\n" " -A, --catenate »tar«-Dateien an ein Archiv anhängen\n" " --concatenate wie '-A'\n" " --delete aus Archiv löschen (nicht auf Magnetbändern!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Feineinstellungen:\n" " -W, --verify Archiv nach dem Schreiben prüfen\n" " --remove-files Dateien nach dem Hinzufügen zum Archiv löschen\n" " -k, --keep-old-files vorhandene Dateien nicht überschreiben\n" " -U, --unlink-first zu überschreibende Dateien vor dem Auspacken " "löschen\n" " --recursive-unlink Verzeichnisse vor dem Entpacken löschen\n" " -S, --sparse löchrige Dateien (`sparse files') effizient " "behandeln\n" " -O, --to-stdout Dateien zur Standard-Ausgabe entpacken\n" " -G, --incremental inkrementelle Sicherung im alten GNU-Format\n" " -g, --listed-incremental inkrementelle Sicherung im neuen GNU-Format\n" " --ignore-failed-read Lesefehler ignorieren; fehlt diese Option, " "bricht »tar«\n" "\t\t\t mit einem Fehler ab\n" # ### '-m' ??? ke #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Datei-Eigenschaften:\n" " --owner=NAME Eigentümer für hinzugefügte Dateien auf NAME " "setzen\n" " --group=NAME Gruppe für hinzugefügte Dateien auf NAME " "setzen\n" " --mode=OCTAL Zugriffsrechte für hinzugefügte Dateien auf " "OCTAL setzen\n" " --atime-preserve Zugriffszeit beim Auspacken erhalten\n" " -m, --modification-time Änderungszeit beim Auspacken erhalten\n" " --same-owner Eigentümer beim Auspacken erhalten\n" " --numeric-owner Zahlen für Benutzer bzw. Gruppen benutzen\n" " -p, --same-permissions Zugriffsrechte beim Auspacken erhalten\n" " --preserve-permissions wie '-p'\n" " -s, --same-order zu entpackende Dateinamen wie im Archiv " "sortieren\n" " --preserve-order wie '-s'\n" " --preserve wie '-p' und '-s' zusammen\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Geräteauswahl und -einstellung:\n" " -f, --file=ARCHIV Gerät oder Datei ARCHIV benutzen\n" " --force-local Archiv-Datei ist lokal, auch wenn der Name\n" " einen Doppelpunkt enthält\n" " --rsh-command=BEFEHL statt «rsh» den BEFEHL benutzen\n" " -[0-7][lmh] Laufwerk und Schreibdichte angeben\n" " -M, --multi-volume mehrteiliges Archiv " "anlegen/listen/herausholen\n" " -L, --tape-length=ZAHL Medium wechseln, wenn ZAHL KBytes " "geschrieben sind\n" " -F, --info-script=DATEI am Ende jedes Mediums das Skript DATEI\n" " ausführen (impliziert '-M')\n" " --new-volume-script=DATEI wie '-F DATEI'\n" " --volno-file=DATEI Teil-Nummer in DATEI " "benutzen/aktualisieren\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Blockung des Gerätes:\n" " -b, --block-size=BLÖCKE BLÖCKE à 512 Bytes pro Record\n" " --record-size=GRÖSSE GRÖSSE Bytes pro Record, Vielfaches von 512\n" " -i, --ignore-zeros Blöcke mit Nullen im Archiv ignorieren (heißt " "EOF)\n" " -B, --read-full-blocks Blockung beim Lesen ändern (für 4.2BSD " "\"Pipes\")\n" # ### Checkit! wie ist --label zu verstehen? #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Auswahl des Archiv-Formats:\n" " -V, --label=NAME Archiv NAME erzeugen\n" " MUSTER Beim Anzeigen/Herausholen ist MUSTER " "ein\n" " regulärer Ausdruck\n" " -o, --old-archive, --portability Archiv im »V7«-Format schreiben\n" " --posix POSIX-konformes Archiv schreiben\n" " -z, --gzip, --ungzip Archiv mit »gzip« komprimieren\n" " -Z, --compress, --uncompress Archiv mit »compress« komprimieren\n" " --use-compress-program=PROG Archiv durch PROG filtern (muss '-d' \n" " akzeptieren)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Auswahl der lokalen Dateien:\n" " -C, --directory=VERZEICHNIS zu VERZEICHNIS wechseln\n" " -T, --files-from=DATEI Namen der zu bearbeitenden Dateien aus DATEI " "lesen\n" " --null '-T' lies Null-terminierte Namen, verbiete " "'-C'\n" " --exclude=MUSTER Dateien überspringen, auf die MUSTER paßt\n" " -X, --exclude-from=DATEI Dateien überspringen, auf die in DATEI \n" "\t\t\t angegebene Muster passen\n" " -P, --absolute-paths führende `/'-Zeichen in den Dateinamen " "erhalten\n" " -h, --dereference Dateien statt symbolischer Links sichern\n" " --no-recurse keine Verzeichnisse sichern\n" " -l, --one-file-system beim Erzeugen Dateisystem nicht wechseln\n" " -K, --starting-file=NAME mit NAME im Archiv beginnen\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATUM nur Dateien jünger als DATUM sichern\n" " --newer-mtime Datum und Zeit nur vergleichen, wenn sich der\n" " Datei-Inhalt geändert hat\n" " --after-date=DATUM wie '-N'\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=CONTROL] Sicherheitskopie vor dem Löschen, wählt " "Version\n" " --suffix=SUFFIX Sicherheitskopie vor dem Löschen, " "Namenserweiterung SUFFIX\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Informationen:\n" " --help Hilfe anzeigen und «tar» beenden\n" " --version Versionsnummer anzeigen und «tar» benden\n" " -v, --verbose zu bearbeitende Dateien ausführlich listen\n" " --checkpoint Verzeichnisnamen beim Lesen des Archivs zeigen\n" " --totals geschriebene Bytes beim Schreiben des Archivs " "zeigen\n" " -R, --block-number Blocknummer innerhalb des Archivs mit jeder Meldung " "zeigen\n" " -w, --interactive Bestätigung für jede Aktion verlangen\n" " --confirmation wie '-w'\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Die Namenserweiterung für Sicherheitskopien ist `~', wenn nicht mit --suffix " "oder\n" "der Umgebungsvariablen SIMPLE_BACKUP_SUFFIX etwas anderes eingestellt ist.\n" "Die Versionskontrolle kann mit --backup oder der Umgebungsvariablen " "VERSION_CONTROL\n" "gesetzt werden. Mögliche Werte sind:\n" "\n" " t, numbered nummerierte Sicherheitskopien\n" " nil, existing nummerierte Sicherheitskopien, wenn schon nummerierte " "vorhanden sind,\n" " sonst einfache\n" " never, simple immer einfache Sicherheitskopien\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU »tar« kann keine '--posix'-Archive lesen. Wenn die\n" "Umgebungsvariable POSIXLY_CORRECT gesetzt ist, sind GNU-Erweiterungen\n" "mit '--posix' nicht zulässig.\n" "Unterstützung für POSIX ist nur teilweise implementiert, rechne derzeit " "noch\n" "nicht damit!\n" "ARCHIV kann DATEI, RECHNER:DATEI oder BENUTZER@RECHNER:DATEI sein; DATEI " "kann\n" "eine Datei oder ein Gerät (z.B. ein Streamer) sein. \n" "Die Voreinstellung für _dieses_ »tar« ist '-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Fehlermeldungen an .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Von den Optionen '-Acdtrux' ist nur _eine_ erlaubt." #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Kompressionsoptionen schließen sich gegenseitig aus." #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Die alte Option '%c' benötigt einen Parameter." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Veraltete Option, jetzt bei '--blocking-factor' inbegriffen." #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Veraltete Option, ersetzt durch '--blocking-factor'." #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Veraltete Option, ersetzt durch '--read-full-records'." #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Veraltete Option, ersetzt durch '--touch'." #: src/tar.c:687 msgid "More than one threshold date" msgstr "Mehr als ein Datum angegeben." #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Ungültiges Datumsformat ` %s'." #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Optionen des Archiv-Formats schließen sich gegenseitig aus." #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Veraltete Option, ersetzt durch '--absolute-names'." #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Veraltete Option, ersetzt durch '--block-number'." #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Veraltete Option, ersetzt durch '--backup'." #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Ungültige Gruppe angegeben." #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Ungültige Zugriffsrechte angegeben." #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Ungültiger Benutzer angegeben." #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Ungültiger Wert für \"record_size\"." #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Die Recordgröße muß ein Vielfaches von %d sein." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Die Optionen '-[0-7][lmh]' unterstützt _dieses_ »tar« nicht." #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Dieses Programm ist freie Software; die Quellen enthalten die " "Kopierbedingungen.\n" "Es gibt KEINE Garantie, auch nicht hinsichtlich des Einsatzes für einen " "bestimmten\n" "Zweck.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Geschrieben von John Gilmore und Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "GNU-Erweiterungen bei einem inkompatiblen Archiv-Format verlangt." #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Verteilte Archive verlangen die Option '-M'." #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Kein leeres Archiv angelegt." #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Die Optionen '-Aru' sind nicht kompatibel mit '-f -'." #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Eine der Optionen '-Acdtrux' ist notwendig." # Was ist hier genau gemeint? ke #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Fehler beim Beenden." #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Lesefehler bei Byte %ld beim Lesen von %d Bytes in Datei '%s'." #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Datei ist um %d Bytes geschrumpft." #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Dateien für die Tests von GNU-«tar» erzeugen.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Aufruf: %s [OPTION]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Notwendige Argumente für Optionen in Langform sind auch für die\n" "Kurzform notwendig.\n" " -l, --file-length=GROESSE GROESSE der erzeugten Datei\n" " -p, --pattern=MUSTER MUSTER ist \\\"default\\\" oder " "\\\"zeros\\\"\t\n" " --help zeige nur diese Hilfe an\n" " --version zeige nur die Versionsnummer von »tar« an\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Mehrdeutiges Muster `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Unbekanntes Muster `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Entwickelt von François Pinard .\n" # ?? "Ich hoffe" ist überflüssig #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Wirklich geschriebene Menge %d.\n" # DEBUG code. ck #~ msgid "%d at %d\n" #~ msgstr "%d bei %d\n" #~ msgid "EOF? What does that mean?" #~ msgstr "Dateiende? Was soll das bedeuten?" #~ msgid "Mode" #~ msgstr "Zugriffsrechte" #~ msgid "Uid" #~ msgstr "Benutzernummer" #~ msgid "Gid" #~ msgstr "Gruppennummer" #~ msgid "Size" #~ msgstr "Größe" #~ msgid "Missing filename after -C" #~ msgstr "Dateiname nach '-C' fehlt." #~ msgid "" #~ "Mandatory or optional arguments to long options are mandatory or optional\n" #~ "for short options too.\n" #~ msgstr "" #~ "Notwendige Argumente für Optionen in Langform sind auch für die\n" #~ "Kurzform notwendig.\n" # DEBUG only. ck #~ msgid "File %s\n" #~ msgstr "Datei '%s'.\n" # DEBUG only. ck #~ msgid "Junk files\n" #~ msgstr "Überflüssige Dateien.\n" # DEBUG only. ck #~ msgid "file %s\n" #~ msgstr "Datei %s.\n" # DEBUG only. ck #~ msgid "Skip %ld\n" #~ msgstr "Überspringe %ld.\n" # DEBUG only. ck #~ msgid "Out of first loop\n" #~ msgstr "Aus der ersten Schleife heraus\n" # DEBUG only. ck #~ msgid "Saved %d blocks, need %d more\n" #~ msgstr "%d Blöcke gesichert, brauche noch %d\n" # DEBUG only. ck #~ msgid "New record\n" #~ msgstr "Neuer Eintrag (`record')\n" #~ msgid "Header type %d\n" #~ msgstr "Typ %d des Kopfteils.\n" #~ msgid "File %s " #~ msgstr "Datei %s" #~ msgid "Flush it\n" #~ msgstr "Gebe alles aus\n" #~ msgid "Block: %d <= %d " #~ msgstr "Block: %d <= %d " #~ msgid "Block %d left\n" #~ msgstr "%d Blöcke übrig\n" #~ msgid "Final %d\n" #~ msgstr "Letzte %d\n" #~ msgid "Need %d kept_in %d keep %d\n" #~ msgstr "Brauche %d, habe behalten %d, sollte behalten %d.\n" #~ msgid "Flush...\n" #~ msgstr "Gebe alles aus...\n" # DEBUG only. ck #~ msgid "Copying %d\n" #~ msgstr "Kopiere %d\n" # Gibt das Sinn? ke # -- Nur eine Debug-Meldung. ck # Alte Üs: "jetzt neu %d brauche %d will behalten %d behalte %s Einträge %d/%d" # #~ msgid "Now new %d need %d keep %d keep_in %d block %d/%d\n" #~ msgstr "Nun neu %d, brauche %d, habe %d, habe behalten %d. Block %d/%d.\n" # DEBUG only. ck #~ msgid "Write record\n" #~ msgstr "Schreibe Eintrag (`record')\n" # DEBUG only. ck #~ msgid "Fore to %x\n" #~ msgstr "Vorwärts zu %x\n" #~ msgid "Volume mismatch! %s!=%s" #~ msgstr "Bänder passen nicht zueinander! %s!=%s." tar-1.13/po/es.po0000664000176300016070000022473406740055246007325 # Mensajes en español para GNU tar. # Copyright (C) 1997, 1998 Free Software Foundation, Inc. # Federico Rivas , 1997. # Enrique Melero , 1997. # Santiago Vila Doncel , 1998. msgid "" msgstr "" "Project-Id-Version: GNU tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1998-08-11 18:10+0200\n" "Last-Translator: Santiago Vila Doncel \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Formato de fecha inválido `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "El patrón `%s' es ambiguo" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Error del sistema desconocido" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "La opción antigua `%c' requiere un argumento" #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "La opción antigua `%c' requiere un argumento" #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "La opción antigua `%c' requiere un argumento" #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "La opción antigua `%c' requiere un argumento" #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "La opción antigua `%c' requiere un argumento" #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Memoria agotada" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" # ¿No es mejor "Total de bytes escritos: "? # Suena más directo y más similar al original, # "bytes escritos en total" suena demasiado complejo... Nicolás Lichtmaier. # Suena algo extraño eso de "total de bytes". "en total" me suena # mucho más natural. sv #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Bytes escritos en total: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "No se puede cerrar el fichero #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "No se puede cerrar el descriptor %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "No se puede duplicar %s correctamente" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "No se pueden usar archivos comprimidos ni remotos" # Antes de que nadie diga nada: # # Si a alguien no le gusta la palabra tubería (que aparece en algunos # libros sobre MS-DOS y es la que venimos usando desde el principio) que # haga una propuesta seria de cambio, pero que sepa que abriríamos la caja # de Pandora, pues hay muchas palabras posibles para pipe: tubería, # conducto, cañería, canal, etc. # # En cuanto a poner (pipe) entre paréntesis, es una mala costumbre que # deberíamos desterrar ya. Eso se hace en los libros la primera vez, pero # aquí no sólo no hay primera vez, sino que el mismo mensaje puede # aparecer *varias* veces, y entonces sí que es una paliza. # Ejemplo de paliza: "tubería rota" en libc. Sale muchísimo y no es # cuestión de ver (pipe) cuarenta veces al día... #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "No se puede abrir la tubería" # FIXME. Comunicar al autor. Con suerte quedará como un mensaje # parecido que hay en fileutils: "fork system call failed". # La solución de fileutils no me acaba de convencer (era "llamada # a fork()" ). Yo pondría: "No se puede crear proceso hijo (fork)" # que responde a la idea del fork y el paréntesis aclara. jmg # Pero eso sería "Cannot create child process"... # Yo creo que la solución de fileutils es la mejor. # Tanto es así que lo pongo igual que allí. sv # Literalmente es "No puedo bifurcar", pero como sabemos que # `bifurcar' se refiere a la primitiva `fork()', está bien como está, # salvo que se debería conservar la mayúscula inicial, y para mi gusto, # simplificar, respetando el mensaje original: "Fallo en fork()" - gerardo # Pongo la mayúscula inicial, pero antes de ser tan respetuoso con el original # consultaré con el autor. sv #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Falló la llamada al sistema `fork'" # ¿Por qué en todo lugar donde dice "child" se traduce como "proceso hijo" y # no como "hijo" directamente? nl # Para que esté más claro. ¿es demasiado libre la traducción? sv # ¿Gerardo? # Hola. Hay dos posturas a la hora de traducir: # a) respetar escrupulosamente el mensaje original y traducir # literalmente, o casi. # b) buscar la mejor interpretación de forma que un hispanohablante lo # entienda lo mejor posible, aunque se "corrija" al autor; siempre # sin cambiar el sentido o la idea del mensaje, claro. # Yo prefiero (b) generalmente. Está claro que aquí child se refiere a un # proceso, un proceso derivado de otro, proceso hijo. Daría igual dejar hijo # solamente, pero así está mejor expresado. Me gusta más. #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (proceso hijo)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(proceso hijo) Se abre una tubería desde la entrada estándar" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "No se puede abrir el archivo %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archivo hacia la salida estándar" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "No se puede ejecutar %s" # lo mismo de antes. sv #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "El proceso hijo no puede bifurcarse" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((proceso hijo)) Se abre una tubería hacia la salida estándar" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (proceso nieto)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(proceso nieto) Se abre una tubería desde la entrada estándar" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "No se puede leer del programa de compresión" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(proceso hijo) Se vuelca el resultado por la salida estándar" # ¿Qué será esto? ¿Quizás un fallo en el mensaje original? Porque "to" # no es "desde", sino "hacia", que yo sepa. Pero `archivo hacia la # salida estándar' no pega mucho. Está en otros mensajes, como el # siguiente; no lo entiendo. - gerardo # FIXME. Tienes razón. Es muy raro. #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archivo desde la entrada estándar" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((proceso hijo)) Se abre una tubería desde la entrada estándar" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(proceso nieto) Se abre una tubería hacia la salida estándar" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "No se puede escribir al programa de compresión" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "La escritura al programa de compresión acorta %d bytes" # ¿No queda más bonita la 1ª comilla abierta así: `record_size'? # Sí. FIXME. Comunicar al autor. sv #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "El valor de `record_size' no es válido" #: src/buffer.c:690 msgid "No archive name given" msgstr "No se ha especificado ningún nombre de archivo" # ¿Por qué no respetar el original? Couldn't -> No se ha podido, # Cannot -> No puido, no puido... gerardo # Porque a continuación hay un montón de "cannot"s. # No creo que haya que ser tan tan respetuoso con el original. sv #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "No se puede asignar memoria para el factor de bloqueo %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "No se pueden verificar archivos multivolumen" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "No se pueden utilizar archivos multivolumen comprimidos" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "No se pueden verificar archivos comprimidos" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "No se pueden actualizar archivos comprimidos" # FIXME: Si la entrada/salida estándar no es un archivo, ¿por qué el # original se refiere a ella como tal? # # En cierto sentido, sí es un archivo, o se puede emplear como tal. # Tar al menos la trata así, en `tar -f -' (o sin la opción -f en este # GNU tar)'; luego la E/S std. puede ser un archivo "real" de disco: # tar ... -f - > arch.tar gerardo # # Esto corresponde a la opción --verify. # Ejemplos: "tar cWf - ." y "tar xWf -" # o sea que una traducción correcta se vería más como: # "No se puede verificar un archivo desde/hacia la entrada/salida estándar" # o algo así. Quizá "No se puede verificar un archivo tomado de la entrada # estándar o escrito hacia la salida estándar", pero es un poco largo.. =) # #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "No se puede verificar la entrada/salida estándar" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "No se puede abrir %s" # Ojo que esto podría referirse a "is not being labelled NOW" en vez de # "isn't labelled". Pero no tengo los fuentes para ver la intención # original. nl # Si no se sabe eso, se podría dejar de forma más neutra como # "Archivo no etiquetado para concordancia con `%s'" - gerardo (gag) # FIXME: Preguntar. #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "El archivo no está etiquetado para que coincida con `%s'" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "El volumen `%s' no coincide con `%s'" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Punto de comprobación de escritura %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "No se puede escribir en %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Sólo se escribieron %u de %u bytes en %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Error de lectura en %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Al principio de la cinta, se terminará ahora" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Demasiados errores, abandono" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Punto de comprobación de lectura %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Leyendo %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "ATENCIÓN: No hay cabecera de volumen" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s no continúa en este volumen" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s tiene un tamaño erróneo (%ld != %ld + %ld)" # Sugerencia: está fuera de secuencia -> no está en orden. sv # Creo recordar que en el CPBackup de Central Point ponía lo de "fuera de # secuencia". fr # Buena referencia :-). # El comentario habrá que conservarlo en la versión final. sv # Bueno, la verdad es que ahora que lo pienso, me parece una mala # traducción... ¿opiniones? sv # Me parece correcta la traducción "literal", pero me gusta # más tu sugerencia - gerardo # El problema es que un volumen individual no puede estar desordenado. # Lo que está ordenado o no es la sucesión entera. # Un volumen individual puede estar fuera de lugar, pero no desordenado # él solito. # Todavía espero una solución mágica que sea mejor que las dos # que tenemos hasta ahora. #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Este volumen está fuera de secuencia" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Tamaño del registro = %d bloques" # Tengo que plantearme seriamente si pongo "fin de fichero" siempre # siempre en vez de EOF. sv # # Según gag y jmg, hay que decir: "no está en un límite de bloque", pues # no estamos hablando de un bloque concreto (el bloque) sino de uno cualquiera. # FIXME: Entonces tal vez el original debería decir "on a block boundary". sv #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "El fin del archivo %s no está en un límite de bloque" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Sólo se han leído %d bytes del archivo %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "ATENCIÓN: No se puede cerrar %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "No se puede ir hacia atrás en el archivo; puede ser ilegible sin -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "ATENCIÓN: No se puede cerrar %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "El proceso hijo terminó con la señal %d%s" # Se vuelca la *memoria* del proceso en un fichero llamado `core'. #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (memoria volcada)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "El proceso hijo devolvió el estado %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Prepare el volumen #%d para %s y pulse intro: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "" "Se encontró un final de fichero mientras se esperaba respuesta del usuario" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "ATENCIÓN: El archivo está incompleto" # Antes de que nadie diga nada: # shell admite muchas traducciones, caparazón, concha, envoltorio, coraza, # etc. pero ninguna ha prosperado. Además, algunos nombres son innombrables # en ciertos países, así que mejor dejarlo como está. # Y si no se traduce, se queda en *el* shell, es decir, *neutro*. # # Ya que volúmenes se acentúa, ¿habría que poner "volumen/volúmenes" # en lugar de "volumen(es)"? # No me gusta, ya que sólo es plural con la parte entre paréntesis "(y consecutivos)". fr # Creo que esta bien así Gerardo. em+ # # Cuidadín. ¿El nombre de archivo se le da *al* volumen? Literalmente # # dice que da un nuevo nombre *para* el sgute. volumen, pero ¿ese # # nombre es el del volumen? No entiendo bien el contexto; quizá # # habría que mirar el código fuente o ver cuándo sale este # # mensaje. # # Otra cosa es eso de "abortar". No sé si se habrá tratado en # # spanglish o en es@li.org, pero suena muy feo, ¿no? Quizá "Sale # # inmediatamente de tar". # # "Print this list" es exactamente "Imprime esta lista" o a lo sumo "Muestra # esta lista". No veo que diga ayuda en ninguna parte, no creo que un # traductor deba ser más inteligente que el escritor original.. =) nl # Yo creo que a veces sí :-) sv # Sí, un programador no tiene por qué ser buen escritor :-) En un fortune me # salió una vez: "Los que no saben escribir, escriben manuales". :-) # A mí aquí me da igual lista que ayuda, de las dos formas se entiende. Manda # el traductor original. gerardo # ¿A alguien más le parece mal que ponga ayuda en vez de lista? sv #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [nombre] Da un nuevo nombre de archivo al siguiente\n" " (y consecutivos) volumen(es)\n" " q Aborta tar\n" " ! Lanza un subshell\n" " ? Muestra esta ayuda\n" # "saliendo"->"finalizando". jmg # Je, je, ¿no has leído, Santiago, el `dardo' de Fdo. Lázaro Carreter sobre # finalizar? No sé por qué quitar lo de salir, to exit es salir, no acabar. # Uno se sale del programa, y éste acaba. En realidad, también da igual, de # cualquier forma se entiende, pero mejor acabar o terminar que finalizar, # total, son sinónimos. gerardo #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "No hay volumen nuevo; finalizando.\n" # Estos errores son para el debug del programa. A quien le pueda # interesar sabe lo que quiere decir em+ # # ¡Otras veces se ha puesto bifurcar sin el (fork)! Esto es difícil, # # porque también podría ponerse: "No se puede hacer fork()", ya que # # fork() es un punto de entrada a una primitiva Unix; vaya, una # # función. gag # FIXME. Hablar con el autor. # # en fileutils-3.16.es.po, el autor cambió el "Cannot fork" por "fork # # system call failed", con lo que podría pasar lo mismo ahora. Si no # # hay cambios, yo preferiría: "¡No se puede crear proceso hijo (fork)!" # # jmg #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "¡No se puede bifurcar!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "No se puede ejecutar un shell %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "No se puede asignar memoria para el búfer de diferencias de %d bytes" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "No se puede leer %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Sólo se pudieron leer %d de %ld bytes" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Los datos son distintos" # # Como has puesto más arriba: "EOF"->"Fin de fichero". jmg #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "EOF inesperado en archivo" # Lo mismo que con stat() em+ # # seek() es otra función. seek = "hacer seek()" ¡Estos # # angloparlantes! #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "No se puede acceder a la posición %ld en el fichero %s" #: src/compare.c:422 msgid "File does not exist" msgstr "El fichero no existe" # Uff, a lo mejor se asusta el usuario si ponemos 'no se pudo leer con stat() # el estado del fichero em+ # # stat() es una primitiva Unix que acaba de fallar; también podría # # ser: "No se puede hacer stat() del fichero %s", o "stat() ha fallado..." # # Aunque tal como está es más descriptivo para el neófito, desde # # luego. gag #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "No se puede leer el estado del fichero %s" # "Verifica ". Supongo que depende de si se concatena en algún # mensaje. jmg # FUZZY. Es verdad, habrá que verlo. #: src/compare.c:459 msgid "Verify " msgstr "Verificar " # # ¿Quizá diffed es el participio de diff, siendo esto un verbo tomado # # del nombre del programa diff? Entonces querría decir que se ha # # efectuado un diff como si el *fichero* hubiera sido normal. Yo sólo # # cambiaría "se toma" por "se ha tomado". gag # Es norma habitual convertir un pasado en un presente en estos casos. # Realmente, dice lo que hace y no lo que ha hecho. sv # FIXME. Decirle al autor que estandarice las comillas: ¿'%c' o `%c'? # De momento lo estandarizo en la traducción. #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" "Tipo de fichero desconocido `%c' para %s, se toma la diferencia\n" "como fichero normal" # Nota: En Unix, se llama fichero *regular* al que no es ni un directorio, # ni un dispositivo (de bloques o de caracteres) ni un fifo, etc. # Uno puede pensar que son los ficheros "normales", pero eso depende, # pues un directorio es de lo más "normal"... #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "No es un fichero regular" # El autor quería en mensaje muy conciso, y en la traducción se expande a una # oración completa.. ¿Por qué? Debería ser "Distinto modo". # Porque el idioma inglés es más corto. Si a cada frase corta le hago # corresponder siempre una frase corta española, el resultado sonará a indio # completamente (me refiero a los indios esos de las películas del oeste, # que solamente hablan con sustantivos, verbos y adjetivos). sv #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "El modo es distinto" #: src/compare.c:505 msgid "Uid differs" msgstr "El uid es distinto" #: src/compare.c:507 msgid "Gid differs" msgstr "El gid es distinto" #: src/compare.c:511 msgid "Mod time differs" msgstr "La fecha de modificación es distinta" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "El tamaño es distinto" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Error al cerrar %s" #: src/compare.c:582 msgid "Does not exist" msgstr "No existe" # Creo que este enlace se efectúa al descomprimir un archivo tar. # No es que nos diga si está enlazado o no lo está, sino si él hace # el enlace o no lo hace. sv #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "No se enlaza a %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "No existe el archivo o el directorio" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "No se puede leer el enlace %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "El enlace simbólico es distinto" #: src/compare.c:666 msgid "Device numbers changed" msgstr "Los números de dispositivo han cambiado" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "El modo o el tipo de dispositivo ha cambiado" #: src/compare.c:726 msgid "No longer a directory" msgstr "Ya no es un directorio" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "No se puede abrir el fichero %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "No se pudo rebobinar el archivo para verificar" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "FALLO DE VERIFICACIÓN: %d cabecera(s) inválida(s) detectada(s)" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "" "Eliminando las especificaciones de unidad de los nombres que hay en el " "archivo" # Lo mismo. sv # Sugerencia: Sendero -> Ruta, camino. sv # Lo siento, no me salía la palabra. Esperaba correción. fr # Siempre he estado usando ruta en otras traducciones em+ # # Esta vez sugiero "camino", por seguir la terminología de # # Microsoft, ya que da lo mismo, ¿no? gag # Quedaría igualmente claro si no se hace referencia a ruta: # "... de los nombres absolutos en el archivo". jmg #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Borrando la `/' inicial de los nombres absolutos de ruta en el archivo" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Se escribieron %ld de %ld bytes en el fichero %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Error de lectura en byte %ld leyendo %d bytes en fichero %s" # Idem em`+ # # Ver mensaje anterior # Mejor: "... bytes, en el archivo %s". De lo de file y archive, # creo que podría optarse por una convención (p.ej. file->fichero, # y archive->archivo). En este .po unas veces se hace de una forma y # otras de otra. jmg # FIXME. Consultar al autor. #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Error de lectura en el byte %ld, leyendo %d bytes, en archivo %s" # "se rellena" debería ser "rellenando". "se rellena" puede entenderse como # varias cosas, no queda claro que es lo que se esta haciendo, podría indicar # lo que se suele hacer.. =) "rellenando con ceros" es perfecto y es # exactamente lo que está escrito en el original. sv # # Que sí, reconozco que la traducción es un poco libre. # Pero mi intención es que el programa diga lo que va haciendo, no lo que ya # ha hecho. Ni siquiera el original es consistente en los modos verbales. sv #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "" "El tamaño del fichero %s ha disminuido en %d bytes, se rellena con ceros" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "No se puede añadir el fichero %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: no ha cambiado; no se vuelca" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s es el archivo; no se vuelca" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Eliminando la `/' inicial de los enlaces absolutos" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "No se puede borrar %s" # "se rellena" debería ser "rellenando". "se rellena" puede entenderse como # varias cosas, no queda claro que es lo que se esta haciendo, podría indicar # lo que se suele hacer.. =) "rellenando con ceros" es perfecto y es # exactamente lo que está escrito en el original. sv # # Que sí, reconozco que la traducción es un poco libre. # Pero mi intención es que el programa diga lo que va haciendo, no lo que ya # ha hecho. Ni siquiera el original es consistente en los modos verbales. sv #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "" "El tamaño del fichero %s ha disminuido en %d bytes, se rellena con ceros" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "No se puede añadir el directorio %s" # FIXME. Creo que el original debería tener también el "está". sv #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: Está en un sistema de ficheros distinto; no se vuelca" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "No se puede abrir el directorio %s" # ¿por qué convertir las oraciones unimembres en bimembres? Ya vi # otro caso en donde se hace y no veo por qué. Bien podría quedar como: # "Nombre de fichero %s%s demasiado largo". nl # Algunas de esas frases suenan a "indio" sv # Hombre, esto no es una novela (del Oeste :-), la forma "india" es # más literal y más corta, lo que quizá sea más apropiado para mensajes # concisos como éstos; pero en realidad es más agradable de leer así. # El traductor manda. gerardo #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "El nombre de fichero %s%s es demasiado largo" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Tipo de fichero desconocido; no se tendrá en cuenta" # OK em+ # Can't = no se puede; couldn't: no se ha podido. gag # O no se pudo. sv # Esa forma verbal se debería usar para cosas ocurridas hace mucho más tiempo. # No pude hacer la Primera Comunión vestido de hombre-rana, no he podido # escribir esta frase en caracteres jeroglíficos. gag # #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "No se ha podido reposicionar el archivo" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Esto no parece un archivo tar" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Saltando a la siguiente cabecera" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Borrando no-cabecera del archivo" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: No se puede cambiar el modo a %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: No se pudieron cambiar las fechas de acceso y modificación" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "" "%s: No se puede cambiar el propietario y grupo con `lchown' a uid %d gid %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "" "%s: No se puede cambiar el propietario y grupo con `chown' a uid %d gid %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: No se puede cambiar el propietario al uid %d, gid %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: No se pudo escribir en el fichero" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Sólo se pudieron escribir %d de %d bytes" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: No se pudo hacer copia de seguridad de este fichero" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Extrayendo ficheros contiguos como ficheros regulares" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: No se pudo crear el fichero" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Sólo se pudieron escribir %d de %d bytes" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Error al cerrar" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: No se pudo crear el enlace simbólico a `%s'" # ¿Enlaces fuertes? Aquí los profes. de Sistemas Operativos y otros # dicen "enlaces duros", y creo que los libros también lo ponen así. gag # Es una cuestión todavía no dirimida. # ¿Tienes algún dato más? ¿Qué dicen los libros? sv # Enlaces duros. Lo acabo de mirar en un libro. gag #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Intentando la extracción de enlaces simbólicos como enlaces duros" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: No se pudo enlazar a `%s'" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: No se pudo crear el nodo" # Pongo comitas porque no es una palabra española. # A quien no le guste que abra el debate sobre cuándo sí y cuándo no # deben ponerse comitas en es@li.org. #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: No se pudo crear el `fifo'" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: No se pudo crear el directorio" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Añadidos permisos de escritura y ejecución al directorio %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "No se puede extraer `%s' -- el archivo es continuación de otro volumen" # Me queda la duda de si lo que es visible es el error o el nombre largo... sv #: src/extract.c:964 msgid "Visible long name error" msgstr "Error de nombre largo visible" # FIXME. Lo de las comillas '%c'. # Como antes, lo estandarizo en la traducción a pesar de todo. #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "" "Tipo de archivo desconocido `%c' para %s, se extrae\n" "como fichero normal" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "No se pudo obtener el estado de %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "El directorio %s ha sido renombrado" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "El directorio %s es nuevo" # FIXME. Comunicar al autor que estos dos mensajes se parecen "demasiado". sv #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "No se pudo obtener el directorio actual" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "No se pudo obtener el directorio actual: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "El nombre del fichero %s/%s es demasiado largo" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Los números de dispositivo han cambiado" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "No se puede cambiar al directorio %s" # # Como has puesto más arriba: "EOF"->"Fin de fichero". jmg #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "EOF inesperado en el archivo" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Borrando %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Error al borrar %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Omitiendo %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "bloque %10ld: ** Bloque de NULos **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "bloque %10ld: ** Fin de Archivo **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Mmm, esto no parece un archivo tar" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Saltando a la siguiente cabecera de fichero" # # Como has puesto más arriba: "EOF"->"Fin de fichero". jmg #: src/list.c:213 msgid "EOF in archive file" msgstr "EOF en el archivo" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Sólo se escribieron %ld de %ld bytes al archivo %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "bloque %10ld: " # FIXME. Hay otro que se parece muchísimo. sv #: src/list.c:808 msgid "Visible longname error" msgstr "Error de nombre largo visible" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " enlace a %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " tipo de fichero desconocido `%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Cabecera de Volumen--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Continúa en el byte %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Nombres de fichero modificados--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Creando el directorio:" # Como has puesto más arriba: "EOF"->"Fin de fichero". # "Fin de fichero inesperado en los nombres modificados.". # ¿No se referirá al autor a "mangled filenames"?... jmg # FIXME. Preguntárselo. #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "EOF inesperado en los nombres modificados" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "No se puede renombrar %s a %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Se renombra %s como %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "No se puede crear el enlace simbólico de %s a %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "Se enlaza %s simbólicamente a %s" # ¿desmutilador? sv. (Perdona mi ignorancia: ¿qué significa?) # No lo sé, tengo que consultar. Lo encontré en un diccionario raro. fr # Bueno, yo tampoco sé lo que es, pero "mangling" me suena a: # "proceso mediante el cual se codifican ciertos nombres de cierta manera." # Por ejemplo, "name mangling" es lo que hace Linux cuando se instala # con umsdos. (¿Lo has visto alguna vez?). # También se habla de "mangling" a la forma que tiene el C++ de incluir # los nombres de las funciones (o de las clases quizá) en un archivo # objeto ( .o ). # Bueno, en realidad no lo sé, pero espero haberte dado alguna idea. # A ver qué dice Enrique u otro revisor. sv # Sigo en blanco. fr # La traducción mas acertada creo que es esta :) , el uso que conozco # de mangled esta relacionado con codificar o transformar el nombre de una # función C++ dentro de una biblioteca, de manera que se pueda deshacer la # referencia a la función al compilar o enlazar dinámicamente, obteniendo # la función que corresponde al aplicar la sobrecarga de operadores. em+ # # Todo eso es así, lo malo es encontrar la palabra simple más # # adecuada y mantenerla. Por ejemplo, antes hemos dicho "mutilar", en # # otros mensajes; y ahora "desenredar". #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Orden desconocida para recuperar el nombre original de %s" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Se renombra %s como %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "No se puede renombrar %s a %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "No se puede renombrar %s a %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Se renombra %s como %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "No se puede cambiar al directorio %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Falta el nombre del fichero después de -C" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: No se encuentra en el archivo" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: No se puede asignar espacio para el búfer\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "No se puede asignar espacio para el búfer" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" # FIXME. Este es el único eof en minúsculas. # # Como has puesto más arriba: "EOF"->"Fin de fichero". jmg #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: EOF prematuro\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Fin de fichero prematuro" # "no reconocida" me parecía muy suave para "garbage". sv # OJO: Casi el mismo mensaje. #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Orden ininteligible %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Orden ininteligible" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Servicio no disponible" #: src/rtapelib.c:301 msgid "stdin" msgstr "entrada estándar (stdin)" #: src/rtapelib.c:304 msgid "stdout" msgstr "salida estándar (stdout)" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "No se puede ejecutar un shell remoto" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Las opciones `-%s' y `-%s' requieren entrada estándar" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "No se puede leer la confirmación del usuario" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Pruebe `%s --help' para más información.\n" # Yo usaría "recuperar", en vez de "restablecer". Lo de repetir "archivo" # dos veces en la misma frase no me suena bien, así que pondría "... a # partir de aquél". jmg # El original también repite. sv # # ¡CUIDADO! sólo no debe llevar tilde en ".. juntos en un solo archivo..." # `Solo' sólo lleva acento cuando equivale al adverbio de modo `solamente', # y aun así no es obligatorio ponérselo si no hay ambigüedad (lo siento, # muchachos, pero saqué sobresaliente en Lingüística de COU :-D ) gerardo # Lo cambio, pero "no es obligatorio" no es lo mismo que "está mal". sv #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU `tar' guarda varios ficheros juntos en un solo archivo en cinta o disco, " "y\n" "puede restablecer ficheros individuales a partir del archivo.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Modo de empleo: %s [OPCIÓN]... [FICHERO]...\n" # Es cierto que en la traducción se repite obligatorio, pero es que eso # mismo ocurre en el original, por lo tanto, lo dejo así. #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Si una opción larga muestra un argumento como obligatorio, entonces es\n" "obligatorio también para la opción corta equivalente. Lo mismo ocurre con\n" "los argumentos opcionales.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Modo de operación principal:\n" " -t, --list lista el contenido de un archivo\n" " -x, --extract, --get extrae ficheros de un archivo\n" " -c, --create crea un nuevo archivo\n" " -d, --diff, --compare encuentra las diferencias entre el archivo y el\n" " sistema de ficheros\n" " -r, --append añade ficheros al final de un archivo\n" " -u, --update sólo añade ficheros más recientes que la copia " "del\n" " archivo\n" " -A, --catenate añade ficheros tar a un archivo\n" " --concatenate igual que -A\n" " --delete borra de un archivo (¡no en cintas magnéticas!)\n" # ¿archivos nonzero? sv # Estupendo Gerardo, se me había pasado, como tantas cosas em+ # # ¡Nooorl! Quiere decir que el programa tar no acaba o sale (exit()) # # devolviendo al sistema un "status" distinto de cero cuando # # encuentre ficheros ilegibles. (¡Uf! Ahora a ver cómo se pone esto en # # media línea.) gag # #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Modificadores de operación:\n" " -W, --verify intenta verificar el archivo después de " "escribirlo\n" " --remove-files borra los ficheros después de añadirlos al " "archivo\n" " -k, --keep-old-files no sobreescribe los ficheros existentes al " "extraer\n" " -U, --unlik-first borra cada fichero antes de extraer sobre él\n" " -S, --sparse maneja archivos dispersos eficientemente\n" " -O, --to-stdout extrae ficheros hacia la salida estándar\n" " -G, --incremental maneja copias de seguridad incrementales en\n" " formato GNU antiguo\n" " -g, --listed-incremental maneja copias de seguridad incrementales en\n" " formato GNU nuevo\n" " --ignore-failed-read no termina con estado de error cuando " "encuentra\n" " archivos ilegibles\n" # FUZZY. Tenía un fuzzy. Averiguar por qué. sv # Sugerencia: para archivos -> para los archivos. sv # Sugerencia: Estandarizar la traducción de "added files". sv # En el --mode=CHANGES no sé qué poner... sv # En vez de "force"->"establece", yo dejaría el significado # original ->"fuerza". jmg # force es forzar, ¡no establecer! nl # Gerardo, ¿qué opinas de "forzar"? sv # Hombre, desde luego to force es forzar u obligar; la verdad es que no sé # por qué el autor original dice "force" y no "set". Quizá porque si no se # pusieran estas opciones los ficheros tendrían otros atributos que vendrían # impuestos por el umask, el UID/GID del usuario, etc., y con esto se "fuerza", # se cambia esta situación. No es lo mismo que establecer, que sería poner # esos atributos partiendo de cero. Creo que ése es el matiz, y para conservar- # lo habría que poner "fuerza NOMBRE como propietario...", etc., o bien # "obliga a que sea NOMBRE el propietario...", etc. gerardo # # usa -> emplea - gerardo #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Manejo de los atributos de los ficheros:\n" " --owner=NOMBRE establece NOMBRE como propietario para los\n" " ficheros que se añaden\n" " --group=NOMBRE establece NOMBRE como grupo para los ficheros " "que\n" " se añaden\n" " --mode=CAMBIOS establece CAMBIOS como modo (simbólico) para " "los\n" " ficheros que se añaden\n" " --atime-preserve no cambia la fecha de acceso en los ficheros\n" " volcados\n" " -m, --modification-time no extrae la fecha de modificación de " "ficheros\n" " --same-owner intenta extraer ficheros con el mismo " "propietario\n" " --numeric-owner siempre utiliza números para nombres de " "usuario/grupo\n" " -p, --same-permissions extrae toda la información de protección\n" " --preserve-permissions igual que -p\n" " -s, --same-order ordena los nombres a extraer para coincidir " "con\n" " el archivo\n" " --preserve-order igual que -s\n" " --preserve igual que -p y -s a la vez\n" # Una chorradita, si se me permite; estamos usando ISO-8859-1, # ¿verdad? Y en ISO-Latin1 existe un carácter que representa la # multiplicación, ¿verdad? Ya saben , el aspa: '×' ('\327'). Pues # ¿por qué no usarlo (está bien, "utilizarlo" ;-) en vez de la equis # en NUM x 1024 -> NUM × 1024? # En otra parte dices que pones (C) en vez de © porque © no se ve bien en # la consola. Pues no dirás eso del aspa, que se ve mejor aún que la equis: # x × - gerardo # Efectivamente, pero no es transportable, el que use tar bajo DJGPP # le saldría un churro pues el aspa no existe en la tabla 850. sv #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Selección de dispositivos y conmutadores:\n" " -f, --file=ARCHIVO utiliza el archivo o dispositivo ARCHIVO\n" " --force-local el archivo es local incluso si tiene dos " "puntos\n" " --rsh-command=ORDEN utiliza la ORDEN remota en vez de rsh\n" " -[0-7][lmh] especifica unidad y densidad\n" " -M, --multi-volume crea/lista/extrae un archivo multivolumen\n" " -L, --tape-length=NUM cambia la cinta después de escribir NUM x " "1024\n" " bytes\n" " -F, --info-script=FICHERO ejecuta el script al final de cada cinta\n" " (implica -M)\n" " --new-volume-script=FICH igual que -F FICH\n" " --volno-file=ARCHIVO utiliza/actualiza el número de volumen en\n" " ARCHIVO\n" # ¿rebloquea? ¿existe esa palabra? sv # Que opine el pueblo, no lo sé. fr # # ¿Existe bloquear? Pues si es así, también existe rebloquear = # # volver a bloquear. Y requetebloquear, etc. En un artículo de Martin # # Gardner se preguntaba cuál era la palabra española más larga, y la # # respuesta era que cualquiera que pudiera ir precedida por # # requetequetequete... (longitud infinita). Pelín ssagerao, ¿no? gag # ignore no es ignorar, es "no hacer caso" # se puede usar: no tener en cuenta, descartar, no tener efecto, # pasar por alto, # ignorar es "not to know". sv # ¿Y cuando se ignora a una persona ;-)? fr # Lo mismo: Está mal dicho, se dice que no le haces caso a esa persona. # Si no me crees busca "ignore" en algún buen diccionario. # O mira la lista de pifias de Ángel Álvarez directamente. # La tengo en ftp.unex.es. # Lo siento, Santiago, hemos sido derrotados; "ignorar" ya viene en los # diccionarios de español, y creo que hasta en el DRAE, con el significado # que tiene en inglés "to ignore"; aunque nosotros podemos ignorarlo ;-) # y seguir en la ortodoxia castellana :-) gerardo # Seguiremos en la ortodoxia, pero aún así, no puedo creerme que venga # en el DRAE. ¿Estás seguro? sv # No, no me compré el DRAE. Pregúntalo a spanglish (si te atreves ;-) gerardo # ¿para pipes de BSD? sv # # conducciones de BSD. gag # Como has puesto más arriba: "EOF"->"Fin de fichero". # Me suena mejor "descartar" que "pasar por alto", para "ignore". # Respecto a pipes, lo de más arriba: "...en canales (pipes) de...". jmg # Sigo en mis 13 y en esto no hay quien me baje del burro: BLOQUES x 512 bytes # debe ser BLOQUES × 512 bytes. gerardo #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Bloques de dispositivos:\n" " -b, --blocking-factor=BLOQUES BLOQUES x 512 bytes por registro\n" " --record-size=TAMAÑO TAMAÑO bytes por registro, múltiplo de 512\n" " -i, --ignore-zeros pasa por alto bloques de ceros en archivo\n" " (significan EOF)\n" " -B, --read-full-records rebloquea mientras se lee (en tuberías\n" " de 4.2BSD)\n" # Nota: La diferencia entre un PATRÓN y una EXPREG es que # el primero se refiere a un "globbing pattern", es decir, patrones # de expansión de nombres de ficheros, como * y ?, mientras que # el segundo se refiera a expresiones regulares como las de grep, # es decir, ^, $, ., *, etc. #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Selección de formato de archivo:\n" " -V, --label=NOMBRE crea un archivo con nombre de volumen\n" " NOMBRE\n" " PATRÓN en el momento de listar/extraer, " "utiliza un\n" " PATRÓN\n" " -o, --old-archive, --portability escribe un archivo con formato V7\n" " --posix escribe un archivo conforme a POSIX\n" " -z, --gzip, --ungzip filtra el archivo a través de gzip\n" " -Z, --compress, --uncompress filtra el archivo a través de compress\n" " --use-compress-program=PROG filtra a través de PROG (debe aceptar " "-d)\n" # He cambiado el "desde" por "del", si te suena raro, se puede cambiar el # orden: "obtiene del archivo NOMBRE los nombres a crear o extraer". sv # De todas formas, lo de los nombres "a extraer" es un vicio moderno # que me encantaría poder evitar. sv # [ Ahora mismo lo único que se me ocurre es cambiar completamente la frase: # "extrae o crea los nombres obtenidos del archivo NOMBRE" o algo así. sv ] # A mí me suena bien, pero no sé... fr # ¿globbing = globales? sv # Me parece una buena traducción, es algo que engloba a un grupo. fr # # globbing es, por ejemplo, lo que hace el shell cuando pones asteriscos: # Cuando haces "cat *", el shell se encarga de expandir el * # en lo que corresponda, y se lo da a cat ya traducido. # Esto más que globalizar me suena a expandir, no sé. # Si quieres déjalo que lo vea otro. sv # Vid. mi comentario del mensaje anterior. gerardo # quita -> elimina. sv #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Selección de fichero local:\n" " -C, --directory DIR cambia al directorio DIR\n" " -T, --files-from=NOMBRE obtiene los nombres a extraer o crear del\n" " archivo NOMBRE\n" " --null -T lee nombres terminados en cero, deshabilita " "-C\n" " --exclude=PATRÓN excluye archivos, dados como un PATRÓN\n" " -X, --exclude-from=ARCHIVO excluye patrones listados en ARCHIVO\n" " -P, --absolute-names no elimina las '/'s iniciales de los nombres " "de\n" " fichero\n" " -h, --dereference vuelca en su lugar los ficheros a los que " "apuntan\n" " los enlaces simbólicos.\n" " --no-recurse evita descender automáticamente en " "directorios\n" " -l, --one-file-system permanece en el sistema de ficheros local\n" " cuando se crea el archivo\n" " -K, --starting-file=NOMBRE comienza en el fichero NOMBRE del archivo\n" # # "más nuevos"->"más recientes". En el info de tar1.11.8 explica un poco más las # # opciones --newer-*, sin limitar a "store", sino hablando en general de # # cualquier operación. En el --newer-mtime debería ser --newer-mtime=DATE, y # # dice que "limita la operación a los ficheros modificados después de la # # fecha DATE"... ¿?. jmg #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=FECHA sólo almacena los ficheros más recientes que " "FECHA\n" " --newer-mtime compara la fecha y hora en que los datos " "cambiaron\n" " --after-date=FECHA igual que -N\n" # FIXME. removel. ¿Eso qué es? #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=CONTROL] copia de seguridad antes de eliminar, elige\n" " el control de versión\n" " --suffix=SUFIJO copia de seguridad antes de eliminar, pasa " "por\n" " alto el sufijo habitual\n" # # print -> ¿muestra o imprime? Prefiero muestra, pero manténgase # # siempre; ¡al menos en un mismo mensaje! gag # Lo de "prolijamente" suena regular. En diffutils hay una laaarga discusión # sobre ello. Yo usaría "verbosely"->"detalladamente" o "con detalle". jmg # los bytes totales escritos -> el total de bytes escritos. nl # O los bytes escritos en total, bien. gerardo #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Salida de información:\n" " --help muestra esta ayuda, y finaliza\n" " --version informa de la versión y finaliza\n" " -v, --verbose lista prolijamente los ficheros procesados\n" " --checkpoint muestra los nombres de directorio al leer el archivo\n" " --totals muestra los bytes escritos en total al crear el " "archivo\n" " -R, --block-number muestra el número de bloque en el archivo con cada " "mensaje\n" " -w, --interactive pide confirmación para cada acción\n" " --confirmation igual que -w\n" # # la versión de control -> el control de versión # # nil: numeradas... simples... (en plural) # # never, simPle (falta una pe): backup -> copia de seguridad. gag # Estoy de acuerdo con lo de gag (más arriba usas eso mismo). jmg #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "El sufijo de respaldo es `~', a menos que se especifique con --suffix\n" "o con SIMPLE_BACKUP_SUFFIX. El control de versiones puede establecerse\n" "con --backup o con VERSION_CONTROL, los valores son:\n" "\n" " t, numbered hace copias de seguridad numeradas\n" " nil, existing numerada si existen copias de seguridad numeradas, " "simples\n" " en otro caso\n" " never, simple siempre hace copias de seguridad simples\n" # ARCHIVO puede ser FICHERO (¡no ARCHIVO!)... # por defecto -> por omisión, de forma predeterminada # HOST -> HUÉSPED, ANFITRIÓN (aquí estoy más perdido que el barco 'el # arroz, ya lo sé; como con shell y script). gag #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar no puede leer ni generar archivos `--posix'. Si POSIXLY_CORRECT " "está\n" "definido en el entorno, las extensiones GNU se deshabilitan con `--posix'.\n" "El soporte para POSIX está sólo parcialmente implementado, no se debe contar " "\n" "con él aún.\n" "ARCHIVO puede ser FICHERO, HOST:FICHERO o USUARIO@HOST:FICHERO; y\n" "FICHERO puede ser un fichero o un dispositivo.\n" "*Este* `tar' utiliza `-f%s -b%d' por omisión.\n" # Por favor, no me digáis cómo se traduce bug. # Gerardo lo ha visto traducido en un libro como "pulgas", y yo # lo he visto como "chinche" en la "Investigación y Ciencia". # Está claro que así no vamos a ninguna parte. # Yo diría simplemente `fallos [ocultos]'. Es lo que significa, en realidad, # en el contexto informático, razones históricas aparte de bichos anidando # al calorcito de los tubos de vacío de los primeros computadores. gerardo # De "ocultos" nada... Este vamos a dejarlo, ¿vale? sv # Tú mandas, pero ¿cómo que de ocultos nada? Si no fueran ocultos, el progra- # ma no vería la luz aún, ¿no? Pero observa que he puesto el `ocultos' entre # corchetes. Yo pondría "bug -> fallo" simplemente. Comunicar fallos a... gerardo # ¿Que no vería la luz si no fueran ocultos? Ja, ja, ja, ja... # Mira por ejemplo en http://nl.debian.org/Bugs. # ¿No tendría sentido catalogarlos entonces? #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Comunicar `bugs' a .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "No se puede especificar más de una opción `-Acdtrux'" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Opciones de compresión en conflicto" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "La opción antigua `%c' requiere un argumento" # Nota aclaratoria: (Gerardo) # Incluida no lleva tilde. # Ni ruido ni huida ni güiro (un instrumento musical cubano). # Sí se parte en in-clu-i-da, pero sin tilde. No existe el hiato. # Mira en un diccionario `ruido' a ver si tiene tilde, y considera si # no es el mismo caso (Rui-do no: ru-i-do). # # Más arriba has usado "implies"->"implica", así que aquí # sería "implied by"->"implicada por", o modificar lo otro. jmg # Pero es que implica suena bien pero implicada por suena fatal. sv #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Opción obsoleta, ahora incluida en --blocking-factor" # Pregunta: ¿qué es reemplazado/a el nombre o la opción? sv # Creo que es el nombre. fr # # El nombre de la opción; lo que pasa es que en el mensaje en español # # no se entiende muy bien. Quizá: nombre obsoleto de la opción # # remplazado por -- ... gag #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Nombre de opción obsoleta reemplazado por --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" # # Ver msj. anterior #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Nombre de opción obsoleta reemplazado por --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Nombre de opción obsoleta reemplazado por --touch" # No sé cómo traducir threshold. fr # Yo tampoco (los diccionarios los tengo en casa...). sv # Lo buscaré en un diccionario "güeno". fr # Es "umbral", pero no sé qué c$%&# es la fecha umbral. :-( gag # A ver si te vale así. sv # ¿Qué tal os suena "fecha límite"?. jmg #: src/tar.c:687 msgid "More than one threshold date" msgstr "Se ha especificado más de una fecha tope" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Formato de fecha inválido `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Opciones de formato de archivo en conflicto" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Nombre de opción obsoleta reemplazado por --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Nombre de opción obsoleta reemplazado por --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Nombre de opción obsoleta reemplazado por --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Se ha especificado un grupo no válido en la opción" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Se ha especificado un modo no válido en la opción" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Se ha especificado un propietario no válido en la opción" # ¿No queda más bonita la 1ª comilla abierta así: `record_size'? # Sí. FIXME. Comunicar al autor. sv #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "El valor de `record_size' no es válido" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "El tamaño del registro debe ser múltiplo de %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "*Esta* versión de tar no admite las opciones `-[0-7][lmh]'" # Me encantaría poder incluir tos propuestas de usar el \372 ( aspa ) y # el (C) , veremos si lo hacemos algún día. em+ # # Estaría bien cambiar el '(C)' por '©', que es otro carácter de # # ISO-Latin1. Como los yanquis usan el ASCII (US ISO-646), que es de # # 7 bits, no lo pueden usar; nosotros sí. Incluso "Copyright" por # # "Derechos de copia". Ya lo de FSF por Fundación del Logical Libre # # es demasiado, ¿verdad? :-) gag # < ¿Puede alguien explicarme por qué no se hace ya, o no se ha hecho # antes? ¿Qué diferencia hay, bajo el punto de vista de ser caracteres # válidos, entre 'ó' y 'ß' o entre 'ñ' y '¤' o entre 'º' y '©' o entre # '¿' y '¼'? Lo único que se me ocurre es que es algo difícil introducir # esos caracteres porque no están en el teclado del PC. No hay más que # irse a una terminal o teclado con tecla de Componer o usar el Emacs con # C-q ooo (ooo = número octal) con la tabla (man iso_8859_1) al lado. # ¿Alguien tiene otra explicación? # # Se ven peor. Estas cosas deben ser bien legibles desde consola, y el # Copyright ese © no se ve demasiado bien. sv # Nostoy dacuerdo. Protesto enérgicamente. gerardo # No tendría ningún inconveniente en usar ese carácter si el objetivo final # fuera que apareciese por una láser de 300ppp, pero el objetivo es que se # vea por consola, y con la poca resolución que tiene no es un Copyright # hecho y derecho sino una C dentro de algo que parece más bien un cuadrado # con los bordes redondeados. Incluso el (C) Sinclair Research... # se veía mejor que el de los PCs. sv # Bueno, eso es un problema del tipo de letra, no del traductor. Además (C) # es el sucedáneo legal del ©, como TeX cuando no se puede poner como \TeX{}. # Pero es un sucedáneo, no el original. Es un copyright light. A más a más, # como dicen los catalanes, que ya aparece delante la palabra Copyright, por # lo que no debe haber ambigüedad. gerardo # # Hombre, el objetivo del traductor es que se entienda, y por ser (C) # el "sucedáneo legal", como tú le dices, es razonable usarlo. # En cambio la "ñ" no tiene sucedáneo legal, por lo que poner # "espagna" o "espa~na" sería completamente inaceptable. # Y si lo miras bien, todos son sucedáneos, pues las letras no "son" # pixelizadas. Lo que yo digo es que © no es un sucedáneo más bonito que (C) # para el símbolo de copyright. sv #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Esto es software libre; vea el código fuente para las condiciones de copia.\n" "No hay NINGUNA garantía; ni siquiera de COMERCIABILIDAD o IDONEIDAD PARA UN\n" "FIN DETERMINADO.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Escrito por John Gilmore y Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "Se requieren características de GNU en formato de archivo incompatible" # requieren -> necesitan. gerardo #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Los archivos múltiples requieren la opción `-M'" # Me gusta más al verrés: cobarde rechazo [de la pradera] a... gerardo #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Rechazo cobarde a crear un archivo vacío" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Las opciones `-Aru' son incompatibles con `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Se debe especificar una de las opciones `-Acdtrux'" # Antes decía: # "La salida con error se demora por los errores anteriores # # Quiere decir que hubo errores, pero tar pudo seguir adelante, sin # embargo va a salir con un estado de error por esos errores que ya pasaron. # Una traducción: # "Salida con error demorada desde errores anteriores" (Nicolás L.) #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Salida con error demorada desde errores anteriores" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Error de lectura en byte %ld leyendo %d bytes en fichero %s" # Eso de ¡vaya tela! ¿es una interjección que se entiende en todo el mundo # hispanoparlante? No vaya a ser específico de Andalucía/Extremadura y... # ¡oye, déjalo, así expandimos nuestra lengua! gerardo # Inaceptable, alguien fuera de España no tiene idea de que diablos quiere # decir ¡vaya tela!. Habrá que buscar alguna interhección de asco/sorpresa # que sea más `portable'. nl # Tenéis razón. Habrá que preguntar. # ¡Ya lo tengo! "¡Carajo!" X-D Eso se utiliza en Colombia, México y otros # sitios de por ahí a troche y moche, y creo que ni siquiera se entiende como # "miembro viril masculino". Y en España creo que también se emplea, ¿no? # (Vaale, vaaale, ¿y qué tal su eufemismo `caramba' o `caray', más neutros # y cursis, para que no se enfade nadie? Aunque para cursis: `cáspita', # `caracoles', `cónchales'; no diréis que no os doy opciones.) Por cierto, # creo que la coma sobra (incluso en el original). gerardo #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: El tamaño del fichero ha disminuido en %d bytes, (¡vaya tela!)" # Acepto sugerencias para el `test suite'. sv # "test suite"="paquete/conjunto de pruebas/análisis", en cualquier # combinación. jmg #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Genera ficheros de datos para el conjunto de pruebas de GNU tar.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Modo de empleo: %s [OPCIÓN]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Los argumentos obligatorios para las opciones largas son también " "obligatorios\n" "para las opciones cortas.\n" "\n" " -l, --file-length=LONGITUD LONGITUD del fichero generado\n" " -p, --pattern=PATRÓN PATRÓN es `default' o `zeros'\n" " --help muestra esta ayuda y sale\n" " --version informa de la versión y finaliza\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "El patrón `%s' es ambiguo" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "El patrón `%s' es desconocido" # Me encantaría poder incluir tos propuestas de usar el \372 ( aspa ) y # el (C) , veremos si lo hacemos algún día. em+ # Estaría bien cambiar el '(C)' por '©', que es otro carácter de # ISO-Latin1. Como los yanquis usan el ASCII (US ISO-646), que es de # 7 bits, no lo pueden usar; nosotros sí. gerardo # Pues eso: que si os encanta, ¿por qué no lo hacéis? ¿Cuál es el problema? # Es pronto para eso. sv #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Escrito por François Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "La cantidad realmente escrita (esperemos) es %d.\n" #~ msgid "%d at %d\n" #~ msgstr "%d en %d\n" tar-1.13/po/fr.po0000664000176300016070000014273506740055246007325 # Messages français pour GNU concernant tar. # Copyright © 1996 Free Software Foundation, Inc. # Michel Robitaille , 1996. # msgid "" msgstr "" "Project-Id-Version: GNU tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1997-04-25 19:34 -0500\n" "Last-Translator: Michel Robitaille \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Format de date invalide dans `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Patron ambigu `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Erreur système inconnue." #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Vieille option `%c' requiert un paramètre supplémentaire." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Vieille option `%c' requiert un paramètre supplémentaire." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Vieille option `%c' requiert un paramètre supplémentaire." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Vieille option `%c' requiert un paramètre supplémentaire." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Vieille option `%c' requiert un paramètre supplémentaire." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Mémoire occupée." #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Nombre total d'octets écrits: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Ne peut fermer le fichier #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Ne peut fermer le descripteur %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Ne peut effectuer la duplication de %s." #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Ne peut archiver en mode compressé ou à travers le réseau." #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Ne peut établir le relais (pipe)" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Ne peut procéder par clonage (fork)" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "«tar» (child)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(processus enfant) Relais vers l'entrée standard." #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "L'archive %s ne peut être ouverte." #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archive vers la sortie standard." #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "%s ne peut être exécuté." #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Processus enfant ne peut procéder par clonage (fork)" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "Relais vers la sortie standard (child)" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "«tar» (grandchild)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "Relais vers l'entrée standard (grandchild)." #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Ne peut lire à partir du programme de compression." #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(processus enfant) Relais vers la sortie standard." #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archive vers l'entrée standard." #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "Relais vers l'entrée standard (child) " #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "Relais vers la sortie standard (grandchild) " #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Ne peut écrire vers un programme de compression." #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Écriture de %d octets (short) vers un programme de compression." #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Valeur invalide de la taille d'enregistrement." #: src/buffer.c:690 msgid "No archive name given" msgstr "Aucun nom d'archive donné." #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Ne peut allouer de la mémoire pour le facteur de blocage %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Ne peut vérifier des archives comportant plusieurs volumes." #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "" "Ne peut traiter des archives compressées portant sur plusieurs volumes." #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Ne peut vérifier des archives compressées." #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Ne peut mettre à jour des archives compressées." #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Ne peut vérifier des archives utilisant l'entrée/sortie standard." #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "%s ne peut être ouvert." #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "L'archive sans étiquette ne peut concorder à `%s'." #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Le volume `%s' ne concorde pas à `%s'." #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Écriture d'un point de contrôle %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Ne peut écrire vers %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Seulement %u octets écrits sur un total de %u vers %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Erreur de lecture sur %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Au début du ruban, fin prématurée." #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Trop d'erreurs, fin d'exécution." #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Lecture du point de contrôle %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Lecture de %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "AVERTISSEMENT: pas d'en-tête sur le volume." #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "La suite de %s n'est pas sur ce volume." #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s a une taille incorrecte (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Ce volume est hors séquence." #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Taille de l'enregistrement = %d blocs." #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "" "La fin de fichier (EOF) de l'archive %s n'est pas sur une limite de bloc." #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "N'a pu lire seulement que %d octets de l'archive %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "AVERTISSEMENT: ne peut fermer %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "" "Ne peut effacer par recul un fichier d'archive;\n" "elle pourrait être illisible sans l'option -i ." #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "AVERTISSEMENT: ne peut fermer %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Processus enfant a été stoppé par le signal %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (vidange de la mémoire)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Le processus enfant a retourné le statut %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Charger le volume #%d pour %s et appuyer sur ENTRÉE: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "EOF rencontrée alors qu'une réponse de l'usager était attendue." #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "AVERTISSEMENT: l'archive est incomplète." #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [nom] Donner un nouveau nom de fichier pour le prochain\n" " (ainsi que pour les subséquents) volume(s)\n" " q Stopper «tar»\n" " ! Lancer un shell\n" " ? Afficher la liste\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Pas de nouveau volume; fin d'exécution.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Ne peut créer un clone (fork)!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Ne peut lancer un 'shell' %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Ne peut allouer de la mémoire pour le tampon résiduel de %d octets" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Ne peut lire %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Ne peut lire que %d octets sur %ld octets." #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Les données sont différentes." #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Fin prématurée (EOF) du fichier d'archive." #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Ne peut se placer à la position %ld dans le fichier %s" #: src/compare.c:422 msgid "File does not exist" msgstr "Le fichier n'existe pas." #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Ne peut évaluer le fichier %s" #: src/compare.c:459 msgid "Verify " msgstr "Vérification en cours." #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "Type de fichier inconnu '%c' pour %s, diffère d'un fichier normal." #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "N'est pas un fichier de type régulier." #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Les modes d'accès diffèrent." #: src/compare.c:505 msgid "Uid differs" msgstr "Les Uid diffèrent." #: src/compare.c:507 msgid "Gid differs" msgstr "Les Gid diffèrent." #: src/compare.c:511 msgid "Mod time differs" msgstr "Les dates de modification diffèrent." #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Les tailles diffèrent." #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Erreur lors de la fermeture de %s" #: src/compare.c:582 msgid "Does not exist" msgstr "N'existe pas." #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Ne possède pas de lien vers %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Fichier ou répertoire inexistant." #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Ne peut lire le lien %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "Les liens symboliques diffèrent." #: src/compare.c:666 msgid "Device numbers changed" msgstr "Les numéros du périphérique ont été modifiés." #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Le mode ou le type de périphérique a été modifé." #: src/compare.c:726 msgid "No longer a directory" msgstr "N'est présentement plus un répertoire." #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Ne peut ouvrir le fichier %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Ne peut rembobiner le fichier d'archive pour véfication." #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "ÉCHEC DE VÉRIFICATION: %d en-tête(s) invalide(s) détectée(s)." #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Retrait des spécifications de périphérique des noms dans l'archive." #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "" "Retrait du caractère '/' de tête des noms de chemins absolus de l'archive." #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "%ld octets écrits sur %ld vers le fichier %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "" "Erreur de lecture à l'octet %ld lors de la lecture de %d octets du fichier %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "" "Erreur de lecture à l'octet %ld,\n" "lors de la lecture de %d octets du fichier %s." #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Fichier %s a été réduit de %d octets, remplissage par des zéros" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Ne peut ajouter le fichier %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: demeure inchangé; n'a pas été rejeté." #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s est l'archive; n'a pas été rejeté." #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Retrait du caractère '/' de tête des liens absolus." #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Ne peut enlever %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Fichier %s a été réduit de %d octets, remplissage par des zéros" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Ne peut ajouter le répertoire %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: provient d'un système de fichiers différent; n'a pas été rejeté." #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Ne peut ouvrir le répertoire %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Nom de fichier %s%s trop long." #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: type de fichier inconnu; fichier ignoré." #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Ne peut se repositionner sur le fichier d'archive." #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Ceci ne ressemble pas à une archive de type «tar»" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Escamotage jusqu'à la prochaine en-tête." #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Rejet d'une en-tête non conforme de l'archive." #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: ne peut modifier le mode à %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: ne peut modifier les dates d'accès et de modification." #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: ne peut exécuter lchown() pour (Uid) %d et (Gid) %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: ne peut exécuter chown() pour (Uid) %d et (Gid) %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "" "%s: ne peut modifier l'appartenance du propriétaire (Uid) %d et de groupe " "(Gid) %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: ne peut écrire dans le fichier." #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: n'a pu écrire que %d octets sur %d" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: incapable d'archiver ce fichier." #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Extraction des fichiers contiguës comme des fichiers de type régulier" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: ne peut créer le fichier." #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: n'a pu écrire que %d octets sur %d" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: erreur lors de la fermeture." #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: ne peut créer un lien symbolique vers `%s'" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Tentative d'extraction des liens symboliques comme des liens directs." #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: ne peut établir un lien vers `%s'." #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: ne peut créer un noeud." #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: ne peut créer un relais (fifo)." #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: ne peut créer le répertoire." #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Ajout des permissions d'écriture et d'exécution au répertoire %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Ne peut extraire `%s' -- le fichier est la suite d'un autre volume." #: src/extract.c:964 msgid "Visible long name error" msgstr "Erreur visible d'un long nom." #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Type de fichier inconnu '%c' pour %s, extrait comme un fichier normal." #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Ne peut évaluer %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Le répertoire %s a été renommé." #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Le répertoire %s est nouveau." #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Ne peut repérer le répertoire courant." #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Ne peut repérer le répertoire courant: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Nom de fichier %s/%s trop long." #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Les numéros du périphérique ont été modifiés." #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Ne peut changer de répertoire pour %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Fin prématurée (EOF) rencontrée dans l'archive." #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: retrait de %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Erreur lors du retrait %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Omission de %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "bloc %10ld: ** Bloc de NULs **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "bloc %10ld: ** Fin de fichier **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Cela ne ressemble pas à une archive de type «tar»..." #: src/list.c:158 msgid "Skipping to next file header" msgstr "Escamotage jusqu'à la prochaine en-tête de fichier." #: src/list.c:213 msgid "EOF in archive file" msgstr "Fin de fichier (EOF) dans le fichier d'archive." #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Écriture de %ld sur %ld octets dans le fichier %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "bloc %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Erreur visible de nom long." #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " lien vers %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " type inconnu de fichier `%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--En-tête de Volume--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Suite à l'octet %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Noms de fichiers mutilés--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Création du répertoire:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Fin prématurée (EOF) des noms mutilés." #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "%s ne peut être renommé à %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "%s renommé à %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Ne peut créer un lien symbolique de %s vers %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s relié par lien symbolique à %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Commande %s de correction inconnue." #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "%s renommé à %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "%s ne peut être renommé à %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "%s ne peut être renommé à %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "%s renommé à %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Ne peut changer pour le répertoire %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Après -C le nom de fichier est manquant." #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: ne peut être retrouvé dans l'archive." #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "«rmtd»: ne peut allouer un tampon de stockage.\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Ne peut allouer un tampon de stockage." #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "«rmtd»: fin prématurée (EOF).\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Fin de fichier prématurée (EOF)." #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "«rmtd»: commande %c rejetée.\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Commande rejetée." #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: service non disponible." #: src/rtapelib.c:301 msgid "stdin" msgstr "stdin" #: src/rtapelib.c:304 msgid "stdout" msgstr "stdout" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Ne peut exécuter un shell télécommandé." #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "" "Les options `-%s' et`-%s' requièrent toutes les deux l'entrée standard." #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Ne peut lire la confirmation de l'usager." #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Pour en savoir davantage, faites: `%s --help'.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU `tar' saugegarde plusieurs fichiers sur un ruban ou une archive sur\n" "disque et peut restaurer des fichiers individuellement d'une archive.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Usage: %s [OPTION]... [FICHIER]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Un paramètre obligatoire pour une option de forme longue l'est aussi\n" "pour une option de forme courte. La même règle s'applique\n" "à un paramètre indiqué comme étant optionnel.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Mode principal d'exécution:\n" " -t, --list afficher le contenu d'une archive\n" " -x, --extract, --get extraire les fichiers d'une archive\n" " -c, --create créer une archive\n" " -d, --diff, --compare comparer le contenu de l'archive et\n" " le système de fichier\n" " -r, --append accoller les fichiers à la fin de\n" " l'archive\n" " -u, --update accoller seulement les nouveaux fichiers\n" " et ensuite les copier dans l'archive\n" " -A, --catenate accoller les fichiers «tar» à l'archive\n" " --concatenate identique à -A\n" " --delete éliminer des entrées (mais pas pour les " "rubans)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Options modifiant les modes d'opération:\n" " -W, --verify tenter de vérifier l'archive après écriture\n" " --remove-files détruire les fichiers un fois copiés dans\n" " l'archive\n" " -k, --keep-old-files ne pas écraser les fichiers existants\n" " lors de l'extraction\n" " -U, --unlink-first détruire chaque fichier avant une nouvelle\n" " extraction qui pourrait l'écraser\n" " --recursive-unlink vider l´arborescence des répertoires avant\n" " une nouvelle extraction\n" " -S, --sparse traiter efficacement les fichiers dispersés\n" " -O, --to-stdout extraire les fichiers vers\n" " la sortie standard\n" " -G, --incremental traiter les vieux formats GNU d'archive\n" " incrémentiel\n" " -g, --listed-incremental traiter les nouveaux formats GNU d'archive\n" " incrémentiel\n" " --ignore-failed-read ignorer les fichiers de taille nulle\n" " ou non lisibles\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Traitement des attributs de fichiers:\n" " --owner=PROPRIÉTAIRE attribuer au PROPRIÉTAIRE les fichiers\n" " ajoutés\n" " --group=GROUPE attribuer au GROUPE les fichiers\n" " ajoutés\n" " --mode=CHMOD modifier les modes d'accès à la manière de\n" " de CHMOD des fichiers ajoutés\n" " --atime-preserve ne pas modifier les dates d'accès\n" " des fichiers traités\n" " -m, --modification-time ne pas extraire les fichiers dont\n" " les dates ont été modifiées\n" " --same-owner essayer d'extraire les fichiers ayant\n" " le même propriétaire\n" " --numeric-owner utiliser les valeurs numériques\n" " d'appartenance pour les noms\n" " d'usager/groupe\n" " -p, --same-permissions extraire toute l'information de protection\n" " --preserve-permissions identique à -p\n" " -s, --same-order trier les noms afin d'extraire ceux\n" " qui concordent dans l'archive\n" " --preserve-order identique à -s\n" " --preserve identique à l'utilisation combinée\n" " de -p et -s\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Sélection de périphérique et aiguillage:\n" " -f, --file=ARCHIVE utiliser le fichier ou le périphérique\n" " d'ARCHIVE\n" " --force-local le fichier d'archive est local malgré\n" " la présence de ':'\n" " --rsh-command=COMMANDE utiliser la télé-COMMANDE au lieu de «rsh»\n" " -[0-7][lmh] spécifier la densité du périphérique\n" " d'archivage\n" " -M, --multi-volume créer/afficher/extraire une archive à\n" " multiples volumes\n" " -L, --tape-length=N utiliser un autre ruban après l'écriture\n" " de N x 1024 octets\n" " -F, --info-script=SCRIPT exécuter le SCRIPT à la fin de chaque\n" " ruban (implique -M)\n" " --new-volume-script=FICHIER\n" " identique à -F FICHIER\n" " --volno-file=FICHIER utiliser/mettre à jour le numéro de volume\n" " dans le FICHIER\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Facteur de blocage du périphérique:\n" " -b, --blocking-factor=N utiliser un facteur de blocage de\n" " 512 octets par enregistrement\n" " --record-size=N utiliser un facteur de blocage de\n" " N octets par enregistrement\n" " (N doit être un multiple de 512)\n" " -i, --ignore-zeros ignorer les blocs de zéros de l'archive\n" " (c'est-à-dire les EOF)\n" " -B, --read-full-records changer le facteur de blocage lors\n" " de la lecture (pour les pipes de BSD 4.2)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Sélection du format d'archive:\n" " -V, --label=NOM inscrire le NOM de l'archive sur le volume\n" " EXPREG utiliser l'EXPression REGulière lors de\n" " de l'affichage des noms ou de l'extraction\n" " de fichiers\n" " -o, --old-archive, --portability\n" " écrire selon le format d'archive V7\n" " --posix écrire l'archive selon un format\n" " conforme POSIX\n" " -z, --gzip, --ungzip post-traiter l'archive avec «gzip»\n" " -Z, --compress, --uncompress\n" " post-traiter l'archive avec «compress»\n" " --use-compress-program=PROG\n" " post-traiter l'archive avec le PROGramme\n" " (doit accepter l'option -d)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Sélection locales des fichiers:\n" " -C, --directory RÉP opérer à partir du RÉPertoire\n" " -T, --files-from=NOM repérer les noms à extraire ou à\n" " créer à partir du fichier portant le NOM\n" " --null lire les noms se terminant par des nuls,\n" " désactivation de l'option -C, -T est\n" " implicite\n" " --exclude=PATRON exclure les fichiers indiqués par le\n" " PATRON d'escamotage\n" " -X, --exclude-from=FICHIER exclure les patrons d'escamotage\n" " apparaissant dans le FICHIER\n" " -P, --absolute-names ne pas éliminer le caractères `/' de tête\n" " des noms de fichiers\n" " -h, --dereference éliminer les liens symboliques de fichiers\n" " --no-recursion éviter de parcourir automatiquement\n" " l'arborescence des répertoires\n" " -l, --one-file-system demeurer dans le système local de fichiers\n" " lors de la création d'une archive\n" " -K, --starting-file=NOM débuter l'archivage avec le fichier\n" " portant le NOM\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATE conserver seulement les fichiers ayant\n" " une date plus récente que la DATE\n" " --newer-mtime comparer les dates et les heures\n" " lorsque seulement\n" " les données ont été modifiées\n" " --after-date=DATE identique à -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=CONTRÔLE] archiver avant le retrait, utiliser la \n" " version de contrôle\n" " --suffix=SUFFIXE archiver avant le retrait, en remplaçant\n" " par le SUFFIXE le suffixe usuel\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Modes informatifs de sortie:\n" " --help afficher l'aide-mémoire\n" " --version afficher le nom et la version du logiciel\n" " -v, --verbose utiliser le mode bavard lors du traitement\n" " des fichiers\n" " --checkpoint afficher les noms des répertoires lors\n" " de la lecture de l'archive\n" " --totals afficher le nombre total d'octets lors\n" " de la création de l'archive\n" " -R, --block-number afficher le numéro de bloc contenu dans\n" " l'archive pour chaque message\n" " -w, --interactive demander confirmation de l'usager\n" " pour chaque action\n" " --confirmation identique à -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Le suffixe d'archive est ~, à moins que l'option --suffix ou \n" "SIMPLE_BACKUP_SUFFIX en utilise un autre. Le contrôle de version peut être\n" "initialisé avec --backup ou VERSION_CONTROL selon les valeurs suivantes:\n" "\n" " t, numbered faire des archives numérotées\n" " nil, existing numéroter si des archives numérotées existent,\n" " ne pas numéroter autrement\n" " never, simple toujours faire des archives de type simple\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "«tar» de GNU ne peut lire ni produire des archives de type `--posix'.\n" "Si la variable d'environnement POSIXLY_CORRECT est initialisée, les \n" "extensions de GNU sont inhibées avec l'option `--posix'.\n" "Le support pour POSIX est partiellement implanté, ne comptez pas trop\n" "dessus pour l'instant. Une ARCHIVE peut être un FICHIER, ou\n" "HÔTE:FICHIER ou USAGER@HÔTE:FICHIER; FICHIER peut être alors un fichier ou\n" "un périphérique. Les options par défaut de cette version sont `-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Rapporter toutes anomalies à tar-bugs@gnu.org.\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Vous ne pouvez pas sélectionner plus d'une option parmi `-Acdtrux' " #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Options conflictuelles de compression." #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Vieille option `%c' requiert un paramètre supplémentaire." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Option désuète, maintenant implicite par --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Option désuète remplacée par --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Option désuète remplacée par --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Option désuète remplacée par --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Plus d'une date de seuil" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Format de date invalide dans `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Options conflictuelles de formatage d'archive." #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Option désuète remplacée par --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Option désuète remplacée par --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "L'option --backup remplace l'option devenue désuète." #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Groupe invalide donné en option" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Mode invalide donné en option" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Propriétaire invalide donné en option" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Valeur invalide de la taille d'enregistrement." #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "La taille des enregistrements doit être un multiple de %d" #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "" "Les options `-[0-7][lmh]' ne sont pas supportées par cette version de «tar»" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright © 1988, 92, 93, 94, 95, 96 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Ce logiciel est gratuit; voir les sources pour les conditions de\n" "reproduction. AUCUNE garantie n'est donnée; tant pour des raisons\n" "COMMERÇIALES que pour RÉPONDRE À UN BESOIN PARTICULIER.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Conçu par John Gilmore et Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "Options de GNU demandées pour un format d'archive incompatible." #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "L'option `-M' est requise pour des fichiers à multiples archives." #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Refus catégorique de créer un fichier d'archive vide." #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Les option `-Aru' sont incompatibles avec l'option `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Vous devez sélectionner une des options `-Acdtrux' " #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Statut d'erreur reporté d'erreurs précédentes." #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "" "Erreur de lecture à l'octet %ld lors de la lecture de %d octets du fichier %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: fichier réduit de %d octet(s), (ouache!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Générer les fichiers de données pour la suite des tests de GNU tar.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Usage: %s [OPTION]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Si une option de forme longue requiert un paramètre obligatoire,\n" "il est alors obligatoire également pour une option de forme courte.\n" "\n" " -l, --file-length longueur du fichier généré\n" " -p, --pattern=PATRON PATRON doit être \"default\" ou \"zeros\"\n" " --help afficher l'aide-mémoire\n" " --version afficher le nom et la version du logiciel\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Patron ambigu `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Patron inconnu `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright © 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Écrit par François Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Total actuellement écrit est (je l'espère) %d\n" #~ msgid "%d at %d\n" #~ msgstr "%d de %d\n" tar-1.13/po/it.po0000664000176300016070000013431106740055247007322 # Messaggi in Italiano per GNU tar. # Copyright (C) 1996 Free Software Foundation, Inc. # Lele Gaifax , 1996. # Marco d'Itri \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Formato della data non valido `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Modello ambiguo `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Errore di sistema sconosciuto" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "La vecchia opzione `%c' richiede un argomento." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "La vecchia opzione `%c' richiede un argomento." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "La vecchia opzione `%c' richiede un argomento." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "La vecchia opzione `%c' richiede un argomento." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "La vecchia opzione `%c' richiede un argomento." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Memoria esaurita" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Byte totali scritti: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Impossibile chiudere il file #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Impossibile chiudere il descrittore %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Impossibile duplicare correttamente %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Impossibile usare archivi compressi o remoti" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Impossibile aprire la pipe" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Impossibile fare fork" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (figlio)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(figlio) Pipe a stdin" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Impossibile aprire l'archivio %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archivio a stdout" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Impossibile eseguire %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Il figlio non riesce a fare fork" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((figlio)) Pipe a stdout" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (nipote)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(nipote) Pipe a stdin" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Impossibile leggere dati dal programma di compressione" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(figlio) Pipe a stdout" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archivio a stdin" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((figlio)) Pipe a stdin" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(nipote) Pipe a stdout" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Impossibile scrivere al programma di compressione" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "" "La scrittura al programma di compressione è risultata più corta di %d byte" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Valore di record_size non valido" #: src/buffer.c:690 msgid "No archive name given" msgstr "Non è stato specificato un nome di archivio" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Impossibile allocare memoria per il blocking factor %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Impossibile verificare archivi multi-volume" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Impossibile usare archivi multi-volume compressi" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Impossibile verificare archivi compressi" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Impossibile aggiornare archivi compressi" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Impossibile verificare archivi su stdin/stdout" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Impossibile aprire %s" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "L'archivio non è stato etichettato per corrispondere a `%s'" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Il volume `%s' non corrisponde a `%s'" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Checkpoint di scrittura %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Impossibile scrivere su %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Scritti solo %u byte su %u su %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Errore di lettura su %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "All'inizio del nastro, abbandono adesso" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Troppi errori, abbandono" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Checkpoint di lettura %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Leggo %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "ATTENZIONE: intestazione del volume mancante" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s non continua su questo volume" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s ha dimensione errata (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Questo volume è fuori sequenza" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Dimensioni dei record = %d blocchi" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "La fine dell'archivio %s non è sul limite di un blocco" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Letti solo %d byte dall'archivio %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "ATTENZIONE: Impossibile chiudere %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "" "Impossibile muoversi all'indietro nel file dell'archivio; potrebbe essere\n" "illeggibile senza l'opzione -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "ATTENZIONE: Impossibile chiudere %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Il figlio è morto con il segnale %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr "(fatto un core dump)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Il figlio ha restituito lo status %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Prepara il volume #%d per %s e premi return: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "Letto EOF mentre era attesa la risposta dell'utente" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "ATTENZIONE: L'archivio non è completo" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [nome] Cambia il nome del file per il prossimo volume (e i successivi)\n" " q Termina tar\n" " ! Esegui una subshell\n" " ? Stampa questa lista\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Nessun nuovo volume; esco.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Impossibile fare fork!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Impossibile eseguire la shell %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Impossibile allocare memoria per il buffer di confronto di %d byte" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Impossibile leggere %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Ho potuto leggere solo %d byte su %ld" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "I dati differiscono" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "EOF inaspettato sul file dell'archivio" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Impossibile spostarsi alla posizione %ld nel file %s" #: src/compare.c:422 msgid "File does not exist" msgstr "Il file non esiste" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Impossibile fare stat sul file %s" #: src/compare.c:459 msgid "Verify " msgstr "Verifica " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" "Tipo di file sconosciuto '%c' per %s, confrontato\n" "come un file normale" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Non è un file normale" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "I modi differiscono" #: src/compare.c:505 msgid "Uid differs" msgstr "Gli uid differiscono" #: src/compare.c:507 msgid "Gid differs" msgstr "I gid differiscono" #: src/compare.c:511 msgid "Mod time differs" msgstr "I tempi di modifica differiscono" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Le dimensioni differiscono" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Errore nella chiusura di %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Non esiste" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Non è un link a %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "File o directory inesistente" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Impossibile leggere il link %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "Il symlink è differente" #: src/compare.c:666 msgid "Device numbers changed" msgstr "I numeri dei dispositivi sono cambiati" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Il modo o il tipo del dispositivo è cambiato" #: src/compare.c:726 msgid "No longer a directory" msgstr "Non è più una directory" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Impossibile aprire il file %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Impossibile riavvolgere il file archivio per la verifica" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "ERRORE DI VERIFICA: intestazioni non valide trovate: %d" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Rimuovo la lettera del drive dai nomi nell'archivio" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Rimuovo lo `/' iniziale dai percorsi assoluti nell'archivio" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Scritti %ld byte su %ld nel file %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Errore di lettura al byte %ld leggendo %d byte dal file %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Errore di lettura al byte %ld, leggendo %d byte, nel file %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "File %s accorciato di %d byte, riempio con zeri" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Impossibile aggiungere il file %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: non modificato; non archiviato" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s è l'archivio; non archiviato" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Rimuovo lo `/' iniziale dai link assoluti" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Impossibile rimuovere %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "File %s accorciato di %d byte, riempio con zeri" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Impossibile aggiungere la directory %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: Si trova su un diverso filesystem; non archiviato" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Impossibile aprire la directory %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Il nome del file %s%s è troppo lungo" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Tipo di file sconosciuto; file ignorato" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Impossibile riposizionare il file archivio" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Questo non sembra un archivio tar" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Salto alla prossima intestazione" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Cancello dall'archivio una non-intestazione" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Impossibile a cambiare il modo a %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Impossibile cambiare i tempi di accesso e modifica" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Impossibile fare lchown a uid %d e gid %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Impossibile fare chown a uid %d e gid %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Impossibile cambiare il proprietario in uid %d e gid %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Impossibile scrivere nel file" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: È stato possibile scrivere solo %d byte su %d" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Non è stato possibile fare il backup di questo file" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Estraggo i file contigui come file normali" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Impossibile creare il file" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: È stato possibile scrivere solo %d byte su %d" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Errore durante la chiusura" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Impossibile creare un symlink a `%s'" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Cerco di estrarre i symlink come hard link" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Impossibile fare il link a `%s'" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Impossibile creare il nodo" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Impossibile creare il fifo" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Impossibile creare la directory" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Aggiunti i permessi di scrittura ed esecuzione alla directory %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Impossibile estrarre `%s' -- il file continua da un altro volume" #: src/extract.c:964 msgid "Visible long name error" msgstr "Errore nel nome lungo visibile" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Tipo di file '%c' sconosciuto per %s, estratto come un file normale" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Impossibile fare stat su %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "La directory %s è stata rinominata" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "La directory %s è nuova" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Impossibile determinare la directory corrente" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Impossibile determinare la directory corrente: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Il nome del file %s/%s è troppo lungo" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "I numeri dei dispositivi sono cambiati" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Impossibile cambiare directory in %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "EOF inaspettato nell'archivio" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Cancello %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Errore durante la cancellazione di %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Tralascio %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "blocco %10ld: ** Blocco di NUL **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "blocco %10ld: ** Fine del File **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Uhm, questo non sembra un archivio tar" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Salto alla prossima intestazione di file" #: src/list.c:213 msgid "EOF in archive file" msgstr "EOF nel file dell'archivio" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Scritti solo %ld bytes su %ld nel file %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "blocco %10ld: " #: src/list.c:808 #, fuzzy msgid "Visible longname error" msgstr "Errore nel nome lungo visibile" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " link a %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " tipo di file sconosciuto `%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Intestazione del Volume--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Continua al byte %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Nomi di file mutilati--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Creo la directory:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "EOF inaspettato nei nomi mutilati" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Impossibile rinominare %s in %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "%s rinominato in %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Impossibile fare un link simbolico %s a %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s è un link simbolico a %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Comando di demutilazione sconosciuto %s" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "%s rinominato in %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Impossibile rinominare %s in %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Impossibile rinominare %s in %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "%s rinominato in %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Impossibile spostarsi nella directory %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Manca il nome del file dopo -C" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Non trovato nell'archivio" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Impossibile allocare spazio per il buffer\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Impossibile allocare spazio per il buffer" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Fine del file prematura\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Fine del file prematura" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Comando spazzatura %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Comando spazzatura" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Servizio non disponibile" #: src/rtapelib.c:301 msgid "stdin" msgstr "stdin" #: src/rtapelib.c:304 msgid "stdout" msgstr "stdout" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Impossibile eseguire la shell remota" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Entrambe le opzioni `-%s' e `-%s' richiedono lo standard input" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Impossibile leggere una conferma dall'utente" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Usare `%s --help' per ulteriori informazioni.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU `tar' salva molti file insieme in un solo archivio su nastro o su disco\n" "e può ripristinare singoli file dall'archivio.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Uso: %s [OPZIONE]... [FILE]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Se una opzione lunga indica un argomento come obbligatorio, allora lo è " "anche\n" "per l'opzione corta equivalente. Lo stesso vale per gli argomenti " "opzionali.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Modi operativi principali:\n" " -t, --list elenca il contenuto dell'archivio\n" " -x, --extract, --get estrae i file da un archivio\n" " -c, --create crea un nuovo archivio\n" " -d, --diff, --compare cerca differenze tra l'archivio e il file system\n" " -r, --append accoda i file alla fine di un archivio\n" " -u, --update accoda solo i file più nuovi della copia in " "archivio\n" " -A, --catenate aggiungi il contenuto di un altro archivio\n" " --concatenate come -A\n" " --delete cancella da un archivio (non su nastri " "magnetici!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Modificatori delle operazioni:\n" " -W, --verify prova a verificare l'archivio dopo averlo " "scritto\n" " --remove-files cancella i file dopo averli aggiunti " "all'archivio\n" " -k, --keep-old-files nell'estrazione non sovrascrive file esistenti\n" " -U, --unlink-first cancella ogni file prima di estrarre su di " "esso\n" " --recursive-unlink svuota le directory prima di estrarle\n" " -S, --sparse gestisce efficientemente i file sparsi\n" " -O, --to-stdout estrae i file su standard output\n" " -G, --incremental gestisce i vecchi backup incrementali GNU\n" " -g, --listed-incremental gestisce i nuovi backup incrementali GNU\n" " --ignore-failed-read non esce con non-zero con file illeggibili\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Gestione degli attributi dei file:\n" " --owner=NOME forza NOME come proprietario dei file " "aggiunti\n" " --group=NOME forza NOME come gruppo dei file aggiunti\n" " --mode=CAMBI forza il modo (simbolico) CAMBI per i file\n" " aggiunti\n" " --atime-preserve non cambia il tempo di accesso dei file " "archiv.\n" " -m, --modification-time non estrae il tempo di ultima modifica del " "file\n" " --same-owner cerca di estrarre i file con lo stesso " "proprietario\n" " --numeric-owner usa sempre i numeri per i nomi di " "utente/gruppo\n" " -p, --same-permissions estrae tutti i permessi\n" " --preserve-permissions come -p\n" " -s, --same-order ordina i nomi da estrarre come nell'archivio\n" " --preserve-order come -s\n" " --preserve come -s e -p insieme\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Selezione e cambio del dispositivo:\n" " -f, --file=ARCHIVIO usa come archivio il file o il dispositivo\n" " ARCHIVIO\n" " --force-local l'archivio è locale anche se contiene `:'\n" " --rsh-command=COMANDO usa la shell remota COMANDO al posto di " "rsh\n" " -[0-7][lmh] specifica il drive e la densità\n" " -M, --multi-volume crea/elenca/estrai archivi multi-volume\n" " -L, --tape-length=NUM cambia nastro dopo aver scritto NUMx1024 " "byte\n" " -F, --info-script=FILE esegui lo script FILE alla file di ogni " "nastro\n" " (implica -M)\n" " --new-volume-script=FILE come -F FILE\n" " --volno-file=FILE usa/aggiorna il numero del volume in FILE\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Blocking dei dispositivi:\n" " -b, --blocking-factor=BLOCKS usa record di BLOCKS x 512 bytes\n" " --record-size=SIZE usa record di SIZE bytes, multiplo di 512\n" " -i, --ignore-zeros ignora blocchi azzerati nel archivio\n" " (significa EOF)\n" " -B, --read-full-records reblock in lettura (per le pipe di 4.2BSD)\n" #: src/tar.c:336 #, fuzzy msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Selezione formato di archiviazione:\n" " -V, --label=NOME crea un archivio con nome di volume " "NOME\n" " MODELLO durante la elencazione/estrazione è un\n" " MODELLO di globbing pattern\n" " -o, --old-archive, --portability scrive un archivio in formato V7\n" " --posix scrive un archivio conforme a POSIX\n" " -I, --bzip2, --bunzip2 filtra l'archivio attraverso bzip2\n" " -z, --gzip, --ungzip filtra l'archivio attraverso gzip\n" " -Z, --compress, --uncompress filtra l'archivio attraverso compress\n" " --use-compress-program=PROG filtra usando PROG (deve accettare -d)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Selezione dei file locali:\n" " -C, --directory=DIR si sposta nella directory DIR\n" " -T, --files-from=NOME prende i nomi da estrarre o creare dal file " "NOME\n" " --null -T legge nomi terminati da null, disabilita -C\n" " --exclude=MODELLO esclude i file i cui nomi soddisfano il " "MODELLO\n" " -X, --exclude-from=FILE esclude i modelli elencati nel file FILE\n" " -P, --absolute-names non rimuove lo '/' iniziale dai nomi dei file\n" " -h, --dereference archivia il file a cui punta il symlink\n" " --no-recursion non attraversa automaticamente le directory\n" " -l, --one-file-system resta nel file system locale durante la " "creazione\n" " -K, --starting-file=NOME comincia dal file NOME nell'archivio\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATA archivia solo i file più recenti di DATA\n" " --newer-mtime confronta data e ora solo quando il contenuto " "è\n" " cambiato\n" " --after-date=DATE come -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=CONTROLLO] backup prima di rimuovere, scegli il\n" " controllo di versione\n" " --suffix=SUFFSSO backup prima di rimuovere, cambia suffisso\n" #: src/tar.c:372 #, fuzzy msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Output informativo:\n" " --help mostra questo aiuto ed esce\n" " --version mostra le informazioni sulla versione ed esce\n" " -v, --verbose elenca prolissamente i files processati\n" " --checkpoint leggendo l'archivio stampa i nomi delle directory\n" " --totals stampa i byte scritti in totale creando l'archivio\n" " -R, --block-number mostra il numero di blocco nell'archivio con ogni\n" " messaggio\n" " -w, --interactive chiede conferma per ogni azione\n" " --confirmation come -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Il suffisso dei backup è `~', a meno che sia impostato con --suffix oppure\n" "SIMPLE_BACKUP_SUFFIX. Il controllo di versione può essere impostato con\n" "--backup oppure VERSION_CONTROL, i valori sono:\n" "\n" " t, numbered fa backup numerati\n" " nil, existing numerati se esistono backup numerati, altrimenti semplici\n" " never, simple fa sempre backup semplici\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar non può leggere nè produrre archivi `--posix'. Se nell'ambiente è\n" "impostato POSIXLY_CORRECT, `--posix' vieta le estensioni GNU.\n" "Il support per POSIX è implementato solo parzialmente, non contateci " "ancora.\n" "ARCHIVIO può essere FILE, HOST:FILE oppure UTENTE@HOST:FILE; FILE può " "essere\n" "un file o un dispositivo. *Questo* `tar' è predefinito a `-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Segnalate i bug a .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Impossibile specificare più di una opzione tra `-Acdtrux'" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Conflitto tra le opzioni di compressione" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "La vecchia opzione `%c' richiede un argomento." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Opzione obsoleta, adesso implicata da --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Nome di opzione obsoleto sostituito da --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Nome di opzione obsoleto sostituito da --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Nome di opzione obsoleto sostituito da --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Più di una data limite" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Formato della data non valido `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Le opzioni di formato dell'archivio sono in conflitto." #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Nome di opzione obsoleto sostituito da --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Nome di opzione obsoleto sostituito da --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Nome di opzione obsoleto sostituito da --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Gruppo non valido in una opzione" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Modo non valido in una opzione" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Proprietario non valido in una opzione" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Valore di record_size non valido" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "La dimensione del record deve essere un multiplo di %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Le opzioni `-[0-7][lmh]' non sono gestite da *questo* tar" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "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" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Scritto da John Gilmore e Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "Richieste funzionalità GNU su un formato di archivio incompatibile" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Archivi multipli richiedono l'opzione `-M'" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Codardamente mi rifiuto di creare un archivio vuoto" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Le opzioni `-Aru' sono incompatibili con `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Devi specificare una delle opzioni `-Acdtrux'" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Uscita per errore ritardata dall'errore precedente" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Errore di lettura al byte %ld leggendo %d byte dal file %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: il file si è rimpicciolito di %d byte, (accipicchia!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Genero i file di dati per la suite di test di GNU tar.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Uso: %s [OPZIONE]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Gli argomenti che sono obbligatori per le opzioni lunghe lo sono anche per\n" "le opzioni corte equivalenti.\n" "\n" " -l, --file-length=LENGTH lunghezza del file generato\n" " -p, --pattern=MODELLO MODELLO è `default' o `zeros'\n" " --help mostra questo aiuto ed esce\n" " --version mostra le informazioni sulla versione ed esce\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Modello ambiguo `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Modello sconosciuto `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Scritto da François Pinard .\n" #~ msgid "Total bytes written: %.0f" #~ msgstr "Byte totali scritti: %.0f" #~ msgid " (%3.1f Gb)" #~ msgstr " (%3.1f Gb)" #~ msgid " (%3.1f Mb)" #~ msgstr " (%3.1f Mb)" #~ msgid " (%3.1f Kb)" #~ msgstr " (%3.1f Kb)" #~ msgid "Elapsed time: %02d:%02d:%02d, %g sec\n" #~ msgstr "Tempo trascorso: %02d:%02d:%02d, %g sec\n" #~ msgid "Throughput per second: %.0fKb/sec\n" #~ msgstr "Throughput per secondo: %.0fKb/sec\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "La quantità effettivamente scritta è (spero) %d.\n" #~ msgid "%d at %d\n" #~ msgstr "%d a %d\n" tar-1.13/po/ko.po0000664000176300016070000012233206740055247007317 # Korean messages for GNU tar # Copyright (C) 1996 Free Software Foundation, Inc. # Bang Jun-Young , 1996-1997. # msgid "" msgstr "" "Project-Id-Version: GNU tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1997-05-30 22:55+0900\n" "Last-Translator: Bang Jun-Young \n" "Language-Team: Korean \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-KR\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "ºÎÀûÀýÇÑ ³¯Â¥ Çü½Ä `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "¸ðÈ£ÇÑ ÆÐÅÏ `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "¾Ë ¼ö ¾ø´Â ½Ã½ºÅÛ ¿À·ù" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "¸Þ¸ð¸®°¡ ¹Ù´Ú³²" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" # #: src/buffer.c:157 msgid "Total bytes written: " msgstr "ÃÑ ¾²¿©Áø ¹ÙÀÌÆ®: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "ÆÄÀÏ #%d¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "±â¼úÀÚ %d¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´Ù" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "%s¸¦ Á¦´ë·Î º¹»çÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "¾ÐÃàµÈ ¾ÆÄ«À̺곪 ¿ø°Ý ¾ÆÄ«À̺긦 »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "ÆÄÀÌÇÁ¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "forkÇÒ ¼ö ¾ø½À´Ï´Ù" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (ÀÚ½Ä)" # #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(ÀÚ½Ä) Ç¥ÁØÀԷ¿¡ ´ëÇÑ ÆÄÀÌÇÁ" # #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "%s ¾ÆÄ«À̺긦 ¿­ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ¾ÆÄ«À̺ê" # #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "%s¸¦ ½ÇÇàÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "ÀÚ½ÄÀº forkÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((ÀÚ½Ä)) Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ÆÄÀÌÇÁ" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (¼ÕÀÚ)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(¼ÕÀÚ) Ç¥ÁØÀԷ¿¡ ´ëÇÑ ÆÄÀÌÇÁ" # #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "¾ÐÃà ÇÁ·Î±×·¥À¸·ÎºÎÅÍ ÀоîµéÀÏ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(ÀÚ½Ä) Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ÆÄÀÌÇÁ" # #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Ç¥ÁØÀԷ¿¡ ´ëÇÑ ¾ÆÄ«À̺ê" # #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((ÀÚ½Ä)) Ç¥ÁØÀԷ¿¡ ´ëÇÑ ÆÄÀÌÇÁ" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(¼ÕÀÚ) Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ÆÄÀÌÇÁ" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "¾ÐÃà ÇÁ·Î±×·¥¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "¾ÐÃà ÇÁ·Î±×·¥¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "record_size·Î ºÎÀûÀýÇÑ °ª" # #: src/buffer.c:690 msgid "No archive name given" msgstr "¾ÆÄ«À̺ê À̸§ÀÌ ÁÖ¾îÁöÁö ¾Ê¾Ò½À´Ï´Ù" # #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "ºí·° °è¼ö %d¿¡ ´ëÀÀÇÏ´Â ¸Þ¸ð¸®¸¦ ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "´ÙÁß-º¼·ý ¾ÆÄ«À̺긦 °ËÁõÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "¾ÐÃàµÈ ´ÙÁß-º¼·ý ¾ÆÄ«À̺긦 »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "¾ÐÃàµÈ ¾ÆÄ«À̺긦 °ËÁõÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "¾ÐÃàµÈ ¾ÆÄ«À̺긦 °»½ÅÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Ç¥ÁØÀÔ/Ãâ·Â ¾ÆÄ«À̺긦 °ËÁõÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "%s¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "`%s'¿Í ÀÏÄ¡Çϵµ·Ï ¶óº§ÀÌ ºÙÁö ¾ÊÀº ¾ÆÄ«À̺ê" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "º¼·ý `%s'°¡ `%s'¿Í ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù" # #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "°Ë»çÁöÁ¡ %d¸¦ ¾¸" # #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "%s¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù" # #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "%u ¹ÙÀÌÆ®(%u ¹ÙÀÌÆ® Áß)¸¸ %s¿¡ ½è½À´Ï´Ù" # #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "%s¿¡¼­ Àб⠿À·ù" # #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Å×ÀÌÇÁÀÇ ½ÃÀÛ ºÎºÐ¿¡¼­ Áö±Ý Á¾·áÇÔ" # #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "¿À·ù°¡ ³Ê¹« ¸¹¾Æ¼­ Á¾·áÇÕ´Ï´Ù" # #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "°Ë»çÁöÁ¡ %d¸¦ ÀÐÀ½" # #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "%s¸¦ Àд Áß\n" # #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "°æ°í: º¼·ý Çì´õ ¾øÀ½" # #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s´Â ÀÌ º¼·ý¿¡ ¿¬¼ÓµÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù" # #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s´Â À߸øµÈ Å©±âÀÔ´Ï´Ù (%ld != %ld + %ld)" # #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "ÀÌ º¼·ýÀº ¼ø¼­¸¦ ¹þ¾î³µ½À´Ï´Ù" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "·¹ÄÚµå Å©±â = %d ºí·°" # #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "ºí·° °æ°è°¡ ¾Æ´Ñ ºÎºÐ¿¡¼­ ¾ÆÄ«À̺ê %sÀÇ EOF °ËÃâ" # #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "%d ¹ÙÀÌÆ®¸¸ ¾ÆÄ«À̺ê %s¿¡¼­ Àоú½À´Ï´Ù" # #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "°æ°í: %s¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´Ù (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "" # #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "°æ°í: %s¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´Ù (%d, %d)" # #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "ÀÚ½ÄÀÌ ½ÅÈ£ %d%s¿Í ÇÔ²² Á×¾úÀ½" # #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (ÄÚ¾î Ãâ·ÂµÊ)" # #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "ÀÚ½ÄÀÌ »óÅ %d¸¦ µÇµ¹·Á ÁÖ¾ú½À´Ï´Ù" # #: src/buffer.c:1574 #, fuzzy, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "º¼·ý #%d(%s¸¦ À§ÇÑ)¸¦ ÁغñÇÏ°í ¸®ÅÏÀ» Ä¡¼¼¿ä: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "»ç¿ëÀÚÀÇ ÀÀ´äÀÌ ÇÊ¿äÇÑ °÷¿¡ EOF°¡ ÀÖÀ½" # #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "°æ°í: ¾ÆÄ«À̺갡 ºÒ¿ÏÀüÇÕ´Ï´Ù" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [À̸§] ´ÙÀ½(°ú ±× ÀÌÈÄÀÇ) º¼·ý¿¡ ´ëÇÑ »õ ÆÄÀÏ À̸§À» ÁöÁ¤ÇÕ´Ï´Ù\n" " q tar¸¦ Áß´ÜÇÕ´Ï´Ù\n" " ! ¼­ºê¼ÐÀ» ½ÇÇàÇÕ´Ï´Ù\n" " ? ÀÌ ¸ñ·ÏÀ» ÀμâÇÕ´Ï´Ù\n" # #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "»õ º¼·ýÀÌ ¾Æ´Ô; Á¾·á.\n" # #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "forkÇÒ ¼ö ¾ø½À´Ï´Ù!" # #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "%s ¼ÐÀ» ½ÇÇàÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "%d ¹ÙÀÌÆ®ÀÇ diff ¹öÆÛ¿¡ ¸Þ¸ð¸®¸¦ ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "%s¸¦ ÀÐÀ» ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "%d ¹ÙÀÌÆ®(%ld ¹ÙÀÌÆ® Áß)¸¸ ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù" # #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "ÀÚ·á°¡ ´Ù¸¨´Ï´Ù" # #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "¾ÆÄ«À̺ê ÆÄÀÏ¿¡ ¿¹±âÄ¡ ¾ÊÀº EOF" # #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "ÆÄÀÏ %sÀÇ %ld±îÁö Ž»öÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:422 msgid "File does not exist" msgstr "ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù" # #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "" # #: src/compare.c:459 msgid "Verify " msgstr "°ËÁõ " # #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" # #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "ÀϹÝÀûÀÎ ÆÄÀÏÀÌ ¾Æ´Ô" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "¸ðµå°¡ ´Ù¸¨´Ï´Ù" # #: src/compare.c:505 msgid "Uid differs" msgstr "uid°¡ ´Ù¸¨´Ï´Ù" # #: src/compare.c:507 msgid "Gid differs" msgstr "gid°¡ ´Ù¸¨´Ï´Ù" # #: src/compare.c:511 msgid "Mod time differs" msgstr "º¯°æ ½Ã°¢ÀÌ ´Ù¸¨´Ï´Ù" # #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Å©±â°¡ ´Ù¸¨´Ï´Ù" # #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "%s¸¦ ´Ý´Â µ¿¾È ¿À·ù ¹ß»ý" # #: src/compare.c:582 msgid "Does not exist" msgstr "°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù" # #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "%s¿¡ ¿¬°áµÇÁö ¾ÊÀ½" # #: src/compare.c:616 msgid "No such file or directory" msgstr "±×·± ÆÄÀÏÀ̳ª µð·ºÅ丮°¡ ¾øÀ½" # #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "¸µÅ© %s¸¦ ÀÐÀ» ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:627 msgid "Symlink differs" msgstr "±âÈ£¸µÅ©°¡ ´Ù¸¨´Ï´Ù" # #: src/compare.c:666 msgid "Device numbers changed" msgstr "ÀåÄ¡ ¹øÈ£°¡ ¹Ù²î¾úÀ½" # #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "¸ðµå ¶Ç´Â ÀåÄ¡ ŸÀÔÀÌ º¯°æµÊ" # #: src/compare.c:726 msgid "No longer a directory" msgstr "´õ ÀÌ»ó µð·ºÅ丮°¡ ¾Æ´Ô" # #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "%s ÆÄÀÏÀ» ¿­ ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "°ËÁõÀ» À§ÇØ ¾ÆÄ«À̺ê ÆÄÀÏÀ» µÇ°¨À» ¼ö ¾ø½À´Ï´Ù" # #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "°ËÁõ ½ÇÆÐ: %d°³ÀÇ ºÎÀûÀýÇÑ Çì´õ°¡ °ËÃâµÊ" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" # #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "¾ÆÄ«À̺꿡 ÀÖ´Â À̸§µé¿¡¼­ µå¶óÀ̺ê ÁöÁ¤¹®À» Á¦°ÅÇÔ" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "¾ÆÄ«ÀÌºê ¾È¿¡ ÀÖ´Â Àý´ë °æ·Î¸í¿¡¼­ ¾Õ¿¡ ºÙÀº `/'¸¦ Á¦°ÅÇÔ" # #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "%ld ¹ÙÀÌÆ®(%ld ¹ÙÀÌÆ® Áß)¸¦ ÆÄÀÏ %s¿¡ ½è½À´Ï´Ù" # #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "%ld ¹ÙÀÌƮ°¿¡¼­ Àб⠿À·ù, %d ¹ÙÀÌÆ® ÀÐÀ½, ÆÄÀÏ %s" # #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "%ld ¹ÙÀÌƮ°¿¡¼­ Àб⠿À·ù, %d ¹ÙÀÌÆ® ÀÐÀ½, ÆÄÀÏ %s" #: src/create.c:716 #, c-format msgid "File %s shrunk, padding with zeros" msgstr "" # #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "ÆÄÀÏ %s¸¦ Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: º¯°æµÇÁö ¾Ê¾Ò½À´Ï´Ù; ´ýÇÁµÇÁö ¾ÊÀ½" # #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s´Â ¾ÆÄ«À̺êÀÔ´Ï´Ù; ´ýÇÁµÇÁö ¾ÊÀ½" # #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Àý´ë ¸µÅ©µé¿¡¼­ ¾Õ¿¡ ºÙÀº `/'¸¦ Á¦°ÅÇÔ" # #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "%s¸¦ Áö¿ï ¼ö ¾ø½À´Ï´Ù" # #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "%s: ÆÄÀÏÀÌ %d ¹ÙÀÌÆ® ÁÙ¾îµë, (¿Í¿ì!)" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" # #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "%s µð·ºÅ丮¸¦ Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: ´Ù¸¥ ÆÄÀϽýºÅÛ »ó¿¡ ÀÖÀ½; ´ýÇÁµÇÁö ¾ÊÀ½" # #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "%s µð·ºÅ丮¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù" # #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "ÆÄÀÏ À̸§ %s%s´Â ³Ê¹« ±é´Ï´Ù" # #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: ¾Ë ¼ö ¾ø´Â ÆÄÀÏ Å¸ÀÔ; ÆÄÀÏÀÌ ¹«½ÃµÊ" # #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "¾ÆÄ«À̺ê ÆÄÀÏÀ» ÀçÀ§Ä¡½Ãų ¼ö ¾ø½À´Ï´Ù" # #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "ÀÌ°ÍÀº tar ¾ÆÄ«À̺êó·³ º¸ÀÌÁö ¾Ê½À´Ï´Ù" # #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "´ÙÀ½ Çì´õ·Î °Ç³Ê ¶Ü" # #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "¾ÆÄ«À̺꿡¼­ ºñÇì´õ ºÎºÐÀ» Á¦°ÅÇÔ" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: ¸ðµå¸¦ %0.4o·Î ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Á¢±Ù ½Ã°¢°ú ¼öÁ¤ ½Ã°¢À» ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: ¼ÒÀ¯ÀÚ¸¦ uid %d gid %d·Î ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: ¼ÒÀ¯ÀÚ¸¦ uid %d gid %d·Î ¹Ù²Ù¾ú½À´Ï´Ù" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: ¼ÒÀ¯ÀÚ¸¦ uid %d, gid %d·Î ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: ÆÄÀÏ¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: %d ¹ÙÀÌÆ®(%d ¹ÙÀÌÆ® Áß)¸¸ ½è½À´Ï´Ù" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: ÀÌ ÆÄÀÏÀ» ¹é¾÷ÇÒ ¼ö ¾ø¾ú½À´Ï´Ù" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "¿¬¼ÓµÇ¾î ÀÖ´Â ÆÄÀÏÀ» ÀÏ¹Ý ÆÄÀÏ·Î ÃßÃâÇÔ" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: ÆÄÀÏÀ» ¸¸µé ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: %d ¹ÙÀÌÆ®(%d ¹ÙÀÌÆ® Áß)¸¸ ½è½À´Ï´Ù" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: ´Ý´Â µ¿¾È ¿À·ù ¹ß»ý" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: `%s'¿¡ ´ëÇÑ ±âÈ£¸µÅ©¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "±âÈ£ ¸µÅ©¸¦ ÇÏµå ¸µÅ©·Î ÃßÃâÇÏ°í ÀÖ½À´Ï´Ù" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: `%s'¿¡ ¸µÅ©ÇÒ ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: ³ëµå¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: fifo¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: µð·ºÅ丮¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù" # #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "%s µð·ºÅ丮¿¡ ¾²±â¿Í ½ÇÇà ±ÇÇÑÀ» ºÎ°¡Çß½À´Ï´Ù" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "`%s'¸¦ ÃßÃâÇÒ ¼ö ¾ø½À´Ï´Ù -- ÀÌ ÆÄÀÏÀº ´Ù¸¥ º¼·ý¿¡ ¿¬¼ÓµÇ¾î ÀÖ½À´Ï´Ù" # #: src/extract.c:964 msgid "Visible long name error" msgstr "°¡½ÃÀûÀÎ ±ä À̸§ ¿À·ù" # #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "" # #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "%s¸¦ statÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "%s µð·ºÅ丮´Â À̸§ÀÌ ¹Ù²î¾ú½À´Ï´Ù" # #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "%s´Â »õ µð·ºÅ丮ÀÔ´Ï´Ù" # #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "ÇöÀç µð·ºÅ丮¸¦ ¾Ë ¼ö ¾ø½À´Ï´Ù" # #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "ÇöÀç µð·ºÅ丮¸¦ ¾Ë ¼ö ¾ø½À´Ï´Ù: %s" # #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "ÆÄÀÏ À̸§ %s/%s´Â ³Ê¹« ±é´Ï´Ù" # #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "ÀåÄ¡ ¹øÈ£°¡ ¹Ù²î¾úÀ½" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" # #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "%s·Î µð·ºÅ丮¸¦ ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" # #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "¾ÆÄ«À̺꿡 ¿¹±âÄ¡ ¾ÊÀº EOF" # #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: %s¸¦ Áö¿ò\n" # #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "%s¸¦ Áö¿ì´Â µ¿¾È ¿À·ù ¹ß»ý" # #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "%s¸¦ »ý·«" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "ºí·° %10ld: ** NUL·Î µÈ ºí·° **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "ºí·° %10ld: ** ÆÄÀÏÀÇ ³¡ **\n" # #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Èì, ÀÌ°ÍÀº tar ¾ÆÄ«À̺êó·³ º¸ÀÌÁö ¾Ê´Â±º¿ä" # #: src/list.c:158 msgid "Skipping to next file header" msgstr "´ÙÀ½ ÆÄÀÏ Çì´õ·Î °Ç³Ê ¶Ü" # #: src/list.c:213 msgid "EOF in archive file" msgstr "¾ÆÄ«À̺ê ÆÄÀÏ¿¡ EOF" # #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "%ld ¹ÙÀÌÆ®(%ld ¹ÙÀÌÆ® Áß)¸¸ ÆÄÀÏ %s¿¡ ½è½À´Ï´Ù" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "ºí·° %10ld: " # #: src/list.c:808 msgid "Visible longname error" msgstr "°¡½ÃÀûÀÎ ±äÀ̸§ ¿À·ù" # #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " %s·Î ¸µÅ©\n" # #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " ¾Ë ¼ö ¾ø´Â ÆÄÀÏ Å¸ÀÔ `%c'\n" # #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--º¼·ý Çì´õ--\n" # #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--%ld ¹ÙÀÌÆ® °¿¡ °è¼ÓµÊ--\n" # #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "" # #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "µð·ºÅ丮¸¦ ¸¸µå´Â Áß:" # #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "" # #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "%s¸¦ %s·Î À̸§À» ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" # #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "%s¸¦ %s·Î À̸§ ¹Ù²Þ" # #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "%s¸¦ %s·Î ±âÈ£¸µÅ©ÇÒ ¼ö ¾ø½À´Ï´Ù" # #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s¿¡¼­ %s·Î ±âÈ£¸µÅ©µÇ¾úÀ½" # #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "" # #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "%s¸¦ %s·Î À̸§ ¹Ù²Þ" # #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "%s¸¦ %s·Î À̸§À» ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" # #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "%s¸¦ %s·Î À̸§À» ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" # #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "%s¸¦ %s·Î À̸§ ¹Ù²Þ" # #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "%s·Î µð·ºÅ丮¸¦ ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù" # #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "-C µÚ¿¡ ÆÄÀÏ À̸§ÀÌ ºüÁ³À½" # #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: ¾ÆÄ«À̺꿡 ¾øÀ½" # #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: ¹öÆÛ °ø°£À» ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´Ù\n" # #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "¹öÆÛ °ø°£À» ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´Ù" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" # #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: À߸øµÈ eof\n" # #: src/rmt.c:339 msgid "Premature end of file" msgstr "À߸øµÈ ÆÄÀÏ ³¡" # #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: ¾µ¸ð¾ø´Â ¸í·É %c\n" # #: src/rmt.c:449 msgid "Garbage command" msgstr "¾µ¸ð¾ø´Â ¸í·É" # #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: ¾µ ¼ö ¾ø´Â ¼­ºñ½º" #: src/rtapelib.c:301 msgid "stdin" msgstr "Ç¥ÁØÀÔ·Â" #: src/rtapelib.c:304 msgid "stdout" msgstr "Ç¥ÁØÃâ·Â" # #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "¿ø°Ý ¼ÐÀ» ½ÇÇàÇÒ ¼ö ¾ø½À´Ï´Ù" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "`-%s'°ú `-%s' ¿É¼ÇÀº ¸ðµÎ Ç¥ÁØ ÀÔ·ÂÀÌ ÇÊ¿äÇÕ´Ï´Ù" # #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "»ç¿ëÀÚÀÇ È®ÀÎÀ» ÀÐÀ» ¼ö ¾ø½À´Ï´Ù" # #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "´õ ¸¹Àº Á¤º¸¸¦ º¸·Á¸é `%s --help' ÇϽʽÿÀ.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" # #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "»ç¿ë¹ý: %s [¿É¼Ç]... [ÆÄÀÏ]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "ÁÖ¿ä µ¿ÀÛ ¸ðµå:\n" " -t, --list ¾ÆÄ«À̺êÀÇ ³»¿ë¹°À» Ãâ·ÂÇÕ´Ï´Ù\n" " -x, --extract, --get ¾ÆÄ«À̺꿡¼­ ÆÄÀÏÀ» ÃßÃâÇÕ´Ï´Ù\n" " -c, --create »õ·Î¿î ¾ÆÄ«À̺긦 ¸¸µì´Ï´Ù\n" " -d, --diff, --compare ¾ÆÄ«À̺ê¿Í ÆÄÀÏ ½Ã½ºÅÛ°£ÀÇ Â÷ÀÌÁ¡À» ºñ±³ÇÕ´Ï´Ù\n" " -r, --append ¾ÆÄ«ÀÌºê ³¡¿¡ ÆÄÀÏÀ» Ãß°¡ÇÕ´Ï´Ù\n" " -u, --update ¾ÆÄ«ÀÌºê ¾ÈÀÇ °Íº¸´Ù »õ·Î¿î ÆÄÀϸ¸ Ãß°¡ÇÕ´Ï´Ù\n" " -A, --catenate ¾ÆÄ«À̺꿡 tar ÆÄÀÏÀ» Ãß°¡ÇÕ´Ï´Ù\n" " --concatenate -A¿Í °°À½\n" " --delete ¾ÆÄ«À̺ê·ÎºÎÅÍ Á¦°ÅÇÕ´Ï´Ù (ÀÚ±â Å×ÀÌÇÁ¿¡¼± ¾ÈµÊ!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "µ¿ÀÛ º¯°æÀÚ:\n" " -W, --verify ¾ÆÄ«À̺긦 ±â·ÏÇÑ ´ÙÀ½ °ËÁõÇϵµ·Ï ÇÕ´Ï´Ù\n" " --remove-files ¾ÆÄ«À̺꿡 ÆÄÀÏÀ» Ãß°¡ÇÑ ´ÙÀ½ Áö¿ó´Ï´Ù\n" " -k, --keep-old-files ÃßÃâÇÒ ¶§ ÀÌ¹Ì Á¸ÀçÇÏ´Â ÆÄÀÏÀ» µ¤¾î¾²Áö " "¾Ê½À´Ï´Ù\n" " -U, --unlink-first ÃßÃâÇϱ⿡ ¾Õ¼­ ´ë»ó ÆÄÀÏÀ» Áö¿ó´Ï´Ù\n" " --recursive-unlink µð·ºÅ丮¸¦ ÃßÃâÇϱ⿡ ¾Õ¼­ ±× ü°è¸¦ ºñ¿ó´Ï´Ù\n" " -S, --sparse ½ºÆĽº ÆÄÀÏÀ» È¿À²ÀûÀ¸·Î ó¸®ÇÕ´Ï´Ù\n" " -O, --to-stdout Ç¥ÁØ Ãâ·ÂÀ¸·Î ÆÄÀÏÀ» ÃßÃâÇÕ´Ï´Ù\n" " -G, --incremental ¿À·¡µÈ GNU Çü½ÄÀÇ Á¡ÁøÀû ¹é¾÷ ÆÄÀÏÀ» " "ó¸®ÇÕ´Ï´Ù\n" " -g, --listed-incremental »õ·Î¿î GNU Çü½ÄÀÇ Á¡ÁøÀû ¹é¾÷ ÆÄÀÏÀ» " "ó¸®ÇÕ´Ï´Ù\n" " --ignore-failed-read ÀÐÀ» ¼ö ¾ø´Â ÆÄÀÏ¿¡ ´ëÇØ ¿µ ¾Æ´Ñ °ªÀ¸·Î " "Á¾·áÇÏÁö\n" " ¾Ê½À´Ï´Ù\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "ÀåÄ¡ ¼±Åðú Àüȯ:\n" " -f, --file=ARCHIVE ¾ÆÄ«À̺ê ÆÄÀÏ ¶Ç´Â ARCHIVE ÀåÄ¡¸¦ " "»ç¿ëÇÕ´Ï´Ù\n" " --force-local À̸§¿¡ ÄÝ·ÐÀÌ ÀÖ´Â ¾ÆÄ«À̺ê ÆÄÀϵµ Áö¿ª " "ÆÄÀÏ·Î\n" " ÀνÄÇÕ´Ï´Ù\n" " --rsh-command=COMMAND rsh ´ë½Å ¿ø°Ý COMMAND¸¦ »ç¿ëÇÕ´Ï´Ù\n" " -[0-7][lmh] µå¶óÀ̺ê¿Í ±â·Ï ¹Ðµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù\n" " -M, --multi-volume ´ÙÁß º¼·ý ¾ÆÄ«À̺긦 »ý¼º/Ãâ·Â/ÃßÃâÇÕ´Ï´Ù\n" " -L, --tape-length=NUM NUM x 1024 ¹ÙÀÌÆ®¸¦ ¾´ µÚ¿¡ Å×ÀÌÇÁ¸¦ " "¹Ù²ß´Ï´Ù\n" " -F, --info-script=FILE °¢ Å×ÀÌÇÁÀÇ ³¡¿¡¼­ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÕ´Ï´Ù\n" " (-MÀ» Æ÷ÇÔÇÔ)\n" " --new-volume-script=FILE -F FILE°ú °°À½\n" " --volno-file=FILE FILE ¾È¿¡ ÀÖ´Â º¼·ý ¹øÈ£¸¦ »ç¿ë/°»½ÅÇÕ´Ï´Ù\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "ÀåÄ¡ ºí·° ¼³Á¤:\n" " -b, --blocking-factor=BLOCK ·¹ÄÚµå´ç BLOCK x 512 ¹ÙÀÌÆ®\n" " --record-size=SIZE ·¹ÄÚµå´ç SIZE ¹ÙÀÌÆ®, 512ÀÇ ¹è¼ö\n" " -i, --ignore-zeros ¾ÆÄ«À̺꿡¼­ ¿µÀ¸·Î µÈ ºí·°À» ¹«½ÃÇÕ´Ï´Ù\n" " (EOF¸¦ ÀǹÌÇÔ)\n" " -B, --read-full-records ÀÐÀº °ÍÀ» Àçºí·°È­ÇÕ´Ï´Ù (4.2BSD " "ÆÄÀÌÇÁ¿ëÀ¸·Î)\n" #: src/tar.c:336 #, fuzzy msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "¾ÆÄ«À̺ê Çü½Ä ¼±ÅÃ:\n" " -V, --label=NAME º¼·ý¸íÀÌ NAMEÀÎ ¾ÆÄ«À̺긦 ¸¸µì´Ï´Ù\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability V7 Çü½ÄÀÇ ¾ÆÄ«À̺긦 ¾¹´Ï´Ù\n" " --posix POSIX¸¦ µû¸£´Â ¾ÆÄ«À̺긦 ¾¹´Ï´Ù\n" " -z, --gzip, --ungzip ¾ÆÄ«À̺긦 gzip¿¡ ¿©°úÇÕ´Ï´Ù\n" " -Z, --compress, --uncompress ¾ÆÄ«À̺긦 compress¿¡ ¿©°úÇÕ´Ï´Ù\n" " --use-compress-program=PROG PROG(-d¸¦ ÀνÄÇØ¾ß ÇÔ)¿¡ ¿©°úÇÕ´Ï´Ù\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATE DATE ÀÌÈÄÀÇ ÆÄÀϵ鸸 ÀúÀåÇÕ´Ï´Ù\n" " --newer-mtime µ¥ÀÌÅÍ°¡ ¹Ù²î¾úÀ» ¶§¸¸ ³¯Â¥¿Í ½Ã°£À» " "ºñ±³ÇÕ´Ï´Ù\n" " --after-date=DATE -N°ú °°À½\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Á¤º¸ Ãâ·Â¿¡ °üÇÑ ¿É¼Ç:\n" " --help ÀÌ µµ¿ò¸»À» ÀμâÇÏ°í ³¡³À´Ï´Ù\n" " --version tar ÇÁ·Î±×·¥ÀÇ ¹öÀü ¹øÈ£¸¦ ÀμâÇÏ°í ³¡³À´Ï´Ù\n" " -v, --verbose 󸮵Ǵ ÆÄÀÏÀ» ¼ø¼­´ë·Î Ãâ·ÂÇÕ´Ï´Ù\n" " --checkpoint ¾ÆÄ«À̺긦 ÀÐÀ» µ¿¾È µð·ºÅ丮 À̸§À» ÀμâÇÕ´Ï´Ù\n" " --totals ¾ÆÄ«À̺긦 ¸¸µé µ¿¾È ¾²¿©Áø ÃÑ ¹ÙÀÌÆ® ¼ö¸¦ " "ÀμâÇÕ´Ï´Ù\n" " -R, --block-number °¢ ¸Þ½ÃÁö¸¶´Ù ¾ÆÄ«À̺곻ÀÇ ºí·° ¹øÈ£¸¦ Ç¥½ÃÇÕ´Ï´Ù\n" " -w, --interactive ¸ðµç Çൿ¿¡ ´ëÇØ È®ÀÎÀ» ¿ä±¸ÇÕ´Ï´Ù\n" " --confirmation -w¿Í °°À½\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar´Â `--posix' ¾ÆÄ«À̺긦 Àаųª ¸¸µé¾î ³¾ ¼ö ¾ø½À´Ï´Ù. ¸¸¾à\n" "POSIXLY_CORRECT°¡ ȯ°æ¿¡¼­ ¼³Á¤µÇ¾î ÀÖ´Ù¸é, GNU È®ÀåÀº `--posix'À» ÅëÇØ\n" "ºñÈ°¼ºÈ­µË´Ï´Ù. POSIX Áö¿øÀº °Ü¿ì ºÎºÐÀûÀ¸·Î¸¸ ±¸ÇöµÇ¾úÀ¸¹Ç·Î ¾ÆÁ÷ ½Å·Ú\n" "ÇÏÁö´Â ¸¶½Ê½Ã¿À. ARCHIVE´Â FILE, HOST:FILE, ¶Ç´Â USER@HOST:FILEÀÌ µÉ ¼ö\n" "ÀÖÀ¸¸ç, ¿©±â¼­ FILEÀº ÆÄÀÏÀ̳ª ÀåÄ¡°¡ µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌ `tar'ÀÇ\n" "³»Á¤°ªÀº `-f%s -b%d'ÀÔ´Ï´Ù.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "·Î ¹ö±×¸¦ º¸°íÇØ ÁֽʽÿÀ.\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "`-Acdtrux' ¿É¼Ç Áß Çϳª ÀÌ»óÀ» ÁöÁ¤ÇÏ¸é ¾È µË´Ï´Ù" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Çò°¥¸®´Â ¾ÐÃà ¿É¼Ç" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "--blocking-factor¿¡ Æ÷ÇÔµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "--block-factor·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "--read-full-records·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "--touch·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§" #: src/tar.c:687 msgid "More than one threshold date" msgstr "" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "ºÎÀûÀýÇÑ ³¯Â¥ Çü½Ä `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Çò°¥¸®´Â ¾ÆÄ«À̺ê Çü½Ä ¿É¼Ç" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "--absolute-names·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "--block-number·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "--backupÀ¸·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "¿É¼Ç¿¡ ºÎÀûÀýÇÑ ±×·ìÀÌ ÁÖ¾îÁü" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "¿É¼Ç¿¡ ºÎÀûÀýÇÑ ¸ðµå°¡ ÁÖ¾îÁü" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "¿É¼Ç¿¡ ºÎÀûÀýÇÑ ¼ÒÀ¯ÀÚ°¡ ÁÖ¾îÁü" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "record_size·Î ºÎÀûÀýÇÑ °ª" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "·¹ÄÚµå Å©±â´Â %dÀÇ ¹è¼ö°¡ µÇ¾î¾ß ÇÕ´Ï´Ù." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "`-[0-7][lmh]' ¿É¼ÇÀº ÀÌ tar¿¡¼± Áö¿øµÇÁö ¾Ê½À´Ï´Ù" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "ÀúÀÛ±Ç (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "John Gilmore¿Í Jay FenlasonÀÌ ¸¸µé¾ú½À´Ï´Ù.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "´ÙÁß ¾ÆÄ«À̺ê ÆÄÀÏÀº `-M' ¿É¼ÇÀÌ ÇÊ¿äÇÕ´Ï´Ù" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "`-Aru' ¿É¼ÇÀº `-f -'°ú µ¿½Ã¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "`-Acdtrux' ¿É¼Çµé Áß Çϳª¸¦ ÁöÁ¤ÇØ¾ß ÇÕ´Ï´Ù" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "" # #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "%ld ¹ÙÀÌƮ°¿¡¼­ Àб⠿À·ù, %d ¹ÙÀÌÆ® ÀÐÀ½, ÆÄÀÏ %s" # #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: ÆÄÀÏÀÌ %d ¹ÙÀÌÆ® ÁÙ¾îµë, (¿Í¿ì!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "GNU tar ½ÃÇè µµ±¸¿ë µ¥ÀÌÅÍ ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "»ç¿ë¹ý: %s [¿É¼Ç]...\n" "\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "±ä ¿É¼Ç¿¡ ºÎ°¡µÇ´Â Àμö°¡ ÀÖÀ» ¶§, ÀÌ´Â µ¿ÀÏÇÑ ÀǹÌÀÇ ÂªÀº ¿É¼Ç¿¡µµ\n" "Àû¿ëµË´Ï´Ù.\n" "\n" " -l, --file-length=±æÀÌ »ý¼ºµÇ´Â ÆÄÀÏÀÇ ±æÀÌ\n" " -p, --pattern=ÆÐÅÏ ÆÐÅÏÀº `default'³ª `zeros'ÀÔ´Ï´Ù\n" " --help ÀÌ µµ¿ò¸»À» º¸¿©ÁÖ°í ¸¶Ä¨´Ï´Ù\n" " --version ¹öÀü Á¤º¸¸¦ Ãâ·ÂÇÏ°í ¸¶Ä¨´Ï´Ù\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "¸ðÈ£ÇÑ ÆÐÅÏ `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "¾Ë ¼ö ¾ø´Â ÆÐÅÏ `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "ÀúÀÛ±Ç (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "François Pinard °¡ ¸¸µé¾ú½À´Ï´Ù.\n" # #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "½ÇÁ¦·Î ¾²¿©Áø ¾çÀº (¹Ù¶ó°Ç´ë) %dÀÔ´Ï´Ù.\n" tar-1.13/po/nl.po0000664000176300016070000013612206740055247007321 # Dutch messages for GNU tar. # Copyright (C) 1996 Free Software Foundation, Inc. # Erick Branderhorst , 1996. # André van Dijk , 1998. # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1998-12-12 15:23+0100\n" "Last-Translator: André van Dijk \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Ongeldig datum formaat \"%s\"" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Dubbelzinnig patroon `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Onbekende systeemfout" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Oude optie `%c' verwacht een argument." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Oude optie `%c' verwacht een argument." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Oude optie `%c' verwacht een argument." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Oude optie `%c' verwacht een argument." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Oude optie `%c' verwacht een argument." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Geheugen uitgeput" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Totaal aantal geschreven bytes: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Kan bestand #%d niet afsluiten" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Kan beschrijver %d niet afsluiten" # c-format #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Kan %s niet doorsturen" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Kan geen gebruik maken van gecomprimeerde of `op afstand' archieven" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Kan pijp niet openen" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Kan geen nieuw proces afsplitsen" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (kind)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(kind) Doorsturen naar standaardinvoer" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Kan archief %s niet openen" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archief naar standaarduitvoer" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Kan %s niet uitvoeren" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Kind kan geen nieuw proces afsplitsen" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((kind)) Doorsturen naar standaarduitvoer" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (kleinkind)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(kleinkind) Doorsturen naar standaardinvoer" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Kan niet lezen vanuit compressie programma" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(kind) Doorsturen naar standaarduitvoer" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archief naar standaardinvoer" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((kind)) Doorsturen naar standaardinvoer" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(kleinkind) Doorsturen naar standaarduitvoer" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Kan niet schrijven naar compressie programma" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Schrijf naar compressie programma `short' %d bytes" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Ongeldige waarde voor `record_size'" #: src/buffer.c:690 msgid "No archive name given" msgstr "Geen archief naam gegeven" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Kan geen geheugen vinden voor `blocking' faktor %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Kan meerdelige archieven niet verifiëren" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Kan meerdelige gecomprimeerde archieven niet gebruiken" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Kan gecomprimeerde archieven niet verifiëren" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Kan gecomprimeerde archieven niet bijwerken" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Kan standaard-invoer/uitvoer archief niet verifiëren" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Kan %s niet openen" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Archief niet aangemerkt om te corresponderen met `%s'" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Volume `%s' komt niet overeen met `%s'" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Schrijf controllepunt %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Kan niet schrijven naar %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Heb slechts %u van %u bytes geschreven naar %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Fout bij lezen van %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Begin van `tape', ik stop nu" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Te veel fouten, ik stop" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Lees controllepunt %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Lezen %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "LET OP: Geen deel-kopregels" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s gaat niet verder op dit deel" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s heeft de onjuiste grootte (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Dit deel is buiten het bereik" # c-format #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Recordgrootte = %d blokken" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "Archief %s bestandseinde niet op blokgrens" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Slechts %d bytes gelezen uit archief %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "LET OP: Kan %s niet afsluiten (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Kan niet terug in archief bestand; het kan onleesbaar zijn zonder -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "LET OP: Kan %s niet afsluiten (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Kind stierf met signaal %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (geheugen gedumpt)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Kind retourneerde status %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Maak deel #%d klaar voor %s en druk op enter: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "Bestandseinde waar gebruiksreactie werd verwacht" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "LET OP: Archief is onvolledig" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [name] Geef een nieuwe bestandsnaam voor de volgende (en " "daaropvolgende) delen\n" " q Breek tar af\n" " ! Splits een subshell af\n" " ? Toon deze lijst\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Geen nieuw deel; ik stop.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Kan geen nieuw proces afsplitsen!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Kan shell %s niet uitvoeren" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Kan geen geheugen vinden voor verschilbuffer van %d bytes" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Kan %s niet lezen" # c-format #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "%s: Kan slechts %d van %ld bytes lezen" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "%s: Data verschilt" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Onverwacht bestandseinde in archiefbestand" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Kan niet spoelen naar %ld in bestand %s" #: src/compare.c:422 msgid "File does not exist" msgstr "Bestand bestaat niet" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Kan status van bestand %s niet opvragen" #: src/compare.c:459 msgid "Verify " msgstr "Verifieer " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" "Onbekend bestandstype `%c' voor %s, `ge-diffed' als een normaal bestand" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Geen gewoon bestand" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Modus verschilt" #: src/compare.c:505 msgid "Uid differs" msgstr "Gebruikersnummer verschilt" #: src/compare.c:507 msgid "Gid differs" msgstr "Groepsnummer verschilt" #: src/compare.c:511 msgid "Mod time differs" msgstr "Aanpassingstijd verschilt" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Grootte verschilt" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Fout bij afsluiten %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Bestaat niet" # c-format #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Niet gekoppeld aan %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Onbekend bestand of map" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Kan koppeling %s niet lezen" #: src/compare.c:627 msgid "Symlink differs" msgstr "Symbolische koppeling verschilt" #: src/compare.c:666 msgid "Device numbers changed" msgstr "Apparaatnummers veranderd" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Modus van apparaattype verandered" #: src/compare.c:726 msgid "No longer a directory" msgstr "Niet langer een map" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Kan bestand %s niet openen" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Kan niet teruggaan in terugspoel archief om te verifiëren" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "VERIFICATIE FOUT: %d ongeldige kopregels gevonden" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Verwijder station specificatie uit naam in het archief" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Verwijder voorloop / van absolute bestandsnamen in het archief" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Schreef %ld van %ld bytes naar bestand %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Leesfout bij byte %ld lezende %d bytes in bestand %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Leesfout bij byte %ld, lezen %d bytes, in bestand %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Bestand %s is %d bytes gekrompen, opvullen met nullen" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Kan bestand %s niet toevoegen" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: onveranderd; niet gedumpt" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s is een archief; niet gedumpt" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Verwijderen voorloop / van absolute verwijzingen" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Kan %s niet verwijderen" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Bestand %s is %d bytes gekrompen, opvullen met nullen" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" # c-format #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Kan map %s niet openen" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: Op een ander bestandssysteem; niet gedumpt" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Kan map %s niet openen" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Bestandsnaam %s%s te lang" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Onbekend bestandstype; bestand genegeerd" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Kan archiefbestand niet herpositioneren" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Dit ziet er niet uit als een tar archief" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Overslaan tot volgende kopregel" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Verwijderen niet-kopregel uit archief" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Kan modus niet veranderen naar %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Kan toegangs- en aanpassingstijd niet veranderen" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Kan niet `lchown' naar `uid %d gid %d'" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Kan niet `chown' naar `uid %d gid %d'" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Kan eigenaar niet veranderen naar `uid %d, gid %d'" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Kan niet schrijven naar bestand" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Kan slechts %d van %d bytes schrijven" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Kon geen veiligheidskopie maken van dit bestand" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Extraheren aaneengesloten bestanden als gewone bestanden" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Kan bestand niet aanmaken" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Kan slechts %d van %d bytes schrijven" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Fout bij afsluiten" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Kan geen symbolische koppeling maken naar `%s'" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "" "Poging tot extractie van symbolische koppelingen als `harde' koppelingen" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Kan niet koppelen aan `%s'" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Kan knooppunt niet aanmaken" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Kan geen fifo (first in first out) aanmaken" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Kan geen map aanmaken" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Schrijf en uitvoer rechten toegevoegd aan map %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Kan `%s' niet extraheren -- bestand is vervolgd op een ander deel" #: src/extract.c:964 msgid "Visible long name error" msgstr "Zichtbare lange name fout" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Onbekend bestandstype `%c' voor %s, geëxtraheerd als gewoon bestand" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Kan status van bestand %s niet opvragen" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Map %s is hernoemd" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Map %s is nieuw" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Kan huidige map niet achterhalen" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Kan huidige map niet achterhalen: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Bestandsnaam %s/%s is te lang" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Apparaatnummers veranderd" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Kan map niet veranderen naar %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Onverwacht bestandseinde in archief" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Verwijderen %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Fout tijdens verwijderen %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Weglaten %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "blok %10ld: ** Blok van nullen **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "blok %10ld: ** Bestandseinde (EOF) **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Hmm, dit ziet er niet uit als een tar archief" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Overslaan tot volgende bestandskopregel" #: src/list.c:213 msgid "EOF in archive file" msgstr "Bestandseinde in archiefbestand" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Slechts %ld van %ld bytes geschreven naar bestand %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "blok %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Zichtbare lange naam fout" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " koppelen aan %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " onbekend bestandstype `%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Deelkopregels--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Vervolgd bij byte %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Verminkte bestandsnamen--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Aanmaken map:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Onverwacht bestandseinde in verminkte namen" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Kan %s niet hernoemen tot %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "%s hernoemd naar %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Kan geen symbolische koppeling aanmaken van %s naar %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "Symbolische koppeling aangemaakt van %s naar %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Onbekende verminkingsherstelopdracht %s" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "%s hernoemd naar %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Kan %s niet hernoemen tot %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Kan %s niet hernoemen tot %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "%s hernoemd naar %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Kan niet veranderen naar map %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Ontbrekende bestandsnaam na -C" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Niet gevonden in archief" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Kan bufferruimte niet alloceren\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Kan geen bufferruimte vrijmaken" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Prematuur einde van bestand\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Prematuur einde van bestand" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Rommel commando %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Rommel commando" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Dients niet beschikbaar" #: src/rtapelib.c:301 msgid "stdin" msgstr "standaardinvoer" #: src/rtapelib.c:304 msgid "stdout" msgstr "standaarduitvoer" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Kan `remote shell' niet uitvoeren" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Opties `-%s' en `-%s' willen beiden standaardinvoer" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Kan niet veranderen naar map %s" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "`%s --help' voor meer informatie.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU `tar' bewaart meerdere bestanden in een tape of disk archief en\n" "kan afzonderlijke bestanden terugzetten uit het archief.\n" # c-format #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Aanroep: %s [OPTIE]... [BESTAND]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Verplichte argumenten voor lange opties zijn ook verplicht bij korte " "opties.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Hoofdwerkingsmodus:\n" " -t, --list toon de inhoud van een archief\n" " -x, --extract, --get extraheer bestanden uit een archief\n" " -c, --create maak een nieuw archief aan\n" " -d, --diff, --compare zoek verschillen tussen archief en " "bestandssysteem\n" " -r, --append voeg bestanden toe aan het einde van een archief\n" " -u, --update voeg alleen nieuwere bestanden toe aan archief\n" " -A, --catenate voeg tar bestanden toe aan archief\n" " --concatenate zelfde als -A\n" " --delete verwijder uit het archief (niet op mag. tapes!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Werkingsaanpassers:\n" " -W, --verify probeer archief na schrijven te verifiëren\n" " --remove-files verwijder bestanden na toevoegen in het " "archief\n" " -k, --keep-old-files overschrijf bestanden niet tijdens extractie\n" " -U, --unlink-first verwijder elk bestand voordat een nieuwe er \n" " overheen geëxtraheerd wordt\n" " (twee maal gegeven, zelfs hele lege mappen\n" " --recursive-unlink maak hierarchiën leeg voor extractie\n" " -S, --sparse ga efficiënt om met `sparse' bestanden\n" " -O, --to-stdout extraheer bestanden naar standaarduitvoer\n" " -G, --incremental gebruik oud GNU-formaat incrementele backup\n" " -g, --listed-incremental gebruik nieuw GNU-formaat incrementele backup\n" " --ignore-failed-read beëinding niet met niet-nul bij onleesbare\n" " bestanden\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Wat te doen met bestandsattributen:\n" " --owner=NAAM NAAM wordt eigenaar toegevoegde bestanden\n" " --group=NAAM NAAM wordt groep toegevoegde bestanden\n" " --mode=OCTAAL OCTAAL wordt mode toegevoegde bestanden\n" " --atime-preserve verander de toegangstijd niet\n" " -m, --modification-time extraheer modificatie tijd niet\n" " --same-owner probeer te extraheren met zelfde eigenaar\n" " --numeric-owner gebruik nummers voor gebruikers- en " "groepsnamen\n" " -p, --same-permissions extraheer alle beveiligingsinformatie\n" " --preserve-permissions zelfde als -p\n" " -s, --same-order sorteer te extraheren namen om overeen te " "komen\n" " met archief\n" " --preserve-order zelfde als -s\n" " --preserve zelfde als -p en -s tegelijk\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Apparaat selectie en omschakeling:\n" " -f, --file=ARCHIEF gebruik archiefbestand of apparaat ARCHIEF\n" " --force-local archiefbestand is lokaal zelfs al heeft \n" " het een dubbele punt\n" " --rsh-command=COMMAND gebruik `remote' COMMAND in plaats van rsh\n" " -[0-7][lmh] specificeer station en dichtheid\n" " -M, --multi-volume maak/toon/extraheer meerdelige archieven\n" " -L, --tape-length=NUM verander tape na schrijven NUM x 1024 " "bytes\n" " -F, --info-script=BESTAND voer script uit aan einde van elke tape " "(-M)\n" " --new-volume-script=BESTAND zelfde als -F BESTAND\n" " --volno-file=BESTAND gebruik/actualiseer het deel nummer in " "BESTAND\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Apparaat blokken:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=GROOTTE GROOTTE bytes per record, veelvoud van 512\n" " -i, --ignore-zeros negeer genulde blokken (zelfde als EOF)\n" " -B, --read-full-records herblok tijdens lezen (voor 4.2BSD pijpen)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Archiefformaat selektie:\n" " -V, --label=NAAM maak een archief aan met deelnaam NAAM\n" " PATROON tijdens tonen/extractie, NAAM is\n" " bestandsselectiepatroon\n" " -o, --old-archive, --portability maak een V7 archief\n" " --posix maak een POSIX archief\n" " -z, --gzip, --ungzip filter het archief door gzip\n" " -Z, --compress, --uncompress filter het archief door compress\n" " --use-compress-program=PROG filter door PROG (moet -d accepteren)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Lokale bestandsselektie:\n" " -C, --directory DIR verander naar map DIR\n" " -T, --files-from=NAAM haal de te gebruiken bestandsnamen uit NAAM\n" " --null -T leest nul-getermineerde namen, disable -C\n" " --exclude=PATROON sluit bestanden uit, gegeven als `globbing' " "PATROON\n" " -X, --exclude-from=BESTAND sluit `globbing' patronen uit BESTAND uit\n" " -P, --absolute-names haal voorloop `/' niet weg bij bestandsnamen\n" " -h, --dereference dump bestanden verwezen door symlinks\n" " --no-recurse voorkom automatisch afdalen in mappen\n" " -l, --one-file-system blijf in lokale bestandssysteem bij maken\n" " archief\n" " -K, --starting-file=NAAM start met bestand NAAM in het archief\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATUM bewaar alleen bestanden nieuwer dan DATUM\n" " --newer-mtime vergelijk datum en tijd alleen bij gewijzigde " "data\n" " --after-date=DATUM zelfde als -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=CONTROL] backup voor verwijdering, kies versie beheer\n" " --suffix=SUFFIX backup voor verwijdering, overstem\n" " gebruikelijke achtervoegsel\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Informatieve uitvoer:\n" " --help toon hulp-tekst en beëindig programma\n" " --version toon versie-informatie en beëindig programma\n" " -v, --verbose toon verwerkte bestanden woordenrijk\n" " --checkpoint toon mapnaam tijdens lezen archief\n" " --totals toon aantal geschreven bytes tijdens aanmaken " "archief\n" " -R, --block-number toon bloknummer in archief bij elke melding\n" " -w, --interactive vraag om bevestiging bij elke aktie\n" " --confirmation zelfde als -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Het backup achtervoegsel is `~', tenzij ingesteld met --suffix of\n" "SIMPLE_BACKUP_SUFFIX.\n" "Het versie beheer kan worden ingesteld met --backup of VERSION_CONTROL,\n" "waarden zijn:\n" "\n" " t, numbered maak genummerde backups\n" " nil, existing genummerd als genummerde backups bestaat, anders simpel\n" " never, simple maak altijd simpele backups\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar kan geen `--posix' archieven lezen of maken. Als POSIXLY_CORRECT\n" "is gezet als omgevingsvariable zijn GNU uitbreidingen niet toegestaan met\n" "`--posix'. Ondersteuning voor POSIX is slechts gedeeltelijk " "geïmplementeerd,\n" "reken er nog\"\" niet op. ARCHIEF kan zijn BESTAND, HOST:BESTAND of\n" "GEBRUIKER@HOST:BESTAND; en BESTAND kan een bestand zijn of een apparaat.\n" "*Deze* `tar' gebruikt standaard `-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Meld fouten aan .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Niet meer specificeren dan één `-Acdtrux' optie" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Conflicterende compressie opties" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Oude optie `%c' verwacht een argument." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Overbodige optienaam vervangen door --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Overbodige optienaam vervangen door --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Overbodige optienaam vervangen door --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Overbodige optienaam vervangen door --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Meer dan een drempel datum" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Ongeldig datum formaat \"%s\"" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Conflicterende archiefformaat opties" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Overbodige optienaam vervangen door --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Overbodige optienaam vervangen door --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Overbodige optienaam vervangen door --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Ongeldige groep gegeven bij optie" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Ongeldige modus gegeven bij optie" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Ongeldige eigenaar gegeven bij optie" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Ongeldige waarde voor `record_size'" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Recordgrootte moet een veelvoud zijn van %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Opties `-[0-7][lmh]' worden niet ondersteund door *deze* tar" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Dit is vrije programmatuur; zie de broncode voor kopieervoorwaarden.\n" "Er is GEEN garantie; zelfs niet voor VERKOOPBAARHEID of GESCHIKTHEID\n" "VOOR EEN BEPAALD DOEL.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Geschreven door John Gilmore en Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "GNU extras gevraagd voor een niet compatibel archiefformaat" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Meerdere archiefbestanden verwacht de `-M' optie" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Angstvallige weigering een leeg archief aan te maken" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Opties `-Aru' zijn niet uitwisselbaar met `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Een van de `-Acdtrux' opties specificeren" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Fout afsluiting uitgesteld na eerdere fouten" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Leesfout bij byte %ld lezende %d bytes in bestand %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Bestand is %d bytes gekrompen, (jak!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Genereer data bestanden voor GNU tar test omgeving.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Aanroep: %s [OPTIE]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Verplichte argumenten voor lange opties zijn ook verplicht bij korte " "opties.\n" "\n" " -l, --file-length lengte van het gegenereerde bestand\n" " -p, --pattern=PATROON PATROON is `default' of `zeros'\n" " --help toon hulp-tekst en beëindig programma\n" " --version toon versie-informatie en beëindig programma\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Dubbelzinnig patroon `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Onbekend patroon `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Written by François Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Werkelijk geschreven hoeveelheid is %d (hoop ik).\n" #~ msgid "%d at %d\n" #~ msgstr "%d op %d\n" #~ msgid "Mode" #~ msgstr "Modus" #~ msgid "Uid" #~ msgstr "Gebruikersnummer" #~ msgid "Gid" #~ msgstr "Groepsnummer" #~ msgid "Size" #~ msgstr "Grootte" #~ msgid "Missing filename after -C" #~ msgstr "Ontbrekende bestandsnaam na -C" #~ msgid "EOF? What does that mean?" #~ msgstr "Bestandseinde? Wat betekent dat?" #~ msgid "" #~ "Mandatory or optional arguments to long options are mandatory or optional\n" #~ "for short options too.\n" #~ msgstr "" #~ "Verplichte opties voor lange opties zijn ook verplicht voor korte opties.\n" #~ msgid "File %s\n" #~ msgstr "Bestand %s\n" #~ msgid "Junk files\n" #~ msgstr "Bagger bestanden\n" #~ msgid "file %s\n" #~ msgstr "bestand %s\n" #~ msgid "Skip %ld\n" #~ msgstr "Sla over %ld\n" #~ msgid "Out of first loop\n" #~ msgstr "Buiten eerste loop\n" #~ msgid "Saved %d blocks, need %d more\n" #~ msgstr "%d blokken bewaard, nog %d nodig\n" #~ msgid "New record\n" #~ msgstr "Nieuw record\n" #~ msgid "Header type %d\n" #~ msgstr "Kopregeltype %d\n" #~ msgid "File %s " #~ msgstr "Bestand %s " #~ msgid "Flush it\n" #~ msgstr "Schrijf het\n" #~ msgid "Flushing %d blocks from %s\n" #~ msgstr "Schrijf %d blokken van %s\n" #~ msgid "Block: %d <= %d " #~ msgstr "Blok: %d <= %d " #~ msgid "Block %d left\n" #~ msgstr "Blok %d overgebleven\n" #~ msgid "Final %d\n" #~ msgstr "Uiteindelijk %d\n" #~ msgid "Need %d kept_in %d keep %d\n" #~ msgstr "Need %d kept_in %d keep %d\n" #~ msgid "Flush...\n" #~ msgstr "Schrijf...\n" #~ msgid "Copying %d\n" #~ msgstr "Kopiëren %d\n" #~ msgid "Now new %d need %d keep %d keep_in %d block %d/%d\n" #~ msgstr "Nu nieuw %d nodig %d houd %d houd_in %d blok %d/%d (??)\n" #~ msgid "Write record\n" #~ msgstr "Schrijf record\n" #~ msgid "Fore to %x\n" #~ msgstr "Verder naar %x\n" tar-1.13/po/no.po0000664000176300016070000013131706740055250007317 # Norwegian messages for GNU tar. (bokmål dialect) # Copyright (C) 1996 Free Software Foundation, Inc. # Karl Anders Øygard , 1996. # msgid "" msgstr "" "Project-Id-Version: GNU tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1997-06-05 19:39 MET DST\n" "Last-Translator: Espen Skjelnes Johnsen \n" "Language-Team: Norwegian-bokmål \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Ugyldig datoformat «%s»" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Tvetydig mønster «%s»" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Unkjent systemfeil" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Gammelt flagg «%c» behøver et argument." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Gammelt flagg «%c» behøver et argument." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Gammelt flagg «%c» behøver et argument." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Gammelt flagg «%c» behøver et argument." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Gammelt flagg «%c» behøver et argument." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Minne oppbrukt" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" # #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Totalt antall bytes skrevet: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Kan ikke lukke fil #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Kan ikke lukke fildeskriptor %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Kan ikke duplisere %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Kan ikke bruke komprimerte arkiver eller arkiver på en annen maskin" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Kan ikke lage en pipe" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Kan ikke lage ny prosess med «fork»" # #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (barn)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(barn) Pipe til stdin" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Kan ikke åpne arkivet %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Arkivér til stdout" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Kan ikke eksekvere %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Barnet kan ikke gjøre «fork»" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((barn)) Pipe til stdout" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (barnebarn)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(barnebarn) Pipe til stdin" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Kan ikke lese fra komprimeringsprogrammet" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(barn) Pipe til stdout" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Arkivér til stdin" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((barn)) Pipe til stdin" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(barnebarn) Pipe til stdout" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Kan ikke skrive til komprimeringsprogrammet" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Skrev %d bytes for lite til komprimeringsprogrammet" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Ugyldig verdi for record_size" # #: src/buffer.c:690 msgid "No archive name given" msgstr "Arkivnavn er ikke oppgitt" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Kunne ikke allokere minne for blokk-faktor %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Kan ikke verifisere arkiv som går over flere volum" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Kan ikke bruke komprimerte arkiv som går over flere volum" # #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Kan ikke verifisere komprimerte arkiver" # #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Kan ikke oppdatere komprimerte arkiver" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Kan ikke verifisere stdin/stdout-arkiv" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Kan ikke åpne %s" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Arkivet er ikke navngitt for å passe med «%s»" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Volumet «%s» stemmer ikke overens med «%s»" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Skriver kontrollpunkt %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Kan ikke skrive til %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Skrev bare %u av %u bytes til %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Lesefeil på %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "På begynnelsen av båndet, avslutter nå" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "For mange feil, avslutter" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Leser kontrollpunkt %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Leser %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "ADVARSEL: Manglende volumhode" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s fortsetter ikke i dette volumet" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s har feil størrelse (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Dette volumet kommer ute av rekkefølge" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Blokkstørrelse = %d enheter" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "Arkiv %s sluttet ikke ved en blokkgrense" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Leste bare %d bytes fra arkivet %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "ADVARSEL: Kan ikke lukke %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Kunne ikke gå tilbake i arkivfilen. Den kan være uleselig uten -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "ADVARSEL: Kan ikke lukke %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Barnet døde med signal %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (minnet lagret)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Barnet avsluttet med status %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Gjør klar volum nummer %d for %s og trykk return: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "EOF der svar fra bruker var forventet" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "ADVARSEL: Arkivet er ufullstendig" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [navn] Gi et filnavn for neste (og etterfølgende) volum(er)\n" " q Avbryt tar\n" " ! Start et shell\n" " ? Skriv denne listen\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Ikke nytt volum; avslutter.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Kan ikke lage ny prosess med «fork»!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Kan ikke eksekvere et shell %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Kunne ikke allokere minne for diff-buffer på %d bytes" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Kan ikke lese %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Kunne bare lese %d av %ld bytes" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Data er ulike" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Uventet filslutt i arkivfilen" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Kan ikke søke til posisjon %ld i filen %s" #: src/compare.c:422 msgid "File does not exist" msgstr "Filen eksisterer ikke" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Kan ikke gjøre «stat» på %s" #: src/compare.c:459 msgid "Verify " msgstr "Verifisering " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "Ukjent filtype «%c» for %s, diffet som en vanlig fil" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Ikke en vanlig fil" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Modus er ulik" #: src/compare.c:505 msgid "Uid differs" msgstr "Uid er ulik" #: src/compare.c:507 msgid "Gid differs" msgstr "Gid er ulik" #: src/compare.c:511 msgid "Mod time differs" msgstr "Modifiseringstid er ulik" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Størrelse er ulik" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Feil ved lukking av %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Eksisterer ikke" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Ikke linket til %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Fil eller filkatalog finnes ikke" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Kan ikke lese link %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "Symbolsk link er ulik" #: src/compare.c:666 msgid "Device numbers changed" msgstr "Enhetsnummer er endret" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Modus eller enhetstype er endret" #: src/compare.c:726 msgid "No longer a directory" msgstr "Ikke lenger en filkatalog" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Kan ikke åpne filen %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Kunne ikke gå til begynnelsen av arkivfilen for verifisering" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "VERIFIKASJONSFEIL: %d ukjente arkivhoder funnet" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Tar bort enhetsnavn fra navn i arkivet" # #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Tar bort ledende «/» fra absolutte filnavn i arkivet" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Skrev %ld av %ld bytes til fil %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Lesefeil ved byte %ld under lesing av %d bytes i fil %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Lesefeil ved byte %ld ved lesing av %d bytes fra fil %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Filen %s krympet med %d bytes, fyller ut med nuller" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Kan ikke legge til fil %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: er uendret; ikke lagret" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s er arkivet; ikke lagret" # #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Tar bort ledende «/» fra absolutte linker" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Kan ikke slette %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Filen %s krympet med %d bytes, fyller ut med nuller" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Kan ikke legge til filkatalogen %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: På et annet filesystem. Ikke lagret" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Kan ikke åpne filkatalogen %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Filnavnet %s%s er for langt" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Ukjent filtype; filen ble ignorert" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Kunne ikke endre posisjon i arkivfilen" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Dette ser ikke ut som et tar-arkiv" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Hopper til neste startseksjon" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Tar bort ikke-hodedata fra arkivet" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Kan ikke endre modus til %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Kunne ikke endre aksess- og modifiseringstider" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Kan ikke endre eier til uid %d gid %d med lchown()" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Kan ikke endre eier til uid %d gid %d med chown()" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Kan ikke endre eier til uid %d, gid %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Kunne ikke skrive til filen" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Kunne bare skrive %d av %d bytes'" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Kunne ikke lage sikkerhetskopi av denne filen" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Ekstraherer sammenhengende filer som vanlige filer" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Kunne ikke lage fil" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Kunne bare skrive %d av %d bytes'" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Feil under lukking" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Kunne ikke lage symbolisk link til «%s»" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Forsøker å ekstrahere symbolske linker som harde linker" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Kunne ikke lage link til «%s»" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Kunne ikke lage node" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Kunne ikke lage fifo" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Kunne ikke lage filkatalog" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Satte skrive- og eksekveringsrettigheter for filkatalog %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Kan ikke ekstrahere «%s» -- filen fortsetter fra et tidligere volum" #: src/extract.c:964 msgid "Visible long name error" msgstr "Feil på et langt navn" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Ukjent filtype «%c» for %s, ekstrahert som en vanlig fil" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Kan ikke utføre «stat» på filen %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Filkatalogen %s har endret navn" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Filkatalogen %s er ny" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Kunne ikke finne navnet på aktiv filkatalog" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Kunne ikke finne navnet på aktiv filkatalog: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Filnavnet %s/%s er for langt" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Enhetsnummer er endret" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Kan ikke gå til filkatalogen %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Uventet filslutt i arkivet" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Sletter %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Feil ved sletting av %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Utelater %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "blokk %10ld: ** Blokk med NUL-er **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "blokk %10ld: ** Slutt på fil **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Hmm, dette ser ikke ut som et tar-arkiv" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Hopper til neste filhode" #: src/list.c:213 msgid "EOF in archive file" msgstr "Filslutt i arkivfilen" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Skrev bare %ld av %ld bytes til filen %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "blokk %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Feil på et langt navn" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " link til %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " ukjent filtype «%c»\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Volumhode--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Fortsetter ved byte %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Ødelagte filnavn--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Lager filkatalog:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Uventet filslutt i ødelagte navn" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Kan ikke endre navn på %s til %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Endret navn på %s til %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Kan ikke lage en symbolisk link fra %s til %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s symbolsk linket til %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Ukjent kommando %s ved rekonstruering av navn" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Endret navn på %s til %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Kan ikke endre navn på %s til %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Kan ikke endre navn på %s til %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Endret navn på %s til %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Kan ikke gå til filkatalogen %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Mangler filnavn etter -C" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Finnes ikke i arkivet" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Kan ikke allokere buffer\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Kan ikke allokere plass til buffer" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: For tidlig filslutt\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "For tidlig filslutt" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Ugyldig kommando %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Ugyldig kommando" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Tjenesten er ikke tilgjengelig" #: src/rtapelib.c:301 msgid "stdin" msgstr "stdin" #: src/rtapelib.c:304 msgid "stdout" msgstr "stdout" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Kan ikke eksekvere \"remote shell\"" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Flaggene «-%s» and «-%s» vil begge ta standard inn" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Kan ikke lese bekreftelse fra brukeren" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Tast «%s --help» for mer informasjon.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU «tar» lagrer mange filer i ett arkiv, og kan hente ut enkeltstående\n" "filer fra arkivet.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Bruk: %s [FLAGG]... [FIL]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Dersom et langt flagg har et obligatorisk argument, er argumentet også\n" "obligatorisk for det korte flagget. Tilsvarende gjelder dersom argumentet\n" "kan sløyfes.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Hovedoperasjonsmodi:\n" " -t, --list list innholdet av arkivet\n" " -x, --extract, --get ekstrahér filer fra arkivet\n" " -c, --create lage et nytt arkiv\n" " -d, --diff, --compare vise forskjeller mellom arkivet og filsystemet\n" " -r, --append legg til filer på slutten av arkivet\n" " -u, --update legg til bare filer som er nyere enn de i arkivet\n" " -A, --catenate legg en arkivfil sammen med arkivet\n" " --concatenate samme som -A\n" " --delete slett fra arkivet (ikke for arkiv på bånd!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Flagg for operasjonsmodi:\n" " -W, --verify forsøk å verifisere arkivet etter å ha laget " "det\n" " --remove-files slett filer etter å ha lagt dem til arkivet\n" " -k, --keep-old-files ikke overskriv eksisterende filer\n" " -U, --unlink-first slett alle filer før ekstrahering til dem\n" " --recursive-unlink tøm filkataloger før ekstrahering\n" " -S, --sparse håndtér filer med hull mer effektivt\n" " -O, --to-stdout ekstrahér filer til stdout\n" " -G, --incremental bruk det gamle GNU formatet for inkrementell\n" " sikkerhetskopiering\n" " -g, --listed-incremental bruk det nye GNU-formatet for inkrementell\n" " sikkerhetskopiering\n" " --ignore-failed-read ignorér feil under lesing av filer\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Håndtering av filattributter:\n" " --owner=NAVN bruk NAVN som eier for nye filer\n" " --gruppe=NAVN bruk NAVN som gruppe for nye filer\n" " --mode=OKTAL bruk OKTAL som modus for nye filer\n" " --atime-preserve ikke endre aksesstider på lagrede filer\n" " -m, --modification-time ikke ekstrahér modifiseringstiden\n" " --same-owner forsøk å ekstrahere filer med samme eier\n" " --numeric-owner bruk nummer for bruker/gruppe-navn\n" " -p, --same-permissions forsøk å ekstrahere filer med samme\n" " filbeskyttelse\n" " --preserve-permissions samme som -p\n" " -s, --same-order sorter navn som skal ekstraheres slik at\n" " de passer med arkivet\n" " --preserve-order samme som -s\n" " --preserve samme som både -p og -s\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Enhetsvalg og enhetsskifte:\n" " -f, --file=ARKIV bruk arkivfil eller enhet ARKIV\n" " --force-local arkivfil er lokal selv om den har et kolon\n" " --rsh-command=KOMMANDO bruk KOMMANDO i stedet for rsh\n" " -[0-7][lmh] angi enhet og tetthet\n" " -M, --multi-volume behandle arkivet som et flervolumsarkiv\n" " -L, --tape-length=NUMMER bytt bånd etter at NUMMER x 1024 bytes er\n" " skrevet\n" " -F, --info-script=FIL kjør kommandofil FIL ved slutten av hvert\n" " bånd (setter -M automatisk)\n" " --new-volume-script=FIL samme som -F FIL\n" " --volno-file=FIL bruk/oppdater volumnummeret i FIL\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Blokkhåndtering:\n" " -b, --blocking-factor=ENHETER sett blokkstørrelse ENHETER x 512 bytes\n" " --record-size=STØRRELSE STØRRELSE bytes per enhet (delbart på 512)\n" " -i, --ignore-zeros ignorér blokker som inneholder nuller\n" " (betyr filslutt)\n" " -B, --read-full-records blokk om ved lesing (for 4.2BSD pipes)\n" # #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Valg av arkivformat:\n" " -V, --label=NAVN lag et arkiv med volumnavn NAVN\n" " MØNSTER filer som skal tas med ved listing " "eller\n" " ekstrahering (tillatt med jokertegn)\n" " -o, --old-archive, --portability lag et arkiv i V7 format\n" " --posix lag et POSIX-konformt arkiv\n" " -z, --gzip, --ungzip send arkivet gjennom gzip\n" " -Z, --compress, --uncompress send arkivet gjennom compress\n" " --use-compress-program=PROG send arkivet gjennom PROG (må forstå " "-d)\n" # #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Valg av lokale filer:\n" " -C, --directory=KATALOG endre filkatalog til KATALOG\n" " -T, --files-from=FIL hent navn for ekstrahering eller arkivering\n" "\t\t\t fra filen FIL\n" " --null -T leser null-terminerte navn, tillater ikke " "-C\n" " --exclude=MØNSTER ta ikke med filer (tillatt med jokertegn)\n" " -X, --exclude-from=FIL ta ikke med filer navngitte i filen FIL\n" " (tillatt med jokertegn)\n" " -P, --absolute-names ta ikke bort ledende «/» fra filnavn\n" " -h, --dereference arkivér det symboliske linker peker på\n" " --no-recurse ta ikke med filer i underkataloger\n" " -l, --one-file-system ta ikke med filer fra andre filsystemer\n" " -K, --starting-file=NAVN begynn med filen NAVN i arkivet\n" # #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATO arkivér bare filer som er nyere enn DATO\n" " --newer-mtime sammenlign tidsstempel bare når data er " "endret\n" " --after-date=DATO samme som -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=KONTROLL] lag sikkerhetskopi før sletting, med\n" " versjonskontroll\n" " --suffix=SUFFIKS lag sikkerhetskopi før sletting, med\n" " overstyring av det vanlige suffikset\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Utskrift av informasjon:\n" " --help vis denne hjelpeteksten og avslutt\n" " --version vis programversjon og avslutt\n" " -v, --verbose vis hver fil som behandles\n" " --checkpoint vis filkatalognavn når arkivet leses\n" " --totals vis totalt antall bytes skrevet\n" " -R, --block-number vis enhetsnummer i arkivet sammen med alle " "meldinger\n" " -w, --interactive spør etter bekreftelse for hver operasjon\n" " --confirmation samme som -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Suffikset for sikkerhetskopiering er «~», med mindre det er satt med " "--suffix\n" "eller SIMPLE_BACKUP_SUFFIX. Versjonskontroll kan settes med --backup eller\n" "VERSION_CONTROL. Gyldige verdier er:\n" "\n" " t, numbered lag nummererte sikkerhetskopier\n" " nil, existing nummererte, dersom nummererte sikkerhetskopier " "eksisterer,\n" " ellers enkle\n" " never, simple lag enkle sikkerhetskopier\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar kan hverken lese eller skrive «--posix»-arkiver. Dersom\n" "miljøvariabelen POSIXLY_CORRECT er satt, er GNU-funksjoner ikke tillatt\n" "sammen med «--posix». Støtte for POSIX er bare delvis implementert, så\n" "stol ikke på den ennå.\n" "ARKIV kan være FIL, MASKIN:FIL eller BRUKER@MASKIN:FIL; og FIL kan være en\n" "fil eller en enhet. *Denne* versjonen av tar har «-f%s -b%d» som forvalg.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Rapporter feil til .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Du kan ikke angi mer enn ett av «-Acdtrux»-flaggene" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Konflikt i kompresjonsflagg" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Gammelt flagg «%c» behøver et argument." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Utdatert flagg, nå implisert av --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Utdatert flagg skiftet ut med --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Utdatert flagg skiftet ut med --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Utdatert flagg skiftet ut med --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Mer enn én grense-dato" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Ugyldig datoformat «%s»" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Konflikt i flaggene for arkiv-format" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Utdatert flagg skiftet ut med --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Utdatert flagg skiftet ut med --block-number" # #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Utdatert flagg skiftet ut med --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Ugyldig gruppe gitt i flagg" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Ugyldig modus gitt i flagg" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Ugyldig eier gitt i flagg" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Ugyldig verdi for record_size" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Blokkstørrelse må være delbart på %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Flaggene «-[0-7][lmh]» støttes ikke av *denne* implementasjonen av tar" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Dette er fri programvare. Se kildekoden for kopieringsbetingelser.\n" "Programvaren har ingen garanti, ikke en gang for SALGBARHET eller EGNETHET\n" "TIL NOEN SPESIELL OPPGAVE.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Skrevet av John Gilmore and Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "GNU-funksjoner forsøkt på inkompatibelt arkiv-format" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Ved flere arkivfiler behøves «-M»-flagget" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "For feig til å lage et tomt arkiv" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Flaggene «-Aru» er inkompatible med «-f -»" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Du må angi ett av «-Acdtrux»-flaggene" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Utsatt feil-avslutning for tidligere feil" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Lesefeil ved byte %ld under lesing av %d bytes i fil %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Filen krympet med %d bytes, (øh!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Genrerer datafiler for GNU tar testpakke.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Bruk: %s [FLAGG]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Obligatoriske argumenter for lange flagg er obligatoriske også for korte " "flagg.\n" "\n" " -l, --file-length=LENGDE lengde av generert fil\n" " -p, --pattern=MØNSTER gyldige mønster er «default» eller «zeros»\n" " --help vis denne hjelpeteksten og avslutt\n" " --version vis programversjon og avslutt\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Tvetydig mønster «%s»" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Ukjent mønster «%s»" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Skrevet av François Pinard \n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Faktisk skrevet mengde er %d (håper jeg).\n" #~ msgid "%d at %d\n" #~ msgstr "%d ved %d\n" tar-1.13/po/pl.po0000664000176300016070000013252206740055250007315 # Polish translation of GNU tar # Copyright (C) 1996, 1997 Free Software Foundation, Inc. # Rafa³ Maszkowski , 1996-1997. # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1997-04-26 17:29+0200\n" "Last-Translator: Rafa³ Maszkowski \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "B³êdny format daty `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Niejednoznaczny wzór `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Nieznany b³±d systemu" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Stara opcja `%c' wymaga argumentu." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Stara opcja `%c' wymaga argumentu." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Stara opcja `%c' wymaga argumentu." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Stara opcja `%c' wymaga argumentu." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Stara opcja `%c' wymaga argumentu." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Brak pamiêci" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Ca³kowita zapisana ilo¶æ bajtów: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Nie mogê zamkn±æ pliku #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Nie mogê zamkn±æ deskryptora %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Nie mogê prawied³owo powieliæ %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Nie mogê u¿yæ archiwum skompresowanego lub zdalnego" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Nie mogê zamkn±æ potoku" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Nie mogê rozwidliæ procesu" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (potomny)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(proces potomny) potok do stdin" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Nie mogê otworzyæ archiwum %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Archiwizujê do stdout" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Nie mogê wykonaæ %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Proces potomny nie mo¿e rozwidliæ procesu" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((proces potomny)) potok do stdout" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (wnuczek)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(wnuczek) potok do stdin" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Nie mogê czytaæ z programu kompresuj±cego" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(proces potomny) potok do stdout" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Archiwizujê do stdin" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((proces potomny)) potok do stdin" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(wnuczek) potok do stdout" # nie jestem pewien, czy nie powinno byæ "komprymuj±cego" -pk #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Nie mogê pisaæ do programu kompresuj±cego" # here we should use different forms for different numbers of `bajtów' in Polish - rzm #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Zapis do programu kompresuj±cego skrócony o %d bajtów" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "B³êdna warto¶æ record_size" #: src/buffer.c:690 msgid "No archive name given" msgstr "Nie podana nazwa archiwum" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Nie mog³em przydzieliæ pamiêci dla bloków %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Nie mogê zweryfikowaæ archiwum wieloczê¶ciowego" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Nie mogê u¿ywaæ wielocze¶ciowego archiwum skompresowanego" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Nie mogê zweryfikowaæ archiwum skompresowanego" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Nie mogê uaktualniæ archiwum skompresowanego" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Nie mogê zweryfikowaæ archiwum z/do stdin/stdout" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Nie mogê otworzyæ %s" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Etykieta archiwum nie pasuje do `%s'" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Czê¶æ `%s' nie pasuje do `%s'" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Zapis punktu kontrolnego %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Nie mogê pisaæ do %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Zapisa³em tylko %u z %u bajtów do %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "B³±d czytania %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Na pocz±tku ta¶my, teraz koñczê" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Za du¿o b³êdów, koñczê" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Czytam punkt kontrolny %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Czytam %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "UWAGA: Brak etykiety czê¶ci" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s nie jest kontynuowany w tej czê¶ci" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s to z³y rozmiar (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Ta czê¶æ nie jest kolejn±" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Rozmiar rekordu = %d bloków" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "EOF archiwum %s nie jest na granicy bloku" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Przeczyta³em tylko %d bajtów z archiwum %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "UWAGA: Nie mogê zamkn±æ %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Nie mogê siê cofn±æ w pliku archiwum; mo¿e nie byæ czytelny bez -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "UWAGA: Nie mogê zamkn±æ %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Proces potomny zosta³ zabity sygna³em %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (zrzut pamiêci)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Proces potomny zwróci³ stan %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Przygotuj czê¶æ numer %d dla %s i naci¶nij return" #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "EOF kiedy by³a oczekiwana odpowied¼ u¿ytkownika" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "UWAGA: Archiwum jest niekompletne" # rare case when `for parts' translates into `czê¶ci' for both sing. and plural in Polish - rzm #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [nazwa] Podaj now± nazwê dla nastêpnej (i kolejnych) czê¶ci\n" " q Informacje o programie tar\n" " ! Uruchom shella\n" " ? Wypisz tê listê\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Brak nowej czê¶ci; koñczê.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Nie mogê rozwidliæ procesu!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Nie mogê uruchomiæ shella %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Nie mogê przydzieliæ pamiêci dla bufora diff o wielko¶ci %d bajtów" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Nie mogê czytaæ %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Mog³em przeczytaæ tylko %d z %ld bajtów" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Dane siê ró¿ni±" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Niespodziewany EOF w pliku archiwum" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Nie mogê ustawiæ pozycji %ld w pliku %s" #: src/compare.c:422 msgid "File does not exist" msgstr "Plik nie istnieje" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Nie mogê sprawdziæ stanu pliku %s" #: src/compare.c:459 msgid "Verify " msgstr "Sprawdzam " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "Nieznany typ liku %c' dla %s, zrobi³em diff jak dla zwyk³ego pliku" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Nie jest zwyk³ym plikiem" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Uprawnienia siê ró¿ni±" #: src/compare.c:505 msgid "Uid differs" msgstr "Uid siê ró¿ni" #: src/compare.c:507 msgid "Gid differs" msgstr "Gid siê ró¿ni" #: src/compare.c:511 msgid "Mod time differs" msgstr "Czas modyfikacji siê ró¿ni" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Rozmiar siê ró¿ni" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "B³±d w czasie zamykania %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Nie istnieje" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Nie do³±czony do %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Nie ma takiego pliku ani katalogu" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Nie mogê przeczytaæ ³±cza %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "£±cze symboliczne siê ró¿ni" #: src/compare.c:666 msgid "Device numbers changed" msgstr "Numery urz±dzeñ zmienione" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Zmieni³y siê uprawnienia albo typ urz±dzenia" #: src/compare.c:726 msgid "No longer a directory" msgstr "Nie jest ju¿ katalogiem" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Nie mogê otworzyæ pliku %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Nie mogê przewin±æ pliku archiwum dla weryfikacji" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "B£¡D WERYFIKACJI: wykryto %d b³êdnych nag³ówków" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Usuwam nazwe napêdu z nazw w archiwum" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Usuwam pocz±tkowy `/' ze ¶cie¿ek absolutnych w archiwum" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Zapisane %ld z %ld bajtów do pliku %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "B³±d czytania przy bajcie %ld po przeczytaniu %d bajtów pliku %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "B³±d czytania, bajt %ld po przeczytaniu %d bajtów z pliku %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Plik %s skurczy³ siê o %d bajtów, dope³niam zerami" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Nie mogê dodaæ pliku %s" # what's dump here? - rzm #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: jest niezmienione; nie zapisujê" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s jest tym archiwum; nie zapisujê" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Usuwam pocz±tkowy `/' ze ¶cie¿ek bezwzglêdnych" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Nie mogê usun±æ %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Plik %s skurczy³ siê o %d bajtów, dope³niam zerami" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Nie mogê dodaæ katalogu %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: W innym systemie plików; nie zapisujê" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Nie mogê otworzyæ katalogu %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Nazwa pliku %s%s jest za d³uga" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Nieznany typ pliku; plik zignorowany" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Nie mogê ponownie ustawiæ pozycji w pliku archiwum" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "To nie wygl±da jak archiwum tar" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Przeskakujê do nastêpnego nag³ówka" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Kasujê z archiwum nie-nag³ówek" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Nie mogê zmieniæ uprawnieñ na %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Nie mogê zmieniæ czasów dostêpu i modyfikacji" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Nie mogê lchown na uid %d gid %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Nie mogê chown na udi %d gid %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Nie mogê zmieniæ w³a¶ciciela na uid %d, gid %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Nie mogê pisaæ do pliku" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Mog³em zapisaæ tylko %d z %d bajtów" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Nie mog³em zrobiæ kopii zapasowej tego pliku" # ? - rzm # mo¿e chodzi o takie jak /dev/zero? -pk #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Odtwarzam pliki ci±g³e jako zwyk³e" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Nie mog³em utworzyæ pliku" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Mog³em zapisaæ tylko %d z %d bajtów" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: B³±d w czasie zamykania" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Nie mog³em utworzyæ ³±cza symbolicznego do %s'" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Próbujê odtworzyæ ³±cza symboliczne jako zwyk³e" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Nie mog³em do³±czyæ do %s'" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Nie mog³em utworzyæ pliku specjalnego" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Nie mog³em utworzyæ fifo" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Nie mog³em utworzyæ katalogu" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Dodane uprawnienia pisania i wykonywania do katalogu %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Nie mogê odtworzyæ %s' -- plik jest kontynuowany z innej czê¶ci" # ? - rzm #: src/extract.c:964 msgid "Visible long name error" msgstr "B³±d d³ugiej nazwy" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Nieznay typ pliku `%c' dla %s; odtworzony jako plik zwyk³y" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Nie mogê uzyskaæ informacji (stat) o %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Nazwa katalogu %s zosta³a zmieniona" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Katalog %s jest nowy" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Nie mog³em siê dostaæ do bie¿±cego katalogu" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Nie mog³em siê dostaæ do bie¿±cego katalogu: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Nazwa pliku %s/%s jest za d³uga" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Numery urz±dzeñ zmienione" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Nie mogê zmieniæ katalogu na %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Nieoczekiwany EOF w archiwum" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Usuwam %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "B³±d w czasie usuwania %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Pomijam %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "blok %10ld: ** Blok zer **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "blok: %10ld: ** Koniec pliku **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Hmm..., to nie wygl±da jak archiwum tar" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Przeskakujê do nastêpnego nag³ówka pliku" #: src/list.c:213 msgid "EOF in archive file" msgstr "EOF w pliku archiwum" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Zapisane tylko %ld z %ld bajtów do pliku %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "blok %10ld: " # ? - rzm #: src/list.c:808 msgid "Visible longname error" msgstr "B³±d d³ugiej nazwy" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " ³±cze do %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " nieznany typ pliku `%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Nag³ówek czê¶ci--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Kontynuacja od bajtu %ld--\n" # what is 'mangled'? - rzm # chyba raczej "pomieszane, poprzekrêcane" ? # w man, info i docach nie ma ani s³owa o tym - pk #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Zakodowane nazwy plików--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Tworzê katalog:" # ? - rzm # jw -pk #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Niespodziewany EOF w zakodowanych nazwach" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Nie mogê przemianowaæ %s na %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Przemianowa³em %s na %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Nie mogê utworzyæ ³±cza symbolicznego z %s do %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "Do³±czy³em symbolicznie %s do %s" # ? - rzm # tu by pasowa³o "porz±dkuj±ca" albo co¶ w tym stylu -pk #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Nieznana komenda odkodowuj±ca nazwy %s" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Przemianowa³em %s na %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Nie mogê przemianowaæ %s na %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Nie mogê przemianowaæ %s na %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Przemianowa³em %s na %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Nie mogê przej¶æ do katalogu %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Brakuj±ca nazwa pliku po -C" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Nie znalaz³em w archiwum" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Nie mogê przydzieliæ miejsca na bufor\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Nie mogê przydzieliæ miejsca na bufor" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Przedwczesny EOF\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Przedwczesny koniec pliku" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Bezsensowna komenda %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Bezsensowna komenda" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Us³uga niedostêpna" #: src/rtapelib.c:301 msgid "stdin" msgstr "stdin" #: src/rtapelib.c:304 msgid "stdout" msgstr "stdout" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Nie mogê wykonaæ zdalnego shella" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Opcje `-%s' i `-%s' obie chc± dostêpu do standardowego wej¶cia" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Nie mogê przeczytaæ potwiedzenia u¿ytkownika" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Spróbuj `%s --help' ¿eby otrzymaæ wiêcej informacji\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "`tar' GNU zapisuje wiele plików razem na na jednej ta¶mie lub archiwum\n" "dyskowym i mo¿e odzyskaæ poszczególne pliki z archiwum.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "U¿ycie: %s [OPCJA]... [PLIK]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Argumenty obowi±zkowe dla opcji d³ugich obowi±zuj± równie¿ dla krótkich.\n" "Podobnie je¿eli argument jest podany jako opcjonalny.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "G³ówny tryb dzi³ania:\n" " -t, --list wypisz zawarto¶æ archiwum\n" " -x, --extract, --get rozpakuj pliki z archiwum\n" " -c, --create utwórz nowe archiwum\n" " -d, --diff, --compare znajd¼ ró¿nice miêdzy archiwum i plikami na dysku\n" " -r, --append do³±cz pliki na koñcu archiwum\n" " -u, --update do³±cz tylko pliki nowsze ni¿ kopia w archiwum\n" " -A, --catenate do³±cz pliki tar do archiwum\n" " --concatenate to samo co -A\n" " --delete skasuj pliki z archiwum (nie na ta¶mie!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Modyfikatory dzia³ania:\n" " -W, --verify spróbuj zweryfikowaæ archiwum po zapisaniu\n" " --remove-files usuñ pliki po dodaniu do archiwum\n" " -k, --keep-old-files nie zamazuj istniej±cych plików rozpakowanymi\n" " -U, --unlink-first usuñ ka¿dy plik przed zamazaniem go " "rozpakowanym\n" " --recursive-unlink usuñ stary katalog przed rozpakowaniem nowego\n" " -S, --sparse dzia³aj efektywnie na plikach rzadkich\n" " -O, --to-stdout rozpakuj pliki na standardowe wyj¶cie\n" " -G, --incremental backup przyrostowy w starym formacie GNU\n" " -g, --listed-incremental backup przyrostowy w nowym formacie GNU\n" " --ignore-failed-read nie koñcz b³êdem je¿eli nieczytelne pliki\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Przetwarzanie atrybutów plików:\n" " --owner=NAZWA nadaj w³a¶ciciela NAZWA dodanym plikom\n" " --group=NAME nadaj grupê NAZWA dodanym plikom\n" " --mode=ÓSEMK nadaj uprawnienia ÓSEMK dodanym plikom\n" " --atime-preserve nie zmieniaj czasu dostêpu pakowanych plików\n" " -m, --modification-time nie zapisuj czasu modyf. rozpakowanego pliku\n" " --same-owner próbuj rozpakowaæ pliki z tym samym " "w³a¶cicielem\n" " --numeric-owner u¿ywaj numerów, nie nazw uzytkowników/grup\n" " -p, --same-permissions rozpakuj ca³± informacjê o uprawnieniach\n" " --preserve-permissions to samo co -p\n" " -s, --same-order posortuj rozpakowne nazwy dla porównania\n" " --preserve-order to samo co -s\n" " --preserve to samo co równocze¶nie -p i -s\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Wybór i prze³±czanie urz±dzeñ:\n" " -f, --file=ARCHIWUM u¿yj pliku lub urz±dzenia ARCHIWUM\n" " --force-local plik archiwum lokalny, nawet z dwukropkiem\n" " --rsh-command=KOMENDA u¿yj KOMENDY zamiast rsh\n" " -[0-7][lmh] podaj napêd i gêsto¶æ\n" " -M, --multi-volume twórz/wypisz/rozpakuj archiwum " "wieloczê¶ciowe\n" " -L, --tape-length=ILE zmieñ ta¶mê po zapisaniu ILE x 1024 bajtów\n" " -F, --info-script=PLIK uruchom skrypt na koñcu ta¶my (w³±cza -M)\n" " --new-volume-script=PLIK to samo co -F PLIK\n" " --volno-file=PLIK u¿yj/uaktualnij numer czê¶ci w PLIKu\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Parametry bloków:\n" " -b, --blocking-factor=BLOKI BLOKI x 512 bajtów na rekord\n" " --record-size=ROZMIAR ROZMIAR bajtów na rekord, wielokrotno¶æ " "512\n" " -i, --ignore-zeros ignoruj wyzerowane bloki (oznacza EOF)\n" " -B, --read-full-records podziel na bloki czytaj±c (dla pipe " "4.2BSD)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Wybór formatu archiwum:\n" " -V, --label=NAZWA utwórz archiwum z etykiet± NAZWA\n" " WZORZEC przy wypisywaniu/rozpakowaniu\n" " -o, --old-archive, --portability zapisz archiwum w formacie V7\n" " --posix zapisz archiwum zgodne z POSIX-em\n" " -z, --gzip, --ungzip filtruj archiwum przez gzip\n" " -Z, --compress, --uncompress filtruj archiwum przez compess\n" " --use-compress-program=PROG filtruj przez PROGram (musi akceptowac " "-d)\n" # !understand -h - rzm #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Wybór plików lokalnych:\n" " -C, --directory KATALOG przejd¼ do KATALOGu\n" " -T, --files-from=NAZWA nazwy plików do roz/zapakowania s± w pliku " "NAZWA\n" " --null -T czyta nazwy zakoñczone zerem, wy³±cz -C\n" " --exclude=WZORZEC wyklucz nazwy pasuj±ce do WZORCA\n" " -X, --exclude-from=PLIK wyklucz nazwy pasuj±ce do wzorców w PLIKu\n" " -P, --absolute-names nie usuwaj pocz±tkowego '/' z nazw plików\n" " -h, --dereference zamiast plików pakuj symlinki na nie " "wskazuj±ce\n" " --no-recurse nie wg³êbiaj siê automatycznie w katalogi\n" " -l, --one-file-system archiwizuj±c pozostañ w jednym systemi " "plików\n" " -K, --starting-file=NAZWA zacznij od pliku o tej NAZWie w archiwum\n" # !understand --never-mtime - rzm #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATA zapisuj tylko pliki nowsze ni¿ DATA\n" " --newer-mtime porównuj datê i czas tylko dla zmienionych " "danych\n" " --after-date=DATA to samo co -N\n" # `removel'! - rzm #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=TRYB] kopia zapasowa przed usuniêciem, wybierz " "tryb\n" " zarz±dzania wersjami\n" " --suffix=PRZYROSTEK kopia zapasowa przed usniêciem, zmieñ " "domy¶lny\n" " PRZYROSTEK\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Informacje:\n" " --help wy¶wietl ten opis i zakoñcz\n" " --version wy¶wietl informacjê o wersji tar-a i zakoñcz\n" " -v, --verbose wypisuj szczegó³y o przetwarzanych plikach\n" " --checkpoint wypisuj nazwy katalogów podczas czytania archiwum\n" " --totals wypisz ca³kowit± ilo¶c bajtów zapisanych do " "archiwum\n" " -R, --block-number przy ka¿dej informacji podaj numer bloku w archiwum\n" " -w, --interactive pytaj o potwierdzenie ka¿dej akcji\n" " --confirmation to samo co -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Przyrostek kopii zapasowej to `~', je¿eli nie zosta³ zmieniony przez " "--suffix\n" "lub SIMPLE_BACKUP_SUFFIX. Sposób zarz±dzania wersjami mo¿e byæ zmieniony " "przez\n" "--backup lub VERSION_CONTROL, mo¿liwe warto¶ci:\n" "\n" " t, numbered zrób numerowane kopie zapasowe\n" " nil, existing numerowane je¿eli takie ju¿ s±, w przeciwnym wypadku " "proste\n" " never, simple proste kopie zapasowe\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar mo¿e czytaæ ani zapisywaæ archiwów `--posix'. Je¿eli w ¶rodowisku\n" "jest ustawiona zmienna POSSIXLY_CORRECT rozszerzenia GNU s± wy³±czone przy\n" "u¿ywaniu `--posix'. Format posixowy jest zaimplementowany tylko czê¶ciowo,\n" "na razie nie licz na niego. ARCHIWUM mo¿e byæ PLIKiem, KOMPUTER:PLIK lub\n" "U¯YTKOWNIK@KOMPUTER:PLIK, PLIK mo¿e byæ plikiem lub urz±dzeniem. Opcje\n" "domy¶lne *tego* tara to `-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Raporty o b³êdach wysy³aj do .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Nie mo¿esz podaæ wiêcej ni¿ jednej opcji `-Acdtrux'" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Niezgodne opcje kompresji" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Stara opcja `%c' wymaga argumentu." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Przestarza³a opcja, teraz w³±cza j± --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Przestarza³a opcja, wymieniona na --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Przestarzala nazwa opcji zmieniona na --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Przestarza³a nazwa opcja zamieniona na --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Wiêcej ni¿ jedna data graniczna" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "B³êdny format daty `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Niezgodne opcje formatu archiwum" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Przestarza³a nazwa opcji zamieniona na --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Przestarza³a nazwa opcji zamieniona na --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Przestarza³a nazwa opcji, zamieniona na --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "B³êdna grupa podana w opcji" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "B³êdne uprawnienia podane w opcji" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "B³êdny w³a¶ciciel podany w opcji" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "B³êdna warto¶æ record_size" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Rozmiar rekordu musi byæ wielokrotno¶ci± %d" #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Opcje `-[0-7][lmh]' nie s± u¿ywane w *tym* tarze" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" # transl. copied from make 3.74 by PK - rzm #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Ten program jest darmowy; warunki kopiowania s± opisane w ¼ród³ach.\n" "Autorzy nie daj± ¯ADNYCH gwarancji, w tym równie¿ gwarancji PRZYDATNO¦CI\n" "DO SPRZEDA¯Y LUB DO KONKRETNYCH CELÓW.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Napisany przez Johna Gilmore'a i Jay'a Fenlasona.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "Próba u¿ycia rozszerzeñ GNU z niekompatybilnym formatem archiwum" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Wiele plików archiwum wymaga opcji `-M'" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Tchórzliwie odmawiam utworzenia pustego archiwum" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Opce `-Aru s± niekompatybilne z `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Musisz podaæ jedn± z opcji `-Acdtrux'" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Zakoñczenie z b³êdem z powodu uprzednich b³êdów" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "B³±d czytania przy bajcie %ld po przeczytaniu %d bajtów pliku %s" # what's `yark'? - rzm #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Plik skurczy³ sie o %d bajtów (bum!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Utwórz pliki danych do zestawu testów tara GNU.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "U¿ycie: %s [OPCJA]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Argumenty obowi±zkowe dla opcji d³ugich obowiazuj± równie¿ dla odpowiednich\n" "krótkich.\n" "\n" " -l, --file-length=D£UGO¦Æ D£UGO¦Æ utworzonego pliku\n" " -p, --pattern=WZÓR WZÓR: `default' (domy¶lny) albo `zeros' (zera)\n" " --help wy¶wietl ten opis i zakoñcz\n" " --version wy¶wietl informacjê o wersji i zakoñcz\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Niejednoznaczny wzór `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Nieznany wzór `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Napisany przez Françoisa Pinarda .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Ilo¶æ (mam nadziejê) ostatecznie zapisana: %d.\n" #~ msgid "%d at %d\n" #~ msgstr "%d przy %d\n" tar-1.13/po/pt.po0000664000176300016070000014642406740055250007333 # Portuguese translation of the "tar" messages # Copyright (1995) Free Software Foundation, Inc. # António José Coutinho # msgid "" msgstr "" "Project-Id-Version: tar 1.11.9\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1996-04-20 21:50\n" "Last-Translator: António José Coutinho \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Formato de data inválido \"%s\"" #: lib/argmatch.c:168 #, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Erro desconhecido, do sistema" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "A antiga opção `%c' exige um argumento." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "A antiga opção `%c' exige um argumento." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "A antiga opção `%c' exige um argumento." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "A antiga opção `%c' exige um argumento." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "A antiga opção `%c' exige um argumento." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 #, fuzzy msgid "Total bytes written: " msgstr "Número total de de \"bytes\" escritos: %d\n" #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Não se consegue fechar o ficheiro #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Não se consegue fechar o ficheiro de descritor %d" #: src/buffer.c:271 #, fuzzy, c-format msgid "Cannot properly duplicate %s" msgstr "Não se consegue redireccionar %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Não se pode usar arquivos comprimidos ou remotos" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Não se consegue abrir \"pipe\"" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Não se consegue criar processo ( \"fork\" )" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (filho)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(filho) \"pipe\" para \"stdin\"" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Não se consegue abrir o arquivo %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Arquivo para stdout" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Não se consegue executar %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Processo filho não consegue executar \"fork\"" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((filho)) \"pipe\" para \"stdout\"" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (neto)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(neto) \"Pipe\" para \"stdout\"" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Não se consegue ler do programa de compressão" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(filho) \"pipe\" para \"stdout\"" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Arquivo para stdin" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((filho)) \"pipe\" para \"stdin\"" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(neto) \"Pipe\" para \"stdout\"" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Não se consegue escrever para o programa de compressão" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Faltam %d bytes no que se escreveu para o programa de compressão" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Valor inválido para tamanho de registo (record_size)" #: src/buffer.c:690 #, fuzzy msgid "No archive name given" msgstr "Não deram nome de arquivo, que fazer?" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Não se conseguiu reservar memória para um factor de bloco %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Não se pode verificar arquivos multi-volume" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Não se pode de usar arquivos multi-volume comprimidos" #: src/buffer.c:733 #, fuzzy msgid "Cannot verify compressed archives" msgstr "Não se pode actualizar o verificar um arquivo comprimido" #: src/buffer.c:746 #, fuzzy msgid "Cannot update compressed archives" msgstr "Não se pode actualizar o verificar um arquivo comprimido" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Não se pode de verificar arquivos stdin ou stdout" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Não se consegue abrir %s" #: src/buffer.c:856 #, fuzzy, c-format msgid "Archive not labelled to match `%s'" msgstr "O arquivo não tem etiqueta e não condiz com %s" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Escreve-se o ponto de verificação %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Não se consegue escrever em %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Só se escreveram %u \"bytes\" de um total de %u em %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Erro de leitura sobre %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "No princípio da fita, pára-se imediatamente" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Erros de mais: termina-se" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Leu-se o ponto de verificação %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Leitura de %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "ATENÇÃO: Não há cabeçalho de volume" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s não tem continuidade neste volume" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s não é a dimensão correcta (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Este volume está fora da sequência" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Tamanho de bloco (blocksize) = blocos de %d" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "" "O fim-de-ficheiro do arquivo %s não se encontra na fronteira de um bloco" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Só se leram %d \"bytes\" do arquivo %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "ATENÇÃO: Não se consegue fechar %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Não se conseguiu recuar o arquivo; pode ser ilegível sem -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "ATENÇÃO: Não se consegue fechar %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Processo filho morreu com o sinal %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (imagem da memória despejada \"core dumped\")" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Processo filho terminou com estado %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Preparar o volume no. %d para %s e premir \"Return\": " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "ATENÇÃO: O arquivo está incompleto" #: src/buffer.c:1598 #, fuzzy msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [nome] Dar um novo nome para o próximo (e seguintes) volume(s)\n" " q Cancelar o tar\n" " ! Criar uma \"sub-shell\" (interpretador de comandos)\n" " ? Escrever esta lista\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Não há novo volume; termina-se. \n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Não se consegue criar processo! ( \"fork\" )" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Não se consegue executar uma \"shell\" %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "" "Não se conseguiu reservar memória para um \"buffer\" de comparação, de %d " "\"bytes\"" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Não se consegue ler %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "%s: Só se pôde ler %d de um total de %ld \"bytes\"\n" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 #, fuzzy msgid "Data differs" msgstr "%s: Os dados são diferentes\n" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Fim de ficheiro inesperado no ficheiro de arquivo" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Não se consegue mudar (\"seek\") para a posição %ld do ficheiro %s" #: src/compare.c:422 #, fuzzy msgid "File does not exist" msgstr "%s: Não existe\n" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Não se consegue executar \"stat\" para o ficheiro %s" #: src/compare.c:459 msgid "Verify " msgstr "Verificação" #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "" "Tipo de ficheiro \"%c\" desconhecido para %s; comparado como um ficheiro " "normal" #: src/compare.c:491 src/compare.c:750 #, fuzzy msgid "Not a regular file" msgstr "%s: Não é um ficheiro normal\n" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "" #: src/compare.c:505 #, fuzzy msgid "Uid differs" msgstr "%s: %s diferente\n" #: src/compare.c:507 #, fuzzy msgid "Gid differs" msgstr "%s: %s diferente\n" #: src/compare.c:511 #, fuzzy msgid "Mod time differs" msgstr "Tempo de modificação" #: src/compare.c:515 src/compare.c:759 #, fuzzy msgid "Size differs" msgstr "%s: Ligação (\"link\") simbólica é diferente\n" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Erro durante o fecho de %s" #: src/compare.c:582 #, fuzzy msgid "Does not exist" msgstr "%s: Não existe\n" #: src/compare.c:596 #, fuzzy, c-format msgid "Not linked to %s" msgstr "%s: Não está ligado a %s\n" #: src/compare.c:616 #, fuzzy msgid "No such file or directory" msgstr "%s: Ficheiro, ou directoria, não existe\n" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Não se consegue ler a ligação (\"link\") %s" #: src/compare.c:627 #, fuzzy msgid "Symlink differs" msgstr "%s: Ligação (\"link\") simbólica é diferente\n" #: src/compare.c:666 #, fuzzy msgid "Device numbers changed" msgstr "%s: Os números do periférico mudaram\n" #: src/compare.c:680 #, fuzzy msgid "Mode or device-type changed" msgstr "%s: O modo ou o tipo de periférico mudou\n" #: src/compare.c:726 #, fuzzy msgid "No longer a directory" msgstr "%s: Já não é uma directoria\n" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Não se consegue abrir o ficheiro %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Não se conseguiu rebobinar o arquivo para verificação" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "ERRO DE VERIFICAÇÃO: Encontraram-se %d cabeçalhos inválidos" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Retira-se a especificação do \"drive\" aos nomes no arquivo" #: src/create.c:305 src/extract.c:434 #, fuzzy msgid "Removing leading `/' from absolute path names in the archive" msgstr "Retira-se / dos caminhos dos ficheiros (path names), no arquivo" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Escreveram-se %ld \"bytes\" de um total de %ld, no ficheiro %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "" "Erro de leitura no \"byte\" %ld, durante a leitura de %d \"bytes\" do " "ficheiro %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "" "Erro de leitura no \"byte\" %ld, durante a leitura de %d \"bytes\" do " "ficheiro %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "O ficheiro %s diminuiu em %d \"bytes\", será completado com zeros" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Não é possível acrescentar o ficheiro %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: não foi modificado; não será arquivado" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s é o arquivo; não será arquivado" #: src/create.c:918 #, fuzzy msgid "Removing leading `/' from absolute links" msgstr "Retira-se \"/\" das ligações (\"links\") absolutas " #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Não se consegue apagar %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "O ficheiro %s diminuiu em %d \"bytes\", será completado com zeros" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, fuzzy, c-format msgid "Cannot add directory %s" msgstr "Não se consegue abrir a directoria %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: Está num outro sistema de ficheiros; não será arquivado" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Não se consegue abrir a directoria %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Nome de ficheiro %s%s longo demais" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Tipo de ficheiro desconhecido; ficheiro ignorado" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Não se conseguiu reposicionar o ficheiro arquivo" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Isto não se parece a um arquivo \"tar\"" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Salta para próximo cabeçalho" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Apaga-se do arquivo um não-cabeçalho" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Não se pode mudar para o modo para %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Não se conseguiu mudar os tempos de acesso e modificação" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Não se pode fazer \"chown\" para \"uid\" %d \"gid\" %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Não se pode fazer \"chown\" para \"uid\" %d \"gid\" %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Não se pode mudar o dono (owner) para \"uid\" %d, \"gid\" %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Não se conseguiu escrever para o ficheiro" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Apenas se conseguiu escrever %d de um total de %d bytes" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Estão-se a extrair ficheiros contíguos como sendo ficheiros normais" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Não foi possível criar o ficheiro" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Apenas se conseguiu escrever %d de um total de %d bytes" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Erro ao fechar" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Não se conseguiu criar uma ligação simbólica (link) para `%s'" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "" "Está-se a tentar extrair ligações simbólicas (sym. links) como ligações " "físicas (hard links)" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Não se pôde fazer ligação (link) para `%s'" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Não se pôde criar um nodo" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Não se pôde criar um \"fifo\"" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Não se pôde criar uma directoria" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Acrescentaram-se permissões de escrita e de leitura à directoria %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "" "Não se pode extraír `%s' -- é a continuação de um ficheiro de outro volume" #: src/extract.c:964 msgid "Visible long name error" msgstr "Erro evidente num nome longo" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "" "Tipo \"%c\" do ficheiro \"%s\" desconhecido; extrai-se como um ficheiro " "normal" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Não se consegue executar \"stat\" para %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Mudou-se o nome do directoria %s" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "O directoria %s é novo" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Não se conseguiu determinar a directoria corrente" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Não se conseguiu determinar a directoria corrente: %s" #: src/incremen.c:446 #, fuzzy, c-format msgid "File name %s/%s too long" msgstr "Nome de ficheiro %s%s longo demais" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "%s: Os números do periférico mudaram\n" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Não se pode mudar para a directoria %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Fim de ficheiro inesperado no arquivo" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Apaga-se %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Erro quando se apagava %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Omite-se %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "bloco %10ld: ** Bloco de NULs **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "bloco %10ld: ** Fim-de-ficheiro **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Pois é..., isto não parece ser um arquivo \"tar\"" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Salta para o próximo cabeçalho de ficheiro" #: src/list.c:213 msgid "EOF in archive file" msgstr "Fim-de-ficheiro no arquivo" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Só se escreveram %ld \"bytes\" de um total de %ld no ficheiro %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "bloco %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Erro evidente num nome longo" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " ligação para %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " tipo de ficheiro desconhecido \"%c\"\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Cabeçalho de volume--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Continua no \"byte\" %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Nomes de ficheiros truncados--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Criação de directoria::" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Fim de ficheiro inesperado nos nomes truncados" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Não se consegue mudar o nome de %s para %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Mudou-se o nome %s para %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Não se pode criar uma ligação (\"link\") simbólica de %s para %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s ligado simbolicamente a %s (\"link\")" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Comando desconhecido \"%s\" para decifrar os nomes truncados" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Mudou-se o nome %s para %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Não se consegue mudar o nome de %s para %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Não se consegue mudar o nome de %s para %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Mudou-se o nome %s para %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Não se pode mudar para a directoria %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Falta um nome de ficheiro após \"-C\"" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Não foi encontrado no arquivo" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Não se consegue reservar espaço temporário (\"buffers\")\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Não se consegue reservar espaço temporário (\"buffer\")" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Fim de ficheiro prematuro\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Fim-de-ficheiro prematuro" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Comando \"%c\" não faz sentido\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Comando desconhecido" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Serviço indisponível" #: src/rtapelib.c:301 msgid "stdin" msgstr "" #: src/rtapelib.c:304 msgid "stdout" msgstr "" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Não se consegue executar uma \"shell\" remota" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Ambas as opções `-%s' e `-%s' precisam do \"standard input\"" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Não se consegue obter confirmação, do utilizador" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Para mais informação, tente \"%s --help\".\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" #: src/tar.c:266 #, fuzzy, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "Utilização: %s [OPÇÃO]... [FICHEIRO]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Principal modo de funcionamento:\n" " -t, --list inventário do arquivo\n" " -x, --extract, --get extrair ficheiros do arquivo\n" " -c, --create criar um novo arquivo\n" " -d, --diff, --compare comparar o arquivo com os actuais ficheiros \n" " -r, --append acrescentar os ficheiros no fim do arquivo\n" " -u, --update só acrescentar os ficheiros mais novos do que as " "versões presentes no arquivo\n" " -A, --catenate juntar outros arquivos \"tar\" ao arquivo\n" " --concatenate o mesmo que \"-A\"\n" " --delete apagar no arquivo (excepto para fitas " "magnéticas!)\n" #: src/tar.c:285 #, fuzzy msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Modificadores do modo de funcionamento:\n" " -W, --verify tentar verificar o arquivo depois de o " "escrever\n" " --remove-files apagar os ficheiros depois de serem guardados " "no arquivo\n" " -k, --keep-old-files na extracção, não destruir nenhum ficheiro\n" " -U, --unlink-first remove cada ficheiro antes de extrair para cima " "dele\n" "\t\t\t (aparecendo duas vezes, até apaga directorias completas\n" " -S, --sparse tratar eficientemente ficheiros dispersos \n" " (os que têm buracos) \n" " -O, --to-stdout extrair os ficheiros para o \"stdout\" \n" " -G, --incremental tratar um arquivo no velho formato incremental " "GNU\n" " -g, --listed-incremental tratar arquivo no novo formato incremental GNU\n" " --ignore-failed-read ignorar os ficheiros que não se consegue ler.\n" "\n" #: src/tar.c:299 #, fuzzy msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Tratamento dos atributos dos ficheiros:\n" " --atime-preserve não alterar as datas de acesso dos ficheiros\n" " -m, --modification-time não extrair a data de modificação dos " "ficheiros\n" " --same-owner extrair os ficheiros tentando manter o mesmo " "\n" " dono (owner)\n" " --numeric-owner usar sempre números para os nomes de \n" " utilizador/grupo \n" " -p, --same-permissions na extracção, manter as protecções do " "ficheiros\n" " --preserve-permissions o mesmo que -p\n" " -s, --same-order ordernar os nomes a extrair segundo a sua " "ordem\n" " no arquivo\n" " --preserve-order o mesmo que -s\n" " --preserve o mesmo que -p conjugado com -s\n" #: src/tar.c:315 #, fuzzy msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Escolha do periférico e mudanças de fita magnética:\n" " -f, --file=ARQ tratar o arquivo, ou periférico ARQ\n" " --force-local o arquivo é local, mesmo que tenha \":\"\n" " --rsh-command=COM usar o comando remoto COM, em vez de " "\"rsh\"\n" " -[0-7][lmh] escolher o periférico e a densidade\n" " -M, --multi-volume tratar arquivos multi-volume\n" " -L, --tape-length=NUM tratar NUM x 1024 \"bytes\" por fita " "magnética\n" " -F, --info-script=FICH executar FICH nas mudanças de fita " "magnética\n" " (força a escolha de \"-M\")\n" " --new-volume-script=FICH o mesmo que \"-F FICH\"\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Características dos blocos no periférico (device):\n" " -b, --blocking-factor=BLOCOS BLOCOS x 512 \"bytes\" por registo\n" " --record-size=DIM DIM bytes por registo, múltiplo de 512\n" " -i, --ignore-zeros ignorar os blocos constituídos por zeros\n" " (implicam fim-de-ficheiro)\n" " -B, --read-full-records dividir a leitura em blocos \n" " (para os \"pipes\" 4.2BSD)\n" #: src/tar.c:336 #, fuzzy msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Selecção do formato do arquivo:\n" " -V, --label=NOME cria um aruivo com volume de nome NOME\n" " REGEXP ao extrair/listar, o nome é uma " "expressão\n" " regular\n" " -o, --old-archive, --portability escreve um arquivo no formato V7\n" " --posix escreve um arquivo conforme com POSIX\n" " -z, --gzip, --ungzip filtra o arquivo através de \"gzip\"\n" " -Z, --compress, --uncompress filtra o arquivo através de " "\"compress\"\n" " --use-compress-program=PROG filtra o arquivo através de PROG \n" "\t\t\t\t (este tem que aceitar -d)\n" #: src/tar.c:347 #, fuzzy msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Selecção local de ficheiros:\n" " -C, --directory DIR mudar para a directoria DIR\n" " -T, --files-from=NOME obter do ficheiro NOME a lista de ficheiros a " "\n" " criar ou extrair\n" " --null faz com que \"-T\" leia nomes terminados por " "NULO,\n" " também inibe \"-C\"\n" " --exclude=PADRÃO excluir os ficheiros descritos pelo PADRÃO\n" " -X, --exclude-from=FICH excluir ficheiros, segundo os padrões guardados " "em\n" "\t\t\t FICH\n" " -P, --absolute-names preservar os \"\\\" iniciais nos nomes dos " "ficheiros\n" " -h, --dereference usar os próprios ficheiros, em lugar das " "ligações\n" " simbólicas (symlinks) que os referenciam\n" " --no-recurse não descer pela árvore de directorias\n" " -l, --one-file-system não sair do sistema local de ficheiros, ao " "criar o\n" " arquivo\n" " -K, --starting-file=NOME começar pelo ficheiro NOME, no arquivo\n" #: src/tar.c:362 #, fuzzy msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATA só guardar ficheiros mais recentes do que DATA\n" " --newer-mtime só comparar data e hora quando os dados " "mudarem\n" " --after-date=DATA o mesmo que \"-N\"\n" ")," #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Prestação de informações:\n" " --help mostrar esta mensagem de ajuda e terminar\n" " --version indicar a versão do programa \"tar\" e terminar\n" " -v, --verbose escrever a lista dos ficheiros tratados\n" " --checkpoint indicar os nomes das directorias durante a leitura\n" " --totals indicar o número de \"bytes\" escritos durante a " "criação\n" " do arquivo\n" " -R, --block-number escrever o número de bloco, dentro do arquivo, \n" " em cada mensagem\n" " -w, --interactive pedir confirmação para todas as acções\n" " --confirmation o mesmo que \"-w\"\n" "\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" #: src/tar.c:393 #, fuzzy, c-format msgid "" "\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" msgstr "" "\n" "O programa tar GNU anterior à versão 1.12 não consegue ler arquivos " "\"--posix\".\n" "Se a variável POSIXLY_CORRECT estiver definida no ambiente, as extensões " "GNU\n" "são inibidas com \"--posix\". O suporte para POSIX está apenas parcialmente " "\n" "implementado, pelo que não se fiem muito nele, por agora.\n" "ARQUIVO pode ser FICHEIRO, HOST:FICHEIRO ou UTILIZADOR@HOST:FICHEIRO; e \n" "FICHEIRO pode ser um ficheiro ou um periférico.\n" "*Este* tar assume, por defeito, \"-f%s -b %d\".\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Não se pode especificar mais do que uma das opções \"-Acdtrux\"" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Há conflitos entre as opções de compressão" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "A antiga opção `%c' exige um argumento." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Opção obsoleta, é agora \"-blocking-factor\" implica-a" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Nome de opção obsoleto, foi substituído por \"--blocking-factor\"" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Nome de opção obsoleto, foi substituído por \"--read-full-records\"" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Nome de opção obsoleto, foi substituído por \"--touch\"" #: src/tar.c:687 msgid "More than one threshold date" msgstr "" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Formato de data inválido \"%s\"" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Há conflitos entre as opções de formato do arquivo" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Nome de opção obsoleto, foi substituído por \"--absolute-names\"" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Nome de opção obsoleto, foi substituído por \"--block-number\"" #: src/tar.c:799 #, fuzzy msgid "Obsolete option name replaced by --backup" msgstr "Nome de opção obsoleto, foi substituído por \"--touch\"" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Valor inválido para tamanho de registo (record_size)" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "O tamanho dos registos tem que ser múltiplo de %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "As opções \"-[0-7][lmh]\" não são suportadas por *este* tar" #: src/tar.c:995 msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "" "Estão-se a querer propriedades GNU num arquivo com formato incompatível" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Para usar vários arquivos é necessária a opção \"-M\"" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Recusa-se, covardemente, a criar um arquivo vazio" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "As opções \"-Aru\" são imcompatíveis com \"-f -\"" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Tem que se especificar uma das opções \"-Acdtrux\"" #: src/tar.c:1192 #, fuzzy msgid "Error exit delayed from previous errors" msgstr "Erro só assinalado no fim da execução" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "" "Erro de leitura no \"byte\" %ld, durante a leitura de %d \"bytes\" do " "ficheiro %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: O ficheiro diminui em %d bytes, (desgraça!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Forma de usar: %s [OPÇÃO]...\n" #: tests/genfile.c:68 #, fuzzy msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Os argumentos obrigatórios para as opções longas também o são para as " "curtas.\n" "\n" " --help mostra esta informação e termina\n" " --version identifica a versão e termina\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "" #: tests/genfile.c:138 #, fuzzy, c-format msgid "Unknown pattern `%s'" msgstr "Opção \"%c\" desconhecida" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" #~ msgid "Volume mismatch! %s!=%s" #~ msgstr "O volume não condiz! %s!=%s" #~ msgid "EOF? What does that mean?" #~ msgstr "Fim-de-ficheiro? Que significa isto?" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "A quantidade realmente escrita é %d (esperemos!).\n" #~ msgid "Mode" #~ msgstr "Modo" #~ msgid "Uid" #~ msgstr "\"Uid\"" #~ msgid "Gid" #~ msgstr "\"Gid\"" #~ msgid "Size" #~ msgstr "Tamanho" #~ msgid "%d at %d\n" #~ msgstr "%d em %d\n" #~ msgid "Missing filename after -C" #~ msgstr "Falta um nome de ficheiro após \"-C\"" #~ msgid "" #~ "Mandatory or optional arguments to long options are mandatory or optional\n" #~ "for short options too.\n" #~ msgstr "" #~ "Os argumentos obrigatórios ou opcionais para as opções longas também\n" #~ "são obrigatórios ou opcionais para as correspondentes opções curtas.\n" #~ msgid "Invalid date format in `-N %s'" #~ msgstr "Formato inválido para data em \"-N %s\"" #~ msgid "Bad regular expression: %s" #~ msgstr "Expressão regular errada: %s" #~ msgid "File %s\n" #~ msgstr "Ficheiro %s\n" #~ msgid "Junk files\n" #~ msgstr "Ficheiros de lixo\n" #~ msgid "file %s\n" #~ msgstr "ficheiro %s\n" #~ msgid "Skip %ld\n" #~ msgstr "Salta %ld\n" #~ msgid "Out of first loop\n" #~ msgstr "Fora do primeiro ciclo\n" #~ msgid "Saved %d blocks, need %d more\n" #~ msgstr "Guardaram-se %d blocos, ainda são precisos %d\n" #~ msgid "New record\n" #~ msgstr "Novo registo\n" #~ msgid "Header type %d\n" #~ msgstr "Tipo de cabeçalho %d\n" #~ msgid "File %s " #~ msgstr "Ficheiro %s" #~ msgid "Flush it\n" #~ msgstr "Esvazia-o\n" #~ msgid "Flushing %d blocks from %s\n" #~ msgstr "Esvaziam-se %d blocos de %s\n" #~ msgid "Block: %d <= %d " #~ msgstr "Bloco: %d <= %d " #~ msgid "Block %d left\n" #~ msgstr "Deixou-se o bloco %d \n" #~ msgid "Final %d\n" #~ msgstr "Final %d\n" #~ msgid "Need %d kept_in %d keep %d\n" #~ msgstr "Precisa %d mantem dentro %d mantem %d\n" #~ msgid "Flush...\n" #~ msgstr "Esvaziamento...\n" #~ msgid "Copying %d\n" #~ msgstr "Copia de %d\n" #~ msgid "Now new %d need %d keep %d keep_in %d block %d/%d\n" #~ msgstr "" #~ "Novos agora %d precisa %d mantem %d mantem dentro %d bloco %d/%d\n" #~ "(N.T. Isto também é incompreensível em Inglês)\n" #~ msgid "Write record\n" #~ msgstr "Escreve-se registo\n" #, fuzzy #~ msgid "Fore to %x\n" #~ msgstr "Fore to %x\n" #~ msgid "Write block\n" #~ msgstr "Escreve-se o bloco\n" #~ msgid "Could not make %s" #~ msgstr "Não se conseguiu fazer %s" #~ msgid "Only one compression option permitted" #~ msgstr "Só se permite uma opção de compressão" #~ msgid "Options [0-7][lmh] not supported by *this* tar" #~ msgstr "As opções [0-7][lmh] não funcionam neste \"tar\"" #~ msgid "Cannot allocate %d bytes for restore" #~ msgstr "Não se consegue reservar %d bytes para a recuperação" #~ msgid "Saved %d recs, need %d more\n" #~ msgstr "Guardaram-se %d registos, ainda são precisos %d\n" #~ msgid "Could not link %s to %s" #~ msgstr "Não se conseguiu ligar %s a %s" #~ msgid "%c: Argument missing" #~ msgstr "%c: Falta argumento" #~ msgid "Cannot dup %s" #~ msgstr "Não se consegue duplicar %s com \"dup\"" #~ msgid "Could not create directory %s" #~ msgstr "Não se conseguiu criar a directoria %s" #~ msgid "Cannot change to directory %d" #~ msgstr "Não se pode mudar para a directoria %d" #~ msgid "rec %10ld: " #~ msgstr "reg %10ld: " #~ msgid "Flushing %d recs from %s\n" #~ msgstr "Estão-se a esvaziar %d registos de um total de %s\n" #~ msgid "Multiple archive files requires --multi-volume" #~ msgstr "Múltiplos ficheiros de arquivo exigem \"--multi-volume\"" #~ msgid "Cannot change directory to %d" #~ msgstr "Não se pode mudar de directoria para %d" #~ msgid "[child] Pipe to stdin" #~ msgstr "[filho] \"Pipe\" para o stdin" #~ msgid "Cannot change owner of %s to uid %d gid %d" #~ msgstr "Não se pode mudar o dono de %s para \"uid\" %d \"gid\" %d" #~ msgid "Cannot change mode of file %s to %lo" #~ msgstr "Não se pode mudar o modo do ficheiro %s para %lo" #~ msgid "[child] Pipe to stdout" #~ msgstr "[filho] \"Pipe\" para o stdout" #~ msgid "Could not write to file %s" #~ msgstr "Não se conseguiu escrever no ficheiro %s" #~ msgid "Could not change access and modification times of %s" #~ msgstr "Não se conseguiu modificar os tempos de acesso e modificação de %s" #~ msgid "Blocksize = %d records" #~ msgstr "Tamanho do bloco = %d registos" #~ msgid "%s: %s: Cannot link to %s, copying instead\n" #~ msgstr "" #~ "%s: %s: Não é possível fazer ligação para %s, em vez disso, copia-se\n" #~ msgid "Cannot close a file #%d" #~ msgstr "Não se consegue fechar o ficheiro de descritor %d" #~ msgid "Could not create symlink to %s" #~ msgstr "Não se conseguiu criar uma ligação (\"link\") simbólica para %s" #~ msgid "Now new %d need %d keep %d keep_in %d rec %d/%d\n" #~ msgstr "" #~ "Now new %d need %d keep %d keep_in %d rec %d/%d\n" #~ " (FIXME)" #~ msgid "Too many args with -T option" #~ msgstr "Argumentos demais para a opção \"-T\"" #~ msgid "New block\n" #~ msgstr "Novo bloco\n" #~ msgid "Invalid value for blocksize" #~ msgstr "Valor inválido para o tamanho do bloco" #~ msgid "Cannot chown file %s to uid %d gid %d" #~ msgstr "Não se pode mudar o dono de %s para \"uid\" %d \"gid\" %d" #~ msgid "Cannot open a pipe" #~ msgstr "Não se consegue abrir um \"pipe\"" #~ msgid "Could only write %d of %d bytes to file %s" #~ msgstr "" #~ "Só se conseguiu escrever %d \"bytes\" de um total de %d, no ficheiro %s" #~ msgid "Could not create file %s" #~ msgstr "Não se conseguiu criar o ficheiro %s" #~ msgid "Cannot keep old files on this system" #~ msgstr "Não se consegue manter os ficheiros antigos neste sistema" #~ msgid "" #~ "Skip %ld\n" #~ " ##################" #~ msgstr "Salta %ld\n" tar-1.13/po/ru.po0000664000176300016070000013347306740055251007337 # Russian messages for GNU tar. # Copyright (C) 1998, 1999 Free Software Foundation, Inc. # Const Kaplinsky , 1998, 1999. # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1999-04-17 20:26+08:00\n" "Last-Translator: Const Kaplinsky \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=koi8-r\n" "Content-Transfer-Encoding: 8bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "îÅ×ÅÒÎÙÊ ÆÏÒÍÁÔ ÄÁÔÙ -- `%s'" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "îÅÏÄÎÏÚÎÁÞÎÙÊ ÛÁÂÌÏÎ `%s'" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "îÅÉÚ×ÅÓÔÎÁÑ ÓÉÓÔÅÍÎÁÑ ÏÛÉÂËÁ" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "óÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "óÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "óÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "óÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "óÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "ðÁÍÑÔØ ÉÓÞÅÒÐÁÎÁ" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "ïÂÝÅÅ ÞÉÓÌÏ ÚÁÐÉÓÁÎÎÙÈ ÂÁÊÔ: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "ïÛÉÂËÁ ÚÁËÒÙÔÉÑ ÆÁÊÌÁ #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "ïÛÉÂËÁ ÚÁËÒÙÔÉÑ ÄÅÓËÒÉÐÔÏÒÁ %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "ïÛÉÂËÁ ÐÒÉ ÄÕÂÌÉÒÏ×ÁÎÉÉ %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "éÓÐÏÌØÚÏ×ÁÎÉÅ ÓÖÁÔÙÈ ÉÌÉ ÕÄÁÌÅÎÎÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÏ" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "ïÛÉÂËÁ ÏÔËÒÙÔÉÑ ËÁÎÁÌÁ" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "ïÛÉÂËÁ ÐÏÒÏÖÄÅÎÉÑ ÐÒÏÃÅÓÓÁ" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (ÐÏÔÏÍÏË)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(ÐÏÔÏÍÏË) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "ïÛÉÂËÁ ÏÔËÒÙÔÉÑ ÁÒÈÉ×Á %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "áÒÈÉ× × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "ïÛÉÂËÁ ÚÁÐÕÓËÁ %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "ðÒÏÃÅÓÓ-ÐÏÔÏÍÏË ÎÅ ÍÏÖÅÔ ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÐÒÏÃÅÓÓ" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((ÐÏÔÏÍÏË)) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (ÐÏÔÏÍÏË ÐÏÔÏÍËÁ)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(ÐÏÔÏÍÏË ÐÏÔÏÍËÁ) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "ïÛÉÂËÁ ÞÔÅÎÉÑ ÄÁÎÎÙÈ Ó ×ÙÈÏÄÁ ÐÒÏÇÒÁÍÍÙ ÓÖÁÔÉÑ" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(ÐÏÔÏÍÏË) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "áÒÈÉ× × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((ÐÏÔÏÍÏË)) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(ÐÏÔÏÍÏË ÐÏÔÏÍËÁ) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "ïÛÉÂËÁ ÚÁÐÉÓÉ ÄÁÎÎÙÈ ÎÁ ×ÈÏÄ ÐÒÏÇÒÁÍÍÙ ÓÖÁÔÉÑ" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "úÁÐÉÓØ ÏÓÔÁ×ÛÉÈÓÑ %d ÂÁÊÔ ÎÁ ×ÈÏÄ ÐÒÏÇÒÁÍÍÙ ÓÖÁÔÉÑ" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "îÅÄÏÐÕÓÔÉÍÏÅ ÚÎÁÞÅÎÉÅ ÄÌÑ record_size" #: src/buffer.c:690 msgid "No archive name given" msgstr "îÅ ÕËÁÚÁÎÏ ÉÍÑ ÁÒÈÉ×Á" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "îÅ ÕÄÁÌÏÓØ ×ÙÄÅÌÉÔØ ÐÁÍÑÔØ ÐÏÄ ÂÕÆÅÒ ÂÌÏËÏ× ÒÁÚÍÅÒÏÍ %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "ðÒÏ×ÅÒËÁ ÍÎÏÇÏÔÏÍÎÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÁ" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "éÓÐÏÌØÚÏ×ÁÎÉÅ ÓÖÁÔÙÈ ÍÎÏÇÏÔÏÍÎÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÏ" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "ðÒÏ×ÅÒËÁ ÓÖÁÔÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÁ" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "ïÂÎÏ×ÌÅÎÉÅ ÓÖÁÔÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÏ" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "ðÒÏ×ÅÒËÁ ÁÒÈÉ×Á × ÓÔÁÎÄÁÒÔÎÏÍ ××ÏÄÅ/×Ù×ÏÄÅ ÎÅ×ÏÚÍÏÖÎÁ" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "îÅ ÕÄÁÌÏÓØ ÏÔËÒÙÔØ %s" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "íÅÔËÁ ÁÒÈÉ×Á ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ `%s'" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "ôÏÍ `%s' ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ `%s'" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "ëÏÎÔÒÏÌØÎÁÑ ÔÏÞËÁ ÚÁÐÉÓÉ %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "îÅ ÕÄÁÌÏÓØ ÚÁÐÉÓÁÔØ × %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "úÁÐÉÓÁÎÏ ÔÏÌØËÏ %u ÉÚ %u ÂÁÊÔ × %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "ïÛÉÂËÁ ÞÔÅÎÉÑ ÉÚ %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "ôÅËÕÝÁÑ ÐÏÚÉÃÉÑ -- ÎÁÞÁÌÏ ÌÅÎÔÙ, ÐÒÅËÒÁÝÅÎÉÅ ÒÁÂÏÔÙ" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "óÌÉÛËÏÍ ÍÎÏÇÏ ÏÛÉÂÏË, ÐÒÅËÒÁÝÅÎÉÅ ÒÁÂÏÔÙ" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "ëÏÎÔÒÏÌØÎÁÑ ÔÏÞËÁ ÞÔÅÎÉÑ %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "þÔÅÎÉÅ %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "ðòåäõðòåöäåîéå: îÅÔ ÚÁÇÏÌÏ×ËÁ ÔÏÍÁ" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s ÎÅ ÐÒÏÄÏÌÖÁÅÔÓÑ ÎÁ ÜÔÏÍ ÔÏÍÅ" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "õ %s ÎÅ×ÅÒÎÙÊ ÒÁÚÍÅÒ (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "üÔÏÔ ÔÏÍ ÎÁÒÕÛÁÅÔ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØ" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "òÁÚÍÅÒ ÚÁÐÉÓÉ (× ÂÌÏËÁÈ) = %d" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "ëÏÎÅà ÆÁÊÌÁ ÁÒÈÉ×Á %s ÎÅ ÎÁ ÇÒÁÎÉÃÅ ÂÌÏËÁ" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "ðÒÏÞÉÔÁÎÏ ÔÏÌØËÏ %d ÂÁÊÔ ÉÚ ÁÒÈÉ×Á %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "ðòåäõðòåöäåîéå: îÅ×ÏÚÍÏÖÎÏ ÚÁËÒÙÔØ %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "îÅ ÕÄÁÌÏÓØ ÐÒÏËÒÕÔÉÔØ ÁÒÈÉ× ÎÁÚÁÄ; ÏÎ ÍÏÖÅÔ ÎÅ ÞÉÔÁÔØÓÑ ÂÅÚ -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "ðòåäõðòåöäåîéå: îÅ×ÏÚÍÏÖÎÏ ÚÁËÒÙÔØ %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "÷ÙÐÏÌÎÅÎÉÅ ÐÒÏÃÅÓÓÁ-ÐÏÔÏÍËÁ ÐÒÅÒ×ÁÎÏ ÐÏ ÓÉÇÎÁÌÕ %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (ÓÄÅÌÁÎ ÄÁÍÐ ÐÁÍÑÔÉ)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "ðÒÏÃÅÓÓ-ÐÏÔÏÍÏË ×ÏÚ×ÒÁÔÉÌ ÓÔÁÔÕÓ %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "ðÒÉÇÏÔÏ×ØÔÅ ÔÏÍ ÎÏÍÅÒ %d ÄÌÑ %s É ÎÁÖÍÉÔÅ ÷÷ïä: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "ëÏÎÅà ÆÁÊÌÁ ÐÒÉ ÏÖÉÄÁÎÉÉ ÏÔ×ÅÔÁ ÐÏÌØÚÏ×ÁÔÅÌÑ" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "ðòåäõðòåöäåîéå: áÒÈÉ× ÎÅ ÐÏÌÎÙÊ" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [name] äÁÔØ ÎÏ×ÏÅ ÉÍÑ ÄÌÑ ÓÌÅÄÕÀÝÅÇÏ ÔÏÍÁ (É ÐÏÓÌÅÄÕÀÝÉÈ ÔÏÍÏ×)\n" " q ðÒÅÒ×ÁÔØ ×ÙÐÏÌÎÅÎÉÅ tar\n" " ! ÷ÙÚ×ÁÔØ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ\n" " ? îÁÐÅÞÁÔÁÔØ ÜÔÏÔ ÓÐÉÓÏË\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "îÅÔ ÎÏ×ÏÇÏ ÔÏÍÁ, ÐÒÅËÒÁÝÅÎÉÅ ÒÁÂÏÔÙ.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "îÅ×ÏÚÍÏÖÎÏ ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÐÒÏÃÅÓÓ!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÚÁÐÕÓÔÉÔØ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "îÅ ÕÄÁÌÏÓØ ×ÙÄÅÌÉÔØ ÐÁÍÑÔØ ÄÌÑ ÂÕÆÅÒÁ ÓÒÁ×ÎÅÎÉÑ ÉÚ %d ÂÁÊÔ" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "õÄÁÌÏÓØ ÐÒÏÞÉÔÁÔØ ÔÏÌØËÏ %d ÉÚ %ld ÂÁÊÔ" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "äÁÎÎÙÅ ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "îÅÏÖÉÄÁÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ ÁÒÈÉ×Á" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÊÔÉ Ë ÐÏÚÉÃÉÉ %ld × ÆÁÊÌÅ %s" #: src/compare.c:422 msgid "File does not exist" msgstr "æÁÊÌ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÕÚÎÁÔØ ÓÔÁÔÕÓ ÆÁÊÌÁ %s" #: src/compare.c:459 msgid "Verify " msgstr "ðÒÏ×ÅÒËÁ " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "îÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ '%c' ÆÁÊÌÁ %s, ÓÒÁ×ÎÅÎ ËÁË ÏÂÙÞÎÙÊ ÆÁÊÌ" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "îÅ Ñ×ÌÑÅÔÓÑ ÏÂÙÞÎÙÍ ÆÁÊÌÏÍ" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "ðÒÁ×Á ÄÏÓÔÕÐÁ ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:505 msgid "Uid differs" msgstr "Uid ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:507 msgid "Gid differs" msgstr "Gid ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:511 msgid "Mod time differs" msgstr "÷ÒÅÍÅÎÁ ÍÏÄÉÆÉËÁÃÉÉ ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "òÁÚÍÅÒÙ ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "ïÛÉÂËÁ ÐÒÉ ÚÁËÒÙÔÉÉ %s" #: src/compare.c:582 msgid "Does not exist" msgstr "îÅ ÓÕÝÅÓÔ×ÕÅÔ" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "îÅ ÓÓÙÌÁÅÔÓÑ ÎÁ %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "ôÁËÏÊ ÆÁÊÌ ÉÌÉ ËÁÔÁÌÏÇ ÏÔÓÕÔÓÔ×ÕÅÔ" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ ÓÓÙÌËÕ %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "óÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ÒÁÚÌÉÞÁÀÔÓÑ" #: src/compare.c:666 msgid "Device numbers changed" msgstr "îÏÍÅÒÁ ÕÓÔÒÏÊÓÔ×Á ÉÚÍÅÎÉÌÉÓØ" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "ðÒÁ×Á ÄÏÓÔÕÐÁ ÉÌÉ ÔÉÐ ÕÓÔÒÏÊÓÔ×Á ÉÚÍÅÎÉÌÉÓØ" #: src/compare.c:726 msgid "No longer a directory" msgstr "õÖÅ ÎÅ Ñ×ÌÑÅÔÓÑ ËÁÔÁÌÏÇÏÍ" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ ÆÁÊÌ %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "îÅ ÕÄÁÌÏÓØ ÐÅÒÅÍÏÔÁÔØ ÁÒÈÉ× ÎÁ ÎÁÞÁÌÏ ÄÌÑ ÐÒÏ×ÅÒËÉ" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "ïûéâëá ðòï÷åòëé: ÏÂÎÁÒÕÖÅÎÏ ÎÅ×ÅÒÎÙÈ ÚÁÇÏÌÏ×ËÏ×: %d" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "õÄÁÌÅÎÉÅ ÓÐÅÃÉÆÉËÁÃÉÉ ÄÉÓËÁ ÉÚ ÉÍÅÎ × ÁÒÈÉ×Å" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "õÄÁÌÅÎÉÅ ÎÁÞÁÌØÎÏÇÏ `/' ÉÚ ÁÂÓÏÌÀÔÎÙÈ ÐÕÔÅÊ × ÁÒÈÉ×Å" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "úÁÐÉÓÁÎÏ %ld ÉÚ %ld ÂÁÊÔ × ÆÁÊÌ %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "ïÛÉÂËÁ ÞÔÅÎÉÑ ÎÁ ÂÁÊÔÅ %ld ÐÒÉ ÞÔÅÎÉÉ %d ÂÁÊÔ ÉÚ ÆÁÊÌÁ %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "ïÛÉÂËÁ ÞÔÅÎÉÑ ÎÁ ÂÁÊÔÅ %ld, ÐÒÉ ÞÔÅÎÉÉ %d ÂÁÊÔ ÉÚ ÆÁÊÌÁ %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "æÁÊÌ %s ÍÅÎØÛÅ ÎÁ %d ÂÁÊÔ, ÄÏÐÏÌÎÅÎÉÅ ÎÕÌÑÍÉ" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÄÏÂÁ×ÉÔØ ÆÁÊÌ %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: ÎÅ ÉÚÍÅÎÅÎ; ÎÅ ÓÂÒÏÛÅÎ" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s -- ÁÒÈÉ×; ÎÅ ÓÂÒÏÛÅÎ" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "õÄÁÌÅÎÉÅ ÎÁÞÁÌØÎÏÇÏ `/' ÉÚ ÁÂÓÏÌÀÔÎÙÈ ÓÓÙÌÏË" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÕÄÁÌÉÔØ %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "æÁÊÌ %s ÍÅÎØÛÅ ÎÁ %d ÂÁÊÔ, ÄÏÐÏÌÎÅÎÉÅ ÎÕÌÑÍÉ" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÄÏÂÁ×ÉÔØ ËÁÔÁÌÏÇ %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: îÁ ÄÒÕÇÏÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ; ÎÅ ÓÂÒÏÛÅÎ" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ ËÁÔÁÌÏÇ %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "éÍÑ ÆÁÊÌÁ %s%s ÓÌÉÛËÏÍ ÄÌÉÎÎÏÅ" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: îÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ ÆÁÊÌÁ; ÉÇÎÏÒÉÒÕÅÔÓÑ" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "îÅ ÕÄÁÌÏÓØ ÐÅÒÅÕÓÔÁÎÏ×ÉÔØ ÐÏÚÉÃÉÀ × ÁÒÈÉ×Å" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "üÔÏ ÎÅ ÐÏÈÏÖÅ ÎÁ tar-ÁÒÈÉ×" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "ðÒÏÐÕÓË ÄÏ ÓÌÅÄÕÀÝÅÇÏ ÚÁÇÏÌÏ×ËÁ" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "õÄÁÌÅÎÉÅ \"ÎÅÚÁÇÏÌÏ×ËÁ\" ÉÚ ÁÒÈÉ×Á" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: îÅ×ÏÚÍÏÖÎÏ ÓÍÅÎÉÔØ ÒÅÖÉÍ ÄÏÓÔÕÐÁ ÎÁ %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÍÅÎÉÔØ ×ÒÅÍÑ ÄÏÓÔÕÐÁ É ÍÏÄÉÆÉËÁÃÉÉ" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: îÅ×ÏÚÍÏÖÎÏ ÕÓÔÁÎÏ×ÉÔØ uid %d gid %d Ó ÐÏÍÏÝØÀ lchown" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: îÅ×ÏÚÍÏÖÎÏ ÕÓÔÁÎÏ×ÉÔØ uid %d gid %d Ó ÐÏÍÏÝØÀ chown" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: îÅ×ÏÚÍÏÖÎÏ ÓÍÅÎÉÔØ ×ÌÁÄÅÌØÃÁ ÎÁ uid %d, gid %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: îÅ×ÏÚÍÏÖÎÏ ÚÁÐÉÓÁÔØ × ÆÁÊÌ" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: õÄÁÌÏÓØ ÚÁÐÉÓÁÔØ ÔÏÌØËÏ %d ÉÚ %d ÂÁÊÔ" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÒÅÚÅÒ×ÎÕÀ ËÏÐÉÀ ÜÔÏÇÏ ÆÁÊÌÁ" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "éÚ×ÌÅÞÅÎÉÅ ÎÅÐÒÅÒÙ×ÎÙÈ ÆÁÊÌÏ× ËÁË ÏÂÙÞÎÙÈ" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÆÁÊÌ" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: õÄÁÌÏÓØ ÚÁÐÉÓÁÔØ ÔÏÌØËÏ %d ÉÚ %d ÂÁÊÔ" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: ïÛÉÂËÁ ÐÒÉ ÚÁËÒÙÔÉÉ" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÓÉÍ×ÏÌØÎÕÀ ÓÓÙÌËÕ ÎÁ `%s'" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "ðÏÐÙÔËÁ ÉÚ×ÌÅÞØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ËÁË ÖÅÓÔËÉÅ" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÓÓÙÌËÕ ÎÁ `%s'" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÓÐÅÃÉÁÌØÎÙÊ ÆÁÊÌ" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÉÍÅÎÏ×ÁÎÎÙÊ ËÁÎÁÌ" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ËÁÔÁÌÏÇ" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "äÏÂÁ×ÌÅÎÙ ÐÒÁ×Á ÎÁ ÚÁÐÉÓØ É ×ÙÐÏÌÎÅÎÉÅ ÄÌÑ ËÁÔÁÌÏÇÁ %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "îÅ×ÏÚÍÏÖÎÏ ÉÚ×ÌÅÞØ `%s' -- ÆÁÊÌ ÐÒÏÄÏÌÖÁÅÔÓÑ ÎÁ ÄÒÕÇÏÍ ÔÏÍÅ" #: src/extract.c:964 msgid "Visible long name error" msgstr "ïÛÉÂËÁ ÉÚ-ÚÁ ÄÌÉÎÎÏÇÏ ÉÍÅÎÉ" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "îÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ '%c' ÆÁÊÌÁ %s, ÉÚ×ÌÅÞÅÎ ËÁË ÏÂÙÞÎÙÊ ÆÁÊÌ" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÓÔÁÔÕÓ %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "ëÁÔÁÌÏÇ %s ÂÙÌ ÐÅÒÅÉÍÅÎÏ×ÁÎ" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "ëÁÔÁÌÏÇ %s -- ÎÏ×ÙÊ" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "îÅ ÕÄÁÌÏÓØ ÐÏÌÕÞÉÔØ ÔÅËÕÝÉÊ ËÁÔÁÌÏÇ" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "îÅ ÕÄÁÌÏÓØ ÐÏÌÕÞÉÔØ ÔÅËÕÝÉÊ ËÁÔÁÌÏÇ: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "éÍÑ ÆÁÊÌÁ %s/%s -- ÓÌÉÛËÏÍ ÄÌÉÎÎÏÅ" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "îÏÍÅÒÁ ÕÓÔÒÏÊÓÔ×Á ÉÚÍÅÎÉÌÉÓØ" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÊÔÉ × ËÁÔÁÌÏÇ %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "îÅÐÒÅÄ×ÉÄÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ × ÁÒÈÉ×Å" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: õÄÁÌÅÎÉÅ %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "ïÛÉÂËÁ ÐÒÉ ÕÄÁÌÅÎÉÉ %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "ðÒÏÐÕÓË %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "ÂÌÏË %10ld: ** âÌÏË ÉÚ ÎÕÌÅÊ **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "ÂÌÏË %10ld: ** ëÏÎÅà ÆÁÊÌÁ **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "èÍ, ÜÔÏ ÎÅ ÐÏÈÏÖÅ ÎÁ tar-ÁÒÈÉ×" #: src/list.c:158 msgid "Skipping to next file header" msgstr "ðÒÏÐÕÓË ÄÏ ÓÌÅÄÕÀÝÅÇÏ ÚÁÇÏÌÏ×ËÁ ÆÁÊÌÁ" #: src/list.c:213 msgid "EOF in archive file" msgstr "ëÏÎÅà ÆÁÊÌÁ ÁÒÈÉ×Á" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "úÁÐÉÓÁÎÏ ÔÏÌØËÏ %ld ÉÚ %ld ÂÁÊÔ × ÆÁÊÌ %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "ÂÌÏË %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "ïÛÉÂËÁ ÉÚ-ÚÁ ÄÌÉÎÎÏÇÏ ÉÍÅÎÉ" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " ÓÓÙÌËÁ ÎÁ %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " ÎÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ ÆÁÊÌÁ `%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--úÁÇÏÌÏ×ÏË ÔÏÍÁ--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--ðÒÏÄÏÌÖÅÎÉÅ Ó ÂÁÊÔÁ %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--òÕÂÌÅÎÙÅ ÉÍÅÎÁ ÆÁÊÌÏ×--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "óÏÚÄÁÎÉÅ ËÁÔÁÌÏÇÁ:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "îÅÐÒÅÄ×ÉÄÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ × ÒÕÂÌÅÎÙÈ ÉÍÅÎÁÈ" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÉÍÅÎÏ×ÁÔØ %s × %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "%s ÐÅÒÅÉÍÅÎÏ×ÁÎ × %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÓÏÚÄÁÔØ ÓÉÍ×ÏÌØÎÕÀ ÓÓÙÌËÕ %s ÎÁ %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "óÏÚÄÁÎÁ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ %s ÎÁ %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "îÅÉÚ×ÅÓÔÎÁÑ ËÏÍÁÎÄÁ %s ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÒÕÂÌÅÎÙÈ ÉÍÅÎ" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "%s ÐÅÒÅÉÍÅÎÏ×ÁÎ × %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÉÍÅÎÏ×ÁÔØ %s × %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÉÍÅÎÏ×ÁÔØ %s × %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "%s ÐÅÒÅÉÍÅÎÏ×ÁÎ × %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÊÔÉ × ËÁÔÁÌÏÇ %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "ðÒÏÐÕÝÅÎÏ ÉÍÑ ÆÁÊÌÁ ÐÏÓÌÅ -C" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: ÷ ÁÒÈÉ×Å ÎÅ ÎÁÊÄÅÎ" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: îÅ×ÏÚÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÍÅÓÔÏ ÄÌÑ ÂÕÆÅÒÁ\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "îÅ×ÏÚÍÏÖÎÏ ×ÙÄÅÌÉÔØ ÍÅÓÔÏ ÄÌÑ ÂÕÆÅÒÁ" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: ðÒÅÖÄÅ×ÒÅÍÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "ðÒÅÖÄÅ×ÒÅÍÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: îÅ×ÅÒÎÁÑ ËÏÍÁÎÄÁ %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "îÅ×ÅÒÎÁÑ ËÏÍÁÎÄÁ" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: õÓÌÕÇÁ ÎÅÄÏÓÔÕÐÎÁ" #: src/rtapelib.c:301 msgid "stdin" msgstr "ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ" #: src/rtapelib.c:304 msgid "stdout" msgstr "ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "îÅ×ÏÚÍÏÖÎÏ ÚÁÐÕÓÔÉÔØ ÕÄÁÌÅÎÎÙÊ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "ïÂÁ ËÌÀÞÁ `-%s' É `-%s' ÉÓÐÏÌØÚÕÀÔ ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "îÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ ÐÏÄÔ×ÅÒÖÄÅÎÉÅ ÏÔ ÐÏÌØÚÏ×ÁÔÅÌÑ" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "ðÏÐÒÏÂÕÊÔÅ `%s --help' ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÂÏÌÅÅ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU `tar' ÓÏÈÒÁÎÑÅÔ ÍÎÏÖÅÓÔ×Ï ÆÁÊÌÏ× × ÏÄÎÏÍ ÁÒÈÉ×Å ÎÁ ÌÅÎÔÅ ÉÌÉ ÄÉÓËÅ\n" "É ÍÏÖÅÔ ×ÏÓÓÔÁ×ÌÉ×ÁÔØ ÏÔÄÅÌØÎÙÅ ÆÁÊÌÙ ÉÚ ÁÒÈÉ×Á.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "éÓÐÏÌØÚÏ×ÁÎÉÅ: %s [ëìàþé]... [æáêì]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "åÓÌÉ ÄÌÑ ÄÌÉÎÎÏÇÏ ËÌÀÞÁ ÎÕÖÅÎ ÁÒÇÕÍÅÎÔ, ÔÏ ÏÎ ÔÁËÖÅ ÎÕÖÅÎ É ÄÌÑ\n" "ÜË×É×ÁÌÅÎÔÎÏÇÏ ËÏÒÏÔËÏÇÏ ËÌÀÞÁ. áÎÁÌÏÇÉÞÎÏ Ó ÎÅÏÂÑÚÁÔÅÌØÎÙÍÉ ÁÒÇÕÍÅÎÔÁÍÉ.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "ïÓÎÏ×ÎÙÅ ÏÐÅÒÁÃÉÉ:\n" " -t, --list ×Ù×ÅÓÔÉ ÓÐÉÓÏË ÓÏÄÅÒÖÉÍÏÇÏ ÁÒÈÉ×Á\n" " -x, --extract, --get ÉÚ×ÌÅÞØ ÆÁÊÌÙ ÉÚ ÁÒÈÉ×Á\n" " -c, --create ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÁÒÈÉ×\n" " -d, --diff, --compare ÎÁÊÔÉ ÒÁÚÌÉÞÉÑ ÍÅÖÄÕ ÁÒÈÉ×ÏÍ É ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÏÊ\n" " -r, --append ÐÒÉÓÏÅÄÉÎÉÔØ ÆÁÊÌÙ Ë ËÏÎÃÕ ÁÒÈÉ×Á\n" " -u, --update ÐÒÉÓÏÅÄÉÎÉÔØ ÔÏÌØËÏ ÔÅ ÆÁÊÌÙ, ËÏÔÏÒÙÅ ÎÏ×ÅÅ, ÞÅÍ\n" " ÉÈ ËÏÐÉÉ × ÁÒÈÉ×Å\n" " -A, --catenate ÐÒÉÓÏÅÄÉÎÉÔØ tar-ÆÁÊÌÙ Ë ÁÒÈÉ×Õ\n" " --concatenate ÔÏ ÖÅ, ÞÔÏ É -A\n" " --delete ÕÄÁÌÉÔØ ÉÚ ÁÒÈÉ×Á (ÎÅ ÎÁ ÍÁÇÎÉÔÎÙÈ ÌÅÎÔÁÈ!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "íÏÄÉÆÉËÁÔÏÒÙ ÏÐÅÒÁÃÉÊ:\n" " -W, --verify ÐÙÔÁÔØÓÑ ÐÒÏ×ÅÒÉÔØ ÁÒÈÉ× ÐÏÓÌÅ ÅÇÏ ÚÁÐÉÓÉ\n" " --remove-files ÕÄÁÌÑÔØ ÆÁÊÌÙ ÐÏÓÌÅ ÉÈ ÄÏÂÁ×ÌÅÎÉÑ × ÁÒÈÉ×\n" " -k, --keep-old-files ÎÅ ÐÅÒÅÚÁÐÉÓÙ×ÁÔØ ÓÕÝÅÓÔ×ÕÀÝÉÅ ÎÁ ÄÉÓËÅ ÆÁÊÌÙ\n" " ÐÒÉ ÉÚ×ÌÅÞÅÎÉÉ ÉÚ ÁÒÈÉ×Á\n" " -U, --unlink-first ÕÄÁÌÑÔØ ÓÕÝÅÓÔ×ÕÀÝÉÅ ÆÁÊÌÙ ÄÏ ÉÈ ÉÚ×ÌÅÞÅÎÉÑ\n" " --recursive-unlink ÏÞÉÝÁÔØ ÓÏÄÅÒÖÉÍÏÅ ËÁÔÁÌÏÇÏ× ÄÏ ÉÚ×ÌÅÞÅÎÉÑ\n" " -S, --sparse ÜÆÆÅËÔÉ×ÎÏ ÒÁÂÏÔÁÔØ Ó ÒÁÚÒÅÖÅÎÎÙÍÉ ÆÁÊÌÁÍÉ\n" " -O, --to-stdout ÉÚ×ÌÅËÁÔØ ÆÁÊÌÙ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ\n" " -G, --incremental ÒÁÂÏÔÁÔØ ÓÏ ÓÔÁÒÙÍ GNU-ÆÏÒÍÁÔÏÍ\n" " ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÇÏ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ\n" " -g, --listed-incremental ÒÁÂÏÔÁÔØ ÓÏ ÎÏ×ÙÍ GNU-ÆÏÒÍÁÔÏÍ\n" " ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÇÏ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ\n" " --ignore-failed-read ÎÅ ÐÒÅËÒÁÝÁÔØ ÒÁÂÏÔÕ ÉÚ-ÚÁ ÎÅÞÉÔÁÅÍÙÈ ÆÁÊÌÏ×\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "ïÂÒÁÂÏÔËÁ ÁÔÒÉÂÕÔÏ× ÆÁÊÌÏ×:\n" " --owner=éíñ ÄÅÌÁÔØ éíñ ×ÌÁÄÅÌØÃÅÍ ÄÏÂÁ×ÌÑÅÍÙÈ ÆÁÊÌÏ×\n" " --group=éíñ ÄÅÌÁÔØ éíñ ÇÒÕÐÐÏÊ ×ÌÁÄÅÎÉÑ ÄÏÂÁ×ÌÑÅÍÙÈ " "ÆÁÊÌÏ×\n" " --mode=òåöéí ÐÒÉÓ×ÁÉ×ÁÔØ ÄÏÂÁ×ÌÑÅÍÙÍ ÆÁÊÌÁÍ òåöéí ÄÏÓÔÕÐÁ\n" " --atime-preserve ÎÅ ÉÚÍÅÎÑÔØ ×ÒÅÍÑ ÄÏÓÔÕÐÁ ÓÂÒÁÓÙ×ÁÅÍÙÈ " "ÆÁÊÌÏ×\n" " -m, --modification-time ÎÅ ÉÚ×ÌÅËÁÔØ ×ÒÅÍÑ ÉÚÍÅÎÅÎÉÑ ÆÁÊÌÁ\n" " --same-owner ÐÙÔÁÔØÓÑ ×ÏÓÓÔÁÎÁ×ÌÉ×ÁÔØ ×ÌÁÄÅÌØÃÁ ÉÚ ÁÒÈÉ×Á\n" " --numeric-owner ×ÓÅÇÄÁ ÉÓÐÏÌØÚÏ×ÁÔØ ÞÉÓÌÁ ×ÍÅÓÔÏ ÉÍÅÎ\n" " ×ÌÁÄÅÌØÃÁ É ÇÒÕÐÐÙ\n" " -p, --same-permissions ÉÚ×ÌÅËÁÔØ ×ÓÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÐÒÁ×ÁÈ ÄÏÓÔÕÐÁ\n" " --preserve-permissions ÔÏ ÖÅ, ÞÔÏ É -p\n" " -s, --same-order ÓÏÒÔÉÒÏ×ÁÔØ ÉÍÅÎÁ ÆÁÊÌÏ× ÄÌÑ ÉÚ×ÌÅÞÅÎÉÑ ×\n" " ÔÏÍ ÐÏÒÑÄËÅ, × ËÏÔÏÒÏÍ ÏÎÉ ÌÅÖÁÔ × ÁÒÈÉ×Å\n" " --preserve-order ÔÏ ÖÅ, ÞÔÏ É -s\n" " --preserve ÜË×É×ÁÌÅÎÔÎÏ ÓÏÞÅÔÁÎÉÀ ËÌÀÞÅÊ -p É -s\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "÷ÙÂÏÒ ÕÓÔÒÏÊÓÔ×:\n" " -f, --file=áòèé÷ ÉÓÐÏÌØÚÏ×ÁÔØ ÆÁÊÌ ÉÌÉ ÕÓÔÒÏÊÓÔ×Ï áòèé÷\n" " --force-local ÓÞÉÔÁÔØ ÁÒÈÉ× ÌÏËÁÌØÎÙÍ, ÄÁÖÅ ÅÓÌÉ ÅÓÔØ " "`:'\n" " --rsh-command=ëïíáîäá ÉÓÐÏÌØÚÏ×ÁÔØ ëïíáîäõ ÄÌÑ ÕÄÁÌÅÎÎÏÊ ÒÁÂÏÔÙ\n" " -[0-7][lmh] ÕËÁÚÁÔØ ÕÓÔÒÏÊÓÔ×Ï É ÐÌÏÔÎÏÓÔØ\n" " -M, --multi-volume ÒÁÂÏÔÁÔØ Ó ÍÎÏÇÏÔÏÍÎÙÍÉ ÁÒÈÉ×ÁÍÉ\n" " -L, --tape-length=þéóìï ÓÍÅÎÉÔØ ÌÅÎÔÕ ÐÏÓÌÅ ÚÁÐÉÓÉ þéóìï x 1024 " "ÂÁÊÔ\n" " -F, --info-script=æáêì ÚÁÐÕÓËÁÔØ ÐÒÏÇÒÁÍÍÕ æáêì ÐÏÓÌÅ ËÁÖÄÏÊ " "ÌÅÎÔÙ\n" " --new-volume-script=æáêì ÔÏ ÖÅ, ÞÔÏ É -F æáêì\n" " --volno-file=æáêì ÞÉÔÁÔØ/ÐÉÓÁÔØ ÎÏÍÅÒ ÔÏÍÁ ÉÚ/× æáêì(á)\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "òÁÂÏÔÁ Ó ÂÌÏËÁÍÉ:\n" " -b, --blocking-factor=âìïëé âìïëé x 512 ÂÁÊÔ ÄÌÑ ÏÄÎÏÊ ÚÁÐÉÓÉ\n" " --record-size=òáúíåò òáúíåò ÚÁÐÉÓÉ × ÂÁÊÔÁÈ, ËÒÁÔÎÙÊ 512\n" " -i, --ignore-zeros ÉÇÎÏÒÉÒÏ×ÁÔØ ÐÕÓÔÙÅ (EOF) ÂÌÏËÉ\n" " -B, --read-full-records ÓÏÂÉÒÁÔØ ÂÌÏËÉ × ÂÌÏËÉ ÐÒÉ ÞÔÅÎÉÉ\n" " (ÄÌÑ ËÁÎÁÌÏ× 4.2BSD)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "÷ÙÂÏÒ ÆÏÒÍÁÔÁ ÁÒÈÉ×Á:\n" " -V, --label=éíñ ÓÏÚÄÁ×ÁÔØ ÁÒÈÉ× Ó ÍÅÔËÏÊ ÔÏÍÁ éíñ\n" " ûáâìïî ÐÒÉ ÞÔÅÎÉÉ/ÚÁÐÉÓÉ ÒÁÂÏÔÁÔØ Ó ÁÒÈÉ×ÁÍÉ,\n" " ËÏÔÏÒÙÅ ÉÍÅÀÔ ÍÅÔËÕ, ÓÏÏÔ×. ûáâìïîõ\n" " -o, --old-archive, --portability ÚÁÐÉÓÙ×ÁÔØ ÁÒÈÉ× × ÆÏÒÍÁÔÅ V7\n" " --posix ÚÁÐÉÓÙ×ÁÔØ ÁÒÈÉ× × ÆÏÒÍÁÔÅ POSIX\n" " -z, --gzip, --ungzip ÐÒÏÐÕÓËÁÔØ ÁÒÈÉ× ÞÅÒÅÚ gzip\n" " -Z, --compress, --uncompress ÐÒÏÐÕÓËÁÔØ ÁÒÈÉ× ÞÅÒÅÚ compress\n" " --use-compress-program=ðòïçò ÐÒÏÐÕÓËÁÔØ ÞÅÒÅÚ ÐÒÏÇÒÁÍÍÕ ÓÖÁÔÉÑ " "ðòïçò\n" " (ÐÒÏÇÒÁÍÍÁ ÄÏÌÖÎÁ ÐÏÄÄÅÒÖÉ×ÁÔØ ËÌÀÞ " "-d)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "÷ÙÂÏÒ ÌÏËÁÌØÎÙÈ ÆÁÊÌÏ×:\n" " -C, --directory=ëáôáìïç ÓÄÅÌÁÔØ ÚÁÄÁÎÎÙÊ ëáôáìïç ÔÅËÕÝÉÍ\n" " -T, --files-from=æáêì ÂÒÁÔØ ÉÍÅÎÁ ÄÌÑ ÉÚ×ÌÅÞÅÎÉÑ ÉÌÉ ÓÏÚÄÁÎÉÑ ÉÚ " "æáêìá\n" " --null Ó ËÌÀÞÏÍ -T ÞÉÔÁÔØ ÓÔÒÏËÉ, ÏËÁÎÞÉ×ÁÀÝÉÅÓÑ " "ÎÕÌÅÍ,\n" " ÚÁÐÒÅÔÉÔØ ËÌÀÞ -C\n" " --exclude=ûáâìïî ÉÓËÌÀÞÉÔØ ÆÁÊÌÙ, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ûáâìïîõ\n" " -X, --exclude-from=æáêì ÉÓËÌÀÞÉÔØ ÆÁÊÌÙ, ÓÏÏÔ×. ÛÁÂÌÏÎÁÍ ÉÚ æáêìá\n" " -P, --absolute-names ÎÅ ÕÄÁÌÑÔØ ÎÁÞÁÌØÎÙÅ `/' ÉÚ ÁÂÓÏÌÀÔÎÙÈ ÐÕÔÅÊ\n" " -h, --dereference ÓÏÈÒÁÎÑÔØ ×ÍÅÓÔÏ ÓÉÍ×ÏÌØÎÙÈ ÓÓÙÌÏË ÆÁÊÌÙ,\n" " ÎÁ ËÏÔÏÒÙÅ ÜÔÉ ÓÓÙÌËÉ ÕËÁÚÙ×ÁÀÔ\n" " --no-recursion ×ÙËÌÀÞÉÔØ Á×ÔÏÍÁÔÉÞÅÓËÉÊ ÐÅÒÅÈÏÄ × ÐÏÄËÁÔÁÌÏÇÉ\n" " -l, --one-file-system ÏÓÔÁ×ÁÔØÓÑ × ÌÏËÁÌØÎÏÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ ×Ï " "×ÒÅÍÑ\n" " ÓÏÚÄÁÎÉÑ ÁÒÈÉ×Á\n" " -K, --starting-file=éíñ ÎÁÞÉÎÁÔØ Ó ÆÁÊÌÁ éíñ × ÁÒÈÉ×Å\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=äáôá ÓÏÈÒÁÎÑÔØ ÔÏÌØËÏ ÆÁÊÌÙ, ËÏÔÏÒÙÅ ÎÏ×ÅÅ äáôù\n" " --newer-mtime ÓÒÁ×ÎÉ×ÁÔØ ÔÏÌØËÏ ×ÒÅÍÑ ÉÚÍÅÎÅÎÉÑ ÆÁÊÌÁ\n" " --after-date=äáôá ÔÏ ÖÅ, ÞÔÏ É -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=ôéð] ÐÅÒÅÄ ÕÄÁÌÅÎÉÅÍ ÄÅÌÁÔØ ÒÅÚÅÒ×ÎÕÀ ËÏÐÉÀ ÔÉÐÁ " "ôéð\n" " --suffix=óõææéëó ÄÅÌÁÔØ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ Ó ÒÁÓÛÉÒÅÎÉÅÍ óõææéëó\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "÷Ù×ÏÄ ÉÎÆÏÒÍÁÃÉÉ:\n" " --help ×Ù×ÅÓÔÉ ÜÔÕ ÐÏÄÓËÁÚËÕ É ×ÙÊÔÉ\n" " --version ×Ù×ÅÓÔÉ ×ÅÒÓÉÀ ÜÔÏÊ ÐÒÏÇÒÁÍÍÙ É ×ÙÊÔÉ\n" " -v, --verbose ×Ù×ÏÄÉÔØ ÉÍÅÎÁ ÏÂÒÁÂÁÔÙ×ÁÅÍÙÈ ÆÁÊÌÏ×\n" " --checkpoint ×Ù×ÏÄÉÔØ ÉÍÅÎÁ ËÁÔÁÌÏÇÏ× ÐÒÉ ÞÔÅÎÉÉ ÉÚ ÁÒÈÉ×Á\n" " --totals ×Ù×ÅÓÔÉ ÏÂÝÅÅ ËÏÌÉÞÅÓÔ×Ï ÚÁÐÉÓÁÎÎÙÈ ÂÁÊÔ\n" " -R, --block-number ×Ù×ÏÄÉÔØ ÎÏÍÅÒ ÂÌÏËÁ ÁÒÈÉ×Á × ËÁÖÄÏÍ ÓÏÏÂÝÅÎÉÉ\n" " -w, --interactive ÚÁÐÒÁÛÉ×ÁÔØ ÐÏÄÔ×ÅÒÖÄÅÎÉÅ ÐÒÉ ËÁÖÄÏÍ ÄÅÊÓÔ×ÉÉ\n" " --confirmation ÔÏ ÖÅ, ÞÔÏ É -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "éÍÅÎÁ ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ ÚÁËÁÎÞÉ×ÁÀÔÓÑ ÓÉÍ×ÏÌÏÍ `~', ÅÓÌÉ Ó ÐÏÍÏÝØÀ --suffix\n" "ÉÌÉ SIMPLE_BACKUP_SUFFIX ÎÅ ÕÓÔÁÎÏ×ÌÅÎ ÉÎÏÊ ÓÕÆÆÉËÓ.\n" "õÐÒÁ×ÌÅÎÉÅ ×ÅÒÓÉÑÍÉ ÍÏÖÎÏ ÕÓÔÁÎÏ×ÉÔØ Ó ÐÏÍÏÝØÀ --backup ÉÌÉ " "VERSION_CONTROL,\n" "ÐÒÉ ÜÔÏÍ ×ÏÚÍÏÖÎÙ ÓÌÅÄÕÀÝÉÅ ÚÎÁÞÅÎÉÑ:\n" "\n" " t, numbered ÄÅÌÁÔØ ÎÕÍÅÒÏ×ÁÎÎÙÅ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ\n" " nil, existing ÎÕÍÅÒÏ×ÁÎÎÙÅ, ÅÓÌÉ ÔÁËÏ×ÙÅ ÕÖÅ ÅÓÔØ, ÉÎÁÞÅ ÐÒÏÓÔÙÅ\n" " never, simple ×ÓÅÇÄÁ ÄÅÌÁÔØ ÐÒÏÓÔÙÅ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar ÎÅ ÍÏÖÅÔ ÞÉÔÁÔØ ÉÌÉ ÓÏÚÄÁ×ÁÔØ ÁÒÈÉ×Ù ÔÉÐÁ `--posix'. åÓÌÉ " "ÕÓÔÁÎÏ×ÌÅÎÁ\n" "ÐÅÒÅÍÅÎÎÁÑ ÓÒÅÄÙ POSIXLY_CORRECT, ËÌÀÞ `--posix' ÚÁÐÒÅÝÁÅÔ ÒÁÓÛÉÒÅÎÉÑ GNU.\n" "ðÏÄÄÅÒÖËÁ POSIX ÓÄÅÌÁÎÁ ÔÏÌØËÏ ÞÁÓÔÉÞÎÏ, ÎÅ ÒÁÓÓÞÉÔÙ×ÁÊÔÅ ÎÁ ÎÅÅ. áòèé÷ " "ÍÏÖÅÔ\n" "ÂÙÔØ ÚÁÄÁÎ × ÆÏÒÍÁÈ æáêì, ëïíðøàôåò:æáêì ÉÌÉ ðïìøúï÷áôåìø@ëïíðøàôåò:æáêì;\n" "ÐÒÉ ÜÔÏÍ æáêì ÍÏÖÅÔ ÂÙÔØ ËÁË ÏÂÙÞÎÙÍ ÆÁÊÌÏÍ, ÔÁË É ÕÓÔÒÏÊÓÔ×ÏÍ. *üÔÏÔ* tar\n" "ÐÏ ÕÍÏÌÞÁÎÉÀ ÉÓÐÏÌØÚÕÅÔ ËÌÀÞÉ `-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "ï ÏÛÉÂËÁÈ ÓÏÏÂÝÁÊÔÅ ÐÏ ÁÄÒÅÓÕ .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "÷Ù ÎÅ ÍÏÖÅÔÅ ÕËÁÚÁÔØ ÂÏÌÅÅ ÏÄÎÏÇÏ ËÌÀÞÁ `-Acdtrux'" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "îÅÓÏ×ÍÅÓÔÉÍÙÅ ËÌÀÞÉ, ÕËÁÚÙ×ÁÀÝÉÅ ÔÉÐ ÓÖÁÔÉÑ" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "óÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "õÓÔÁÒÅ×ÛÉÊ ËÌÀÞ, ÔÅÐÅÒØ ÒÅÁÌÉÚÕÅÔÓÑ Ó ÐÏÍÏÝØÀ --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "õÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "õÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "õÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "âÏÌØÛÅ ÏÄÎÏÊ ÐÏÒÏÇÏ×ÏÊ ÄÁÔÙ" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "îÅ×ÅÒÎÙÊ ÆÏÒÍÁÔ ÄÁÔÙ -- `%s'" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "îÅÓÏ×ÍÅÓÔÉÍÙÅ ËÌÀÞÉ, ÕËÁÚÙ×ÁÀÝÉÅ ÆÏÒÍÁÔ ÁÒÈÉ×Á" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "õÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "õÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "õÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "õËÁÚÁÎÁ ÎÅ×ÅÒÎÁÑ ÇÒÕÐÐÁ ×ÌÁÄÅÎÉÑ" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "õËÁÚÁÎ ÎÅ×ÅÒÎÙÊ ÒÅÖÉÍ ÄÏÓÔÕÐÁ" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "õËÁÚÁÎ ÎÅ×ÅÒÎÙÊ ×ÌÁÄÅÌÅÃ" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "îÅÄÏÐÕÓÔÉÍÏÅ ÚÎÁÞÅÎÉÅ ÄÌÑ record_size" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "òÁÚÍÅÒ ÚÁÐÉÓÉ ÄÏÌÖÅÎ ÂÙÔØ ËÒÁÔÅÎ %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "*üÔÏÔ* tar ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÌÀÞÉ `-[0-7][lmh]'" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "üÔÁ ÐÒÏÇÒÁÍÍÁ -- Ó×ÏÂÏÄÎÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ; ÕÓÌÏ×ÉÑ ÅÅ ËÏÐÉÒÏ×ÁÎÉÑ\n" "ÓÍÏÔÒÉÔÅ × ÉÓÈÏÄÎÙÈ ÔÅËÓÔÁÈ. îÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔÓÑ îéëáëïê ÇÁÒÁÎÔÉÉ; × ÔÏÍ " "ÞÉÓÌÅ\n" "ÐÏÄÒÁÚÕÍÅ×ÁÅÍÏÊ ÇÁÒÁÎÔÉÉ ðïìåúîïóôé ÉÌÉ ðòéçïäîïóôé äìñ ïðòåäåìåîîïê ãåìé.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "á×ÔÏÒÙ: John Gilmore É Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "òÁÓÛÉÒÅÎÉÑ GNU ÚÁÐÒÏÛÅÎÙ ÎÁ ÎÅÓÏ×ÍÅÓÔÉÍÏÍ ÆÏÒÍÁÔÅ ÁÒÈÉ×Á" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "óÏÚÄÁÎÉÅ ÎÅÓËÏÌØËÉÈ ÁÒÈÉ×Ï× ÔÒÅÂÕÅÔ ËÌÀÞÁ `-M'" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "òÏÂËÉÊ ÏÔËÁÚ ÏÔ ÓÏÚÄÁÎÉÑ ÐÕÓÔÏÇÏ ÁÒÈÉ×Á" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "ëÌÀÞÉ `-Aru' ÎÅ ÓÏ×ÍÅÓÔÉÍÙ Ó `-f -'" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "÷Ù ÄÏÌÖÎÙ ÕËÁÚÁÔØ ÏÄÉÎ ÉÚ ËÌÀÞÅÊ `-Acdtrux'" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "÷ÙÈÏÄ, ÏÔÌÏÖÅÎÎÙÊ ÐÏ ÒÅÚÕÌØÔÁÔÁÍ ÐÒÅÄÙÄÕÝÉÈ ÏÛÉÂÏË" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "ïÛÉÂËÁ ÞÔÅÎÉÑ ÎÁ ÂÁÊÔÅ %ld ÐÒÉ ÞÔÅÎÉÉ %d ÂÁÊÔ ÉÚ ÆÁÊÌÁ %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: æÁÊÌ ÕÍÅÎØÛÉÌÓÑ ÎÁ %d ÂÁÊÔ" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "æÏÒÍÉÒÏ×ÁÎÉÅ ÆÁÊÌÏ× ÄÁÎÎÙÈ ÄÌÑ ÔÅÓÔÉÒÏ×ÁÎÉÑ GNU tar.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "éÓÐÏÌØÚÏ×ÁÎÉÅ: %s [ëìàþé]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "åÓÌÉ ÄÌÑ ÄÌÉÎÎÏÇÏ ËÌÀÞÁ ÎÕÖÅÎ ÁÒÇÕÍÅÎÔ, ÔÏ ÏÎ ÔÁËÖÅ ÎÕÖÅÎ É ÄÌÑ\n" "ÜË×É×ÁÌÅÎÔÎÏÇÏ ËÏÒÏÔËÏÇÏ ËÌÀÞÁ. áÎÁÌÏÇÉÞÎÏ Ó ÎÅÏÂÑÚÁÔÅÌØÎÙÍÉ ÁÒÇÕÍÅÎÔÁÍÉ.\n" "\n" " -l, --file-length=äìéîá äìéîá ÆÏÒÍÉÒÕÅÍÏÇÏ ÆÁÊÌÁ\n" " -p, --pattern=ûáâìïî ûáâìïî ÄÏÌÖÅÎ ÂÙÔØ `default' ÉÌÉ `zeros'\n" " --help ×Ù×ÅÓÔÉ ÜÔÕ ÐÏÄÓËÁÚËÕ É ×ÙÊÔÉ\n" " --version ×Ù×ÅÓÔÉ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÅÒÓÉÉ É ×ÙÊÔÉ\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "îÅÏÄÎÏÚÎÁÞÎÙÊ ÛÁÂÌÏÎ `%s'" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "îÅÉÚ×ÅÓÔÎÙÊ ÛÁÂÌÏÎ `%s'" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "á×ÔÏÒ: Francois Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "æÁËÔÉÞÅÓËÉ ÚÁÐÉÓÁÎÎÙÊ ÏÂßÅÍ ÓÏÓÔÁ×ÌÑÅÔ (Ñ ÎÁÄÅÀÓØ) %d.\n" #~ msgid "%d at %d\n" #~ msgstr "%d ÐÒÉ %d\n" tar-1.13/po/sl.po0000664000176300016070000013677606740055251007340 # -*- mode: po; coding: iso-latin-2; -*- Slovenian message catalog for GNU Tar # Copyright (C) 1996 Free Software Foundation, Inc. # Primoz Peterlin , 1996, 1999. # # $Id: tar-1.12.sl.po,v 1.4 1999/04/30 12:30:28 peterlin Exp peterlin $ # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: 1999-04-30 14:30\n" "Last-Translator: Primoz Peterlin \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8-bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Neveljavna oblika datuma v ,%s`" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Dvoumen vzorec ,%s`" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Neznana sistemska napaka" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Stara izbira ,%c' zahteva argument." #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Stara izbira ,%c' zahteva argument." #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Stara izbira ,%c' zahteva argument." #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Stara izbira ,%c' zahteva argument." #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Stara izbira ,%c' zahteva argument." #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Zmanjkalo pomnilnika" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Skupno zapisanih zlogov: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Ni mogoèe zapreti datoteke #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Ni mogoèe zapreti deskriptorja %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Ni mogoèe pravilno podvojiti %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Ni mogoèe uporabiti stisnjenih ali ne-lokalnih arhivov" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Ni mogoèe odpreti cevi" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Vejitev ni mo¾na" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (naslednik)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(naslednik) cev na stdin" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Ni mogoèe odpreti arhiva %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Arhiv na stdout" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Ni mogoèe pognati %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Vejitev naslednika ni mo¾na" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((naslednik)) cev na stdout" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (pranaslednik)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(pranaslednik) cev na stdin" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Branje z izhoda programa za stiskanje ne gre" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(naslednik) cev na stdout" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Arhiv na stdin" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((naslednik)) cev na stdin" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(pranaslednik) cev na stdout" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Pisanje na vhod programa za stiskanje ne gre" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Pisanje na vhod programa za stiskanje prekratko za %d zlogov" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Neveljavna vrednost za dol¾ino zapisa (record_size)" #: src/buffer.c:690 msgid "No archive name given" msgstr "Ime arhiva ni podano" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Ni mogoèe rezervirati pomnilnika za bloèni faktor %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Arhivov v veè delih ni mo¾no preveriti" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Stisnjeni arhivi v veè delih niso mo¾ni" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Stisnjenega arhiva ni mogoèe preveriti" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Stisnjenega arhiva ni mogoèe a¾urirati" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Arhivov na stdin/stdout ni mo¾no preveriti" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Ni mogoèe odpreti %s" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Oznaka arhiva ne ustreza ,%s`" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Del ,%s` ne ustreza ,%s`" # POZOR Poglej v source! #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Pisanje oznake %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Pisanje na %s ni mo¾no" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Samo %u od %u zlogov zapisanih na %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Napaka pri pisanju na %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Na zaèetku traku, konèujem" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "Preveè napak, konèujem" # POZOR Poglej v source! #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Branje oznake %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Branje %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "POZOR: Oznaka dela manjka" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s se ne nadaljuje v tem delu" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s je napaène velikosti (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Ta del ne sodi v zaporedje" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Dol¾ina zapisa = %d blokov" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "Arhiv %s se ne konèa s koncem bloka" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Prebrano samo %d zlogov z arhiva %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "POZOR: Ni mogoèe zapreti %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Nazaj po arhivu ne gre, morda ni berljiv brez izbire -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "POZOR: Ni mogoèe zapreti %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Naslednik umrl s signalom %d%s" # POZOR Imamo za to kak izraz? #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (core dumped)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Naslednik vrnil status %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Pripravite del #%d za %s in pritisnite Return: " #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "Znak EOF na mestu, kjer se prièakuje odgovor uporabnika" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "POZOR: Arhiv nepopoln" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [name] Podamo novo ime datoteke za naslednji del (in vse nadaljnje)\n" " q Konèamo tar\n" " ! Po¾enemo sekundarno ukazno lupino\n" " ? Ta seznam uzazov\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Novega dela ni, konec.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Vejitev ni mo¾na!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Ni mogoèe pognati lupine %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "" "Ni mogoèe rezervirati pomnilnika za %d zlogov velik medpomnilnik za diff" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Branje %s ni mo¾no" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Prebrati je bilo moè samo %d od %ld zlogov" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Podatki se razlikujejo" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Neprièakovan znak za konec datoteke v arhivu" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Pozicija %ld v datoteki %s ni dostopna" #: src/compare.c:422 msgid "File does not exist" msgstr "Datoteka ne obstaja" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Ni mogoèe do statistike za datoteko %s" #: src/compare.c:459 msgid "Verify " msgstr "Preverjanje " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "Neznan tip datoteke ,%c' za %s, diff kot na navadni datoteki" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Ni navadna datoteka" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Naèin se razlikuje" #: src/compare.c:505 msgid "Uid differs" msgstr "©tevilka uporabnika (UID) se razlikuje" #: src/compare.c:507 msgid "Gid differs" msgstr "©tevilka skupine (GID) se razlikuje" #: src/compare.c:511 msgid "Mod time differs" msgstr "Èas zadnje spremembe se razlikuje" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Velikost se razlikuje" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Napaka pri zapiranju %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Ne obstaja" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Ni povezana z %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Datoteka ali imenik s tem imenom ne obstaja" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Ni mogoèe prebrati povezave %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "Simbolna povezava se razlikuje" #: src/compare.c:666 msgid "Device numbers changed" msgstr "©tevilka enote je spremenjena" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Naèin ali tip enote je spremenjen" #: src/compare.c:726 msgid "No longer a directory" msgstr "Ni veè imenik" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Ni mogoèe odpreti datoteke %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Arhiva ni mo¾no previti na zaèetek, preverjanje ni mo¾no" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "NAPAKA: pri preverjanju najdeno %d neveljavnih glav" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Imena datotek v arhivu oèistimo imena pogona" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Imena datotek v arhivu oèistimo vodilnega ,/` pri absolutnih poteh" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Zapisano %ld od %ld zlogov na datoteko %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Napaka pri branju pri zlogu %ld, prebranih %d zlogov datoteke %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Napaka pri branju pri zlogu %ld, prebrano %d zlogov, v datoteki %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Datoteka %s skrèena za %d zlogov, dopolnimo z nièlami" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Ni mogoèe dodati datoteke %s" # POZOR Ni cisto to... #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: nespremenjena; brez sprememb" # POZOR Ni cisto to... #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s je v arhivu; brez sprememb" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Odstranjujemo vodilne ,/` iz absolutnih povezav" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Ni mogoèe odstraniti %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Datoteka %s skrèena za %d zlogov, dopolnimo z nièlami" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Ni mogoèe dodati imenika %s" # POZOR Ni cisto to... #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: Na drugem datoteènem sistemu; brez sprememb" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Ni mogoèe odpreti imenika %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Ime datoteke %s%s predolgo" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Neznan tip datoteke; datoteka ignorirana" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Repozicija arhiva neuspe¹na" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "To ne deluje kot arhiv ,tar'" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Preskok na naslednjo glavo" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Brisanje ne-glave iz arhiva" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Za¹èite ni mo¾no spremeniti na %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Èasa zadnje spremembe in dostopa ni mo¾no spremeniti" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Lastni¹tva ni moè spremeniti z lchown na UID %d GID %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Lastni¹tva ni moè spremeniti s chown na UID %d GID %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Ni mogoèe spremeniti lastnika in skupina na UID %d GID %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Zapis na datoteko ni mogoè" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Zapisanih samo %d od %d zlogov" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s: Varnostne kopije te datoteke ni moè napraviti" # POZOR! "contiguous files" so datoteke, ki so zapisane na disku # na zaporednih sektorjih (na tistih OS, ki jih podpirajo). #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Neprekinjene datoteke izvleèemo kot navadne" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Ni mogoèe ustvariti datoteke" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Zapisanih samo %d od %d zlogov" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Napaka pri zapiranju" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Ni mogoèe ustvariti simbolne povezave na ,%s'" # POZOR! Grdo! #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Simbolne povezave poskusimo dearhivirati kot trde" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Povezava na ,%s' ni mo¾na" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Ni mo¾no ustvariti vozla" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Ni mo¾no ustvariti FIFO" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Ni mo¾no ustvariti imenika" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Imeniku %s dodani dovoljenji za pisanje in izvajanje" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Dearhivacija ,%s' ni mo¾na - datoteka se nadaljuje iz prejn¹njega dela" #: src/extract.c:964 msgid "Visible long name error" msgstr "Opazna napaka zaradi dolgih imen" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Neznan tip ,%c' pri datoteki %s, dearhiviramo kot navadno datoteko" # POZOR -- oblike "to stat a file" slovenscina ne pozna #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Cannot stat %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Imenik %s je bil preimenovan" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Imenik %s je nov" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Ni mogoèe izvedeti trenutnega imenika" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Ni mogoèe izvedeti trenutnega imenika: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Ime datoteke %s/%s je predolgo" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "©tevilka enote je spremenjena" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Imenik %s ni dostopen" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Neprièakovan znak za konec datoteke v arhivu" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Bri¹emo %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Napaka pri brisanju %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Izpu¹èamo %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "blok %10ld: ** Blok znakov NUL **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "blok %10ld: ** Konec datoteke **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Hmm, to ne izgleda kot arhiv tar" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Preskoèimo na naslednjo glavo datoteke" #: src/list.c:213 msgid "EOF in archive file" msgstr "Znak za konec datoteke v arhivu" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Zapisanih samo %ld od %ld znakov na datoteko %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "blok %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Opazna napaka zaradi dolgih imen" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " povezava na %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " neznan tip ,%c'\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Glava dela--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Nadaljevanje pri zlogu %ld--\n" # POZOR Je to res to? #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Predelana imena datotek--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Ustvarjamo imenik:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Neprièakovan znak za konec datoteke med predelanimi imeni" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Datoteke %s ni mogoèe preimenovati v %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Datoteka %s preimenovana v %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Simbolna povezava %s na %s ni mogoèa" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s simbolno povezano z %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Neznan ukaz %s za restavriranje izvornih imen" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Datoteka %s preimenovana v %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Datoteke %s ni mogoèe preimenovati v %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Datoteke %s ni mogoèe preimenovati v %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Datoteka %s preimenovana v %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Imenik %s ni dosegljiv" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Za izbiro -C manjka ime datoteke" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Ni najdeno v arhivu" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Ni mogoèe rezervirati prostora za medpomnilnik\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Ni mogoèe rezervirati prostora za medpomnilnik" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: Predèasen znak za konec datoteke\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "Predèasen znak za konec datoteke" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Neveljaven ukaz %c\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Neveljaven ukaz" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Storitev ni dosegljiva" #: src/rtapelib.c:301 msgid "stdin" msgstr "standardni vhod" #: src/rtapelib.c:304 msgid "stdout" msgstr "standardni izhod" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Ni mogoèe pognati nelokalne ukazne lupine" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Izbiri ,-%s' in ,-%s' obe zahtevata standardni vhod" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Uporabnikova potrditev ni izvedljiva" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Poskusite ,%s --help' za izèrpnej¹a navodila.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU ,tar` shranjuje veè datotek skupaj na trak ali arhiv na disku, ter " "lahko\n" "vrne posamezne datoteke iz arhiva.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Uporaba: %s [IZBIRA]... [DATOTEKA]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Èe je pri dalj¹i obliki izbire napisano, da ta zahteva argument, je " "argument\n" "obvezen tudi za kratko obliko. Podobno velja za neobvezne argumente.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Glavni naèini delovanja:\n" " -t, --list izpis vsebine arhiva\n" " -x, --extract, --get izvleèenje datoteke iz arhiva\n" " -c, --create ustvarjanje novega arhiva\n" " -d, --diff, --compare iskanje razlik med arhivom in datoteènim sistemom\n" " -r, --append dodajanje datotek na konec arhiva\n" " -u, --update nadomestitev starih/dodajanje novih datotek\n" " -A, --catenate zlivanje arhivov\n" " --concatenate isto kot -A\n" " --delete brisanje datotek iz arhiva (ne deluje na traku!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Doloèila:\n" " -W, --verify s poskusom preverjanja zapisanega arhiva\n" " --remove-files z brisanjem datotek, dodanih v arhiv\n" " -k, --keep-old-files brez brisanja obstojeèih datotek pri " "izvlaèenju\n" " -U, --unlink-first z brisanjem starih datotek pri izvlaèenju " "novih\n" " prek njih (tudi celih imenikov, èe je dan " "dvakrat)\n" " --recursive-unlink izpraznimo hierarhije pred izvlaèenjem " "imenikov\n" " -S, --sparse ekonomièno ravnanje z razpr¹enimi datotekami\n" " -O, --to-stdout izvlaèenje na standardni izhod\n" " -G, --incremental stari format GNU za inkrementalne arhive\n" " -g, --listed-incremental novi format GNU za inkrementalne arhive\n" " --ignore-failed-read nadaljuj z branjem, tudi èe datoteke ni moè " "prebrati\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Ravnanje z atributi datotek:\n" " --owner=IME pri dodajanju datotek spremenimo lastnika v " "IME\n" " --group=IME pri dodajanju datotek spremenimo skupino v " "IME\n" " --mode=ZA©ÈITA pri dodajanju datotek nastavimo ZA©ÈITO\n" " --atime-preserve brez spreminjanja èasa zadnjega dostopa\n" " -m, --modification-time brez izvlaèenja èasa spremembe\n" " --same-owner z ohranitvijo lastni¹tva, èe je mo¾no\n" " --numeric-owner s ¹tevilènimi vrednostmi UID/GID namesto " "imen\n" " -p, --same-permissions z ohranitvijo za¹èite datotek\n" " --preserve-permissions isto kot -p\n" " -s, --same-order imena razvrstimo tako, da se ujemajo z " "arhivom\n" " --preserve-order isto kot -s\n" " --preserve isto kot -p in -s skupaj\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Izbira enote:\n" " -f, --file=ARHIV uporabi datoteko ali enoto ARHIV\n" " --force-local arhiv je lokalen ne glede na dvopièje v " "imenu\n" " --rsh-command=UKAZ uporabi nelokalen UKAZ namesto rsh\n" " -[0-7][lmh] doloèi enoto in gostoto zapisa\n" " -M, --multi-volume ustvarjanje/pregled/izvleèek arhiva v veè " "delih\n" " -L, --tape-length=©T menjava traku po ©T x 1024 zapisanih " "zlogih\n" " -F, --info-script=SKRIPT po¾eni SKRIPT po koncu traku (privzema -M)\n" " --new-volume-script=SKRIPT isto kot -F SKRIPT\n" " --volno-file=DATOTEKA uporabimo/a¾uriramo ¹tevilo dela v " "DATOTEKI\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Bloèna razdelitev enote:\n" " -b, --blocking-factor=BLOKI dol¾ina zapisa BLOKI x 512 zlogov\n" " --record-size=DOL®INA DOL®INA zapisa v zlogih (veèkratnik 512)\n" " -i, --ignore-zeros ne meni se za bloke nièel (EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Izbira formata arhiva:\n" " -V, --label=IME ustvarjanje arhiva z danim IMENOM\n" " VZOREC pri pregledu vsebine/izvleèku je ime\n" " lahko regularni izraz VZOREC\n" " -o, --old-archive, --portability zapis arhiva v formatu V7\n" " --posix zapis arhiva v formatu POSIX\n" " -z, --gzip, --ungzip arhiv spustimo skozi program gzip\n" " -Z, --compress, --uncompress arhiv spustimo skozi program compress\n" " --use-compress-program=PROGRAM arhiv spustimo skozi PROGRAM (ki mora\n" " sprejemati izbiro -d)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Izbira lokalne datoteke:\n" " -C, --directory=IMENIK prestavimo se v navedeni IMENIK\n" " -T, --files-from=DATOTEKE seznam datotek preberemo z navedene DATOTEKE\n" " --null -T prebere z \\000 terminirana imena; onemogoèi " "-C\n" " --exclude=VZOREC razen datotek, ki jih opisuje VZOREC\n" " -X, --exclude-from=DATOTEKA vse datoteke razen vzorcev, prebranih z " "DATOTEKE\n" " -P, --absolute-names ohranimo vodilni ,/` pri imenih datotek\n" " -h, --dereference shranimo datoteke, na katere ka¾ejo simbolne " "povezave\n" " --no-recurse podimenikov ne vkljuèujemo avtomatièno\n" " -l, --one-file-system izpustimo datotek na nelokalnih datoteènih " "sistemih\n" " -K, --starting-file=IME zaèen¹i z navedenim IMENOM v arhivu\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATUM arhiviramo samo datoteke, mlaj¹e od DATUMA\n" " --newer-mtime datum in èas primerjamo le ob spremembah " "podatkov\n" " --after-date=DATUM isto kot -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=CONTROL] varnostna kopija pred brisanjem, z mo¾nostjo\n" " izbire nadzora verzije\n" " --suffix=SUFFIX varnostna kopija pred brisanjem, doloèimo " "pripono\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Informativni izpisi:\n" " --help ta navodila\n" " --version verzija programa\n" " -v, --verbose z zgovornim izpisom obdelanih datotek\n" " --checkpoint z izpisom imenikov pri branju arhiva\n" " --totals z izpisom celotne dol¾ine pri zapisu\n" " -R, --block-number z izpisom zaporednega bloka v arhivu ob vsakem " "sporoèilu\n" " -w, --interactive z uporabnikovo potrditvijo za vsako opravilo\n" " --confirmation isto kot -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Pripona varnostne kopije je ,~`, razen èe ni drugaèe doloèeno z izbiro " "--suffix\n" "ali s spremenljivko SIMPLE_BACKUP_SUFFIX. Tip varnostne kopije lahko " "doloèimo z\n" "izbiro --backup ali s spremenljivko VERSION_CONTROL. Vrednosti so:\n" "\n" " t, numbered o¹tevilèene varnostne kopije\n" " nil, existing o¹tevilèene varnostne kopije, èe take ¾e obstajajo,\n" " sicer enostavne\n" " never, simple vedno enostavne varnostne kopije\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU tar ne zna ne prebrati in ne ustvariti arhivov ,--posix`. Pri " "nastavljeni\n" "spremenljivki POSIXLY_CORRECT in uporabi izbire ,--posix` raz¹iritve GNU " "niso\n" "dovoljene. Podpora za POSIX ¹e ni v celoti izvedena, ne zana¹ajte se nanjo.\n" "ARHIV je lahko podan v obliki DATOTEKA, RAÈUNALNIK:DATOTEKA ali\n" "UPORABNIK@RAÈUNALNIK:DATOTEKA; kjer je DATOTEKA lahko datoteka ali enota.\n" "Privzeta izbira *tega* programa ,tar` je `-f%s -b%d'.\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Poroèila o morebitnih napakah javite na .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Najveè ena od izbir ,,-Acdtrux'' je dovoljena naenkrat" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Nasprotujoèe si izbire glede stiskanja arhiva" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Stara izbira ,%c' zahteva argument." #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Zastarela izbira, zdaj privzeta z --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Zastarela izbira, zdaj nadome¹èena z --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Zastarela izbira, zdaj nadome¹èena z --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Zastarela izbira, zdaj nadome¹èena z --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Veè kot en pra¾ni podatek" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Neveljavna oblika datuma v ,%s`" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Nasprotujoèe si izbire glede formata arhiva" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Zastarela izbira, zdaj nadome¹èena z --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Zastarela izbira, zdaj nadome¹èena z --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Zastarela izbira, zdaj nadome¹èena z --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Podana skupina ni veljavna" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Podana za¹èita ni veljavna" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Podani uporabnik ni veljaven" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Neveljavna vrednost za dol¾ino zapisa (record_size)" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Dol¾ina zapisa mora biti veèkratnik %d." #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "*Ta* tar ne podpira izbir ,,-[0-7][lmh]''" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Avtorske pravice (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, " "Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "To je prost program; pogoji, pod katerimi ga lahko razmno¾ujete in\n" "raz¹irjate so navedeni v izvorni kodi. Za program ni NOBENEGA jamstva,\n" "niti jamstev USTREZNOSTI ZA PRODAJO ali PRIMERNOSTI ZA UPORABO.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Avtorja John Gilmore in Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "Raz¹iritve GNU izbrane na nezdru¾ljivem formatu arhiva" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Arhivi v veè delih zahtevajo izbiro ,-M'" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Zahteva po odprtju praznega arhiva bojazljivo zavrnjena" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Izbire ,-Ary' so nezdru¾ljive z ,,-f -''" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Ena od izbir ,,-Acdtrux'' je obvezna" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Izhod ob napaki zakasnjen zaradi prej¹njih napak" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Napaka pri branju pri zlogu %ld, prebranih %d zlogov datoteke %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Datoteka skrèena za %d zlogov, (yark!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Ustvarimo podatkovne datoteke za testno zbirko GNU tar.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Uporaba: %s [IZBIRA]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Argumenti, ki so obvezni za dolge oblike izbire, so obvezni tudi za kratke.\n" "\n" " -l, --file-length=DOL®INA DOL®INA ustvarjene datoteke\n" " -p, --pattern=VZOREC mo¾nosti za VZOREC sta ,default` in ,zeros`\n" " --help ta navodila\n" " --version verzija programa\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Dvoumen vzorec ,%s`" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Neznan vzorec ,%s`" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright (C) 1988, 1992-1997, 1998 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Avtor François Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Dejanska zapisana kolièina: %d (upajmo)\n" #~ msgid "%d at %d\n" #~ msgstr "%d pri %d\n" #~ msgid "Volume mismatch! %s!=%s" #~ msgstr "Oznaka dela se ne ujema! %s != %s" #~ msgid "EOF? What does that mean?" #~ msgstr "Konec datoteke?" #~ msgid "Mode" #~ msgstr "Naèin" #~ msgid "Uid" #~ msgstr "UID" #~ msgid "Gid" #~ msgstr "GID" #~ msgid "Size" #~ msgstr "Velikost" #~ msgid "Missing filename after -C" #~ msgstr "Za izbiro -C manjka ime datoteke" #~ msgid "" #~ "Mandatory or optional arguments to long options are mandatory or optional\n" #~ "for short options too.\n" #~ msgstr "" #~ "Argumenti, ki so bodisi obvezni bodisi neobvezni za dolge oblike izbir,\n" #~ "so obvezni/neobvezni tudi za kratke oblike.\n" #~ msgid "Bad regular expression: %s" #~ msgstr "Nepravilen regularen izraz: %s" #~ msgid "File %s\n" #~ msgstr "Datoteka %s\n" #~ msgid "Junk files\n" #~ msgstr "Po¹kodovane datoteke\n" #~ msgid "file %s\n" #~ msgstr "datoteka %s\n" #~ msgid "Skip %ld\n" #~ msgstr "Preskok %ld zlogov\n" #~ msgid "Out of first loop\n" #~ msgstr "Izven prve zanke\n" #~ msgid "Saved %d blocks, need %d more\n" #~ msgstr "Shranjenih %d blokov, potrebuje se jih ¹e %d\n" #~ msgid "New record\n" #~ msgstr "Nov zapis\n" #~ msgid "Header type %d\n" #~ msgstr "Tip glave %d\n" #~ msgid "File %s " #~ msgstr "Datoteka %s " #~ msgid "Flush it\n" #~ msgstr "Izpraznitev medpomnilnika\n" #~ msgid "Flushing %d blocks from %s\n" #~ msgstr "Izpraznitev %d blokov iz %s\n" #~ msgid "Block: %d <= %d " #~ msgstr "Blok: %d <= %d " #~ msgid "Block %d left\n" #~ msgstr "©e %d blokov\n" #~ msgid "Final %d\n" #~ msgstr "Zadnjih %d\n" #~ msgid "Need %d kept_in %d keep %d\n" #~ msgstr "Potrebno %d shranjenih %d shranjujem %d\n" #~ msgid "Flush...\n" #~ msgstr "Izpraznitev...\n" #~ msgid "Copying %d\n" #~ msgstr "Kopiranje %d\n" #~ msgid "Now new %d need %d keep %d keep_in %d block %d/%d\n" #~ msgstr "" #~ "Zdaj novih %d potrebnih %d shranjujem %d shranjenih %d blok %d/%d\n" #~ msgid "Write record\n" #~ msgstr "Pisanje zapisa\n" #~ msgid "Fore to %x\n" #~ msgstr "Naprej na %x\n" tar-1.13/po/sv.po0000664000176300016070000013133606740055251007335 # Swedish messages for tar # Copyright © 1996 Free Software Foundation, Inc. # Jan Djärv , 1996. # $Revision: 1.23 $ # msgid "" msgstr "" "Project-Id-Version: tar 1.12\n" "POT-Creation-Date: 1999-07-04 23:46-0700\n" "PO-Revision-Date: $Date: 1997-05-01 14:55:12+02:00 $\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: lib/argmatch.c:167 #, fuzzy, c-format msgid "invalid argument `%s' for `%s'" msgstr "Ogiltigt datumformat \"%s\"" #: lib/argmatch.c:168 #, fuzzy, c-format msgid "ambiguous argument `%s' for `%s'" msgstr "Tvetydigt mönster \"%s\"" #. We try to put synonyms on the same line. The assumption is that #. synonyms follow each other #: lib/argmatch.c:188 msgid "Valid arguments are:" msgstr "" #: lib/error.c:102 src/rmt.c:89 msgid "Unknown system error" msgstr "Okänt systemfel" #: lib/getopt.c:677 #, c-format msgid "%s: option `%s' is ambiguous\n" msgstr "" #: lib/getopt.c:702 #, fuzzy, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "Gammal flagga \"%c\" behöver ett argument" #: lib/getopt.c:707 #, fuzzy, c-format msgid "%s: option `%c%s' doesn't allow an argument\n" msgstr "Gammal flagga \"%c\" behöver ett argument" #: lib/getopt.c:725 lib/getopt.c:898 #, fuzzy, c-format msgid "%s: option `%s' requires an argument\n" msgstr "Gammal flagga \"%c\" behöver ett argument" #. --option #: lib/getopt.c:754 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #. +option or -option #: lib/getopt.c:758 #, c-format msgid "%s: unrecognized option `%c%s'\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:784 #, c-format msgid "%s: illegal option -- %c\n" msgstr "" #: lib/getopt.c:787 #, c-format msgid "%s: invalid option -- %c\n" msgstr "" #. 1003.2 specifies the format of this message. #: lib/getopt.c:817 lib/getopt.c:947 #, fuzzy, c-format msgid "%s: option requires an argument -- %c\n" msgstr "Gammal flagga \"%c\" behöver ett argument" #: lib/getopt.c:864 #, c-format msgid "%s: option `-W %s' is ambiguous\n" msgstr "" #: lib/getopt.c:882 #, fuzzy, c-format msgid "%s: option `-W %s' doesn't allow an argument\n" msgstr "Gammal flagga \"%c\" behöver ett argument" #. If XALLOC_FAIL_FUNC is NULL, or does return, display this message #. before exiting when memory is exhausted. Goes through gettext. #: lib/xmalloc.c:66 src/compare.c:316 src/incremen.c:683 src/list.c:390 #: src/mangle.c:53 src/tar.c:837 msgid "Memory exhausted" msgstr "Minnet slut" #: src/arith.c:112 src/arith.c:132 msgid "Arithmetic overflow" msgstr "" #: src/buffer.c:157 msgid "Total bytes written: " msgstr "Totalt antal byte skrivna: " #: src/buffer.c:252 #, c-format msgid "Cannot close file #%d" msgstr "Kan inte stänga fil #%d" #: src/buffer.c:268 #, c-format msgid "Cannot close descriptor %d" msgstr "Kan inte stänga filnummer %d" #: src/buffer.c:271 #, c-format msgid "Cannot properly duplicate %s" msgstr "Kan inte duplicera %s" #: src/buffer.c:285 src/buffer.c:295 msgid "Cannot use compressed or remote archives" msgstr "Kan inte använda komprimerade arkiv eller fjärrarkiv" #: src/buffer.c:349 src/buffer.c:406 src/buffer.c:511 src/buffer.c:560 msgid "Cannot open pipe" msgstr "Kan inte öppna rör" #: src/buffer.c:353 src/buffer.c:515 msgid "Cannot fork" msgstr "Kan inte grena" #. The new born child tar is here! #: src/buffer.c:366 src/buffer.c:529 msgid "tar (child)" msgstr "tar (barn)" #: src/buffer.c:368 msgid "(child) Pipe to stdin" msgstr "(barn) Rör till standard in" #: src/buffer.c:393 src/buffer.c:439 src/buffer.c:548 src/buffer.c:593 #, c-format msgid "Cannot open archive %s" msgstr "Kan inte öppna arkivet %s" #: src/buffer.c:396 msgid "Archive to stdout" msgstr "Arkiv till standard ut" #: src/buffer.c:399 src/buffer.c:421 src/buffer.c:553 src/buffer.c:574 #, c-format msgid "Cannot exec %s" msgstr "Kan inte exekvera %s" #: src/buffer.c:410 src/buffer.c:564 msgid "Child cannot fork" msgstr "Barnet kan inte grena" #: src/buffer.c:417 msgid "((child)) Pipe to stdout" msgstr "((barn)) Rör standard ut" #. The new born grandchild tar is here! #: src/buffer.c:427 src/buffer.c:580 msgid "tar (grandchild)" msgstr "tar (barnbarn)" #. Prepare for reblocking the data from the compressor into the archive. #: src/buffer.c:431 msgid "(grandchild) Pipe to stdin" msgstr "(barnbarn) Rör till standard in" #: src/buffer.c:466 msgid "Cannot read from compression program" msgstr "Kan inte läsa från komprimeringsprogrammet" #: src/buffer.c:531 msgid "(child) Pipe to stdout" msgstr "(barn) Rör till standard ut" #: src/buffer.c:550 msgid "Archive to stdin" msgstr "Arkiv till standard in" #. The child tar is still here! Launch the uncompressor. #: src/buffer.c:570 msgid "((child)) Pipe to stdin" msgstr "((barn)) Rör till standard in" #. Prepare for unblocking the data from the archive into the uncompressor. #: src/buffer.c:584 msgid "(grandchild) Pipe to stdout" msgstr "(barnbarn) Rör till standard ut" #: src/buffer.c:623 msgid "Cannot write to compression program" msgstr "Kan inte skriva till komprimeringsprogrammet" #: src/buffer.c:628 #, fuzzy, c-format msgid "Write to compression program short %lu bytes" msgstr "Skriver till komprimeringsprogram men är %d byte kort" #: src/buffer.c:687 msgid "Invalid value for record_size" msgstr "Ogiltigt värde på record_size" #: src/buffer.c:690 msgid "No archive name given" msgstr "Arkivnamn saknas" #: src/buffer.c:717 #, c-format msgid "Could not allocate memory for blocking factor %d" msgstr "Kunde inte allokera minne för blockfaktor %d" #: src/buffer.c:726 msgid "Cannot verify multi-volume archives" msgstr "Flervolymsarkiv kan inte verifieras" #: src/buffer.c:731 msgid "Cannot use multi-volume compressed archives" msgstr "Kan inte använda komprimerade flervolymsarkiv" #: src/buffer.c:733 msgid "Cannot verify compressed archives" msgstr "Komprimerade arkiv kan inte verifieras" #: src/buffer.c:746 msgid "Cannot update compressed archives" msgstr "Komprimerade arkiv kan inte uppdateras" #: src/buffer.c:757 msgid "Cannot verify stdin/stdout archive" msgstr "Kan inte verifiera standard in/ut-arkiv" #: src/buffer.c:811 src/buffer.c:1702 src/compare.c:533 src/incremen.c:456 #: src/names.c:904 #, c-format msgid "Cannot open %s" msgstr "Kan inte öppna %s" #: src/buffer.c:856 #, c-format msgid "Archive not labelled to match `%s'" msgstr "Arkivet är inte märkt för att stämma med \"%s\"" #: src/buffer.c:859 src/buffer.c:1189 #, c-format msgid "Volume `%s' does not match `%s'" msgstr "Volym \"%s\" överensstämmer inte med \"%s\"" #: src/buffer.c:898 #, c-format msgid "Write checkpoint %d" msgstr "Skriver kontrollpunkt %d" #: src/buffer.c:1064 src/incremen.c:521 #, c-format msgid "Cannot write to %s" msgstr "Kan inte skriva till %s" #: src/buffer.c:1067 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to %s" msgstr "Skrev bara %u av %u byte till %s" #: src/buffer.c:1080 #, c-format msgid "Read error on %s" msgstr "Läsfel i %s" #: src/buffer.c:1083 msgid "At beginning of tape, quitting now" msgstr "Vid bandets början, avslutar nu" #: src/buffer.c:1089 msgid "Too many errors, quitting" msgstr "För många fel, avslutar" #: src/buffer.c:1105 #, c-format msgid "Read checkpoint %d" msgstr "Läser kontrollpunkt %d" #: src/buffer.c:1197 src/extract.c:946 #, c-format msgid "Reading %s\n" msgstr "Läser %s\n" #: src/buffer.c:1201 msgid "WARNING: No volume header" msgstr "VARNING: Inget volymhuvud" #: src/buffer.c:1209 #, c-format msgid "%s is not continued on this volume" msgstr "%s fortsätter inte i denna volym" #: src/buffer.c:1223 #, fuzzy, c-format msgid "%s is the wrong size (%s != %s + %s)" msgstr "%s har fel storlek (%ld != %ld + %ld)" #: src/buffer.c:1235 msgid "This volume is out of sequence" msgstr "Denna volym kommer inte i rätt ordning" #: src/buffer.c:1263 #, fuzzy, c-format msgid "Record size = %lu blocks" msgstr "Poststorlek = %d block" #: src/buffer.c:1284 #, c-format msgid "Archive %s EOF not on block boundary" msgstr "I arkiv %s är inte filslut vid en blockgräns" #: src/buffer.c:1292 #, fuzzy, c-format msgid "Only read %lu bytes from archive %s" msgstr "Läste bara %d byte från arkivet %s" #: src/buffer.c:1317 src/buffer.c:1428 src/buffer.c:1544 #, c-format msgid "WARNING: Cannot close %s (%d, %d)" msgstr "VARNING: Kan inte stänga %s (%d, %d)" #. Lseek failed. Try a different method. #: src/buffer.c:1373 msgid "Could not backspace archive file; it may be unreadable without -i" msgstr "Kunde inte söka bakåt i arkivfilen, den kan vara oläsbar utan -i" #: src/buffer.c:1418 #, fuzzy, c-format msgid "WARNING: Cannot truncate %s" msgstr "VARNING: Kan inte stänga %s (%d, %d)" #: src/buffer.c:1456 #, c-format msgid "Child died with signal %d%s" msgstr "Barnet dog med signal %d%s" #: src/buffer.c:1458 msgid " (core dumped)" msgstr " (minnet sparat)" #: src/buffer.c:1467 #, c-format msgid "Child returned status %d" msgstr "Barnet avslutade med slutstatus %d" #: src/buffer.c:1574 #, c-format msgid "Prepare volume #%d for %s and hit return: " msgstr "Gör iordning volym nummer %d för %s och tryck vagnretur:" #: src/buffer.c:1580 msgid "EOF where user reply was expected" msgstr "Filslut vid förväntat användarsvar" #: src/buffer.c:1585 src/buffer.c:1614 msgid "WARNING: Archive is incomplete" msgstr "VARNING: Arkivet är ofullständigt" #: src/buffer.c:1598 msgid "" " n [name] Give a new file name for the next (and subsequent) volume(s)\n" " q Abort tar\n" " ! Spawn a subshell\n" " ? Print this list\n" msgstr "" " n [namn] Ge ett nytt filnamn för nästa (och efterföljande) volym(er)\n" " q Avsluta programmet\n" " ! Starta ett underskal\n" " ? Skriv denna lista\n" #. Quit. #: src/buffer.c:1609 msgid "No new volume; exiting.\n" msgstr "Ingen ny volym; avslutar.\n" #: src/buffer.c:1644 msgid "Cannot fork!" msgstr "Kan inte grena!" #: src/buffer.c:1654 #, c-format msgid "Cannot exec a shell %s" msgstr "Kan inte exekvera ett skal %s" #: src/compare.c:50 #, fuzzy, c-format msgid "Could not allocate memory for diff buffer of %lu bytes" msgstr "Kunde inte allokera minne för skillnadsbuffert med %d byte" #: src/compare.c:96 src/compare.c:328 src/compare.c:358 #, c-format msgid "Cannot read %s" msgstr "Kan inte läsa %s" #: src/compare.c:101 src/compare.c:335 src/compare.c:365 #, fuzzy, c-format msgid "Could only read %lu of %lu bytes" msgstr "Kunde bara läsa %d av %ld byte" #: src/compare.c:110 src/compare.c:130 src/compare.c:403 msgid "Data differs" msgstr "Data är olika" #: src/compare.c:159 src/extract.c:335 src/extract.c:644 src/list.c:398 #: src/list.c:1034 msgid "Unexpected EOF on archive file" msgstr "Oväntat filslut i arkivfilen" #: src/compare.c:306 src/compare.c:777 #, fuzzy, c-format msgid "Cannot seek to %s in file %s" msgstr "Kan inte söka till %ld i filen %s" #: src/compare.c:422 msgid "File does not exist" msgstr "Filen existerar inte" #: src/compare.c:425 src/compare.c:585 #, c-format msgid "Cannot stat file %s" msgstr "Kan inte ta status på filen %s" #: src/compare.c:459 msgid "Verify " msgstr "Verifierar " #: src/compare.c:466 #, c-format msgid "Unknown file type '%c' for %s, diffed as normal file" msgstr "Okänd filtyp \"%c\" för %s, jämförd som en normal fil" #: src/compare.c:491 src/compare.c:750 msgid "Not a regular file" msgstr "Inte en normal fil" #: src/compare.c:498 src/compare.c:731 msgid "Mode differs" msgstr "Rättigheterna är olika" #: src/compare.c:505 msgid "Uid differs" msgstr "Uid är olika" #: src/compare.c:507 msgid "Gid differs" msgstr "Gid är olika" #: src/compare.c:511 msgid "Mod time differs" msgstr "Modifieringstiderna är olika" #: src/compare.c:515 src/compare.c:759 msgid "Size differs" msgstr "Storlekarna är olika" #: src/compare.c:562 src/compare.c:797 #, c-format msgid "Error while closing %s" msgstr "Fel vid stängning av %s" #: src/compare.c:582 msgid "Does not exist" msgstr "Existerar inte" #: src/compare.c:596 #, c-format msgid "Not linked to %s" msgstr "Inte länkad till %s" #: src/compare.c:616 msgid "No such file or directory" msgstr "Filen eller katalogen finns inte" #: src/compare.c:619 #, c-format msgid "Cannot read link %s" msgstr "Kan inte läsa länk %s" #: src/compare.c:627 msgid "Symlink differs" msgstr "Symboliska länkar är olika" #: src/compare.c:666 msgid "Device numbers changed" msgstr "Enhetsnummer har ändrats" #: src/compare.c:680 msgid "Mode or device-type changed" msgstr "Rättighet eller enhetstyp har ändrats" #: src/compare.c:726 msgid "No longer a directory" msgstr "Inte längre en katalog" #: src/compare.c:768 src/names.c:268 src/update.c:55 #, c-format msgid "Cannot open file %s" msgstr "Kan inte öppna filen %s" #: src/compare.c:850 msgid "Could not rewind archive file for verify" msgstr "Kunde inte gå till början på arkivfilen för verifikation" #: src/compare.c:877 #, c-format msgid "VERIFY FAILURE: %d invalid header(s) detected" msgstr "VERIFIKATIONSFEL: %d okända arkivhuvuden upptäckta" #: src/create.c:113 #, c-format msgid "%s value %s too large (max=%s); substituting %s" msgstr "" #: src/create.c:119 #, c-format msgid "%s value %s too large (max=%s)" msgstr "" #: src/create.c:294 msgid "Removing drive spec from names in the archive" msgstr "Tar bort enhetsnamn från namnen i arkivet" #: src/create.c:305 src/extract.c:434 msgid "Removing leading `/' from absolute path names in the archive" msgstr "Tar bort inledande \"/\" från absoluta sökvägar i arkivet" #: src/create.c:638 #, fuzzy, c-format msgid "Wrote %s of %s bytes to file %s" msgstr "Skrev %ld av %ld byte till fil %s" #: src/create.c:648 #, fuzzy, c-format msgid "lseek error at byte %s in file %s" msgstr "Läsfel vid byte %ld vid läsning av %d byte från fil %s" #: src/create.c:677 src/create.c:703 src/create.c:1204 #, fuzzy, c-format msgid "Read error at byte %s, reading %lu bytes, in file %s" msgstr "Läsfel vid byte %ld, läste %d byte, i fil %s" #: src/create.c:716 #, fuzzy, c-format msgid "File %s shrunk, padding with zeros" msgstr "Filen %s krympte med %d byte, fyller ut med nolltecken" #: src/create.c:832 src/create.c:1094 src/create.c:1284 #, c-format msgid "Cannot add file %s" msgstr "Kan inte lägga till filen %s" #: src/create.c:863 #, c-format msgid "%s: is unchanged; not dumped" msgstr "%s: är oförändrad; inte arkiverad" #: src/create.c:873 #, c-format msgid "%s is the archive; not dumped" msgstr "%s är arkivet; inte arkiverat" #: src/create.c:918 msgid "Removing leading `/' from absolute links" msgstr "Tar bort inledande \"/\" från absoluta länkar" #: src/create.c:948 src/create.c:1248 src/create.c:1308 src/create.c:1560 #, c-format msgid "Cannot remove %s" msgstr "Kan inte ta bort %s" #: src/create.c:1223 #, fuzzy, c-format msgid "File %s shrunk by %s bytes, padding with zeros" msgstr "Filen %s krympte med %d byte, fyller ut med nolltecken" #: src/create.c:1239 #, c-format msgid "%s: file changed as we read it" msgstr "" #: src/create.c:1241 #, c-format msgid "%s: close" msgstr "" #: src/create.c:1332 #, c-format msgid "Cannot add directory %s" msgstr "Kan inte lägga till katalogen %s" #: src/create.c:1457 #, c-format msgid "%s: On a different filesystem; not dumped" msgstr "%s: På ett annat filsystem; inte arkiverad" #: src/create.c:1468 src/incremen.c:192 #, c-format msgid "Cannot open directory %s" msgstr "Kan inte öppna katalogen %s" #: src/create.c:1492 #, c-format msgid "File name %s%s too long" msgstr "Filnamnet %s%s är för långt" #: src/create.c:1565 #, c-format msgid "%s: Unknown file type; file ignored" msgstr "%s: Okänd filtyp; filen ignorerad" #: src/delete.c:55 src/delete.c:62 src/delete.c:84 msgid "Could not re-position archive file" msgstr "Kunde inte byta position i arkivfilen" #: src/delete.c:180 src/update.c:163 msgid "This does not look like a tar archive" msgstr "Det här ser inte ut som ett \"tar\"-arkiv" #: src/delete.c:185 src/update.c:168 msgid "Skipping to next header" msgstr "Hoppar till nästa filhuvud" #: src/delete.c:263 msgid "Deleting non-header from archive" msgstr "Tar bort icke-huvuddata från arkivet" #: src/extract.c:107 #, fuzzy, c-format msgid "%s: Cannot change mode to %04lo" msgstr "%s: Kan inte ändra rättigheter till %0.4o" #: src/extract.c:150 #, c-format msgid "%s: Could not change access and modification times" msgstr "%s: Kunde inte ändra åtkomst- och modifieringstid" #: src/extract.c:177 #, fuzzy, c-format msgid "%s: Cannot lchown to uid %lu gid %lu" msgstr "%s: Kan inte byta ägare (lchown) till uid %d gid %d" #: src/extract.c:185 src/extract.c:196 #, fuzzy, c-format msgid "%s: Cannot chown to uid %lu gid %lu" msgstr "%s: Kan inte byta ägare (chown) till uid %d gid %d" #: src/extract.c:252 #, fuzzy, c-format msgid "%s: Cannot change owner to uid %lu, gid %lu" msgstr "%s: Kan inte byta ägare till uid %d, gid %d" #: src/extract.c:341 #, c-format msgid "%s: lseek error at byte %s" msgstr "" #: src/extract.c:351 src/extract.c:361 src/extract.c:664 #, c-format msgid "%s: Could not write to file" msgstr "%s: Kunde inte skriva till fil" #: src/extract.c:366 #, fuzzy, c-format msgid "%s: Could only write %s of %s bytes" msgstr "%s: Kunde bara skriva %d av %d byte" #: src/extract.c:444 #, c-format msgid "%s: Was unable to backup this file" msgstr "%s kunde inte säkerhetskopieras" #: src/extract.c:585 msgid "Extracting contiguous files as regular files" msgstr "Extraherar sammanhängande filer som vanliga filer" #: src/extract.c:597 #, c-format msgid "%s: Could not create file" msgstr "%s: Kunde inte skapa fil" #: src/extract.c:667 #, fuzzy, c-format msgid "%s: Could only write %lu of %lu bytes" msgstr "%s: Kunde bara skriva %d av %d byte" #: src/extract.c:687 #, c-format msgid "%s: Error while closing" msgstr "%s: Fel vid stängning" #: src/extract.c:719 #, c-format msgid "%s: Could not create symlink to `%s'" msgstr "%s: Kunde inte skapa symbolisk länk till \"%s\"" #: src/extract.c:733 msgid "Attempting extraction of symbolic links as hard links" msgstr "Försöker extrahera symboliska länkar som hårda länkar" #: src/extract.c:769 #, c-format msgid "%s: Could not link to `%s'" msgstr "%s: Kunde inte länka till \"%s\"" #: src/extract.c:802 #, c-format msgid "%s: Could not make node" msgstr "%s: Kunde inte skapa enhetsfil" #: src/extract.c:828 #, c-format msgid "%s: Could not make fifo" msgstr "%s: Kunde inte skapa fifo" #: src/extract.c:905 #, c-format msgid "%s: Could not create directory" msgstr "%s: Kunde inte skapa katalog" #: src/extract.c:916 #, c-format msgid "Added write and execute permission to directory %s" msgstr "Lade till skriv- och exekveringsrättigheter till katalog %s" #: src/extract.c:954 #, c-format msgid "Cannot extract `%s' -- file is continued from another volume" msgstr "Kan inte extrahera \"%s\" -- filen fortsätter från en tidigare volym" #: src/extract.c:964 msgid "Visible long name error" msgstr "Fel på ett långt namn" #: src/extract.c:972 #, c-format msgid "Unknown file type '%c' for %s, extracted as normal file" msgstr "Okänd filtyp \"%c\" för %s, extraherad som en normal fil" #: src/incremen.c:237 src/incremen.c:610 src/update.c:138 #, c-format msgid "Cannot stat %s" msgstr "Kan inte ta status på %s" #: src/incremen.c:270 #, c-format msgid "Directory %s has been renamed" msgstr "Katalogen %s har bytt namn" #: src/incremen.c:282 #, c-format msgid "Directory %s is new" msgstr "Katalogen %s är ny" #: src/incremen.c:437 src/names.c:504 msgid "Could not get current directory" msgstr "Kunde inte avgöra aktuell katalog" #: src/incremen.c:442 src/names.c:509 #, c-format msgid "Could not get current directory: %s" msgstr "Kunde inte komma åt namnet på aktuell katalog: %s" #: src/incremen.c:446 #, c-format msgid "File name %s/%s too long" msgstr "Filnamnet %s/%s är för långt" #: src/incremen.c:489 #, fuzzy msgid "Device number out of range" msgstr "Enhetsnummer har ändrats" #: src/incremen.c:494 msgid "Inode number out of range" msgstr "" #: src/incremen.c:598 #, c-format msgid "Cannot chdir to %s" msgstr "Kan inte gå till katalogen %s" #: src/incremen.c:691 msgid "Unexpected EOF in archive" msgstr "Oväntat filslut i arkivet" #: src/incremen.c:720 #, c-format msgid "%s: Deleting %s\n" msgstr "%s: Tar bort %s\n" #: src/incremen.c:722 #, c-format msgid "Error while deleting %s" msgstr "Fel inträffade vid borttagning av %s" #: src/list.c:86 #, c-format msgid "Omitting %s" msgstr "Utelämnar %s" #: src/list.c:127 #, fuzzy, c-format msgid "block %s: ** Block of NULs **\n" msgstr "block %10ld: ** Block av nolltecken **\n" #: src/list.c:141 #, fuzzy, c-format msgid "block %s: ** End of File **\n" msgstr "block %10ld: ** Filslut **\n" #: src/list.c:153 msgid "Hmm, this doesn't look like a tar archive" msgstr "Hmm, det här ser inte ut som ett \"tar\"-arkiv" #: src/list.c:158 msgid "Skipping to next file header" msgstr "Hoppar över data till nästa filhuvud" #: src/list.c:213 msgid "EOF in archive file" msgstr "Filslut i arkivfilen" #: src/list.c:225 #, fuzzy, c-format msgid "Only wrote %lu of %lu bytes to file %s" msgstr "Skrev bara %ld av %ld byte till filen %s" #: src/list.c:549 #, c-format msgid "Blanks in header where octal %s value expected" msgstr "" #: src/list.c:585 #, c-format msgid "Header contains \"%.*s\" where octal %s value expected" msgstr "" #: src/list.c:597 #, c-format msgid "Octal value `%.*s' is out of range for %s" msgstr "" #: src/list.c:769 src/list.c:999 #, fuzzy, c-format msgid "block %s: " msgstr "block %10ld: " #: src/list.c:808 msgid "Visible longname error" msgstr "Fel på ett långt namn" #: src/list.c:935 src/list.c:939 #, c-format msgid " link to %s\n" msgstr " länk till %s\n" #: src/list.c:943 #, c-format msgid " unknown file type `%c'\n" msgstr " okänd filtyp \"%c\"\n" #: src/list.c:960 msgid "--Volume Header--\n" msgstr "--Volymhuvud--\n" #: src/list.c:968 #, fuzzy, c-format msgid "--Continued at byte %s--\n" msgstr "--Fortsätter vid byte %ld--\n" #: src/list.c:972 msgid "--Mangled file names--\n" msgstr "--Kodade filnamn--\n" #: src/list.c:1006 src/list.c:1011 msgid "Creating directory:" msgstr "Skapar katalog:" #: src/mangle.c:64 msgid "Unexpected EOF in mangled names" msgstr "Oväntat filslut i kodade namn" #: src/mangle.c:100 #, c-format msgid "Cannot rename %s to %s" msgstr "Kan inte byta namn på %s till %s" #: src/mangle.c:102 #, c-format msgid "Renamed %s to %s" msgstr "Bytte namn på %s till %s" #: src/mangle.c:119 #, c-format msgid "Cannot symlink %s to %s" msgstr "Kan inte symboliskt länka %s till %s" #: src/mangle.c:122 #, c-format msgid "Symlinked %s to %s" msgstr "%s symboliskt länkad till %s" #: src/mangle.c:126 #, c-format msgid "Unknown demangling command %s" msgstr "Okänt avkodningskommando %s" #: src/misc.c:449 #, fuzzy, c-format msgid "Renaming previous `%s' to `%s'\n" msgstr "Bytte namn på %s till %s" #. The backup operation failed. #: src/misc.c:456 #, fuzzy, c-format msgid "%s: Cannot rename for backup" msgstr "Kan inte byta namn på %s till %s" #: src/misc.c:472 #, fuzzy, c-format msgid "%s: Cannot rename from backup" msgstr "Kan inte byta namn på %s till %s" #: src/misc.c:475 #, fuzzy, c-format msgid "Renaming `%s' back to `%s'\n" msgstr "Bytte namn på %s till %s" #: src/names.c:375 src/names.c:573 src/names.c:599 src/names.c:625 #: src/names.c:778 #, c-format msgid "Cannot change to directory %s" msgstr "Kan inte gå till katalogen %s" #: src/names.c:394 src/names.c:450 src/names.c:495 msgid "Missing file name after -C" msgstr "Filnamn efter -C saknas" #: src/names.c:663 src/names.c:682 #, c-format msgid "%s: Not found in archive" msgstr "%s: Fanns inte i arkivet" #: src/rmt.c:157 msgid "rmtd: Cannot allocate buffer space\n" msgstr "rmtd: Kan inte allokera buffert\n" #: src/rmt.c:159 msgid "Cannot allocate buffer space" msgstr "Kan inte allokera buffert" #: src/rmt.c:285 src/rmt.c:405 src/rmt.c:415 msgid "Seek offset out of range" msgstr "" #: src/rmt.c:298 msgid "Seek direction out of range" msgstr "" #: src/rmt.c:337 msgid "rmtd: Premature eof\n" msgstr "rmtd: För tidigt filslut\n" #: src/rmt.c:339 msgid "Premature end of file" msgstr "För tidigt filslut" #: src/rmt.c:447 #, c-format msgid "rmtd: Garbage command %c\n" msgstr "rmtd: Okänt kommando \"%c\"\n" #: src/rmt.c:449 msgid "Garbage command" msgstr "Okänt kommando" #: src/rtapelib.c:296 msgid "exec/tcp: Service not available" msgstr "exec/tcp: Tjänsten är inte tillgänglig" #: src/rtapelib.c:301 msgid "stdin" msgstr "standard in" #: src/rtapelib.c:304 msgid "stdout" msgstr "standard ut" #. Bad problems if we get here. #. In a previous version, _exit was used here instead of exit. #: src/rtapelib.c:464 msgid "Cannot execute remote shell" msgstr "Kan inte exekvera fjärrskal" #: src/tar.c:64 #, c-format msgid "Options `-%s' and `-%s' both want standard input" msgstr "Flaggorna \"-%s\" och \"-%s\" vill båda läsa från standard in" #: src/tar.c:90 msgid "Cannot read confirmation from user" msgstr "Kan inte läsa bekräftelse från användaren" #: src/tar.c:258 tests/genfile.c:60 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Försök med \"%s --help\" för mer information.\n" #: src/tar.c:262 msgid "" "GNU `tar' saves many files together into a single tape or disk archive, and\n" "can restore individual files from the archive.\n" msgstr "" "GNU \"tar\" sparar många filer tillsammans i ett band- eller fil-arkiv och\n" "kan återskapa individuella filer från arkivet.\n" #: src/tar.c:266 #, c-format msgid "" "\n" "Usage: %s [OPTION]... [FILE]...\n" msgstr "" "\n" "Användning: %s [FLAGGA]... [FIL]...\n" #: src/tar.c:267 msgid "" "\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" msgstr "" "\n" "Om en lång flagga visar ett argument som obligatoriskt då är det även\n" "obligatoriskt för den korta flaggan. Motsvarande gäller för frivilliga\n" "argument.\n" #: src/tar.c:272 msgid "" "\n" "Main operation mode:\n" " -t, --list list the contents of an archive\n" " -x, --extract, --get extract files from an archive\n" " -c, --create create a new archive\n" " -d, --diff, --compare find differences between archive and file system\n" " -r, --append append files to the end of an archive\n" " -u, --update only append files newer than copy in archive\n" " -A, --catenate append tar files to an archive\n" " --concatenate same as -A\n" " --delete delete from the archive (not on mag tapes!)\n" msgstr "" "\n" "Operationsläge:\n" " -t, --list visa innehållet i arkivet\n" " -x, --extract, --get extrahera filer från arkivet\n" " -c, --create skapa ett nytt arkiv\n" " -d, --diff, --compare visa skillnader mellan filsystemet och arkivet\n" " -r, --append lägg till filer på slutet av arkivet\n" " -u, --update lägg till filer som är nyare än de i arkivet\n" " -A, --catenate lägg till innehållet i en arkivfil till arkivet\n" " --concatenate samma som -A\n" " --delete ta bort från arkivet (ej för arkiv på " "magnetband!)\n" #: src/tar.c:285 msgid "" "\n" "Operation modifiers:\n" " -W, --verify attempt to verify the archive after writing it\n" " --remove-files remove files after adding them to the archive\n" " -k, --keep-old-files don't overwrite existing files when extracting\n" " -U, --unlink-first remove each file prior to extracting over it\n" " --recursive-unlink empty hierarchies prior to extracting " "directory\n" " -S, --sparse handle sparse files efficiently\n" " -O, --to-stdout extract files to standard output\n" " -G, --incremental handle old GNU-format incremental backup\n" " -g, --listed-incremental handle new GNU-format incremental backup\n" " --ignore-failed-read do not exit with nonzero on unreadable files\n" msgstr "" "\n" "Modifiera operationslägen:\n" " -W, --verify försök verifiera arkivet efter det skapats\n" " --remove-files ta bort filer efter de sparats i arkivet\n" " -k, --keep-old-files skriv inte över existerande filer vid " "extraktion\n" " -U, --unlink-first ta bort gamla filer innan de nya extraheras\n" " --recursive-unlink ta bort kataloger före extrahering\n" " -S, --sparse hantera filer med hål mer effektivt\n" " -O, --to-stdout extrahera filer till standard ut\n" " -G, --incremental hantera gamla GNU-formatet för inkrementell\n" " säkerhetskopiering\n" " -g, --listed-incremental hantera nya GNU-formatet för inkrementell\n" " säkerhetskopiering\n" " --ignore-failed-read avsluta inte med felslutstatus p.g.a. oläsbara\n" " filer\n" #: src/tar.c:299 msgid "" "\n" "Handling of file attributes:\n" " --owner=NAME force NAME as owner for added files\n" " --group=NAME force NAME as group for added files\n" " --mode=CHANGES force (symbolic) mode CHANGES for added " "files\n" " --atime-preserve don't change access times on dumped files\n" " -m, --modification-time don't extract file modified time\n" " --same-owner try extracting files with the same ownership\n" " --numeric-owner always use numbers for user/group names\n" " -p, --same-permissions extract all protection information\n" " --preserve-permissions same as -p\n" " -s, --same-order sort names to extract to match archive\n" " --preserve-order same as -s\n" " --preserve same as both -p and -s\n" msgstr "" "\n" "Hantering av filattribut:\n" " --owner=NAMN sätt NAMN som ägare för adderade filer\n" " --group=NAMN sätt NAMN som grupp för adderade filer\n" " --mode=RÄTTIGHET sätt (symbolisk) RÄTTIGHET för adderade " "filer\n" " --atime-preserve ändra inte åtkomsttider på arkiverade filer\n" " -m, --modification-time extrahera inte filers modifieringstid\n" " --same-owner försök extrahera filer med samma ägare som i\n" " arkivet\n" " --numeric-owner använd alltid tal för användar- och " "gruppnamn\n" " -p, --same-permissions extrahera all åtkomstinformation\n" " --preserve-permissions samma som -p\n" " -s, --same-order sortera namn som ska extraheras så de passar\n" " ihop med arkivet\n" " --preserve-order samma som -s\n" " --preserve samma som både -p och -s\n" #: src/tar.c:315 msgid "" "\n" "Device selection and switching:\n" " -f, --file=ARCHIVE use archive file or device ARCHIVE\n" " --force-local archive file is local even if has a colon\n" " --rsh-command=COMMAND use remote COMMAND instead of rsh\n" " -[0-7][lmh] specify drive and density\n" " -M, --multi-volume create/list/extract multi-volume archive\n" " -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n" " -F, --info-script=FILE run script at end of each tape (implies " "-M)\n" " --new-volume-script=FILE same as -F FILE\n" " --volno-file=FILE use/update the volume number in FILE\n" msgstr "" "\n" "Enhetsval och enhetsbyte:\n" " -f, --file=ARKIV använd arkivfil eller enhet ARKIV\n" " --force-local arkivfilen är lokal även om namnet har " "kolon\n" " --rsh-command=KOMMANDO använd KOMMANDO i stället för rsh.\n" " -[0-7][lmh] ange enhet och densitet\n" " -M, --multi-volume skapa/visa/extrahera ett flervolymsarkiv\n" " -L, --tape-length=ANTAL byt band efter det att ANTAL x 1024\n" " byte skrivits\n" " -F, --info-script=FIL kör kommandofil FIL vid slutet av varje " "band\n" " (flaggan -M sätts också)\n" " --new-volume-script=FIL samma som -F FIL\n" " --volno-file=FIL använd/uppdatera volymnummer i FIL\n" #: src/tar.c:328 msgid "" "\n" "Device blocking:\n" " -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n" " --record-size=SIZE SIZE bytes per record, multiple of 512\n" " -i, --ignore-zeros ignore zeroed blocks in archive (means " "EOF)\n" " -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n" msgstr "" "\n" "Blockhantering:\n" " -b, --blocking-factor=BLOCK BLOCK x 512 byte per post\n" " --record-size=ANTAL ANTAL byte per post, multipel av 512\n" " -i, --ignore-zeros ignorera block med enbart nolltecken\n" " (betyder filslut)\n" " -B, --read-full-records omblocka vid läsning (för 4.2BSD-rör)\n" #: src/tar.c:336 msgid "" "\n" "Archive format selection:\n" " -V, --label=NAME create archive with volume name NAME\n" " PATTERN at list/extract time, a globbing " "PATTERN\n" " -o, --old-archive, --portability write a V7 format archive\n" " --posix write a POSIX conformant archive\n" " -z, --gzip, --ungzip filter the archive through gzip\n" " -Z, --compress, --uncompress filter the archive through compress\n" " --use-compress-program=PROG filter through PROG (must accept -d)\n" msgstr "" "\n" "Val av arkivformat:\n" " -V, --label=NAMN skapa ett arkiv med volymnamnet NAMN\n" " REGUTTR vid visning/extrahering är namnet ett\n" " reguljärt uttryck.\n" " -o, --old-archive, --portability skriv ett arkiv i V7-format\n" " --posix skriv ett arkiv i POSIX-format\n" " -z, --gzip, --ungzip filtrera arkivet genom gzip\n" " -Z, --compress, --uncompress filtrera arkivet genom compress\n" " --use-compress-program=PROG filtrera genom PROG (måste förstå -d)\n" #: src/tar.c:347 msgid "" "\n" "Local file selection:\n" " -C, --directory=DIR change to directory DIR\n" " -T, --files-from=NAME get names to extract or create from file " "NAME\n" " --null -T reads null-terminated names, disable -C\n" " --exclude=PATTERN exclude files, given as a globbing PATTERN\n" " -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n" " -P, --absolute-names don't strip leading `/'s from file names\n" " -h, --dereference dump instead the files symlinks point to\n" " --no-recursion avoid descending automatically in " "directories\n" " -l, --one-file-system stay in local file system when creating " "archive\n" " -K, --starting-file=NAME begin at file NAME in the archive\n" msgstr "" "\n" "Filval:\n" " -C, --directory=KATALOG byt katalog till KATALOG\n" " -T, --files-from=NAMN hämta namn att extrahera från filen NAMN\n" " --null -T läser namn åtskilda med nolltecken, -C " "obrukbar\n" " --exclude=MÖNSTER tag inte med filer som matchar MÖNSTER\n" " -X, --exclude-from=FIL tag inte med filer som matchar mönster i filen " "FIL\n" " -P, --absolute-names tag inte bort inledande \"/\" från namn\n" " -h, --dereference arkivera det som symboliska länkar pekar på\n" " --no-recurse gå inte automatiskt ned i kataloger\n" " -l, --one-file-system byt inte filsystem när arkivet skapas\n" " -K, --starting-file=NAMN börja med fil NAMN i arkivet\n" #: src/tar.c:362 msgid "" " -N, --newer=DATE only store files newer than DATE\n" " --newer-mtime compare date and time when data changed only\n" " --after-date=DATE same as -N\n" msgstr "" " -N, --newer=DATUM arkivera bara filer nyare än DATUM\n" " --newer-mtime jämför datum och tid endast för dataändringar\n" " --after-date=DATUM samma som -N\n" #: src/tar.c:368 msgid "" " --backup[=CONTROL] backup before removal, choose version " "control\n" " --suffix=SUFFIX backup before removel, override usual suffix\n" msgstr "" " --backup[=KONTROLL] gör säkerhetskopior före borttagning,\n" " välj typ av versionshantering\n" " --suffix=SUFFIX gör säkerhetskopior före borttagning,\n" " ersätt den normala säkerhetskopieändelsen\n" #: src/tar.c:372 msgid "" "\n" "Informative output:\n" " --help print this help, then exit\n" " --version print tar program version number, then exit\n" " -v, --verbose verbosely list files processed\n" " --checkpoint print directory names while reading the archive\n" " --totals print total bytes written while creating archive\n" " -R, --block-number show block number within archive with each message\n" " -w, --interactive ask for confirmation for every action\n" " --confirmation same as -w\n" msgstr "" "\n" "Informativ utskrift:\n" " --help visa denna hjälptext och avsluta\n" " --version visa versionsinformation och avsluta\n" " -v, --verbose visa namn på alla filer som behandlas\n" " --checkpoint visa katalognamn när arkivet läses\n" " --totals visa antal skrivna byte när arkivet skapas\n" " -R, --block-number visa blocknummer inom arkivet för varje meddelande\n" " -w, --interactive fråga efter bekräftelse för varje steg\n" " --confirmation samma som -w\n" #: src/tar.c:384 msgid "" "\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" " t, numbered make numbered backups\n" " nil, existing numbered if numbered backups exist, simple otherwise\n" " never, simple always make simple backups\n" msgstr "" "\n" "Säkerhetskopieändelse är \"~\", om den inte sätts med --suffix eller\n" "SIMPLE_BACKUP_SUFFIX.\n" "Versionshanteringen kan styras med --backup eller VERSION_CONTROL,\n" "där värdena kan vara:\n" "\n" " t, numbered gör numrerade säkerhetskopior\n" " nil, existing numrerade säkerhetskopior om det redan finns sådana,\n" " enkla annars\n" " never, simple gör alltid enkla säkerhetskopior\n" #: src/tar.c:393 #, c-format msgid "" "\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" msgstr "" "\n" "GNU \"tar\" kan inte läsa eller skapa \"--posix\" arkiv. Om miljövariabeln\n" "POSIXLY_CORRECT är satt så tar \"--posix\" bort GNUs utökningar till " "\"tar\".\n" "Stöd för POSIX är bara delvis implementerat, så förlita er inte på det än.\n" "ARKIV kan vara FIL, MASKIN:FIL eller ANVÄNDARE@MASKIN:FIL, och FIL kan vara\n" "en fil eller en enhet. *Denna* \"tar\" har normalvärdena \"-f%s -b%d\".\n" #: src/tar.c:401 msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" "Rapportera fel till .\n" "Rapportera fel eller synpunkter på översättningen till .\n" #: src/tar.c:427 msgid "You may not specify more than one `-Acdtrux' option" msgstr "Du kan endast ange en av flaggorna \"-Acdtrux\"" #: src/tar.c:436 msgid "Conflicting compression options" msgstr "Motstridiga komprimeringsflaggor" #: src/tar.c:500 #, c-format msgid "Old option `%c' requires an argument." msgstr "Gammal flagga \"%c\" behöver ett argument" #: src/tar.c:543 msgid "Obsolete option, now implied by --blocking-factor" msgstr "Föråldrad flagga som nu impliceras av --blocking-factor" #: src/tar.c:547 msgid "Obsolete option name replaced by --blocking-factor" msgstr "Föråldrad flagga ersatt med --blocking-factor" #: src/tar.c:557 msgid "Invalid blocking factor" msgstr "" #: src/tar.c:563 msgid "Obsolete option name replaced by --read-full-records" msgstr "Föråldrad flagga ersatt med --read-full-records" #: src/tar.c:657 msgid "Invalid tape length" msgstr "" #: src/tar.c:666 msgid "Obsolete option name replaced by --touch" msgstr "Föråldrad flagga ersatt med --touch" #: src/tar.c:687 msgid "More than one threshold date" msgstr "Mer än en datumgräns" #: src/tar.c:691 #, c-format msgid "Invalid date format `%s'" msgstr "Ogiltigt datumformat \"%s\"" #: src/tar.c:700 src/tar.c:866 src/tar.c:871 msgid "Conflicting archive format options" msgstr "Motstridiga arkivformatsflaggor" #: src/tar.c:712 msgid "Obsolete option name replaced by --absolute-names" msgstr "Föråldrad flagga ersatt med --absolute-names" #: src/tar.c:724 msgid "Obsolete option name replaced by --block-number" msgstr "Föråldrad flagga ersatt med --block-number" #: src/tar.c:799 msgid "Obsolete option name replaced by --backup" msgstr "Föråldrad flagga ersatt med --backup" #: src/tar.c:826 msgid "Invalid group given on option" msgstr "Ogiltig grupp given för flagga" #: src/tar.c:835 msgid "Invalid mode given on option" msgstr "Ogiltiga rättigheter givna för flagga" #: src/tar.c:857 msgid "Invalid owner given on option" msgstr "Ogiltig användare given för flagga" #: src/tar.c:885 #, fuzzy msgid "Invalid record size" msgstr "Ogiltigt värde på record_size" #: src/tar.c:888 #, c-format msgid "Record size must be a multiple of %d." msgstr "Poststorlek måste vara en multipel av %d" #: src/tar.c:985 msgid "Options `-[0-7][lmh]' not supported by *this* tar" msgstr "Flaggorna \"-[0-7][lmh]\" stöds inte av *detta* \"tar\"-program" #: src/tar.c:995 #, fuzzy msgid "" "\n" "Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, " "Inc.\n" msgstr "" "\n" "Copyright © 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.\n" #: src/tar.c:999 tests/genfile.c:161 msgid "" "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" msgstr "" "Detta är fri programvara; se källkoden för kopieringsvillkor. Det finns " "INGEN\n" "garanti; inte ens för SÄLJBARHET eller LÄMPLIGHET FÖR NÅGOT SPECIELLT " "ÄNDAMÅL.\n" #: src/tar.c:1003 msgid "" "\n" "Written by John Gilmore and Jay Fenlason.\n" msgstr "" "\n" "Skriven av John Gilmore och Jay Fenlason.\n" #: src/tar.c:1031 msgid "GNU features wanted on incompatible archive format" msgstr "GNU-finesser önskade i ett inkompatibelt arkivformat" #: src/tar.c:1048 msgid "Multiple archive files requires `-M' option" msgstr "Multipla arkivfiler kräver \"-M\" flaggan" #: src/tar.c:1062 msgid "Cowardly refusing to create an empty archive" msgstr "Vägrar fegt skapa ett tomt arkiv" #: src/tar.c:1083 msgid "Options `-Aru' are incompatible with `-f -'" msgstr "Flaggorna \"-Aru\" är inkompatibla med \"-f -\"" #: src/tar.c:1145 msgid "You must specify one of the `-Acdtrux' options" msgstr "Du måste ange en av flaggorna \"-Acdtrux\"" #: src/tar.c:1192 msgid "Error exit delayed from previous errors" msgstr "Avslut med felslutstatus fördröjd från föregående fel" #: src/update.c:81 #, fuzzy, c-format msgid "Read error at byte %s reading %lu bytes in file %s" msgstr "Läsfel vid byte %ld vid läsning av %d byte från fil %s" #: src/update.c:92 #, fuzzy, c-format msgid "%s: File shrunk by %s bytes, (yark!)" msgstr "%s: Filen krympte med %d byte, (huga!)" #: tests/genfile.c:64 msgid "Generate data files for GNU tar test suite.\n" msgstr "Generera datafiler för GNU tar testsvit.\n" #: tests/genfile.c:65 #, c-format msgid "" "\n" "Usage: %s [OPTION]...\n" msgstr "" "\n" "Användning: %s [FLAGGA]...\n" #: tests/genfile.c:68 msgid "" "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also.\n" "\n" " -l, --file-length=LENGTH LENGTH of generated file\n" " -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n" " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" "Obligatoriska argument för långa flaggor är obligatoriska även för korta.\n" "\n" " -l, --file-length=LÄNGD LÄNGD på genererad fil\n" " -p, --pattern=MÖNSTER MÖNSTER är \"default\" eller \"zeros\"\n" " --help visa denna hjälptext och avsluta\n" " --version visa versionsinformation och avsluta\n" #: tests/genfile.c:134 #, c-format msgid "Ambiguous pattern `%s'" msgstr "Tvetydigt mönster \"%s\"" #: tests/genfile.c:138 #, c-format msgid "Unknown pattern `%s'" msgstr "Okänt mönster \"%s\"" #: tests/genfile.c:157 msgid "" "\n" "Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n" msgstr "" "\n" "Copyright © 1995, 1996, 1997 Free Software Foundation, Inc.\n" #: tests/genfile.c:165 msgid "" "\n" "Written by François Pinard .\n" msgstr "" "\n" "Skriven av François Pinard .\n" #~ msgid "Amount actually written is (I hope) %d.\n" #~ msgstr "Verkligen skriven mängd är %d (hoppas jag).\n" #~ msgid "%d at %d\n" #~ msgstr "%d vid %d\n" tar-1.13/po/cs.gmo0000664000176300016070000007530406740055251007460 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt)A…8B¯?DèØE(ìGˆIîjKw£OâðP†Rw+VöX3Œ[*Õ[·]']©3]Ñ&^ã^,_` `/©`=`çaa!>a<a{a›0aº+aëbb5#bM bqb~b–/b®)bÞ'cc0cPckc‡c cºcÖcód+d%dQ,dk6d˜dÏdâdö4eeDeY$eu"eš"e½eàfff4!fP9frf¬ fÇfèfù"gg9gVgj gƒ&g‘!g¸gÚgóh$h(+hM-hy&h§/hÎ/hþ i.%iO iui–'i®#iÖ!iújj5!jTAjv:j¸jók"k.=kQ&kk¶ kÈ(kÕkþll0 lC lN2l\ll®lÅ8lám#m,$mP£mu;nnU0nd n•%n¡nÇoËoãoûp#p'pKp[pu p•p£pÂ0pâqq/qAq\qxq8q 0qÙ6r 9rA;r{/r·>rç s& sG7sU6s2sÄs÷3ttCt] tr%t~0t¤*tÕ2uu3uOu`u}ušu³"uÅâuè)vËvõw-w& wTw`$wzwŸ0w¿<wð:x-xhx|0x”xÅxÎxí"y y/(yOyxy˜5y²)yè!z+z4z`zyz˜zž z¥z³ §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1999-01-14 18:39+01:00 Last-Translator: Vladimir Michl Language-Team: Czech MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8-bit Výbìr formátu archívu: -V, --label=JMÉNO vytvoøí archiv se jménem svazku JMÉNO VZOREK u obsahu/rozbalování globální vzorek pro jména souborù -o, --old-archive, --portability zapí¹e archiv ve formátu V7 --posix zapí¹e archiv ve formátu POSIX -z, --gzip, --ungzip filtruje archiv pøes gzip -Z, --compress, --uncompress filtruje archiv pøes compress --use-compress-program=PROG filtruje pøes PROG (musí akceptovat -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Bloky u zaøízení: -b, --blocking-factor=BLOKÙ BLOKÙ x 512 bajtù na záznam --record-size=VELIKOST VELIKOST bajtù na záznam, násobek 512 -i, --ignore-zeros ignoruje nulové bloky v archivu, které normálnì znamenají EOF. -B, --read-full-records kdy¾ není pøeèteno tolik bajtù, kolik je po¾adováno, zkou¹í doèíst zbytek (vhodné pro roury) Výbìr zaøízení: -f, --file=ARCHIV pracuje s archivem nebo zaøízením ARCHIV --force-local archivní soubor je lokální, dokonce i kdy¾ obsahuje ve jménì dvojteèku --rsh-command=PØÍKAZ pou¾ije PØÍKAZ pro pøihlá¹ení místo rsh -[0-7][lmh] zadání zaøízení a hustoty -M, --multi-volume práce s vícesvazkovým archivem -L, --tape-length=ÈÍSLO vymìní pásku po zapsání ÈÍSLO x 1024 bajtù -F, --info-script=SOUBOR spustí script na konci ka¾dé pásky (zahrnuje i -M) --new-volume-script=SOUBOR stejné jako -F SOUBOR --volno-file=SOUBOR pou¾ije/aktualizuje èíslo svazku v SOUBORu GNU tar neumí èíst nebo produkovat `--posix' archivy. Jestli¾e je v prostøedí nastaveno POSIXLY_CORRECT, GNU roz¹íøení je zablokováno pøepínaèem `--posix'. Podpora POSIX formátu je èásteènì implementována, proto s ní pøíli¹ nepoèítejte. ARCHIV mù¾e být SOUBOR, HOSTITEL:SOUBOR nebo U®IVATEL@HOSTITEL:SOUBOR, SOUBOR mù¾e být soubor nebo zaøízení. Implicitní pøepínaèe jsou `-f %s -b %d'. Zpracování atributù souborù: --owner=JMÉNO pou¾ije JMÉNO jako vlastníka pøidávaných souborù --group=JMÉNO pou¾ije JMÉNO jako skupinu pøidávaných souborù --mode=OSMIÈKOVÌ pou¾ije OSMIÈKOVÌ jako práva pøidávaných souborù --atime-preserve nemìní pøístupový èas na zpracovávaných souborech -m, --modification-time u rozbalovávaných souborù nenastaví èas poslední modifikace souboru z archivu --same-owner u rozbalovávaných souborù nastaví stejného vlastníka jako je v archivu --numeric-owner v¾dy pou¾ívá èísla pro jména vlastníka/skupiny -p, --same-permissions u rozbalovávaných souborù nastaví stejná práva, jaká mají v archivu --preserve-permissions stejné jako -p -s, --same-order seøazení jmen souborù pro rozbalení je stejné s archivem --preserve-order stejné jako -s --preserve stejné jako zadání -p a -s Jestli¾e dlouhé pøepínaèe mají povinný argument, pak tento argument je povinný i u jejich krátkých forem. Obdobnì je tomu v pøípadì, kdy je argument nepovinný. Informativní výstup: --help vypí¹e tuto nápovìdu a skonèí --version vypí¹e oznaèení verze programu tar a skonèí -v, --verbose vypisuje zpracovávané soubory --checkpoint vypisuje jména adresáøù pøi ètení archivu --totals vypí¹e celkem zapsaných bajtù pøi tvorbì archivu -R, --block-number s ka¾dou zprávou vypí¹e èíslo bloku v archivu -w, --interactive ¾ádá potvrzení ka¾dé akce --confirmation stejné jako -w Výbìr souborù: -C, --directory=ADRESÁØ operace vykonává v ADRESÁØi -T, --files-from=JMÉNO pøi rozbalování nebo vytváøení bere názvy souborù ze souboru JMÉNO --null -T ète nulou ukonèené jména, zakázáno -C --exclude=VZOREK nepracuje se soubory odpovídající VZORKu -X, --exclude-from=SOUBOR nepracuje se soubory, které odpovídají nìkterému vzorku v SOUBORu -P, --absolute-names neodstraòuje úvodní `/' ze jmen souborù -h, --dereference místo symbolických odkazù pou¾ije soubory, na které odkazy ukazují --no-recursion neprochází adresáøe -l, --one-file-system pøi vytváøení archivu zùstane v jednom souborovém systému -K, --starting-file=JMÉNO zaène od souboru JMÉNO z archivu Hlavní funkce: -t, --list vypí¹e obsah archivu -x, --extract, --get vyzvede soubor(y) z archivu -c, --create vytvoøí nový archiv -d, --diff, --compare nalezne rozdíly mezi archivem a souborovým systémem -r, --append pøidá soubory na konec archivu -u, --update pøidá pouze soubory novìj¹í, ne¾ jsou v archivu -A, --catenate pøidá soubory z tar archivu do archivu --concatenate stejné jako -A --delete ma¾e z archivu (nefunguje na magnetických páskách) Modifikátory operací: -W, --verify ovìøí archív po jeho zápisu na médium --remove-files sma¾e originální soubory po jejich archivaci -k, --keep-old-files nepøepisuje soubory pøi rozbalování archivu -U, --unlink-first sma¾e soubory pøed jejich pøepsáním --recursive-unlink sma¾e prázdné hierarchie pøed rozbalováním adresáøù -S, --sparse soubory s dírami zpracuje efektivnìji -O, --to-stdout rozbalí archiv na standardní výstup -G, --incremental zpracuje starý GNU-formát inkrementální zálohy -g, --listed-incremental zpracuje nový GNU-formát inkrementální zálohy --ignore-failed-read ignoruje chyby pøi ètení souborù Chyby v programu oznamujte na adrese (pouze anglicky), pøipomínky k pøekladu zasílejte na adresu (èesky). Pøípona zálo¾ních souborù bude `~', pokud není nastavena pomocí --suffix nebo promìnné SIMPLE_BACKUP_SUFFIX. Jak se mají tvoøit zálo¾ní kopie, mù¾e být nastaveno pomocí pøepínaèe --backup nebo promìnné VERSION_CONTROL. Hodnoty mohou být: t, numbered tvoøí èíslované zálo¾ní kopie nil, existing èíslované, jestli¾e ji¾ èíslované zálo¾ní kopie existují, jinak tvoøí jednoduché never, simple tvoøí v¾dy jednoduché zálo¾ní kopie souborù Pou¾ití: %s [PØEPÍNAÈ]... Pou¾ití: %s [PØEPÍNAÈ]... [SOUBOR]... Autor: François Pinard . Autoøi: John Gilmore a Jay Fenlason. --backup[=ØÍZENÍ] zpùsob zálohování souborù, pøed jejich pøepsáním --suffix=PØÍPONA zálohuje pøed pøepsáním (smazáním), jako pøíponu u zálo¾ních souborù pou¾ije PØÍPONU -N, --newer=DATUM archivuje pouze soubory novìj¹í ne¾ DATUM --newer-mtime=DATUM archivuje pouze soubory, jejich¾ datum poslední zmìny dat je novìj¹í ne¾ DATUM --after-date=DATUM stejné jako -N (soubor `core' vytvoøen) odkaz na %s n [name] Zadání nového jména pro dal¹í (a následující) svazek(ky) q Ukonèení programu tar ! Vytvoøení podshell ? Vypísání této nápovìdy neznámý typ `%c' souboru %s nepokraèuje na tomto svazku%s je archív; nearchivován%s: Zmìnit pøístupový èas a èas poslední modifikace není mo¾né%s: Není mo¾né vytvoøit adresáø%s: Není mo¾né vytvoøit soubor%s: symbolický odkaz na `%s' není mo¾né vytvoøit%s: symbolický odkaz na `%s' nelze vytvoøit%s: Není mo¾né vytvoøit rouru%s: Uzel nelze vytvoøit%s: Do souboru není mo¾né zapisovat%s: Ma¾u %s %s: Chyba pøi uzavírání%s: V archivu nenalezen%s je na jiném souborovém systému; nearchivován%s: Neznámý typ souboru; soubor ignorován%s: Tento soubor nebylo mo¾né zálohovat%s: není zmìnìn; neaktualizován((potomek)) Roura na stdin((potomek)) Roura na stdout(potomek) Roura na stdin(potomek) Roura na stdout(prapotomek) Roura na stdin(prapotomek) Roura na stdout--Rozsekané jméno souboru-- --Hlavièka svazku-- Pøidána práva zápisu a vykonání adresáøi %sNejednoznaèný vzorek `%s'Konec (EOF) archivu %s není na hranici blokuPro vyhodnocení vzorku `%s' musí být svazek pojmenovánArchivace na stdinArchivace na stdoutPáska na zaèátku, konèímZkou¹ím rozbalit symbolické odkazy jako pevné odkazy%s není mo¾né pøidatSoubor %s není mo¾né pøidatMísto pro buffer není mo¾né alokovatDo adresáøe %s není mo¾né vstoupitDo adresáøe %s není mo¾né vstoupitPopisovaè %d není mo¾né uzavøítSoubor #%d není mo¾né uzavøít%s není mo¾né spustitShell %s není mo¾né spustitVzdálený shell není mo¾né spustit`%s' není mo¾né rozbalit -- soubor je pokraèováním jinéhoNový proces nelze vytvoøitNový proces není mo¾né vytvoøit!%s nelze otevøítArchiv %s není mo¾né otevøítDo adresáøe %s není mo¾né vstoupitSoubor %s není mo¾né otevøítRouru nelze otevøít%s není mo¾né duplikovat%s nelze èístPotvrzení od u¾ivatele není mo¾né èístZ kompresního programu nelze èístOdkaz %s není mo¾né èíst%s není mo¾né smazat%s není mo¾né pøejmenovat na %sFunkci stat na %s není mo¾né vykonatFunkci stat na soubor %s není mo¾né provéstsymbolický odkaz %s na %s není mo¾né vytvoøitKomprimovaný archív nelze aktualizovatKomprimované nebo vzdálené archívy nelze pou¾ítVícesvazkový komprimovaný archív nelze vytvoøitKomprimovaný archív nelze ovìøitVícesvazkový archív není mo¾né ovìøitStdin/Stdout archív nelze ovìøitDo %s není mo¾né zapsatDo kompresního programu nelze zapisovatPotomek nemù¾e vytvoøit nový procesPotomek byl ukonèen signálem %d%sPotomek vrátil status %dOdporující si archivní formátyOdporující si kompresní pøepínaèePro blokový faktor (blokù na záznam) %d není mo¾né alokovat pamì»V archivu se nelze vrátit, proto mù¾e být bez -i neèitelnýAktuální adresáø nelze èístAktuální adresáø %s nelze èístPozici v archivu není mo¾né zmìnitNení mo¾né pøejít na zaèátek archivaèního souboru pro ovìøeníVytvoøení prázdného archívu odmítnuto.Vytváøím adresáø:Data se li¹íZ archivu je mazáno to, co není hlavièkaÈíslo zaøízení zmìnìnoAdresáø %s byl pøejmenovánAdresáø %s je novýNeexistujeEOF v archívuMísto u¾ivatelské odpovìdi byl zadán konec souboruZa bìhu programu nastala chybaChyba pøi uzavírání %sPøi mazání %s nastala chybaSouvisle ulo¾ené soubory rozbaluji jako obyèejné souborySoubor neexistujeJméno souboru %s%s je pøíli¹ dlouhéJméno souboru %s/%s je pøíli¹ dlouhé GNU `tar' je archivaèní program. Ukládá soubory do archivu na pásku nebo disk. Z archivu doká¾e rozbalit jak celé hierarchie souborù, tak i jednotlivé soubory. GNU roz¹íøení po¾adovány na nekompatibilním formátu archivuNeznámý pøíkazGeneruji datové soubory pro testování GNU taru. Gid se li¹íTento soubor nevypadá jako tar archív Povinné argumenty u dlouhých pøepínaèù, jsou povinné také u odpovídajících krátkých pøepínaèù. -l, --file-length délka generovaného souboru --help vypí¹e tuto nápovìdu a skonèí --version vypí¹e oznaèení verze a skonèí Chybný formát data `%s'Zadána neplatná skupinaZadána chybná právaZadán neplatný vlastníkChybná hodnota pro velikost záznamuPamì» vyèerpánaZa -C chybí jméno souboruÈas poslední modifikace se li¹íPráva se li¹íPráva nebo typ zaøízení zmìnìnVíce ne¾ jedeno poèáteèní datumVíce archivaèních souborù vy¾aduje pøepínaè `-M'Jméno archivu nebylo zadánoU¾ není adresáøemNení nový svazek; konèím. Není souborem ani adresáøemNení obyèejný souborNení odkazem na %sZastaralý pøepínaè, nahrazen pøepínaèem --absolute-namesZastaralý pøepínaè, nahrazen pøepínaèem --backupZastaralý pøepínaè, nahrazen pøepínaèem --block-numberZastaralý pøepínaè, nahrazen pøepínaèem --blocking-factorZastaralý pøepínaè, nahrazen pøepínaèem --read-full-recordsZastaralý pøepínaè, nahrazen pøepínaèem --touchZastaralý pøepínaè, nyní zahrnut v pøepínaèi --blocking-factorPøepínaè `%c' vy¾aduje argument.Vynechávám %sPøepínaèe `-%s' a `-%s' oba dva chtìjí standardní vstupPøepínaèe `-Aru' jsou nesluèitelné s pøepínaèem `-f -'Pøepínaè `-[0-7][lmh]' není podporován tímto taremPøedèasný konec souboruPøipravte svazek #%d souboru %s a stisknìte return:Ètení testovacího bodu %dChyba pøi ètení z %sÈtení z %s Velikost záznamu musí být násobek %d.Odstraòuji jméno disku ze jmen souborù v archivuOdstraòuji úvodní `/' z absolutních odkazùOdstraòuji úvodní `/' z absolutních cest v archivuSoubor %s pøejmenován na %sVelikost se li¹íPøeskakuji na dal¹í hlavièkuPøeskakuji na dal¹í hlavièkuSymbolický odkaz se li¹í%s odkazuje na %sToto pravdìpodobnì není tar archív Toto je volné programové vybavení; podmínky pro kopírování a roz¹iøování naleznete ve zdrojových textech. Toto programové vybavení je zcela BEZ ZÁRUKY, a to i bez záruky PRODEJNOSTI nebo VHODNOSTI PRO NÌJAKÝ KONKRÉTNÍ ÚÈEL. Tento svazek není následníkem pøedchozíhoPøíli¹ mnoho chyb, konèímBajtù zapsáno celkem: Více informací získáte pøíkazem `%s --help'. Uid se li¹íNeoèekávaný konec archívuNeoèekávaný konec v rozsekaném jménìNeoèekávaný konec archívu (EOF)Neznámý pøíkaz %s pro spojování rozsekaných jmenNeznámý typ '%c' souboru %s, porovnáván jako normální souborNeznámý typ `%c' souboru %s, rozbalen jako normální souborNeznámý vzorek `%s'Neznámá systémová chybaCHYBNÉ OVÌØENÍ: chybných hlavièek detekováno: %dOvìøuji Viditelná chyba dlouhého jménaViditelná chyba dlouhého jménaSvazek `%s' neodpovídá vzorku `%s'VAROVÁNÍ: Archiv je nekompletníVAROVÁNÍ: %s není mo¾né uzavøít (%d, %d)VAROVÁNÍ: Chybí hlavièka svazkuZapisuji testovací bod %dVíce jak jeden pøepínaè z `-Acdtrux' nemù¾e být zadánMusíte zadat jeden z pøepínaèù `-Acdtrux'exec/tcp: Slu¾ba není k dispozicirmtd: Místo pro buffer není mo¾né alokovat rmtd: Neznámý pøíkaz %c rmtd: Pøedèasný konec souboru stdinstdouttar (potomek)tar (prapotomek)tar-1.13/po/de.gmo0000664000176300016070000007601506740055252007444 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt/A…qBµ?E'8EgF ±I¶EKh–N®OEþQY,TXV…(Y™ôYÂ[·#[Ð;[ô0\0©\aê] ]ö^¹^%^ß)^ü#_&7_J#_‚_¦3_Ä_ø4`#`L"`p`“`¥`À3`Þ*a<a=%az*a *aË"aö b1b:<blb©bÆ8bÞc*c00c[cŒc©$cÆ9cë#d%dI,di(d–(d¿#dèe e, eE"efIe‰eÓeéeþf!f3fUfsf‹f¦-f»*fégg0#gIgmg‹;g«-gç>h8hT&h&h´4hÛi.i-!i\&i~!i¥;iÇ4j:j8Djs-j¸1jæ!k-k:khk…kš$k±!kÖ!køll4lD,lcll¥lÃFlám(m>mZƒmwAmûn=.nR"n.n¤NnÓp"pA#p]p"p pÃpÖ!pñq.q.q],q{q¨qÃqÞ'qür$r:3rR+r†1r²4rä6s*sP<s{.s¸sç?s÷5t7<tmtª1tÁtóu u0u$1uU+u‡:u³uîv(v!vJ&vi$v)vµ«vß#w‹w¯ wÈ)wé#x!x7.xY!xˆ8xªGxãFy+yryŠ?y¤yäyëz z'zE*zc!zŽz°3zÈ+zü"{(7{K {ƒ{¤{Â{Ò {â{í §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1998-12-07 11:08+01:00 Last-Translator: Christian Kirsch Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Version: 1 Auswahl des Archiv-Formats: -V, --label=NAME Archiv NAME erzeugen MUSTER Beim Anzeigen/Herausholen ist MUSTER ein regulärer Ausdruck -o, --old-archive, --portability Archiv im »V7«-Format schreiben --posix POSIX-konformes Archiv schreiben -z, --gzip, --ungzip Archiv mit »gzip« komprimieren -Z, --compress, --uncompress Archiv mit »compress« komprimieren --use-compress-program=PROG Archiv durch PROG filtern (muss '-d' akzeptieren) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Blockung des Gerätes: -b, --block-size=BLÖCKE BLÖCKE à 512 Bytes pro Record --record-size=GRÖSSE GRÖSSE Bytes pro Record, Vielfaches von 512 -i, --ignore-zeros Blöcke mit Nullen im Archiv ignorieren (heißt EOF) -B, --read-full-blocks Blockung beim Lesen ändern (für 4.2BSD "Pipes") Geräteauswahl und -einstellung: -f, --file=ARCHIV Gerät oder Datei ARCHIV benutzen --force-local Archiv-Datei ist lokal, auch wenn der Name einen Doppelpunkt enthält --rsh-command=BEFEHL statt «rsh» den BEFEHL benutzen -[0-7][lmh] Laufwerk und Schreibdichte angeben -M, --multi-volume mehrteiliges Archiv anlegen/listen/herausholen -L, --tape-length=ZAHL Medium wechseln, wenn ZAHL KBytes geschrieben sind -F, --info-script=DATEI am Ende jedes Mediums das Skript DATEI ausführen (impliziert '-M') --new-volume-script=DATEI wie '-F DATEI' --volno-file=DATEI Teil-Nummer in DATEI benutzen/aktualisieren GNU »tar« kann keine '--posix'-Archive lesen. Wenn die Umgebungsvariable POSIXLY_CORRECT gesetzt ist, sind GNU-Erweiterungen mit '--posix' nicht zulässig. Unterstützung für POSIX ist nur teilweise implementiert, rechne derzeit noch nicht damit! ARCHIV kann DATEI, RECHNER:DATEI oder BENUTZER@RECHNER:DATEI sein; DATEI kann eine Datei oder ein Gerät (z.B. ein Streamer) sein. Die Voreinstellung für _dieses_ »tar« ist '-f%s -b%d'. Datei-Eigenschaften: --owner=NAME Eigentümer für hinzugefügte Dateien auf NAME setzen --group=NAME Gruppe für hinzugefügte Dateien auf NAME setzen --mode=OCTAL Zugriffsrechte für hinzugefügte Dateien auf OCTAL setzen --atime-preserve Zugriffszeit beim Auspacken erhalten -m, --modification-time Änderungszeit beim Auspacken erhalten --same-owner Eigentümer beim Auspacken erhalten --numeric-owner Zahlen für Benutzer bzw. Gruppen benutzen -p, --same-permissions Zugriffsrechte beim Auspacken erhalten --preserve-permissions wie '-p' -s, --same-order zu entpackende Dateinamen wie im Archiv sortieren --preserve-order wie '-s' --preserve wie '-p' und '-s' zusammen Wenn eine lange Option ein Argument erfordert, ist es für die entsprechende kurze Option auch erforderlich. Das gleich gilt für optionale Argumente. Informationen: --help Hilfe anzeigen und «tar» beenden --version Versionsnummer anzeigen und «tar» benden -v, --verbose zu bearbeitende Dateien ausführlich listen --checkpoint Verzeichnisnamen beim Lesen des Archivs zeigen --totals geschriebene Bytes beim Schreiben des Archivs zeigen -R, --block-number Blocknummer innerhalb des Archivs mit jeder Meldung zeigen -w, --interactive Bestätigung für jede Aktion verlangen --confirmation wie '-w' Auswahl der lokalen Dateien: -C, --directory=VERZEICHNIS zu VERZEICHNIS wechseln -T, --files-from=DATEI Namen der zu bearbeitenden Dateien aus DATEI lesen --null '-T' lies Null-terminierte Namen, verbiete '-C' --exclude=MUSTER Dateien überspringen, auf die MUSTER paßt -X, --exclude-from=DATEI Dateien überspringen, auf die in DATEI angegebene Muster passen -P, --absolute-paths führende `/'-Zeichen in den Dateinamen erhalten -h, --dereference Dateien statt symbolischer Links sichern --no-recurse keine Verzeichnisse sichern -l, --one-file-system beim Erzeugen Dateisystem nicht wechseln -K, --starting-file=NAME mit NAME im Archiv beginnen Aktionen: -t, --list Inhalt eines Archivs anzeigen -x, --extract, --get Dateien aus Archiv holen -c, --create neues Archiv erzeugen -d, --diff, --compare Dateien im Archiv und im Dateisystem vergleichen -r, --append Dateien an das Archiv anhängen -u, --update nur Dateien anhängen, die jünger sind als ihre Archiv-Version -A, --catenate »tar«-Dateien an ein Archiv anhängen --concatenate wie '-A' --delete aus Archiv löschen (nicht auf Magnetbändern!) Feineinstellungen: -W, --verify Archiv nach dem Schreiben prüfen --remove-files Dateien nach dem Hinzufügen zum Archiv löschen -k, --keep-old-files vorhandene Dateien nicht überschreiben -U, --unlink-first zu überschreibende Dateien vor dem Auspacken löschen --recursive-unlink Verzeichnisse vor dem Entpacken löschen -S, --sparse löchrige Dateien (`sparse files') effizient behandeln -O, --to-stdout Dateien zur Standard-Ausgabe entpacken -G, --incremental inkrementelle Sicherung im alten GNU-Format -g, --listed-incremental inkrementelle Sicherung im neuen GNU-Format --ignore-failed-read Lesefehler ignorieren; fehlt diese Option, bricht »tar« mit einem Fehler ab Fehlermeldungen an . Die Namenserweiterung für Sicherheitskopien ist `~', wenn nicht mit --suffix oder der Umgebungsvariablen SIMPLE_BACKUP_SUFFIX etwas anderes eingestellt ist. Die Versionskontrolle kann mit --backup oder der Umgebungsvariablen VERSION_CONTROL gesetzt werden. Mögliche Werte sind: t, numbered nummerierte Sicherheitskopien nil, existing nummerierte Sicherheitskopien, wenn schon nummerierte vorhanden sind, sonst einfache never, simple immer einfache Sicherheitskopien Aufruf: %s [OPTION]... Aufruf: %s [OPTION]... [DATEI]... Entwickelt von François Pinard . Geschrieben von John Gilmore und Jay Fenlason. --backup[=CONTROL] Sicherheitskopie vor dem Löschen, wählt Version --suffix=SUFFIX Sicherheitskopie vor dem Löschen, Namenserweiterung SUFFIX -N, --newer=DATUM nur Dateien jünger als DATUM sichern --newer-mtime Datum und Zeit nur vergleichen, wenn sich der Datei-Inhalt geändert hat --after-date=DATUM wie '-N' (Speicherabzug geschrieben). Link auf '%s'. n [NAME] Für die nächsten (und folgenden) Medien neuen Dateinamen angeben q »tar« abbrechen ! Shell in einem Unterprozeß starten ? Diese Liste ausgeben unbekannter Dateityp '%c'. Dieser Teil ist keine Fortsetzung von %s.%s ist ein Archiv; nicht gesichert.%s: Konnte Zugriffs- und Veränderungszeit nicht ändern.%s: Kann Verzeichnis nicht anlegen.%s: Kann Datei nicht anlegen.%s: Kann keinen symbolischen Link auf '%s' anlegen.%s: Kann nicht zu '%s' linken.%s: Kann "fifo" (= file in, file out) nicht anlegen.%s: Kann Gerätedatei nicht anlegen.%s: Kann nicht in Datei schreiben.%s: Lösche '%s'. %s: Fehler beim Schließen.%s: Nicht im Archiv gefunden.%s: Auf einem anderen Dateisystem; nicht gesichert.%s: Unbekannter Dateityp; Datei ignoriert.%s: Konnte keine Sicherheitskopie von dieser Datei erstellen%s: ist unverändert; nicht gesichert.((Kind-Prozeß)) Pipe zur Standard-Eingabe.((Kind-Prozeß)) Pipe zur Standard-Ausgabe.(Kind) "Pipe" zu Standard-Eingabe.(Kind) Pipe zu Standard-Ausgabe.Enkel (`(grandchild)') Pipe zur Standard-Eingabe.Enkel (`(grandchild)') Pipe zur Standard-Ausgabe (`stdout').--Verstümmelte Dateinamen-- --Vorspann des Teils-- Setze Schreib- und Ausführungsrechte für Verzeichnis %s.Mehrdeutiges Muster `%s'Archiv %s Dateiende nicht auf Blockgrenze.Archiv nicht gekennzeichnet, um zu %s zu passen.Archiv von Standard-Eingabe.Archiv auf Standard-Ausgabe.Am Anfang des Mediums, beende jetzt.Versuche symbolische Links als harte Links herauszuholen.Kann Verzeichnis %s nicht erzeugen.Kann Datei %s nicht hinzufügen.Kann keinen Speicher für Puffer reservieren.Kann nicht zu Verzeichnis '%s' wechseln.Kann nicht zu Verzeichnis '%s' wechseln.Kann Deskriptor %d nicht schließen.Kann Datei #%d nicht schließen.Kann %s nicht ausführen.Kann keine `Shell' %s ausführen.Kann Remote-Shell nicht ausführen.Kann '%s' nicht herausholen -- Datei ist Fortsetzung eines anderen Teils.Kann nicht "fork'en".Kann nicht `fork'en!Kann %s nicht öffnen.Kann Archiv '%s' nicht öffnen.Kann Verzeichnis %s nicht öffnen.Kann Datei '%s' nicht öffnen.Kann Pipe nicht öffnen.Kann %s nicht duplizieren.Kann %s nicht lesen.Kann keine Bestätigung vom Benutzer bekommen.Kann nicht vom Kompressionsprogramm lesen.Kann Link `%s' nicht lesen.Kann %s nicht entfernen.Kann '%s' nicht in '%s' umbenennen.`stat' auf %s fehlgeschlagen.`stat' auf '%s' fehlgeschlagen.Kann keinen symbolischen Link von '%s' auf '%s' einrichten.Kann komprimierte Archive nicht aktualisierenKann keine komprimierten oder nicht-lokalen Archive verwenden.Kann keine mehrteiligen komprimierten Archive verwenden.Kann komprimierte Archive nicht prüfenKann mehrteilige Archive nicht prüfen.Kann Archive auf Standard-Ein-/Ausgabe nicht prüfen.Kann nicht auf %s schreiben.Kann nicht zum Kompressionsprogramm schreiben.Kind-Prozeß kann nicht "fork'en".Kind-Prozeß mit Signal %d%s gestorben.Kind-Prozeß gab Status %d zurück.Optionen des Archiv-Formats schließen sich gegenseitig aus.Kompressionsoptionen schließen sich gegenseitig aus.Konnte keinen Speicher für Blockungsfaktor %d reservieren.Kann Archiv-Datei nicht zurücksetzen; könnte ohne `-i'unlesbar sein.Konnte aktuelles Verzeichnis nicht ermitteln.Konnte aktuelles Verzeichnis nicht ermitteln: %s.Konnte Datei nicht positionieren.Konnte Archiv zur Prüfung nicht zurückspulen.Kein leeres Archiv angelegt.Erzeuge Verzeichnis:unterschiedliche DatenLösche nicht-Kopfteil aus dem ArchivGerätenummer ist unterschiedlich.Verzeichnis '%s' wurde umbenannt.Verzeichnis '%s' ist neu.Nicht vorhandenDateiende in der Archiv-Datei.Dateiende gefunden, Benutzereingabe erwartetFehler beim Beenden.Fehler beim Schließen von %s.Fehler beim Löschen von '%s'.Extrahiere zusammenhängende Dateien (`contiguous files') als reguläre.Datei nicht vorhandenDateiname %s%s ist zu lang.Dateiname %s/%s ist zu lang.GNU «tar» schreibt mehrere Dateien in ein Archiv auf Band oder Festplatte und kann einzelne Dateien aus diesem Archiv herausholen. GNU-Erweiterungen bei einem inkompatiblen Archiv-Format verlangt.Ungültiges Kommando.Dateien für die Tests von GNU-«tar» erzeugen. Gruppenkennung ist unterschiedlichHmm, das sieht nicht wie ein »tar«-Archiv aus.Notwendige Argumente für Optionen in Langform sind auch für die Kurzform notwendig. -l, --file-length=GROESSE GROESSE der erzeugten Datei -p, --pattern=MUSTER MUSTER ist \"default\" oder \"zeros\" --help zeige nur diese Hilfe an --version zeige nur die Versionsnummer von »tar« an Ungültiges Datumsformat ` %s'.Ungültige Gruppe angegeben.Ungültige Zugriffsrechte angegeben.Ungültiger Benutzer angegeben.Ungültiger Wert für "record_size".Kein Speicher mehrDateiname nach '-C' fehlt.Änderungszeit ist unterschiedlich`mode' ist unterschiedlichModus- oder Gerätenummer sind unterschiedlich.Mehr als ein Datum angegeben.Verteilte Archive verlangen die Option '-M'.Kein Archiv-Name angegebenIst kein Verzeichnis mehr.Kein neues Medium; halte an. Datei oder Verzeichnis nicht vorhanden.Keine reguläre Datei.Nicht auf `%s' gelinkt.Veraltete Option, ersetzt durch '--absolute-names'.Veraltete Option, ersetzt durch '--backup'.Veraltete Option, ersetzt durch '--block-number'.Veraltete Option, ersetzt durch '--blocking-factor'.Veraltete Option, ersetzt durch '--read-full-records'.Veraltete Option, ersetzt durch '--touch'.Veraltete Option, jetzt bei '--blocking-factor' inbegriffen.Die alte Option '%c' benötigt einen Parameter.Lasse '%s' aus.Die beiden Optionen '-%s' und '-%s' verlangen Standard-Eingabe.Die Optionen '-Aru' sind nicht kompatibel mit '-f -'.Die Optionen '-[0-7][lmh]' unterstützt _dieses_ »tar« nicht.Vorzeitiges Dateiende.Medium #%d für %s einlegen und "Return" drücken: Lese Checkpoint %d.Lesefehler bei %s.Lese %s. Die Recordgröße muß ein Vielfaches von %d sein.Entferne Laufwerksbuchstaben von Namen im Archiv.Entferne führenden `/' von absoluten Links.Entferne führenden `/' von absoluten Dateinamen im Archiv.Benenne '%s' in '%s' um.Größe ist unterschiedlichSpringe zum Kopfteil der nächsten Datei.Springe zum nächsten Kopfteil.Symbolischer Link ist unterschiedlich.Symbolischer Link von '%s' auf '%s'.Das sieht nicht wie ein »tar«-Archiv aus.Dieses Programm ist freie Software; die Quellen enthalten die Kopierbedingungen. Es gibt KEINE Garantie, auch nicht hinsichtlich des Einsatzes für einen bestimmten Zweck. Dieser Teil ist nicht an der Reihe.Zu viele Fehler, beende.Gesamtzahl geschriebener Bytes: `%s --help' zeigt weitere Informationen. Benutzerkennung ist unterschiedlichUnerwartetes Dateiende im Archiv.Unerwartetes Dateiende in verstümmelten Namen.Unerwartetes Dateiende in Archiv.Unbekanntes Kommando »%s« beim Zusammensetzen von Namen.Unbekannter Dateityp '%c' für %s, Differenz wie für eine normale Datei.Unbekannter Dateityp '%c' für %s, wie eine normale Datei herausgeholt.Unbekanntes Muster `%s'Unbekannter Systemfehler.FEHLER BEI PRÜFUNG: %d ungültiger Kopfteil bzw. -teile erkannt.Prüfe Fehler bei langem Dateinamen.Fehler bei langem Dateinamen.Teil `%s' paßt nicht zu `%s'.WARNUNG: Archiv unvollständigWARNUNG: Kann %s nicht schließen (%d, %d).WARNUNG: Kein Kopfteil vorhanden.Schreibe Checkpoint %d.Von den Optionen '-Acdtrux' ist nur _eine_ erlaubt.Eine der Optionen '-Acdtrux' ist notwendig.exec/tcp: Service nicht verfügbar.rmtd: Kann Speicherplatz für Puffer nicht reservieren. rmtd: Ungültiges Kommando '%c'. rmtd: Vorzeitiges Dateiende. StandardeingabeStandardausgabetar (Kind)tar Enkel (`tar (grandchild)').tar-1.13/po/es.gmo0000664000176300016070000010010606740055252007450 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt-A…‰B³?E=™E}-G’JEeKØ­P> Pì°Rø“V©RY=(\ \¹ ^Z-^{8^©*^â_ Í``Ý `ð´`þ"a³aÖaõ>b"bSbv/b–bÆbäc%c cFcW!ck9c7cÇ7cÿ d7>dX=d—<dÕ<e=eO<e#eÊeî;ffC4f]8f’!fË fí,gAg;#g} g¡)gÂ$gì$h#h6!hZh| h”$hµFhÚ"i!iDi[ip"ii³iÓ%iðj,j*+jWjƒj¡j·"jÕ)jø0k",kS1k€7k²+kê,l0lClt.l#l¾)lâ%m +m2#m^8m‚Cm»'mÿ+n''nS.n{(nªnÓnê o'o##oKoo o‰o“Jo¥2oðp#p65pIp,p”.pÁpðFq~qÅAqÙr"r.XrQsª2sÉ1sü8t.&tgtŽ)tž$tÈtí,u(u./uW.u‡u¶#uÍ$uñvv/:vA2v|8v¯;vè=w$1wb4w”,wÉ wö5x0x9:xjx¥.x¾#xíy y(/y4Nyd2y³Fyæz-zD+zZ z†z§ zÇzè©{${°{Õ{ò)| |6|I)|f|9|ªS|äG}8}€}ž>}¼ }û~~$$~B$~g(~Œ$~µ%~Ú425 h0‰ºØ퀀€2 §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: GNU tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1998-08-11 18:10+0200 Last-Translator: Santiago Vila Doncel Language-Team: Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit Selección de formato de archivo: -V, --label=NOMBRE crea un archivo con nombre de volumen NOMBRE PATRÓN en el momento de listar/extraer, utiliza un PATRÓN -o, --old-archive, --portability escribe un archivo con formato V7 --posix escribe un archivo conforme a POSIX -z, --gzip, --ungzip filtra el archivo a través de gzip -Z, --compress, --uncompress filtra el archivo a través de compress --use-compress-program=PROG filtra a través de PROG (debe aceptar -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Bloques de dispositivos: -b, --blocking-factor=BLOQUES BLOQUES x 512 bytes por registro --record-size=TAMAÑO TAMAÑO bytes por registro, múltiplo de 512 -i, --ignore-zeros pasa por alto bloques de ceros en archivo (significan EOF) -B, --read-full-records rebloquea mientras se lee (en tuberías de 4.2BSD) Selección de dispositivos y conmutadores: -f, --file=ARCHIVO utiliza el archivo o dispositivo ARCHIVO --force-local el archivo es local incluso si tiene dos puntos --rsh-command=ORDEN utiliza la ORDEN remota en vez de rsh -[0-7][lmh] especifica unidad y densidad -M, --multi-volume crea/lista/extrae un archivo multivolumen -L, --tape-length=NUM cambia la cinta después de escribir NUM x 1024 bytes -F, --info-script=FICHERO ejecuta el script al final de cada cinta (implica -M) --new-volume-script=FICH igual que -F FICH --volno-file=ARCHIVO utiliza/actualiza el número de volumen en ARCHIVO GNU tar no puede leer ni generar archivos `--posix'. Si POSIXLY_CORRECT está definido en el entorno, las extensiones GNU se deshabilitan con `--posix'. El soporte para POSIX está sólo parcialmente implementado, no se debe contar con él aún. ARCHIVO puede ser FICHERO, HOST:FICHERO o USUARIO@HOST:FICHERO; y FICHERO puede ser un fichero o un dispositivo. *Este* `tar' utiliza `-f%s -b%d' por omisión. Manejo de los atributos de los ficheros: --owner=NOMBRE establece NOMBRE como propietario para los ficheros que se añaden --group=NOMBRE establece NOMBRE como grupo para los ficheros que se añaden --mode=CAMBIOS establece CAMBIOS como modo (simbólico) para los ficheros que se añaden --atime-preserve no cambia la fecha de acceso en los ficheros volcados -m, --modification-time no extrae la fecha de modificación de ficheros --same-owner intenta extraer ficheros con el mismo propietario --numeric-owner siempre utiliza números para nombres de usuario/grupo -p, --same-permissions extrae toda la información de protección --preserve-permissions igual que -p -s, --same-order ordena los nombres a extraer para coincidir con el archivo --preserve-order igual que -s --preserve igual que -p y -s a la vez Si una opción larga muestra un argumento como obligatorio, entonces es obligatorio también para la opción corta equivalente. Lo mismo ocurre con los argumentos opcionales. Salida de información: --help muestra esta ayuda, y finaliza --version informa de la versión y finaliza -v, --verbose lista prolijamente los ficheros procesados --checkpoint muestra los nombres de directorio al leer el archivo --totals muestra los bytes escritos en total al crear el archivo -R, --block-number muestra el número de bloque en el archivo con cada mensaje -w, --interactive pide confirmación para cada acción --confirmation igual que -w Selección de fichero local: -C, --directory DIR cambia al directorio DIR -T, --files-from=NOMBRE obtiene los nombres a extraer o crear del archivo NOMBRE --null -T lee nombres terminados en cero, deshabilita -C --exclude=PATRÓN excluye archivos, dados como un PATRÓN -X, --exclude-from=ARCHIVO excluye patrones listados en ARCHIVO -P, --absolute-names no elimina las '/'s iniciales de los nombres de fichero -h, --dereference vuelca en su lugar los ficheros a los que apuntan los enlaces simbólicos. --no-recurse evita descender automáticamente en directorios -l, --one-file-system permanece en el sistema de ficheros local cuando se crea el archivo -K, --starting-file=NOMBRE comienza en el fichero NOMBRE del archivo Modo de operación principal: -t, --list lista el contenido de un archivo -x, --extract, --get extrae ficheros de un archivo -c, --create crea un nuevo archivo -d, --diff, --compare encuentra las diferencias entre el archivo y el sistema de ficheros -r, --append añade ficheros al final de un archivo -u, --update sólo añade ficheros más recientes que la copia del archivo -A, --catenate añade ficheros tar a un archivo --concatenate igual que -A --delete borra de un archivo (¡no en cintas magnéticas!) Modificadores de operación: -W, --verify intenta verificar el archivo después de escribirlo --remove-files borra los ficheros después de añadirlos al archivo -k, --keep-old-files no sobreescribe los ficheros existentes al extraer -U, --unlik-first borra cada fichero antes de extraer sobre él -S, --sparse maneja archivos dispersos eficientemente -O, --to-stdout extrae ficheros hacia la salida estándar -G, --incremental maneja copias de seguridad incrementales en formato GNU antiguo -g, --listed-incremental maneja copias de seguridad incrementales en formato GNU nuevo --ignore-failed-read no termina con estado de error cuando encuentra archivos ilegibles Comunicar `bugs' a . El sufijo de respaldo es `~', a menos que se especifique con --suffix o con SIMPLE_BACKUP_SUFFIX. El control de versiones puede establecerse con --backup o con VERSION_CONTROL, los valores son: t, numbered hace copias de seguridad numeradas nil, existing numerada si existen copias de seguridad numeradas, simples en otro caso never, simple siempre hace copias de seguridad simples Modo de empleo: %s [OPCIÓN]... Modo de empleo: %s [OPCIÓN]... [FICHERO]... Escrito por François Pinard . Escrito por John Gilmore y Jay Fenlason. --backup[=CONTROL] copia de seguridad antes de eliminar, elige el control de versión --suffix=SUFIJO copia de seguridad antes de eliminar, pasa por alto el sufijo habitual -N, --newer=FECHA sólo almacena los ficheros más recientes que FECHA --newer-mtime compara la fecha y hora en que los datos cambiaron --after-date=FECHA igual que -N (memoria volcada) enlace a %s n [nombre] Da un nuevo nombre de archivo al siguiente (y consecutivos) volumen(es) q Aborta tar ! Lanza un subshell ? Muestra esta ayuda tipo de fichero desconocido `%c' %s no continúa en este volumen%s es el archivo; no se vuelca%s: No se pudieron cambiar las fechas de acceso y modificación%s: No se pudo crear el directorio%s: No se pudo crear el fichero%s: No se pudo crear el enlace simbólico a `%s'%s: No se pudo enlazar a `%s'%s: No se pudo crear el `fifo'%s: No se pudo crear el nodo%s: No se pudo escribir en el fichero%s: Borrando %s %s: Error al cerrar%s: No se encuentra en el archivo%s: Está en un sistema de ficheros distinto; no se vuelca%s: Tipo de fichero desconocido; no se tendrá en cuenta%s: No se pudo hacer copia de seguridad de este fichero%s: no ha cambiado; no se vuelca((proceso hijo)) Se abre una tubería desde la entrada estándar((proceso hijo)) Se abre una tubería hacia la salida estándar(proceso hijo) Se abre una tubería desde la entrada estándar(proceso hijo) Se vuelca el resultado por la salida estándar(proceso nieto) Se abre una tubería desde la entrada estándar(proceso nieto) Se abre una tubería hacia la salida estándar--Nombres de fichero modificados-- --Cabecera de Volumen-- Añadidos permisos de escritura y ejecución al directorio %sEl patrón `%s' es ambiguoEl fin del archivo %s no está en un límite de bloqueEl archivo no está etiquetado para que coincida con `%s'Archivo desde la entrada estándarArchivo hacia la salida estándarAl principio de la cinta, se terminará ahoraIntentando la extracción de enlaces simbólicos como enlaces durosNo se puede añadir el directorio %sNo se puede añadir el fichero %sNo se puede asignar espacio para el búferNo se puede cambiar al directorio %sNo se puede cambiar al directorio %sNo se puede cerrar el descriptor %dNo se puede cerrar el fichero #%dNo se puede ejecutar %sNo se puede ejecutar un shell %sNo se puede ejecutar un shell remotoNo se puede extraer `%s' -- el archivo es continuación de otro volumenFalló la llamada al sistema `fork'¡No se puede bifurcar!No se puede abrir %sNo se puede abrir el archivo %sNo se puede abrir el directorio %sNo se puede abrir el fichero %sNo se puede abrir la tuberíaNo se puede duplicar %s correctamenteNo se puede leer %sNo se puede leer la confirmación del usuarioNo se puede leer del programa de compresiónNo se puede leer el enlace %sNo se puede borrar %sNo se puede renombrar %s a %sNo se pudo obtener el estado de %sNo se puede leer el estado del fichero %sNo se puede crear el enlace simbólico de %s a %sNo se pueden actualizar archivos comprimidosNo se pueden usar archivos comprimidos ni remotosNo se pueden utilizar archivos multivolumen comprimidosNo se pueden verificar archivos comprimidosNo se pueden verificar archivos multivolumenNo se puede verificar la entrada/salida estándarNo se puede escribir en %sNo se puede escribir al programa de compresiónEl proceso hijo no puede bifurcarseEl proceso hijo terminó con la señal %d%sEl proceso hijo devolvió el estado %dOpciones de formato de archivo en conflictoOpciones de compresión en conflictoNo se puede asignar memoria para el factor de bloqueo %dNo se puede ir hacia atrás en el archivo; puede ser ilegible sin -iNo se pudo obtener el directorio actualNo se pudo obtener el directorio actual: %sNo se ha podido reposicionar el archivoNo se pudo rebobinar el archivo para verificarRechazo cobarde a crear un archivo vacíoCreando el directorio:Los datos son distintosBorrando no-cabecera del archivoLos números de dispositivo han cambiadoEl directorio %s ha sido renombradoEl directorio %s es nuevoNo existeEOF en el archivoSe encontró un final de fichero mientras se esperaba respuesta del usuarioSalida con error demorada desde errores anterioresError al cerrar %sError al borrar %sExtrayendo ficheros contiguos como ficheros regularesEl fichero no existeEl nombre de fichero %s%s es demasiado largoEl nombre del fichero %s/%s es demasiado largoGNU `tar' guarda varios ficheros juntos en un solo archivo en cinta o disco, y puede restablecer ficheros individuales a partir del archivo. Se requieren características de GNU en formato de archivo incompatibleOrden ininteligibleGenera ficheros de datos para el conjunto de pruebas de GNU tar. El gid es distintoMmm, esto no parece un archivo tarLos argumentos obligatorios para las opciones largas son también obligatorios para las opciones cortas. -l, --file-length=LONGITUD LONGITUD del fichero generado -p, --pattern=PATRÓN PATRÓN es `default' o `zeros' --help muestra esta ayuda y sale --version informa de la versión y finaliza Formato de fecha inválido `%s'Se ha especificado un grupo no válido en la opciónSe ha especificado un modo no válido en la opciónSe ha especificado un propietario no válido en la opciónEl valor de `record_size' no es válidoMemoria agotadaFalta el nombre del fichero después de -CLa fecha de modificación es distintaEl modo es distintoEl modo o el tipo de dispositivo ha cambiadoSe ha especificado más de una fecha topeLos archivos múltiples requieren la opción `-M'No se ha especificado ningún nombre de archivoYa no es un directorioNo hay volumen nuevo; finalizando. No existe el archivo o el directorioNo es un fichero regularNo se enlaza a %sNombre de opción obsoleta reemplazado por --absolute-namesNombre de opción obsoleta reemplazado por --backupNombre de opción obsoleta reemplazado por --block-numberNombre de opción obsoleta reemplazado por --blocking-factorNombre de opción obsoleta reemplazado por --read-full-recordsNombre de opción obsoleta reemplazado por --touchOpción obsoleta, ahora incluida en --blocking-factorLa opción antigua `%c' requiere un argumentoOmitiendo %sLas opciones `-%s' y `-%s' requieren entrada estándarLas opciones `-Aru' son incompatibles con `-f -'*Esta* versión de tar no admite las opciones `-[0-7][lmh]'Fin de fichero prematuroPrepare el volumen #%d para %s y pulse intro: Punto de comprobación de lectura %dError de lectura en %sLeyendo %s El tamaño del registro debe ser múltiplo de %d.Eliminando las especificaciones de unidad de los nombres que hay en el archivoEliminando la `/' inicial de los enlaces absolutosBorrando la `/' inicial de los nombres absolutos de ruta en el archivoSe renombra %s como %sEl tamaño es distintoSaltando a la siguiente cabecera de ficheroSaltando a la siguiente cabeceraEl enlace simbólico es distintoSe enlaza %s simbólicamente a %sEsto no parece un archivo tarEsto es software libre; vea el código fuente para las condiciones de copia. No hay NINGUNA garantía; ni siquiera de COMERCIABILIDAD o IDONEIDAD PARA UN FIN DETERMINADO. Este volumen está fuera de secuenciaDemasiados errores, abandonoBytes escritos en total: Pruebe `%s --help' para más información. El uid es distintoEOF inesperado en el archivoEOF inesperado en los nombres modificadosEOF inesperado en archivoOrden desconocida para recuperar el nombre original de %sTipo de fichero desconocido `%c' para %s, se toma la diferencia como fichero normalTipo de archivo desconocido `%c' para %s, se extrae como fichero normalEl patrón `%s' es desconocidoError del sistema desconocidoFALLO DE VERIFICACIÓN: %d cabecera(s) inválida(s) detectada(s)Verificar Error de nombre largo visibleError de nombre largo visibleEl volumen `%s' no coincide con `%s'ATENCIÓN: El archivo está incompletoATENCIÓN: No se puede cerrar %s (%d, %d)ATENCIÓN: No hay cabecera de volumenPunto de comprobación de escritura %dNo se puede especificar más de una opción `-Acdtrux'Se debe especificar una de las opciones `-Acdtrux'exec/tcp: Servicio no disponiblermtd: No se puede asignar espacio para el búfer rmtd: Orden ininteligible %c rmtd: EOF prematuro entrada estándar (stdin)salida estándar (stdout)tar (proceso hijo)tar (proceso nieto)tar-1.13/po/fr.gmo0000664000176300016070000010403106740055252007451 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt4A…0Bº=EëUF)âHßLbýNB¯S@ Sð¬Wì[¾[^«0c°c8dé$e6e&)e]e‡Wf‰gágúÉh hÓ'hò%i:i@ i{iœ.iº&ié#jj4#jPjt j‡)j¨DjÒ,k$kD)ki&k“&kº1ká2l+lF,lrlŸl½@lÔmIm(2mrm¥ mÅ"mæEn nOnp&nŽ%nµ%nÛ oo"o@oY'ovCož#oâpp%"p=p`p€ p'p¾pæ)pö2q qSqkq~q›q®.qÌ/qû:r+Grf*r®;rÙAssW0sn4sŸ0sÔ+t.t1&t`;t‡_tÃ&u#)uJ2ut8u§5uàvv..vL-v{v©vÉ vç/võ?w%.we!w”w¶EwÐxx/xNŽxn?xýy=DyOy”4y§iyÜ!{F{h{ˆ%{¦.{Ì{û(| $|5|Z0|w|¨A|Á}&}(}E!}n&}}·-}Ö4~+~9.~e0~”$~Å:~ê:%`Go:·Kò €>5€_€•€µ€Î9€ÝC3[JÚê3‚(‚5 ‚^!‚1‚¡»‚Óƒ ƒ¬ƒÍ/ƒì„/„/&„_*„†#„±B„ÕF……_…s=…Œ…Ê…á…ÿ&†(†B)†k+†•"†ÁC†ä3‡(!‡\/‡~‡®‡Ì‡ë‡ñ ‡øˆ §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: GNU tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1997-04-25 19:34 -0500 Last-Translator: Michel Robitaille Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit Sélection du format d'archive: -V, --label=NOM inscrire le NOM de l'archive sur le volume EXPREG utiliser l'EXPression REGulière lors de de l'affichage des noms ou de l'extraction de fichiers -o, --old-archive, --portability écrire selon le format d'archive V7 --posix écrire l'archive selon un format conforme POSIX -z, --gzip, --ungzip post-traiter l'archive avec «gzip» -Z, --compress, --uncompress post-traiter l'archive avec «compress» --use-compress-program=PROG post-traiter l'archive avec le PROGramme (doit accepter l'option -d) Copyright © 1995, 1996, 1997 Free Software Foundation, Inc. Facteur de blocage du périphérique: -b, --blocking-factor=N utiliser un facteur de blocage de 512 octets par enregistrement --record-size=N utiliser un facteur de blocage de N octets par enregistrement (N doit être un multiple de 512) -i, --ignore-zeros ignorer les blocs de zéros de l'archive (c'est-à-dire les EOF) -B, --read-full-records changer le facteur de blocage lors de la lecture (pour les pipes de BSD 4.2) Sélection de périphérique et aiguillage: -f, --file=ARCHIVE utiliser le fichier ou le périphérique d'ARCHIVE --force-local le fichier d'archive est local malgré la présence de ':' --rsh-command=COMMANDE utiliser la télé-COMMANDE au lieu de «rsh» -[0-7][lmh] spécifier la densité du périphérique d'archivage -M, --multi-volume créer/afficher/extraire une archive à multiples volumes -L, --tape-length=N utiliser un autre ruban après l'écriture de N x 1024 octets -F, --info-script=SCRIPT exécuter le SCRIPT à la fin de chaque ruban (implique -M) --new-volume-script=FICHIER identique à -F FICHIER --volno-file=FICHIER utiliser/mettre à jour le numéro de volume dans le FICHIER «tar» de GNU ne peut lire ni produire des archives de type `--posix'. Si la variable d'environnement POSIXLY_CORRECT est initialisée, les extensions de GNU sont inhibées avec l'option `--posix'. Le support pour POSIX est partiellement implanté, ne comptez pas trop dessus pour l'instant. Une ARCHIVE peut être un FICHIER, ou HÔTE:FICHIER ou USAGER@HÔTE:FICHIER; FICHIER peut être alors un fichier ou un périphérique. Les options par défaut de cette version sont `-f%s -b%d'. Traitement des attributs de fichiers: --owner=PROPRIÉTAIRE attribuer au PROPRIÉTAIRE les fichiers ajoutés --group=GROUPE attribuer au GROUPE les fichiers ajoutés --mode=CHMOD modifier les modes d'accès à la manière de de CHMOD des fichiers ajoutés --atime-preserve ne pas modifier les dates d'accès des fichiers traités -m, --modification-time ne pas extraire les fichiers dont les dates ont été modifiées --same-owner essayer d'extraire les fichiers ayant le même propriétaire --numeric-owner utiliser les valeurs numériques d'appartenance pour les noms d'usager/groupe -p, --same-permissions extraire toute l'information de protection --preserve-permissions identique à -p -s, --same-order trier les noms afin d'extraire ceux qui concordent dans l'archive --preserve-order identique à -s --preserve identique à l'utilisation combinée de -p et -s Un paramètre obligatoire pour une option de forme longue l'est aussi pour une option de forme courte. La même règle s'applique à un paramètre indiqué comme étant optionnel. Modes informatifs de sortie: --help afficher l'aide-mémoire --version afficher le nom et la version du logiciel -v, --verbose utiliser le mode bavard lors du traitement des fichiers --checkpoint afficher les noms des répertoires lors de la lecture de l'archive --totals afficher le nombre total d'octets lors de la création de l'archive -R, --block-number afficher le numéro de bloc contenu dans l'archive pour chaque message -w, --interactive demander confirmation de l'usager pour chaque action --confirmation identique à -w Sélection locales des fichiers: -C, --directory RÉP opérer à partir du RÉPertoire -T, --files-from=NOM repérer les noms à extraire ou à créer à partir du fichier portant le NOM --null lire les noms se terminant par des nuls, désactivation de l'option -C, -T est implicite --exclude=PATRON exclure les fichiers indiqués par le PATRON d'escamotage -X, --exclude-from=FICHIER exclure les patrons d'escamotage apparaissant dans le FICHIER -P, --absolute-names ne pas éliminer le caractères `/' de tête des noms de fichiers -h, --dereference éliminer les liens symboliques de fichiers --no-recursion éviter de parcourir automatiquement l'arborescence des répertoires -l, --one-file-system demeurer dans le système local de fichiers lors de la création d'une archive -K, --starting-file=NOM débuter l'archivage avec le fichier portant le NOM Mode principal d'exécution: -t, --list afficher le contenu d'une archive -x, --extract, --get extraire les fichiers d'une archive -c, --create créer une archive -d, --diff, --compare comparer le contenu de l'archive et le système de fichier -r, --append accoller les fichiers à la fin de l'archive -u, --update accoller seulement les nouveaux fichiers et ensuite les copier dans l'archive -A, --catenate accoller les fichiers «tar» à l'archive --concatenate identique à -A --delete éliminer des entrées (mais pas pour les rubans) Options modifiant les modes d'opération: -W, --verify tenter de vérifier l'archive après écriture --remove-files détruire les fichiers un fois copiés dans l'archive -k, --keep-old-files ne pas écraser les fichiers existants lors de l'extraction -U, --unlink-first détruire chaque fichier avant une nouvelle extraction qui pourrait l'écraser --recursive-unlink vider l´arborescence des répertoires avant une nouvelle extraction -S, --sparse traiter efficacement les fichiers dispersés -O, --to-stdout extraire les fichiers vers la sortie standard -G, --incremental traiter les vieux formats GNU d'archive incrémentiel -g, --listed-incremental traiter les nouveaux formats GNU d'archive incrémentiel --ignore-failed-read ignorer les fichiers de taille nulle ou non lisibles Rapporter toutes anomalies à tar-bugs@gnu.org. Le suffixe d'archive est ~, à moins que l'option --suffix ou SIMPLE_BACKUP_SUFFIX en utilise un autre. Le contrôle de version peut être initialisé avec --backup ou VERSION_CONTROL selon les valeurs suivantes: t, numbered faire des archives numérotées nil, existing numéroter si des archives numérotées existent, ne pas numéroter autrement never, simple toujours faire des archives de type simple Usage: %s [OPTION]... Usage: %s [OPTION]... [FICHIER]... Écrit par François Pinard . Conçu par John Gilmore et Jay Fenlason. --backup[=CONTRÔLE] archiver avant le retrait, utiliser la version de contrôle --suffix=SUFFIXE archiver avant le retrait, en remplaçant par le SUFFIXE le suffixe usuel -N, --newer=DATE conserver seulement les fichiers ayant une date plus récente que la DATE --newer-mtime comparer les dates et les heures lorsque seulement les données ont été modifiées --after-date=DATE identique à -N (vidange de la mémoire) lien vers %s n [nom] Donner un nouveau nom de fichier pour le prochain (ainsi que pour les subséquents) volume(s) q Stopper «tar» ! Lancer un shell ? Afficher la liste type inconnu de fichier `%c' La suite de %s n'est pas sur ce volume.%s est l'archive; n'a pas été rejeté.%s: ne peut modifier les dates d'accès et de modification.%s: ne peut créer le répertoire.%s: ne peut créer le fichier.%s: ne peut créer un lien symbolique vers `%s'%s: ne peut établir un lien vers `%s'.%s: ne peut créer un relais (fifo).%s: ne peut créer un noeud.%s: ne peut écrire dans le fichier.%s: retrait de %s %s: erreur lors de la fermeture.%s: ne peut être retrouvé dans l'archive.%s: provient d'un système de fichiers différent; n'a pas été rejeté.%s: type de fichier inconnu; fichier ignoré.%s: incapable d'archiver ce fichier.%s: demeure inchangé; n'a pas été rejeté.Relais vers l'entrée standard (child) Relais vers la sortie standard (child)(processus enfant) Relais vers l'entrée standard.(processus enfant) Relais vers la sortie standard.Relais vers l'entrée standard (grandchild).Relais vers la sortie standard (grandchild) --Noms de fichiers mutilés-- --En-tête de Volume-- Ajout des permissions d'écriture et d'exécution au répertoire %sPatron ambigu `%s'La fin de fichier (EOF) de l'archive %s n'est pas sur une limite de bloc.L'archive sans étiquette ne peut concorder à `%s'.Archive vers l'entrée standard.Archive vers la sortie standard.Au début du ruban, fin prématurée.Tentative d'extraction des liens symboliques comme des liens directs.Ne peut ajouter le répertoire %sNe peut ajouter le fichier %sNe peut allouer un tampon de stockage.Ne peut changer pour le répertoire %sNe peut changer de répertoire pour %sNe peut fermer le descripteur %dNe peut fermer le fichier #%d%s ne peut être exécuté.Ne peut lancer un 'shell' %sNe peut exécuter un shell télécommandé.Ne peut extraire `%s' -- le fichier est la suite d'un autre volume.Ne peut procéder par clonage (fork)Ne peut créer un clone (fork)!%s ne peut être ouvert.L'archive %s ne peut être ouverte.Ne peut ouvrir le répertoire %sNe peut ouvrir le fichier %sNe peut établir le relais (pipe)Ne peut effectuer la duplication de %s.Ne peut lire %sNe peut lire la confirmation de l'usager.Ne peut lire à partir du programme de compression.Ne peut lire le lien %sNe peut enlever %s%s ne peut être renommé à %sNe peut évaluer %sNe peut évaluer le fichier %sNe peut créer un lien symbolique de %s vers %sNe peut mettre à jour des archives compressées.Ne peut archiver en mode compressé ou à travers le réseau.Ne peut traiter des archives compressées portant sur plusieurs volumes.Ne peut vérifier des archives compressées.Ne peut vérifier des archives comportant plusieurs volumes.Ne peut vérifier des archives utilisant l'entrée/sortie standard.Ne peut écrire vers %sNe peut écrire vers un programme de compression.Processus enfant ne peut procéder par clonage (fork)Processus enfant a été stoppé par le signal %d%sLe processus enfant a retourné le statut %dOptions conflictuelles de formatage d'archive.Options conflictuelles de compression.Ne peut allouer de la mémoire pour le facteur de blocage %dNe peut effacer par recul un fichier d'archive; elle pourrait être illisible sans l'option -i .Ne peut repérer le répertoire courant.Ne peut repérer le répertoire courant: %sNe peut se repositionner sur le fichier d'archive.Ne peut rembobiner le fichier d'archive pour véfication.Refus catégorique de créer un fichier d'archive vide.Création du répertoire:Les données sont différentes.Rejet d'une en-tête non conforme de l'archive.Les numéros du périphérique ont été modifiés.Le répertoire %s a été renommé.Le répertoire %s est nouveau.N'existe pas.Fin de fichier (EOF) dans le fichier d'archive.EOF rencontrée alors qu'une réponse de l'usager était attendue.Statut d'erreur reporté d'erreurs précédentes.Erreur lors de la fermeture de %sErreur lors du retrait %sExtraction des fichiers contiguës comme des fichiers de type régulierLe fichier n'existe pas.Nom de fichier %s%s trop long.Nom de fichier %s/%s trop long.GNU `tar' saugegarde plusieurs fichiers sur un ruban ou une archive sur disque et peut restaurer des fichiers individuellement d'une archive. Options de GNU demandées pour un format d'archive incompatible.Commande rejetée.Générer les fichiers de données pour la suite des tests de GNU tar. Les Gid diffèrent.Cela ne ressemble pas à une archive de type «tar»...Si une option de forme longue requiert un paramètre obligatoire, il est alors obligatoire également pour une option de forme courte. -l, --file-length longueur du fichier généré -p, --pattern=PATRON PATRON doit être "default" ou "zeros" --help afficher l'aide-mémoire --version afficher le nom et la version du logiciel Format de date invalide dans `%s'Groupe invalide donné en optionMode invalide donné en optionPropriétaire invalide donné en optionValeur invalide de la taille d'enregistrement.Mémoire occupée.Après -C le nom de fichier est manquant.Les dates de modification diffèrent.Les modes d'accès diffèrent.Le mode ou le type de périphérique a été modifé.Plus d'une date de seuilL'option `-M' est requise pour des fichiers à multiples archives.Aucun nom d'archive donné.N'est présentement plus un répertoire.Pas de nouveau volume; fin d'exécution. Fichier ou répertoire inexistant.N'est pas un fichier de type régulier.Ne possède pas de lien vers %sOption désuète remplacée par --absolute-namesL'option --backup remplace l'option devenue désuète.Option désuète remplacée par --block-numberOption désuète remplacée par --blocking-factorOption désuète remplacée par --read-full-recordsOption désuète remplacée par --touchOption désuète, maintenant implicite par --blocking-factorVieille option `%c' requiert un paramètre supplémentaire.Omission de %sLes options `-%s' et`-%s' requièrent toutes les deux l'entrée standard.Les option `-Aru' sont incompatibles avec l'option `-f -'Les options `-[0-7][lmh]' ne sont pas supportées par cette version de «tar»Fin de fichier prématurée (EOF).Charger le volume #%d pour %s et appuyer sur ENTRÉE: Lecture du point de contrôle %dErreur de lecture sur %sLecture de %s La taille des enregistrements doit être un multiple de %dRetrait des spécifications de périphérique des noms dans l'archive.Retrait du caractère '/' de tête des liens absolus.Retrait du caractère '/' de tête des noms de chemins absolus de l'archive.%s renommé à %sLes tailles diffèrent.Escamotage jusqu'à la prochaine en-tête de fichier.Escamotage jusqu'à la prochaine en-tête.Les liens symboliques diffèrent.%s relié par lien symbolique à %sCeci ne ressemble pas à une archive de type «tar»Ce logiciel est gratuit; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donnée; tant pour des raisons COMMERÇIALES que pour RÉPONDRE À UN BESOIN PARTICULIER. Ce volume est hors séquence.Trop d'erreurs, fin d'exécution.Nombre total d'octets écrits: Pour en savoir davantage, faites: `%s --help'. Les Uid diffèrent.Fin prématurée (EOF) rencontrée dans l'archive.Fin prématurée (EOF) des noms mutilés.Fin prématurée (EOF) du fichier d'archive.Commande %s de correction inconnue.Type de fichier inconnu '%c' pour %s, diffère d'un fichier normal.Type de fichier inconnu '%c' pour %s, extrait comme un fichier normal.Patron inconnu `%s'Erreur système inconnue.ÉCHEC DE VÉRIFICATION: %d en-tête(s) invalide(s) détectée(s).Vérification en cours.Erreur visible d'un long nom.Erreur visible de nom long.Le volume `%s' ne concorde pas à `%s'.AVERTISSEMENT: l'archive est incomplète.AVERTISSEMENT: ne peut fermer %s (%d, %d)AVERTISSEMENT: pas d'en-tête sur le volume.Écriture d'un point de contrôle %dVous ne pouvez pas sélectionner plus d'une option parmi `-Acdtrux' Vous devez sélectionner une des options `-Acdtrux' exec/tcp: service non disponible.«rmtd»: ne peut allouer un tampon de stockage. «rmtd»: commande %c rejetée. «rmtd»: fin prématurée (EOF). stdinstdout«tar» (child)«tar» (grandchild)tar-1.13/po/it.gmo0000664000176300016070000007053406740055252007470 •ÞÌ| Ü0?1-qˆŸW(€ ä1-áD$"&7"K#ƒ!#›7#½+#õ™$!¶$»%r %˜%Ž&'"&@&c2&&´&Ó$&í''-'E']'y'Š'¢)'»#'å"( (,(I(a(z((§(Â(Þ(ö2) )<$)S")x)›)¬")¾5)á**/*B*_*}**«*Á*Ð*ç<+ +@ +L+Y+h++˜+¬+½+Ú"+é$, ,1,E,V,m,|,!,¨(,Ê+,ó!-#-A"-e-ˆ#-›-¿-Ñ-í"..)0.IA.z.¼#.Ü"/(/#,/L/y / /š/»/Ò/ð00!0''0I0q0ˆ,0 0Í0á0ù{121Ž1Á,1Ñ 1þ)2 Y243Ž3§3Å3â444/4J 4[4h4„+4¡4Í4ã4ù55,5?15P)5‚/5¬25Ü46(6D16m%6Ÿ 6Å06Ñ+717.7`*7v7¡7´ 7Å%7Ñ-7÷(8%<8N8‹ 8œ8©8Æ8Þ8î%9—9'9¿9Þ9ø&: :5:A:[:{:š4:¸7:í;%;:-;O;};…;;½!;Ü;þ<3<,.<`<#<¯<Ó<í== =="=,?>Ok>?ûjBÿmDjGØîHvOKeñMµ'P§bPÏR2 RI7Rj)R¢½RÌÞSŠTi T~¤TŠU/ UOUp6U#UÇUë(V #V3VWVv!V•V·VÈVç5W+W;7Wg"WŸWÂWÚWóX X X6XMXh@X…XÆ6XÛ;YYNY_'Yq*Y™&YÄ!Yë)Z (Z7$Z`&Z… Z¬ZÍ Zå$[@[+[l[‚[™ [¯"[Ð[ó\&\,\S,\j6\—\Î\í]]&!]B*]d(],]¸0]å(^+^?.^k^š1^µ ^ç%_$_.6_S(_Š6_³h_ê-`S1`*`³8`Þ3aaKa^+ar&až"aÅaè bb 3b&2bZb%b©*bÏbú$c %c2{cXBcÔd7d*db&du^dœ"eû ff?&f^ f…f¦f· fÖf÷,g g8*gO+gzg¦g¾gÚg÷h 7h /hX5hˆ8h¾:h÷.i27ia.i™ iÈ>iÕ/j9jDj~-j–jÄjÝ jõ7jÿ3k7)kk;k•kÑkå(l l)lJlb!l~—l m8mWmp.m†mµmÊ!mè&n 'n1FnYCn näný7o oSo]%o|%o¢,oÈ,oõp"9p=-pw"p¥0pÈpùqq5q; qB qO ¥#9-±] ZŠ›—o[Å{z@i%”®g 8Æ,t¾D¢µ’ž­v€"À.–‹È}q¯A?¼„Ǥ+³M¨)WuO†Ã²¿ d˹Qw:ˆ6´;Ÿœ°pI$NŽ kª!T¦¬'™ÌJ 1ry5hmE‘ÉS2FjsŒR>ă»4§/“l‰=«~©C(K½…|^c Lʶfx‡V*3_‚\`0H&šºbaÁ·GPU£¡B•˜n¸<eY7X Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: GNU tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1998-11-27 20:24+01:00 Last-Translator: Marco d'Itri Language-Team: Italian MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Blocking dei dispositivi: -b, --blocking-factor=BLOCKS usa record di BLOCKS x 512 bytes --record-size=SIZE usa record di SIZE bytes, multiplo di 512 -i, --ignore-zeros ignora blocchi azzerati nel archivio (significa EOF) -B, --read-full-records reblock in lettura (per le pipe di 4.2BSD) Selezione e cambio del dispositivo: -f, --file=ARCHIVIO usa come archivio il file o il dispositivo ARCHIVIO --force-local l'archivio è locale anche se contiene `:' --rsh-command=COMANDO usa la shell remota COMANDO al posto di rsh -[0-7][lmh] specifica il drive e la densità -M, --multi-volume crea/elenca/estrai archivi multi-volume -L, --tape-length=NUM cambia nastro dopo aver scritto NUMx1024 byte -F, --info-script=FILE esegui lo script FILE alla file di ogni nastro (implica -M) --new-volume-script=FILE come -F FILE --volno-file=FILE usa/aggiorna il numero del volume in FILE GNU tar non può leggere nè produrre archivi `--posix'. Se nell'ambiente è impostato POSIXLY_CORRECT, `--posix' vieta le estensioni GNU. Il support per POSIX è implementato solo parzialmente, non contateci ancora. ARCHIVIO può essere FILE, HOST:FILE oppure UTENTE@HOST:FILE; FILE può essere un file o un dispositivo. *Questo* `tar' è predefinito a `-f%s -b%d'. Gestione degli attributi dei file: --owner=NOME forza NOME come proprietario dei file aggiunti --group=NOME forza NOME come gruppo dei file aggiunti --mode=CAMBI forza il modo (simbolico) CAMBI per i file aggiunti --atime-preserve non cambia il tempo di accesso dei file archiv. -m, --modification-time non estrae il tempo di ultima modifica del file --same-owner cerca di estrarre i file con lo stesso proprietario --numeric-owner usa sempre i numeri per i nomi di utente/gruppo -p, --same-permissions estrae tutti i permessi --preserve-permissions come -p -s, --same-order ordina i nomi da estrarre come nell'archivio --preserve-order come -s --preserve come -s e -p insieme Se una opzione lunga indica un argomento come obbligatorio, allora lo è anche per l'opzione corta equivalente. Lo stesso vale per gli argomenti opzionali. Selezione dei file locali: -C, --directory=DIR si sposta nella directory DIR -T, --files-from=NOME prende i nomi da estrarre o creare dal file NOME --null -T legge nomi terminati da null, disabilita -C --exclude=MODELLO esclude i file i cui nomi soddisfano il MODELLO -X, --exclude-from=FILE esclude i modelli elencati nel file FILE -P, --absolute-names non rimuove lo '/' iniziale dai nomi dei file -h, --dereference archivia il file a cui punta il symlink --no-recursion non attraversa automaticamente le directory -l, --one-file-system resta nel file system locale durante la creazione -K, --starting-file=NOME comincia dal file NOME nell'archivio Modi operativi principali: -t, --list elenca il contenuto dell'archivio -x, --extract, --get estrae i file da un archivio -c, --create crea un nuovo archivio -d, --diff, --compare cerca differenze tra l'archivio e il file system -r, --append accoda i file alla fine di un archivio -u, --update accoda solo i file più nuovi della copia in archivio -A, --catenate aggiungi il contenuto di un altro archivio --concatenate come -A --delete cancella da un archivio (non su nastri magnetici!) Modificatori delle operazioni: -W, --verify prova a verificare l'archivio dopo averlo scritto --remove-files cancella i file dopo averli aggiunti all'archivio -k, --keep-old-files nell'estrazione non sovrascrive file esistenti -U, --unlink-first cancella ogni file prima di estrarre su di esso --recursive-unlink svuota le directory prima di estrarle -S, --sparse gestisce efficientemente i file sparsi -O, --to-stdout estrae i file su standard output -G, --incremental gestisce i vecchi backup incrementali GNU -g, --listed-incremental gestisce i nuovi backup incrementali GNU --ignore-failed-read non esce con non-zero con file illeggibili Segnalate i bug a . Il suffisso dei backup è `~', a meno che sia impostato con --suffix oppure SIMPLE_BACKUP_SUFFIX. Il controllo di versione può essere impostato con --backup oppure VERSION_CONTROL, i valori sono: t, numbered fa backup numerati nil, existing numerati se esistono backup numerati, altrimenti semplici never, simple fa sempre backup semplici Uso: %s [OPZIONE]... Uso: %s [OPZIONE]... [FILE]... Scritto da François Pinard . Scritto da John Gilmore e Jay Fenlason. --backup[=CONTROLLO] backup prima di rimuovere, scegli il controllo di versione --suffix=SUFFSSO backup prima di rimuovere, cambia suffisso -N, --newer=DATA archivia solo i file più recenti di DATA --newer-mtime confronta data e ora solo quando il contenuto è cambiato --after-date=DATE come -N (fatto un core dump) link a %s n [nome] Cambia il nome del file per il prossimo volume (e i successivi) q Termina tar ! Esegui una subshell ? Stampa questa lista tipo di file sconosciuto `%c' %s non continua su questo volume%s è l'archivio; non archiviato%s: Impossibile cambiare i tempi di accesso e modifica%s: Impossibile creare la directory%s: Impossibile creare il file%s: Impossibile creare un symlink a `%s'%s: Impossibile fare il link a `%s'%s: Impossibile creare il fifo%s: Impossibile creare il nodo%s: Impossibile scrivere nel file%s: Cancello %s %s: Errore durante la chiusura%s: Non trovato nell'archivio%s: Si trova su un diverso filesystem; non archiviato%s: Tipo di file sconosciuto; file ignorato%s: Non è stato possibile fare il backup di questo file%s: non modificato; non archiviato((figlio)) Pipe a stdin((figlio)) Pipe a stdout(figlio) Pipe a stdin(figlio) Pipe a stdout(nipote) Pipe a stdin(nipote) Pipe a stdout--Nomi di file mutilati-- --Intestazione del Volume-- Aggiunti i permessi di scrittura ed esecuzione alla directory %sModello ambiguo `%s'La fine dell'archivio %s non è sul limite di un bloccoL'archivio non è stato etichettato per corrispondere a `%s'Archivio a stdinArchivio a stdoutAll'inizio del nastro, abbandono adessoCerco di estrarre i symlink come hard linkImpossibile aggiungere la directory %sImpossibile aggiungere il file %sImpossibile allocare spazio per il bufferImpossibile spostarsi nella directory %sImpossibile cambiare directory in %sImpossibile chiudere il descrittore %dImpossibile chiudere il file #%dImpossibile eseguire %sImpossibile eseguire la shell %sImpossibile eseguire la shell remotaImpossibile estrarre `%s' -- il file continua da un altro volumeImpossibile fare forkImpossibile fare fork!Impossibile aprire %sImpossibile aprire l'archivio %sImpossibile aprire la directory %sImpossibile aprire il file %sImpossibile aprire la pipeImpossibile duplicare correttamente %sImpossibile leggere %sImpossibile leggere una conferma dall'utenteImpossibile leggere dati dal programma di compressioneImpossibile leggere il link %sImpossibile rimuovere %sImpossibile rinominare %s in %sImpossibile fare stat su %sImpossibile fare stat sul file %sImpossibile fare un link simbolico %s a %sImpossibile aggiornare archivi compressiImpossibile usare archivi compressi o remotiImpossibile usare archivi multi-volume compressiImpossibile verificare archivi compressiImpossibile verificare archivi multi-volumeImpossibile verificare archivi su stdin/stdoutImpossibile scrivere su %sImpossibile scrivere al programma di compressioneIl figlio non riesce a fare forkIl figlio è morto con il segnale %d%sIl figlio ha restituito lo status %dLe opzioni di formato dell'archivio sono in conflitto.Conflitto tra le opzioni di compressioneImpossibile allocare memoria per il blocking factor %dImpossibile muoversi all'indietro nel file dell'archivio; potrebbe essere illeggibile senza l'opzione -iImpossibile determinare la directory correnteImpossibile determinare la directory corrente: %sImpossibile riposizionare il file archivioImpossibile riavvolgere il file archivio per la verificaCodardamente mi rifiuto di creare un archivio vuotoCreo la directory:I dati differisconoCancello dall'archivio una non-intestazioneI numeri dei dispositivi sono cambiatiLa directory %s è stata rinominataLa directory %s è nuovaNon esisteEOF nel file dell'archivioLetto EOF mentre era attesa la risposta dell'utenteUscita per errore ritardata dall'errore precedenteErrore nella chiusura di %sErrore durante la cancellazione di %sEstraggo i file contigui come file normaliIl file non esisteIl nome del file %s%s è troppo lungoIl nome del file %s/%s è troppo lungoGNU `tar' salva molti file insieme in un solo archivio su nastro o su disco e può ripristinare singoli file dall'archivio. Richieste funzionalità GNU su un formato di archivio incompatibileComando spazzaturaGenero i file di dati per la suite di test di GNU tar. I gid differisconoUhm, questo non sembra un archivio tarGli argomenti che sono obbligatori per le opzioni lunghe lo sono anche per le opzioni corte equivalenti. -l, --file-length=LENGTH lunghezza del file generato -p, --pattern=MODELLO MODELLO è `default' o `zeros' --help mostra questo aiuto ed esce --version mostra le informazioni sulla versione ed esce Formato della data non valido `%s'Gruppo non valido in una opzioneModo non valido in una opzioneProprietario non valido in una opzioneValore di record_size non validoMemoria esauritaManca il nome del file dopo -CI tempi di modifica differisconoI modi differisconoIl modo o il tipo del dispositivo è cambiatoPiù di una data limiteArchivi multipli richiedono l'opzione `-M'Non è stato specificato un nome di archivioNon è più una directoryNessun nuovo volume; esco. File o directory inesistenteNon è un file normaleNon è un link a %sNome di opzione obsoleto sostituito da --absolute-namesNome di opzione obsoleto sostituito da --backupNome di opzione obsoleto sostituito da --block-numberNome di opzione obsoleto sostituito da --blocking-factorNome di opzione obsoleto sostituito da --read-full-recordsNome di opzione obsoleto sostituito da --touchOpzione obsoleta, adesso implicata da --blocking-factorLa vecchia opzione `%c' richiede un argomento.Tralascio %sEntrambe le opzioni `-%s' e `-%s' richiedono lo standard inputLe opzioni `-Aru' sono incompatibili con `-f -'Le opzioni `-[0-7][lmh]' non sono gestite da *questo* tarFine del file prematuraPrepara il volume #%d per %s e premi return: Checkpoint di lettura %dErrore di lettura su %sLeggo %s La dimensione del record deve essere un multiplo di %d.Rimuovo la lettera del drive dai nomi nell'archivioRimuovo lo `/' iniziale dai link assolutiRimuovo lo `/' iniziale dai percorsi assoluti nell'archivio%s rinominato in %sLe dimensioni differisconoSalto alla prossima intestazione di fileSalto alla prossima intestazioneIl symlink è differente%s è un link simbolico a %sQuesto non sembra un archivio tarThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Questo volume è fuori sequenzaTroppi errori, abbandonoByte totali scritti: Usare `%s --help' per ulteriori informazioni. Gli uid differisconoEOF inaspettato nell'archivioEOF inaspettato nei nomi mutilatiEOF inaspettato sul file dell'archivioComando di demutilazione sconosciuto %sTipo di file sconosciuto '%c' per %s, confrontato come un file normaleTipo di file '%c' sconosciuto per %s, estratto come un file normaleModello sconosciuto `%s'Errore di sistema sconosciutoERRORE DI VERIFICA: intestazioni non valide trovate: %dVerifica Errore nel nome lungo visibileIl volume `%s' non corrisponde a `%s'ATTENZIONE: L'archivio non è completoATTENZIONE: Impossibile chiudere %s (%d, %d)ATTENZIONE: intestazione del volume mancanteCheckpoint di scrittura %dImpossibile specificare più di una opzione tra `-Acdtrux'Devi specificare una delle opzioni `-Acdtrux'exec/tcp: Servizio non disponibilermtd: Impossibile allocare spazio per il buffer rmtd: Comando spazzatura %c rmtd: Fine del file prematura stdinstdouttar (figlio)tar (nipote)tar-1.13/po/ko.gmo0000664000176300016070000005415606740055252007467 •Þ»ôû ̸?¹-ùˆ'W°- á7$>!V7x+°¶Ü“ ¢˜¯H"a„2¢Õô$3Nf~š«Ã)Ü# " * M j ‚ › ± È ã ÿ2!!E$!\"!!¤!µ"!Ç5!ê" "8"K"h"†"™"´"Ê"Ù"ð<# #I #U#b#q#ˆ#¡#µ#Æ#ã"#ò$$$:$N$_$v$…!$($¿+$è!%#%6"%Z%}#%%´%Æ%â"%û&0&>&o#&"&³(&Ö&ÿ ' ' 'A'X'v'Š'™!'­'Ï'æ,'þ(+(?(W(p,(€ (­)(¹Y(ã*=*V*t*‘*¯*Í*Þ*ù + +++3+_+u+‹+¤+¾+Ñ1+â),/,>2,n4,¡(,Ö1,ÿ%-1 -W0-c+-”1-À-ò.. .,%.8-.^(.Œ<.µ.ò ///-/E/U%/h/Ž/­/Ç&/Ý 000*0I0^-0s0¡0©0Á0Ø0ø!1191S31g.1›1Ê#1ê22(2=2C 2J2V%2g<3Z3Êó5%|8 9–.;£ÿ=Ò.@ÒA A;A:-Av·A¤B\ Bk£BwC%C7"C],C€C­CÍ+CéDD3DODkD…D”D¬,DÀ'Dí"E&E8E_EEŸE½EÛEùF-F&FT0Fe+F–FÂFÛ"Fô)G GAGbG Gž G¿GàGýHH1HLDHiH®HÁHÕHéII#I<ITIs I‰*IªIÕIð!JJ( J@$Ja4J†.J»$Jê'K)K7KaKuK”K®"KÍKðL 3LLS"Lr&L•.L¼LëM!MM3!MHMjMM–&MªMÑMê'NN-NFNc N.NN¾+NÍ7NùP1PIPgP…P¥P¿PÏPêPÿQ+Q,#QXQ|Q”Q«QÉQÞ1Qñ+R#/RO/R4R¯(Rä-S %S; Sa0Sk,Sœ1SÉSûT T T.(T<3Te&T™9TÀTúUUU7UKU_'UzU¢UÀUÞ,UñVV-VHVhV}(V”V½VÃVÙ$VîW$W1WVWk1W|+W®WÚ%WöXX4XFXO XX Xc‹…2p’'G|Tº:M “^<ª5¯O#n.B•%9kŒ>‘i4¬+£ˆ‰˜\«†3)F0D»ƒot‡™¨E?‚”LŠNh±W§gš =&l]až­ mP°s8eHCµ—";{-RŸu@¸x ›´¡®!¶¢ 1b/6YcKœj·A }¤_v–¥7rw[„Z©~¦y²¹*XŽIU ,³S$Vqz€d`Q(Jf Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of fileRead checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF on archive fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: GNU tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1997-05-30 22:55+0900 Last-Translator: Bang Jun-Young Language-Team: Korean MIME-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 8-bit ÀúÀÛ±Ç (C) 1995, 1996, 1997 Free Software Foundation, Inc. ÀåÄ¡ ºí·° ¼³Á¤: -b, --blocking-factor=BLOCK ·¹ÄÚµå´ç BLOCK x 512 ¹ÙÀÌÆ® --record-size=SIZE ·¹ÄÚµå´ç SIZE ¹ÙÀÌÆ®, 512ÀÇ ¹è¼ö -i, --ignore-zeros ¾ÆÄ«À̺꿡¼­ ¿µÀ¸·Î µÈ ºí·°À» ¹«½ÃÇÕ´Ï´Ù (EOF¸¦ ÀǹÌÇÔ) -B, --read-full-records ÀÐÀº °ÍÀ» Àçºí·°È­ÇÕ´Ï´Ù (4.2BSD ÆÄÀÌÇÁ¿ëÀ¸·Î) ÀåÄ¡ ¼±Åðú Àüȯ: -f, --file=ARCHIVE ¾ÆÄ«À̺ê ÆÄÀÏ ¶Ç´Â ARCHIVE ÀåÄ¡¸¦ »ç¿ëÇÕ´Ï´Ù --force-local À̸§¿¡ ÄÝ·ÐÀÌ ÀÖ´Â ¾ÆÄ«À̺ê ÆÄÀϵµ Áö¿ª ÆÄÀÏ·Î ÀνÄÇÕ´Ï´Ù --rsh-command=COMMAND rsh ´ë½Å ¿ø°Ý COMMAND¸¦ »ç¿ëÇÕ´Ï´Ù -[0-7][lmh] µå¶óÀ̺ê¿Í ±â·Ï ¹Ðµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù -M, --multi-volume ´ÙÁß º¼·ý ¾ÆÄ«À̺긦 »ý¼º/Ãâ·Â/ÃßÃâÇÕ´Ï´Ù -L, --tape-length=NUM NUM x 1024 ¹ÙÀÌÆ®¸¦ ¾´ µÚ¿¡ Å×ÀÌÇÁ¸¦ ¹Ù²ß´Ï´Ù -F, --info-script=FILE °¢ Å×ÀÌÇÁÀÇ ³¡¿¡¼­ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÕ´Ï´Ù (-MÀ» Æ÷ÇÔÇÔ) --new-volume-script=FILE -F FILE°ú °°À½ --volno-file=FILE FILE ¾È¿¡ ÀÖ´Â º¼·ý ¹øÈ£¸¦ »ç¿ë/°»½ÅÇÕ´Ï´Ù GNU tar´Â `--posix' ¾ÆÄ«À̺긦 Àаųª ¸¸µé¾î ³¾ ¼ö ¾ø½À´Ï´Ù. ¸¸¾à POSIXLY_CORRECT°¡ ȯ°æ¿¡¼­ ¼³Á¤µÇ¾î ÀÖ´Ù¸é, GNU È®ÀåÀº `--posix'À» ÅëÇØ ºñÈ°¼ºÈ­µË´Ï´Ù. POSIX Áö¿øÀº °Ü¿ì ºÎºÐÀûÀ¸·Î¸¸ ±¸ÇöµÇ¾úÀ¸¹Ç·Î ¾ÆÁ÷ ½Å·Ú ÇÏÁö´Â ¸¶½Ê½Ã¿À. ARCHIVE´Â FILE, HOST:FILE, ¶Ç´Â USER@HOST:FILEÀÌ µÉ ¼ö ÀÖÀ¸¸ç, ¿©±â¼­ FILEÀº ÆÄÀÏÀ̳ª ÀåÄ¡°¡ µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌ `tar'ÀÇ ³»Á¤°ªÀº `-f%s -b%d'ÀÔ´Ï´Ù. Á¤º¸ Ãâ·Â¿¡ °üÇÑ ¿É¼Ç: --help ÀÌ µµ¿ò¸»À» ÀμâÇÏ°í ³¡³À´Ï´Ù --version tar ÇÁ·Î±×·¥ÀÇ ¹öÀü ¹øÈ£¸¦ ÀμâÇÏ°í ³¡³À´Ï´Ù -v, --verbose 󸮵Ǵ ÆÄÀÏÀ» ¼ø¼­´ë·Î Ãâ·ÂÇÕ´Ï´Ù --checkpoint ¾ÆÄ«À̺긦 ÀÐÀ» µ¿¾È µð·ºÅ丮 À̸§À» ÀμâÇÕ´Ï´Ù --totals ¾ÆÄ«À̺긦 ¸¸µé µ¿¾È ¾²¿©Áø ÃÑ ¹ÙÀÌÆ® ¼ö¸¦ ÀμâÇÕ´Ï´Ù -R, --block-number °¢ ¸Þ½ÃÁö¸¶´Ù ¾ÆÄ«À̺곻ÀÇ ºí·° ¹øÈ£¸¦ Ç¥½ÃÇÕ´Ï´Ù -w, --interactive ¸ðµç Çൿ¿¡ ´ëÇØ È®ÀÎÀ» ¿ä±¸ÇÕ´Ï´Ù --confirmation -w¿Í °°À½ ÁÖ¿ä µ¿ÀÛ ¸ðµå: -t, --list ¾ÆÄ«À̺êÀÇ ³»¿ë¹°À» Ãâ·ÂÇÕ´Ï´Ù -x, --extract, --get ¾ÆÄ«À̺꿡¼­ ÆÄÀÏÀ» ÃßÃâÇÕ´Ï´Ù -c, --create »õ·Î¿î ¾ÆÄ«À̺긦 ¸¸µì´Ï´Ù -d, --diff, --compare ¾ÆÄ«À̺ê¿Í ÆÄÀÏ ½Ã½ºÅÛ°£ÀÇ Â÷ÀÌÁ¡À» ºñ±³ÇÕ´Ï´Ù -r, --append ¾ÆÄ«ÀÌºê ³¡¿¡ ÆÄÀÏÀ» Ãß°¡ÇÕ´Ï´Ù -u, --update ¾ÆÄ«ÀÌºê ¾ÈÀÇ °Íº¸´Ù »õ·Î¿î ÆÄÀϸ¸ Ãß°¡ÇÕ´Ï´Ù -A, --catenate ¾ÆÄ«À̺꿡 tar ÆÄÀÏÀ» Ãß°¡ÇÕ´Ï´Ù --concatenate -A¿Í °°À½ --delete ¾ÆÄ«À̺ê·ÎºÎÅÍ Á¦°ÅÇÕ´Ï´Ù (ÀÚ±â Å×ÀÌÇÁ¿¡¼± ¾ÈµÊ!) µ¿ÀÛ º¯°æÀÚ: -W, --verify ¾ÆÄ«À̺긦 ±â·ÏÇÑ ´ÙÀ½ °ËÁõÇϵµ·Ï ÇÕ´Ï´Ù --remove-files ¾ÆÄ«À̺꿡 ÆÄÀÏÀ» Ãß°¡ÇÑ ´ÙÀ½ Áö¿ó´Ï´Ù -k, --keep-old-files ÃßÃâÇÒ ¶§ ÀÌ¹Ì Á¸ÀçÇÏ´Â ÆÄÀÏÀ» µ¤¾î¾²Áö ¾Ê½À´Ï´Ù -U, --unlink-first ÃßÃâÇϱ⿡ ¾Õ¼­ ´ë»ó ÆÄÀÏÀ» Áö¿ó´Ï´Ù --recursive-unlink µð·ºÅ丮¸¦ ÃßÃâÇϱ⿡ ¾Õ¼­ ±× ü°è¸¦ ºñ¿ó´Ï´Ù -S, --sparse ½ºÆĽº ÆÄÀÏÀ» È¿À²ÀûÀ¸·Î ó¸®ÇÕ´Ï´Ù -O, --to-stdout Ç¥ÁØ Ãâ·ÂÀ¸·Î ÆÄÀÏÀ» ÃßÃâÇÕ´Ï´Ù -G, --incremental ¿À·¡µÈ GNU Çü½ÄÀÇ Á¡ÁøÀû ¹é¾÷ ÆÄÀÏÀ» ó¸®ÇÕ´Ï´Ù -g, --listed-incremental »õ·Î¿î GNU Çü½ÄÀÇ Á¡ÁøÀû ¹é¾÷ ÆÄÀÏÀ» ó¸®ÇÕ´Ï´Ù --ignore-failed-read ÀÐÀ» ¼ö ¾ø´Â ÆÄÀÏ¿¡ ´ëÇØ ¿µ ¾Æ´Ñ °ªÀ¸·Î Á¾·áÇÏÁö ¾Ê½À´Ï´Ù ·Î ¹ö±×¸¦ º¸°íÇØ ÁֽʽÿÀ. »ç¿ë¹ý: %s [¿É¼Ç]... »ç¿ë¹ý: %s [¿É¼Ç]... [ÆÄÀÏ]... François Pinard °¡ ¸¸µé¾ú½À´Ï´Ù. John Gilmore¿Í Jay FenlasonÀÌ ¸¸µé¾ú½À´Ï´Ù. -N, --newer=DATE DATE ÀÌÈÄÀÇ ÆÄÀϵ鸸 ÀúÀåÇÕ´Ï´Ù --newer-mtime µ¥ÀÌÅÍ°¡ ¹Ù²î¾úÀ» ¶§¸¸ ³¯Â¥¿Í ½Ã°£À» ºñ±³ÇÕ´Ï´Ù --after-date=DATE -N°ú °°À½ (ÄÚ¾î Ãâ·ÂµÊ) %s·Î ¸µÅ© n [À̸§] ´ÙÀ½(°ú ±× ÀÌÈÄÀÇ) º¼·ý¿¡ ´ëÇÑ »õ ÆÄÀÏ À̸§À» ÁöÁ¤ÇÕ´Ï´Ù q tar¸¦ Áß´ÜÇÕ´Ï´Ù ! ¼­ºê¼ÐÀ» ½ÇÇàÇÕ´Ï´Ù ? ÀÌ ¸ñ·ÏÀ» ÀμâÇÕ´Ï´Ù ¾Ë ¼ö ¾ø´Â ÆÄÀÏ Å¸ÀÔ `%c' %s´Â ÀÌ º¼·ý¿¡ ¿¬¼ÓµÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù%s´Â ¾ÆÄ«À̺êÀÔ´Ï´Ù; ´ýÇÁµÇÁö ¾ÊÀ½%s: Á¢±Ù ½Ã°¢°ú ¼öÁ¤ ½Ã°¢À» ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù%s: µð·ºÅ丮¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù%s: ÆÄÀÏÀ» ¸¸µé ¼ö ¾ø½À´Ï´Ù%s: `%s'¿¡ ´ëÇÑ ±âÈ£¸µÅ©¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù%s: `%s'¿¡ ¸µÅ©ÇÒ ¼ö ¾ø½À´Ï´Ù%s: fifo¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù%s: ³ëµå¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù%s: ÆÄÀÏ¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù%s: %s¸¦ Áö¿ò %s: ´Ý´Â µ¿¾È ¿À·ù ¹ß»ý%s: ¾ÆÄ«À̺꿡 ¾øÀ½%s: ´Ù¸¥ ÆÄÀϽýºÅÛ »ó¿¡ ÀÖÀ½; ´ýÇÁµÇÁö ¾ÊÀ½%s: ¾Ë ¼ö ¾ø´Â ÆÄÀÏ Å¸ÀÔ; ÆÄÀÏÀÌ ¹«½ÃµÊ%s: ÀÌ ÆÄÀÏÀ» ¹é¾÷ÇÒ ¼ö ¾ø¾ú½À´Ï´Ù%s: º¯°æµÇÁö ¾Ê¾Ò½À´Ï´Ù; ´ýÇÁµÇÁö ¾ÊÀ½((ÀÚ½Ä)) Ç¥ÁØÀԷ¿¡ ´ëÇÑ ÆÄÀÌÇÁ((ÀÚ½Ä)) Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ÆÄÀÌÇÁ(ÀÚ½Ä) Ç¥ÁØÀԷ¿¡ ´ëÇÑ ÆÄÀÌÇÁ(ÀÚ½Ä) Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ÆÄÀÌÇÁ(¼ÕÀÚ) Ç¥ÁØÀԷ¿¡ ´ëÇÑ ÆÄÀÌÇÁ(¼ÕÀÚ) Ç¥ÁØÃâ·Â¿¡ ´ëÇÑ ÆÄÀÌÇÁ--º¼·ý Çì´õ-- %s µð·ºÅ丮¿¡ ¾²±â¿Í ½ÇÇà ±ÇÇÑÀ» ºÎ°¡Çß½À´Ï´Ù¸ðÈ£ÇÑ ÆÐÅÏ `%s'ºí·° °æ°è°¡ ¾Æ´Ñ ºÎºÐ¿¡¼­ ¾ÆÄ«À̺ê %sÀÇ EOF °ËÃâ`%s'¿Í ÀÏÄ¡Çϵµ·Ï ¶óº§ÀÌ ºÙÁö ¾ÊÀº ¾ÆÄ«À̺êÇ¥ÁØÀԷ¿¡ ´ëÇÑ ¾ÆÄ«À̺êÇ¥ÁØÃâ·Â¿¡ ´ëÇÑ ¾ÆÄ«À̺êÅ×ÀÌÇÁÀÇ ½ÃÀÛ ºÎºÐ¿¡¼­ Áö±Ý Á¾·áÇÔ±âÈ£ ¸µÅ©¸¦ ÇÏµå ¸µÅ©·Î ÃßÃâÇÏ°í ÀÖ½À´Ï´Ù%s µð·ºÅ丮¸¦ Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´ÙÆÄÀÏ %s¸¦ Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´Ù¹öÆÛ °ø°£À» ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´Ù%s·Î µð·ºÅ丮¸¦ ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù%s·Î µð·ºÅ丮¸¦ ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù±â¼úÀÚ %d¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´ÙÆÄÀÏ #%d¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´Ù%s¸¦ ½ÇÇàÇÒ ¼ö ¾ø½À´Ï´Ù%s ¼ÐÀ» ½ÇÇàÇÒ ¼ö ¾ø½À´Ï´Ù¿ø°Ý ¼ÐÀ» ½ÇÇàÇÒ ¼ö ¾ø½À´Ï´Ù`%s'¸¦ ÃßÃâÇÒ ¼ö ¾ø½À´Ï´Ù -- ÀÌ ÆÄÀÏÀº ´Ù¸¥ º¼·ý¿¡ ¿¬¼ÓµÇ¾î ÀÖ½À´Ï´ÙforkÇÒ ¼ö ¾ø½À´Ï´ÙforkÇÒ ¼ö ¾ø½À´Ï´Ù!%s¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù%s ¾ÆÄ«À̺긦 ¿­ ¼ö ¾ø½À´Ï´Ù%s µð·ºÅ丮¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù%s ÆÄÀÏÀ» ¿­ ¼ö ¾ø½À´Ï´ÙÆÄÀÌÇÁ¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù%s¸¦ Á¦´ë·Î º¹»çÇÒ ¼ö ¾ø½À´Ï´Ù%s¸¦ ÀÐÀ» ¼ö ¾ø½À´Ï´Ù»ç¿ëÀÚÀÇ È®ÀÎÀ» ÀÐÀ» ¼ö ¾ø½À´Ï´Ù¾ÐÃà ÇÁ·Î±×·¥À¸·ÎºÎÅÍ ÀоîµéÀÏ ¼ö ¾ø½À´Ï´Ù¸µÅ© %s¸¦ ÀÐÀ» ¼ö ¾ø½À´Ï´Ù%s¸¦ Áö¿ï ¼ö ¾ø½À´Ï´Ù%s¸¦ %s·Î À̸§À» ¹Ù²Ü ¼ö ¾ø½À´Ï´Ù%s¸¦ statÇÒ ¼ö ¾ø½À´Ï´Ù%s¸¦ %s·Î ±âÈ£¸µÅ©ÇÒ ¼ö ¾ø½À´Ï´Ù¾ÐÃàµÈ ¾ÆÄ«À̺긦 °»½ÅÇÒ ¼ö ¾ø½À´Ï´Ù¾ÐÃàµÈ ¾ÆÄ«À̺곪 ¿ø°Ý ¾ÆÄ«À̺긦 »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù¾ÐÃàµÈ ´ÙÁß-º¼·ý ¾ÆÄ«À̺긦 »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù¾ÐÃàµÈ ¾ÆÄ«À̺긦 °ËÁõÇÒ ¼ö ¾ø½À´Ï´Ù´ÙÁß-º¼·ý ¾ÆÄ«À̺긦 °ËÁõÇÒ ¼ö ¾ø½À´Ï´ÙÇ¥ÁØÀÔ/Ãâ·Â ¾ÆÄ«À̺긦 °ËÁõÇÒ ¼ö ¾ø½À´Ï´Ù%s¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù¾ÐÃà ÇÁ·Î±×·¥¿¡ ¾µ ¼ö ¾ø½À´Ï´ÙÀÚ½ÄÀº forkÇÒ ¼ö ¾ø½À´Ï´ÙÀÚ½ÄÀÌ ½ÅÈ£ %d%s¿Í ÇÔ²² Á×¾úÀ½ÀÚ½ÄÀÌ »óÅ %d¸¦ µÇµ¹·Á ÁÖ¾ú½À´Ï´ÙÇò°¥¸®´Â ¾ÆÄ«À̺ê Çü½Ä ¿É¼ÇÇò°¥¸®´Â ¾ÐÃà ¿É¼Çºí·° °è¼ö %d¿¡ ´ëÀÀÇÏ´Â ¸Þ¸ð¸®¸¦ ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´ÙÇöÀç µð·ºÅ丮¸¦ ¾Ë ¼ö ¾ø½À´Ï´ÙÇöÀç µð·ºÅ丮¸¦ ¾Ë ¼ö ¾ø½À´Ï´Ù: %s¾ÆÄ«À̺ê ÆÄÀÏÀ» ÀçÀ§Ä¡½Ãų ¼ö ¾ø½À´Ï´Ù°ËÁõÀ» À§ÇØ ¾ÆÄ«À̺ê ÆÄÀÏÀ» µÇ°¨À» ¼ö ¾ø½À´Ï´Ùµð·ºÅ丮¸¦ ¸¸µå´Â Áß:ÀÚ·á°¡ ´Ù¸¨´Ï´Ù¾ÆÄ«À̺꿡¼­ ºñÇì´õ ºÎºÐÀ» Á¦°ÅÇÔÀåÄ¡ ¹øÈ£°¡ ¹Ù²î¾úÀ½%s µð·ºÅ丮´Â À̸§ÀÌ ¹Ù²î¾ú½À´Ï´Ù%s´Â »õ µð·ºÅ丮ÀÔ´Ï´Ù°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù¾ÆÄ«À̺ê ÆÄÀÏ¿¡ EOF»ç¿ëÀÚÀÇ ÀÀ´äÀÌ ÇÊ¿äÇÑ °÷¿¡ EOF°¡ ÀÖÀ½%s¸¦ ´Ý´Â µ¿¾È ¿À·ù ¹ß»ý%s¸¦ Áö¿ì´Â µ¿¾È ¿À·ù ¹ß»ý¿¬¼ÓµÇ¾î ÀÖ´Â ÆÄÀÏÀ» ÀÏ¹Ý ÆÄÀÏ·Î ÃßÃâÇÔÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´ÙÆÄÀÏ À̸§ %s%s´Â ³Ê¹« ±é´Ï´ÙÆÄÀÏ À̸§ %s/%s´Â ³Ê¹« ±é´Ï´Ù¾µ¸ð¾ø´Â ¸í·ÉGNU tar ½ÃÇè µµ±¸¿ë µ¥ÀÌÅÍ ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù. gid°¡ ´Ù¸¨´Ï´ÙÈì, ÀÌ°ÍÀº tar ¾ÆÄ«À̺êó·³ º¸ÀÌÁö ¾Ê´Â±º¿ä±ä ¿É¼Ç¿¡ ºÎ°¡µÇ´Â Àμö°¡ ÀÖÀ» ¶§, ÀÌ´Â µ¿ÀÏÇÑ ÀǹÌÀÇ ÂªÀº ¿É¼Ç¿¡µµ Àû¿ëµË´Ï´Ù. -l, --file-length=±æÀÌ »ý¼ºµÇ´Â ÆÄÀÏÀÇ ±æÀÌ -p, --pattern=ÆÐÅÏ ÆÐÅÏÀº `default'³ª `zeros'ÀÔ´Ï´Ù --help ÀÌ µµ¿ò¸»À» º¸¿©ÁÖ°í ¸¶Ä¨´Ï´Ù --version ¹öÀü Á¤º¸¸¦ Ãâ·ÂÇÏ°í ¸¶Ä¨´Ï´Ù ºÎÀûÀýÇÑ ³¯Â¥ Çü½Ä `%s'¿É¼Ç¿¡ ºÎÀûÀýÇÑ ±×·ìÀÌ ÁÖ¾îÁü¿É¼Ç¿¡ ºÎÀûÀýÇÑ ¸ðµå°¡ ÁÖ¾îÁü¿É¼Ç¿¡ ºÎÀûÀýÇÑ ¼ÒÀ¯ÀÚ°¡ ÁÖ¾îÁürecord_size·Î ºÎÀûÀýÇÑ °ª¸Þ¸ð¸®°¡ ¹Ù´Ú³²-C µÚ¿¡ ÆÄÀÏ À̸§ÀÌ ºüÁ³À½º¯°æ ½Ã°¢ÀÌ ´Ù¸¨´Ï´Ù¸ðµå°¡ ´Ù¸¨´Ï´Ù¸ðµå ¶Ç´Â ÀåÄ¡ ŸÀÔÀÌ º¯°æµÊ´ÙÁß ¾ÆÄ«À̺ê ÆÄÀÏÀº `-M' ¿É¼ÇÀÌ ÇÊ¿äÇÕ´Ï´Ù¾ÆÄ«À̺ê À̸§ÀÌ ÁÖ¾îÁöÁö ¾Ê¾Ò½À´Ï´Ù´õ ÀÌ»ó µð·ºÅ丮°¡ ¾Æ´Ô»õ º¼·ýÀÌ ¾Æ´Ô; Á¾·á. ±×·± ÆÄÀÏÀ̳ª µð·ºÅ丮°¡ ¾øÀ½ÀϹÝÀûÀÎ ÆÄÀÏÀÌ ¾Æ´Ô%s¿¡ ¿¬°áµÇÁö ¾ÊÀ½--absolute-names·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§--backupÀ¸·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§--block-number·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§--block-factor·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§--read-full-records·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§--touch·Î ´ëüµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç À̸§--blocking-factor¿¡ Æ÷ÇÔµÇ¾î ¾µ¸ð¾ø°Ô µÈ ¿É¼Ç¿À·¡µÈ ¿É¼Ç `%c'´Â Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù.%s¸¦ »ý·«`-%s'°ú `-%s' ¿É¼ÇÀº ¸ðµÎ Ç¥ÁØ ÀÔ·ÂÀÌ ÇÊ¿äÇÕ´Ï´Ù`-Aru' ¿É¼ÇÀº `-f -'°ú µ¿½Ã¿¡ ¾µ ¼ö ¾ø½À´Ï´Ù`-[0-7][lmh]' ¿É¼ÇÀº ÀÌ tar¿¡¼± Áö¿øµÇÁö ¾Ê½À´Ï´ÙÀ߸øµÈ ÆÄÀÏ ³¡°Ë»çÁöÁ¡ %d¸¦ ÀÐÀ½%s¿¡¼­ Àб⠿À·ù%s¸¦ Àд Áß ·¹ÄÚµå Å©±â´Â %dÀÇ ¹è¼ö°¡ µÇ¾î¾ß ÇÕ´Ï´Ù.¾ÆÄ«À̺꿡 ÀÖ´Â À̸§µé¿¡¼­ µå¶óÀ̺ê ÁöÁ¤¹®À» Á¦°ÅÇÔÀý´ë ¸µÅ©µé¿¡¼­ ¾Õ¿¡ ºÙÀº `/'¸¦ Á¦°ÅÇÔ¾ÆÄ«ÀÌºê ¾È¿¡ ÀÖ´Â Àý´ë °æ·Î¸í¿¡¼­ ¾Õ¿¡ ºÙÀº `/'¸¦ Á¦°ÅÇÔ%s¸¦ %s·Î À̸§ ¹Ù²ÞÅ©±â°¡ ´Ù¸¨´Ï´Ù´ÙÀ½ ÆÄÀÏ Çì´õ·Î °Ç³Ê ¶Ü´ÙÀ½ Çì´õ·Î °Ç³Ê ¶Ü±âÈ£¸µÅ©°¡ ´Ù¸¨´Ï´Ù%s¿¡¼­ %s·Î ±âÈ£¸µÅ©µÇ¾úÀ½ÀÌ°ÍÀº tar ¾ÆÄ«À̺êó·³ º¸ÀÌÁö ¾Ê½À´Ï´ÙÀÌ º¼·ýÀº ¼ø¼­¸¦ ¹þ¾î³µ½À´Ï´Ù¿À·ù°¡ ³Ê¹« ¸¹¾Æ¼­ Á¾·áÇÕ´Ï´ÙÃÑ ¾²¿©Áø ¹ÙÀÌÆ®: ´õ ¸¹Àº Á¤º¸¸¦ º¸·Á¸é `%s --help' ÇϽʽÿÀ. uid°¡ ´Ù¸¨´Ï´Ù¾ÆÄ«À̺꿡 ¿¹±âÄ¡ ¾ÊÀº EOF¾ÆÄ«À̺ê ÆÄÀÏ¿¡ ¿¹±âÄ¡ ¾ÊÀº EOF¾Ë ¼ö ¾ø´Â ÆÐÅÏ `%s'¾Ë ¼ö ¾ø´Â ½Ã½ºÅÛ ¿À·ù°ËÁõ ½ÇÆÐ: %d°³ÀÇ ºÎÀûÀýÇÑ Çì´õ°¡ °ËÃâµÊ°ËÁõ °¡½ÃÀûÀÎ ±ä À̸§ ¿À·ù°¡½ÃÀûÀÎ ±äÀ̸§ ¿À·ùº¼·ý `%s'°¡ `%s'¿Í ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù°æ°í: ¾ÆÄ«À̺갡 ºÒ¿ÏÀüÇÕ´Ï´Ù°æ°í: %s¸¦ ´ÝÀ» ¼ö ¾ø½À´Ï´Ù (%d, %d)°æ°í: º¼·ý Çì´õ ¾øÀ½°Ë»çÁöÁ¡ %d¸¦ ¾¸`-Acdtrux' ¿É¼Ç Áß Çϳª ÀÌ»óÀ» ÁöÁ¤ÇÏ¸é ¾È µË´Ï´Ù`-Acdtrux' ¿É¼Çµé Áß Çϳª¸¦ ÁöÁ¤ÇØ¾ß ÇÕ´Ï´Ùexec/tcp: ¾µ ¼ö ¾ø´Â ¼­ºñ½ºrmtd: ¹öÆÛ °ø°£À» ÇÒ´çÇÒ ¼ö ¾ø½À´Ï´Ù rmtd: ¾µ¸ð¾ø´Â ¸í·É %c rmtd: À߸øµÈ eof Ç¥ÁØÀÔ·ÂÇ¥ÁØÃâ·Âtar (ÀÚ½Ä)tar (¼ÕÀÚ)tar-1.13/po/nl.gmo0000664000176300016070000007452006740055252007464 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt%A…1B«?DÝ3EìFQœI>dJÛNN@N÷P–QSŽUà%YpRY–Zé%[7[(/[`Ã[Â\T]]+¬]=]ê^^'4^G^|^–2^´^ç/__6#_V_z_Ž_¥._Â,_ñ3``R(`p)`™&`Ã'`ê+a,a>akaˆ0a›aÌ*aæ5bbGbdb‚HbŸbèbÿcc=c]!c}cŸc¾cÔ!cðAd dT!dud—dªdÅdÜd÷e e#e5*eUe€eœe´'eÑ'eù6f!+fXCf„6fÈ,fÿ(g,4gUgŠ,g¥%gÒgøh$h1 hV2hwDhª hï$i'i59i]4i— iÌiÚ%iíjj-j@ jPj]0j},j®jÛjñ8k kFk[ku}k“;llM4l]l’-l©El×n!n9!n[$n}#n¢nÆnØn÷o!o!oC0o^oo©o½oØoðp4p,pO2p|5p¯7på+q5qI&q q¦3q²0qæ<rrT.rprŸrµ rË,rÕ6s0s9>sjs©s½'sÏs÷t/t7(tg¡tu2uP uh"u‰u¬#uÇ+uë*v'vBGvjCv²vöw 1w" wTw_wy&w“wº&wØwÿx/x4)xd!xŽ&x°x×"xñyy$ y5y@ §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1998-12-12 15:23+0100 Last-Translator: André van Dijk Language-Team: Dutch MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit Archiefformaat selektie: -V, --label=NAAM maak een archief aan met deelnaam NAAM PATROON tijdens tonen/extractie, NAAM is bestandsselectiepatroon -o, --old-archive, --portability maak een V7 archief --posix maak een POSIX archief -z, --gzip, --ungzip filter het archief door gzip -Z, --compress, --uncompress filter het archief door compress --use-compress-program=PROG filter door PROG (moet -d accepteren) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Apparaat blokken: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=GROOTTE GROOTTE bytes per record, veelvoud van 512 -i, --ignore-zeros negeer genulde blokken (zelfde als EOF) -B, --read-full-records herblok tijdens lezen (voor 4.2BSD pijpen) Apparaat selectie en omschakeling: -f, --file=ARCHIEF gebruik archiefbestand of apparaat ARCHIEF --force-local archiefbestand is lokaal zelfs al heeft het een dubbele punt --rsh-command=COMMAND gebruik `remote' COMMAND in plaats van rsh -[0-7][lmh] specificeer station en dichtheid -M, --multi-volume maak/toon/extraheer meerdelige archieven -L, --tape-length=NUM verander tape na schrijven NUM x 1024 bytes -F, --info-script=BESTAND voer script uit aan einde van elke tape (-M) --new-volume-script=BESTAND zelfde als -F BESTAND --volno-file=BESTAND gebruik/actualiseer het deel nummer in BESTAND GNU tar kan geen `--posix' archieven lezen of maken. Als POSIXLY_CORRECT is gezet als omgevingsvariable zijn GNU uitbreidingen niet toegestaan met `--posix'. Ondersteuning voor POSIX is slechts gedeeltelijk geïmplementeerd, reken er nog"" niet op. ARCHIEF kan zijn BESTAND, HOST:BESTAND of GEBRUIKER@HOST:BESTAND; en BESTAND kan een bestand zijn of een apparaat. *Deze* `tar' gebruikt standaard `-f%s -b%d'. Wat te doen met bestandsattributen: --owner=NAAM NAAM wordt eigenaar toegevoegde bestanden --group=NAAM NAAM wordt groep toegevoegde bestanden --mode=OCTAAL OCTAAL wordt mode toegevoegde bestanden --atime-preserve verander de toegangstijd niet -m, --modification-time extraheer modificatie tijd niet --same-owner probeer te extraheren met zelfde eigenaar --numeric-owner gebruik nummers voor gebruikers- en groepsnamen -p, --same-permissions extraheer alle beveiligingsinformatie --preserve-permissions zelfde als -p -s, --same-order sorteer te extraheren namen om overeen te komen met archief --preserve-order zelfde als -s --preserve zelfde als -p en -s tegelijk Verplichte argumenten voor lange opties zijn ook verplicht bij korte opties. Informatieve uitvoer: --help toon hulp-tekst en beëindig programma --version toon versie-informatie en beëindig programma -v, --verbose toon verwerkte bestanden woordenrijk --checkpoint toon mapnaam tijdens lezen archief --totals toon aantal geschreven bytes tijdens aanmaken archief -R, --block-number toon bloknummer in archief bij elke melding -w, --interactive vraag om bevestiging bij elke aktie --confirmation zelfde als -w Lokale bestandsselektie: -C, --directory DIR verander naar map DIR -T, --files-from=NAAM haal de te gebruiken bestandsnamen uit NAAM --null -T leest nul-getermineerde namen, disable -C --exclude=PATROON sluit bestanden uit, gegeven als `globbing' PATROON -X, --exclude-from=BESTAND sluit `globbing' patronen uit BESTAND uit -P, --absolute-names haal voorloop `/' niet weg bij bestandsnamen -h, --dereference dump bestanden verwezen door symlinks --no-recurse voorkom automatisch afdalen in mappen -l, --one-file-system blijf in lokale bestandssysteem bij maken archief -K, --starting-file=NAAM start met bestand NAAM in het archief Hoofdwerkingsmodus: -t, --list toon de inhoud van een archief -x, --extract, --get extraheer bestanden uit een archief -c, --create maak een nieuw archief aan -d, --diff, --compare zoek verschillen tussen archief en bestandssysteem -r, --append voeg bestanden toe aan het einde van een archief -u, --update voeg alleen nieuwere bestanden toe aan archief -A, --catenate voeg tar bestanden toe aan archief --concatenate zelfde als -A --delete verwijder uit het archief (niet op mag. tapes!) Werkingsaanpassers: -W, --verify probeer archief na schrijven te verifiëren --remove-files verwijder bestanden na toevoegen in het archief -k, --keep-old-files overschrijf bestanden niet tijdens extractie -U, --unlink-first verwijder elk bestand voordat een nieuwe er overheen geëxtraheerd wordt (twee maal gegeven, zelfs hele lege mappen --recursive-unlink maak hierarchiën leeg voor extractie -S, --sparse ga efficiënt om met `sparse' bestanden -O, --to-stdout extraheer bestanden naar standaarduitvoer -G, --incremental gebruik oud GNU-formaat incrementele backup -g, --listed-incremental gebruik nieuw GNU-formaat incrementele backup --ignore-failed-read beëinding niet met niet-nul bij onleesbare bestanden Meld fouten aan . Het backup achtervoegsel is `~', tenzij ingesteld met --suffix of SIMPLE_BACKUP_SUFFIX. Het versie beheer kan worden ingesteld met --backup of VERSION_CONTROL, waarden zijn: t, numbered maak genummerde backups nil, existing genummerd als genummerde backups bestaat, anders simpel never, simple maak altijd simpele backups Aanroep: %s [OPTIE]... Aanroep: %s [OPTIE]... [BESTAND]... Written by François Pinard . Geschreven door John Gilmore en Jay Fenlason. --backup[=CONTROL] backup voor verwijdering, kies versie beheer --suffix=SUFFIX backup voor verwijdering, overstem gebruikelijke achtervoegsel -N, --newer=DATUM bewaar alleen bestanden nieuwer dan DATUM --newer-mtime vergelijk datum en tijd alleen bij gewijzigde data --after-date=DATUM zelfde als -N (geheugen gedumpt) koppelen aan %s n [name] Geef een nieuwe bestandsnaam voor de volgende (en daaropvolgende) delen q Breek tar af ! Splits een subshell af ? Toon deze lijst onbekend bestandstype `%c' %s gaat niet verder op dit deel%s is een archief; niet gedumpt%s: Kan toegangs- en aanpassingstijd niet veranderen%s: Kan geen map aanmaken%s: Kan bestand niet aanmaken%s: Kan geen symbolische koppeling maken naar `%s'%s: Kan niet koppelen aan `%s'%s: Kan geen fifo (first in first out) aanmaken%s: Kan knooppunt niet aanmaken%s: Kan niet schrijven naar bestand%s: Verwijderen %s %s: Fout bij afsluiten%s: Niet gevonden in archief%s: Op een ander bestandssysteem; niet gedumpt%s: Onbekend bestandstype; bestand genegeerd%s: Kon geen veiligheidskopie maken van dit bestand%s: onveranderd; niet gedumpt((kind)) Doorsturen naar standaardinvoer((kind)) Doorsturen naar standaarduitvoer(kind) Doorsturen naar standaardinvoer(kind) Doorsturen naar standaarduitvoer(kleinkind) Doorsturen naar standaardinvoer(kleinkind) Doorsturen naar standaarduitvoer--Verminkte bestandsnamen-- --Deelkopregels-- Schrijf en uitvoer rechten toegevoegd aan map %sDubbelzinnig patroon `%s'Archief %s bestandseinde niet op blokgrensArchief niet aangemerkt om te corresponderen met `%s'Archief naar standaardinvoerArchief naar standaarduitvoerBegin van `tape', ik stop nuPoging tot extractie van symbolische koppelingen als `harde' koppelingenKan map %s niet openenKan bestand %s niet toevoegenKan geen bufferruimte vrijmakenKan niet veranderen naar map %sKan map niet veranderen naar %sKan beschrijver %d niet afsluitenKan bestand #%d niet afsluitenKan %s niet uitvoerenKan shell %s niet uitvoerenKan `remote shell' niet uitvoerenKan `%s' niet extraheren -- bestand is vervolgd op een ander deelKan geen nieuw proces afsplitsenKan geen nieuw proces afsplitsen!Kan %s niet openenKan archief %s niet openenKan map %s niet openenKan bestand %s niet openenKan pijp niet openenKan %s niet doorsturenKan %s niet lezenKan niet veranderen naar map %sKan niet lezen vanuit compressie programmaKan koppeling %s niet lezenKan %s niet verwijderenKan %s niet hernoemen tot %sKan status van bestand %s niet opvragenKan status van bestand %s niet opvragenKan geen symbolische koppeling aanmaken van %s naar %sKan gecomprimeerde archieven niet bijwerkenKan geen gebruik maken van gecomprimeerde of `op afstand' archievenKan meerdelige gecomprimeerde archieven niet gebruikenKan gecomprimeerde archieven niet verifiërenKan meerdelige archieven niet verifiërenKan standaard-invoer/uitvoer archief niet verifiërenKan niet schrijven naar %sKan niet schrijven naar compressie programmaKind kan geen nieuw proces afsplitsenKind stierf met signaal %d%sKind retourneerde status %dConflicterende archiefformaat optiesConflicterende compressie optiesKan geen geheugen vinden voor `blocking' faktor %dKan niet terug in archief bestand; het kan onleesbaar zijn zonder -iKan huidige map niet achterhalenKan huidige map niet achterhalen: %sKan archiefbestand niet herpositionerenKan niet teruggaan in terugspoel archief om te verifiërenAngstvallige weigering een leeg archief aan te makenAanmaken map:%s: Data verschiltVerwijderen niet-kopregel uit archiefApparaatnummers veranderdMap %s is hernoemdMap %s is nieuwBestaat nietBestandseinde in archiefbestandBestandseinde waar gebruiksreactie werd verwachtFout afsluiting uitgesteld na eerdere foutenFout bij afsluiten %sFout tijdens verwijderen %sExtraheren aaneengesloten bestanden als gewone bestandenBestand bestaat nietBestandsnaam %s%s te langBestandsnaam %s/%s is te langGNU `tar' bewaart meerdere bestanden in een tape of disk archief en kan afzonderlijke bestanden terugzetten uit het archief. GNU extras gevraagd voor een niet compatibel archiefformaatRommel commandoGenereer data bestanden voor GNU tar test omgeving. Groepsnummer verschiltHmm, dit ziet er niet uit als een tar archiefVerplichte argumenten voor lange opties zijn ook verplicht bij korte opties. -l, --file-length lengte van het gegenereerde bestand -p, --pattern=PATROON PATROON is `default' of `zeros' --help toon hulp-tekst en beëindig programma --version toon versie-informatie en beëindig programma Ongeldig datum formaat "%s"Ongeldige groep gegeven bij optieOngeldige modus gegeven bij optieOngeldige eigenaar gegeven bij optieOngeldige waarde voor `record_size'Geheugen uitgeputOntbrekende bestandsnaam na -CAanpassingstijd verschiltModus verschiltModus van apparaattype veranderedMeer dan een drempel datumMeerdere archiefbestanden verwacht de `-M' optieGeen archief naam gegevenNiet langer een mapGeen nieuw deel; ik stop. Onbekend bestand of mapGeen gewoon bestandNiet gekoppeld aan %sOverbodige optienaam vervangen door --absolute-namesOverbodige optienaam vervangen door --backupOverbodige optienaam vervangen door --block-numberOverbodige optienaam vervangen door --blocking-factorOverbodige optienaam vervangen door --read-full-recordsOverbodige optienaam vervangen door --touchOverbodige optienaam vervangen door --blocking-factorOude optie `%c' verwacht een argument.Weglaten %sOpties `-%s' en `-%s' willen beiden standaardinvoerOpties `-Aru' zijn niet uitwisselbaar met `-f -'Opties `-[0-7][lmh]' worden niet ondersteund door *deze* tarPrematuur einde van bestandMaak deel #%d klaar voor %s en druk op enter: Lees controllepunt %dFout bij lezen van %sLezen %s Recordgrootte moet een veelvoud zijn van %d.Verwijder station specificatie uit naam in het archiefVerwijderen voorloop / van absolute verwijzingenVerwijder voorloop / van absolute bestandsnamen in het archief%s hernoemd naar %sGrootte verschiltOverslaan tot volgende bestandskopregelOverslaan tot volgende kopregelSymbolische koppeling verschiltSymbolische koppeling aangemaakt van %s naar %sDit ziet er niet uit als een tar archiefDit is vrije programmatuur; zie de broncode voor kopieervoorwaarden. Er is GEEN garantie; zelfs niet voor VERKOOPBAARHEID of GESCHIKTHEID VOOR EEN BEPAALD DOEL. Dit deel is buiten het bereikTe veel fouten, ik stopTotaal aantal geschreven bytes: `%s --help' voor meer informatie. Gebruikersnummer verschiltOnverwacht bestandseinde in archiefOnverwacht bestandseinde in verminkte namenOnverwacht bestandseinde in archiefbestandOnbekende verminkingsherstelopdracht %sOnbekend bestandstype `%c' voor %s, `ge-diffed' als een normaal bestandOnbekend bestandstype `%c' voor %s, geëxtraheerd als gewoon bestandOnbekend patroon `%s'Onbekende systeemfoutVERIFICATIE FOUT: %d ongeldige kopregels gevondenVerifieer Zichtbare lange name foutZichtbare lange naam foutVolume `%s' komt niet overeen met `%s'LET OP: Archief is onvolledigLET OP: Kan %s niet afsluiten (%d, %d)LET OP: Geen deel-kopregelsSchrijf controllepunt %dNiet meer specificeren dan één `-Acdtrux' optieEen van de `-Acdtrux' opties specificerenexec/tcp: Dients niet beschikbaarrmtd: Kan bufferruimte niet alloceren rmtd: Rommel commando %c rmtd: Prematuur einde van bestand standaardinvoerstandaarduitvoertar (kind)tar (kleinkind)tar-1.13/po/no.gmo0000664000176300016070000007350006740055253007465 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt:A…BBÀ?EhECÛF¬IˆrK N{çOQ,T#%VP(YvYŸ[-[C6[b+[™ü[ÅÂ\Â]… ]–’]¤^7"^M^p2^‹^¾^Ý+^õ!_!_C_\_u_•_¥_¼(_Ö&_ÿ1`&`X`t`Œ`¥`»`Ò`ía a:a.ai(a-a¨aÖaè&aû7b""bZb}"b—bºbÚbúcc1cG!cfCcˆ#cÌ$cðdd&d?d]dtdŠd &d±)dØee e+"eLeo-e‹&e¹Ceà9f$'f^2f†&f¹fà+f÷g#g@g\$g{g -g¼Bgê+h-/hY&h‰<h°!híi i!"i/iRiii‰iŸi¯%iÅ)iëjj,2jDjwjj©[jÆ4k"kW*kh k“'kŸLkÇmm,mHmcm}m›mªmà mÜ mên )n"nLnfn€ nn¾nÑ.nä&o,o:/og1o—%oÉ1oï'p! pI2pU*pˆFp³pú2qqAqX qg%qq&q—)q¾4qèrr6rHrarr•"r¯ªrÒ&s}s¤s¾&sÜ tt t*tK-ti4t—8tÌuu/u, u\uju€*u–!uÁ$uãvv&3v?%vs(v™vÂvâvýww w%w0 §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: GNU tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1997-06-05 19:39 MET DST Last-Translator: Espen Skjelnes Johnsen Language-Team: Norwegian-bokmål MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit Valg av arkivformat: -V, --label=NAVN lag et arkiv med volumnavn NAVN MØNSTER filer som skal tas med ved listing eller ekstrahering (tillatt med jokertegn) -o, --old-archive, --portability lag et arkiv i V7 format --posix lag et POSIX-konformt arkiv -z, --gzip, --ungzip send arkivet gjennom gzip -Z, --compress, --uncompress send arkivet gjennom compress --use-compress-program=PROG send arkivet gjennom PROG (må forstå -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Blokkhåndtering: -b, --blocking-factor=ENHETER sett blokkstørrelse ENHETER x 512 bytes --record-size=STØRRELSE STØRRELSE bytes per enhet (delbart på 512) -i, --ignore-zeros ignorér blokker som inneholder nuller (betyr filslutt) -B, --read-full-records blokk om ved lesing (for 4.2BSD pipes) Enhetsvalg og enhetsskifte: -f, --file=ARKIV bruk arkivfil eller enhet ARKIV --force-local arkivfil er lokal selv om den har et kolon --rsh-command=KOMMANDO bruk KOMMANDO i stedet for rsh -[0-7][lmh] angi enhet og tetthet -M, --multi-volume behandle arkivet som et flervolumsarkiv -L, --tape-length=NUMMER bytt bånd etter at NUMMER x 1024 bytes er skrevet -F, --info-script=FIL kjør kommandofil FIL ved slutten av hvert bånd (setter -M automatisk) --new-volume-script=FIL samme som -F FIL --volno-file=FIL bruk/oppdater volumnummeret i FIL GNU tar kan hverken lese eller skrive «--posix»-arkiver. Dersom miljøvariabelen POSIXLY_CORRECT er satt, er GNU-funksjoner ikke tillatt sammen med «--posix». Støtte for POSIX er bare delvis implementert, så stol ikke på den ennå. ARKIV kan være FIL, MASKIN:FIL eller BRUKER@MASKIN:FIL; og FIL kan være en fil eller en enhet. *Denne* versjonen av tar har «-f%s -b%d» som forvalg. Håndtering av filattributter: --owner=NAVN bruk NAVN som eier for nye filer --gruppe=NAVN bruk NAVN som gruppe for nye filer --mode=OKTAL bruk OKTAL som modus for nye filer --atime-preserve ikke endre aksesstider på lagrede filer -m, --modification-time ikke ekstrahér modifiseringstiden --same-owner forsøk å ekstrahere filer med samme eier --numeric-owner bruk nummer for bruker/gruppe-navn -p, --same-permissions forsøk å ekstrahere filer med samme filbeskyttelse --preserve-permissions samme som -p -s, --same-order sorter navn som skal ekstraheres slik at de passer med arkivet --preserve-order samme som -s --preserve samme som både -p og -s Dersom et langt flagg har et obligatorisk argument, er argumentet også obligatorisk for det korte flagget. Tilsvarende gjelder dersom argumentet kan sløyfes. Utskrift av informasjon: --help vis denne hjelpeteksten og avslutt --version vis programversjon og avslutt -v, --verbose vis hver fil som behandles --checkpoint vis filkatalognavn når arkivet leses --totals vis totalt antall bytes skrevet -R, --block-number vis enhetsnummer i arkivet sammen med alle meldinger -w, --interactive spør etter bekreftelse for hver operasjon --confirmation samme som -w Valg av lokale filer: -C, --directory=KATALOG endre filkatalog til KATALOG -T, --files-from=FIL hent navn for ekstrahering eller arkivering fra filen FIL --null -T leser null-terminerte navn, tillater ikke -C --exclude=MØNSTER ta ikke med filer (tillatt med jokertegn) -X, --exclude-from=FIL ta ikke med filer navngitte i filen FIL (tillatt med jokertegn) -P, --absolute-names ta ikke bort ledende «/» fra filnavn -h, --dereference arkivér det symboliske linker peker på --no-recurse ta ikke med filer i underkataloger -l, --one-file-system ta ikke med filer fra andre filsystemer -K, --starting-file=NAVN begynn med filen NAVN i arkivet Hovedoperasjonsmodi: -t, --list list innholdet av arkivet -x, --extract, --get ekstrahér filer fra arkivet -c, --create lage et nytt arkiv -d, --diff, --compare vise forskjeller mellom arkivet og filsystemet -r, --append legg til filer på slutten av arkivet -u, --update legg til bare filer som er nyere enn de i arkivet -A, --catenate legg en arkivfil sammen med arkivet --concatenate samme som -A --delete slett fra arkivet (ikke for arkiv på bånd!) Flagg for operasjonsmodi: -W, --verify forsøk å verifisere arkivet etter å ha laget det --remove-files slett filer etter å ha lagt dem til arkivet -k, --keep-old-files ikke overskriv eksisterende filer -U, --unlink-first slett alle filer før ekstrahering til dem --recursive-unlink tøm filkataloger før ekstrahering -S, --sparse håndtér filer med hull mer effektivt -O, --to-stdout ekstrahér filer til stdout -G, --incremental bruk det gamle GNU formatet for inkrementell sikkerhetskopiering -g, --listed-incremental bruk det nye GNU-formatet for inkrementell sikkerhetskopiering --ignore-failed-read ignorér feil under lesing av filer Rapporter feil til . Suffikset for sikkerhetskopiering er «~», med mindre det er satt med --suffix eller SIMPLE_BACKUP_SUFFIX. Versjonskontroll kan settes med --backup eller VERSION_CONTROL. Gyldige verdier er: t, numbered lag nummererte sikkerhetskopier nil, existing nummererte, dersom nummererte sikkerhetskopier eksisterer, ellers enkle never, simple lag enkle sikkerhetskopier Bruk: %s [FLAGG]... Bruk: %s [FLAGG]... [FIL]... Skrevet av François Pinard Skrevet av John Gilmore and Jay Fenlason. --backup[=KONTROLL] lag sikkerhetskopi før sletting, med versjonskontroll --suffix=SUFFIKS lag sikkerhetskopi før sletting, med overstyring av det vanlige suffikset -N, --newer=DATO arkivér bare filer som er nyere enn DATO --newer-mtime sammenlign tidsstempel bare når data er endret --after-date=DATO samme som -N (minnet lagret) link til %s n [navn] Gi et filnavn for neste (og etterfølgende) volum(er) q Avbryt tar ! Start et shell ? Skriv denne listen ukjent filtype «%c» %s fortsetter ikke i dette volumet%s er arkivet; ikke lagret%s: Kunne ikke endre aksess- og modifiseringstider%s: Kunne ikke lage filkatalog%s: Kunne ikke lage fil%s: Kunne ikke lage symbolisk link til «%s»%s: Kunne ikke lage link til «%s»%s: Kunne ikke lage fifo%s: Kunne ikke lage node%s: Kunne ikke skrive til filen%s: Sletter %s %s: Feil under lukking%s: Finnes ikke i arkivet%s: På et annet filesystem. Ikke lagret%s: Ukjent filtype; filen ble ignorert%s: Kunne ikke lage sikkerhetskopi av denne filen%s: er uendret; ikke lagret((barn)) Pipe til stdin((barn)) Pipe til stdout(barn) Pipe til stdin(barn) Pipe til stdout(barnebarn) Pipe til stdin(barnebarn) Pipe til stdout--Ødelagte filnavn-- --Volumhode-- Satte skrive- og eksekveringsrettigheter for filkatalog %sTvetydig mønster «%s»Arkiv %s sluttet ikke ved en blokkgrenseArkivet er ikke navngitt for å passe med «%s»Arkivér til stdinArkivér til stdoutPå begynnelsen av båndet, avslutter nåForsøker å ekstrahere symbolske linker som harde linkerKan ikke legge til filkatalogen %sKan ikke legge til fil %sKan ikke allokere plass til bufferKan ikke gå til filkatalogen %sKan ikke gå til filkatalogen %sKan ikke lukke fildeskriptor %dKan ikke lukke fil #%dKan ikke eksekvere %sKan ikke eksekvere et shell %sKan ikke eksekvere "remote shell"Kan ikke ekstrahere «%s» -- filen fortsetter fra et tidligere volumKan ikke lage ny prosess med «fork»Kan ikke lage ny prosess med «fork»!Kan ikke åpne %sKan ikke åpne arkivet %sKan ikke åpne filkatalogen %sKan ikke åpne filen %sKan ikke lage en pipeKan ikke duplisere %sKan ikke lese %sKan ikke lese bekreftelse fra brukerenKan ikke lese fra komprimeringsprogrammetKan ikke lese link %sKan ikke slette %sKan ikke endre navn på %s til %sKan ikke utføre «stat» på filen %sKan ikke gjøre «stat» på %sKan ikke lage en symbolisk link fra %s til %sKan ikke oppdatere komprimerte arkiverKan ikke bruke komprimerte arkiver eller arkiver på en annen maskinKan ikke bruke komprimerte arkiv som går over flere volumKan ikke verifisere komprimerte arkiverKan ikke verifisere arkiv som går over flere volumKan ikke verifisere stdin/stdout-arkivKan ikke skrive til %sKan ikke skrive til komprimeringsprogrammetBarnet kan ikke gjøre «fork»Barnet døde med signal %d%sBarnet avsluttet med status %dKonflikt i flaggene for arkiv-formatKonflikt i kompresjonsflaggKunne ikke allokere minne for blokk-faktor %dKunne ikke gå tilbake i arkivfilen. Den kan være uleselig uten -iKunne ikke finne navnet på aktiv filkatalogKunne ikke finne navnet på aktiv filkatalog: %sKunne ikke endre posisjon i arkivfilenKunne ikke gå til begynnelsen av arkivfilen for verifiseringFor feig til å lage et tomt arkivLager filkatalog:Data er ulikeTar bort ikke-hodedata fra arkivetEnhetsnummer er endretFilkatalogen %s har endret navnFilkatalogen %s er nyEksisterer ikkeFilslutt i arkivfilenEOF der svar fra bruker var forventetUtsatt feil-avslutning for tidligere feilFeil ved lukking av %sFeil ved sletting av %sEkstraherer sammenhengende filer som vanlige filerFilen eksisterer ikkeFilnavnet %s%s er for langtFilnavnet %s/%s er for langtGNU «tar» lagrer mange filer i ett arkiv, og kan hente ut enkeltstående filer fra arkivet. GNU-funksjoner forsøkt på inkompatibelt arkiv-formatUgyldig kommandoGenrerer datafiler for GNU tar testpakke. Gid er ulikHmm, dette ser ikke ut som et tar-arkivObligatoriske argumenter for lange flagg er obligatoriske også for korte flagg. -l, --file-length=LENGDE lengde av generert fil -p, --pattern=MØNSTER gyldige mønster er «default» eller «zeros» --help vis denne hjelpeteksten og avslutt --version vis programversjon og avslutt Ugyldig datoformat «%s»Ugyldig gruppe gitt i flaggUgyldig modus gitt i flaggUgyldig eier gitt i flaggUgyldig verdi for record_sizeMinne oppbruktMangler filnavn etter -CModifiseringstid er ulikModus er ulikModus eller enhetstype er endretMer enn én grense-datoVed flere arkivfiler behøves «-M»-flaggetArkivnavn er ikke oppgittIkke lenger en filkatalogIkke nytt volum; avslutter. Fil eller filkatalog finnes ikkeIkke en vanlig filIkke linket til %sUtdatert flagg skiftet ut med --absolute-namesUtdatert flagg skiftet ut med --backupUtdatert flagg skiftet ut med --block-numberUtdatert flagg skiftet ut med --blocking-factorUtdatert flagg skiftet ut med --read-full-recordsUtdatert flagg skiftet ut med --touchUtdatert flagg, nå implisert av --blocking-factorGammelt flagg «%c» behøver et argument.Utelater %sFlaggene «-%s» and «-%s» vil begge ta standard innFlaggene «-Aru» er inkompatible med «-f -»Flaggene «-[0-7][lmh]» støttes ikke av *denne* implementasjonen av tarFor tidlig filsluttGjør klar volum nummer %d for %s og trykk return: Leser kontrollpunkt %dLesefeil på %sLeser %s Blokkstørrelse må være delbart på %d.Tar bort enhetsnavn fra navn i arkivetTar bort ledende «/» fra absolutte linkerTar bort ledende «/» fra absolutte filnavn i arkivetEndret navn på %s til %sStørrelse er ulikHopper til neste filhodeHopper til neste startseksjonSymbolsk link er ulik%s symbolsk linket til %sDette ser ikke ut som et tar-arkivDette er fri programvare. Se kildekoden for kopieringsbetingelser. Programvaren har ingen garanti, ikke en gang for SALGBARHET eller EGNETHET TIL NOEN SPESIELL OPPGAVE. Dette volumet kommer ute av rekkefølgeFor mange feil, avslutterTotalt antall bytes skrevet: Tast «%s --help» for mer informasjon. Uid er ulikUventet filslutt i arkivetUventet filslutt i ødelagte navnUventet filslutt i arkivfilenUkjent kommando %s ved rekonstruering av navnUkjent filtype «%c» for %s, diffet som en vanlig filUkjent filtype «%c» for %s, ekstrahert som en vanlig filUkjent mønster «%s»Unkjent systemfeilVERIFIKASJONSFEIL: %d ukjente arkivhoder funnetVerifisering Feil på et langt navnFeil på et langt navnVolumet «%s» stemmer ikke overens med «%s»ADVARSEL: Arkivet er ufullstendigADVARSEL: Kan ikke lukke %s (%d, %d)ADVARSEL: Manglende volumhodeSkriver kontrollpunkt %dDu kan ikke angi mer enn ett av «-Acdtrux»-flaggeneDu må angi ett av «-Acdtrux»-flaggeneexec/tcp: Tjenesten er ikke tilgjengeligrmtd: Kan ikke allokere buffer rmtd: Ugyldig kommando %c rmtd: For tidlig filslutt stdinstdouttar (barn)tar (barnebarn)tar-1.13/po/pl.gmo0000664000176300016070000007351706740055253007474 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt A…B¦?D¨3DèFšHžHJ9€M‚ NåPR÷ÝU2WôwX'YŸ!Y·=YÙ3ZùZKÁ[E\ \ž\&\Å%\ß"]1]( ]Z]{2]™]Ì]ë)^^2^N^]^y)^–(^À0^é#_!_>"_`_ƒ _£_Ä_Ý_÷`7`)`a)`{$`¥`Ê`ß`õ/aaEa`%axaža¾aÞaþbb- bJ?bkb«bÆbâb÷cc3cN cfc‡,cš)cÇcñdd!'d@!dh0dŠ,d»3dè9e.eV/e…0eµeæ)eû)f%*fOfz f™fº,fÔBg+gD/gp2g 1gÓ0hh6hFhVhu#hh³ hÈhÕ/hê/iiJie"ii¢i´iÓió@jsj´0jÈ jù'kWk/l‡lŸ!l» lÝlþ mm&mBm],mtm¡'mÁménn!n7nYnr7n†0n¾5nï3o%9oY.o“5oÂ"oø p>p&&pe0pŒp½1p×q q# q4+q?%qk.q‘7qÀqør(r""rKrn rŠr«´rËs€sš!s±4sÓ tt)t3#t]&tBt¨:tëu&u9/uO uuŠuu°!uÎ#uðvv03vL%v€v¦,vÃvðww&w, w3 wA §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1997-04-26 17:29+0200 Last-Translator: Rafa³ Maszkowski Language-Team: Polish MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8-bit Wybór formatu archiwum: -V, --label=NAZWA utwórz archiwum z etykiet± NAZWA WZORZEC przy wypisywaniu/rozpakowaniu -o, --old-archive, --portability zapisz archiwum w formacie V7 --posix zapisz archiwum zgodne z POSIX-em -z, --gzip, --ungzip filtruj archiwum przez gzip -Z, --compress, --uncompress filtruj archiwum przez compess --use-compress-program=PROG filtruj przez PROGram (musi akceptowac -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Parametry bloków: -b, --blocking-factor=BLOKI BLOKI x 512 bajtów na rekord --record-size=ROZMIAR ROZMIAR bajtów na rekord, wielokrotno¶æ 512 -i, --ignore-zeros ignoruj wyzerowane bloki (oznacza EOF) -B, --read-full-records podziel na bloki czytaj±c (dla pipe 4.2BSD) Wybór i prze³±czanie urz±dzeñ: -f, --file=ARCHIWUM u¿yj pliku lub urz±dzenia ARCHIWUM --force-local plik archiwum lokalny, nawet z dwukropkiem --rsh-command=KOMENDA u¿yj KOMENDY zamiast rsh -[0-7][lmh] podaj napêd i gêsto¶æ -M, --multi-volume twórz/wypisz/rozpakuj archiwum wieloczê¶ciowe -L, --tape-length=ILE zmieñ ta¶mê po zapisaniu ILE x 1024 bajtów -F, --info-script=PLIK uruchom skrypt na koñcu ta¶my (w³±cza -M) --new-volume-script=PLIK to samo co -F PLIK --volno-file=PLIK u¿yj/uaktualnij numer czê¶ci w PLIKu GNU tar mo¿e czytaæ ani zapisywaæ archiwów `--posix'. Je¿eli w ¶rodowisku jest ustawiona zmienna POSSIXLY_CORRECT rozszerzenia GNU s± wy³±czone przy u¿ywaniu `--posix'. Format posixowy jest zaimplementowany tylko czê¶ciowo, na razie nie licz na niego. ARCHIWUM mo¿e byæ PLIKiem, KOMPUTER:PLIK lub U¯YTKOWNIK@KOMPUTER:PLIK, PLIK mo¿e byæ plikiem lub urz±dzeniem. Opcje domy¶lne *tego* tara to `-f%s -b%d'. Przetwarzanie atrybutów plików: --owner=NAZWA nadaj w³a¶ciciela NAZWA dodanym plikom --group=NAME nadaj grupê NAZWA dodanym plikom --mode=ÓSEMK nadaj uprawnienia ÓSEMK dodanym plikom --atime-preserve nie zmieniaj czasu dostêpu pakowanych plików -m, --modification-time nie zapisuj czasu modyf. rozpakowanego pliku --same-owner próbuj rozpakowaæ pliki z tym samym w³a¶cicielem --numeric-owner u¿ywaj numerów, nie nazw uzytkowników/grup -p, --same-permissions rozpakuj ca³± informacjê o uprawnieniach --preserve-permissions to samo co -p -s, --same-order posortuj rozpakowne nazwy dla porównania --preserve-order to samo co -s --preserve to samo co równocze¶nie -p i -s Argumenty obowi±zkowe dla opcji d³ugich obowi±zuj± równie¿ dla krótkich. Podobnie je¿eli argument jest podany jako opcjonalny. Informacje: --help wy¶wietl ten opis i zakoñcz --version wy¶wietl informacjê o wersji tar-a i zakoñcz -v, --verbose wypisuj szczegó³y o przetwarzanych plikach --checkpoint wypisuj nazwy katalogów podczas czytania archiwum --totals wypisz ca³kowit± ilo¶c bajtów zapisanych do archiwum -R, --block-number przy ka¿dej informacji podaj numer bloku w archiwum -w, --interactive pytaj o potwierdzenie ka¿dej akcji --confirmation to samo co -w Wybór plików lokalnych: -C, --directory KATALOG przejd¼ do KATALOGu -T, --files-from=NAZWA nazwy plików do roz/zapakowania s± w pliku NAZWA --null -T czyta nazwy zakoñczone zerem, wy³±cz -C --exclude=WZORZEC wyklucz nazwy pasuj±ce do WZORCA -X, --exclude-from=PLIK wyklucz nazwy pasuj±ce do wzorców w PLIKu -P, --absolute-names nie usuwaj pocz±tkowego '/' z nazw plików -h, --dereference zamiast plików pakuj symlinki na nie wskazuj±ce --no-recurse nie wg³êbiaj siê automatycznie w katalogi -l, --one-file-system archiwizuj±c pozostañ w jednym systemi plików -K, --starting-file=NAZWA zacznij od pliku o tej NAZWie w archiwum G³ówny tryb dzi³ania: -t, --list wypisz zawarto¶æ archiwum -x, --extract, --get rozpakuj pliki z archiwum -c, --create utwórz nowe archiwum -d, --diff, --compare znajd¼ ró¿nice miêdzy archiwum i plikami na dysku -r, --append do³±cz pliki na koñcu archiwum -u, --update do³±cz tylko pliki nowsze ni¿ kopia w archiwum -A, --catenate do³±cz pliki tar do archiwum --concatenate to samo co -A --delete skasuj pliki z archiwum (nie na ta¶mie!) Modyfikatory dzia³ania: -W, --verify spróbuj zweryfikowaæ archiwum po zapisaniu --remove-files usuñ pliki po dodaniu do archiwum -k, --keep-old-files nie zamazuj istniej±cych plików rozpakowanymi -U, --unlink-first usuñ ka¿dy plik przed zamazaniem go rozpakowanym --recursive-unlink usuñ stary katalog przed rozpakowaniem nowego -S, --sparse dzia³aj efektywnie na plikach rzadkich -O, --to-stdout rozpakuj pliki na standardowe wyj¶cie -G, --incremental backup przyrostowy w starym formacie GNU -g, --listed-incremental backup przyrostowy w nowym formacie GNU --ignore-failed-read nie koñcz b³êdem je¿eli nieczytelne pliki Raporty o b³êdach wysy³aj do . Przyrostek kopii zapasowej to `~', je¿eli nie zosta³ zmieniony przez --suffix lub SIMPLE_BACKUP_SUFFIX. Sposób zarz±dzania wersjami mo¿e byæ zmieniony przez --backup lub VERSION_CONTROL, mo¿liwe warto¶ci: t, numbered zrób numerowane kopie zapasowe nil, existing numerowane je¿eli takie ju¿ s±, w przeciwnym wypadku proste never, simple proste kopie zapasowe U¿ycie: %s [OPCJA]... U¿ycie: %s [OPCJA]... [PLIK]... Napisany przez Françoisa Pinarda . Napisany przez Johna Gilmore'a i Jay'a Fenlasona. --backup[=TRYB] kopia zapasowa przed usuniêciem, wybierz tryb zarz±dzania wersjami --suffix=PRZYROSTEK kopia zapasowa przed usniêciem, zmieñ domy¶lny PRZYROSTEK -N, --newer=DATA zapisuj tylko pliki nowsze ni¿ DATA --newer-mtime porównuj datê i czas tylko dla zmienionych danych --after-date=DATA to samo co -N (zrzut pamiêci) ³±cze do %s n [nazwa] Podaj now± nazwê dla nastêpnej (i kolejnych) czê¶ci q Informacje o programie tar ! Uruchom shella ? Wypisz tê listê nieznany typ pliku `%c' %s nie jest kontynuowany w tej czê¶ci%s jest tym archiwum; nie zapisujê%s: Nie mogê zmieniæ czasów dostêpu i modyfikacji%s: Nie mog³em utworzyæ katalogu%s: Nie mog³em utworzyæ pliku%s: Nie mog³em utworzyæ ³±cza symbolicznego do %s'%s: Nie mog³em do³±czyæ do %s'%s: Nie mog³em utworzyæ fifo%s: Nie mog³em utworzyæ pliku specjalnego%s: Nie mogê pisaæ do pliku%s: Usuwam %s %s: B³±d w czasie zamykania%s: Nie znalaz³em w archiwum%s: W innym systemie plików; nie zapisujê%s: Nieznany typ pliku; plik zignorowany%s: Nie mog³em zrobiæ kopii zapasowej tego pliku%s: jest niezmienione; nie zapisujê((proces potomny)) potok do stdin((proces potomny)) potok do stdout(proces potomny) potok do stdin(proces potomny) potok do stdout(wnuczek) potok do stdin(wnuczek) potok do stdout--Zakodowane nazwy plików-- --Nag³ówek czê¶ci-- Dodane uprawnienia pisania i wykonywania do katalogu %sNiejednoznaczny wzór `%s'EOF archiwum %s nie jest na granicy blokuEtykieta archiwum nie pasuje do `%s'Archiwizujê do stdinArchiwizujê do stdoutNa pocz±tku ta¶my, teraz koñczêPróbujê odtworzyæ ³±cza symboliczne jako zwyk³eNie mogê dodaæ katalogu %sNie mogê dodaæ pliku %sNie mogê przydzieliæ miejsca na buforNie mogê przej¶æ do katalogu %sNie mogê zmieniæ katalogu na %sNie mogê zamkn±æ deskryptora %dNie mogê zamkn±æ pliku #%dNie mogê wykonaæ %sNie mogê uruchomiæ shella %sNie mogê wykonaæ zdalnego shellaNie mogê odtworzyæ %s' -- plik jest kontynuowany z innej czê¶ciNie mogê rozwidliæ procesuNie mogê rozwidliæ procesu!Nie mogê otworzyæ %sNie mogê otworzyæ archiwum %sNie mogê otworzyæ katalogu %sNie mogê otworzyæ pliku %sNie mogê zamkn±æ potokuNie mogê prawied³owo powieliæ %sNie mogê czytaæ %sNie mogê przeczytaæ potwiedzenia u¿ytkownikaNie mogê czytaæ z programu kompresuj±cegoNie mogê przeczytaæ ³±cza %sNie mogê usun±æ %sNie mogê przemianowaæ %s na %sNie mogê uzyskaæ informacji (stat) o %sNie mogê sprawdziæ stanu pliku %sNie mogê utworzyæ ³±cza symbolicznego z %s do %sNie mogê uaktualniæ archiwum skompresowanegoNie mogê u¿yæ archiwum skompresowanego lub zdalnegoNie mogê u¿ywaæ wielocze¶ciowego archiwum skompresowanegoNie mogê zweryfikowaæ archiwum skompresowanegoNie mogê zweryfikowaæ archiwum wieloczê¶ciowegoNie mogê zweryfikowaæ archiwum z/do stdin/stdoutNie mogê pisaæ do %sNie mogê pisaæ do programu kompresuj±cegoProces potomny nie mo¿e rozwidliæ procesuProces potomny zosta³ zabity sygna³em %d%sProces potomny zwróci³ stan %dNiezgodne opcje formatu archiwumNiezgodne opcje kompresjiNie mog³em przydzieliæ pamiêci dla bloków %dNie mogê siê cofn±æ w pliku archiwum; mo¿e nie byæ czytelny bez -iNie mog³em siê dostaæ do bie¿±cego kataloguNie mog³em siê dostaæ do bie¿±cego katalogu: %sNie mogê ponownie ustawiæ pozycji w pliku archiwumNie mogê przewin±æ pliku archiwum dla weryfikacjiTchórzliwie odmawiam utworzenia pustego archiwumTworzê katalog:Dane siê ró¿ni±Kasujê z archiwum nie-nag³ówekNumery urz±dzeñ zmienioneNazwa katalogu %s zosta³a zmienionaKatalog %s jest nowyNie istniejeEOF w pliku archiwumEOF kiedy by³a oczekiwana odpowied¼ u¿ytkownikaZakoñczenie z b³êdem z powodu uprzednich b³êdówB³±d w czasie zamykania %sB³±d w czasie usuwania %sOdtwarzam pliki ci±g³e jako zwyk³ePlik nie istniejeNazwa pliku %s%s jest za d³ugaNazwa pliku %s/%s jest za d³uga`tar' GNU zapisuje wiele plików razem na na jednej ta¶mie lub archiwum dyskowym i mo¿e odzyskaæ poszczególne pliki z archiwum. Próba u¿ycia rozszerzeñ GNU z niekompatybilnym formatem archiwumBezsensowna komendaUtwórz pliki danych do zestawu testów tara GNU. Gid siê ró¿niHmm..., to nie wygl±da jak archiwum tarArgumenty obowi±zkowe dla opcji d³ugich obowiazuj± równie¿ dla odpowiednich krótkich. -l, --file-length=D£UGO¦Æ D£UGO¦Æ utworzonego pliku -p, --pattern=WZÓR WZÓR: `default' (domy¶lny) albo `zeros' (zera) --help wy¶wietl ten opis i zakoñcz --version wy¶wietl informacjê o wersji i zakoñcz B³êdny format daty `%s'B³êdna grupa podana w opcjiB³êdne uprawnienia podane w opcjiB³êdny w³a¶ciciel podany w opcjiB³êdna warto¶æ record_sizeBrak pamiêciBrakuj±ca nazwa pliku po -CCzas modyfikacji siê ró¿niUprawnienia siê ró¿ni±Zmieni³y siê uprawnienia albo typ urz±dzeniaWiêcej ni¿ jedna data granicznaWiele plików archiwum wymaga opcji `-M'Nie podana nazwa archiwumNie jest ju¿ katalogiemBrak nowej czê¶ci; koñczê. Nie ma takiego pliku ani kataloguNie jest zwyk³ym plikiemNie do³±czony do %sPrzestarza³a nazwa opcji zamieniona na --absolute-namesPrzestarza³a nazwa opcji, zamieniona na --backupPrzestarza³a nazwa opcji zamieniona na --block-numberPrzestarza³a opcja, wymieniona na --blocking-factorPrzestarzala nazwa opcji zmieniona na --read-full-recordsPrzestarza³a nazwa opcja zamieniona na --touchPrzestarza³a opcja, teraz w³±cza j± --blocking-factorStara opcja `%c' wymaga argumentu.Pomijam %sOpcje `-%s' i `-%s' obie chc± dostêpu do standardowego wej¶ciaOpce `-Aru s± niekompatybilne z `-f -'Opcje `-[0-7][lmh]' nie s± u¿ywane w *tym* tarzePrzedwczesny koniec plikuPrzygotuj czê¶æ numer %d dla %s i naci¶nij returnCzytam punkt kontrolny %dB³±d czytania %sCzytam %s Rozmiar rekordu musi byæ wielokrotno¶ci± %dUsuwam nazwe napêdu z nazw w archiwumUsuwam pocz±tkowy `/' ze ¶cie¿ek bezwzglêdnychUsuwam pocz±tkowy `/' ze ¶cie¿ek absolutnych w archiwumPrzemianowa³em %s na %sRozmiar siê ró¿niPrzeskakujê do nastêpnego nag³ówka plikuPrzeskakujê do nastêpnego nag³ówka£±cze symboliczne siê ró¿niDo³±czy³em symbolicznie %s do %sTo nie wygl±da jak archiwum tarTen program jest darmowy; warunki kopiowania s± opisane w ¼ród³ach. Autorzy nie daj± ¯ADNYCH gwarancji, w tym równie¿ gwarancji PRZYDATNO¦CI DO SPRZEDA¯Y LUB DO KONKRETNYCH CELÓW. Ta czê¶æ nie jest kolejn±Za du¿o b³êdów, koñczêCa³kowita zapisana ilo¶æ bajtów: Spróbuj `%s --help' ¿eby otrzymaæ wiêcej informacji Uid siê ró¿niNieoczekiwany EOF w archiwumNiespodziewany EOF w zakodowanych nazwachNiespodziewany EOF w pliku archiwumNieznana komenda odkodowuj±ca nazwy %sNieznany typ liku %c' dla %s, zrobi³em diff jak dla zwyk³ego plikuNieznay typ pliku `%c' dla %s; odtworzony jako plik zwyk³yNieznany wzór `%s'Nieznany b³±d systemuB£¡D WERYFIKACJI: wykryto %d b³êdnych nag³ówkówSprawdzam B³±d d³ugiej nazwyB³±d d³ugiej nazwyCzê¶æ `%s' nie pasuje do `%s'UWAGA: Archiwum jest niekompletneUWAGA: Nie mogê zamkn±æ %s (%d, %d)UWAGA: Brak etykiety czê¶ciZapis punktu kontrolnego %dNie mo¿esz podaæ wiêcej ni¿ jednej opcji `-Acdtrux'Musisz podaæ jedn± z opcji `-Acdtrux'exec/tcp: Us³uga niedostêpnarmtd: Nie mogê przydzieliæ miejsca na bufor rmtd: Bezsensowna komenda %c rmtd: Przedwczesny EOF stdinstdouttar (potomny)tar (wnuczek)tar-1.13/po/pt.gmo0000664000176300016070000004101106740055253007464 •Þ”¼Å \ p- q Ÿ- Îæ õ">2\®$Èí 8Te})–#Àä2H_z–®2Á$ô*"<5_•¨Åãö'6M<i ¦ ²¿Îåþ#"2$UzŽŸ¶ÅÙ(ñ+#F"j# ÄÖò" .0NAÁ#á"((,Q~ ’³Ñåù,(U2m )°Úó+,X1q/£2Ó4(;1d%– ¼0È+ù1%W*m˜« ¼%È-î-Jb%u›º&Ôû  5 T4 r7 § ß- ô!"!*!B!Y!!x!š!´3!È.!ü"+#"K"o"‰ "ž"ª+"»½#çz%¥g( *ˆ,*§*Ô$*æ$+ "+0<+S$+%+µA+Û.,,L,l-,Š,¸,Ê!,Ý;,ÿ4-;*-p-›-¹-Ø-ô...!.J.lC.…H.É//%+/9\/e(/Â5/ë&0!&0H20o%0¢0È'0ä+1 J18)1ƒ*1­1Ø#1ñ%2#2;2_2|02“-2Ä)2ò3*36'3a23‰?3¼03ü54-+4c244Â64á+5&5D%5k25‘*5Ä<5ï;6,16h56š06Ð571777i$7 7¦7Ç7Þ7ù8C8."8rG8•8Ý/8ò9"49@#9u39™!9Í>9ï<:.?:kA:«5:í4;#';X ;€:;Œ-;Ç9;õ )>#%>M.>s1>¢:>ÔM?J?]?¨;?Æ @@@+"@H,@k#@˜$@¼=@á0AAP=Ao#A­ AÑ Aò Aþikjnb“E?$\-~<s}x W7JR=#Œf€ )IrˆN%B'‡LPU‘,Yƒ’2QT+hXlc]0…d‰&”! „z.‹u eZtM†:8Dp1[H@ŠFVŽ3*y9K>`"6({qa GwC;| OS/‚4Am5o^vg_ Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Usage: %s [OPTION]... (core dumped) link to %s unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sArchive %s EOF not on block boundaryArchive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Deleting non-header from archiveDirectory %s has been renamedDirectory %s is newEOF in archive fileError while closing %sError while deleting %sExtracting contiguous files as regular filesFile name %s%s too longGNU features wanted on incompatible archive formatGarbage commandHmm, this doesn't look like a tar archiveInvalid date format `%s'Invalid value for record_sizeMissing file name after -CMultiple archive files requires `-M' optionNo new volume; exiting. Obsolete option name replaced by --absolute-namesObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRenamed %s to %sSkipping to next file headerSkipping to next headerSymlinked %s to %sThis does not look like a tar archiveThis volume is out of sequenceToo many errors, quittingTry `%s --help' for more information. Unexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorWARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof tar (child)tar (grandchild)Project-Id-Version: tar 1.11.9 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1996-04-20 21:50 Last-Translator: António José Coutinho Language-Team: Portuguese MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit Características dos blocos no periférico (device): -b, --blocking-factor=BLOCOS BLOCOS x 512 "bytes" por registo --record-size=DIM DIM bytes por registo, múltiplo de 512 -i, --ignore-zeros ignorar os blocos constituídos por zeros (implicam fim-de-ficheiro) -B, --read-full-records dividir a leitura em blocos (para os "pipes" 4.2BSD) Prestação de informações: --help mostrar esta mensagem de ajuda e terminar --version indicar a versão do programa "tar" e terminar -v, --verbose escrever a lista dos ficheiros tratados --checkpoint indicar os nomes das directorias durante a leitura --totals indicar o número de "bytes" escritos durante a criação do arquivo -R, --block-number escrever o número de bloco, dentro do arquivo, em cada mensagem -w, --interactive pedir confirmação para todas as acções --confirmation o mesmo que "-w" Principal modo de funcionamento: -t, --list inventário do arquivo -x, --extract, --get extrair ficheiros do arquivo -c, --create criar um novo arquivo -d, --diff, --compare comparar o arquivo com os actuais ficheiros -r, --append acrescentar os ficheiros no fim do arquivo -u, --update só acrescentar os ficheiros mais novos do que as versões presentes no arquivo -A, --catenate juntar outros arquivos "tar" ao arquivo --concatenate o mesmo que "-A" --delete apagar no arquivo (excepto para fitas magnéticas!) Forma de usar: %s [OPÇÃO]... (imagem da memória despejada "core dumped") ligação para %s tipo de ficheiro desconhecido "%c" %s não tem continuidade neste volume%s é o arquivo; não será arquivado%s: Não se conseguiu mudar os tempos de acesso e modificação%s: Não se pôde criar uma directoria%s: Não foi possível criar o ficheiro%s: Não se conseguiu criar uma ligação simbólica (link) para `%s'%s: Não se pôde fazer ligação (link) para `%s'%s: Não se pôde criar um "fifo"%s: Não se pôde criar um nodo%s: Não se conseguiu escrever para o ficheiro%s: Apaga-se %s %s: Erro ao fechar%s: Não foi encontrado no arquivo%s: Está num outro sistema de ficheiros; não será arquivado%s: Tipo de ficheiro desconhecido; ficheiro ignorado%s: não foi modificado; não será arquivado((filho)) "pipe" para "stdin"((filho)) "pipe" para "stdout"(filho) "pipe" para "stdin"(filho) "pipe" para "stdout"(neto) "Pipe" para "stdout"(neto) "Pipe" para "stdout"--Nomes de ficheiros truncados-- --Cabeçalho de volume-- Acrescentaram-se permissões de escrita e de leitura à directoria %sO fim-de-ficheiro do arquivo %s não se encontra na fronteira de um blocoArquivo para stdinArquivo para stdoutNo princípio da fita, pára-se imediatamenteEstá-se a tentar extrair ligações simbólicas (sym. links) como ligações físicas (hard links)Não é possível acrescentar o ficheiro %sNão se consegue reservar espaço temporário ("buffer")Não se pode mudar para a directoria %sNão se pode mudar para a directoria %sNão se consegue fechar o ficheiro de descritor %dNão se consegue fechar o ficheiro #%dNão se consegue executar %sNão se consegue executar uma "shell" %sNão se consegue executar uma "shell" remotaNão se pode extraír `%s' -- é a continuação de um ficheiro de outro volumeNão se consegue criar processo ( "fork" )Não se consegue criar processo! ( "fork" )Não se consegue abrir %sNão se consegue abrir o arquivo %sNão se consegue abrir a directoria %sNão se consegue abrir o ficheiro %sNão se consegue abrir "pipe"Não se consegue ler %sNão se consegue obter confirmação, do utilizadorNão se consegue ler do programa de compressãoNão se consegue ler a ligação ("link") %sNão se consegue apagar %sNão se consegue mudar o nome de %s para %sNão se consegue executar "stat" para %sNão se consegue executar "stat" para o ficheiro %sNão se pode criar uma ligação ("link") simbólica de %s para %sNão se pode usar arquivos comprimidos ou remotosNão se pode de usar arquivos multi-volume comprimidosNão se pode verificar arquivos multi-volumeNão se pode de verificar arquivos stdin ou stdoutNão se consegue escrever em %sNão se consegue escrever para o programa de compressãoProcesso filho não consegue executar "fork"Processo filho morreu com o sinal %d%sProcesso filho terminou com estado %dHá conflitos entre as opções de formato do arquivoHá conflitos entre as opções de compressãoNão se conseguiu reservar memória para um factor de bloco %dNão se conseguiu recuar o arquivo; pode ser ilegível sem -iNão se conseguiu determinar a directoria correnteNão se conseguiu determinar a directoria corrente: %sNão se conseguiu reposicionar o ficheiro arquivoNão se conseguiu rebobinar o arquivo para verificaçãoRecusa-se, covardemente, a criar um arquivo vazioCriação de directoria::Apaga-se do arquivo um não-cabeçalhoMudou-se o nome do directoria %sO directoria %s é novoFim-de-ficheiro no arquivoErro durante o fecho de %sErro quando se apagava %sEstão-se a extrair ficheiros contíguos como sendo ficheiros normaisNome de ficheiro %s%s longo demaisEstão-se a querer propriedades GNU num arquivo com formato incompatívelComando desconhecidoPois é..., isto não parece ser um arquivo "tar"Formato de data inválido "%s"Valor inválido para tamanho de registo (record_size)Falta um nome de ficheiro após "-C"Para usar vários arquivos é necessária a opção "-M"Não há novo volume; termina-se. Nome de opção obsoleto, foi substituído por "--absolute-names"Nome de opção obsoleto, foi substituído por "--block-number"Nome de opção obsoleto, foi substituído por "--blocking-factor"Nome de opção obsoleto, foi substituído por "--read-full-records"Nome de opção obsoleto, foi substituído por "--touch"Opção obsoleta, é agora "-blocking-factor" implica-aA antiga opção `%c' exige um argumento.Omite-se %sAmbas as opções `-%s' e `-%s' precisam do "standard input"As opções "-Aru" são imcompatíveis com "-f -"As opções "-[0-7][lmh]" não são suportadas por *este* tarFim-de-ficheiro prematuroPreparar o volume no. %d para %s e premir "Return": Leu-se o ponto de verificação %dErro de leitura sobre %sLeitura de %s O tamanho dos registos tem que ser múltiplo de %d.Retira-se a especificação do "drive" aos nomes no arquivoMudou-se o nome %s para %sSalta para o próximo cabeçalho de ficheiroSalta para próximo cabeçalho%s ligado simbolicamente a %s ("link")Isto não se parece a um arquivo "tar"Este volume está fora da sequênciaErros de mais: termina-sePara mais informação, tente "%s --help". Fim de ficheiro inesperado no arquivoFim de ficheiro inesperado nos nomes truncadosFim de ficheiro inesperado no ficheiro de arquivoComando desconhecido "%s" para decifrar os nomes truncadosTipo de ficheiro "%c" desconhecido para %s; comparado como um ficheiro normalTipo "%c" do ficheiro "%s" desconhecido; extrai-se como um ficheiro normalErro desconhecido, do sistemaERRO DE VERIFICAÇÃO: Encontraram-se %d cabeçalhos inválidosVerificaçãoErro evidente num nome longoErro evidente num nome longoATENÇÃO: O arquivo está incompletoATENÇÃO: Não se consegue fechar %s (%d, %d)ATENÇÃO: Não há cabeçalho de volumeEscreve-se o ponto de verificação %dNão se pode especificar mais do que uma das opções "-Acdtrux"Tem que se especificar uma das opções "-Acdtrux"exec/tcp: Serviço indisponívelrmtd: Não se consegue reservar espaço temporário ("buffers") rmtd: Comando "%c" não faz sentido rmtd: Fim de ficheiro prematuro tar (filho)tar (neto)tar-1.13/po/ru.gmo0000664000176300016070000007554406740055253007511 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt&A…žB¬?EKVE‹ŒFâ¨IoÑK‹NêOv‚QwYTú‘WT4Zæ§[\Ã(\â3] &]?›]fÀ^^Ã^Ù´^è__º_Ú2_ò`%`D0``%`‘(`·'`àaa'a8aP*ag'a’2aºaí$b%b-"bS#bv*bš+bÅbñc 6c cW)cq"c›c¾c×3cñ-d%dSdr$dŽd³dÓdóee,+e>2ej;eeÙ!eôff,fFfdff–f±2fÉ.füg+gJ g`g!gŸ-gÁ$gï5h3hJ"h~'h¡5hÉhÿ-i.iF4iu#iª.iÎ+iý7j)>ja#j 'jÄ*jì2k'kJkrk… k˜k¹kÖkò ll,l'2lTl‡lž)lµlßlò"mxm48m­mæ5m÷n-n=‡n\oä pp"p@%pYppp­pÍ+pçq.q/q^qt%qŽ"q´q×qò1r)r7/ra2r‘4rÄ(rù?s",sb s3sš#sÎ.sòt!0t=tntŠ tž$t©,tÎ,tû4u(u]ur%u†u¬uÌ"uêv äv($w (w2w[Awyw»#wË,wïx3x;7xo8x§xàxø3y yIySyoy‹yª.yÊ"yùz2z8+zkz—+z³zß"zú{{. {@{N §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1999-04-17 20:26+08:00 Last-Translator: Const Kaplinsky Language-Team: Russian MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit ÷ÙÂÏÒ ÆÏÒÍÁÔÁ ÁÒÈÉ×Á: -V, --label=éíñ ÓÏÚÄÁ×ÁÔØ ÁÒÈÉ× Ó ÍÅÔËÏÊ ÔÏÍÁ éíñ ûáâìïî ÐÒÉ ÞÔÅÎÉÉ/ÚÁÐÉÓÉ ÒÁÂÏÔÁÔØ Ó ÁÒÈÉ×ÁÍÉ, ËÏÔÏÒÙÅ ÉÍÅÀÔ ÍÅÔËÕ, ÓÏÏÔ×. ûáâìïîõ -o, --old-archive, --portability ÚÁÐÉÓÙ×ÁÔØ ÁÒÈÉ× × ÆÏÒÍÁÔÅ V7 --posix ÚÁÐÉÓÙ×ÁÔØ ÁÒÈÉ× × ÆÏÒÍÁÔÅ POSIX -z, --gzip, --ungzip ÐÒÏÐÕÓËÁÔØ ÁÒÈÉ× ÞÅÒÅÚ gzip -Z, --compress, --uncompress ÐÒÏÐÕÓËÁÔØ ÁÒÈÉ× ÞÅÒÅÚ compress --use-compress-program=ðòïçò ÐÒÏÐÕÓËÁÔØ ÞÅÒÅÚ ÐÒÏÇÒÁÍÍÕ ÓÖÁÔÉÑ ðòïçò (ÐÒÏÇÒÁÍÍÁ ÄÏÌÖÎÁ ÐÏÄÄÅÒÖÉ×ÁÔØ ËÌÀÞ -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. òÁÂÏÔÁ Ó ÂÌÏËÁÍÉ: -b, --blocking-factor=âìïëé âìïëé x 512 ÂÁÊÔ ÄÌÑ ÏÄÎÏÊ ÚÁÐÉÓÉ --record-size=òáúíåò òáúíåò ÚÁÐÉÓÉ × ÂÁÊÔÁÈ, ËÒÁÔÎÙÊ 512 -i, --ignore-zeros ÉÇÎÏÒÉÒÏ×ÁÔØ ÐÕÓÔÙÅ (EOF) ÂÌÏËÉ -B, --read-full-records ÓÏÂÉÒÁÔØ ÂÌÏËÉ × ÂÌÏËÉ ÐÒÉ ÞÔÅÎÉÉ (ÄÌÑ ËÁÎÁÌÏ× 4.2BSD) ÷ÙÂÏÒ ÕÓÔÒÏÊÓÔ×: -f, --file=áòèé÷ ÉÓÐÏÌØÚÏ×ÁÔØ ÆÁÊÌ ÉÌÉ ÕÓÔÒÏÊÓÔ×Ï áòèé÷ --force-local ÓÞÉÔÁÔØ ÁÒÈÉ× ÌÏËÁÌØÎÙÍ, ÄÁÖÅ ÅÓÌÉ ÅÓÔØ `:' --rsh-command=ëïíáîäá ÉÓÐÏÌØÚÏ×ÁÔØ ëïíáîäõ ÄÌÑ ÕÄÁÌÅÎÎÏÊ ÒÁÂÏÔÙ -[0-7][lmh] ÕËÁÚÁÔØ ÕÓÔÒÏÊÓÔ×Ï É ÐÌÏÔÎÏÓÔØ -M, --multi-volume ÒÁÂÏÔÁÔØ Ó ÍÎÏÇÏÔÏÍÎÙÍÉ ÁÒÈÉ×ÁÍÉ -L, --tape-length=þéóìï ÓÍÅÎÉÔØ ÌÅÎÔÕ ÐÏÓÌÅ ÚÁÐÉÓÉ þéóìï x 1024 ÂÁÊÔ -F, --info-script=æáêì ÚÁÐÕÓËÁÔØ ÐÒÏÇÒÁÍÍÕ æáêì ÐÏÓÌÅ ËÁÖÄÏÊ ÌÅÎÔÙ --new-volume-script=æáêì ÔÏ ÖÅ, ÞÔÏ É -F æáêì --volno-file=æáêì ÞÉÔÁÔØ/ÐÉÓÁÔØ ÎÏÍÅÒ ÔÏÍÁ ÉÚ/× æáêì(á) GNU tar ÎÅ ÍÏÖÅÔ ÞÉÔÁÔØ ÉÌÉ ÓÏÚÄÁ×ÁÔØ ÁÒÈÉ×Ù ÔÉÐÁ `--posix'. åÓÌÉ ÕÓÔÁÎÏ×ÌÅÎÁ ÐÅÒÅÍÅÎÎÁÑ ÓÒÅÄÙ POSIXLY_CORRECT, ËÌÀÞ `--posix' ÚÁÐÒÅÝÁÅÔ ÒÁÓÛÉÒÅÎÉÑ GNU. ðÏÄÄÅÒÖËÁ POSIX ÓÄÅÌÁÎÁ ÔÏÌØËÏ ÞÁÓÔÉÞÎÏ, ÎÅ ÒÁÓÓÞÉÔÙ×ÁÊÔÅ ÎÁ ÎÅÅ. áòèé÷ ÍÏÖÅÔ ÂÙÔØ ÚÁÄÁÎ × ÆÏÒÍÁÈ æáêì, ëïíðøàôåò:æáêì ÉÌÉ ðïìøúï÷áôåìø@ëïíðøàôåò:æáêì; ÐÒÉ ÜÔÏÍ æáêì ÍÏÖÅÔ ÂÙÔØ ËÁË ÏÂÙÞÎÙÍ ÆÁÊÌÏÍ, ÔÁË É ÕÓÔÒÏÊÓÔ×ÏÍ. *üÔÏÔ* tar ÐÏ ÕÍÏÌÞÁÎÉÀ ÉÓÐÏÌØÚÕÅÔ ËÌÀÞÉ `-f%s -b%d'. ïÂÒÁÂÏÔËÁ ÁÔÒÉÂÕÔÏ× ÆÁÊÌÏ×: --owner=éíñ ÄÅÌÁÔØ éíñ ×ÌÁÄÅÌØÃÅÍ ÄÏÂÁ×ÌÑÅÍÙÈ ÆÁÊÌÏ× --group=éíñ ÄÅÌÁÔØ éíñ ÇÒÕÐÐÏÊ ×ÌÁÄÅÎÉÑ ÄÏÂÁ×ÌÑÅÍÙÈ ÆÁÊÌÏ× --mode=òåöéí ÐÒÉÓ×ÁÉ×ÁÔØ ÄÏÂÁ×ÌÑÅÍÙÍ ÆÁÊÌÁÍ òåöéí ÄÏÓÔÕÐÁ --atime-preserve ÎÅ ÉÚÍÅÎÑÔØ ×ÒÅÍÑ ÄÏÓÔÕÐÁ ÓÂÒÁÓÙ×ÁÅÍÙÈ ÆÁÊÌÏ× -m, --modification-time ÎÅ ÉÚ×ÌÅËÁÔØ ×ÒÅÍÑ ÉÚÍÅÎÅÎÉÑ ÆÁÊÌÁ --same-owner ÐÙÔÁÔØÓÑ ×ÏÓÓÔÁÎÁ×ÌÉ×ÁÔØ ×ÌÁÄÅÌØÃÁ ÉÚ ÁÒÈÉ×Á --numeric-owner ×ÓÅÇÄÁ ÉÓÐÏÌØÚÏ×ÁÔØ ÞÉÓÌÁ ×ÍÅÓÔÏ ÉÍÅÎ ×ÌÁÄÅÌØÃÁ É ÇÒÕÐÐÙ -p, --same-permissions ÉÚ×ÌÅËÁÔØ ×ÓÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÐÒÁ×ÁÈ ÄÏÓÔÕÐÁ --preserve-permissions ÔÏ ÖÅ, ÞÔÏ É -p -s, --same-order ÓÏÒÔÉÒÏ×ÁÔØ ÉÍÅÎÁ ÆÁÊÌÏ× ÄÌÑ ÉÚ×ÌÅÞÅÎÉÑ × ÔÏÍ ÐÏÒÑÄËÅ, × ËÏÔÏÒÏÍ ÏÎÉ ÌÅÖÁÔ × ÁÒÈÉ×Å --preserve-order ÔÏ ÖÅ, ÞÔÏ É -s --preserve ÜË×É×ÁÌÅÎÔÎÏ ÓÏÞÅÔÁÎÉÀ ËÌÀÞÅÊ -p É -s åÓÌÉ ÄÌÑ ÄÌÉÎÎÏÇÏ ËÌÀÞÁ ÎÕÖÅÎ ÁÒÇÕÍÅÎÔ, ÔÏ ÏÎ ÔÁËÖÅ ÎÕÖÅÎ É ÄÌÑ ÜË×É×ÁÌÅÎÔÎÏÇÏ ËÏÒÏÔËÏÇÏ ËÌÀÞÁ. áÎÁÌÏÇÉÞÎÏ Ó ÎÅÏÂÑÚÁÔÅÌØÎÙÍÉ ÁÒÇÕÍÅÎÔÁÍÉ. ÷Ù×ÏÄ ÉÎÆÏÒÍÁÃÉÉ: --help ×Ù×ÅÓÔÉ ÜÔÕ ÐÏÄÓËÁÚËÕ É ×ÙÊÔÉ --version ×Ù×ÅÓÔÉ ×ÅÒÓÉÀ ÜÔÏÊ ÐÒÏÇÒÁÍÍÙ É ×ÙÊÔÉ -v, --verbose ×Ù×ÏÄÉÔØ ÉÍÅÎÁ ÏÂÒÁÂÁÔÙ×ÁÅÍÙÈ ÆÁÊÌÏ× --checkpoint ×Ù×ÏÄÉÔØ ÉÍÅÎÁ ËÁÔÁÌÏÇÏ× ÐÒÉ ÞÔÅÎÉÉ ÉÚ ÁÒÈÉ×Á --totals ×Ù×ÅÓÔÉ ÏÂÝÅÅ ËÏÌÉÞÅÓÔ×Ï ÚÁÐÉÓÁÎÎÙÈ ÂÁÊÔ -R, --block-number ×Ù×ÏÄÉÔØ ÎÏÍÅÒ ÂÌÏËÁ ÁÒÈÉ×Á × ËÁÖÄÏÍ ÓÏÏÂÝÅÎÉÉ -w, --interactive ÚÁÐÒÁÛÉ×ÁÔØ ÐÏÄÔ×ÅÒÖÄÅÎÉÅ ÐÒÉ ËÁÖÄÏÍ ÄÅÊÓÔ×ÉÉ --confirmation ÔÏ ÖÅ, ÞÔÏ É -w ÷ÙÂÏÒ ÌÏËÁÌØÎÙÈ ÆÁÊÌÏ×: -C, --directory=ëáôáìïç ÓÄÅÌÁÔØ ÚÁÄÁÎÎÙÊ ëáôáìïç ÔÅËÕÝÉÍ -T, --files-from=æáêì ÂÒÁÔØ ÉÍÅÎÁ ÄÌÑ ÉÚ×ÌÅÞÅÎÉÑ ÉÌÉ ÓÏÚÄÁÎÉÑ ÉÚ æáêìá --null Ó ËÌÀÞÏÍ -T ÞÉÔÁÔØ ÓÔÒÏËÉ, ÏËÁÎÞÉ×ÁÀÝÉÅÓÑ ÎÕÌÅÍ, ÚÁÐÒÅÔÉÔØ ËÌÀÞ -C --exclude=ûáâìïî ÉÓËÌÀÞÉÔØ ÆÁÊÌÙ, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ûáâìïîõ -X, --exclude-from=æáêì ÉÓËÌÀÞÉÔØ ÆÁÊÌÙ, ÓÏÏÔ×. ÛÁÂÌÏÎÁÍ ÉÚ æáêìá -P, --absolute-names ÎÅ ÕÄÁÌÑÔØ ÎÁÞÁÌØÎÙÅ `/' ÉÚ ÁÂÓÏÌÀÔÎÙÈ ÐÕÔÅÊ -h, --dereference ÓÏÈÒÁÎÑÔØ ×ÍÅÓÔÏ ÓÉÍ×ÏÌØÎÙÈ ÓÓÙÌÏË ÆÁÊÌÙ, ÎÁ ËÏÔÏÒÙÅ ÜÔÉ ÓÓÙÌËÉ ÕËÁÚÙ×ÁÀÔ --no-recursion ×ÙËÌÀÞÉÔØ Á×ÔÏÍÁÔÉÞÅÓËÉÊ ÐÅÒÅÈÏÄ × ÐÏÄËÁÔÁÌÏÇÉ -l, --one-file-system ÏÓÔÁ×ÁÔØÓÑ × ÌÏËÁÌØÎÏÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ ×Ï ×ÒÅÍÑ ÓÏÚÄÁÎÉÑ ÁÒÈÉ×Á -K, --starting-file=éíñ ÎÁÞÉÎÁÔØ Ó ÆÁÊÌÁ éíñ × ÁÒÈÉ×Å ïÓÎÏ×ÎÙÅ ÏÐÅÒÁÃÉÉ: -t, --list ×Ù×ÅÓÔÉ ÓÐÉÓÏË ÓÏÄÅÒÖÉÍÏÇÏ ÁÒÈÉ×Á -x, --extract, --get ÉÚ×ÌÅÞØ ÆÁÊÌÙ ÉÚ ÁÒÈÉ×Á -c, --create ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÁÒÈÉ× -d, --diff, --compare ÎÁÊÔÉ ÒÁÚÌÉÞÉÑ ÍÅÖÄÕ ÁÒÈÉ×ÏÍ É ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÏÊ -r, --append ÐÒÉÓÏÅÄÉÎÉÔØ ÆÁÊÌÙ Ë ËÏÎÃÕ ÁÒÈÉ×Á -u, --update ÐÒÉÓÏÅÄÉÎÉÔØ ÔÏÌØËÏ ÔÅ ÆÁÊÌÙ, ËÏÔÏÒÙÅ ÎÏ×ÅÅ, ÞÅÍ ÉÈ ËÏÐÉÉ × ÁÒÈÉ×Å -A, --catenate ÐÒÉÓÏÅÄÉÎÉÔØ tar-ÆÁÊÌÙ Ë ÁÒÈÉ×Õ --concatenate ÔÏ ÖÅ, ÞÔÏ É -A --delete ÕÄÁÌÉÔØ ÉÚ ÁÒÈÉ×Á (ÎÅ ÎÁ ÍÁÇÎÉÔÎÙÈ ÌÅÎÔÁÈ!) íÏÄÉÆÉËÁÔÏÒÙ ÏÐÅÒÁÃÉÊ: -W, --verify ÐÙÔÁÔØÓÑ ÐÒÏ×ÅÒÉÔØ ÁÒÈÉ× ÐÏÓÌÅ ÅÇÏ ÚÁÐÉÓÉ --remove-files ÕÄÁÌÑÔØ ÆÁÊÌÙ ÐÏÓÌÅ ÉÈ ÄÏÂÁ×ÌÅÎÉÑ × ÁÒÈÉ× -k, --keep-old-files ÎÅ ÐÅÒÅÚÁÐÉÓÙ×ÁÔØ ÓÕÝÅÓÔ×ÕÀÝÉÅ ÎÁ ÄÉÓËÅ ÆÁÊÌÙ ÐÒÉ ÉÚ×ÌÅÞÅÎÉÉ ÉÚ ÁÒÈÉ×Á -U, --unlink-first ÕÄÁÌÑÔØ ÓÕÝÅÓÔ×ÕÀÝÉÅ ÆÁÊÌÙ ÄÏ ÉÈ ÉÚ×ÌÅÞÅÎÉÑ --recursive-unlink ÏÞÉÝÁÔØ ÓÏÄÅÒÖÉÍÏÅ ËÁÔÁÌÏÇÏ× ÄÏ ÉÚ×ÌÅÞÅÎÉÑ -S, --sparse ÜÆÆÅËÔÉ×ÎÏ ÒÁÂÏÔÁÔØ Ó ÒÁÚÒÅÖÅÎÎÙÍÉ ÆÁÊÌÁÍÉ -O, --to-stdout ÉÚ×ÌÅËÁÔØ ÆÁÊÌÙ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ -G, --incremental ÒÁÂÏÔÁÔØ ÓÏ ÓÔÁÒÙÍ GNU-ÆÏÒÍÁÔÏÍ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÇÏ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ -g, --listed-incremental ÒÁÂÏÔÁÔØ ÓÏ ÎÏ×ÙÍ GNU-ÆÏÒÍÁÔÏÍ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÇÏ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ --ignore-failed-read ÎÅ ÐÒÅËÒÁÝÁÔØ ÒÁÂÏÔÕ ÉÚ-ÚÁ ÎÅÞÉÔÁÅÍÙÈ ÆÁÊÌÏ× ï ÏÛÉÂËÁÈ ÓÏÏÂÝÁÊÔÅ ÐÏ ÁÄÒÅÓÕ . éÍÅÎÁ ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ ÚÁËÁÎÞÉ×ÁÀÔÓÑ ÓÉÍ×ÏÌÏÍ `~', ÅÓÌÉ Ó ÐÏÍÏÝØÀ --suffix ÉÌÉ SIMPLE_BACKUP_SUFFIX ÎÅ ÕÓÔÁÎÏ×ÌÅÎ ÉÎÏÊ ÓÕÆÆÉËÓ. õÐÒÁ×ÌÅÎÉÅ ×ÅÒÓÉÑÍÉ ÍÏÖÎÏ ÕÓÔÁÎÏ×ÉÔØ Ó ÐÏÍÏÝØÀ --backup ÉÌÉ VERSION_CONTROL, ÐÒÉ ÜÔÏÍ ×ÏÚÍÏÖÎÙ ÓÌÅÄÕÀÝÉÅ ÚÎÁÞÅÎÉÑ: t, numbered ÄÅÌÁÔØ ÎÕÍÅÒÏ×ÁÎÎÙÅ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ nil, existing ÎÕÍÅÒÏ×ÁÎÎÙÅ, ÅÓÌÉ ÔÁËÏ×ÙÅ ÕÖÅ ÅÓÔØ, ÉÎÁÞÅ ÐÒÏÓÔÙÅ never, simple ×ÓÅÇÄÁ ÄÅÌÁÔØ ÐÒÏÓÔÙÅ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ éÓÐÏÌØÚÏ×ÁÎÉÅ: %s [ëìàþé]... éÓÐÏÌØÚÏ×ÁÎÉÅ: %s [ëìàþé]... [æáêì]... á×ÔÏÒ: Francois Pinard . á×ÔÏÒÙ: John Gilmore É Jay Fenlason. --backup[=ôéð] ÐÅÒÅÄ ÕÄÁÌÅÎÉÅÍ ÄÅÌÁÔØ ÒÅÚÅÒ×ÎÕÀ ËÏÐÉÀ ÔÉÐÁ ôéð --suffix=óõææéëó ÄÅÌÁÔØ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ Ó ÒÁÓÛÉÒÅÎÉÅÍ óõææéëó -N, --newer=äáôá ÓÏÈÒÁÎÑÔØ ÔÏÌØËÏ ÆÁÊÌÙ, ËÏÔÏÒÙÅ ÎÏ×ÅÅ äáôù --newer-mtime ÓÒÁ×ÎÉ×ÁÔØ ÔÏÌØËÏ ×ÒÅÍÑ ÉÚÍÅÎÅÎÉÑ ÆÁÊÌÁ --after-date=äáôá ÔÏ ÖÅ, ÞÔÏ É -N (ÓÄÅÌÁÎ ÄÁÍÐ ÐÁÍÑÔÉ) ÓÓÙÌËÁ ÎÁ %s n [name] äÁÔØ ÎÏ×ÏÅ ÉÍÑ ÄÌÑ ÓÌÅÄÕÀÝÅÇÏ ÔÏÍÁ (É ÐÏÓÌÅÄÕÀÝÉÈ ÔÏÍÏ×) q ðÒÅÒ×ÁÔØ ×ÙÐÏÌÎÅÎÉÅ tar ! ÷ÙÚ×ÁÔØ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ ? îÁÐÅÞÁÔÁÔØ ÜÔÏÔ ÓÐÉÓÏË ÎÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ ÆÁÊÌÁ `%c' %s ÎÅ ÐÒÏÄÏÌÖÁÅÔÓÑ ÎÁ ÜÔÏÍ ÔÏÍÅ%s -- ÁÒÈÉ×; ÎÅ ÓÂÒÏÛÅÎ%s: îÅ ÕÄÁÌÏÓØ ÓÍÅÎÉÔØ ×ÒÅÍÑ ÄÏÓÔÕÐÁ É ÍÏÄÉÆÉËÁÃÉÉ%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ËÁÔÁÌÏÇ%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÆÁÊÌ%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÓÉÍ×ÏÌØÎÕÀ ÓÓÙÌËÕ ÎÁ `%s'%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÓÓÙÌËÕ ÎÁ `%s'%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÉÍÅÎÏ×ÁÎÎÙÊ ËÁÎÁÌ%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÓÐÅÃÉÁÌØÎÙÊ ÆÁÊÌ%s: îÅ×ÏÚÍÏÖÎÏ ÚÁÐÉÓÁÔØ × ÆÁÊÌ%s: õÄÁÌÅÎÉÅ %s %s: ïÛÉÂËÁ ÐÒÉ ÚÁËÒÙÔÉÉ%s: ÷ ÁÒÈÉ×Å ÎÅ ÎÁÊÄÅÎ%s: îÁ ÄÒÕÇÏÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ; ÎÅ ÓÂÒÏÛÅÎ%s: îÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ ÆÁÊÌÁ; ÉÇÎÏÒÉÒÕÅÔÓÑ%s: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÒÅÚÅÒ×ÎÕÀ ËÏÐÉÀ ÜÔÏÇÏ ÆÁÊÌÁ%s: ÎÅ ÉÚÍÅÎÅÎ; ÎÅ ÓÂÒÏÛÅÎ((ÐÏÔÏÍÏË)) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ((ÐÏÔÏÍÏË)) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ(ÐÏÔÏÍÏË) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ(ÐÏÔÏÍÏË) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ(ÐÏÔÏÍÏË ÐÏÔÏÍËÁ) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ(ÐÏÔÏÍÏË ÐÏÔÏÍËÁ) ëÁÎÁÌ × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄ--òÕÂÌÅÎÙÅ ÉÍÅÎÁ ÆÁÊÌÏ×-- --úÁÇÏÌÏ×ÏË ÔÏÍÁ-- äÏÂÁ×ÌÅÎÙ ÐÒÁ×Á ÎÁ ÚÁÐÉÓØ É ×ÙÐÏÌÎÅÎÉÅ ÄÌÑ ËÁÔÁÌÏÇÁ %sîÅÏÄÎÏÚÎÁÞÎÙÊ ÛÁÂÌÏÎ `%s'ëÏÎÅà ÆÁÊÌÁ ÁÒÈÉ×Á %s ÎÅ ÎÁ ÇÒÁÎÉÃÅ ÂÌÏËÁíÅÔËÁ ÁÒÈÉ×Á ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ `%s'áÒÈÉ× × ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄáÒÈÉ× × ÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄôÅËÕÝÁÑ ÐÏÚÉÃÉÑ -- ÎÁÞÁÌÏ ÌÅÎÔÙ, ÐÒÅËÒÁÝÅÎÉÅ ÒÁÂÏÔÙðÏÐÙÔËÁ ÉÚ×ÌÅÞØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ËÁË ÖÅÓÔËÉÅîÅ×ÏÚÍÏÖÎÏ ÄÏÂÁ×ÉÔØ ËÁÔÁÌÏÇ %sîÅ×ÏÚÍÏÖÎÏ ÄÏÂÁ×ÉÔØ ÆÁÊÌ %sîÅ×ÏÚÍÏÖÎÏ ×ÙÄÅÌÉÔØ ÍÅÓÔÏ ÄÌÑ ÂÕÆÅÒÁîÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÊÔÉ × ËÁÔÁÌÏÇ %sîÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÊÔÉ × ËÁÔÁÌÏÇ %sïÛÉÂËÁ ÚÁËÒÙÔÉÑ ÄÅÓËÒÉÐÔÏÒÁ %dïÛÉÂËÁ ÚÁËÒÙÔÉÑ ÆÁÊÌÁ #%dïÛÉÂËÁ ÚÁÐÕÓËÁ %sîÅ×ÏÚÍÏÖÎÏ ÚÁÐÕÓÔÉÔØ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ %sîÅ×ÏÚÍÏÖÎÏ ÚÁÐÕÓÔÉÔØ ÕÄÁÌÅÎÎÙÊ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒîÅ×ÏÚÍÏÖÎÏ ÉÚ×ÌÅÞØ `%s' -- ÆÁÊÌ ÐÒÏÄÏÌÖÁÅÔÓÑ ÎÁ ÄÒÕÇÏÍ ÔÏÍÅïÛÉÂËÁ ÐÏÒÏÖÄÅÎÉÑ ÐÒÏÃÅÓÓÁîÅ×ÏÚÍÏÖÎÏ ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÐÒÏÃÅÓÓ!îÅ ÕÄÁÌÏÓØ ÏÔËÒÙÔØ %sïÛÉÂËÁ ÏÔËÒÙÔÉÑ ÁÒÈÉ×Á %sîÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ ËÁÔÁÌÏÇ %sîÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ ÆÁÊÌ %sïÛÉÂËÁ ÏÔËÒÙÔÉÑ ËÁÎÁÌÁïÛÉÂËÁ ÐÒÉ ÄÕÂÌÉÒÏ×ÁÎÉÉ %sîÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ %sîÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ ÐÏÄÔ×ÅÒÖÄÅÎÉÅ ÏÔ ÐÏÌØÚÏ×ÁÔÅÌÑïÛÉÂËÁ ÞÔÅÎÉÑ ÄÁÎÎÙÈ Ó ×ÙÈÏÄÁ ÐÒÏÇÒÁÍÍÙ ÓÖÁÔÉÑîÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ ÓÓÙÌËÕ %sîÅ×ÏÚÍÏÖÎÏ ÕÄÁÌÉÔØ %sîÅ×ÏÚÍÏÖÎÏ ÐÅÒÅÉÍÅÎÏ×ÁÔØ %s × %sîÅ×ÏÚÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÓÔÁÔÕÓ %sîÅ×ÏÚÍÏÖÎÏ ÕÚÎÁÔØ ÓÔÁÔÕÓ ÆÁÊÌÁ %sîÅ×ÏÚÍÏÖÎÏ ÓÏÚÄÁÔØ ÓÉÍ×ÏÌØÎÕÀ ÓÓÙÌËÕ %s ÎÁ %sïÂÎÏ×ÌÅÎÉÅ ÓÖÁÔÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÏéÓÐÏÌØÚÏ×ÁÎÉÅ ÓÖÁÔÙÈ ÉÌÉ ÕÄÁÌÅÎÎÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÏéÓÐÏÌØÚÏ×ÁÎÉÅ ÓÖÁÔÙÈ ÍÎÏÇÏÔÏÍÎÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÏðÒÏ×ÅÒËÁ ÓÖÁÔÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÁðÒÏ×ÅÒËÁ ÍÎÏÇÏÔÏÍÎÙÈ ÁÒÈÉ×Ï× ÎÅ×ÏÚÍÏÖÎÁðÒÏ×ÅÒËÁ ÁÒÈÉ×Á × ÓÔÁÎÄÁÒÔÎÏÍ ××ÏÄÅ/×Ù×ÏÄÅ ÎÅ×ÏÚÍÏÖÎÁîÅ ÕÄÁÌÏÓØ ÚÁÐÉÓÁÔØ × %sïÛÉÂËÁ ÚÁÐÉÓÉ ÄÁÎÎÙÈ ÎÁ ×ÈÏÄ ÐÒÏÇÒÁÍÍÙ ÓÖÁÔÉÑðÒÏÃÅÓÓ-ÐÏÔÏÍÏË ÎÅ ÍÏÖÅÔ ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÐÒÏÃÅÓÓ÷ÙÐÏÌÎÅÎÉÅ ÐÒÏÃÅÓÓÁ-ÐÏÔÏÍËÁ ÐÒÅÒ×ÁÎÏ ÐÏ ÓÉÇÎÁÌÕ %d%sðÒÏÃÅÓÓ-ÐÏÔÏÍÏË ×ÏÚ×ÒÁÔÉÌ ÓÔÁÔÕÓ %dîÅÓÏ×ÍÅÓÔÉÍÙÅ ËÌÀÞÉ, ÕËÁÚÙ×ÁÀÝÉÅ ÆÏÒÍÁÔ ÁÒÈÉ×ÁîÅÓÏ×ÍÅÓÔÉÍÙÅ ËÌÀÞÉ, ÕËÁÚÙ×ÁÀÝÉÅ ÔÉÐ ÓÖÁÔÉÑîÅ ÕÄÁÌÏÓØ ×ÙÄÅÌÉÔØ ÐÁÍÑÔØ ÐÏÄ ÂÕÆÅÒ ÂÌÏËÏ× ÒÁÚÍÅÒÏÍ %dîÅ ÕÄÁÌÏÓØ ÐÒÏËÒÕÔÉÔØ ÁÒÈÉ× ÎÁÚÁÄ; ÏÎ ÍÏÖÅÔ ÎÅ ÞÉÔÁÔØÓÑ ÂÅÚ -iîÅ ÕÄÁÌÏÓØ ÐÏÌÕÞÉÔØ ÔÅËÕÝÉÊ ËÁÔÁÌÏÇîÅ ÕÄÁÌÏÓØ ÐÏÌÕÞÉÔØ ÔÅËÕÝÉÊ ËÁÔÁÌÏÇ: %sîÅ ÕÄÁÌÏÓØ ÐÅÒÅÕÓÔÁÎÏ×ÉÔØ ÐÏÚÉÃÉÀ × ÁÒÈÉ×ÅîÅ ÕÄÁÌÏÓØ ÐÅÒÅÍÏÔÁÔØ ÁÒÈÉ× ÎÁ ÎÁÞÁÌÏ ÄÌÑ ÐÒÏ×ÅÒËÉòÏÂËÉÊ ÏÔËÁÚ ÏÔ ÓÏÚÄÁÎÉÑ ÐÕÓÔÏÇÏ ÁÒÈÉ×ÁóÏÚÄÁÎÉÅ ËÁÔÁÌÏÇÁ:äÁÎÎÙÅ ÒÁÚÌÉÞÁÀÔÓÑõÄÁÌÅÎÉÅ "ÎÅÚÁÇÏÌÏ×ËÁ" ÉÚ ÁÒÈÉ×ÁîÏÍÅÒÁ ÕÓÔÒÏÊÓÔ×Á ÉÚÍÅÎÉÌÉÓØëÁÔÁÌÏÇ %s ÂÙÌ ÐÅÒÅÉÍÅÎÏ×ÁÎëÁÔÁÌÏÇ %s -- ÎÏ×ÙÊîÅ ÓÕÝÅÓÔ×ÕÅÔëÏÎÅà ÆÁÊÌÁ ÁÒÈÉ×ÁëÏÎÅà ÆÁÊÌÁ ÐÒÉ ÏÖÉÄÁÎÉÉ ÏÔ×ÅÔÁ ÐÏÌØÚÏ×ÁÔÅÌÑ÷ÙÈÏÄ, ÏÔÌÏÖÅÎÎÙÊ ÐÏ ÒÅÚÕÌØÔÁÔÁÍ ÐÒÅÄÙÄÕÝÉÈ ÏÛÉÂÏËïÛÉÂËÁ ÐÒÉ ÚÁËÒÙÔÉÉ %sïÛÉÂËÁ ÐÒÉ ÕÄÁÌÅÎÉÉ %séÚ×ÌÅÞÅÎÉÅ ÎÅÐÒÅÒÙ×ÎÙÈ ÆÁÊÌÏ× ËÁË ÏÂÙÞÎÙÈæÁÊÌ ÎÅ ÓÕÝÅÓÔ×ÕÅÔéÍÑ ÆÁÊÌÁ %s%s ÓÌÉÛËÏÍ ÄÌÉÎÎÏÅéÍÑ ÆÁÊÌÁ %s/%s -- ÓÌÉÛËÏÍ ÄÌÉÎÎÏÅGNU `tar' ÓÏÈÒÁÎÑÅÔ ÍÎÏÖÅÓÔ×Ï ÆÁÊÌÏ× × ÏÄÎÏÍ ÁÒÈÉ×Å ÎÁ ÌÅÎÔÅ ÉÌÉ ÄÉÓËÅ É ÍÏÖÅÔ ×ÏÓÓÔÁ×ÌÉ×ÁÔØ ÏÔÄÅÌØÎÙÅ ÆÁÊÌÙ ÉÚ ÁÒÈÉ×Á. òÁÓÛÉÒÅÎÉÑ GNU ÚÁÐÒÏÛÅÎÙ ÎÁ ÎÅÓÏ×ÍÅÓÔÉÍÏÍ ÆÏÒÍÁÔÅ ÁÒÈÉ×ÁîÅ×ÅÒÎÁÑ ËÏÍÁÎÄÁæÏÒÍÉÒÏ×ÁÎÉÅ ÆÁÊÌÏ× ÄÁÎÎÙÈ ÄÌÑ ÔÅÓÔÉÒÏ×ÁÎÉÑ GNU tar. Gid ÒÁÚÌÉÞÁÀÔÓÑèÍ, ÜÔÏ ÎÅ ÐÏÈÏÖÅ ÎÁ tar-ÁÒÈÉ×åÓÌÉ ÄÌÑ ÄÌÉÎÎÏÇÏ ËÌÀÞÁ ÎÕÖÅÎ ÁÒÇÕÍÅÎÔ, ÔÏ ÏÎ ÔÁËÖÅ ÎÕÖÅÎ É ÄÌÑ ÜË×É×ÁÌÅÎÔÎÏÇÏ ËÏÒÏÔËÏÇÏ ËÌÀÞÁ. áÎÁÌÏÇÉÞÎÏ Ó ÎÅÏÂÑÚÁÔÅÌØÎÙÍÉ ÁÒÇÕÍÅÎÔÁÍÉ. -l, --file-length=äìéîá äìéîá ÆÏÒÍÉÒÕÅÍÏÇÏ ÆÁÊÌÁ -p, --pattern=ûáâìïî ûáâìïî ÄÏÌÖÅÎ ÂÙÔØ `default' ÉÌÉ `zeros' --help ×Ù×ÅÓÔÉ ÜÔÕ ÐÏÄÓËÁÚËÕ É ×ÙÊÔÉ --version ×Ù×ÅÓÔÉ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÅÒÓÉÉ É ×ÙÊÔÉ îÅ×ÅÒÎÙÊ ÆÏÒÍÁÔ ÄÁÔÙ -- `%s'õËÁÚÁÎÁ ÎÅ×ÅÒÎÁÑ ÇÒÕÐÐÁ ×ÌÁÄÅÎÉÑõËÁÚÁÎ ÎÅ×ÅÒÎÙÊ ÒÅÖÉÍ ÄÏÓÔÕÐÁõËÁÚÁÎ ÎÅ×ÅÒÎÙÊ ×ÌÁÄÅÌÅÃîÅÄÏÐÕÓÔÉÍÏÅ ÚÎÁÞÅÎÉÅ ÄÌÑ record_sizeðÁÍÑÔØ ÉÓÞÅÒÐÁÎÁðÒÏÐÕÝÅÎÏ ÉÍÑ ÆÁÊÌÁ ÐÏÓÌÅ -C÷ÒÅÍÅÎÁ ÍÏÄÉÆÉËÁÃÉÉ ÒÁÚÌÉÞÁÀÔÓÑðÒÁ×Á ÄÏÓÔÕÐÁ ÒÁÚÌÉÞÁÀÔÓÑðÒÁ×Á ÄÏÓÔÕÐÁ ÉÌÉ ÔÉÐ ÕÓÔÒÏÊÓÔ×Á ÉÚÍÅÎÉÌÉÓØâÏÌØÛÅ ÏÄÎÏÊ ÐÏÒÏÇÏ×ÏÊ ÄÁÔÙóÏÚÄÁÎÉÅ ÎÅÓËÏÌØËÉÈ ÁÒÈÉ×Ï× ÔÒÅÂÕÅÔ ËÌÀÞÁ `-M'îÅ ÕËÁÚÁÎÏ ÉÍÑ ÁÒÈÉ×ÁõÖÅ ÎÅ Ñ×ÌÑÅÔÓÑ ËÁÔÁÌÏÇÏÍîÅÔ ÎÏ×ÏÇÏ ÔÏÍÁ, ÐÒÅËÒÁÝÅÎÉÅ ÒÁÂÏÔÙ. ôÁËÏÊ ÆÁÊÌ ÉÌÉ ËÁÔÁÌÏÇ ÏÔÓÕÔÓÔ×ÕÅÔîÅ Ñ×ÌÑÅÔÓÑ ÏÂÙÞÎÙÍ ÆÁÊÌÏÍîÅ ÓÓÙÌÁÅÔÓÑ ÎÁ %sõÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --absolute-namesõÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --backupõÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --block-numberõÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --blocking-factorõÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --read-full-recordsõÓÔÁÒÅ×ÛÅÅ ÉÍÑ ËÌÀÞÁ ÚÁÍÅÎÅÎÏ ÎÁ --touchõÓÔÁÒÅ×ÛÉÊ ËÌÀÞ, ÔÅÐÅÒØ ÒÅÁÌÉÚÕÅÔÓÑ Ó ÐÏÍÏÝØÀ --blocking-factoróÔÁÒÙÊ ËÌÀÞ `%c' ÔÒÅÂÕÅÔ ÕËÁÚÁÎÉÑ ÁÒÇÕÍÅÎÔÁ.ðÒÏÐÕÓË %sïÂÁ ËÌÀÞÁ `-%s' É `-%s' ÉÓÐÏÌØÚÕÀÔ ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄëÌÀÞÉ `-Aru' ÎÅ ÓÏ×ÍÅÓÔÉÍÙ Ó `-f -'*üÔÏÔ* tar ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÌÀÞÉ `-[0-7][lmh]'ðÒÅÖÄÅ×ÒÅÍÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁðÒÉÇÏÔÏ×ØÔÅ ÔÏÍ ÎÏÍÅÒ %d ÄÌÑ %s É ÎÁÖÍÉÔÅ ÷÷ïä: ëÏÎÔÒÏÌØÎÁÑ ÔÏÞËÁ ÞÔÅÎÉÑ %dïÛÉÂËÁ ÞÔÅÎÉÑ ÉÚ %sþÔÅÎÉÅ %s òÁÚÍÅÒ ÚÁÐÉÓÉ ÄÏÌÖÅÎ ÂÙÔØ ËÒÁÔÅÎ %d.õÄÁÌÅÎÉÅ ÓÐÅÃÉÆÉËÁÃÉÉ ÄÉÓËÁ ÉÚ ÉÍÅÎ × ÁÒÈÉ×ÅõÄÁÌÅÎÉÅ ÎÁÞÁÌØÎÏÇÏ `/' ÉÚ ÁÂÓÏÌÀÔÎÙÈ ÓÓÙÌÏËõÄÁÌÅÎÉÅ ÎÁÞÁÌØÎÏÇÏ `/' ÉÚ ÁÂÓÏÌÀÔÎÙÈ ÐÕÔÅÊ × ÁÒÈÉ×Å%s ÐÅÒÅÉÍÅÎÏ×ÁÎ × %sòÁÚÍÅÒÙ ÒÁÚÌÉÞÁÀÔÓÑðÒÏÐÕÓË ÄÏ ÓÌÅÄÕÀÝÅÇÏ ÚÁÇÏÌÏ×ËÁ ÆÁÊÌÁðÒÏÐÕÓË ÄÏ ÓÌÅÄÕÀÝÅÇÏ ÚÁÇÏÌÏ×ËÁóÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ÒÁÚÌÉÞÁÀÔÓÑóÏÚÄÁÎÁ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ %s ÎÁ %süÔÏ ÎÅ ÐÏÈÏÖÅ ÎÁ tar-ÁÒÈÉ×üÔÁ ÐÒÏÇÒÁÍÍÁ -- Ó×ÏÂÏÄÎÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ; ÕÓÌÏ×ÉÑ ÅÅ ËÏÐÉÒÏ×ÁÎÉÑ ÓÍÏÔÒÉÔÅ × ÉÓÈÏÄÎÙÈ ÔÅËÓÔÁÈ. îÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔÓÑ îéëáëïê ÇÁÒÁÎÔÉÉ; × ÔÏÍ ÞÉÓÌÅ ÐÏÄÒÁÚÕÍÅ×ÁÅÍÏÊ ÇÁÒÁÎÔÉÉ ðïìåúîïóôé ÉÌÉ ðòéçïäîïóôé äìñ ïðòåäåìåîîïê ãåìé. üÔÏÔ ÔÏÍ ÎÁÒÕÛÁÅÔ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØóÌÉÛËÏÍ ÍÎÏÇÏ ÏÛÉÂÏË, ÐÒÅËÒÁÝÅÎÉÅ ÒÁÂÏÔÙïÂÝÅÅ ÞÉÓÌÏ ÚÁÐÉÓÁÎÎÙÈ ÂÁÊÔ: ðÏÐÒÏÂÕÊÔÅ `%s --help' ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÂÏÌÅÅ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ. Uid ÒÁÚÌÉÞÁÀÔÓÑîÅÐÒÅÄ×ÉÄÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ × ÁÒÈÉ×ÅîÅÐÒÅÄ×ÉÄÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ × ÒÕÂÌÅÎÙÈ ÉÍÅÎÁÈîÅÏÖÉÄÁÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ ÁÒÈÉ×ÁîÅÉÚ×ÅÓÔÎÁÑ ËÏÍÁÎÄÁ %s ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÒÕÂÌÅÎÙÈ ÉÍÅÎîÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ '%c' ÆÁÊÌÁ %s, ÓÒÁ×ÎÅÎ ËÁË ÏÂÙÞÎÙÊ ÆÁÊÌîÅÉÚ×ÅÓÔÎÙÊ ÔÉÐ '%c' ÆÁÊÌÁ %s, ÉÚ×ÌÅÞÅÎ ËÁË ÏÂÙÞÎÙÊ ÆÁÊÌîÅÉÚ×ÅÓÔÎÙÊ ÛÁÂÌÏÎ `%s'îÅÉÚ×ÅÓÔÎÁÑ ÓÉÓÔÅÍÎÁÑ ÏÛÉÂËÁïûéâëá ðòï÷åòëé: ÏÂÎÁÒÕÖÅÎÏ ÎÅ×ÅÒÎÙÈ ÚÁÇÏÌÏ×ËÏ×: %dðÒÏ×ÅÒËÁ ïÛÉÂËÁ ÉÚ-ÚÁ ÄÌÉÎÎÏÇÏ ÉÍÅÎÉïÛÉÂËÁ ÉÚ-ÚÁ ÄÌÉÎÎÏÇÏ ÉÍÅÎÉôÏÍ `%s' ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ `%s'ðòåäõðòåöäåîéå: áÒÈÉ× ÎÅ ÐÏÌÎÙÊðòåäõðòåöäåîéå: îÅ×ÏÚÍÏÖÎÏ ÚÁËÒÙÔØ %s (%d, %d)ðòåäõðòåöäåîéå: îÅÔ ÚÁÇÏÌÏ×ËÁ ÔÏÍÁëÏÎÔÒÏÌØÎÁÑ ÔÏÞËÁ ÚÁÐÉÓÉ %d÷Ù ÎÅ ÍÏÖÅÔÅ ÕËÁÚÁÔØ ÂÏÌÅÅ ÏÄÎÏÇÏ ËÌÀÞÁ `-Acdtrux'÷Ù ÄÏÌÖÎÙ ÕËÁÚÁÔØ ÏÄÉÎ ÉÚ ËÌÀÞÅÊ `-Acdtrux'exec/tcp: õÓÌÕÇÁ ÎÅÄÏÓÔÕÐÎÁrmtd: îÅ×ÏÚÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÍÅÓÔÏ ÄÌÑ ÂÕÆÅÒÁ rmtd: îÅ×ÅÒÎÁÑ ËÏÍÁÎÄÁ %c rmtd: ðÒÅÖÄÅ×ÒÅÍÅÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄÓÔÁÎÄÁÒÔÎÙÊ ×Ù×ÏÄtar (ÐÏÔÏÍÏË)tar (ÐÏÔÏÍÏË ÐÏÔÏÍËÁ)tar-1.13/po/sl.gmo0000664000176300016070000007400306740055253007466 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt5A…ˆB»DED/E‰F¹©II2Jó“N&ÕNºðPS-U¡=XϯY Z½'Z×2Zÿ'[2Ó[ZÆ\.\õ]¬]]Â]Ô]ò8^^I ^h1^‰^»^Ù^õ__1_A_Z/_r,_¢1_Ï ``"`=`Y`r`Œ`¨`Å`â4`òa'#a;a_a}aŒaœ1a·aéb.b"bQbh!b~b b¿bÔ)bðFccacrc„c™cµcÒcðdd'$d:,d_dŒd«'dÃdë&dú$e!&eF6em'e¤&eÌ&eó*ffE,f\f‰f¥fÄ+fÞ-g 4g87gm%g¥)gËgõ8h7hJh‚h•h¬hÈhæi ii7i?0iwi¨iÀ+i×jjj2pjQ6jÂjù8k #kB kf&k‡l®lÎlém3m!mU mj!m‹m­!mÀmâ(mün% n:nH+n`nŒn 5n±-nç3o6oI8o€,o¹3oæ#p p>3pK(p)p¨ pÒ/póq#q4 qM'qX,q€/q­BqÝr r>&rTr{r–rµrÏÊrìs·sÒsé.t&t2,tY9t†,tÀ-tí<uBuXu›u®3uÇ uû v v)vJvc$vyvžv¸6vÊ$w w&5wGw}'w—w¿wÏwàw𠧟%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: 1999-04-30 14:30 Last-Translator: Primoz Peterlin Language-Team: Slovenian MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8-bit Izbira formata arhiva: -V, --label=IME ustvarjanje arhiva z danim IMENOM VZOREC pri pregledu vsebine/izvleèku je ime lahko regularni izraz VZOREC -o, --old-archive, --portability zapis arhiva v formatu V7 --posix zapis arhiva v formatu POSIX -z, --gzip, --ungzip arhiv spustimo skozi program gzip -Z, --compress, --uncompress arhiv spustimo skozi program compress --use-compress-program=PROGRAM arhiv spustimo skozi PROGRAM (ki mora sprejemati izbiro -d) Copyright (C) 1988, 1992-1997, 1998 Free Software Foundation, Inc. Bloèna razdelitev enote: -b, --blocking-factor=BLOKI dol¾ina zapisa BLOKI x 512 zlogov --record-size=DOL®INA DOL®INA zapisa v zlogih (veèkratnik 512) -i, --ignore-zeros ne meni se za bloke nièel (EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Izbira enote: -f, --file=ARHIV uporabi datoteko ali enoto ARHIV --force-local arhiv je lokalen ne glede na dvopièje v imenu --rsh-command=UKAZ uporabi nelokalen UKAZ namesto rsh -[0-7][lmh] doloèi enoto in gostoto zapisa -M, --multi-volume ustvarjanje/pregled/izvleèek arhiva v veè delih -L, --tape-length=©T menjava traku po ©T x 1024 zapisanih zlogih -F, --info-script=SKRIPT po¾eni SKRIPT po koncu traku (privzema -M) --new-volume-script=SKRIPT isto kot -F SKRIPT --volno-file=DATOTEKA uporabimo/a¾uriramo ¹tevilo dela v DATOTEKI GNU tar ne zna ne prebrati in ne ustvariti arhivov ,--posix`. Pri nastavljeni spremenljivki POSIXLY_CORRECT in uporabi izbire ,--posix` raz¹iritve GNU niso dovoljene. Podpora za POSIX ¹e ni v celoti izvedena, ne zana¹ajte se nanjo. ARHIV je lahko podan v obliki DATOTEKA, RAÈUNALNIK:DATOTEKA ali UPORABNIK@RAÈUNALNIK:DATOTEKA; kjer je DATOTEKA lahko datoteka ali enota. Privzeta izbira *tega* programa ,tar` je `-f%s -b%d'. Ravnanje z atributi datotek: --owner=IME pri dodajanju datotek spremenimo lastnika v IME --group=IME pri dodajanju datotek spremenimo skupino v IME --mode=ZA©ÈITA pri dodajanju datotek nastavimo ZA©ÈITO --atime-preserve brez spreminjanja èasa zadnjega dostopa -m, --modification-time brez izvlaèenja èasa spremembe --same-owner z ohranitvijo lastni¹tva, èe je mo¾no --numeric-owner s ¹tevilènimi vrednostmi UID/GID namesto imen -p, --same-permissions z ohranitvijo za¹èite datotek --preserve-permissions isto kot -p -s, --same-order imena razvrstimo tako, da se ujemajo z arhivom --preserve-order isto kot -s --preserve isto kot -p in -s skupaj Èe je pri dalj¹i obliki izbire napisano, da ta zahteva argument, je argument obvezen tudi za kratko obliko. Podobno velja za neobvezne argumente. Informativni izpisi: --help ta navodila --version verzija programa -v, --verbose z zgovornim izpisom obdelanih datotek --checkpoint z izpisom imenikov pri branju arhiva --totals z izpisom celotne dol¾ine pri zapisu -R, --block-number z izpisom zaporednega bloka v arhivu ob vsakem sporoèilu -w, --interactive z uporabnikovo potrditvijo za vsako opravilo --confirmation isto kot -w Izbira lokalne datoteke: -C, --directory=IMENIK prestavimo se v navedeni IMENIK -T, --files-from=DATOTEKE seznam datotek preberemo z navedene DATOTEKE --null -T prebere z \000 terminirana imena; onemogoèi -C --exclude=VZOREC razen datotek, ki jih opisuje VZOREC -X, --exclude-from=DATOTEKA vse datoteke razen vzorcev, prebranih z DATOTEKE -P, --absolute-names ohranimo vodilni ,/` pri imenih datotek -h, --dereference shranimo datoteke, na katere ka¾ejo simbolne povezave --no-recurse podimenikov ne vkljuèujemo avtomatièno -l, --one-file-system izpustimo datotek na nelokalnih datoteènih sistemih -K, --starting-file=IME zaèen¹i z navedenim IMENOM v arhivu Glavni naèini delovanja: -t, --list izpis vsebine arhiva -x, --extract, --get izvleèenje datoteke iz arhiva -c, --create ustvarjanje novega arhiva -d, --diff, --compare iskanje razlik med arhivom in datoteènim sistemom -r, --append dodajanje datotek na konec arhiva -u, --update nadomestitev starih/dodajanje novih datotek -A, --catenate zlivanje arhivov --concatenate isto kot -A --delete brisanje datotek iz arhiva (ne deluje na traku!) Doloèila: -W, --verify s poskusom preverjanja zapisanega arhiva --remove-files z brisanjem datotek, dodanih v arhiv -k, --keep-old-files brez brisanja obstojeèih datotek pri izvlaèenju -U, --unlink-first z brisanjem starih datotek pri izvlaèenju novih prek njih (tudi celih imenikov, èe je dan dvakrat) --recursive-unlink izpraznimo hierarhije pred izvlaèenjem imenikov -S, --sparse ekonomièno ravnanje z razpr¹enimi datotekami -O, --to-stdout izvlaèenje na standardni izhod -G, --incremental stari format GNU za inkrementalne arhive -g, --listed-incremental novi format GNU za inkrementalne arhive --ignore-failed-read nadaljuj z branjem, tudi èe datoteke ni moè prebrati Poroèila o morebitnih napakah javite na . Pripona varnostne kopije je ,~`, razen èe ni drugaèe doloèeno z izbiro --suffix ali s spremenljivko SIMPLE_BACKUP_SUFFIX. Tip varnostne kopije lahko doloèimo z izbiro --backup ali s spremenljivko VERSION_CONTROL. Vrednosti so: t, numbered o¹tevilèene varnostne kopije nil, existing o¹tevilèene varnostne kopije, èe take ¾e obstajajo, sicer enostavne never, simple vedno enostavne varnostne kopije Uporaba: %s [IZBIRA]... Uporaba: %s [IZBIRA]... [DATOTEKA]... Avtor François Pinard . Avtorja John Gilmore in Jay Fenlason. --backup[=CONTROL] varnostna kopija pred brisanjem, z mo¾nostjo izbire nadzora verzije --suffix=SUFFIX varnostna kopija pred brisanjem, doloèimo pripono -N, --newer=DATUM arhiviramo samo datoteke, mlaj¹e od DATUMA --newer-mtime datum in èas primerjamo le ob spremembah podatkov --after-date=DATUM isto kot -N (core dumped) povezava na %s n [name] Podamo novo ime datoteke za naslednji del (in vse nadaljnje) q Konèamo tar ! Po¾enemo sekundarno ukazno lupino ? Ta seznam uzazov neznan tip ,%c' %s se ne nadaljuje v tem delu%s je v arhivu; brez sprememb%s: Èasa zadnje spremembe in dostopa ni mo¾no spremeniti%s: Ni mo¾no ustvariti imenika%s: Ni mogoèe ustvariti datoteke%s: Ni mogoèe ustvariti simbolne povezave na ,%s'%s: Povezava na ,%s' ni mo¾na%s: Ni mo¾no ustvariti FIFO%s: Ni mo¾no ustvariti vozla%s: Zapis na datoteko ni mogoè%s: Bri¹emo %s %s: Napaka pri zapiranju%s: Ni najdeno v arhivu%s: Na drugem datoteènem sistemu; brez sprememb%s: Neznan tip datoteke; datoteka ignorirana%s: Varnostne kopije te datoteke ni moè napraviti%s: nespremenjena; brez sprememb((naslednik)) cev na stdin((naslednik)) cev na stdout(naslednik) cev na stdin(naslednik) cev na stdout(pranaslednik) cev na stdin(pranaslednik) cev na stdout--Predelana imena datotek-- --Glava dela-- Imeniku %s dodani dovoljenji za pisanje in izvajanjeDvoumen vzorec ,%s`Arhiv %s se ne konèa s koncem blokaOznaka arhiva ne ustreza ,%s`Arhiv na stdinArhiv na stdoutNa zaèetku traku, konèujemSimbolne povezave poskusimo dearhivirati kot trdeNi mogoèe dodati imenika %sNi mogoèe dodati datoteke %sNi mogoèe rezervirati prostora za medpomnilnikImenik %s ni dosegljivImenik %s ni dostopenNi mogoèe zapreti deskriptorja %dNi mogoèe zapreti datoteke #%dNi mogoèe pognati %sNi mogoèe pognati lupine %sNi mogoèe pognati nelokalne ukazne lupineDearhivacija ,%s' ni mo¾na - datoteka se nadaljuje iz prejn¹njega delaVejitev ni mo¾naVejitev ni mo¾na!Ni mogoèe odpreti %sNi mogoèe odpreti arhiva %sNi mogoèe odpreti imenika %sNi mogoèe odpreti datoteke %sNi mogoèe odpreti ceviNi mogoèe pravilno podvojiti %sBranje %s ni mo¾noUporabnikova potrditev ni izvedljivaBranje z izhoda programa za stiskanje ne greNi mogoèe prebrati povezave %sNi mogoèe odstraniti %sDatoteke %s ni mogoèe preimenovati v %sCannot stat %sNi mogoèe do statistike za datoteko %sSimbolna povezava %s na %s ni mogoèaStisnjenega arhiva ni mogoèe a¾uriratiNi mogoèe uporabiti stisnjenih ali ne-lokalnih arhivovStisnjeni arhivi v veè delih niso mo¾niStisnjenega arhiva ni mogoèe preveritiArhivov v veè delih ni mo¾no preveritiArhivov na stdin/stdout ni mo¾no preveritiPisanje na %s ni mo¾noPisanje na vhod programa za stiskanje ne greVejitev naslednika ni mo¾naNaslednik umrl s signalom %d%sNaslednik vrnil status %dNasprotujoèe si izbire glede formata arhivaNasprotujoèe si izbire glede stiskanja arhivaNi mogoèe rezervirati pomnilnika za bloèni faktor %dNazaj po arhivu ne gre, morda ni berljiv brez izbire -iNi mogoèe izvedeti trenutnega imenikaNi mogoèe izvedeti trenutnega imenika: %sRepozicija arhiva neuspe¹naArhiva ni mo¾no previti na zaèetek, preverjanje ni mo¾noZahteva po odprtju praznega arhiva bojazljivo zavrnjenaUstvarjamo imenik:Podatki se razlikujejoBrisanje ne-glave iz arhiva©tevilka enote je spremenjenaImenik %s je bil preimenovanImenik %s je novNe obstajaZnak za konec datoteke v arhivuZnak EOF na mestu, kjer se prièakuje odgovor uporabnikaIzhod ob napaki zakasnjen zaradi prej¹njih napakNapaka pri zapiranju %sNapaka pri brisanju %sNeprekinjene datoteke izvleèemo kot navadneDatoteka ne obstajaIme datoteke %s%s predolgoIme datoteke %s/%s je predolgoGNU ,tar` shranjuje veè datotek skupaj na trak ali arhiv na disku, ter lahko vrne posamezne datoteke iz arhiva. Raz¹iritve GNU izbrane na nezdru¾ljivem formatu arhivaNeveljaven ukazUstvarimo podatkovne datoteke za testno zbirko GNU tar. ©tevilka skupine (GID) se razlikujeHmm, to ne izgleda kot arhiv tarArgumenti, ki so obvezni za dolge oblike izbire, so obvezni tudi za kratke. -l, --file-length=DOL®INA DOL®INA ustvarjene datoteke -p, --pattern=VZOREC mo¾nosti za VZOREC sta ,default` in ,zeros` --help ta navodila --version verzija programa Neveljavna oblika datuma v ,%s`Podana skupina ni veljavnaPodana za¹èita ni veljavnaPodani uporabnik ni veljavenNeveljavna vrednost za dol¾ino zapisa (record_size)Zmanjkalo pomnilnikaZa izbiro -C manjka ime datotekeÈas zadnje spremembe se razlikujeNaèin se razlikujeNaèin ali tip enote je spremenjenVeè kot en pra¾ni podatekArhivi v veè delih zahtevajo izbiro ,-M'Ime arhiva ni podanoNi veè imenikNovega dela ni, konec. Datoteka ali imenik s tem imenom ne obstajaNi navadna datotekaNi povezana z %sZastarela izbira, zdaj nadome¹èena z --absolute-namesZastarela izbira, zdaj nadome¹èena z --backupZastarela izbira, zdaj nadome¹èena z --block-numberZastarela izbira, zdaj nadome¹èena z --blocking-factorZastarela izbira, zdaj nadome¹èena z --read-full-recordsZastarela izbira, zdaj nadome¹èena z --touchZastarela izbira, zdaj privzeta z --blocking-factorStara izbira ,%c' zahteva argument.Izpu¹èamo %sIzbiri ,-%s' in ,-%s' obe zahtevata standardni vhodIzbire ,-Ary' so nezdru¾ljive z ,,-f -''*Ta* tar ne podpira izbir ,,-[0-7][lmh]''Predèasen znak za konec datotekePripravite del #%d za %s in pritisnite Return: Branje oznake %dNapaka pri pisanju na %sBranje %s Dol¾ina zapisa mora biti veèkratnik %d.Imena datotek v arhivu oèistimo imena pogonaOdstranjujemo vodilne ,/` iz absolutnih povezavImena datotek v arhivu oèistimo vodilnega ,/` pri absolutnih potehDatoteka %s preimenovana v %sVelikost se razlikujePreskoèimo na naslednjo glavo datotekePreskok na naslednjo glavoSimbolna povezava se razlikuje%s simbolno povezano z %sTo ne deluje kot arhiv ,tar'To je prost program; pogoji, pod katerimi ga lahko razmno¾ujete in raz¹irjate so navedeni v izvorni kodi. Za program ni NOBENEGA jamstva, niti jamstev USTREZNOSTI ZA PRODAJO ali PRIMERNOSTI ZA UPORABO. Ta del ne sodi v zaporedjePreveè napak, konèujemSkupno zapisanih zlogov: Poskusite ,%s --help' za izèrpnej¹a navodila. ©tevilka uporabnika (UID) se razlikujeNeprièakovan znak za konec datoteke v arhivuNeprièakovan znak za konec datoteke med predelanimi imeniNeprièakovan znak za konec datoteke v arhivuNeznan ukaz %s za restavriranje izvornih imenNeznan tip datoteke ,%c' za %s, diff kot na navadni datotekiNeznan tip ,%c' pri datoteki %s, dearhiviramo kot navadno datotekoNeznan vzorec ,%s`Neznana sistemska napakaNAPAKA: pri preverjanju najdeno %d neveljavnih glavPreverjanje Opazna napaka zaradi dolgih imenOpazna napaka zaradi dolgih imenDel ,%s` ne ustreza ,%s`POZOR: Arhiv nepopolnPOZOR: Ni mogoèe zapreti %s (%d, %d)POZOR: Oznaka dela manjkaPisanje oznake %dNajveè ena od izbir ,,-Acdtrux'' je dovoljena naenkratEna od izbir ,,-Acdtrux'' je obveznaexec/tcp: Storitev ni dosegljivarmtd: Ni mogoèe rezervirati prostora za medpomnilnik rmtd: Neveljaven ukaz %c rmtd: Predèasen znak za konec datoteke standardni vhodstandardni izhodtar (naslednik)tar (pranaslednik)tar-1.13/po/sv.gmo0000664000176300016070000007345106740055253007506 •ÞÏ” `a?r-²ˆàWiÁáräs-!Xá#†$&h7&'Å!'Ý7'ÿ+(7™(c¶(ý)´ )Ø)Ð*i"*‚*¥2*Ã*ö+$+/+T+o+‡+Ÿ+»+Ì+ä)+ý#,'",K,n,‹,£,¼,Ò,é-- -82-K-~$-•"-º-Ý-î".5.#.Y.q.„.¡.¿.Ò.í///)</E /‚ /Ž/›/ª/Á/Ú/î/ÿ0"0+$0N0s0‡0˜0¯0¾0Ò!0ê(1 +15!1a#1ƒ"1§1Ê#1Ý222/"2H2k02‹A2¼2þ#3"3B(3e,3Ž3» 3Ï 3Ü3ý4424F4U!4i'4‹4³4Ê,4â55#5;{5T25Ð6,6 6@)6LY6v7Ð7é88$8B8`8q8Œ 88ª8Æ+8ã99%9;9T9n919’)9Ä/9î2:4:Q(:†1:¯%:á ;0;+;D1;p;¢*;¸;ã;ö <%<-<9(> >:&>P >w>ƒ>>½>Ü4>ú7?/?g?|-?‘?¿?Ç?ß?ö@!@5@W@q3@….@¹@è#AA,AFA[Aa AhAt7A…8B½=DöRE4åF‡nImJÜ™Nm÷O³Pÿ8S³_UìmYL~Yº[9%[V7[|+[´[àµ\ñ]§]¸¦]Ç^n ^‚^£1^Á^ó_-_)_W_v__¯_Î_ß_õ*`!`9`[!`{``»`Ô`ða a,aLa`;apa¬,aÃ-aðbb5bL5bl b¢bÃbàbúcc6cSckc€cžBcºcýd dd.dHddd|dd¥)d¶*dàe e! e5eVeo$eŽ&e³4eÚ-f&f=#fd'fˆf°,fÈfõg "g&gI gi,gŠ@g·!gø1h%hL8hr h«hÌ hÜ$hêii(iCiVie"iz5iiÓ$ië1jjBjWjsxj4k k>)kM kw,k„?k±lñm %m*"mPms m‘mmµmÒ%mén'n$nLn]nt nn°nÃ,n×$o*o)-oT/o‚#o²7oÖ'p p69pC+p};p©på8pøq1 qH qT(q^)q‡+q±7qÝrr.$rCrhrƒrž'r»žrã&s‚s©sÁ,sÝ t tt1tOtl3tˆ6t¼tóu2u uIuUuk'u!u©$uËuðv -v#(vQ&vz v¡vÂvÝ v÷ w ww §Ÿ%;/³_\Œ™qÈ}| Bk'–°i"’: É.vÁF¤·” ¯x‚$Ã0˜Ës±CA¾†Ê¦-µOª+YwQˆÆ´Â¢fλSy<Š8¶=¡ž²r]K&P mŬ#VÀ¨®)›ÏL3t{7joG“ÌU4Hl‘uŽT@Ç…½6©1•n‹?­€«E*M¿ƒ‡~`e N͸hz‰X,5a„^b2J(œ¼dcÄ!¹IRW¥£D—špº> g[9Z Archive format selection: -V, --label=NAME create archive with volume name NAME PATTERN at list/extract time, a globbing PATTERN -o, --old-archive, --portability write a V7 format archive --posix write a POSIX conformant archive -z, --gzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --use-compress-program=PROG filter through PROG (must accept -d) Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Device blocking: -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record --record-size=SIZE SIZE bytes per record, multiple of 512 -i, --ignore-zeros ignore zeroed blocks in archive (means EOF) -B, --read-full-records reblock as we read (for 4.2BSD pipes) Device selection and switching: -f, --file=ARCHIVE use archive file or device ARCHIVE --force-local archive file is local even if has a colon --rsh-command=COMMAND use remote COMMAND instead of rsh -[0-7][lmh] specify drive and density -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes -F, --info-script=FILE run script at end of each tape (implies -M) --new-volume-script=FILE same as -F FILE --volno-file=FILE use/update the volume number in FILE GNU tar cannot read nor produce `--posix' archives. If POSIXLY_CORRECT is set in the environment, GNU extensions are disallowed with `--posix'. Support for POSIX is only partially implemented, don't count on it yet. ARCHIVE may be FILE, HOST:FILE or USER@HOST:FILE; and FILE may be a file or a device. *This* `tar' defaults to `-f%s -b%d'. Handling of file attributes: --owner=NAME force NAME as owner for added files --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files --atime-preserve don't change access times on dumped files -m, --modification-time don't extract file modified time --same-owner try extracting files with the same ownership --numeric-owner always use numbers for user/group names -p, --same-permissions extract all protection information --preserve-permissions same as -p -s, --same-order sort names to extract to match archive --preserve-order same as -s --preserve same as both -p and -s If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Informative output: --help print this help, then exit --version print tar program version number, then exit -v, --verbose verbosely list files processed --checkpoint print directory names while reading the archive --totals print total bytes written while creating archive -R, --block-number show block number within archive with each message -w, --interactive ask for confirmation for every action --confirmation same as -w Local file selection: -C, --directory=DIR change to directory DIR -T, --files-from=NAME get names to extract or create from file NAME --null -T reads null-terminated names, disable -C --exclude=PATTERN exclude files, given as a globbing PATTERN -X, --exclude-from=FILE exclude globbing patterns listed in FILE -P, --absolute-names don't strip leading `/'s from file names -h, --dereference dump instead the files symlinks point to --no-recursion avoid descending automatically in directories -l, --one-file-system stay in local file system when creating archive -K, --starting-file=NAME begin at file NAME in the archive Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files when extracting -U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, --listed-incremental handle new GNU-format incremental backup --ignore-failed-read do not exit with nonzero on unreadable files Report bugs to . The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups Usage: %s [OPTION]... Usage: %s [OPTION]... [FILE]... Written by François Pinard . Written by John Gilmore and Jay Fenlason. --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, override usual suffix -N, --newer=DATE only store files newer than DATE --newer-mtime compare date and time when data changed only --after-date=DATE same as -N (core dumped) link to %s n [name] Give a new file name for the next (and subsequent) volume(s) q Abort tar ! Spawn a subshell ? Print this list unknown file type `%c' %s is not continued on this volume%s is the archive; not dumped%s: Could not change access and modification times%s: Could not create directory%s: Could not create file%s: Could not create symlink to `%s'%s: Could not link to `%s'%s: Could not make fifo%s: Could not make node%s: Could not write to file%s: Deleting %s %s: Error while closing%s: Not found in archive%s: On a different filesystem; not dumped%s: Unknown file type; file ignored%s: Was unable to backup this file%s: is unchanged; not dumped((child)) Pipe to stdin((child)) Pipe to stdout(child) Pipe to stdin(child) Pipe to stdout(grandchild) Pipe to stdin(grandchild) Pipe to stdout--Mangled file names-- --Volume Header-- Added write and execute permission to directory %sAmbiguous pattern `%s'Archive %s EOF not on block boundaryArchive not labelled to match `%s'Archive to stdinArchive to stdoutAt beginning of tape, quitting nowAttempting extraction of symbolic links as hard linksCannot add directory %sCannot add file %sCannot allocate buffer spaceCannot change to directory %sCannot chdir to %sCannot close descriptor %dCannot close file #%dCannot exec %sCannot exec a shell %sCannot execute remote shellCannot extract `%s' -- file is continued from another volumeCannot forkCannot fork!Cannot open %sCannot open archive %sCannot open directory %sCannot open file %sCannot open pipeCannot properly duplicate %sCannot read %sCannot read confirmation from userCannot read from compression programCannot read link %sCannot remove %sCannot rename %s to %sCannot stat %sCannot stat file %sCannot symlink %s to %sCannot update compressed archivesCannot use compressed or remote archivesCannot use multi-volume compressed archivesCannot verify compressed archivesCannot verify multi-volume archivesCannot verify stdin/stdout archiveCannot write to %sCannot write to compression programChild cannot forkChild died with signal %d%sChild returned status %dConflicting archive format optionsConflicting compression optionsCould not allocate memory for blocking factor %dCould not backspace archive file; it may be unreadable without -iCould not get current directoryCould not get current directory: %sCould not re-position archive fileCould not rewind archive file for verifyCowardly refusing to create an empty archiveCreating directory:Data differsDeleting non-header from archiveDevice numbers changedDirectory %s has been renamedDirectory %s is newDoes not existEOF in archive fileEOF where user reply was expectedError exit delayed from previous errorsError while closing %sError while deleting %sExtracting contiguous files as regular filesFile does not existFile name %s%s too longFile name %s/%s too longGNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. GNU features wanted on incompatible archive formatGarbage commandGenerate data files for GNU tar test suite. Gid differsHmm, this doesn't look like a tar archiveIf a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. -l, --file-length=LENGTH LENGTH of generated file -p, --pattern=PATTERN PATTERN is `default' or `zeros' --help display this help and exit --version output version information and exit Invalid date format `%s'Invalid group given on optionInvalid mode given on optionInvalid owner given on optionInvalid value for record_sizeMemory exhaustedMissing file name after -CMod time differsMode differsMode or device-type changedMore than one threshold dateMultiple archive files requires `-M' optionNo archive name givenNo longer a directoryNo new volume; exiting. No such file or directoryNot a regular fileNot linked to %sObsolete option name replaced by --absolute-namesObsolete option name replaced by --backupObsolete option name replaced by --block-numberObsolete option name replaced by --blocking-factorObsolete option name replaced by --read-full-recordsObsolete option name replaced by --touchObsolete option, now implied by --blocking-factorOld option `%c' requires an argument.Omitting %sOptions `-%s' and `-%s' both want standard inputOptions `-Aru' are incompatible with `-f -'Options `-[0-7][lmh]' not supported by *this* tarPremature end of filePrepare volume #%d for %s and hit return: Read checkpoint %dRead error on %sReading %s Record size must be a multiple of %d.Removing drive spec from names in the archiveRemoving leading `/' from absolute linksRemoving leading `/' from absolute path names in the archiveRenamed %s to %sSize differsSkipping to next file headerSkipping to next headerSymlink differsSymlinked %s to %sThis does not look like a tar archiveThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This volume is out of sequenceToo many errors, quittingTotal bytes written: Try `%s --help' for more information. Uid differsUnexpected EOF in archiveUnexpected EOF in mangled namesUnexpected EOF on archive fileUnknown demangling command %sUnknown file type '%c' for %s, diffed as normal fileUnknown file type '%c' for %s, extracted as normal fileUnknown pattern `%s'Unknown system errorVERIFY FAILURE: %d invalid header(s) detectedVerify Visible long name errorVisible longname errorVolume `%s' does not match `%s'WARNING: Archive is incompleteWARNING: Cannot close %s (%d, %d)WARNING: No volume headerWrite checkpoint %dYou may not specify more than one `-Acdtrux' optionYou must specify one of the `-Acdtrux' optionsexec/tcp: Service not availablermtd: Cannot allocate buffer space rmtd: Garbage command %c rmtd: Premature eof stdinstdouttar (child)tar (grandchild)Project-Id-Version: tar 1.12 POT-Creation-Date: 1999-07-04 23:46-0700 PO-Revision-Date: $Date: 1997-05-01 14:55:12+02:00 $ Last-Translator: Jan Djärv Language-Team: Swedish MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Val av arkivformat: -V, --label=NAMN skapa ett arkiv med volymnamnet NAMN REGUTTR vid visning/extrahering är namnet ett reguljärt uttryck. -o, --old-archive, --portability skriv ett arkiv i V7-format --posix skriv ett arkiv i POSIX-format -z, --gzip, --ungzip filtrera arkivet genom gzip -Z, --compress, --uncompress filtrera arkivet genom compress --use-compress-program=PROG filtrera genom PROG (måste förstå -d) Copyright © 1995, 1996, 1997 Free Software Foundation, Inc. Blockhantering: -b, --blocking-factor=BLOCK BLOCK x 512 byte per post --record-size=ANTAL ANTAL byte per post, multipel av 512 -i, --ignore-zeros ignorera block med enbart nolltecken (betyder filslut) -B, --read-full-records omblocka vid läsning (för 4.2BSD-rör) Enhetsval och enhetsbyte: -f, --file=ARKIV använd arkivfil eller enhet ARKIV --force-local arkivfilen är lokal även om namnet har kolon --rsh-command=KOMMANDO använd KOMMANDO i stället för rsh. -[0-7][lmh] ange enhet och densitet -M, --multi-volume skapa/visa/extrahera ett flervolymsarkiv -L, --tape-length=ANTAL byt band efter det att ANTAL x 1024 byte skrivits -F, --info-script=FIL kör kommandofil FIL vid slutet av varje band (flaggan -M sätts också) --new-volume-script=FIL samma som -F FIL --volno-file=FIL använd/uppdatera volymnummer i FIL GNU "tar" kan inte läsa eller skapa "--posix" arkiv. Om miljövariabeln POSIXLY_CORRECT är satt så tar "--posix" bort GNUs utökningar till "tar". Stöd för POSIX är bara delvis implementerat, så förlita er inte på det än. ARKIV kan vara FIL, MASKIN:FIL eller ANVÄNDARE@MASKIN:FIL, och FIL kan vara en fil eller en enhet. *Denna* "tar" har normalvärdena "-f%s -b%d". Hantering av filattribut: --owner=NAMN sätt NAMN som ägare för adderade filer --group=NAMN sätt NAMN som grupp för adderade filer --mode=RÄTTIGHET sätt (symbolisk) RÄTTIGHET för adderade filer --atime-preserve ändra inte åtkomsttider på arkiverade filer -m, --modification-time extrahera inte filers modifieringstid --same-owner försök extrahera filer med samma ägare som i arkivet --numeric-owner använd alltid tal för användar- och gruppnamn -p, --same-permissions extrahera all åtkomstinformation --preserve-permissions samma som -p -s, --same-order sortera namn som ska extraheras så de passar ihop med arkivet --preserve-order samma som -s --preserve samma som både -p och -s Om en lång flagga visar ett argument som obligatoriskt då är det även obligatoriskt för den korta flaggan. Motsvarande gäller för frivilliga argument. Informativ utskrift: --help visa denna hjälptext och avsluta --version visa versionsinformation och avsluta -v, --verbose visa namn på alla filer som behandlas --checkpoint visa katalognamn när arkivet läses --totals visa antal skrivna byte när arkivet skapas -R, --block-number visa blocknummer inom arkivet för varje meddelande -w, --interactive fråga efter bekräftelse för varje steg --confirmation samma som -w Filval: -C, --directory=KATALOG byt katalog till KATALOG -T, --files-from=NAMN hämta namn att extrahera från filen NAMN --null -T läser namn åtskilda med nolltecken, -C obrukbar --exclude=MÖNSTER tag inte med filer som matchar MÖNSTER -X, --exclude-from=FIL tag inte med filer som matchar mönster i filen FIL -P, --absolute-names tag inte bort inledande "/" från namn -h, --dereference arkivera det som symboliska länkar pekar på --no-recurse gå inte automatiskt ned i kataloger -l, --one-file-system byt inte filsystem när arkivet skapas -K, --starting-file=NAMN börja med fil NAMN i arkivet Operationsläge: -t, --list visa innehållet i arkivet -x, --extract, --get extrahera filer från arkivet -c, --create skapa ett nytt arkiv -d, --diff, --compare visa skillnader mellan filsystemet och arkivet -r, --append lägg till filer på slutet av arkivet -u, --update lägg till filer som är nyare än de i arkivet -A, --catenate lägg till innehållet i en arkivfil till arkivet --concatenate samma som -A --delete ta bort från arkivet (ej för arkiv på magnetband!) Modifiera operationslägen: -W, --verify försök verifiera arkivet efter det skapats --remove-files ta bort filer efter de sparats i arkivet -k, --keep-old-files skriv inte över existerande filer vid extraktion -U, --unlink-first ta bort gamla filer innan de nya extraheras --recursive-unlink ta bort kataloger före extrahering -S, --sparse hantera filer med hål mer effektivt -O, --to-stdout extrahera filer till standard ut -G, --incremental hantera gamla GNU-formatet för inkrementell säkerhetskopiering -g, --listed-incremental hantera nya GNU-formatet för inkrementell säkerhetskopiering --ignore-failed-read avsluta inte med felslutstatus p.g.a. oläsbara filer Rapportera fel till . Rapportera fel eller synpunkter på översättningen till . Säkerhetskopieändelse är "~", om den inte sätts med --suffix eller SIMPLE_BACKUP_SUFFIX. Versionshanteringen kan styras med --backup eller VERSION_CONTROL, där värdena kan vara: t, numbered gör numrerade säkerhetskopior nil, existing numrerade säkerhetskopior om det redan finns sådana, enkla annars never, simple gör alltid enkla säkerhetskopior Användning: %s [FLAGGA]... Användning: %s [FLAGGA]... [FIL]... Skriven av François Pinard . Skriven av John Gilmore och Jay Fenlason. --backup[=KONTROLL] gör säkerhetskopior före borttagning, välj typ av versionshantering --suffix=SUFFIX gör säkerhetskopior före borttagning, ersätt den normala säkerhetskopieändelsen -N, --newer=DATUM arkivera bara filer nyare än DATUM --newer-mtime jämför datum och tid endast för dataändringar --after-date=DATUM samma som -N (minnet sparat) länk till %s n [namn] Ge ett nytt filnamn för nästa (och efterföljande) volym(er) q Avsluta programmet ! Starta ett underskal ? Skriv denna lista okänd filtyp "%c" %s fortsätter inte i denna volym%s är arkivet; inte arkiverat%s: Kunde inte ändra åtkomst- och modifieringstid%s: Kunde inte skapa katalog%s: Kunde inte skapa fil%s: Kunde inte skapa symbolisk länk till "%s"%s: Kunde inte länka till "%s"%s: Kunde inte skapa fifo%s: Kunde inte skapa enhetsfil%s: Kunde inte skriva till fil%s: Tar bort %s %s: Fel vid stängning%s: Fanns inte i arkivet%s: På ett annat filsystem; inte arkiverad%s: Okänd filtyp; filen ignorerad%s kunde inte säkerhetskopieras%s: är oförändrad; inte arkiverad((barn)) Rör till standard in((barn)) Rör standard ut(barn) Rör till standard in(barn) Rör till standard ut(barnbarn) Rör till standard in(barnbarn) Rör till standard ut--Kodade filnamn-- --Volymhuvud-- Lade till skriv- och exekveringsrättigheter till katalog %sTvetydigt mönster "%s"I arkiv %s är inte filslut vid en blockgränsArkivet är inte märkt för att stämma med "%s"Arkiv till standard inArkiv till standard utVid bandets början, avslutar nuFörsöker extrahera symboliska länkar som hårda länkarKan inte lägga till katalogen %sKan inte lägga till filen %sKan inte allokera buffertKan inte gå till katalogen %sKan inte gå till katalogen %sKan inte stänga filnummer %dKan inte stänga fil #%dKan inte exekvera %sKan inte exekvera ett skal %sKan inte exekvera fjärrskalKan inte extrahera "%s" -- filen fortsätter från en tidigare volymKan inte grenaKan inte grena!Kan inte öppna %sKan inte öppna arkivet %sKan inte öppna katalogen %sKan inte öppna filen %sKan inte öppna rörKan inte duplicera %sKan inte läsa %sKan inte läsa bekräftelse från användarenKan inte läsa från komprimeringsprogrammetKan inte läsa länk %sKan inte ta bort %sKan inte byta namn på %s till %sKan inte ta status på %sKan inte ta status på filen %sKan inte symboliskt länka %s till %sKomprimerade arkiv kan inte uppdaterasKan inte använda komprimerade arkiv eller fjärrarkivKan inte använda komprimerade flervolymsarkivKomprimerade arkiv kan inte verifierasFlervolymsarkiv kan inte verifierasKan inte verifiera standard in/ut-arkivKan inte skriva till %sKan inte skriva till komprimeringsprogrammetBarnet kan inte grenaBarnet dog med signal %d%sBarnet avslutade med slutstatus %dMotstridiga arkivformatsflaggorMotstridiga komprimeringsflaggorKunde inte allokera minne för blockfaktor %dKunde inte söka bakåt i arkivfilen, den kan vara oläsbar utan -iKunde inte avgöra aktuell katalogKunde inte komma åt namnet på aktuell katalog: %sKunde inte byta position i arkivfilenKunde inte gå till början på arkivfilen för verifikationVägrar fegt skapa ett tomt arkivSkapar katalog:Data är olikaTar bort icke-huvuddata från arkivetEnhetsnummer har ändratsKatalogen %s har bytt namnKatalogen %s är nyExisterar inteFilslut i arkivfilenFilslut vid förväntat användarsvarAvslut med felslutstatus fördröjd från föregående felFel vid stängning av %sFel inträffade vid borttagning av %sExtraherar sammanhängande filer som vanliga filerFilen existerar inteFilnamnet %s%s är för långtFilnamnet %s/%s är för långtGNU "tar" sparar många filer tillsammans i ett band- eller fil-arkiv och kan återskapa individuella filer från arkivet. GNU-finesser önskade i ett inkompatibelt arkivformatOkänt kommandoGenerera datafiler för GNU tar testsvit. Gid är olikaHmm, det här ser inte ut som ett "tar"-arkivObligatoriska argument för långa flaggor är obligatoriska även för korta. -l, --file-length=LÄNGD LÄNGD på genererad fil -p, --pattern=MÖNSTER MÖNSTER är "default" eller "zeros" --help visa denna hjälptext och avsluta --version visa versionsinformation och avsluta Ogiltigt datumformat "%s"Ogiltig grupp given för flaggaOgiltiga rättigheter givna för flaggaOgiltig användare given för flaggaOgiltigt värde på record_sizeMinnet slutFilnamn efter -C saknasModifieringstiderna är olikaRättigheterna är olikaRättighet eller enhetstyp har ändratsMer än en datumgränsMultipla arkivfiler kräver "-M" flagganArkivnamn saknasInte längre en katalogIngen ny volym; avslutar. Filen eller katalogen finns inteInte en normal filInte länkad till %sFöråldrad flagga ersatt med --absolute-namesFöråldrad flagga ersatt med --backupFöråldrad flagga ersatt med --block-numberFöråldrad flagga ersatt med --blocking-factorFöråldrad flagga ersatt med --read-full-recordsFöråldrad flagga ersatt med --touchFöråldrad flagga som nu impliceras av --blocking-factorGammal flagga "%c" behöver ett argumentUtelämnar %sFlaggorna "-%s" och "-%s" vill båda läsa från standard inFlaggorna "-Aru" är inkompatibla med "-f -"Flaggorna "-[0-7][lmh]" stöds inte av *detta* "tar"-programFör tidigt filslutGör iordning volym nummer %d för %s och tryck vagnretur:Läser kontrollpunkt %dLäsfel i %sLäser %s Poststorlek måste vara en multipel av %dTar bort enhetsnamn från namnen i arkivetTar bort inledande "/" från absoluta länkarTar bort inledande "/" från absoluta sökvägar i arkivetBytte namn på %s till %sStorlekarna är olikaHoppar över data till nästa filhuvudHoppar till nästa filhuvudSymboliska länkar är olika%s symboliskt länkad till %sDet här ser inte ut som ett "tar"-arkivDetta är fri programvara; se källkoden för kopieringsvillkor. Det finns INGEN garanti; inte ens för SÄLJBARHET eller LÄMPLIGHET FÖR NÅGOT SPECIELLT ÄNDAMÅL. Denna volym kommer inte i rätt ordningFör många fel, avslutarTotalt antal byte skrivna: Försök med "%s --help" för mer information. Uid är olikaOväntat filslut i arkivetOväntat filslut i kodade namnOväntat filslut i arkivfilenOkänt avkodningskommando %sOkänd filtyp "%c" för %s, jämförd som en normal filOkänd filtyp "%c" för %s, extraherad som en normal filOkänt mönster "%s"Okänt systemfelVERIFIKATIONSFEL: %d okända arkivhuvuden upptäcktaVerifierar Fel på ett långt namnFel på ett långt namnVolym "%s" överensstämmer inte med "%s"VARNING: Arkivet är ofullständigtVARNING: Kan inte stänga %s (%d, %d)VARNING: Inget volymhuvudSkriver kontrollpunkt %dDu kan endast ange en av flaggorna "-Acdtrux"Du måste ange en av flaggorna "-Acdtrux"exec/tcp: Tjänsten är inte tillgängligrmtd: Kan inte allokera buffert rmtd: Okänt kommando "%c" rmtd: För tidigt filslut standard instandard uttar (barn)tar (barnbarn)tar-1.13/po/cat-id-tbl.c0000664000176300016070000004346306737224402010436 /* Automatically generated by po2tbl.sed from tar.pot. */ #if HAVE_CONFIG_H # include #endif #include "libgettext.h" const struct _msg_ent _msg_tbl[] = { {"", 1}, {"invalid argument `%s' for `%s'", 2}, {"ambiguous argument `%s' for `%s'", 3}, {"Valid arguments are:", 4}, {"Unknown system error", 5}, {"%s: option `%s' is ambiguous\n", 6}, {"%s: option `--%s' doesn't allow an argument\n", 7}, {"%s: option `%c%s' doesn't allow an argument\n", 8}, {"%s: option `%s' requires an argument\n", 9}, {"%s: unrecognized option `--%s'\n", 10}, {"%s: unrecognized option `%c%s'\n", 11}, {"%s: illegal option -- %c\n", 12}, {"%s: invalid option -- %c\n", 13}, {"%s: option requires an argument -- %c\n", 14}, {"%s: option `-W %s' is ambiguous\n", 15}, {"%s: option `-W %s' doesn't allow an argument\n", 16}, {"Memory exhausted", 17}, {"Arithmetic overflow", 18}, {"Total bytes written: ", 19}, {"Cannot close file #%d", 20}, {"Cannot close descriptor %d", 21}, {"Cannot properly duplicate %s", 22}, {"Cannot use compressed or remote archives", 23}, {"Cannot open pipe", 24}, {"Cannot fork", 25}, {"tar (child)", 26}, {"(child) Pipe to stdin", 27}, {"Cannot open archive %s", 28}, {"Archive to stdout", 29}, {"Cannot exec %s", 30}, {"Child cannot fork", 31}, {"((child)) Pipe to stdout", 32}, {"tar (grandchild)", 33}, {"(grandchild) Pipe to stdin", 34}, {"Cannot read from compression program", 35}, {"(child) Pipe to stdout", 36}, {"Archive to stdin", 37}, {"((child)) Pipe to stdin", 38}, {"(grandchild) Pipe to stdout", 39}, {"Cannot write to compression program", 40}, {"Write to compression program short %lu bytes", 41}, {"Invalid value for record_size", 42}, {"No archive name given", 43}, {"Could not allocate memory for blocking factor %d", 44}, {"Cannot verify multi-volume archives", 45}, {"Cannot use multi-volume compressed archives", 46}, {"Cannot verify compressed archives", 47}, {"Cannot update compressed archives", 48}, {"Cannot verify stdin/stdout archive", 49}, {"Cannot open %s", 50}, {"Archive not labelled to match `%s'", 51}, {"Volume `%s' does not match `%s'", 52}, {"Write checkpoint %d", 53}, {"Cannot write to %s", 54}, {"Only wrote %lu of %lu bytes to %s", 55}, {"Read error on %s", 56}, {"At beginning of tape, quitting now", 57}, {"Too many errors, quitting", 58}, {"Read checkpoint %d", 59}, {"Reading %s\n", 60}, {"WARNING: No volume header", 61}, {"%s is not continued on this volume", 62}, {"%s is the wrong size (%s != %s + %s)", 63}, {"This volume is out of sequence", 64}, {"Record size = %lu blocks", 65}, {"Archive %s EOF not on block boundary", 66}, {"Only read %lu bytes from archive %s", 67}, {"WARNING: Cannot close %s (%d, %d)", 68}, {"Could not backspace archive file; it may be unreadable without -i", 69}, {"WARNING: Cannot truncate %s", 70}, {"Child died with signal %d%s", 71}, {" (core dumped)", 72}, {"Child returned status %d", 73}, {"Prepare volume #%d for %s and hit return: ", 74}, {"EOF where user reply was expected", 75}, {"WARNING: Archive is incomplete", 76}, {"\ n [name] Give a new file name for the next (and subsequent) volume(s)\n\ q Abort tar\n\ ! Spawn a subshell\n\ ? Print this list\n", 77}, {"No new volume; exiting.\n", 78}, {"Cannot fork!", 79}, {"Cannot exec a shell %s", 80}, {"Could not allocate memory for diff buffer of %lu bytes", 81}, {"Cannot read %s", 82}, {"Could only read %lu of %lu bytes", 83}, {"Data differs", 84}, {"Unexpected EOF on archive file", 85}, {"Cannot seek to %s in file %s", 86}, {"File does not exist", 87}, {"Cannot stat file %s", 88}, {"Verify ", 89}, {"Unknown file type '%c' for %s, diffed as normal file", 90}, {"Not a regular file", 91}, {"Mode differs", 92}, {"Uid differs", 93}, {"Gid differs", 94}, {"Mod time differs", 95}, {"Size differs", 96}, {"Error while closing %s", 97}, {"Does not exist", 98}, {"Not linked to %s", 99}, {"No such file or directory", 100}, {"Cannot read link %s", 101}, {"Symlink differs", 102}, {"Device numbers changed", 103}, {"Mode or device-type changed", 104}, {"No longer a directory", 105}, {"Cannot open file %s", 106}, {"Could not rewind archive file for verify", 107}, {"VERIFY FAILURE: %d invalid header(s) detected", 108}, {"%s value %s too large (max=%s); substituting %s", 109}, {"%s value %s too large (max=%s)", 110}, {"Removing drive spec from names in the archive", 111}, {"Removing leading `/' from absolute path names in the archive", 112}, {"Wrote %s of %s bytes to file %s", 113}, {"lseek error at byte %s in file %s", 114}, {"Read error at byte %s, reading %lu bytes, in file %s", 115}, {"File %s shrunk, padding with zeros", 116}, {"Cannot add file %s", 117}, {"%s: is unchanged; not dumped", 118}, {"%s is the archive; not dumped", 119}, {"Removing leading `/' from absolute links", 120}, {"Cannot remove %s", 121}, {"File %s shrunk by %s bytes, padding with zeros", 122}, {"%s: file changed as we read it", 123}, {"%s: close", 124}, {"Cannot add directory %s", 125}, {"%s: On a different filesystem; not dumped", 126}, {"Cannot open directory %s", 127}, {"File name %s%s too long", 128}, {"%s: Unknown file type; file ignored", 129}, {"Could not re-position archive file", 130}, {"This does not look like a tar archive", 131}, {"Skipping to next header", 132}, {"Deleting non-header from archive", 133}, {"%s: Cannot change mode to %04lo", 134}, {"%s: Could not change access and modification times", 135}, {"%s: Cannot lchown to uid %lu gid %lu", 136}, {"%s: Cannot chown to uid %lu gid %lu", 137}, {"%s: Cannot change owner to uid %lu, gid %lu", 138}, {"%s: lseek error at byte %s", 139}, {"%s: Could not write to file", 140}, {"%s: Could only write %s of %s bytes", 141}, {"%s: Was unable to backup this file", 142}, {"Extracting contiguous files as regular files", 143}, {"%s: Could not create file", 144}, {"%s: Could only write %lu of %lu bytes", 145}, {"%s: Error while closing", 146}, {"%s: Could not create symlink to `%s'", 147}, {"Attempting extraction of symbolic links as hard links", 148}, {"%s: Could not link to `%s'", 149}, {"%s: Could not make node", 150}, {"%s: Could not make fifo", 151}, {"%s: Could not create directory", 152}, {"Added write and execute permission to directory %s", 153}, {"Cannot extract `%s' -- file is continued from another volume", 154}, {"Visible long name error", 155}, {"Unknown file type '%c' for %s, extracted as normal file", 156}, {"Cannot stat %s", 157}, {"Directory %s has been renamed", 158}, {"Directory %s is new", 159}, {"Could not get current directory", 160}, {"Could not get current directory: %s", 161}, {"File name %s/%s too long", 162}, {"Device number out of range", 163}, {"Inode number out of range", 164}, {"Cannot chdir to %s", 165}, {"Unexpected EOF in archive", 166}, {"%s: Deleting %s\n", 167}, {"Error while deleting %s", 168}, {"Omitting %s", 169}, {"block %s: ** Block of NULs **\n", 170}, {"block %s: ** End of File **\n", 171}, {"Hmm, this doesn't look like a tar archive", 172}, {"Skipping to next file header", 173}, {"EOF in archive file", 174}, {"Only wrote %lu of %lu bytes to file %s", 175}, {"Blanks in header where octal %s value expected", 176}, {"Header contains \"%.*s\" where octal %s value expected", 177}, {"Octal value `%.*s' is out of range for %s", 178}, {"block %s: ", 179}, {"Visible longname error", 180}, {" link to %s\n", 181}, {" unknown file type `%c'\n", 182}, {"--Volume Header--\n", 183}, {"--Continued at byte %s--\n", 184}, {"--Mangled file names--\n", 185}, {"Creating directory:", 186}, {"Unexpected EOF in mangled names", 187}, {"Cannot rename %s to %s", 188}, {"Renamed %s to %s", 189}, {"Cannot symlink %s to %s", 190}, {"Symlinked %s to %s", 191}, {"Unknown demangling command %s", 192}, {"Renaming previous `%s' to `%s'\n", 193}, {"%s: Cannot rename for backup", 194}, {"%s: Cannot rename from backup", 195}, {"Renaming `%s' back to `%s'\n", 196}, {"Cannot change to directory %s", 197}, {"Missing file name after -C", 198}, {"%s: Not found in archive", 199}, {"rmtd: Cannot allocate buffer space\n", 200}, {"Cannot allocate buffer space", 201}, {"Seek offset out of range", 202}, {"Seek direction out of range", 203}, {"rmtd: Premature eof\n", 204}, {"Premature end of file", 205}, {"rmtd: Garbage command %c\n", 206}, {"Garbage command", 207}, {"exec/tcp: Service not available", 208}, {"stdin", 209}, {"stdout", 210}, {"Cannot execute remote shell", 211}, {"Options `-%s' and `-%s' both want standard input", 212}, {"Cannot read confirmation from user", 213}, {"Try `%s --help' for more information.\n", 214}, {"\ GNU `tar' saves many files together into a single tape or disk archive, and\n\ can restore individual files from the archive.\n", 215}, {"\ \n\ Usage: %s [OPTION]... [FILE]...\n", 216}, {"\ \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", 217}, {"\ \n\ Main operation mode:\n\ -t, --list list the contents of an archive\n\ -x, --extract, --get extract files from an archive\n\ -c, --create create a new archive\n\ -d, --diff, --compare find differences between archive and file system\n\ -r, --append append files to the end of an archive\n\ -u, --update only append files newer than copy in archive\n\ -A, --catenate append tar files to an archive\n\ --concatenate same as -A\n\ --delete delete from the archive (not on mag tapes!)\n", 218}, {"\ \n\ Operation modifiers:\n\ -W, --verify attempt to verify the archive after writing it\n\ --remove-files remove files after adding them to the archive\n\ -k, --keep-old-files don't overwrite existing files when extracting\n\ -U, --unlink-first remove each file prior to extracting over it\n\ --recursive-unlink empty hierarchies prior to extracting \ directory\n\ -S, --sparse handle sparse files efficiently\n\ -O, --to-stdout extract files to standard output\n\ -G, --incremental handle old GNU-format incremental backup\n\ -g, --listed-incremental handle new GNU-format incremental backup\n\ --ignore-failed-read do not exit with nonzero on unreadable files\n", 219}, {"\ \n\ Handling of file attributes:\n\ --owner=NAME force NAME as owner for added files\n\ --group=NAME force NAME as group for added files\n\ --mode=CHANGES force (symbolic) mode CHANGES for added \ files\n\ --atime-preserve don't change access times on dumped files\n\ -m, --modification-time don't extract file modified time\n\ --same-owner try extracting files with the same ownership\n\ --numeric-owner always use numbers for user/group names\n\ -p, --same-permissions extract all protection information\n\ --preserve-permissions same as -p\n\ -s, --same-order sort names to extract to match archive\n\ --preserve-order same as -s\n\ --preserve same as both -p and -s\n", 220}, {"\ \n\ Device selection and switching:\n\ -f, --file=ARCHIVE use archive file or device ARCHIVE\n\ --force-local archive file is local even if has a colon\n\ --rsh-command=COMMAND use remote COMMAND instead of rsh\n\ -[0-7][lmh] specify drive and density\n\ -M, --multi-volume create/list/extract multi-volume archive\n\ -L, --tape-length=NUM change tape after writing NUM x 1024 bytes\n\ -F, --info-script=FILE run script at end of each tape (implies \ -M)\n\ --new-volume-script=FILE same as -F FILE\n\ --volno-file=FILE use/update the volume number in FILE\n", 221}, {"\ \n\ Device blocking:\n\ -b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record\n\ --record-size=SIZE SIZE bytes per record, multiple of 512\n\ -i, --ignore-zeros ignore zeroed blocks in archive (means \ EOF)\n\ -B, --read-full-records reblock as we read (for 4.2BSD pipes)\n", 222}, {"\ \n\ Archive format selection:\n\ -V, --label=NAME create archive with volume name NAME\n\ PATTERN at list/extract time, a globbing \ PATTERN\n\ -o, --old-archive, --portability write a V7 format archive\n\ --posix write a POSIX conformant archive\n\ -z, --gzip, --ungzip filter the archive through gzip\n\ -Z, --compress, --uncompress filter the archive through compress\n\ --use-compress-program=PROG filter through PROG (must accept -d)\n", 223}, {"\ \n\ Local file selection:\n\ -C, --directory=DIR change to directory DIR\n\ -T, --files-from=NAME get names to extract or create from file \ NAME\n\ --null -T reads null-terminated names, disable -C\n\ --exclude=PATTERN exclude files, given as a globbing PATTERN\n\ -X, --exclude-from=FILE exclude globbing patterns listed in FILE\n\ -P, --absolute-names don't strip leading `/'s from file names\n\ -h, --dereference dump instead the files symlinks point to\n\ --no-recursion avoid descending automatically in \ directories\n\ -l, --one-file-system stay in local file system when creating \ archive\n\ -K, --starting-file=NAME begin at file NAME in the archive\n", 224}, {"\ -N, --newer=DATE only store files newer than DATE\n\ --newer-mtime compare date and time when data changed only\n\ --after-date=DATE same as -N\n", 225}, {"\ --backup[=CONTROL] backup before removal, choose version \ control\n\ --suffix=SUFFIX backup before removel, override usual suffix\n", 226}, {"\ \n\ Informative output:\n\ --help print this help, then exit\n\ --version print tar program version number, then exit\n\ -v, --verbose verbosely list files processed\n\ --checkpoint print directory names while reading the archive\n\ --totals print total bytes written while creating archive\n\ -R, --block-number show block number within archive with each message\n\ -w, --interactive ask for confirmation for every action\n\ --confirmation same as -w\n", 227}, {"\ \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\ t, numbered make numbered backups\n\ nil, existing numbered if numbered backups exist, simple otherwise\n\ never, simple always make simple backups\n", 228}, {"\ \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", 229}, {"\ \n\ Report bugs to .\n", 230}, {"You may not specify more than one `-Acdtrux' option", 231}, {"Conflicting compression options", 232}, {"Old option `%c' requires an argument.", 233}, {"Obsolete option, now implied by --blocking-factor", 234}, {"Obsolete option name replaced by --blocking-factor", 235}, {"Invalid blocking factor", 236}, {"Obsolete option name replaced by --read-full-records", 237}, {"Invalid tape length", 238}, {"Obsolete option name replaced by --touch", 239}, {"More than one threshold date", 240}, {"Invalid date format `%s'", 241}, {"Conflicting archive format options", 242}, {"Obsolete option name replaced by --absolute-names", 243}, {"Obsolete option name replaced by --block-number", 244}, {"Obsolete option name replaced by --backup", 245}, {"Invalid group given on option", 246}, {"Invalid mode given on option", 247}, {"Invalid owner given on option", 248}, {"Invalid record size", 249}, {"Record size must be a multiple of %d.", 250}, {"Options `-[0-7][lmh]' not supported by *this* tar", 251}, {"\ \n\ Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, \ Inc.\n", 252}, {"\ 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", 253}, {"\ \n\ Written by John Gilmore and Jay Fenlason.\n", 254}, {"GNU features wanted on incompatible archive format", 255}, {"Multiple archive files requires `-M' option", 256}, {"Cowardly refusing to create an empty archive", 257}, {"Options `-Aru' are incompatible with `-f -'", 258}, {"You must specify one of the `-Acdtrux' options", 259}, {"Error exit delayed from previous errors", 260}, {"Read error at byte %s reading %lu bytes in file %s", 261}, {"%s: File shrunk by %s bytes, (yark!)", 262}, {"Generate data files for GNU tar test suite.\n", 263}, {"\ \n\ Usage: %s [OPTION]...\n", 264}, {"\ If a long option shows an argument as mandatory, then it is mandatory\n\ for the equivalent short option also.\n\ \n\ -l, --file-length=LENGTH LENGTH of generated file\n\ -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n\ --help display this help and exit\n\ --version output version information and exit\n", 265}, {"Ambiguous pattern `%s'", 266}, {"Unknown pattern `%s'", 267}, {"\ \n\ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n", 268}, {"\ \n\ Written by François Pinard .\n", 269}, }; int _msg_tbl_length = 269; tar-1.13/tests/0000777000176300017630000000000006741044411007144 5tar-1.13/tests/ChangeLog0000444000176300016070000001144206330212236010623 1997-04-25 François Pinard * Release 1.12. * gzip.sh, ignfail.sh: Adjust to new delayed error exit message. * Makefile.am (BUILT_SOURCES): Define as preset, so preset is regenerated if configuration changes. * Makefile.am (TESTS): Nevertheless include delete01.sh. (POSTPONED_TESTS): Adjusted. Reported by Andreas Schwab. * delete02.sh: Mention f - explicitly, do not assume it, in case $TAPE is defined or the default archive has been overridden. Reported by Andreas Schwab. 1997-04-24 François Pinard * after: Unredirect stdout and stderr before removing the files. If redirections are to NFS files, removing them while they are still opened may have strange effects, failing almost all tests. Reported by Kaveh R. Ghazi. 1997-04-22 François Pinard * Prerelease 1.11q. * extrac03.sh: New file. * Makefile.am (TESTS): Adjusted. Reported by Marc Boucher. * preset.in (LC_MESSAGES): Clear value before tests. Reported by Sven Verdoolaege. * Makefile.am (INCLUDES): Adjust so config.h gets found. * genfile.c (usage): Corrected. * delete01.sh: New name for delete.sh. * delete02.sh: New file. * Makefile.am (TESTS): Adjusted. Reported by Vince Del Vecchio. * Makefile.am (POSTPONED_TESTS): To contain the --delete tests. (TESTS): Adjusted. (EXTRA_DIST): Include $(POSTPONED_TESTS). The purpose is getting the tests distributed, but not executed. These flaky tests are to be addressed only after 1.12 is released. 1997-04-19 François Pinard * Makefile.am (AUTOMAKE_OPTIONS): Declare ../src/ansi2knr. * (DEFS): New, for defining LOCALEDIR. * (genfile.o): Deleted, will be implied from DEFS above. Reported by Bruno Haible and Kaveh R. Ghazi. 1997-04-17 François Pinard * Prerelease 1.11p. * genfile.c (usage): Add a program description. (main): Output --version according to recent GNU standards. 1997-04-15 François Pinard * ignfail.sh: Ensure the test does not fail if run as super-user. Reported by John David Anglin. 1997-04-12 François Pinard * genfile.c (pattern): Remove trailing comma for last enum item. Reported by Bruno Haible. 1997-04-11 François Pinard * Prerelease 1.11o. 1997-03-29 François Pinard * ignfail.sh: New file. * Makefile.am (TESTS): Adjusted. Reported by Ralph Schleicher. 1997-03-24 François Pinard * genfile.c: Implement --pattern=default/zeros. 1997-02-25 François Pinard * old.sh: New file. * Makefile.am (TESTS): Adjusted. Reported by Daniel Trinkle. 1997-01-21 François Pinard * extrac01.sh: New name for extract.sh. * extrac02.sh: New file. * Makefile.am (TESTS): Adjusted. Reported by Axel Boldt. 1996-11-25 François Pinard * genfile.c (usage): Typo in message. Reported by Christian Kirsch. 1996-11-22 François Pinard * incremen.sh: New file. Reported by Wolfram Wagner. * append.sh, delete.sh: New files. * Makefile.am (TESTS): Adjusted. Reported by Andreas Schwab. * before: Ensure .. on PATH, so genfile may be found. * Makefile.am ($(TESTS)): Depend on genfile, waiting for Automake to be adjusted to do the proper thing for parallel make. * gzip.sh: New name for childerr.sh. * extract.sh: New name for direxist.sh. * volume.sh: New name for volcheck.sh. * Makefile.am: Adjusted. * All tests: Use set -e whenever appropriate. Use "" instead of '' for out and err, so allowing us to use escaped newlines. In case of multiple output in a single test, ensure separator lines. 1996-11-06 François Pinard * Prerelease 1.11.13. * childerr.sh, direxist.sh, volcheck.sh: Use sh, not bash. Reported by John David Anglin. 1996-09-20 François Pinard * volcheck.sh: New. * Makefile.am (TESTS): Adjusted. 1996-09-19 François Pinard * Prerelease 1.11.12. * Makefile.am ($(TESTS)): Depend on preset. * version.sh (PATH): Adjust for multi-line --version output. * preset.in (LANG, LANGUAGE): Export them, so gzip does not localise its own output. (echo_n, echo_c): Define from the result of echo configuration. * after: Handle echo with newline suppressed. 1996-09-09 François Pinard * childerr.sh, direxist.sh, before, after: New files. * Makefile.am: Adjusted. 1996-09-04 François Pinard * ChangeLog, Makefile.am, pretest.in, version.sh: New files. * checktar.sh, genfile.c: New files, moved from src/. A regression test is an old dream for GNU tar. Reported by Tom Tromey and Robert Bernstein. tar-1.13/tests/Makefile.am0000444000176300016070000000262506736027321011121 # Makefile for GNU tar regression tests. # Copyright © 1996, 1997 Free Software Foundation, Inc. # François Pinard , 1988. # 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. AUTOMAKE_OPTIONS = gnits ../src/ansi2knr check_PROGRAMS = genfile BUILT_SOURCES = preset TESTS = version.sh ignfail.sh extrac01.sh extrac02.sh extrac03.sh \ old.sh volume.sh gzip.sh append.sh delete01.sh # Postponed until after the 1.12 release. POSTPONED_TESTS = delete02.sh genfile_SOURCES = genfile.c EXTRA_DIST = after before preset.in $(TESTS) $(POSTPONED_TESTS) localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ INCLUDES = -I.. -I../intl -I$(top_srcdir)/src -I$(top_srcdir)/lib LDADD = ../lib/libtar.a @INTLLIBS@ mostlyclean: rm -rf tmp-* $(TESTS): genfile tar-1.13/tests/Makefile.in0000664000176300016070000002350306740607426011141 # Makefile.in generated automatically by automake 1.4 from Makefile.am # 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. # 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. # Makefile for GNU tar regression tests. # Copyright © 1996, 1997 Free Software Foundation, Inc. # François Pinard , 1988. # 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. SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ 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 DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ 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@ AUTOMAKE_OPTIONS = gnits ../src/ansi2knr check_PROGRAMS = genfile BUILT_SOURCES = preset TESTS = version.sh ignfail.sh extrac01.sh extrac02.sh extrac03.sh old.sh volume.sh gzip.sh append.sh delete01.sh # Postponed until after the 1.12 release. POSTPONED_TESTS = delete02.sh genfile_SOURCES = genfile.c EXTRA_DIST = after before preset.in $(TESTS) $(POSTPONED_TESTS) localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ INCLUDES = -I.. -I../intl -I$(top_srcdir)/src -I$(top_srcdir)/lib LDADD = ../lib/libtar.a @INTLLIBS@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = preset check_PROGRAMS = genfile$(EXEEXT) CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ ANSI2KNR = ../src/ansi2knr genfile_OBJECTS = genfile$U.o genfile_LDADD = $(LDADD) genfile_DEPENDENCIES = ../lib/libtar.a genfile_LDFLAGS = CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = ChangeLog Makefile.am Makefile.in preset.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best SOURCES = $(genfile_SOURCES) OBJECTS = $(genfile_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status preset: $(top_builddir)/config.status preset.in cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-checkPROGRAMS: clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) distclean-checkPROGRAMS: maintainer-clean-checkPROGRAMS: .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ../src/ansi2knr: ../src/ansi2knr.o cd ../src && $(MAKE) $(AM_MAKEFLAGS) ansi2knr ../src/ansi2knr.o: cd ../src && $(MAKE) $(AM_MAKEFLAGS) ansi2knr.o mostlyclean-kr: -rm -f *_.c clean-kr: distclean-kr: maintainer-clean-kr: genfile$(EXEEXT): $(genfile_OBJECTS) $(genfile_DEPENDENCIES) @rm -f genfile$(EXEEXT) $(LINK) $(genfile_LDFLAGS) $(genfile_OBJECTS) $(genfile_LDADD) $(LIBS) genfile_.c: genfile.c $(ANSI2KNR) $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/genfile.c; then echo $(srcdir)/genfile.c; else echo genfile.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > genfile_.c genfile_.o : $(ANSI2KNR) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = tests distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done check-TESTS: $(TESTS) @failed=0; all=0; \ srcdir=$(srcdir); export srcdir; \ for tst in $(TESTS); do \ if test -f $$tst; then dir=.; \ else dir="$(srcdir)"; fi; \ if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ all=`expr $$all + 1`; \ echo "PASS: $$tst"; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ failed=`expr $$failed + 1`; \ echo "FAIL: $$tst"; \ fi; \ done; \ if test "$$failed" -eq 0; then \ banner="All $$all tests passed"; \ else \ banner="$$failed of $$all tests failed"; \ fi; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes"; \ test "$$failed" -eq 0 info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(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: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) mostlyclean-am: mostlyclean-checkPROGRAMS mostlyclean-compile \ mostlyclean-kr mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-checkPROGRAMS clean-compile clean-kr clean-tags \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-checkPROGRAMS distclean-compile distclean-kr \ distclean-tags distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-checkPROGRAMS \ maintainer-clean-compile maintainer-clean-kr \ maintainer-clean-tags maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-checkPROGRAMS distclean-checkPROGRAMS \ clean-checkPROGRAMS maintainer-clean-checkPROGRAMS mostlyclean-compile \ distclean-compile clean-compile maintainer-clean-compile mostlyclean-kr \ distclean-kr clean-kr maintainer-clean-kr tags mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir check-TESTS \ 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 mostlyclean: rm -rf tmp-* $(TESTS): genfile # 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. .NOEXPORT: tar-1.13/tests/preset.in0000555000176300016070000000030406731703407010713 #! /bin/sh # Set the testing environment. PACKAGE=@PACKAGE@ VERSION=@VERSION@ top_srcdir=@top_srcdir@ srcdir=@srcdir@ export LANGUAGE LANGUAGE= export LANG LANG= export LC_MESSAGES LC_MESSAGES= tar-1.13/tests/genfile.c0000444000176300016070000001114006327052451010630 /* Generate a file containing some preset patterns. Copyright © 1995, 1996, 1997 Free Software Foundation, Inc. François Pinard , 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. */ #include "system.h" #include #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 #endif #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #endif enum pattern { DEFAULT, ZEROS }; /* The name this program was run with. */ const char *program_name; /* If nonzero, display usage information and exit. */ static int show_help = 0; /* If nonzero, print the version on standard output and exit. */ static int show_version = 0; /* Length of file to generate. */ static int file_length = 0; /* Pattern to generate. */ static enum pattern pattern = DEFAULT; /*-----------------------------------------------. | Explain how to use the program, then get out. | `-----------------------------------------------*/ void usage (int status) { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else { printf (_("Generate data files for GNU tar test suite.\n")); printf (_("\ \n\ Usage: %s [OPTION]...\n"), program_name); fputs (_("\ If a long option shows an argument as mandatory, then it is mandatory\n\ for the equivalent short option also.\n\ \n\ -l, --file-length=LENGTH LENGTH of generated file\n\ -p, --pattern=PATTERN PATTERN is `default' or `zeros'\n\ --help display this help and exit\n\ --version output version information and exit\n"), stdout); } exit (status); } /*----------------------------------------------------------------------. | Main program. Decode ARGC arguments passed through the ARGV array of | | strings, then launch execution. | `----------------------------------------------------------------------*/ /* Long options equivalences. */ static const struct option long_options[] = { {"help", no_argument, &show_help, 1}, {"length", required_argument, NULL, 'l'}, {"pattern", required_argument, NULL, 'p'}, {"version", no_argument, &show_version, 1}, {0, 0, 0, 0}, }; const char *pattern_strings[] = { "default", /* 0 */ "zeros", /* 1 */ NULL }; int main (int argc, char *const *argv) { int option_char; /* option character */ int counter; /* general purpose counter */ /* Decode command options. */ program_name = argv[0]; setlocale (LC_ALL, ""); while (option_char = getopt_long (argc, argv, "l:p:", long_options, NULL), option_char != EOF) switch (option_char) { default: usage (EXIT_FAILURE); case '\0': break; case 'l': file_length = atoi (optarg); break; case 'p': switch (argmatch (optarg, pattern_strings)) { case -2: error (0, 0, _("Ambiguous pattern `%s'"), optarg); usage (EXIT_FAILURE); case -1: error (0, 0, _("Unknown pattern `%s'"), optarg); usage (EXIT_FAILURE); case 0: pattern = DEFAULT; break; case 1: pattern = ZEROS; break; } break; } /* Process trivial options. */ if (show_version) { printf ("genfile (GNU %s) %s\n", PACKAGE, VERSION); fputs (_("\ \n\ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\n"), stdout); 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"), stdout); fputs (_("\ \n\ Written by François Pinard .\n"), stdout); exit (EXIT_SUCCESS); } if (show_help) usage (EXIT_SUCCESS); if (optind < argc) usage (EXIT_FAILURE); /* Generate file. */ switch (pattern) { case DEFAULT: for (counter = 0; counter < file_length; counter++) putchar (counter & 255); break; case ZEROS: for (counter = 0; counter < file_length; counter++) putchar (0); break; } exit (0); } tar-1.13/tests/after0000555000176300016070000000044106737322034010106 #! /bin/sh # Do common operations after a particular test. cd .. exec 1> /dev/null exec 2> /dev/null echo "$out" | sed '$d' >tmp-$$/stdout0 cmp -s tmp-$$/stdout0 tmp-$$/stdout || exit 1 echo "$err" | sed '$d' >tmp-$$/stderr0 cmp -s tmp-$$/stderr0 tmp-$$/stderr || exit 1 rm -rf tmp-$$ tar-1.13/tests/before0000555000176300016070000000034606245362552010256 #! /bin/sh # Do common operations before a particular test. mkdir tmp-$$ cd tmp-$$ case $srcdir in /*|~*) ;; *) srcdir=../$srcdir ;; esac out= err= echo $0 > checking exec 1> stdout exec 2> stderr PATH=..:../../src:$PATH tar-1.13/tests/version.sh0000555000176300016070000000104106304743065011101 #! /bin/sh # Check if the proper version is being tested. . ./preset PATH=../src:$PATH if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then banner="Regression testing for GNU $PACKAGE, version $VERSION" dashes=`echo $banner | sed s/./=/g` echo $dashes echo $banner echo $dashes else echo '==============================================================' echo 'WARNING: Not using the proper version, *all* checks dubious...' echo '==============================================================' exit 1 fi tar-1.13/tests/ignfail.sh0000555000176300016070000000230706330211104011012 #! /bin/sh # Unreadable directories yielded error despite --ignore-failed-read. . ./preset . $srcdir/before > check-uid set - x`ls -l check-uid` if test $3 = root; then # The test is meaningless for super-user. rm check-uid else touch file mkdir directory touch directory/file echo 1>&2 ----- chmod 000 file tar cf archive file status=$? chmod 600 file test $status = 2 || exit 1 echo 1>&2 ----- chmod 000 file tar cf archive --ignore-failed-read file || exit 1 status=$? chmod 600 file test $status = 0 || exit 1 echo 1>&2 ----- chmod 000 directory tar cf archive directory status=$? chmod 700 directory test $status = 2 || exit 1 echo 1>&2 ----- chmod 000 directory tar cf archive --ignore-failed-read directory || exit 1 status=$? chmod 700 directory test $status = 0 || exit 1 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 " fi . $srcdir/after tar-1.13/tests/extrac01.sh0000555000176300016070000000033206245376377011061 #! /bin/sh # There was a diagnostic when directory already exists. . ./preset . $srcdir/before set -e mkdir directory touch directory/file tar cf archive directory || exit 1 tar xf archive || exit 1 . $srcdir/after tar-1.13/tests/extrac02.sh0000555000176300016070000000034306271262417011050 #! /bin/sh # Could not extract symlinks over an existing file. . ./preset . $srcdir/before 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 . $srcdir/after tar-1.13/tests/extrac03.sh0000555000176300016070000000041506327256576011064 #! /bin/sh # Paths going up and down were inducing extraction loops. . ./preset . $srcdir/before set -e mkdir directory tar cfv archive directory/../directory echo ----- tar xfv archive out="\ directory/../directory/ ----- directory/../directory/ " . $srcdir/after tar-1.13/tests/old.sh0000555000176300016070000000031306304704243010166 #! /bin/sh # An old archive was not receiving directories. . ./preset . $srcdir/before set -e mkdir directory tar cfvo archive directory tar tf archive out="\ directory/ directory/ " . $srcdir/after tar-1.13/tests/volume.sh0000555000176300016070000000131106317304632010720 #! /bin/sh # Volume labels are checked on read by fnmatch. . ./preset . $srcdir/before tar cfVT archive label /dev/null || exit 1 tar xfV archive label || exit 1 tar xfV archive 'la?el' || exit 1 tar xfV archive 'l*l' || exit 1 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 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 " . $srcdir/after tar-1.13/tests/gzip.sh0000555000176300016070000000041406330211057010356 #! /bin/sh # tar should detect that its gzip child failed. . ./preset . $srcdir/before tar xfvz /dev/null test $? = 2 || exit 1 err="\ gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error exit delayed from previous errors " . $srcdir/after tar-1.13/tests/append.sh0000555000176300016070000000030706245376615010676 #! /bin/sh # Append was just not working. . ./preset . $srcdir/before set -e touch file1 touch file2 tar cf archive file1 tar rf archive file2 tar tf archive out="\ file1 file2 " . $srcdir/after tar-1.13/tests/delete01.sh0000555000176300016070000000041106327051715011016 #! /bin/sh # Deleting a member after a big one was destroying the archive. . ./preset . $srcdir/before set -e genfile -l 50000 > file1 genfile -l 1024 > file2 tar cf archive file1 file2 tar f archive --delete file2 tar tf archive out="\ file1 " . $srcdir/after tar-1.13/tests/delete02.sh0000555000176300016070000000047306330124175011022 #! /bin/sh # Deleting a member with the archive from stdin was not working correctly. . ./preset . $srcdir/before 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 out="\ 1 2 3 ----- 1 3 " . $srcdir/after