inttypes malloc and errno header cleanup

This commit is contained in:
auronandace
2026-01-02 11:43:50 +00:00
parent b269ccbd6f
commit 09c5eb43b7
3 changed files with 13 additions and 4 deletions
+4 -1
View File
@@ -5,7 +5,10 @@
// TODO: set this for entire crate when possible
#![deny(unsafe_op_in_unsafe_fn)]
use crate::platform::{self, types::*};
use crate::platform::{
self,
types::{c_char, c_int},
};
//TODO: Consider removing, provided for compatibility with newlib
#[unsafe(no_mangle)]
+4 -1
View File
@@ -6,7 +6,10 @@
use crate::{
header::{ctype, errno::*, stdlib::*},
platform::{self, types::*},
platform::{
self,
types::{c_char, c_int, c_long, intmax_t, uintmax_t},
},
};
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/imaxabs.html>.
+5 -2
View File
@@ -3,8 +3,11 @@
//! Non-POSIX, see <https://man7.org/linux/man-pages/man3/posix_memalign.3.html>.
use crate::{
header::errno::*,
platform::{self, ERRNO, Pal, Sys, types::*},
header::errno::ENOMEM,
platform::{
self, ERRNO, Pal, Sys,
types::{c_void, size_t},
},
};
use core::ptr;