diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/libcsupport/src/fstat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/exec/libcsupport/src/fstat.c b/c/src/exec/libcsupport/src/fstat.c index bdc994253d..22b1f8c412 100644 --- a/c/src/exec/libcsupport/src/fstat.c +++ b/c/src/exec/libcsupport/src/fstat.c @@ -20,6 +20,7 @@ #include <string.h> #include <rtems/libio_.h> +#include <rtems/seterr.h> int fstat( int fd, @@ -33,7 +34,7 @@ int fstat( */ if ( !sbuf ) - set_errno_and_return_minus_one( EFAULT ); + rtems_set_errno_and_return_minus_one( EFAULT ); /* * Now process the stat() request. @@ -44,10 +45,10 @@ int fstat( rtems_libio_check_is_open(iop); if ( !iop->handlers ) - set_errno_and_return_minus_one( EBADF ); + rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) - set_errno_and_return_minus_one( ENOTSUP ); + rtems_set_errno_and_return_minus_one( ENOTSUP ); /* * Zero out the stat structure so the various support |