Skip to contentSkip to conversation

add missing syscalls

PATCH In review Robert Reif 2 participants 2 messages May 11, 2007 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add missing syscalls

Add some missing syscalls.

arch/sparc/kernel/systbls.S +3 -3
index e3f5b8e..9d15e21 100644
@@ -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
include/asm-sparc/unistd.h +5 -1
index da9bdc5..76c1b89 100644
@@ -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
maintainer
#1 lore raw

From: Robert Reif <[email protected]>
Date: Fri, 11 May 2007 06:55:08 -0400

Quoted 3 lines

Add some missing syscalls.

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.