info-cvs
[Top][All Lists]
Advanced

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

Re: incorrect return code on vms...


From: Noel L Yap
Subject: Re: incorrect return code on vms...
Date: Fri, 1 Dec 2000 12:25:05 -0500

Hmmm.  How does diff-utils deal with this situation?

Noel




address@hidden on 2000.12.01 12:07:19

To:   address@hidden
cc:   address@hidden, address@hidden (bcc: Noel L Yap)
Subject:  Re: incorrect return code on vms...




Donald Sharp writes:
>
> You missunderstand what I did.  This has nothing to do
> with the c compiler.  It has everything to do with what
> cvs returned as a exit code.  The vms system( according to
> the ChangeLog ) interprets return codes from programs as follows:
> 0 - Program failed
> 1 - Program Succeeded.

That is ancient history and does not conform to the ANSI/ISO C standard
which requires that 0 be interpreted as a successful exit status.  The
VMS C run-time library was fixed long ago to do so, so no changes are
necessary.  According to ANSI/ISO C, the only portable exit statuses are
0 or EXIT_SUCCESS (which are interpreted as success), and EXIT_FAILURE
(which is interpreted as failure).  Trying to return different flavors
of success or failure, particularly using hard-coded values like 1 and
2, is non-portable and doomed to failure.

-Larry Jones

Don't you hate it when your boogers freeze? -- Calvin

_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs





This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.




reply via email to

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