Deleted Added
full compact
42c42
< "$FreeBSD: head/lib/libc/stdio/fseek.c 72529 2001-02-16 06:11:22Z imp $";
---
> "$FreeBSD: head/lib/libc/stdio/fseek.c 81666 2001-08-15 02:07:47Z ache $";
134a135,138
> if (offset > 0 && offset + (off_t)curoff < 0) {
> errno = EOVERFLOW;
> return (EOF);
> }
135a140,144
> /* Disallow negative seeks per POSIX */
> if (offset < 0) {
> errno = EINVAL;
> return (EOF);
> }
140a150,154
> /* Disallow negative seeks per POSIX */
> if (offset < 0) {
> errno = EINVAL;
> return (EOF);
> }
182a197,200
> if (offset > 0 && st.st_size + offset < 0) {
> errno = EOVERFLOW;
> return (EOF);
> }
183a202,206
> /* Disallow negative seeks per POSIX */
> if ((off_t)target < 0) {
> errno = EINVAL;
> return (EOF);
> }