This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Another exit codes question


"Zack Weinberg" <zackw@stanford.edu> writes:

> I need to know which of these system triples do and do not define the
> C89 EXIT_SUCCESS and EXIT_FAILURE macros.  Of those that do define
> them, I need to know if any get them wrong.  ("Wrong" means "fails to
> convey the appropriate information to the invoking process.")  Of
> those that don't define them, I need to know whether or not 0==success
> and 1==failure are appropriate as the argument to exit(3) or return
> from main.
> 
> alpha*-dec-vms*
> vax*-*-vms*
> i370-*-opened*
> i370-*-mvs*
> i370-*-linux*

I don't think that i370-linux exists.  The s390 port is finished and
uses glibc 2.1 or newer.  The i370 supports more hardware than the
s390 one (especially older) but I'm not sure if it's still alive.
Even if it's alive, I guess they'll use glibc and therefore should use
the normal EXIT_* macros.

> These are the system triples with "unusual" definitions of
> SUCCESS_EXIT_CODE and/or FATAL_EXIT_CODE, in case anyone is curious.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]