[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Luajit and errno
- From: Florian Weimer <fw@...>
- Date: Mon, 09 May 2011 21:28:02 +0200
* Mike Pall:
> Florian Weimer wrote:
>> Could you add ffi.seterrno(), too? I think it's needed because there
>> are some C functions that cannot signal all errors if the original
>> errno value is non-zero (e.g. strtold()).
>
> I don't think there's a problem for strtol(), but the man page for
> errno mentions getpriority().
strtold(), not strtol().
> I've extended ffi.errno() to take an optional argument. See:
> http://luajit.org/ext_ffi_api.html#ffi_errno
Thanks, that addresses my concern.