Re: clone testcases in LTP

From: Nathan Straz <>
Date: 2003-07-11 02:18:38
On Wed, Jul 09, 2003 at 03:17:42PM -0700, David Mosberger wrote:
> The only difference between clone() and clone2() is the explicit
> stack-size argument.  clone2() is discussed in detail in my book, but
> if you're already familiar with clone(), it's easy to understand
> what's going on.  Here is the pseudo prototype (from glibc):
> /* int  __clone2(int (*fn) (void *arg), void *child_stack_base,	*/
> /*	         size_t child_stack_size, int flags, void *arg,		*/
> /*	         pid_t *parent_tid, void *tls, pid_t *child_tid)	*/

Hmm, that prototype seems to have a lot more args than the clone man
page states:

   #include <sched.h>
   int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
   _syscall2(int, clone, int, flags, void *, child_stack);

What are the parameters parent_tid, tls, and child_tid supposed to be?
Nate Straz                                    
sgi, inc                                 
Linux Test Project                        
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Thu Jul 10 12:22:59 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:16 EST