4.4BSD/usr/share/man/cat3/stty.0

Compare this file to the similar file:
Show the results in this format:

STTY(3)                     BSD Programmer's Manual                    STTY(3)

NNAAMMEE
     ssttttyy, ggttttyy - set and get terminal state (defunct)

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssggttttyy..hh>>

     ssttttyy(_i_n_t _f_d, _s_t_r_u_c_t _s_g_t_t_y_b _*_b_u_f);

     ggttttyy(_i_n_t _f_d, _s_t_r_u_c_t _s_g_t_t_y_b _*_b_u_f);

DDEESSCCRRIIPPTTIIOONN
     TThheessee iinntteerrffaacceess aarree oobbssoolleetteedd bbyy iiooccttll((22))..  TThheeyy aarree aavvaaiillaabbllee ffrroomm tthhee
     ccoommppaattiibbiilliittyy lliibbrraarryy,, lliibbccoommppaatt..

     The ssttttyy() function sets the state of the terminal associated with _f_d.
     The ggttttyy() function retrieves the state of the terminal associated with
     _f_d. To set the state of a terminal the call must have write permission.

     The ssttttyy() call is actually `ioctl(fd, TIOCSETP, buf)', while the ggttttyy()
     call is `ioctl(fd, TIOCGETP, buf)'. See ioctl(2) and tty(4) for an expla-
     nation.

DDIIAAGGNNOOSSTTIICCSS
     If the call is successful 0 is returned, otherwise -1 is returned and the
     global variable _e_r_r_n_o contains the reason for the failure.

SSEEEE AALLSSOO
     ioctl(2),  tty(4)

HHIISSTTOORRYY
     The ssttttyy() and ggttttyy() functions appeared in 4.2BSD.

4.2 Berkeley Distribution        June 4, 1993                                1