[plt-scheme] Re: ffi question and accessing errno
Ciao,
"Eli Barzilay" wrote:
>>is it possible to access "errno"?
>
>Not really. [...] I'll need to extend the C part of the foreign
>interface to make it available somehow (I still didn't
figure out
>what's the best way to address this problem).
My vote is for a GET-FFI-OBJ variant that returns a VALUES.
>Your problem is here -- getpwnam() does not return a
>passwd struct, it returns a pointer to one. Change this to
>`_passwd-pointer' and things should work.
Thanks, that's it.
--
Marco Maggi
"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"