sysvshm_linux.go 521 B

1234567891011121314151617181920
  1. // Copyright 2021 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build linux
  5. package unix
  6. import "runtime"
  7. // SysvShmCtl performs control operations on the shared memory segment
  8. // specified by id.
  9. func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) {
  10. if runtime.GOARCH == "arm" ||
  11. runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
  12. cmd |= ipc_64
  13. }
  14. return shmctl(id, cmd, desc)
  15. }