4.3BSD-Reno/share/man/cat3/gtty.0

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




STTY(3C)		      1989			 STTY(3C)



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

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

     ssttttyy((ffdd,, bbuuff))
     iinntt ffdd;;
     ssttrruucctt ssggttttyybb **bbuuff;;

     ggttttyy((ffdd,, bbuuff))
     iinntt ffdd;;
     ssttrruucctt ssggttttyybb **bbuuff;;

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

     _S_t_t_y sets the state of the terminal associated with _f_d.
     _G_t_t_y retrieves the state of the terminal associated with _f_d.
     To set the state of a terminal the call must have write per-
     mission.

     The _s_t_t_y call is actually ``ioctl(fd, TIOCSETP, buf)'',
     while the _g_t_t_y call is ``ioctl(fd, TIOCGETP, buf)''.  See
     _i_o_c_t_l(2) and _t_t_y(4) for an explanation.

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)




















Printed 7/27/90                May				1