Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tcgetattr(3) — sys5 — Apollo Domain/OS SR10.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

tcsetattr(3)

cfgetispeed(3)

cfgetospeed(3)

cfsetispeed(3)

cfsetospeed(3)

termios(7)

TCGETATTR(3)                         SysV                         TCGETATTR(3)



NAME
     tcgetattr - get the attributes associated with the terminal

SYNOPSIS
     #include <termios.h>

     int tcgetattr (filedes, termios_p)
     int filedes;
     struct termios *termios_p;

DESCRIPTION
     The tcgetattr function gets the attributes associated with the object
     referenced by the filedes argument and stores them in the termios
     structure referenced by the termios_p argument.

     The filedes argument specifies an open file descriptor associated with a
     terminal and the termios_p argument points to a termios structure.

     The tcgetattr function may be called from any process.

DIAGNOSTICS
     Upon successful completion, 0 (zero) is returned. Otherwise, -1 is
     returned and errno is set to indicate the error.

ERRORS
     If the tcgetattr() function fails, errno will be set to one of the
     following values:

     [EBADF]   The filedes argument is not a valid file descriptor.

     [ENOTTY]  The file associated with the filedes argument is not a
               terminal.

SEE ALSO
     tcsetattr(3), cfgetispeed(3), cfgetospeed(3), cfsetispeed(3),
     cfsetospeed(3), termios(7)

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