From owner-cvs-all Wed Oct 24 10:25:52 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 3605037B409; Wed, 24 Oct 2001 10:25:49 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9OHPn767278; Wed, 24 Oct 2001 10:25:49 -0700 (PDT) (envelope-from ache) Message-Id: <200110241725.f9OHPn767278@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Wed, 24 Oct 2001 10:25:49 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fseek.c stdio.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/10/24 10:25:49 PDT Modified files: lib/libc/stdio fseek.c stdio.c Log: Help to recover from bad seek (i.e. negative or too big) happens beyond our pre-check control. Do the same way as refill.c does when it set __SERR, i.e. clear read and ungetc buffers. Clear EOF flag too. Revision Changes Path 1.36 +5 -5 src/lib/libc/stdio/fseek.c 1.21 +7 -0 src/lib/libc/stdio/stdio.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message