From 856ede4f91a76a1a681ceac24ddb18d3a438dffb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Sep 2017 10:11:46 +0200 Subject: libio: Add iop set/clear flags Update #3132. --- cpukit/posix/src/shmopen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/shmopen.c b/cpukit/posix/src/shmopen.c index e729f9bd4e..e00869e30d 100644 --- a/cpukit/posix/src/shmopen.c +++ b/cpukit/posix/src/shmopen.c @@ -275,11 +275,11 @@ int shm_open( const char *name, int oflag, mode_t mode ) } fd = rtems_libio_iop_to_descriptor( iop ); - iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; + rtems_libio_iop_flags_set( iop, LIBIO_FLAGS_CLOSE_ON_EXEC ); if ( oflag & O_RDONLY ) { - iop->flags |= LIBIO_FLAGS_READ; + rtems_libio_iop_flags_set( iop, LIBIO_FLAGS_READ ); } else { - iop->flags |= LIBIO_FLAGS_READ_WRITE; + rtems_libio_iop_flags_set( iop, LIBIO_FLAGS_READ_WRITE ); } iop->data0 = fd; iop->data1 = shm; -- cgit v1.2.3