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/syscalls/syslink.c')
-rw-r--r--newlib/libc/syscalls/syslink.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/libc/syscalls/syslink.c b/newlib/libc/syscalls/syslink.c
new file mode 100644
index 000000000..6abe184ea
--- /dev/null
+++ b/newlib/libc/syscalls/syslink.c
@@ -0,0 +1,15 @@
+/* connector for link */
+
+#include <reent.h>
+
+int
+link (old, new)
+ char *old;
+ char *new;
+{
+#ifdef REENTRANT_SYSCALLS_PROVIDED
+ return _link_r (_REENT, old, new);
+#else
+ return _link (old, new);
+#endif
+}