[haiku-development] Re: POSIX error code

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 21 May 2008 15:10:26 +0200 CEST

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