*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> cpio (4)              


 cpio(4)                                                             cpio(4)

 NAME    [Toc]    [Back]
      cpio - format of cpio archive

 DESCRIPTION    [Toc]    [Back]
      The header structure, when the -c option of cpio is not used (see
      cpio(1)), is:

           struct {
               short   c_magic,
               ushort  c_ino,
               short   c_nlink,
               char    c_name[c_namesize rounded to word];
           } Hdr;

      When the cpio -c option is used, the header information is described


      Longtime and Longfile are equivalent to Hdr.c_mtime and
      Hdr.c_filesize, respectively.  The contents of each file are recorded
      together with other items describing the file.  Every instance of
      c_magic contains the constant 070707 (octal).  The items c_dev through
      c_mtime have meanings explained in stat(2).  The length of the nullterminated
 path name c_name, including the null byte, is given by

      The last record of the archive always contains the name TRAILER!!!.
      Directories and the trailer are recorded with c_filesize equal to

      It will not always be the case that c_dev and c_ino correspond to the
      results of stat(), but the values are always sufficient to tell
      whether two files in the archive are linked to each other.

      When a device special file is archived by HP-UX cpio (using the -x
      option), c_rdev contains a magic constant which is dependent upon the
      implementation doing the writing.  H_rdev flags the device file as an
      HP-UX 32-bit device specifier, and c_filesize contains the 32-bit
      device specifier (see stat(2)).  If the -x option is not present,

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 cpio(4)                                                             cpio(4)

      special files are not archived or restored.  Non-HPUX device special
      files are never restored.

 SEE ALSO    [Toc]    [Back]
      cpio(1), find(1), stat(2).

      cpio: XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
tar HP-UX format of tar tape archive
tar Tru64 Archive file format
pax Tru64 Archive file format
ar Tru64 Archive (library) file format
ar HP-UX common archive file format
ar IRIX archive (library) file format
ranlib NetBSD a.out archive (library) table-of-contents format
ldahread Tru64 read the archive header of a member of an archive file
ldahread IRIX read the archive header of a member of an archive file
st_obj_close Tru64 routines to check whether an object is an archive and to process object files within an archive
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service