.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)stty.3 6.3 (Berkeley) %G%
stty, gtty \- set and get terminal state (defunct)
These interfaces are obsoleted by ioctl(2).
They are available from the compatibility library, libcompat.
sets the state of the terminal associated with
retrieves the state of the terminal associated
To set the state of a terminal the call must have
call is actually ``ioctl(fd, TIOCSETP, buf)'', while
call is ``ioctl(fd, TIOCGETP, buf)''.
If the call is successful 0 is returned, otherwise \-1 is
returned and the global variable
contains the reason for the failure.