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
+1
View File
@@ -36,6 +36,7 @@
"getitimer","sys/time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","int","FAR struct itimerval *"
"getpeername","sys/socket.h","defined(CONFIG_NET)","int","int","FAR struct sockaddr *","FAR socklen_t *"
"getpid","unistd.h","","pid_t"
"getppid","unistd.h","defined(CONFIG_SCHED_HAVE_PARENT)","pid_t"
"getsockname","sys/socket.h","defined(CONFIG_NET)","int","int","FAR struct sockaddr *","FAR socklen_t *"
"getsockopt","sys/socket.h","defined(CONFIG_NET)","int","int","int","int","FAR void *","FAR socklen_t *"
"getuid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","uid_t"
1 _exit unistd.h void int
36 getitimer sys/time.h !defined(CONFIG_DISABLE_POSIX_TIMERS) int int
37 getpeername sys/socket.h defined(CONFIG_NET) int int
38 getpid unistd.h pid_t
39 getppid unistd.h defined(CONFIG_SCHED_HAVE_PARENT) pid_t
40 getsockname sys/socket.h defined(CONFIG_NET) int int
41 getsockopt sys/socket.h defined(CONFIG_NET) int int
42 getuid unistd.h defined(CONFIG_SCHED_USER_IDENTITY) uid_t