All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] quotactl01: Replace hardcoded 258 by __NR_set_tid_address
@ 2009-09-15 15:29 Geert Uytterhoeven
  2009-09-16 15:17 ` Subrata Modak
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2009-09-15 15:29 UTC (permalink / raw)
  To: Linux Test Project

The call signature seems to match the set_tid_address() syscall.
Also remove the comment about calling quotactl, as it's obviously bogus.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
 testcases/kernel/syscalls/quotactl/quotactl01.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/syscalls/quotactl/quotactl01.c b/testcases/kernel/syscalls/quotactl/quotactl01.c
index fe8df33..f410948 100644
--- a/testcases/kernel/syscalls/quotactl/quotactl01.c
+++ b/testcases/kernel/syscalls/quotactl/quotactl01.c
@@ -152,7 +152,7 @@ int main(int ac, char **av) {
         			tst_resm(TPASS, "quotactl call succeeded");
                         }
                 }
-	             TEST(result = syscall(258, &newtid));     //call quotactl()
+	             TEST(result = syscall(__NR_set_tid_address, &newtid));
                      if(TEST_RETURN == getpid()) {
                         cleanup();
                      }
-- 
1.6.2.4

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] quotactl01: Replace hardcoded 258 by __NR_set_tid_address
  2009-09-15 15:29 [LTP] [PATCH] quotactl01: Replace hardcoded 258 by __NR_set_tid_address Geert Uytterhoeven
@ 2009-09-16 15:17 ` Subrata Modak
  0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-09-16 15:17 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux Test Project

On Tue, 2009-09-15 at 17:29 +0200, Geert Uytterhoeven wrote: 
> The call signature seems to match the set_tid_address() syscall.
> Also remove the comment about calling quotactl, as it's obviously bogus.
> 
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>

Thanks.

Regards--
Subrata

> ---
>  testcases/kernel/syscalls/quotactl/quotactl01.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/quotactl/quotactl01.c b/testcases/kernel/syscalls/quotactl/quotactl01.c
> index fe8df33..f410948 100644
> --- a/testcases/kernel/syscalls/quotactl/quotactl01.c
> +++ b/testcases/kernel/syscalls/quotactl/quotactl01.c
> @@ -152,7 +152,7 @@ int main(int ac, char **av) {
>          			tst_resm(TPASS, "quotactl call succeeded");
>                          }
>                  }
> -	             TEST(result = syscall(258, &newtid));     //call quotactl()
> +	             TEST(result = syscall(__NR_set_tid_address, &newtid));
>                       if(TEST_RETURN == getpid()) {
>                          cleanup();
>                       }


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-16 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15 15:29 [LTP] [PATCH] quotactl01: Replace hardcoded 258 by __NR_set_tid_address Geert Uytterhoeven
2009-09-16 15:17 ` Subrata Modak

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.