mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
kernel: implement sys_fork
This commit is contained in:
parent
b32b4e1c60
commit
d54fc9764f
3 changed files with 28 additions and 3 deletions
|
|
@ -5,7 +5,12 @@
|
|||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
|
||||
orbis::SysResult orbis::sys_fork(Thread *thread) { return ErrorCode::NOSYS; }
|
||||
orbis::SysResult orbis::sys_fork(Thread *thread) {
|
||||
if (auto fork = thread->tproc->ops->fork) {
|
||||
return fork(thread, RFFDG | RFPROC);
|
||||
}
|
||||
return ErrorCode::NOSYS;
|
||||
}
|
||||
orbis::SysResult orbis::sys_pdfork(Thread *thread, ptr<sint> fdp, sint flags) {
|
||||
return ErrorCode::NOSYS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue