sched: Don't forward gettid to getpid directly

prepare to implement the right semantics:
getpid should return the main thread id
gettid should return the current thread id
This commit is contained in:
Xiang Xiao
2020-12-07 19:42:58 +08:00
committed by patacongo
parent cd02fd1700
commit d9cfeb0bc3
5 changed files with 47 additions and 4 deletions
+1
View File
@@ -39,6 +39,7 @@
"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 *"
"gettid","unistd.h","","pid_t"
"getuid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","uid_t"
"if_indextoname","net/if.h","defined(CONFIG_NETDEV_IFINDEX)","FAR char *","unsigned int","FAR char *"
"if_nametoindex","net/if.h","defined(CONFIG_NETDEV_IFINDEX)","unsigned int","FAR const char *"
1 _exit unistd.h void int
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 gettid unistd.h pid_t
43 getuid unistd.h defined(CONFIG_SCHED_USER_IDENTITY) uid_t
44 if_indextoname net/if.h defined(CONFIG_NETDEV_IFINDEX) FAR char * unsigned int
45 if_nametoindex net/if.h defined(CONFIG_NETDEV_IFINDEX) unsigned int FAR const char *