Mail Archives: djgpp/1997/02/11/02:39:22
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 -