Open System Services System Calls Reference Manual (G06.25+, H06.03+)

Files cpio(4)
The archive entry for the name of a le has the following format:
Table 112. cpio Archive File Filename Entry Format
Field Name Length (in octets) Interpretation
____________________________________________
c_name c_namesize Pathname string
The c_name eld contains the pathname of the le as a string with the length given by the
c_namesize eld in the le header. This string length includes the null character that terminates
the name. If the lename is found on a medium that would create an invalid pathname, the pax
utility skips the le and displays an error message to the standard error le.
Following the header and the pathname string, the cpio archive le data has the following form:
Table 113. cpio Archive File Data Format
Field Name Length (in octets) Interpretation
___________________________________________
c_ledata c_lesize Data
If the c_lesize eld of the header has the value 0 (zero), then the le is empty.
A header denoting the lename TRAILER!!! indicates the end of the archive; what follows this
header is undened.
Only regular les contain data that can be restored. FIFO special les, directories, and the trailer
are archived with the c_lesize eld of the header equal to 0 (zero); these objects are restored
with the pax utility as directories and FIFOs.
527186-003 Hewlett-Packard Company 115