tar.h(0P)
π PROLOG π¦
okay bestie, real talk first β this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so go check the corresponding Linux manual page for the deets on Linux behavior, fr), or the interface may not be implemented on Linux at all. No cap. π
β¨ NAME β¨
tar.h β extended tar definitions π
π SYNOPSIS π
#include <tar.h>
That's it, that's the whole vibe check. π«Ά
π DESCRIPTION π
So the <tar.h> header shall define the following symbolic constants with the indicated values. Think of it as the group chat roster of tar constants β everybody's here, nobody's left out. π
πΈ General definitions πΈ
TMAGICβ value"ustar"β used in the magic field in the ustar header block, including the trailing null byte. (yes, null byte included, she's part of the fit π)TMAGLENβ value6β length in octets of the magic field.TVERSIONβ value"00"β used in the version field in the ustar header block, excluding the trailing null byte. (opposite energy from TMAGIC, iconic honestly)TVERSLENβ value2β length in octets of the version field.
π¦ Typeflag field definitions π¦
REGTYPEβ value'0'β regular file.AREGTYPEβ value'\0'β regular file.LNKTYPEβ value'1'β link.SYMTYPEβ value'2'β symbolic link.CHRTYPEβ value'3'β character special.BLKTYPEβ value'4'β block special.DIRTYPEβ value'5'β directory.FIFOTYPEβ value'6'β FIFO special.CONTTYPEβ value'7'β reserved. (she's reserved, respect her privacy π)
π Mode field bit definitions (octal) π
TSUIDβ value04000β set UID on execution.TSGIDβ value02000β set GID on execution.TSVTXβ value01000β on directories, restricted deletion flag.TUREADβ value00400β read by owner.TUWRITEβ value00200β write by owner special.TUEXECβ value00100β execute/search by owner.TGREADβ value00040β read by group.TGWRITEβ value00020β write by group.TGEXECβ value00010β execute/search by group.TOREADβ value00004β read by other.TOWRITEβ value00002β write by other.TOEXECβ value00001β execute/search by other.
The following sections are informative. (translation: the juicy technical part is done, this is the bonus content bestie π )
π APPLICATION USAGE π
None. Literally nothing. She said "I have no notes." π
β RATIONALE β
None. Silent. Mysterious. Main character energy. π
πΈ FUTURE DIRECTIONS πΈ
None. The future is undefined and honestly? That's fine. π¦
π SEE ALSO π
- The Shell and Utilities volume of POSIX.1β2017,
paxπ₯
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.
In the event of any discrepancy between this version 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 .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page bestie β¨πππ¦πΈπ π«Ά
Cute sign-off time: this one's from IEEE/The Open Group, dated 2017, and she answers to the name tar.h(0P). Periodt. ππ
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms