termios.h: Undefine/remove some unimplemented BeOS extensions.

We did not ever implement these, it seems, and so they are just
cluttering up the global namespace.

Change-Id: Ib37c3a31663525a18268c9bfe326bfba9afbc794
This commit is contained in:
Augustin Cavalier
2023-05-22 18:20:17 -04:00
parent 5d4fe207c7
commit 605bd3f09d
2 changed files with 9 additions and 11 deletions
+5 -11
View File
@@ -167,21 +167,21 @@ struct termios {
#define TCSETA (TCGETA + 1)
#define TCSETAF (TCGETA + 2)
#define TCSETAW (TCGETA + 3)
#define TCWAITEVENT (TCGETA + 4)
/* TCWAITEVENT (TCGETA + 4) */
#define TCSBRK (TCGETA + 5)
#define TCFLSH (TCGETA + 6)
#define TCXONC (TCGETA + 7)
#define TCQUERYCONNECTED (TCGETA + 8)
#define TCGETBITS (TCGETA + 9)
/* TCQUERYCONNECTED (TCGETA + 8) */
#define TCGETBITS (TCGETA + 9) /* same as TIOCMGET */
#define TCSETDTR (TCGETA + 10)
#define TCSETRTS (TCGETA + 11)
#define TIOCGWINSZ (TCGETA + 12) /* pass in a struct winsize */
#define TIOCSWINSZ (TCGETA + 13) /* pass in a struct winsize */
#define TCVTIME (TCGETA + 14) /* pass in bigtime_t, old value saved */
/* TCVTIME (TCGETA + 14) */
#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 TIOCMGET (TCGETA + 18) /* get line state */
#define TIOCMSET (TCGETA + 19) /* does TCSETDTR/TCSETRTS */
#define TIOCSBRK (TCGETA + 20) /* set txd pin */
#define TIOCCBRK (TCGETA + 21) /* both are a frontend to TCSBRK */
@@ -192,12 +192,6 @@ struct termios {
#define TIOCEXCL (TCGETA + 26) /* set exclusive use of tty */
#define TIOCNXCL (TCGETA + 27) /* clear exclusive use of tty */
/* Event codes. Returned from TCWAITEVENT */
#define EV_RING 0x0001
#define EV_BREAK 0x0002
#define EV_CARRIER 0x0004
#define EV_CARRIERLOST 0x0008
/* for TIOCGWINSZ */
struct winsize {
unsigned short ws_row;
+4
View File
@@ -112,6 +112,9 @@ static const ioctl_info kIOCtls[] = {
IOCTL_INFO_ENTRY_TYPE(B_SOCKET_COUNT_ALIASES, struct ifreq *),
// termios ioctls
#define TCWAITEVENT (TCGETA + 4)
#define TCQUERYCONNECTED (TCGETA + 8)
#define TCVTIME (TCGETA + 14)
IOCTL_INFO_ENTRY(TCGETA),
IOCTL_INFO_ENTRY(TCSETA),
IOCTL_INFO_ENTRY(TCSETAF),
@@ -139,6 +142,7 @@ static const ioctl_info kIOCtls[] = {
IOCTL_INFO_ENTRY(TIOCOUTQ),
IOCTL_INFO_ENTRY(TIOCEXCL),
IOCTL_INFO_ENTRY(TIOCNXCL),
// private termios
IOCTL_INFO_ENTRY(B_IOCTL_GET_TTY_INDEX),
IOCTL_INFO_ENTRY(B_IOCTL_GRANT_TTY),