forked from Imagelibrary/rtems
Filesystem: Remove pipe_lseek()
This commit is contained in:
@@ -109,23 +109,13 @@ static int IMFS_fifo_ioctl(
|
|||||||
IMFS_FIFO_RETURN(err);
|
IMFS_FIFO_RETURN(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
static off_t IMFS_fifo_lseek(
|
|
||||||
rtems_libio_t *iop,
|
|
||||||
off_t offset,
|
|
||||||
int whence
|
|
||||||
)
|
|
||||||
{
|
|
||||||
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
|
|
||||||
IMFS_FIFO_RETURN(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const rtems_filesystem_file_handlers_r IMFS_fifo_handlers = {
|
static const rtems_filesystem_file_handlers_r IMFS_fifo_handlers = {
|
||||||
IMFS_fifo_open,
|
IMFS_fifo_open,
|
||||||
IMFS_fifo_close,
|
IMFS_fifo_close,
|
||||||
IMFS_fifo_read,
|
IMFS_fifo_read,
|
||||||
IMFS_fifo_write,
|
IMFS_fifo_write,
|
||||||
IMFS_fifo_ioctl,
|
IMFS_fifo_ioctl,
|
||||||
IMFS_fifo_lseek,
|
rtems_filesystem_default_lseek,
|
||||||
IMFS_stat,
|
IMFS_stat,
|
||||||
rtems_filesystem_default_ftruncate,
|
rtems_filesystem_default_ftruncate,
|
||||||
rtems_filesystem_default_fsync_or_fdatasync,
|
rtems_filesystem_default_fsync_or_fdatasync,
|
||||||
|
|||||||
@@ -572,17 +572,3 @@ int pipe_ioctl(
|
|||||||
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Interface to file system lseek.
|
|
||||||
*/
|
|
||||||
int pipe_lseek(
|
|
||||||
pipe_control_t *pipe,
|
|
||||||
off_t offset,
|
|
||||||
int whence,
|
|
||||||
rtems_libio_t *iop
|
|
||||||
)
|
|
||||||
{
|
|
||||||
/* Seek on pipe is not supported */
|
|
||||||
return -ESPIPE;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -104,16 +104,6 @@ extern int pipe_ioctl(
|
|||||||
rtems_libio_t *iop
|
rtems_libio_t *iop
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
|
||||||
* Interface to file system lseek.
|
|
||||||
*/
|
|
||||||
extern int pipe_lseek(
|
|
||||||
pipe_control_t *pipe,
|
|
||||||
off_t offset,
|
|
||||||
int whence,
|
|
||||||
rtems_libio_t *iop
|
|
||||||
);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user