bug#18592: FFI should have portable access to ‘errno’

2014-11-22 Thread Chaos Eternal
Proposals to solve this bug: Proposal 1. Adding a keyword argument to pointer->procedure, if set to true, the generated wrapper will check 'errno' immediately after ffi_call and return the errno as second value. the proposed pointer->procedure maybe like this: pointer->procedure return_type func

bug#18592: FFI should have portable access to ‘errno’

2016-01-04 Thread Chaos Eternal
On Tue, Jan 5, 2016 at 3:14 AM, Nala Ginrut wrote: > Hi Mark! > Thanks for all the advices. > > Here's the new patch according to your advices. > Include: > 1. Added new procedure pointer->procedure-with-errno with > #:return-errno? > > Question: Should we make #:return-errno? true in default? Thi