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/imfs | |
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 'cpukit/libfs/src/imfs')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_memfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_memfile.c b/cpukit/libfs/src/imfs/imfs_memfile.c index 2227bba6af..9e3474bc86 100644 --- a/cpukit/libfs/src/imfs/imfs_memfile.c +++ b/cpukit/libfs/src/imfs/imfs_memfile.c @@ -87,7 +87,7 @@ static ssize_t memfile_write( IMFS_memfile_t *memfile = IMFS_iop_to_memfile( iop ); ssize_t status; - if ((iop->flags & LIBIO_FLAGS_APPEND) != 0) + if (rtems_libio_iop_is_append(iop)) iop->offset = memfile->File.size; status = IMFS_memfile_write( memfile, iop->offset, buffer, count ); |