2.4: reserve syscalls from 2.5
PATCH 1/1 2.4: reserve syscalls from 2.5
Marcelo,
The following patch reserves syscall numbers 239 through 242 which are the calls to date added to 2.5. I just set them to sys_ni_syscall and note which 2.5 function they correspond to.
Patch is against 2.5.19-pre6, please apply.
Robert Love
arch/i386/kernel/entry.S +4 -0
@@ -635,6 +635,10 @@ .long SYMBOL_NAME(sys_ni_syscall) /* reserved for lremovexattr */ .long SYMBOL_NAME(sys_ni_syscall) /* reserved for fremovexattr */ .long SYMBOL_NAME(sys_tkill) + .long SYMBOL_NAME(sys_ni_syscalls) /* reserved for sendfile64 */ + .long SYMBOL_NAME(sys_ni_syscalls) /* 240 reserved for futex */ + .long SYMBOL_NAME(sys_ni_syscalls) /* reserved for sched_setaffinity */ + .long SYMBOL_NAME(sys_ni_syscalls) /* reserved for sched_getaffinity */ .rept NR_syscalls-(.-sys_call_table)/4 .long SYMBOL_NAME(sys_ni_syscall)
include/asm-i386/unistd.h +4 -1
@@ -242,8 +242,11 @@#define __NR_removexattr 235#define __NR_lremovexattr 236#define __NR_fremovexattr 237 -#define __NR_tkill 238 +#define __NR_sendfile64 239 +#define __NR_futex 240 +#define __NR_sched_setaffinity 241 +#define __NR_sched_getaffinity 242/* user-visible error numbers are in the range -1 - -124: see <asm-i386/errno.h> */
Quoted 3 lines · Robert Love
The following patch reserves syscall numbers 239 through 242 which are the calls to date added to 2.5. I just set them to
sys_ni_syscalland note which 2.5 function they correspond to.
Ack, typo in the last patch ... resend, sorry.
Robert Love
arch/i386/kernel/entry.S +4 -0
@@ -635,6 +635,10 @@ .long SYMBOL_NAME(sys_ni_syscall) /* reserved for lremovexattr */ .long SYMBOL_NAME(sys_ni_syscall) /* reserved for fremovexattr */ .long SYMBOL_NAME(sys_tkill) + .long SYMBOL_NAME(sys_ni_syscall) /* reserved for sendfile64 */ + .long SYMBOL_NAME(sys_ni_syscall) /* 240 reserved for futex */ + .long SYMBOL_NAME(sys_ni_syscall) /* reserved for sched_setaffinity */ + .long SYMBOL_NAME(sys_ni_syscall) /* reserved for sched_getaffinity */ .rept NR_syscalls-(.-sys_call_table)/4 .long SYMBOL_NAME(sys_ni_syscall)
include/asm-i386/unistd.h +4 -1
@@ -242,8 +242,11 @@#define __NR_removexattr 235#define __NR_lremovexattr 236#define __NR_fremovexattr 237 -#define __NR_tkill 238 +#define __NR_sendfile64 239 +#define __NR_futex 240 +#define __NR_sched_setaffinity 241 +#define __NR_sched_getaffinity 242/* user-visible error numbers are in the range -1 - -124: see <asm-i386/errno.h> */