From owner-freebsd-ports@FreeBSD.ORG Tue Dec 6 14:05:01 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 858FF106566B for ; Tue, 6 Dec 2011 14:05:01 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 195388FC18 for ; Tue, 6 Dec 2011 14:05:00 +0000 (UTC) Received: by eekc1 with SMTP id c1so1893714eek.13 for ; Tue, 06 Dec 2011 06:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DEU0T1SE5xSm+voJw0fswT8P7ZIQft/8LBiN4dhIS/s=; b=iP1dcIDzZ4vuDnKsHqavtUDldfGvygQGUeM8jyrxhAZzkojpnqBRPVlBJFJd8UlnxM Zv4c2EPFotIvo3Dz56K/r2c8IYVh0H+APAyGaZ3jPbnwBleoeH3EGOa/gANRt4c47AkY H2hknmRgh6ayTwQPtH9XIRixRzT3KLK0wcqCg= MIME-Version: 1.0 Received: by 10.14.6.12 with SMTP id 12mr2024998eem.51.1323180299890; Tue, 06 Dec 2011 06:04:59 -0800 (PST) Received: by 10.14.47.194 with HTTP; Tue, 6 Dec 2011 06:04:59 -0800 (PST) In-Reply-To: <20111206134554.44298ce7@gumby.homeunix.com> References: <20111206095325.66342106566C@hub.freebsd.org> <20111206122146.3002664c@gumby.homeunix.com> <20111206134554.44298ce7@gumby.homeunix.com> Date: Tue, 6 Dec 2011 08:04:59 -0600 Message-ID: From: Zhihao Yuan To: RW Content-Type: text/plain; charset=UTF-8 Cc: ports@freebsd.org Subject: Re: Linux compatibility with more than one Linux installed? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 14:05:01 -0000 On Tue, Dec 6, 2011 at 7:45 AM, RW wrote: > On Tue, 6 Dec 2011 06:29:03 -0600 > Zhihao Yuan wrote: > >> On Tue, Dec 6, 2011 at 6:21 AM, RW wrote: >> > On Tue, 6 Dec 2011 04:54:18 -0600 >> > Zhihao Yuan wrote: >> > >> > >> >> Not really. The actual thing is, linuxulator is a Linux kernel >> >> running as a FreeBSD kernel module. The only thing FreeBSD kernel >> >> do is to identify the Linux program and to pass it to the Linux >> >> kernel. To the Linux programs inside a GNU chroot enviroment, they >> >> think they are running inside a Linux box and actually they are >> >> running inside a Linux box. >> > >> > Are you sure about that? I was under the impression that it was a >> > fairly thin emulation layer on top of the FreeBSD kernel. Has >> > something changed? >> >> To Linux program, there is no "emulation layer". This technology >> should be called "extended ELF lookup table", and has nothing to do >> with emulation. > > It's not emulation in the narrow sense that vmware is emulation and > wine isn't, but it certainly is emulation within the normal sense or the > word. My dictionary defines emulate as "imitate zealously". > > But what I was getting at was the statement "linuxulator is a Linux > kernel running as a FreeBSD kernel module" which I'm guessing now you > didn't mean literally. FreeBSD handbook: http://www.freebsd.org/doc/handbook/linuxemu-advanced.html "In effect, there is a Linux kernel in the FreeBSD kernel; the various underlying functions that implement all of the services provided by the kernel are identical to both the FreeBSD system call table entries, and the Linux system call table entries: file system operations, virtual memory operations, signal delivery, System V IPC, etc..." So, if you define a Linux kernel as "every thing written by Linus and his followers", then I'm wrong; but if you agree that "Android is not GNU but it does run a Linux kernel", then I'm probably right. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/