All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add missing syscalls
@ 2007-05-11 10:55 Robert Reif
  2007-05-11 19:45 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Reif @ 2007-05-11 10:55 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 77 bytes --]

Add some missing syscalls.

Signed-off-by: Robert Reif <reif@earthlink.net>


[-- Attachment #2: newsyscall.diff --]
[-- Type: text/x-diff, Size: 1475 bytes --]

diff --git a/arch/sparc/kernel/systbls.S b/arch/sparc/kernel/systbls.S
index e3f5b8e..9d15e21 100644
--- a/arch/sparc/kernel/systbls.S
+++ b/arch/sparc/kernel/systbls.S
@@ -80,7 +80,7 @@ sys_call_table:
 /*295*/	.long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare
 /*300*/	.long sys_set_robust_list, sys_get_robust_list, sys_migrate_pages, sys_mbind, sys_get_mempolicy
 /*305*/	.long sys_set_mempolicy, sys_kexec_load, sys_move_pages, sys_getcpu, sys_epoll_pwait
-/*310*/	.long sys_utimensat
+/*310*/	.long sys_utimensat, sys_setresuid, sys_getresuid, sys_setresgid, sys_getresgid
 
 #ifdef CONFIG_SUNOS_EMUL
 	/* Now the SunOS syscall table. */
@@ -197,6 +197,6 @@ sunos_sys_table:
 	.long sunos_nosys, sunos_nosys, sunos_nosys
 	.long sunos_nosys, sunos_nosys, sunos_nosys
 	.long sunos_nosys
-/*310*/	.long sunos_nosys
-
+/*310*/	.long sunos_nosys, sunos_nosys, sunos_nosys
+        .long sunos_nosys, sunos_nosys
 #endif
diff --git a/include/asm-sparc/unistd.h b/include/asm-sparc/unistd.h
index da9bdc5..76c1b89 100644
--- a/include/asm-sparc/unistd.h
+++ b/include/asm-sparc/unistd.h
@@ -327,8 +327,12 @@ #define __NR_move_pages		307
 #define __NR_getcpu		308
 #define __NR_epoll_pwait	309
 #define __NR_utimensat		310
+#define __NR_setresuid		311
+#define __NR_getresuid		312
+#define __NR_setresgid		313
+#define __NR_getresgid		314
 
-#define NR_SYSCALLS		311
+#define NR_SYSCALLS		315
 
 #ifdef __KERNEL__
 #define __ARCH_WANT_IPC_PARSE_VERSION

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

* Re: [PATCH] add missing syscalls
  2007-05-11 10:55 [PATCH] add missing syscalls Robert Reif
@ 2007-05-11 19:45 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-05-11 19:45 UTC (permalink / raw)
  To: sparclinux

From: Robert Reif <reif@earthlink.net>
Date: Fri, 11 May 2007 06:55:08 -0400

> Add some missing syscalls.
> 
> Signed-off-by: Robert Reif <reif@earthlink.net>

This is not correct, the syscall checker is warning unnecessarily,
I've looked into this one before.

Sparc supported the full 32-bit variants of these syscalls from
the beginning so we don't have to have the old 16-bit versions
in the system call table at all.

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

end of thread, other threads:[~2007-05-11 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 10:55 [PATCH] add missing syscalls Robert Reif
2007-05-11 19:45 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.