NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fwd: Re: lib/50276: [PATCH] Portability fixes for ossaudio.c



The following reply was made to PR lib/50276; it has been noted by GNATS.

From: Robert Millan <rmh%gnu.org@localhost>
To: Antti Kantee <pooka%iki.fi@localhost>, rumpkernel-users%freelists.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: Fwd: Re: lib/50276: [PATCH] Portability fixes for ossaudio.c
Date: Thu, 24 Sep 2015 21:50:28 +0200

 El 24/09/15 a les 20:21, Antti Kantee ha escrit:
 > On 24/09/15 18:15, Robert Millan wrote:
 >>> Also, if you want to use just ossaudio on Hurd, wouldn't it be better
 >>> to use the in-(rump-)kernel ossaudio compat translator
 >>> (sys/compat/ossaudio)?
 >>
 >> There's a big problem with using sys/compat/ossaudio on non-NetBSD: since
 >> it is built in the kernel tree, it includes the NetBSD version of
 >> <sys/soundcard.h>
 >> and also other headers like <sys/audioio.h> and <sys/ioccom.h>.
 >
 > No, it does *not* include NetBSD <sys/soundcard.h>.  The entire point of the module is to not use it(!)
 
 Sorry I used the wrong wording, what I meant to say is that it expects ioctl parameters
 using a different ABI than the one provided by system soundcard.h.
 
 My understanding is that using compat/ossaudio to support userland OSS applications
 on non-NetBSD systems would require writing an intermediate layer to do the ABI
 translation. And performing a few minor adjustments to libossaudio is much easier
 than writing an ABI conversion layer :-)
 
 -- 
 Robert Millan
 



Home | Main Index | Thread Index | Old Index