/*[PS]*/ /* Test whether a basic sched_setparam invocation works. */ #include #include "../basic.h" int main(void) { struct sched_param params; if ( sched_getparam(0, ¶ms) < 0 ) { if ( errno == EPERM ) exit(0); err(1, "sched_getparam"); } if ( sched_setparam(0, ¶ms) < 0 ) err(1, "sched_setparam"); return 0; }