HEADS DOWN

Andrey Chernov ache at FreeBSD.org
Sat May 12 15:27:48 UTC 2007


On Fri, May 11, 2007 at 06:44:37PM -0500, Sean C. Farley wrote:
>  No need to worry any longer; I changed them into warnx().  What value
>  should I give errno?  I do not want the program to receive a random
>  error code.  The first warnx() could be EINVAL.  The second warnx()
>  would be a coding error on my part.  EDOOFUS would fit.  :)  I know I
>  should not use it.  EINVAL?

IMHO EFAULT. EDOOFUS is not POSIX-allowed errno. EINVAL used primarily for 
arg checking.

-- 
http://ache.pp.ru/


More information about the freebsd-arch mailing list