https://sourceware.org/bugzilla/show_bug.cgi?id=29975

--- Comment #2 from Ross Burton <ross at burtonini dot com> ---
No, but the C isn't that difficult:

#define _GNU_SOURCE
#include <sched.h>

int ret, count;
cpu_set_t mask;

CPU_ZERO(&mask);
ret = sched_getaffinity(0, sizeof(mask), &mask);
// if non-zero, errno is set
count = CPU_COUNT(&mask);

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to