Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cfgetispeed(3)

cfgetospeed(3)

cfsetospeed(3)

tcsetattr(3)

termios(7)



  cfsetispeed(3)                      CLIX                      cfsetispeed(3)



  NAME

    cfsetispeed - Sets the input baud rate

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <termios.h>

    int cfsetispeed(
      struct terminos *termios_p ,
      speed_t speed );

  PARAMETERS

    termios_p   Points to a termios structure.

    speed       The baud rate value being set.

  DESCRIPTION

    The cfsetispeed() function sets the input baud rate stored in the
    structure pointed to by termios_p to speed.

    If the input baud rate is set to 0, the input baud rate is specified by
    the value of the output baud rate.

    There is no effect on the baud rates set in the hardware until a
    subsequent successful call is made to the tcsetattr() function on the same
    termios structure.

  RETURN VALUES

    The cfsetispeed() function returns 0 on success.  A -1 is returned on
    attempt to set unsupported baud rates.

  RELATED INFORMATION

    Functions:  cfgetispeed(3), cfgetospeed(3), cfsetospeed(3), tcsetattr(3)

    Files:  termios(7)










  2/94 - Intergraph Corporation                                              1




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