Skip to content

Commit

Permalink
Move over relevant changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshia001 committed Aug 29, 2024
1 parent 6ed8750 commit 7a75fd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/wasi/wasi.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub type sigset_t = c_uchar;
pub type sigset_t = ::c_uchar;
8 changes: 0 additions & 8 deletions src/wasi/wasix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@ extern "C" {
old: *mut sigaction,
_external_handler: ::Option<unsafe extern "C" fn(::c_int)>,
) -> ::c_int;
fn __wasm_signal(signum: ::c_int);
}

pub unsafe fn sigaction(sig: ::c_int, sa: *const sigaction, old: *mut sigaction) -> ::c_int {
Expand All @@ -975,13 +974,6 @@ extern "C" fn default_handler(sig: ::c_int) {
}
}

mod wasm_signal {
#[no_mangle]
extern "C" fn __wasm_signal(signum: ::c_int) {
unsafe { super::__wasm_signal(signum) };
}
}

/// mocked functions that dont do anything in WASI land
pub fn mlock(_addr: *const ::c_void, _len: ::size_t) -> ::c_int {
0
Expand Down

0 comments on commit 7a75fd9

Please sign in to comment.