Changeset ca6df52 in rtems


Ignore:
Timestamp:
03/07/06 22:22:46 (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
d42d899
Parents:
ede4f16
Message:

2006-03-07 Till Strauman <strauman@…>

PR 830/filesystem

  • src/termios.c: termios ioctl(FIONREAD) reported wrong number of characters. So add chars in low-level/raw buffer to total count.
Location:
cpukit/libcsupport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/ChangeLog

    rede4f16 rca6df52  
     12006-03-07      Till Strauman <strauman@slac.stanford.edu>
     2
     3        PR 830/filesystem
     4        * src/termios.c: termios ioctl(FIONREAD) reported wrong number of
     5        characters. So add chars in low-level/raw buffer to total count.
     6
    172006-03-07      Till Strauman <strauman@slac.stanford.edu>
    28
  • cpukit/libcsupport/src/termios.c

    rede4f16 rca6df52  
    647647#endif
    648648        case FIONREAD:
     649                {
     650                int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
     651                if ( rawnc < 0 )
     652                        rawnc += tty->rawInBuf.Size;
    649653                /* Half guess that this is the right operation */
    650                 *(int *)args->buffer = tty->ccount - tty->cindex;
     654                *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
     655                }
    651656                break;
    652657        }
Note: See TracChangeset for help on using the changeset viewer.