🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #990

tar or cpio? N.064

#990
From: Moderator, John Quarterman
Date: Mon, 11 May 1987 06:08
41 lines
1671 bytes
N.064	April 23, 1987	``Comments on 1003.1 N.048,'' Dominic Dunlop.

Comments on 1003.1 N48 (addition of cpio format to 1003.1 chapter 10)

1.
The structure proposed is archaic, in that it uses
	short	h_mtime[2]	and
	short	h_filesize[2]
yet says nothing about the ordering of the half-words
in the array.  This allows the possibility that different
implementations could make different "big endian" vs.
"little endian" decisions on the same underlying
architecture.

	Proposal: replace declarations above with
		long	h_mtime	and
		long	h_filesize
				or with
		time_t	h_mtime
		off_t	h_filesize

(Former probably more compatible with "shape" of
existing structgure; latter, using same types as
corresponding fields in struct stat, arguably
more correct (this argument could be extended
to other fields in struct Hdr as well)).

2.
Scanf format is incorrect.  It should be

		"%6ho%6ho%6ho%6ho%6ho%6ho%6ho%6ho%11lo%6ho%11lo%s"

(As I know to my cost, format published by AT&T
does not work on architectures where
		sizeof(int) == sizeof(long)
)

				Dominic Dunlop	4/23/87

Volume-Number: Volume 11, Number 15
Technical Details
Message-ID: <8012@ut-sally.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!std-unix
References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!std-unix
From: std-unix@ut-sally.UUCP (Moderator, John Quarterman)
Newsgroups: comp.std.unix
Subject: tar or cpio?  N.064
Message-ID: <8012@ut-sally.UUCP>
Date: Mon, 11-May-87 02:08:01 EDT
Article-I.D.: ut-sally.8012
Posted: Mon May 11 02:08:01 1987
Date-Received: Wed, 13-May-87 00:46:58 EDT
References: <8006@ut-sally.UUCP> <8001@ut-sally.UUCP>
Lines: 41
Approved: jsq@sally.utexas.edu (Moderator, John Quarterman)