cpio.h(7POSIX)

🌸 cpio.h(7POSIX) β€” the POSIX Programmer's Manual page, bestie edition πŸ’…

okay so real talk: this page lives in the POSIX Programmer's Manual (yes that one, the 7POSIX one, we love her). Heads up tho 🫢 β€” the Linux implementation of this interface may differ, so if you're on Linux, go check the corresponding Linux manual page for the deets on Linux behavior. Or... plot twist: the interface might not even be implemented on Linux at all. πŸ’€ vibe check accordingly.


πŸŽ€ NAME

cpio.h β€” cpio archive values ✨


πŸ’– 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. names + values, coming right up πŸ‘‡

  • C_IRUSR β€” read by owner. value (octal): 0000400
  • C_IWUSR β€” write by owner. value (octal): 0000200
  • C_IXUSR β€” execute by owner. value (octal): 0000100
  • C_IRGRP β€” read by group. value (octal): 0000040
  • C_IWGRP β€” write by group. value (octal): 0000020
  • C_IXGRP β€” execute by group. value (octal): 0000010
  • C_IROTH β€” read by others. value (octal): 0000004
  • C_IWOTH β€” write by others. value (octal): 0000002
  • C_IXOTH β€” execute by others. value (octal): 0000001
  • C_ISUID β€” set user ID. value (octal): 0004000
  • C_ISGID β€” set group ID. value (octal): 0002000
  • C_ISVTX β€” on directories, restricted deletion flag. value (octal): 0001000
  • C_ISDIR β€” directory. value (octal): 0040000
  • C_ISFIFO β€” FIFO. value (octal): 0010000
  • C_ISREG β€” regular file. value (octal): 0100000
  • C_ISBLK β€” block special. value (octal): 0060000
  • C_ISCHR β€” character special. value (octal): 0020000
  • C_ISCTG β€” reserved. value (octal): 0110000
  • C_ISLNK β€” symbolic link. value (octal): 0120000
  • C_ISSOCK β€” socket. value (octal): 0140000

and that's the whole set, no notes, we move 🧚

the <cpio.h> header shall also define this symbolic constant, and it's a string:

MAGIC    "070707"

iconic. the magic number said what it said. πŸ”₯

heads up: the following sections are informative β€” aka the chill ones, not the binding ones.

πŸ“ APPLICATION USAGE

None. literally nothing. empty. a whole section with zero content and honestly? she ate. πŸ™ˆ


🌈 RATIONALE

None. also nothing. two for two. πŸ’œ


⭐ FUTURE DIRECTIONS

None. the future is a mystery but this section is not β€” it's empty, fr fr.


πŸ‘‘ 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!! πŸŽ€ this one came from IEEE/The Open Group, 2017, and the page itself is cpio.h(7POSIX). go forth and archive responsibly. mwah. πŸ’–βœ¨