QUERY: Coding convention

Guy Harris guy at rlgvax.UUCP
Tue Jul 3 14:25:20 AEST 1984


I agree that V7 and System III won't pose too much of a problem; if the
target system is System III, then either the System V version will work
(modulo bugs fixed between S3 and S5) or the System V version requires
S5 features, in which case it might be hard to get the software to work
on another version anyway (if it uses shared memory it'd probably require
a major rewrite not to use it, and be too slow once it was rewritten).
V7 may not go away - it has its partisans out there.  However, if SYSV is
taken to include System III in most cases, we might be able to define V7
as "everything that isn't BSD or System V".

I'd put in an additional plea - have "VMUNIX" mean "this system has lots
of address space which isn't too horribly expensive to use", and be used
to conditionalize things like "nroff" keeping its temporary file in memory -
and *not* be used to mean "Berkeley UNIX".  The USDL (or whatever it's being
called this week) will surely someday release a paging version of "USG" UNIX
(or make all the demand paging hardware on the 3B series look pretty silly),
and VMUNIX should apply there also.

Oh yes, while we're on the subject, could everybody out there please pick up
the "directory library" that was done for 4.1BSD in preparation for the
change to directory formats in 4.2BSD?  It works under all the non-4.2BSD
UNIX implementations (they all use the V7 file system except for V6, and
even V6 had the same directory format), and also opens the door to porting
software to "UNIX overlays" on top of OSes that don't treat directories like
regular files for reading, or that have yet *another* directory format.
(In other words, it makes directories into abstract objects, and permits you
to write code that handles directories which is independent (by and large)
of how directories are actually implemented.)  I'd also vote for putting
a "rename" routine in, for the same reason, but that's getting off the
topic.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy



More information about the Comp.lang.c mailing list