* Convert old to new archive format
tmp
= mktemp("/tmp/arcXXXXX");
printf("arcv: cannot open %s\n", fil
);
printf("arcv: cannot open temp\n");
read(f
, (char *)&b
.magic
, sizeof(b
.magic
));
printf("arcv: %s not archive format\n", fil
);
write(tf
, (char *)&b
.magic
, sizeof(b
.magic
));
i
= read(f
, (char *)&oh
, sizeof(oh
));
nh
.ar_name
[i
] = oh
.oname
[i
];
write(tf
, (char *)&nh
, sizeof(nh
));
while((i
=read(tf
, b
.buf
, 512)) > 0)