Annotation of 43BSDReno/usr.bin/cpio/cpioformat.5, revision 1.1.1.1

1.1       root        1: .\"    @(#)cpio_format.5       5.2 (Berkeley) 3/29/88
                      2: .\"
                      3: .TH CPIO 5 "March 29, 1988"
                      4: .UC 7
                      5: .SH NAME
                      6: cpio - format of cpio archive
                      7: .SH DESCRIPTION
                      8: The header structure, when the -c option of cpio(1) is not used, is:
                      9: .sp 1
                     10: .nf
                     11:        struct {
                     12:                short   h_magic,
                     13:                                h_dev;
                     14:                ushort  h_ino,
                     15:                                h_mode,
                     16:                                h_uid,
                     17:                                h_gid;
                     18:                short   h_nlink,
                     19:                                h_rdev,
                     20:                                h_mtime[2],
                     21:                                h_namesize,
                     22:                                h_filesize[2];
                     23:                char    h_name[h_namesize rounded to word];
                     24:        } Hdr;
                     25: .sp 2
                     26: When the -c option is used, the header information is described by:
                     27: .sp
                     28:        sscanf(Chdr,"%6o%6o%6o%6o%6o%6o%6o%6o%11lo%6o%11lo%s",
                     29:                &Hdr.h_magic, &Hdr.h_dev, &Hdr.h_ino, &Hdr.h_mode,
                     30:                &Hdr.h_uid, &Hdr.h_gid, &Hdr.h_nlink, &Hdr.h_rdev,
                     31:                &Longtime, &Hdr.h_namesize,&Longfile,Hdr.h_name);
                     32: .fi
                     33: .sp
                     34: Longtime and Longfile are equivalent to Hdr.h_mtime and
                     35: Hdr.h_filesize, respectively.  The contents of each file are
                     36: recorded in an element of the array of varying lenght
                     37: structures, archive, together with other items describing
                     38: the file.  Every instance of h_magic contains the constant
                     39: 070707 (octal).  The itimes h_dev through h_mtime have
                     40: meanings explained in stat(2).  The length of the null-
                     41: terminated path name H_name, icluding the null byte, is
                     42: given by h_namesize.
                     43: .sp
                     44: The last record of the archive always contains the name
                     45: TRAILER!!!.  Special files, directories, and the trailer are
                     46: recorded with H_filesize equal to zero.
                     47: .SH SEE ALSO
                     48: cpio(1), find(1), stat(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.