[haiku-development] Re: POSIX error code

> Can't you just return -B_ERROR_CODE, with B_ERROR_CODE positive? :-)

No.
We won't uglify our API just for the sake of it.
And it's way more complex than just adding - everywhere.

> An error code is not necessarily equivalent to the return code, and
> Posix can't possibly dictate return values of non-Posix APIs. I
> believe I saw some software adding that negation some months ago,
> possibly QEMU.

Yes, QEMU also suffers from that bug.

François.

Other related posts: