OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [linuxthreads/] [reent.c] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* Define the location of _REENT for the newlib C library */
2
 
3
#include <reent.h>
4
#include "pthread.h"
5
#include "internals.h"
6
 
7
struct _reent * __thread_reent()
8
{
9
  pthread_descr self = thread_self();
10
  return THREAD_GETMEM (self, p_reentp);
11
}
12
 
13
/* Return thread specific resolver state.  */
14
struct __res_state * __res_state()
15
{
16
  pthread_descr self = thread_self();
17
  return THREAD_GETMEM (self, p_resp);
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.