CPIO.H(7) Miscellaneous Information Manual CPIO.H(7)

cpio.hcpio archive values

#include <cpio.h>

Values needed by the c_mode field of the cpio archive format are described by:

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

The header defines the symbolic constant: MAGIC "070707"

None.

None.

cpio(1) , the XCU specification.

February 1997 posix.fail