Merge branch 'unistd-cleanup' into 'master'

unistd header cleanup

See merge request redox-os/relibc!949
This commit is contained in:
Jeremy Soller
2026-02-04 06:19:35 -07:00
4 changed files with 13 additions and 4 deletions
+4 -1
View File
@@ -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();
+1 -1
View File
@@ -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)?;
+4 -1
View File
@@ -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;
+4 -1
View File
@@ -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 {