mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 03:52:59 +00:00
19 lines
405 B
C
19 lines
405 B
C
/* 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);
|
|
}
|