From d4c54416b73bd1a067e8270543d30146f55eea91 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Sep 2017 10:42:21 +0200 Subject: libio: Add rtems_libio_iop_is_append() Update #3132. --- cpukit/libfs/src/imfs/imfs_memfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libfs/src/imfs/imfs_memfile.c') 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 ); -- cgit v1.2.3