Retro68/gcc/newlib/libc/sys/linux/linuxthreads/getreent.c

12 lines
186 B
C
Raw Normal View History

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