Print this page
cfsetspeed
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/cfsetispeed.3c
+++ new/usr/src/man/man3c/cfsetispeed.3c
1 1 .\"
2 2 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3 3 .\" permission to reproduce portions of its copyrighted documentation.
4 4 .\" Original documentation from The Open Group can be obtained online at
5 5 .\" http://www.opengroup.org/bookstore/.
6 6 .\"
7 7 .\" The Institute of Electrical and Electronics Engineers and The Open
8 8 .\" Group, have given us permission to reprint portions of their
9 9 .\" documentation.
10 10 .\"
11 11 .\" In the following statement, the phrase ``this text'' refers to portions
12 12 .\" of the system documentation.
13 13 .\"
14 14 .\" Portions of this text are reprinted and reproduced in electronic form
15 15 .\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16 16 .\" Standard for Information Technology -- Portable Operating System
17 17 .\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18 18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19 19 .\" Engineers, Inc and The Open Group. In the event of any discrepancy
20 20 .\" between these versions and the original IEEE and The Open Group
21 21 .\" Standard, the original IEEE and The Open Group Standard is the referee
22 22 .\" document. The original Standard can be obtained online at
23 23 .\" http://www.opengroup.org/unix/online.html.
24 24 .\"
25 25 .\" This notice shall appear on any product containing this material.
26 26 .\"
27 27 .\" The contents of this file are subject to the terms of the
28 28 .\" Common Development and Distribution License (the "License").
29 29 .\" You may not use this file except in compliance with the License.
30 30 .\"
31 31 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32 32 .\" or http://www.opensolaris.org/os/licensing.
33 33 .\" See the License for the specific language governing permissions
34 34 .\" and limitations under the License.
35 35 .\"
36 36 .\" When distributing Covered Code, include this CDDL HEADER in each
37 37 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38 38 .\" If applicable, add the following below this CDDL HEADER, with the
39 39 .\" fields enclosed by brackets "[]" replaced with your own identifying
40 40 .\" information: Portions Copyright [yyyy] [name of copyright owner]
41 41 .\"
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
42 42 .\"
43 43 .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
44 44 .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
45 45 .\" Copyright 2019, Joyent, Inc.
46 46 .\"
47 47 .Dd January 20, 2019
48 48 .Dt CFSETISPEED 3C
49 49 .Os
50 50 .Sh NAME
51 51 .Nm cfsetispeed ,
52 -.Nm cfsetospeed
52 +.Nm cfsetospeed ,
53 +.Nm cfsetspeed
53 54 .Nd set input and output baud rate
54 55 .Sh SYNOPSIS
55 56 .In termios.h
56 57 .Ft int
57 58 .Fo cfsetispeed
58 59 .Fa "struct termios *termios_p"
59 60 .Fa "speed_t speed"
60 61 .Fc
61 62 .Ft int
62 63 .Fo cfsetospeed
63 64 .Fa "struct termios *termios_p"
64 65 .Fa "speed_t speed"
65 66 .Fc
67 +.Ft int
68 +.Fo cfsetspeed
69 +.Fa "struct termios *termios_p"
70 +.Fa "speed_t speed"
71 +.Fc
66 72 .Sh DESCRIPTION
67 73 The
68 74 .Fn cfsetispeed
69 75 function sets the input baud rate stored in the
70 76 structure pointed to by
71 77 .Fa termios_p
72 78 to
73 79 .Fa speed .
74 80 .Pp
75 81 The
76 82 .Fn cfsetospeed
77 83 function sets the output baud rate stored in the
78 84 structure pointed to by
79 85 .Fa termios_p
80 86 to
81 87 .Fa speed .
82 88 .Pp
89 +The
90 +.Fn cfsetspeed
91 +function sets both the input and output baud rate stored in the structure
92 +pointed to by
93 +.Fa termios_p
94 +to
95 +.Fa speed.
96 +.Pp
83 97 There is no effect on the baud rates set in the hardware until a subsequent
84 98 successful call to
85 99 .Xr tcsetattr 3C
86 100 on the same
87 101 .Vt termios
88 102 structure.
89 103 .Sh RETURN VALUES
90 104 Upon successful completion,
91 105 .Fn cfsetispeed
92 106 and
93 107 .Fn cfsetospeed
94 108 return
95 109 .Sy 0 .
96 110 Otherwise
97 111 .Sy \(mi1
98 112 is returned, and
99 113 .Va errno
100 114 may be set to indicate the error.
101 115 .Sh ERRORS
102 116 The
103 117 .Fn cfsetispeed
104 118 and
105 119 .Fn cfsetospeed
106 120 functions may fail if:
107 121 .Bl -tag -width EINVAL
108 122 .It Er EINVAL
109 123 The
110 124 .Fa speed
111 125 value is not a valid baud rate.
112 126 .It Er EINVAL
113 127 The value of
114 128 .Fa speed
115 129 is outside the range of possible speed values as specified in
116 130 .In termios.h .
117 131 .El
118 132 .Sh INTERFACE STABILITY
119 133 Standard
120 134 .Sh MT-LEVEL
121 135 MT-Safe
122 136 .Pp
123 137 Async-Signal-Safe
124 138 .Sh SEE ALSO
125 139 .Xr cfgetispeed 3C ,
126 140 .Xr tcsetattr 3C ,
127 141 .Xr attributes 5 ,
128 142 .Xr standards 5 ,
129 143 .Xr termio 7I
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX