From: chrubis@suse.cz
To: Mike Frysinger <vapier@gentoo.org>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH???v3] lib/cloner.c: add function ltp_clone7 when clone supports???7 arguments
Date: Mon, 13 Jan 2014 17:02:48 +0100 [thread overview]
Message-ID: <20140113160248.GB1945@rei> (raw)
In-Reply-To: <201401091417.16506.vapier@gentoo.org>
Hi!
> > > 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>
>
> the ia64 glibc port has never included a prototype for the clone2 func. so
> the configure test (which is really just doing a compile time test against the
> prototype in the C library's header) would never fail.
Ah, you are right, the build has finished fine but there are implicit
declaration warnings in the log. I should have checked it.
> in terms of the actual code, the clone2 func was updated here to take 7 args:
> commit 625f22fc7f8e0d61e3e6cff2c65468b91dbad426
> Author: Ulrich Drepper <drepper@redhat.com>
> Date: Mon Mar 3 19:53:27 2003 +0000
>
> that commit was first released in glibc-2.3.3. but even if you were using an
> older glibc, the configure would pass and the code would compile fine (again,
> due to the fact glibc has never included a prototype for __clone2).
I've looked at the SLES9 and RHEL4 and they both have glibc at least
2.3.3. So I think that it's safe to assume that __clone2() on ia64
supports eight arguments and simply decleare the prototype in
lib/cloner.c.
--
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-13 16:03 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
[not found] ` <201401091417.16506.vapier@gentoo.org>
2014-01-13 16:02 ` chrubis [this message]
[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=20140113160248.GB1945@rei \
--to=chrubis@suse.cz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.