idun/vendor/golang.org/x/sys/unix/sysvshm_linux.go
Renovate Bot a6c81531e4
Some checks failed
Dev Version / Release (push) Has been cancelled
chore(deps): update module golang.org/x/crypto to v0.27.0
2024-09-14 01:26:16 +00:00

20 lines
521 B
Go

// 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
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)
}