Describes the copy in/out (cpio) archive file.
The cpio utility backs up and recovers files. The files are saved on the backup medium in the cpio format.
When the cpio command is used with the -c flag, the header for the cpio structure reads as follows:
sscanf(Chdr,"%6ho%6ho%6ho%6ho%6ho%6ho%6ho%6ho%11lo%6ho%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);
Longtime and Longfile are equivalent to Hdr.h_mtime and Hdr.h_filesize, respectively. The contents of each file, and other items describing the file, are recorded in an element of the array of structures with varying lengths.
Note: Files saved with the -c flag must be restored with the -c flag.
When the -c flag of the cpio command is not used, the header structure contains the following fields:
For remote files, these fields contain the ID after reverse translation:
The last record of the archive always contains the name TRAILER!!!. Special files, directories, and the trailer are recorded with the h_filesize field equal to 0.
The cpio command, find command.
The fclear subroutine, truncate or ftruncate subroutine, mknod subroutine, open, openx, or creat subroutine, pipe subroutine, scanf, fscanf, sscanf, wsscanf subroutine, utime subroutine, write, writex, writev, or writevx subroutine.
The Header Files Overview in AIX Version 4.3 Files Reference defines header files, describes how they are used, and lists several of the header files for which information is provided in this documentation.