Date: Sat, 21 Apr 2001 20:02:09 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Radical NetSurfer Message-Id: <9003-Sat21Apr2001200209+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (message from Radical NetSurfer on Sat, 21 Apr 2001 00:44:50 -0400) Subject: Re: Detecting File in Use? References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Radical NetSurfer > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 21 Apr 2001 00:44:50 -0400 > > How does one know if a file is ALREADY in USE by > some application BEFORE any actual attempt to open > or access that file? Why do you need that? Could you please explain the problem in more detail? Trying to open a file, detecting the failure to open, and looking at the value of `errno' to see what was the reason for the failure is the normal procedure, but you seem to imply that it somehow doesn't work for you.