forked from Imagelibrary/rtems
Added reentrant versions.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user