github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/third_party/gotools/go/ssa/interp/external_darwin.go (about)

     1  // Copyright 2014 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  
     5  // +build darwin
     6  
     7  package interp
     8  
     9  import "syscall"
    10  
    11  func init() {
    12  	externals["syscall.Sysctl"] = ext۰syscall۰Sysctl
    13  }
    14  
    15  func ext۰syscall۰Sysctl(fr *frame, args []value) value {
    16  	r, err := syscall.Sysctl(args[0].(string))
    17  	return tuple{r, wrapError(err)}
    18  }