Add a few commonly used macros for line state setting/getting.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39759 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5d74aab80a
commit
deb25b1cc2
|
@ -181,6 +181,10 @@ struct termios {
|
|||
#define TIOCGPGRP (TCGETA + 15) /* Gets the process group ID of the TTY device */
|
||||
#define TIOCSPGRP (TCGETA + 16) /* Sets the process group ID ('pgid' in BeOS) */
|
||||
#define TIOCSCTTY (TCGETA + 17) /* Become controlling TTY */
|
||||
#define TIOCMGET (TCGETA + 18) /* get line state, like TCGETBITS */
|
||||
#define TIOCMSET (TCGETA + 19) /* does TCSETDTR/TCSETRTS */
|
||||
#define TIOCSBRK (TCGETA + 20) /* set txd pin */
|
||||
#define TIOCCBRK (TCGETA + 21) /* both are a frontend to TCSBRK */
|
||||
|
||||
/* Event codes. Returned from TCWAITEVENT */
|
||||
#define EV_RING 0x0001
|
||||
|
@ -202,6 +206,14 @@ struct winsize {
|
|||
#define TCGB_RI 0x04
|
||||
#define TCGB_DCD 0x08
|
||||
|
||||
/* Bits for the TIOCMGET / TIOCMSET control */
|
||||
#define TIOCM_CTS TCGB_CTS /* clear to send */
|
||||
#define TIOCM_CD TCGB_DCD /* carrier detect */
|
||||
#define TIOCM_RI TCGB_RI /* ring indicator */
|
||||
#define TIOCM_DSR TCGB_DSR /* dataset ready */
|
||||
#define TIOCM_DTR 0x10 /* data terminal ready */
|
||||
#define TIOCM_RTS 0x20 /* request to send */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in New Issue