mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-25 01:50:57 +01:00
[orbis-kernel] implement sys_getppid
Fix sys_getpid
This commit is contained in:
parent
07ea2f7c0c
commit
a35021b17a
|
|
@ -2,17 +2,20 @@
|
|||
#include "utils/Logs.hpp"
|
||||
|
||||
orbis::SysResult orbis::sys_getpid(Thread *thread) {
|
||||
thread->retval[0] = thread->tid;
|
||||
thread->retval[0] = thread->tproc->pid;
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_getppid(Thread *thread) {
|
||||
thread->retval[0] = thread->tproc->parentProcess
|
||||
? thread->tproc->parentProcess->pid
|
||||
: thread->tproc->pid;
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_getppid(Thread *thread) { return ErrorCode::NOSYS; }
|
||||
orbis::SysResult orbis::sys_getpgrp(Thread *thread) { return ErrorCode::NOSYS; }
|
||||
orbis::SysResult orbis::sys_getpgid(Thread *thread, pid_t pid) {
|
||||
return ErrorCode::NOSYS;
|
||||
}
|
||||
orbis::SysResult orbis::sys_getsid(Thread *thread, pid_t pid) {
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_getsid(Thread *thread, pid_t pid) { return {}; }
|
||||
orbis::SysResult orbis::sys_getuid(Thread *thread) { return ErrorCode::NOSYS; }
|
||||
orbis::SysResult orbis::sys_geteuid(Thread *thread) { return ErrorCode::NOSYS; }
|
||||
orbis::SysResult orbis::sys_getgid(Thread *thread) { return ErrorCode::NOSYS; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue