MPE/iX Shell and Utilities Reference Manual, Vol 2
cpio(2) MPE/iX Shell and Utilities cpio(2)
Binary headers contain the same information in 2 byte (short) and 4 byte (long) integers as
shown in Table 2-2.
Bytes Field Name
2 magic
2 dev
2 ino
2 mode
2 uid
2 gid
2 nlink
2 rdev
4 mtime
2 namesize
4 filesize
Table 2-2: Binary Header Format for cpio File
After this information comes the file name (with namesize rounded up to the nearest 2 byte
boundary). Then the file contents appear as in the
ASCII archive. The byte ordering of the 2
and 4 byte integers in the binary format is machine dependent and thus portability of this for-
mat is not easily guaranteed.
Compressed cpio archives are exactly equivalent to the corresponding archive being passed
to a 14-bit compress utility.
PORTABILITY
For maximum portability among different system architectures, only the
ASCII archive format
should be used.
SEE ALSO
compress(1), cpio(1), pax(1), tar(1), pax(2), tar(2)
File Formats 2-3