16 Nov
2022
16 Nov
'22
9:12 a.m.
On Wed, 16 Nov 2022 16:17:13 +1100
David Gibson
On Tue, Nov 15, 2022 at 02:23:46AM +0100, Stefano Brivio wrote:
On 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
Urgh, I'd really prefer to make our own wrapper to reduce two ifdefs to one.
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)? -- Stefano