blob: 85013469872502c24d1dd7e83117a1e782ff35dc [file] [log] [blame]
Fei Jiecd61c9f2016-04-25 16:18:20 +08001#include "tests.h"
Dmitry V. Levin6a2f43c2016-08-09 14:38:29 +00002#include <asm/unistd.h>
Fei Jiecd61c9f2016-04-25 16:18:20 +08003
4#ifdef __NR_sched_rr_get_interval
5
6# include <stdio.h>
7# include <sched.h>
8# include <unistd.h>
9
10int
11main(void)
12{
13 struct timespec *const tp = tail_alloc(sizeof(struct timespec));
14 long rc = syscall(__NR_sched_rr_get_interval, -1, tp);
15 printf("sched_rr_get_interval(-1, %p) = %ld %s (%m)\n",
16 tp, rc, errno2name());
17
18 puts("+++ exited with 0 +++");
19 return 0;
20}
21
22#else
23
24SKIP_MAIN_UNDEFINED("__NR_sched_rr_get_interval")
25
26#endif