Wire up the new timerfd syscalls, which were introduced in commit
4d672e7ac79b5ec5cdc90e450823441e20464691 ("timerfd: new timerfd API").

Signed-off-by: Thomas Chou <[EMAIL PROTECTED]>
---
 linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S |    6 ++++--
 linux-2.6.x/include/asm-nios2nommu/unistd.h       |    6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S 
b/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S
index 297c468..adb6712 100644
--- a/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S
+++ b/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S
@@ -351,13 +351,15 @@ ENTRY(sys_call_table)
        .long sys_epoll_pwait           /* 315 */
        .long sys_utimensat
        .long sys_signalfd
-       .long sys_timerfd
+       .long sys_timerfd_create
        .long sys_eventfd
        .long sys_pread64
        .long sys_pwrite64              /* 321 */
        .long sys_fallocate
+       .long sys_timerfd_settime
+       .long sys_timerfd_gettime
 
-       .rept NR_syscalls - 323
+       .rept NR_syscalls - 325
                .long sys_ni_syscall
        .endr
 
diff --git a/linux-2.6.x/include/asm-nios2nommu/unistd.h 
b/linux-2.6.x/include/asm-nios2nommu/unistd.h
index fe66f49..ea5ac72 100644
--- a/linux-2.6.x/include/asm-nios2nommu/unistd.h
+++ b/linux-2.6.x/include/asm-nios2nommu/unistd.h
@@ -351,13 +351,15 @@
 #define __NR_epoll_pwait       315
 #define __NR_utimensat         316
 #define __NR_signalfd          317
-#define __NR_timerfd           318
+#define __NR_timerfd_create    318
 #define __NR_eventfd           319
 #define __NR_pread64           320
 #define __NR_pwrite64          321
 #define __NR_fallocate         322
+#define __NR_timerfd_settime   323
+#define __NR_timerfd_gettime   324
 
-#define NR_syscalls            323
+#define NR_syscalls            325
 
 /* Not relevant on no-mmu */
 #define __IGNORE_msync
-- 
1.5.3.3

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to