repo.or.cz
/
beagle.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sorry for the combined patch. The changes became too inter-dependent.
[beagle.git]
/
glue
/
thread-glue.c
blob
9bb56792cf418550eae24559eb01a4d907534019
1
#include <sys/types.h>
2
#include <unistd.h>
3
#include <linux/unistd.h>
4
#include <errno.h>
5
6
#ifdef __NR_gettid
7
static
pid_t
gettid
(
void
)
8
{
9
return
syscall
(
__NR_gettid
);
10
}
11
#else
12
static
pid_t
gettid
(
void
)
13
{
14
return
0
;
15
}
16
#endif
17
18
pid_t
19
wrap_gettid
(
void
)
20
{
21
return
gettid
();
22
}