From: Mike Frysinger <vapier@gentoo.org>
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: LTP list <ltp-list@lists.sourceforge.net>,
Subrata Modak1 <subrata.modak@in.ibm.com>
Subject: Re: [LTP] [PATCH 1/1] define and use common clone helpers (v2)
Date: Tue, 29 Sep 2009 20:29:17 -0400 [thread overview]
Message-ID: <200909292029.18319.vapier@gentoo.org> (raw)
In-Reply-To: <20090929233015.GA22127@us.ibm.com>
[-- Attachment #1.1: Type: Text/Plain, Size: 1173 bytes --]
On Tuesday 29 September 2009 19:30:15 Serge E. Hallyn wrote:
> Define ltp_clone() and ltp_clone_malloc() in libltp, and convert existing
> clone usages to them. (clone04 can't use it bc it wants to pass NULL,
> which ltp_clone() will for many arches convert to NULL+stacksize-1).
i thought you fixed the clone04 issue ?
> +int ltp_clone(unsigned long clone_flags, int (*fn)(void *arg), void *arg,
> + int stack_size, void *stack);
change stack_size to size_t to match malloc()
> +/* 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) */
> +extern 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);
what's with the big commented prototype ? just scrub it ...
> + * 1. hppa takes bottom of stack and no stacksize
note that it's because their stack grows up
> + * 3. all others take top of stack,
note that it's because their stack grows down
otherwise, all the changes look straight forward. thanks again.
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 401 bytes --]
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2009-09-30 0:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-29 23:30 [LTP] [PATCH 1/1] define and use common clone helpers (v2) Serge E. Hallyn
2009-09-30 0:29 ` Mike Frysinger [this message]
2009-09-30 4:35 ` Serge E. Hallyn
2009-10-13 12:13 ` Subrata Modak
2009-11-03 20:09 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909292029.18319.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=ltp-list@lists.sourceforge.net \
--cc=serue@us.ibm.com \
--cc=subrata.modak@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox