delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/26/06:02:24

Message-ID: <39572B05.5CD0DF5A@softhome.net>
Date: Mon, 26 Jun 2000 12:05:57 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.73 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: Patch: chown() preparation for symlinks
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000626112524 DOT 6395D-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

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 -


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