HPUX gtty[2]






 stty(2)                                                             stty(2)





 NAME
      stty, gtty - control device

 SYNOPSIS
      #include <sgtty.h>

      int stty(int fildes, const struct sgttyb *argp);

      int gtty(int fildes, struct sgttyb *argp);

 REMARKS
      These system calls are preserved for backward compatibility with Bell
      Version 6.  They provide as close an approximation as possible to the
      old Version 6 functions.  All new code should use the TCSETA and
      TCGETA ioctl() calls described in termio(7).

 DESCRIPTION
      For certain status settings and status inquiries about terminal
      devices, the functions stty() and gtty() are equivalent to

           ioctl(fildes, TIOCSETP, argp)

      and

           ioctl(fildes, TIOCGETP, argp)

      respectively; see termio(7).

 RETURN VALUE
      stty() returns zero if the call was successful or -1 if the file
      descriptor does not refer to the kind of file for which it was
      intended.

 SEE ALSO
      stty(1), exec(2), sttyV6(7), tty(7), termio(7).



















 Hewlett-Packard Company            - 1 -     HP-UX Release 9.0: August 1992