Leisner.Henr@xerox.com (Marty) (04/16/89)
I'm trying to move distribution disks onto a sun386i.
I'm going to try reading an image of the disk onto dos, ftping onto the sun
and then running readfs.
I've been able to readfs onto ms/dos, but I lose the last few letters of
the file names and the file permissions, etc.
So I got some uncompressed archives from the distribution disks onto the
sun, ran
file *.a and got:
comm1.a: old archive
comm2.a: old archive
comm3.a: old archive
The suns ar won't touch them.
So I figure, "let's get the minix ar. I've been able to port it to dos
pretty painlessly to DOS."
So I tried both gnu C v1.33 and Sun C.
Turns out they both won't want to align this structure the way it seems to
need to be aligned:
struct ar_hdr {
char ar_name[14];
long ar_date; /* not Intel format */
char ar_uid;
char ar_gid;
int ar_mode;
long ar_size; /* not Intel format */
};
Anyone have a working V7 ar for the sun? Also what's a good way of
handling the structure alignment problems between various C
compilers/processors.
Help!!!
marty
ARPA: leisner.henr@xerox.com
GV: leisner.henr
NS: martin leisner:wbst139:xerox
UUCP: hplabs!arisia!leisner