From owner-freebsd-hackers Sat Apr 22 11:47: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhost.tue.nl (mailhost.tue.nl [131.155.2.5]) by hub.freebsd.org (Postfix) with ESMTP id 9FEBE37B695 for ; Sat, 22 Apr 2000 11:47:06 -0700 (PDT) (envelope-from marcov@toad.stack.nl) Received: from hermes.tue.nl [131.155.2.46] by mailhost.tue.nl (8.9.3) for id UAA09476 (ESMTP); Sat, 22 Apr 2000 20:31:00 +0200 (MDT) Received: from deathstar (n84.dial.tue.nl [131.155.209.83]) by hermes.tue.nl (Postfix) with ESMTP id D53EB2E802 for ; Sat, 22 Apr 2000 20:30:54 +0200 (CEST) From: "Marco van de Voort" To: hackers@freebsd.org Date: Sat, 22 Apr 2000 20:30:39 +0100 Subject: Clone in userland X-mailer: Pegasus Mail for Win32 (v3.12b) Message-Id: <20000422183054.D53EB2E802@hermes.tue.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a Linux library based on the Clone() call which I want to port to native FreeBSD. I checked the linux emulation, and it seems to do some internal kernel stuff. Is this possible to emulate in userland? p2 = pfind(p->p_retval[0]); /* MvdV: check rfork's return value, and if clone, then load process info? */ if (p2 == 0) return ESRCH; p2->p_sigparent = exit_signal; p2->p_md.md_regs->tf_esp = (unsigned int)args->stack; Marco van de Voort (MarcoV@Stack.nl) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message