Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tcgetattr(3) — CLIX 3.1r7.6.22

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

tcsetattr(3)

termios(7)



  tcgetattr(3)                        CLIX                        tcgetattr(3)



  NAME

    tcgetattr - Gets the parameters associated with the terminal

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <termios.h>

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

  PARAMETERS

    file_des    Specifies an open file descriptor associated with a terminal.

    termios_p   Points to a termios structure.

  DESCRIPTION

    The tcgetattr() function gets the parameters associated with the terminal
    referred to by file_des and stores them in the termios structure
    referenced by termios_p.

  RETURN VALUES

    Upon successful completion, 0 is returned.  Otherwise, -1 is returned and
    the global variable errno is set to indicate the error.

  ERRORS

    The tcgetattr() function fails if one or more of the following errors it
    true:

    [EBADF]     The file_des parameter is not a valid file descriptor.

    [ENOTTY]    The file associated with file_des is not a terminal.

    [EFAULT]    The termios_p parameter is an invalid address.

    [EINTR]     A signal was caught during the tcgetattr() function.

    [EIO]       Some physical I/O error has occurred.

    [ENOLINK]   The file_des parameter is on a remote machine and the link to
                that machine is no longer active.




  2/94 - Intergraph Corporation                                              1






  tcgetattr(3)                        CLIX                        tcgetattr(3)



  RELATED INFORMATION

    Functions: tcsetattr(3)

    Files: termios(7)

















































  2                                              Intergraph Corporation - 2/94




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