Back to index

avfs  1.0.1
Classes | Defines | Enumerations
gtar.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  posix_header
struct  sparse
struct  extra_header
struct  sparse_header
struct  oldgnu_header
union  block

Defines

#define OLDGNU_COMPATIBILITY   1
#define TMAGIC   "ustar" /* ustar and a null */
#define TMAGLEN   6
#define TVERSION   "00" /* 00 and no null */
#define TVERSLEN   2
#define REGTYPE   '0' /* regular file */
#define AREGTYPE   '\0' /* regular file */
#define LNKTYPE   '1' /* link */
#define SYMTYPE   '2' /* reserved */
#define CHRTYPE   '3' /* character special */
#define BLKTYPE   '4' /* block special */
#define DIRTYPE   '5' /* directory */
#define FIFOTYPE   '6' /* FIFO special */
#define CONTTYPE   '7' /* reserved */
#define TSUID   04000 /* set UID on execution */
#define TSGID   02000 /* set GID on execution */
#define TSVTX   01000 /* reserved */
#define TUREAD   00400 /* read by owner */
#define TUWRITE   00200 /* write by owner */
#define TUEXEC   00100 /* execute/search by owner */
#define TGREAD   00040 /* read by group */
#define TGWRITE   00020 /* write by group */
#define TGEXEC   00010 /* execute/search by group */
#define TOREAD   00004 /* read by other */
#define TOWRITE   00002 /* write by other */
#define TOEXEC   00001 /* execute/search by other */
#define SPARSES_IN_EXTRA_HEADER   16
#define SPARSES_IN_OLDGNU_HEADER   4
#define SPARSES_IN_SPARSE_HEADER   21
#define OLDGNU_MAGIC   "ustar " /* 7 chars and a null */
#define GNUTYPE_DUMPDIR   'D'
#define GNUTYPE_LONGLINK   'K'
#define GNUTYPE_LONGNAME   'L'
#define GNUTYPE_MULTIVOL   'M'
#define GNUTYPE_NAMES   'N'
#define GNUTYPE_SPARSE   'S'
#define GNUTYPE_VOLHDR   'V'
#define BLOCKSIZE   512

Enumerations

enum  archive_format {
  DEFAULT_FORMAT, V7_FORMAT, OLDGNU_FORMAT, POSIX_FORMAT,
  GNU_FORMAT
}

Class Documentation

struct posix_header

Definition at line 37 of file gtar.h.

Class Members
char chksum
char devmajor
char devminor
char gid
char gname
char linkname
char magic
char mode
char mtime
char name
char prefix
char size
char typeflag
char uid
char uname
char version
struct sparse

Definition at line 109 of file gtar.h.

Class Members
char numbytes
char offset
struct extra_header

Definition at line 135 of file gtar.h.

Class Members
char atime
char ctime
char isextended
char longnames
char offset
char realsize
char unused_pad1
struct sparse_header

Definition at line 154 of file gtar.h.

Class Members
char isextended
struct oldgnu_header

Definition at line 170 of file gtar.h.

Class Members
char atime
char ctime
char isextended
char longnames
char offset
char realsize
char unused_pad1
char unused_pad2
union block

Definition at line 232 of file gtar.h.

Class Members
char buffer

Define Documentation

#define AREGTYPE   '\0' /* regular file */

Definition at line 65 of file gtar.h.

#define BLKTYPE   '4' /* block special */

Definition at line 69 of file gtar.h.

#define BLOCKSIZE   512

Definition at line 221 of file gtar.h.

#define CHRTYPE   '3' /* character special */

Definition at line 68 of file gtar.h.

#define CONTTYPE   '7' /* reserved */

Definition at line 72 of file gtar.h.

#define DIRTYPE   '5' /* directory */

Definition at line 70 of file gtar.h.

#define FIFOTYPE   '6' /* FIFO special */

Definition at line 71 of file gtar.h.

#define GNUTYPE_DUMPDIR   'D'

Definition at line 196 of file gtar.h.

#define GNUTYPE_LONGLINK   'K'

Definition at line 199 of file gtar.h.

#define GNUTYPE_LONGNAME   'L'

Definition at line 202 of file gtar.h.

#define GNUTYPE_MULTIVOL   'M'

Definition at line 205 of file gtar.h.

#define GNUTYPE_NAMES   'N'

Definition at line 208 of file gtar.h.

#define GNUTYPE_SPARSE   'S'

Definition at line 211 of file gtar.h.

#define GNUTYPE_VOLHDR   'V'

Definition at line 214 of file gtar.h.

#define LNKTYPE   '1' /* link */

Definition at line 66 of file gtar.h.

#define OLDGNU_COMPATIBILITY   1

Definition at line 29 of file gtar.h.

#define OLDGNU_MAGIC   "ustar " /* 7 chars and a null */

Definition at line 189 of file gtar.h.

#define REGTYPE   '0' /* regular file */

Definition at line 64 of file gtar.h.

#define SPARSES_IN_EXTRA_HEADER   16

Definition at line 125 of file gtar.h.

#define SPARSES_IN_OLDGNU_HEADER   4

Definition at line 126 of file gtar.h.

#define SPARSES_IN_SPARSE_HEADER   21

Definition at line 127 of file gtar.h.

#define SYMTYPE   '2' /* reserved */

Definition at line 67 of file gtar.h.

#define TGEXEC   00010 /* execute/search by group */

Definition at line 84 of file gtar.h.

#define TGREAD   00040 /* read by group */

Definition at line 82 of file gtar.h.

#define TGWRITE   00020 /* write by group */

Definition at line 83 of file gtar.h.

#define TMAGIC   "ustar" /* ustar and a null */

Definition at line 58 of file gtar.h.

#define TMAGLEN   6

Definition at line 59 of file gtar.h.

#define TOEXEC   00001 /* execute/search by other */

Definition at line 87 of file gtar.h.

#define TOREAD   00004 /* read by other */

Definition at line 85 of file gtar.h.

#define TOWRITE   00002 /* write by other */

Definition at line 86 of file gtar.h.

#define TSGID   02000 /* set GID on execution */

Definition at line 76 of file gtar.h.

#define TSUID   04000 /* set UID on execution */

Definition at line 75 of file gtar.h.

#define TSVTX   01000 /* reserved */

Definition at line 77 of file gtar.h.

#define TUEXEC   00100 /* execute/search by owner */

Definition at line 81 of file gtar.h.

#define TUREAD   00400 /* read by owner */

Definition at line 79 of file gtar.h.

#define TUWRITE   00200 /* write by owner */

Definition at line 80 of file gtar.h.

#define TVERSION   "00" /* 00 and no null */

Definition at line 60 of file gtar.h.

#define TVERSLEN   2

Definition at line 61 of file gtar.h.


Enumeration Type Documentation

Enumerator:
DEFAULT_FORMAT 
V7_FORMAT 
OLDGNU_FORMAT 
POSIX_FORMAT 
GNU_FORMAT 

Definition at line 223 of file gtar.h.

{
  DEFAULT_FORMAT,           /* format to be decided later */
  V7_FORMAT,                /* old V7 tar format */
  OLDGNU_FORMAT,            /* GNU format as per before tar 1.12 */
  POSIX_FORMAT,                    /* restricted, pure POSIX format */
  GNU_FORMAT                /* POSIX format with GNU extensions */
};