[Top][All Lists]

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

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

From: Mark H Weaver
Subject: bug#18592: FFI should have portable access to ‘errno’
Date: Sat, 24 Jan 2015 03:22:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Mark H Weaver <address@hidden> writes:

> address@hidden (Ludovic Courtès) writes:
>> Chaos Eternal <address@hidden> skribis:
>>> Proposal 2.
>>> let pointer->procedure check return_type, if it is a list:
>>> (func_return_type, 'errno)
>>> then return multiple values, as errno be second value.
>> That’s my favorite because it’s both pragmatic and extensible (we can
>> also add support for h_errno, etc.)
> We can't do this, because although it's not documented in our manual, a
> list passed as a foreign type already has a meaning: it means a struct.
> See 'parse_ffi_type' in foreign.c.

Also see 'fill_ffi_type' in the same file.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]