Date: Fri, 17 Aug 2001 02:57:13 -0700 (PDT) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fseek.3 fseek.c local.h rewind.c Message-ID: <200108170957.f7H9vDs98981@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2001/08/17 02:57:13 PDT
Modified files:
lib/libc/stdio fseek.3 fseek.c local.h rewind.c
Log:
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()
Revision Changes Path
1.12 +6 -2 src/lib/libc/stdio/fseek.3
1.14 +24 -6 src/lib/libc/stdio/fseek.c
1.6 +2 -2 src/lib/libc/stdio/local.h
1.9 +8 -4 src/lib/libc/stdio/rewind.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108170957.f7H9vDs98981>
