mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 11:53:24 +00:00
Rename crates from jinux-* to aster-*
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
6dbf5d560d
commit
93781df27b
34
services/libs/aster-std/src/fs/utils/ioctl.rs
Normal file
34
services/libs/aster-std/src/fs/utils/ioctl.rs
Normal file
@ -0,0 +1,34 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Clone, Copy, TryFromInt)]
|
||||
pub enum IoctlCmd {
|
||||
/// Get terminal attributes
|
||||
TCGETS = 0x5401,
|
||||
TCSETS = 0x5402,
|
||||
/// Drain the output buffer and set attributes
|
||||
TCSETSW = 0x5403,
|
||||
/// Drain the output buffer, and discard pending input, and set attributes
|
||||
TCSETSF = 0x5404,
|
||||
/// Make the given terminal the controlling terminal of the calling process.
|
||||
TIOCSCTTY = 0x540e,
|
||||
/// Get the process group ID of the foreground process group on this terminal
|
||||
TIOCGPGRP = 0x540f,
|
||||
/// Set the foreground process group ID of this terminal.
|
||||
TIOCSPGRP = 0x5410,
|
||||
/// Get the number of bytes in the input buffer.
|
||||
FIONREAD = 0x541B,
|
||||
/// Set window size
|
||||
TIOCGWINSZ = 0x5413,
|
||||
TIOCSWINSZ = 0x5414,
|
||||
/// the calling process gives up this controlling terminal
|
||||
TIOCNOTTY = 0x5422,
|
||||
/// Get Pty Number
|
||||
TIOCGPTN = 0x80045430,
|
||||
/// Lock/unlock Pty
|
||||
TIOCSPTLCK = 0x40045431,
|
||||
/// Safely open the slave
|
||||
TIOCGPTPEER = 0x40045441,
|
||||
/// Get tdx report using TDCALL
|
||||
TDXGETREPORT = 0xc4405401,
|
||||
}
|
Reference in New Issue
Block a user