| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| From: | "Peter Cassidy" <peter DOT cassidy AT rocksoft DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Hacking long file names from pure DOS |
| Date: | Wed, 8 May 2002 00:45:47 +0930 |
| Lines: | 57 |
| Organization: | Rocksoft Limited |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4522.1200 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
| NNTP-Posting-Host: | cu1583.adelaide.adsl.on.net |
| Message-ID: | <3cd86fd5@duster.adelaide.on.net> |
| X-Trace: | duster.adelaide.on.net 1020817365 cu1583.adelaide.adsl.on.net (8 May 2002 09:52:45 +0950) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |