summaryrefslogtreecommitdiff
path: root/src/sched/sched_rr_get_interval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sched/sched_rr_get_interval.c')
-rw-r--r--src/sched/sched_rr_get_interval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sched/sched_rr_get_interval.c b/src/sched/sched_rr_get_interval.c
new file mode 100644
index 00000000..43bc4904
--- /dev/null
+++ b/src/sched/sched_rr_get_interval.c
@@ -0,0 +1,8 @@
+#include <sched.h>
+#include "syscall.h"
+
+int sched_rr_get_interval(pid_t pid, struct timespec *ts)
+{
+ return syscall(SYS_sched_rr_get_interval, pid, ts);
+}
+