Changeset bbcdc302 in rtems


Ignore:
Timestamp:
Sep 13, 2017, 8:24:25 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a937a5a
Parents:
e2b1db23
git-author:
Sebastian Huber <sebastian.huber@…> (09/13/17 08:24:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/15/17 08:27:12)
Message:

libio: Add rtems_libio_iop_is_no_delay()

Update #3132.

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    re2b1db23 rbbcdc302  
    13811381
    13821382/**
     1383 * @brief Returns true if this is a no delay iop, otherwise returns false.
     1384 *
     1385 * @param[in] iop The iop.
     1386 */
     1387static inline bool rtems_libio_iop_is_no_delay( const rtems_libio_t *iop )
     1388{
     1389  return ( rtems_libio_iop_flags( iop ) & LIBIO_FLAGS_NO_DELAY ) != 0;
     1390}
     1391
     1392/**
    13831393 * @name External I/O Handlers
    13841394 */
  • cpukit/libcsupport/src/termios.c

    re2b1db23 rbbcdc302  
    12311231                         const char *buf, uint32_t len)
    12321232{
    1233   bool wait = ((iop->flags & LIBIO_FLAGS_NO_DELAY) == 0);
     1233  bool wait = !rtems_libio_iop_is_no_delay (iop);
    12341234
    12351235  if (tty->termios.c_oflag & OPOST) {
  • cpukit/libfs/src/pipe/fifo.c

    re2b1db23 rbbcdc302  
    3333
    3434#define LIBIO_ACCMODE(_iop) (rtems_libio_iop_flags(_iop) & LIBIO_FLAGS_READ_WRITE)
    35 #define LIBIO_NODELAY(_iop) ((_iop)->flags & LIBIO_FLAGS_NO_DELAY)
     35#define LIBIO_NODELAY(_iop) rtems_libio_iop_is_no_delay(_iop)
    3636
    3737static rtems_id pipe_semaphore = RTEMS_ID_NONE;
  • cpukit/libnetworking/rtems/rtems_syscall.c

    re2b1db23 rbbcdc302  
    795795                        return EBADF;
    796796                }
    797                 if (iop->flags & LIBIO_FLAGS_NO_DELAY)
     797                if (rtems_libio_iop_is_no_delay(iop))
    798798                        so->so_state |= SS_NBIO;
    799799                else
Note: See TracChangeset for help on using the changeset viewer.