From owner-freebsd-hackers Sat Oct 18 13:20:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA03016 for hackers-outgoing; Sat, 18 Oct 1997 13:20:32 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from kalkoen.sateh.com (kalkoen.sateh.com [194.151.25.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA03011 for ; Sat, 18 Oct 1997 13:20:28 -0700 (PDT) (envelope-from stefan@kalkoen.sateh.com) Received: (from stefan@localhost) by kalkoen.sateh.com (8.8.5/8.8.5) id WAA05788; Sat, 18 Oct 1997 22:22:08 +0200 (CEST) Message-ID: <19971018222208.49710@kalkoen.sateh.com> Date: Sat, 18 Oct 1997 22:22:08 +0200 From: Stefan Arentz To: freebsd-hackers@freebsd.org Subject: Linux Emulation - clone() Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk (I'm forwarding this to hackers because i'm not getting responses from the people on emulation). Hi Folks, I'm trying to implement the linux clone() system call in 2.2.2. It looks like this can be done with the FreeBSD rfork call except that Linux also allows you to set the user stack pointer for the new process. pid_t clone(void *sp, unsigned long flags) I'm still reading 'The design and implementation of the 4.4BSD operating system' to get a clue about where to setup the stack pointer, but it's still a big mystery to me ;) Maybe someone can point me in the right direction. - Stefan