libc: Implement getppid

as specified here:
https://pubs.opengroup.org/onlinepubs/009695399/functions/getppid.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-12-14 20:07:42 +08:00
committed by Alan Carvalho de Assis
parent deef880dae
commit 085619d395
5 changed files with 116 additions and 0 deletions
+4
View File
@@ -28,6 +28,10 @@ SYSCALL_LOOKUP1(_exit, 1)
SYSCALL_LOOKUP(exit, 1)
SYSCALL_LOOKUP(getpid, 0)
#ifdef CONFIG_SCHED_HAVE_PARENT
SYSCALL_LOOKUP(getppid, 0)
#endif
SYSCALL_LOOKUP(sched_getparam, 2)
SYSCALL_LOOKUP(sched_getscheduler, 1)
SYSCALL_LOOKUP(sched_lock, 0)