diff options
author | ache <ache@FreeBSD.org> | 2001-08-17 09:57:11 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-08-17 09:57:11 +0000 |
commit | ca91420dc83eb61f050e2c2e5c063ad0b8ab2b4c (patch) | |
tree | 1ac14d62b577338fdc2eef8fa860217334dddad7 /lib/libc/stdio/fseek.3 | |
parent | 141c7ecefc74015b064137ab8e39f6582bec1697 (diff) | |
download | FreeBSD-src-ca91420dc83eb61f050e2c2e5c063ad0b8ab2b4c.zip FreeBSD-src-ca91420dc83eb61f050e2c2e5c063ad0b8ab2b4c.tar.gz |
fseek.c:
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()
Diffstat (limited to 'lib/libc/stdio/fseek.3')
-rw-r--r-- | lib/libc/stdio/fseek.3 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3 index b37aa17..1b5d397 100644 --- a/lib/libc/stdio/fseek.3 +++ b/lib/libc/stdio/fseek.3 @@ -185,7 +185,11 @@ The resulting file-position indicator would be set to a negative value. .It Bq Er EOVERFLOW The resulting file offset would be a value which -cannot be represented correctly in an object of type requested. +cannot be represented correctly in an object of type off_t +for +.Fn fseeko +or long for +.Fn fseek . .El .Pp The functions |