Filesystem: Remove pipe_lseek()

This commit is contained in:
Sebastian Huber
2012-04-26 16:34:59 +02:00
parent 5a4bb758c0
commit 6b36ca2371
3 changed files with 1 additions and 35 deletions

View File

@@ -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,

View File

@@ -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;
}

View File

@@ -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