Changeset ca6df52 in rtems
- Timestamp:
- 03/07/06 22:22:46 (18 years ago)
- Children:
- d42d899
- Parents:
- ede4f16
- Location:
- cpukit/libcsupport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/ChangeLog
rede4f16 rca6df52 1 2006-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 1 7 2006-03-07 Till Strauman <strauman@slac.stanford.edu> 2 8 -
cpukit/libcsupport/src/termios.c
rede4f16 rca6df52 647 647 #endif 648 648 case FIONREAD: 649 { 650 int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 651 if ( rawnc < 0 ) 652 rawnc += tty->rawInBuf.Size; 649 653 /* 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 } 651 656 break; 652 657 }
Note: See TracChangeset
for help on using the changeset viewer.