Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty(2) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty(1)

exec(2)

sttyV6(4)

termio(4)

STTY(2)

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;

HP-UX COMPATIBILITY

Level: Version 6 and PWB Compatibility - HP-UX/STANDARD

Origin: Version 6

Remarks: This system call is preserved for backward compatibility with Bell Version 6.  It provides as close an approximation as possible to the old Version 6 function.  All new code should use the TCSETA/TCGETA ioctl calls described in termio(4). Note that these calls are incompatible with the Version 7 calls of the same names.

Not supported on the Integral Personal Computer. 

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(4).

SEE ALSO

stty(1), exec(2), sttyV6(4), termio(4). 

DIAGNOSTICS

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. 

Hewlett-Packard  —  last mod. May 11, 2021

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