manual: Fix the wording to "alternative" rather than "alternate"
[glibc.git] / posix / tst-cpucount.c
blobb3691a18da742799616256f223377270d0667447
1 #include <sched.h>
2 #include <stdio.h>
3 #include <sys/param.h>
5 static int
6 do_test (void)
8 cpu_set_t c;
10 CPU_ZERO (&c);
12 for (int cnt = 0; cnt < MIN (CPU_SETSIZE, 130); ++cnt)
14 int n = CPU_COUNT (&c);
15 if (n != cnt)
17 printf ("expected %d, not %d\n", cnt, n);
18 return 1;
21 CPU_SET (cnt, &c);
24 return 0;
27 #define TEST_FUNCTION do_test ()
28 #include "../test-skeleton.c"