sgtty and sys_ioctl header cleanup

This commit is contained in:
auronandace
2026-01-21 10:50:36 +00:00
parent 3a8f64aa14
commit cea71ae627
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
//! sgtty implementation that won't work on redox because no ioctl
use crate::{header::sys_ioctl::*, platform::types::*};
use crate::{header::sys_ioctl::sgttyb, platform::types::c_int};
#[unsafe(no_mangle)]
pub extern "C" fn gtty(fd: c_int, out: *mut sgttyb) -> c_int {
+4 -1
View File
@@ -1,6 +1,9 @@
use crate::{
error::ResultExt,
platform::{Sys, types::*},
platform::{
Sys,
types::{c_int, c_ulong, c_void},
},
};
#[unsafe(no_mangle)]
+1 -1
View File
@@ -1,6 +1,6 @@
//! ioctl implementation for linux
use crate::platform::types::*;
use crate::platform::types::{c_char, c_ushort};
// This is used from sgtty
#[repr(C)]
+1 -1
View File
@@ -5,7 +5,7 @@ use redox_ioctl::{IoctlData, drm::*};
use crate::{
error::{Errno, Result},
header::errno::EINVAL,
platform::types::*,
platform::types::c_int,
};
use super::IoctlBuffer;
+4 -1
View File
@@ -8,7 +8,10 @@ use crate::{
errno::{self, EINVAL},
fcntl, termios,
},
platform::{self, Pal, Sys, types::*},
platform::{
self, Pal, Sys,
types::{c_int, c_ulong, c_ulonglong, c_void, pid_t},
},
};
use super::winsize;