* [LTP] Fix digsig so it passes -Wshadow
@ 2009-07-31 6:33 Garrett Cooper
2009-07-31 7:43 ` Garrett Cooper
2009-07-31 14:35 ` Serge E. Hallyn
0 siblings, 2 replies; 8+ messages in thread
From: Garrett Cooper @ 2009-07-31 6:33 UTC (permalink / raw)
To: LTP list
clone(2) is externally defined in sched.h, and as such
testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
compile with -Wall due to a shadowed declaration.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Index: writeexec/libwritetest.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
retrieving revision 1.1
diff -u -r1.1 libwritetest.c
--- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
+++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
@@ -9,8 +9,6 @@
#include <dlfcn.h>
#include <wait.h>
-int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
-
int writer(void *data)
{
int fd;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LTP] Fix digsig so it passes -Wshadow
2009-07-31 6:33 [LTP] Fix digsig so it passes -Wshadow Garrett Cooper
@ 2009-07-31 7:43 ` Garrett Cooper
2009-07-31 14:36 ` Serge E. Hallyn
2009-07-31 14:35 ` Serge E. Hallyn
1 sibling, 1 reply; 8+ messages in thread
From: Garrett Cooper @ 2009-07-31 7:43 UTC (permalink / raw)
To: LTP list
On Thu, Jul 30, 2009 at 11:33 PM, Garrett Cooper<yanegomi@gmail.com> wrote:
> clone(2) is externally defined in sched.h, and as such
> testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> compile with -Wall due to a shadowed declaration.
>
> Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
>
> Index: writeexec/libwritetest.c
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
> retrieving revision 1.1
> diff -u -r1.1 libwritetest.c
> --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> @@ -9,8 +9,6 @@
> #include <dlfcn.h>
> #include <wait.h>
>
> -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> -
> int writer(void *data)
> {
> int fd;
Instead of this, let me do a general purpose `fix' for digsig. There
are a few other issues that need to be resolved.
-Garrett
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LTP] Fix digsig so it passes -Wshadow
2009-07-31 7:43 ` Garrett Cooper
@ 2009-07-31 14:36 ` Serge E. Hallyn
2009-08-03 11:20 ` Subrata Modak
0 siblings, 1 reply; 8+ messages in thread
From: Serge E. Hallyn @ 2009-07-31 14:36 UTC (permalink / raw)
To: Garrett Cooper; +Cc: LTP list
Quoting Garrett Cooper (yanegomi@gmail.com):
> On Thu, Jul 30, 2009 at 11:33 PM, Garrett Cooper<yanegomi@gmail.com> wrote:
> > clone(2) is externally defined in sched.h, and as such
> > testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> > compile with -Wall due to a shadowed declaration.
> >
> > Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
> >
> > Index: writeexec/libwritetest.c
> > ===================================================================
> > RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
> > retrieving revision 1.1
> > diff -u -r1.1 libwritetest.c
> > --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> > +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> > @@ -9,8 +9,6 @@
> > #include <dlfcn.h>
> > #include <wait.h>
> >
> > -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> > -
> > int writer(void *data)
> > {
> > int fd;
>
> Instead of this, let me do a general purpose `fix' for digsig. There
> are a few other issues that need to be resolved.
> -Garrett
Alternatively, since digsig never went upstream and isn't being
maintained, it might be best to drop this from LTP. <sniff>
-serge
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LTP] Fix digsig so it passes -Wshadow
2009-07-31 14:36 ` Serge E. Hallyn
@ 2009-08-03 11:20 ` Subrata Modak
2009-08-03 14:17 ` Serge E. Hallyn
0 siblings, 1 reply; 8+ messages in thread
From: Subrata Modak @ 2009-08-03 11:20 UTC (permalink / raw)
To: Serge E. Hallyn; +Cc: LTP list
On Fri, 2009-07-31 at 09:36 -0500, Serge E. Hallyn wrote:
> Quoting Garrett Cooper (yanegomi@gmail.com):
> > On Thu, Jul 30, 2009 at 11:33 PM, Garrett Cooper<yanegomi@gmail.com> wrote:
> > > clone(2) is externally defined in sched.h, and as such
> > > testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> > > compile with -Wall due to a shadowed declaration.
> > >
> > > Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
> > >
> > > Index: writeexec/libwritetest.c
> > > ===================================================================
> > > RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
> > > retrieving revision 1.1
> > > diff -u -r1.1 libwritetest.c
> > > --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> > > +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> > > @@ -9,8 +9,6 @@
> > > #include <dlfcn.h>
> > > #include <wait.h>
> > >
> > > -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> > > -
> > > int writer(void *data)
> > > {
> > > int fd;
> >
> > Instead of this, let me do a general purpose `fix' for digsig. There
> > are a few other issues that need to be resolved.
> > -Garrett
>
> Alternatively, since digsig never went upstream and isn't being
> maintained, it might be best to drop this from LTP. <sniff>
Oh. Is it ? So, should i finally drop this from LTP ?
Regards--
Subrata
>
> -serge
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LTP] Fix digsig so it passes -Wshadow
2009-08-03 11:20 ` Subrata Modak
@ 2009-08-03 14:17 ` Serge E. Hallyn
2009-08-04 12:08 ` Subrata Modak
0 siblings, 1 reply; 8+ messages in thread
From: Serge E. Hallyn @ 2009-08-03 14:17 UTC (permalink / raw)
To: Subrata Modak; +Cc: LTP list, Disec-Devel
Quoting Subrata Modak (subrata@linux.vnet.ibm.com):
> On Fri, 2009-07-31 at 09:36 -0500, Serge E. Hallyn wrote:
> > Quoting Garrett Cooper (yanegomi@gmail.com):
> > > On Thu, Jul 30, 2009 at 11:33 PM, Garrett Cooper<yanegomi@gmail.com> wrote:
> > > > clone(2) is externally defined in sched.h, and as such
> > > > testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> > > > compile with -Wall due to a shadowed declaration.
> > > >
> > > > Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
> > > >
> > > > Index: writeexec/libwritetest.c
> > > > ===================================================================
> > > > RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
> > > > retrieving revision 1.1
> > > > diff -u -r1.1 libwritetest.c
> > > > --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> > > > +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> > > > @@ -9,8 +9,6 @@
> > > > #include <dlfcn.h>
> > > > #include <wait.h>
> > > >
> > > > -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> > > > -
> > > > int writer(void *data)
> > > > {
> > > > int fd;
> > >
> > > Instead of this, let me do a general purpose `fix' for digsig. There
> > > are a few other issues that need to be resolved.
> > > -Garrett
> >
> > Alternatively, since digsig never went upstream and isn't being
> > maintained, it might be best to drop this from LTP. <sniff>
>
> Oh. Is it ? So, should i finally drop this from LTP ?
I fear so. Unless someone on disec-devel@ disagrees?
-serge
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LTP] Fix digsig so it passes -Wshadow
2009-08-03 14:17 ` Serge E. Hallyn
@ 2009-08-04 12:08 ` Subrata Modak
0 siblings, 0 replies; 8+ messages in thread
From: Subrata Modak @ 2009-08-04 12:08 UTC (permalink / raw)
To: Serge E. Hallyn; +Cc: LTP list, Disec-Devel
On Mon, 2009-08-03 at 09:17 -0500, Serge E. Hallyn wrote:
> Quoting Subrata Modak (subrata@linux.vnet.ibm.com):
> > On Fri, 2009-07-31 at 09:36 -0500, Serge E. Hallyn wrote:
> > > Quoting Garrett Cooper (yanegomi@gmail.com):
> > > > On Thu, Jul 30, 2009 at 11:33 PM, Garrett Cooper<yanegomi@gmail.com> wrote:
> > > > > clone(2) is externally defined in sched.h, and as such
> > > > > testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> > > > > compile with -Wall due to a shadowed declaration.
> > > > >
> > > > > Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
> > > > >
> > > > > Index: writeexec/libwritetest.c
> > > > > ===================================================================
> > > > > RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
> > > > > retrieving revision 1.1
> > > > > diff -u -r1.1 libwritetest.c
> > > > > --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> > > > > +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> > > > > @@ -9,8 +9,6 @@
> > > > > #include <dlfcn.h>
> > > > > #include <wait.h>
> > > > >
> > > > > -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> > > > > -
> > > > > int writer(void *data)
> > > > > {
> > > > > int fd;
> > > >
> > > > Instead of this, let me do a general purpose `fix' for digsig. There
> > > > are a few other issues that need to be resolved.
> > > > -Garrett
> > >
> > > Alternatively, since digsig never went upstream and isn't being
> > > maintained, it might be best to drop this from LTP. <sniff>
> >
> > Oh. Is it ? So, should i finally drop this from LTP ?
>
> I fear so. Unless someone on disec-devel@ disagrees?
Done.
Regards--
Subrata
>
> -serge
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] Fix digsig so it passes -Wshadow
2009-07-31 6:33 [LTP] Fix digsig so it passes -Wshadow Garrett Cooper
2009-07-31 7:43 ` Garrett Cooper
@ 2009-07-31 14:35 ` Serge E. Hallyn
2009-08-13 7:24 ` Mike Frysinger
1 sibling, 1 reply; 8+ messages in thread
From: Serge E. Hallyn @ 2009-07-31 14:35 UTC (permalink / raw)
To: Garrett Cooper; +Cc: LTP list
Quoting Garrett Cooper (yanegomi@gmail.com):
> clone(2) is externally defined in sched.h, and as such
> testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> compile with -Wall due to a shadowed declaration.
>
> Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
>
> Index: writeexec/libwritetest.c
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/digsig/writeexec/libwritetest.c,v
> retrieving revision 1.1
> diff -u -r1.1 libwritetest.c
> --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> @@ -9,8 +9,6 @@
> #include <dlfcn.h>
> #include <wait.h>
>
> -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> -
> int writer(void *data)
> {
> int fd;
Sure, as long as that's now the case on all distros. Historically it
hasn't been. But if it's not we'll presumably hear about it.
-serge
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LTP] Fix digsig so it passes -Wshadow
2009-07-31 14:35 ` Serge E. Hallyn
@ 2009-08-13 7:24 ` Mike Frysinger
0 siblings, 0 replies; 8+ messages in thread
From: Mike Frysinger @ 2009-08-13 7:24 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 967 bytes --]
On Friday 31 July 2009 10:35:44 Serge E. Hallyn wrote:
> Quoting Garrett Cooper (yanegomi@gmail.com):
> > clone(2) is externally defined in sched.h, and as such
> > testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> > compile with -Wall due to a shadowed declaration.
> >
> > Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
> >
> > --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> > +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> > @@ -9,8 +9,6 @@
> > #include <dlfcn.h>
> > #include <wait.h>
> >
> > -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> > -
> > int writer(void *data)
> > {
> > int fd;
>
> Sure, as long as that's now the case on all distros. Historically it
> hasn't been. But if it's not we'll presumably hear about it.
except clone() is not safe to use directly as it isnt the same on all arches.
we really need a wrapper for this in ltp.
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 355 bytes --]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
[-- 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-08-13 7:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-31 6:33 [LTP] Fix digsig so it passes -Wshadow Garrett Cooper
2009-07-31 7:43 ` Garrett Cooper
2009-07-31 14:36 ` Serge E. Hallyn
2009-08-03 11:20 ` Subrata Modak
2009-08-03 14:17 ` Serge E. Hallyn
2009-08-04 12:08 ` Subrata Modak
2009-07-31 14:35 ` Serge E. Hallyn
2009-08-13 7:24 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox