STTY(2) — HP-UX
NAME
stty, gtty − control device
SYNOPSIS
#include <sgtty.h>
stty(fildes,argp)
int fildes;
struct sgttyb *argp;
gtty(fildes,argp)
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/TCGETA ioctl calls described in termio(7).
DESCRIPTION
For certain status setting and status inquiries about terminal devices, the functions stty and gtty are equivalent to
ioctl(fildes, TIOCSETP, argp)
ioctl(fildes, TIOCGETP, argp)
respectively; see termio(7).
RETURNS
Zero is returned if the call was successful; -1 if the file descriptor does not refer to the kind of file for which it was intended.
SEE ALSO
stty(1), exec(2), tty(7), termio(7).
Hewlett-Packard Company — Version B.1, May 11, 2021