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
Add CMSG macros #37
Conversation
There was a problem hiding this 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.
@sunfishcode Are there any blockers to merging this PR? |
Ah, no, it looks good, I just didn't see the latest patches :-). |
Published in 0.1.4. |
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.