home *** CD-ROM | disk | FTP | other *** search
- /* tar.h
- * Header block declaration - written from tar(5) manpage
- */
-
- #define TBLOCK 512
- #define NBLOCK 20
- #define NAMSIZ 100
-
- typedef struct header {
- char name[NAMSIZ]; /* null-terminated string; filename */
- /* These next 6 items are octal numbers in ASCII, zero-filled. */
- char mode[8]; /* 6 digits + ' ' + NULL */
- char uid[8]; /* 6 digits + ' ' + NULL */
- char gid[8]; /* 6 digits + ' ' + NULL */
- char size[12]; /* 11 digits + ' ' */
- char mtime[12]; /* 11 digits + ' ' */
- char chksum[8]; /* 6 digits + NULL + ' ' */
- char linkflag; /* NULL => normal, ASCII '1' => hard link, ASCII '2' => symbolic link */
- char linkname[NAMSIZ]; /* null-terminated string; linked-to filename (if relevant) */
- } THeader;
-
- typedef union hblock {
- char dummy[TBLOCK];
- THeader dbuf;
- } HBlock;
-