Searched hist:81666 (Results 1 - 3 of 3) sorted by relevance

/freebsd-11.0-release/lib/libc/stdio/
H A Dfseek.3diff 81666 Wed Aug 15 02:07:47 MDT 2001 ache 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):

"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."

Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.

2) Catch few possible off_t overflows.

Reviewed by: arch discussion
H A Dstdio.cdiff 81666 Wed Aug 15 02:07:47 MDT 2001 ache 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):

"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."

Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.

2) Catch few possible off_t overflows.

Reviewed by: arch discussion
H A Dfseek.cdiff 81666 Wed Aug 15 02:07:47 MDT 2001 ache 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):

"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."

Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.

2) Catch few possible off_t overflows.

Reviewed by: arch discussion

Completed in 110 milliseconds