1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/lib/libc
Andrey A. Chernov e54bc118c1 Add more EOVERFLOW checks.
When file offset tends to be negative due to internal and ungetc buffers
additions counted, try to discard some ungetc data first, then return EBADF.
Later one can happens if lseek(fileno(fd),...) called f.e. POSIX says that
ungetc beyond beginning of the file results are undefined, so we can just
discard some of ungetc data in that case.

Don't rely on gcc cast when checking for overflow, use OFF_MAX.

Cosmetique.
2001-08-30 19:54:04 +00:00
..
alpha
amd64 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
compat-43 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
db Mark some functions as __printflike() and/or taking const char * arguments 2001-08-20 12:53:36 +00:00
gen Fixed namespace pollution related to `warn' in libc (but not in other 2001-08-29 13:52:27 +00:00
gmon Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
i386 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
ia64 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
include Fixed namespace pollution related to `warn' in libc (but not in other 2001-08-29 13:52:27 +00:00
locale mdoc(7) police: 2001-08-07 15:48:51 +00:00
mips
mipseb
mipsel
net o Remove some GCCisms in src/powerpc/include/endian.h. 2001-08-30 00:04:19 +00:00
nls Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
posix1e o src/sys/capability.h provides a number of support macros that are not 2001-08-29 17:53:45 +00:00
quad
regex mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
rpc Fixed namespace pollution related to `warn' in libc (but not in other 2001-08-29 13:52:27 +00:00
stdio Add more EOVERFLOW checks. 2001-08-30 19:54:04 +00:00
stdlib If the string specifying the allowed options starts with a leading `:', 2001-08-16 03:27:03 +00:00
stdtime mdoc(7) police: 2001-08-07 15:48:51 +00:00
string o Various mdoc fixes. 2001-08-09 17:10:48 +00:00
sys There shuldn't be whitespace before a question mark. 2001-08-27 09:34:39 +00:00
xdr
yp
Makefile Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-( 2001-08-13 21:48:44 +00:00
Makefile.inc