Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!gwyn@BRL.ARPA
From: gwyn@BRL.ARPA (VLD/VMB)
Newsgroups: net.unix-wizards
Subject: Re:  /tmp -- the permanent discussion
Message-ID: <2553@brl-tgr.ARPA>
Date: Tue, 29-Oct-85 04:11:12 EST
Article-I.D.: brl-tgr.2553
Posted: Tue Oct 29 04:11:12 1985
Date-Received: Wed, 30-Oct-85 07:39:52 EST
Sender: news@brl-tgr.ARPA
Lines: 7

A solution to the left-over-upon-abnormal-termination temp file,
which works well most of the time, is tmpfile(3S), distributed with
UNIX System V.  If you don't have one of these, it's not hard to
reimplement.  In case you're not familiar with this function, it
creates a temp file with a unique name, opened for stdio "w+",
and arranges for it to be deleted when the program terminates (by
pre-unlinking it).  I find it very handy.