tar.h - Man Page

extended tar definitions

Prolog

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.

Synopsis

#include <tar.h>

Description

The <tar.h> header shall define the following symbolic constants with the indicated values.

General definitions:

NameValueDescription
TMAGIC"ustar"Used in the magic field in the ustar header block, including the trailing null byte.
TMAGLEN6Length in octets of the magic field.
TVERSION"00"Used in the version field in the ustar header block, excluding the trailing null byte.
TVERSLEN2Length in octets of the version field.

Typeflag field definitions:

NameValueDescription
REGTYPE'0'Regular file.
AREGTYPE'\0'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.

The following sections are informative.

Application Usage

None.

Rationale

None.

Future Directions

None.

See Also

The Shell and Utilities volume of POSIX.1-2017, pax

Referenced By

pax(1p).

2017 IEEE/The Open Group POSIX Programmer's Manual