*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> gtty (3)              
Title
Content
Arch
Section
 

STTY(3)

Contents


NAME    [Toc]    [Back]

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

LIBRARY    [Toc]    [Back]

     Compatibility Library (libcompat, -lcompat)

SYNOPSIS    [Toc]    [Back]

     #include <sgtty.h>

     stty(int fd, struct sgttyb *buf);

     gtty(int fd, struct sgttyb *buf);

DESCRIPTION    [Toc]    [Back]

     These interfaces are obsoleted by ioctl(2).  They are available from the
     compatibility library, libcompat.

     The stty() function sets the state of the terminal associated with fd.
     The gtty() function retrieves the state of the terminal associated with
     fd.  To set the state of a terminal the call must have write permission.

     The stty() call is actually `ioctl(fd, TIOCSETP, buf)', while the gtty()
     call is `ioctl(fd, TIOCGETP, buf)'.  See ioctl(2) and tty(4) for an
     explanation.

DIAGNOSTICS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
     ioctl(2), tty(4)

HISTORY    [Toc]    [Back]

     The stty() and gtty() functions appeared in 4.2BSD.

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
stty Tru64 set and get terminal state
gtty Tru64 set and get terminal state
tsm.info HP-UX get Terminal Session Manager state information
mbsinit NetBSD determines whether the state object is initial state
termios Linux get and set terminal attributes, line control, get and set baud rate, get and set terminal foregroun...
ct HP-UX spawn getty to a remote terminal (call terminal)
wsconsctl OpenBSD get or set wscons state
wsconsctl OpenBSD get or set wscons state
wsconsctl OpenBSD get or set wscons state
SSL_state Tru64 Get a description of an SSL state
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service