[haiku-development] Re: Adding some new OptionalPackages?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 17 Sep 2010 18:42:52 +0200

On 2010-09-17 at 10:54:41 [+0200], mmlr@xxxxxxxx <mmlr@xxxxxxxx> wrote:
> > > One optional package that i'd find convenient to have is QEMU.
> >
> > Upstream QEMU is still waiting for a reworked set of patches, and I
> > haven't heard from mmlr since last BeGeistert.
> >
> > I'd prefer to have this sorted out before putting an official Optional
> > Package out in the wild... François pointed out some POSIX vs. BeOS
> > error handling issues that I'm not sure are resolved yet, for instance.
>  
> There are several issues with the QEMU port. For one the POSIX error codes
> mentioned above.

Assuming that means the usual "error codes are positive" issue, then 
B_USE_POSITIVE_POSIX_ERRORS and libposix_error_mapper.a can simplify things 
tremendously. Care must be taken in the Haiku-native part (where it 
interfaces with POSIX API or the portable code), for which the helper macros 
in
<Errors.h> can be of assistance. Other than that things should simply work.

CU, Ingo

Other related posts: