From: chrubis@suse.cz
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net, Mike Frysinger <vapier@gentoo.org>
Subject: Re: [LTP] [PATCH???v3] lib/cloner.c: add function ltp_clone7 when clone supports???7 arguments
Date: Thu, 9 Jan 2014 19:08:05 +0100 [thread overview]
Message-ID: <20140109180804.GA9619@rei> (raw)
In-Reply-To: <629935924.13499645.1389289589284.JavaMail.root@redhat.com>
Hi!
> > Hi!
> > And here is a patch. (note that it should be applied over the two
> > allready commited patches)
>
> Hi,
>
> Line 130 contains a typo:
> clone08.c: In function ??clone_child??:
> clone08.c:130: warning: implicit declaration of function ??tst_brmk??
Aw, I will fix that.
> In relation to:
> #ifndef CLONE_SUPPORTS_7_ARGS
> # define clone(fn, stack, flags, arg, ptid, tls, ctid) \
> clone(fn, stack, flags, arg) #endif
>
> Shouldn't we have something similar also for clone2()?
> For example:
>
> --- cloner.c 2014-01-09 18:10:27.965074200 +0100
> +++ /tmp/cloner.c 2014-01-09 18:43:28.099822061 +0100
> @@ -34,10 +34,14 @@
> #undef clone /* we want to use clone() */
>
> #if defined(__ia64__)
> -#define clone2 __clone2
> +# ifndef CLONE_SUPPORTS_7_ARGS
> +# define clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid) \
> + __clone2(fn, stack, stack_size, flags, arg)
> +# else
> +# define clone2 __clone2
> +# endif
> 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);
> + size_t child_stack_size, int flags, void *arg, ...);
> #endif
>
> #ifndef CLONE_SUPPORTS_7_ARGS
I've been unable to locate ia64 distribution that does not support the
additional parameters so I've leaved that out. It may be related to a
fact that linux was ported to ia64 after the interface has changed, but
that is just my guess.
And I guess that we may drop the extern int definition too, at least the
configure script with __clone2() function seems to work fine just with
the <sched.h>
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-01-09 18:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-18 9:29 [LTP] [PATCH v5 1/2] lib/cloner.c: add more args zenglg.jy
2013-12-23 1:11 ` Wanlong Gao
2014-01-07 14:09 ` chrubis
[not found] ` <1389181297.2879.11.camel@G08JYZSD130126>
2014-01-08 13:20 ` chrubis
[not found] ` <1389191490.2879.27.camel@G08JYZSD130126>
2014-01-08 15:15 ` [LTP] [PATCH] clone/clone08.c: check whether clone supports 7 arguments chrubis
[not found] ` <1389254938.2025.3.camel@G08JYZSD130126>
2014-01-09 11:36 ` chrubis
[not found] ` <1389269411.2149.8.camel@G08JYZSD130126>
2014-01-09 13:27 ` [LTP] [PATCH???v3] lib/cloner.c: add function ltp_clone7 when clone supports???7 arguments chrubis
[not found] ` <201401090947.12749.vapier@gentoo.org>
2014-01-09 15:04 ` chrubis
2014-01-09 16:37 ` chrubis
[not found] ` <629935924.13499645.1389289589284.JavaMail.root@redhat.com>
2014-01-09 18:08 ` chrubis [this message]
[not found] ` <201401091417.16506.vapier@gentoo.org>
2014-01-13 16:02 ` chrubis
[not found] ` <201401081447.46449.vapier@gentoo.org>
2014-01-09 11:24 ` [LTP] [PATCH] clone/clone08.c: check whether clone supports 7 arguments chrubis
[not found] ` <201401090803.39606.vapier@gentoo.org>
2014-01-09 13:09 ` chrubis
[not found] ` <201401090900.59568.vapier@gentoo.org>
2014-01-09 14:34 ` chrubis
2014-01-09 13:23 ` Jan Stancek
2014-01-09 13:51 ` Mike Frysinger
2014-01-09 14:10 ` Jan Stancek
2014-01-09 14:30 ` Mike Frysinger
2014-01-09 14:39 ` chrubis
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=20140109180804.GA9619@rei \
--to=chrubis@suse.cz \
--cc=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=vapier@gentoo.org \
/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