Skip to content

Commit b01a39a

Browse files
committed
Auto merge of #2840 - devnexen:linux_prctl_update3, r=JohnTitor
prctl process timing control options for android.
2 parents 888c473 + 3c93c40 commit b01a39a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

libc-test/semver/android.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,12 +1712,15 @@ POSIX_FADV_NORMAL
17121712
POSIX_FADV_RANDOM
17131713
POSIX_FADV_SEQUENTIAL
17141714
POSIX_FADV_WILLNEED
1715-
PR_SET_VMA
1716-
PR_SET_VMA_ANON_NAME
1717-
PR_SET_NO_NEW_PRIVS
17181715
PR_GET_NO_NEW_PRIVS
17191716
PR_GET_SECCOMP
1717+
PR_GET_TIMING
1718+
PR_SET_NO_NEW_PRIVS
17201719
PR_SET_SECCOMP
1720+
PR_TIMING_STATISTICAL
1721+
PR_TIMING_TIMESTAMP
1722+
PR_SET_VMA
1723+
PR_SET_VMA_ANON_NAME
17211724
PRIO_MAX
17221725
PRIO_MIN
17231726
PRIO_PGRP

src/unix/linux_like/android/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,6 +2502,10 @@ pub const PR_SET_NO_NEW_PRIVS: ::c_int = 38;
25022502
pub const PR_GET_NO_NEW_PRIVS: ::c_int = 39;
25032503
pub const PR_GET_SECCOMP: ::c_int = 21;
25042504
pub const PR_SET_SECCOMP: ::c_int = 22;
2505+
pub const PR_GET_TIMING: ::c_int = 13;
2506+
pub const PR_SET_TIMING: ::c_int = 14;
2507+
pub const PR_TIMING_STATISTICAL: ::c_int = 0;
2508+
pub const PR_TIMING_TIMESTAMP: ::c_int = 1;
25052509

25062510
// linux/if_addr.h
25072511
pub const IFA_UNSPEC: ::c_ushort = 0;

0 commit comments

Comments
 (0)