Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (5)
......@@ -25,5 +25,8 @@ env_logger = { version = "0.11" }
hermit = { path = "../../hermit", default-features = false }
[features]
default = ["hermit/acpi", "hermit/dhcpv4", "hermit/fsgsbase", "hermit/pci", "hermit/pci-ids", "hermit/shell", "hermit/tcp"]
ci = []
\ No newline at end of file
default = ["hermit/acpi", "hermit/dhcpv4", "hermit/fsgsbase", "hermit/pci", "hermit/pci-ids", "hermit/tcp"]
ci = []
[target.'cfg(all(target_os = "hermit", target_arch = "x86_64"))'.dependencies]
hermit = { path = "../../hermit", default-features = false, features = ["shell"] }
......@@ -6,6 +6,7 @@
// working directory of the WASI application.
use std::cmp::Ordering;
use std::ffi::c_char;
use std::mem::MaybeUninit;
use std::sync::{Mutex, OnceLock};
use std::time::{Instant, SystemTime, UNIX_EPOCH};
......@@ -208,7 +209,7 @@ pub(crate) fn init<T>(linker: &mut wasmtime::Linker<T>) -> Result<()> {
c_path[..path.len()].copy_from_slice(path.as_bytes());
{
let raw_fd =
unsafe { hermit_abi::open(c_path.as_ptr() as *const i8, flags, 0) };
unsafe { hermit_abi::open(c_path.as_ptr() as *const c_char, flags, 0) };
let mut guard = FD.lock().unwrap();
for (i, entry) in guard.iter_mut().enumerate() {
if entry.is_none() {
......
Subproject commit 7e3a3d76b9ed1ea59ac3222bd7d34a284b4eff10
Subproject commit 12d4854554f8ec48fa66a8d282ebcf46b7bf9499
[toolchain]
channel = "nightly-2024-09-01"
channel = "nightly-2024-12-15"
components = [ "rust-src" ]