_clone system call
I have been unable to find an implementation for the _clone function call (calls clone2 system call).
Does anyone know if it exists for ia64, I found an i386 implementation in the latest glibc? I see the
pthread library making a call to clone2 but it is not using the _clone interface.
Thank You
Patricia
The _clone function can't be usefully implemented on Itanium, since it doesn't provide for a place to put the register stack. If you really have to, use __clone2 instead. Its interface is identical to __clone except that an additional argument is added after the stack base; it's the stack size.
Under most circumstances, pthread_create is greatly preferred to either __clone or __clone2. The problem with calling __clone or __clone2 directly is that things are unlikely to work correctly if another library routine also want to create a thread or needs to provide for mutual exclusion.
Hans
Quoted 27 lines
-----Original Message-----
From: Wedum, Patricia [mailto:[email protected]]
Sent: Tuesday, May 28, 2002 3:34 PM
To: '[email protected]'
Subject: [Linux-ia64]_clonesystem callI have been unable to find an implementation for the
_clonefunction call
(calls clone2 system call).Does anyone know if it exists for ia64, I found an i386 implementation in
the latest glibc? I see the
pthread library making a call to clone2 but it is not using the_cloneinterface.Thank You
Patricia_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64