4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
25 /* Copyright (c) 1988 AT&T */
26 /* All Rights Reserved */
31 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */
37 #include <sys/feature_tests.h>
39 #define TMAGIC "ustar"
45 * Typeflag field definitions.
59 * Mode fild bit definitions.
75 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
77 * Types used in ancillary files
79 #define ACL_HDR 'A' /* Access Control List */
80 #define LBL_TYPE 'L' /* Trusted Extensions file label */
81 #define DIR_TYPE 'D' /* Trusted Extensions directory label */
83 * Attribute types used in Trusted Solaris ancillary files
84 * that are interpreted for backward compatibility
86 #define SLD_TYPE 'S' /* single-level directory component */
87 #define PATH_TYPE 'P' /* Path component */
88 #define MLD_TYPE 'M' /* multi-level directory component */
89 #define FILE_TYPE 'F' /* Have to handle files differently */
90 #define APRIV_TYPE 'P' /* allowed privileges data type in file */
91 #define FPRIV_TYPE 'p' /* forced privileges data type in file */
92 #define COMP_TYPE 'C' /* path components, use for MLD */
93 #define ATTR_FLAG_TYPE 'F' /* file attribute flag bytes data type */
94 #define LK_COMP_TYPE 'K' /* link data path component */