mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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:
committed by
Alan Carvalho de Assis
parent
deef880dae
commit
085619d395
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user