1 /* source: xio-termios.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __xio_termios_h_included
6 #define __xio_termios_h_included 1
8 extern const struct optdesc opt_tiocsctty
;
10 extern const struct optdesc opt_brkint
;
11 extern const struct optdesc opt_icrnl
;
12 extern const struct optdesc opt_ignbrk
;
13 extern const struct optdesc opt_igncr
;
14 extern const struct optdesc opt_ignpar
;
15 extern const struct optdesc opt_imaxbel
;
16 extern const struct optdesc opt_inlcr
;
17 extern const struct optdesc opt_inpck
;
18 extern const struct optdesc opt_istrip
;
19 extern const struct optdesc opt_iuclc
;
20 extern const struct optdesc opt_ixany
;
21 extern const struct optdesc opt_ixoff
;
22 extern const struct optdesc opt_ixon
;
23 extern const struct optdesc opt_parmrk
;
24 extern const struct optdesc opt_cr0
;
25 extern const struct optdesc opt_cr1
;
26 extern const struct optdesc opt_cr2
;
27 extern const struct optdesc opt_cr3
;
28 extern const struct optdesc opt_crdly
;
29 extern const struct optdesc opt_nl0
;
30 extern const struct optdesc opt_nl1
;
31 extern const struct optdesc opt_nldly
;
32 extern const struct optdesc opt_ocrnl
;
33 extern const struct optdesc opt_ofdel
;
34 extern const struct optdesc opt_ofill
;
35 extern const struct optdesc opt_opost
;
36 extern const struct optdesc opt_olcuc
;
37 extern const struct optdesc opt_onlcr
;
38 extern const struct optdesc opt_onlret
;
39 extern const struct optdesc opt_onocr
;
40 extern const struct optdesc opt_tab0
;
41 extern const struct optdesc opt_tab1
;
42 extern const struct optdesc opt_tab2
;
43 extern const struct optdesc opt_tab3
;
44 extern const struct optdesc opt_xtabs
;
45 extern const struct optdesc opt_tabdly
;
46 extern const struct optdesc opt_bs0
;
47 extern const struct optdesc opt_bs1
;
48 extern const struct optdesc opt_bsdly
;
49 extern const struct optdesc opt_vt0
;
50 extern const struct optdesc opt_vt1
;
51 extern const struct optdesc opt_vtdly
;
52 extern const struct optdesc opt_ff0
;
53 extern const struct optdesc opt_ff1
;
54 extern const struct optdesc opt_ffdly
;
55 extern const struct optdesc opt_b0
;
56 extern const struct optdesc opt_b50
;
57 extern const struct optdesc opt_b75
;
58 extern const struct optdesc opt_b110
;
59 extern const struct optdesc opt_b134
;
60 extern const struct optdesc opt_b150
;
61 extern const struct optdesc opt_b200
;
62 extern const struct optdesc opt_b300
;
63 extern const struct optdesc opt_b600
;
64 extern const struct optdesc opt_b900
;
65 extern const struct optdesc opt_b1200
;
66 extern const struct optdesc opt_b1800
;
67 extern const struct optdesc opt_b2400
;
68 extern const struct optdesc opt_b3600
;
69 extern const struct optdesc opt_b4800
;
70 extern const struct optdesc opt_b7200
;
71 extern const struct optdesc opt_b9600
;
72 extern const struct optdesc opt_b19200
;
73 extern const struct optdesc opt_b38400
;
74 extern const struct optdesc opt_b57600
;
75 extern const struct optdesc opt_b115200
;
76 extern const struct optdesc opt_b230400
;
77 extern const struct optdesc opt_b460800
;
78 extern const struct optdesc opt_b500000
;
79 extern const struct optdesc opt_b576000
;
80 extern const struct optdesc opt_b921600
;
81 extern const struct optdesc opt_b1000000
;
82 extern const struct optdesc opt_b1152000
;
83 extern const struct optdesc opt_b1500000
;
84 extern const struct optdesc opt_b2000000
;
85 extern const struct optdesc opt_b2500000
;
86 extern const struct optdesc opt_b3000000
;
87 extern const struct optdesc opt_b3500000
;
88 extern const struct optdesc opt_b4000000
;
89 extern const struct optdesc opt_cs5
;
90 extern const struct optdesc opt_cs6
;
91 extern const struct optdesc opt_cs7
;
92 extern const struct optdesc opt_cs8
;
93 extern const struct optdesc opt_csize
;
94 extern const struct optdesc opt_cstopb
;
95 extern const struct optdesc opt_cread
;
96 extern const struct optdesc opt_parenb
;
97 extern const struct optdesc opt_parodd
;
98 extern const struct optdesc opt_hupcl
;
99 extern const struct optdesc opt_clocal
;
100 /*extern const struct optdesc opt_cibaud*/
101 extern const struct optdesc opt_crtscts
;
102 extern const struct optdesc opt_isig
;
103 extern const struct optdesc opt_icanon
;
104 extern const struct optdesc opt_xcase
;
105 extern const struct optdesc opt_echo
;
106 extern const struct optdesc opt_echoe
;
107 extern const struct optdesc opt_echok
;
108 extern const struct optdesc opt_echonl
;
109 extern const struct optdesc opt_echoctl
;
110 extern const struct optdesc opt_echoprt
;
111 extern const struct optdesc opt_echoke
;
112 extern const struct optdesc opt_flusho
;
113 extern const struct optdesc opt_noflsh
;
114 extern const struct optdesc opt_tostop
;
115 extern const struct optdesc opt_pendin
;
116 extern const struct optdesc opt_iexten
;
117 extern const struct optdesc opt_vintr
;
118 extern const struct optdesc opt_vquit
;
119 extern const struct optdesc opt_verase
;
120 extern const struct optdesc opt_vkill
;
121 extern const struct optdesc opt_veof
;
122 extern const struct optdesc opt_vtime
;
123 extern const struct optdesc opt_vmin
;
124 extern const struct optdesc opt_vswtc
;
125 extern const struct optdesc opt_vstart
;
126 extern const struct optdesc opt_vstop
;
127 extern const struct optdesc opt_vsusp
;
128 extern const struct optdesc opt_vdsusp
;
129 extern const struct optdesc opt_veol
;
130 extern const struct optdesc opt_vreprint
;
131 extern const struct optdesc opt_vdiscard
;
132 extern const struct optdesc opt_vwerase
;
133 extern const struct optdesc opt_vlnext
;
134 extern const struct optdesc opt_veol2
;
135 extern const struct optdesc opt_raw
;
136 extern const struct optdesc opt_sane
;
138 extern const struct optdesc opt_ispeed
;
139 extern const struct optdesc opt_ospeed
;
141 extern const struct optdesc opt_termios_rawer
;
142 extern const struct optdesc opt_termios_cfmakeraw
;
144 #if _WITH_TERMIOS /* otherwise tcflag_t might be reported undefined */
145 extern int xiotermios_setflag(int fd
, int word
, tcflag_t mask
);
146 extern int xiotermios_clrflag(int fd
, int word
, tcflag_t mask
);
147 extern int xiotermiosflag_applyopt(int fd
, struct opt
*opt
);
148 extern int xiotermios_value(int fd
, int word
, tcflag_t mask
, tcflag_t value
);
149 extern int xiotermios_char(int fd
, int n
, unsigned char c
);
150 #ifdef HAVE_TERMIOS_ISPEED
151 extern int xiotermios_speed(int fd
, int n
, speed_t speed
);
153 extern int xiotermios_spec(int fd
, int optcode
);
154 extern int xiotermios_flush(int fd
);
155 #endif /* _WITH_TERMIOS */
157 #endif /* !defined(__xio_termios_h_included) */