| www.delorie.com/archives/browse.cgi | search |
| Date: | Wed, 12 May 1999 10:03:11 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca> |
| cc: | djgpp-workers AT delorie DOT com |
| Subject: | Re: realpath() |
| In-Reply-To: | <199905111814.OAA22310@mccoy2.ECE.McGill.CA> |
| Message-ID: | <Pine.SUN.3.91.990512100227.20820P-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp-workers AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Tue, 11 May 1999, Alain Magloire wrote: > > It should be easy to add a simple wrapper around _fixpath. Volunteers > > are welcome : > > Here is a crude workaround. Thanks. > if (stat(file_name, &stbuf) != 0) > return 0; `stat' is too expensive for this. Use `__file_exist' or `access' instead. (I think `access' is a better alternative for Unix-compatibility functions, since it doesn't fail for root directories and devices.)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |