Changeset a937a5a in rtems


Ignore:
Timestamp:
Sep 13, 2017, 8:35:45 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3cffd66d
Parents:
bbcdc302
git-author:
Sebastian Huber <sebastian.huber@…> (09/13/17 08:35:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/15/17 08:27:12)
Message:

libio: Add rtems_libio_iop_is_readable()

Update #3132.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/console.c

    rbbcdc302 ra937a5a  
    256256  }
    257257
    258   if ( (args->iop->flags&LIBIO_FLAGS_READ) &&
     258  if (rtems_libio_iop_is_readable(args->iop) &&
    259259      cptr->pDeviceFlow &&
    260260      cptr->pDeviceFlow->deviceStartRemoteTx) {
     
    289289   */
    290290  if ( (current_tty->refcount == 1) ) {
    291     if ( (args->iop->flags&LIBIO_FLAGS_READ) &&
     291    if (rtems_libio_iop_is_readable(args->iop) &&
    292292          cptr->pDeviceFlow &&
    293293          cptr->pDeviceFlow->deviceStopRemoteTx) {
  • cpukit/libcsupport/include/rtems/libio.h

    rbbcdc302 ra937a5a  
    13911391
    13921392/**
     1393 * @brief Returns true if this is a readable iop, otherwise returns false.
     1394 *
     1395 * @param[in] iop The iop.
     1396 */
     1397static inline bool rtems_libio_iop_is_readable( const rtems_libio_t *iop )
     1398{
     1399  return ( rtems_libio_iop_flags( iop ) & LIBIO_FLAGS_READ ) != 0;
     1400}
     1401
     1402/**
    13931403 * @name External I/O Handlers
    13941404 */
  • cpukit/libnetworking/lib/ftpfs.c

    rbbcdc302 ra937a5a  
    10381038  if (
    10391039    (iop->flags & LIBIO_FLAGS_WRITE) != 0
    1040       && (iop->flags & LIBIO_FLAGS_READ) != 0
     1040      && rtems_libio_iop_is_readable(iop)
    10411041  ) {
    10421042    eno = ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.