1cfgetispeed(3C)          Standard C Library Functions          cfgetispeed(3C)
2
3
4

NAME

6       cfgetispeed, cfgetospeed - get input and output baud rate
7

SYNOPSIS

9       #include <termios.h>
10
11       speed_t cfgetispeed(const struct termios *termios_p);
12
13
14       speed_t cfgetospeed(const struct termios *termios_p);
15
16

DESCRIPTION

18       The  cfgetispeed()  function  extracts  the  input  baud  rate from the
19       termios structure to which the termios_p argument points.
20
21
22       The cfgetospeed() function extracts  the  output  baud  rate  from  the
23       termios structure to which the termios_p argument points.
24
25
26       These  functions  returns  exactly the value in the termios data struc‐
27       ture, without interpretation.
28

RETURN VALUES

30       Upon successful completion,  cfgetispeed()  returns  a  value  of  type
31       speed_t representing the input baud rate.
32
33
34       Upon  successful  completion,  cfgetospeed()  returns  a  value of type
35       speed_t representing the output baud rate.
36

ERRORS

38       No errors are defined.
39

ATTRIBUTES

41       See attributes(5) for descriptions of the following attributes:
42
43
44
45
46       ┌─────────────────────────────┬───────────────────────────────┐
47       │      ATTRIBUTE TYPE         │       ATTRIBUTE VALUE         │
48       ├─────────────────────────────┼───────────────────────────────┤
49       │Interface Stability          │Standard                       │
50       ├─────────────────────────────┼───────────────────────────────┤
51       │MT-Level                     │MT-Safe, and Async-Signal-Safe │
52       └─────────────────────────────┴───────────────────────────────┘
53

SEE ALSO

55       cfgetospeed(3C), tcgetattr(3C), attributes(5), standards(5), termio(7I)
56
57
58
59SunOS 5.11                        24 Jul 2002                  cfgetispeed(3C)
Impressum