From owner-freebsd-hackers Wed Jun 4 12:02:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA21181 for hackers-outgoing; Wed, 4 Jun 1997 12:02:05 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA21155 for ; Wed, 4 Jun 1997 12:01:58 -0700 (PDT) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA24916; Wed, 4 Jun 1997 11:54:41 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd024913; Wed Jun 4 18:54:38 1997 Message-ID: <3395B9BC.6201DD56@whistle.com> Date: Wed, 04 Jun 1997 11:53:48 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: rjs@genrad.co.uk CC: hackers@FreeBSD.ORG, Borja Marcos Subject: Re: Linux clone() system call References: <199706041801.LAA14806@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Robert Swindells wrote: > > It creates kernel threads. Since we don't have kernel threads yet, it > can't be emulated. > > I modified the linux emulator on my system to print out the arguments > to this system call just to check if Inferno was really trying to > create a new thread or if the call could be emulated by fork(). > > > I did a "man clone" in a Linux box and it gave me > > the "undocumented calls" man page. > > > it can be emulated almost exactly using the 'rfork(2)' call