Filesystem: Change error indication

Change error indication to ESPIPE in rtems_filesystem_default_lseek().
This commit is contained in:
Sebastian Huber
2012-03-13 12:23:45 +01:00
parent adef4e4696
commit a76c23738b
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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.
*/
+6 -4
View File
@@ -9,15 +9,17 @@
* $Id$
*/
#include <rtems/libio.h>
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <rtems/libio_.h>
#include <rtems/seterr.h>
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 );
}