Skip to content

Commit 962e262

Browse files
committed
Auto merge of #2737 - devnexen:pr_set_vma_linux, r=Amanieu
Adds to PR_SET_VMA/PR_SET_VMA_ANON_NAME to Linux.
2 parents 02bdb0a + 2798840 commit 962e262

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,6 +3314,8 @@ fn test_linux(target: &str) {
33143314
"FUSE_SUPER_MAGIC" => true,
33153315
// linux 5.12 min
33163316
"MPOL_F_NUMA_BALANCING" => true,
3317+
// linux 5.17 min
3318+
"PR_SET_VMA" | "PR_SET_VMA_ANON_NAME" => true,
33173319

33183320
_ => false,
33193321
}

libc-test/semver/linux-gnu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ O_FSYNC
356356
PF_IB
357357
PF_MPLS
358358
PF_XDP
359+
PR_SET_VMA
360+
PR_SET_VMA_ANON_NAME
359361
PROC_SUPER_MAGIC
360362
PTHREAD_MUTEX_ADAPTIVE_NP
361363
PTRACE_GET_SYSCALL_INFO

libc-test/semver/linux-musl.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ LIO_WRITE
2020
PF_IB
2121
PF_MPLS
2222
PF_XDP
23+
PR_SET_VMA
24+
PR_SET_VMA_ANON_NAME
2325
adjtimex
2426
aio_cancel
2527
aio_error

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,9 @@ pub const PR_CAP_AMBIENT_RAISE: ::c_int = 2;
17761776
pub const PR_CAP_AMBIENT_LOWER: ::c_int = 3;
17771777
pub const PR_CAP_AMBIENT_CLEAR_ALL: ::c_int = 4;
17781778

1779+
pub const PR_SET_VMA: ::c_int = 0x53564d41;
1780+
pub const PR_SET_VMA_ANON_NAME: ::c_int = 0;
1781+
17791782
pub const GRND_NONBLOCK: ::c_uint = 0x0001;
17801783
pub const GRND_RANDOM: ::c_uint = 0x0002;
17811784

0 commit comments

Comments
 (0)