mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 20:44:09 +08:00
Filesystem: Change error indication
Change error indication to ESPIPE in rtems_filesystem_default_lseek().
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user