[plt-scheme] Re: ffi question and accessing errno

From: Marco Maggi (marco.maggi-ipsu at poste.it)
Date: Sat Mar 8 01:59:11 EST 2008


"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"

Posted on the users mailing list.