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

cpio(4) OSS System Calls Reference Manual
NAME
cpio - Describes the extended cpio archive le format
SYNOPSIS
#include <cpio.h>
DESCRIPTION
The byte-oriented cpio archive le format is a series of entries, each entry made up of a header
that describes the le and the name of the le, followed by the contents of the le.
The format of the cpio header is described below.
Table 111. cpio Archive File Header Format
Header Field
Name
Length (in
octets)
ContentsInterpretation
____________________________________________________________________________
Identies the archive as transportable by
containing the value 070707
c_magic 6 Octal number
ID of the device containing the lec_dev 6 Octal number
File serial numberc_ino 6 Octal number
File type and access permissionc_mode 6 Octal number
User ID of the ownerc_uid 6 Octal number
Group ID of the ownerc_gid 6 Octal number
Number of links referencing the le at
the time the archive was created
c_nlink 6 Octal number
Not usedc_rdev 6 Octal number
Latest modication time of the le at
the time the archive was created
c_mtime 11 Octal number
Length of the pathname, including the
terminating null character
c_namesize 6 Octal number
c_filesize Byte length of the le data11 Octal number
114 Hewlett-Packard Company 527186-003