mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 22:19:10 +00:00
add support for getcpu() system call to pledge()
This change fixes the following redbean lua tests: - `encodelua_test.lua` - `encodejson_test.lua` - `jsonorg_fail_test.lua` - `base64_test.lua` - `jsonorg_pass_test.lua` - `futex_test.lua` Without it, these tests fail with SIGSYS on Linux
This commit is contained in:
parent
a8ed4fdd09
commit
542d72b43b
1 changed files with 1 additions and 0 deletions
|
@ -694,6 +694,7 @@ static const uint16_t kPledgeStdio[] = {
|
||||||
__NR_linux_sched_getaffinity, //
|
__NR_linux_sched_getaffinity, //
|
||||||
__NR_linux_sched_setaffinity, //
|
__NR_linux_sched_setaffinity, //
|
||||||
__NR_linux_sigtimedwait, //
|
__NR_linux_sigtimedwait, //
|
||||||
|
__NR_linux_getcpu, //
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint16_t kPledgeFlock[] = {
|
static const uint16_t kPledgeFlock[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue