Re: clone testcases in LTP

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-07-11 02:25:06
>>>>> On Thu, 10 Jul 2003 11:18:38 -0500, Nathan Straz <nstraz@sgi.com> said:

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

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

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

  Nathan> What are the parameters parent_tid, tls, and child_tid
  Nathan> supposed to be?

Hint 1: search google for "NPTL".
Hint 2: it's nothing ia64-specific.
Hint 3: the arguments are ignored unless you specify certain CLONE* flags,
        so the interface remains backwards-compatible.

Hope this helps.

	--david
-
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:28:04 2003

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