diff --git a/src/header/pty/linux.rs b/src/header/pty/linux.rs index bda6ded3b2..faad407d87 100644 --- a/src/header/pty/linux.rs +++ b/src/header/pty/linux.rs @@ -1,7 +1,7 @@ use crate::{ header::{fcntl, sys_ioctl, unistd}, io::{Cursor, Write}, - platform::types::*, + platform::types::{c_char, c_int, c_void}, }; pub(super) unsafe fn openpty(name: &mut [u8]) -> Result<(c_int, c_int), ()> { diff --git a/src/header/pty/mod.rs b/src/header/pty/mod.rs index 37e0e5d9b7..126be6c957 100644 --- a/src/header/pty/mod.rs +++ b/src/header/pty/mod.rs @@ -6,7 +6,10 @@ use core::{mem, ptr, slice}; use crate::{ header::{fcntl, limits, pthread, signal, sys_ioctl, sys_wait, termios, unistd, utmp}, - platform::{self, types::*}, + platform::{ + self, + types::{c_char, c_int, c_void}, + }, }; #[cfg(target_os = "linux")] diff --git a/src/header/pty/redox.rs b/src/header/pty/redox.rs index f9c0f1f756..34d5934ba9 100644 --- a/src/header/pty/redox.rs +++ b/src/header/pty/redox.rs @@ -2,7 +2,7 @@ use crate::{ Pal, Sys, error::ResultExt, header::{fcntl, unistd}, - platform::types::*, + platform::types::{c_char, c_int, ssize_t}, }; pub(super) unsafe fn openpty(name: &mut [u8]) -> Result<(c_int, c_int), ()> { diff --git a/src/header/pwd/linux.rs b/src/header/pwd/linux.rs index 0d74036685..38a6711787 100644 --- a/src/header/pwd/linux.rs +++ b/src/header/pwd/linux.rs @@ -1,5 +1,5 @@ use super::{parsed, passwd}; -use crate::platform::types::*; +use crate::platform::types::c_char; pub fn split(line: &mut [u8]) -> Option { let mut parts = line.split_mut(|&c| c == b'\0'); diff --git a/src/header/pwd/mod.rs b/src/header/pwd/mod.rs index 478afcc77b..20322d6178 100644 --- a/src/header/pwd/mod.rs +++ b/src/header/pwd/mod.rs @@ -13,7 +13,10 @@ use crate::{ fs::File, header::{errno, fcntl, string::strcmp}, io::{BufReader, SeekFrom, prelude::*}, - platform::{self, types::*}, + platform::{ + self, + types::{c_char, c_int, gid_t, size_t, uid_t}, + }, raw_cell::RawCell, }; @@ -128,6 +131,9 @@ where string.parse().ok() } +/// See . +/// +/// Non-POSIX fn getpwent_r( reader: &mut BufReader, destination: Option, diff --git a/src/header/pwd/redox.rs b/src/header/pwd/redox.rs index 88b218ead9..7bb5619861 100644 --- a/src/header/pwd/redox.rs +++ b/src/header/pwd/redox.rs @@ -1,5 +1,5 @@ use super::{parsed, passwd}; -use crate::platform::types::*; +use crate::platform::types::c_char; pub fn split(line: &mut [u8]) -> Option { let mut parts = line.split_mut(|&c| c == b'\0');