Mail Archives: djgpp-workers/2000/06/26/06:02:24
Eli Zaretskii wrote:
>
> On Mon, 26 Jun 2000, Laurynas Biveinis wrote:
>
> > Or maybe it is better to optimize access() for F_OK case?
>
> We can't, unless I'm missing something. AFAIK, all the added complexity
> *is* for the F_OK case.
As I can see, all the complexity there is for the case when _chmod()
fails, for root directories and device files. So the performance loss
should be pretty small for real applications.
BTW, should chown() succeed for those root directories and device
files? If yes, then access() should be used there anyway.
Laurynas
- Raw text -