Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jul 2023 14:31:59 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Yuri <yuri@FreeBSD.org>
Cc:        Freebsd hackers list <freebsd-hackers@FreeBSD.org>
Subject:   Re: What is the equivalent of the linux system call clone() on  FreeBSD?
Message-ID:  <20230707213159.94845291@slippy.cwsent.com>
In-Reply-To: <693faa01-ca5e-a71c-4e5c-aea4f505ce54@tsoft.com>
References:  <693faa01-ca5e-a71c-4e5c-aea4f505ce54@tsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





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