getppid() implementation
This commit is contained in:
committed by
Balazs Gerofi bgerofi@riken.jp
parent
a5889fb5df
commit
86f2a9067b
@ -63,7 +63,7 @@ SYSCALL_DELEGATED(104, getgid)
|
||||
SYSCALL_DELEGATED(107, geteuid)
|
||||
SYSCALL_DELEGATED(108, getegid)
|
||||
SYSCALL_HANDLED(109, setpgid)
|
||||
SYSCALL_DELEGATED(110, getppid)
|
||||
SYSCALL_HANDLED(110, getppid)
|
||||
SYSCALL_DELEGATED(111, getpgrp)
|
||||
SYSCALL_HANDLED(127, rt_sigpending)
|
||||
SYSCALL_HANDLED(128, rt_sigtimedwait)
|
||||
|
||||
@ -1348,6 +1348,11 @@ SYSCALL_DECLARE(getpid)
|
||||
return cpu_local_var(current)->ftn->pid;
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(getppid)
|
||||
{
|
||||
return cpu_local_var(current)->ftn->parent->pid;
|
||||
}
|
||||
|
||||
void
|
||||
settid(struct process *proc, int mode, int newcpuid, int oldcpuid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user