summaryrefslogtreecommitdiff
path: root/vendor/github.com/tklauser
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/tklauser')
-rw-r--r--vendor/github.com/tklauser/go-sysconf/.cirrus.yml23
-rw-r--r--vendor/github.com/tklauser/go-sysconf/.gitignore1
-rw-r--r--vendor/github.com/tklauser/go-sysconf/LICENSE29
-rw-r--r--vendor/github.com/tklauser/go-sysconf/README.md46
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf.go21
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_bsd.go38
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_darwin.go296
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_dragonfly.go220
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_freebsd.go226
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_generic.go46
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_linux.go345
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_netbsd.go250
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_openbsd.go271
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_posix.go83
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_solaris.go14
-rw-r--r--vendor/github.com/tklauser/go-sysconf/sysconf_unsupported.go17
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_darwin.go254
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_dragonfly.go228
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_freebsd.go229
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_linux.go147
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_netbsd.go164
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_openbsd.go263
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_defs_solaris.go139
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_386.go12
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_amd64.go12
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm.go12
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm64.go12
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_riscv64.go12
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_386.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_amd64.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm64.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64le.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mipsle.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64le.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_riscv64.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_s390x.go114
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_386.go11
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_amd64.go11
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm.go11
-rw-r--r--vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm64.go11
-rw-r--r--vendor/github.com/tklauser/numcpus/.cirrus.yml13
-rw-r--r--vendor/github.com/tklauser/numcpus/LICENSE202
-rw-r--r--vendor/github.com/tklauser/numcpus/README.md52
-rw-r--r--vendor/github.com/tklauser/numcpus/numcpus.go75
-rw-r--r--vendor/github.com/tklauser/numcpus/numcpus_bsd.go66
-rw-r--r--vendor/github.com/tklauser/numcpus/numcpus_linux.go120
-rw-r--r--vendor/github.com/tklauser/numcpus/numcpus_solaris.go56
-rw-r--r--vendor/github.com/tklauser/numcpus/numcpus_unsupported.go42
-rw-r--r--vendor/github.com/tklauser/numcpus/numcpus_windows.go41
54 files changed, 5603 insertions, 0 deletions
diff --git a/vendor/github.com/tklauser/go-sysconf/.cirrus.yml b/vendor/github.com/tklauser/go-sysconf/.cirrus.yml
new file mode 100644
index 0000000..1b27f19
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/.cirrus.yml
@@ -0,0 +1,23 @@
+env:
+ CIRRUS_CLONE_DEPTH: 1
+ GO_VERSION: go1.20
+
+freebsd_12_task:
+ freebsd_instance:
+ image_family: freebsd-12-3
+ install_script: |
+ pkg install -y go
+ GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
+ bin/${GO_VERSION} download
+ build_script: bin/${GO_VERSION} build -v ./...
+ test_script: bin/${GO_VERSION} test -race ./...
+
+freebsd_13_task:
+ freebsd_instance:
+ image_family: freebsd-13-0
+ install_script: |
+ pkg install -y go
+ GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
+ bin/${GO_VERSION} download
+ build_script: bin/${GO_VERSION} build -v ./...
+ test_script: bin/${GO_VERSION} test -race ./...
diff --git a/vendor/github.com/tklauser/go-sysconf/.gitignore b/vendor/github.com/tklauser/go-sysconf/.gitignore
new file mode 100644
index 0000000..e482715
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/.gitignore
@@ -0,0 +1 @@
+_obj/
diff --git a/vendor/github.com/tklauser/go-sysconf/LICENSE b/vendor/github.com/tklauser/go-sysconf/LICENSE
new file mode 100644
index 0000000..73c6b89
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2018-2022, Tobias Klauser
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/tklauser/go-sysconf/README.md b/vendor/github.com/tklauser/go-sysconf/README.md
new file mode 100644
index 0000000..b83d5ab
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/README.md
@@ -0,0 +1,46 @@
+# go-sysconf
+
+[![Go Reference](https://pkg.go.dev/badge/github.com/tklauser/go-sysconf.svg)](https://pkg.go.dev/github.com/tklauser/go-sysconf)
+[![GitHub Action Status](https://github.com/tklauser/go-sysconf/workflows/Tests/badge.svg)](https://github.com/tklauser/go-sysconf/actions?query=workflow%3ATests)
+
+`sysconf` for Go, without using cgo or external binaries (e.g. getconf).
+
+Supported operating systems: Linux, macOS, DragonflyBSD, FreeBSD, NetBSD, OpenBSD, Solaris/Illumos.
+
+All POSIX.1 and POSIX.2 variables are supported, see [References](#references) for a complete list.
+
+Additionally, the following non-standard variables are supported on some operating systems:
+
+| Variable | Supported on |
+|---|---|
+| `SC_PHYS_PAGES` | Linux, macOS, FreeBSD, NetBSD, OpenBSD, Solaris/Illumos |
+| `SC_AVPHYS_PAGES` | Linux, OpenBSD, Solaris/Illumos |
+| `SC_NPROCESSORS_CONF` | Linux, macOS, FreeBSD, NetBSD, OpenBSD, Solaris/Illumos |
+| `SC_NPROCESSORS_ONLN` | Linux, macOS, FreeBSD, NetBSD, OpenBSD, Solaris/Illumos |
+| `SC_UIO_MAXIOV` | Linux |
+
+## Usage
+
+```Go
+package main
+
+import (
+ "fmt"
+
+ "github.com/tklauser/go-sysconf"
+)
+
+func main() {
+ // get clock ticks, this will return the same as C.sysconf(C._SC_CLK_TCK)
+ clktck, err := sysconf.Sysconf(sysconf.SC_CLK_TCK)
+ if err == nil {
+ fmt.Printf("SC_CLK_TCK: %v\n", clktck)
+ }
+}
+```
+
+## References
+
+* [POSIX documenation for `sysconf`](http://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html)
+* [Linux manpage for `sysconf(3)`](http://man7.org/linux/man-pages/man3/sysconf.3.html)
+* [glibc constants for `sysconf` parameters](https://www.gnu.org/software/libc/manual/html_node/Constants-for-Sysconf.html)
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf.go b/vendor/github.com/tklauser/go-sysconf/sysconf.go
new file mode 100644
index 0000000..9d67493
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf.go
@@ -0,0 +1,21 @@
+// Copyright 2018 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 implements the sysconf(3) function and provides the
+// associated SC_* constants to query system configuration values.
+package sysconf
+
+import "errors"
+
+//go:generate go run mksysconf.go
+
+var errInvalid = errors.New("invalid parameter value")
+
+// Sysconf returns the value of a sysconf(3) runtime system parameter.
+// The name parameter should be a SC_* constant define in this package. The
+// implementation is GOOS-specific and certain SC_* constants might not be
+// defined for all GOOSes.
+func Sysconf(name int) (int64, error) {
+ return sysconf(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_bsd.go b/vendor/github.com/tklauser/go-sysconf/sysconf_bsd.go
new file mode 100644
index 0000000..7c96157
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_bsd.go
@@ -0,0 +1,38 @@
+// Copyright 2018 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 || netbsd || openbsd
+// +build darwin dragonfly freebsd netbsd openbsd
+
+package sysconf
+
+import "golang.org/x/sys/unix"
+
+func pathconf(path string, name int) int64 {
+ if val, err := unix.Pathconf(path, name); err == nil {
+ return int64(val)
+ }
+ return -1
+}
+
+func sysctl32(name string) int64 {
+ if val, err := unix.SysctlUint32(name); err == nil {
+ return int64(val)
+ }
+ return -1
+}
+
+func sysctl64(name string) int64 {
+ if val, err := unix.SysctlUint64(name); err == nil {
+ return int64(val)
+ }
+ return -1
+}
+
+func yesno(val int64) int64 {
+ if val == 0 {
+ return -1
+ }
+ return val
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_darwin.go b/vendor/github.com/tklauser/go-sysconf/sysconf_darwin.go
new file mode 100644
index 0000000..3f5d83f
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_darwin.go
@@ -0,0 +1,296 @@
+// Copyright 2018 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 (
+ "strconv"
+ "strings"
+ "sync"
+
+ "golang.org/x/sys/unix"
+)
+
+const (
+ _HOST_NAME_MAX = _MAXHOSTNAMELEN - 1
+ _LOGIN_NAME_MAX = _MAXLOGNAME
+ _SYMLOOP_MAX = _MAXSYMLINKS
+)
+
+var uname struct {
+ sync.Once
+ macOSMajor int
+}
+
+// sysconf implements sysconf(4) as in the Darwin libc (derived from the FreeBSD
+// libc), version 1534.81.1.
+// See https://github.com/apple-oss-distributions/Libc/tree/Libc-1534.81.1.
+func sysconf(name int) (int64, error) {
+ switch name {
+ case SC_AIO_LISTIO_MAX:
+ fallthrough
+ case SC_AIO_MAX:
+ return sysctl32("kern.aiomax"), nil
+ case SC_AIO_PRIO_DELTA_MAX:
+ return -1, nil
+ case SC_ARG_MAX:
+ return sysctl32("kern.argmax"), nil
+ case SC_ATEXIT_MAX:
+ return _INT_MAX, nil
+ case SC_CHILD_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return int64(rlim.Cur), nil
+ }
+ }
+ return -1, nil
+ case SC_CLK_TCK:
+ return _CLK_TCK, nil
+ case SC_DELAYTIMER_MAX:
+ return -1, nil
+ case SC_GETGR_R_SIZE_MAX:
+ return 4096, nil
+ case SC_GETPW_R_SIZE_MAX:
+ return 4096, nil
+ case SC_IOV_MAX:
+ return _IOV_MAX, nil
+ case SC_MQ_OPEN_MAX:
+ return -1, nil
+ case SC_MQ_PRIO_MAX:
+ return -1, nil
+ case SC_NGROUPS_MAX:
+ return sysctl32("kern.ngroups"), nil
+ case SC_OPEN_MAX, SC_STREAM_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err != nil {
+ return -1, nil
+ }
+ if rlim.Cur > unix.RLIM_INFINITY {
+ return -1, nil
+ }
+ if rlim.Cur > _LONG_MAX {
+ return -1, unix.EOVERFLOW
+ }
+ return int64(rlim.Cur), nil
+ case SC_RTSIG_MAX:
+ return -1, nil
+ case SC_SEM_NSEMS_MAX:
+ return sysctl32("kern.sysv.semmns"), nil
+ case SC_SEM_VALUE_MAX:
+ return _POSIX_SEM_VALUE_MAX, nil
+ case SC_SIGQUEUE_MAX:
+ return -1, nil
+ case SC_THREAD_DESTRUCTOR_ITERATIONS:
+ return _PTHREAD_DESTRUCTOR_ITERATIONS, nil
+ case SC_THREAD_KEYS_MAX:
+ return _PTHREAD_KEYS_MAX, nil
+ case SC_THREAD_PRIO_INHERIT:
+ return _POSIX_THREAD_PRIO_INHERIT, nil
+ case SC_THREAD_PRIO_PROTECT:
+ return _POSIX_THREAD_PRIO_PROTECT, nil
+ case SC_THREAD_STACK_MIN:
+ return _PTHREAD_STACK_MIN, nil
+ case SC_THREAD_THREADS_MAX:
+ return -1, nil
+ case SC_TIMER_MAX:
+ return -1, nil
+ case SC_TTY_NAME_MAX:
+ // should be _PATH_DEV instead of "/"
+ return pathconf("/", _PC_NAME_MAX), nil
+ case SC_TZNAME_MAX:
+ return pathconf(_PATH_ZONEINFO, _PC_NAME_MAX), nil
+
+ case SC_IPV6:
+ if _POSIX_IPV6 == 0 {
+ fd, err := unix.Socket(unix.AF_INET6, unix.SOCK_DGRAM, 0)
+ if err == nil && fd >= 0 {
+ unix.Close(fd)
+ return int64(200112), nil
+ }
+ return 0, nil
+ }
+ return _POSIX_IPV6, nil
+ case SC_MESSAGE_PASSING:
+ if _POSIX_MESSAGE_PASSING == 0 {
+ return yesno(sysctl32("p1003_1b.message_passing")), nil
+ }
+ return _POSIX_MESSAGE_PASSING, nil
+ case SC_PRIORITIZED_IO:
+ if _POSIX_PRIORITIZED_IO == 0 {
+ return yesno(sysctl32("p1003_1b.prioritized_io")), nil
+ }
+ return _POSIX_PRIORITIZED_IO, nil
+ case SC_PRIORITY_SCHEDULING:
+ if _POSIX_PRIORITY_SCHEDULING == 0 {
+ return yesno(sysctl32("p1003_1b.priority_scheduling")), nil
+ }
+ return _POSIX_PRIORITY_SCHEDULING, nil
+ case SC_REALTIME_SIGNALS:
+ if _POSIX_REALTIME_SIGNALS == 0 {
+ return yesno(sysctl32("p1003_1b.realtime_signals")), nil
+ }
+ return _POSIX_REALTIME_SIGNALS, nil
+ case SC_SAVED_IDS:
+ return yesno(sysctl32("kern.saved_ids")), nil
+ case SC_SEMAPHORES:
+ if _POSIX_SEMAPHORES == 0 {
+ return yesno(sysctl32("p1003_1b.semaphores")), nil
+ }
+ return _POSIX_SEMAPHORES, nil
+ case SC_SPAWN:
+ uname.Once.Do(func() {
+ var u unix.Utsname
+ err := unix.Uname(&u)
+ if err != nil {
+ return
+ }
+ rel := unix.ByteSliceToString(u.Release[:])
+ ver := strings.Split(rel, ".")
+ maj, _ := strconv.Atoi(ver[0])
+ uname.macOSMajor = maj
+ })
+ if uname.macOSMajor < 22 {
+ return -1, nil
+ }
+ // macOS 13 (Ventura) and later
+ return 200112, nil
+ case SC_SPIN_LOCKS:
+ return _POSIX_SPIN_LOCKS, nil
+ case SC_SPORADIC_SERVER:
+ return _POSIX_SPORADIC_SERVER, nil
+ case SC_SS_REPL_MAX:
+ return _POSIX_SS_REPL_MAX, nil
+ case SC_SYNCHRONIZED_IO:
+ if _POSIX_SYNCHRONIZED_IO == 0 {
+ return yesno(sysctl32("p1003_1b.synchronized_io")), nil
+ }
+ return _POSIX_SYNCHRONIZED_IO, nil
+ case SC_THREAD_ATTR_STACKADDR:
+ return _POSIX_THREAD_ATTR_STACKADDR, nil
+ case SC_THREAD_ATTR_STACKSIZE:
+ return _POSIX_THREAD_ATTR_STACKSIZE, nil
+ case SC_THREAD_CPUTIME:
+ return _POSIX_THREAD_CPUTIME, nil
+ case SC_THREAD_PRIORITY_SCHEDULING:
+ return _POSIX_THREAD_PRIORITY_SCHEDULING, nil
+ case SC_THREAD_PROCESS_SHARED:
+ return _POSIX_THREAD_PROCESS_SHARED, nil
+ case SC_THREAD_SAFE_FUNCTIONS:
+ return _POSIX_THREAD_SAFE_FUNCTIONS, nil
+ case SC_THREAD_SPORADIC_SERVER:
+ return _POSIX_THREAD_SPORADIC_SERVER, nil
+ case SC_TIMERS:
+ if _POSIX_TIMERS == 0 {
+ return yesno(sysctl32("p1003_1b.timers")), nil
+ }
+ return _POSIX_TIMERS, nil
+ case SC_TRACE:
+ return _POSIX_TRACE, nil
+ case SC_TRACE_EVENT_FILTER:
+ return _POSIX_TRACE_EVENT_FILTER, nil
+ case SC_TRACE_EVENT_NAME_MAX:
+ return _POSIX_TRACE_EVENT_NAME_MAX, nil
+ case SC_TRACE_INHERIT:
+ return _POSIX_TRACE_INHERIT, nil
+ case SC_TRACE_LOG:
+ return _POSIX_TRACE_LOG, nil
+ case SC_TRACE_NAME_MAX:
+ return _POSIX_TRACE_NAME_MAX, nil
+ case SC_TRACE_SYS_MAX:
+ return _POSIX_TRACE_SYS_MAX, nil
+ case SC_TRACE_USER_EVENT_MAX:
+ return _POSIX_TRACE_USER_EVENT_MAX, nil
+ case SC_TYPED_MEMORY_OBJECTS:
+ return _POSIX_TYPED_MEMORY_OBJECTS, nil
+ case SC_VERSION:
+ // TODO(tk): darwin libc uses sysctl(CTL_KERN, KERN_POSIX1)
+ return _POSIX_VERSION, nil
+
+ case SC_V6_ILP32_OFF32:
+ if _V6_ILP32_OFF32 == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofInt == unix.SizeofLong &&
+ unix.SizeofLong == unix.SizeofPtr &&
+ unix.SizeofPtr == sizeofOffT {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _V6_ILP32_OFF32, nil
+ case SC_V6_ILP32_OFFBIG:
+ if _V6_ILP32_OFFBIG == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofInt == unix.SizeofLong &&
+ unix.SizeofLong == unix.SizeofPtr &&
+ sizeofOffT*_CHAR_BIT >= 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _V6_ILP32_OFFBIG, nil
+ case SC_V6_LP64_OFF64:
+ if _V6_LP64_OFF64 == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofLong*_CHAR_BIT == 64 &&
+ unix.SizeofLong == unix.SizeofPtr &&
+ unix.SizeofPtr == sizeofOffT {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _V6_LP64_OFF64, nil
+ case SC_V6_LPBIG_OFFBIG:
+ if _V6_LPBIG_OFFBIG == 0 {
+ if unix.SizeofInt*_CHAR_BIT >= 32 &&
+ unix.SizeofLong*_CHAR_BIT >= 64 &&
+ unix.SizeofPtr*_CHAR_BIT >= 64 &&
+ sizeofOffT*_CHAR_BIT >= 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _V6_LPBIG_OFFBIG, nil
+
+ case SC_2_CHAR_TERM:
+ return _POSIX2_CHAR_TERM, nil
+ case SC_2_PBS,
+ SC_2_PBS_ACCOUNTING,
+ SC_2_PBS_CHECKPOINT,
+ SC_2_PBS_LOCATE,
+ SC_2_PBS_MESSAGE,
+ SC_2_PBS_TRACK:
+ return _POSIX2_PBS, nil
+ case SC_2_UPE:
+ return _POSIX2_UPE, nil
+
+ case SC_XOPEN_CRYPT:
+ return _XOPEN_CRYPT, nil
+ case SC_XOPEN_ENH_I18N:
+ return _XOPEN_ENH_I18N, nil
+ case SC_XOPEN_REALTIME:
+ return _XOPEN_REALTIME, nil
+ case SC_XOPEN_REALTIME_THREADS:
+ return _XOPEN_REALTIME_THREADS, nil
+ case SC_XOPEN_SHM:
+ return _XOPEN_SHM, nil
+ case SC_XOPEN_STREAMS:
+ return -1, nil
+ case SC_XOPEN_UNIX:
+ return _XOPEN_UNIX, nil
+ case SC_XOPEN_VERSION:
+ return _XOPEN_VERSION, nil
+ case SC_XOPEN_XCU_VERSION:
+ return _XOPEN_XCU_VERSION, nil
+
+ case SC_PHYS_PAGES:
+ return sysctl64("hw.memsize") / int64(unix.Getpagesize()), nil
+ case SC_NPROCESSORS_CONF:
+ fallthrough
+ case SC_NPROCESSORS_ONLN:
+ return sysctl32("hw.ncpu"), nil
+ }
+
+ return sysconfGeneric(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_dragonfly.go b/vendor/github.com/tklauser/go-sysconf/sysconf_dragonfly.go
new file mode 100644
index 0000000..c2ed8d1
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_dragonfly.go
@@ -0,0 +1,220 @@
+// Copyright 2018 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"
+
+const (
+ _HOST_NAME_MAX = _MAXHOSTNAMELEN - 1
+ _LOGIN_NAME_MAX = _MAXLOGNAME
+ _SYMLOOP_MAX = _MAXSYMLINKS
+)
+
+// sysconf implements sysconf(3) as in the FreeBSD 12 libc.
+func sysconf(name int) (int64, error) {
+ switch name {
+ case SC_AIO_LISTIO_MAX:
+ return sysctl32("p1003_1b.aio_listio_max"), nil
+ case SC_AIO_MAX:
+ return sysctl32("p1003_1b.aio_max"), nil
+ case SC_AIO_PRIO_DELTA_MAX:
+ return sysctl32("p1003_1b.aio_prio_delta_max"), nil
+ case SC_ARG_MAX:
+ return sysctl32("kern.argmax"), nil
+ case SC_ATEXIT_MAX:
+ return _ATEXIT_SIZE, nil
+ case SC_CHILD_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return rlim.Cur, nil
+ }
+ }
+ return -1, nil
+ case SC_CLK_TCK:
+ return _CLK_TCK, nil
+ case SC_DELAYTIMER_MAX:
+ return yesno(sysctl32("p1003_1b.delaytimer_max")), nil
+ case SC_GETGR_R_SIZE_MAX, SC_GETPW_R_SIZE_MAX:
+ return -1, nil
+ case SC_IOV_MAX:
+ return sysctl32("kern.iov_max"), nil
+ case SC_MQ_OPEN_MAX:
+ return sysctl32("kern.mqueue.mq_open_max"), nil
+ case SC_MQ_PRIO_MAX:
+ return sysctl32("kern.mqueue.mq_prio_max"), nil
+ case SC_NGROUPS_MAX:
+ return sysctl32("kern.ngroups"), nil
+ case SC_OPEN_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return rlim.Cur, nil
+ }
+ }
+ return -1, nil
+ case SC_RTSIG_MAX:
+ return yesno(sysctl32("p1003_1b.rtsig_max")), nil
+ case SC_SEM_NSEMS_MAX:
+ return -1, nil
+ case SC_SEM_VALUE_MAX:
+ return -1, nil
+ case SC_SIGQUEUE_MAX:
+ return yesno(sysctl32("p1003_1b.sigqueue_max")), nil
+ case SC_STREAM_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return rlim.Cur, nil
+ }
+ }
+ return -1, nil
+ case SC_THREAD_DESTRUCTOR_ITERATIONS:
+ return _PTHREAD_DESTRUCTOR_ITERATIONS, nil
+ case SC_THREAD_KEYS_MAX:
+ return _PTHREAD_KEYS_MAX, nil
+ case SC_THREAD_PRIO_INHERIT:
+ return _POSIX_THREAD_PRIO_INHERIT, nil
+ case SC_THREAD_PRIO_PROTECT:
+ return _POSIX_THREAD_PRIO_PROTECT, nil
+ case SC_THREAD_STACK_MIN:
+ return _PTHREAD_STACK_MIN, nil
+ case SC_THREAD_THREADS_MAX:
+ return -1, nil
+ case SC_TIMER_MAX:
+ return yesno(sysctl32("p1003_1b.timer_max")), nil
+ case SC_TTY_NAME_MAX:
+ return pathconf(_PATH_DEV, _PC_NAME_MAX), nil
+ case SC_TZNAME_MAX:
+ return pathconf(_PATH_ZONEINFO, _PC_NAME_MAX), nil
+
+ case SC_ASYNCHRONOUS_IO:
+ if _POSIX_ASYNCHRONOUS_IO == 0 {
+ return sysctl64("p1003_1b.asynchronous_io"), nil
+ }
+ return _POSIX_ASYNCHRONOUS_IO, nil
+ case SC_IPV6:
+ if _POSIX_IPV6 == 0 {
+ fd, err := unix.Socket(unix.AF_INET6, unix.SOCK_DGRAM, 0)
+ if err == nil && fd >= 0 {
+ unix.Close(fd)
+ return int64(200112), nil
+ }
+ return 0, nil
+ }
+ return _POSIX_IPV6, nil
+ case SC_MESSAGE_PASSING:
+ if _POSIX_MESSAGE_PASSING == 0 {
+ return yesno(sysctl32("p1003_1b.message_passing")), nil
+ }
+ return _POSIX_MESSAGE_PASSING, nil
+ case SC_PRIORITIZED_IO:
+ if _POSIX_PRIORITIZED_IO == 0 {
+ return yesno(sysctl32("p1003_1b.prioritized_io")), nil
+ }
+ return _POSIX_PRIORITIZED_IO, nil
+ case SC_PRIORITY_SCHEDULING:
+ if _POSIX_PRIORITY_SCHEDULING == 0 {
+ return yesno(sysctl32("p1003_1b.priority_scheduling")), nil
+ }
+ return _POSIX_PRIORITY_SCHEDULING, nil
+ case SC_REALTIME_SIGNALS:
+ if _POSIX_REALTIME_SIGNALS == 0 {
+ return yesno(sysctl32("p1003_1b.realtime_signals")), nil
+ }
+ return _POSIX_REALTIME_SIGNALS, nil
+ case SC_SAVED_IDS:
+ return yesno(sysctl32("kern.saved_ids")), nil
+ case SC_SEMAPHORES:
+ if _POSIX_SEMAPHORES == 0 {
+ return yesno(sysctl32("p1003_1b.semaphores")), nil
+ }
+ return _POSIX_SEMAPHORES, nil
+ case SC_SPAWN:
+ return _POSIX_SPAWN, nil
+ case SC_SPIN_LOCKS:
+ return _POSIX_SPIN_LOCKS, nil
+ case SC_SPORADIC_SERVER:
+ return _POSIX_SPORADIC_SERVER, nil
+ case SC_SYNCHRONIZED_IO:
+ if _POSIX_SYNCHRONIZED_IO == 0 {
+ return yesno(sysctl32("p1003_1b.synchronized_io")), nil
+ }
+ return _POSIX_SYNCHRONIZED_IO, nil
+ case SC_THREAD_ATTR_STACKADDR:
+ return _POSIX_THREAD_ATTR_STACKADDR, nil
+ case SC_THREAD_ATTR_STACKSIZE:
+ return _POSIX_THREAD_ATTR_STACKSIZE, nil
+ case SC_THREAD_CPUTIME:
+ return _POSIX_THREAD_CPUTIME, nil
+ case SC_THREAD_PRIORITY_SCHEDULING:
+ return _POSIX_THREAD_PRIORITY_SCHEDULING, nil
+ case SC_THREAD_PROCESS_SHARED:
+ return _POSIX_THREAD_PROCESS_SHARED, nil
+ case SC_THREAD_SAFE_FUNCTIONS:
+ return _POSIX_THREAD_SAFE_FUNCTIONS, nil
+ case SC_THREAD_SPORADIC_SERVER:
+ return _POSIX_THREAD_SPORADIC_SERVER, nil
+ case SC_TIMERS:
+ if _POSIX_TIMERS == 0 {
+ return yesno(sysctl32("p1003_1b.timers")), nil
+ }
+ return _POSIX_TIMERS, nil
+ case SC_TRACE:
+ return _POSIX_TRACE, nil
+ case SC_TYPED_MEMORY_OBJECTS:
+ return _POSIX_TYPED_MEMORY_OBJECTS, nil
+ case SC_VERSION:
+ // TODO(tk): FreeBSD libc uses sysctl(CTL_KERN, KERN_POSIX1)
+ return _POSIX_VERSION, nil
+
+ /* TODO(tk): these need GOARCH-dependent integer size checks
+ case SC_V6_ILP32_OFF32:
+ return _V6_ILP32_OFF32, nil
+ case SC_V6_ILP32_OFFBIG:
+ return _V6_ILP32_OFFBIG, nil
+ case SC_V6_LP64_OFF64:
+ return _V6_LP64_OFF64, nil
+ case SC_V6_LPBIG_OFFBIG:
+ return _V6_LPBIG_OFFBIG, nil
+ */
+
+ case SC_2_CHAR_TERM:
+ return _POSIX2_CHAR_TERM, nil
+ case SC_2_PBS,
+ SC_2_PBS_ACCOUNTING,
+ SC_2_PBS_CHECKPOINT,
+ SC_2_PBS_LOCATE,
+ SC_2_PBS_MESSAGE,
+ SC_2_PBS_TRACK:
+ return _POSIX2_PBS, nil
+ case SC_2_UPE:
+ return _POSIX2_UPE, nil
+
+ case SC_XOPEN_CRYPT:
+ return _XOPEN_CRYPT, nil
+ case SC_XOPEN_ENH_I18N:
+ return _XOPEN_ENH_I18N, nil
+ case SC_XOPEN_REALTIME:
+ return _XOPEN_REALTIME, nil
+ case SC_XOPEN_REALTIME_THREADS:
+ return _XOPEN_REALTIME_THREADS, nil
+ case SC_XOPEN_SHM:
+ return _XOPEN_SHM, nil
+ case SC_XOPEN_STREAMS:
+ return -1, nil
+ case SC_XOPEN_UNIX:
+ return _XOPEN_UNIX, nil
+
+ case SC_PHYS_PAGES:
+ return sysctl64("hw.availpages"), nil
+ case SC_NPROCESSORS_CONF:
+ fallthrough
+ case SC_NPROCESSORS_ONLN:
+ return sysctl32("hw.ncpu"), nil
+ }
+
+ return sysconfGeneric(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_freebsd.go b/vendor/github.com/tklauser/go-sysconf/sysconf_freebsd.go
new file mode 100644
index 0000000..b793988
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_freebsd.go
@@ -0,0 +1,226 @@
+// Copyright 2018 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"
+
+const (
+ _HOST_NAME_MAX = _MAXHOSTNAMELEN - 1
+ _LOGIN_NAME_MAX = _MAXLOGNAME
+ _SYMLOOP_MAX = _MAXSYMLINKS
+)
+
+// sysconf implements sysconf(3) as in the FreeBSD 12 libc.
+func sysconf(name int) (int64, error) {
+ switch name {
+ case SC_AIO_LISTIO_MAX:
+ return sysctl32("p1003_1b.aio_listio_max"), nil
+ case SC_AIO_MAX:
+ return sysctl32("p1003_1b.aio_max"), nil
+ case SC_AIO_PRIO_DELTA_MAX:
+ return sysctl32("p1003_1b.aio_prio_delta_max"), nil
+ case SC_ARG_MAX:
+ return sysctl32("kern.argmax"), nil
+ case SC_ATEXIT_MAX:
+ return _ATEXIT_SIZE, nil
+ case SC_CHILD_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return rlim.Cur, nil
+ }
+ }
+ return -1, nil
+ case SC_CLK_TCK:
+ return _CLK_TCK, nil
+ case SC_DELAYTIMER_MAX:
+ return sysctl32("p1003_1b.delaytimer_max"), nil
+ case SC_GETGR_R_SIZE_MAX, SC_GETPW_R_SIZE_MAX:
+ return -1, nil
+ case SC_IOV_MAX:
+ return sysctl32("kern.iov_max"), nil
+ case SC_MQ_OPEN_MAX:
+ return yesno(sysctl32("p1003_1b.mq_open_max")), nil
+ case SC_MQ_PRIO_MAX:
+ return _MQ_PRIO_MAX, nil
+ case SC_NGROUPS_MAX:
+ return sysctl32("kern.ngroups"), nil
+ case SC_OPEN_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return rlim.Cur, nil
+ }
+ }
+ return -1, nil
+ case SC_RTSIG_MAX:
+ return sysctl32("p1003_1b.rtsig_max"), nil
+ case SC_SEM_NSEMS_MAX:
+ return -1, nil
+ case SC_SEM_VALUE_MAX:
+ return _SEM_VALUE_MAX, nil
+ case SC_SIGQUEUE_MAX:
+ return sysctl32("p1003_1b.sigqueue_max"), nil
+ case SC_STREAM_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err != nil {
+ return -1, nil
+ }
+ if rlim.Cur == unix.RLIM_INFINITY {
+ return -1, nil
+ }
+ if rlim.Cur > _LONG_MAX {
+ return -1, unix.EOVERFLOW
+ }
+ if rlim.Cur > _SHRT_MAX {
+ return _SHRT_MAX, nil
+ }
+ return rlim.Cur, nil
+ case SC_THREAD_DESTRUCTOR_ITERATIONS:
+ return _PTHREAD_DESTRUCTOR_ITERATIONS, nil
+ case SC_THREAD_KEYS_MAX:
+ return _PTHREAD_KEYS_MAX, nil
+ case SC_THREAD_PRIO_INHERIT:
+ return _POSIX_THREAD_PRIO_INHERIT, nil
+ case SC_THREAD_PRIO_PROTECT:
+ return _POSIX_THREAD_PRIO_PROTECT, nil
+ case SC_THREAD_STACK_MIN:
+ return _PTHREAD_STACK_MIN, nil
+ case SC_THREAD_THREADS_MAX:
+ return -1, nil
+ case SC_TIMER_MAX:
+ return yesno(sysctl32("p1003_1b.timer_max")), nil
+ case SC_TTY_NAME_MAX:
+ return pathconf(_PATH_DEV, _PC_NAME_MAX), nil
+ case SC_TZNAME_MAX:
+ return pathconf(_PATH_ZONEINFO, _PC_NAME_MAX), nil
+
+ case SC_IPV6:
+ if _POSIX_IPV6 == 0 {
+ fd, err := unix.Socket(unix.AF_INET6, unix.SOCK_DGRAM, 0)
+ if err == nil && fd >= 0 {
+ unix.Close(fd)
+ return int64(200112), nil
+ }
+ return 0, nil
+ }
+ return _POSIX_IPV6, nil
+ case SC_MESSAGE_PASSING:
+ if _POSIX_MESSAGE_PASSING == 0 {
+ return yesno(sysctl32("p1003_1b.message_passing")), nil
+ }
+ return _POSIX_MESSAGE_PASSING, nil
+ case SC_PRIORITIZED_IO:
+ if _POSIX_PRIORITIZED_IO == 0 {
+ return yesno(sysctl32("p1003_1b.prioritized_io")), nil
+ }
+ return _POSIX_PRIORITIZED_IO, nil
+ case SC_PRIORITY_SCHEDULING:
+ if _POSIX_PRIORITY_SCHEDULING == 0 {
+ return yesno(sysctl32("p1003_1b.priority_scheduling")), nil
+ }
+ return _POSIX_PRIORITY_SCHEDULING, nil
+ case SC_REALTIME_SIGNALS:
+ if _POSIX_REALTIME_SIGNALS == 0 {
+ return yesno(sysctl32("p1003_1b.realtime_signals")), nil
+ }
+ return _POSIX_REALTIME_SIGNALS, nil
+ case SC_SAVED_IDS:
+ return yesno(sysctl32("kern.saved_ids")), nil
+ case SC_SEMAPHORES:
+ if _POSIX_SEMAPHORES == 0 {
+ return yesno(sysctl32("p1003_1b.semaphores")), nil
+ }
+ return _POSIX_SEMAPHORES, nil
+ case SC_SPAWN:
+ return _POSIX_SPAWN, nil
+ case SC_SPIN_LOCKS:
+ return _POSIX_SPIN_LOCKS, nil
+ case SC_SPORADIC_SERVER:
+ return _POSIX_SPORADIC_SERVER, nil
+ case SC_SYNCHRONIZED_IO:
+ if _POSIX_SYNCHRONIZED_IO == 0 {
+ return yesno(sysctl32("p1003_1b.synchronized_io")), nil
+ }
+ return _POSIX_SYNCHRONIZED_IO, nil
+ case SC_THREAD_ATTR_STACKADDR:
+ return _POSIX_THREAD_ATTR_STACKADDR, nil
+ case SC_THREAD_ATTR_STACKSIZE:
+ return _POSIX_THREAD_ATTR_STACKSIZE, nil
+ case SC_THREAD_CPUTIME:
+ return _POSIX_THREAD_CPUTIME, nil
+ case SC_THREAD_PRIORITY_SCHEDULING:
+ return _POSIX_THREAD_PRIORITY_SCHEDULING, nil
+ case SC_THREAD_PROCESS_SHARED:
+ return _POSIX_THREAD_PROCESS_SHARED, nil
+ case SC_THREAD_SAFE_FUNCTIONS:
+ return _POSIX_THREAD_SAFE_FUNCTIONS, nil
+ case SC_TIMERS:
+ if _POSIX_TIMERS == 0 {
+ return yesno(sysctl32("p1003_1b.timers")), nil
+ }
+ return _POSIX_TIMERS, nil
+ case SC_TRACE:
+ return _POSIX_TRACE, nil
+ case SC_TYPED_MEMORY_OBJECTS:
+ return _POSIX_TYPED_MEMORY_OBJECTS, nil
+ case SC_VERSION:
+ // TODO(tk): FreeBSD libc uses sysctl(CTL_KERN, KERN_POSIX1)
+ return _POSIX_VERSION, nil
+
+ /* TODO(tk): these need GOARCH-dependent integer size checks
+ case SC_V6_ILP32_OFF32:
+ return _V6_ILP32_OFF32, nil
+ case SC_V6_ILP32_OFFBIG:
+ return _V6_ILP32_OFFBIG, nil
+ case SC_V6_LP64_OFF64:
+ return _V6_LP64_OFF64, nil
+ case SC_V6_LPBIG_OFFBIG:
+ return _V6_LPBIG_OFFBIG, nil
+ */
+
+ case SC_2_CHAR_TERM:
+ return _POSIX2_CHAR_TERM, nil
+ case SC_2_PBS,
+ SC_2_PBS_ACCOUNTING,
+ SC_2_PBS_CHECKPOINT,
+ SC_2_PBS_LOCATE,
+ SC_2_PBS_MESSAGE,
+ SC_2_PBS_TRACK:
+ return _POSIX2_PBS, nil
+ case SC_2_UPE:
+ return _POSIX2_UPE, nil
+
+ case SC_XOPEN_CRYPT:
+ return _XOPEN_CRYPT, nil
+ case SC_XOPEN_ENH_I18N:
+ return _XOPEN_ENH_I18N, nil
+ case SC_XOPEN_REALTIME:
+ return _XOPEN_REALTIME, nil
+ case SC_XOPEN_REALTIME_THREADS:
+ return _XOPEN_REALTIME_THREADS, nil
+ case SC_XOPEN_SHM:
+ return _XOPEN_SHM, nil
+ case SC_XOPEN_STREAMS:
+ return -1, nil
+ case SC_XOPEN_UNIX:
+ return _XOPEN_UNIX, nil
+
+ case SC_PHYS_PAGES:
+ if val, err := unix.SysctlUint64("hw.availpages"); err == nil {
+ return int64(val), nil
+ }
+ return -1, nil
+ case SC_NPROCESSORS_CONF:
+ fallthrough
+ case SC_NPROCESSORS_ONLN:
+ if val, err := unix.SysctlUint32("hw.ncpu"); err == nil {
+ return int64(val), nil
+ }
+ return -1, nil
+ }
+
+ return sysconfGeneric(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_generic.go b/vendor/github.com/tklauser/go-sysconf/sysconf_generic.go
new file mode 100644
index 0000000..248bdc9
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_generic.go
@@ -0,0 +1,46 @@
+// 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
+// +build darwin dragonfly freebsd linux netbsd openbsd
+
+package sysconf
+
+import "os"
+
+func sysconfGeneric(name int) (int64, error) {
+ // POSIX default values
+ if sc, err := sysconfPOSIX(name); err == nil {
+ return sc, nil
+ }
+
+ switch name {
+ case SC_BC_BASE_MAX:
+ return _BC_BASE_MAX, nil
+ case SC_BC_DIM_MAX:
+ return _BC_DIM_MAX, nil
+ case SC_BC_SCALE_MAX:
+ return _BC_SCALE_MAX, nil
+ case SC_BC_STRING_MAX:
+ return _BC_STRING_MAX, nil
+ case SC_COLL_WEIGHTS_MAX:
+ return _COLL_WEIGHTS_MAX, nil
+ case SC_EXPR_NEST_MAX:
+ return _EXPR_NEST_MAX, nil
+ case SC_HOST_NAME_MAX:
+ return _HOST_NAME_MAX, nil
+ case SC_LINE_MAX:
+ return _LINE_MAX, nil
+ case SC_LOGIN_NAME_MAX:
+ return _LOGIN_NAME_MAX, nil
+ case SC_PAGESIZE: // same as SC_PAGE_SIZE
+ return int64(os.Getpagesize()), nil
+ case SC_RE_DUP_MAX:
+ return _RE_DUP_MAX, nil
+ case SC_SYMLOOP_MAX:
+ return _SYMLOOP_MAX, nil
+ }
+
+ return -1, errInvalid
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_linux.go b/vendor/github.com/tklauser/go-sysconf/sysconf_linux.go
new file mode 100644
index 0000000..5fb49ac
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_linux.go
@@ -0,0 +1,345 @@
+// Copyright 2018 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 (
+ "bufio"
+ "io/ioutil"
+ "os"
+ "runtime"
+ "strconv"
+ "strings"
+
+ "github.com/tklauser/numcpus"
+ "golang.org/x/sys/unix"
+)
+
+const (
+ // CLK_TCK is a constant on Linux for all architectures except alpha and ia64.
+ // See e.g.
+ // https://git.musl-libc.org/cgit/musl/tree/src/conf/sysconf.c#n30
+ // https://github.com/containerd/cgroups/pull/12
+ // https://lore.kernel.org/lkml/agtlq6$iht$1@penguin.transmeta.com/
+ _SYSTEM_CLK_TCK = 100
+)
+
+func readProcFsInt64(path string, fallback int64) int64 {
+ data, err := ioutil.ReadFile(path)
+ if err != nil {
+ return fallback
+ }
+ i, err := strconv.ParseInt(string(data[:len(data)-1]), 0, 64)
+ if err != nil {
+ return fallback
+ }
+ return i
+}
+
+// getMemPages computes mem*unit/os.Getpagesize(), but avoids overflowing int64.
+func getMemPages(mem uint64, unit uint32) int64 {
+ pageSize := os.Getpagesize()
+ for unit > 1 && pageSize > 1 {
+ unit >>= 1
+ pageSize >>= 1
+ }
+ mem *= uint64(unit)
+ for pageSize > 1 {
+ pageSize >>= 1
+ mem >>= 1
+ }
+ return int64(mem)
+}
+
+func getPhysPages() int64 {
+ var si unix.Sysinfo_t
+ err := unix.Sysinfo(&si)
+ if err != nil {
+ return int64(0)
+ }
+ return getMemPages(uint64(si.Totalram), si.Unit)
+}
+
+func getAvPhysPages() int64 {
+ var si unix.Sysinfo_t
+ err := unix.Sysinfo(&si)
+ if err != nil {
+ return int64(0)
+ }
+ return getMemPages(uint64(si.Freeram), si.Unit)
+}
+
+func getNprocsSysfs() (int64, error) {
+ n, err := numcpus.GetOnline()
+ return int64(n), err
+}
+
+func getNprocsProcStat() (int64, error) {
+ f, err := os.Open("/proc/stat")
+ if err != nil {
+ return -1, err
+ }
+ defer f.Close()
+
+ count := int64(0)
+ s := bufio.NewScanner(f)
+ for s.Scan() {
+ if line := strings.TrimSpace(s.Text()); strings.HasPrefix(line, "cpu") {
+ l := strings.SplitN(line, " ", 2)
+ _, err := strconv.ParseInt(l[0][3:], 10, 64)
+ if err == nil {
+ count++
+ }
+ } else {
+ // The current format of /proc/stat has all the
+ // cpu* lines at the beginning. Assume this
+ // stays this way.
+ break
+ }
+ }
+ return count, nil
+}
+
+func getNprocs() int64 {
+ count, err := getNprocsSysfs()
+ if err == nil {
+ return count
+ }
+
+ count, err = getNprocsProcStat()
+ if err == nil {
+ return count
+ }
+
+ // default to the value determined at runtime startup if all else fails
+ return int64(runtime.NumCPU())
+}
+
+func getNprocsConf() int64 {
+ count, err := numcpus.GetConfigured()
+ if err == nil {
+ return int64(count)
+ }
+
+ // TODO(tk): fall back to reading /proc/cpuinfo on legacy systems
+ // without sysfs?
+
+ return getNprocs()
+}
+
+func hasClock(clockid int32) bool {
+ var res unix.Timespec
+ if err := unix.ClockGetres(clockid, &res); err != nil {
+ return false
+ }
+ return true
+}
+
+func max(a, b int64) int64 {
+ if a > b {
+ return a
+ }
+ return b
+}
+
+func sysconf(name int) (int64, error) {
+ switch name {
+ case SC_AIO_LISTIO_MAX:
+ return -1, nil
+ case SC_AIO_MAX:
+ return -1, nil
+ case SC_AIO_PRIO_DELTA_MAX:
+ return _AIO_PRIO_DELTA_MAX, nil
+ case SC_ARG_MAX:
+ argMax := int64(_POSIX_ARG_MAX)
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_STACK, &rlim); err == nil {
+ argMax = max(argMax, int64(rlim.Cur/4))
+ }
+ return argMax, nil
+ case SC_ATEXIT_MAX:
+ return _INT_MAX, nil
+ case SC_CHILD_MAX:
+ childMax := int64(-1)
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err == nil && rlim.Cur != unix.RLIM_INFINITY {
+ childMax = int64(rlim.Cur)
+ }
+ return childMax, nil
+ case SC_CLK_TCK:
+ return _SYSTEM_CLK_TCK, nil
+ case SC_DELAYTIMER_MAX:
+ return _DELAYTIMER_MAX, nil
+ case SC_GETGR_R_SIZE_MAX:
+ return _NSS_BUFLEN_GROUP, nil
+ case SC_GETPW_R_SIZE_MAX:
+ return _NSS_BUFLEN_PASSWD, nil
+ case SC_MQ_OPEN_MAX:
+ return -1, nil
+ case SC_MQ_PRIO_MAX:
+ return _MQ_PRIO_MAX, nil
+ case SC_NGROUPS_MAX:
+ return readProcFsInt64("/proc/sys/kernel/ngroups_max", _NGROUPS_MAX), nil
+ case SC_OPEN_MAX:
+ openMax := int64(_OPEN_MAX)
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ openMax = int64(rlim.Cur)
+ }
+ return openMax, nil
+ case SC_RTSIG_MAX:
+ return _RTSIG_MAX, nil
+ case SC_SEM_NSEMS_MAX:
+ return -1, nil
+ case SC_SEM_VALUE_MAX:
+ return _SEM_VALUE_MAX, nil
+ case SC_SIGQUEUE_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_SIGPENDING, &rlim); err == nil {
+ return int64(rlim.Cur), nil
+ }
+ return readProcFsInt64("/proc/sys/kernel/rtsig-max", _POSIX_SIGQUEUE_MAX), nil
+ case SC_STREAM_MAX:
+ return _STREAM_MAX, nil
+ case SC_THREAD_DESTRUCTOR_ITERATIONS:
+ return _POSIX_THREAD_DESTRUCTOR_ITERATIONS, nil
+ case SC_THREAD_KEYS_MAX:
+ return _PTHREAD_KEYS_MAX, nil
+ case SC_THREAD_PRIO_INHERIT:
+ return _POSIX_THREAD_PRIO_INHERIT, nil
+ case SC_THREAD_PRIO_PROTECT:
+ return _POSIX_THREAD_PRIO_PROTECT, nil
+ case SC_THREAD_STACK_MIN:
+ return _PTHREAD_STACK_MIN, nil
+ case SC_THREAD_THREADS_MAX:
+ return -1, nil
+ case SC_TIMER_MAX:
+ return -1, nil
+ case SC_TTY_NAME_MAX:
+ return _TTY_NAME_MAX, nil
+ case SC_TZNAME_MAX:
+ return -1, nil
+
+ case SC_CPUTIME:
+ if hasClock(unix.CLOCK_PROCESS_CPUTIME_ID) {
+ return _POSIX_VERSION, nil
+ }
+ return -1, nil
+ case SC_MONOTONIC_CLOCK:
+ if hasClock(unix.CLOCK_MONOTONIC) {
+ return _POSIX_VERSION, nil
+ }
+ return -1, nil
+ case SC_SAVED_IDS:
+ return _POSIX_SAVED_IDS, nil
+ case SC_SPAWN:
+ return _POSIX_SPAWN, nil
+ case SC_SPIN_LOCKS:
+ return _POSIX_SPIN_LOCKS, nil
+ case SC_SPORADIC_SERVER:
+ return _POSIX_SPORADIC_SERVER, nil
+ case SC_SYNCHRONIZED_IO:
+ return _POSIX_SYNCHRONIZED_IO, nil
+ case SC_THREAD_ATTR_STACKADDR:
+ return _POSIX_THREAD_ATTR_STACKADDR, nil
+ case SC_THREAD_ATTR_STACKSIZE:
+ return _POSIX_THREAD_ATTR_STACKSIZE, nil
+ case SC_THREAD_CPUTIME:
+ if hasClock(unix.CLOCK_THREAD_CPUTIME_ID) {
+ return _POSIX_VERSION, nil
+ }
+ return -1, nil
+ case SC_THREAD_PRIORITY_SCHEDULING:
+ return _POSIX_THREAD_PRIORITY_SCHEDULING, nil
+ case SC_THREAD_PROCESS_SHARED:
+ return _POSIX_THREAD_PROCESS_SHARED, nil
+ case SC_THREAD_SAFE_FUNCTIONS:
+ return _POSIX_THREAD_SAFE_FUNCTIONS, nil
+ case SC_THREAD_SPORADIC_SERVER:
+ return _POSIX_THREAD_SPORADIC_SERVER, nil
+ case SC_TRACE:
+ return _POSIX_TRACE, nil
+ case SC_TRACE_EVENT_FILTER:
+ return _POSIX_TRACE_EVENT_FILTER, nil
+ case SC_TRACE_EVENT_NAME_MAX:
+ return -1, nil
+ case SC_TRACE_INHERIT:
+ return _POSIX_TRACE_INHERIT, nil
+ case SC_TRACE_LOG:
+ return _POSIX_TRACE_LOG, nil
+ case SC_TRACE_NAME_MAX:
+ return -1, nil
+ case SC_TRACE_SYS_MAX:
+ return -1, nil
+ case SC_TRACE_USER_EVENT_MAX:
+ return -1, nil
+ case SC_TYPED_MEMORY_OBJECTS:
+ return _POSIX_TYPED_MEMORY_OBJECTS, nil
+
+ case SC_V7_ILP32_OFF32:
+ return _POSIX_V7_ILP32_OFF32, nil
+ case SC_V7_ILP32_OFFBIG:
+ return _POSIX_V7_ILP32_OFFBIG, nil
+ case SC_V7_LP64_OFF64:
+ return _POSIX_V7_LP64_OFF64, nil
+ case SC_V7_LPBIG_OFFBIG:
+ return _POSIX_V7_LPBIG_OFFBIG, nil
+
+ case SC_V6_ILP32_OFF32:
+ return _POSIX_V6_ILP32_OFF32, nil
+ case SC_V6_ILP32_OFFBIG:
+ return _POSIX_V6_ILP32_OFFBIG, nil
+ case SC_V6_LP64_OFF64:
+ return _POSIX_V6_LP64_OFF64, nil
+ case SC_V6_LPBIG_OFFBIG:
+ return _POSIX_V6_LPBIG_OFFBIG, nil
+
+ case SC_2_C_VERSION:
+ return _POSIX2_C_VERSION, nil
+ case SC_2_CHAR_TERM:
+ return _POSIX2_CHAR_TERM, nil
+ case SC_2_PBS,
+ SC_2_PBS_ACCOUNTING,
+ SC_2_PBS_CHECKPOINT,
+ SC_2_PBS_LOCATE,
+ SC_2_PBS_MESSAGE,
+ SC_2_PBS_TRACK:
+ return -1, nil
+ case SC_2_UPE:
+ return -1, nil
+
+ case SC_XOPEN_CRYPT:
+ // removed in glibc 2.28
+ return -1, nil
+ case SC_XOPEN_ENH_I18N:
+ return _XOPEN_ENH_I18N, nil
+ case SC_XOPEN_REALTIME:
+ return _XOPEN_REALTIME, nil
+ case SC_XOPEN_REALTIME_THREADS:
+ return _XOPEN_REALTIME_THREADS, nil
+ case SC_XOPEN_SHM:
+ return _XOPEN_SHM, nil
+ case SC_XOPEN_STREAMS:
+ return -1, nil
+ case SC_XOPEN_UNIX:
+ return _XOPEN_UNIX, nil
+ case SC_XOPEN_VERSION:
+ return _XOPEN_VERSION, nil
+ case SC_XOPEN_XCU_VERSION:
+ return _XOPEN_XCU_VERSION, nil
+
+ case SC_PHYS_PAGES:
+ return getPhysPages(), nil
+ case SC_AVPHYS_PAGES:
+ return getAvPhysPages(), nil
+ case SC_NPROCESSORS_CONF:
+ return getNprocsConf(), nil
+ case SC_NPROCESSORS_ONLN:
+ return getNprocs(), nil
+ case SC_UIO_MAXIOV: // same as _SC_IOV_MAX
+ return _UIO_MAXIOV, nil
+ }
+
+ return sysconfGeneric(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_netbsd.go b/vendor/github.com/tklauser/go-sysconf/sysconf_netbsd.go
new file mode 100644
index 0000000..325d4a6
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_netbsd.go
@@ -0,0 +1,250 @@
+// Copyright 2018 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 (
+ "sync"
+
+ "golang.org/x/sys/unix"
+)
+
+const (
+ _HOST_NAME_MAX = _MAXHOSTNAMELEN
+ _LOGIN_NAME_MAX = _MAXLOGNAME + 1
+ _SYMLOOP_MAX = _MAXSYMLINKS
+
+ _POSIX2_C_BIND = 1
+ _POSIX2_C_DEV = -1
+ _POSIX2_CHAR_TERM = -1
+ _POSIX2_FORT_DEV = -1
+ _POSIX2_FORT_RUN = -1
+ _POSIX2_LOCALEDEF = -1
+ _POSIX2_SW_DEV = -1
+ _POSIX2_UPE = -1
+)
+
+var (
+ clktck int64
+ clktckOnce sync.Once
+)
+
+func sysconfPOSIX(name int) (int64, error) {
+ // NetBSD does not define all _POSIX_* values used in sysconf_posix.go
+ // The supported ones are handled in sysconf below.
+ return -1, errInvalid
+}
+
+func sysconf(name int) (int64, error) {
+ // NetBSD uses sysctl to get some of these values. For the user.* namespace,
+ // calls get handled by user_sysctl in /usr/src/lib/libc/gen/sysctl.c
+ // Duplicate the relevant values here.
+
+ switch name {
+
+ // 1003.1
+ case SC_ARG_MAX:
+ return sysctl32("kern.argmax"), nil
+ case SC_CHILD_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return int64(rlim.Cur), nil
+ }
+ }
+ return -1, nil
+ case SC_CLK_TCK:
+ clktckOnce.Do(func() {
+ clktck = -1
+ if ci, err := unix.SysctlClockinfo("kern.clockrate"); err == nil {
+ clktck = int64(ci.Hz)
+ }
+ })
+ return clktck, nil
+ case SC_NGROUPS_MAX:
+ return sysctl32("kern.ngroups"), nil
+ case SC_JOB_CONTROL:
+ return sysctl32("kern.job_control"), nil
+ case SC_OPEN_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ return int64(rlim.Cur), nil
+ }
+ return -1, nil
+ case SC_STREAM_MAX:
+ // sysctl("user.stream_max")
+ return _FOPEN_MAX, nil
+ case SC_TZNAME_MAX:
+ // sysctl("user.tzname_max")
+ return _NAME_MAX, nil
+ case SC_SAVED_IDS:
+ return yesno(sysctl32("kern.saved_ids")), nil
+ case SC_VERSION:
+ return sysctl32("kern.posix1version"), nil
+
+ // 1003.1b
+ case SC_FSYNC:
+ return sysctl32("kern.fsync"), nil
+ case SC_SYNCHRONIZED_IO:
+ return sysctl32("kern.synchronized_io"), nil
+ case SC_MAPPED_FILES:
+ return sysctl32("kern.mapped_files"), nil
+ case SC_MEMLOCK:
+ return sysctl32("kern.memlock"), nil
+ case SC_MEMLOCK_RANGE:
+ return sysctl32("kern.memlock_range"), nil
+ case SC_MEMORY_PROTECTION:
+ return sysctl32("kern.memory_protection"), nil
+ case SC_MONOTONIC_CLOCK:
+ return sysctl32("kern.monotonic_clock"), nil
+ case SC_SEMAPHORES:
+ return sysctl32("kern.posix_semaphores"), nil
+ case SC_TIMERS:
+ return sysctl32("kern.posix_timers"), nil
+
+ // 1003.1c
+ case SC_LOGIN_NAME_MAX:
+ return sysctl32("kern.login_name_max"), nil
+ case SC_THREADS:
+ return sysctl32("kern.posix_threads"), nil
+
+ // 1003.1j
+ case SC_BARRIERS:
+ return yesno(sysctl32("kern.posix_barriers")), nil
+ case SC_SPIN_LOCKS:
+ return yesno(sysctl32("kern.posix_spin_locks")), nil
+ case SC_READER_WRITER_LOCKS:
+ return yesno(sysctl32("kern.posix_reader_writer_locks")), nil
+
+ // 1003.2
+ case SC_2_VERSION:
+ // sysctl user.posix2_version
+ return _POSIX2_VERSION, nil
+ case SC_2_C_BIND:
+ // sysctl user.posix2_c_bind
+ return _POSIX2_C_BIND, nil
+ case SC_2_C_DEV:
+ // sysctl user.posix2_c_dev
+ return _POSIX2_C_DEV, nil
+ case SC_2_CHAR_TERM:
+ // sysctl user.posix2_char_term
+ return _POSIX2_CHAR_TERM, nil
+ case SC_2_FORT_DEV:
+ // sysctl user.posix2_fort_dev
+ return _POSIX2_FORT_DEV, nil
+ case SC_2_FORT_RUN:
+ // sysctl user.posix2_fort_run
+ return _POSIX2_FORT_RUN, nil
+ case SC_2_LOCALEDEF:
+ // sysctl user.posix2_localedef
+ return _POSIX2_LOCALEDEF, nil
+ case SC_2_SW_DEV:
+ // sysctl user.posix2_sw_dev
+ return _POSIX2_SW_DEV, nil
+ case SC_2_UPE:
+ // sysctl user.posix2_upe
+ return _POSIX2_UPE, nil
+
+ // XPG 4.2
+ case SC_IOV_MAX:
+ return sysctl32("kern.iov_max"), nil
+ case SC_XOPEN_SHM:
+ return yesno(sysctl32("kern.ipc.sysvshm")), nil
+
+ // 1003.1-2001, XSI Option Group
+ case SC_AIO_LISTIO_MAX:
+ return sysctl32("kern.aio_listio_max"), nil
+ case SC_AIO_MAX:
+ return sysctl32("kern.aio_max"), nil
+ case SC_ASYNCHRONOUS_IO:
+ return yesno(sysctl32("kern.posix_aio")), nil
+ case SC_MESSAGE_PASSING:
+ return yesno(sysctl32("kern.posix_msg")), nil
+ case SC_MQ_OPEN_MAX:
+ return sysctl32("kern.mqueue.mq_open_max"), nil
+ case SC_MQ_PRIO_MAX:
+ return sysctl32("kern.mqueue.mq_prio_max"), nil
+ case SC_PRIORITY_SCHEDULING:
+ return yesno(sysctl32("kern.posix_sched")), nil
+ case SC_ATEXIT_MAX:
+ // sysctl("user.atexit_max")
+ return -1, nil // TODO
+
+ // 1003.1-2001, TSF
+ case SC_GETGR_R_SIZE_MAX:
+ return _GETGR_R_SIZE_MAX, nil
+ case SC_GETPW_R_SIZE_MAX:
+ return _GETPW_R_SIZE_MAX, nil
+
+ // Unsorted
+ case SC_HOST_NAME_MAX:
+ return _MAXHOSTNAMELEN, nil
+ case SC_PASS_MAX:
+ return _PASSWORD_LEN, nil
+ case SC_REGEXP:
+ return _POSIX_REGEXP, nil
+ case SC_SHARED_MEMORY_OBJECTS:
+ return _POSIX_SHARED_MEMORY_OBJECTS, nil
+ case SC_SHELL:
+ return _POSIX_SHELL, nil
+ case SC_SPAWN:
+ return _POSIX_SPAWN, nil
+
+ // Extensions
+ case SC_NPROCESSORS_CONF:
+ return sysctl32("hw.ncpu"), nil
+ case SC_NPROCESSORS_ONLN:
+ return sysctl32("hw.ncpuonline"), nil
+
+ // Linux/Solaris
+ case SC_PHYS_PAGES:
+ return sysctl64("hw.physmem64") / int64(unix.Getpagesize()), nil
+
+ // Native
+ case SC_SCHED_RT_TS:
+ return sysctl32("kern.sched.rtts"), nil
+ case SC_SCHED_PRI_MIN:
+ return sysctl32("kern.sched.pri_min"), nil
+ case SC_SCHED_PRI_MAX:
+ return sysctl32("kern.sched.pri_max"), nil
+ case SC_THREAD_DESTRUCTOR_ITERATIONS:
+ return _POSIX_THREAD_DESTRUCTOR_ITERATIONS, nil
+ case SC_THREAD_KEYS_MAX:
+ return _POSIX_THREAD_KEYS_MAX, nil
+ case SC_THREAD_STACK_MIN:
+ return int64(unix.Getpagesize()), nil
+ case SC_THREAD_THREADS_MAX:
+ return sysctl32("kern.maxproc"), nil
+ case SC_THREAD_ATTR_STACKADDR:
+ return _POSIX_THREAD_ATTR_STACKADDR, nil
+ case SC_THREAD_ATTR_STACKSIZE:
+ return _POSIX_THREAD_ATTR_STACKSIZE, nil
+ case SC_THREAD_SAFE_FUNCTIONS:
+ return _POSIX_THREAD_SAFE_FUNCTIONS, nil
+ case SC_THREAD_PRIO_PROTECT:
+ return _POSIX_THREAD_PRIO_PROTECT, nil
+ case SC_THREAD_PRIORITY_SCHEDULING,
+ SC_THREAD_PRIO_INHERIT,
+ SC_THREAD_PROCESS_SHARED:
+ return -1, nil
+ case SC_TTY_NAME_MAX:
+ return pathconf(_PATH_DEV, _PC_NAME_MAX), nil
+ case SC_TIMER_MAX:
+ return _POSIX_TIMER_MAX, nil
+ case SC_SEM_NSEMS_MAX:
+ return _LONG_MAX, nil
+ case SC_CPUTIME:
+ return _POSIX_CPUTIME, nil
+ case SC_THREAD_CPUTIME:
+ return _POSIX_THREAD_CPUTIME, nil
+ case SC_DELAYTIMER_MAX:
+ return _POSIX_DELAYTIMER_MAX, nil
+ case SC_SIGQUEUE_MAX:
+ return _POSIX_SIGQUEUE_MAX, nil
+ case SC_REALTIME_SIGNALS:
+ return 200112, nil
+ }
+
+ return sysconfGeneric(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_openbsd.go b/vendor/github.com/tklauser/go-sysconf/sysconf_openbsd.go
new file mode 100644
index 0000000..c0c394a
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_openbsd.go
@@ -0,0 +1,271 @@
+// Copyright 2018 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"
+
+// sysconf implements sysconf(3) as in the OpenBSD 6.3 libc.
+func sysconf(name int) (int64, error) {
+ switch name {
+ case SC_AIO_LISTIO_MAX,
+ SC_AIO_MAX,
+ SC_AIO_PRIO_DELTA_MAX:
+ return -1, nil
+ case SC_ARG_MAX:
+ return sysctl32("kern.argmax"), nil
+ case SC_ATEXIT_MAX:
+ return -1, nil
+ case SC_CHILD_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return int64(rlim.Cur), nil
+ }
+ }
+ return -1, nil
+ case SC_CLK_TCK:
+ return _CLK_TCK, nil
+ case SC_DELAYTIMER_MAX:
+ return -1, nil
+ case SC_GETGR_R_SIZE_MAX:
+ return _GR_BUF_LEN, nil
+ case SC_GETPW_R_SIZE_MAX:
+ return _PW_BUF_LEN, nil
+ case SC_IOV_MAX:
+ return _IOV_MAX, nil
+ case SC_LOGIN_NAME_MAX:
+ return _LOGIN_NAME_MAX, nil
+ case SC_NGROUPS_MAX:
+ return sysctl32("kern.ngroups"), nil
+ case SC_OPEN_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ return int64(rlim.Cur), nil
+ }
+ }
+ return -1, nil
+ case SC_SEM_NSEMS_MAX:
+ return -1, nil
+ case SC_SEM_VALUE_MAX:
+ return _SEM_VALUE_MAX, nil
+ case SC_SIGQUEUE_MAX:
+ return -1, nil
+ case SC_STREAM_MAX:
+ var rlim unix.Rlimit
+ if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim); err == nil {
+ if rlim.Cur != unix.RLIM_INFINITY {
+ if rlim.Cur > _SHRT_MAX {
+ return _SHRT_MAX, nil
+ }
+ return int64(rlim.Cur), nil
+ }
+ }
+ return -1, nil
+ case SC_THREAD_DESTRUCTOR_ITERATIONS:
+ return _PTHREAD_DESTRUCTOR_ITERATIONS, nil
+ case SC_THREAD_KEYS_MAX:
+ return _PTHREAD_KEYS_MAX, nil
+ case SC_THREAD_STACK_MIN:
+ return _PTHREAD_STACK_MIN, nil
+ case SC_THREAD_THREADS_MAX:
+ return -1, nil
+ case SC_TIMER_MAX:
+ return -1, nil
+ case SC_TTY_NAME_MAX:
+ return _TTY_NAME_MAX, nil
+ case SC_TZNAME_MAX:
+ return _NAME_MAX, nil
+
+ case SC_BARRIERS:
+ return _POSIX_BARRIERS, nil
+ case SC_FSYNC:
+ return _POSIX_FSYNC, nil
+ case SC_IPV6:
+ if _POSIX_IPV6 == 0 {
+ fd, err := unix.Socket(unix.AF_INET6, unix.SOCK_DGRAM, 0)
+ if err == nil && fd >= 0 {
+ unix.Close(fd)
+ return int64(200112), nil
+ }
+ return 0, nil
+ }
+ return _POSIX_IPV6, nil
+ case SC_JOB_CONTROL:
+ return _POSIX_JOB_CONTROL, nil
+ case SC_MAPPED_FILES:
+ return _POSIX_MAPPED_FILES, nil
+ case SC_MONOTONIC_CLOCK:
+ return _POSIX_MONOTONIC_CLOCK, nil
+ case SC_SAVED_IDS:
+ return _POSIX_SAVED_IDS, nil
+ case SC_SEMAPHORES:
+ return _POSIX_SEMAPHORES, nil
+ case SC_SPAWN:
+ return _POSIX_SPAWN, nil
+ case SC_SPIN_LOCKS:
+ return _POSIX_SPIN_LOCKS, nil
+ case SC_SPORADIC_SERVER:
+ return _POSIX_SPORADIC_SERVER, nil
+ case SC_SYNCHRONIZED_IO:
+ return _POSIX_SYNCHRONIZED_IO, nil
+ case SC_THREAD_ATTR_STACKADDR:
+ return _POSIX_THREAD_ATTR_STACKADDR, nil
+ case SC_THREAD_ATTR_STACKSIZE:
+ return _POSIX_THREAD_ATTR_STACKSIZE, nil
+ case SC_THREAD_CPUTIME:
+ return _POSIX_THREAD_CPUTIME, nil
+ case SC_THREAD_PRIO_INHERIT:
+ return _POSIX_THREAD_PRIO_INHERIT, nil
+ case SC_THREAD_PRIO_PROTECT:
+ return _POSIX_THREAD_PRIO_PROTECT, nil
+ case SC_THREAD_PRIORITY_SCHEDULING:
+ return _POSIX_THREAD_PRIORITY_SCHEDULING, nil
+ case SC_THREAD_PROCESS_SHARED:
+ return _POSIX_THREAD_PROCESS_SHARED, nil
+ case SC_THREAD_ROBUST_PRIO_INHERIT:
+ return _POSIX_THREAD_ROBUST_PRIO_INHERIT, nil
+ case SC_THREAD_ROBUST_PRIO_PROTECT:
+ return _POSIX_THREAD_ROBUST_PRIO_PROTECT, nil
+ case SC_THREAD_SAFE_FUNCTIONS:
+ return _POSIX_THREAD_SAFE_FUNCTIONS, nil
+ case SC_THREAD_SPORADIC_SERVER:
+ return _POSIX_THREAD_SPORADIC_SERVER, nil
+ case SC_THREADS:
+ return _POSIX_THREADS, nil
+ case SC_TIMEOUTS:
+ return _POSIX_TIMEOUTS, nil
+ case SC_TIMERS:
+ return _POSIX_TIMERS, nil
+ case SC_TRACE,
+ SC_TRACE_EVENT_FILTER,
+ SC_TRACE_EVENT_NAME_MAX,
+ SC_TRACE_INHERIT,
+ SC_TRACE_LOG:
+ return _POSIX_TRACE, nil
+ case SC_TYPED_MEMORY_OBJECTS:
+ return _POSIX_TYPED_MEMORY_OBJECTS, nil
+
+ case SC_V7_ILP32_OFF32:
+ return _POSIX_V7_ILP32_OFF32, nil
+ case SC_V7_ILP32_OFFBIG:
+ if _POSIX_V7_ILP32_OFFBIG == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofLong*_CHAR_BIT == 32 &&
+ unix.SizeofPtr*_CHAR_BIT == 32 &&
+ sizeofOffT*_CHAR_BIT >= 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _POSIX_V7_ILP32_OFFBIG, nil
+ case SC_V7_LP64_OFF64:
+ if _POSIX_V7_LP64_OFF64 == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofLong*_CHAR_BIT == 64 &&
+ unix.SizeofPtr*_CHAR_BIT == 64 &&
+ sizeofOffT*_CHAR_BIT == 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _POSIX_V7_LP64_OFF64, nil
+ case SC_V7_LPBIG_OFFBIG:
+ if _POSIX_V7_LPBIG_OFFBIG == 0 {
+ if unix.SizeofInt*_CHAR_BIT >= 32 &&
+ unix.SizeofLong*_CHAR_BIT >= 64 &&
+ unix.SizeofPtr*_CHAR_BIT >= 64 &&
+ sizeofOffT*_CHAR_BIT >= 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _POSIX_V7_LPBIG_OFFBIG, nil
+
+ case SC_V6_ILP32_OFF32:
+ return _POSIX_V6_ILP32_OFF32, nil
+ case SC_V6_ILP32_OFFBIG:
+ if _POSIX_V6_ILP32_OFFBIG == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofLong*_CHAR_BIT == 32 &&
+ unix.SizeofPtr*_CHAR_BIT == 32 &&
+ sizeofOffT*_CHAR_BIT >= 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _POSIX_V6_ILP32_OFFBIG, nil
+ case SC_V6_LP64_OFF64:
+ if _POSIX_V6_LP64_OFF64 == 0 {
+ if unix.SizeofInt*_CHAR_BIT == 32 &&
+ unix.SizeofLong*_CHAR_BIT == 64 &&
+ unix.SizeofPtr*_CHAR_BIT == 64 &&
+ sizeofOffT*_CHAR_BIT == 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _POSIX_V6_LP64_OFF64, nil
+ case SC_V6_LPBIG_OFFBIG:
+ if _POSIX_V6_LPBIG_OFFBIG == 0 {
+ if unix.SizeofInt*_CHAR_BIT >= 32 &&
+ unix.SizeofLong*_CHAR_BIT >= 64 &&
+ unix.SizeofPtr*_CHAR_BIT >= 64 &&
+ sizeofOffT*_CHAR_BIT >= 64 {
+ return 1, nil
+ }
+ return -1, nil
+ }
+ return _POSIX_V6_LPBIG_OFFBIG, nil
+
+ case SC_2_CHAR_TERM:
+ return _POSIX2_CHAR_TERM, nil
+ case SC_2_PBS,
+ SC_2_PBS_ACCOUNTING,
+ SC_2_PBS_CHECKPOINT,
+ SC_2_PBS_LOCATE,
+ SC_2_PBS_MESSAGE,
+ SC_2_PBS_TRACK:
+ return _POSIX2_PBS, nil
+ case SC_2_UPE:
+ return _POSIX2_UPE, nil
+ case SC_2_VERSION:
+ return _POSIX2_VERSION, nil
+
+ case SC_XOPEN_CRYPT:
+ return _XOPEN_CRYPT, nil
+ case SC_XOPEN_ENH_I18N:
+ return _XOPEN_ENH_I18N, nil
+ case SC_XOPEN_REALTIME:
+ return _XOPEN_REALTIME, nil
+ case SC_XOPEN_REALTIME_THREADS:
+ return _XOPEN_REALTIME_THREADS, nil
+ case SC_XOPEN_SHM:
+ return _XOPEN_SHM, nil
+ case SC_XOPEN_STREAMS:
+ return _XOPEN_STREAMS, nil
+ case SC_XOPEN_UNIX:
+ return _XOPEN_UNIX, nil
+ case SC_XOPEN_UUCP:
+ return _XOPEN_UUCP, nil
+
+ case SC_AVPHYS_PAGES:
+ if uvm, err := unix.SysctlUvmexp("vm.uvmexp"); err == nil {
+ return int64(uvm.Free), nil
+ }
+ return -1, nil
+ case SC_PHYS_PAGES:
+ return sysctl64("hw.physmem") / int64(unix.Getpagesize()), nil
+ case SC_NPROCESSORS_CONF:
+ return sysctl32("hw.ncpu"), nil
+ case SC_NPROCESSORS_ONLN:
+ if val, err := unix.SysctlUint32("hw.ncpuonline"); err == nil {
+ return int64(val), nil
+ }
+ return sysctl32("hw.ncpu"), nil
+ }
+
+ return sysconfGeneric(name)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_posix.go b/vendor/github.com/tklauser/go-sysconf/sysconf_posix.go
new file mode 100644
index 0000000..e61c0bc
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_posix.go
@@ -0,0 +1,83 @@
+// Copyright 2018 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 || openbsd
+// +build darwin dragonfly freebsd linux openbsd
+
+package sysconf
+
+func sysconfPOSIX(name int) (int64, error) {
+ switch name {
+ case SC_ADVISORY_INFO:
+ return _POSIX_ADVISORY_INFO, nil
+ case SC_ASYNCHRONOUS_IO:
+ return _POSIX_ASYNCHRONOUS_IO, nil
+ case SC_BARRIERS:
+ return _POSIX_BARRIERS, nil
+ case SC_CLOCK_SELECTION:
+ return _POSIX_CLOCK_SELECTION, nil
+ case SC_CPUTIME:
+ return _POSIX_CPUTIME, nil
+ case SC_FSYNC:
+ return _POSIX_FSYNC, nil
+ case SC_IPV6:
+ return _POSIX_IPV6, nil
+ case SC_JOB_CONTROL:
+ return _POSIX_JOB_CONTROL, nil
+ case SC_MAPPED_FILES:
+ return _POSIX_MAPPED_FILES, nil
+ case SC_MEMLOCK:
+ return _POSIX_MEMLOCK, nil
+ case SC_MEMLOCK_RANGE:
+ return _POSIX_MEMLOCK_RANGE, nil
+ case SC_MONOTONIC_CLOCK:
+ return _POSIX_MONOTONIC_CLOCK, nil
+ case SC_MEMORY_PROTECTION:
+ return _POSIX_MEMORY_PROTECTION, nil
+ case SC_MESSAGE_PASSING:
+ return _POSIX_MESSAGE_PASSING, nil
+ case SC_PRIORITIZED_IO:
+ return _POSIX_PRIORITIZED_IO, nil
+ case SC_PRIORITY_SCHEDULING:
+ return _POSIX_PRIORITY_SCHEDULING, nil
+ case SC_RAW_SOCKETS:
+ return _POSIX_RAW_SOCKETS, nil
+ case SC_READER_WRITER_LOCKS:
+ return _POSIX_READER_WRITER_LOCKS, nil
+ case SC_REALTIME_SIGNALS:
+ return _POSIX_REALTIME_SIGNALS, nil
+ case SC_REGEXP:
+ return _POSIX_REGEXP, nil
+ case SC_SEMAPHORES:
+ return _POSIX_SEMAPHORES, nil
+ case SC_SHARED_MEMORY_OBJECTS:
+ return _POSIX_SHARED_MEMORY_OBJECTS, nil
+ case SC_SHELL:
+ return _POSIX_SHELL, nil
+ case SC_THREADS:
+ return _POSIX_THREADS, nil
+ case SC_TIMEOUTS:
+ return _POSIX_TIMEOUTS, nil
+ case SC_TIMERS:
+ return _POSIX_TIMERS, nil
+ case SC_VERSION:
+ return _POSIX_VERSION, nil
+
+ case SC_2_C_BIND:
+ return _POSIX2_C_BIND, nil
+ case SC_2_C_DEV:
+ return _POSIX2_C_DEV, nil
+ case SC_2_FORT_DEV:
+ return -1, nil
+ case SC_2_FORT_RUN:
+ return -1, nil
+ case SC_2_LOCALEDEF:
+ return _POSIX2_LOCALEDEF, nil
+ case SC_2_SW_DEV:
+ return _POSIX2_SW_DEV, nil
+ case SC_2_VERSION:
+ return _POSIX2_VERSION, nil
+ }
+ return -1, errInvalid
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_solaris.go b/vendor/github.com/tklauser/go-sysconf/sysconf_solaris.go
new file mode 100644
index 0000000..443b214
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_solaris.go
@@ -0,0 +1,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)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/sysconf_unsupported.go b/vendor/github.com/tklauser/go-sysconf/sysconf_unsupported.go
new file mode 100644
index 0000000..478d692
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/sysconf_unsupported.go
@@ -0,0 +1,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)
+}
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_darwin.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_darwin.go
new file mode 100644
index 0000000..6fadf3d
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_darwin.go
@@ -0,0 +1,254 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_darwin.go
+
+//go:build darwin
+// +build darwin
+
+package sysconf
+
+const (
+ SC_AIO_LISTIO_MAX = 0x2a
+ SC_AIO_MAX = 0x2b
+ SC_AIO_PRIO_DELTA_MAX = 0x2c
+ SC_ARG_MAX = 0x1
+ SC_ATEXIT_MAX = 0x6b
+ SC_BC_BASE_MAX = 0x9
+ SC_BC_DIM_MAX = 0xa
+ SC_BC_SCALE_MAX = 0xb
+ SC_BC_STRING_MAX = 0xc
+ SC_CHILD_MAX = 0x2
+ SC_CLK_TCK = 0x3
+ SC_COLL_WEIGHTS_MAX = 0xd
+ SC_DELAYTIMER_MAX = 0x2d
+ SC_EXPR_NEST_MAX = 0xe
+ SC_GETGR_R_SIZE_MAX = 0x46
+ SC_GETPW_R_SIZE_MAX = 0x47
+ SC_HOST_NAME_MAX = 0x48
+ SC_IOV_MAX = 0x38
+ SC_LINE_MAX = 0xf
+ SC_LOGIN_NAME_MAX = 0x49
+ SC_MQ_OPEN_MAX = 0x2e
+ SC_MQ_PRIO_MAX = 0x4b
+ SC_NGROUPS_MAX = 0x4
+ SC_OPEN_MAX = 0x5
+ SC_PAGE_SIZE = 0x1d
+ SC_PAGESIZE = 0x1d
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x55
+ SC_THREAD_KEYS_MAX = 0x56
+ SC_THREAD_STACK_MIN = 0x5d
+ SC_THREAD_THREADS_MAX = 0x5e
+ SC_RE_DUP_MAX = 0x10
+ SC_RTSIG_MAX = 0x30
+ SC_SEM_NSEMS_MAX = 0x31
+ SC_SEM_VALUE_MAX = 0x32
+ SC_SIGQUEUE_MAX = 0x33
+ SC_STREAM_MAX = 0x1a
+ SC_SYMLOOP_MAX = 0x78
+ SC_TIMER_MAX = 0x34
+ SC_TTY_NAME_MAX = 0x65
+ SC_TZNAME_MAX = 0x1b
+
+ SC_ADVISORY_INFO = 0x41
+ SC_ASYNCHRONOUS_IO = 0x1c
+ SC_BARRIERS = 0x42
+ SC_CLOCK_SELECTION = 0x43
+ SC_CPUTIME = 0x44
+ SC_FSYNC = 0x26
+ SC_IPV6 = 0x76
+ SC_JOB_CONTROL = 0x6
+ SC_MAPPED_FILES = 0x2f
+ SC_MEMLOCK = 0x1e
+ SC_MEMLOCK_RANGE = 0x1f
+ SC_MEMORY_PROTECTION = 0x20
+ SC_MESSAGE_PASSING = 0x21
+ SC_MONOTONIC_CLOCK = 0x4a
+ SC_PRIORITIZED_IO = 0x22
+ SC_PRIORITY_SCHEDULING = 0x23
+ SC_RAW_SOCKETS = 0x77
+ SC_READER_WRITER_LOCKS = 0x4c
+ SC_REALTIME_SIGNALS = 0x24
+ SC_REGEXP = 0x4d
+ SC_SAVED_IDS = 0x7
+ SC_SEMAPHORES = 0x25
+ SC_SHARED_MEMORY_OBJECTS = 0x27
+ SC_SHELL = 0x4e
+ SC_SPAWN = 0x4f
+ SC_SPIN_LOCKS = 0x50
+ SC_SPORADIC_SERVER = 0x51
+ SC_SS_REPL_MAX = 0x7e
+ SC_SYNCHRONIZED_IO = 0x28
+ SC_THREAD_ATTR_STACKADDR = 0x52
+ SC_THREAD_ATTR_STACKSIZE = 0x53
+ SC_THREAD_CPUTIME = 0x54
+ SC_THREAD_PRIO_INHERIT = 0x57
+ SC_THREAD_PRIO_PROTECT = 0x58
+ SC_THREAD_PRIORITY_SCHEDULING = 0x59
+ SC_THREAD_PROCESS_SHARED = 0x5a
+ SC_THREAD_SAFE_FUNCTIONS = 0x5b
+ SC_THREAD_SPORADIC_SERVER = 0x5c
+ SC_THREADS = 0x60
+ SC_TIMEOUTS = 0x5f
+ SC_TIMERS = 0x29
+ SC_TRACE = 0x61
+ SC_TRACE_EVENT_FILTER = 0x62
+ SC_TRACE_EVENT_NAME_MAX = 0x7f
+ SC_TRACE_INHERIT = 0x63
+ SC_TRACE_LOG = 0x64
+ SC_TRACE_NAME_MAX = 0x80
+ SC_TRACE_SYS_MAX = 0x81
+ SC_TRACE_USER_EVENT_MAX = 0x82
+ SC_TYPED_MEMORY_OBJECTS = 0x66
+ SC_VERSION = 0x8
+
+ SC_V6_ILP32_OFF32 = 0x67
+ SC_V6_ILP32_OFFBIG = 0x68
+ SC_V6_LP64_OFF64 = 0x69
+ SC_V6_LPBIG_OFFBIG = 0x6a
+
+ SC_2_C_BIND = 0x12
+ SC_2_C_DEV = 0x13
+ SC_2_CHAR_TERM = 0x14
+ SC_2_FORT_DEV = 0x15
+ SC_2_FORT_RUN = 0x16
+ SC_2_LOCALEDEF = 0x17
+ SC_2_PBS = 0x3b
+ SC_2_PBS_ACCOUNTING = 0x3c
+ SC_2_PBS_CHECKPOINT = 0x3d
+ SC_2_PBS_LOCATE = 0x3e
+ SC_2_PBS_MESSAGE = 0x3f
+ SC_2_PBS_TRACK = 0x40
+ SC_2_SW_DEV = 0x18
+ SC_2_UPE = 0x19
+ SC_2_VERSION = 0x11
+
+ SC_XOPEN_CRYPT = 0x6c
+ SC_XOPEN_ENH_I18N = 0x6d
+ SC_XOPEN_REALTIME = 0x6f
+ SC_XOPEN_REALTIME_THREADS = 0x70
+ SC_XOPEN_SHM = 0x71
+ SC_XOPEN_STREAMS = 0x72
+ SC_XOPEN_UNIX = 0x73
+ SC_XOPEN_VERSION = 0x74
+ SC_XOPEN_XCU_VERSION = 0x79
+
+ SC_PHYS_PAGES = 0xc8
+ SC_NPROCESSORS_CONF = 0x39
+ SC_NPROCESSORS_ONLN = 0x3a
+)
+
+const (
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0x2
+ _EXPR_NEST_MAX = 0x20
+ _IOV_MAX = 0x400
+ _LINE_MAX = 0x800
+ _NAME_MAX = 0xff
+ _RE_DUP_MAX = 0xff
+
+ _CLK_TCK = 0x64
+
+ _MAXHOSTNAMELEN = 0x100
+ _MAXLOGNAME = 0xff
+ _MAXSYMLINKS = 0x20
+
+ _POSIX_ADVISORY_INFO = -0x1
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = -0x1
+ _POSIX_BARRIERS = -0x1
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = -0x1
+ _POSIX_CPUTIME = -0x1
+ _POSIX_FSYNC = 0x30db0
+ _POSIX_IPV6 = 0x30db0
+ _POSIX_JOB_CONTROL = 0x30db0
+ _POSIX_MAPPED_FILES = 0x30db0
+ _POSIX_MEMLOCK = -0x1
+ _POSIX_MEMLOCK_RANGE = -0x1
+ _POSIX_MEMORY_PROTECTION = 0x30db0
+ _POSIX_MESSAGE_PASSING = -0x1
+ _POSIX_MONOTONIC_CLOCK = -0x1
+ _POSIX_PRIORITIZED_IO = -0x1
+ _POSIX_PRIORITY_SCHEDULING = -0x1
+ _POSIX_RAW_SOCKETS = -0x1
+ _POSIX_READER_WRITER_LOCKS = 0x30db0
+ _POSIX_REALTIME_SIGNALS = -0x1
+ _POSIX_REGEXP = 0x30db0
+ _POSIX_SEM_VALUE_MAX = 0x7fff
+ _POSIX_SEMAPHORES = -0x1
+ _POSIX_SHARED_MEMORY_OBJECTS = -0x1
+ _POSIX_SHELL = 0x30db0
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPIN_LOCKS = -0x1
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SS_REPL_MAX = 0x4
+ _POSIX_SYNCHRONIZED_IO = -0x1
+ _POSIX_THREAD_ATTR_STACKADDR = 0x30db0
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x30db0
+ _POSIX_THREAD_CPUTIME = -0x1
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_KEYS_MAX = 0x80
+ _POSIX_THREAD_PRIO_INHERIT = -0x1
+ _POSIX_THREAD_PRIO_PROTECT = -0x1
+ _POSIX_THREAD_PRIORITY_SCHEDULING = -0x1
+ _POSIX_THREAD_PROCESS_SHARED = 0x30db0
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x30db0
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x30db0
+ _POSIX_TIMEOUTS = -0x1
+ _POSIX_TIMERS = -0x1
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_EVENT_NAME_MAX = 0x1e
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TRACE_NAME_MAX = 0x8
+ _POSIX_TRACE_SYS_MAX = 0x8
+ _POSIX_TRACE_USER_EVENT_MAX = 0x20
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x30db0
+
+ _V6_ILP32_OFF32 = -0x1
+ _V6_ILP32_OFFBIG = -0x1
+ _V6_LP64_OFF64 = 0x1
+ _V6_LPBIG_OFFBIG = 0x1
+
+ _POSIX2_C_BIND = 0x30db0
+ _POSIX2_C_DEV = 0x30db0
+ _POSIX2_CHAR_TERM = 0x30db0
+ _POSIX2_LOCALEDEF = 0x30db0
+ _POSIX2_PBS = -0x1
+ _POSIX2_SW_DEV = 0x30db0
+ _POSIX2_UPE = 0x30db0
+ _POSIX2_VERSION = 0x30db0
+
+ _XOPEN_CRYPT = 0x1
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = -0x1
+ _XOPEN_REALTIME_THREADS = -0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x258
+ _XOPEN_XCU_VERSION = 0x4
+
+ _PTHREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _PTHREAD_KEYS_MAX = 0x200
+ _PTHREAD_STACK_MIN = 0x2000
+)
+
+const (
+ _PC_NAME_MAX = 0x4
+
+ _PATH_ZONEINFO = "/usr/share/zoneinfo"
+)
+
+const (
+ _CHAR_BIT = 0x8
+
+ _INT_MAX = 0x7fffffff
+ _LONG_MAX = 0x7fffffffffffffff
+
+ sizeofOffT = 0x8
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_dragonfly.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_dragonfly.go
new file mode 100644
index 0000000..0864cd4
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_dragonfly.go
@@ -0,0 +1,228 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_dragonfly.go
+
+//go:build dragonfly
+// +build dragonfly
+
+package sysconf
+
+const (
+ SC_AIO_LISTIO_MAX = 0x2a
+ SC_AIO_MAX = 0x2b
+ SC_AIO_PRIO_DELTA_MAX = 0x2c
+ SC_ARG_MAX = 0x1
+ SC_ATEXIT_MAX = 0x6b
+ SC_BC_BASE_MAX = 0x9
+ SC_BC_DIM_MAX = 0xa
+ SC_BC_SCALE_MAX = 0xb
+ SC_BC_STRING_MAX = 0xc
+ SC_CHILD_MAX = 0x2
+ SC_CLK_TCK = 0x3
+ SC_COLL_WEIGHTS_MAX = 0xd
+ SC_DELAYTIMER_MAX = 0x2d
+ SC_EXPR_NEST_MAX = 0xe
+ SC_GETGR_R_SIZE_MAX = 0x46
+ SC_GETPW_R_SIZE_MAX = 0x47
+ SC_HOST_NAME_MAX = 0x48
+ SC_IOV_MAX = 0x38
+ SC_LINE_MAX = 0xf
+ SC_LOGIN_NAME_MAX = 0x49
+ SC_MQ_OPEN_MAX = 0x2e
+ SC_MQ_PRIO_MAX = 0x4b
+ SC_NGROUPS_MAX = 0x4
+ SC_OPEN_MAX = 0x5
+ SC_PAGE_SIZE = 0x2f
+ SC_PAGESIZE = 0x2f
+ SC_RE_DUP_MAX = 0x10
+ SC_RTSIG_MAX = 0x30
+ SC_SEM_NSEMS_MAX = 0x31
+ SC_SEM_VALUE_MAX = 0x32
+ SC_SIGQUEUE_MAX = 0x33
+ SC_STREAM_MAX = 0x1a
+ SC_SYMLOOP_MAX = 0x78
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x55
+ SC_THREAD_KEYS_MAX = 0x56
+ SC_THREAD_STACK_MIN = 0x5d
+ SC_THREAD_THREADS_MAX = 0x5e
+ SC_TIMER_MAX = 0x34
+ SC_TTY_NAME_MAX = 0x65
+ SC_TZNAME_MAX = 0x1b
+
+ SC_ADVISORY_INFO = 0x41
+ SC_ASYNCHRONOUS_IO = 0x1c
+ SC_BARRIERS = 0x42
+ SC_CLOCK_SELECTION = 0x43
+ SC_CPUTIME = 0x44
+ SC_FSYNC = 0x26
+ SC_IPV6 = 0x76
+ SC_JOB_CONTROL = 0x6
+ SC_MAPPED_FILES = 0x1d
+ SC_MEMLOCK = 0x1e
+ SC_MEMLOCK_RANGE = 0x1f
+ SC_MEMORY_PROTECTION = 0x20
+ SC_MESSAGE_PASSING = 0x21
+ SC_MONOTONIC_CLOCK = 0x4a
+ SC_PRIORITIZED_IO = 0x22
+ SC_PRIORITY_SCHEDULING = 0x23
+ SC_RAW_SOCKETS = 0x77
+ SC_READER_WRITER_LOCKS = 0x4c
+ SC_REALTIME_SIGNALS = 0x24
+ SC_REGEXP = 0x4d
+ SC_SAVED_IDS = 0x7
+ SC_SEMAPHORES = 0x25
+ SC_SHARED_MEMORY_OBJECTS = 0x27
+ SC_SHELL = 0x4e
+ SC_SPAWN = 0x4f
+ SC_SPIN_LOCKS = 0x50
+ SC_SPORADIC_SERVER = 0x51
+ SC_SYNCHRONIZED_IO = 0x28
+ SC_THREAD_ATTR_STACKADDR = 0x52
+ SC_THREAD_ATTR_STACKSIZE = 0x53
+ SC_THREAD_CPUTIME = 0x54
+ SC_THREAD_PRIO_INHERIT = 0x57
+ SC_THREAD_PRIO_PROTECT = 0x58
+ SC_THREAD_PRIORITY_SCHEDULING = 0x59
+ SC_THREAD_PROCESS_SHARED = 0x5a
+ SC_THREAD_SAFE_FUNCTIONS = 0x5b
+ SC_THREAD_SPORADIC_SERVER = 0x5c
+ SC_THREADS = 0x60
+ SC_TIMEOUTS = 0x5f
+ SC_TIMERS = 0x29
+ SC_TRACE = 0x61
+ SC_TRACE_EVENT_FILTER = 0x62
+ SC_TRACE_INHERIT = 0x63
+ SC_TRACE_LOG = 0x64
+ SC_TYPED_MEMORY_OBJECTS = 0x66
+ SC_VERSION = 0x8
+
+ SC_V6_ILP32_OFF32 = 0x67
+ SC_V6_ILP32_OFFBIG = 0x68
+ SC_V6_LP64_OFF64 = 0x69
+ SC_V6_LPBIG_OFFBIG = 0x6a
+
+ SC_2_C_BIND = 0x12
+ SC_2_C_DEV = 0x13
+ SC_2_CHAR_TERM = 0x14
+ SC_2_FORT_DEV = 0x15
+ SC_2_FORT_RUN = 0x16
+ SC_2_LOCALEDEF = 0x17
+ SC_2_PBS = 0x3b
+ SC_2_PBS_ACCOUNTING = 0x3c
+ SC_2_PBS_CHECKPOINT = 0x3d
+ SC_2_PBS_LOCATE = 0x3e
+ SC_2_PBS_MESSAGE = 0x3f
+ SC_2_PBS_TRACK = 0x40
+ SC_2_SW_DEV = 0x18
+ SC_2_UPE = 0x19
+ SC_2_VERSION = 0x11
+
+ SC_XOPEN_CRYPT = 0x6c
+ SC_XOPEN_ENH_I18N = 0x6d
+ SC_XOPEN_REALTIME = 0x6f
+ SC_XOPEN_REALTIME_THREADS = 0x70
+ SC_XOPEN_SHM = 0x71
+ SC_XOPEN_STREAMS = 0x72
+ SC_XOPEN_UNIX = 0x73
+ SC_XOPEN_VERSION = 0x74
+ SC_XOPEN_XCU_VERSION = 0x75
+
+ SC_PHYS_PAGES = 0x79
+ SC_NPROCESSORS_CONF = 0x39
+ SC_NPROCESSORS_ONLN = 0x3a
+)
+
+const (
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xa
+ _EXPR_NEST_MAX = 0x20
+ _LINE_MAX = 0x800
+ _RE_DUP_MAX = 0xff
+
+ _CLK_TCK = 0x80
+
+ _MAXHOSTNAMELEN = 0x100
+ _MAXLOGNAME = 0x11
+ _MAXSYMLINKS = 0x20
+ _ATEXIT_SIZE = 0x20
+
+ _POSIX_ADVISORY_INFO = -0x1
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x0
+ _POSIX_BARRIERS = 0x30db0
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = -0x1
+ _POSIX_CPUTIME = 0x30db0
+ _POSIX_FSYNC = 0x30db0
+ _POSIX_IPV6 = 0x0
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x30db0
+ _POSIX_MEMLOCK = -0x1
+ _POSIX_MEMLOCK_RANGE = 0x30db0
+ _POSIX_MEMORY_PROTECTION = 0x30db0
+ _POSIX_MESSAGE_PASSING = 0x30db0
+ _POSIX_MONOTONIC_CLOCK = 0x30db0
+ _POSIX_PRIORITIZED_IO = -0x1
+ _POSIX_PRIORITY_SCHEDULING = 0x30db0
+ _POSIX_RAW_SOCKETS = 0x30db0
+ _POSIX_READER_WRITER_LOCKS = 0x30db0
+ _POSIX_REALTIME_SIGNALS = 0x30db0
+ _POSIX_REGEXP = 0x1
+ _POSIX_SEM_VALUE_MAX = 0x7fff
+ _POSIX_SEMAPHORES = 0x30db0
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x30db0
+ _POSIX_SHELL = 0x1
+ _POSIX_SPAWN = 0x30db0
+ _POSIX_SPIN_LOCKS = 0x30db0
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = -0x1
+ _POSIX_THREAD_ATTR_STACKADDR = 0x30db0
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x30db0
+ _POSIX_THREAD_CPUTIME = 0x30db0
+ _POSIX_THREAD_PRIO_INHERIT = 0x30db0
+ _POSIX_THREAD_PRIO_PROTECT = 0x30db0
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x30db0
+ _POSIX_THREAD_PROCESS_SHARED = -0x1
+ _POSIX_THREAD_SAFE_FUNCTIONS = -0x1
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x30db0
+ _POSIX_TIMEOUTS = 0x30db0
+ _POSIX_TIMERS = 0x30db0
+ _POSIX_TRACE = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x30db0
+
+ _V6_ILP32_OFF32 = -0x1
+ _V6_ILP32_OFFBIG = 0x0
+ _V6_LP64_OFF64 = 0x0
+ _V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_CHAR_TERM = 0x1
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_PBS = -0x1
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_UPE = 0x31069
+ _POSIX2_VERSION = 0x30a2c
+
+ _XOPEN_CRYPT = -0x1
+ _XOPEN_ENH_I18N = -0x1
+ _XOPEN_REALTIME = -0x1
+ _XOPEN_REALTIME_THREADS = -0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = -0x1
+
+ _PTHREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _PTHREAD_KEYS_MAX = 0x100
+ _PTHREAD_STACK_MIN = 0x4000
+)
+
+const (
+ _PC_NAME_MAX = 0x4
+
+ _PATH_DEV = "/dev/"
+ _PATH_ZONEINFO = "/usr/share/zoneinfo"
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_freebsd.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_freebsd.go
new file mode 100644
index 0000000..9885411
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_freebsd.go
@@ -0,0 +1,229 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_freebsd.go
+
+//go:build freebsd
+// +build freebsd
+
+package sysconf
+
+const (
+ SC_AIO_LISTIO_MAX = 0x2a
+ SC_AIO_MAX = 0x2b
+ SC_AIO_PRIO_DELTA_MAX = 0x2c
+ SC_ARG_MAX = 0x1
+ SC_ATEXIT_MAX = 0x6b
+ SC_BC_BASE_MAX = 0x9
+ SC_BC_DIM_MAX = 0xa
+ SC_BC_SCALE_MAX = 0xb
+ SC_BC_STRING_MAX = 0xc
+ SC_CHILD_MAX = 0x2
+ SC_CLK_TCK = 0x3
+ SC_COLL_WEIGHTS_MAX = 0xd
+ SC_DELAYTIMER_MAX = 0x2d
+ SC_EXPR_NEST_MAX = 0xe
+ SC_GETGR_R_SIZE_MAX = 0x46
+ SC_GETPW_R_SIZE_MAX = 0x47
+ SC_HOST_NAME_MAX = 0x48
+ SC_IOV_MAX = 0x38
+ SC_LINE_MAX = 0xf
+ SC_LOGIN_NAME_MAX = 0x49
+ SC_MQ_OPEN_MAX = 0x2e
+ SC_MQ_PRIO_MAX = 0x4b
+ SC_NGROUPS_MAX = 0x4
+ SC_OPEN_MAX = 0x5
+ SC_PAGE_SIZE = 0x2f
+ SC_PAGESIZE = 0x2f
+ SC_RE_DUP_MAX = 0x10
+ SC_RTSIG_MAX = 0x30
+ SC_SEM_NSEMS_MAX = 0x31
+ SC_SEM_VALUE_MAX = 0x32
+ SC_SIGQUEUE_MAX = 0x33
+ SC_STREAM_MAX = 0x1a
+ SC_SYMLOOP_MAX = 0x78
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x55
+ SC_THREAD_KEYS_MAX = 0x56
+ SC_THREAD_STACK_MIN = 0x5d
+ SC_THREAD_THREADS_MAX = 0x5e
+ SC_TIMER_MAX = 0x34
+ SC_TTY_NAME_MAX = 0x65
+ SC_TZNAME_MAX = 0x1b
+
+ SC_ADVISORY_INFO = 0x41
+ SC_ASYNCHRONOUS_IO = 0x1c
+ SC_BARRIERS = 0x42
+ SC_CLOCK_SELECTION = 0x43
+ SC_CPUTIME = 0x44
+ SC_FSYNC = 0x26
+ SC_IPV6 = 0x76
+ SC_JOB_CONTROL = 0x6
+ SC_MAPPED_FILES = 0x1d
+ SC_MEMLOCK = 0x1e
+ SC_MEMLOCK_RANGE = 0x1f
+ SC_MEMORY_PROTECTION = 0x20
+ SC_MESSAGE_PASSING = 0x21
+ SC_MONOTONIC_CLOCK = 0x4a
+ SC_PRIORITIZED_IO = 0x22
+ SC_PRIORITY_SCHEDULING = 0x23
+ SC_RAW_SOCKETS = 0x77
+ SC_READER_WRITER_LOCKS = 0x4c
+ SC_REALTIME_SIGNALS = 0x24
+ SC_REGEXP = 0x4d
+ SC_SAVED_IDS = 0x7
+ SC_SEMAPHORES = 0x25
+ SC_SHARED_MEMORY_OBJECTS = 0x27
+ SC_SHELL = 0x4e
+ SC_SPAWN = 0x4f
+ SC_SPIN_LOCKS = 0x50
+ SC_SPORADIC_SERVER = 0x51
+ SC_SYNCHRONIZED_IO = 0x28
+ SC_THREAD_ATTR_STACKADDR = 0x52
+ SC_THREAD_ATTR_STACKSIZE = 0x53
+ SC_THREAD_CPUTIME = 0x54
+ SC_THREAD_PRIO_INHERIT = 0x57
+ SC_THREAD_PRIO_PROTECT = 0x58
+ SC_THREAD_PRIORITY_SCHEDULING = 0x59
+ SC_THREAD_PROCESS_SHARED = 0x5a
+ SC_THREAD_SAFE_FUNCTIONS = 0x5b
+ SC_THREAD_SPORADIC_SERVER = 0x5c
+ SC_THREADS = 0x60
+ SC_TIMEOUTS = 0x5f
+ SC_TIMERS = 0x29
+ SC_TRACE = 0x61
+ SC_TRACE_EVENT_FILTER = 0x62
+ SC_TRACE_INHERIT = 0x63
+ SC_TRACE_LOG = 0x64
+ SC_TYPED_MEMORY_OBJECTS = 0x66
+ SC_VERSION = 0x8
+
+ SC_V6_ILP32_OFF32 = 0x67
+ SC_V6_ILP32_OFFBIG = 0x68
+ SC_V6_LP64_OFF64 = 0x69
+ SC_V6_LPBIG_OFFBIG = 0x6a
+
+ SC_2_C_BIND = 0x12
+ SC_2_C_DEV = 0x13
+ SC_2_CHAR_TERM = 0x14
+ SC_2_FORT_DEV = 0x15
+ SC_2_FORT_RUN = 0x16
+ SC_2_LOCALEDEF = 0x17
+ SC_2_PBS = 0x3b
+ SC_2_PBS_ACCOUNTING = 0x3c
+ SC_2_PBS_CHECKPOINT = 0x3d
+ SC_2_PBS_LOCATE = 0x3e
+ SC_2_PBS_MESSAGE = 0x3f
+ SC_2_PBS_TRACK = 0x40
+ SC_2_SW_DEV = 0x18
+ SC_2_UPE = 0x19
+ SC_2_VERSION = 0x11
+
+ SC_XOPEN_CRYPT = 0x6c
+ SC_XOPEN_ENH_I18N = 0x6d
+ SC_XOPEN_REALTIME = 0x6f
+ SC_XOPEN_REALTIME_THREADS = 0x70
+ SC_XOPEN_SHM = 0x71
+ SC_XOPEN_STREAMS = 0x72
+ SC_XOPEN_UNIX = 0x73
+ SC_XOPEN_VERSION = 0x74
+ SC_XOPEN_XCU_VERSION = 0x75
+
+ SC_PHYS_PAGES = 0x79
+ SC_NPROCESSORS_CONF = 0x39
+ SC_NPROCESSORS_ONLN = 0x3a
+)
+
+const (
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xa
+ _EXPR_NEST_MAX = 0x20
+ _LINE_MAX = 0x800
+ _MQ_PRIO_MAX = 0x40
+ _RE_DUP_MAX = 0xff
+ _SEM_VALUE_MAX = 0x7fffffff
+
+ _CLK_TCK = 0x80
+
+ _MAXHOSTNAMELEN = 0x100
+ _MAXLOGNAME = 0x21
+ _MAXSYMLINKS = 0x20
+ _ATEXIT_SIZE = 0x20
+
+ _POSIX_ADVISORY_INFO = 0x30db0
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x30db0
+ _POSIX_BARRIERS = 0x30db0
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = -0x1
+ _POSIX_CPUTIME = 0x30db0
+ _POSIX_FSYNC = 0x30db0
+ _POSIX_IPV6 = 0x0
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x30db0
+ _POSIX_MEMLOCK = -0x1
+ _POSIX_MEMLOCK_RANGE = 0x30db0
+ _POSIX_MEMORY_PROTECTION = 0x30db0
+ _POSIX_MESSAGE_PASSING = 0x30db0
+ _POSIX_MONOTONIC_CLOCK = 0x30db0
+ _POSIX_PRIORITIZED_IO = -0x1
+ _POSIX_PRIORITY_SCHEDULING = 0x0
+ _POSIX_RAW_SOCKETS = 0x30db0
+ _POSIX_READER_WRITER_LOCKS = 0x30db0
+ _POSIX_REALTIME_SIGNALS = 0x30db0
+ _POSIX_REGEXP = 0x1
+ _POSIX_SEM_VALUE_MAX = 0x7fff
+ _POSIX_SEMAPHORES = 0x30db0
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x30db0
+ _POSIX_SHELL = 0x1
+ _POSIX_SPAWN = 0x30db0
+ _POSIX_SPIN_LOCKS = 0x30db0
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = -0x1
+ _POSIX_THREAD_ATTR_STACKADDR = 0x30db0
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x30db0
+ _POSIX_THREAD_CPUTIME = 0x30db0
+ _POSIX_THREAD_PRIO_INHERIT = 0x30db0
+ _POSIX_THREAD_PRIO_PROTECT = 0x30db0
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x30db0
+ _POSIX_THREAD_PROCESS_SHARED = 0x30db0
+ _POSIX_THREAD_SAFE_FUNCTIONS = -0x1
+ _POSIX_THREADS = 0x30db0
+ _POSIX_TIMEOUTS = 0x30db0
+ _POSIX_TIMERS = 0x30db0
+ _POSIX_TRACE = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x30db0
+
+ _V6_ILP32_OFF32 = -0x1
+ _V6_ILP32_OFFBIG = 0x0
+ _V6_LP64_OFF64 = 0x0
+ _V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x30db0
+ _POSIX2_C_DEV = -0x1
+ _POSIX2_CHAR_TERM = 0x1
+ _POSIX2_LOCALEDEF = -0x1
+ _POSIX2_PBS = -0x1
+ _POSIX2_SW_DEV = -0x1
+ _POSIX2_UPE = 0x30db0
+ _POSIX2_VERSION = 0x30a2c
+
+ _XOPEN_CRYPT = -0x1
+ _XOPEN_ENH_I18N = -0x1
+ _XOPEN_REALTIME = -0x1
+ _XOPEN_REALTIME_THREADS = -0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = -0x1
+
+ _PTHREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _PTHREAD_KEYS_MAX = 0x100
+ _PTHREAD_STACK_MIN = 0x800
+)
+
+const (
+ _PC_NAME_MAX = 0x4
+
+ _PATH_DEV = "/dev/"
+ _PATH_ZONEINFO = "/usr/share/zoneinfo"
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_linux.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_linux.go
new file mode 100644
index 0000000..8545a34
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_linux.go
@@ -0,0 +1,147 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_linux.go
+
+//go:build linux
+// +build linux
+
+package sysconf
+
+const (
+ SC_AIO_LISTIO_MAX = 0x17
+ SC_AIO_MAX = 0x18
+ SC_AIO_PRIO_DELTA_MAX = 0x19
+ SC_ARG_MAX = 0x0
+ SC_ATEXIT_MAX = 0x57
+ SC_BC_BASE_MAX = 0x24
+ SC_BC_DIM_MAX = 0x25
+ SC_BC_SCALE_MAX = 0x26
+ SC_BC_STRING_MAX = 0x27
+ SC_CHILD_MAX = 0x1
+ SC_CLK_TCK = 0x2
+ SC_COLL_WEIGHTS_MAX = 0x28
+ SC_DELAYTIMER_MAX = 0x1a
+ SC_EXPR_NEST_MAX = 0x2a
+ SC_GETGR_R_SIZE_MAX = 0x45
+ SC_GETPW_R_SIZE_MAX = 0x46
+ SC_HOST_NAME_MAX = 0xb4
+ SC_IOV_MAX = 0x3c
+ SC_LINE_MAX = 0x2b
+ SC_LOGIN_NAME_MAX = 0x47
+ SC_MQ_OPEN_MAX = 0x1b
+ SC_MQ_PRIO_MAX = 0x1c
+ SC_NGROUPS_MAX = 0x3
+ SC_OPEN_MAX = 0x4
+ SC_PAGE_SIZE = 0x1e
+ SC_PAGESIZE = 0x1e
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x49
+ SC_THREAD_KEYS_MAX = 0x4a
+ SC_THREAD_STACK_MIN = 0x4b
+ SC_THREAD_THREADS_MAX = 0x4c
+ SC_RE_DUP_MAX = 0x2c
+ SC_RTSIG_MAX = 0x1f
+ SC_SEM_NSEMS_MAX = 0x20
+ SC_SEM_VALUE_MAX = 0x21
+ SC_SIGQUEUE_MAX = 0x22
+ SC_STREAM_MAX = 0x5
+ SC_SYMLOOP_MAX = 0xad
+ SC_TIMER_MAX = 0x23
+ SC_TTY_NAME_MAX = 0x48
+ SC_TZNAME_MAX = 0x6
+
+ SC_ADVISORY_INFO = 0x84
+ SC_ASYNCHRONOUS_IO = 0xc
+ SC_BARRIERS = 0x85
+ SC_CLOCK_SELECTION = 0x89
+ SC_CPUTIME = 0x8a
+ SC_FSYNC = 0xf
+ SC_IPV6 = 0xeb
+ SC_JOB_CONTROL = 0x7
+ SC_MAPPED_FILES = 0x10
+ SC_MEMLOCK = 0x11
+ SC_MEMLOCK_RANGE = 0x12
+ SC_MEMORY_PROTECTION = 0x13
+ SC_MESSAGE_PASSING = 0x14
+ SC_MONOTONIC_CLOCK = 0x95
+ SC_PRIORITIZED_IO = 0xd
+ SC_PRIORITY_SCHEDULING = 0xa
+ SC_RAW_SOCKETS = 0xec
+ SC_READER_WRITER_LOCKS = 0x99
+ SC_REALTIME_SIGNALS = 0x9
+ SC_REGEXP = 0x9b
+ SC_SAVED_IDS = 0x8
+ SC_SEMAPHORES = 0x15
+ SC_SHARED_MEMORY_OBJECTS = 0x16
+ SC_SHELL = 0x9d
+ SC_SPAWN = 0x9f
+ SC_SPIN_LOCKS = 0x9a
+ SC_SPORADIC_SERVER = 0xa0
+ SC_SS_REPL_MAX = 0xf1
+ SC_SYNCHRONIZED_IO = 0xe
+ SC_THREAD_ATTR_STACKADDR = 0x4d
+ SC_THREAD_ATTR_STACKSIZE = 0x4e
+ SC_THREAD_CPUTIME = 0x8b
+ SC_THREAD_PRIO_INHERIT = 0x50
+ SC_THREAD_PRIO_PROTECT = 0x51
+ SC_THREAD_PRIORITY_SCHEDULING = 0x4f
+ SC_THREAD_PROCESS_SHARED = 0x52
+ SC_THREAD_ROBUST_PRIO_INHERIT = 0xf7
+ SC_THREAD_ROBUST_PRIO_PROTECT = 0xf8
+ SC_THREAD_SAFE_FUNCTIONS = 0x44
+ SC_THREAD_SPORADIC_SERVER = 0xa1
+ SC_THREADS = 0x43
+ SC_TIMEOUTS = 0xa4
+ SC_TIMERS = 0xb
+ SC_TRACE = 0xb5
+ SC_TRACE_EVENT_FILTER = 0xb6
+ SC_TRACE_EVENT_NAME_MAX = 0xf2
+ SC_TRACE_INHERIT = 0xb7
+ SC_TRACE_LOG = 0xb8
+ SC_TRACE_NAME_MAX = 0xf3
+ SC_TRACE_SYS_MAX = 0xf4
+ SC_TRACE_USER_EVENT_MAX = 0xf5
+ SC_TYPED_MEMORY_OBJECTS = 0xa5
+ SC_VERSION = 0x1d
+
+ SC_V7_ILP32_OFF32 = 0xed
+ SC_V7_ILP32_OFFBIG = 0xee
+ SC_V7_LP64_OFF64 = 0xef
+ SC_V7_LPBIG_OFFBIG = 0xf0
+
+ SC_V6_ILP32_OFF32 = 0xb0
+ SC_V6_ILP32_OFFBIG = 0xb1
+ SC_V6_LP64_OFF64 = 0xb2
+ SC_V6_LPBIG_OFFBIG = 0xb3
+
+ SC_2_C_BIND = 0x2f
+ SC_2_C_DEV = 0x30
+ SC_2_C_VERSION = 0x60
+ SC_2_CHAR_TERM = 0x5f
+ SC_2_FORT_DEV = 0x31
+ SC_2_FORT_RUN = 0x32
+ SC_2_LOCALEDEF = 0x34
+ SC_2_PBS = 0xa8
+ SC_2_PBS_ACCOUNTING = 0xa9
+ SC_2_PBS_CHECKPOINT = 0xaf
+ SC_2_PBS_LOCATE = 0xaa
+ SC_2_PBS_MESSAGE = 0xab
+ SC_2_PBS_TRACK = 0xac
+ SC_2_SW_DEV = 0x33
+ SC_2_UPE = 0x61
+ SC_2_VERSION = 0x2e
+
+ SC_XOPEN_CRYPT = 0x5c
+ SC_XOPEN_ENH_I18N = 0x5d
+ SC_XOPEN_REALTIME = 0x82
+ SC_XOPEN_REALTIME_THREADS = 0x83
+ SC_XOPEN_SHM = 0x5e
+ SC_XOPEN_STREAMS = 0xf6
+ SC_XOPEN_UNIX = 0x5b
+ SC_XOPEN_VERSION = 0x59
+ SC_XOPEN_XCU_VERSION = 0x5a
+
+ SC_PHYS_PAGES = 0x55
+ SC_AVPHYS_PAGES = 0x56
+ SC_NPROCESSORS_CONF = 0x53
+ SC_NPROCESSORS_ONLN = 0x54
+ SC_UIO_MAXIOV = 0x3c
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_netbsd.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_netbsd.go
new file mode 100644
index 0000000..d2aaf07
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_netbsd.go
@@ -0,0 +1,164 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_netbsd.go
+
+//go:build netbsd
+// +build netbsd
+
+package sysconf
+
+const (
+ SC_ARG_MAX = 0x1
+ SC_CHILD_MAX = 0x2
+ SC_NGROUPS_MAX = 0x4
+ SC_OPEN_MAX = 0x5
+ SC_JOB_CONTROL = 0x6
+ SC_SAVED_IDS = 0x7
+ SC_VERSION = 0x8
+ SC_BC_BASE_MAX = 0x9
+ SC_BC_DIM_MAX = 0xa
+ SC_BC_SCALE_MAX = 0xb
+ SC_BC_STRING_MAX = 0xc
+ SC_COLL_WEIGHTS_MAX = 0xd
+ SC_EXPR_NEST_MAX = 0xe
+ SC_LINE_MAX = 0xf
+ SC_RE_DUP_MAX = 0x10
+ SC_2_VERSION = 0x11
+ SC_2_C_BIND = 0x12
+ SC_2_C_DEV = 0x13
+ SC_2_CHAR_TERM = 0x14
+ SC_2_FORT_DEV = 0x15
+ SC_2_FORT_RUN = 0x16
+ SC_2_LOCALEDEF = 0x17
+ SC_2_SW_DEV = 0x18
+ SC_2_UPE = 0x19
+ SC_STREAM_MAX = 0x1a
+ SC_TZNAME_MAX = 0x1b
+ SC_PAGESIZE = 0x1c
+ SC_PAGE_SIZE = 0x1c
+ SC_FSYNC = 0x1d
+ SC_XOPEN_SHM = 0x1e
+ SC_SYNCHRONIZED_IO = 0x1f
+ SC_IOV_MAX = 0x20
+ SC_MAPPED_FILES = 0x21
+ SC_MEMLOCK = 0x22
+ SC_MEMLOCK_RANGE = 0x23
+ SC_MEMORY_PROTECTION = 0x24
+ SC_LOGIN_NAME_MAX = 0x25
+ SC_MONOTONIC_CLOCK = 0x26
+ SC_CLK_TCK = 0x27
+ SC_ATEXIT_MAX = 0x28
+ SC_THREADS = 0x29
+ SC_SEMAPHORES = 0x2a
+ SC_BARRIERS = 0x2b
+ SC_TIMERS = 0x2c
+ SC_SPIN_LOCKS = 0x2d
+ SC_READER_WRITER_LOCKS = 0x2e
+ SC_GETGR_R_SIZE_MAX = 0x2f
+ SC_GETPW_R_SIZE_MAX = 0x30
+ SC_CLOCK_SELECTION = 0x31
+ SC_ASYNCHRONOUS_IO = 0x32
+ SC_AIO_LISTIO_MAX = 0x33
+ SC_AIO_MAX = 0x34
+ SC_MESSAGE_PASSING = 0x35
+ SC_MQ_OPEN_MAX = 0x36
+ SC_MQ_PRIO_MAX = 0x37
+ SC_PRIORITY_SCHEDULING = 0x38
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x39
+ SC_THREAD_KEYS_MAX = 0x3a
+ SC_THREAD_STACK_MIN = 0x3b
+ SC_THREAD_THREADS_MAX = 0x3c
+ SC_THREAD_ATTR_STACKADDR = 0x3d
+ SC_THREAD_ATTR_STACKSIZE = 0x3e
+ SC_THREAD_PRIORITY_SCHEDULING = 0x3f
+ SC_THREAD_PRIO_INHERIT = 0x40
+ SC_THREAD_PRIO_PROTECT = 0x41
+ SC_THREAD_PROCESS_SHARED = 0x42
+ SC_THREAD_SAFE_FUNCTIONS = 0x43
+ SC_TTY_NAME_MAX = 0x44
+ SC_HOST_NAME_MAX = 0x45
+ SC_PASS_MAX = 0x46
+ SC_REGEXP = 0x47
+ SC_SHELL = 0x48
+ SC_SYMLOOP_MAX = 0x49
+
+ SC_V6_ILP32_OFF32 = 0x4a
+ SC_V6_ILP32_OFFBIG = 0x4b
+ SC_V6_LP64_OFF64 = 0x4c
+ SC_V6_LPBIG_OFFBIG = 0x4d
+ SC_2_PBS = 0x50
+ SC_2_PBS_ACCOUNTING = 0x51
+ SC_2_PBS_CHECKPOINT = 0x52
+ SC_2_PBS_LOCATE = 0x53
+ SC_2_PBS_MESSAGE = 0x54
+ SC_2_PBS_TRACK = 0x55
+
+ SC_SPAWN = 0x56
+ SC_SHARED_MEMORY_OBJECTS = 0x57
+
+ SC_TIMER_MAX = 0x58
+ SC_SEM_NSEMS_MAX = 0x59
+ SC_CPUTIME = 0x5a
+ SC_THREAD_CPUTIME = 0x5b
+ SC_DELAYTIMER_MAX = 0x5c
+ SC_SIGQUEUE_MAX = 0x5d
+ SC_REALTIME_SIGNALS = 0x5e
+
+ SC_PHYS_PAGES = 0x79
+
+ SC_NPROCESSORS_CONF = 0x3e9
+ SC_NPROCESSORS_ONLN = 0x3ea
+
+ SC_SCHED_RT_TS = 0x7d1
+ SC_SCHED_PRI_MIN = 0x7d2
+ SC_SCHED_PRI_MAX = 0x7d3
+)
+
+const (
+ _MAXHOSTNAMELEN = 0x100
+ _MAXLOGNAME = 0x10
+ _MAXSYMLINKS = 0x20
+
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CPUTIME = 0x30db0
+ _POSIX_DELAYTIMER_MAX = 0x20
+ _POSIX_PRIORITY_SCHEDULING = 0x30db0
+ _POSIX_REGEXP = 0x1
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x0
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x30db0
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x30db0
+ _POSIX_THREAD_CPUTIME = 0x30db0
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_KEYS_MAX = 0x80
+ _POSIX_THREAD_PRIO_PROTECT = 0x30db0
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x30db0
+ _POSIX_TIMER_MAX = 0x20
+ _POSIX_VERSION = 0x30db0
+
+ _POSIX2_VERSION = 0x30db0
+
+ _FOPEN_MAX = 0x14
+ _NAME_MAX = 0x1ff
+ _RE_DUP_MAX = 0xff
+
+ _BC_BASE_MAX = 0x7fffffff
+ _BC_DIM_MAX = 0xffff
+ _BC_SCALE_MAX = 0x7fffffff
+ _BC_STRING_MAX = 0x7fffffff
+ _COLL_WEIGHTS_MAX = 0x2
+ _EXPR_NEST_MAX = 0x20
+ _LINE_MAX = 0x800
+
+ _GETGR_R_SIZE_MAX = 0x400
+ _GETPW_R_SIZE_MAX = 0x400
+
+ _PATH_DEV = "/dev/"
+ _PATH_ZONEINFO = "/usr/share/zoneinfo"
+
+ _PASSWORD_LEN = 0x80
+)
+
+const _PC_NAME_MAX = 0x4
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_openbsd.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_openbsd.go
new file mode 100644
index 0000000..badc66c
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_openbsd.go
@@ -0,0 +1,263 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_openbsd.go
+
+//go:build openbsd
+// +build openbsd
+
+package sysconf
+
+const (
+ SC_AIO_LISTIO_MAX = 0x2a
+ SC_AIO_MAX = 0x2b
+ SC_AIO_PRIO_DELTA_MAX = 0x2c
+ SC_ARG_MAX = 0x1
+ SC_ATEXIT_MAX = 0x2e
+ SC_BC_BASE_MAX = 0x9
+ SC_BC_DIM_MAX = 0xa
+ SC_BC_SCALE_MAX = 0xb
+ SC_BC_STRING_MAX = 0xc
+ SC_CHILD_MAX = 0x2
+ SC_CLK_TCK = 0x3
+ SC_COLL_WEIGHTS_MAX = 0xd
+ SC_DELAYTIMER_MAX = 0x32
+ SC_EXPR_NEST_MAX = 0xe
+ SC_GETGR_R_SIZE_MAX = 0x64
+ SC_GETPW_R_SIZE_MAX = 0x65
+ SC_HOST_NAME_MAX = 0x21
+ SC_IOV_MAX = 0x33
+ SC_LINE_MAX = 0xf
+ SC_LOGIN_NAME_MAX = 0x66
+ SC_MQ_OPEN_MAX = 0x3a
+ SC_MQ_PRIO_MAX = 0x3b
+ SC_NGROUPS_MAX = 0x4
+ SC_OPEN_MAX = 0x5
+ SC_PAGE_SIZE = 0x1c
+ SC_PAGESIZE = 0x1c
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x50
+ SC_THREAD_KEYS_MAX = 0x51
+ SC_THREAD_STACK_MIN = 0x59
+ SC_THREAD_THREADS_MAX = 0x5a
+ SC_RE_DUP_MAX = 0x10
+ SC_SEM_NSEMS_MAX = 0x1f
+ SC_SEM_VALUE_MAX = 0x20
+ SC_SIGQUEUE_MAX = 0x46
+ SC_STREAM_MAX = 0x1a
+ SC_SYMLOOP_MAX = 0x4c
+ SC_TIMER_MAX = 0x5d
+ SC_TTY_NAME_MAX = 0x6b
+ SC_TZNAME_MAX = 0x1b
+
+ SC_ADVISORY_INFO = 0x29
+ SC_ASYNCHRONOUS_IO = 0x2d
+ SC_BARRIERS = 0x2f
+ SC_CLOCK_SELECTION = 0x30
+ SC_CPUTIME = 0x31
+ SC_FSYNC = 0x1d
+ SC_IPV6 = 0x34
+ SC_JOB_CONTROL = 0x6
+ SC_MAPPED_FILES = 0x35
+ SC_MEMLOCK = 0x36
+ SC_MEMLOCK_RANGE = 0x37
+ SC_MEMORY_PROTECTION = 0x38
+ SC_MESSAGE_PASSING = 0x39
+ SC_MONOTONIC_CLOCK = 0x22
+ SC_PRIORITIZED_IO = 0x3c
+ SC_PRIORITY_SCHEDULING = 0x3d
+ SC_RAW_SOCKETS = 0x3e
+ SC_READER_WRITER_LOCKS = 0x3f
+ SC_REALTIME_SIGNALS = 0x40
+ SC_REGEXP = 0x41
+ SC_SAVED_IDS = 0x7
+ SC_SEMAPHORES = 0x43
+ SC_SHARED_MEMORY_OBJECTS = 0x44
+ SC_SHELL = 0x45
+ SC_SPAWN = 0x47
+ SC_SPIN_LOCKS = 0x48
+ SC_SPORADIC_SERVER = 0x49
+ SC_SS_REPL_MAX = 0x4a
+ SC_SYNCHRONIZED_IO = 0x4b
+ SC_THREAD_ATTR_STACKADDR = 0x4d
+ SC_THREAD_ATTR_STACKSIZE = 0x4e
+ SC_THREAD_CPUTIME = 0x4f
+ SC_THREAD_PRIO_INHERIT = 0x52
+ SC_THREAD_PRIO_PROTECT = 0x53
+ SC_THREAD_PRIORITY_SCHEDULING = 0x54
+ SC_THREAD_PROCESS_SHARED = 0x55
+ SC_THREAD_ROBUST_PRIO_INHERIT = 0x56
+ SC_THREAD_ROBUST_PRIO_PROTECT = 0x57
+ SC_THREAD_SAFE_FUNCTIONS = 0x67
+ SC_THREAD_SPORADIC_SERVER = 0x58
+ SC_THREADS = 0x5b
+ SC_TIMEOUTS = 0x5c
+ SC_TIMERS = 0x5e
+ SC_TRACE = 0x5f
+ SC_TRACE_EVENT_FILTER = 0x60
+ SC_TRACE_EVENT_NAME_MAX = 0x61
+ SC_TRACE_INHERIT = 0x62
+ SC_TRACE_LOG = 0x63
+ SC_TRACE_NAME_MAX = 0x68
+ SC_TRACE_SYS_MAX = 0x69
+ SC_TRACE_USER_EVENT_MAX = 0x6a
+ SC_TYPED_MEMORY_OBJECTS = 0x6c
+ SC_VERSION = 0x8
+
+ SC_V7_ILP32_OFF32 = 0x71
+ SC_V7_ILP32_OFFBIG = 0x72
+ SC_V7_LP64_OFF64 = 0x73
+ SC_V7_LPBIG_OFFBIG = 0x74
+
+ SC_V6_ILP32_OFF32 = 0x6d
+ SC_V6_ILP32_OFFBIG = 0x6e
+ SC_V6_LP64_OFF64 = 0x6f
+ SC_V6_LPBIG_OFFBIG = 0x70
+
+ SC_2_C_BIND = 0x12
+ SC_2_C_DEV = 0x13
+ SC_2_CHAR_TERM = 0x14
+ SC_2_FORT_DEV = 0x15
+ SC_2_FORT_RUN = 0x16
+ SC_2_LOCALEDEF = 0x17
+ SC_2_PBS = 0x23
+ SC_2_PBS_ACCOUNTING = 0x24
+ SC_2_PBS_CHECKPOINT = 0x25
+ SC_2_PBS_LOCATE = 0x26
+ SC_2_PBS_MESSAGE = 0x27
+ SC_2_PBS_TRACK = 0x28
+ SC_2_SW_DEV = 0x18
+ SC_2_UPE = 0x19
+ SC_2_VERSION = 0x11
+
+ SC_XOPEN_CRYPT = 0x75
+ SC_XOPEN_ENH_I18N = 0x76
+ SC_XOPEN_REALTIME = 0x78
+ SC_XOPEN_REALTIME_THREADS = 0x79
+ SC_XOPEN_SHM = 0x1e
+ SC_XOPEN_STREAMS = 0x7a
+ SC_XOPEN_UNIX = 0x7b
+ SC_XOPEN_UUCP = 0x7c
+ SC_XOPEN_VERSION = 0x7d
+
+ SC_AVPHYS_PAGES = 0x1f5
+ SC_PHYS_PAGES = 0x1f4
+ SC_NPROCESSORS_CONF = 0x1f6
+ SC_NPROCESSORS_ONLN = 0x1f7
+)
+
+const (
+ _HOST_NAME_MAX = 0xff
+ _IOV_MAX = 0x400
+ _LOGIN_NAME_MAX = 0x20
+ _PTHREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _PTHREAD_KEYS_MAX = 0x100
+ _PTHREAD_STACK_MIN = 0x1000
+ _PTHREAD_THREADS_MAX = 0xffffffffffffffff
+ _SEM_VALUE_MAX = 0xffffffff
+ _SYMLOOP_MAX = 0x20
+ _TTY_NAME_MAX = 0x104
+
+ _GR_BUF_LEN = 0xa40
+ _PW_BUF_LEN = 0x400
+
+ _CLK_TCK = 0x64
+
+ _POSIX_ADVISORY_INFO = -0x1
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = -0x1
+ _POSIX_BARRIERS = 0x30db0
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = -0x1
+ _POSIX_CPUTIME = 0x31069
+ _POSIX_FSYNC = 0x30db0
+ _POSIX_IPV6 = 0x0
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x30db0
+ _POSIX_MEMLOCK = 0x30db0
+ _POSIX_MEMLOCK_RANGE = 0x30db0
+ _POSIX_MEMORY_PROTECTION = 0x30db0
+ _POSIX_MESSAGE_PASSING = -0x1
+ _POSIX_MONOTONIC_CLOCK = 0x30db0
+ _POSIX_PRIORITIZED_IO = -0x1
+ _POSIX_PRIORITY_SCHEDULING = -0x1
+ _POSIX_RAW_SOCKETS = 0x30db0
+ _POSIX_READER_WRITER_LOCKS = 0x30db0
+ _POSIX_REALTIME_SIGNALS = -0x1
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x30db0
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SPAWN = 0x30db0
+ _POSIX_SPIN_LOCKS = 0x30db0
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = -0x1
+ _POSIX_THREAD_ATTR_STACKADDR = 0x30db0
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x30db0
+ _POSIX_THREAD_CPUTIME = 0x31069
+ _POSIX_THREAD_KEYS_MAX = 0x80
+ _POSIX_THREAD_PRIO_INHERIT = -0x1
+ _POSIX_THREAD_PRIO_PROTECT = -0x1
+ _POSIX_THREAD_PRIORITY_SCHEDULING = -0x1
+ _POSIX_THREAD_PROCESS_SHARED = -0x1
+ _POSIX_THREAD_ROBUST_PRIO_INHERIT = -0x1
+ _POSIX_THREAD_ROBUST_PRIO_PROTECT = -0x1
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x30db0
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x30db0
+ _POSIX_TIMERS = -0x1
+ _POSIX_TIMEOUTS = 0x30db0
+ _POSIX_TRACE = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = 0x0
+ _POSIX_V7_LP64_OFF64 = 0x0
+ _POSIX_V7_LPBIG_OFFBIG = 0x0
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = 0x0
+ _POSIX_V6_LP64_OFF64 = 0x0
+ _POSIX_V6_LPBIG_OFFBIG = 0x0
+
+ _POSIX2_C_BIND = 0x30db0
+ _POSIX2_C_DEV = -0x1
+ _POSIX2_CHAR_TERM = 0x1
+ _POSIX2_LOCALEDEF = -0x1
+ _POSIX2_PBS = -0x1
+ _POSIX2_SW_DEV = 0x30db0
+ _POSIX2_UPE = 0x30db0
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_CRYPT = 0x1
+ _XOPEN_ENH_I18N = -0x1
+ _XOPEN_REALTIME = -0x1
+ _XOPEN_REALTIME_THREADS = -0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_STREAMS = -0x1
+ _XOPEN_UNIX = -0x1
+ _XOPEN_UUCP = -0x1
+
+ _FOPEN_MAX = 0x14
+ _NAME_MAX = 0xff
+ _RE_DUP_MAX = 0xff
+
+ _BC_BASE_MAX = 0x7fffffff
+ _BC_DIM_MAX = 0xffff
+ _BC_SCALE_MAX = 0x7fffffff
+ _BC_STRING_MAX = 0x7fffffff
+ _COLL_WEIGHTS_MAX = 0x2
+ _EXPR_NEST_MAX = 0x20
+ _LINE_MAX = 0x800
+
+ _SHRT_MAX = 0x7fff
+
+ _PATH_ZONEINFO = "/usr/share/zoneinfo"
+)
+
+const (
+ _CHAR_BIT = 0x8
+
+ _INT_MAX = 0x7fffffff
+
+ sizeofOffT = 0x8
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_solaris.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_solaris.go
new file mode 100644
index 0000000..29b6f87
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_defs_solaris.go
@@ -0,0 +1,139 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_defs_solaris.go
+
+//go:build solaris
+// +build solaris
+
+package sysconf
+
+const (
+ SC_AIO_LISTIO_MAX = 0x12
+ SC_AIO_MAX = 0x13
+ SC_AIO_PRIO_DELTA_MAX = 0x14
+ SC_ARG_MAX = 0x1
+ SC_ATEXIT_MAX = 0x4c
+ SC_BC_BASE_MAX = 0x36
+ SC_BC_DIM_MAX = 0x37
+ SC_BC_SCALE_MAX = 0x38
+ SC_BC_STRING_MAX = 0x39
+ SC_CHILD_MAX = 0x2
+ SC_CLK_TCK = 0x3
+ SC_COLL_WEIGHTS_MAX = 0x3a
+ SC_DELAYTIMER_MAX = 0x16
+ SC_EXPR_NEST_MAX = 0x3b
+ SC_GETGR_R_SIZE_MAX = 0x239
+ SC_GETPW_R_SIZE_MAX = 0x23a
+ SC_HOST_NAME_MAX = 0x2df
+ SC_IOV_MAX = 0x4d
+ SC_LINE_MAX = 0x3c
+ SC_LOGIN_NAME_MAX = 0x23b
+ SC_MQ_OPEN_MAX = 0x1d
+ SC_MQ_PRIO_MAX = 0x1e
+ SC_NGROUPS_MAX = 0x4
+ SC_OPEN_MAX = 0x5
+ SC_PAGE_SIZE = 0xb
+ SC_PAGESIZE = 0xb
+ SC_THREAD_DESTRUCTOR_ITERATIONS = 0x238
+ SC_THREAD_KEYS_MAX = 0x23c
+ SC_THREAD_STACK_MIN = 0x23d
+ SC_THREAD_THREADS_MAX = 0x23e
+ SC_RE_DUP_MAX = 0x3d
+ SC_RTSIG_MAX = 0x22
+ SC_SEM_NSEMS_MAX = 0x24
+ SC_SEM_VALUE_MAX = 0x25
+ SC_SIGQUEUE_MAX = 0x27
+ SC_STREAM_MAX = 0x10
+ SC_SYMLOOP_MAX = 0x2e8
+ SC_TIMER_MAX = 0x2c
+ SC_TTY_NAME_MAX = 0x23f
+ SC_TZNAME_MAX = 0x11
+
+ SC_ADVISORY_INFO = 0x2db
+ SC_ASYNCHRONOUS_IO = 0x15
+ SC_BARRIERS = 0x2dc
+ SC_CLOCK_SELECTION = 0x2dd
+ SC_CPUTIME = 0x2de
+ SC_FSYNC = 0x17
+ SC_IPV6 = 0x2fa
+ SC_JOB_CONTROL = 0x6
+ SC_MAPPED_FILES = 0x18
+ SC_MEMLOCK = 0x19
+ SC_MEMLOCK_RANGE = 0x1a
+ SC_MEMORY_PROTECTION = 0x1b
+ SC_MESSAGE_PASSING = 0x1c
+ SC_MONOTONIC_CLOCK = 0x2e0
+ SC_PRIORITIZED_IO = 0x1f
+ SC_PRIORITY_SCHEDULING = 0x20
+ SC_RAW_SOCKETS = 0x2fb
+ SC_READER_WRITER_LOCKS = 0x2e1
+ SC_REALTIME_SIGNALS = 0x21
+ SC_REGEXP = 0x2e2
+ SC_SAVED_IDS = 0x7
+ SC_SEMAPHORES = 0x23
+ SC_SHARED_MEMORY_OBJECTS = 0x26
+ SC_SHELL = 0x2e3
+ SC_SPAWN = 0x2e4
+ SC_SPIN_LOCKS = 0x2e5
+ SC_SPORADIC_SERVER = 0x2e6
+ SC_SS_REPL_MAX = 0x2e7
+ SC_SYNCHRONIZED_IO = 0x2a
+ SC_THREAD_ATTR_STACKADDR = 0x241
+ SC_THREAD_ATTR_STACKSIZE = 0x242
+ SC_THREAD_CPUTIME = 0x2e9
+ SC_THREAD_PRIO_INHERIT = 0x244
+ SC_THREAD_PRIO_PROTECT = 0x245
+ SC_THREAD_PRIORITY_SCHEDULING = 0x243
+ SC_THREAD_PROCESS_SHARED = 0x246
+ SC_THREAD_SAFE_FUNCTIONS = 0x247
+ SC_THREAD_SPORADIC_SERVER = 0x2ea
+ SC_THREADS = 0x240
+ SC_TIMEOUTS = 0x2eb
+ SC_TIMERS = 0x2b
+ SC_TRACE = 0x2ec
+ SC_TRACE_EVENT_FILTER = 0x2ed
+ SC_TRACE_EVENT_NAME_MAX = 0x2ee
+ SC_TRACE_INHERIT = 0x2ef
+ SC_TRACE_LOG = 0x2f0
+ SC_TRACE_NAME_MAX = 0x2f1
+ SC_TRACE_SYS_MAX = 0x2f2
+ SC_TRACE_USER_EVENT_MAX = 0x2f3
+ SC_TYPED_MEMORY_OBJECTS = 0x2f4
+ SC_VERSION = 0x8
+
+ SC_V6_ILP32_OFF32 = 0x2f5
+ SC_V6_ILP32_OFFBIG = 0x2f6
+ SC_V6_LP64_OFF64 = 0x2f7
+ SC_V6_LPBIG_OFFBIG = 0x2f8
+
+ SC_2_C_BIND = 0x2d
+ SC_2_C_DEV = 0x2e
+ SC_2_C_VERSION = 0x2f
+ SC_2_CHAR_TERM = 0x42
+ SC_2_FORT_DEV = 0x30
+ SC_2_FORT_RUN = 0x31
+ SC_2_LOCALEDEF = 0x32
+ SC_2_PBS = 0x2d4
+ SC_2_PBS_ACCOUNTING = 0x2d5
+ SC_2_PBS_CHECKPOINT = 0x2d6
+ SC_2_PBS_LOCATE = 0x2d8
+ SC_2_PBS_MESSAGE = 0x2d9
+ SC_2_PBS_TRACK = 0x2da
+ SC_2_SW_DEV = 0x33
+ SC_2_UPE = 0x34
+ SC_2_VERSION = 0x35
+
+ SC_XOPEN_CRYPT = 0x3e
+ SC_XOPEN_ENH_I18N = 0x3f
+ SC_XOPEN_REALTIME = 0x2ce
+ SC_XOPEN_REALTIME_THREADS = 0x2cf
+ SC_XOPEN_SHM = 0x40
+ SC_XOPEN_STREAMS = 0x2f9
+ SC_XOPEN_UNIX = 0x4e
+ SC_XOPEN_VERSION = 0xc
+ SC_XOPEN_XCU_VERSION = 0x43
+
+ SC_PHYS_PAGES = 0x1f4
+ SC_AVPHYS_PAGES = 0x1f5
+ SC_NPROCESSORS_CONF = 0xe
+ SC_NPROCESSORS_ONLN = 0xf
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_386.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_386.go
new file mode 100644
index 0000000..478fe63
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_386.go
@@ -0,0 +1,12 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_freebsd.go
+
+//go:build freebsd && 386
+// +build freebsd,386
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffff
+ _SHRT_MAX = 0x7fff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_amd64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_amd64.go
new file mode 100644
index 0000000..7f58a4d
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_amd64.go
@@ -0,0 +1,12 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_freebsd.go
+
+//go:build freebsd && amd64
+// +build freebsd,amd64
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffffffffffff
+ _SHRT_MAX = 0x7fff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm.go
new file mode 100644
index 0000000..deb4759
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm.go
@@ -0,0 +1,12 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_freebsd.go
+
+//go:build freebsd && arm
+// +build freebsd,arm
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffff
+ _SHRT_MAX = 0x7fff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm64.go
new file mode 100644
index 0000000..556ba3d
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm64.go
@@ -0,0 +1,12 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_freebsd.go
+
+//go:build freebsd && arm64
+// +build freebsd,arm64
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffffffffffff
+ _SHRT_MAX = 0x7fff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_riscv64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_riscv64.go
new file mode 100644
index 0000000..b7cff76
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_riscv64.go
@@ -0,0 +1,12 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_freebsd.go
+
+//go:build freebsd && riscv64
+// +build freebsd,riscv64
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffffffffffff
+ _SHRT_MAX = 0x7fff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_386.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_386.go
new file mode 100644
index 0000000..16ee7ea
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_386.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && 386
+// +build linux,386
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x4000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = 0x1
+ _POSIX_V7_ILP32_OFFBIG = 0x1
+ _POSIX_V7_LP64_OFF64 = -0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = 0x1
+ _POSIX_V6_ILP32_OFFBIG = 0x1
+ _POSIX_V6_LP64_OFF64 = -0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_amd64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_amd64.go
new file mode 100644
index 0000000..39aee34
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_amd64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && amd64
+// +build linux,amd64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x4000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm.go
new file mode 100644
index 0000000..2e40116
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && arm
+// +build linux,arm
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x4000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = 0x1
+ _POSIX_V7_ILP32_OFFBIG = 0x1
+ _POSIX_V7_LP64_OFF64 = -0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = 0x1
+ _POSIX_V6_ILP32_OFFBIG = 0x1
+ _POSIX_V6_LP64_OFF64 = -0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm64.go
new file mode 100644
index 0000000..362403a
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_arm64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && arm64
+// +build linux,arm64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go
new file mode 100644
index 0000000..95a71f4
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_loong64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && loong64
+// +build linux,loong64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips.go
new file mode 100644
index 0000000..868b0ff
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && mips
+// +build linux,mips
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = 0x1
+ _POSIX_V7_ILP32_OFFBIG = 0x1
+ _POSIX_V7_LP64_OFF64 = -0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = 0x1
+ _POSIX_V6_ILP32_OFFBIG = 0x1
+ _POSIX_V6_LP64_OFF64 = -0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64.go
new file mode 100644
index 0000000..5949f3d
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && mips64
+// +build linux,mips64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64le.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64le.go
new file mode 100644
index 0000000..1853419
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mips64le.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && mips64le
+// +build linux,mips64le
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mipsle.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mipsle.go
new file mode 100644
index 0000000..ff41b34
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_mipsle.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && mipsle
+// +build linux,mipsle
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = 0x1
+ _POSIX_V7_ILP32_OFFBIG = 0x1
+ _POSIX_V7_LP64_OFF64 = -0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = 0x1
+ _POSIX_V6_ILP32_OFFBIG = 0x1
+ _POSIX_V6_LP64_OFF64 = -0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64.go
new file mode 100644
index 0000000..3887437
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && ppc64
+// +build linux,ppc64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64le.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64le.go
new file mode 100644
index 0000000..6d76929
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_ppc64le.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && ppc64le
+// +build linux,ppc64le
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x20000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_riscv64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_riscv64.go
new file mode 100644
index 0000000..3d7d71b
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_riscv64.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && riscv64
+// +build linux,riscv64
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x4000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_s390x.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_s390x.go
new file mode 100644
index 0000000..9cf8529
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_linux_s390x.go
@@ -0,0 +1,114 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_linux.go
+
+//go:build linux && s390x
+// +build linux,s390x
+
+package sysconf
+
+const (
+ _AIO_PRIO_DELTA_MAX = 0x14
+ _BC_BASE_MAX = 0x63
+ _BC_DIM_MAX = 0x800
+ _BC_SCALE_MAX = 0x63
+ _BC_STRING_MAX = 0x3e8
+ _COLL_WEIGHTS_MAX = 0xff
+ _DELAYTIMER_MAX = 0x7fffffff
+ _EXPR_NEST_MAX = 0x20
+ _HOST_NAME_MAX = 0x40
+ _LINE_MAX = 0x800
+ _LOGIN_NAME_MAX = 0x100
+ _MQ_PRIO_MAX = 0x8000
+ _NGROUPS_MAX = 0x10000
+ _NSS_BUFLEN_GROUP = 0x400
+ _NSS_BUFLEN_PASSWD = 0x400
+ _OPEN_MAX = 0x100
+ _PTHREAD_KEYS_MAX = 0x400
+ _PTHREAD_STACK_MIN = 0x4000
+ _RE_DUP_MAX = 0x7fff
+ _RTSIG_MAX = 0x20
+ _SEM_VALUE_MAX = 0x7fffffff
+ _STREAM_MAX = 0x10
+ _SYMLOOP_MAX = -0x1
+ _TTY_NAME_MAX = 0x20
+
+ _UIO_MAXIOV = 0x400
+
+ _INT_MAX = 0x7fffffff
+
+ _POSIX_ADVISORY_INFO = 0x31069
+ _POSIX_ARG_MAX = 0x1000
+ _POSIX_ASYNCHRONOUS_IO = 0x31069
+ _POSIX_BARRIERS = 0x31069
+ _POSIX_CHILD_MAX = 0x19
+ _POSIX_CLOCK_SELECTION = 0x31069
+ _POSIX_CPUTIME = 0x0
+ _POSIX_FSYNC = 0x31069
+ _POSIX_IPV6 = 0x31069
+ _POSIX_JOB_CONTROL = 0x1
+ _POSIX_MAPPED_FILES = 0x31069
+ _POSIX_MEMLOCK = 0x31069
+ _POSIX_MEMLOCK_RANGE = 0x31069
+ _POSIX_MEMORY_PROTECTION = 0x31069
+ _POSIX_MESSAGE_PASSING = 0x31069
+ _POSIX_MONOTONIC_CLOCK = 0x0
+ _POSIX_PRIORITIZED_IO = 0x31069
+ _POSIX_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_RAW_SOCKETS = 0x31069
+ _POSIX_READER_WRITER_LOCKS = 0x31069
+ _POSIX_REALTIME_SIGNALS = 0x31069
+ _POSIX_REGEXP = 0x1
+ _POSIX_SAVED_IDS = 0x1
+ _POSIX_SEMAPHORES = 0x31069
+ _POSIX_SHARED_MEMORY_OBJECTS = 0x31069
+ _POSIX_SHELL = 0x1
+ _POSIX_SIGQUEUE_MAX = 0x20
+ _POSIX_SPAWN = 0x31069
+ _POSIX_SPIN_LOCKS = 0x31069
+ _POSIX_SPORADIC_SERVER = -0x1
+ _POSIX_SYNCHRONIZED_IO = 0x31069
+ _POSIX_THREAD_ATTR_STACKADDR = 0x31069
+ _POSIX_THREAD_ATTR_STACKSIZE = 0x31069
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 0x4
+ _POSIX_THREAD_PRIO_INHERIT = 0x31069
+ _POSIX_THREAD_PRIO_PROTECT = 0x31069
+ _POSIX_THREAD_PRIORITY_SCHEDULING = 0x31069
+ _POSIX_THREAD_PROCESS_SHARED = 0x31069
+ _POSIX_THREAD_SAFE_FUNCTIONS = 0x31069
+ _POSIX_THREAD_SPORADIC_SERVER = -0x1
+ _POSIX_THREADS = 0x31069
+ _POSIX_TIMEOUTS = 0x31069
+ _POSIX_TIMERS = 0x31069
+ _POSIX_TRACE = -0x1
+ _POSIX_TRACE_EVENT_FILTER = -0x1
+ _POSIX_TRACE_INHERIT = -0x1
+ _POSIX_TRACE_LOG = -0x1
+ _POSIX_TYPED_MEMORY_OBJECTS = -0x1
+ _POSIX_VERSION = 0x31069
+
+ _POSIX_V7_ILP32_OFF32 = -0x1
+ _POSIX_V7_ILP32_OFFBIG = -0x1
+ _POSIX_V7_LP64_OFF64 = 0x1
+ _POSIX_V7_LPBIG_OFFBIG = -0x1
+
+ _POSIX_V6_ILP32_OFF32 = -0x1
+ _POSIX_V6_ILP32_OFFBIG = -0x1
+ _POSIX_V6_LP64_OFF64 = 0x1
+ _POSIX_V6_LPBIG_OFFBIG = -0x1
+
+ _POSIX2_C_BIND = 0x31069
+ _POSIX2_C_DEV = 0x31069
+ _POSIX2_C_VERSION = 0x31069
+ _POSIX2_CHAR_TERM = 0x31069
+ _POSIX2_LOCALEDEF = 0x31069
+ _POSIX2_SW_DEV = 0x31069
+ _POSIX2_VERSION = 0x31069
+
+ _XOPEN_ENH_I18N = 0x1
+ _XOPEN_REALTIME = 0x1
+ _XOPEN_REALTIME_THREADS = 0x1
+ _XOPEN_SHM = 0x1
+ _XOPEN_UNIX = 0x1
+ _XOPEN_VERSION = 0x2bc
+ _XOPEN_XCU_VERSION = 0x4
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_386.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_386.go
new file mode 100644
index 0000000..3cd64dd
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_386.go
@@ -0,0 +1,11 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_netbsd.go
+
+//go:build netbsd && 386
+// +build netbsd,386
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_amd64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_amd64.go
new file mode 100644
index 0000000..02fc1d0
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_amd64.go
@@ -0,0 +1,11 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_netbsd.go
+
+//go:build netbsd && amd64
+// +build netbsd,amd64
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffffffffffff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm.go
new file mode 100644
index 0000000..16f9b6e
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm.go
@@ -0,0 +1,11 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_netbsd.go
+
+//go:build netbsd && arm
+// +build netbsd,arm
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffff
+)
diff --git a/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm64.go b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm64.go
new file mode 100644
index 0000000..e530339
--- /dev/null
+++ b/vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm64.go
@@ -0,0 +1,11 @@
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs sysconf_values_netbsd.go
+
+//go:build netbsd && arm64
+// +build netbsd,arm64
+
+package sysconf
+
+const (
+ _LONG_MAX = 0x7fffffffffffffff
+)
diff --git a/vendor/github.com/tklauser/numcpus/.cirrus.yml b/vendor/github.com/tklauser/numcpus/.cirrus.yml
new file mode 100644
index 0000000..69c6ced
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/.cirrus.yml
@@ -0,0 +1,13 @@
+env:
+ CIRRUS_CLONE_DEPTH: 1
+ GO_VERSION: go1.20
+
+freebsd_12_task:
+ freebsd_instance:
+ image_family: freebsd-12-3
+ install_script: |
+ pkg install -y go
+ GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
+ bin/${GO_VERSION} download
+ build_script: bin/${GO_VERSION} build -buildvcs=false -v ./...
+ test_script: bin/${GO_VERSION} test -buildvcs=false -race ./...
diff --git a/vendor/github.com/tklauser/numcpus/LICENSE b/vendor/github.com/tklauser/numcpus/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/vendor/github.com/tklauser/numcpus/README.md b/vendor/github.com/tklauser/numcpus/README.md
new file mode 100644
index 0000000..23612c5
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/README.md
@@ -0,0 +1,52 @@
+# numcpus
+
+[![Go Reference](https://pkg.go.dev/badge/github.com/tklauser/numcpus.svg)](https://pkg.go.dev/github.com/tklauser/numcpus)
+[![GitHub Action Status](https://github.com/tklauser/numcpus/workflows/Tests/badge.svg)](https://github.com/tklauser/numcpus/actions?query=workflow%3ATests)
+
+Package numcpus provides information about the number of CPUs in the system.
+
+It gets the number of CPUs (online, offline, present, possible, configured or
+kernel maximum) on Linux, Darwin, FreeBSD, NetBSD, OpenBSD, DragonflyBSD or
+Solaris/Illumos systems.
+
+On Linux, the information is retrieved by reading the corresponding CPU
+topology files in `/sys/devices/system/cpu`.
+
+On BSD systems, the information is retrieved using the `hw.ncpu` and
+`hw.ncpuonline` sysctls, if supported.
+
+Not all functions are supported on Darwin, FreeBSD, NetBSD, OpenBSD,
+DragonflyBSD and Solaris/Illumos. ErrNotSupported is returned in case a
+function is not supported on a particular platform.
+
+## Usage
+
+```Go
+package main
+
+import (
+ "fmt"
+ "os"
+
+ "github.com/tklauser/numcpus"
+)
+
+func main() {
+ online, err := numcpus.GetOnline()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "GetOnline: %v\n", err)
+ }
+ fmt.Printf("online CPUs: %v\n", online)
+
+ possible, err := numcpus.GetPossible()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "GetPossible: %v\n", err)
+ }
+ fmt.Printf("possible CPUs: %v\n", possible)
+}
+```
+
+## References
+
+* [Linux kernel sysfs documentation for CPU attributes](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-system-cpu)
+* [Linux kernel CPU topology documentation](https://www.kernel.org/doc/Documentation/cputopology.txt)
diff --git a/vendor/github.com/tklauser/numcpus/numcpus.go b/vendor/github.com/tklauser/numcpus/numcpus.go
new file mode 100644
index 0000000..af59983
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/numcpus.go
@@ -0,0 +1,75 @@
+// Copyright 2018-2022 Tobias Klauser
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Package numcpus provides information about the number of CPUs in the system.
+//
+// It gets the number of CPUs (online, offline, present, possible or kernel
+// maximum) on Linux, Darwin, FreeBSD, NetBSD, OpenBSD, DragonflyBSD,
+// Solaris/Illumos or Windows systems.
+//
+// On Linux, the information is retrieved by reading the corresponding CPU
+// topology files in /sys/devices/system/cpu.
+//
+// On BSD systems, the information is retrieved using the hw.ncpu and
+// hw.ncpuonline sysctls, if supported.
+//
+// On Windows systems, the information is retrieved using the
+// GetActiveProcessorCount and GetMaximumProcessorCount functions, respectively.
+//
+// Not all functions are supported on Darwin, FreeBSD, NetBSD, OpenBSD,
+// DragonflyBSD, Solaris/Illumos and Windows. ErrNotSupported is returned in
+// case a function is not supported on a particular platform.
+package numcpus
+
+import "errors"
+
+// ErrNotSupported is the error returned when the function is not supported.
+var ErrNotSupported = errors.New("function not supported")
+
+// GetConfigured returns the number of CPUs configured on the system. This
+// function should return the same value as `getconf _SC_NPROCESSORS_CONF` on a
+// unix system.
+func GetConfigured() (int, error) {
+ return getConfigured()
+}
+
+// GetKernelMax returns the maximum number of CPUs allowed by the kernel
+// configuration. This function is only supported on Linux and Windows systems.
+func GetKernelMax() (int, error) {
+ return getKernelMax()
+}
+
+// GetOffline returns the number of offline CPUs, i.e. CPUs that are not online
+// because they have been hotplugged off or exceed the limit of CPUs allowed by
+// the kernel configuration (see GetKernelMax). This function is only supported
+// on Linux systems.
+func GetOffline() (int, error) {
+ return getOffline()
+}
+
+// GetOnline returns the number of CPUs that are online and being scheduled.
+func GetOnline() (int, error) {
+ return getOnline()
+}
+
+// GetPossible returns the number of possible CPUs, i.e. CPUs that
+// have been allocated resources and can be brought online if they are present.
+func GetPossible() (int, error) {
+ return getPossible()
+}
+
+// GetPresent returns the number of CPUs present in the system.
+func GetPresent() (int, error) {
+ return getPresent()
+}
diff --git a/vendor/github.com/tklauser/numcpus/numcpus_bsd.go b/vendor/github.com/tklauser/numcpus/numcpus_bsd.go
new file mode 100644
index 0000000..9e77e38
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/numcpus_bsd.go
@@ -0,0 +1,66 @@
+// Copyright 2018 Tobias Klauser
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//go:build darwin || dragonfly || freebsd || netbsd || openbsd
+// +build darwin dragonfly freebsd netbsd openbsd
+
+package numcpus
+
+import (
+ "runtime"
+
+ "golang.org/x/sys/unix"
+)
+
+func getConfigured() (int, error) {
+ n, err := unix.SysctlUint32("hw.ncpu")
+ return int(n), err
+}
+
+func getKernelMax() (int, error) {
+ if runtime.GOOS == "freebsd" {
+ n, err := unix.SysctlUint32("kern.smp.maxcpus")
+ return int(n), err
+ }
+ return 0, ErrNotSupported
+}
+
+func getOffline() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getOnline() (int, error) {
+ var n uint32
+ var err error
+ switch runtime.GOOS {
+ case "netbsd", "openbsd":
+ n, err = unix.SysctlUint32("hw.ncpuonline")
+ if err != nil {
+ n, err = unix.SysctlUint32("hw.ncpu")
+ }
+ default:
+ n, err = unix.SysctlUint32("hw.ncpu")
+ }
+ return int(n), err
+}
+
+func getPossible() (int, error) {
+ n, err := unix.SysctlUint32("hw.ncpu")
+ return int(n), err
+}
+
+func getPresent() (int, error) {
+ n, err := unix.SysctlUint32("hw.ncpu")
+ return int(n), err
+}
diff --git a/vendor/github.com/tklauser/numcpus/numcpus_linux.go b/vendor/github.com/tklauser/numcpus/numcpus_linux.go
new file mode 100644
index 0000000..1a30525
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/numcpus_linux.go
@@ -0,0 +1,120 @@
+// Copyright 2018 Tobias Klauser
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package numcpus
+
+import (
+ "io/ioutil"
+ "os"
+ "path/filepath"
+ "strconv"
+ "strings"
+
+ "golang.org/x/sys/unix"
+)
+
+const sysfsCPUBasePath = "/sys/devices/system/cpu"
+
+func getFromCPUAffinity() (int, error) {
+ var cpuSet unix.CPUSet
+ if err := unix.SchedGetaffinity(0, &cpuSet); err != nil {
+ return 0, err
+ }
+ return cpuSet.Count(), nil
+}
+
+func readCPURange(file string) (int, error) {
+ buf, err := ioutil.ReadFile(filepath.Join(sysfsCPUBasePath, file))
+ if err != nil {
+ return 0, err
+ }
+ return parseCPURange(strings.Trim(string(buf), "\n "))
+}
+
+func parseCPURange(cpus string) (int, error) {
+ n := int(0)
+ for _, cpuRange := range strings.Split(cpus, ",") {
+ if len(cpuRange) == 0 {
+ continue
+ }
+ rangeOp := strings.SplitN(cpuRange, "-", 2)
+ first, err := strconv.ParseUint(rangeOp[0], 10, 32)
+ if err != nil {
+ return 0, err
+ }
+ if len(rangeOp) == 1 {
+ n++
+ continue
+ }
+ last, err := strconv.ParseUint(rangeOp[1], 10, 32)
+ if err != nil {
+ return 0, err
+ }
+ n += int(last - first + 1)
+ }
+ return n, nil
+}
+
+func getConfigured() (int, error) {
+ d, err := os.Open(sysfsCPUBasePath)
+ if err != nil {
+ return 0, err
+ }
+ defer d.Close()
+ fis, err := d.Readdir(-1)
+ if err != nil {
+ return 0, err
+ }
+ count := 0
+ for _, fi := range fis {
+ if name := fi.Name(); fi.IsDir() && strings.HasPrefix(name, "cpu") {
+ _, err := strconv.ParseInt(name[3:], 10, 64)
+ if err == nil {
+ count++
+ }
+ }
+ }
+ return count, nil
+}
+
+func getKernelMax() (int, error) {
+ buf, err := ioutil.ReadFile(filepath.Join(sysfsCPUBasePath, "kernel_max"))
+ if err != nil {
+ return 0, err
+ }
+ n, err := strconv.ParseInt(strings.Trim(string(buf), "\n "), 10, 32)
+ if err != nil {
+ return 0, err
+ }
+ return int(n), nil
+}
+
+func getOffline() (int, error) {
+ return readCPURange("offline")
+}
+
+func getOnline() (int, error) {
+ if n, err := getFromCPUAffinity(); err == nil {
+ return n, nil
+ }
+ return readCPURange("online")
+}
+
+func getPossible() (int, error) {
+ return readCPURange("possible")
+}
+
+func getPresent() (int, error) {
+ return readCPURange("present")
+}
diff --git a/vendor/github.com/tklauser/numcpus/numcpus_solaris.go b/vendor/github.com/tklauser/numcpus/numcpus_solaris.go
new file mode 100644
index 0000000..a264323
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/numcpus_solaris.go
@@ -0,0 +1,56 @@
+// Copyright 2021 Tobias Klauser
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//go:build solaris
+// +build solaris
+
+package numcpus
+
+import "golang.org/x/sys/unix"
+
+// taken from /usr/include/sys/unistd.h
+const (
+ _SC_NPROCESSORS_CONF = 14
+ _SC_NPROCESSORS_ONLN = 15
+ _SC_NPROCESSORS_MAX = 516
+)
+
+func getConfigured() (int, error) {
+ n, err := unix.Sysconf(_SC_NPROCESSORS_CONF)
+ return int(n), err
+}
+
+func getKernelMax() (int, error) {
+ n, err := unix.Sysconf(_SC_NPROCESSORS_MAX)
+ return int(n), err
+}
+
+func getOffline() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getOnline() (int, error) {
+ n, err := unix.Sysconf(_SC_NPROCESSORS_ONLN)
+ return int(n), err
+}
+
+func getPossible() (int, error) {
+ n, err := unix.Sysconf(_SC_NPROCESSORS_CONF)
+ return int(n), err
+}
+
+func getPresent() (int, error) {
+ n, err := unix.Sysconf(_SC_NPROCESSORS_CONF)
+ return int(n), err
+}
diff --git a/vendor/github.com/tklauser/numcpus/numcpus_unsupported.go b/vendor/github.com/tklauser/numcpus/numcpus_unsupported.go
new file mode 100644
index 0000000..4a0b7c4
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/numcpus_unsupported.go
@@ -0,0 +1,42 @@
+// Copyright 2021 Tobias Klauser
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows
+// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
+
+package numcpus
+
+func getConfigured() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getKernelMax() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getOffline() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getOnline() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getPossible() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getPresent() (int, error) {
+ return 0, ErrNotSupported
+}
diff --git a/vendor/github.com/tklauser/numcpus/numcpus_windows.go b/vendor/github.com/tklauser/numcpus/numcpus_windows.go
new file mode 100644
index 0000000..f7d5b40
--- /dev/null
+++ b/vendor/github.com/tklauser/numcpus/numcpus_windows.go
@@ -0,0 +1,41 @@
+// Copyright 2022 Tobias Klauser
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package numcpus
+
+import "golang.org/x/sys/windows"
+
+func getConfigured() (int, error) {
+ return int(windows.GetActiveProcessorCount(windows.ALL_PROCESSOR_GROUPS)), nil
+}
+
+func getKernelMax() (int, error) {
+ return int(windows.GetMaximumProcessorCount(windows.ALL_PROCESSOR_GROUPS)), nil
+}
+
+func getOffline() (int, error) {
+ return 0, ErrNotSupported
+}
+
+func getOnline() (int, error) {
+ return int(windows.GetActiveProcessorCount(windows.ALL_PROCESSOR_GROUPS)), nil
+}
+
+func getPossible() (int, error) {
+ return int(windows.GetActiveProcessorCount(windows.ALL_PROCESSOR_GROUPS)), nil
+}
+
+func getPresent() (int, error) {
+ return int(windows.GetActiveProcessorCount(windows.ALL_PROCESSOR_GROUPS)), nil
+}