Skip to content
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

Add documentation for kinfo_proc fields #2552

Merged
merged 1 commit into from Nov 19, 2021

Conversation

GuillaumeGomez
Copy link
Member

It makes it much easier considering the huge number of fields...

@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

@GuillaumeGomez
Copy link
Member Author

r? @JohnTitor

@rust-highfive rust-highfive assigned JohnTitor and unassigned Amanieu Nov 18, 2021
@JohnTitor
Copy link
Member

I've moved the declaration in #2545 so this will need a rebase after it's merged.

@GuillaumeGomez
Copy link
Member Author

Ah interesting, you did what I did originally but I thought it wasn't worth it because only a few fields changed. Makes more sense though. I'll wait for github to tell me that it's not mergeable then. Thanks for the head up!

@bors
Copy link
Contributor

bors commented Nov 18, 2021

☔ The latest upstream changes (presumably #2545) made this pull request unmergeable. Please resolve the merge conflicts.

@GuillaumeGomez
Copy link
Member Author

CI is happy.

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Thanks!

@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Nov 19, 2021

📌 Commit 0785135 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Nov 19, 2021

⌛ Testing commit 0785135 with merge 53dfd6f...

@bors
Copy link
Contributor

bors commented Nov 19, 2021

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 53dfd6f to master...

@bors bors merged commit 53dfd6f into rust-lang:master Nov 19, 2021
@GuillaumeGomez GuillaumeGomez deleted the kinfo_proc-doc branch November 19, 2021 08:55
Comment on lines +108 to +110
/// Text size (pages) XXX.
pub ki_tsize: ::segsz_t,
/// Data size (pages) XXX.
Copy link
Contributor

Choose a reason for hiding this comment

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

What do these "XXX" markers mean here? Noticed them while doing a review for cargo-crev, got curious :) They're also present in all other versions of this struct.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have absolutely no idea. I took the comment as is.

pub ki_numthreads: ::c_int,
// Thread ID.
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be a doc comment? (Ditto for other versions of this struct)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it should. Wanna send a PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, here it is: #2563

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

Minoru added a commit to Minoru/libc that referenced this pull request Nov 22, 2021
bors added a commit that referenced this pull request Nov 23, 2021
bors added a commit that referenced this pull request Nov 23, 2021
bors added a commit that referenced this pull request Nov 23, 2021
bors added a commit that referenced this pull request Nov 24, 2021
GuillaumeGomez pushed a commit to GuillaumeGomez/libc that referenced this pull request Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants