go sysvshm_linux 源码

  • 2022-07-15
  • 浏览 (843)

golang sysvshm_linux 代码

文件路径:/src/cmd/vendor/golang.org/x/sys/unix/sysvshm_linux.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
// +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)
}

相关信息

go 源码目录

相关文章

go affinity_linux 源码

go aliases 源码

go bluetooth_linux 源码

go cap_freebsd 源码

go constants 源码

go dev_aix_ppc 源码

go dev_aix_ppc64 源码

go dev_darwin 源码

go dev_dragonfly 源码

go dev_freebsd 源码

0  赞