home *** CD-ROM | disk | FTP | other *** search
- #define RECORDSIZE 512
- #define NAMSIZ 100
-
- typedef union hblock {
- char dummy[RECORDSIZE];
- struct header {
- char name[NAMSIZ];
- char mode[8];
- char uid[8];
- char gid[8];
- char size[12];
- char mtime[12];
- char chksum[8];
- char linkflag;
- char linkname[NAMSIZ];
- char magic[8];
- char LoadAddress[12];
- char ExecAddress[12];
- char Attr[12];
- char Date[12];
- char compression[12];
- char archieflag;
- char compressed;
- char ExtentNo[8];
- } Header;
- } Block_t;
-
- #define LF_OLDNORMAL '\0' /* Normal disk file, Unix compat */
- #define LF_NORMAL '0' /* Normal disk file */
- #define LF_LINK '1' /* Link to previously dumped file */
- #define LF_SYMLINK '2' /* Symbolic link */
- #define LF_CHR '3' /* Character special file */
- #define LF_BLK '4' /* Block special file */
- #define LF_DIR '5' /* Directory */
- #define LF_FIFO '6' /* FIFO special file */
- #define LF_CONTIG '7' /* Contiguous file */
-
- #define LF_DUMPDIR 'D' /* This is a dump dir entry */
- #define LF_EXTENT 'X' /* This is an extent of a file. */
- #define LF_LASTEXTENT 'L'
- #define LF_VOLHDR 'V' /* This file is a tape/volume header */
- #define LF_VOLEND 'E' /* This file is a tape/volume end */
-
- #define CF_COMPRESSED 'Z' /* The file is compressed */
-