[PATCH] Add stubs for Linux 2.6.17 syscalls

Kris Kennaway kris at FreeBSD.org
Wed Apr 16 21:33:17 UTC 2008


On Wed, Apr 16, 2008 at 10:48:16PM +0200, kama wrote:
> 
> 
> On Wed, 16 Apr 2008, Roman Divacky wrote:
> 
> > On Wed, Apr 16, 2008 at 12:56:50PM -0400, Jung-uk Kim wrote:
> > > The attached patch adds stubs for Linux 2.6.17 syscalls.  Even though
> > > some syscalls were not in official 2.6.16 kernel (e.g.,
> > > [gs]et_robust_list() showed up in 2.6.17-rc1), GNU libc started using
> > > them for NPTL and FC4 updated 2.6 kernel to 2.6.17 later.
> > >
> > > If you have any concern or objection, please speak up now.
> >
> > please do commit... no objection from me
> 
> wouldnt it be good to add a rc.conf tunable to say what type of kernel to
> use?
> 
> Like:
> linux_enable="YES"
> linux_version="2.6"
> 
> And let '/etc/rc.d/abi start' handle the sysctl setting. This way you may
> update the kernel versions whenever you feel like it to whatever version
> you want and we (the users) dont need to care about it, we just specify
> 2.4 or 2.6.
> 
> I also want to thank you all for working on the linuxulator. I use it
> mainly for gameservers and the newer gameservers needs 2.6 to operate.

You just set compat.linux.osrelease="2.6.18" (or 2.6.anything) in
sysctl.conf.  An rc script would be overkill.

Note that last time I checked we didn't support enough 2.6 syscalls to
run common binaries though (e.g. a recent fedora rpm(1)).

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
    -- Charles Forsythe <forsythe at alum.mit.edu>


More information about the freebsd-emulation mailing list