From 6b36ca23716698a40a09845b90996e00c8159a97 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 26 Apr 2012 16:34:59 +0200 Subject: Filesystem: Remove pipe_lseek() --- cpukit/libfs/src/imfs/imfs_fifo.c | 12 +----------- cpukit/libfs/src/pipe/fifo.c | 14 -------------- cpukit/libfs/src/pipe/pipe.h | 10 ---------- 3 files changed, 1 insertion(+), 35 deletions(-) diff --git a/cpukit/libfs/src/imfs/imfs_fifo.c b/cpukit/libfs/src/imfs/imfs_fifo.c index 616025669a..ac77e41533 100644 --- a/cpukit/libfs/src/imfs/imfs_fifo.c +++ b/cpukit/libfs/src/imfs/imfs_fifo.c @@ -109,23 +109,13 @@ static int IMFS_fifo_ioctl( 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 = { IMFS_fifo_open, IMFS_fifo_close, IMFS_fifo_read, IMFS_fifo_write, IMFS_fifo_ioctl, - IMFS_fifo_lseek, + rtems_filesystem_default_lseek, IMFS_stat, rtems_filesystem_default_ftruncate, rtems_filesystem_default_fsync_or_fdatasync, diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index d80a51f8cc..606bd68d5a 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -572,17 +572,3 @@ int pipe_ioctl( 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; -} diff --git a/cpukit/libfs/src/pipe/pipe.h b/cpukit/libfs/src/pipe/pipe.h index 52d0a85143..5aab78707a 100644 --- a/cpukit/libfs/src/pipe/pipe.h +++ b/cpukit/libfs/src/pipe/pipe.h @@ -104,16 +104,6 @@ extern int pipe_ioctl( 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 } #endif -- cgit v1.2.3