-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add missing macos proc types and constants #4310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Any chance these headers or at least a manpage are online for a permalink? I didn't find anything from a quick search. |
src/unix/bsd/apple/mod.rs
Outdated
@@ -4968,6 +4973,19 @@ 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_PIDLISTFDS: c_int = 1; | |||
pub const PROC_PIDLISTFD_SIZE: c_int = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be core::mem::size_of::<proc_fdinfo>()
to match the headers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't realize the MSRV was updated, then definitely!
I always need to remember to search xnu, looks like the sources are https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/sys/proc_info.h#L673-L676, https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/sys/proc_info.h#L718-L719, and https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/sys/proc_info.h#L661-L671. Is there any reason to omit |
My sources must be older, they weren't listed. Adding them. |
c3214fa
to
708b019
Compare
708b019
to
f3c54e8
Compare
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
(backport <rust-lang#4310>) (cherry picked from commit f3c54e8)
More items needed for
sysinfo
to be able to add a new feature.Sources: