Mail Archives: djgpp/1998/06/23/19:17:52
Eli Zaretskii wrote:
>
> On Tue, 23 Jun 1998, David Monksfield wrote:
>
> > It appears that, under Win95, stat() and chmod() quite happily
> > handle long filenames but the _dos_* functions refuse to, even
> > with LFN=y set.
>
> _dos_* functions don't support LFN, by design. The docs just forget to
> mention that (this is corrected in the docs of the alpha v2.02 release).
>
> Use _chmod if you need to get/set the DOS attributes for long file names.
Err... but he wanted to get/set things like the system bit, and `chmod'
won't do those.
I guess what's needed here is a way to get the 8+3 alias for a
long-named file, but I don't see a DJGPP function to do that. The
closest thing (`_lfn_gen_short_fname') just tries to approximate
Windows' algorithm
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -