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

boyd, rounin boyd at insultant.net
Wed Nov 26 02:38:47 PST 2003

> 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.

More information about the freebsd-current mailing list