The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/tar.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* The <tar.h> header is used with the tape archiver, tar. */
    2 
    3 #ifndef _TAR_H
    4 #define _TAR_H
    5 
    6 #define TBLOCK          512
    7 #define NAMSIZ          100
    8 #define PFXSIZ          155
    9 
   10 #define TMODLEN         8
   11 #define TUIDLEN         8
   12 #define TGIDLEN         8
   13 #define TSIZLEN         12
   14 #define TMTMLEN         12
   15 #define TCKSLEN         8
   16 
   17 #define TMAGIC          "ustar"
   18 #define TMAGLEN         6
   19 #define TVERSION        "00"
   20 #define TVERSLEN        2
   21 #define TUNMLEN         32
   22 #define TGNMLEN         32
   23 #define TDEVLEN         8
   24 
   25 #define REGTYPE         ''
   26 #define AREGTYPE        '\0'
   27 #define LNKTYPE         '1'
   28 #define SYMTYPE         '2'
   29 #define CHRTYPE         '3'
   30 #define BLKTYPE         '4'
   31 #define DIRTYPE         '5'
   32 #define FIFOTYPE        '6'
   33 #define CONTTYPE        '7'
   34 
   35 #define TSUID           04000
   36 #define TSGID           02000
   37 #define TSVTX           01000
   38 
   39 #define TUREAD          00400
   40 #define TUWRITE         00200
   41 #define TUEXEC          00100
   42 #define TGREAD          00040
   43 #define TGWRITE         00020
   44 #define TGEXEC          00010
   45 #define TOREAD          00004
   46 #define TOWRITE         00002
   47 #define TOEXEC          00001
   48 
   49 union hblock {
   50   char dummy[TBLOCK];
   51   struct header {
   52         char name[NAMSIZ];
   53         char mode[TMODLEN];
   54         char uid[TUIDLEN];
   55         char gid[TGIDLEN];
   56         char size[TSIZLEN];
   57         char mtime[TMTMLEN];
   58         char chksum[TCKSLEN];
   59         char typeflag;
   60         char linkname[NAMSIZ];
   61         char magic[TMAGLEN];
   62         char version[TVERSLEN];
   63         char uname[TUNMLEN];
   64         char gname[TGNMLEN];
   65         char devmajor[TDEVLEN];
   66         char devminor[TDEVLEN];
   67         char prefix[PFXSIZ];
   68   } dbuf;
   69 };
   70 
   71 #endif /* _TAR_H */

Cache object: 109dbbc5c7e932d75e58cafa5b57e234


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.