summaryrefslogtreecommitdiffstats
path: root/newlib/libc/reent
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent')
-rw-r--r--newlib/libc/reent/Makefile.am1
-rw-r--r--newlib/libc/reent/Makefile.in12
-rw-r--r--newlib/libc/reent/getreent.c10
3 files changed, 18 insertions, 5 deletions
diff --git a/newlib/libc/reent/Makefile.am b/newlib/libc/reent/Makefile.am
index c01ffb593..0333eff03 100644
--- a/newlib/libc/reent/Makefile.am
+++ b/newlib/libc/reent/Makefile.am
@@ -10,6 +10,7 @@ LIB_SOURCES = \
impure.c \
execr.c \
fstatr.c \
+ getreent.c \
linkr.c \
lseekr.c \
openr.c \
diff --git a/newlib/libc/reent/Makefile.in b/newlib/libc/reent/Makefile.in
index 2f61b2fe3..38e1c693d 100644
--- a/newlib/libc/reent/Makefile.in
+++ b/newlib/libc/reent/Makefile.in
@@ -108,6 +108,7 @@ LIB_SOURCES = \
impure.c \
execr.c \
fstatr.c \
+ getreent.c \
linkr.c \
lseekr.c \
openr.c \
@@ -164,15 +165,16 @@ CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
lib_a_LIBADD =
@USE_LIBTOOL_FALSE@lib_a_OBJECTS = closer.o reent.o impure.o execr.o \
-@USE_LIBTOOL_FALSE@fstatr.o linkr.o lseekr.o openr.o readr.o signalr.o \
-@USE_LIBTOOL_FALSE@signgam.o sbrkr.o statr.o timer.o unlinkr.o writer.o
+@USE_LIBTOOL_FALSE@fstatr.o getreent.o linkr.o lseekr.o openr.o readr.o \
+@USE_LIBTOOL_FALSE@signalr.o signgam.o sbrkr.o statr.o timer.o \
+@USE_LIBTOOL_FALSE@unlinkr.o writer.o
LTLIBRARIES = $(noinst_LTLIBRARIES)
libreent_la_LIBADD =
@USE_LIBTOOL_TRUE@libreent_la_OBJECTS = closer.lo reent.lo impure.lo \
-@USE_LIBTOOL_TRUE@execr.lo fstatr.lo linkr.lo lseekr.lo openr.lo \
-@USE_LIBTOOL_TRUE@readr.lo signalr.lo signgam.lo sbrkr.lo statr.lo \
-@USE_LIBTOOL_TRUE@timer.lo unlinkr.lo writer.lo
+@USE_LIBTOOL_TRUE@execr.lo fstatr.lo getreent.lo linkr.lo lseekr.lo \
+@USE_LIBTOOL_TRUE@openr.lo readr.lo signalr.lo signgam.lo sbrkr.lo \
+@USE_LIBTOOL_TRUE@statr.lo timer.lo unlinkr.lo writer.lo
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
diff --git a/newlib/libc/reent/getreent.c b/newlib/libc/reent/getreent.c
new file mode 100644
index 000000000..b53ff26c8
--- /dev/null
+++ b/newlib/libc/reent/getreent.c
@@ -0,0 +1,10 @@
+/* default reentrant pointer when multithread enabled */
+
+#include <_ansi.h>
+#include <reent.h>
+
+struct _reent *
+_DEFUN_VOID(__getreent)
+{
+ return _impure_ptr;
+}