From owner-cvs-all Fri Aug 31 19: 2:14 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 4E15437B40B; Fri, 31 Aug 2001 19:02:08 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id f8121sG29458; Sat, 1 Sep 2001 06:01:54 +0400 (MSD) (envelope-from ache) Date: Sat, 1 Sep 2001 06:01:52 +0400 From: "Andrey A. Chernov" To: "Peter S. Housel" Cc: Garrett Wollman , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdio ftell.c ungetc.c Message-ID: <20010901060150.A29233@nagual.pp.ru> References: <200108311950.f7VJoPd48683@freefall.freebsd.org> <20010901010738.B21988@nagual.pp.ru> <20010901024748.A23318@nagual.pp.ru> <200108312327.f7VNRMs83151@khavrinen.lcs.mit.edu> <20010901033723.B24264@nagual.pp.ru> <014301c1327e$58c10f40$be16010a@nb.mindspeed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <014301c1327e$58c10f40$be16010a@nb.mindspeed.com> 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 Fri, Aug 31, 2001 at 17:37:57 -0700, Peter S. Housel wrote: > ftell() may well return an error value, not work, etc. after doing so. But > that doesn't imply that you shouldn't be allowed to do at least one ungetc() > at position zero. I just back out disabling ungetc() at 0 and use different way: 0 as 'unspecified value' (instead of < 0 as 'unspecified value' as in original variant). -- 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