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

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

stty(3)

Contents


NAME    [Toc]    [Back]

       stty, gtty - set and get terminal state

SYNOPSIS    [Toc]    [Back]

       #include <sgtty.h>

       stty(
               int fd,
               struct sgttyb *buf ); gtty(
               int fd,
               struct sgttyb *buf );

DESCRIPTION    [Toc]    [Back]

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

       Calls to these subroutines, supported only to  ensure  BSD
       binary  compatibility, have been superseded by the ioctl()
       system call. The stty() call is implemented  as  ioctl(fd,
       TIOCSETP,  buf),  and  the  gtty()  call is implemented as
       ioctl(fd, TIOCGETP, buf). See ioctl(2) and tty(7) for more
       information.

RETURN VALUES    [Toc]    [Back]

       If the call is successful, zero is returned; otherwise, -1
       is returned and the global variable  errno  indicates  the
       reason for the failure.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: ioctl(2)

       Files: tty(7)



                                                          stty(3)
[ Back ]
 Similar pages
Name OS Title
gtty OpenBSD set and get terminal state (defunct)
gtty NetBSD set and get terminal state (defunct)
stty NetBSD set and get terminal state (defunct)
gtty FreeBSD set and get terminal state (defunct)
stty FreeBSD set and get terminal state (defunct)
stty OpenBSD set and get terminal state (defunct)
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)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service