OLDAR(5) COMMAND REFERENCE OLDAR(5) NAME oldar - old archive (library) file format DESCRIPTION The old archive file format is not supported by current software. These files may be converted to the new format by arcv(1). Programs that work with archives know how to distinguish the old and new archive files, and usually print a message saying that the file is in the old format. Old archive files are those from the 32v and Third Berkeley edition archive programs. These files have the magic number (unsigned short) 0177545 at the start, followed by the constituent files, each preceded by a file header. The header layout is: struct oar_hdr { char oar_name[14]; short oar_sdate[2]; char oar_uid; char oar_gid; unsigned short oar_mode; short oar_ssize[2]; }; The name is a blank-padded string. The date is the modification date of the file at the time of its insertion into the archive. The date and size fields should be converted to long values for use. They are arrays of short values in the structure in order to make the structure elements contiguous for use with read(2). There is no provision for empty areas in an archive file. Unlike the new archive format, the encoding of the header is not portable across machines, and files do not have to begin on an even boundary. CAVEATS Old format files must be converted to the new archive format before use. This must be done by using arcv(1) and not by editing the file, since this may result in unrecoverable data. The programs more(1) and ex(1) do not allow viewing or editing of old format archives. SEE ALSO ar(1), arcv(1), and ar(5). Printed 5/12/88 1
%%index%% na:264,93; de:357,1559; ca:1916,405; se:2321,134; %%index%%000000000083