From owner-cvs-all Fri Aug 17 2:57:18 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 311DA37B408; Fri, 17 Aug 2001 02:57:13 -0700 (PDT) (envelope-from ache@FreeBSD.org) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7H9vDs98981; Fri, 17 Aug 2001 02:57:13 -0700 (PDT) (envelope-from ache) Message-Id: <200108170957.f7H9vDs98981@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Fri, 17 Aug 2001 02:57:13 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fseek.3 fseek.c local.h rewind.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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