unix file system

lee at eel.UUCP lee at eel.UUCP
Tue Jul 30 12:32:00 AEST 1985


Some folks have mentioned using the first words of the file to contain
a magic number and the record size for FORTRAN record-oriented files.
Before anyone goes off and reproduces the old ar and sccs mistakes,
the first few bytes should be used for an ASCII string identifying the
file as FORTRAN, giving the record size in an ASCII digit string, and
ending in a newline.  This makes straight printing, copying, and other
processing of the file much easier than if it has binary data in it.

E.g.
	<fortran!> 1722 `

in analogy with the portable ar(1) format.  The digit string could be
made fixed width in order to make it easy for FORTRAN to know how far
into the Unix file to lseek to find the first byte of the FORTRAN file.



More information about the Comp.unix mailing list