Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/getreent.c')
-rw-r--r--newlib/libc/sys/linux/getreent.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/getreent.c b/newlib/libc/sys/linux/getreent.c
new file mode 100644
index 000000000..2d842073a
--- /dev/null
+++ b/newlib/libc/sys/linux/getreent.c
@@ -0,0 +1,12 @@
+/* default function used by _REENT when not using multithreading */
+
+#include <reent.h>
+#include <machine/weakalias.h>
+
+struct _reent *
+__libc_getreent (void)
+{
+ return _impure_ptr;
+}
+weak_alias(__libc_getreent,__getreent)
+