Retro68/gcc/newlib/libc/sys/linux/linuxthreads/getreent.c
2012-03-27 01:51:53 +02:00

12 lines
186 B
C

/* get thread-specific reentrant pointer */
#include <internals.h>
struct _reent *
__getreent (void)
{
pthread_descr self = thread_self();
return THREAD_GETMEM(self, p_reentp);
}