diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 10:42:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 10:27:12 +0200 |
commit | d4c54416b73bd1a067e8270543d30146f55eea91 (patch) | |
tree | b8d0e5926b3e2398c8518f1d292e7b792036dc59 /cpukit/libfs/src/dosfs/msdos_file.c | |
parent | libio: Add rtems_libio_iop_is_writeable() (diff) | |
download | rtems-d4c54416b73bd1a067e8270543d30146f55eea91.tar.bz2 |
libio: Add rtems_libio_iop_is_append()
Update #3132.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c index ada943d854..d150a1ff22 100644 --- a/cpukit/libfs/src/dosfs/msdos_file.c +++ b/cpukit/libfs/src/dosfs/msdos_file.c @@ -91,7 +91,7 @@ msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count) if (sc != RTEMS_SUCCESSFUL) rtems_set_errno_and_return_minus_one(EIO); - if ((iop->flags & LIBIO_FLAGS_APPEND) != 0) + if (rtems_libio_iop_is_append(iop)) iop->offset = fat_fd->fat_file_size; ret = fat_file_write(&fs_info->fat, fat_fd, iop->offset, count, |