Date: Wed, 26 Nov 2003 11:34:51 +0100 From: "boyd, rounin" <boyd@insultant.net> To: "Maxime Henrion" <mux@freebsd.org>, "Terry Lambert" <tlambert2@mindspring.com> Cc: current@freebsd.org Subject: Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY Message-ID: <05d001c3b408$ed0b88c0$b9844051@insultant.net> References: <20031123141408.GA1426@ratsnest.hole> <20031124174457.GB27782@madman.celabo.org> <20031124182322.GB621@wombat.fafoe.narf.at> <3FC40E19.6A2989B6@mindspring.com> <20031126095315.GH8404@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Wrong, strtol() can set errno in two cases, when the value is outside > the range of representable values or when no conversion could be > performed. well 'natch. it's trying to do math.h style hacks and overloads errno. iirc those sorts of things stem from V6/V7 on the PDP/11 when you may have had no FPU and 32 bit ops were library functions.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05d001c3b408$ed0b88c0$b9844051>