Skip to content

Commit

Permalink
Auto merge of #2840 - devnexen:linux_prctl_update3, r=JohnTitor
Browse files Browse the repository at this point in the history
prctl process timing control options for android.
  • Loading branch information
bors committed Jul 7, 2022
2 parents 888c473 + 3c93c40 commit b01a39a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libc-test/semver/android.txt
Expand Up @@ -1712,12 +1712,15 @@ POSIX_FADV_NORMAL
POSIX_FADV_RANDOM
POSIX_FADV_SEQUENTIAL
POSIX_FADV_WILLNEED
PR_SET_VMA
PR_SET_VMA_ANON_NAME
PR_SET_NO_NEW_PRIVS
PR_GET_NO_NEW_PRIVS
PR_GET_SECCOMP
PR_GET_TIMING
PR_SET_NO_NEW_PRIVS
PR_SET_SECCOMP
PR_TIMING_STATISTICAL
PR_TIMING_TIMESTAMP
PR_SET_VMA
PR_SET_VMA_ANON_NAME
PRIO_MAX
PRIO_MIN
PRIO_PGRP
Expand Down
4 changes: 4 additions & 0 deletions src/unix/linux_like/android/mod.rs
Expand Up @@ -2502,6 +2502,10 @@ pub const PR_SET_NO_NEW_PRIVS: ::c_int = 38;
pub const PR_GET_NO_NEW_PRIVS: ::c_int = 39;
pub const PR_GET_SECCOMP: ::c_int = 21;
pub const PR_SET_SECCOMP: ::c_int = 22;
pub const PR_GET_TIMING: ::c_int = 13;
pub const PR_SET_TIMING: ::c_int = 14;
pub const PR_TIMING_STATISTICAL: ::c_int = 0;
pub const PR_TIMING_TIMESTAMP: ::c_int = 1;

// linux/if_addr.h
pub const IFA_UNSPEC: ::c_ushort = 0;
Expand Down

0 comments on commit b01a39a

Please sign in to comment.