Move prctl to Linux specific shims.
This commit is contained in:
parent
d6c03926ab
commit
69df2e19de
2 changed files with 7 additions and 5 deletions
|
|
@ -313,11 +313,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
assert_eq!(args.len(), 0);
|
||||
this.pthread_self(dest)?;
|
||||
}
|
||||
"prctl" => {
|
||||
assert_eq!(args.len(), 5);
|
||||
let result = this.prctl(args[0], args[1], args[2], args[3], args[4])?;
|
||||
this.write_scalar(Scalar::from_i32(result), dest)?;
|
||||
}
|
||||
"sched_yield" => {
|
||||
assert_eq!(args.len(), 0);
|
||||
let result = this.sched_yield()?;
|
||||
|
|
|
|||
|
|
@ -75,6 +75,13 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
this.write_null(dest)?;
|
||||
}
|
||||
|
||||
// Threading
|
||||
"prctl" => {
|
||||
assert_eq!(args.len(), 5);
|
||||
let result = this.prctl(args[0], args[1], args[2], args[3], args[4])?;
|
||||
this.write_scalar(Scalar::from_i32(result), dest)?;
|
||||
}
|
||||
|
||||
// Dynamically invoked syscalls
|
||||
"syscall" => {
|
||||
let sys_getrandom = this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue