Print this page
10271 Convert cf{get,set}ispeed.3C and cf{get,set}speed.3C to mandoc
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 -
4 -
5 3 NAME
6 - cfsetispeed, cfsetospeed - set input and output baud rate
4 + cfsetispeed, cfsetospeed - set input and output baud rate
7 5
8 6 SYNOPSIS
9 - #include <termios.h>
7 + #include <termios.h>
10 8
11 - int cfsetispeed(struct termios *termios_p, speed_t speed);
9 + int
10 + cfsetispeed(struct termios *termios_p, speed_t speed);
12 11
12 + int
13 + cfsetospeed(struct termios *termios_p, speed_t speed);
13 14
14 - int cfsetospeed(struct termios *termios_p, speed_t speed);
15 -
16 -
17 15 DESCRIPTION
18 - The cfsetispeed() function sets the input baud rate stored in the
19 - structure pointed to by termios_p to speed.
16 + The cfsetispeed() function sets the input baud rate stored in the
17 + structure pointed to by termios_p to speed.
20 18
19 + The cfsetospeed() function sets the output baud rate stored in the
20 + structure pointed to by termios_p to speed.
21 21
22 - The cfsetospeed() function sets the output baud rate stored in the
23 - structure pointed to by termios_p to speed.
22 + There is no effect on the baud rates set in the hardware until a
23 + subsequent successful call to tcsetattr(3C) on the same termios
24 + structure.
24 25
25 -
26 - There is no effect on the baud rates set in the hardware until a
27 - subsequent successful call to tcsetattr(3C) on the same termios
28 - structure.
29 -
30 26 RETURN VALUES
31 - Upon successful completion, cfsetispeed() and cfsetospeed() return 0.
32 - Otherwise -1 is returned, and errno may be set to indicate the error.
27 + Upon successful completion, cfsetispeed() and cfsetospeed() return 0.
28 + Otherwise -1 is returned, and errno may be set to indicate the error.
33 29
34 30 ERRORS
35 - The cfsetispeed() and cfsetospeed() functions may fail if:
31 + The cfsetispeed() and cfsetospeed() functions may fail if:
36 32
37 - EINVAL
38 - The speed value is not a valid baud rate.
33 + EINVAL The speed value is not a valid baud rate.
39 34
35 + EINVAL The value of speed is outside the range of possible speed values
36 + as specified in <termios.h>.
40 37
41 - EINVAL
42 - The value of speed is outside the range of possible speed
43 - values as specified in <termios.h>.
38 +INTERFACE STABILITY
39 + Standard
44 40
41 +MT-LEVEL
42 + MT-Safe
45 43
46 -ATTRIBUTES
47 - See attributes(5) for descriptions of the following attributes:
44 + Async-Signal-Safe
48 45
49 -
50 -
51 -
52 - +--------------------+--------------------------------+
53 - | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
54 - +--------------------+--------------------------------+
55 - |Interface Stability | Standard |
56 - +--------------------+--------------------------------+
57 - |MT-Level | MT-Safe, and Async-Signal-Safe |
58 - +--------------------+--------------------------------+
59 -
60 46 SEE ALSO
61 - cfgetispeed(3C), tcsetattr(3C), attributes(5), standards(5), termio(7I)
47 + cfgetispeed(3C), tcsetattr(3C), attributes(5), standards(5), termio(7I)
62 48
63 -
64 -
65 - July 24, 2002 CFSETISPEED(3C)
49 +illumos January 20, 2019 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX