diff options
Diffstat (limited to 'cpukit/libcsupport/src/unlink.c')
-rw-r--r-- | cpukit/libcsupport/src/unlink.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c index d4a5520bcb..f3d6606bc9 100644 --- a/cpukit/libcsupport/src/unlink.c +++ b/cpukit/libcsupport/src/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 <reent.h> + +int _unlink_r( + struct _reent *ptr, + const char *path +) +{ + return unlink( path ); +} +#endif + |