summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/shmopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/shmopen.c')
-rw-r--r--cpukit/posix/src/shmopen.c6
1 files changed, 3 insertions, 3 deletions
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;