Subject: standards/21004: ERANGE is inaccurately described by strerror(3), etc
To: None <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 04/03/2003 22:34:16
>Synopsis: ERANGE is inaccurately described by strerror(3), etc
>Arrival-Date: Thu Apr 03 19:35:00 PST 2003
>Release: 1.6Q (userland and kernel as of 20030325)
System: NetBSD this 1.6Q NetBSD 1.6Q (THAT) #175: Mon Mar 31 16:14:57 EST 2003 andrew@this:/usr/src/sys/arch/i386/compile/THAT i386
ERANGE is described in errno(2) with the comment "Numerical
result out of range", but the include file sys/errno.h and
strerror(3) describe it as "Result too large"?
write a program that displays the result of strerror(ERANGE)
i dunno what the standards say, but the inconsistency is
annoying. the "out of range" seems more apt, yet somewhat
obtuse. the "too large" description is also wrong with
respect to common sense unless you really believe that -2 is
"too large" to fit into the range of 0..127 (for example).
the word "large" just doesn't sound correct.