1CFSETISPEED(P) POSIX Programmer's Manual CFSETISPEED(P)
2
3
4
6 cfsetispeed - set input baud rate
7
9 #include <termios.h>
10
11 int cfsetispeed(struct termios *termios_p, speed_t speed);
12
13
15 The cfsetispeed() function shall set the input baud rate stored in the
16 structure pointed to by termios_p to speed.
17
18 There shall be no effect on the baud rates set in the hardware until a
19 subsequent successful call to tcsetattr() with the same termios struc‐
20 ture. Similarly, errors resulting from attempts to set baud rates not
21 supported by the terminal device need not be detected until the tcse‐
22 tattr() function is called.
23
25 Upon successful completion, cfsetispeed() shall return 0; otherwise, -1
26 shall be returned, and errno may be set to indicate the error.
27
29 The cfsetispeed() function may fail if:
30
31 EINVAL The speed value is not a valid baud rate.
32
33 EINVAL The value of speed is outside the range of possible speed values
34 as specified in <termios.h>.
35
36
37 The following sections are informative.
38
40 None.
41
43 None.
44
46 Refer to cfgetispeed() .
47
49 None.
50
52 cfgetispeed() , cfgetospeed() , cfsetospeed() , tcsetattr() , the Base
53 Definitions volume of IEEE Std 1003.1-2001, Chapter 11, General Termi‐
54 nal Interface, <termios.h>
55
57 Portions of this text are reprinted and reproduced in electronic form
58 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
59 -- Portable Operating System Interface (POSIX), The Open Group Base
60 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
61 Electrical and Electronics Engineers, Inc and The Open Group. In the
62 event of any discrepancy between this version and the original IEEE and
63 The Open Group Standard, the original IEEE and The Open Group Standard
64 is the referee document. The original Standard can be obtained online
65 at http://www.opengroup.org/unix/online.html .
66
67
68
69IEEE/The Open Group 2003 CFSETISPEED(P)