mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-27 02:03:29 +04:00
36 lines
1.1 KiB
Rust
36 lines
1.1 KiB
Rust
// for IOR and IOW:
|
|
// 32bits total, command in lower 16bits, size of the parameter structure in the lower 14 bits of the upper 16 bits
|
|
// higher 2 bits: 01 = write, 10 = read
|
|
|
|
#[cfg(not(target_arch = "mips"))]
|
|
pub const TCGETS: usize = 0x5401;
|
|
#[cfg(target_arch = "mips")]
|
|
pub const TCGETS: usize = 0x540D;
|
|
|
|
#[cfg(not(target_arch = "mips"))]
|
|
pub const TIOCGPGRP: usize = 0x540F;
|
|
// _IOR('t', 119, int)
|
|
#[cfg(target_arch = "mips")]
|
|
pub const TIOCGPGRP: usize = 0x4_004_74_77;
|
|
|
|
#[cfg(not(target_arch = "mips"))]
|
|
pub const TIOCSPGRP: usize = 0x5410;
|
|
// _IOW('t', 118, int)
|
|
#[cfg(target_arch = "mips")]
|
|
pub const TIOCSPGRP: usize = 0x8_004_74_76;
|
|
|
|
#[cfg(not(target_arch = "mips"))]
|
|
pub const TIOCGWINSZ: usize = 0x5413;
|
|
// _IOR('t', 104, struct winsize)
|
|
#[cfg(target_arch = "mips")]
|
|
pub const TIOCGWINSZ: usize = 0x4_008_74_68;
|
|
|
|
#[cfg(not(target_arch = "mips"))]
|
|
pub const FIONCLEX: usize = 0x5450;
|
|
#[cfg(target_arch = "mips")]
|
|
pub const FIOCLEX: usize = 0x6602;
|
|
|
|
#[cfg(not(target_arch = "mips"))]
|
|
pub const FIOCLEX: usize = 0x5451;
|
|
#[cfg(target_arch = "mips")]
|
|
pub const FIOCLEX: usize = 0x6601; |