Merge branch 'systime-systimeb-sysmman-cleanup' into 'master'

sys_time sys_timeb and sys_mman header cleanup

See merge request redox-os/relibc!857
This commit is contained in:
Jeremy Soller
2026-01-02 12:21:42 -07:00
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::platform::types::*;
use crate::platform::types::c_int;
pub const PROT_READ: c_int = 0x0001;
pub const PROT_WRITE: c_int = 0x0002;
+4 -1
View File
@@ -6,7 +6,10 @@ use crate::{
c_str::{CStr, CString},
error::{Errno, ResultExt},
header::{fcntl, unistd},
platform::{ERRNO, Pal, Sys, types::*},
platform::{
ERRNO, Pal, Sys,
types::{c_char, c_int, c_void, mode_t, off_t, size_t},
},
};
pub use self::sys::*;
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::platform::types::*;
use crate::platform::types::c_int;
pub const PROT_NONE: c_int = 0x0000;
pub const PROT_EXEC: c_int = 0x0001;
+4 -1
View File
@@ -7,7 +7,10 @@ use crate::{
error::ResultExt,
header::time::timespec,
out::Out,
platform::{Pal, PalSignal, Sys, types::*},
platform::{
Pal, PalSignal, Sys,
types::{c_char, c_int, c_long, suseconds_t, time_t},
},
};
use core::ptr::null;
+1 -1
View File
@@ -14,7 +14,7 @@ use core::ptr::NonNull;
use crate::{
header::sys_time::{gettimeofday, timeval, timezone},
platform::types::*,
platform::types::{c_int, c_short, c_ushort, time_t},
};
/// See <https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/timeb.h.html>.