summaryrefslogtreecommitdiff
path: root/src/sched/sched_setaffinity.c
blob: 4344df1771abe1406826bfe935cf5bd4981d50d0 (plain)
1
2
3
4
5
6
7
8
#define _GNU_SOURCE
#include <sched.h>
#include "syscall.h"

int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set)
{
	return syscall(SYS_sched_setaffinity, tid, size, set);
}