[orbis-kernel] ignore sys_sigaction

Write warning on unknown how for sys_sigprocmask
This commit is contained in:
DH 2023-07-30 00:32:09 +03:00
parent ae566402af
commit 5d87f3e3fd

View File

@ -1,9 +1,10 @@
#include "sys/sysproto.hpp"
#include "utils/Logs.hpp"
orbis::SysResult orbis::sys_sigaction(Thread *thread, sint sig,
ptr<struct sigaction> act,
ptr<struct sigaction> oact) {
return ErrorCode::NOSYS;
return {};
}
orbis::SysResult orbis::sys_sigprocmask(Thread *thread, sint how,
ptr<uint64_t> set, ptr<uint64_t> oset) {
@ -31,7 +32,9 @@ orbis::SysResult orbis::sys_sigprocmask(Thread *thread, sint how,
break;
default:
return ErrorCode::INVAL;
ORBIS_LOG_ERROR("sys_sigprocmask: unimplemented how", how);
thread->where();
return {};
}
}
return {};