Mail Archives: djgpp/2001/08/06/19:12:16
From: | "Boris Gaspic" <boris DOT gaspic AT am2 DOT ericsson DOT se>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Q: Long file names, djgpp 2.95.3 / WinNT 4.00 NTFS
|
Date: | Tue, 7 Aug 2001 00:33:57 +0200
|
Organization: | ericsson
|
Lines: | 28
|
Message-ID: | <9kn4vo$s4$1@newstoo.ericsson.se>
|
NNTP-Posting-Host: | red15174.scm.ericsson.se
|
X-Newsreader: | Microsoft Outlook Express 4.72.3612.1700
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3612.1700
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello,
I am new to djgpp. I am trying to write a program which
-must- use long file names on a WinNT 4.00 NTFS disk.
And I can't fopen() anything that's not 8.3. (a big problem
to me, since I'm dealing with thousands of files whose name
is a combination of two 32-bit database keys, and I must
access them knowing these keys...)
So it's about the fopen ("123456789.345678901", "rb");
Is there something I'm doing wrong? Am I -supposed-
to be able to use LFN in a shell on NT4.0? I can open the
files fine in the "123456~4.345" format, but nothing in
LFN. The printf ("%d\n", _USE_LFN); dumps a zero. (?!?)
Something I should change in DJGPP.ENV? (I use the original)
Or do I need a different libc or something?
I'd be pretty thankful for any solution which works on the
NT4.0 / NTFS, regardless if the same program would
later work on a different OS/FSYS combination or not.
Thank you,
Boris
- Raw text -