delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/01/23/08:22:29

Date: Thu, 23 Jan 1997 15:16:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
cc: djgpp-workers AT delorie DOT com
Subject: Re: `access' function and `prn' etc.
In-Reply-To: <9701230046.AA12830@clio.rice.edu>
Message-ID: <Pine.SUN.3.91.970123151309.562D-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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