2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _TAR_H
|
|
|
|
#define _TAR_H
|
|
|
|
|
2018-03-28 19:53:45 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#define TSUID 04000
|
|
|
|
#define TSGID 02000
|
2018-03-10 22:57:44 +00:00
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE)
|
2011-02-12 05:22:29 +00:00
|
|
|
#define TSVTX 01000
|
2018-03-10 22:57:44 +00:00
|
|
|
#endif
|
2011-02-12 05:22:29 +00:00
|
|
|
#define TUREAD 00400
|
|
|
|
#define TUWRITE 00200
|
|
|
|
#define TUEXEC 00100
|
|
|
|
#define TGREAD 00040
|
|
|
|
#define TGWRITE 00020
|
|
|
|
#define TGEXEC 00010
|
|
|
|
#define TOREAD 00004
|
|
|
|
#define TOWRITE 00002
|
|
|
|
#define TOEXEC 00001
|
|
|
|
|
|
|
|
#define REGTYPE '0'
|
|
|
|
#define AREGTYPE '\0'
|
|
|
|
#define LNKTYPE '1'
|
|
|
|
#define SYMTYPE '2'
|
|
|
|
#define CHRTYPE '3'
|
|
|
|
#define BLKTYPE '4'
|
|
|
|
#define DIRTYPE '5'
|
|
|
|
#define FIFOTYPE '6'
|
|
|
|
#define CONTTYPE '7'
|
|
|
|
|
|
|
|
#define TMAGIC "ustar"
|
|
|
|
#define TMAGLEN 6
|
|
|
|
|
|
|
|
#define TVERSION "00"
|
|
|
|
#define TVERSLEN 2
|
|
|
|
|
|
|
|
#endif
|