Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site minnie.UUCP Path: utzoo!linus!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!psivax!nrcvax!minnie!chris From: chris@minnie.UUCP (Chris Grevstad) Newsgroups: net.unix-wizards Subject: undoing unlink(2)? Message-ID: <173@minnie.UUCP> Date: Thu, 27-Mar-86 18:17:56 EST Article-I.D.: minnie.173 Posted: Thu Mar 27 18:17:56 1986 Date-Received: Mon, 31-Mar-86 08:11:16 EST Reply-To: chris@minnie.UUCP (Chris Grevstad) Organization: The Zoo Lines: 25 Running 4.2BSD on Integrated Solutions 68000 machine. In many programs, there is a need of a temporary file that goes away when the program exits. This is usally accomplished by unlinking the file after a successful open() or fopen(). What I am interested in is a way to undo the unlink() or in some manner relink the file into the directory. I understand that VMS has a flag to open() that indicates the file should be unlink on close(). That would suit me just fine here. Please E-Mail any suggestions. Thanks. -- Chris Grevstad {sdcsvax,hplabs}!sdcrdcf!psivax!nrcvax!chris ucbvax!calma!nrcvax!chris ihnp4!nrcvax!chris "No, I'll tell you the truth. She was a striptease dancer. I saw her first in an obscene movie, one of those things in obscenacolor. Naked of course. They had a Kodiak bear strapped to a table, muzzled..."