diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 10:11:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 07:48:03 +0200 |
commit | 856ede4f91a76a1a681ceac24ddb18d3a438dffb (patch) | |
tree | 969faa830fdcc9815a4335567e10b4f949e7e942 /cpukit/posix/src/shmopen.c | |
parent | libio: rtems_libio_check_permissions_with_error() (diff) | |
download | rtems-856ede4f91a76a1a681ceac24ddb18d3a438dffb.tar.bz2 |
libio: Add iop set/clear flags
Update #3132.
Diffstat (limited to 'cpukit/posix/src/shmopen.c')
-rw-r--r-- | cpukit/posix/src/shmopen.c | 6 |
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; |