Subject: Re: a few minor cleanups to src/share/misc/style
To: Chris G. Demetriou <cgd@sibyte.com>
From: Greywolf <greywolf@starwolf.com>
List: tech-kern
Date: 03/21/2001 19:09:42
On 21 Mar 2001, Chris G. Demetriou wrote:

# Date: 21 Mar 2001 17:53:29 -0800
# From: Chris G. Demetriou <cgd@sibyte.com>
# To: tech-kern@netbsd.org, tech-userlevel@netbsd.org
# Subject: a few minor cleanups to src/share/misc/style
#
# Here are a few minor cleanups to src/share/misc/style:
#
# * Fix a malformed pair of block comments (lack of space between them),
#   in the way that I think is appropriate: combining them into one.
#
# * convert exit codes to use EXIT_SUCCESS and EXIT_FAILURE rather than
#   0 and 1.  (following c89.)

Can I ask what the point is of (strongly) suggesting such things as
EXIT_SUCCESS and EXIT_FAILURE as opposed to 0 and 1?  That just
seems such a PITA.

The other thing is what if you need to denote different conditions
via different exit stats (as in success, failure-because-of-runtime-
criteria-mismatch, failure-because-of-resource-unavailability)?
i.e., what if it's possible for something to fail in several different
ways?  I think it'd be the polite thing to do to provide (and document)
several different exit codes.

... or am I taking this up in entirely the wrong forum?

				--*greywolf;
--
*BSD: better for your uptime than Viagra.