summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/chdir.c')
-rw-r--r--cpukit/libcsupport/src/chdir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c
index a8322e91d0..07fca7610a 100644
--- a/cpukit/libcsupport/src/chdir.c
+++ b/cpukit/libcsupport/src/chdir.c
@@ -21,6 +21,7 @@
#include <errno.h>
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int chdir(
const char *pathname
@@ -44,12 +45,12 @@ int chdir(
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
- set_errno_and_return_minus_one( ENOTDIR );
+ rtems_set_errno_and_return_minus_one( ENOTDIR );
}
rtems_filesystem_freenode( &rtems_filesystem_current );