ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/29/22:17:56

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Mon, 29 Apr 2002 12:08:30 -0600
To: djgpp AT delorie DOT com
Cc: ams AT speedy DOT ludd DOT luth DOT se
Subject: Re: LFN on pure DOS
Message-ID: <20020429180830.GA13295@taniwha.org>
Mail-Followup-To: bill, djgpp AT delorie DOT com, ams AT speedy DOT ludd DOT luth DOT se
References: <c21a43ff DOT 0204241352 DOT 74858db3 AT posting DOT google DOT com> <20020425010620 DOT GA17090 AT taniwha DOT org> <1019895346 DOT 635577 AT queeg DOT ludd DOT luth DOT se>
Mime-Version: 1.0
In-Reply-To: <1019895346.635577@queeg.ludd.luth.se>
User-Agent: Mutt/1.3.28i
From: Bill Currie <bill AT taniwha DOT org>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, Apr 27, 2002 at 08:15:46AM +0000, Martin Str|mberg wrote:
> Bad news: it seems to be totally broken used in conjuction with DJGPP
> programs. I booted a floppy with MSDOZE and ran LFN.EXE. "ls -altr"
> reports some ENOENTs and only show three files of many (~25).

iirc, there's an enviroment variable you can set to make djgpp not downcase
short filenames (I'm pretty sure I had to use that). My lfn driver asumes
foo.exe is a long-name because it is both case preserving /and/ case
sensitive. There are some variables you can tweak in lfn.asm to control
behaviour, though:

lfn_only_flag:
        .db     1           ; default to matching long file name only (unlike w95)
lfn_case_flag:
		.db     1           ; default to case sensitive matching


> Good news: it almost compiles with CVS version of djasm. You only have
> to change two lines in lfn_file.inc, "shrdd" -> "dshr".

Cool. There were some issues over my choice of shrdd as the opcode. It was
chosen to be closer to intel asm while fitting into djasm's scheme, but it was
confusing.

I'll have to update my local djasm (not that I've touched it recently: too
busy with quakeforge over the last couple of years) and my code that uses it.

HTH
Bill
-- 
Leave others their otherness. -- Aratak

- Raw text -


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