xref: /netbsd-src/include/cpio.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: cpio.h,v 1.3 2008/04/28 20:22:54 martin Exp $	*/
292576441Sjtc 
392576441Sjtc /*-
492576441Sjtc  * Copyright (c) 1996 The NetBSD Foundation, Inc.
592576441Sjtc  * All rights reserved.
692576441Sjtc  *
792576441Sjtc  * This code is derived from software contributed to The NetBSD Foundation
892576441Sjtc  * by J.T. Conklin.
992576441Sjtc  *
1092576441Sjtc  * Redistribution and use in source and binary forms, with or without
1192576441Sjtc  * modification, are permitted provided that the following conditions
1292576441Sjtc  * are met:
1392576441Sjtc  * 1. Redistributions of source code must retain the above copyright
1492576441Sjtc  *    notice, this list of conditions and the following disclaimer.
1592576441Sjtc  * 2. Redistributions in binary form must reproduce the above copyright
1692576441Sjtc  *    notice, this list of conditions and the following disclaimer in the
1792576441Sjtc  *    documentation and/or other materials provided with the distribution.
1892576441Sjtc  *
1992576441Sjtc  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2092576441Sjtc  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2192576441Sjtc  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2287f4ccd4Sjtc  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2387f4ccd4Sjtc  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2492576441Sjtc  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2592576441Sjtc  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2692576441Sjtc  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2792576441Sjtc  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2892576441Sjtc  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2992576441Sjtc  * POSSIBILITY OF SUCH DAMAGE.
3092576441Sjtc  */
3192576441Sjtc 
3292576441Sjtc #ifndef _CPIO_H_
3392576441Sjtc #define _CPIO_H_
3492576441Sjtc 
3592576441Sjtc #define C_IRUSR		0000400
3692576441Sjtc #define C_IWUSR		0000200
3792576441Sjtc #define C_IXUSR		0000100
3892576441Sjtc #define C_IRGRP		0000040
3992576441Sjtc #define C_IWGRP		0000020
4092576441Sjtc #define C_IXGRP		0000010
4192576441Sjtc #define C_IROTH		0000004
4292576441Sjtc #define C_IWOTH		0000002
4392576441Sjtc #define C_IXOTH		0000001
4492576441Sjtc #define C_ISUID		0004000
4592576441Sjtc #define C_ISGID		0002000
4692576441Sjtc #define C_ISVTX		0001000
4792576441Sjtc #define C_ISDIR		0040000
4892576441Sjtc #define C_ISFIFO	0010000
4992576441Sjtc #define C_ISREG		0100000
5092576441Sjtc #define C_ISBLK		0060000
5192576441Sjtc #define C_ISCHR		0020000
5292576441Sjtc #define C_ISCTG		0110000
5392576441Sjtc #define C_ISLNK		0120000
5492576441Sjtc #define C_ISSOCK	0140000
5592576441Sjtc 
5692576441Sjtc #define MAGIC		"070707"
5792576441Sjtc 
5892576441Sjtc #endif /* _CPIO_H_ */
59