From owner-freebsd-arch Sat Jan 26 23: 4:34 2002 Delivered-To: freebsd-arch@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 7F1F137B41C; Sat, 26 Jan 2002 23:04:31 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id g0R74R613433; Sun, 27 Jan 2002 10:04:27 +0300 (MSK) (envelope-from ache) Date: Sun, 27 Jan 2002 10:04:23 +0300 From: "Andrey A. Chernov" To: "Brian F. Feldman" Cc: Chad David , Bruce Evans , arch@FreeBSD.ORG Subject: Re: strtod() Message-ID: <20020127070421.GA13415@nagual.pp.ru> References: <20020126162924.A7726@colnta.acns.ab.ca> <200201270453.g0R4rwi92912@green.bikeshed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201270453.g0R4rwi92912@green.bikeshed.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jan 26, 2002 at 23:53:58 -0500, Brian F. Feldman wrote: > > If strtod() wants to use errno internally, that's fine, but I personally > really expect it to not modify errno without also intending to return an > error; that's why saving at entry and restoring at exit is my preference for > these functions. Yes, it must save/restore errno and modify it only if error (in strtod's meaning) happens. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message