tar.h (b97fa2ef508bb1cc99621edb8b6d03845b55b8bd) | tar.h (46be34b90213ebd9037cb2c24aec0009d7f2f5c1) |
---|---|
1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * @(#)tar.h 8.2 (Berkeley) 4/18/94 | 1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * @(#)tar.h 8.2 (Berkeley) 4/18/94 |
38 * $Id$ | 38 * $Id: tar.h,v 1.4 1997/02/22 14:04:46 peter Exp $ |
39 */ 40 41/* 42 * defines and data structures common to all tar formats 43 */ 44#define CHK_LEN 8 /* length of checksum field */ 45#define TNMSZ 100 /* size of name field */ 46#ifdef _PAX_ 47#define NULLCNT 2 /* number of null blocks in trailer */ | 39 */ 40 41/* 42 * defines and data structures common to all tar formats 43 */ 44#define CHK_LEN 8 /* length of checksum field */ 45#define TNMSZ 100 /* size of name field */ 46#ifdef _PAX_ 47#define NULLCNT 2 /* number of null blocks in trailer */ |
48#define CHK_OFFSET 148 /* start of chksum field */ | 48#define CHK_OFFSET 148 /* start of checksum field */ |
49#define BLNKSUM 256L /* sum of checksum field using ' ' */ 50#endif /* _PAX_ */ 51 52/* 53 * Values used in typeflag field in all tar formats | 49#define BLNKSUM 256L /* sum of checksum field using ' ' */ 50#endif /* _PAX_ */ 51 52/* 53 * Values used in typeflag field in all tar formats |
54 * (only REGTYPE, LNKTYPE and SYMTYPE are used in old bsd tar headers) | 54 * (only REGTYPE, LNKTYPE and SYMTYPE are used in old BSD tar headers) |
55 */ 56#define REGTYPE '0' /* Regular File */ 57#define AREGTYPE '\0' /* Regular File */ 58#define LNKTYPE '1' /* Link */ 59#define SYMTYPE '2' /* Symlink */ 60#define CHRTYPE '3' /* Character Special File */ 61#define BLKTYPE '4' /* Block Special File */ 62#define DIRTYPE '5' /* Directory */ --- 87 unchanged lines hidden --- | 55 */ 56#define REGTYPE '0' /* Regular File */ 57#define AREGTYPE '\0' /* Regular File */ 58#define LNKTYPE '1' /* Link */ 59#define SYMTYPE '2' /* Symlink */ 60#define CHRTYPE '3' /* Character Special File */ 61#define BLKTYPE '4' /* Block Special File */ 62#define DIRTYPE '5' /* Directory */ --- 87 unchanged lines hidden --- |