[comp.os.minix] 1.5.3 de and fopen

bill@chinet.chi.il.us (Bill Mitchell) (03/08/90)

Applying 1.5.3 upgrades to de, I found that it complained
about not being able to find /etc/termcap.  That turned out
to be because the malloc() call in fopen() was failing.
chmem =21000 fixed that.  de then wouldn't go to map visual
mode, complaining that I wasn't on the console.  That turned
out to be because opendir("/dev") failed.  chmem =23000
fixed that.  Looks like chmem in the Makefile needs changing.

While looking at the above, I noticed that fopen() had already
open()ed the file when malloc() failed.  fopen() return()ed
a NULL, indicating an error, without close()ing the file it had
open()ed.