From: "Tim Van Holder" To: "DJGPP-Workers" Subject: Our unlink() isn't POSIX Date: Sun, 17 Jun 2001 11:26:53 +0200 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 I ran across a problem when working on lclint: it assumes that it can simply unlink all it's temporary files without closing them first; this is a valid assumption according to the POSIX spec, but isn't true for our implementation. Is it possible for us to know if we have a given file open? If so, would it be possible for unlink to set the 'remove on close' flag? A new flag is probably required, as the file should only be removed if _all_ its fds are closed (even those opened after the unlink call). If this is not feasible, at the very least the docs for unlink should be amended to say how our implementation differs from the POSIX spec.