blob: 85013469872502c24d1dd7e83117a1e782ff35dc [file] [log] [blame]
#include "tests.h"
#include <asm/unistd.h>
#ifdef __NR_sched_rr_get_interval
# include <stdio.h>
# include <sched.h>
# include <unistd.h>
int
main(void)
{
struct timespec *const tp = tail_alloc(sizeof(struct timespec));
long rc = syscall(__NR_sched_rr_get_interval, -1, tp);
printf("sched_rr_get_interval(-1, %p) = %ld %s (%m)\n",
tp, rc, errno2name());
puts("+++ exited with 0 +++");
return 0;
}
#else
SKIP_MAIN_UNDEFINED("__NR_sched_rr_get_interval")
#endif