MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / syscall_rt_sigprocmask

Function syscall_rt_sigprocmask

source/kernel/syscall.cpp:912–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910}
911
912static U32 syscall_rt_sigprocmask(CPU* cpu, U32 eipCount) {
913 SYS_LOG1(SYSCALL_SIGNAL, cpu, "rt_sigprocmask: how=%d set=%X(%X) oset=%X", ARG1, ARG2, ARG2?(ARG4==4?cpu->memory->readd(ARG2):cpu->memory->readq(ARG2)):0, ARG3);
914 U32 result = cpu->thread->sigprocmask(ARG1, ARG2, ARG3, ARG4);
915 EAX = result;
916 cpu->eip.u32+=eipCount;
917 cpu->thread->runSignals();
918 SYS_LOG(SYSCALL_SIGNAL, cpu, " result=%d(0x%X)\n", result, result);
919 return -K_CONTINUE;
920}
921
922static U32 syscall_rt_sigsuspend(CPU* cpu, U32 eipCount) {
923 SYS_LOG1(SYSCALL_SIGNAL, cpu, "rt_sigsuspend: mask=%X", ARG1);

Callers

nothing calls this directly

Calls 4

readqMethod · 0.80
sigprocmaskMethod · 0.80
runSignalsMethod · 0.80
readdMethod · 0.45

Tested by

no test coverage detected