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

reent.c « linuxthreads « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44d6f78584174ff6140a2a9fb21464d6d08861fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Define the location of _REENT for the newlib C library */

#include <reent.h>
#include "pthread.h"
#include "internals.h"

struct _reent * __thread_reent()
{
  pthread_descr self = thread_self();
  return THREAD_GETMEM (self, p_reentp);
}

/* Return thread specific resolver state.  */
struct __res_state * __res_state()
{
  pthread_descr self = thread_self();
  return THREAD_GETMEM (self, p_resp);
}