From owner-cvs-all Sun Sep 2 14:22: 6 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 9E4B437B403; Sun, 2 Sep 2001 14:22:00 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f82LM0G99109; Sun, 2 Sep 2001 14:22:00 -0700 (PDT) (envelope-from ache) Message-Id: <200109022122.f82LM0G99109@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Sun, 2 Sep 2001 14:22:00 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fopen.c fseek.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/09/02 14:22:00 PDT Modified files: lib/libc/stdio fopen.c fseek.c Log: Internal seeks are overoptimized. They should remember fp->_offset only for plain regular files, i.e. files with __SOPT flag set. Fix it, so ftell(stdout) always returns the same as lseek(1, 0, 1) now. NOTE: this bug was in original stdio code Revision Changes Path 1.8 +1 -3 src/lib/libc/stdio/fopen.c 1.32 +2 -2 src/lib/libc/stdio/fseek.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message