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.

50 lines
926 B

  1. #ifndef _CPIO_
  2. #define _CPIO_
  3. typedef struct _CPIO_HEAD {
  4. char c_magic[6];
  5. char c_dev[6];
  6. char c_ino[6];
  7. char c_mode[6];
  8. char c_uid[6];
  9. char c_gid[6];
  10. char c_nlink[6];
  11. char c_rdev[6];
  12. char c_mtime[11];
  13. char c_namesize[6];
  14. char c_filesize[11];
  15. } CPIO_HEAD, *PCPIO_HEAD;
  16. #define MAGIC "070707"
  17. #define LASTFILENAME "TRAILER!!!"
  18. //
  19. // File permissions, for c_mode
  20. //
  21. #define C_IRUSR 000400
  22. #define C_IWUSR 000200
  23. #define C_IXUSR 000100
  24. #define C_IRGRP 000040
  25. #define C_IWGRP 000020
  26. #define C_IXGRP 000010
  27. #define C_IROTH 000004
  28. #define C_IWOTH 000002
  29. #define C_IXOTH 000001
  30. #define C_ISUID 004000
  31. #define C_ISGID 002000
  32. #define C_ISVTX 001000
  33. //
  34. // File type, also in c_mode
  35. //
  36. #define C_ISDIR 040000
  37. #define C_ISFIFO 010000
  38. #define C_ISREG 0100000
  39. #define C_ISBLK 060000
  40. #define C_ISCHR 020000
  41. #define C_ISCTG 0110000
  42. #define C_ISLNK 0120000
  43. #define C_ISSOCK 0140000
  44. #endif // _CPIO_