sysconf_solaris.go 320 B

1234567891011121314
  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. package sysconf
  5. import "golang.org/x/sys/unix"
  6. func sysconf(name int) (int64, error) {
  7. if name < 0 {
  8. return -1, errInvalid
  9. }
  10. return unix.Sysconf(name)
  11. }