tar.h(7POSIX)

✨ PROLOG ✨

okay so real talk before we even get into it πŸ’– β€” this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ, so pls consult the corresponding Linux manual page for details on Linux behavior, or, honestly, the interface may just not be implemented on Linux at all. no cap. πŸ™ˆ


🌸 NAME 🌸

tar.h β€” extended tar definitions πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tar.h>

πŸ’… DESCRIPTION πŸ’…

The <tar.h> header shall define the following symbolic constants with the indicated values. it's giving header file with main character energy, periodt.

⭐ General definitions ⭐

  • TMAGIC β€” value: "ustar" β€” used in the magic field in the ustar header block, and yes bestie, including the trailing null byte πŸ’…
  • TMAGLEN β€” value: 6 β€” length in octets of the magic field
  • TVERSION β€” value: "00" β€” used in the version field in the ustar header block, and this time excluding the trailing null byte (not me noticing the inconsistency 😭)
  • 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

🌈 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
heads up bestie: the following sections are informative. 🫢

πŸ’œ APPLICATION USAGE πŸ’œ

None. literally nothing. we love a low-effort section πŸ’€


🧚 RATIONALE 🧚

None. empty. void. iconic in its own way ✨


πŸ“ FUTURE DIRECTIONS πŸ“

None. the future is cancelled apparently 😭


πŸ”₯ 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, no notes 🫢 this masterpiece dropped in 2017, brought to you by the fine folks at IEEE/The Open Group, filed under tar.h(7POSIX) β€” read it, memorise the octal values, slay πŸ’…πŸŒˆβ­