mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Improved syscall220 debug
This commit is contained in:
parent
5d93d9a904
commit
0b416e14c3
@ -631,11 +631,6 @@ pub fn ___syscall218(_ctx: &mut Ctx, _one: i32, _two: i32) -> i32 {
|
|||||||
-1
|
-1
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn ___syscall220(_ctx: &mut Ctx, _one: i32, _two: i32) -> i32 {
|
|
||||||
debug!("emscripten::___syscall220");
|
|
||||||
-1
|
|
||||||
}
|
|
||||||
|
|
||||||
// fcntl64
|
// fcntl64
|
||||||
pub fn ___syscall221(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_int {
|
pub fn ___syscall221(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_int {
|
||||||
debug!("emscripten::___syscall221 (fcntl64) {}", _which);
|
debug!("emscripten::___syscall221 (fcntl64) {}", _which);
|
||||||
|
@ -74,6 +74,7 @@ use libc::{
|
|||||||
SO_REUSEADDR,
|
SO_REUSEADDR,
|
||||||
TIOCGWINSZ,
|
TIOCGWINSZ,
|
||||||
};
|
};
|
||||||
|
use std::ffi::CStr;
|
||||||
use wasmer_runtime_core::vm::Ctx;
|
use wasmer_runtime_core::vm::Ctx;
|
||||||
|
|
||||||
use crate::utils;
|
use crate::utils;
|
||||||
@ -878,6 +879,7 @@ pub fn ___syscall220(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 {
|
|||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
*(dirp.add(pos + 19 + i) as *mut i8) = 0 as i8;
|
*(dirp.add(pos + 19 + i) as *mut i8) = 0 as i8;
|
||||||
|
debug!(" => file {}", CStr::from_ptr((dirp.add(pos + 19) as *const i8)).to_str().unwrap());
|
||||||
}
|
}
|
||||||
pos += offset;
|
pos += offset;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user