Skip to content

Add a new ReturnFlags type for flags returned from recvmsg#1288

Merged
sunfishcode merged 10 commits intomainfrom
sunfishcode/return-flags
Jan 30, 2025
Merged

Add a new ReturnFlags type for flags returned from recvmsg#1288
sunfishcode merged 10 commits intomainfrom
sunfishcode/return-flags

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

RecvMsgReturn's flags field was previously RecvFlags, however recvmsg returns a different set of flags than that. To address that, add a new type, ReturnFlags, which contains the flags that are returned from recvmsg.

Fixes #1287.

`RecvMsgReturn`'s `flags` field was previously `RecvFlags`, however
`recvmsg` returns a different set of flags than that. To address that,
add a new type, `ReturnFlags`, which contains the flags that are
returned from `recvmsg`.

Fixes #1287.
 - Disable `RecvFlags::TRUNC` on Apple.
 - Check for `AF_UNIX` socket addresses with no paths on Apple.
@sunfishcode sunfishcode force-pushed the sunfishcode/return-flags branch from c5bbdd6 to 18753ea Compare January 29, 2025 19:57
@sunfishcode sunfishcode merged commit 253582d into main Jan 30, 2025
@sunfishcode sunfishcode deleted the sunfishcode/return-flags branch January 30, 2025 00:02
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.

Feature request: add missing RecvFlags for recvmsg

1 participant