"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> What I think we need to do in this case is map the error codes at any
> "API emulation function" to always return a valid errno value, and not a
> Win32 error code. This can only be done at the actual function, since it
> has to be different depending on situation.
How does Microsoft handle this for their existing Posix-compatibility
functions? One would think there is a mapping function somewhere in
that layer. Were they polite enough to expose it, by any chance?
regards, tom lane