diff options
Diffstat (limited to 'c/src/lib/libc/termios.c')
-rw-r--r-- | c/src/lib/libc/termios.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libc/termios.c b/c/src/lib/libc/termios.c index a41817b28a..b2d1bb1499 100644 --- a/c/src/lib/libc/termios.c +++ b/c/src/lib/libc/termios.c @@ -837,8 +837,9 @@ rtems_termios_read (void *arg) * Place characters on raw queue. * NOTE: This routine runs in the context of the * device receive interrupt handler. + * Returns the number of characters dropped because of overlow. */ -void +int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { struct rtems_termios_tty *tty = ttyp; @@ -855,6 +856,7 @@ rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) tty->rawInBufTail = newTail; } rtems_semaphore_release (tty->rawInBufSemaphore); + return len; } /* |