delorie.com/archives/browse.cgi | search |
From: | "Laurynas Biveinis" <lauras AT softhome DOT net> |
Date: | Tue, 22 May 2001 22:27:11 +0200 |
To: | djgpp-workers AT delorie DOT com |
Subject: | Re: Add d_type member to struct dirent |
Message-ID: | <20010522222711.A2213@lauras.lt> |
Mail-Followup-To: | djgpp-workers AT delorie DOT com |
References: | <1659-Tue22May2001182402+0300-eliz AT is DOT elta DOT co DOT il> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.15i |
In-Reply-To: | <1659-Tue22May2001182402+0300-eliz@is.elta.co.il>; from eliz@is.elta.co.il on Tue, May 22, 2001 at 06:24:03PM +0300 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> + /* This could or could not be a symlink. Since we don't want > + to pay the price of finding out, we return DT_UNKNOWN, and > + the application is supposed to stat the file in response. */ > + dir->de.d_type = DT_UNKNOWN; This scenario in comment isn't the fastest one - the fastest way to check out for symlinkiness is __internal_readlink(), not *stat(). So if application really stat unknown files, I suggest doing __internal_readlink() here. Laurynas
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |