Mail Archives: djgpp/1992/10/01/14:59:05
I finally worked around the problem with binary vs. text mode files
in the f2c library. the f2c open.c err.c endfile.c routines use
MSDOS #ifdefs which may be fine for MSC or TC but will fail when used
with DJGPP. I have not checked which release tpf2c100 actually is
(compared to the latest from research.att.com, which I am using). I
can only say so much: f2c uses open(path,flag) while the unix (djgpp)
call uses open(path,flags,mode). For some obscure reason I have not
yet figured out, the open in libc does strange things when the 3rd parameter is
not passed (garbage on the stack). This lead to the behaviour that the
example I posted two days ago failed in dependence of the number of files.
Accidently it failed in the range greater than 20.
The 20 file limit problem has already been solved very early before
1.05 came out by Bill Metzenhen, I believe. Bill, are you listening?
--Chris
- Raw text -