fix return value of pthread_getaffinity_np and pthread_setaffinity_np
authorRich Felker <dalias@aerifal.cx>
Wed, 3 Dec 2014 03:17:52 +0000 (22:17 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Mar 2015 05:41:33 +0000 (01:41 -0400)
commit051a8fdda8a08bcbea8d5a148fe26fa73adc58b8
tree9c002d8854ac0aad33d2d7d7c13f74d355c475b2
parent65a0ee3a52246878c15f62770dd9fe51b60aa08e
fix return value of pthread_getaffinity_np and pthread_setaffinity_np

these functions are expected to return an error code rather than
setting errno and returning -1.

(cherry picked from commit 66140b0c926ed097f2cb7474863523e4af351f5b)
src/sched/affinity.c