summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-13 10:11:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-15 07:48:03 +0200
commit856ede4f91a76a1a681ceac24ddb18d3a438dffb (patch)
tree969faa830fdcc9815a4335567e10b4f949e7e942 /cpukit/posix
parentlibio: rtems_libio_check_permissions_with_error() (diff)
downloadrtems-856ede4f91a76a1a681ceac24ddb18d3a438dffb.tar.bz2
libio: Add iop set/clear flags
Update #3132.
Diffstat (limited to 'cpukit/posix')
-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;