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 β€” value 6 β€” 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 β€” value 2 β€” 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 β€” value 04000 β€” set UID on execution.
  • TSGID β€” value 02000 β€” set GID on execution.
  • TSVTX β€” value 01000 β€” on directories, restricted deletion flag.
  • TUREAD β€” value 00400 β€” read by owner.
  • TUWRITE β€” value 00200 β€” write by owner special.
  • TUEXEC β€” value 00100 β€” execute/search by owner.
  • TGREAD β€” value 00040 β€” read by group.
  • TGWRITE β€” value 00020 β€” write by group.
  • TGEXEC β€” value 00010 β€” execute/search by group.
  • TOREAD β€” value 00004 β€” read by other.
  • TOWRITE β€” value 00002 β€” write by other.
  • TOEXEC β€” value 00001 β€” 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 πŸ”₯

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