Date: Wed, 15 Jan 1997 13:40:00 +0200 (IST) From: Eli Zaretskii To: Scott Blachowicz cc: djgpp AT delorie DOT com Subject: Re: DJGPP w/long file name support In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 14 Jan 1997, Scott Blachowicz wrote: > and was wondering if anyone's done some work to get this to behave itself. > In my case, the DOS 'dir' command sees the LFNs, but not the DJGPP make or > find programs. What "LFN API" is that referring to? That's the LFN API exported by IFSMgr on Windows 95. These are functions of Int 21h specifically designed to make long filenames to DOS programs running from the DOS box. For instance, the LFN function for findfirst is called by issuing Int 21h with AX=714Eh. > I wrote a quicky > little program to use the DOS _findfirst() function and IT returns the > LFNs for me on both Win95 and NT 4.0. Did you compile it with DJGPP? If so, please post the code here. > If I'm decyphering things right, it > looks like the DJGPP libc code ends up going into dpmi_int() to get lfn > information (where _I_ get lost, being primarily a Unix programmer). `dpmi_int' just issues a real-mode Int 21h, so it's really a DOS call in disguise. > I really need to find a GNU make program that works (i.e. finds all my > files) on our Win95 and NT development platforms. Suggestions welcome! If NT 4.0 supports Int 21h function 71A0h (Get Volume Info), then programs compiled with DJGPP v2.01 will support LFN there automagically. If not, somebody should find out how can a DOS program access LFN on NT (e.g., how does NT Command.com does it when you type DIR?) and add that support to low-level libc functions in DJGPP, or at least post the information so others could add it.