16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

Appendix H. File Formats<br />

This information gives more detailed information on the formats of the files used by<br />

the shell commands. The file formats are:<br />

v cpio<br />

v magic<br />

v pax<br />

v queuedefs<br />

v tags<br />

v tar<br />

v utmpx<br />

v uucp<br />

cpio — Format of cpio archives<br />

Description<br />

You can use the cpio command to back up or restore files. The cpio command<br />

reads and writes either a compact binary format header or an ASCII format header.<br />

The tar command reads and writes headers in either the original TAR format from<br />

<strong>UNIX</strong> systems or the USTAR format defined by the P<strong>OS</strong>IX 1003.1 standard.<br />

The pax command reads and writes headers in any of the cpio formats.<br />

A cpio archive consists of one or more concatenated member files. Each member<br />

file contains a header optionally followed by file contents as indicated in the header.<br />

The end of the archive is indicated by another header describing an (empty) file<br />

named TRAILER!!.<br />

There are two types of cpio archives, differing only in the style of the header:<br />

v ASCII archives have totally printable header information; thus, if the files being<br />

archived are also ASCII files, the whole archive is ASCII.<br />

v By default, cpio writes archives with binary headers. However, binary archive<br />

files cannot usually be ported to other operating systems, so you should not use<br />

these.<br />

The information in an ASCII archive header is stored in fixed-width, octal (base 8)<br />

numbers padded with zeros on the left. Table 39 gives the order and field width for<br />

the information in the ASCII header:<br />

Table 39. Archive File: ASCII Header<br />

Field Width Field Name Meaning<br />

6 magic Magic number 070707<br />

6 dev Device where file resides<br />

6 ino I-number of file<br />

6 mode File mode<br />

6 uid Owner user ID<br />

6 gid Owner group ID<br />

6 nlink Number of links to file<br />

6 rdev Device major/minor for special file<br />

11 mtime Modify time of file<br />

6 namesize Length of filename<br />

11 filesize Length of file<br />

© Copyright IBM Corp. 1996, 2007 911

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!