Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getreent.c « reent « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 86bb04fb94140d4a32d907c3bdc9991f8db302f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* default reentrant pointer when multithread enabled */

#ifdef GETREENT_PROVIDED

int _dummy_getreent;

#else

#include <_ansi.h>
#include <reent.h>

#ifndef _REENT_THREAD_LOCAL

#ifdef __getreent
#undef __getreent
#endif

struct _reent *
__getreent (void)
{
  return _impure_ptr;
}

#endif /* !_REENT_THREAD_LOCAL */

#endif