[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua.c and OS error codes
- From: "Mark Edgar" <medgar123@...>
- Date: Thu, 14 Jun 2007 11:17:44 -0700
On 6/14/07, eugeny gladkih <john@gladkih.com> wrote:
>>>>> "LHdF" == Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> writes:
>> A 'return 1453' in a Lua main chunk doesn't set the error code that's
LHdF> I think error codes are restricted to 0-255. This is not
LHdF> your point, but it's good to keep in mind.
Windows supports full 32bit process exit codes.
Windows apparently supports exit codes from 0 to 4294967295 and POSIX
supports exit codes from 0 to 255, but C only supports two exit codes:
EXIT_SUCCESS==0 and EXIT_FAILURE, which is a non-zero but otherwise
unspecified value.
-Mark