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

NAME

6       termios - general terminal interface
7

SYNOPSIS

9       #include <termios.h>
10
11       int tcgetattr(int fildes, struct termios *termios_p);
12
13
14       int tcsetattr(int fildes, int optional_actions,
15            const struct termios *termios_p);
16
17
18       int tcsendbreak(int fildes, int duration);
19
20
21       int tcdrain(int fildes);
22
23
24       int tcflush(int fildes, int queue_selector);
25
26
27       int tcflow(int fildes, int action);
28
29
30       speed_t cfgetospeed(const struct termios *termios_p);
31
32
33       int cfsetospeed(struct termios *termios_p, speed_t speed);
34
35
36       speed_t cfgetispeed(const struct termios *termios_p);
37
38
39       int cfsetispeed(struct termios *termios_p, speed_t speed);
40
41
42       #include <sys/types.h>
43       #include <termios.h>
44
45       pid_t tcgetpgrp(int fildes);
46
47
48       int tcsetpgrp(int fildes, pid_t pgid);
49
50
51       pid_t tcgetsid(int fildes);
52
53

DESCRIPTION

55       These  functions  describe a general terminal interface for controlling
56       asynchronous communications ports. A more detailed overview of the ter‐
57       minal  interface  can  be  found in termio(7I), which also describes an
58       ioctl(2) interface that provides the same functionality.  However,  the
59       function  interface  described by these functions is the preferred user
60       interface.
61
62
63       Each of these functions is now described on a separate manual page.
64

SEE ALSO

66       ioctl(2),  cfgetispeed(3C),  cfgetospeed(3C),  cfsetispeed(3C),   cfse‐
67       tospeed(3C),   tcdrain(3C),   tcflow(3C),  tcflush(3C),  tcgetattr(3C),
68       tcgetpgrp(3C), tcgetsid(3C),  tcsendbreak(3C),  tcsetattr(3C),  tcgetp‐
69       grp(3C), tcsendbreak(3C), termio(7I)
70
71
72
73SunOS 5.11                        5 Apr 1996                       termios(3C)
Impressum