From dd7350fb8c1e845351f2d3c9ccb186ab8aee8603 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Mon, 28 Jan 2008 11:51:50 -0500 Subject: core: add gettid() system call We need the system call to enable multi-threaded real-time applications, and libc doesn't provide it. --- src/syscalls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/syscalls.c b/src/syscalls.c index a42fc62..3b2f76c 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -3,6 +3,8 @@ */ #define _GNU_SOURCE #include +#include +#include #include "litmus.h" @@ -36,6 +38,9 @@ struct np_flag; #define __NR_task_mode 343 /* Syscall stub for setting RT mode and scheduling options */ + +_syscall0(pid_t, gettid); + _syscall0(spolicy, sched_getpolicy); _syscall1(int, set_rt_mode, int, arg1); _syscall2(int, set_rt_task_param, pid_t, pid, rt_param_t*, arg1); -- cgit v1.2.2