delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/10/01/14:59:05

Date: Thu, 1 Oct 92 19:08:28 GMT
From: kuku AT acds DOT physik DOT rwth-aachen DOT de (Christoph Kukulies)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: a last on binary files and f2c

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019