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-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
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.