Skip to content

Commit 24c3b90

Browse files
committed
Auto merge of #2375 - devnexen:android_prctl_vma_flags, r=JohnTitor
android prctl adding special flags
2 parents 8d3dfa9 + e86e0c1 commit 24c3b90

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libc-test/semver/android.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,8 @@ POSIX_FADV_NORMAL
16151615
POSIX_FADV_RANDOM
16161616
POSIX_FADV_SEQUENTIAL
16171617
POSIX_FADV_WILLNEED
1618+
PR_SET_VMA
1619+
PR_SET_VMA_ANON_NAME
16181620
PRIO_MAX
16191621
PRIO_MIN
16201622
PRIO_PGRP

src/unix/linux_like/android/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,10 @@ pub const PF_VSOCK: ::c_int = AF_VSOCK;
24382438
pub const PROP_VALUE_MAX: ::c_int = 92;
24392439
pub const PROP_NAME_MAX: ::c_int = 32;
24402440

2441+
// sys/prctl.h
2442+
pub const PR_SET_VMA: ::c_int = 0x53564d41;
2443+
pub const PR_SET_VMA_ANON_NAME: ::c_int = 0;
2444+
24412445
f! {
24422446
pub fn CMSG_NXTHDR(mhdr: *const msghdr,
24432447
cmsg: *const cmsghdr) -> *mut cmsghdr {

0 commit comments

Comments
 (0)