Re: clone testcases in LTP

From: Nathan Straz <nstraz_at_sgi.com>
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                                              nstraz@sgi.com
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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