GNU bug report logs -
#18592
FFI should have portable access to ‘errno’
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 20 Jun 2016 15:55:21 -0400
with message-id <87eg7rtz2u.fsf <at> netris.org>
and subject line Re: bug#18592: FFI should have portable access to ‘errno’
has caused the debbugs.gnu.org bug report #18592,
regarding FFI should have portable access to ‘errno’
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
18592: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18592
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello Guile Maintainers!
When accessing POSIX functions from a system's libc via Guile's dynamic
FFI, you commonly want to access the ‘errno’ variable to be able to
produce useful diagnostic messages.
Currently there's no such access built-in.
Mark Weaver on IRC thought it would be a good idea to add portable
access to the contents of ‘errno’ (however it's actually implemented) to
Guile's FFI. And now the idea has entered the bug tracker. :)
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
[Message part 3 (message/rfc822, inline)]
Mark H Weaver <mhw <at> netris.org> writes:
> Nala Ginrut <nalaginrut <at> gmail.com> writes:
>
>> Is there still problem? I'm fine with the patch, and I'm expecting to
>> merge it ASAP. Anyway, please don't hesitate to tell me if there's still
>> any problem, I'm glad to help to do it better. I really need it.
>
> Sorry for the delay, but I'm having second thoughts about whether this
> is the right approach. Perhaps we should instead make a set of
> commitments that certain basic operations like scheme evaluation, heap
> allocation, and basic scheme procedures will leave 'errno' unchanged.
Okay, I finally decided to go ahead and add 'errno' support to the FFI
directly. Pushed in commit ee3381c94d389d923591dcb610bac9ecfd68e6a4 to
stable-2.0. If you could make sure it works for your use cases, I'd be
grateful.
I'm closing this bug now, but feel free to reopen if there are issues.
Thanks,
Mark
This bug report was last modified 8 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.