]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
preadv/pwritev: MIPS: Add preadv(2) and pwritev(2) syscalls.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 2 Apr 2009 23:59:24 +0000 (16:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:05:08 +0000 (19:05 -0700)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <linux-api@vger.kernel.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mips/include/asm/unistd.h
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S

index a73e1531e151fc7b0645038bea939aba58e5ce09..40005010827cb4f72c1734778a520a74c7958153 100644 (file)
 #define __NR_dup3                      (__NR_Linux + 327)
 #define __NR_pipe2                     (__NR_Linux + 328)
 #define __NR_inotify_init1             (__NR_Linux + 329)
+#define __NR_preadv                    (__NR_Linux + 330)
+#define __NR_pwritev                   (__NR_Linux + 331)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls            329
+#define __NR_Linux_syscalls            331
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux                 4000
-#define __NR_O32_Linux_syscalls                329
+#define __NR_O32_Linux_syscalls                331
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
 #define __NR_dup3                      (__NR_Linux + 286)
 #define __NR_pipe2                     (__NR_Linux + 287)
 #define __NR_inotify_init1             (__NR_Linux + 288)
+#define __NR_preadv                    (__NR_Linux + 289)
+#define __NR_pwritev                   (__NR_Linux + 290)
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls            288
+#define __NR_Linux_syscalls            290
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux                  5000
-#define __NR_64_Linux_syscalls         288
+#define __NR_64_Linux_syscalls         290
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
 #define __NR_dup3                      (__NR_Linux + 290)
 #define __NR_pipe2                     (__NR_Linux + 291)
 #define __NR_inotify_init1             (__NR_Linux + 292)
+#define __NR_preadv                    (__NR_Linux + 293)
+#define __NR_pwritev                   (__NR_Linux + 294)
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls            292
+#define __NR_Linux_syscalls            294
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux                 6000
-#define __NR_N32_Linux_syscalls                292
+#define __NR_N32_Linux_syscalls                294
 
 #ifdef __KERNEL__
 
index 9ab70c3b5be6bac233e00568ac3ce9dd51f410e8..0b31b9bda0486988128d39d07d52ac2c0d0ad8d8 100644 (file)
@@ -650,6 +650,8 @@ einval:     li      v0, -ENOSYS
        sys     sys_dup3                3
        sys     sys_pipe2               2
        sys     sys_inotify_init1       1
+       sys     sys_preadv              6       /* 4330 */
+       sys     sys_pwritev             6
        .endm
 
        /* We pre-compute the number of _instruction_ bytes needed to
index 9b46986671545dea233ce1f96aca4f59e7eb912a..c647fd6e722f7acb2872ad0f01491b6f2a2637e9 100644 (file)
@@ -487,4 +487,6 @@ sys_call_table:
        PTR     sys_dup3
        PTR     sys_pipe2
        PTR     sys_inotify_init1
+       PTR     sys_preadv
+       PTR     sys_pwritev                     /* 5390 */
        .size   sys_call_table,.-sys_call_table
index f61d6b0e5731dadfcac24715babed10639ce97d2..c2c16ef9218febbb8123e6bf320f1fc5ace5c79e 100644 (file)
@@ -413,4 +413,6 @@ EXPORT(sysn32_call_table)
        PTR     sys_dup3                        /* 5290 */
        PTR     sys_pipe2
        PTR     sys_inotify_init1
+       PTR     sys_preadv
+       PTR     sys_pwritev
        .size   sysn32_call_table,.-sysn32_call_table
index 60997f1f69d4e857861df014ab37e403f1d53c60..002fac27021e61c2ed5aeac2de56b8a01ac70651 100644 (file)
@@ -533,4 +533,6 @@ sys_call_table:
        PTR     sys_dup3
        PTR     sys_pipe2
        PTR     sys_inotify_init1
+       PTR     compat_sys_preadv               /* 4330 */
+       PTR     compat_sys_pwritev
        .size   sys_call_table,.-sys_call_table