Skip to content

Commit 71b2de4

Browse files
committed
Auto merge of #2472 - devnexen:macos_big_sur_update2, r=JohnTitor
darwin libproc Big Sur update.
2 parents 77636bb + 34cefc8 commit 71b2de4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,9 @@ PRIO_DARWIN_BG
937937
PRIO_DARWIN_NONUI
938938
PRIO_DARWIN_PROCESS
939939
PRIO_DARWIN_THREAD
940+
PROC_CSM_ALL
941+
PROC_CSM_NOSMT
942+
PROC_CSM_TECS
940943
PROC_PIDTASKALLINFO
941944
PROC_PIDTASKINFO
942945
PROC_PIDTHREADINFO
@@ -1818,6 +1821,10 @@ proc_pidfdinfo
18181821
proc_pidfileportinfo
18191822
proc_pidpath
18201823
proc_regionfilename
1824+
proc_set_no_smt
1825+
proc_setthread_no_smt
1826+
proc_set_csm
1827+
proc_setthread_csm
18211828
proc_taskallinfo
18221829
proc_taskinfo
18231830
proc_threadinfo

src/unix/bsd/apple/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4302,6 +4302,9 @@ pub const PROC_PIDTASKINFO: ::c_int = 4;
43024302
pub const PROC_PIDTHREADINFO: ::c_int = 5;
43034303
pub const PROC_PIDVNODEPATHINFO: ::c_int = 9;
43044304
pub const PROC_PIDPATHINFO_MAXSIZE: ::c_int = 4096;
4305+
pub const PROC_CSM_ALL: ::c_uint = 0x0001;
4306+
pub const PROC_CSM_NOSMT: ::c_uint = 0x0002;
4307+
pub const PROC_CSM_TECS: ::c_uint = 0x0004;
43054308
pub const MAXCOMLEN: usize = 16;
43064309
pub const MAXTHREADNAMESIZE: usize = 64;
43074310

@@ -5249,6 +5252,12 @@ extern "C" {
52495252
pub fn proc_kmsgbuf(buffer: *mut ::c_void, buffersize: u32) -> ::c_int;
52505253
pub fn proc_libversion(major: *mut ::c_int, mintor: *mut ::c_int) -> ::c_int;
52515254
pub fn proc_pid_rusage(pid: ::c_int, flavor: ::c_int, buffer: *mut rusage_info_t) -> ::c_int;
5255+
5256+
// Available from Big Sur
5257+
pub fn proc_set_no_smt() -> ::c_int;
5258+
pub fn proc_setthread_no_smt() -> ::c_int;
5259+
pub fn proc_set_csm(flags: u32) -> ::c_int;
5260+
pub fn proc_setthread_csm(flags: u32) -> ::c_int;
52525261
/// # Notes
52535262
///
52545263
/// `id` is of type [`uuid_t`].

0 commit comments

Comments
 (0)