mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 13:00:28 +00:00
Introduce sigtimedwait() and sigwaitinfo()
This change also invents sigcountset() and strsignal_r() and improves the quality of siginfo_t handling.
This commit is contained in:
parent
7ae556463a
commit
467a332e38
41 changed files with 887 additions and 345 deletions
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_sigtimedwait,0xffffff159ffff080,globl
|
||||
.scall sys_sigtimedwait,0x1affff159ffff080,globl,hidden
|
||||
|
|
|
@ -168,11 +168,11 @@ syscon sig SIGPROF 27 27 27 27 27 27 # profiling timer expired;
|
|||
syscon sig SIGWINCH 28 28 28 28 28 28 # terminal resized; unix consensus & faked on nt
|
||||
syscon sig SIGIO 29 23 23 23 23 29 # bsd consensus
|
||||
syscon sig SIGSYS 31 12 12 12 12 31 # wut; bsd consensus
|
||||
syscon sig SIGINFO 0 29 29 29 29 0 # bsd consensus
|
||||
syscon sig SIGRTMAX 64 0 126 0 63 0
|
||||
syscon sig SIGRTMIN 32 0 65 0 33 0
|
||||
syscon sig SIGEMT 0 7 7 7 7 0 # not implemented in most community editions of system five; consider doing this using SIGUSR1 or SIGUSR2 instead
|
||||
syscon sig SIGPWR 30 30 30 30 32 30 # not implemented in most community editions of system five; consider doing this using SIGUSR1 or SIGUSR2 instead
|
||||
syscon sig SIGINFO 0 29 29 29 29 0 # bsd consensus
|
||||
syscon sig SIGRTMIN 32 0 65 0 33 32
|
||||
syscon sig SIGRTMAX 64 0 126 0 63 64
|
||||
syscon compat SIGPOLL 29 23 23 23 23 29 # same as SIGIO
|
||||
syscon compat SIGIOT 6 6 6 6 6 6 # PDP-11 feature; same as SIGABRT
|
||||
|
||||
|
@ -1232,7 +1232,7 @@ syscon limits SOMAXCONN 4096 128 128 128 128 2147483647 # maximum
|
|||
syscon limits _ARG_MAX 128*1024 1024*1024 512*1024 512*1024 256*1024 32767*2 # bsd consensus
|
||||
syscon limits _NAME_MAX 255 255 255 255 511 255 # probably higher on windows?
|
||||
syscon limits _PATH_MAX 4096 1024 1024 1024 1024 512 # cosmopolitan libc imposes a lower 512 limit; nt theoretically goes up to 32767
|
||||
syscon limits _NSIG 64 32 128 32 64 32 # _SIG_MAXSIG on FreeBSD
|
||||
syscon limits _NSIG 64 32 128 32 64 64 # _SIG_MAXSIG on FreeBSD
|
||||
|
||||
# unmount() flags
|
||||
# a.k.a. umount2() on linux
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon sig,SIGRTMAX,64,0,126,0,63,0
|
||||
.syscon sig,SIGRTMAX,64,0,126,0,63,64
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon sig,SIGRTMIN,32,0,65,0,33,0
|
||||
.syscon sig,SIGRTMIN,32,0,65,0,33,32
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon limits,_NSIG,64,32,128,32,64,32
|
||||
.syscon limits,_NSIG,64,32,128,32,64,64
|
||||
|
|
|
@ -192,7 +192,7 @@ scall sys_setfsuid 0xfffffffffffff07a globl hidden
|
|||
scall sys_setfsgid 0xfffffffffffff07b globl hidden
|
||||
scall sys_capget 0xfffffffffffff07d globl # no wrapper
|
||||
scall sys_capset 0xfffffffffffff07e globl # no wrapper
|
||||
scall sys_sigtimedwait 0xffffff159ffff080 globl # no wrapper
|
||||
scall sys_sigtimedwait 0x1affff159ffff080 globl hidden
|
||||
scall sys_sigqueue 0xffffff1c8fffffff globl hidden
|
||||
scall sys_sigqueueinfo 0x0f5ffffffffff081 globl hidden # a.k.a. rt_sigqueueinfo on linux
|
||||
scall sys_personality 0xfffffffffffff087 globl # no wrapper
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue