summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-26 16:34:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-04 10:53:52 +0200
commit6b36ca23716698a40a09845b90996e00c8159a97 (patch)
treec964a84f3671c65cf299d94e17a90add0d422670
parentFilesystem: Remove per file descriptor semaphore (diff)
downloadrtems-6b36ca23716698a40a09845b90996e00c8159a97.tar.bz2
Filesystem: Remove pipe_lseek()
-rw-r--r--cpukit/libfs/src/imfs/imfs_fifo.c12
-rw-r--r--cpukit/libfs/src/pipe/fifo.c14
-rw-r--r--cpukit/libfs/src/pipe/pipe.h10
3 files changed, 1 insertions, 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