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