From 37df388d1f33f920cfe08e18247c9ed1699da6b0 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 7 Apr 2021 10:45:42 +0200 Subject: [PATCH] unix: add MCAST_* on zos Copied from golang.org/x/net/ipv6. This will allow to replace the socket option constants in that package with constants from x/sys/unix. Change-Id: Ie0ce8ac7a927418df6f6e793d626c425a1cf48ec Reviewed-on: https://go-review.googlesource.com/c/sys/+/307670 Trust: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- unix/zerrors_zos_s390x.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unix/zerrors_zos_s390x.go b/unix/zerrors_zos_s390x.go index c8c79090..4e87b4be 100644 --- a/unix/zerrors_zos_s390x.go +++ b/unix/zerrors_zos_s390x.go @@ -164,6 +164,12 @@ const ( MAP_PRIVATE = 0x1 // changes are private MAP_SHARED = 0x2 // changes are shared MAP_FIXED = 0x4 // place exactly + MCAST_JOIN_GROUP = 40 + MCAST_LEAVE_GROUP = 41 + MCAST_JOIN_SOURCE_GROUP = 42 + MCAST_LEAVE_SOURCE_GROUP = 43 + MCAST_BLOCK_SOURCE = 44 + MCAST_UNBLOCK_SOURCE = 45 MS_SYNC = 0x1 // msync - synchronous writes MS_ASYNC = 0x2 // asynchronous writes MS_INVALIDATE = 0x4 // invalidate mappings