Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2005 01:30:09 +0300
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Giorgos Keramidas <keramida@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: Implementation errors in strtol()
Message-ID:  <20050123223009.GA67388@nagual.pp.ru>
In-Reply-To: <20050123221630.GB22234@gothmog.gr>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050123223009.GA67388>