Re: &os-error conditions contain integers, not errnos

Robert Ransom <[email protected]> Thu, 17 Dec 2009 10:32:43 -0800
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
On Sun, Dec 13, 2009 at 23:21, Michael Sperber <[email protected]>wrote:

>
> Roderic Morris <[email protected]> writes:
>
> > I'm not sure if this is the intended behavior, but it seems that it'd
> > make more sense for them to contain errnos so handlers can use the
> > errno api on them directly.
>
> Yes, but I haven't figured out how to do that without loading the POSIX
> package into the default image, which isn't an option.  I guess there
> needs to be some kind of hook, but I haven't had time to investigate
> that avenue.  I'm happy to hear suggestions on how to resolve the issue.
>

The meaning of the OS-ERROR-CODE field is OS-dependent as well -- on
Windows, it is the result of GetLastError or WSAGetLastError.

Robert Ransom