xref: /relibc/src/header/sys_ioctl/mod.rs (revision 7016e5c833af9fe4182462e6a86e498cd5e8c738)
1 //! ioctl implementation for linux
2 
3 use crate::platform::types::*;
4 
5 // This is used from sgtty
6 #[repr(C)]
7 pub struct sgttyb {
8     sg_ispeed: c_char,
9     sg_ospeed: c_char,
10     sg_erase: c_char,
11     sg_kill: c_char,
12     sg_flags: c_ushort,
13 }
14 
15 #[repr(C)]
16 #[derive(Default)]
17 pub struct winsize {
18     ws_row: c_ushort,
19     ws_col: c_ushort,
20     ws_xpixel: c_ushort,
21     ws_ypixel: c_ushort,
22 }
23 
24 pub use self::sys::*;
25 
26 #[cfg(target_os = "linux")]
27 #[path = "linux.rs"]
28 pub mod sys;
29 
30 #[cfg(target_os = "dragonos")]
31 #[path = "dragonos.rs"]
32 pub mod sys;
33 
34 #[cfg(target_os = "redox")]
35 #[path = "redox.rs"]
36 pub mod sys;
37