'\" 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] .TH tar.h 3HEAD "14 Mar 2006" "SunOS 5.11" "Headers" .SH NAME tar.h, tar \- extended tar definitions .SH SYNOPSIS .LP .nf #include <\fBtar.h\fR> .fi .SH DESCRIPTION .sp .LP The <\fBtar.h\fR> header defines header block definitions as follows. .sp .LP General definitions: .sp .sp .TS tab(); cw(1.59i) cw(1.59i) cw(2.32i) lw(1.59i) lw(1.59i) lw(2.32i) . NameValueDescription _ \fBTMAGIC\fR"ustar"ustar plus null byte \fBTMAGLEN\fR6length of the above \fBTVERSION\fR"00"00 without a null byte \fBTVERSLEN\fR2length of the above .TE .sp .LP \fBTypeflag\fR field definitions: .sp .sp .TS tab(); cw(1.57i) cw(1.63i) cw(2.3i) lw(1.57i) lw(1.63i) lw(2.3i) . NameValueDescription _ \fBREGTYPE\fR\&'0'regular file \fBAREGTYPE\fR\&'\e0'regular file \fBLNKTYPE\fR\&'1'link \fBSYMTYPE\fR\&'2'symbolic link \fBCHRTYPE\fR\&'3'character special \fBBLKTYPE\fR\&'4'block special \fBDIRTYPE\fR\&'5'directory \fBFIFOTYPE\fR\&'6'FIFO special \fBCONTTYPE\fR\&'7'reserved .TE .sp .LP \fBMode\fR field bit definitions (octal): .sp .sp .TS tab(); cw(1.63i) cw(1.63i) cw(2.24i) lw(1.63i) lw(1.63i) lw(2.24i) . NameValueDescription _ \fBTSUID\fR04000set UID on execution \fBTSGID\fR02000set GID on execution \fBTSVTX\fR01000on directories, restricted deletion flag \fBTUREAD\fR00400read by owner \fBTUWRITE\fR00200write by owner special \fBTUEXEC\fR00100execute/search by owner \fBTGREAD\fR00040read by group \fBTGWRITE\fR00020write by group \fBTGEXEC\fR00010execute/search by group \fBTOREAD\fR00004read by other \fBTOWRITE\fR00002write by other \fBTOEXEC\fR00001execute/search by other .TE .sp .LP Types used in ancillary files: .sp .sp .TS tab(); cw(1.85i) cw(1.29i) cw(2.36i) lw(1.85i) lw(1.29i) lw(2.36i) . NameValueDescription \fBACL_HDR\fR\&'A'Access Control List \fBLBL_TYPE\fR\&'L'Trusted Extensions file label \fBDIR_TYPE\fR\&'D'Trusted Extensions directory label .TE .sp .LP Attribute types used in Trusted Solaris ancillary files that are interpreted by Trusted Extensions for backward compatibility: .sp .sp .TS tab(); cw(1.85i) cw(1.29i) cw(2.36i) lw(1.85i) lw(1.29i) lw(2.36i) . NameValueDescription \fBSLD_TYPE\fR\&'S'Single-level directory component \fBPATH_TYPE\fR\&'P'Path component \fBMLD_TYPE\fR\&'M'Multi-level directory component \fBFILE_TYPE\fR\&'F'Must handle files differently \fBAPRIV_TYPE\fR\&'P'Allowed privileges data type in file \fBFPRIV_TYPE\fR\&'p'Forced privileges data type in file \fBCOMP_TYPE\fR\&'C'Path components, use for MLD \fBATTR_FLAG_TYPE\fR\&'F'File attribute flag bytes data type \fBLK_COMP_TYPE\fR\&'K'Link data path component .TE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilitySee below. .TE .sp .LP The general definitions, the \fBtypeflag\fR field definitions, and the \fBmode\fR field bit definitions are Standard. The types used in ancillary files and the attribute types used in Trusted Solaris ancillary files are Evolving. .SH SEE ALSO .sp .LP \fBpax\fR(1), \fBattributes\fR(5), \fBstandards\fR(5)