cpio and UNIX standards

Dominick Samperi samperi at mancol.UUCP
Thu Mar 3 08:31:24 AEST 1988


The man page on cpio format, cpio(4), is a little unclear. It states that
the size of a binary header is rounded to "word", and I assume this means
the natural word size for a particular machine, sizeof(int). But on several
machines that I checked (PC AT's, 3b2/400) it seems that the header size is
always rounded to be a multiple of 2, even when the word size is 4.
Furthermore, it seems that the size of the file data part is also rounded
to a multiple of 2, and this is not mentioned in the man page at all.
Complicating this even more is the fact that in AT&T's User Ref. Manual it
states that cpio assumes "a word size of 4 bytes."

I tried to find published standards for cpio and tar, but without success.
Can someone tell me where I can find information on such standards, POSIX
documents, etc.? Thanks.


-- 
Dominick Samperi, Manhattan College, NYC
    manhat!samperi at NYU.EDU           ihnp4!rutgers!nyu.edu!manhat!samperi
    philabs!cmcl2!manhat!samperi     ihnp4!rutgers!hombre!samperi
              (^ that's an ell)      uunet!swlabs!mancol!samperi



More information about the Comp.unix.wizards mailing list