summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/link.c')
-rw-r--r--cpukit/libcsupport/src/link.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/link.c b/cpukit/libcsupport/src/link.c
index 0797600849..6587f76fb5 100644
--- a/cpukit/libcsupport/src/link.c
+++ b/cpukit/libcsupport/src/link.c
@@ -20,6 +20,7 @@
#include <errno.h>
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int link(
const char *existing,
@@ -48,13 +49,13 @@ int link(
if ( !parent_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &existing_loc );
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
if ( result != 0 ) {
rtems_filesystem_freenode( &existing_loc );
- set_errno_and_return_minus_one( result );
+ rtems_set_errno_and_return_minus_one( result );
}
/*
@@ -65,13 +66,13 @@ int link(
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
- set_errno_and_return_minus_one( EXDEV );
+ rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );