Auto merge of #2472 - devnexen:macos_big_sur_update2, r=JohnTitor

darwin libproc Big Sur update.
This commit is contained in:
bors 2021-10-22 23:19:18 +00:00
commit 71b2de4681
2 changed files with 16 additions and 0 deletions

View file

@ -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
@ -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

View file

@ -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;
@ -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`].