cpio.h(0P)

🌸 PROLOG 🌸

okay bestie, before we even get into it, real talk: this page is part of the POSIX Programmer's Manual. The Linux version of this interface might be different (so like, go check the matching Linux manual page for what Linux actually does), or honestly it might just not be implemented on Linux at all. πŸ’€


πŸ’– NAME πŸ’–

cpio.h β€” the cpio archive values, no cap πŸŽ€


✨ SYNOPSIS ✨

#include <cpio.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

so the <cpio.h> header is gonna define all the symbolic constants you need for the c_mode field of the cpio archive format. Their names and values are giving:

  • C_IRUSR β€” Read by owner. Value: 0000400 πŸ’…
  • C_IWUSR β€” Write by owner. Value: 0000200
  • C_IXUSR β€” Execute by owner. Value: 0000100
  • C_IRGRP β€” Read by group. Value: 0000040
  • C_IWGRP β€” Write by group. Value: 0000020
  • C_IXGRP β€” Execute by group. Value: 0000010
  • C_IROTH β€” Read by others. Value: 0000004
  • C_IWOTH β€” Write by others. Value: 0000002
  • C_IXOTH β€” Execute by others. Value: 0000001
  • C_ISUID β€” Set user ID. Value: 0004000 πŸ”₯
  • C_ISGID β€” Set group ID. Value: 0002000
  • C_ISVTX β€” On directories, restricted deletion flag. Value: 0001000
  • C_ISDIR β€” Directory. Value: 0040000
  • C_ISFIFO β€” FIFO. Value: 0010000
  • C_ISREG β€” Regular file. Value: 0100000
  • C_ISBLK β€” Block special. Value: 0060000
  • C_ISCHR β€” Character special. Value: 0020000
  • C_ISCTG β€” Reserved. Value: 0110000
  • C_ISLNK β€” Symbolic link. Value: 0120000
  • C_ISSOCK β€” Socket. Value: 0140000 🌈

and the <cpio.h> header also defines this next one as a string, bestie:

MAGIC    "070707"
heads up: the following sections are informative. that's literally what it says. 🫢

🌸 APPLICATION USAGE 🌸

None. that's it. that's the whole section. πŸ’€


πŸŽ€ RATIONALE πŸŽ€

None. also nothing. iconic of them honestly. ✨


πŸ’œ FUTURE DIRECTIONS πŸ’œ

None. no notes. no plans. periodt.


🧚 SEE ALSO 🧚

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


okay this part is the legal bit so I'm keeping it exactly as-is, no slang, no editing, we respect the paperwork bestie πŸ’–

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 babes 🫢 this little masterpiece came to you from IEEE/The Open Group, 2017, and yeah it's cpio.h(0P) β€” remember the 0P bestie, it's the POSIX section, iykyk πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from