www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/17/05:26:44

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: "DJGPP-Workers" <djgpp-workers AT delorie DOT com>
Subject: Our unlink() isn't POSIX
Date: Sun, 17 Jun 2001 11:26:53 +0200
Message-ID: <CAEGKOHJKAAFPKOCLHDIEEFMCEAA.tim.van.holder@pandora.be>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019