.\" Copyright 1991 The Regents of the University of California.
.\" %sccs.include.redist.roff%
.\" @(#)cpioformat.5 5.3 (Berkeley) %G%
.Nd format of cpio archive
The header structure, when the
.Bd -literal -offset indent
char h_name[h_namesize rounded to word];
option is used, the header information is described by:
.Bd -literal -offset indent
sscanf(Chdr,"%6o%6o%6o%6o%6o%6o%6o%6o%11lo%6o%11lo%s",
&Hdr.h_magic, &Hdr.h_dev, &Hdr.h_ino, &Hdr.h_mode,
&Hdr.h_uid, &Hdr.h_gid, &Hdr.h_nlink, &Hdr.h_rdev,
&Longtime, &Hdr.h_namesize,&Longfile,Hdr.h_name);
The contents of each file are
recorded in an element of the array of varying lenght
structures, archive, together with other items describing
The length of the null-terminated path name
icluding the null byte, is
The last record of the archive always contains the name
TRAILER!!!. Special files, directories, and the trailer are
This file format is derived from the
sources which were contributed to the public domain by AT&T.