Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cfgetispeed(3)

cfgetospeed(3)

cfsetispeed(3)

tcsetattr(3)

termios(4)

cfsetospeed(3)  —  Subroutines

OSF

NAME

cfsetospeed  − Sets output baud rate for a terminal

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <termios.h>
int cfsetospeed (
    struct termios ∗termios_p,
    speed_t speed );

PARAMETERS

termios_pPoints to a termios structure containing the output baud rate. 

speedSpecifies the new output baud rate. 

DESCRIPTION

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

The zero baud rate, B0, is used to terminate the connection. If B0 is specified, the modem control lines are no longer 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 to the tcsetattr() function on the same termios structure. 

NOTES

AES Support Level:
Full use

RETURN VALUES

The cfsetospeed() function returns 0 (zero). 

RELATED INFORMATION

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

Files: termios(4)

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