rpcsx/orbis-kernel/src/sys/sys_fork.cpp

18 lines
539 B
C++
Raw Normal View History

#include "KernelContext.hpp"
2023-07-03 13:10:16 +02:00
#include "sys/sysproto.hpp"
#include <cstdlib>
#include <unistd.h>
2023-07-03 13:10:16 +02:00
orbis::SysResult orbis::sys_fork(Thread *thread) { return ErrorCode::NOSYS; }
2023-07-06 18:16:25 +02:00
orbis::SysResult orbis::sys_pdfork(Thread *thread, ptr<sint> fdp, sint flags) {
return ErrorCode::NOSYS;
}
2023-07-03 13:10:16 +02:00
orbis::SysResult orbis::sys_vfork(Thread *thread) { return ErrorCode::NOSYS; }
2023-07-06 18:16:25 +02:00
orbis::SysResult orbis::sys_rfork(Thread *thread, sint flags) {
if (auto fork = thread->tproc->ops->fork) {
return fork(thread, flags);
}
return ErrorCode::NOSYS;
2023-07-06 18:16:25 +02:00
}