Mail Archives: djgpp/2000/10/08/10:45:23
> 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.
- Raw text -