[rtems commit] Filesystem: Remove pipe_lseek()
Sebastian Huber
sebh at rtems.org
Fri May 4 08:54:49 UTC 2012
Module: rtems
Branch: master
Commit: 6b36ca23716698a40a09845b90996e00c8159a97
Changeset: http://git.rtems.org/rtems/commit/?id=6b36ca23716698a40a09845b90996e00c8159a97
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Apr 26 16:34:59 2012 +0200
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 insertions(+), 35 deletions(-)
diff --git a/cpukit/libfs/src/imfs/imfs_fifo.c b/cpukit/libfs/src/imfs/imfs_fifo.c
index 6160256..ac77e41 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 d80a51f..606bd68 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 52d0a85..5aab787 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
More information about the vc
mailing list