cfsetospeed()

set output baud rate 

Function


SYNOPSIS

#include <termios.h>

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


DESCRIPTION

The cfsetospeed() function sets the output baud rate in the termios structure referenced by *termios_p to speed. There is no effect on the baud rates set in the hardware until a subsequent successful call to tcsetattr().


PARAMETERS

termios_p 

Points to a termios structure.

speed 

Is the baud rate to be set.


RETURN VALUES

If successful, cfsetospeed() returns a value of zero. It returns -1 and sets errno to EFAULT if the termios_p refers to an invalid address.


CONFORMANCE

POSIX.1 (1996), with exceptions.


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

The NuTCRACKER Platform does not check the validity of speed.

The NuTCRACKER Platform does not supporting setting the baud rate to 0 (B0) for COM ports. Although such a call to cfsetospeed() succeeds, the subsequent call to tcsetattr() fails and sets errno to EINVAL.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

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

Miscellaneous:
struct termios


PTC MKS Toolkit 10.4 Documentation Build 39.