tty: Add bitmask ioctls TIOCMBIS and TIOCMBIC

Equivalent to TIOCMSET + bitmask + TIOCMGET but with a single call.

Gnokii uses that.
This commit is contained in:
François Revol
2014-07-23 21:36:07 +02:00
parent 970910c21e
commit 0be89c15ee
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -185,6 +185,8 @@ struct termios {
#define TIOCMSET (TCGETA + 19) /* does TCSETDTR/TCSETRTS */
#define TIOCSBRK (TCGETA + 20) /* set txd pin */
#define TIOCCBRK (TCGETA + 21) /* both are a frontend to TCSBRK */
#define TIOCMBIS (TCGETA + 22) /* set bits in line state */
#define TIOCMBIC (TCGETA + 23) /* clear bits in line state */
/* Event codes. Returned from TCWAITEVENT */
#define EV_RING 0x0001