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 ([EMAIL PROTECTED])
<http://www.stack.nl/~marcov/xtdlib.htm>



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to