ack/lang/cem/libcc.ansi
George Koehler 75ae957c75 Don't check ferror(fp) when reading fp.
If feof(fp) or ferror(fp) was set, then our libc returned EOF for all
later reads without trying to read.  Our libc now behaves like BSD
(and probably Illumos and musl) by checking only feof(fp).  For
difference, glibc doesn't check feof(fp).

I described the difference between our libc and BSD libc in
https://sourceforge.net/p/tack/mailman/message/35430300/
2017-10-28 16:20:48 -04:00
..
assert Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
ctype Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
errno Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
headers Delete malloc.h and tgmath.h from libc. 2017-10-28 14:24:35 -04:00
locale Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
malloc Implement calloc() (accidentally got dropped with the malloc rewrite). 2016-11-23 22:16:25 +01:00
math Build fdopen(), hypot(), putenv() in libc. 2017-10-28 13:33:57 -04:00
misc Delete unused misc/getpw.c from libc. 2017-10-28 14:25:39 -04:00
setjmp Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
signal Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
stdio Don't check ferror(fp) when reading fp. 2017-10-28 16:20:48 -04:00
stdlib Build fdopen(), hypot(), putenv() in libc. 2017-10-28 13:33:57 -04:00
string Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
time Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
build.lua Build fdopen(), hypot(), putenv() in libc. 2017-10-28 13:33:57 -04:00
head_ac.e Disabled the code to throw signals on EM traps; this is the platform's job (and requires working signal support, which we may not have). 2007-04-29 20:46:48 +00:00
LIST changed order so that it works without ranlib 1990-06-12 11:21:40 +00:00
proto.make Header --> Id 1994-06-24 14:02:31 +00:00