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

  man pages->OpenBSD man pages -> stty (3)              
Title
Content
Arch
Section
 

STTY(3)

Contents


NAME    [Toc]    [Back]

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

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  previous  reincarnation  of  the stty() function was in
Version 2 AT&T
     UNIX.  The stty() and  gtty()  functions  then  appeared  in
4.2BSD.

OpenBSD      3.6                           June      4,      1993
[ 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