cfsetispeed()

set input baud rate 

Function


SYNOPSIS

#include <termios.h>

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


DESCRIPTION

The cfsetispeed() function sets the input baud rate in the termios structure referenced by *termios_p to speed. If the input baud rate is set to zero, the value of the output baud rate specifies the input baud rate. 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, cfsetispeed() 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.


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(), cfsetospeed(), tcsetattr()

Miscellaneous:
struct termios


PTC MKS Toolkit 10.4 Documentation Build 39.