Skip to content

Conversation

@tgross35
Copy link
Contributor

@tgross35 tgross35 commented Jul 8, 2025

Move struct msghdr, struct cmsghdr, sendmmsg, and recvmmsg over
at this time, as well as two SOCK_* constants that were in the musl
module.

Link: https://github.com/kraj/musl/blob/9f204467e88c75e36105d1359951c5857c20fe0b/include/sys/socket.h

Copy link
Contributor

@neuschaefer neuschaefer left a comment

Choose a reason for hiding this comment

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

I like the direction of this reorganization!

@@ -0,0 +1,4 @@
//! This directory maps to `include/uapi` in the Linux source tree.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, such a comment is good to have

@@ -0,0 +1,5 @@
mod arch;
Copy link
Contributor

@neuschaefer neuschaefer Aug 14, 2025

Choose a reason for hiding this comment

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

This could use a comment that mentions:

  • this is musl-libc
  • how it relates to the musl-libc source tree

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has some much more detailed comments now

@tgross35 tgross35 force-pushed the libc-reorg-musl-socket branch 2 times, most recently from 3924af7 to 9fb182e Compare October 30, 2025 19:43
@rustbot rustbot added the O-mips label Oct 30, 2025
@tgross35 tgross35 force-pushed the libc-reorg-musl-socket branch 3 times, most recently from bcb9805 to f6b6a7d Compare October 30, 2025 21:37
Move `struct msghdr`, `struct cmsghdr`, `sendmmsg`, and `recvmmsg` over
at this time, as well as two `SOCK_*` constants that were in the musl
module.

Link: https://github.com/kraj/musl/blob/9f204467e88c75e36105d1359951c5857c20fe0b/include/sys/socket.h
@tgross35 tgross35 force-pushed the libc-reorg-musl-socket branch from f6b6a7d to 4cff0a6 Compare October 30, 2025 21:38
@tgross35 tgross35 changed the title Source reorganization of musl socket.h musl: Switch to the new structure for socket.h Oct 30, 2025
@tgross35 tgross35 marked this pull request as ready for review October 30, 2025 21:42
@tgross35
Copy link
Contributor Author

Thank you for taking a look @neuschaefer! I think at this point the basic structure is probably there enough to start actually moving things to these modules.

@tgross35 tgross35 enabled auto-merge October 30, 2025 21:44
@tgross35 tgross35 added this pull request to the merge queue Oct 30, 2025
Merged via the queue into rust-lang:main with commit 564e0ef Oct 30, 2025
49 of 51 checks passed
@tgross35 tgross35 deleted the libc-reorg-musl-socket branch October 30, 2025 22:14
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.

3 participants