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 CMSG macros #37

Merged
merged 5 commits into from Dec 13, 2022
Merged

Add CMSG macros #37

merged 5 commits into from Dec 13, 2022

Conversation

notgull
Copy link
Contributor

@notgull notgull commented Dec 6, 2022

This PR adds CMSG macros based off of the ones found here. I want to add sendmsg/recvmsg to Rustix, but I'd rather not deduplicate these functions there.

Copy link
Owner

@sunfishcode sunfishcode left a comment

Choose a reason for hiding this comment

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

Looks good! I think you're right, that having the CMSG_* equivalents live in this crate makes sense.

In case it's helpful, there was someone working on sendmsg/recvmsg in rustix earlier, but they didn't finish it; the work-in-progress branch is here: https://github.com/bytecodealliance/rustix/tree/sunfishcode/feat-send-recv-msg

That branch likely needs some merge conflict resolution at this point, and probably other work, so I don't know if it's better to start from there or to start new; you're welcome to do either.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@notgull
Copy link
Contributor Author

notgull commented Dec 13, 2022

@sunfishcode Are there any blockers to merging this PR?

@sunfishcode
Copy link
Owner

Ah, no, it looks good, I just didn't see the latest patches :-).

@sunfishcode sunfishcode merged commit b724f5a into sunfishcode:main Dec 13, 2022
@notgull notgull deleted the cmsg-macros branch December 13, 2022 18:13
@sunfishcode
Copy link
Owner

Published in 0.1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants