Re: What is the equivalent of the linux system call clone() on FreeBSD?
- In reply to: Yuri : "What is the equivalent of the linux system call clone() on FreeBSD?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Jul 2023 21:31:59 UTC
In message <693faa01-ca5e-a71c-4e5c-aea4f505ce54@tsoft.com>, Yuri writes: > Linux has the clone() function that allows the caller more control over > process cloning than the fork(2) function does. > > FreeBSD only has clone() in its Linux emulator code for Linux apps, but > it seems to be missing in the system. > > Is there a library that implements functionality similar to Linux's clone()? > > Otherwise, how can clone() calls like this > https://github.com/cea-hpc/wi4mpi/blob/master/src/common/helper.c#L82 be > resolved on FreeBSD? Linux replaced fork() and pthread_create() with clone(). > > > Thanks, > > Yuri > > > -- Cheers, Cy Schubert <Cy.Schubert@cschubert.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org NTP: <cy@nwtime.org> Web: https://nwtime.org e^(i*pi)+1=0