Making __clone3() public

Yury Khrustalev yury.khrustalev@arm.com
Mon May 19 09:47:46 GMT 2025


On Fri, May 16, 2025 at 10:21:50AM +0200, Florian Weimer wrote:
> * Yury Khrustalev via Libc-help:
> 
> > I'd like to write a test for Glibc that would use the __clone3() wrapper.
> 
> There are many different shapes a clone3 wrapper could take:
> 
>   fork (runs fork handlers)
>   _Fork (does not run fork handlers)
>   vfork (does not run fork handlers, pauses original thread)
>   __clone2 (does not run fork handlers, uses callback and separate stack)
>   pthread_create (does not run fork handlers, callback & stack &TCB)
> 
> So it's probably not going to be a single wrapper.

I meant calling the __clone3() symbol directly, not using one of these wrappers.
I'll try the solution proposed by Carlos in the adjacent reply.

Thanks,
Yury



More information about the Libc-help mailing list