From: jbfraleigh AT hotmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP, FreeDOS and file access Date: Sun, 08 Oct 2000 14:19:13 GMT Organization: Deja.com - Before you buy. Lines: 38 Message-ID: <8rpvov$220$1@nnrp1.deja.com> References: <8rkmnt$8sq$1 AT nnrp1 DOT deja DOT com> <8rl79u$mce$1 AT nnrp1 DOT deja DOT com> <2110-Sat07Oct2000131727+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: 64.252.4.94 X-Article-Creation-Date: Sun Oct 08 14:19:13 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) X-Http-Proxy: 1.1 x58.deja.com:80 (Squid/1.1.22) for client 64.252.4.94 X-MyDeja-Info: XMYDJUIDjbfraleigh To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Is it possible that FreeDOS has some long-file-name emulation in it? > If so, please try to turn it off, and see if that helps. The only > real difference between findfirst and _dos_findfirst is that the > latter doesn't try to use the long file-name API, even if it is > present. Otherwise, the two functions do the same. As far as I know, FreeDOS does not have LFN support. I suspect the difference between _dos_findfirst and findfirst goes deeper than just LFN support -- They use different file control structures, which indicates to me that there's probably something else going on. I should probably take a peek at the source code for these two functions. > > > ---- code ---- > > FILE *fp; > > > > fp = fopen("TEMP.TMP", "r"); > > if (!fp) { > > printf("We have a problem."); > > exit(1); > > } > > > > ---- end ----- > > > > When I run this code from a dos window (under Windows 98) or from a > > Windows 98 boot disk, it works fine. When I run it from my FreeDOS > > boot disk, I receive the error message. > I suppose I should also take a peek at the fopen source code to see what's going on. I think I'm also going to try compiling this same snippet of code under Borland and see if I have the same problem. This should at least tell me whether it's a FreeDOS issue or a DJGPP issue. Sent via Deja.com http://www.deja.com/ Before you buy.