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 b70c49fdda26afb0b66b6f74f241d570da09ad09..e753a777949b589a1187975e97bb7659915a3ef7 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 20a86e08fd58d4bf942688fd4e4d02d1333d4a8a..b57082123536f217726600918330e7e3e92abda9 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 b046130d4c5d57338c3aa5aac9b109eff297d412..3d866f24e06442995b7c1c106e628b28e7c4fb18 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 15874f9812ccc1cb3fae7d56147fc51502f10810..e855b118a0794f851920eec5c2e291f297e418ff 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 781e0f1e9533ae3f36c9624b3f9554d3c90520a2..0c49f1a660bebf5968e59a4689a9fcd471a7ebd9 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