diff options
Diffstat (limited to 'c/src/lib/libc/link.c')
-rw-r--r-- | c/src/lib/libc/link.c | 21 |
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 + |