Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[ARM] wire up sys_accept4() on ARM

sys_accept4() was added in kernel 2.6.28, but ARM was not updated
to include it.  The number and types of parameters is such that
no ARM-specific processing is needed, so wiring up sys_accept4()
just requires defining __NR_accept4 and adding a direct call in
the syscall entry table.
  • Loading branch information...
commit a84fac75f38de592e530a2f9f982d7aafec6c288 1 parent f71f570
Steev Klimaszewski authored
Showing with 3 additions and 0 deletions.
  1. +1 −0  arch/arm/include/asm/unistd.h
  2. +2 −0  arch/arm/kernel/calls.S
View
1  arch/arm/include/asm/unistd.h
@@ -391,6 +391,7 @@
#define __NR_pwritev (__NR_SYSCALL_BASE+362)
#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
#define __NR_perf_counter_open (__NR_SYSCALL_BASE+364)
+#define __NR_accept4 (__NR_SYSCALL_BASE+366)
/*
* The following SWIs are ARM private.
View
2  arch/arm/kernel/calls.S
@@ -374,6 +374,8 @@
CALL(sys_pwritev)
CALL(sys_rt_tgsigqueueinfo)
CALL(sys_perf_counter_open)
+/* 365 */ CALL(sys_ni_syscall) /* recvmmsg */
+ CALL(sys_accept4)
#ifndef syscalls_counted
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
#define syscalls_counted
Please sign in to comment.
Something went wrong with that request. Please try again.