From: "Tim Van Holder" To: Subject: O_TEMPORARY and unlink() Date: Mon, 19 Feb 2001 18:33:03 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Reply-To: djgpp-workers AT delorie DOT com Ran across this in the glibc documentation today: The `unlink' function deletes the file name FILENAME. If this is a file's sole name, the file itself is also deleted. (Actually, if any process has the file open when this happens, deletion is postponed until all processes have closed the file.) Seems to me that this fits in nicely with the O_TEMPORARY support (although well-behaved programs will usually close a file before unlinking it).