Print this page
cfsetspeed
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/cfsetispeed.3c.man.txt
+++ new/usr/src/man/man3c/cfsetispeed.3c.man.txt
1 1 CFSETISPEED(3C) Standard C Library Functions CFSETISPEED(3C)
2 2
3 3 NAME
4 - cfsetispeed, cfsetospeed - set input and output baud rate
4 + cfsetispeed, cfsetospeed, cfsetspeed - set input and output baud rate
5 5
6 6 SYNOPSIS
7 7 #include <termios.h>
8 8
9 9 int
10 10 cfsetispeed(struct termios *termios_p, speed_t speed);
11 11
12 12 int
13 13 cfsetospeed(struct termios *termios_p, speed_t speed);
14 14
15 + int
16 + cfsetspeed(struct termios *termios_p, speed_t speed);
17 +
15 18 DESCRIPTION
16 19 The cfsetispeed() function sets the input baud rate stored in the
17 20 structure pointed to by termios_p to speed.
18 21
19 22 The cfsetospeed() function sets the output baud rate stored in the
20 23 structure pointed to by termios_p to speed.
21 24
25 + The cfsetspeed() function sets both the input and output baud rate stored
26 + in the structure pointed to by termios_p to speed.
27 +
22 28 There is no effect on the baud rates set in the hardware until a
23 29 subsequent successful call to tcsetattr(3C) on the same termios
24 30 structure.
25 31
26 32 RETURN VALUES
27 33 Upon successful completion, cfsetispeed() and cfsetospeed() return 0.
28 34 Otherwise -1 is returned, and errno may be set to indicate the error.
29 35
30 36 ERRORS
31 37 The cfsetispeed() and cfsetospeed() functions may fail if:
32 38
33 39 EINVAL The speed value is not a valid baud rate.
34 40
35 41 EINVAL The value of speed is outside the range of possible speed values
36 42 as specified in <termios.h>.
37 43
38 44 INTERFACE STABILITY
39 45 Standard
40 46
41 47 MT-LEVEL
42 48 MT-Safe
43 49
44 50 Async-Signal-Safe
45 51
46 52 SEE ALSO
47 53 cfgetispeed(3C), tcsetattr(3C), attributes(5), standards(5), termio(7I)
48 54
49 55 illumos January 20, 2019 illumos
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX