HomeFreeBSD

Fixed the value returned by sched_getaffinity().

Description

Fixed the value returned by sched_getaffinity().

On success gnu libc sched_getaffinity() should return 0, unlike underlying
Linux syscall which returns the size of CPU mask copied to user.

PR: 263939
MFC after: 2 weeks

(cherry picked from commit 3e11d3f61ae2b2b8a8ffeff4ef32067d95c065a1)

Details

Provenance
dchaginAuthored on May 12 2022, 5:06 PM
Parents
rG0e89b88d1c46: linux(4): Revert c7ef7c3 as it's wrong at all.
Branches
Unknown
Tags
Unknown