<div dir="ltr">Hi - <br><br>I found this thread discussing FFI &amp; errno - <a href="http://list.cs.brown.edu/pipermail/plt-scheme/2008-March/023478.html">http://list.cs.brown.edu/pipermail/plt-scheme/2008-March/023478.html</a>.&nbsp; Is there a potential solution on the horizon?<br>
<br>I currently wrap it in a procedure as follows:<br><br>(define (libc:errno)<br>&nbsp; (get-ffi-obj &quot;errno&quot; libc _int<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (lambda ()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (error &#39;libc:errno<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;unable to retrieve errno&quot;))))<br>
<br>Is this even close?&nbsp; I imagine that it&#39;s possible for mzscheme to set errno before I retrieve the value... <br><br>Thanks,<br>yc<br><br><br><br></div>