syscall.go 446 B

12345678910111213
  1. // Copyright 2016 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 darwin || dragonfly || freebsd || netbsd || openbsd
  5. // +build darwin dragonfly freebsd netbsd openbsd
  6. package route
  7. import _ "unsafe" // for linkname
  8. //go:linkname sysctl syscall.sysctl
  9. func sysctl(mib []int32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error