From owner-freebsd-current@FreeBSD.ORG Sun Jan 23 22:30:13 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A13E16A4CF; Sun, 23 Jan 2005 22:30:13 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8351443D41; Sun, 23 Jan 2005 22:30:12 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.1/8.13.1) with ESMTP id j0NMUAnW067452; Mon, 24 Jan 2005 01:30:10 +0300 (MSK) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.1/8.13.1/Submit) id j0NMUA10067451; Mon, 24 Jan 2005 01:30:10 +0300 (MSK) (envelope-from ache) Date: Mon, 24 Jan 2005 01:30:09 +0300 From: Andrey Chernov To: Giorgos Keramidas Message-ID: <20050123223009.GA67388@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Giorgos Keramidas , Joerg Wunsch , current@FreeBSD.ORG References: <20050120205501.GA69123@nagual.pp.ru> <20050120211449.GC30862@uriah.heep.sax.de> <20050120214406.GA70088@nagual.pp.ru> <20050120222137.GE30862@uriah.heep.sax.de> <20050121230949.GA34313@VARK.MIT.EDU> <20050122113015.GV30862@uriah.heep.sax.de> <20050122171743.GB39943@nagual.pp.ru> <20050123143024.GA28604@gothmog.gr> <20050123211656.GB64754@nagual.pp.ru> <20050123221630.GB22234@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050123221630.GB22234@gothmog.gr> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-3; AVE: 6.29.0.8; VDF: 6.29.0.75; host: nagual.pp.ru) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (nagual.pp.ru [0.0.0.0]); Mon, 24 Jan 2005 01:30:10 +0300 (MSK) cc: Joerg Wunsch cc: current@FreeBSD.ORG Subject: Re: Implementation errors in strtol() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 22:30:13 -0000 On Mon, Jan 24, 2005 at 12:16:30AM +0200, Giorgos Keramidas wrote: > If errno is explicitly set (i.e. zeroed) by the calling program > immediately before strtol(), can we not be sure that it was, in fact, > strtol() that set it to any non-zero value? Portable application can't be sure to not get surprise errno values. POSIX-conformant application, contrarily, can. Portability and standards conformance are different things. -- http://ache.pp.ru/