sigemptyset

This commit is contained in:
Pavel 2023-01-27 14:50:11 +03:00
parent be383e1af3
commit 61761f251e
2 changed files with 10 additions and 0 deletions

View File

@ -1066,6 +1066,7 @@ begin
//signal
lib^.set_proc($F85EC2FE1764EFE1,@ps4_sigemptyset);
lib^.set_proc($5644C0B2B643709D,@ps4_sigfillset);
lib^.set_proc($2548A616D29ED0A7,@ps4_sigaddset);
lib^.set_proc($68F732A6D6CE899B,@ps4_sigprocmask); //sigprocmask

View File

@ -8,6 +8,7 @@ uses
Windows,
sys_signal;
function ps4_sigemptyset(_set:p_sigset_t):Integer; SysV_ABI_CDecl;
function ps4_sigfillset(_set:p_sigset_t):Integer; SysV_ABI_CDecl;
function ps4_sigaddset(_set:p_sigset_t;signum:Integer):Integer; SysV_ABI_CDecl;
function ps4_sigprocmask(how:Integer;_set,oldset:p_sigset_t):Integer; SysV_ABI_CDecl;
@ -31,6 +32,14 @@ uses
atomic,
sys_kernel;
function ps4_sigemptyset(_set:p_sigset_t):Integer; SysV_ABI_CDecl;
begin
if (_set=nil) then Exit(_set_errno(EINVAL));
_set^.qwords[0]:=0;
_set^.qwords[1]:=0;
Result:=0;
end;
function ps4_sigfillset(_set:p_sigset_t):Integer; SysV_ABI_CDecl;
begin
if (_set=nil) then Exit(_set_errno(EINVAL));