mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 11:48:30 +00:00
Improve system calls
- Wrap clock_getres() - Wrap sched_setscheduler() - Make sleep() api conformant - Polyfill sleep() using select() - Improve clock_gettime() polyfill - Make nanosleep() POSIX conformant - Slightly improve some DNS functions - Further strengthen pledge() sandboxing - Improve rounding of timeval / timespec - Allow layering of pledge() calls on Linux - Polyfill sched_yield() using select() on XNU - Delete more system constants we probably don't need
This commit is contained in:
parent
5df3e4e7a8
commit
853b6c3864
330 changed files with 1971 additions and 1223 deletions
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall clock_getres,0x1ad0590eaffff0e5,globl
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sched_get_priority_max,0xffffff14cffff092,globl
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sched_get_priority_min,0xffffff14dffff093,globl
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sched_getparam,0xffffff148ffff08f,globl
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sched_getscheduler,0xffffff14affff091,globl
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sched_setparam,0xffffff147ffff08e,globl
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sched_setscheduler,0xffffff149ffff090,globl
|
2
libc/sysv/calls/sys_clock_getres.s
Normal file
2
libc/sysv/calls/sys_clock_getres.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_clock_getres,0x1ad0590eaffff0e5,globl,hidden
|
2
libc/sysv/calls/sys_sched_get_priority_max.s
Normal file
2
libc/sysv/calls/sys_sched_get_priority_max.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_get_priority_max,0xffffff14cffff092,globl,hidden
|
2
libc/sysv/calls/sys_sched_get_priority_min.s
Normal file
2
libc/sysv/calls/sys_sched_get_priority_min.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_get_priority_min,0xffffff14dffff093,globl,hidden
|
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_getaffinity,0xfffffffffffff0cc,globl,hidden
|
||||
.scall sys_sched_getaffinity,0x15dffffffffff0cc,globl,hidden
|
||||
|
|
2
libc/sysv/calls/sys_sched_getparam.s
Normal file
2
libc/sysv/calls/sys_sched_getparam.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_getparam,0x15bfff148ffff08f,globl,hidden
|
2
libc/sysv/calls/sys_sched_getscheduler.s
Normal file
2
libc/sysv/calls/sys_sched_getscheduler.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_getscheduler,0xffffff14affff091,globl,hidden
|
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_setaffinity,0xfffffffffffff0cb,globl,hidden
|
||||
.scall sys_sched_setaffinity,0x15cffffffffff0cb,globl,hidden
|
||||
|
|
2
libc/sysv/calls/sys_sched_setparam.s
Normal file
2
libc/sysv/calls/sys_sched_setparam.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_setparam,0x15afff147ffff08e,globl,hidden
|
2
libc/sysv/calls/sys_sched_setscheduler.s
Normal file
2
libc/sysv/calls/sys_sched_setscheduler.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_setscheduler,0xffffff149ffff090,globl,hidden
|
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sched_yield,0x15e12a14bffff018,globl,hidden
|
||||
.scall sys_sched_yield,0x15e12a14bf25d018,globl,hidden
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue