From d006519bce84cc5ac5126d2effb4e12d9045e834 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 15 Apr 1999 19:01:32 +0000 Subject: Added reentrant versions. --- c/src/lib/libc/unlink.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'c/src/lib/libc/unlink.c') diff --git a/c/src/lib/libc/unlink.c b/c/src/lib/libc/unlink.c index d4a5520bcb..f3d6606bc9 100644 --- a/c/src/lib/libc/unlink.c +++ b/c/src/lib/libc/unlink.c @@ -42,3 +42,23 @@ int unlink( return (*loc.ops->unlink)( &loc ); } + +/* + * _unlink_r + * + * This is the Newlib dependent reentrant version of unlink(). + */ + +#if defined(RTEMS_NEWLIB) + +#include + +int _unlink_r( + struct _reent *ptr, + const char *path +) +{ + return unlink( path ); +} +#endif + -- cgit v1.2.3