Fix get_affinity for linux
CPU_COUNT returns the number of active CPUs in the set. Do not use its return value to base the CPU counting loop on
Move declarations for C90 support and cleanup
Also move the declaration of 'i' to the top for C90
Move declaration of the return list to the top of the function for C90
Remove import of xrange which is no longer used
Commit dynamically allocating version of psutil_proc_cpu_affinity_get based on the os_sched_getaffinity_impl in newer versions of python. However, this one returns a list of integers instead of a set of longs, and has an optimization in the CPU list building loop
Fix python 3.3 incompatibility
Fix C90 compilation issue
Fix C90 compilation issue
Merge pull request #527 from ddaeschler/master

Fix get_affinity for linux