lib: nuke 0@0
[unleashed.git] / include / tar.h
blob29b39095263d984f94e69f81d94e9f8a7c98d93e
1 /*
2 * CDDL HEADER START
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]
19 * CDDL HEADER END
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 */
28 #ifndef _TAR_H
29 #define _TAR_H
31 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
37 #include <sys/feature_tests.h>
39 #define TMAGIC "ustar"
40 #define TMAGLEN 6
41 #define TVERSION "00"
42 #define TVERSLEN 2
45 * Typeflag field definitions.
48 #define REGTYPE '0'
49 #define AREGTYPE '\0'
50 #define LNKTYPE '1'
51 #define SYMTYPE '2'
52 #define CHRTYPE '3'
53 #define BLKTYPE '4'
54 #define DIRTYPE '5'
55 #define FIFOTYPE '6'
56 #define CONTTYPE '7'
59 * Mode fild bit definitions.
62 #define TSUID 04000
63 #define TSGID 02000
64 #define TSVTX 01000
65 #define TUREAD 00400
66 #define TUWRITE 00200
67 #define TUEXEC 00100
68 #define TGREAD 00040
69 #define TGWRITE 00020
70 #define TGEXEC 00010
71 #define TOREAD 00004
72 #define TOWRITE 00002
73 #define TOEXEC 00001
75 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
77 * Types used in ancillary files
79 #define ACL_HDR 'A' /* Access Control List */
80 #endif
82 #ifdef __cplusplus
84 #endif
86 #endif /* _TAR_H */