home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsd / extarct / h / tar
Encoding:
Text File  |  1995-07-30  |  923 b   |  26 lines

  1. /* tar.h
  2.  * Header block declaration - written from tar(5) manpage
  3.  */
  4.  
  5. #define TBLOCK 512
  6. #define NBLOCK 20
  7. #define NAMSIZ 100
  8.  
  9. typedef struct header {
  10.   char name[NAMSIZ];        /* null-terminated string; filename */
  11.                             /* These next 6 items are octal numbers in ASCII, zero-filled. */
  12.   char mode[8];             /*   6 digits + ' ' + NULL */
  13.   char uid[8];              /*   6 digits + ' ' + NULL */
  14.   char gid[8];              /*   6 digits + ' ' + NULL */
  15.   char size[12];            /*  11 digits + ' ' */
  16.   char mtime[12];           /*  11 digits + ' ' */
  17.   char chksum[8];           /*   6 digits + NULL + ' ' */
  18.   char linkflag;            /* NULL => normal, ASCII '1' => hard link, ASCII '2' => symbolic link */
  19.   char linkname[NAMSIZ];    /* null-terminated string; linked-to filename (if relevant) */
  20. } THeader;
  21.  
  22. typedef union hblock {
  23.   char dummy[TBLOCK];
  24.   THeader dbuf;
  25. } HBlock;
  26.