Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty(2) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty(1)

exec(2)

tty(7)

sttyV6(7)

termio(7)

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 sttyV6(7) and 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), sttyV6(7), termio(7). 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026