Skip to content

Commit 2efcdf4

Browse files
committed
Used hardcoded constants
1 parent 6d3470f commit 2efcdf4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/shims/unix/android/foreign_items.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
3535
check_args_len("prctl", args, 1)?;
3636

3737
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");
38+
// FIXME: Use PR_SET_NAME and PR_GET_NAME constants when
39+
// https://github.com/rust-lang/libc/pull/3941 lands.
40+
let pr_set_name = 15_i32;
41+
let pr_get_name = 16_i32;
4042

4143
let res = match id {
4244
id if id == pr_set_name => {

0 commit comments

Comments
 (0)