cpio.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /* POSIX.1 symbolic constants for c_mode field of cpio archive format */
  2. #ifndef _CPIO_H
  3. #define _CPIO_H
  4. #define C_IRUSR 0000400 /* Read by owner */
  5. #define C_IWUSR 0000200 /* Write by owner */
  6. #define C_IXUSR 0000100 /* Execute by owner */
  7. #define C_IRGRP 0000040 /* Read by group */
  8. #define C_IWGRP 0000020 /* Write by group */
  9. #define C_IXGRP 0000010 /* Execute by group */
  10. #define C_IROTH 0000004 /* Read by others */
  11. #define C_IWOTH 0000002 /* Write by others */
  12. #define C_IXOTH 0000001 /* Execute by others */
  13. #define C_ISUID 0004000 /* Set user ID */
  14. #define C_ISGID 0002000 /* Set group ID */
  15. #define C_ISVTX 0001000 /* On directories, restricted deletion flag */
  16. #define C_ISDIR 0040000 /* Directory */
  17. #define C_ISFIFO 0010000 /* FIFO */
  18. #define C_ISREG 0100000 /* Regular file */
  19. #define C_ISBLK 0060000 /* Block special */
  20. #define C_ISCHR 0020000 /* Character special */
  21. #define C_ISCTG 0110000 /* Reserved */
  22. #define C_ISLNK 0120000 /* Symbolic link */
  23. #define C_ISSOCK 0140000 /* Socket */
  24. #define MAGIC "070707"
  25. #endif /* _CPIO_H */