[LV] [PATCH] Wire up POSIX clock and timer calls
Wire up POSIX clock and timer calls. Needed by librt. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> --- Hi, This patch should be obvious, please apply. Maciej patch-mips-2.6.25-20080422-vax-posix-clock-timer-1 Index: linux-mips-2.6.18-20060920-cougar/arch/vax/kernel/syscall.c =================================================================== --- linux-mips-2.6.18-20060920-cougar.orig/arch/vax/kernel/syscall.c +++ linux-mips-2.6.18-20060920-cougar/arch/vax/kernel/syscall.c @@ -280,6 +280,15 @@ static struct { SC (__NR_shutdown, sys_shutdown, 2), SC (__NR_socket, sys_socket, 3), SC (__NR_socketpair, sys_socketpair, 4), + SC (__NR_timer_create, sys_timer_create, 3), + SC (__NR_timer_settime, sys_timer_settime, 4), + SC (__NR_timer_gettime, sys_timer_gettime, 2), + SC (__NR_timer_getoverrun, sys_timer_getoverrun, 1), + SC (__NR_timer_delete, sys_timer_delete, 1), + SC (__NR_clock_settime, sys_clock_settime, 2), + SC (__NR_clock_gettime, sys_clock_gettime, 2), + SC (__NR_clock_getres, sys_clock_getres, 2), + SC (__NR_clock_nanosleep, sys_clock_nanosleep, 4), #undef SC }; Index: linux-mips-2.6.18-20060920-cougar/include/asm-vax/unistd.h =================================================================== --- linux-mips-2.6.18-20060920-cougar.orig/include/asm-vax/unistd.h +++ linux-mips-2.6.18-20060920-cougar/include/asm-vax/unistd.h @@ -265,8 +265,17 @@ #define __NR_shutdown 241 #define __NR_socket 242 #define __NR_socketpair 243 +#define __NR_timer_create 244 +#define __NR_timer_settime 245 +#define __NR_timer_gettime 246 +#define __NR_timer_getoverrun 247 +#define __NR_timer_delete 248 +#define __NR_clock_settime 249 +#define __NR_clock_gettime 250 +#define __NR_clock_getres 251 +#define __NR_clock_nanosleep 252 -#define __NR_last_syscall 243 /* Number of last syscall */ +#define __NR_last_syscall 252 /* Number of last syscall */ _______________________________________________ Linux-Vax mailing list Linux-Vax@mail.pergamentum.com http://mail.pergamentum.com/mailman/listinfo/linux-vax
Teilnehmer (1)
-
Maciej W. Rozycki