svn commit: r185362 - head/share/man/man9
Sean C. Farley
scf at FreeBSD.org
Sun Nov 30 18:16:35 PST 2008
On Thu, 27 Nov 2008, Robert Watson wrote:
> Log:
> Revert r184509: don't encourage the use of sysexits.h with err() and
> errx(),, as there seems to be a general preference against this
> practice.
*snip*
> if ((four = malloc(sizeof(struct foo))) == NULL)
> - err(EX_OSERR, NULL);
> + err(1, (char *)NULL);
> if ((six = (int *)overflow()) == NULL)
> - errx(EX_DATAERR, "number overflowed");
> + errx(1, "number overflowed");
Out of curiosity, why not EXIT_FAILURE instead of 1, at least in
situations where including stdlib.h is allowed? Is it because
EXIT_FAILURE is only required to be non-zero and not necessarily 1?
Sean
--
scf at FreeBSD.org
More information about the svn-src-all
mailing list