From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: LFNs work except with dos_findfirst/next Date: Sat, 10 Jan 1998 22:52:23 +0000 Organization: None Distribution: world Message-ID: <9aJsyNAnu$t0Ew29@talula.demon.co.uk> References: <698smk$ppc AT camel19 DOT mindspring DOT com> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Sam Barjoud writes: >_USE_LFN reports 1, and fopen()/fwrite() can access and create files >with lfns....but dos_findfirst and dos_findnext return truncated >filenames. Use the regular findfirst() and findnext() functions instead. The _dos_findfirst() function is just a raw DOS call, so it doesn't support any niceties like long filenames. I presume this function is included for compatibility with other DOS compilers, since it is located in the src/libc/dos/compat/ directory, but I can't see any reason why you would need to use it. -- iShawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ "Pigs use it for a tambourine" - Frank Zappa