tar.h.3head revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
Copyright (c) 2001, The IEEE and The Open Group. All Rights Reserved.
Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
http://www.opengroup.org/bookstore/.
The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
This notice shall appear on any product containing this material.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
tar.h 3HEAD "14 Mar 2006" "SunOS 5.11" "Headers"
NAME
tar.h, tar - extended tar definitions
SYNOPSIS

#include <tar.h>
DESCRIPTION

The <tar.h> header defines header block definitions as follows.

General definitions:

NameValueDescription
TMAGIC"ustar"ustar plus null byte
TMAGLEN6length of the above
TVERSION"00"00 without a null byte
TVERSLEN2length of the above

Typeflag field definitions:

NameValueDescription
REGTYPE'0'regular file
AREGTYPE'\e0'regular file
LNKTYPE'1'link
SYMTYPE'2'symbolic link
CHRTYPE'3'character special
BLKTYPE'4'block special
DIRTYPE'5'directory
FIFOTYPE'6'FIFO special
CONTTYPE'7'reserved

Mode field bit definitions (octal):

NameValueDescription
TSUID04000set UID on execution
TSGID02000set GID on execution
TSVTX01000on directories, restricted deletion flag
TUREAD00400read by owner
TUWRITE00200write by owner special
TUEXEC00100execute/search by owner
TGREAD00040read by group
TGWRITE00020write by group
TGEXEC00010execute/search by group
TOREAD00004read by other
TOWRITE00002write by other
TOEXEC00001execute/search by other

Types used in ancillary files:

NameValueDescription
ACL_HDR'A'Access Control List
LBL_TYPE'L'Trusted Extensions file label
DIR_TYPE'D'Trusted Extensions directory label

Attribute types used in Trusted Solaris ancillary files that are interpreted by Trusted Extensions for backward compatibility:

NameValueDescription
SLD_TYPE'S'Single-level directory component
PATH_TYPE'P'Path component
MLD_TYPE'M'Multi-level directory component
FILE_TYPE'F'Must handle files differently
APRIV_TYPE'P'Allowed privileges data type in file
FPRIV_TYPE'p'Forced privileges data type in file
COMP_TYPE'C'Path components, use for MLD
ATTR_FLAG_TYPE'F'File attribute flag bytes data type
LK_COMP_TYPE'K'Link data path component
ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilitySee below.

The general definitions, the typeflag field definitions, and the mode field bit definitions are Standard. The types used in ancillary files and the attribute types used in Trusted Solaris ancillary files are Evolving.

SEE ALSO

pax(1), attributes(5), standards(5)