Merge branch 'unistd-cleanup' into 'master'
unistd header cleanup See merge request redox-os/relibc!949
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user