From 804bb83c344fa4a3f92e621cd12c5a67bba75827 Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 4 Feb 2026 10:13:57 +0000 Subject: [PATCH] unistd header cleanup --- src/header/unistd/brk.rs | 5 ++++- src/header/unistd/getpass.rs | 2 +- src/header/unistd/pathconf.rs | 5 ++++- src/header/unistd/sysconf/redox.rs | 5 ++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/header/unistd/brk.rs b/src/header/unistd/brk.rs index 24c9a7a7af..c402131e3c 100644 --- a/src/header/unistd/brk.rs +++ b/src/header/unistd/brk.rs @@ -3,7 +3,10 @@ use core::ptr; use crate::{ error::ResultExtPtrMut, header::errno::ENOMEM, - platform::{self, Pal, Sys, types::*}, + platform::{ + self, Pal, Sys, + types::{c_int, c_void, intptr_t}, + }, }; static mut BRK: *mut c_void = ptr::null_mut(); diff --git a/src/header/unistd/getpass.rs b/src/header/unistd/getpass.rs index 1779288c49..ed089946cd 100644 --- a/src/header/unistd/getpass.rs +++ b/src/header/unistd/getpass.rs @@ -12,7 +12,7 @@ use crate::{ raw_cell::RawCell, }; -use crate::platform::types::*; +use crate::platform::types::c_char; fn getpass_rs(prompt: CStr, passbuff: &mut [u8]) -> Result<*mut c_char, io::Error> { let mut f = File::open(c"/dev/tty".into(), O_RDWR | O_CLOEXEC)?; diff --git a/src/header/unistd/pathconf.rs b/src/header/unistd/pathconf.rs index 696cd2986e..276dbdbcc1 100644 --- a/src/header/unistd/pathconf.rs +++ b/src/header/unistd/pathconf.rs @@ -1,6 +1,9 @@ use crate::{ header::{errno, termios::_POSIX_VDISABLE}, - platform::{self, types::*}, + platform::{ + self, + types::{c_char, c_int, c_long}, + }, }; pub const _PC_LINK_MAX: c_int = 0; diff --git a/src/header/unistd/sysconf/redox.rs b/src/header/unistd/sysconf/redox.rs index be772ae3d6..651b43adbf 100644 --- a/src/header/unistd/sysconf/redox.rs +++ b/src/header/unistd/sysconf/redox.rs @@ -8,7 +8,10 @@ use crate::{ header::{errno, fcntl, limits, sys_statvfs}, io::Read, out::Out, - platform::{self, Pal, Sys, types::*}, + platform::{ + self, Pal, Sys, + types::{c_int, c_long}, + }, }; // POSIX.1 {