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.

52 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1992-1996 Microsoft Corporation
  3. Module Name:
  4. tar.h
  5. Abstract:
  6. Stuff for the 'tar' data interchange format, as in 1003.1-88
  7. (10.1.1)
  8. --*/
  9. #ifndef _TAR_
  10. #define _TAR_
  11. #define TMAGIC "ustar" /* ustar and a nul */
  12. #define TMAGLEN 6
  13. #define TVERSION "00" /* 00 and no nul */
  14. #define TVERSLEN 2
  15. /* Values used in typeflag field */
  16. #define REGTYPE '0' /* regular file */
  17. #define AREGTYPE '\0' /* regular file */
  18. #define LNKTYPE '1' /* link */
  19. #define SYMTYPE '2' /* symlink */
  20. #define CHRTYPE '3' /* character special */
  21. #define BLKTYPE '4' /* block special */
  22. #define DIRTYPE '5' /* directory */
  23. #define FIFOTYPE '6' /* FIFO special */
  24. #define CONTTYPE '7' /* high-performance */
  25. /* Bits used in the mode field -- values in octal */
  26. #define TSUID 04000 /* set UID on execution */
  27. #define TSGID 02000 /* set GID on execution */
  28. #define TSVTX 01000 /* reserved */
  29. /* File Permissions */
  30. #define TUREAD 00400 /* read by owner */
  31. #define TUWRITE 00200 /* write by owner */
  32. #define TUEXEC 00100 /* execute/search by owner */
  33. #define TGREAD 00040 /* read by group */
  34. #define TGWRITE 00020 /* write by group */
  35. #define TGEXEC 00010 /* execute/search by group */
  36. #define TOREAD 00004 /* read by other */
  37. #define TOWRITE 00002 /* write by other */
  38. #define TOEXEC 00001 /* execute/search by other */
  39. #endif /* _TAR_ */