Added reentrant versions.

This commit is contained in:
Joel Sherrill
1999-04-15 19:01:32 +00:00
parent a68e6b91e9
commit d006519bce
6 changed files with 123 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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