Re: systems requiring exit?

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

 



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.



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux