Commit graph

9 commits

Author SHA1 Message Date
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
dtrg
1c83baa702 Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
ceriel
1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
ceriel
b73eb4057e Fix: set error flag in some error cases 1993-10-07 09:44:03 +00:00
eck
472ee0cea4 always flush line-buffered output when filling an input buffer 1990-06-21 11:13:23 +00:00
eck
90819543f6 changed system-calls to avoid namespace pollution 1990-01-22 11:13:26 +00:00
eck
2f92b46a9d made a lot of changes 1989-12-18 15:04:14 +00:00
eck
27d7d5ed68 various fixes and improvements 1989-06-26 10:37:05 +00:00
eck
69f02d8abc Initial revision 1989-05-30 13:34:25 +00:00