repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add gettid function
[musl.git]
/
src
/
linux
/
gettid.c
blob
70767137e92fe9a8820aede17af029f13d845a5a
1
#define _GNU_SOURCE
2
#include <unistd.h>
3
#include
"pthread_impl.h"
4
5
pid_t
gettid
(
void
)
6
{
7
return
__pthread_self
()->
tid
;
8
}