7888 installboot: print version info of the file
[unleashed.git] / include / cpio.h
blob19195a8b62126fb2123ea12cdcaf233862ca8a6f
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
26 #ifndef _CPIO_H
27 #define _CPIO_H
29 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
36 * The following are values used by c_mode field of the cpio archive.
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
60 #define MAGIC "070707"
62 #ifdef __cplusplus
64 #endif
66 #endif /* _CPIO_H */