blob: 443b21439dd458829ca5a29a893094de04622976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright 2021 Tobias Klauser. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sysconf
import "golang.org/x/sys/unix"
func sysconf(name int) (int64, error) {
if name < 0 {
return -1, errInvalid
}
return unix.Sysconf(name)
}
|