From owner-freebsd-bugs Tue Oct 23 15:57: 5 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 6999437B432 for ; Tue, 23 Oct 2001 15:56:48 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id f9NMuVI19034; Wed, 24 Oct 2001 02:56:31 +0400 (MSD) (envelope-from ache) Date: Wed, 24 Oct 2001 02:56:30 +0400 From: "Andrey A. Chernov" To: Pavel Tsekov Cc: netbsd-bugs@netbsd.org, freebsd-bugs@FreeBSD.ORG Subject: Re: [Fwd: [BUG] BSD libc fseek bug] Message-ID: <20011024025629.A18932@nagual.pp.ru> References: <3BD5A90C.C310E49A@syntrex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3BD5A90C.C310E49A@syntrex.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Oct 23, 2001 at 19:29:48 +0200, Pavel Tsekov wrote: > > links describing a problem in newlib's > fseek implementation (this one is actually > BSD derived code). It seems this problem > currently exists in *BSDs too - I > didnt actually have the opportunity to test > it myself, but I've looked at the FreeBSD > and OpenBSD implementations of fseek and > it seems they have the problem too. > > The first link contains a description of > the problem and testcase, the second one > contains my observations on the problem: > > http://www.cygwin.com/ml/cygwin/2001-10/msg01211.html > http://www.cygwin.com/ml/cygwin/2001-10/msg01298.html The bug is fixed in FreeBSD-current stdio.c v1.19, two-lines fix setting __SMOD of non-zero seek. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message