From: utzoo!decvax!minow Newsgroups: net.unix-wizards Title: Temporary files Article-I.D.: decvax.341 Posted: Sat Nov 20 10:07:31 1982 Received: Sun Nov 21 02:50:24 1982 Unix implementors may be interested in a few features from Dec operating systems the permit flexible handling of temporary files without -- in general -- cluttering up your disk area. The following is mostly from memory, and may not be especially accurate: create_tentative_file("name") The file is created (equivalent to fopen("name", "w")). If your process exits without closing the file, it is tossed. Your process may also "reset" the channel, tossing the file. create_temp_file() A file is created with a filename whose format is recognized by the logout utility program. Logout deletes these files. If the channel is closed (rather than reset as noted above), the file will exist in the current directory -- useful for debugging. No filename is specified. reset_channel() Close a channel, but throw away a tentative file if one is open. reset_all_channels() Close down everything, retaining only the command terminal (RSTS does not have a built-in stdin/stdout redirection). By the way, RSTS/E has an eminently usable record locking mechanism, built into the operating system and not implemented by creating magic files. I was writing multi-key, multi-user ISAM update programs in Basic-Plus in 1974 (in about 150 rather unreadable lines of Basic). Martin Minow decvax!minow