/tmp versus temporary file types

Arnold Robbins arnold at gatech.CSNET
Mon Oct 21 12:20:12 AEST 1985


Here's my two cents worth (I'm a little behind in my Unix-wizards, if some one
else has beat me to the idea, I apologize).

Why not do something like

	fd = open ("/dev/temp", O_RDWR);
	/* O_CREAT implied by the use of /dev/temp */

The kernel just grabs a fresh inode off whatever device /tmp is mounted on,
or the "temp device" could be a configurable parameter in the same way that
the swap device is. Then flink() or whatever ought to work properly as well.

In other words, /dev/null is the null device, /dev/swap the swap device, so
why not a /dev/temp for temporary files?
-- 
Arnold Robbins
CSNET:	arnold at gatech	ARPA:	arnold%gatech.csnet at csnet-relay.arpa
UUCP:	{ akgua, allegra, hplabs, ihnp4, seismo, ut-sally }!gatech!arnold

Hello. You have reached the Coalition to Eliminate Answering Machines.
Unfortunately, no one can come to the phone right now....



More information about the Comp.unix.wizards mailing list