MIPS: Wire up accept4 syscall.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:27:19 +0000 (17:27 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:52:50 +0000 (17:52 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.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 b70c49f..e753a77 100644 (file)
 #define __NR_pwritev                   (__NR_Linux + 331)
 #define __NR_rt_tgsigqueueinfo         (__NR_Linux + 332)
 #define __NR_perf_counter_open         (__NR_Linux + 333)
+#define __NR_accept4                   (__NR_Linux + 334)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls            333
+#define __NR_Linux_syscalls            334
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux                 4000
-#define __NR_O32_Linux_syscalls                333
+#define __NR_O32_Linux_syscalls                334
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
 #define __NR_pwritev                   (__NR_Linux + 290)
 #define __NR_rt_tgsigqueueinfo         (__NR_Linux + 291)
 #define __NR_perf_counter_open         (__NR_Linux + 292)
+#define __NR_accept4                   (__NR_Linux + 293)
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls            292
+#define __NR_Linux_syscalls            293
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux                  5000
-#define __NR_64_Linux_syscalls         292
+#define __NR_64_Linux_syscalls         293
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
 #define __NR_pwritev                   (__NR_Linux + 294)
 #define __NR_rt_tgsigqueueinfo         (__NR_Linux + 295)
 #define __NR_perf_counter_open         (__NR_Linux + 296)
+#define __NR_accept4                   (__NR_Linux + 297)
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls            296
+#define __NR_Linux_syscalls            297
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux                 6000
-#define __NR_N32_Linux_syscalls                296
+#define __NR_N32_Linux_syscalls                297
 
 #ifdef __KERNEL__
 
index 20a86e0..b570821 100644 (file)
@@ -654,6 +654,7 @@ einval:     li      v0, -ENOSYS
        sys     sys_pwritev             6
        sys     sys_rt_tgsigqueueinfo   4
        sys     sys_perf_counter_open   5
+       sys     sys_accept4             4
        .endm
 
        /* We pre-compute the number of _instruction_ bytes needed to
index b046130..3d866f2 100644 (file)
@@ -491,4 +491,5 @@ sys_call_table:
        PTR     sys_pwritev                     /* 5390 */
        PTR     sys_rt_tgsigqueueinfo
        PTR     sys_perf_counter_open
+       PTR     sys_accept4
        .size   sys_call_table,.-sys_call_table
index 15874f9..e855b11 100644 (file)
@@ -417,4 +417,5 @@ EXPORT(sysn32_call_table)
        PTR     sys_pwritev
        PTR     compat_sys_rt_tgsigqueueinfo    /* 5295 */
        PTR     sys_perf_counter_open
+       PTR     sys_accept4
        .size   sysn32_call_table,.-sysn32_call_table
index 781e0f1..0c49f1a 100644 (file)
@@ -537,4 +537,5 @@ sys_call_table:
        PTR     compat_sys_pwritev
        PTR     compat_sys_rt_tgsigqueueinfo
        PTR     sys_perf_counter_open
+       PTR     sys_accept4
        .size   sys_call_table,.-sys_call_table