xref: /titanic_41/usr/src/head/cpio.h (revision 6dfee4834394825da35b977ca71cdc965bc7b6a4)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  * The following are values used by c_mode field of the cpio archive.
37  */
38 
39 #define	C_IRUSR		0000400
40 #define	C_IWUSR		0000200
41 #define	C_IXUSR		0000100
42 #define	C_IRGRP		0000040
43 #define	C_IWGRP		0000020
44 #define	C_IXGRP		0000010
45 #define	C_IROTH		0000004
46 #define	C_IWOTH		0000002
47 #define	C_IXOTH		0000001
48 #define	C_ISUID		0004000
49 #define	C_ISGID		0002000
50 #define	C_ISVTX		0001000
51 #define	C_ISDIR		0040000
52 #define	C_ISFIFO	0010000
53 #define	C_ISREG		0100000
54 #define	C_ISBLK		0060000
55 #define	C_ISCHR		0020000
56 #define	C_ISCTG		0110000
57 #define	C_ISLNK		0120000
58 #define	C_ISSOCK	0140000
59 
60 #define	MAGIC		"070707"
61 
62 #ifdef	__cplusplus
63 }
64 #endif
65 
66 #endif	/* _CPIO_H */
67