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/libcsupport/include/rtems/libio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index 72a787eebc..2a67496800 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -1409,6 +1409,16 @@ static inline bool rtems_libio_iop_is_writeable( const rtems_libio_t *iop ) return ( rtems_libio_iop_flags( iop ) & LIBIO_FLAGS_WRITE ) != 0; } +/** + * @brief Returns true if this is an append iop, otherwise returns false. + * + * @param[in] iop The iop. + */ +static inline bool rtems_libio_iop_is_append( const rtems_libio_t *iop ) +{ + return ( rtems_libio_iop_flags( iop ) & LIBIO_FLAGS_APPEND ) != 0; +} + /** * @name External I/O Handlers */ -- cgit v1.2.3