repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
reent
/
getreent.c
blob
86bb04fb94140d4a32d907c3bdc9991f8db302f1
1
/* default reentrant pointer when multithread enabled */
2
3
#ifdef GETREENT_PROVIDED
4
5
int
_dummy_getreent
;
6
7
#else
8
9
#include <_ansi.h>
10
#include <reent.h>
11
12
#ifndef _REENT_THREAD_LOCAL
13
14
#ifdef __getreent
15
#undef __getreent
16
#endif
17
18
struct
_reent
*
19
__getreent
(
void
)
20
{
21
return
_impure_ptr
;
22
}
23
24
#endif
/* !_REENT_THREAD_LOCAL */
25
26
#endif