From owner-cvs-all Tue Aug 14 19: 7:53 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 C499537B403; Tue, 14 Aug 2001 19:07:47 -0700 (PDT) (envelope-from ache@FreeBSD.org) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7F27lK02821; Tue, 14 Aug 2001 19:07:47 -0700 (PDT) (envelope-from ache) Message-Id: <200108150207.f7F27lK02821@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Tue, 14 Aug 2001 19:07:47 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fseek.3 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/08/14 19:07:47 PDT Modified files: lib/libc/stdio fseek.3 fseek.c stdio.c Log: 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek): "[EINVAL] ... The resulting file-position indicator would be set to a negative value." Moreover, in real life negative seek in stdio cause EOF indicator cleared and not set again forever even if EOF returned. 2) Catch few possible off_t overflows. Reviewed by: arch discussion Revision Changes Path 1.11 +6 -12 src/lib/libc/stdio/fseek.3 1.12 +24 -1 src/lib/libc/stdio/fseek.c 1.11 +18 -3 src/lib/libc/stdio/stdio.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message