Mail Archives: djgpp/2002/05/07/11:24:55
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f
|
Message-ID: | <016f01c1f5da$d87e0e20$0200a8c0@peridot>
|
From: | "Peter Cassidy" <peter DOT cassidy AT rocksoft DOT com>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Hacking long file names from pure DOS
|
Date: | Wed, 8 May 2002 00:50:21 +0930
|
Organization: | Rocksoft Limited
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 5.50.4522.1200
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200
|
Reply-To: | djgpp AT delorie DOT com
|
NNTP down so posting here:
Hi All,
I have a requirement to see and set long file names from pure DOS booted
from a 'recovery disk' floppy.
I have to demonstrate something to a customer by the weekend, so we're quite
happy to pay money to get fast help on this.
The DOS boot disk comes from "Bart's Boot Disks"
(http://membres.lycos.fr/jfb/gb/TCPIP.htm and http://www.nu2.nu/bootdisk)
(built from W98, DOS 4.10.2222) and the long file name support from LFNDOS
1.06 (http://saturn.spaceports.com/~dosuser/). DPMI is provided by
CWSDMPI.EXE.
I'm testing with a mickey mouse program:
#include <stdio.h>
#include <dirent.h>
main()
{
DIR *d = opendir(".");
struct dirent *de;
printf("Hello all parallel universes.\n");
while (de = readdir(d))
puts(de->d_name);
closedir(d);
}
which is compiled under gcc from djgpp 203.
I run CWSDPMI -s-
then test LFNDOS with the DOS DIR command. Before LFNDOS, no long names;
after LFNDOS, long file names appear. So far so good.
But when I run 'mickey' I get a SEGV after the printf. i.e. it's opening
the dir but not reading it. Any ideas anyone?
Sorry I haven't got all the config detail in this post but it's late at
night here in Oz, and I'm going to bed, and meanwhile y'all can tell me
which important information I left out. Also please forgive the newbie
question; I only started using djgpp/lfndos etc. yesterday!
Peter
--
Peter Cassidy (peter DOT cassidy AT rocksoft DOT com), +61 412 283 366.
CTO, Rocksoft Limited.
Ph: +61 8 8232 6262 Fax: +61 8 8232 6264 http://www.rocksoft.com/
Protect your files with Veracity data integrity: http://www.veracity.com/
- Raw text -