xref: /illumos-gate/usr/src/head/cpio.h (revision d8e10381a0083d7717710b0db7e64707bc0f3ff8)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1988 AT&T	*/
23 /*	  All Rights Reserved	*/
24 
25 
26 #ifndef _CPIO_H
27 #define	_CPIO_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 /*
34  * The following are values used by c_mode field of the cpio archive.
35  */
36 
37 #define	C_IRUSR		0000400
38 #define	C_IWUSR		0000200
39 #define	C_IXUSR		0000100
40 #define	C_IRGRP		0000040
41 #define	C_IWGRP		0000020
42 #define	C_IXGRP		0000010
43 #define	C_IROTH		0000004
44 #define	C_IWOTH		0000002
45 #define	C_IXOTH		0000001
46 #define	C_ISUID		0004000
47 #define	C_ISGID		0002000
48 #define	C_ISVTX		0001000
49 #define	C_ISDIR		0040000
50 #define	C_ISFIFO	0010000
51 #define	C_ISREG		0100000
52 #define	C_ISBLK		0060000
53 #define	C_ISCHR		0020000
54 #define	C_ISCTG		0110000
55 #define	C_ISLNK		0120000
56 #define	C_ISSOCK	0140000
57 
58 #define	MAGIC		"070707"
59 
60 #ifdef	__cplusplus
61 }
62 #endif
63 
64 #endif	/* _CPIO_H */
65