aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorSébastien Marie <semarie@online.fr>2020-11-10 05:24:03 +0000
committerSébastien Marie <semarie@online.fr>2020-11-10 05:24:03 +0000
commite4bc595bc6f4ffbfadf132778c4ca635e8e6f3e3 (patch)
treeedfc5115617bb23b2f7f111f68351f0e8c54a487 /lib/std
parent17276df488caff7ff9fd9dbb7e7a9418e924ecc1 (diff)
downloadzig-e4bc595bc6f4ffbfadf132778c4ca635e8e6f3e3.tar.gz
zig-e4bc595bc6f4ffbfadf132778c4ca635e8e6f3e3.zip
openbsd: add sockets constants
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/os/bits/openbsd.zig30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/std/os/bits/openbsd.zig b/lib/std/os/bits/openbsd.zig
index 0e66f14e39..5068bf56bf 100644
--- a/lib/std/os/bits/openbsd.zig
+++ b/lib/std/os/bits/openbsd.zig
@@ -468,6 +468,36 @@ pub const SOCK_SEQPACKET = 5;
pub const SOCK_CLOEXEC = 0x8000;
pub const SOCK_NONBLOCK = 0x4000;
+pub const SO_DEBUG = 0x0001;
+pub const SO_ACCEPTCONN = 0x0002;
+pub const SO_REUSEADDR = 0x0004;
+pub const SO_KEEPALIVE = 0x0008;
+pub const SO_DONTROUTE = 0x0010;
+pub const SO_BROADCAST = 0x0020;
+pub const SO_USELOOPBACK = 0x0040;
+pub const SO_LINGER = 0x0080;
+pub const SO_OOBINLINE = 0x0100;
+pub const SO_REUSEPORT = 0x0200;
+pub const SO_TIMESTAMP = 0x0800;
+pub const SO_BINDANY = 0x1000;
+pub const SO_ZEROIZE = 0x2000;
+pub const SO_SNDBUF = 0x1001;
+pub const SO_RCVBUF = 0x1002;
+pub const SO_SNDLOWAT = 0x1003;
+pub const SO_RCVLOWAT = 0x1004;
+pub const SO_SNDTIMEO = 0x1005;
+pub const SO_RCVTIMEO = 0x1006;
+pub const SO_ERROR = 0x1007;
+pub const SO_TYPE = 0x1008;
+pub const SO_NETPROC = 0x1020;
+pub const SO_RTABLE = 0x1021;
+pub const SO_PEERCRED = 0x1022;
+pub const SO_SPLICE = 0x1023;
+pub const SO_DOMAIN = 0x1024;
+pub const SO_PROTOCOL = 0x1025;
+
+pub const SOL_SOCKET = 0xffff;
+
pub const PF_UNSPEC = AF_UNSPEC;
pub const PF_LOCAL = AF_LOCAL;
pub const PF_UNIX = AF_UNIX;