cpio.h revision 101138
1101138Smike/*- 2101138Smike * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 3101138Smike * All rights reserved. 4101138Smike * 5101138Smike * Redistribution and use in source and binary forms, with or without 6101138Smike * modification, are permitted provided that the following conditions 7101138Smike * are met: 8101138Smike * 1. Redistributions of source code must retain the above copyright 9101138Smike * notice, this list of conditions and the following disclaimer. 10101138Smike * 2. Redistributions in binary form must reproduce the above copyright 11101138Smike * notice, this list of conditions and the following disclaimer in the 12101138Smike * documentation and/or other materials provided with the distribution. 13101138Smike * 14101138Smike * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15101138Smike * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16101138Smike * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17101138Smike * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18101138Smike * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19101138Smike * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20101138Smike * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21101138Smike * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22101138Smike * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23101138Smike * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24101138Smike * SUCH DAMAGE. 25101138Smike * 26101138Smike * $FreeBSD: head/include/cpio.h 101138 2002-08-01 07:18:38Z mike $ 27101138Smike */ 28101138Smike 29101138Smike#ifndef _CPIO_H_ 30101138Smike#define _CPIO_H_ 31101138Smike 32101138Smike#define C_ISSOCK 0140000 /* Socket. */ 33101138Smike#define C_ISLNK 0120000 /* Symbolic link. */ 34101138Smike#define C_ISCTG 0110000 /* Reserved. */ 35101138Smike#define C_ISREG 0100000 /* Regular file. */ 36101138Smike#define C_ISBLK 0060000 /* Block special. */ 37101138Smike#define C_ISDIR 0040000 /* Directory. */ 38101138Smike#define C_ISCHR 0020000 /* Character special. */ 39101138Smike#define C_ISFIFO 0010000 /* FIFO. */ 40101138Smike#define C_ISUID 0004000 /* Set user ID. */ 41101138Smike#define C_ISGID 0002000 /* Set group ID. */ 42101138Smike#define C_ISVTX 0001000 /* On directories, restricted deletion flag. */ 43101138Smike#define C_IRUSR 0000400 /* Read by owner. */ 44101138Smike#define C_IWUSR 0000200 /* Write by owner. */ 45101138Smike#define C_IXUSR 0000100 /* Execute by owner. */ 46101138Smike#define C_IRGRP 0000040 /* Read by group. */ 47101138Smike#define C_IWGRP 0000020 /* Write by group. */ 48101138Smike#define C_IXGRP 0000010 /* Execute by group. */ 49101138Smike#define C_IROTH 0000004 /* Read by others. */ 50101138Smike#define C_IWOTH 0000002 /* Write by others. */ 51101138Smike#define C_IXOTH 0000001 /* Execute by others. */ 52101138Smike 53101138Smike#define MAGIC "070707" 54101138Smike 55101138Smike#endif /* _CPIO_H_ */ 56