Add missing macos proc types and constants#4310
Conversation
|
Any chance these headers or at least a manpage are online for a permalink? I didn't find anything from a quick search. |
| 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.
Can this be core::mem::size_of::<proc_fdinfo>() to match the headers?
There was a problem hiding this comment.
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. |
(backport <rust-lang#4310>) (cherry picked from commit f3c54e8)
More items needed for
sysinfoto be able to add a new feature.Sources: