xref: /freebsd/include/cpio.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
129284d71SMike Barcroft /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3e58eb3c4SPedro F. Giffuni  *
429284d71SMike Barcroft  * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
529284d71SMike Barcroft  * All rights reserved.
629284d71SMike Barcroft  *
729284d71SMike Barcroft  * Redistribution and use in source and binary forms, with or without
829284d71SMike Barcroft  * modification, are permitted provided that the following conditions
929284d71SMike Barcroft  * are met:
1029284d71SMike Barcroft  * 1. Redistributions of source code must retain the above copyright
1129284d71SMike Barcroft  *    notice, this list of conditions and the following disclaimer.
1229284d71SMike Barcroft  * 2. Redistributions in binary form must reproduce the above copyright
1329284d71SMike Barcroft  *    notice, this list of conditions and the following disclaimer in the
1429284d71SMike Barcroft  *    documentation and/or other materials provided with the distribution.
1529284d71SMike Barcroft  *
1629284d71SMike Barcroft  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1729284d71SMike Barcroft  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1829284d71SMike Barcroft  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1929284d71SMike Barcroft  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2029284d71SMike Barcroft  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2129284d71SMike Barcroft  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2229284d71SMike Barcroft  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2329284d71SMike Barcroft  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2429284d71SMike Barcroft  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2529284d71SMike Barcroft  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2629284d71SMike Barcroft  * SUCH DAMAGE.
2729284d71SMike Barcroft  */
2829284d71SMike Barcroft 
2929284d71SMike Barcroft #ifndef _CPIO_H_
3029284d71SMike Barcroft #define	_CPIO_H_
3129284d71SMike Barcroft 
3229284d71SMike Barcroft #define	C_ISSOCK 0140000	/* Socket. */
3329284d71SMike Barcroft #define	C_ISLNK	0120000		/* Symbolic link. */
3429284d71SMike Barcroft #define	C_ISCTG	0110000		/* Reserved. */
3529284d71SMike Barcroft #define	C_ISREG	0100000		/* Regular file. */
3629284d71SMike Barcroft #define	C_ISBLK	0060000		/* Block special. */
3729284d71SMike Barcroft #define	C_ISDIR	0040000		/* Directory. */
3829284d71SMike Barcroft #define	C_ISCHR	0020000		/* Character special. */
3929284d71SMike Barcroft #define	C_ISFIFO 0010000	/* FIFO. */
4029284d71SMike Barcroft #define	C_ISUID	0004000		/* Set user ID. */
4129284d71SMike Barcroft #define	C_ISGID	0002000		/* Set group ID. */
4229284d71SMike Barcroft #define	C_ISVTX	0001000		/* On directories, restricted deletion flag. */
4329284d71SMike Barcroft #define	C_IRUSR	0000400		/* Read by owner. */
4429284d71SMike Barcroft #define	C_IWUSR	0000200		/* Write by owner. */
4529284d71SMike Barcroft #define	C_IXUSR	0000100		/* Execute by owner. */
4629284d71SMike Barcroft #define	C_IRGRP	0000040		/* Read by group. */
4729284d71SMike Barcroft #define	C_IWGRP	0000020		/* Write by group. */
4829284d71SMike Barcroft #define	C_IXGRP	0000010		/* Execute by group. */
4929284d71SMike Barcroft #define	C_IROTH	0000004		/* Read by others. */
5029284d71SMike Barcroft #define	C_IWOTH	0000002		/* Write by others. */
5129284d71SMike Barcroft #define	C_IXOTH	0000001		/* Execute by others. */
5229284d71SMike Barcroft 
5329284d71SMike Barcroft #define	MAGIC	"070707"
5429284d71SMike Barcroft 
5529284d71SMike Barcroft #endif /* _CPIO_H_ */
56