summaryrefslogtreecommitdiff
path: root/src/sched/affinity.c
AgeCommit message (Collapse)AuthorLines
2014-12-02fix return value of pthread_getaffinity_np and pthread_setaffinity_npRich Felker-8/+11
these functions are expected to return an error code rather than setting errno and returning -1.
2014-12-02fix uninitialized output from sched_getaffinityRich Felker-1/+5
the sched_getaffinity syscall only fills a cpu set up to the set size used/supported by the kernel. the rest is left untouched and userspace is responsible for zero-filling it based on the return value of the syscall.
2013-08-10add pthread_setaffinity_np and pthread_getaffinity_np functionsRich Felker-0/+26