libio: Add rtems_libio_iop_flags()

Update #3132.
This commit is contained in:
Sebastian Huber
2017-09-13 13:30:30 +02:00
parent ca90c6c1db
commit e2b1db2311
4 changed files with 12 additions and 7 deletions

View File

@@ -31,7 +31,7 @@
#include "pipe.h"
#define LIBIO_ACCMODE(_iop) ((_iop)->flags & LIBIO_FLAGS_READ_WRITE)
#define LIBIO_ACCMODE(_iop) (rtems_libio_iop_flags(_iop) & LIBIO_FLAGS_READ_WRITE)
#define LIBIO_NODELAY(_iop) ((_iop)->flags & LIBIO_FLAGS_NO_DELAY)
static rtems_id pipe_semaphore = RTEMS_ID_NONE;