ack/lang/cem/libcc.ansi/stdio
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
..
clearerr.c Header --> Id 1994-06-24 14:02:31 +00:00
data.c Header --> Id 1994-06-24 14:02:31 +00:00
doprnt.c Add support for snprintf and vsnprintf. Try and make the return value a bit 2013-05-29 17:10:58 +01:00
doscan.c Cleaned up and enabled the support for conditionally emitting the floating-point stdio code. 2007-04-27 22:41:39 +00:00
ecvt.c Cleaned up and enabled the support for conditionally emitting the floating-point stdio code. 2007-04-27 22:41:39 +00:00
fclose.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fdopen.c Build fdopen(), hypot(), putenv() in libc. 2017-10-28 13:33:57 -04:00
feof.c Header --> Id 1994-06-24 14:02:31 +00:00
ferror.c Header --> Id 1994-06-24 14:02:31 +00:00
fflush.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fgetc.c Header --> Id 1994-06-24 14:02:31 +00:00
fgetpos.c Header --> Id 1994-06-24 14:02:31 +00:00
fgets.c Header --> Id 1994-06-24 14:02:31 +00:00
fileno.c Header --> Id 1994-06-24 14:02:31 +00:00
fillbuf.c Don't check ferror(fp) when reading fp. 2017-10-28 16:20:48 -04:00
fltpr.c Cleaned up and enabled the support for conditionally emitting the floating-point stdio code. 2007-04-27 22:41:39 +00:00
flushbuf.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fopen.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fprintf.c Header --> Id 1994-06-24 14:02:31 +00:00
fputc.c Header --> Id 1994-06-24 14:02:31 +00:00
fputs.c Header --> Id 1994-06-24 14:02:31 +00:00
fread.c Header --> Id 1994-06-24 14:02:31 +00:00
freopen.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fscanf.c Header --> Id 1994-06-24 14:02:31 +00:00
fseek.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fsetpos.c Header --> Id 1994-06-24 14:02:31 +00:00
ftell.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
fwrite.c Header --> Id 1994-06-24 14:02:31 +00:00
getc.c Header --> Id 1994-06-24 14:02:31 +00:00
getchar.c Header --> Id 1994-06-24 14:02:31 +00:00
gets.c Header --> Id 1994-06-24 14:02:31 +00:00
icompute.c Header --> Id 1994-06-24 14:02:31 +00:00
isatty.c Header --> Id 1994-06-24 14:02:31 +00:00
LIST
loc_incl.h Cleaned up and enabled the support for conditionally emitting the floating-point stdio code. 2007-04-27 22:41:39 +00:00
Makefile
perror.c Header --> Id 1994-06-24 14:02:31 +00:00
printf.c Header --> Id 1994-06-24 14:02:31 +00:00
putc.c Header --> Id 1994-06-24 14:02:31 +00:00
putchar.c Header --> Id 1994-06-24 14:02:31 +00:00
puts.c Header --> Id 1994-06-24 14:02:31 +00:00
remove.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
rename.c Most of libc builds now (missing malloc). 2016-08-08 23:55:47 +02:00
rewind.c Header --> Id 1994-06-24 14:02:31 +00:00
scanf.c Header --> Id 1994-06-24 14:02:31 +00:00
setbuf.c Header --> Id 1994-06-24 14:02:31 +00:00
setvbuf.c Removed unclear test 1995-12-18 11:02:18 +00:00
snprintf.c Add support for snprintf and vsnprintf. Try and make the return value a bit 2013-05-29 17:10:58 +01:00
sprintf.c Header --> Id 1994-06-24 14:02:31 +00:00
sscanf.c Header --> Id 1994-06-24 14:02:31 +00:00
tmpfile.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
tmpnam.c Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
ungetc.c Header --> Id 1994-06-24 14:02:31 +00:00
vfprintf.c Header --> Id 1994-06-24 14:02:31 +00:00
vprintf.c Header --> Id 1994-06-24 14:02:31 +00:00
vsnprintf.c Add support for snprintf and vsnprintf. Try and make the return value a bit 2013-05-29 17:10:58 +01:00
vsprintf.c Header --> Id 1994-06-24 14:02:31 +00:00