We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d3470f commit 2efcdf4Copy full SHA for 2efcdf4
src/shims/unix/android/foreign_items.rs
@@ -35,8 +35,10 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
35
check_args_len("prctl", args, 1)?;
36
37
let id = this.read_scalar(&args[0])?.to_i32()?;
38
- let pr_set_name = this.eval_libc_i32("PR_SET_NAME");
39
- let pr_get_name = this.eval_libc_i32("PR_GET_NAME");
+ // FIXME: Use PR_SET_NAME and PR_GET_NAME constants when
+ // https://github.com/rust-lang/libc/pull/3941 lands.
40
+ let pr_set_name = 15_i32;
41
+ let pr_get_name = 16_i32;
42
43
let res = match id {
44
id if id == pr_set_name => {
0 commit comments