From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 21 12:21:28 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8363C1065670; Mon, 21 Sep 2009 12:21:28 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 06B808FC0A; Mon, 21 Sep 2009 12:21:27 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C3D0.dip.t-dialin.net [217.226.195.208]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 2D267844822; Mon, 21 Sep 2009 14:21:21 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id C2913BEF0A; Mon, 21 Sep 2009 14:21:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1253535677; bh=qvgKA7fbzxiE4rXJnVZa3GiI2WOsqVvpjGAeU61CV2o=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=WQPyWGH+dwwv1D6rweORSUbWg535IbZNZbiX9buPsJtZ9cJXpRZ5ULRef8AM60xCc z++SO2INeEzGubZlQbTXL8RWmEzx6oMgzNTkjfcjnnRXuDtrFgedW9e84uFiVas+Mg Uabrjk0k0I7yBEFQqy3hkaUvlbNgnIAznHbQZS38l5pUacS8Gu1BR8FIqVGGGURDup pfhkhN8TBczJ0E3cPLaynv/utdXMWZ6/KiKZqJNvRab6ForhcivpLwjV0AKV7FeQr5 WNE8wK/CHazskwbfBPNQMDYB+QmtYBPdqdVX1OWcDRW9/9D1LJaMFIdmahr65ld5Y4 AIs7uhi1N3h6Q== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n8LCLHV5038118; Mon, 21 Sep 2009 14:21:17 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 21 Sep 2009 14:21:16 +0200 Message-ID: <20090921142116.934965dwi9evrvok@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 21 Sep 2009 14:21:16 +0200 From: Alexander Leidinger To: Roman Divacky References: <20090919223624.00004f42@unknown> <20090920063017.GA12687@freebsd.org> <20090920204407.0000383a@unknown> <20090920200843.GA36192@freebsd.org> In-Reply-To: <20090920200843.GA36192@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.3.3 / FreeBSD-8.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 2D267844822.A2391 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.439, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1254140482.87433@lTjUH9vGYJNO2ToP5IsHkQ X-EBL-Spam-Status: No Cc: Alexander Best , freebsd-emulation@freebsd.org Subject: Re: compat.linux.osrelease behavior X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2009 12:21:28 -0000 Quoting Roman Divacky (from Sun, 20 Sep 2009 22:08:43 +0200): > On Sun, Sep 20, 2009 at 08:44:07PM +0200, Alexander Leidinger wrote: >> On Sun, 20 Sep 2009 08:30:17 +0200 Roman Divacky >> wrote: >> >> >> > On Sat, Sep 19, 2009 at 10:36:24PM +0200, Alexander Leidinger wrote: >> > > On Fri, 18 Sep 2009 15:08:31 +0200 (CEST) Alexander Best >> > > wrote: >> > > >> > > >> > > > hi there, >> > > > >> > > > i have a question regarding the behavior of >> > > > compat.linux.osrelease. setting it to 2.4.2 sets linuxulator into >> > > > 2.4 kernel-emulation and 2.6.16 sets it into 2.6 kernel-emulation >> > > > right? >> > > >> > > Sort of. 2.6.x set's 2.6 mode, and everything else is 2.4 mode. But >> > > this is AFAIK only a semantic change of some functions. This does >> > > not disable syscalls which are in 2.6 but not in 2.4. >> > > >> > > > but what happens when compat.linux.osrelease gets set to a >> > > > different value? ports/Updating entry 20071101 e.g. advises skype >> > > > users to set compat.linux.osrelease to 2.4.20. does this trigger >> > > > 2.6 kernel-emulation because 2.4.20 > 2.4.2 or are there more >> > > > than two kernel-emulation layers inside the linuxulator?? >> > > >> > > It does not affect the kernel emulation. But the glibc will try to >> > > use new syscalls. >> > >> > actually it does change how the kernel emulation works. grep for >> > linux_use26() >> >> I don't find the place where the behavior is changed when 2.4.20 is >> set... I only see a change when it is set to 2.6.x. > > the thing with 2.4.20 is that red hat backported NPTL to 2.4.20 kernel. > so the userland expects NTPL but we dont provide it. I dont think it's > worth solving... the default is 2.6.16 and I dont see much reason > why anyone would need 2.4.20... I agree, but this was not the question of the initial post. So it seems we are back to my initial response, 2.4.20 does not change the emulation in the kernel, but it changes the behavior of glibc. Bye, Alexander. -- One man's constant is another man's variable. -- A. J. Perlis http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137