tar.h man page

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.

tar.h — extended tar definitions

Synopsis

#include <tar.h>

Description

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

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'\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.

See Also

The Shell and Utilities volume of POSIX.1‐2008, pax

Info

2013 IEEE/The Open Group POSIX Programmer's Manual