forked from Imagelibrary/rtems
Patch to add return status to rtems_termios_enqueue_raw_characters from
Eric Norum per request from Geoffroy Montel: > The rtems_termios_enqueue_raw_characters function type is void. > The problem is that I can't return an error message if the input > buffer is full. > Could we add a return value? Sure, but what would you do with the overflow indication? POSIX says, ``when the input limit is reached, the saved characters are thrown away without notice''. Anyhow, the change is so small I've done it and enclosed the patch.
This commit is contained in:
@@ -156,7 +156,7 @@ rtems_status_code rtems_termios_close (void *arg);
|
||||
rtems_status_code rtems_termios_read (void *arg);
|
||||
rtems_status_code rtems_termios_write (void *arg);
|
||||
rtems_status_code rtems_termios_ioctl (void *arg);
|
||||
void rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len);
|
||||
int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len);
|
||||
void rtems_termios_dequeue_characters (void *ttyp, int len);
|
||||
void rtems_termios_reserve_resources(
|
||||
rtems_configuration_table *configuration,
|
||||
|
||||
Reference in New Issue
Block a user