Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cfsetospeed(3) — CLIX 3.1r7.6.22

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cfgetispeed(3)

cfgetospeed(3)

cfsetispeed(3)

tcsetattr(3)

termios(7)



  cfsetospeed(3)                      CLIX                      cfsetospeed(3)



  NAME

    cfsetospeed - Sets the output baud rate

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <termios.h>

    int cfsetospeed(
      struct termios *termios ,
      speed_t speed );

  PARAMETERS

    termios_p   Points to a termios structure.

    speed       The baud rate value being set.

  DESCRIPTION

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

    The 0 baud rate, B0, is used to terminate the connection.  If B0 is
    specified, the modem control lines will no longer be asserted.  Normally,
    this disconnects the line.

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

  RETURN VALUES

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

  RELATED INFORMATION

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

    Files:  termios(7)









  2/94 - Intergraph Corporation                                              1




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