diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index e17a4380f4..f883d66b40 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -1014,7 +1014,7 @@ int rtems_filesystem_default_ioctl( ); /** - * @retval -1 Always. The errno is set to ENOTSUP. + * @retval -1 Always. The errno is set to ESPIPE. * * @see rtems_filesystem_lseek_t. */ diff --git a/cpukit/libfs/src/defaults/default_lseek.c b/cpukit/libfs/src/defaults/default_lseek.c index 09a691eb61..02bd369839 100644 --- a/cpukit/libfs/src/defaults/default_lseek.c +++ b/cpukit/libfs/src/defaults/default_lseek.c @@ -9,15 +9,17 @@ * $Id$ */ -#include +#if HAVE_CONFIG_H + #include "config.h" +#endif + #include -#include off_t rtems_filesystem_default_lseek( rtems_libio_t *iop, - off_t length, + off_t offset, int whence ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); + rtems_set_errno_and_return_minus_one( ESPIPE ); }