Searched hist:82588 (Results 1 - 2 of 2) sorted by relevance

/freebsd-10.3-release/lib/libc/stdio/
H A Dftell.cdiff 82588 Thu Aug 30 19:54:04 MDT 2001 ache 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.
H A Dfseek.cdiff 82588 Thu Aug 30 19:54:04 MDT 2001 ache 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.

Completed in 109 milliseconds