This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: negative error status: gcc vs. cl


On Jul  8 14:00, Daniel Lungu wrote:
> > Feel like bash tcsh on Cygwin mess up with negative exit status from a cl
> > compiled .exe
> 
> :) The answer is "don't do that".  Use positive values in the range from
> :) 0 to 255.  See
> :) http://www.opengroup.org/onlinepubs/009695399/functions/exit.html
> 
> I wouldn't do that. The problem is other did it before me and I need running
> their .exes in my GNUmakefile.
> 
> The following prototype would prevent people getting such exit(-2) great ideas:
> 
> void exit(unsigned status);

Right, but in that case, the definition isn't SUSv3 compliant.  Standards
rule.  That's the reason there are so many of them ;-)

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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