1STTY(3C)                                                              STTY(3C)
2
3
4

NAME

6       stty, gtty - set and get terminal state (defunct)
7

SYNOPSIS

9       #include <sgtty.h>
10
11       stty(fd, buf)
12       int fd;
13       struct sgttyb *buf;
14
15       gtty(fd, buf)
16       int fd;
17       struct sgttyb *buf;
18

DESCRIPTION

20       This interface is obsoleted by ioctl(2).
21
22       Stty sets the state of the terminal associated with fd.  Gtty retrieves
23       the state of the terminal associated with fd.  To set the  state  of  a
24       terminal the call must have write permission.
25
26       The  stty call is actually ``ioctl(fd, TIOCSETP, buf)'', while the gtty
27       call is ``ioctl(fd, TIOCGETP, buf)''.  See ioctl(2) and tty(4)  for  an
28       explanation.
29

DIAGNOSTICS

31       If  the  call is successful 0 is returned, otherwise -1 is returned and
32       the global variable errno contains the reason for the failure.
33

SEE ALSO

35       ioctl(2), tty(4)
36
37
38
394.2 Berkeley Distribution        May 15, 1985                         STTY(3C)
Impressum