Re: clone testcases in LTP

From: David Mosberger <>
Date: 2003-07-10 08:17:42
>>>>> On Wed, 9 Jul 2003 16:32:59 -0500, Nathan Straz <> said:

  Nathan> Could someone in the Linux ia64 community look at the clone
  Nathan> system call tests that the LTP has under
  Nathan> ltp/testcases/kernel/syscalls/clone?  I know that ia64 uses
  Nathan> clone2() instead of clone() but I don't know where the
  Nathan> differences are documented.  I would like to get these test
  Nathan> cases, or some variation or them, compiling and running on
  Nathan> ia64.

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)	*/

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Jul 9 18:20:25 2003

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