Skip to content

Conversation

@rustbot
Copy link
Collaborator

rustbot commented Mar 9, 2025

r? @tgross35

rustbot has assigned @tgross35.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@tgross35
Copy link
Contributor

proc_fdinfo can go in s! rather than s_no_extra_traits! to make the error go away.

Any chance these headers or at least a manpage are online for a permalink? I didn't find anything from a quick search.

@@ -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;
Copy link
Contributor

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?

Copy link
Member Author

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!

@GuillaumeGomez
Copy link
Member Author

@GuillaumeGomez
Copy link
Member Author

Updated.

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tgross35 tgross35 added this pull request to the merge queue Mar 11, 2025
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Mar 11, 2025
Merged via the queue into rust-lang:main with commit 1c65dda Mar 11, 2025
43 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Mar 11, 2025
(backport <rust-lang#4310>)
(cherry picked from commit f3c54e8)
@tgross35 tgross35 mentioned this pull request Mar 11, 2025
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Mar 11, 2025
@GuillaumeGomez GuillaumeGomez deleted the mac-proc-info branch March 11, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-macos O-unix S-waiting-on-author stable-applied This PR has been cherry-picked to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants