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
11

NAME

13       cfsetispeed — set input baud rate
14

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

45       None.
46

APPLICATION USAGE

48       None.
49

RATIONALE

51       Refer to cfgetispeed().
52

FUTURE DIRECTIONS

54       None.
55

SEE ALSO

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