On Wed, 16 Nov 2022 16:17:13 +1100 David Gibson <david(a)gibson.dropbear.id.au> wrote:On Tue, Nov 15, 2022 at 02:23:46AM +0100, Stefano Brivio wrote:Hmm, right. I'd go with: __clone(int (*fn)(void *), void *stack_base, size_t stack_size, int flags, void *arg) ...where stack_base is ns_fn_stack. Better ideas (especially for the name)? -- StefanoOn ia64, clone(2) is not available: the glibc wrapper is named __clone2() and it takes, additionally, the size of the stack area passed by the caller. Spotted in Debian's buildd logs. Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>Urgh, I'd really prefer to make our own wrapper to reduce two ifdefs to one.