Wrap sched_getaffinity

Fixes #385
This commit is contained in:
Justine Tunney 2022-05-12 07:22:57 -07:00
parent 335d158ab6
commit ec6e0fa5f4
8 changed files with 93 additions and 10 deletions

View file

@ -1,2 +0,0 @@
.include "o/libc/sysv/macros.internal.inc"
.scall sched_getaffinity,0xfffffffffffff0cc,globl

View file

@ -0,0 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall sys_sched_getaffinity,0xfffffffffffff0cc,globl,hidden

View file

@ -234,7 +234,7 @@ scall lgetxattr 0x17bffffffffff0c0 globl
scall llistxattr 0x17effffffffff0c3 globl
scall lremovexattr 0x181ffffffffff0c6 globl
scall sys_sched_setaffinity 0xfffffffffffff0cb globl hidden
scall sched_getaffinity 0xfffffffffffff0cc globl # returns bytes written on success. we polyfill bad posix designs like nice() returning 0, but we won't polyfill a bad unilateral redesign that's just glibc
scall sys_sched_getaffinity 0xfffffffffffff0cc globl hidden # returns bytes written on success. we polyfill bad posix designs like nice() returning 0, but we won't polyfill a bad unilateral redesign that's just glibc
scall cpuset_getaffinity 0xffffff1e7fffffff globl
scall cpuset_setaffinity 0xffffff1e8fffffff globl
scall io_setup 0xfffffffffffff0ce globl