[RTEMS Project] #3800: termios - Add Capability to Generate SIGINTR and SIGQUIT
RTEMS trac
trac at rtems.org
Mon May 4 14:55:45 UTC 2020
#3800: termios - Add Capability to Generate SIGINTR and SIGQUIT
-----------------------------------+----------------------------
Reporter: Joel Sherrill | Owner: Joel Sherrill
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.1
Component: posix | Version: 5
Severity: normal | Resolution:
Keywords: termios, POSIX, EINTR | Blocked By:
Blocking: |
-----------------------------------+----------------------------
Comment (by Sebastian Huber):
Joel, I have no idea what you had in mind with the
rtems_termios_isig_status_code, see my comment #4. Is this part of the API
which applications may implement? The
{{{
rtems_termios_isig_status_code rtems_termios_posix_isig_handler(
unsigned char c,
struct rtems_termios_tty *tty
)
{
if (c == tty->termios.c_cc[VINTR]) {
raise(SIGINT);
return RTEMS_TERMIOS_ISIG_INTERRUPT_READ;
}
if (c == tty->termios.c_cc[VQUIT]) {
raise(SIGQUIT);
return RTEMS_TERMIOS_ISIG_INTERRUPT_READ;
}
return RTEMS_TERMIOS_ISIG_WAS_NOT_PROCESSED;
}
}}}
doesn't use RTEMS_TERMIOS_ISIG_WAS_PROCESSED for example. The "unsigned
char" should be probably cc_t.
--
Ticket URL: <http://devel.rtems.org/ticket/3800#comment:9>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list