165399Sbostic /*- 265399Sbostic * Copyright (c) 1994 3*65401Sbostic * The Regents of the University of California. All rights reserved. 465399Sbostic * 565399Sbostic * This code is derived from software contributed to Berkeley by 665399Sbostic * Chuck Karish of Mindcraft, Inc. 765399Sbostic * 865399Sbostic * %sccs.include.redist.c% 965399Sbostic * 10*65401Sbostic * @(#)tar.h 8.2 (Berkeley) 01/04/94 1165399Sbostic */ 1265399Sbostic 1365399Sbostic #ifndef _TAR_H 1465399Sbostic #define _TAR_H 1565399Sbostic 1665399Sbostic #define TMAGIC "ustar" /* ustar and a null */ 1765399Sbostic #define TMAGLEN 6 1865399Sbostic #define TVERSION "00" /* 00 and no null */ 1965399Sbostic #define TVERSLEN 2 2065399Sbostic 2165399Sbostic /* Values used in typeflag field */ 2265399Sbostic #define REGTYPE '0' /* Regular file */ 2365399Sbostic #define AREGTYPE '\0' /* Regular file */ 2465399Sbostic #define LNKTYPE '1' /* Link */ 2565399Sbostic #define SYMTYPE '2' /* Reserved */ 2665399Sbostic #define CHRTYPE '3' /* Character special */ 2765399Sbostic #define BLKTYPE '4' /* Block special */ 2865399Sbostic #define DIRTYPE '5' /* Directory */ 2965399Sbostic #define FIFOTYPE '6' /* FIFO special */ 3065399Sbostic #define CONTTYPE '7' /* Reserved */ 3165399Sbostic 3265399Sbostic /* Bits used in the mode field - values in octal */ 3365399Sbostic #define TSUID 04000 /* Set UID on execution */ 3465399Sbostic #define TSGID 02000 /* Set GID on execution */ 3565399Sbostic #define TSVTX 01000 /* Reserved */ 3665399Sbostic /* File permissions */ 3765399Sbostic #define TUREAD 00400 /* Read by owner */ 3865399Sbostic #define TUWRITE 00200 /* Write by owner */ 3965399Sbostic #define TUEXEC 00100 /* Execute/Search by owner */ 4065399Sbostic #define TGREAD 00040 /* Read by group */ 4165399Sbostic #define TGWRITE 00020 /* Write by group */ 4265399Sbostic #define TGEXEC 00010 /* Execute/Search by group */ 4365399Sbostic #define TOREAD 00004 /* Read by other */ 4465399Sbostic #define TOWRITE 00002 /* Write by other */ 4565399Sbostic #define TOEXEC 00001 /* Execute/Search by other */ 4665399Sbostic 4765399Sbostic #endif 48