repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git]
/
none
/
tests
/
tls_so.c
blob
f16b963bdada069be6a6762343ce6060c2f86ee7
1
#include <config.h>
2
3
#ifdef HAVE_TLS
4
#include <pthread.h>
5
6
extern
__thread
int
so_extern
;
7
static
__thread
int
so_local
;
8
extern
__thread
int
global
;
9
10
int
*
test_so_extern
(
void
)
11
{
12
return
&
so_extern
;
13
}
14
15
int
*
test_so_local
(
void
)
16
{
17
return
&
so_local
;
18
}
19
20
int
*
test_so_global
(
void
)
21
{
22
return
&
global
;
23
}
24
#endif