summaryrefslogtreecommitdiff
path: root/static/unix-v10/man5/cpio.5
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man5/cpio.5
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man5/cpio.5')
-rw-r--r--static/unix-v10/man5/cpio.587
1 files changed, 87 insertions, 0 deletions
diff --git a/static/unix-v10/man5/cpio.5 b/static/unix-v10/man5/cpio.5
new file mode 100644
index 00000000..b198de39
--- /dev/null
+++ b/static/unix-v10/man5/cpio.5
@@ -0,0 +1,87 @@
+.TH CPIO 5
+.CT 1 comm_users
+.SH NAME
+cpio \- format of cpio archive
+.SH DESCRIPTION
+The archived files are recorded consecutively, each
+preceded by a
+.BR header .
+The header
+structure, when the
+.B \-c
+option of
+.IR cpio (1)
+is not used, is:
+.PP
+.EX
+.ta \w'short 'u +\w'ushort 'u
+typdef unsigned short ushort;
+struct {
+ short h_magic,
+ h_dev;
+ ushort h_ino,
+ h_mode,
+ h_uid,
+ h_gid;
+ short h_nlink,
+ h_rdev,
+ h_mtime[2],
+ h_namesize,
+ h_filesize[2];
+ char h_name[h_namesize rounded to word];
+} Hdr;
+.EE
+.PP
+When the
+.B \-c
+option is used, the
+.B header
+information is printable, as described by the
+.IR printf (3)
+call
+.IP
+.EX
+printf(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
+.EE
+.PP
+.L Longtime
+and
+.L Longfile
+are equivalent to
+.L Hdr.h_mtime
+and
+.LR Hdr.h_filesize ,
+respectively.
+Every instance of
+.L h_magic
+contains the octal constant
+.LR 070707 .
+The items
+.L h_dev
+through
+.L h_mtime
+have meanings explained in
+.IR stat (2).
+The length of the null-terminated path name
+.LR h_name ,
+including the null byte,
+is given by
+.LR h_namesize .
+.PP
+The last element
+of the archive
+is a dummy entry for the name
+.BR TRAILER!!! ,
+with padding to a multiple of 512 bytes.
+Special files, directories, and the trailer are recorded
+with
+.L h_filesize
+equal to zero.
+.SH "SEE ALSO"
+.IR cpio (1),
+.IR find (1),
+.IR stat (2).
+.\" @(#)cpio.4 5.2 of 5/18/82