www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/15/06:49:09

Date: Wed, 15 Jan 1997 13:40:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Scott Blachowicz <scott AT statsci DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP w/long file name support
In-Reply-To: <vmwwthgkav.fsf@statsci.com>
Message-ID: <Pine.SUN.3.91.970115132849.15171D-100000@is>
MIME-Version: 1.0

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. 

- Raw text -


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