home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!uunet.ca!canrem!telly!robohack!becker!bdb
- From: bdb@becker.GTS.ORG (Bruce Becker)
- Subject: Re: Reading 386bsd dist files (bin,src,etc)
- Message-ID: <1992Aug11.235434.22128@becker.GTS.ORG>
- Keywords: byte swapping problem
- Organization: G. T. S., Toronto, Ontario
- References: <1992Aug6.224348.16769@noose.ecn.purdue.edu>
- Distribution: usa
- Date: Tue, 11 Aug 1992 23:54:34 GMT
- Lines: 28
-
- In article <1992Aug6.224348.16769@noose.ecn.purdue.edu> tgt@neon.ecn.purdue.edu (Conan the Librarian) writes:
- |Attempting to use cpio to extract the files in the various
- |386bsd dists, I ran into a byte swapping problem (running on both a Gould
- |and a SUN3). CPIO generates the wonderfully-descript error message "Out of
- |phase -- get help" and then exits. (Someday, I aspire to write code with
- |lots of abstruse error messages like this... :-)
- |
- |Since I really want to look at the srcdist stuff off-line from my PC
- |(not enough memory yet!) but couldn't find any flag to massage cpio into
- |appropriate behavior on the Gould or the SUN (so much for archive portability)
- |I wrote the following program to do the necessary header "fix" (26 shorts in
- |each cpio header need to be byte-swapped). I've tested it on srcdist on my
- |SUN3, and it appears to work properly (I am extracting the src files as I
- |write this).
-
-
-
- So, why in the world isn't everybody using
- "cpio -oc" (or "cpio -o -Hodc" for SysVr4)
- to create cpio archives? It's specifically
- for this type of problem that it exists...
-
-
- --
- ,u, Bruce Becker Toronto, Ontario
- a /i/ Internet: bdb@becker.gts.org Uucp: ...!web!becker!bdb
- `\o\-e "The word 'AT&T' is made up of letters, which are the
- _< /_ intellectual property of Vanna White" - A. Coopersmith
-