[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18592: FFI should have portable access to ‘errno’
From: |
Nala Ginrut |
Subject: |
bug#18592: FFI should have portable access to ‘errno’ |
Date: |
Tue, 05 Jan 2016 03:14:32 +0800 |
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? This would
make the name *-with-errno more reasonable. At present, it's false in
default.
2. Used scm_cons2
3. Store errno to a local var after ffi_call immediately.
4. Set errno=0 only when #:return-errno? is true.
5. Merged all modifications into one patch.
Comments please.
Best regards.
0001-Added-new-function-pointer-procedure-with-errno-to-r.patch
Description: Text Data
- bug#18592: FFI should have portable access to ‘errno’, Nala Ginrut, 2016/01/04
- bug#18592: FFI should have portable access to ‘errno’, Mark H Weaver, 2016/01/04
- bug#18592: FFI should have portable access to ‘errno’,
Nala Ginrut <=
- bug#18592: FFI should have portable access to ‘errno’, Chaos Eternal, 2016/01/04
- bug#18592: FFI should have portable access to ‘errno’, tomas, 2016/01/05
- bug#18592: FFI should have portable access to ‘errno’, Nala Ginrut, 2016/01/05
- bug#18592: FFI should have portable access to ‘errno’, Mark H Weaver, 2016/01/05
- bug#18592: FFI should have portable access to ‘errno’, Nala Ginrut, 2016/01/05
- bug#18592: FFI should have portable access to ‘errno’, Mark H Weaver, 2016/01/05
bug#18592: FFI should have portable access to ‘errno’, Mark H Weaver, 2016/01/04