Skip to content

c.darwin: define MSG for macos - #24224

Merged
alexrp merged 3 commits into
ziglang:masterfrom
dacheng-zig:dacheng/darwin-MSG
Jun 24, 2025
Merged

c.darwin: define MSG for macos#24224
alexrp merged 3 commits into
ziglang:masterfrom
dacheng-zig:dacheng/darwin-MSG

Conversation

@dacheng-gao

Copy link
Copy Markdown
Contributor

This fixes #24223

Comment thread lib/std/c.zig Outdated
Comment thread lib/std/c/darwin.zig
/// do not generate SIGPIPE on EOF
pub const NOSIGNAL = 0x80000;
/// Inherit upcall in sock_accept
pub const USEUPCALL = 0x80000000;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where is this one from? I don't see it in our vendored lib/libc/include/any-macos-any/sys/socket.h.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@linusg any idea why we don't have this in our vendored headers yet?

@alexrp alexrp self-assigned this Jun 20, 2025
dacheng-gao and others added 3 commits June 20, 2025 16:19
@alexrp
alexrp merged commit 35329b5 into ziglang:master Jun 24, 2025
@alexrp alexrp removed their assignment Jun 24, 2025
@dacheng-gao
dacheng-gao deleted the dacheng/darwin-MSG branch June 24, 2025 14:06
dasimmet pushed a commit to dasimmet/zig that referenced this pull request Aug 4, 2025
* c.darwin: define MSG for macos

* darwin: add series os name

* Update lib/std/c.zig

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>

---------

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
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.

posix.MSG definition for macos is missing

2 participants