mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Move prctl to Linux specific shims.
This commit is contained in:
@@ -313,11 +313,6 @@ fn emulate_foreign_item_by_name(
|
||||
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 @@ fn emulate_foreign_item_by_name(
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user