public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4: reserve syscalls from 2.5
@ 2002-04-10 20:40 Robert Love
  2002-04-11  3:53 ` Robert Love
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Love @ 2002-04-10 20:40 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

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

diff -urN linux-2.4.19-pre6/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
--- linux-2.4.19-pre6/arch/i386/kernel/entry.S	Fri Apr  5 14:53:39 2002
+++ linux/arch/i386/kernel/entry.S	Wed Apr 10 16:28:17 2002
@@ -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)
diff -urN linux-2.4.19-pre6/include/asm-i386/unistd.h linux/include/asm-i386/unistd.h
--- linux-2.4.19-pre6/include/asm-i386/unistd.h	Fri Apr  5 14:53:56 2002
+++ linux/include/asm-i386/unistd.h	Wed Apr 10 16:21:00 2002
@@ -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> */
 






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.4: reserve syscalls from 2.5
  2002-04-10 20:40 [PATCH] 2.4: reserve syscalls from 2.5 Robert Love
@ 2002-04-11  3:53 ` Robert Love
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Love @ 2002-04-11  3:53 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

On Wed, 2002-04-10 at 16:40, Robert Love wrote:

> 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.

Ack, typo in the last patch ... resend, sorry.

	Robert Love

diff -urN linux-2.4.19-pre6/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
--- linux-2.4.19-pre6/arch/i386/kernel/entry.S	Fri Apr  5 14:53:39 2002
+++ linux/arch/i386/kernel/entry.S	Wed Apr 10 16:28:17 2002
@@ -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)
diff -urN linux-2.4.19-pre6/include/asm-i386/unistd.h linux/include/asm-i386/unistd.h
--- linux-2.4.19-pre6/include/asm-i386/unistd.h	Fri Apr  5 14:53:56 2002
+++ linux/include/asm-i386/unistd.h	Wed Apr 10 16:21:00 2002
@@ -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> */
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-11  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-10 20:40 [PATCH] 2.4: reserve syscalls from 2.5 Robert Love
2002-04-11  3:53 ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox