authorgravatar for semarie@online.frSébastien Marie <semarie@online.fr> 2020-11-10 05:24:03+00:00
committergravatar for semarie@online.frSébastien Marie <semarie@online.fr> 2020-11-10 05:24:03+00:00
loge4bc595bc6f4ffbfadf132778c4ca635e8e6f3e3
treeedfc5115617bb23b2f7f111f68351f0e8c54a487
parent17276df488caff7ff9fd9dbb7e7a9418e924ecc1

openbsd: add sockets constants


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

lib/std/os/bits/openbsd.zig+30
...@@ -468,6 +468,36 @@ pub const SOCK_SEQPACKET = 5;...@@ -468,6 +468,36 @@ pub const SOCK_SEQPACKET = 5;
468pub const SOCK_CLOEXEC = 0x8000;468pub const SOCK_CLOEXEC = 0x8000;
469pub const SOCK_NONBLOCK = 0x4000;469pub const SOCK_NONBLOCK = 0x4000;
470470
471pub const SO_DEBUG = 0x0001;
472pub const SO_ACCEPTCONN = 0x0002;
473pub const SO_REUSEADDR = 0x0004;
474pub const SO_KEEPALIVE = 0x0008;
475pub const SO_DONTROUTE = 0x0010;
476pub const SO_BROADCAST = 0x0020;
477pub const SO_USELOOPBACK = 0x0040;
478pub const SO_LINGER = 0x0080;
479pub const SO_OOBINLINE = 0x0100;
480pub const SO_REUSEPORT = 0x0200;
481pub const SO_TIMESTAMP = 0x0800;
482pub const SO_BINDANY = 0x1000;
483pub const SO_ZEROIZE = 0x2000;
484pub const SO_SNDBUF = 0x1001;
485pub const SO_RCVBUF = 0x1002;
486pub const SO_SNDLOWAT = 0x1003;
487pub const SO_RCVLOWAT = 0x1004;
488pub const SO_SNDTIMEO = 0x1005;
489pub const SO_RCVTIMEO = 0x1006;
490pub const SO_ERROR = 0x1007;
491pub const SO_TYPE = 0x1008;
492pub const SO_NETPROC = 0x1020;
493pub const SO_RTABLE = 0x1021;
494pub const SO_PEERCRED = 0x1022;
495pub const SO_SPLICE = 0x1023;
496pub const SO_DOMAIN = 0x1024;
497pub const SO_PROTOCOL = 0x1025;
498
499pub const SOL_SOCKET = 0xffff;
500
471pub const PF_UNSPEC = AF_UNSPEC;501pub const PF_UNSPEC = AF_UNSPEC;
472pub const PF_LOCAL = AF_LOCAL;502pub const PF_LOCAL = AF_LOCAL;
473pub const PF_UNIX = AF_UNIX;503pub const PF_UNIX = AF_UNIX;