sysconf_unsupported.go 469 B

1234567891011121314151617
  1. // Copyright 2021 Tobias Klauser. 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 && !linux && !netbsd && !openbsd && !solaris
  5. // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
  6. package sysconf
  7. import (
  8. "fmt"
  9. "runtime"
  10. )
  11. func sysconf(name int) (int64, error) {
  12. return -1, fmt.Errorf("unsupported on %s", runtime.GOOS)
  13. }