authorgravatar for cato@timeanddate.comCato Auestad <cato@timeanddate.com> 2020-05-01 06:24:52+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-01 14:28:33-04:00
log5418efa1e584538dd32589c274498de9ec412162
tree8aa99f739cded80aceced47481f20ef6f28992ba
parentb23a87953a7a4030af3d9acf8deacb85162dd275

Added socket bits for Darwin


1 files changed, 22 insertions(+), 0 deletions(-)

lib/std/os/bits/darwin.zig+22
...@@ -771,6 +771,28 @@ pub const IPPROTO_UDP = 17;...@@ -771,6 +771,28 @@ pub const IPPROTO_UDP = 17;
771pub const IPPROTO_IP = 0;771pub const IPPROTO_IP = 0;
772pub const IPPROTO_IPV6 = 41;772pub const IPPROTO_IPV6 = 41;
773773
774pub const SOL_SOCKET = 0xffff;
775
776pub const SO_DEBUG = 0x0001;
777pub const SO_ACCEPTCONN = 0x0002;
778pub const SO_REUSEADDR = 0x0004;
779pub const SO_KEEPALIVE = 0x0008;
780pub const SO_DONTROUTE = 0x0010;
781pub const SO_BROADCAST = 0x0020;
782pub const SO_USELOOPBACK = 0x0040;
783pub const SO_LINGER = 0x1080;
784pub const SO_OOBINLINE = 0x0100;
785pub const SO_REUSEPORT = 0x0200;
786pub const SO_ACCEPTFILTER = 0x1000;
787pub const SO_SNDBUF = 0x1001;
788pub const SO_RCVBUF = 0x1002;
789pub const SO_SNDLOWAT = 0x1003;
790pub const SO_RCVLOWAT = 0x1004;
791pub const SO_SNDTIMEO = 0x1005;
792pub const SO_RCVTIMEO = 0x1006;
793pub const SO_ERROR = 0x1007;
794pub const SO_TYPE = 0x1008;
795
774fn wstatus(x: u32) u32 {796fn wstatus(x: u32) u32 {
775 return x & 0o177;797 return x & 0o177;
776}798}