mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
stub sys_nmount, sys_wait4, sys_getsid, sys_settimeofday, sys_bind, sys_listen, sys_accept, sys_setsockopt, sys_getsockopt Reduce log spam of sys__umtx_op
24 lines
734 B
C++
24 lines
734 B
C++
#include "sys/sysproto.hpp"
|
|
#include "utils/Logs.hpp"
|
|
#include <chrono>
|
|
#include <thread>
|
|
|
|
orbis::SysResult orbis::sys_exit(Thread *thread, sint status) {
|
|
if (auto exit = thread->tproc->ops->exit) {
|
|
return exit(thread, status);
|
|
}
|
|
|
|
return ErrorCode::NOSYS;
|
|
}
|
|
orbis::SysResult orbis::sys_abort2(Thread *thread, ptr<const char> why,
|
|
sint narg, ptr<ptr<void>> args) {
|
|
return ErrorCode::NOSYS;
|
|
}
|
|
orbis::SysResult orbis::sys_wait4(Thread *thread, sint pid, ptr<sint> status,
|
|
sint options, ptr<struct rusage> rusage) {
|
|
// TODO
|
|
ORBIS_LOG_ERROR(__FUNCTION__, pid, status, options, rusage);
|
|
std::this_thread::sleep_for(std::chrono::days(1));
|
|
return {};
|
|
}
|