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/local.h | |
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/local.h')
-rw-r--r-- | lib/libc/stdio/local.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index 06fecc9..5c0d347 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -46,7 +46,7 @@ * in particular, macros and private variables. */ -extern int _fseeko __P((FILE *, off_t, int)); +extern int _fseeko __P((FILE *, off_t, int, int)); extern int __fflush __P((FILE *fp)); extern int __sflush __P((FILE *)); extern FILE *__sfp __P((void)); |