Date: Thu, 23 Jan 1997 15:16:10 +0200 (IST) From: Eli Zaretskii To: Charles Sandmann cc: djgpp-workers AT delorie DOT com Subject: Re: `access' function and `prn' etc. In-Reply-To: <9701230046.AA12830@clio.rice.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 22 Jan 1997, Charles Sandmann wrote: > There should be a faster, less code-bloated way to do this than calling > findfirst? I'm not aware of any. No other file-oriented DOS function knows about devices *by name* except `_open' (and of course after you open the device you can call IOCTL by the handle). Since `access' already calls `findfirst' (for the case of the root directories which also fail `_chmod'), I think adding another call to it isn't too bad.