diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 10:36:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 10:27:12 +0200 |
commit | 3cffd66d763ec83de382e2cb03c04e2eba0ac5e9 (patch) | |
tree | 19bacd70e9f1667422a6a0fa184dee468d690cd7 /cpukit/libfs/src | |
parent | libio: Add rtems_libio_iop_is_readable() (diff) | |
download | rtems-3cffd66d763ec83de382e2cb03c04e2eba0ac5e9.tar.bz2 |
libio: Add rtems_libio_iop_is_writeable()
Update #3132.
Diffstat (limited to 'cpukit/libfs/src')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_linfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_linfile.c b/cpukit/libfs/src/imfs/imfs_linfile.c index 80a77c3ef8..a27ba99ede 100644 --- a/cpukit/libfs/src/imfs/imfs_linfile.c +++ b/cpukit/libfs/src/imfs/imfs_linfile.c @@ -56,7 +56,7 @@ static int IMFS_linfile_open( /* * Perform 'copy on write' for linear files */ - if ((iop->flags & LIBIO_FLAGS_WRITE) != 0) { + if (rtems_libio_iop_is_writeable(iop)) { uint32_t count = file->File.size; const unsigned char *buffer = file->Linearfile.direct; |