This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: negative error status: gcc vs. cl
- From: Daniel Lungu <lungu at nagra dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 8 Jul 2004 14:00:56 +0200 (W. Europe Daylight Time)
- Subject: Re: negative error status: gcc vs. cl
> 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);
Daniel
--
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/