Open System Services System Calls Reference Manual (G06.28+)

Files tar(4)
of the error and does not attempt to store the link in the archive.
The mode eld contains 9 bits specifying le permissions and 3 bits specifying the set user ID
(TSUID), set group ID (TSGID), and unused TSVTX modes. When the user restoring the les
from the archive does not have appropriate permission to set these bits, the bits for which the
user does not have permission are ignored.
The uid and gid elds are the user and group ID of the les owner and group, respectively.
The size eld is the size of the le in bytes, as follows:
If the typeag eld species a le type of LNKTYPE or SYMTYPE, the size eld is 0
(zero).
If the typeag eld species a le type of DIRTYPE, the size eld is interpreted as
described for that record type.
If the typeag eld species a le type of CHARTYPE, BLKTYPE,orFIFOTYPE,
the meaning of the size eld is implementation-de
ned and no data blocks are stored in
the archive.
If the typeag species any other value, the number of blocks written following the
header is (value of size + 511)/512, ignoring any fraction in the result of the division.
The mtime eld is the modication time of the le at the time it was archived.
The chksum eld is the ASCII representation of the octal value of the simple sum of all bytes in
the header block. Each 8-bit byte in the header is treated as an unsigned value. These values are
added to an unsigned integer that has been initialized to 0 (zero), and that has a precision of no
less than 17 bits. When calculating the checksum, the chksum eld is treated as if it were all
blanks.
The typeag eld species the type of le archived. If a particular implementation does not
recognize the type, or if the user does not have appropriate privilege to create that type, the le is
extracted as if it were a regular le, if possible. If conversion to a regular le occurs, the tar com-
mand produces an error message indicating that the conversion took place.
The magic eld indicates that the archive was output in tar archive le format. If this eld con-
tains the value TMAGIC, the uname and gname elds contain the ASCII representation of the
owner and group of the le respectively. When the archive is restored, the password and group
les are scanned for these names. If found, the user and group IDs from these les are used
instead of the values contained within the uid and gid elds.
RELATED INFORMATION
Commands: pax(1), pinstall(1).
527186-005 Hewlett-Packard Company 1145