summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/link.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-15 19:01:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-15 19:01:32 +0000
commitd006519bce84cc5ac5126d2effb4e12d9045e834 (patch)
treeb1bea534d5970b04db0642e74284734c3c4fcc8f /c/src/lib/libc/link.c
parentUpdated version string. (diff)
downloadrtems-d006519bce84cc5ac5126d2effb4e12d9045e834.tar.bz2
Added reentrant versions.
Diffstat (limited to 'c/src/lib/libc/link.c')
-rw-r--r--c/src/lib/libc/link.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/c/src/lib/libc/link.c b/c/src/lib/libc/link.c
index 1cee54d0bf..c6a9f606e0 100644
--- a/c/src/lib/libc/link.c
+++ b/c/src/lib/libc/link.c
@@ -58,3 +58,24 @@ int link(
return (*parent_loc.ops->link)( &existing_loc, &parent_loc, name_start );
}
+
+/*
+ * _link_r
+ *
+ * This is the Newlib dependent reentrant version of link().
+ */
+
+#if defined(RTEMS_NEWLIB)
+
+#include <reent.h>
+
+int _link_r(
+ struct _reent *ptr,
+ const char *existing,
+ const char *new
+)
+{
+ return link( existing, new );
+}
+#endif
+