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 file format
SYNOPSIS
#include <cpio.h>
DESCRIPTION
The byte-oriented cpio archive file format is a series of entries, each entry made up of a header
that describes the file and the name of the file, followed by the contents of the file.
The format of the cpio header is described below.
Table 11−1. cpio Archive File Header Format
Header Field
Name
Length (in
octets)
ContentsInterpretation
____________________________________________________________________________
Identifies the archive as transportable by
containing the value 070707
c_magic 6 Octal number
ID of the device containing the filec_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 file at
the time the archive was created
c_nlink 6 Octal number
Not usedc_rdev 6 Octal number
Latest modification time of the file 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 file data11 Octal number
11−4 Hewlett-Packard Company 527186-003