add C for sched_set and get affinity