diff options
author | kris <kris@FreeBSD.org> | 2001-05-08 06:19:06 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-08 06:19:06 +0000 |
commit | 6f2ea93cf4d39dc17b5fff4bc84a55d6562c8cd4 (patch) | |
tree | 63ec355a438835dcc12c39eb54e9e286c4f71426 /bin/pax/pax.h | |
parent | 7ecc59e45de1a67ed22b32856a18f28bb30d36e6 (diff) | |
download | FreeBSD-src-6f2ea93cf4d39dc17b5fff4bc84a55d6562c8cd4.zip FreeBSD-src-6f2ea93cf4d39dc17b5fff4bc84a55d6562c8cd4.tar.gz |
Sync up with OpenBSD. Too many changes to note, but the major features
are:
* Implement cpio compatibility mode when pax is invoked as cpio
* Extend tar compatibility mode to cover many of the GNU tar single-letter
options (bzip2 mode, aka -y/-j is not present in OpenBSD). When
invoked as tar, pax is now full-featured enough for use by the ports
collection to extract distfiles and create packages.
* Many bug fixes to the operation of pax and the tar compatibility modes
* Code fixes for things like correct string buffer termination.
I tried to preserve existing FreeBSD fixes to this utility; please let me
know if I have inadvertently spammed something.
Diffstat (limited to 'bin/pax/pax.h')
-rw-r--r-- | bin/pax/pax.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pax/pax.h b/bin/pax/pax.h index a515cdf..5c12210 100644 --- a/bin/pax/pax.h +++ b/bin/pax/pax.h @@ -42,9 +42,10 @@ * BSD PAX global data structures and constants. */ -#define MAXBLK 32256 /* MAX blocksize supported (posix SPEC) */ +#define MAXBLK 64512 /* MAX blocksize supported (posix SPEC) */ /* WARNING: increasing MAXBLK past 32256 */ /* will violate posix spec. */ +#define MAXBLK_POSIX 32256 /* MAX blocksize supported as per POSIX */ #define BLKMULT 512 /* blocksize must be even mult of 512 bytes */ /* Don't even think of changing this */ #define DEVBLK 8192 /* default read blksize for devices */ @@ -164,6 +165,7 @@ typedef struct { typedef struct pattern { char *pstr; /* pattern to match, user supplied */ char *pend; /* end of a prefix match */ + char *chdname; /* the dir to change to if not NULL. */ int plen; /* length of pstr */ int flgs; /* processing/state flags */ #define MTCH 0x1 /* pattern has been matched */ |