Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions c-scape/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ unsafe extern "C" fn syscall(number: c_long, mut args: ...) -> *mut c_void {
let flags = args.arg::<c_int>();
without_provenance_mut(libc::pipe2(pipefd, flags) as isize as usize)
}
libc::SYS_gettid => {
without_provenance_mut(rustix::thread::gettid().as_raw_nonzero().get() as _)
}
_ => unimplemented!(
"syscall({:?}); maybe try enabling the \"extra-syscalls\" feature",
number
Expand Down