#1279 closed defect (fixed)

termios ignores error codes delivered from low level drivers

Reported by: thomas.doerfler Owned by: thomas.doerfler
Priority: low Milestone: 4.11
Component: bsps Version: unknown
Severity: minor Keywords:
Cc: jennifer.averett@…, sebastian.huber@… Blocked By:
Blocking:

Description

The low level UART driver functions listed in struct rtems_termios_callbacks are defined to return an integer value. For some of the calls (e.g. setAttributes), the exact value to be returned here is not yet defined and the return values are ignored (at least for firstOpen, lastClose and setAttributes).

It would be better if any non-zero return value from these calls would be interpreted as errors.

Actions required:

  • identify the error coding scheme appropriate for this interface (rtems_status_code, errno coding, others...)
  • identify possible changes to termios.c
  • identify, which BSP might need reqork to avoid unintentional false error reportings
  • implement changes

Change History (3)

comment:1 Changed on Apr 2, 2013 at 7:17:03 AM by Sebastian Huber

Cc: Jennifer Averett added

comment:2 Changed on Jul 9, 2014 at 10:02:20 AM by Sebastian Huber

Cc: Sebastian Huber added
Milestone: 4.94.11

comment:3 Changed on Jul 9, 2014 at 10:04:03 AM by Sebastian Huber

Resolution: fixed
Status: newclosed

Mark as fixed.

Note: See TracTickets for help on using tickets.