gtty(2) hpux man page | unix.com

Man Page: gtty

Operating Environment: hpux

Section: 2

stty(2) 							System Calls Manual							   stty(2)

NAME
stty(), gtty() - control terminal device (Bell Version 6 compatibility)
SYNOPSIS
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 and calls described in termio(7).
DESCRIPTION
For certain status settings and status inquiries about terminal devices, the functions and are equivalent to and respectively (see ioctl(2) and termio(7).
RETURN VALUE
and return the following values: Successful completion. Failure. is set to indicate the error.
ERRORS
If or fails, is set to one of the following values: [EBADF] is not a valid file descriptor. [EFAULT] points to an invalid address.
WARNINGS
Obsolescent Interfaces and are to be obsoleted at a future date.
SEE ALSO
stty(1), exec(2), ioctl(2), sttyV6(7), termio(7), tty(7). TO BE OBSOLETED stty(2)
Related Man Pages
gtty(2) - hpux
stty(2) - hpux
termio(7) - redhat
termio(7) - mojave
termio(7) - v7
Similar Topics in the Unix Linux Community
stty tcgetattr errors
stty: : Not a typewriter -- Help please
How to set stty row and columns of the terminal through C program
stty issues
Stty raw mode