1*d874cce4Sray /* $OpenBSD: cpio.h,v 1.3 2008/06/26 05:42:04 ray Exp $ */ 22d787d22Sniklas /* $NetBSD: cpio.h,v 1.1 1996/02/05 22:34:11 jtc Exp $ */ 32d787d22Sniklas 42d787d22Sniklas /*- 52d787d22Sniklas * Copyright (c) 1996 The NetBSD Foundation, Inc. 62d787d22Sniklas * All rights reserved. 72d787d22Sniklas * 82d787d22Sniklas * This code is derived from software contributed to The NetBSD Foundation 92d787d22Sniklas * by J.T. Conklin. 102d787d22Sniklas * 112d787d22Sniklas * Redistribution and use in source and binary forms, with or without 122d787d22Sniklas * modification, are permitted provided that the following conditions 132d787d22Sniklas * are met: 142d787d22Sniklas * 1. Redistributions of source code must retain the above copyright 152d787d22Sniklas * notice, this list of conditions and the following disclaimer. 162d787d22Sniklas * 2. Redistributions in binary form must reproduce the above copyright 172d787d22Sniklas * notice, this list of conditions and the following disclaimer in the 182d787d22Sniklas * documentation and/or other materials provided with the distribution. 192d787d22Sniklas * 202d787d22Sniklas * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 212d787d22Sniklas * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 222d787d22Sniklas * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 232d787d22Sniklas * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE 242d787d22Sniklas * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 252d787d22Sniklas * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 262d787d22Sniklas * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 272d787d22Sniklas * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 282d787d22Sniklas * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 292d787d22Sniklas * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 302d787d22Sniklas * POSSIBILITY OF SUCH DAMAGE. 312d787d22Sniklas */ 322d787d22Sniklas 332d787d22Sniklas #ifndef _CPIO_H_ 342d787d22Sniklas #define _CPIO_H_ 352d787d22Sniklas 362d787d22Sniklas #define C_IRUSR 0000400 372d787d22Sniklas #define C_IWUSR 0000200 382d787d22Sniklas #define C_IXUSR 0000100 392d787d22Sniklas #define C_IRGRP 0000040 402d787d22Sniklas #define C_IWGRP 0000020 412d787d22Sniklas #define C_IXGRP 0000010 422d787d22Sniklas #define C_IROTH 0000004 432d787d22Sniklas #define C_IWOTH 0000002 442d787d22Sniklas #define C_IXOTH 0000001 452d787d22Sniklas #define C_ISUID 0004000 462d787d22Sniklas #define C_ISGID 0002000 472d787d22Sniklas #define C_ISVTX 0001000 482d787d22Sniklas #define C_ISDIR 0040000 492d787d22Sniklas #define C_ISFIFO 0010000 502d787d22Sniklas #define C_ISREG 0100000 512d787d22Sniklas #define C_ISBLK 0060000 522d787d22Sniklas #define C_ISCHR 0020000 532d787d22Sniklas #define C_ISCTG 0110000 542d787d22Sniklas #define C_ISLNK 0120000 552d787d22Sniklas #define C_ISSOCK 0140000 562d787d22Sniklas 572d787d22Sniklas #define MAGIC "070707" 582d787d22Sniklas 592d787d22Sniklas #endif /* _CPIO_H_ */ 60