go syscall_aix_gccgo 源码

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

golang syscall_aix_gccgo 代码

文件路径:/src/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go

// Copyright 2020 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.

// Recreate a getsystemcfg syscall handler instead of
// using the one provided by x/sys/unix to avoid having
// the dependency between them. (See golang.org/issue/32102)
// Moreover, this file will be used during the building of
// gccgo's libgo and thus must not used a CGo method.

//go:build aix && gccgo
// +build aix,gccgo

package cpu

import (
	"syscall"
)

//extern getsystemcfg
func gccgoGetsystemcfg(label uint32) (r uint64)

func callgetsystemcfg(label int) (r1 uintptr, e1 syscall.Errno) {
	r1 = uintptr(gccgoGetsystemcfg(uint32(label)))
	e1 = syscall.GetErrno()
	return
}

相关信息

go 源码目录

相关文章

go byteorder 源码

go cpu 源码

go cpu_aix 源码

go cpu_arm 源码

go cpu_arm64 源码

go cpu_gc_arm64 源码

go cpu_gc_s390x 源码

go cpu_gc_x86 源码

go cpu_gccgo_arm64 源码

go cpu_gccgo_s390x 源码

0  赞