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