Skip site navigation (1)Skip section navigation (2)
Date:      25 Jul 1998 22:41:19 +0200
From:      dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= )
To:        hackers@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   sysexits
Message-ID:  <xzpd8atfyts.fsf@hrotti.ifi.uio.no>

next in thread | raw e-mail | index | archive | help
The style(9) man page recommends the use of values defined in
<sysexits.h> to indicate failure conditions. However, there is no
predefined value for what is probably the most common error condition,
at least in some applications - a failed malloc(), calloc() or
realloc(). I therefore suggest adding the constant EX_NOMEM, with the
value 79, to /usr/include/sysexits.h, and bumping EX__MAX to 79 (as
well as updating the sysexits(3) man page, of course). Unless somebody
strenuously objects, I'll commit the changes to -current in a couple
of days.

DES
-- 
Dag-Erling Smørgrav - dag-erli@ifi.uio.no

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpd8atfyts.fsf>