Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2000 12:01:40 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Marco van de Voort <marcov@stack.nl>
Cc:        hackers@freebsd.org
Subject:   Re: Clone in userland
Message-ID:  <3901F714.446B9B3D@elischer.org>
References:  <20000422183054.D53EB2E802@hermes.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Marco van de Voort wrote:
> 
> I have a Linux library based on the Clone() call which I want to port to native
> FreeBSD.

Check the port of linuxthreads
(under /ports/devel I think)
It includes a clone() function.


> 
> 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)
> <http://www.stack.nl/~marcov/xtdlib.htm>;
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
      __--_|\  Julian Elischer
     /       \ julian@elischer.org
    (   OZ    ) World tour 2000
---> X_.---._/  presently in:  Perth
            v


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3901F714.446B9B3D>