1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* Copyright (c) 1988 AT&T */ 23 /* All Rights Reserved */ 24 25 26 #ifndef _TAR_H 27 #define _TAR_H 28 29 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 #define TMAGIC "ustar" 36 #define TMAGLEN 6 37 #define TVERSION "00" 38 #define TVERSLEN 2 39 40 /* 41 * Typeflag field definitions. 42 */ 43 44 #define REGTYPE '0' 45 #define AREGTYPE '\0' 46 #define LNKTYPE '1' 47 #define SYMTYPE '2' 48 #define CHRTYPE '3' 49 #define BLKTYPE '4' 50 #define DIRTYPE '5' 51 #define FIFOTYPE '6' 52 #define CONTTYPE '7' 53 54 /* 55 * Mode fild bit definitions. 56 */ 57 58 #define TSUID 04000 59 #define TSGID 02000 60 #define TSVTX 01000 61 #define TUREAD 00400 62 #define TUWRITE 00200 63 #define TUEXEC 00100 64 #define TGREAD 00040 65 #define TGWRITE 00020 66 #define TGEXEC 00010 67 #define TOREAD 00004 68 #define TOWRITE 00002 69 #define TOEXEC 00001 70 71 #ifdef __cplusplus 72 } 73 #endif 74 75 #endif /* _TAR_H */ 76