1CFSETISPEED(3P)            POSIX Programmer's Manual           CFSETISPEED(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       cfsetispeed — set input baud rate
13

SYNOPSIS

15       #include <termios.h>
16
17       int cfsetispeed(struct termios *termios_p, speed_t speed);
18

DESCRIPTION

20       The cfsetispeed() function shall set the input baud rate stored in  the
21       structure pointed to by termios_p to speed.
22
23       There  shall be no effect on the baud rates set in the hardware until a
24       subsequent successful call to tcsetattr() with the same termios  struc‐
25       ture.  Similarly,  errors resulting from attempts to set baud rates not
26       supported by the terminal device need not be detected until  the  tcse‐
27       tattr() function is called.
28

RETURN VALUE

30       Upon successful completion, cfsetispeed() shall return 0; otherwise, -1
31       shall be returned, and errno may be set to indicate the error.
32

ERRORS

34       The cfsetispeed() function may fail if:
35
36       EINVAL The speed value is not a valid baud rate.
37
38       EINVAL The value of speed is outside the range of possible speed values
39              as specified in <termios.h>.
40
41       The following sections are informative.
42

EXAMPLES

44       None.
45

APPLICATION USAGE

47       None.
48

RATIONALE

50       Refer to cfgetispeed().
51

FUTURE DIRECTIONS

53       None.
54

SEE ALSO

56       cfgetispeed(), cfgetospeed(), cfsetospeed(), tcsetattr()
57
58       The Base Definitions volume of POSIX.1‐2017, Chapter 11, General Termi‐
59       nal Interface, <termios.h>
60
62       Portions of this text are reprinted and reproduced in  electronic  form
63       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
64       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
65       cations  Issue  7, 2018 Edition, Copyright (C) 2018 by the Institute of
66       Electrical and Electronics Engineers, Inc and The Open Group.   In  the
67       event of any discrepancy between this version and the original IEEE and
68       The Open Group Standard, the original IEEE and The Open Group  Standard
69       is  the  referee document. The original Standard can be obtained online
70       at http://www.opengroup.org/unix/online.html .
71
72       Any typographical or formatting errors that appear  in  this  page  are
73       most likely to have been introduced during the conversion of the source
74       files to man page format. To report such errors,  see  https://www.ker
75       nel.org/doc/man-pages/reporting_bugs.html .
76
77
78
79IEEE/The Open Group                  2017                      CFSETISPEED(3P)
Impressum