Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
639 B

  1. #ifndef _TARHEAD_
  2. #define _TARHEAD_
  3. #define TNAMSIZ 100
  4. typedef union _TAR_HEAD {
  5. unsigned char buf[512];
  6. struct {
  7. char name[TNAMSIZ]; /* nul-terminated unless full */
  8. char mode[8];
  9. char uid[8];
  10. char gid[8];
  11. char size[12];
  12. char mtime[12];
  13. char chksum[8];
  14. char typeflag;
  15. char linkname[TNAMSIZ]; /* nul-terminated unless full */
  16. char magic[TMAGLEN]; /* nul-terminated */
  17. char version[2];
  18. char uname[32]; /* nul-terminated */
  19. char gname[32]; /* nul-terminated */
  20. char devmajor[8];
  21. char devminor[8];
  22. char prefix[155]; /* nul-terminated unless full */
  23. } s;
  24. } TAR_HEAD, *PTAR_HEAD;
  25. #endif // _TARHEAD_