From owner-cvs-all Fri Aug 31 16:27:31 2001 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 9836D37B405; Fri, 31 Aug 2001 16:27:24 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id f7VNR8u24337; Sat, 1 Sep 2001 03:27:09 +0400 (MSD) (envelope-from ache) Date: Sat, 1 Sep 2001 03:27:02 +0400 From: "Andrey A. Chernov" To: "Peter S. Housel" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdio ftell.c ungetc.c Message-ID: <20010901032658.A24264@nagual.pp.ru> References: <200108311950.f7VJoPd48683@freefall.freebsd.org> <20010901010738.B21988@nagual.pp.ru> <20010901024748.A23318@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010901024748.A23318@nagual.pp.ru> User-Agent: Mutt/1.3.21i 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 On Sat, Sep 01, 2001 at 02:47:51 +0400, Andrey A. Chernov wrote: > 2) Unspecified >= 0 > > Look at another place of ungetc() description: > > The value of the > file-position indicator for the stream after reading or discarding > all pushed-back bytes shall be > the same as it was before the bytes were pushed back. > ^^^^^^^^ > > We can't make it "the same" in this case, because have value >= 0 > as non-unique. From other side, 0 is good value. We can keep unique internal negative representation, but make ftell() return 0 externally. I'll think about it more tomorrow. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message