diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-04-15 19:01:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-04-15 19:01:32 +0000 |
commit | d006519bce84cc5ac5126d2effb4e12d9045e834 (patch) | |
tree | b1bea534d5970b04db0642e74284734c3c4fcc8f /c/src/lib/libc/unlink.c | |
parent | Updated version string. (diff) | |
download | rtems-d006519bce84cc5ac5126d2effb4e12d9045e834.tar.bz2 |
Added reentrant versions.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/unlink.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 <reent.h> + +int _unlink_r( + struct _reent *ptr, + const char *path +) +{ + return unlink( path ); +} +#endif + |