#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 04/02/13 at 07:17:03 by Sebastian Huber

Cc: Jennifer Averett added

comment:2 Changed on 07/09/14 at 10:02:20 by Sebastian Huber

Cc: Sebastian Huber added
Milestone: 4.94.11

comment:3 Changed on 07/09/14 at 10:04:03 by Sebastian Huber

Resolution: fixed
Status: newclosed

Mark as fixed.

Note: See TracTickets for help on using tickets.