Skip to content

Commit

Permalink
Auto merge of #2472 - devnexen:macos_big_sur_update2, r=JohnTitor
Browse files Browse the repository at this point in the history
darwin libproc Big Sur update.
  • Loading branch information
bors committed Oct 22, 2021
2 parents 77636bb + 34cefc8 commit 71b2de4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,9 @@ PRIO_DARWIN_BG
PRIO_DARWIN_NONUI
PRIO_DARWIN_PROCESS
PRIO_DARWIN_THREAD
PROC_CSM_ALL
PROC_CSM_NOSMT
PROC_CSM_TECS
PROC_PIDTASKALLINFO
PROC_PIDTASKINFO
PROC_PIDTHREADINFO
Expand Down Expand Up @@ -1818,6 +1821,10 @@ proc_pidfdinfo
proc_pidfileportinfo
proc_pidpath
proc_regionfilename
proc_set_no_smt
proc_setthread_no_smt
proc_set_csm
proc_setthread_csm
proc_taskallinfo
proc_taskinfo
proc_threadinfo
Expand Down
9 changes: 9 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,9 @@ pub const PROC_PIDTASKINFO: ::c_int = 4;
pub const PROC_PIDTHREADINFO: ::c_int = 5;
pub const PROC_PIDVNODEPATHINFO: ::c_int = 9;
pub const PROC_PIDPATHINFO_MAXSIZE: ::c_int = 4096;
pub const PROC_CSM_ALL: ::c_uint = 0x0001;
pub const PROC_CSM_NOSMT: ::c_uint = 0x0002;
pub const PROC_CSM_TECS: ::c_uint = 0x0004;
pub const MAXCOMLEN: usize = 16;
pub const MAXTHREADNAMESIZE: usize = 64;

Expand Down Expand Up @@ -5249,6 +5252,12 @@ extern "C" {
pub fn proc_kmsgbuf(buffer: *mut ::c_void, buffersize: u32) -> ::c_int;
pub fn proc_libversion(major: *mut ::c_int, mintor: *mut ::c_int) -> ::c_int;
pub fn proc_pid_rusage(pid: ::c_int, flavor: ::c_int, buffer: *mut rusage_info_t) -> ::c_int;

// Available from Big Sur
pub fn proc_set_no_smt() -> ::c_int;
pub fn proc_setthread_no_smt() -> ::c_int;
pub fn proc_set_csm(flags: u32) -> ::c_int;
pub fn proc_setthread_csm(flags: u32) -> ::c_int;
/// # Notes
///
/// `id` is of type [`uuid_t`].
Expand Down

0 comments on commit 71b2de4

Please sign in to comment.