delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/11/02:39:22

Date: Tue, 11 Feb 1997 09:31:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andy Eskilsson <x-aes AT telelogic DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: Detecting longfilename support..
In-Reply-To: <ksk9ogc00x.fsf@telelogic.se>
Message-ID: <Pine.SUN.3.91.970211092822.4172H-100000@is>
MIME-Version: 1.0

On 10 Feb 1997, Andy Eskilsson wrote:

> Is it possible, during runtime, to detect if long filenames is
> supported (the LFN=y is set in the djgpp.env file)

Testing for LFN=y in the environment is not enough to know whether LFN is 
supported.  You can set LFN=y on plain DOS and not get long filenames; or 
you could forget to LFN=y on Windows 95 and still get long filenames 
supported.  The macro `_USE_LFN' (defined on <fcntl.h>) returns 1 if you 
can use long filenames, 0 otherwise.  The macro and the function it calls 
are documented in the DJGPP libc docs under `_use_lfn'.

- Raw text -


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