File: sysconf_unsupported.go

package info (click to toggle)
golang-github-tklauser-go-sysconf 0.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 540 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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.

//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris

package sysconf

import (
	"fmt"
	"runtime"
)

func sysconf(name int) (int64, error) {
	return -1, fmt.Errorf("unsupported on %s", runtime.GOOS)
}