Deleted Added
full compact
42c42
< "$FreeBSD: head/lib/libc/stdio/stdio.c 71579 2001-01-24 13:01:12Z deischen $";
---
> "$FreeBSD: head/lib/libc/stdio/stdio.c 81666 2001-08-15 02:07:47Z ache $";
45a46
> #include <errno.h>
96a98,106
> /*
> * Disallow negative seeks per POSIX.
> * It is needed here to help upper level caller
> * (fseek) in the cases it can't detect.
> */
> if (whence == SEEK_SET && (off_t)offset < 0) {
> errno = EINVAL;
> return (-1);
> }
98c108,113
< if (ret == -1)
---
> if (ret < 0) {
> if (ret != -1) {
> /* Resulting seek is negative! */
> ret = -1;
> errno = EINVAL;
> }
100c115
< else {
---
> } else {