xref: /drstd/dlibc/src/unix/header/sys_ioctl/mod.rs (revision 86982c5e9b2eaa583327251616ee822c36288824)
1 //! ioctl implementation for linux
2 
3 
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 #[cfg(target_os = "linux")]
25 #[path = "linux.rs"]
26 pub mod sys;
27 
28 #[cfg(target_os = "dragonos")]
29 #[path = "dragonos.rs"]
30 pub mod sys;
31 
32 #[cfg(target_os = "redox")]
33 #[path = "redox.rs"]
34 pub mod sys;
35