Date: Wed, 12 May 1999 10:03:11 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Alain Magloire cc: djgpp-workers AT delorie DOT com Subject: Re: realpath() In-Reply-To: <199905111814.OAA22310@mccoy2.ECE.McGill.CA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.)