1b8a62b91Sopenharmony_ci//! Terminal I/O stream operations.
2b8a62b91Sopenharmony_ci
3b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))]
4b8a62b91Sopenharmony_cimod cf;
5b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))]
6b8a62b91Sopenharmony_cimod constants;
7b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))]
8b8a62b91Sopenharmony_cimod tc;
9b8a62b91Sopenharmony_ci#[cfg(not(windows))]
10b8a62b91Sopenharmony_cimod tty;
11b8a62b91Sopenharmony_ci
12b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))]
13b8a62b91Sopenharmony_cipub use cf::{cfgetispeed, cfgetospeed, cfmakeraw, cfsetispeed, cfsetospeed, cfsetspeed};
14b8a62b91Sopenharmony_ci#[cfg(not(any(
15b8a62b91Sopenharmony_ci    target_os = "dragonfly",
16b8a62b91Sopenharmony_ci    target_os = "freebsd",
17b8a62b91Sopenharmony_ci    target_os = "haiku",
18b8a62b91Sopenharmony_ci    target_os = "ios",
19b8a62b91Sopenharmony_ci    target_os = "macos",
20b8a62b91Sopenharmony_ci    target_os = "netbsd",
21b8a62b91Sopenharmony_ci    target_os = "openbsd",
22b8a62b91Sopenharmony_ci    target_os = "solaris",
23b8a62b91Sopenharmony_ci    target_os = "wasi",
24b8a62b91Sopenharmony_ci)))]
25b8a62b91Sopenharmony_cipub use constants::B1000000;
26b8a62b91Sopenharmony_ci#[cfg(not(any(
27b8a62b91Sopenharmony_ci    target_os = "dragonfly",
28b8a62b91Sopenharmony_ci    target_os = "freebsd",
29b8a62b91Sopenharmony_ci    target_os = "haiku",
30b8a62b91Sopenharmony_ci    target_os = "ios",
31b8a62b91Sopenharmony_ci    target_os = "macos",
32b8a62b91Sopenharmony_ci    target_os = "netbsd",
33b8a62b91Sopenharmony_ci    target_os = "openbsd",
34b8a62b91Sopenharmony_ci    target_os = "solaris",
35b8a62b91Sopenharmony_ci    target_os = "wasi",
36b8a62b91Sopenharmony_ci)))]
37b8a62b91Sopenharmony_cipub use constants::B1152000;
38b8a62b91Sopenharmony_ci#[cfg(not(any(
39b8a62b91Sopenharmony_ci    target_os = "dragonfly",
40b8a62b91Sopenharmony_ci    target_os = "freebsd",
41b8a62b91Sopenharmony_ci    target_os = "haiku",
42b8a62b91Sopenharmony_ci    target_os = "ios",
43b8a62b91Sopenharmony_ci    target_os = "macos",
44b8a62b91Sopenharmony_ci    target_os = "netbsd",
45b8a62b91Sopenharmony_ci    target_os = "openbsd",
46b8a62b91Sopenharmony_ci    target_os = "solaris",
47b8a62b91Sopenharmony_ci    target_os = "wasi",
48b8a62b91Sopenharmony_ci)))]
49b8a62b91Sopenharmony_cipub use constants::B1500000;
50b8a62b91Sopenharmony_ci#[cfg(not(any(
51b8a62b91Sopenharmony_ci    target_os = "dragonfly",
52b8a62b91Sopenharmony_ci    target_os = "freebsd",
53b8a62b91Sopenharmony_ci    target_os = "haiku",
54b8a62b91Sopenharmony_ci    target_os = "ios",
55b8a62b91Sopenharmony_ci    target_os = "macos",
56b8a62b91Sopenharmony_ci    target_os = "netbsd",
57b8a62b91Sopenharmony_ci    target_os = "openbsd",
58b8a62b91Sopenharmony_ci    target_os = "solaris",
59b8a62b91Sopenharmony_ci    target_os = "wasi",
60b8a62b91Sopenharmony_ci)))]
61b8a62b91Sopenharmony_cipub use constants::B2000000;
62b8a62b91Sopenharmony_ci#[cfg(not(any(
63b8a62b91Sopenharmony_ci    target_arch = "sparc",
64b8a62b91Sopenharmony_ci    target_arch = "sparc64",
65b8a62b91Sopenharmony_ci    target_os = "dragonfly",
66b8a62b91Sopenharmony_ci    target_os = "freebsd",
67b8a62b91Sopenharmony_ci    target_os = "haiku",
68b8a62b91Sopenharmony_ci    target_os = "ios",
69b8a62b91Sopenharmony_ci    target_os = "macos",
70b8a62b91Sopenharmony_ci    target_os = "netbsd",
71b8a62b91Sopenharmony_ci    target_os = "openbsd",
72b8a62b91Sopenharmony_ci    target_os = "solaris",
73b8a62b91Sopenharmony_ci    target_os = "wasi",
74b8a62b91Sopenharmony_ci)))]
75b8a62b91Sopenharmony_cipub use constants::B2500000;
76b8a62b91Sopenharmony_ci#[cfg(not(any(
77b8a62b91Sopenharmony_ci    target_arch = "sparc",
78b8a62b91Sopenharmony_ci    target_arch = "sparc64",
79b8a62b91Sopenharmony_ci    target_os = "dragonfly",
80b8a62b91Sopenharmony_ci    target_os = "freebsd",
81b8a62b91Sopenharmony_ci    target_os = "haiku",
82b8a62b91Sopenharmony_ci    target_os = "ios",
83b8a62b91Sopenharmony_ci    target_os = "macos",
84b8a62b91Sopenharmony_ci    target_os = "netbsd",
85b8a62b91Sopenharmony_ci    target_os = "openbsd",
86b8a62b91Sopenharmony_ci    target_os = "solaris",
87b8a62b91Sopenharmony_ci    target_os = "wasi",
88b8a62b91Sopenharmony_ci)))]
89b8a62b91Sopenharmony_cipub use constants::B3000000;
90b8a62b91Sopenharmony_ci#[cfg(not(any(
91b8a62b91Sopenharmony_ci    target_arch = "sparc",
92b8a62b91Sopenharmony_ci    target_arch = "sparc64",
93b8a62b91Sopenharmony_ci    target_os = "dragonfly",
94b8a62b91Sopenharmony_ci    target_os = "freebsd",
95b8a62b91Sopenharmony_ci    target_os = "haiku",
96b8a62b91Sopenharmony_ci    target_os = "ios",
97b8a62b91Sopenharmony_ci    target_os = "macos",
98b8a62b91Sopenharmony_ci    target_os = "netbsd",
99b8a62b91Sopenharmony_ci    target_os = "openbsd",
100b8a62b91Sopenharmony_ci    target_os = "solaris",
101b8a62b91Sopenharmony_ci    target_os = "wasi",
102b8a62b91Sopenharmony_ci)))]
103b8a62b91Sopenharmony_cipub use constants::B3500000;
104b8a62b91Sopenharmony_ci#[cfg(not(any(
105b8a62b91Sopenharmony_ci    target_arch = "sparc",
106b8a62b91Sopenharmony_ci    target_arch = "sparc64",
107b8a62b91Sopenharmony_ci    target_os = "dragonfly",
108b8a62b91Sopenharmony_ci    target_os = "freebsd",
109b8a62b91Sopenharmony_ci    target_os = "haiku",
110b8a62b91Sopenharmony_ci    target_os = "ios",
111b8a62b91Sopenharmony_ci    target_os = "macos",
112b8a62b91Sopenharmony_ci    target_os = "netbsd",
113b8a62b91Sopenharmony_ci    target_os = "openbsd",
114b8a62b91Sopenharmony_ci    target_os = "solaris",
115b8a62b91Sopenharmony_ci    target_os = "wasi",
116b8a62b91Sopenharmony_ci)))]
117b8a62b91Sopenharmony_cipub use constants::B4000000;
118b8a62b91Sopenharmony_ci#[cfg(not(any(
119b8a62b91Sopenharmony_ci    target_os = "dragonfly",
120b8a62b91Sopenharmony_ci    target_os = "haiku",
121b8a62b91Sopenharmony_ci    target_os = "ios",
122b8a62b91Sopenharmony_ci    target_os = "macos",
123b8a62b91Sopenharmony_ci    target_os = "openbsd",
124b8a62b91Sopenharmony_ci    target_os = "wasi",
125b8a62b91Sopenharmony_ci)))]
126b8a62b91Sopenharmony_cipub use constants::B460800;
127b8a62b91Sopenharmony_ci#[cfg(not(any(
128b8a62b91Sopenharmony_ci    target_os = "dragonfly",
129b8a62b91Sopenharmony_ci    target_os = "freebsd",
130b8a62b91Sopenharmony_ci    target_os = "haiku",
131b8a62b91Sopenharmony_ci    target_os = "illumos",
132b8a62b91Sopenharmony_ci    target_os = "ios",
133b8a62b91Sopenharmony_ci    target_os = "macos",
134b8a62b91Sopenharmony_ci    target_os = "netbsd",
135b8a62b91Sopenharmony_ci    target_os = "openbsd",
136b8a62b91Sopenharmony_ci    target_os = "solaris",
137b8a62b91Sopenharmony_ci    target_os = "wasi",
138b8a62b91Sopenharmony_ci)))]
139b8a62b91Sopenharmony_cipub use constants::B500000;
140b8a62b91Sopenharmony_ci#[cfg(not(any(
141b8a62b91Sopenharmony_ci    target_os = "dragonfly",
142b8a62b91Sopenharmony_ci    target_os = "freebsd",
143b8a62b91Sopenharmony_ci    target_os = "haiku",
144b8a62b91Sopenharmony_ci    target_os = "illumos",
145b8a62b91Sopenharmony_ci    target_os = "ios",
146b8a62b91Sopenharmony_ci    target_os = "macos",
147b8a62b91Sopenharmony_ci    target_os = "netbsd",
148b8a62b91Sopenharmony_ci    target_os = "openbsd",
149b8a62b91Sopenharmony_ci    target_os = "solaris",
150b8a62b91Sopenharmony_ci    target_os = "wasi",
151b8a62b91Sopenharmony_ci)))]
152b8a62b91Sopenharmony_cipub use constants::B576000;
153b8a62b91Sopenharmony_ci#[cfg(not(any(
154b8a62b91Sopenharmony_ci    target_os = "dragonfly",
155b8a62b91Sopenharmony_ci    target_os = "haiku",
156b8a62b91Sopenharmony_ci    target_os = "ios",
157b8a62b91Sopenharmony_ci    target_os = "macos",
158b8a62b91Sopenharmony_ci    target_os = "openbsd",
159b8a62b91Sopenharmony_ci    target_os = "wasi",
160b8a62b91Sopenharmony_ci)))]
161b8a62b91Sopenharmony_cipub use constants::B921600;
162b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
163b8a62b91Sopenharmony_cipub use constants::BRKINT;
164b8a62b91Sopenharmony_ci#[cfg(not(any(
165b8a62b91Sopenharmony_ci    target_os = "dragonfly",
166b8a62b91Sopenharmony_ci    target_os = "freebsd",
167b8a62b91Sopenharmony_ci    target_os = "fuchsia",
168b8a62b91Sopenharmony_ci    target_os = "illumos",
169b8a62b91Sopenharmony_ci    target_os = "ios",
170b8a62b91Sopenharmony_ci    target_os = "macos",
171b8a62b91Sopenharmony_ci    target_os = "netbsd",
172b8a62b91Sopenharmony_ci    target_os = "openbsd",
173b8a62b91Sopenharmony_ci    target_os = "redox",
174b8a62b91Sopenharmony_ci    target_os = "solaris",
175b8a62b91Sopenharmony_ci    target_os = "wasi",
176b8a62b91Sopenharmony_ci)))]
177b8a62b91Sopenharmony_cipub use constants::BS0;
178b8a62b91Sopenharmony_ci#[cfg(not(any(
179b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
180b8a62b91Sopenharmony_ci    target_os = "dragonfly",
181b8a62b91Sopenharmony_ci    target_os = "emscripten",
182b8a62b91Sopenharmony_ci    target_os = "freebsd",
183b8a62b91Sopenharmony_ci    target_os = "fuchsia",
184b8a62b91Sopenharmony_ci    target_os = "illumos",
185b8a62b91Sopenharmony_ci    target_os = "ios",
186b8a62b91Sopenharmony_ci    target_os = "macos",
187b8a62b91Sopenharmony_ci    target_os = "netbsd",
188b8a62b91Sopenharmony_ci    target_os = "openbsd",
189b8a62b91Sopenharmony_ci    target_os = "redox",
190b8a62b91Sopenharmony_ci    target_os = "solaris",
191b8a62b91Sopenharmony_ci    target_os = "wasi",
192b8a62b91Sopenharmony_ci)))]
193b8a62b91Sopenharmony_cipub use constants::BS1;
194b8a62b91Sopenharmony_ci#[cfg(not(any(
195b8a62b91Sopenharmony_ci    target_os = "dragonfly",
196b8a62b91Sopenharmony_ci    target_os = "freebsd",
197b8a62b91Sopenharmony_ci    target_os = "illumos",
198b8a62b91Sopenharmony_ci    target_os = "ios",
199b8a62b91Sopenharmony_ci    target_os = "macos",
200b8a62b91Sopenharmony_ci    target_os = "netbsd",
201b8a62b91Sopenharmony_ci    target_os = "openbsd",
202b8a62b91Sopenharmony_ci    target_os = "redox",
203b8a62b91Sopenharmony_ci    target_os = "solaris",
204b8a62b91Sopenharmony_ci    target_os = "wasi",
205b8a62b91Sopenharmony_ci)))]
206b8a62b91Sopenharmony_cipub use constants::BSDLY;
207b8a62b91Sopenharmony_ci#[cfg(not(any(
208b8a62b91Sopenharmony_ci    target_os = "dragonfly",
209b8a62b91Sopenharmony_ci    target_os = "freebsd",
210b8a62b91Sopenharmony_ci    target_os = "haiku",
211b8a62b91Sopenharmony_ci    target_os = "ios",
212b8a62b91Sopenharmony_ci    target_os = "macos",
213b8a62b91Sopenharmony_ci    target_os = "netbsd",
214b8a62b91Sopenharmony_ci    target_os = "openbsd",
215b8a62b91Sopenharmony_ci    target_os = "redox",
216b8a62b91Sopenharmony_ci    target_os = "wasi",
217b8a62b91Sopenharmony_ci)))]
218b8a62b91Sopenharmony_cipub use constants::CBAUD;
219b8a62b91Sopenharmony_ci#[cfg(not(any(
220b8a62b91Sopenharmony_ci    target_os = "dragonfly",
221b8a62b91Sopenharmony_ci    target_os = "freebsd",
222b8a62b91Sopenharmony_ci    target_os = "haiku",
223b8a62b91Sopenharmony_ci    target_os = "illumos",
224b8a62b91Sopenharmony_ci    target_os = "ios",
225b8a62b91Sopenharmony_ci    target_os = "macos",
226b8a62b91Sopenharmony_ci    target_os = "netbsd",
227b8a62b91Sopenharmony_ci    target_os = "openbsd",
228b8a62b91Sopenharmony_ci    target_os = "redox",
229b8a62b91Sopenharmony_ci    target_os = "solaris",
230b8a62b91Sopenharmony_ci    target_os = "wasi",
231b8a62b91Sopenharmony_ci)))]
232b8a62b91Sopenharmony_cipub use constants::CBAUDEX;
233b8a62b91Sopenharmony_ci#[cfg(not(any(
234b8a62b91Sopenharmony_ci    target_os = "dragonfly",
235b8a62b91Sopenharmony_ci    target_os = "emscripten",
236b8a62b91Sopenharmony_ci    target_os = "freebsd",
237b8a62b91Sopenharmony_ci    target_os = "haiku",
238b8a62b91Sopenharmony_ci    target_os = "ios",
239b8a62b91Sopenharmony_ci    target_os = "macos",
240b8a62b91Sopenharmony_ci    target_os = "netbsd",
241b8a62b91Sopenharmony_ci    target_os = "openbsd",
242b8a62b91Sopenharmony_ci    target_os = "redox",
243b8a62b91Sopenharmony_ci    target_os = "wasi",
244b8a62b91Sopenharmony_ci)))]
245b8a62b91Sopenharmony_cipub use constants::CIBAUD;
246b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
247b8a62b91Sopenharmony_cipub use constants::CLOCAL;
248b8a62b91Sopenharmony_ci#[cfg(not(any(
249b8a62b91Sopenharmony_ci    target_os = "dragonfly",
250b8a62b91Sopenharmony_ci    target_os = "emscripten",
251b8a62b91Sopenharmony_ci    target_os = "freebsd",
252b8a62b91Sopenharmony_ci    target_os = "haiku",
253b8a62b91Sopenharmony_ci    target_os = "illumos",
254b8a62b91Sopenharmony_ci    target_os = "ios",
255b8a62b91Sopenharmony_ci    target_os = "macos",
256b8a62b91Sopenharmony_ci    target_os = "netbsd",
257b8a62b91Sopenharmony_ci    target_os = "openbsd",
258b8a62b91Sopenharmony_ci    target_os = "redox",
259b8a62b91Sopenharmony_ci    target_os = "solaris",
260b8a62b91Sopenharmony_ci    target_os = "wasi",
261b8a62b91Sopenharmony_ci)))]
262b8a62b91Sopenharmony_cipub use constants::CMSPAR;
263b8a62b91Sopenharmony_ci#[cfg(not(any(
264b8a62b91Sopenharmony_ci    target_os = "dragonfly",
265b8a62b91Sopenharmony_ci    target_os = "freebsd",
266b8a62b91Sopenharmony_ci    target_os = "fuchsia",
267b8a62b91Sopenharmony_ci    target_os = "illumos",
268b8a62b91Sopenharmony_ci    target_os = "ios",
269b8a62b91Sopenharmony_ci    target_os = "macos",
270b8a62b91Sopenharmony_ci    target_os = "netbsd",
271b8a62b91Sopenharmony_ci    target_os = "openbsd",
272b8a62b91Sopenharmony_ci    target_os = "redox",
273b8a62b91Sopenharmony_ci    target_os = "solaris",
274b8a62b91Sopenharmony_ci    target_os = "wasi",
275b8a62b91Sopenharmony_ci)))]
276b8a62b91Sopenharmony_cipub use constants::CR0;
277b8a62b91Sopenharmony_ci#[cfg(not(any(
278b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
279b8a62b91Sopenharmony_ci    target_os = "dragonfly",
280b8a62b91Sopenharmony_ci    target_os = "emscripten",
281b8a62b91Sopenharmony_ci    target_os = "freebsd",
282b8a62b91Sopenharmony_ci    target_os = "fuchsia",
283b8a62b91Sopenharmony_ci    target_os = "illumos",
284b8a62b91Sopenharmony_ci    target_os = "ios",
285b8a62b91Sopenharmony_ci    target_os = "macos",
286b8a62b91Sopenharmony_ci    target_os = "netbsd",
287b8a62b91Sopenharmony_ci    target_os = "openbsd",
288b8a62b91Sopenharmony_ci    target_os = "redox",
289b8a62b91Sopenharmony_ci    target_os = "solaris",
290b8a62b91Sopenharmony_ci    target_os = "wasi",
291b8a62b91Sopenharmony_ci)))]
292b8a62b91Sopenharmony_cipub use constants::CR1;
293b8a62b91Sopenharmony_ci#[cfg(not(any(
294b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
295b8a62b91Sopenharmony_ci    target_os = "dragonfly",
296b8a62b91Sopenharmony_ci    target_os = "emscripten",
297b8a62b91Sopenharmony_ci    target_os = "freebsd",
298b8a62b91Sopenharmony_ci    target_os = "fuchsia",
299b8a62b91Sopenharmony_ci    target_os = "illumos",
300b8a62b91Sopenharmony_ci    target_os = "ios",
301b8a62b91Sopenharmony_ci    target_os = "macos",
302b8a62b91Sopenharmony_ci    target_os = "netbsd",
303b8a62b91Sopenharmony_ci    target_os = "openbsd",
304b8a62b91Sopenharmony_ci    target_os = "redox",
305b8a62b91Sopenharmony_ci    target_os = "solaris",
306b8a62b91Sopenharmony_ci    target_os = "wasi",
307b8a62b91Sopenharmony_ci)))]
308b8a62b91Sopenharmony_cipub use constants::CR2;
309b8a62b91Sopenharmony_ci#[cfg(not(any(
310b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
311b8a62b91Sopenharmony_ci    target_os = "dragonfly",
312b8a62b91Sopenharmony_ci    target_os = "emscripten",
313b8a62b91Sopenharmony_ci    target_os = "freebsd",
314b8a62b91Sopenharmony_ci    target_os = "fuchsia",
315b8a62b91Sopenharmony_ci    target_os = "illumos",
316b8a62b91Sopenharmony_ci    target_os = "ios",
317b8a62b91Sopenharmony_ci    target_os = "macos",
318b8a62b91Sopenharmony_ci    target_os = "netbsd",
319b8a62b91Sopenharmony_ci    target_os = "openbsd",
320b8a62b91Sopenharmony_ci    target_os = "redox",
321b8a62b91Sopenharmony_ci    target_os = "solaris",
322b8a62b91Sopenharmony_ci    target_os = "wasi",
323b8a62b91Sopenharmony_ci)))]
324b8a62b91Sopenharmony_cipub use constants::CR3;
325b8a62b91Sopenharmony_ci#[cfg(not(any(
326b8a62b91Sopenharmony_ci    target_os = "dragonfly",
327b8a62b91Sopenharmony_ci    target_os = "freebsd",
328b8a62b91Sopenharmony_ci    target_os = "illumos",
329b8a62b91Sopenharmony_ci    target_os = "ios",
330b8a62b91Sopenharmony_ci    target_os = "macos",
331b8a62b91Sopenharmony_ci    target_os = "netbsd",
332b8a62b91Sopenharmony_ci    target_os = "openbsd",
333b8a62b91Sopenharmony_ci    target_os = "redox",
334b8a62b91Sopenharmony_ci    target_os = "solaris",
335b8a62b91Sopenharmony_ci    target_os = "wasi",
336b8a62b91Sopenharmony_ci)))]
337b8a62b91Sopenharmony_cipub use constants::CRDLY;
338b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
339b8a62b91Sopenharmony_cipub use constants::CREAD;
340b8a62b91Sopenharmony_ci#[cfg(not(any(
341b8a62b91Sopenharmony_ci    target_os = "ios",
342b8a62b91Sopenharmony_ci    target_os = "macos",
343b8a62b91Sopenharmony_ci    target_os = "redox",
344b8a62b91Sopenharmony_ci    target_os = "wasi"
345b8a62b91Sopenharmony_ci)))]
346b8a62b91Sopenharmony_cipub use constants::CRTSCTS;
347b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
348b8a62b91Sopenharmony_cipub use constants::CS5;
349b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
350b8a62b91Sopenharmony_cipub use constants::CS6;
351b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
352b8a62b91Sopenharmony_cipub use constants::CS7;
353b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
354b8a62b91Sopenharmony_cipub use constants::CS8;
355b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
356b8a62b91Sopenharmony_cipub use constants::CSIZE;
357b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
358b8a62b91Sopenharmony_cipub use constants::CSTOPB;
359b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
360b8a62b91Sopenharmony_cipub use constants::ECHO;
361b8a62b91Sopenharmony_ci#[cfg(not(any(
362b8a62b91Sopenharmony_ci    target_os = "ios",
363b8a62b91Sopenharmony_ci    target_os = "macos",
364b8a62b91Sopenharmony_ci    target_os = "redox",
365b8a62b91Sopenharmony_ci    target_os = "wasi"
366b8a62b91Sopenharmony_ci)))]
367b8a62b91Sopenharmony_cipub use constants::ECHOCTL;
368b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
369b8a62b91Sopenharmony_cipub use constants::ECHOE;
370b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
371b8a62b91Sopenharmony_cipub use constants::ECHOK;
372b8a62b91Sopenharmony_ci#[cfg(not(any(
373b8a62b91Sopenharmony_ci    target_os = "ios",
374b8a62b91Sopenharmony_ci    target_os = "macos",
375b8a62b91Sopenharmony_ci    target_os = "redox",
376b8a62b91Sopenharmony_ci    target_os = "wasi"
377b8a62b91Sopenharmony_ci)))]
378b8a62b91Sopenharmony_cipub use constants::ECHOKE;
379b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
380b8a62b91Sopenharmony_cipub use constants::ECHONL;
381b8a62b91Sopenharmony_ci#[cfg(not(any(
382b8a62b91Sopenharmony_ci    target_os = "ios",
383b8a62b91Sopenharmony_ci    target_os = "macos",
384b8a62b91Sopenharmony_ci    target_os = "redox",
385b8a62b91Sopenharmony_ci    target_os = "wasi"
386b8a62b91Sopenharmony_ci)))]
387b8a62b91Sopenharmony_cipub use constants::ECHOPRT;
388b8a62b91Sopenharmony_ci#[cfg(not(any(
389b8a62b91Sopenharmony_ci    target_os = "emscripten",
390b8a62b91Sopenharmony_ci    target_os = "haiku",
391b8a62b91Sopenharmony_ci    target_os = "illumos",
392b8a62b91Sopenharmony_ci    target_os = "ios",
393b8a62b91Sopenharmony_ci    target_os = "macos",
394b8a62b91Sopenharmony_ci    target_os = "redox",
395b8a62b91Sopenharmony_ci    target_os = "solaris",
396b8a62b91Sopenharmony_ci    target_os = "wasi",
397b8a62b91Sopenharmony_ci)))]
398b8a62b91Sopenharmony_cipub use constants::EXTA;
399b8a62b91Sopenharmony_ci#[cfg(not(any(
400b8a62b91Sopenharmony_ci    target_os = "emscripten",
401b8a62b91Sopenharmony_ci    target_os = "haiku",
402b8a62b91Sopenharmony_ci    target_os = "illumos",
403b8a62b91Sopenharmony_ci    target_os = "ios",
404b8a62b91Sopenharmony_ci    target_os = "macos",
405b8a62b91Sopenharmony_ci    target_os = "redox",
406b8a62b91Sopenharmony_ci    target_os = "solaris",
407b8a62b91Sopenharmony_ci    target_os = "wasi",
408b8a62b91Sopenharmony_ci)))]
409b8a62b91Sopenharmony_cipub use constants::EXTB;
410b8a62b91Sopenharmony_ci#[cfg(not(any(
411b8a62b91Sopenharmony_ci    target_os = "haiku",
412b8a62b91Sopenharmony_ci    target_os = "ios",
413b8a62b91Sopenharmony_ci    target_os = "macos",
414b8a62b91Sopenharmony_ci    target_os = "redox",
415b8a62b91Sopenharmony_ci    target_os = "wasi",
416b8a62b91Sopenharmony_ci)))]
417b8a62b91Sopenharmony_cipub use constants::EXTPROC;
418b8a62b91Sopenharmony_ci#[cfg(not(any(
419b8a62b91Sopenharmony_ci    target_os = "dragonfly",
420b8a62b91Sopenharmony_ci    target_os = "freebsd",
421b8a62b91Sopenharmony_ci    target_os = "fuchsia",
422b8a62b91Sopenharmony_ci    target_os = "illumos",
423b8a62b91Sopenharmony_ci    target_os = "ios",
424b8a62b91Sopenharmony_ci    target_os = "macos",
425b8a62b91Sopenharmony_ci    target_os = "netbsd",
426b8a62b91Sopenharmony_ci    target_os = "openbsd",
427b8a62b91Sopenharmony_ci    target_os = "redox",
428b8a62b91Sopenharmony_ci    target_os = "solaris",
429b8a62b91Sopenharmony_ci    target_os = "wasi",
430b8a62b91Sopenharmony_ci)))]
431b8a62b91Sopenharmony_cipub use constants::FF0;
432b8a62b91Sopenharmony_ci#[cfg(not(any(
433b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
434b8a62b91Sopenharmony_ci    target_os = "dragonfly",
435b8a62b91Sopenharmony_ci    target_os = "emscripten",
436b8a62b91Sopenharmony_ci    target_os = "freebsd",
437b8a62b91Sopenharmony_ci    target_os = "fuchsia",
438b8a62b91Sopenharmony_ci    target_os = "illumos",
439b8a62b91Sopenharmony_ci    target_os = "ios",
440b8a62b91Sopenharmony_ci    target_os = "macos",
441b8a62b91Sopenharmony_ci    target_os = "netbsd",
442b8a62b91Sopenharmony_ci    target_os = "openbsd",
443b8a62b91Sopenharmony_ci    target_os = "redox",
444b8a62b91Sopenharmony_ci    target_os = "solaris",
445b8a62b91Sopenharmony_ci    target_os = "wasi",
446b8a62b91Sopenharmony_ci)))]
447b8a62b91Sopenharmony_cipub use constants::FF1;
448b8a62b91Sopenharmony_ci#[cfg(not(any(
449b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
450b8a62b91Sopenharmony_ci    target_os = "dragonfly",
451b8a62b91Sopenharmony_ci    target_os = "freebsd",
452b8a62b91Sopenharmony_ci    target_os = "illumos",
453b8a62b91Sopenharmony_ci    target_os = "ios",
454b8a62b91Sopenharmony_ci    target_os = "macos",
455b8a62b91Sopenharmony_ci    target_os = "netbsd",
456b8a62b91Sopenharmony_ci    target_os = "openbsd",
457b8a62b91Sopenharmony_ci    target_os = "redox",
458b8a62b91Sopenharmony_ci    target_os = "solaris",
459b8a62b91Sopenharmony_ci    target_os = "wasi",
460b8a62b91Sopenharmony_ci)))]
461b8a62b91Sopenharmony_cipub use constants::FFDLY;
462b8a62b91Sopenharmony_ci#[cfg(not(any(
463b8a62b91Sopenharmony_ci    target_os = "ios",
464b8a62b91Sopenharmony_ci    target_os = "macos",
465b8a62b91Sopenharmony_ci    target_os = "redox",
466b8a62b91Sopenharmony_ci    target_os = "wasi"
467b8a62b91Sopenharmony_ci)))]
468b8a62b91Sopenharmony_cipub use constants::FLUSHO;
469b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
470b8a62b91Sopenharmony_cipub use constants::HUPCL;
471b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
472b8a62b91Sopenharmony_cipub use constants::ICRNL;
473b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
474b8a62b91Sopenharmony_cipub use constants::IEXTEN;
475b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
476b8a62b91Sopenharmony_cipub use constants::IGNBRK;
477b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
478b8a62b91Sopenharmony_cipub use constants::IGNCR;
479b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
480b8a62b91Sopenharmony_cipub use constants::IGNPAR;
481b8a62b91Sopenharmony_ci#[cfg(not(any(
482b8a62b91Sopenharmony_ci    target_os = "haiku",
483b8a62b91Sopenharmony_ci    target_os = "ios",
484b8a62b91Sopenharmony_ci    target_os = "macos",
485b8a62b91Sopenharmony_ci    target_os = "redox",
486b8a62b91Sopenharmony_ci    target_os = "wasi",
487b8a62b91Sopenharmony_ci)))]
488b8a62b91Sopenharmony_cipub use constants::IMAXBEL;
489b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
490b8a62b91Sopenharmony_cipub use constants::INLCR;
491b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
492b8a62b91Sopenharmony_cipub use constants::INPCK;
493b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
494b8a62b91Sopenharmony_cipub use constants::ISIG;
495b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
496b8a62b91Sopenharmony_cipub use constants::ISTRIP;
497b8a62b91Sopenharmony_ci#[cfg(any(
498b8a62b91Sopenharmony_ci    linux_raw,
499b8a62b91Sopenharmony_ci    all(
500b8a62b91Sopenharmony_ci        libc,
501b8a62b91Sopenharmony_ci        any(target_os = "haiku", target_os = "illumos", target_os = "solaris"),
502b8a62b91Sopenharmony_ci    )
503b8a62b91Sopenharmony_ci))]
504b8a62b91Sopenharmony_cipub use constants::IUCLC;
505b8a62b91Sopenharmony_ci#[cfg(not(any(
506b8a62b91Sopenharmony_ci    target_os = "dragonfly",
507b8a62b91Sopenharmony_ci    target_os = "emscripten",
508b8a62b91Sopenharmony_ci    target_os = "freebsd",
509b8a62b91Sopenharmony_ci    target_os = "haiku",
510b8a62b91Sopenharmony_ci    target_os = "illumos",
511b8a62b91Sopenharmony_ci    target_os = "ios",
512b8a62b91Sopenharmony_ci    target_os = "macos",
513b8a62b91Sopenharmony_ci    target_os = "netbsd",
514b8a62b91Sopenharmony_ci    target_os = "openbsd",
515b8a62b91Sopenharmony_ci    target_os = "redox",
516b8a62b91Sopenharmony_ci    target_os = "solaris",
517b8a62b91Sopenharmony_ci    target_os = "wasi",
518b8a62b91Sopenharmony_ci)))]
519b8a62b91Sopenharmony_cipub use constants::IUTF8;
520b8a62b91Sopenharmony_ci#[cfg(not(any(
521b8a62b91Sopenharmony_ci    target_os = "ios",
522b8a62b91Sopenharmony_ci    target_os = "macos",
523b8a62b91Sopenharmony_ci    target_os = "redox",
524b8a62b91Sopenharmony_ci    target_os = "wasi"
525b8a62b91Sopenharmony_ci)))]
526b8a62b91Sopenharmony_cipub use constants::IXANY;
527b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
528b8a62b91Sopenharmony_cipub use constants::IXOFF;
529b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
530b8a62b91Sopenharmony_cipub use constants::IXON;
531b8a62b91Sopenharmony_ci#[cfg(not(any(
532b8a62b91Sopenharmony_ci    target_os = "dragonfly",
533b8a62b91Sopenharmony_ci    target_os = "freebsd",
534b8a62b91Sopenharmony_ci    target_os = "fuchsia",
535b8a62b91Sopenharmony_ci    target_os = "illumos",
536b8a62b91Sopenharmony_ci    target_os = "ios",
537b8a62b91Sopenharmony_ci    target_os = "macos",
538b8a62b91Sopenharmony_ci    target_os = "netbsd",
539b8a62b91Sopenharmony_ci    target_os = "openbsd",
540b8a62b91Sopenharmony_ci    target_os = "redox",
541b8a62b91Sopenharmony_ci    target_os = "solaris",
542b8a62b91Sopenharmony_ci    target_os = "wasi",
543b8a62b91Sopenharmony_ci)))]
544b8a62b91Sopenharmony_cipub use constants::NL0;
545b8a62b91Sopenharmony_ci#[cfg(not(any(
546b8a62b91Sopenharmony_ci    target_os = "dragonfly",
547b8a62b91Sopenharmony_ci    target_os = "freebsd",
548b8a62b91Sopenharmony_ci    target_os = "fuchsia",
549b8a62b91Sopenharmony_ci    target_os = "illumos",
550b8a62b91Sopenharmony_ci    target_os = "ios",
551b8a62b91Sopenharmony_ci    target_os = "macos",
552b8a62b91Sopenharmony_ci    target_os = "netbsd",
553b8a62b91Sopenharmony_ci    target_os = "openbsd",
554b8a62b91Sopenharmony_ci    target_os = "redox",
555b8a62b91Sopenharmony_ci    target_os = "solaris",
556b8a62b91Sopenharmony_ci    target_os = "wasi",
557b8a62b91Sopenharmony_ci)))]
558b8a62b91Sopenharmony_cipub use constants::NL1;
559b8a62b91Sopenharmony_ci#[cfg(not(any(
560b8a62b91Sopenharmony_ci    target_os = "dragonfly",
561b8a62b91Sopenharmony_ci    target_os = "freebsd",
562b8a62b91Sopenharmony_ci    target_os = "illumos",
563b8a62b91Sopenharmony_ci    target_os = "ios",
564b8a62b91Sopenharmony_ci    target_os = "macos",
565b8a62b91Sopenharmony_ci    target_os = "netbsd",
566b8a62b91Sopenharmony_ci    target_os = "openbsd",
567b8a62b91Sopenharmony_ci    target_os = "redox",
568b8a62b91Sopenharmony_ci    target_os = "solaris",
569b8a62b91Sopenharmony_ci    target_os = "wasi",
570b8a62b91Sopenharmony_ci)))]
571b8a62b91Sopenharmony_cipub use constants::NLDLY;
572b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
573b8a62b91Sopenharmony_cipub use constants::NOFLSH;
574b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
575b8a62b91Sopenharmony_cipub use constants::OCRNL;
576b8a62b91Sopenharmony_ci#[cfg(not(any(
577b8a62b91Sopenharmony_ci    target_os = "dragonfly",
578b8a62b91Sopenharmony_ci    target_os = "freebsd",
579b8a62b91Sopenharmony_ci    target_os = "ios",
580b8a62b91Sopenharmony_ci    target_os = "macos",
581b8a62b91Sopenharmony_ci    target_os = "netbsd",
582b8a62b91Sopenharmony_ci    target_os = "openbsd",
583b8a62b91Sopenharmony_ci    target_os = "wasi",
584b8a62b91Sopenharmony_ci)))]
585b8a62b91Sopenharmony_cipub use constants::OFDEL;
586b8a62b91Sopenharmony_ci#[cfg(not(any(
587b8a62b91Sopenharmony_ci    target_os = "dragonfly",
588b8a62b91Sopenharmony_ci    target_os = "freebsd",
589b8a62b91Sopenharmony_ci    target_os = "ios",
590b8a62b91Sopenharmony_ci    target_os = "macos",
591b8a62b91Sopenharmony_ci    target_os = "netbsd",
592b8a62b91Sopenharmony_ci    target_os = "openbsd",
593b8a62b91Sopenharmony_ci    target_os = "wasi",
594b8a62b91Sopenharmony_ci)))]
595b8a62b91Sopenharmony_cipub use constants::OFILL;
596b8a62b91Sopenharmony_ci#[cfg(not(any(
597b8a62b91Sopenharmony_ci    target_os = "dragonfly",
598b8a62b91Sopenharmony_ci    target_os = "freebsd",
599b8a62b91Sopenharmony_ci    target_os = "ios",
600b8a62b91Sopenharmony_ci    target_os = "macos",
601b8a62b91Sopenharmony_ci    target_os = "netbsd",
602b8a62b91Sopenharmony_ci    target_os = "redox",
603b8a62b91Sopenharmony_ci    target_os = "wasi",
604b8a62b91Sopenharmony_ci)))]
605b8a62b91Sopenharmony_cipub use constants::OLCUC;
606b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
607b8a62b91Sopenharmony_cipub use constants::ONLCR;
608b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
609b8a62b91Sopenharmony_cipub use constants::ONLRET;
610b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
611b8a62b91Sopenharmony_cipub use constants::ONOCR;
612b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
613b8a62b91Sopenharmony_cipub use constants::OPOST;
614b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
615b8a62b91Sopenharmony_cipub use constants::PARENB;
616b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
617b8a62b91Sopenharmony_cipub use constants::PARMRK;
618b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
619b8a62b91Sopenharmony_cipub use constants::PARODD;
620b8a62b91Sopenharmony_ci#[cfg(not(any(
621b8a62b91Sopenharmony_ci    target_os = "ios",
622b8a62b91Sopenharmony_ci    target_os = "macos",
623b8a62b91Sopenharmony_ci    target_os = "redox",
624b8a62b91Sopenharmony_ci    target_os = "wasi"
625b8a62b91Sopenharmony_ci)))]
626b8a62b91Sopenharmony_cipub use constants::PENDIN;
627b8a62b91Sopenharmony_ci#[cfg(not(any(
628b8a62b91Sopenharmony_ci    target_os = "dragonfly",
629b8a62b91Sopenharmony_ci    target_os = "fuchsia",
630b8a62b91Sopenharmony_ci    target_os = "illumos",
631b8a62b91Sopenharmony_ci    target_os = "ios",
632b8a62b91Sopenharmony_ci    target_os = "macos",
633b8a62b91Sopenharmony_ci    target_os = "netbsd",
634b8a62b91Sopenharmony_ci    target_os = "openbsd",
635b8a62b91Sopenharmony_ci    target_os = "redox",
636b8a62b91Sopenharmony_ci    target_os = "solaris",
637b8a62b91Sopenharmony_ci    target_os = "wasi",
638b8a62b91Sopenharmony_ci)))]
639b8a62b91Sopenharmony_cipub use constants::TAB0;
640b8a62b91Sopenharmony_ci#[cfg(not(any(
641b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
642b8a62b91Sopenharmony_ci    target_os = "dragonfly",
643b8a62b91Sopenharmony_ci    target_os = "emscripten",
644b8a62b91Sopenharmony_ci    target_os = "freebsd",
645b8a62b91Sopenharmony_ci    target_os = "fuchsia",
646b8a62b91Sopenharmony_ci    target_os = "illumos",
647b8a62b91Sopenharmony_ci    target_os = "ios",
648b8a62b91Sopenharmony_ci    target_os = "macos",
649b8a62b91Sopenharmony_ci    target_os = "netbsd",
650b8a62b91Sopenharmony_ci    target_os = "openbsd",
651b8a62b91Sopenharmony_ci    target_os = "redox",
652b8a62b91Sopenharmony_ci    target_os = "solaris",
653b8a62b91Sopenharmony_ci    target_os = "wasi",
654b8a62b91Sopenharmony_ci)))]
655b8a62b91Sopenharmony_cipub use constants::TAB1;
656b8a62b91Sopenharmony_ci#[cfg(not(any(
657b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
658b8a62b91Sopenharmony_ci    target_os = "dragonfly",
659b8a62b91Sopenharmony_ci    target_os = "emscripten",
660b8a62b91Sopenharmony_ci    target_os = "freebsd",
661b8a62b91Sopenharmony_ci    target_os = "fuchsia",
662b8a62b91Sopenharmony_ci    target_os = "illumos",
663b8a62b91Sopenharmony_ci    target_os = "ios",
664b8a62b91Sopenharmony_ci    target_os = "macos",
665b8a62b91Sopenharmony_ci    target_os = "netbsd",
666b8a62b91Sopenharmony_ci    target_os = "openbsd",
667b8a62b91Sopenharmony_ci    target_os = "redox",
668b8a62b91Sopenharmony_ci    target_os = "solaris",
669b8a62b91Sopenharmony_ci    target_os = "wasi",
670b8a62b91Sopenharmony_ci)))]
671b8a62b91Sopenharmony_cipub use constants::TAB2;
672b8a62b91Sopenharmony_ci#[cfg(not(any(
673b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
674b8a62b91Sopenharmony_ci    target_os = "dragonfly",
675b8a62b91Sopenharmony_ci    target_os = "emscripten",
676b8a62b91Sopenharmony_ci    target_os = "fuchsia",
677b8a62b91Sopenharmony_ci    target_os = "illumos",
678b8a62b91Sopenharmony_ci    target_os = "ios",
679b8a62b91Sopenharmony_ci    target_os = "macos",
680b8a62b91Sopenharmony_ci    target_os = "netbsd",
681b8a62b91Sopenharmony_ci    target_os = "openbsd",
682b8a62b91Sopenharmony_ci    target_os = "redox",
683b8a62b91Sopenharmony_ci    target_os = "solaris",
684b8a62b91Sopenharmony_ci    target_os = "wasi",
685b8a62b91Sopenharmony_ci)))]
686b8a62b91Sopenharmony_cipub use constants::TAB3;
687b8a62b91Sopenharmony_ci#[cfg(not(any(
688b8a62b91Sopenharmony_ci    target_os = "dragonfly",
689b8a62b91Sopenharmony_ci    target_os = "ios",
690b8a62b91Sopenharmony_ci    target_os = "macos",
691b8a62b91Sopenharmony_ci    target_os = "netbsd",
692b8a62b91Sopenharmony_ci    target_os = "openbsd",
693b8a62b91Sopenharmony_ci    target_os = "illumos",
694b8a62b91Sopenharmony_ci    target_os = "redox",
695b8a62b91Sopenharmony_ci    target_os = "solaris",
696b8a62b91Sopenharmony_ci    target_os = "wasi",
697b8a62b91Sopenharmony_ci)))]
698b8a62b91Sopenharmony_cipub use constants::TABDLY;
699b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "wasi")))]
700b8a62b91Sopenharmony_cipub use constants::TOSTOP;
701b8a62b91Sopenharmony_ci#[cfg(not(any(
702b8a62b91Sopenharmony_ci    target_os = "dragonfly",
703b8a62b91Sopenharmony_ci    target_os = "freebsd",
704b8a62b91Sopenharmony_ci    target_os = "haiku",
705b8a62b91Sopenharmony_ci    target_os = "illumos",
706b8a62b91Sopenharmony_ci    target_os = "ios",
707b8a62b91Sopenharmony_ci    target_os = "macos",
708b8a62b91Sopenharmony_ci    target_os = "netbsd",
709b8a62b91Sopenharmony_ci    target_os = "openbsd",
710b8a62b91Sopenharmony_ci    target_os = "solaris",
711b8a62b91Sopenharmony_ci    target_os = "wasi",
712b8a62b91Sopenharmony_ci)))]
713b8a62b91Sopenharmony_cipub use constants::VSWTC;
714b8a62b91Sopenharmony_ci#[cfg(not(any(
715b8a62b91Sopenharmony_ci    target_os = "dragonfly",
716b8a62b91Sopenharmony_ci    target_os = "freebsd",
717b8a62b91Sopenharmony_ci    target_os = "fuchsia",
718b8a62b91Sopenharmony_ci    target_os = "illumos",
719b8a62b91Sopenharmony_ci    target_os = "ios",
720b8a62b91Sopenharmony_ci    target_os = "macos",
721b8a62b91Sopenharmony_ci    target_os = "netbsd",
722b8a62b91Sopenharmony_ci    target_os = "openbsd",
723b8a62b91Sopenharmony_ci    target_os = "redox",
724b8a62b91Sopenharmony_ci    target_os = "solaris",
725b8a62b91Sopenharmony_ci    target_os = "wasi",
726b8a62b91Sopenharmony_ci)))]
727b8a62b91Sopenharmony_cipub use constants::VT0;
728b8a62b91Sopenharmony_ci#[cfg(not(any(
729b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
730b8a62b91Sopenharmony_ci    target_os = "dragonfly",
731b8a62b91Sopenharmony_ci    target_os = "emscripten",
732b8a62b91Sopenharmony_ci    target_os = "freebsd",
733b8a62b91Sopenharmony_ci    target_os = "fuchsia",
734b8a62b91Sopenharmony_ci    target_os = "illumos",
735b8a62b91Sopenharmony_ci    target_os = "ios",
736b8a62b91Sopenharmony_ci    target_os = "macos",
737b8a62b91Sopenharmony_ci    target_os = "netbsd",
738b8a62b91Sopenharmony_ci    target_os = "openbsd",
739b8a62b91Sopenharmony_ci    target_os = "redox",
740b8a62b91Sopenharmony_ci    target_os = "solaris",
741b8a62b91Sopenharmony_ci    target_os = "wasi",
742b8a62b91Sopenharmony_ci)))]
743b8a62b91Sopenharmony_cipub use constants::VT1;
744b8a62b91Sopenharmony_ci#[cfg(not(any(
745b8a62b91Sopenharmony_ci    all(libc, target_env = "musl"),
746b8a62b91Sopenharmony_ci    target_os = "dragonfly",
747b8a62b91Sopenharmony_ci    target_os = "freebsd",
748b8a62b91Sopenharmony_ci    target_os = "illumos",
749b8a62b91Sopenharmony_ci    target_os = "ios",
750b8a62b91Sopenharmony_ci    target_os = "macos",
751b8a62b91Sopenharmony_ci    target_os = "netbsd",
752b8a62b91Sopenharmony_ci    target_os = "openbsd",
753b8a62b91Sopenharmony_ci    target_os = "redox",
754b8a62b91Sopenharmony_ci    target_os = "solaris",
755b8a62b91Sopenharmony_ci    target_os = "wasi",
756b8a62b91Sopenharmony_ci)))]
757b8a62b91Sopenharmony_cipub use constants::VTDLY;
758b8a62b91Sopenharmony_ci#[cfg(any(linux_raw, all(libc, any(target_arch = "s390x", target_os = "haiku"))))]
759b8a62b91Sopenharmony_cipub use constants::XCASE;
760b8a62b91Sopenharmony_ci#[cfg(not(any(
761b8a62b91Sopenharmony_ci    target_os = "dragonfly",
762b8a62b91Sopenharmony_ci    target_os = "freebsd",
763b8a62b91Sopenharmony_ci    target_os = "haiku",
764b8a62b91Sopenharmony_ci    target_os = "illumos",
765b8a62b91Sopenharmony_ci    target_os = "ios",
766b8a62b91Sopenharmony_ci    target_os = "macos",
767b8a62b91Sopenharmony_ci    target_os = "netbsd",
768b8a62b91Sopenharmony_ci    target_os = "openbsd",
769b8a62b91Sopenharmony_ci    target_os = "redox",
770b8a62b91Sopenharmony_ci    target_os = "solaris",
771b8a62b91Sopenharmony_ci    target_os = "wasi",
772b8a62b91Sopenharmony_ci)))]
773b8a62b91Sopenharmony_cipub use constants::XTABS;
774b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))]
775b8a62b91Sopenharmony_cipub use constants::{
776b8a62b91Sopenharmony_ci    speed_value, B0, B110, B115200, B1200, B134, B150, B1800, B19200, B200, B230400, B2400, B300,
777b8a62b91Sopenharmony_ci    B38400, B4800, B50, B57600, B600, B75, B9600, ICANON, VEOF, VEOL, VEOL2, VERASE, VINTR, VKILL,
778b8a62b91Sopenharmony_ci    VMIN, VQUIT, VSTART, VSTOP, VSUSP, VTIME,
779b8a62b91Sopenharmony_ci};
780b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "haiku", target_os = "wasi")))]
781b8a62b91Sopenharmony_cipub use constants::{VDISCARD, VLNEXT, VREPRINT, VWERASE};
782b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))]
783b8a62b91Sopenharmony_cipub use tc::{
784b8a62b91Sopenharmony_ci    tcdrain, tcflow, tcflush, tcgetattr, tcgetpgrp, tcgetsid, tcgetwinsize, tcsendbreak, tcsetattr,
785b8a62b91Sopenharmony_ci    tcsetpgrp, tcsetwinsize, Action, OptionalActions, QueueSelector, Speed, Tcflag, Termios,
786b8a62b91Sopenharmony_ci    Winsize,
787b8a62b91Sopenharmony_ci};
788b8a62b91Sopenharmony_ci#[cfg(not(windows))]
789b8a62b91Sopenharmony_cipub use tty::isatty;
790b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]
791b8a62b91Sopenharmony_ci#[cfg(feature = "procfs")]
792b8a62b91Sopenharmony_cipub use tty::ttyname;
793