x86/ldt: Further fix FPU emulation
[linux/fpc-iii.git] / tools / build / feature / test-pthread-attr-setaffinity-np.c
blobfdada5e8d454c549e4cb57059f52ebb8a1825c8e
1 #include <stdint.h>
2 #include <pthread.h>
3 #include <sched.h>
5 int main(void)
7 int ret = 0;
8 pthread_attr_t thread_attr;
9 cpu_set_t cs;
11 pthread_attr_init(&thread_attr);
12 CPU_ZERO(&cs);
14 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs);
16 return ret;