title: Where is the declaration of CPU_ALLOC?
body: <p>I'm using RHEL5 kernel 2.6.33 and running GCC v4.1.2. </p>
  
  <p>During my program compilation, I get the warning "implicit declaration of function CPU_ALLOC" and the error "undefined reference to 'CPU_ALLOC'. I get the same warnings and errors for CPU_ZERO_S, CPU_SET_S, CPU_FREE, numa_bitmask_alloc, numa_bitmask_setbit and numa_bitmask_free.</p>
  
  <p>I understand that CPU_ALLOC should be found in sched.h, but I've searched several sched.h (/usr/include/sched.h, /usr/include/bits/sched.h, /usr/include/linux/sched.h, /usr/src/kernels/linux-2.6.33.1/include/linux/sched.h), and cannot find CPU_ALLOC.</p>
  
  <p>I have tried both <code>#include &lt;sched.h&gt;</code> and <code>#include "/usr/include/sched.h"</code>, but I still have the errors.</p>
  
  <p>I found declarations of CPU_ALLOC and the other functions on this <a href="http://www.unix.com/man-page/linux/3/CPU_ALLOC/" rel="nofollow">website</a>. Is this a file that I should have on my system?</p>
  
  <p>How do I resolve this problem with the CPU_* and numa_bitmask_* functions?</p>
  
  <p>Thank you.</p>
  
  <p>Regards,
  Rayne</p>