summaryrefslogtreecommitdiffstats
path: root/build/has/sched-getaffinity.c
blob: 6f8fd9846d701914d59a67baf0c30d4afdb7ae11 (plain)
1
2
3
4
5
6
7
8
9
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <sched.h>

int main(void) {
	cpu_set_t set;
	return sched_getaffinity(0, sizeof(set), &set);
}