From 8b7c3507fe0c8f6e921ee2de2c170ef93eeb7275 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 24 Oct 2021 13:14:37 +0200 Subject: upstep bun to v1.0.14 (#291) --- vendor/golang.org/x/sys/unix/sysvshm_linux.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vendor/golang.org/x/sys/unix/sysvshm_linux.go (limited to 'vendor/golang.org/x/sys/unix/sysvshm_linux.go') diff --git a/vendor/golang.org/x/sys/unix/sysvshm_linux.go b/vendor/golang.org/x/sys/unix/sysvshm_linux.go new file mode 100644 index 000000000..2c3a4437f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sysvshm_linux.go @@ -0,0 +1,21 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux +// +build linux + +package unix + +import "runtime" + +// SysvShmCtl performs control operations on the shared memory segment +// specified by id. +func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { + if runtime.GOARCH == "arm" || + runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { + cmd |= ipc_64 + } + + return shmctl(id, cmd, desc) +} -- cgit v1.2.3