Hi,

Recently the epoll_create2_01 syscall test was added into LTP but I found
the kernel has already changed the name of it into epoll_create1, and its 
interface, too.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=9fe5ad9c8cef9ad5873d8ee55d1cf00d9b607df0

I wrote a patch for it but maybe it's no enough, 'cause
I don't know whether the name of file/directory shall be changed or not.

Signed-off-by: Seiichi Ikarashi <[email protected]>

Regards,
Index: ltp/testcases/kernel/include/i386.in
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/include/i386.in,v
retrieving revision 1.8
diff -u -r1.8 i386.in
--- ltp/testcases/kernel/include/i386.in	4 Feb 2009 06:16:40 -0000	1.8
+++ ltp/testcases/kernel/include/i386.in	5 Feb 2009 05:39:32 -0000
@@ -42,7 +42,7 @@
 __NR_timerfd_gettime 326
 __NR_signalfd4 327
 __NR_eventfd2 328
-__NR_epoll_create2 329
+__NR_epoll_create1 329
 __NR_dup3 330
 __NR_pipe2 331
 __NR_inotify_init1 332
Index: ltp/testcases/kernel/include/x86_64.in
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/include/x86_64.in,v
retrieving revision 1.8
diff -u -r1.8 x86_64.in
--- ltp/testcases/kernel/include/x86_64.in	4 Feb 2009 06:16:40 -0000	1.8
+++ ltp/testcases/kernel/include/x86_64.in	5 Feb 2009 05:39:32 -0000
@@ -29,7 +29,7 @@
 __NR_timerfd_gettime 287
 __NR_signalfd4 289
 __NR_eventfd2 290
-__NR_epoll_create2 291
+__NR_epoll_create1 291
 __NR_dup3 292
 __NR_pipe2 293
 __NR_inotify_init1 294
Index: ltp/testcases/kernel/syscalls/epoll_create2/epoll_create2_01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/epoll_create2/epoll_create2_01.c,v
retrieving revision 1.2
diff -u -r1.2 epoll_create2_01.c
--- ltp/testcases/kernel/syscalls/epoll_create2/epoll_create2_01.c	4 Feb 2009 06:16:40 -0000	1.2
+++ ltp/testcases/kernel/syscalls/epoll_create2/epoll_create2_01.c	5 Feb 2009 05:39:33 -0000
@@ -20,13 +20,13 @@
 /******************************************************************************/
 /******************************************************************************/
 /*                                                                            */
-/* File:        epoll_create2_01.c                                            */
+/* File:        epoll_create1_01.c                                            */
 /*                                                                            */
 /* Description: This Program tests the new system call introduced in 2.6.27.  */
 /*              Ulrich´s comment as in:                                       */
 /* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a0998b50c3f0b8fdd265c63e0032f86ebe377dbf */
 /*              says:                                                         */
-/* This patch adds the new epoll_create2 syscall.  It extends the old         */
+/* This patch adds the new epoll_create1 syscall.  It extends the old         */
 /* epoll_create syscall by one parameter which is meant to hold a flag value. */
 /* In this patch the only flag support is EPOLL_CLOEXEC which causes the      */
 /* close-on-exec flag for the returned file descriptor to be set. A new name  */
@@ -35,7 +35,7 @@
 /* other than x86 and x86-64 and in case the syscall numbers changed.         */
 /*                                                                            */
 /* Usage:  <for command-line>                                                 */
-/* epoll_create2_01 [-c n] [-e][-i n] [-I x] [-p x] [-t]                      */
+/* epoll_create1_01 [-c n] [-e][-i n] [-I x] [-p x] [-t]                      */
 /*      where,  -c n : Run n copies concurrently.                             */
 /*              -e   : Turn on errno logging.                                 */
 /*              -i n : Execute test n times.                                  */
@@ -45,7 +45,7 @@
 /*                                                                            */
 /* Total Tests: 1                                                             */
 /*                                                                            */
-/* Test Name:   epoll_create2_01                                              */
+/* Test Name:   epoll_create1_01                                              */
 /*                                                                            */
 /* Author:      Ulrich Drepper <[email protected]>                           */
 /*                                                                            */
@@ -75,7 +75,7 @@
 extern char *TESTDIR;                /* temporary dir created by tst_tmpdir() */
 
 /* Global Variables */
-char *TCID     = "epoll_create2_01"; /* test program identifier.              */
+char *TCID     = "epoll_create1_01"; /* test program identifier.              */
 int  testno;
 int  TST_TOTAL = 1;                  /* total number of tests in this file.   */
 
@@ -152,9 +152,9 @@
   for (lc = 0; TEST_LOOPING(lc); ++lc) {
        Tst_count = 0;
        for (testno=0; testno < TST_TOTAL; ++testno) {
-            fd = syscall (__NR_epoll_create2, 1, 0);
+            fd = syscall (__NR_epoll_create1, 0);
             if (fd == -1) {
-                tst_resm(TFAIL, "epoll_create2(0) failed");
+                tst_resm(TFAIL, "epoll_create1(0) failed");
                 cleanup();
                 tst_exit();
             }
@@ -164,14 +164,14 @@
                 tst_exit();
             }
             if (coe & FD_CLOEXEC) {
-                tst_resm(TFAIL, "epoll_create2(0) set close-on-exec flag");
+                tst_resm(TFAIL, "epoll_create1(0) set close-on-exec flag");
                 cleanup();
                 tst_exit();
             }
             close (fd);
-            fd = syscall (__NR_epoll_create2, 1, EPOLL_CLOEXEC);
+            fd = syscall (__NR_epoll_create1,  EPOLL_CLOEXEC);
             if (fd == -1) {
-                tst_resm(TFAIL, "epoll_create2(EPOLL_CLOEXEC) failed");
+                tst_resm(TFAIL, "epoll_create1(EPOLL_CLOEXEC) failed");
                 cleanup();
                 tst_exit();
             }
@@ -181,12 +181,12 @@
                 tst_exit();
             }
             if ((coe & FD_CLOEXEC) == 0) {
-                 tst_resm(TFAIL, "epoll_create2(EPOLL_CLOEXEC) set close-on-exec flag");
+                 tst_resm(TFAIL, "epoll_create1(EPOLL_CLOEXEC) set close-on-exec flag");
                  cleanup();
                  tst_exit();
             }
             close (fd);
-            tst_resm(TPASS, "epoll_create2(EPOLL_CLOEXEC) PASSED");
+            tst_resm(TPASS, "epoll_create1(EPOLL_CLOEXEC) PASSED");
             cleanup();
        }
   }
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to