Changeset 360d9da in rtems
- Timestamp:
- 03/07/06 22:23:15 (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 27207213
- Parents:
- 77b0a73
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r77b0a73 r360d9da 1 2006-03-07 Till Strauman <strauman@slac.stanford.edu> 2 3 PR 830/filesystem 4 * libcsupport/src/termios.c: termios ioctl(FIONREAD) reported wrong 5 number of characters. So add chars in low-level/raw buffer to total 6 count. 7 1 8 2006-03-07 Steven Johnson <sjohnson@sakuraindustries.com> 2 9 -
cpukit/libcsupport/src/termios.c
r77b0a73 r360d9da 614 614 #endif 615 615 case FIONREAD: 616 { 617 int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 618 if ( rawnc < 0 ) 619 rawnc += tty->rawInBuf.Size; 616 620 /* Half guess that this is the right operation */ 617 *(int *)args->buffer = tty->ccount - tty->cindex; 621 *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 622 } 618 623 break; 619 624 }
Note: See TracChangeset
for help on using the changeset viewer.