autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: systems requiring exit?


From: Matthew Woehlke
Subject: Re: systems requiring exit?
Date: Tue, 14 Nov 2006 10:26:28 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0

Thomas Dickey wrote:
On Mon, 13 Nov 2006, Paul Eggert wrote:
If they conform to C89 there should be no problem.  In C89, returning
N from 'main' is like 'exit(N)'.  This thread is about pre-C89 systems
where the return value from 'main' is mangled.

For example (reading the comments that you made earlier, perhaps you should learn something old about C89):

In that case, it sounds like we should suggest to people that they use
the POSIX environment rather than try to port to a C-only environment.
But I am surprised that a C-only environment would mess up in this
way, even on mainframes.

VMS, where an application can return EXIT_SUCCESS or EXIT_FAILURE from main - but (still complying with C89), those are not 0 and 1 respectively.

Isn't that exactly what I said? :-) (I even used VMS...) You may want to re-read the thread; I think the consensus was that this is a different issue.

--
Matthew
Not to be used as a flotation device.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]