sched/task: Implement gettid(2) syscall

See the reference here:
https://man7.org/linux/man-pages/man2/gettid.2.html

Change-Id: Ia814d0ccc3b20d8dfc36c809682ddf6e21811d20
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2020-09-14 19:57:24 +08:00
committed by Xiang Xiao
parent 9241725312
commit bf8446e235
4 changed files with 52 additions and 1 deletions
+1
View File
@@ -308,6 +308,7 @@ EXTERN int optopt; /* Unrecognized option character */
pid_t vfork(void);
pid_t getpid(void);
pid_t gettid(void);
void _exit(int status) noreturn_function;
unsigned int sleep(unsigned int seconds);
int usleep(useconds_t usec);