mod.rs 607 B

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