TCGETA
#define TCSETA (TCGETA + 1)
#define TCSETAF (TCGETA + 2)
#define TCSETAW (TCGETA + 3)
#define TCSBRK (TCGETA + 5)
#define TCFLSH (TCGETA + 6)
#define TCXONC (TCGETA + 7)
#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 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 */
#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 */
#define TIOCGSID (TCGETA + 24) /* get session leader process group ID */
#define TIOCOUTQ (TCGETA + 25) /* get output queue size */
#define TIOCEXCL (TCGETA + 26) /* set exclusive use of tty */
#define TIOCNXCL (TCGETA + 27) /* clear exclusive use of tty */
#define B_IOCTL_GET_TTY_INDEX (TCGETA + 32) /* param is int32* */
#define B_IOCTL_GRANT_TTY (TCGETA + 33) /* no param (cf. grantpt()) */
if (op == TCGETA) {
case TCGETA:
if (ioctl(device->fd, TCGETA, &device->line_config,
if (ioctl(fHandle, TCGETA, &options) != B_OK) {
#define TCWAITEVENT (TCGETA + 4)
#define TCQUERYCONNECTED (TCGETA + 8)
#define TCVTIME (TCGETA + 14)
IOCTL_INFO_ENTRY(TCGETA),
# define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
# define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
# define GTTY(f,s) ioctl(f,TCGETA,(zvoid *)s)
return ioctl(fd, TCGETA, termios);
return _kern_ioctl(fd, TCGETA, &termios, sizeof(struct termios)) == B_OK;