Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2023 13:45:53 -0700
From:      Yuri <yuri@FreeBSD.org>
To:        Freebsd hackers list <freebsd-hackers@FreeBSD.org>
Subject:   What is the equivalent of the linux system call clone() on FreeBSD?
Message-ID:  <693faa01-ca5e-a71c-4e5c-aea4f505ce54@tsoft.com>

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


Thanks,

Yuri





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?693faa01-ca5e-a71c-4e5c-aea4f505ce54>