arpa_inet and semaphore header cleanup
This commit is contained in:
@@ -13,11 +13,14 @@ use core::{
|
||||
use crate::{
|
||||
c_str::CStr,
|
||||
header::{
|
||||
errno::*,
|
||||
errno::{EAFNOSUPPORT, ENOSPC},
|
||||
netinet_in::{INADDR_NONE, in_addr, in_addr_t, ntohl},
|
||||
sys_socket::{constants::*, socklen_t},
|
||||
sys_socket::{constants::AF_INET, socklen_t},
|
||||
},
|
||||
platform::{
|
||||
self,
|
||||
types::{c_char, c_int, c_void},
|
||||
},
|
||||
platform::{self, types::*},
|
||||
raw_cell::RawCell,
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
use crate::{
|
||||
header::time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec},
|
||||
platform::types::*,
|
||||
platform::types::{c_char, c_int, c_long, c_uint, clockid_t},
|
||||
};
|
||||
|
||||
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/semaphore.h.html>.
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ use crate::{
|
||||
time::timespec,
|
||||
},
|
||||
out::Out,
|
||||
platform::{Pal, Sys, types::*},
|
||||
platform::{Pal, Sys, types::c_int},
|
||||
};
|
||||
use core::{
|
||||
mem::MaybeUninit,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
use crate::{
|
||||
header::time::{CLOCK_MONOTONIC, clock_gettime, timespec},
|
||||
platform::types::*,
|
||||
platform::types::{c_uint, clockid_t},
|
||||
};
|
||||
|
||||
use core::sync::atomic::{AtomicU32, Ordering};
|
||||
|
||||
Reference in New Issue
Block a user