Print this page
cfsetspeed
@@ -47,11 +47,12 @@
.Dd January 20, 2019
.Dt CFSETISPEED 3C
.Os
.Sh NAME
.Nm cfsetispeed ,
-.Nm cfsetospeed
+.Nm cfsetospeed ,
+.Nm cfsetspeed
.Nd set input and output baud rate
.Sh SYNOPSIS
.In termios.h
.Ft int
.Fo cfsetispeed
@@ -61,10 +62,15 @@
.Ft int
.Fo cfsetospeed
.Fa "struct termios *termios_p"
.Fa "speed_t speed"
.Fc
+.Ft int
+.Fo cfsetspeed
+.Fa "struct termios *termios_p"
+.Fa "speed_t speed"
+.Fc
.Sh DESCRIPTION
The
.Fn cfsetispeed
function sets the input baud rate stored in the
structure pointed to by
@@ -78,10 +84,18 @@
structure pointed to by
.Fa termios_p
to
.Fa speed .
.Pp
+The
+.Fn cfsetspeed
+function sets both the input and output baud rate stored in the structure
+pointed to by
+.Fa termios_p
+to
+.Fa speed.
+.Pp
There is no effect on the baud rates set in the hardware until a subsequent
successful call to
.Xr tcsetattr 3C
on the same
.Vt termios