pub const SOCK = struct 4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731pub const SOCK = struct {
pub const STREAM = if (is_mips) 2 else 1;
pub const DGRAM = if (is_mips) 1 else 2;
pub const RAW = 3;
pub const RDM = 4;
pub const SEQPACKET = 5;
pub const DCCP = 6;
pub const PACKET = 10;
pub const CLOEXEC = if (is_sparc)
0o20000000
else if (native_arch == .alpha)
0o10000000
else
0o2000000;
pub const NONBLOCK = if (is_mips)
0o200
else if (is_sparc)
0o40000
else if (is_hppa or native_arch == .alpha)
0x40000000
else
0o4000;
}