This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: MPI_Abort
On Jul 13 2011, Janne Blomqvist wrote:
As an aside, C defines, in stdlib.h, the macros EXIT_SUCCESS and
EXIT_FAILURE. Typically the values will be 0 and 1, respectively, so
the end result would be the same as using 1 and 0 directly as we do
now. I suppose they were added in order to improve portability, though
I suspect in reality it doesn't make much difference.
They were, and it doesn't. The precise rule is that returning either
the value 0 or EXIT_SUCCESS (which need not be zero) is an implementation-
defined success indicator, returning EXIT_FAILURE is an implementation-
defined failure indicator, and returning any other value is a plain
implementation-defined status indicator. And it does NOT explicitly
require EXIT_FAILURE to be non-zero, nor to be different from EXIT_SUCCESS.
I could describe the reasons for this committee compromise, but they
aren't anything terribly significant.
Regards,
Nick Maclaren.