aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/linux/linuxthreads/getreent.c
blob: e73c4a53162b20e7bcc1ec09ddde03316ca55485 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* get thread-specific reentrant pointer */

#include <internals.h>

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