lua-users home
lua-l archive

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


Robert G. Jakabosky wrote:
> On Friday 25, Mike Pall wrote:
> > ffi.errno() is not compiled, because it's supposed to be called
> > only in the (uncommon) error path.
> 
> Not always.  When doing nonblocking socket IO it is common to get EAGAIN on 
> read/recv calls, or EINPROGRESS from connect().  I created a wrapper C 
> function for errno in one my new bindings [1], because ffi.errno() was not 
> compiled.

Ok, that's a legitimate use case. I've fixed that in git HEAD.
Calls to ffi.errno() are now compiled.

--Mike