Skip to contentSkip to conversation

remove extra sys_ in epoll system call

RFC PATCH In review Hanna Linder 2 participants 2 messages Nov 21, 2002 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 remove extra sys_ in epoll system call

Davide,

Is sys part of the name of epoll? That will make the
system call actually sys_sys_epoll_*. This patch removes the extra sys in the places where it is not needed if that is the case. If it is supposed to be sys_sys then the asmlinkage calls should be changes to reflect that. Let me know what you think.

Hanna

-----

arch/um/kernel/sys_call_table.c +0 -0
diff -Nru linux-2.5.48/arch/um/kernel/sys_call_table.c linux-epoll/arch/um/kernel/sys_call_table.c
@@ -487,9 +487,9 @@

[ __NR_free_hugepages ] = sys_ni_syscall, [ __NR_exit_group ] = sys_exit_group,
[ __NR_lookup_dcookie ] = sys_lookup_dcookie,
- [ __NR_sys_epoll_create ] = sys_epoll_create,
- [ __NR_sys_epoll_ctl ] = sys_epoll_ctl,
- [ __NR_sys_epoll_wait ] = sys_epoll_wait,
+ [ __NR_epoll_create ] = sys_epoll_create,
+ [ __NR_epoll_ctl ] = sys_epoll_ctl,
+ [ __NR_epoll_wait ] = sys_epoll_wait,
[ __NR_remap_file_pages ] = sys_remap_file_pages,

ARCH_SYSCALLS

include/asm-i386/unistd.h +0 -0
diff -Nru linux-2.5.48/include/asm-i386/unistd.h linux-epoll/include/asm-i386/unistd.h
@@ -258,9 +258,9 @@

#define __NR_free_hugepages 251
#define __NR_exit_group 252
#define __NR_lookup_dcookie 253
-#define __NR_sys_epoll_create 254
-#define __NR_sys_epoll_ctl 255
-#define __NR_sys_epoll_wait 256
+#define __NR_epoll_create 254
+#define __NR_epoll_ctl 255
+#define __NR_epoll_wait 256
#define __NR_remap_file_pages 257
#define __NR_set_tid_address 258

include/asm-ppc/unistd.h +0 -0
diff -Nru linux-2.5.48/include/asm-ppc/unistd.h linux-epoll/include/asm-ppc/unistd.h
@@ -240,9 +240,9 @@

#define __NR_free_hugepages 233
#define __NR_exit_group 234
#define __NR_lookup_dcookie 235
-#define __NR_sys_epoll_create 236
-#define __NR_sys_epoll_ctl 237
-#define __NR_sys_epoll_wait 238
+#define __NR_epoll_create 236
+#define __NR_epoll_ctl 237
+#define __NR_epoll_wait 238
#define __NR_remap_file_pages 239

#define __NR(n) #n

#1 lore raw
Quoted 9 lines · Hanna Linder

Davide,

Is sys part of the name of epoll? That will make the
system call actually sys_sys_epoll_*. This patch removes the extra sys in the places where it is not needed if that is the case. If it is supposed to be sys_sys then the asmlinkage calls should be changes to reflect that. Let me know what you think.

Thank you Hanna. It's fine. I'll feed this to Linus in my next patch.

- Davide