Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

From: boyd, rounin <boyd_at_insultant.net>
Date: Wed, 26 Nov 2003 11:34:51 +0100
> 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.
Received on Wed Nov 26 2003 - 01:38:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:31 UTC