Move Darwin MSG_NOSIGNAL to core:os

This commit is contained in:
Feoramund committed 2024-08-05 12:49:12 -04:00
1 parent eba0774bf3
commit 3512d7c672
2 files changed
+6 -6

No files matched your search

+4
View File
@@ -492,6 +492,10 @@ in6_addr :: struct #packed {
s6_addr: [16]u8,
}
// https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/bsd/sys/socket.h#L1025-L1027
// Prevent the raising of SIGPIPE on writing to a closed network socket.
MSG_NOSIGNAL :: 0x80000
SIOCGIFFLAG :: enum c.int {
UP = 0, /* Interface is up. */
BROADCAST = 1, /* Broadcast address valid. */