summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/fchdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/fchdir.c')
-rw-r--r--c/src/lib/libc/fchdir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/lib/libc/fchdir.c b/c/src/lib/libc/fchdir.c
index ecef51950c..7c984bc892 100644
--- a/c/src/lib/libc/fchdir.c
+++ b/c/src/lib/libc/fchdir.c
@@ -22,6 +22,7 @@
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int fchdir(
int fd
@@ -44,16 +45,16 @@ int fchdir(
*/
if ( !iop->pathinfo.ops ) {
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
RTEMS_FILESYSTEM_DIRECTORY ) {
- set_errno_and_return_minus_one( ENOTDIR );
+ rtems_set_errno_and_return_minus_one( ENOTDIR );
}
rtems_filesystem_freenode( &rtems_filesystem_current );