summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-24 09:53:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-03-13 12:23:45 +0100
commitadef4e469672039321f3cfbe77306ff5dbbe5467 (patch)
tree0e304aa1c80b49382e3756314e283aa84cfbefb3 /cpukit/libcsupport/include/rtems/libio.h
parentFilesystem: Read-only file system checks (diff)
downloadrtems-adef4e469672039321f3cfbe77306ff5dbbe5467.tar.bz2
Filesystem: New function
New function rtems_filesystem_default_lseek_success().
Diffstat (limited to 'cpukit/libcsupport/include/rtems/libio.h')
-rw-r--r--cpukit/libcsupport/include/rtems/libio.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
index 4a09e0c18b..e17a4380f4 100644
--- a/cpukit/libcsupport/include/rtems/libio.h
+++ b/cpukit/libcsupport/include/rtems/libio.h
@@ -844,13 +844,14 @@ typedef int (*rtems_filesystem_ioctl_t)(
* @brief Moves the read/write file offset.
*
* @param[in, out] iop The IO pointer.
- * @param[in] offset The new offset.
- * @param[in] whence The reference position of the new offset.
+ * @param[in] offset The offset.
+ * @param[in] whence The reference position for the offset.
*
* @retval non-negative The new offset from the beginning of the file.
* @retval -1 An error occured. The errno is set to indicate the error.
*
- * @see rtems_filesystem_default_lseek().
+ * @see rtems_filesystem_default_lseek() and
+ * rtems_filesystem_default_lseek_success().
*/
typedef off_t (*rtems_filesystem_lseek_t)(
rtems_libio_t *iop,
@@ -1019,7 +1020,18 @@ int rtems_filesystem_default_ioctl(
*/
off_t rtems_filesystem_default_lseek(
rtems_libio_t *iop,
- off_t length,
+ off_t offset,
+ int whence
+);
+
+/**
+ * @retval 0 Always.
+ *
+ * @see rtems_filesystem_lseek_t.
+ */
+off_t rtems_filesystem_default_lseek_success(
+ rtems_libio_t *iop,
+ off_t offset,
int whence
);