
This improves daemon.log retention from a few hours to week (i.e. without log-rotation). This enables debugability support if customer stays on Kubernetes 1.24 or 1.25 for any period of time. This is a manual backport of PRs 110496 and 117241 by Kir Kolyshkin. Cherry-pick of: https://github.com/kubernetes/kubernetes/pull/117892/ ([1.24] vendor: bump runc to 1.1.6) Cherry-pick of: https://github.com/kubernetes/kubernetes/pull/117682/ ([1.25] vendor: bump runc to 1.1.6) This change is not required in Kubernetes 1.26 upwards. This issue comes from the integration of the Misc controller in Kernel 5.13 . Problem comes from a discrepancy between the code creating the "Misc" Cgroup and the code cleaning the Cgroup that doesn't handle the "Misc" Cgroup, leaving it behind. runc integrated a fix in 1.1.6, HOWEVER kubelet depends on runc's cgroup libraries. In order to clean up pods using the new "Misc" controller, runc cgroup library need to be updated to be aware of it. So even if our system run 1.1.6 but kubelet is not build with these library, the problem occurs. See more details at: https://www.suse.com/support/kb/doc/?id=000021270 https://github.com/opencontainers/runc/issues/3849#issuecomment-1544519250 Test Plan PASS: Install iso as AIO-SX PASS: Build-pkg 1.24 and 1.25 successfully. PASS: AIO-SX USM upgrade with K8S 1.24. Verify no log flood. PASS: AIO-SX: K8S Upgrade from 1.24 to 1.25, verify no log flood. PASS: make WHAT="cmd/kube-proxy cmd/kube-apiserver \ cmd/kube-controller-manager cmd/kubelet cmd/kubeadm \ cmd/kube-scheduler cmd/kubectl cmd/genman" Closes-Bug: 2098478 Change-Id: Iea84aceef74cad45f514bb987010e12880645582 Signed-off-by: Saba Touheed Mujawar <sabatouheed.mujawar@windriver.com>
23799 lines
830 KiB
Diff
23799 lines
830 KiB
Diff
From 2c12977ea5ce40ebc413fc4b1c425b41ad561418 Mon Sep 17 00:00:00 2001
|
|
From: Kir Kolyshkin <kolyshkin@gmail.com>
|
|
Date: Tue, 9 May 2023 11:21:56 -0700
|
|
Subject: [PATCH] kubernetes pull 117892 vendor bump runc to 1.1.6
|
|
|
|
This reduces the number of log entries in daemon.log reducing the cpu
|
|
usage during platform upgrade.
|
|
|
|
This issue comes from the integration of the Misc controller in
|
|
Kernel 5.13 . Problem comes from a discrepancy between the code
|
|
creating the "Misc" Cgroup and the code cleaning the Cgroup that
|
|
doesn't handle the "Misc" Cgroup, leaving it behind. runc integrated
|
|
a fix in 1.1.6, HOWEVER kubelet depends on runc's cgroup libraries.
|
|
In order to clean up pods using the new "Misc" controller,
|
|
runc cgroup library need to be updated to be aware of it.
|
|
So even if our system run 1.1.6 but kubelet is not build
|
|
with these library, the problem occurs.
|
|
|
|
Cherry-pick of: https://github.com/kubernetes/kubernetes/pull/117892/
|
|
([1.24] vendor: bump runc to 1.1.6)
|
|
|
|
Signed-off-by: Saba Touheed Mujawar <sabatouheed.mujawar@windriver.com>
|
|
---
|
|
go.mod | 31 +-
|
|
go.sum | 37 +-
|
|
staging/src/k8s.io/api/go.mod | 2 +
|
|
staging/src/k8s.io/api/go.sum | 8 +-
|
|
.../src/k8s.io/apiextensions-apiserver/go.mod | 7 +
|
|
.../src/k8s.io/apiextensions-apiserver/go.sum | 28 +-
|
|
staging/src/k8s.io/apimachinery/go.mod | 3 +-
|
|
staging/src/k8s.io/apimachinery/go.sum | 10 +-
|
|
staging/src/k8s.io/apiserver/go.mod | 8 +-
|
|
staging/src/k8s.io/apiserver/go.sum | 20 +-
|
|
staging/src/k8s.io/cli-runtime/go.mod | 5 +-
|
|
staging/src/k8s.io/cli-runtime/go.sum | 16 +-
|
|
staging/src/k8s.io/client-go/go.mod | 6 +-
|
|
staging/src/k8s.io/client-go/go.sum | 16 +-
|
|
staging/src/k8s.io/cloud-provider/go.mod | 5 +
|
|
staging/src/k8s.io/cloud-provider/go.sum | 21 +-
|
|
staging/src/k8s.io/cluster-bootstrap/go.mod | 2 +
|
|
staging/src/k8s.io/cluster-bootstrap/go.sum | 8 +-
|
|
.../src/k8s.io/code-generator/examples/go.sum | 21 +-
|
|
staging/src/k8s.io/code-generator/go.mod | 6 +-
|
|
staging/src/k8s.io/code-generator/go.sum | 21 +-
|
|
staging/src/k8s.io/component-base/go.mod | 5 +-
|
|
staging/src/k8s.io/component-base/go.sum | 16 +-
|
|
staging/src/k8s.io/component-helpers/go.mod | 4 +
|
|
staging/src/k8s.io/component-helpers/go.sum | 16 +-
|
|
staging/src/k8s.io/controller-manager/go.mod | 5 +
|
|
staging/src/k8s.io/controller-manager/go.sum | 20 +-
|
|
staging/src/k8s.io/cri-api/go.mod | 5 +-
|
|
staging/src/k8s.io/cri-api/go.sum | 12 +-
|
|
staging/src/k8s.io/csi-translation-lib/go.mod | 2 +
|
|
staging/src/k8s.io/csi-translation-lib/go.sum | 8 +-
|
|
staging/src/k8s.io/kube-aggregator/go.mod | 8 +-
|
|
staging/src/k8s.io/kube-aggregator/go.sum | 28 +-
|
|
.../src/k8s.io/kube-controller-manager/go.mod | 2 +
|
|
.../src/k8s.io/kube-controller-manager/go.sum | 8 +-
|
|
staging/src/k8s.io/kube-proxy/go.mod | 2 +
|
|
staging/src/k8s.io/kube-proxy/go.sum | 8 +-
|
|
staging/src/k8s.io/kube-scheduler/go.mod | 2 +
|
|
staging/src/k8s.io/kube-scheduler/go.sum | 10 +
|
|
staging/src/k8s.io/kubectl/go.mod | 5 +-
|
|
staging/src/k8s.io/kubectl/go.sum | 16 +-
|
|
staging/src/k8s.io/kubelet/go.mod | 3 +
|
|
staging/src/k8s.io/kubelet/go.sum | 12 +-
|
|
.../src/k8s.io/legacy-cloud-providers/go.mod | 4 +
|
|
.../src/k8s.io/legacy-cloud-providers/go.sum | 16 +-
|
|
staging/src/k8s.io/metrics/go.mod | 6 +
|
|
staging/src/k8s.io/metrics/go.sum | 25 +-
|
|
.../src/k8s.io/pod-security-admission/go.mod | 5 +
|
|
.../src/k8s.io/pod-security-admission/go.sum | 20 +-
|
|
staging/src/k8s.io/sample-apiserver/go.mod | 7 +
|
|
staging/src/k8s.io/sample-apiserver/go.sum | 28 +-
|
|
staging/src/k8s.io/sample-cli-plugin/go.mod | 4 +
|
|
staging/src/k8s.io/sample-cli-plugin/go.sum | 16 +-
|
|
staging/src/k8s.io/sample-controller/go.mod | 6 +
|
|
staging/src/k8s.io/sample-controller/go.sum | 25 +-
|
|
.../runc/libcontainer/README.md | 16 -
|
|
.../libcontainer/cgroups/ebpf/ebpf_linux.go | 2 +-
|
|
.../runc/libcontainer/cgroups/fs/fs.go | 1 +
|
|
.../libcontainer/cgroups/systemd/common.go | 70 +-
|
|
.../libcontainer/cgroups/systemd/cpuset.go | 5 +
|
|
.../runc/libcontainer/cgroups/systemd/dbus.go | 8 +-
|
|
.../runc/libcontainer/cgroups/systemd/v1.go | 12 +-
|
|
.../runc/libcontainer/cgroups/systemd/v2.go | 2 +-
|
|
.../runc/libcontainer/cgroups/utils.go | 6 +-
|
|
.../configs/validate/validator.go | 5 +-
|
|
.../runc/libcontainer/container_linux.go | 2 +-
|
|
.../runc/libcontainer/eaccess_go119.go | 17 +
|
|
.../runc/libcontainer/eaccess_stub.go | 10 +
|
|
.../runc/libcontainer/factory_linux.go | 12 +-
|
|
.../runc/libcontainer/init_linux.go | 5 +-
|
|
.../runc/libcontainer/process_linux.go | 4 -
|
|
.../runc/libcontainer/rootfs_linux.go | 85 +-
|
|
.../runc/libcontainer/seccomp/config.go | 16 +-
|
|
.../seccomp/patchbpf/enosys_linux.go | 48 +-
|
|
.../libcontainer/seccomp/seccomp_linux.go | 6 +-
|
|
.../runc/libcontainer/standard_init_linux.go | 8 +
|
|
.../opencontainers/runc/libcontainer/sync.go | 14 +-
|
|
.../runc/libcontainer/user/user.go | 14 +-
|
|
.../seccomp/libseccomp-golang/.golangci.yml | 4 +
|
|
.../seccomp/libseccomp-golang/.travis.yml | 57 -
|
|
.../seccomp/libseccomp-golang/CONTRIBUTING.md | 26 +-
|
|
.../seccomp/libseccomp-golang/Makefile | 7 +-
|
|
.../seccomp/libseccomp-golang/README.md | 24 +-
|
|
.../seccomp/libseccomp-golang/SECURITY.md | 47 +
|
|
.../seccomp/libseccomp-golang/seccomp.go | 253 +-
|
|
.../libseccomp-golang/seccomp_internal.go | 175 +-
|
|
vendor/golang.org/x/mod/module/module.go | 8 +-
|
|
vendor/golang.org/x/net/html/doc.go | 15 +
|
|
vendor/golang.org/x/net/html/escape.go | 81 +
|
|
vendor/golang.org/x/net/html/render.go | 2 +-
|
|
vendor/golang.org/x/net/html/token.go | 7 +-
|
|
.../x/sync/singleflight/singleflight.go | 11 +-
|
|
vendor/golang.org/x/sys/cpu/hwcap_linux.go | 15 +
|
|
vendor/golang.org/x/sys/cpu/runtime_auxv.go | 16 +
|
|
.../x/sys/cpu/runtime_auxv_go121.go | 19 +
|
|
vendor/golang.org/x/sys/execabs/execabs.go | 2 +-
|
|
.../golang.org/x/sys/execabs/execabs_go118.go | 18 +
|
|
.../golang.org/x/sys/execabs/execabs_go119.go | 21 +
|
|
vendor/golang.org/x/sys/unix/ioctl.go | 17 +-
|
|
vendor/golang.org/x/sys/unix/ioctl_zos.go | 8 +-
|
|
vendor/golang.org/x/sys/unix/ptrace_darwin.go | 6 +
|
|
vendor/golang.org/x/sys/unix/ptrace_ios.go | 6 +
|
|
vendor/golang.org/x/sys/unix/syscall_aix.go | 5 +-
|
|
vendor/golang.org/x/sys/unix/syscall_bsd.go | 3 +-
|
|
.../golang.org/x/sys/unix/syscall_darwin.go | 12 +-
|
|
.../x/sys/unix/syscall_darwin_amd64.go | 1 +
|
|
.../x/sys/unix/syscall_darwin_arm64.go | 1 +
|
|
.../x/sys/unix/syscall_dragonfly.go | 1 +
|
|
.../golang.org/x/sys/unix/syscall_freebsd.go | 52 +
|
|
.../x/sys/unix/syscall_freebsd_386.go | 8 +
|
|
.../x/sys/unix/syscall_freebsd_amd64.go | 8 +
|
|
.../x/sys/unix/syscall_freebsd_arm.go | 7 +
|
|
.../x/sys/unix/syscall_freebsd_arm64.go | 7 +
|
|
.../x/sys/unix/syscall_freebsd_riscv64.go | 61 +
|
|
vendor/golang.org/x/sys/unix/syscall_hurd.go | 30 +
|
|
vendor/golang.org/x/sys/unix/syscall_linux.go | 36 +-
|
|
.../golang.org/x/sys/unix/syscall_netbsd.go | 5 +-
|
|
.../golang.org/x/sys/unix/syscall_openbsd.go | 1 +
|
|
.../golang.org/x/sys/unix/syscall_solaris.go | 85 +-
|
|
.../x/sys/unix/syscall_zos_s390x.go | 4 +-
|
|
vendor/golang.org/x/sys/unix/zerrors_linux.go | 10 +-
|
|
.../x/sys/unix/zptrace_armnn_linux.go | 8 +-
|
|
.../x/sys/unix/zptrace_linux_arm64.go | 4 +-
|
|
.../x/sys/unix/zptrace_mipsnn_linux.go | 8 +-
|
|
.../x/sys/unix/zptrace_mipsnnle_linux.go | 8 +-
|
|
.../x/sys/unix/zptrace_x86_linux.go | 8 +-
|
|
.../golang.org/x/sys/unix/zsyscall_aix_ppc.go | 10 +
|
|
.../x/sys/unix/zsyscall_aix_ppc64.go | 10 +
|
|
.../x/sys/unix/zsyscall_aix_ppc64_gc.go | 7 +
|
|
.../x/sys/unix/zsyscall_aix_ppc64_gccgo.go | 8 +
|
|
.../x/sys/unix/zsyscall_darwin_amd64.go | 16 +
|
|
.../x/sys/unix/zsyscall_darwin_arm64.go | 16 +
|
|
.../x/sys/unix/zsyscall_dragonfly_amd64.go | 10 +
|
|
.../x/sys/unix/zsyscall_freebsd_386.go | 20 +
|
|
.../x/sys/unix/zsyscall_freebsd_amd64.go | 20 +
|
|
.../x/sys/unix/zsyscall_freebsd_arm.go | 39 +
|
|
.../x/sys/unix/zsyscall_freebsd_arm64.go | 20 +
|
|
.../x/sys/unix/zsyscall_freebsd_riscv64.go | 1919 ++++++++++++++
|
|
.../golang.org/x/sys/unix/zsyscall_linux.go | 10 +
|
|
.../x/sys/unix/zsyscall_netbsd_386.go | 10 +
|
|
.../x/sys/unix/zsyscall_netbsd_amd64.go | 10 +
|
|
.../x/sys/unix/zsyscall_netbsd_arm.go | 10 +
|
|
.../x/sys/unix/zsyscall_netbsd_arm64.go | 10 +
|
|
.../x/sys/unix/zsyscall_openbsd_386.go | 15 +
|
|
.../x/sys/unix/zsyscall_openbsd_amd64.go | 15 +
|
|
.../x/sys/unix/zsyscall_openbsd_arm.go | 15 +
|
|
.../x/sys/unix/zsyscall_openbsd_arm64.go | 15 +
|
|
.../x/sys/unix/zsyscall_openbsd_mips64.go | 15 +
|
|
.../x/sys/unix/zsyscall_openbsd_ppc64.go | 2243 +++++++++++++++++
|
|
.../x/sys/unix/zsyscall_openbsd_riscv64.go | 2243 +++++++++++++++++
|
|
.../x/sys/unix/zsyscall_solaris_amd64.go | 11 +
|
|
.../x/sys/unix/zsyscall_zos_s390x.go | 10 +
|
|
.../x/sys/unix/ztypes_freebsd_386.go | 2 +-
|
|
.../x/sys/unix/ztypes_freebsd_amd64.go | 2 +-
|
|
.../x/sys/unix/ztypes_freebsd_arm.go | 2 +-
|
|
.../x/sys/unix/ztypes_freebsd_arm64.go | 2 +-
|
|
.../x/sys/unix/ztypes_freebsd_riscv64.go | 638 +++++
|
|
vendor/golang.org/x/sys/unix/ztypes_linux.go | 1732 ++++++++++++-
|
|
.../golang.org/x/sys/unix/ztypes_linux_386.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_amd64.go | 2 +-
|
|
.../golang.org/x/sys/unix/ztypes_linux_arm.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_arm64.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_loong64.go | 691 +++++
|
|
.../x/sys/unix/ztypes_linux_mips.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_mips64.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_mips64le.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_mipsle.go | 2 +-
|
|
.../golang.org/x/sys/unix/ztypes_linux_ppc.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_ppc64.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_ppc64le.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_riscv64.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_s390x.go | 2 +-
|
|
.../x/sys/unix/ztypes_linux_sparc64.go | 2 +-
|
|
.../x/sys/windows/syscall_windows.go | 6 +-
|
|
.../golang.org/x/sys/windows/types_windows.go | 133 +
|
|
.../x/sys/windows/zsyscall_windows.go | 27 +
|
|
.../x/text/encoding/internal/internal.go | 2 +-
|
|
.../x/text/unicode/norm/forminfo.go | 2 +-
|
|
.../x/tools/container/intsets/sparse.go | 2 +-
|
|
.../x/tools/go/gcexportdata/gcexportdata.go | 33 +-
|
|
.../go/internal/gcimporter/gcimporter.go | 1084 --------
|
|
.../golang.org/x/tools/go/packages/golist.go | 26 +-
|
|
.../x/tools/go/packages/packages.go | 87 +-
|
|
.../internal/fastwalk/fastwalk_darwin.go | 119 +
|
|
.../internal/fastwalk/fastwalk_dirent_ino.go | 6 +-
|
|
.../fastwalk/fastwalk_dirent_namlen_bsd.go | 4 +-
|
|
.../tools/internal/fastwalk/fastwalk_unix.go | 4 +-
|
|
.../{go => }/internal/gcimporter/bexport.go | 9 +-
|
|
.../{go => }/internal/gcimporter/bimport.go | 0
|
|
.../internal/gcimporter/exportdata.go | 0
|
|
.../x/tools/internal/gcimporter/gcimporter.go | 265 ++
|
|
.../{go => }/internal/gcimporter/iexport.go | 198 +-
|
|
.../{go => }/internal/gcimporter/iimport.go | 112 +-
|
|
.../internal/gcimporter/newInterface10.go | 0
|
|
.../internal/gcimporter/newInterface11.go | 0
|
|
.../internal/gcimporter/support_go117.go | 0
|
|
.../internal/gcimporter/support_go118.go | 14 +
|
|
.../x/tools/internal/gcimporter/unified_no.go | 10 +
|
|
.../tools/internal/gcimporter/unified_yes.go | 10 +
|
|
.../x/tools/internal/gcimporter/ureader_no.go | 19 +
|
|
.../tools/internal/gcimporter/ureader_yes.go | 738 ++++++
|
|
.../x/tools/internal/gocommand/invoke.go | 83 +-
|
|
.../x/tools/internal/gocommand/version.go | 36 +-
|
|
.../x/tools/internal/imports/fix.go | 18 +-
|
|
.../x/tools/internal/imports/mod.go | 29 +-
|
|
.../x/tools/internal/imports/sortimports.go | 1 +
|
|
.../x/tools/internal/imports/zstdlib.go | 633 +++--
|
|
.../x/tools/internal/pkgbits/codes.go | 77 +
|
|
.../x/tools/internal/pkgbits/decoder.go | 517 ++++
|
|
.../x/tools/internal/pkgbits/doc.go | 32 +
|
|
.../x/tools/internal/pkgbits/encoder.go | 383 +++
|
|
.../x/tools/internal/pkgbits/flags.go | 9 +
|
|
.../x/tools/internal/pkgbits/frames_go1.go | 21 +
|
|
.../x/tools/internal/pkgbits/frames_go17.go | 28 +
|
|
.../x/tools/internal/pkgbits/reloc.go | 42 +
|
|
.../x/tools/internal/pkgbits/support.go | 17 +
|
|
.../x/tools/internal/pkgbits/sync.go | 113 +
|
|
.../internal/pkgbits/syncmarker_string.go | 89 +
|
|
.../internal/tokeninternal/tokeninternal.go | 59 +
|
|
.../tools/internal/typesinternal/errorcode.go | 196 +-
|
|
.../typesinternal/errorcode_string.go | 40 +-
|
|
vendor/modules.txt | 63 +-
|
|
222 files changed, 15307 insertions(+), 2139 deletions(-)
|
|
create mode 100644 vendor/github.com/opencontainers/runc/libcontainer/eaccess_go119.go
|
|
create mode 100644 vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go
|
|
create mode 100644 vendor/github.com/seccomp/libseccomp-golang/.golangci.yml
|
|
delete mode 100644 vendor/github.com/seccomp/libseccomp-golang/.travis.yml
|
|
create mode 100644 vendor/github.com/seccomp/libseccomp-golang/SECURITY.md
|
|
create mode 100644 vendor/golang.org/x/sys/cpu/runtime_auxv.go
|
|
create mode 100644 vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go
|
|
create mode 100644 vendor/golang.org/x/sys/execabs/execabs_go118.go
|
|
create mode 100644 vendor/golang.org/x/sys/execabs/execabs_go119.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/syscall_hurd.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go
|
|
create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
|
|
delete mode 100644 vendor/golang.org/x/tools/go/internal/gcimporter/gcimporter.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_darwin.go
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/bexport.go (99%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/bimport.go (100%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/exportdata.go (100%)
|
|
create mode 100644 vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/iexport.go (78%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/iimport.go (86%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/newInterface10.go (100%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/newInterface11.go (100%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/support_go117.go (100%)
|
|
rename vendor/golang.org/x/tools/{go => }/internal/gcimporter/support_go118.go (62%)
|
|
create mode 100644 vendor/golang.org/x/tools/internal/gcimporter/unified_no.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/gcimporter/unified_yes.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/gcimporter/ureader_no.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/codes.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/decoder.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/doc.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/encoder.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/flags.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/frames_go1.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/reloc.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/support.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/sync.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/pkgbits/syncmarker_string.go
|
|
create mode 100644 vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go
|
|
|
|
diff --git a/go.mod b/go.mod
|
|
index 16e9a0c81b0..0f261d1e439 100644
|
|
--- a/go.mod
|
|
+++ b/go.mod
|
|
@@ -63,7 +63,7 @@ require (
|
|
github.com/mvdan/xurls v1.1.0
|
|
github.com/onsi/ginkgo v1.14.0
|
|
github.com/onsi/gomega v1.10.1
|
|
- github.com/opencontainers/runc v1.1.1
|
|
+ github.com/opencontainers/runc v1.1.6
|
|
github.com/opencontainers/selinux v1.10.0
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/pmezard/go-difflib v1.0.0
|
|
@@ -88,13 +88,13 @@ require (
|
|
go.uber.org/zap v1.19.0
|
|
golang.org/x/crypto v0.0.0-20220214200702-86341886e292
|
|
golang.org/x/exp v0.0.0-20210220032938-85be41e4509f // indirect
|
|
- golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
+ golang.org/x/net v0.8.0
|
|
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
|
- golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
|
- golang.org/x/sys v0.0.0-20220209214540-3681064d5158
|
|
- golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
|
+ golang.org/x/sync v0.1.0
|
|
+ golang.org/x/sys v0.6.0
|
|
+ golang.org/x/term v0.6.0
|
|
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
|
- golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717
|
|
+ golang.org/x/tools v0.6.0
|
|
gonum.org/v1/gonum v0.6.2
|
|
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect
|
|
google.golang.org/api v0.46.0
|
|
@@ -337,7 +337,7 @@ replace (
|
|
github.com/onsi/gomega => github.com/onsi/gomega v1.10.1
|
|
github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.0
|
|
github.com/opencontainers/image-spec => github.com/opencontainers/image-spec v1.0.2
|
|
- github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.1
|
|
+ github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.6
|
|
github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
|
|
github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.10.0
|
|
github.com/opentracing/opentracing-go => github.com/opentracing/opentracing-go v1.1.0
|
|
@@ -358,8 +358,9 @@ replace (
|
|
github.com/rubiojr/go-vhd => github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021
|
|
github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2
|
|
github.com/russross/blackfriday/v2 => github.com/russross/blackfriday/v2 v2.1.0
|
|
- github.com/seccomp/libseccomp-golang => github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921
|
|
+ github.com/seccomp/libseccomp-golang => github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646
|
|
github.com/sergi/go-diff => github.com/sergi/go-diff v1.1.0
|
|
+ github.com/shurcooL/sanitized_anchor_name => github.com/shurcooL/sanitized_anchor_name v1.0.0
|
|
github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.8.1
|
|
github.com/smartystreets/assertions => github.com/smartystreets/assertions v1.1.0
|
|
github.com/smartystreets/goconvey => github.com/smartystreets/goconvey v1.6.4
|
|
@@ -413,15 +414,15 @@ replace (
|
|
golang.org/x/image => golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
|
golang.org/x/lint => golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
|
|
golang.org/x/mobile => golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f
|
|
- golang.org/x/mod => golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
|
|
- golang.org/x/net => golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
+ golang.org/x/mod => golang.org/x/mod v0.8.0
|
|
+ golang.org/x/net => golang.org/x/net v0.8.0
|
|
golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
|
- golang.org/x/sync => golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
|
- golang.org/x/sys => golang.org/x/sys v0.0.0-20220209214540-3681064d5158
|
|
- golang.org/x/term => golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
|
- golang.org/x/text => golang.org/x/text v0.3.7
|
|
+ golang.org/x/sync => golang.org/x/sync v0.1.0
|
|
+ golang.org/x/sys => golang.org/x/sys v0.6.0
|
|
+ golang.org/x/term => golang.org/x/term v0.6.0
|
|
+ golang.org/x/text => golang.org/x/text v0.8.0
|
|
golang.org/x/time => golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
|
- golang.org/x/tools => golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717
|
|
+ golang.org/x/tools => golang.org/x/tools v0.6.0
|
|
golang.org/x/xerrors => golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
|
|
gonum.org/v1/gonum => gonum.org/v1/gonum v0.6.2
|
|
gonum.org/v1/netlib => gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e
|
|
diff --git a/go.sum b/go.sum
|
|
index 49c547ebf4d..9c79ab3d64f 100644
|
|
--- a/go.sum
|
|
+++ b/go.sum
|
|
@@ -343,8 +343,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
|
|
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
|
github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM=
|
|
github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
|
|
-github.com/opencontainers/runc v1.1.1 h1:PJ9DSs2sVwE0iVr++pAHE6QkS9tzcVWozlPifdwMgrU=
|
|
-github.com/opencontainers/runc v1.1.1/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc=
|
|
+github.com/opencontainers/runc v1.1.6 h1:XbhB8IfG/EsnhNvZtNdLB0GBw92GYEFvKlhaJk9jUgA=
|
|
+github.com/opencontainers/runc v1.1.6/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh/smNYNOhA50=
|
|
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc=
|
|
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
|
|
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
|
|
@@ -380,10 +380,11 @@ github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNue
|
|
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
|
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
|
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
|
-github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921 h1:58EBmR2dMNL2n/FnbQewK3D14nXr0V9CObDSvMJLq+Y=
|
|
-github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg=
|
|
+github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646 h1:RpforrEYXWkmGwJHIGnLZ3tTWStkjVVstwzNGqxX2Ds=
|
|
+github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg=
|
|
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
|
|
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
|
|
+github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
|
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
|
|
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
|
github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=
|
|
@@ -483,24 +484,24 @@ golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+o
|
|
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug=
|
|
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
|
golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 h1:RerP+noqYHUQ8CMRcPlC2nvTa4dcBIjegkuWdcUDuqg=
|
|
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=
|
|
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
|
|
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
|
|
+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
|
+golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
|
|
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
|
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44=
|
|
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
gonum.org/v1/gonum v0.6.2 h1:4r+yNT0+8SWcOkXP+63H2zQbN+USnC73cjGUxnDF94Q=
|
|
diff --git a/staging/src/k8s.io/api/go.mod b/staging/src/k8s.io/api/go.mod
|
|
index f0cd56596f5..7dd90384db4 100644
|
|
--- a/staging/src/k8s.io/api/go.mod
|
|
+++ b/staging/src/k8s.io/api/go.mod
|
|
@@ -8,6 +8,8 @@ require (
|
|
github.com/gogo/protobuf v1.3.2
|
|
github.com/stretchr/testify v1.7.0
|
|
k8s.io/apimachinery v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/api/go.sum b/staging/src/k8s.io/api/go.sum
|
|
index 35daf19d8bf..031d6cbeeda 100644
|
|
--- a/staging/src/k8s.io/api/go.sum
|
|
+++ b/staging/src/k8s.io/api/go.sum
|
|
@@ -130,8 +130,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
|
|
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -160,8 +160,8 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
diff --git a/staging/src/k8s.io/apiextensions-apiserver/go.mod b/staging/src/k8s.io/apiextensions-apiserver/go.mod
|
|
index 55cfaa26a41..b82eff757df 100644
|
|
--- a/staging/src/k8s.io/apiextensions-apiserver/go.mod
|
|
+++ b/staging/src/k8s.io/apiextensions-apiserver/go.mod
|
|
@@ -34,6 +34,13 @@ require (
|
|
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2
|
|
sigs.k8s.io/structured-merge-diff/v4 v4.2.1
|
|
sigs.k8s.io/yaml v1.2.0
|
|
+ golang.org/x/mod v0.8.0 // indirect
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sync v0.1.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
+ golang.org/x/tools v0.6.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/apiextensions-apiserver/go.sum b/staging/src/k8s.io/apiextensions-apiserver/go.sum
|
|
index b5941e8bab6..c734886c6f2 100644
|
|
--- a/staging/src/k8s.io/apiextensions-apiserver/go.sum
|
|
+++ b/staging/src/k8s.io/apiextensions-apiserver/go.sum
|
|
@@ -597,8 +597,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -646,8 +646,8 @@ golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qx
|
|
golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -672,8 +672,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -737,11 +737,11 @@ golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -750,8 +750,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
@@ -815,8 +815,8 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
|
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
|
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/staging/src/k8s.io/apimachinery/go.mod b/staging/src/k8s.io/apimachinery/go.mod
|
|
index fe8e250fd2b..5d14be76f59 100644
|
|
--- a/staging/src/k8s.io/apimachinery/go.mod
|
|
+++ b/staging/src/k8s.io/apimachinery/go.mod
|
|
@@ -24,7 +24,8 @@ require (
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.7.0
|
|
- golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
+ golang.org/x/net v0.8.0
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
|
|
google.golang.org/protobuf v1.27.1 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
|
|
diff --git a/staging/src/k8s.io/apimachinery/go.sum b/staging/src/k8s.io/apimachinery/go.sum
|
|
index 1a44f06f9f4..67273880d09 100644
|
|
--- a/staging/src/k8s.io/apimachinery/go.sum
|
|
+++ b/staging/src/k8s.io/apimachinery/go.sum
|
|
@@ -146,8 +146,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
|
|
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -171,14 +171,14 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
diff --git a/staging/src/k8s.io/apiserver/go.mod b/staging/src/k8s.io/apiserver/go.mod
|
|
index 6959ec03dae..f53b391334b 100644
|
|
--- a/staging/src/k8s.io/apiserver/go.mod
|
|
+++ b/staging/src/k8s.io/apiserver/go.mod
|
|
@@ -36,9 +36,9 @@ require (
|
|
go.opentelemetry.io/otel/trace v0.20.0
|
|
go.uber.org/zap v1.19.0
|
|
golang.org/x/crypto v0.0.0-20220214200702-86341886e292
|
|
- golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
- golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
|
- golang.org/x/sys v0.0.0-20220209214540-3681064d5158
|
|
+ golang.org/x/net v0.8.0
|
|
+ golang.org/x/sync v0.1.0
|
|
+ golang.org/x/sys v0.6.0
|
|
google.golang.org/grpc v1.40.0
|
|
gopkg.in/natefinch/lumberjack.v2 v2.0.0
|
|
gopkg.in/square/go-jose.v2 v2.2.2
|
|
@@ -53,6 +53,8 @@ require (
|
|
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2
|
|
sigs.k8s.io/structured-merge-diff/v4 v4.2.1
|
|
sigs.k8s.io/yaml v1.2.0
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/apiserver/go.sum b/staging/src/k8s.io/apiserver/go.sum
|
|
index ca512d9db5a..2036683c0fe 100644
|
|
--- a/staging/src/k8s.io/apiserver/go.sum
|
|
+++ b/staging/src/k8s.io/apiserver/go.sum
|
|
@@ -629,8 +629,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -655,8 +655,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -719,11 +719,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -732,8 +732,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/cli-runtime/go.mod b/staging/src/k8s.io/cli-runtime/go.mod
|
|
index 4e1d0a98fa1..348ab97ccf5 100644
|
|
--- a/staging/src/k8s.io/cli-runtime/go.mod
|
|
+++ b/staging/src/k8s.io/cli-runtime/go.mod
|
|
@@ -13,7 +13,10 @@ require (
|
|
github.com/spf13/cobra v1.4.0
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.7.0
|
|
- golang.org/x/text v0.3.7
|
|
+ golang.org/x/text v0.8.0
|
|
+ golang.org/x/net
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
diff --git a/staging/src/k8s.io/cli-runtime/go.sum b/staging/src/k8s.io/cli-runtime/go.sum
|
|
index 37a2fc0155d..bde77a867ca 100644
|
|
--- a/staging/src/k8s.io/cli-runtime/go.sum
|
|
+++ b/staging/src/k8s.io/cli-runtime/go.sum
|
|
@@ -439,8 +439,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -515,11 +515,11 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -528,8 +528,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/client-go/go.mod b/staging/src/k8s.io/client-go/go.mod
|
|
index bb254bb9858..6f77c0cdff3 100644
|
|
--- a/staging/src/k8s.io/client-go/go.mod
|
|
+++ b/staging/src/k8s.io/client-go/go.mod
|
|
@@ -29,9 +29,11 @@ require (
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.7.0
|
|
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
|
|
- golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
+ golang.org/x/net v0.8.0
|
|
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
|
- golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
|
+ golang.org/x/term v0.5.0
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
|
google.golang.org/protobuf v1.27.1
|
|
k8s.io/api v0.0.0
|
|
diff --git a/staging/src/k8s.io/client-go/go.sum b/staging/src/k8s.io/client-go/go.sum
|
|
index 8c1598ddf2b..e9ceaf2b9e3 100644
|
|
--- a/staging/src/k8s.io/client-go/go.sum
|
|
+++ b/staging/src/k8s.io/client-go/go.sum
|
|
@@ -352,8 +352,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -423,11 +423,11 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -436,8 +436,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/cloud-provider/go.mod b/staging/src/k8s.io/cloud-provider/go.mod
|
|
index 0ce70d44140..1ba786332f6 100644
|
|
--- a/staging/src/k8s.io/cloud-provider/go.mod
|
|
+++ b/staging/src/k8s.io/cloud-provider/go.mod
|
|
@@ -18,6 +18,11 @@ require (
|
|
k8s.io/controller-manager v0.0.0
|
|
k8s.io/klog/v2 v2.60.1
|
|
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sync v0.1.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/cloud-provider/go.sum b/staging/src/k8s.io/cloud-provider/go.sum
|
|
index 7e13605f7fa..621e22a98c6 100644
|
|
--- a/staging/src/k8s.io/cloud-provider/go.sum
|
|
+++ b/staging/src/k8s.io/cloud-provider/go.sum
|
|
@@ -624,8 +624,9 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxo
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -650,8 +651,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -714,11 +715,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -727,8 +728,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/cluster-bootstrap/go.mod b/staging/src/k8s.io/cluster-bootstrap/go.mod
|
|
index be3f29f32e0..4b1bc8e05c0 100644
|
|
--- a/staging/src/k8s.io/cluster-bootstrap/go.mod
|
|
+++ b/staging/src/k8s.io/cluster-bootstrap/go.mod
|
|
@@ -11,6 +11,8 @@ require (
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/klog/v2 v2.60.1
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/cluster-bootstrap/go.sum b/staging/src/k8s.io/cluster-bootstrap/go.sum
|
|
index 9de50f1a159..be6efe24b06 100644
|
|
--- a/staging/src/k8s.io/cluster-bootstrap/go.sum
|
|
+++ b/staging/src/k8s.io/cluster-bootstrap/go.sum
|
|
@@ -132,8 +132,8 @@ golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/
|
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -164,8 +164,8 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
diff --git a/staging/src/k8s.io/code-generator/examples/go.sum b/staging/src/k8s.io/code-generator/examples/go.sum
|
|
index 32aaa6a2b46..d58c75a76e3 100644
|
|
--- a/staging/src/k8s.io/code-generator/examples/go.sum
|
|
+++ b/staging/src/k8s.io/code-generator/examples/go.sum
|
|
@@ -298,6 +298,7 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -335,9 +336,9 @@ golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
|
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
-golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -362,6 +363,7 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -407,11 +409,11 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -420,8 +422,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
@@ -477,6 +479,7 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
|
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/staging/src/k8s.io/code-generator/go.mod b/staging/src/k8s.io/code-generator/go.mod
|
|
index b4a5f51241b..bab85228926 100644
|
|
--- a/staging/src/k8s.io/code-generator/go.mod
|
|
+++ b/staging/src/k8s.io/code-generator/go.mod
|
|
@@ -16,7 +16,11 @@ require (
|
|
github.com/stretchr/testify v1.7.0 // indirect
|
|
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
|
|
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
|
|
- golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717
|
|
+ golang.org/x/tools v0.6.0
|
|
+ golang.org/x/mod v0.8.0 // indirect
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
google.golang.org/protobuf v1.27.1 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
k8s.io/gengo v0.0.0-20211129171323-c02415ce4185
|
|
diff --git a/staging/src/k8s.io/code-generator/go.sum b/staging/src/k8s.io/code-generator/go.sum
|
|
index ce4cf9c24d5..450280d54dc 100644
|
|
--- a/staging/src/k8s.io/code-generator/go.sum
|
|
+++ b/staging/src/k8s.io/code-generator/go.sum
|
|
@@ -132,8 +132,8 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl
|
|
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -148,8 +148,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
|
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -157,6 +157,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -174,16 +175,16 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
@@ -194,8 +195,8 @@ golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roY
|
|
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/staging/src/k8s.io/component-base/go.mod b/staging/src/k8s.io/component-base/go.mod
|
|
index 6c504e475a3..b039a5086fc 100644
|
|
--- a/staging/src/k8s.io/component-base/go.mod
|
|
+++ b/staging/src/k8s.io/component-base/go.mod
|
|
@@ -25,7 +25,10 @@ require (
|
|
go.opentelemetry.io/otel/trace v0.20.0
|
|
go.uber.org/zap v1.19.0
|
|
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
|
|
- golang.org/x/sys v0.0.0-20220209214540-3681064d5158
|
|
+ golang.org/x/sys v0.6.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 // indirect
|
|
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368 // indirect
|
|
gotest.tools/v3 v3.0.3 // indirect
|
|
diff --git a/staging/src/k8s.io/component-base/go.sum b/staging/src/k8s.io/component-base/go.sum
|
|
index aaa39121745..40ed36a8396 100644
|
|
--- a/staging/src/k8s.io/component-base/go.sum
|
|
+++ b/staging/src/k8s.io/component-base/go.sum
|
|
@@ -470,8 +470,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -553,11 +553,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -566,8 +566,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/component-helpers/go.mod b/staging/src/k8s.io/component-helpers/go.mod
|
|
index 075b760b637..b76c6105b5b 100644
|
|
--- a/staging/src/k8s.io/component-helpers/go.mod
|
|
+++ b/staging/src/k8s.io/component-helpers/go.mod
|
|
@@ -9,6 +9,10 @@ require (
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/client-go v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
k8s.io/klog/v2 v2.60.1
|
|
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
|
|
)
|
|
diff --git a/staging/src/k8s.io/component-helpers/go.sum b/staging/src/k8s.io/component-helpers/go.sum
|
|
index 84635535e9f..7f7293b317d 100644
|
|
--- a/staging/src/k8s.io/component-helpers/go.sum
|
|
+++ b/staging/src/k8s.io/component-helpers/go.sum
|
|
@@ -334,8 +334,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -405,11 +405,11 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -418,8 +418,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/controller-manager/go.mod b/staging/src/k8s.io/controller-manager/go.mod
|
|
index 94848e766be..fae61b6f763 100644
|
|
--- a/staging/src/k8s.io/controller-manager/go.mod
|
|
+++ b/staging/src/k8s.io/controller-manager/go.mod
|
|
@@ -12,6 +12,11 @@ require (
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/apiserver v0.0.0
|
|
k8s.io/client-go v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sync v0.1.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
k8s.io/component-base v0.0.0
|
|
k8s.io/klog/v2 v2.60.1
|
|
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
|
|
diff --git a/staging/src/k8s.io/controller-manager/go.sum b/staging/src/k8s.io/controller-manager/go.sum
|
|
index 76b994fb548..c447a8c044e 100644
|
|
--- a/staging/src/k8s.io/controller-manager/go.sum
|
|
+++ b/staging/src/k8s.io/controller-manager/go.sum
|
|
@@ -732,8 +732,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -758,8 +758,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -822,11 +822,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -835,8 +835,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/cri-api/go.mod b/staging/src/k8s.io/cri-api/go.mod
|
|
index d3019d75129..ec053f7abda 100644
|
|
--- a/staging/src/k8s.io/cri-api/go.mod
|
|
+++ b/staging/src/k8s.io/cri-api/go.mod
|
|
@@ -10,8 +10,9 @@ require (
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
|
github.com/stretchr/testify v1.7.0
|
|
- golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
|
|
- golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368 // indirect
|
|
google.golang.org/grpc v1.40.0
|
|
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
|
|
diff --git a/staging/src/k8s.io/cri-api/go.sum b/staging/src/k8s.io/cri-api/go.sum
|
|
index efd4761dbda..01ae77176f7 100644
|
|
--- a/staging/src/k8s.io/cri-api/go.sum
|
|
+++ b/staging/src/k8s.io/cri-api/go.sum
|
|
@@ -87,8 +87,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
|
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -107,15 +107,15 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
diff --git a/staging/src/k8s.io/csi-translation-lib/go.mod b/staging/src/k8s.io/csi-translation-lib/go.mod
|
|
index 648f05294d5..5dde41c2dd2 100644
|
|
--- a/staging/src/k8s.io/csi-translation-lib/go.mod
|
|
+++ b/staging/src/k8s.io/csi-translation-lib/go.mod
|
|
@@ -9,6 +9,8 @@ require (
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/klog/v2 v2.60.1
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/csi-translation-lib/go.sum b/staging/src/k8s.io/csi-translation-lib/go.sum
|
|
index 4c5e7755fb4..6523af78991 100644
|
|
--- a/staging/src/k8s.io/csi-translation-lib/go.sum
|
|
+++ b/staging/src/k8s.io/csi-translation-lib/go.sum
|
|
@@ -130,8 +130,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
|
|
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -160,8 +160,8 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
diff --git a/staging/src/k8s.io/kube-aggregator/go.mod b/staging/src/k8s.io/kube-aggregator/go.mod
|
|
index d5841aad615..e62b51fcc34 100644
|
|
--- a/staging/src/k8s.io/kube-aggregator/go.mod
|
|
+++ b/staging/src/k8s.io/kube-aggregator/go.mod
|
|
@@ -11,7 +11,13 @@ require (
|
|
github.com/spf13/cobra v1.4.0
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.7.0
|
|
- golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
+ golang.org/x/net v0.8.0
|
|
+ golang.org/x/mod v0.8.0 // indirect
|
|
+ golang.org/x/sync v0.1.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
+ golang.org/x/tools v0.6.0 // indirect
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/apiserver v0.0.0
|
|
diff --git a/staging/src/k8s.io/kube-aggregator/go.sum b/staging/src/k8s.io/kube-aggregator/go.sum
|
|
index 6a284739d1f..b09f8267a9e 100644
|
|
--- a/staging/src/k8s.io/kube-aggregator/go.sum
|
|
+++ b/staging/src/k8s.io/kube-aggregator/go.sum
|
|
@@ -575,8 +575,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -623,8 +623,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -649,8 +649,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -713,11 +713,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -726,8 +726,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
@@ -791,8 +791,8 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
|
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
|
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/staging/src/k8s.io/kube-controller-manager/go.mod b/staging/src/k8s.io/kube-controller-manager/go.mod
|
|
index d2c13261f3d..ebb52141cbe 100644
|
|
--- a/staging/src/k8s.io/kube-controller-manager/go.mod
|
|
+++ b/staging/src/k8s.io/kube-controller-manager/go.mod
|
|
@@ -8,6 +8,8 @@ require (
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/cloud-provider v0.0.0
|
|
k8s.io/controller-manager v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/kube-controller-manager/go.sum b/staging/src/k8s.io/kube-controller-manager/go.sum
|
|
index 2f44c1c910d..5fcbb67ff8d 100644
|
|
--- a/staging/src/k8s.io/kube-controller-manager/go.sum
|
|
+++ b/staging/src/k8s.io/kube-controller-manager/go.sum
|
|
@@ -543,8 +543,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -642,8 +642,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/kube-proxy/go.mod b/staging/src/k8s.io/kube-proxy/go.mod
|
|
index bb791295cba..393596c1ecd 100644
|
|
--- a/staging/src/k8s.io/kube-proxy/go.mod
|
|
+++ b/staging/src/k8s.io/kube-proxy/go.mod
|
|
@@ -7,6 +7,8 @@ go 1.16
|
|
require (
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/component-base v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/kube-proxy/go.sum b/staging/src/k8s.io/kube-proxy/go.sum
|
|
index 021cce48ffa..c31686a77ba 100644
|
|
--- a/staging/src/k8s.io/kube-proxy/go.sum
|
|
+++ b/staging/src/k8s.io/kube-proxy/go.sum
|
|
@@ -419,8 +419,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -512,8 +512,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/kube-scheduler/go.mod b/staging/src/k8s.io/kube-scheduler/go.mod
|
|
index b1bb3deea8e..c2b2cbcd2db 100644
|
|
--- a/staging/src/k8s.io/kube-scheduler/go.mod
|
|
+++ b/staging/src/k8s.io/kube-scheduler/go.mod
|
|
@@ -10,6 +10,8 @@ require (
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/component-base v0.0.0
|
|
sigs.k8s.io/yaml v1.2.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/kube-scheduler/go.sum b/staging/src/k8s.io/kube-scheduler/go.sum
|
|
index 021cce48ffa..e9e50cc853c 100644
|
|
--- a/staging/src/k8s.io/kube-scheduler/go.sum
|
|
+++ b/staging/src/k8s.io/kube-scheduler/go.sum
|
|
@@ -409,6 +409,7 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R
|
|
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
+<<<<<<< HEAD
|
|
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
|
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
|
@@ -438,6 +439,10 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+=======
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
@@ -509,6 +514,7 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
+<<<<<<< HEAD
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
@@ -518,6 +524,10 @@ golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxb
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
+=======
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
|
diff --git a/staging/src/k8s.io/kubectl/go.mod b/staging/src/k8s.io/kubectl/go.mod
|
|
index 71b4c0592ca..197cbda3f16 100644
|
|
--- a/staging/src/k8s.io/kubectl/go.mod
|
|
+++ b/staging/src/k8s.io/kubectl/go.mod
|
|
@@ -29,7 +29,10 @@ require (
|
|
github.com/spf13/cobra v1.4.0
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.7.0
|
|
- golang.org/x/sys v0.0.0-20220209214540-3681064d5158
|
|
+ golang.org/x/sys v0.6.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
diff --git a/staging/src/k8s.io/kubectl/go.sum b/staging/src/k8s.io/kubectl/go.sum
|
|
index a041bc7123b..c09a256f49f 100644
|
|
--- a/staging/src/k8s.io/kubectl/go.sum
|
|
+++ b/staging/src/k8s.io/kubectl/go.sum
|
|
@@ -565,8 +565,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -653,11 +653,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -666,8 +666,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/kubelet/go.mod b/staging/src/k8s.io/kubelet/go.mod
|
|
index e543a161e78..5205f37c876 100644
|
|
--- a/staging/src/k8s.io/kubelet/go.mod
|
|
+++ b/staging/src/k8s.io/kubelet/go.mod
|
|
@@ -11,6 +11,9 @@ require (
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/component-base v0.0.0
|
|
+ golang.org/x/net v0.8.0
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/kubelet/go.sum b/staging/src/k8s.io/kubelet/go.sum
|
|
index 5b68822ef82..53832837a49 100644
|
|
--- a/staging/src/k8s.io/kubelet/go.sum
|
|
+++ b/staging/src/k8s.io/kubelet/go.sum
|
|
@@ -419,8 +419,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -501,8 +501,8 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -513,8 +513,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/legacy-cloud-providers/go.mod b/staging/src/k8s.io/legacy-cloud-providers/go.mod
|
|
index f583f69a58f..57eb9bb4500 100644
|
|
--- a/staging/src/k8s.io/legacy-cloud-providers/go.mod
|
|
+++ b/staging/src/k8s.io/legacy-cloud-providers/go.mod
|
|
@@ -40,6 +40,10 @@ require (
|
|
k8s.io/mount-utils v0.0.0
|
|
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
|
|
sigs.k8s.io/yaml v1.2.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/legacy-cloud-providers/go.sum b/staging/src/k8s.io/legacy-cloud-providers/go.sum
|
|
index 4628457653f..41fecfe0db2 100644
|
|
--- a/staging/src/k8s.io/legacy-cloud-providers/go.sum
|
|
+++ b/staging/src/k8s.io/legacy-cloud-providers/go.sum
|
|
@@ -615,8 +615,8 @@ golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qx
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -707,11 +707,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -720,8 +720,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/metrics/go.mod b/staging/src/k8s.io/metrics/go.mod
|
|
index 15c628a1629..e2ee52e1a91 100644
|
|
--- a/staging/src/k8s.io/metrics/go.mod
|
|
+++ b/staging/src/k8s.io/metrics/go.mod
|
|
@@ -11,6 +11,12 @@ require (
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/client-go v0.0.0
|
|
k8s.io/code-generator v0.0.0
|
|
+ golang.org/x/mod v0.8.0 // indirect
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
+ golang.org/x/tools v0.6.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/metrics/go.sum b/staging/src/k8s.io/metrics/go.sum
|
|
index 87a869f1dc2..7a6f8fa158f 100644
|
|
--- a/staging/src/k8s.io/metrics/go.sum
|
|
+++ b/staging/src/k8s.io/metrics/go.sum
|
|
@@ -297,8 +297,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -338,8 +338,8 @@ golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLd
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -364,6 +364,7 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -410,11 +411,11 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -423,8 +424,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
@@ -480,8 +481,8 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
|
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/staging/src/k8s.io/pod-security-admission/go.mod b/staging/src/k8s.io/pod-security-admission/go.mod
|
|
index 75fdbaaa8ee..b8f75e92e54 100644
|
|
--- a/staging/src/k8s.io/pod-security-admission/go.mod
|
|
+++ b/staging/src/k8s.io/pod-security-admission/go.mod
|
|
@@ -13,6 +13,11 @@ require (
|
|
k8s.io/api v0.0.0
|
|
k8s.io/apimachinery v0.0.0
|
|
k8s.io/apiserver v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sync v0.1.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
k8s.io/client-go v0.0.0
|
|
k8s.io/component-base v0.0.0
|
|
k8s.io/klog/v2 v2.60.1
|
|
diff --git a/staging/src/k8s.io/pod-security-admission/go.sum b/staging/src/k8s.io/pod-security-admission/go.sum
|
|
index 2daeeed9843..f37b428756c 100644
|
|
--- a/staging/src/k8s.io/pod-security-admission/go.sum
|
|
+++ b/staging/src/k8s.io/pod-security-admission/go.sum
|
|
@@ -621,8 +621,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -647,8 +647,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -711,11 +711,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -724,8 +724,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/sample-apiserver/go.mod b/staging/src/k8s.io/sample-apiserver/go.mod
|
|
index 41b26ab049a..401308167af 100644
|
|
--- a/staging/src/k8s.io/sample-apiserver/go.mod
|
|
+++ b/staging/src/k8s.io/sample-apiserver/go.mod
|
|
@@ -14,6 +14,13 @@ require (
|
|
k8s.io/component-base v0.0.0
|
|
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42
|
|
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
|
|
+ golang.org/x/mod v0.8.0 // indirect
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sync v0.1.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
+ golang.org/x/tools v0.6.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/sample-apiserver/go.sum b/staging/src/k8s.io/sample-apiserver/go.sum
|
|
index 43e0f187db8..927b3883d28 100644
|
|
--- a/staging/src/k8s.io/sample-apiserver/go.sum
|
|
+++ b/staging/src/k8s.io/sample-apiserver/go.sum
|
|
@@ -574,8 +574,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -622,8 +622,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -648,8 +648,8 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
|
|
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -712,11 +712,11 @@ golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -725,8 +725,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
@@ -790,8 +790,8 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
|
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
|
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/staging/src/k8s.io/sample-cli-plugin/go.mod b/staging/src/k8s.io/sample-cli-plugin/go.mod
|
|
index f3f649a0e6c..093a94b532d 100644
|
|
--- a/staging/src/k8s.io/sample-cli-plugin/go.mod
|
|
+++ b/staging/src/k8s.io/sample-cli-plugin/go.mod
|
|
@@ -9,6 +9,10 @@ require (
|
|
github.com/spf13/pflag v1.0.5
|
|
k8s.io/cli-runtime v0.0.0
|
|
k8s.io/client-go v0.0.0
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/sample-cli-plugin/go.sum b/staging/src/k8s.io/sample-cli-plugin/go.sum
|
|
index 37a2fc0155d..bde77a867ca 100644
|
|
--- a/staging/src/k8s.io/sample-cli-plugin/go.sum
|
|
+++ b/staging/src/k8s.io/sample-cli-plugin/go.sum
|
|
@@ -439,8 +439,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -515,11 +515,11 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -528,8 +528,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
diff --git a/staging/src/k8s.io/sample-controller/go.mod b/staging/src/k8s.io/sample-controller/go.mod
|
|
index e5025eea8df..b428cbeeb6f 100644
|
|
--- a/staging/src/k8s.io/sample-controller/go.mod
|
|
+++ b/staging/src/k8s.io/sample-controller/go.mod
|
|
@@ -10,6 +10,12 @@ require (
|
|
k8s.io/client-go v0.0.0
|
|
k8s.io/code-generator v0.0.0
|
|
k8s.io/klog/v2 v2.60.1
|
|
+ golang.org/x/mod v0.8.0 // indirect
|
|
+ golang.org/x/net v0.8.0 // indirect
|
|
+ golang.org/x/sys v0.6.0 // indirect
|
|
+ golang.org/x/term v0.6.0 // indirect
|
|
+ golang.org/x/text v0.8.0 // indirect
|
|
+ golang.org/x/tools v0.6.0 // indirect
|
|
)
|
|
|
|
replace (
|
|
diff --git a/staging/src/k8s.io/sample-controller/go.sum b/staging/src/k8s.io/sample-controller/go.sum
|
|
index ca5e29310e9..5735504fe75 100644
|
|
--- a/staging/src/k8s.io/sample-controller/go.sum
|
|
+++ b/staging/src/k8s.io/sample-controller/go.sum
|
|
@@ -300,8 +300,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
|
|
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
|
+golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
|
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
@@ -341,8 +341,8 @@ golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLd
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
|
|
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
|
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
|
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
|
@@ -367,6 +367,7 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ
|
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
+golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
@@ -413,11 +414,11 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
|
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
|
|
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
|
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
|
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
|
+golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
|
+golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
@@ -426,8 +427,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
|
-golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
|
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
|
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
|
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
|
@@ -483,8 +484,8 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
|
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 h1:hI3jKY4Hpf63ns040onEbB3dAkR/H/P83hw1TG8dD3Y=
|
|
-golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
|
+golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
|
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/README.md b/vendor/github.com/opencontainers/runc/libcontainer/README.md
|
|
index 0d91fb71d54..211c8c91e05 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/README.md
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/README.md
|
|
@@ -96,22 +96,6 @@ config := &configs.Config{
|
|
"CAP_KILL",
|
|
"CAP_AUDIT_WRITE",
|
|
},
|
|
- Inheritable: []string{
|
|
- "CAP_CHOWN",
|
|
- "CAP_DAC_OVERRIDE",
|
|
- "CAP_FSETID",
|
|
- "CAP_FOWNER",
|
|
- "CAP_MKNOD",
|
|
- "CAP_NET_RAW",
|
|
- "CAP_SETGID",
|
|
- "CAP_SETUID",
|
|
- "CAP_SETFCAP",
|
|
- "CAP_SETPCAP",
|
|
- "CAP_NET_BIND_SERVICE",
|
|
- "CAP_SYS_CHROOT",
|
|
- "CAP_KILL",
|
|
- "CAP_AUDIT_WRITE",
|
|
- },
|
|
Permitted: []string{
|
|
"CAP_CHOWN",
|
|
"CAP_DAC_OVERRIDE",
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/ebpf/ebpf_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/ebpf/ebpf_linux.go
|
|
index 104c74a890f..35b00aaf055 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/ebpf/ebpf_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/ebpf/ebpf_linux.go
|
|
@@ -93,7 +93,7 @@ var (
|
|
)
|
|
|
|
// Loosely based on the BPF_F_REPLACE support check in
|
|
-// <https://github.com/cilium/ebpf/blob/v0.6.0/link/syscalls.go>.
|
|
+// https://github.com/cilium/ebpf/blob/v0.6.0/link/syscalls.go.
|
|
//
|
|
// TODO: move this logic to cilium/ebpf
|
|
func haveBpfProgReplace() bool {
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs.go
|
|
index fb4fcc7f75b..9e2f0ec04c8 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/fs.go
|
|
@@ -28,6 +28,7 @@ var subsystems = []subsystem{
|
|
&FreezerGroup{},
|
|
&RdmaGroup{},
|
|
&NameGroup{GroupName: "name=systemd", Join: true},
|
|
+ &NameGroup{GroupName: "misc", Join: true},
|
|
}
|
|
|
|
var errSubsystemDoesNotExist = errors.New("cgroup: subsystem does not exist")
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/common.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/common.go
|
|
index 98ccc51655c..50746ae0c56 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/common.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/common.go
|
|
@@ -288,6 +288,24 @@ func generateDeviceProperties(r *configs.Resources) ([]systemdDbus.Property, err
|
|
case devices.CharDevice:
|
|
entry.Path = fmt.Sprintf("/dev/char/%d:%d", rule.Major, rule.Minor)
|
|
}
|
|
+ // systemd will issue a warning if the path we give here doesn't exist.
|
|
+ // Since all of this logic is best-effort anyway (we manually set these
|
|
+ // rules separately to systemd) we can safely skip entries that don't
|
|
+ // have a corresponding path.
|
|
+ if _, err := os.Stat(entry.Path); err != nil {
|
|
+ // Also check /sys/dev so that we don't depend on /dev/{block,char}
|
|
+ // being populated. (/dev/{block,char} is populated by udev, which
|
|
+ // isn't strictly required for systemd). Ironically, this happens most
|
|
+ // easily when starting containerd within a runc created container
|
|
+ // itself.
|
|
+
|
|
+ // We don't bother with securejoin here because we create entry.Path
|
|
+ // right above here, so we know it's safe.
|
|
+ if _, err := os.Stat("/sys" + entry.Path); err != nil {
|
|
+ logrus.Warnf("skipping device %s for systemd: %s", entry.Path, err)
|
|
+ continue
|
|
+ }
|
|
+ }
|
|
}
|
|
deviceAllowList = append(deviceAllowList, entry)
|
|
}
|
|
@@ -335,32 +353,52 @@ func isUnitExists(err error) bool {
|
|
return isDbusError(err, "org.freedesktop.systemd1.UnitExists")
|
|
}
|
|
|
|
-func startUnit(cm *dbusConnManager, unitName string, properties []systemdDbus.Property) error {
|
|
+func startUnit(cm *dbusConnManager, unitName string, properties []systemdDbus.Property, ignoreExist bool) error {
|
|
statusChan := make(chan string, 1)
|
|
+ retry := true
|
|
+
|
|
+retry:
|
|
err := cm.retryOnDisconnect(func(c *systemdDbus.Conn) error {
|
|
_, err := c.StartTransientUnitContext(context.TODO(), unitName, "replace", properties, statusChan)
|
|
return err
|
|
})
|
|
- if err == nil {
|
|
- timeout := time.NewTimer(30 * time.Second)
|
|
- defer timeout.Stop()
|
|
-
|
|
- select {
|
|
- case s := <-statusChan:
|
|
- close(statusChan)
|
|
- // Please refer to https://pkg.go.dev/github.com/coreos/go-systemd/v22/dbus#Conn.StartUnit
|
|
- if s != "done" {
|
|
- resetFailedUnit(cm, unitName)
|
|
- return fmt.Errorf("error creating systemd unit `%s`: got `%s`", unitName, s)
|
|
- }
|
|
- case <-timeout.C:
|
|
+ if err != nil {
|
|
+ if !isUnitExists(err) {
|
|
+ return err
|
|
+ }
|
|
+ if ignoreExist {
|
|
+ // TODO: remove this hack.
|
|
+ // This is kubelet making sure a slice exists (see
|
|
+ // https://github.com/opencontainers/runc/pull/1124).
|
|
+ return nil
|
|
+ }
|
|
+ if retry {
|
|
+ // In case a unit with the same name exists, this may
|
|
+ // be a leftover failed unit. Reset it, so systemd can
|
|
+ // remove it, and retry once.
|
|
resetFailedUnit(cm, unitName)
|
|
- return errors.New("Timeout waiting for systemd to create " + unitName)
|
|
+ retry = false
|
|
+ goto retry
|
|
}
|
|
- } else if !isUnitExists(err) {
|
|
return err
|
|
}
|
|
|
|
+ timeout := time.NewTimer(30 * time.Second)
|
|
+ defer timeout.Stop()
|
|
+
|
|
+ select {
|
|
+ case s := <-statusChan:
|
|
+ close(statusChan)
|
|
+ // Please refer to https://pkg.go.dev/github.com/coreos/go-systemd/v22/dbus#Conn.StartUnit
|
|
+ if s != "done" {
|
|
+ resetFailedUnit(cm, unitName)
|
|
+ return fmt.Errorf("error creating systemd unit `%s`: got `%s`", unitName, s)
|
|
+ }
|
|
+ case <-timeout.C:
|
|
+ resetFailedUnit(cm, unitName)
|
|
+ return errors.New("Timeout waiting for systemd to create " + unitName)
|
|
+ }
|
|
+
|
|
return nil
|
|
}
|
|
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/cpuset.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/cpuset.go
|
|
index 83d10dd705f..dd474cf1b16 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/cpuset.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/cpuset.go
|
|
@@ -51,5 +51,10 @@ func RangeToBits(str string) ([]byte, error) {
|
|
// do not allow empty values
|
|
return nil, errors.New("empty value")
|
|
}
|
|
+
|
|
+ // fit cpuset parsing order in systemd
|
|
+ for l, r := 0, len(ret)-1; l < r; l, r = l+1, r-1 {
|
|
+ ret[l], ret[r] = ret[r], ret[l]
|
|
+ }
|
|
return ret, nil
|
|
}
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/dbus.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/dbus.go
|
|
index 3e547e282b5..bb87ae83aef 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/dbus.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/dbus.go
|
|
@@ -2,6 +2,7 @@ package systemd
|
|
|
|
import (
|
|
"context"
|
|
+ "errors"
|
|
"fmt"
|
|
"sync"
|
|
|
|
@@ -80,8 +81,6 @@ func (d *dbusConnManager) resetConnection(conn *systemdDbus.Conn) {
|
|
}
|
|
}
|
|
|
|
-var errDbusConnClosed = dbus.ErrClosed.Error()
|
|
-
|
|
// retryOnDisconnect calls op, and if the error it returns is about closed dbus
|
|
// connection, the connection is re-established and the op is retried. This helps
|
|
// with the situation when dbus is restarted and we have a stale connection.
|
|
@@ -92,7 +91,10 @@ func (d *dbusConnManager) retryOnDisconnect(op func(*systemdDbus.Conn) error) er
|
|
return err
|
|
}
|
|
err = op(conn)
|
|
- if !isDbusError(err, errDbusConnClosed) {
|
|
+ if err == nil {
|
|
+ return nil
|
|
+ }
|
|
+ if !errors.Is(err, dbus.ErrClosed) {
|
|
return err
|
|
}
|
|
d.resetConnection(conn)
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v1.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v1.go
|
|
index a74a05a5cd0..046c3056fba 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v1.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v1.go
|
|
@@ -71,6 +71,7 @@ var legacySubsystems = []subsystem{
|
|
&fs.NetClsGroup{},
|
|
&fs.NameGroup{GroupName: "name=systemd"},
|
|
&fs.RdmaGroup{},
|
|
+ &fs.NameGroup{GroupName: "misc"},
|
|
}
|
|
|
|
func genV1ResourcesProperties(r *configs.Resources, cm *dbusConnManager) ([]systemdDbus.Property, error) {
|
|
@@ -206,7 +207,7 @@ func (m *legacyManager) Apply(pid int) error {
|
|
|
|
properties = append(properties, c.SystemdProps...)
|
|
|
|
- if err := startUnit(m.dbus, unitName, properties); err != nil {
|
|
+ if err := startUnit(m.dbus, unitName, properties, pid == -1); err != nil {
|
|
return err
|
|
}
|
|
|
|
@@ -273,14 +274,7 @@ func getSubsystemPath(slice, unit, subsystem string) (string, error) {
|
|
return "", err
|
|
}
|
|
|
|
- initPath, err := cgroups.GetInitCgroup(subsystem)
|
|
- if err != nil {
|
|
- return "", err
|
|
- }
|
|
- // if pid 1 is systemd 226 or later, it will be in init.scope, not the root
|
|
- initPath = strings.TrimSuffix(filepath.Clean(initPath), "init.scope")
|
|
-
|
|
- return filepath.Join(mountpoint, initPath, slice, unit), nil
|
|
+ return filepath.Join(mountpoint, slice, unit), nil
|
|
}
|
|
|
|
func (m *legacyManager) Freeze(state configs.FreezerState) error {
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v2.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v2.go
|
|
index de0cb974d46..94d24ee4502 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v2.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v2.go
|
|
@@ -284,7 +284,7 @@ func (m *unifiedManager) Apply(pid int) error {
|
|
|
|
properties = append(properties, c.SystemdProps...)
|
|
|
|
- if err := startUnit(m.dbus, unitName, properties); err != nil {
|
|
+ if err := startUnit(m.dbus, unitName, properties, pid == -1); err != nil {
|
|
return fmt.Errorf("unable to start unit %q (properties %+v): %w", unitName, properties, err)
|
|
}
|
|
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
|
|
index b32af4ee530..fc4ae44a485 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
|
|
@@ -162,8 +162,10 @@ func readProcsFile(dir string) ([]int, error) {
|
|
|
|
// ParseCgroupFile parses the given cgroup file, typically /proc/self/cgroup
|
|
// or /proc/<pid>/cgroup, into a map of subsystems to cgroup paths, e.g.
|
|
-// "cpu": "/user.slice/user-1000.slice"
|
|
-// "pids": "/user.slice/user-1000.slice"
|
|
+//
|
|
+// "cpu": "/user.slice/user-1000.slice"
|
|
+// "pids": "/user.slice/user-1000.slice"
|
|
+//
|
|
// etc.
|
|
//
|
|
// Note that for cgroup v2 unified hierarchy, there are no per-controller
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/configs/validate/validator.go b/vendor/github.com/opencontainers/runc/libcontainer/configs/validate/validator.go
|
|
index 627621a58d8..4fbd308dadd 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/configs/validate/validator.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/configs/validate/validator.go
|
|
@@ -131,9 +131,8 @@ func (v *ConfigValidator) cgroupnamespace(config *configs.Config) error {
|
|
// convertSysctlVariableToDotsSeparator can return sysctl variables in dots separator format.
|
|
// The '/' separator is also accepted in place of a '.'.
|
|
// Convert the sysctl variables to dots separator format for validation.
|
|
-// More info:
|
|
-// https://man7.org/linux/man-pages/man8/sysctl.8.html
|
|
-// https://man7.org/linux/man-pages/man5/sysctl.d.5.html
|
|
+// More info: sysctl(8), sysctl.d(5).
|
|
+//
|
|
// For example:
|
|
// Input sysctl variable "net/ipv4/conf/eno2.100.rp_filter"
|
|
// will return the converted value "net.ipv4.conf.eno2/100.rp_filter"
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/container_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/container_linux.go
|
|
index 9df830d8cdb..dd61dfd3c90 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/container_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/container_linux.go
|
|
@@ -926,7 +926,7 @@ func (c *linuxContainer) criuSupportsExtNS(t configs.NamespaceType) bool {
|
|
}
|
|
|
|
func criuNsToKey(t configs.NamespaceType) string {
|
|
- return "extRoot" + strings.Title(configs.NsName(t)) + "NS"
|
|
+ return "extRoot" + strings.Title(configs.NsName(t)) + "NS" //nolint:staticcheck // SA1019: strings.Title is deprecated
|
|
}
|
|
|
|
func (c *linuxContainer) handleCheckpointingExternalNamespaces(rpcOpts *criurpc.CriuOpts, t configs.NamespaceType) error {
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/eaccess_go119.go b/vendor/github.com/opencontainers/runc/libcontainer/eaccess_go119.go
|
|
new file mode 100644
|
|
index 00000000000..cc1e2079a79
|
|
--- /dev/null
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/eaccess_go119.go
|
|
@@ -0,0 +1,17 @@
|
|
+//go:build !go1.20
|
|
+// +build !go1.20
|
|
+
|
|
+package libcontainer
|
|
+
|
|
+import "golang.org/x/sys/unix"
|
|
+
|
|
+func eaccess(path string) error {
|
|
+ // This check is similar to access(2) with X_OK except for
|
|
+ // setuid/setgid binaries where it checks against the effective
|
|
+ // (rather than real) uid and gid. It is not needed in go 1.20
|
|
+ // and beyond and will be removed later.
|
|
+
|
|
+ // Relies on code added in https://go-review.googlesource.com/c/sys/+/468877
|
|
+ // and older CLs linked from there.
|
|
+ return unix.Faccessat(unix.AT_FDCWD, path, unix.X_OK, unix.AT_EACCESS)
|
|
+}
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go b/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go
|
|
new file mode 100644
|
|
index 00000000000..7c049fd7aa0
|
|
--- /dev/null
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go
|
|
@@ -0,0 +1,10 @@
|
|
+//go:build go1.20
|
|
+
|
|
+package libcontainer
|
|
+
|
|
+func eaccess(path string) error {
|
|
+ // Not needed in Go 1.20+ as the functionality is already in there
|
|
+ // (added by https://go.dev/cl/416115, https://go.dev/cl/414824,
|
|
+ // and fixed in Go 1.20.2 by https://go.dev/cl/469956).
|
|
+ return nil
|
|
+}
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/factory_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/factory_linux.go
|
|
index 023d623f370..a1fa7de2d24 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/factory_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/factory_linux.go
|
|
@@ -179,6 +179,12 @@ func (l *LinuxFactory) Create(id string, config *configs.Config) (Container, err
|
|
return nil, fmt.Errorf("unable to get cgroup PIDs: %w", err)
|
|
}
|
|
if len(pids) != 0 {
|
|
+ if config.Cgroups.Systemd {
|
|
+ // systemd cgroup driver can't add a pid to an
|
|
+ // existing systemd unit and will return an
|
|
+ // error anyway, so let's error out early.
|
|
+ return nil, fmt.Errorf("container's cgroup is not empty: %d process(es) found", len(pids))
|
|
+ }
|
|
// TODO: return an error.
|
|
logrus.Warnf("container's cgroup is not empty: %d process(es) found", len(pids))
|
|
logrus.Warn("DEPRECATED: running container in a non-empty cgroup won't be supported in runc 1.2; https://github.com/opencontainers/runc/issues/3132")
|
|
@@ -338,7 +344,11 @@ func (l *LinuxFactory) StartInitialization() (err error) {
|
|
|
|
defer func() {
|
|
if e := recover(); e != nil {
|
|
- err = fmt.Errorf("panic from initialization: %w, %v", e, string(debug.Stack()))
|
|
+ if ee, ok := e.(error); ok {
|
|
+ err = fmt.Errorf("panic from initialization: %w, %s", ee, debug.Stack())
|
|
+ } else {
|
|
+ err = fmt.Errorf("panic from initialization: %v, %s", e, debug.Stack())
|
|
+ }
|
|
}
|
|
}()
|
|
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/init_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/init_linux.go
|
|
index 1e5c394c3e0..2e4c59353c8 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/init_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/init_linux.go
|
|
@@ -411,8 +411,9 @@ func fixStdioPermissions(u *user.ExecUser) error {
|
|
return &os.PathError{Op: "fstat", Path: file.Name(), Err: err}
|
|
}
|
|
|
|
- // Skip chown if uid is already the one we want.
|
|
- if int(s.Uid) == u.Uid {
|
|
+ // Skip chown if uid is already the one we want or any of the STDIO descriptors
|
|
+ // were redirected to /dev/null.
|
|
+ if int(s.Uid) == u.Uid || s.Rdev == null.Rdev {
|
|
continue
|
|
}
|
|
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/process_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/process_linux.go
|
|
index e025445d330..446649af843 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/process_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/process_linux.go
|
|
@@ -39,13 +39,9 @@ type parentProcess interface {
|
|
|
|
// startTime returns the process start time.
|
|
startTime() (uint64, error)
|
|
-
|
|
signal(os.Signal) error
|
|
-
|
|
externalDescriptors() []string
|
|
-
|
|
setExternalDescriptors(fds []string)
|
|
-
|
|
forwardChildLogs() chan error
|
|
}
|
|
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/rootfs_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/rootfs_linux.go
|
|
index 51660f5efb9..c3f88fc7038 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/rootfs_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/rootfs_linux.go
|
|
@@ -80,6 +80,8 @@ func prepareRootfs(pipe io.ReadWriter, iConfig *initConfig, mountFds []int) (err
|
|
// Therefore, we can access mountFds[i] without any concerns.
|
|
if mountFds != nil && mountFds[i] != -1 {
|
|
mountConfig.fd = &mountFds[i]
|
|
+ } else {
|
|
+ mountConfig.fd = nil
|
|
}
|
|
|
|
if err := mountToRootfs(m, mountConfig); err != nil {
|
|
@@ -327,26 +329,41 @@ func mountCgroupV2(m *configs.Mount, c *mountConfig) error {
|
|
if err := os.MkdirAll(dest, 0o755); err != nil {
|
|
return err
|
|
}
|
|
- return utils.WithProcfd(c.root, m.Destination, func(procfd string) error {
|
|
- if err := mount(m.Source, m.Destination, procfd, "cgroup2", uintptr(m.Flags), m.Data); err != nil {
|
|
- // when we are in UserNS but CgroupNS is not unshared, we cannot mount cgroup2 (#2158)
|
|
- if errors.Is(err, unix.EPERM) || errors.Is(err, unix.EBUSY) {
|
|
- src := fs2.UnifiedMountpoint
|
|
- if c.cgroupns && c.cgroup2Path != "" {
|
|
- // Emulate cgroupns by bind-mounting
|
|
- // the container cgroup path rather than
|
|
- // the whole /sys/fs/cgroup.
|
|
- src = c.cgroup2Path
|
|
- }
|
|
- err = mount(src, m.Destination, procfd, "", uintptr(m.Flags)|unix.MS_BIND, "")
|
|
- if c.rootlessCgroups && errors.Is(err, unix.ENOENT) {
|
|
- err = nil
|
|
- }
|
|
- }
|
|
- return err
|
|
- }
|
|
- return nil
|
|
+ err = utils.WithProcfd(c.root, m.Destination, func(procfd string) error {
|
|
+ return mount(m.Source, m.Destination, procfd, "cgroup2", uintptr(m.Flags), m.Data)
|
|
})
|
|
+ if err == nil || !(errors.Is(err, unix.EPERM) || errors.Is(err, unix.EBUSY)) {
|
|
+ return err
|
|
+ }
|
|
+
|
|
+ // When we are in UserNS but CgroupNS is not unshared, we cannot mount
|
|
+ // cgroup2 (#2158), so fall back to bind mount.
|
|
+ bindM := &configs.Mount{
|
|
+ Device: "bind",
|
|
+ Source: fs2.UnifiedMountpoint,
|
|
+ Destination: m.Destination,
|
|
+ Flags: unix.MS_BIND | m.Flags,
|
|
+ PropagationFlags: m.PropagationFlags,
|
|
+ }
|
|
+ if c.cgroupns && c.cgroup2Path != "" {
|
|
+ // Emulate cgroupns by bind-mounting the container cgroup path
|
|
+ // rather than the whole /sys/fs/cgroup.
|
|
+ bindM.Source = c.cgroup2Path
|
|
+ }
|
|
+ // mountToRootfs() handles remounting for MS_RDONLY.
|
|
+ // No need to set c.fd here, because mountToRootfs() calls utils.WithProcfd() by itself in mountPropagate().
|
|
+ err = mountToRootfs(bindM, c)
|
|
+ if c.rootlessCgroups && errors.Is(err, unix.ENOENT) {
|
|
+ // ENOENT (for `src = c.cgroup2Path`) happens when rootless runc is being executed
|
|
+ // outside the userns+mountns.
|
|
+ //
|
|
+ // Mask `/sys/fs/cgroup` to ensure it is read-only, even when `/sys` is mounted
|
|
+ // with `rbind,ro` (`runc spec --rootless` produces `rbind,ro` for `/sys`).
|
|
+ err = utils.WithProcfd(c.root, m.Destination, func(procfd string) error {
|
|
+ return maskPath(procfd, c.label)
|
|
+ })
|
|
+ }
|
|
+ return err
|
|
}
|
|
|
|
func doTmpfsCopyUp(m *configs.Mount, rootfs, mountLabel string) (Err error) {
|
|
@@ -396,32 +413,43 @@ func doTmpfsCopyUp(m *configs.Mount, rootfs, mountLabel string) (Err error) {
|
|
|
|
func mountToRootfs(m *configs.Mount, c *mountConfig) error {
|
|
rootfs := c.root
|
|
- mountLabel := c.label
|
|
- mountFd := c.fd
|
|
- dest, err := securejoin.SecureJoin(rootfs, m.Destination)
|
|
- if err != nil {
|
|
- return err
|
|
- }
|
|
|
|
+ // procfs and sysfs are special because we need to ensure they are actually
|
|
+ // mounted on a specific path in a container without any funny business.
|
|
switch m.Device {
|
|
case "proc", "sysfs":
|
|
// If the destination already exists and is not a directory, we bail
|
|
- // out This is to avoid mounting through a symlink or similar -- which
|
|
+ // out. This is to avoid mounting through a symlink or similar -- which
|
|
// has been a "fun" attack scenario in the past.
|
|
// TODO: This won't be necessary once we switch to libpathrs and we can
|
|
// stop all of these symlink-exchange attacks.
|
|
+ dest := filepath.Clean(m.Destination)
|
|
+ if !strings.HasPrefix(dest, rootfs) {
|
|
+ // Do not use securejoin as it resolves symlinks.
|
|
+ dest = filepath.Join(rootfs, dest)
|
|
+ }
|
|
if fi, err := os.Lstat(dest); err != nil {
|
|
if !os.IsNotExist(err) {
|
|
return err
|
|
}
|
|
- } else if fi.Mode()&os.ModeDir == 0 {
|
|
+ } else if !fi.IsDir() {
|
|
return fmt.Errorf("filesystem %q must be mounted on ordinary directory", m.Device)
|
|
}
|
|
if err := os.MkdirAll(dest, 0o755); err != nil {
|
|
return err
|
|
}
|
|
- // Selinux kernels do not support labeling of /proc or /sys
|
|
+ // Selinux kernels do not support labeling of /proc or /sys.
|
|
return mountPropagate(m, rootfs, "", nil)
|
|
+ }
|
|
+
|
|
+ mountLabel := c.label
|
|
+ mountFd := c.fd
|
|
+ dest, err := securejoin.SecureJoin(rootfs, m.Destination)
|
|
+ if err != nil {
|
|
+ return err
|
|
+ }
|
|
+
|
|
+ switch m.Device {
|
|
case "mqueue":
|
|
if err := os.MkdirAll(dest, 0o755); err != nil {
|
|
return err
|
|
@@ -577,6 +605,7 @@ func checkProcMount(rootfs, dest, source string) error {
|
|
"/proc/loadavg",
|
|
"/proc/slabinfo",
|
|
"/proc/net/dev",
|
|
+ "/proc/sys/kernel/ns_last_pid",
|
|
}
|
|
for _, valid := range validProcMounts {
|
|
path, err := filepath.Rel(filepath.Join(rootfs, valid), dest)
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/seccomp/config.go b/vendor/github.com/opencontainers/runc/libcontainer/seccomp/config.go
|
|
index d0c9bb71fb0..98e08e8f0b6 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/seccomp/config.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/seccomp/config.go
|
|
@@ -29,13 +29,15 @@ func KnownOperators() []string {
|
|
}
|
|
|
|
var actions = map[string]configs.Action{
|
|
- "SCMP_ACT_KILL": configs.Kill,
|
|
- "SCMP_ACT_ERRNO": configs.Errno,
|
|
- "SCMP_ACT_TRAP": configs.Trap,
|
|
- "SCMP_ACT_ALLOW": configs.Allow,
|
|
- "SCMP_ACT_TRACE": configs.Trace,
|
|
- "SCMP_ACT_LOG": configs.Log,
|
|
- "SCMP_ACT_NOTIFY": configs.Notify,
|
|
+ "SCMP_ACT_KILL": configs.Kill,
|
|
+ "SCMP_ACT_ERRNO": configs.Errno,
|
|
+ "SCMP_ACT_TRAP": configs.Trap,
|
|
+ "SCMP_ACT_ALLOW": configs.Allow,
|
|
+ "SCMP_ACT_TRACE": configs.Trace,
|
|
+ "SCMP_ACT_LOG": configs.Log,
|
|
+ "SCMP_ACT_NOTIFY": configs.Notify,
|
|
+ "SCMP_ACT_KILL_THREAD": configs.KillThread,
|
|
+ "SCMP_ACT_KILL_PROCESS": configs.KillProcess,
|
|
}
|
|
|
|
// KnownActions returns the list of the known actions.
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/seccomp/patchbpf/enosys_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/seccomp/patchbpf/enosys_linux.go
|
|
index dfb8a0a8e59..7d4ec6a42e5 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/seccomp/patchbpf/enosys_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/seccomp/patchbpf/enosys_linux.go
|
|
@@ -72,6 +72,11 @@ import "C"
|
|
|
|
var retErrnoEnosys = uint32(C.C_ACT_ERRNO_ENOSYS)
|
|
|
|
+// This syscall is used for multiplexing "large" syscalls on s390(x). Unknown
|
|
+// syscalls will end up with this syscall number, so we need to explcitly
|
|
+// return -ENOSYS for this syscall on those architectures.
|
|
+const s390xMultiplexSyscall libseccomp.ScmpSyscall = 0
|
|
+
|
|
func isAllowAction(action configs.Action) bool {
|
|
switch action {
|
|
// Trace is considered an "allow" action because a good tracer should
|
|
@@ -305,7 +310,7 @@ func generateEnosysStub(lastSyscalls lastSyscallMap) ([]bpf.Instruction, error)
|
|
// directly from the arch code so we need to do it here. Sadly we can't
|
|
// share this code between architecture branches.
|
|
section := []bpf.Instruction{
|
|
- // load [0]
|
|
+ // load [0] (syscall number)
|
|
bpf.LoadAbsolute{Off: 0, Size: 4}, // NOTE: We assume sizeof(int) == 4.
|
|
}
|
|
|
|
@@ -314,10 +319,37 @@ func generateEnosysStub(lastSyscalls lastSyscallMap) ([]bpf.Instruction, error)
|
|
// No syscalls found for this arch -- skip it and move on.
|
|
continue
|
|
case 1:
|
|
- // Get the only syscall in the map.
|
|
- var sysno libseccomp.ScmpSyscall
|
|
- for _, no := range maxSyscalls {
|
|
+ // Get the only syscall and scmpArch in the map.
|
|
+ var (
|
|
+ scmpArch libseccomp.ScmpArch
|
|
+ sysno libseccomp.ScmpSyscall
|
|
+ )
|
|
+ for arch, no := range maxSyscalls {
|
|
sysno = no
|
|
+ scmpArch = arch
|
|
+ }
|
|
+
|
|
+ switch scmpArch {
|
|
+ // Return -ENOSYS for setup(2) on s390(x). This syscall is used for
|
|
+ // multiplexing "large syscall number" syscalls, but if the syscall
|
|
+ // number is not known to the kernel then the syscall number is
|
|
+ // left unchanged (and because it is sysno=0, you'll end up with
|
|
+ // EPERM for syscalls the kernel doesn't know about).
|
|
+ //
|
|
+ // The actual setup(2) syscall is never used by userspace anymore
|
|
+ // (and hasn't existed for decades) outside of this multiplexing
|
|
+ // scheme so returning -ENOSYS is fine.
|
|
+ case libseccomp.ArchS390, libseccomp.ArchS390X:
|
|
+ section = append(section, []bpf.Instruction{
|
|
+ // jne [setup=0],1
|
|
+ bpf.JumpIf{
|
|
+ Cond: bpf.JumpNotEqual,
|
|
+ Val: uint32(s390xMultiplexSyscall),
|
|
+ SkipTrue: 1,
|
|
+ },
|
|
+ // ret [ENOSYS]
|
|
+ bpf.RetConstant{Val: retErrnoEnosys},
|
|
+ }...)
|
|
}
|
|
|
|
// The simplest case just boils down to a single jgt instruction,
|
|
@@ -349,12 +381,6 @@ func generateEnosysStub(lastSyscalls lastSyscallMap) ([]bpf.Instruction, error)
|
|
// If we're on x86 we need to add a check for x32 and if we're in
|
|
// the wrong mode we jump over the section.
|
|
if uint32(nativeArch) == uint32(C.C_AUDIT_ARCH_X86_64) {
|
|
- // Grab the only architecture in the map.
|
|
- var scmpArch libseccomp.ScmpArch
|
|
- for arch := range maxSyscalls {
|
|
- scmpArch = arch
|
|
- }
|
|
-
|
|
// Generate a prefix to check the mode.
|
|
switch scmpArch {
|
|
case libseccomp.ArchAMD64:
|
|
@@ -512,7 +538,7 @@ func generateEnosysStub(lastSyscalls lastSyscallMap) ([]bpf.Instruction, error)
|
|
|
|
// Prepend the load instruction for the architecture.
|
|
programTail = append([]bpf.Instruction{
|
|
- // load [4]
|
|
+ // load [4] (architecture)
|
|
bpf.LoadAbsolute{Off: 4, Size: 4}, // NOTE: We assume sizeof(int) == 4.
|
|
}, programTail...)
|
|
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/seccomp/seccomp_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/seccomp/seccomp_linux.go
|
|
index f177b7f05f2..8c12af72be9 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/seccomp/seccomp_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/seccomp/seccomp_linux.go
|
|
@@ -113,8 +113,8 @@ func InitSeccomp(config *configs.Seccomp) (int, error) {
|
|
// Convert Libcontainer Action to Libseccomp ScmpAction
|
|
func getAction(act configs.Action, errnoRet *uint) (libseccomp.ScmpAction, error) {
|
|
switch act {
|
|
- case configs.Kill:
|
|
- return libseccomp.ActKill, nil
|
|
+ case configs.Kill, configs.KillThread:
|
|
+ return libseccomp.ActKillThread, nil
|
|
case configs.Errno:
|
|
if errnoRet != nil {
|
|
return libseccomp.ActErrno.SetReturnCode(int16(*errnoRet)), nil
|
|
@@ -133,8 +133,6 @@ func getAction(act configs.Action, errnoRet *uint) (libseccomp.ScmpAction, error
|
|
return libseccomp.ActLog, nil
|
|
case configs.Notify:
|
|
return libseccomp.ActNotify, nil
|
|
- case configs.KillThread:
|
|
- return libseccomp.ActKillThread, nil
|
|
case configs.KillProcess:
|
|
return libseccomp.ActKillProcess, nil
|
|
default:
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/standard_init_linux.go b/vendor/github.com/opencontainers/runc/libcontainer/standard_init_linux.go
|
|
index 585a04fa080..c09a7bed30e 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/standard_init_linux.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/standard_init_linux.go
|
|
@@ -198,6 +198,14 @@ func (l *linuxStandardInit) Init() error {
|
|
if err != nil {
|
|
return err
|
|
}
|
|
+ // exec.LookPath in Go < 1.20 might return no error for an executable
|
|
+ // residing on a file system mounted with noexec flag, so perform this
|
|
+ // extra check now while we can still return a proper error.
|
|
+ // TODO: remove this once go < 1.20 is not supported.
|
|
+ if err := eaccess(name); err != nil {
|
|
+ return &os.PathError{Op: "eaccess", Path: name, Err: err}
|
|
+ }
|
|
+
|
|
// Set seccomp as close to execve as possible, so as few syscalls take
|
|
// place afterward (reducing the amount of syscalls that users need to
|
|
// enable in their seccomp profiles). However, this needs to be done
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/sync.go b/vendor/github.com/opencontainers/runc/libcontainer/sync.go
|
|
index c9a23ef3a76..25dc2863071 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/sync.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/sync.go
|
|
@@ -15,16 +15,16 @@ type syncType string
|
|
// during container setup. They come in pairs (with procError being a generic
|
|
// response which is followed by an &initError).
|
|
//
|
|
-// [ child ] <-> [ parent ]
|
|
+// [ child ] <-> [ parent ]
|
|
//
|
|
-// procHooks --> [run hooks]
|
|
-// <-- procResume
|
|
+// procHooks --> [run hooks]
|
|
+// <-- procResume
|
|
//
|
|
-// procReady --> [final setup]
|
|
-// <-- procRun
|
|
+// procReady --> [final setup]
|
|
+// <-- procRun
|
|
//
|
|
-// procSeccomp --> [pick up seccomp fd with pidfd_getfd()]
|
|
-// <-- procSeccompDone
|
|
+// procSeccomp --> [pick up seccomp fd with pidfd_getfd()]
|
|
+// <-- procSeccompDone
|
|
const (
|
|
procError syncType = "procError"
|
|
procReady syncType = "procReady"
|
|
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/user/user.go b/vendor/github.com/opencontainers/runc/libcontainer/user/user.go
|
|
index 2473c5eaddc..a1e216683d9 100644
|
|
--- a/vendor/github.com/opencontainers/runc/libcontainer/user/user.go
|
|
+++ b/vendor/github.com/opencontainers/runc/libcontainer/user/user.go
|
|
@@ -280,13 +280,13 @@ func GetExecUserPath(userSpec string, defaults *ExecUser, passwdPath, groupPath
|
|
// found in any entry in passwd and group respectively.
|
|
//
|
|
// Examples of valid user specifications are:
|
|
-// * ""
|
|
-// * "user"
|
|
-// * "uid"
|
|
-// * "user:group"
|
|
-// * "uid:gid
|
|
-// * "user:gid"
|
|
-// * "uid:group"
|
|
+// - ""
|
|
+// - "user"
|
|
+// - "uid"
|
|
+// - "user:group"
|
|
+// - "uid:gid
|
|
+// - "user:gid"
|
|
+// - "uid:group"
|
|
//
|
|
// It should be noted that if you specify a numeric user or group id, they will
|
|
// not be evaluated as usernames (only the metadata will be filled). So attempting
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/.golangci.yml b/vendor/github.com/seccomp/libseccomp-golang/.golangci.yml
|
|
new file mode 100644
|
|
index 00000000000..7df8aa19838
|
|
--- /dev/null
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/.golangci.yml
|
|
@@ -0,0 +1,4 @@
|
|
+# For documentation, see https://golangci-lint.run/usage/configuration/
|
|
+linters:
|
|
+ enable:
|
|
+ - gofumpt
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/.travis.yml b/vendor/github.com/seccomp/libseccomp-golang/.travis.yml
|
|
deleted file mode 100644
|
|
index 5240d462280..00000000000
|
|
--- a/vendor/github.com/seccomp/libseccomp-golang/.travis.yml
|
|
+++ /dev/null
|
|
@@ -1,57 +0,0 @@
|
|
-# Travis CI configuration for libseccomp-golang
|
|
-
|
|
-# https://docs.travis-ci.com/user/reference/bionic
|
|
-# https://wiki.ubuntu.com/Releases
|
|
-
|
|
-dist: bionic
|
|
-sudo: false
|
|
-
|
|
-notifications:
|
|
- email:
|
|
- on_success: always
|
|
- on_failure: always
|
|
-
|
|
-arch:
|
|
- - amd64
|
|
-
|
|
-os:
|
|
- - linux
|
|
-
|
|
-language: go
|
|
-
|
|
-jobs:
|
|
- include:
|
|
- - name: "last libseccomp 2.5.0"
|
|
- env:
|
|
- - SECCOMP_VER=2.5.0
|
|
- - SECCOMP_SHA256SUM=1ffa7038d2720ad191919816db3479295a4bcca1ec14e02f672539f4983014f3
|
|
- - name: "compat libseccomp 2.4.4"
|
|
- env:
|
|
- - SECCOMP_VER=2.4.4
|
|
- - SECCOMP_SHA256SUM=4e79738d1ef3c9b7ca9769f1f8b8d84fc17143c2c1c432e53b9c64787e0ff3eb
|
|
- - name: "compat libseccomp 2.2.1"
|
|
- env:
|
|
- - SECCOMP_VER=2.2.1
|
|
- - SECCOMP_SHA256SUM=0ba1789f54786c644af54cdffc9fd0dd0a8bb2b2ee153933f658855d2851a740
|
|
-
|
|
-addons:
|
|
- apt:
|
|
- packages:
|
|
- - build-essential
|
|
- - astyle
|
|
- - golint
|
|
- - gperf
|
|
-
|
|
-install:
|
|
- - go get -u golang.org/x/lint/golint
|
|
-
|
|
-# run all of the tests independently, fail if any of the tests error
|
|
-script:
|
|
- - wget https://github.com/seccomp/libseccomp/releases/download/v$SECCOMP_VER/libseccomp-$SECCOMP_VER.tar.gz
|
|
- - echo $SECCOMP_SHA256SUM libseccomp-$SECCOMP_VER.tar.gz | sha256sum -c
|
|
- - tar xf libseccomp-$SECCOMP_VER.tar.gz
|
|
- - pushd libseccomp-$SECCOMP_VER && ./configure --prefix=/opt/libseccomp-$SECCOMP_VER && make && sudo make install && popd
|
|
- - make check-syntax
|
|
- - make lint
|
|
- - PKG_CONFIG_PATH=/opt/libseccomp-$SECCOMP_VER/lib/pkgconfig LD_LIBRARY_PATH=/opt/libseccomp-$SECCOMP_VER/lib make vet
|
|
- - PKG_CONFIG_PATH=/opt/libseccomp-$SECCOMP_VER/lib/pkgconfig LD_LIBRARY_PATH=/opt/libseccomp-$SECCOMP_VER/lib make test
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/CONTRIBUTING.md b/vendor/github.com/seccomp/libseccomp-golang/CONTRIBUTING.md
|
|
index d6862cbd5f9..c2fc80d5af6 100644
|
|
--- a/vendor/github.com/seccomp/libseccomp-golang/CONTRIBUTING.md
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/CONTRIBUTING.md
|
|
@@ -1,31 +1,23 @@
|
|
-How to Submit Patches to the libseccomp Project
|
|
+How to Submit Patches to the libseccomp-golang Project
|
|
===============================================================================
|
|
https://github.com/seccomp/libseccomp-golang
|
|
|
|
This document is intended to act as a guide to help you contribute to the
|
|
-libseccomp project. It is not perfect, and there will always be exceptions
|
|
-to the rules described here, but by following the instructions below you
|
|
-should have a much easier time getting your work merged with the upstream
|
|
+libseccomp-golang project. It is not perfect, and there will always be
|
|
+exceptions to the rules described here, but by following the instructions below
|
|
+you should have a much easier time getting your work merged with the upstream
|
|
project.
|
|
|
|
## Test Your Code Using Existing Tests
|
|
|
|
-There are two possible tests you can run to verify your code. The first
|
|
-test is used to check the formatting and coding style of your changes, you
|
|
-can run the test with the following command:
|
|
-
|
|
- # make check-syntax
|
|
-
|
|
-... if there are any problems with your changes a diff/patch will be shown
|
|
-which indicates the problems and how to fix them.
|
|
-
|
|
-The second possible test is used to ensure the sanity of your code changes
|
|
-and to test these changes against the included tests. You can run the test
|
|
-with the following command:
|
|
+A number of tests and lint related recipes are provided in the Makefile, if
|
|
+you want to run the standard regression tests, you can execute the following:
|
|
|
|
# make check
|
|
|
|
-... if there are any faults or errors they will be displayed.
|
|
+In order to use it, the 'golangci-lint' tool is needed, which can be found at:
|
|
+
|
|
+* https://github.com/golangci/golangci-lint
|
|
|
|
## Add New Tests for New Functionality
|
|
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/Makefile b/vendor/github.com/seccomp/libseccomp-golang/Makefile
|
|
index 38cfa852cd6..530f5b4adbc 100644
|
|
--- a/vendor/github.com/seccomp/libseccomp-golang/Makefile
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/Makefile
|
|
@@ -4,7 +4,7 @@
|
|
|
|
all: check-build
|
|
|
|
-check: vet test
|
|
+check: lint test
|
|
|
|
check-build:
|
|
go build
|
|
@@ -16,7 +16,7 @@ fix-syntax:
|
|
gofmt -w .
|
|
|
|
vet:
|
|
- go vet -v
|
|
+ go vet -v ./...
|
|
|
|
# Previous bugs have made the tests freeze until the timeout. Golang default
|
|
# timeout for tests is 10 minutes, which is too long, considering current tests
|
|
@@ -28,5 +28,4 @@ test:
|
|
go test -v -timeout $(TEST_TIMEOUT)
|
|
|
|
lint:
|
|
- @$(if $(shell which golint),true,$(error "install golint and include it in your PATH"))
|
|
- golint -set_exit_status
|
|
+ golangci-lint run .
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/README.md b/vendor/github.com/seccomp/libseccomp-golang/README.md
|
|
index 806a5ddf29b..6430f1c9e25 100644
|
|
--- a/vendor/github.com/seccomp/libseccomp-golang/README.md
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/README.md
|
|
@@ -2,7 +2,9 @@
|
|
===============================================================================
|
|
https://github.com/seccomp/libseccomp-golang
|
|
|
|
-[](https://travis-ci.org/seccomp/libseccomp-golang)
|
|
+[](https://pkg.go.dev/github.com/seccomp/libseccomp-golang)
|
|
+[](https://github.com/seccomp/libseccomp-golang/actions/workflows/validate.yml)
|
|
+[](https://github.com/seccomp/libseccomp-golang/actions/workflows/test.yml)
|
|
|
|
The libseccomp library provides an easy to use, platform independent, interface
|
|
to the Linux Kernel's syscall filtering mechanism. The libseccomp API is
|
|
@@ -26,26 +28,14 @@ list.
|
|
|
|
* https://groups.google.com/d/forum/libseccomp
|
|
|
|
-Documentation is also available at:
|
|
+Documentation for this package is also available at:
|
|
|
|
-* https://godoc.org/github.com/seccomp/libseccomp-golang
|
|
+* https://pkg.go.dev/github.com/seccomp/libseccomp-golang
|
|
|
|
## Installing the package
|
|
|
|
-The libseccomp-golang bindings require at least Go v1.2.1 and GCC v4.8.4;
|
|
-earlier versions may yield unpredictable results. If you meet these
|
|
-requirements you can install this package using the command below:
|
|
-
|
|
# go get github.com/seccomp/libseccomp-golang
|
|
|
|
-## Testing the Library
|
|
-
|
|
-A number of tests and lint related recipes are provided in the Makefile, if
|
|
-you want to run the standard regression tests, you can excute the following:
|
|
-
|
|
- # make check
|
|
-
|
|
-In order to execute the 'make lint' recipe the 'golint' tool is needed, it
|
|
-can be found at:
|
|
+## Contributing
|
|
|
|
-* https://github.com/golang/lint
|
|
+See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/SECURITY.md b/vendor/github.com/seccomp/libseccomp-golang/SECURITY.md
|
|
new file mode 100644
|
|
index 00000000000..c448faa8e80
|
|
--- /dev/null
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/SECURITY.md
|
|
@@ -0,0 +1,47 @@
|
|
+The libseccomp-golang Security Vulnerability Handling Process
|
|
+===============================================================================
|
|
+https://github.com/seccomp/libseccomp-golang
|
|
+
|
|
+This document document attempts to describe the processes through which
|
|
+sensitive security relevant bugs can be responsibly disclosed to the
|
|
+libseccomp-golang project and how the project maintainers should handle these
|
|
+reports. Just like the other libseccomp-golang process documents, this
|
|
+document should be treated as a guiding document and not a hard, unyielding set
|
|
+of regulations; the bug reporters and project maintainers are encouraged to
|
|
+work together to address the issues as best they can, in a manner which works
|
|
+best for all parties involved.
|
|
+
|
|
+### Reporting Problems
|
|
+
|
|
+Problems with the libseccomp-golang library that are not suitable for immediate
|
|
+public disclosure should be emailed to the current libseccomp-golang
|
|
+maintainers, the list is below. We typically request at most a 90 day time
|
|
+period to address the issue before it is made public, but we will make every
|
|
+effort to address the issue as quickly as possible and shorten the disclosure
|
|
+window.
|
|
+
|
|
+* Paul Moore, paul@paul-moore.com
|
|
+* Tom Hromatka, tom.hromatka@oracle.com
|
|
+
|
|
+### Resolving Sensitive Security Issues
|
|
+
|
|
+Upon disclosure of a bug, the maintainers should work together to investigate
|
|
+the problem and decide on a solution. In order to prevent an early disclosure
|
|
+of the problem, those working on the solution should do so privately and
|
|
+outside of the traditional libseccomp-golang development practices. One
|
|
+possible solution to this is to leverage the GitHub "Security" functionality to
|
|
+create a private development fork that can be shared among the maintainers, and
|
|
+optionally the reporter. A placeholder GitHub issue may be created, but
|
|
+details should remain extremely limited until such time as the problem has been
|
|
+fixed and responsibly disclosed. If a CVE, or other tag, has been assigned to
|
|
+the problem, the GitHub issue title should include the vulnerability tag once
|
|
+the problem has been disclosed.
|
|
+
|
|
+### Public Disclosure
|
|
+
|
|
+Whenever possible, responsible reporting and patching practices should be
|
|
+followed, including notification to the linux-distros and oss-security mailing
|
|
+lists.
|
|
+
|
|
+* https://oss-security.openwall.org/wiki/mailing-lists/distros
|
|
+* https://oss-security.openwall.org/wiki/mailing-lists/oss-security
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/seccomp.go b/vendor/github.com/seccomp/libseccomp-golang/seccomp.go
|
|
index e9b92e2219a..8dad12fdbb9 100644
|
|
--- a/vendor/github.com/seccomp/libseccomp-golang/seccomp.go
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/seccomp.go
|
|
@@ -1,5 +1,3 @@
|
|
-// +build linux
|
|
-
|
|
// Public API specification for libseccomp Go bindings
|
|
// Contains public API for the bindings
|
|
|
|
@@ -18,48 +16,36 @@ import (
|
|
"unsafe"
|
|
)
|
|
|
|
-// C wrapping code
|
|
-
|
|
-// To compile libseccomp-golang against a specific version of libseccomp:
|
|
-// cd ../libseccomp && mkdir -p prefix
|
|
-// ./configure --prefix=$PWD/prefix && make && make install
|
|
-// cd ../libseccomp-golang
|
|
-// PKG_CONFIG_PATH=$PWD/../libseccomp/prefix/lib/pkgconfig/ make
|
|
-// LD_PRELOAD=$PWD/../libseccomp/prefix/lib/libseccomp.so.2.5.0 PKG_CONFIG_PATH=$PWD/../libseccomp/prefix/lib/pkgconfig/ make test
|
|
-
|
|
-// #cgo pkg-config: libseccomp
|
|
// #include <stdlib.h>
|
|
// #include <seccomp.h>
|
|
import "C"
|
|
|
|
// Exported types
|
|
|
|
-// VersionError denotes that the system libseccomp version is incompatible
|
|
-// with this package.
|
|
+// VersionError represents an error when either the system libseccomp version
|
|
+// or the kernel version is too old to perform the operation requested.
|
|
type VersionError struct {
|
|
- message string
|
|
- minimum string
|
|
+ op string // operation that failed or would fail
|
|
+ major, minor, micro uint // minimally required libseccomp version
|
|
+ curAPI, minAPI uint // current and minimally required API versions
|
|
}
|
|
|
|
func init() {
|
|
// This forces the cgo libseccomp to initialize its internal API support state,
|
|
// which is necessary on older versions of libseccomp in order to work
|
|
// correctly.
|
|
- GetAPI()
|
|
+ _, _ = getAPI()
|
|
}
|
|
|
|
func (e VersionError) Error() string {
|
|
- messageStr := ""
|
|
- if e.message != "" {
|
|
- messageStr = e.message + ": "
|
|
+ if e.minAPI != 0 {
|
|
+ return fmt.Sprintf("%s requires libseccomp >= %d.%d.%d and API level >= %d "+
|
|
+ "(current version: %d.%d.%d, API level: %d)",
|
|
+ e.op, e.major, e.minor, e.micro, e.minAPI,
|
|
+ verMajor, verMinor, verMicro, e.curAPI)
|
|
}
|
|
- minimumStr := ""
|
|
- if e.minimum != "" {
|
|
- minimumStr = e.minimum
|
|
- } else {
|
|
- minimumStr = "2.2.0"
|
|
- }
|
|
- return fmt.Sprintf("Libseccomp version too low: %sminimum supported is %s: detected %d.%d.%d", messageStr, minimumStr, verMajor, verMinor, verMicro)
|
|
+ return fmt.Sprintf("%s requires libseccomp >= %d.%d.%d (current version: %d.%d.%d)",
|
|
+ e.op, e.major, e.minor, e.micro, verMajor, verMinor, verMicro)
|
|
}
|
|
|
|
// ScmpArch represents a CPU architecture. Seccomp can restrict syscalls on a
|
|
@@ -148,44 +134,46 @@ const (
|
|
// variables are invalid
|
|
ArchInvalid ScmpArch = iota
|
|
// ArchNative is the native architecture of the kernel
|
|
- ArchNative ScmpArch = iota
|
|
+ ArchNative
|
|
// ArchX86 represents 32-bit x86 syscalls
|
|
- ArchX86 ScmpArch = iota
|
|
+ ArchX86
|
|
// ArchAMD64 represents 64-bit x86-64 syscalls
|
|
- ArchAMD64 ScmpArch = iota
|
|
+ ArchAMD64
|
|
// ArchX32 represents 64-bit x86-64 syscalls (32-bit pointers)
|
|
- ArchX32 ScmpArch = iota
|
|
+ ArchX32
|
|
// ArchARM represents 32-bit ARM syscalls
|
|
- ArchARM ScmpArch = iota
|
|
+ ArchARM
|
|
// ArchARM64 represents 64-bit ARM syscalls
|
|
- ArchARM64 ScmpArch = iota
|
|
+ ArchARM64
|
|
// ArchMIPS represents 32-bit MIPS syscalls
|
|
- ArchMIPS ScmpArch = iota
|
|
+ ArchMIPS
|
|
// ArchMIPS64 represents 64-bit MIPS syscalls
|
|
- ArchMIPS64 ScmpArch = iota
|
|
+ ArchMIPS64
|
|
// ArchMIPS64N32 represents 64-bit MIPS syscalls (32-bit pointers)
|
|
- ArchMIPS64N32 ScmpArch = iota
|
|
+ ArchMIPS64N32
|
|
// ArchMIPSEL represents 32-bit MIPS syscalls (little endian)
|
|
- ArchMIPSEL ScmpArch = iota
|
|
+ ArchMIPSEL
|
|
// ArchMIPSEL64 represents 64-bit MIPS syscalls (little endian)
|
|
- ArchMIPSEL64 ScmpArch = iota
|
|
+ ArchMIPSEL64
|
|
// ArchMIPSEL64N32 represents 64-bit MIPS syscalls (little endian,
|
|
// 32-bit pointers)
|
|
- ArchMIPSEL64N32 ScmpArch = iota
|
|
+ ArchMIPSEL64N32
|
|
// ArchPPC represents 32-bit POWERPC syscalls
|
|
- ArchPPC ScmpArch = iota
|
|
+ ArchPPC
|
|
// ArchPPC64 represents 64-bit POWER syscalls (big endian)
|
|
- ArchPPC64 ScmpArch = iota
|
|
+ ArchPPC64
|
|
// ArchPPC64LE represents 64-bit POWER syscalls (little endian)
|
|
- ArchPPC64LE ScmpArch = iota
|
|
+ ArchPPC64LE
|
|
// ArchS390 represents 31-bit System z/390 syscalls
|
|
- ArchS390 ScmpArch = iota
|
|
+ ArchS390
|
|
// ArchS390X represents 64-bit System z/390 syscalls
|
|
- ArchS390X ScmpArch = iota
|
|
+ ArchS390X
|
|
// ArchPARISC represents 32-bit PA-RISC
|
|
- ArchPARISC ScmpArch = iota
|
|
+ ArchPARISC
|
|
// ArchPARISC64 represents 64-bit PA-RISC
|
|
- ArchPARISC64 ScmpArch = iota
|
|
+ ArchPARISC64
|
|
+ // ArchRISCV64 represents RISCV64
|
|
+ ArchRISCV64
|
|
)
|
|
|
|
const (
|
|
@@ -194,34 +182,36 @@ const (
|
|
// ActInvalid is a placeholder to ensure uninitialized ScmpAction
|
|
// variables are invalid
|
|
ActInvalid ScmpAction = iota
|
|
- // ActKill kills the thread that violated the rule. It is the same as ActKillThread.
|
|
+ // ActKillThread kills the thread that violated the rule.
|
|
// All other threads from the same thread group will continue to execute.
|
|
- ActKill ScmpAction = iota
|
|
+ ActKillThread
|
|
// ActTrap throws SIGSYS
|
|
- ActTrap ScmpAction = iota
|
|
+ ActTrap
|
|
// ActNotify triggers a userspace notification. This action is only usable when
|
|
// libseccomp API level 6 or higher is supported.
|
|
- ActNotify ScmpAction = iota
|
|
+ ActNotify
|
|
// ActErrno causes the syscall to return a negative error code. This
|
|
// code can be set with the SetReturnCode method
|
|
- ActErrno ScmpAction = iota
|
|
+ ActErrno
|
|
// ActTrace causes the syscall to notify tracing processes with the
|
|
// given error code. This code can be set with the SetReturnCode method
|
|
- ActTrace ScmpAction = iota
|
|
+ ActTrace
|
|
// ActAllow permits the syscall to continue execution
|
|
- ActAllow ScmpAction = iota
|
|
+ ActAllow
|
|
// ActLog permits the syscall to continue execution after logging it.
|
|
// This action is only usable when libseccomp API level 3 or higher is
|
|
// supported.
|
|
- ActLog ScmpAction = iota
|
|
- // ActKillThread kills the thread that violated the rule. It is the same as ActKill.
|
|
- // All other threads from the same thread group will continue to execute.
|
|
- ActKillThread ScmpAction = iota
|
|
+ ActLog
|
|
// ActKillProcess kills the process that violated the rule.
|
|
// All threads in the thread group are also terminated.
|
|
// This action is only usable when libseccomp API level 3 or higher is
|
|
// supported.
|
|
- ActKillProcess ScmpAction = iota
|
|
+ ActKillProcess
|
|
+ // ActKill kills the thread that violated the rule.
|
|
+ // All other threads from the same thread group will continue to execute.
|
|
+ //
|
|
+ // Deprecated: use ActKillThread
|
|
+ ActKill = ActKillThread
|
|
)
|
|
|
|
const (
|
|
@@ -234,36 +224,35 @@ const (
|
|
CompareInvalid ScmpCompareOp = iota
|
|
// CompareNotEqual returns true if the argument is not equal to the
|
|
// given value
|
|
- CompareNotEqual ScmpCompareOp = iota
|
|
+ CompareNotEqual
|
|
// CompareLess returns true if the argument is less than the given value
|
|
- CompareLess ScmpCompareOp = iota
|
|
+ CompareLess
|
|
// CompareLessOrEqual returns true if the argument is less than or equal
|
|
// to the given value
|
|
- CompareLessOrEqual ScmpCompareOp = iota
|
|
+ CompareLessOrEqual
|
|
// CompareEqual returns true if the argument is equal to the given value
|
|
- CompareEqual ScmpCompareOp = iota
|
|
+ CompareEqual
|
|
// CompareGreaterEqual returns true if the argument is greater than or
|
|
// equal to the given value
|
|
- CompareGreaterEqual ScmpCompareOp = iota
|
|
+ CompareGreaterEqual
|
|
// CompareGreater returns true if the argument is greater than the given
|
|
// value
|
|
- CompareGreater ScmpCompareOp = iota
|
|
- // CompareMaskedEqual returns true if the argument is equal to the given
|
|
- // value, when masked (bitwise &) against the second given value
|
|
- CompareMaskedEqual ScmpCompareOp = iota
|
|
+ CompareGreater
|
|
+ // CompareMaskedEqual returns true if the masked argument value is
|
|
+ // equal to the masked datum value. Mask is the first argument, and
|
|
+ // datum is the second one.
|
|
+ CompareMaskedEqual
|
|
)
|
|
|
|
-var (
|
|
- // ErrSyscallDoesNotExist represents an error condition where
|
|
- // libseccomp is unable to resolve the syscall
|
|
- ErrSyscallDoesNotExist = fmt.Errorf("could not resolve syscall name")
|
|
-)
|
|
+// ErrSyscallDoesNotExist represents an error condition where
|
|
+// libseccomp is unable to resolve the syscall
|
|
+var ErrSyscallDoesNotExist = fmt.Errorf("could not resolve syscall name")
|
|
|
|
const (
|
|
// Userspace notification response flags
|
|
|
|
// NotifRespFlagContinue tells the kernel to continue executing the system
|
|
- // call that triggered the notification. Must only be used when the notication
|
|
+ // call that triggered the notification. Must only be used when the notification
|
|
// response's error is 0.
|
|
NotifRespFlagContinue uint32 = 1
|
|
)
|
|
@@ -314,6 +303,8 @@ func GetArchFromString(arch string) (ScmpArch, error) {
|
|
return ArchPARISC, nil
|
|
case "parisc64":
|
|
return ArchPARISC64, nil
|
|
+ case "riscv64":
|
|
+ return ArchRISCV64, nil
|
|
default:
|
|
return ArchInvalid, fmt.Errorf("cannot convert unrecognized string %q", arch)
|
|
}
|
|
@@ -358,6 +349,8 @@ func (a ScmpArch) String() string {
|
|
return "parisc"
|
|
case ArchPARISC64:
|
|
return "parisc64"
|
|
+ case ArchRISCV64:
|
|
+ return "riscv64"
|
|
case ArchNative:
|
|
return "native"
|
|
case ArchInvalid:
|
|
@@ -394,7 +387,7 @@ func (a ScmpCompareOp) String() string {
|
|
// String returns a string representation of a seccomp match action
|
|
func (a ScmpAction) String() string {
|
|
switch a & 0xFFFF {
|
|
- case ActKill, ActKillThread:
|
|
+ case ActKillThread:
|
|
return "Action: Kill thread"
|
|
case ActKillProcess:
|
|
return "Action: Kill process"
|
|
@@ -556,8 +549,8 @@ func MakeCondition(arg uint, comparison ScmpCompareOp, values ...uint64) (ScmpCo
|
|
return condStruct, err
|
|
}
|
|
|
|
- if comparison == CompareInvalid {
|
|
- return condStruct, fmt.Errorf("invalid comparison operator")
|
|
+ if err := sanitizeCompareOp(comparison); err != nil {
|
|
+ return condStruct, err
|
|
} else if arg > 5 {
|
|
return condStruct, fmt.Errorf("syscalls only have up to 6 arguments (%d given)", arg)
|
|
} else if len(values) > 2 {
|
|
@@ -874,10 +867,8 @@ func (f *ScmpFilter) GetNoNewPrivsBit() (bool, error) {
|
|
func (f *ScmpFilter) GetLogBit() (bool, error) {
|
|
log, err := f.getFilterAttr(filterAttrLog)
|
|
if err != nil {
|
|
- // Ignore error, if not supported returns apiLevel == 0
|
|
- apiLevel, _ := GetAPI()
|
|
- if apiLevel < 3 {
|
|
- return false, fmt.Errorf("getting the log bit is only supported in libseccomp 2.4.0 and newer with API level 3 or higher")
|
|
+ if e := checkAPI("GetLogBit", 3, 2, 4, 0); e != nil {
|
|
+ err = e
|
|
}
|
|
|
|
return false, err
|
|
@@ -899,9 +890,8 @@ func (f *ScmpFilter) GetLogBit() (bool, error) {
|
|
func (f *ScmpFilter) GetSSB() (bool, error) {
|
|
ssb, err := f.getFilterAttr(filterAttrSSB)
|
|
if err != nil {
|
|
- api, apiErr := getAPI()
|
|
- if (apiErr != nil && api == 0) || (apiErr == nil && api < 4) {
|
|
- return false, fmt.Errorf("getting the SSB flag is only supported in libseccomp 2.5.0 and newer with API level 4 or higher")
|
|
+ if e := checkAPI("GetSSB", 4, 2, 5, 0); e != nil {
|
|
+ err = e
|
|
}
|
|
|
|
return false, err
|
|
@@ -914,6 +904,42 @@ func (f *ScmpFilter) GetSSB() (bool, error) {
|
|
return true, nil
|
|
}
|
|
|
|
+// GetOptimize returns the current optimization level of the filter,
|
|
+// or an error if an issue was encountered retrieving the value.
|
|
+// See SetOptimize for more details.
|
|
+func (f *ScmpFilter) GetOptimize() (int, error) {
|
|
+ level, err := f.getFilterAttr(filterAttrOptimize)
|
|
+ if err != nil {
|
|
+ if e := checkAPI("GetOptimize", 4, 2, 5, 0); e != nil {
|
|
+ err = e
|
|
+ }
|
|
+
|
|
+ return 0, err
|
|
+ }
|
|
+
|
|
+ return int(level), nil
|
|
+}
|
|
+
|
|
+// GetRawRC returns the current state of RawRC flag, or an error
|
|
+// if an issue was encountered retrieving the value.
|
|
+// See SetRawRC for more details.
|
|
+func (f *ScmpFilter) GetRawRC() (bool, error) {
|
|
+ rawrc, err := f.getFilterAttr(filterAttrRawRC)
|
|
+ if err != nil {
|
|
+ if e := checkAPI("GetRawRC", 4, 2, 5, 0); e != nil {
|
|
+ err = e
|
|
+ }
|
|
+
|
|
+ return false, err
|
|
+ }
|
|
+
|
|
+ if rawrc == 0 {
|
|
+ return false, nil
|
|
+ }
|
|
+
|
|
+ return true, nil
|
|
+}
|
|
+
|
|
// SetBadArchAction sets the default action taken on a syscall for an
|
|
// architecture not in the filter, or an error if an issue was encountered
|
|
// setting the value.
|
|
@@ -953,10 +979,8 @@ func (f *ScmpFilter) SetLogBit(state bool) error {
|
|
|
|
err := f.setFilterAttr(filterAttrLog, toSet)
|
|
if err != nil {
|
|
- // Ignore error, if not supported returns apiLevel == 0
|
|
- apiLevel, _ := GetAPI()
|
|
- if apiLevel < 3 {
|
|
- return fmt.Errorf("setting the log bit is only supported in libseccomp 2.4.0 and newer with API level 3 or higher")
|
|
+ if e := checkAPI("SetLogBit", 3, 2, 4, 0); e != nil {
|
|
+ err = e
|
|
}
|
|
}
|
|
|
|
@@ -976,9 +1000,52 @@ func (f *ScmpFilter) SetSSB(state bool) error {
|
|
|
|
err := f.setFilterAttr(filterAttrSSB, toSet)
|
|
if err != nil {
|
|
- api, apiErr := getAPI()
|
|
- if (apiErr != nil && api == 0) || (apiErr == nil && api < 4) {
|
|
- return fmt.Errorf("setting the SSB flag is only supported in libseccomp 2.5.0 and newer with API level 4 or higher")
|
|
+ if e := checkAPI("SetSSB", 4, 2, 5, 0); e != nil {
|
|
+ err = e
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return err
|
|
+}
|
|
+
|
|
+// SetOptimize sets optimization level of the seccomp filter. By default
|
|
+// libseccomp generates a set of sequential "if" statements for each rule in
|
|
+// the filter. SetSyscallPriority can be used to prioritize the order for the
|
|
+// default cause. The binary tree optimization sorts by syscall numbers and
|
|
+// generates consistent O(log n) filter traversal for every rule in the filter.
|
|
+// The binary tree may be advantageous for large filters. Note that
|
|
+// SetSyscallPriority is ignored when level == 2.
|
|
+//
|
|
+// The different optimization levels are:
|
|
+// 0: Reserved value, not currently used.
|
|
+// 1: Rules sorted by priority and complexity (DEFAULT).
|
|
+// 2: Binary tree sorted by syscall number.
|
|
+func (f *ScmpFilter) SetOptimize(level int) error {
|
|
+ cLevel := C.uint32_t(level)
|
|
+
|
|
+ err := f.setFilterAttr(filterAttrOptimize, cLevel)
|
|
+ if err != nil {
|
|
+ if e := checkAPI("SetOptimize", 4, 2, 5, 0); e != nil {
|
|
+ err = e
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return err
|
|
+}
|
|
+
|
|
+// SetRawRC sets whether libseccomp should pass system error codes back to the
|
|
+// caller, instead of the default ECANCELED. Defaults to false.
|
|
+func (f *ScmpFilter) SetRawRC(state bool) error {
|
|
+ var toSet C.uint32_t = 0x0
|
|
+
|
|
+ if state {
|
|
+ toSet = 0x1
|
|
+ }
|
|
+
|
|
+ err := f.setFilterAttr(filterAttrRawRC, toSet)
|
|
+ if err != nil {
|
|
+ if e := checkAPI("SetRawRC", 4, 2, 5, 0); e != nil {
|
|
+ err = e
|
|
}
|
|
}
|
|
|
|
@@ -1029,9 +1096,6 @@ func (f *ScmpFilter) AddRuleExact(call ScmpSyscall, action ScmpAction) error {
|
|
// AddRuleConditional adds a single rule for a conditional action on a syscall.
|
|
// Returns an error if an issue was encountered adding the rule.
|
|
// All conditions must match for the rule to match.
|
|
-// There is a bug in library versions below v2.2.1 which can, in some cases,
|
|
-// cause conditions to be lost when more than one are used. Consequently,
|
|
-// AddRuleConditional is disabled on library versions lower than v2.2.1
|
|
func (f *ScmpFilter) AddRuleConditional(call ScmpSyscall, action ScmpAction, conds []ScmpCondition) error {
|
|
return f.addRuleGeneric(call, action, false, conds)
|
|
}
|
|
@@ -1043,9 +1107,6 @@ func (f *ScmpFilter) AddRuleConditional(call ScmpSyscall, action ScmpAction, con
|
|
// The rule will function exactly as described, but it may not function identically
|
|
// (or be able to be applied to) all architectures.
|
|
// Returns an error if an issue was encountered adding the rule.
|
|
-// There is a bug in library versions below v2.2.1 which can, in some cases,
|
|
-// cause conditions to be lost when more than one are used. Consequently,
|
|
-// AddRuleConditionalExact is disabled on library versions lower than v2.2.1
|
|
func (f *ScmpFilter) AddRuleConditionalExact(call ScmpSyscall, action ScmpAction, conds []ScmpCondition) error {
|
|
return f.addRuleGeneric(call, action, true, conds)
|
|
}
|
|
diff --git a/vendor/github.com/seccomp/libseccomp-golang/seccomp_internal.go b/vendor/github.com/seccomp/libseccomp-golang/seccomp_internal.go
|
|
index 8dc7b296f3b..df4dfb7eba8 100644
|
|
--- a/vendor/github.com/seccomp/libseccomp-golang/seccomp_internal.go
|
|
+++ b/vendor/github.com/seccomp/libseccomp-golang/seccomp_internal.go
|
|
@@ -1,11 +1,10 @@
|
|
-// +build linux
|
|
-
|
|
// Internal functions for libseccomp Go bindings
|
|
// No exported functions
|
|
|
|
package seccomp
|
|
|
|
import (
|
|
+ "errors"
|
|
"fmt"
|
|
"syscall"
|
|
)
|
|
@@ -27,10 +26,10 @@ import (
|
|
#include <stdlib.h>
|
|
#include <seccomp.h>
|
|
|
|
-#if SCMP_VER_MAJOR < 2
|
|
-#error Minimum supported version of Libseccomp is v2.2.0
|
|
-#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 2
|
|
-#error Minimum supported version of Libseccomp is v2.2.0
|
|
+#if (SCMP_VER_MAJOR < 2) || \
|
|
+ (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 3) || \
|
|
+ (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR == 3 && SCMP_VER_MICRO < 1)
|
|
+#error This package requires libseccomp >= v2.3.1
|
|
#endif
|
|
|
|
#define ARCH_BAD ~0
|
|
@@ -65,6 +64,10 @@ const uint32_t C_ARCH_BAD = ARCH_BAD;
|
|
#define SCMP_ARCH_PARISC64 ARCH_BAD
|
|
#endif
|
|
|
|
+#ifndef SCMP_ARCH_RISCV64
|
|
+#define SCMP_ARCH_RISCV64 ARCH_BAD
|
|
+#endif
|
|
+
|
|
const uint32_t C_ARCH_NATIVE = SCMP_ARCH_NATIVE;
|
|
const uint32_t C_ARCH_X86 = SCMP_ARCH_X86;
|
|
const uint32_t C_ARCH_X86_64 = SCMP_ARCH_X86_64;
|
|
@@ -84,6 +87,7 @@ const uint32_t C_ARCH_S390 = SCMP_ARCH_S390;
|
|
const uint32_t C_ARCH_S390X = SCMP_ARCH_S390X;
|
|
const uint32_t C_ARCH_PARISC = SCMP_ARCH_PARISC;
|
|
const uint32_t C_ARCH_PARISC64 = SCMP_ARCH_PARISC64;
|
|
+const uint32_t C_ARCH_RISCV64 = SCMP_ARCH_RISCV64;
|
|
|
|
#ifndef SCMP_ACT_LOG
|
|
#define SCMP_ACT_LOG 0x7ffc0000U
|
|
@@ -113,20 +117,25 @@ const uint32_t C_ACT_NOTIFY = SCMP_ACT_NOTIFY;
|
|
|
|
// The libseccomp SCMP_FLTATR_CTL_LOG member of the scmp_filter_attr enum was
|
|
// added in v2.4.0
|
|
-#if (SCMP_VER_MAJOR < 2) || \
|
|
- (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 4)
|
|
+#if SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 4
|
|
#define SCMP_FLTATR_CTL_LOG _SCMP_FLTATR_MIN
|
|
#endif
|
|
+
|
|
+// The following SCMP_FLTATR_* were added in libseccomp v2.5.0.
|
|
#if SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 5
|
|
-#define SCMP_FLTATR_CTL_SSB _SCMP_FLTATR_MIN
|
|
+#define SCMP_FLTATR_CTL_SSB _SCMP_FLTATR_MIN
|
|
+#define SCMP_FLTATR_CTL_OPTIMIZE _SCMP_FLTATR_MIN
|
|
+#define SCMP_FLTATR_API_SYSRAWRC _SCMP_FLTATR_MIN
|
|
#endif
|
|
|
|
-const uint32_t C_ATTRIBUTE_DEFAULT = (uint32_t)SCMP_FLTATR_ACT_DEFAULT;
|
|
-const uint32_t C_ATTRIBUTE_BADARCH = (uint32_t)SCMP_FLTATR_ACT_BADARCH;
|
|
-const uint32_t C_ATTRIBUTE_NNP = (uint32_t)SCMP_FLTATR_CTL_NNP;
|
|
-const uint32_t C_ATTRIBUTE_TSYNC = (uint32_t)SCMP_FLTATR_CTL_TSYNC;
|
|
-const uint32_t C_ATTRIBUTE_LOG = (uint32_t)SCMP_FLTATR_CTL_LOG;
|
|
-const uint32_t C_ATTRIBUTE_SSB = (uint32_t)SCMP_FLTATR_CTL_SSB;
|
|
+const uint32_t C_ATTRIBUTE_DEFAULT = (uint32_t)SCMP_FLTATR_ACT_DEFAULT;
|
|
+const uint32_t C_ATTRIBUTE_BADARCH = (uint32_t)SCMP_FLTATR_ACT_BADARCH;
|
|
+const uint32_t C_ATTRIBUTE_NNP = (uint32_t)SCMP_FLTATR_CTL_NNP;
|
|
+const uint32_t C_ATTRIBUTE_TSYNC = (uint32_t)SCMP_FLTATR_CTL_TSYNC;
|
|
+const uint32_t C_ATTRIBUTE_LOG = (uint32_t)SCMP_FLTATR_CTL_LOG;
|
|
+const uint32_t C_ATTRIBUTE_SSB = (uint32_t)SCMP_FLTATR_CTL_SSB;
|
|
+const uint32_t C_ATTRIBUTE_OPTIMIZE = (uint32_t)SCMP_FLTATR_CTL_OPTIMIZE;
|
|
+const uint32_t C_ATTRIBUTE_SYSRAWRC = (uint32_t)SCMP_FLTATR_API_SYSRAWRC;
|
|
|
|
const int C_CMP_NE = (int)SCMP_CMP_NE;
|
|
const int C_CMP_LT = (int)SCMP_CMP_LT;
|
|
@@ -173,8 +182,7 @@ unsigned int get_micro_version()
|
|
#endif
|
|
|
|
// The libseccomp API level functions were added in v2.4.0
|
|
-#if (SCMP_VER_MAJOR < 2) || \
|
|
- (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 4)
|
|
+#if SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 4
|
|
const unsigned int seccomp_api_get(void)
|
|
{
|
|
// libseccomp-golang requires libseccomp v2.2.0, at a minimum, which
|
|
@@ -217,8 +225,7 @@ void add_struct_arg_cmp(
|
|
}
|
|
|
|
// The seccomp notify API functions were added in v2.5.0
|
|
-#if (SCMP_VER_MAJOR < 2) || \
|
|
- (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 5)
|
|
+#if SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 5
|
|
|
|
struct seccomp_data {
|
|
int nr;
|
|
@@ -270,11 +277,13 @@ type scmpFilterAttr uint32
|
|
|
|
const (
|
|
filterAttrActDefault scmpFilterAttr = iota
|
|
- filterAttrActBadArch scmpFilterAttr = iota
|
|
- filterAttrNNP scmpFilterAttr = iota
|
|
- filterAttrTsync scmpFilterAttr = iota
|
|
- filterAttrLog scmpFilterAttr = iota
|
|
- filterAttrSSB scmpFilterAttr = iota
|
|
+ filterAttrActBadArch
|
|
+ filterAttrNNP
|
|
+ filterAttrTsync
|
|
+ filterAttrLog
|
|
+ filterAttrSSB
|
|
+ filterAttrOptimize
|
|
+ filterAttrRawRC
|
|
)
|
|
|
|
const (
|
|
@@ -282,9 +291,9 @@ const (
|
|
scmpError C.int = -1
|
|
// Comparison boundaries to check for architecture validity
|
|
archStart ScmpArch = ArchNative
|
|
- archEnd ScmpArch = ArchPARISC64
|
|
+ archEnd ScmpArch = ArchRISCV64
|
|
// Comparison boundaries to check for action validity
|
|
- actionStart ScmpAction = ActKill
|
|
+ actionStart ScmpAction = ActKillThread
|
|
actionEnd ScmpAction = ActKillProcess
|
|
// Comparison boundaries to check for comparison operator validity
|
|
compareOpStart ScmpCompareOp = CompareNotEqual
|
|
@@ -292,8 +301,9 @@ const (
|
|
)
|
|
|
|
var (
|
|
- // Error thrown on bad filter context
|
|
- errBadFilter = fmt.Errorf("filter is invalid or uninitialized")
|
|
+ // errBadFilter is thrown on bad filter context.
|
|
+ errBadFilter = errors.New("filter is invalid or uninitialized")
|
|
+ errDefAction = errors.New("requested action matches default action of filter")
|
|
// Constants representing library major, minor, and micro versions
|
|
verMajor = uint(C.get_major_version())
|
|
verMinor = uint(C.get_minor_version())
|
|
@@ -302,19 +312,28 @@ var (
|
|
|
|
// Nonexported functions
|
|
|
|
-// Check if library version is greater than or equal to the given one
|
|
-func checkVersionAbove(major, minor, micro uint) bool {
|
|
- return (verMajor > major) ||
|
|
+// checkVersion returns an error if the libseccomp version being used
|
|
+// is less than the one specified by major, minor, and micro arguments.
|
|
+// Argument op is an arbitrary non-empty operation description, which
|
|
+// is used as a part of the error message returned.
|
|
+//
|
|
+// Most users should use checkAPI instead.
|
|
+func checkVersion(op string, major, minor, micro uint) error {
|
|
+ if (verMajor > major) ||
|
|
(verMajor == major && verMinor > minor) ||
|
|
- (verMajor == major && verMinor == minor && verMicro >= micro)
|
|
+ (verMajor == major && verMinor == minor && verMicro >= micro) {
|
|
+ return nil
|
|
+ }
|
|
+ return &VersionError{
|
|
+ op: op,
|
|
+ major: major,
|
|
+ minor: minor,
|
|
+ micro: micro,
|
|
+ }
|
|
}
|
|
|
|
-// Ensure that the library is supported, i.e. >= 2.2.0.
|
|
func ensureSupportedVersion() error {
|
|
- if !checkVersionAbove(2, 2, 0) {
|
|
- return VersionError{}
|
|
- }
|
|
- return nil
|
|
+ return checkVersion("seccomp", 2, 3, 1)
|
|
}
|
|
|
|
// Get the API level
|
|
@@ -406,8 +425,10 @@ func (f *ScmpFilter) addRuleWrapper(call ScmpSyscall, action ScmpAction, exact b
|
|
switch e := errRc(retCode); e {
|
|
case syscall.EFAULT:
|
|
return fmt.Errorf("unrecognized syscall %#x", int32(call))
|
|
- case syscall.EPERM:
|
|
- return fmt.Errorf("requested action matches default action of filter")
|
|
+ // libseccomp >= v2.5.0 returns EACCES, older versions return EPERM.
|
|
+ // TODO: remove EPERM once libseccomp < v2.5.0 is not supported.
|
|
+ case syscall.EPERM, syscall.EACCES:
|
|
+ return errDefAction
|
|
case syscall.EINVAL:
|
|
return fmt.Errorf("two checks on same syscall argument")
|
|
default:
|
|
@@ -432,14 +453,6 @@ func (f *ScmpFilter) addRuleGeneric(call ScmpSyscall, action ScmpAction, exact b
|
|
return err
|
|
}
|
|
} else {
|
|
- // We don't support conditional filtering in library version v2.1
|
|
- if !checkVersionAbove(2, 2, 1) {
|
|
- return VersionError{
|
|
- message: "conditional filtering is not supported",
|
|
- minimum: "2.2.1",
|
|
- }
|
|
- }
|
|
-
|
|
argsArr := C.make_arg_cmp_array(C.uint(len(conds)))
|
|
if argsArr == nil {
|
|
return fmt.Errorf("error allocating memory for conditions")
|
|
@@ -536,6 +549,8 @@ func archFromNative(a C.uint32_t) (ScmpArch, error) {
|
|
return ArchPARISC, nil
|
|
case C.C_ARCH_PARISC64:
|
|
return ArchPARISC64, nil
|
|
+ case C.C_ARCH_RISCV64:
|
|
+ return ArchRISCV64, nil
|
|
default:
|
|
return 0x0, fmt.Errorf("unrecognized architecture %#x", uint32(a))
|
|
}
|
|
@@ -580,6 +595,8 @@ func (a ScmpArch) toNative() C.uint32_t {
|
|
return C.C_ARCH_PARISC
|
|
case ArchPARISC64:
|
|
return C.C_ARCH_PARISC64
|
|
+ case ArchRISCV64:
|
|
+ return C.C_ARCH_RISCV64
|
|
case ArchNative:
|
|
return C.C_ARCH_NATIVE
|
|
default:
|
|
@@ -612,8 +629,6 @@ func (a ScmpCompareOp) toNative() C.int {
|
|
func actionFromNative(a C.uint32_t) (ScmpAction, error) {
|
|
aTmp := a & 0xFFFF
|
|
switch a & 0xFFFF0000 {
|
|
- case C.C_ACT_KILL:
|
|
- return ActKill, nil
|
|
case C.C_ACT_KILL_PROCESS:
|
|
return ActKillProcess, nil
|
|
case C.C_ACT_KILL_THREAD:
|
|
@@ -638,8 +653,6 @@ func actionFromNative(a C.uint32_t) (ScmpAction, error) {
|
|
// Only use with sanitized actions, no error handling
|
|
func (a ScmpAction) toNative() C.uint32_t {
|
|
switch a & 0xFFFF {
|
|
- case ActKill:
|
|
- return C.C_ACT_KILL
|
|
case ActKillProcess:
|
|
return C.C_ACT_KILL_PROCESS
|
|
case ActKillThread:
|
|
@@ -676,15 +689,15 @@ func (a scmpFilterAttr) toNative() uint32 {
|
|
return uint32(C.C_ATTRIBUTE_LOG)
|
|
case filterAttrSSB:
|
|
return uint32(C.C_ATTRIBUTE_SSB)
|
|
+ case filterAttrOptimize:
|
|
+ return uint32(C.C_ATTRIBUTE_OPTIMIZE)
|
|
+ case filterAttrRawRC:
|
|
+ return uint32(C.C_ATTRIBUTE_SYSRAWRC)
|
|
default:
|
|
return 0x0
|
|
}
|
|
}
|
|
|
|
-func (a ScmpSyscall) toNative() C.uint32_t {
|
|
- return C.uint32_t(a)
|
|
-}
|
|
-
|
|
func syscallFromNative(a C.int) ScmpSyscall {
|
|
return ScmpSyscall(a)
|
|
}
|
|
@@ -724,9 +737,34 @@ func (scmpResp *ScmpNotifResp) toNative(resp *C.struct_seccomp_notif_resp) {
|
|
resp.flags = C.__u32(scmpResp.Flags)
|
|
}
|
|
|
|
+// checkAPI checks that both the API level and the seccomp version is equal to
|
|
+// or greater than the specified minLevel and major, minor, micro,
|
|
+// respectively, and returns an error otherwise. Argument op is an arbitrary
|
|
+// non-empty operation description, used as a part of the error message
|
|
+// returned.
|
|
+func checkAPI(op string, minLevel uint, major, minor, micro uint) error {
|
|
+ // Ignore error from getAPI, as it returns level == 0 in case of error.
|
|
+ level, _ := getAPI()
|
|
+ if level >= minLevel {
|
|
+ return checkVersion(op, major, minor, micro)
|
|
+ }
|
|
+ return &VersionError{
|
|
+ op: op,
|
|
+ curAPI: level,
|
|
+ minAPI: minLevel,
|
|
+ major: major,
|
|
+ minor: minor,
|
|
+ micro: micro,
|
|
+ }
|
|
+}
|
|
+
|
|
// Userspace Notification API
|
|
// Calls to C.seccomp_notify* hidden from seccomp.go
|
|
|
|
+func notifSupported() error {
|
|
+ return checkAPI("seccomp notification", 6, 2, 5, 0)
|
|
+}
|
|
+
|
|
func (f *ScmpFilter) getNotifFd() (ScmpFd, error) {
|
|
f.lock.Lock()
|
|
defer f.lock.Unlock()
|
|
@@ -734,11 +772,8 @@ func (f *ScmpFilter) getNotifFd() (ScmpFd, error) {
|
|
if !f.valid {
|
|
return -1, errBadFilter
|
|
}
|
|
-
|
|
- // Ignore error, if not supported returns apiLevel == 0
|
|
- apiLevel, _ := GetAPI()
|
|
- if apiLevel < 6 {
|
|
- return -1, fmt.Errorf("seccomp notification requires API level >= 6; current level = %d", apiLevel)
|
|
+ if err := notifSupported(); err != nil {
|
|
+ return -1, err
|
|
}
|
|
|
|
fd := C.seccomp_notify_fd(f.filterCtx)
|
|
@@ -750,10 +785,8 @@ func notifReceive(fd ScmpFd) (*ScmpNotifReq, error) {
|
|
var req *C.struct_seccomp_notif
|
|
var resp *C.struct_seccomp_notif_resp
|
|
|
|
- // Ignore error, if not supported returns apiLevel == 0
|
|
- apiLevel, _ := GetAPI()
|
|
- if apiLevel < 6 {
|
|
- return nil, fmt.Errorf("seccomp notification requires API level >= 6; current level = %d", apiLevel)
|
|
+ if err := notifSupported(); err != nil {
|
|
+ return nil, err
|
|
}
|
|
|
|
// we only use the request here; the response is unused
|
|
@@ -789,13 +822,11 @@ func notifRespond(fd ScmpFd, scmpResp *ScmpNotifResp) error {
|
|
var req *C.struct_seccomp_notif
|
|
var resp *C.struct_seccomp_notif_resp
|
|
|
|
- // Ignore error, if not supported returns apiLevel == 0
|
|
- apiLevel, _ := GetAPI()
|
|
- if apiLevel < 6 {
|
|
- return fmt.Errorf("seccomp notification requires API level >= 6; current level = %d", apiLevel)
|
|
+ if err := notifSupported(); err != nil {
|
|
+ return err
|
|
}
|
|
|
|
- // we only use the reponse here; the request is discarded
|
|
+ // we only use the response here; the request is discarded
|
|
if retCode := C.seccomp_notify_alloc(&req, &resp); retCode != 0 {
|
|
return errRc(retCode)
|
|
}
|
|
@@ -827,10 +858,8 @@ func notifRespond(fd ScmpFd, scmpResp *ScmpNotifResp) error {
|
|
}
|
|
|
|
func notifIDValid(fd ScmpFd, id uint64) error {
|
|
- // Ignore error, if not supported returns apiLevel == 0
|
|
- apiLevel, _ := GetAPI()
|
|
- if apiLevel < 6 {
|
|
- return fmt.Errorf("seccomp notification requires API level >= 6; current level = %d", apiLevel)
|
|
+ if err := notifSupported(); err != nil {
|
|
+ return err
|
|
}
|
|
|
|
for {
|
|
diff --git a/vendor/golang.org/x/mod/module/module.go b/vendor/golang.org/x/mod/module/module.go
|
|
index 355b5a45685..e9dec6e6148 100644
|
|
--- a/vendor/golang.org/x/mod/module/module.go
|
|
+++ b/vendor/golang.org/x/mod/module/module.go
|
|
@@ -15,7 +15,7 @@
|
|
// but additional checking functions, most notably Check, verify that
|
|
// a particular path, version pair is valid.
|
|
//
|
|
-// Escaped Paths
|
|
+// # Escaped Paths
|
|
//
|
|
// Module paths appear as substrings of file system paths
|
|
// (in the download cache) and of web server URLs in the proxy protocol.
|
|
@@ -55,7 +55,7 @@
|
|
// Import paths have never allowed exclamation marks, so there is no
|
|
// need to define how to escape a literal !.
|
|
//
|
|
-// Unicode Restrictions
|
|
+// # Unicode Restrictions
|
|
//
|
|
// Today, paths are disallowed from using Unicode.
|
|
//
|
|
@@ -96,6 +96,7 @@ package module
|
|
// Changes to the semantics in this file require approval from rsc.
|
|
|
|
import (
|
|
+ "errors"
|
|
"fmt"
|
|
"path"
|
|
"sort"
|
|
@@ -104,7 +105,6 @@ import (
|
|
"unicode/utf8"
|
|
|
|
"golang.org/x/mod/semver"
|
|
- errors "golang.org/x/xerrors"
|
|
)
|
|
|
|
// A Version (for clients, a module.Version) is defined by a module path and version pair.
|
|
@@ -258,7 +258,7 @@ func modPathOK(r rune) bool {
|
|
return false
|
|
}
|
|
|
|
-// modPathOK reports whether r can appear in a package import path element.
|
|
+// importPathOK reports whether r can appear in a package import path element.
|
|
//
|
|
// Import paths are intermediate between module paths and file paths: we allow
|
|
// disallow characters that would be confusing or ambiguous as arguments to
|
|
diff --git a/vendor/golang.org/x/net/html/doc.go b/vendor/golang.org/x/net/html/doc.go
|
|
index 822ed42a04c..7a96eae3310 100644
|
|
--- a/vendor/golang.org/x/net/html/doc.go
|
|
+++ b/vendor/golang.org/x/net/html/doc.go
|
|
@@ -92,6 +92,21 @@ example, to process each anchor node in depth-first order:
|
|
The relevant specifications include:
|
|
https://html.spec.whatwg.org/multipage/syntax.html and
|
|
https://html.spec.whatwg.org/multipage/syntax.html#tokenization
|
|
+
|
|
+# Security Considerations
|
|
+
|
|
+Care should be taken when parsing and interpreting HTML, whether full documents
|
|
+or fragments, within the framework of the HTML specification, especially with
|
|
+regard to untrusted inputs.
|
|
+
|
|
+This package provides both a tokenizer and a parser. Only the parser constructs
|
|
+a DOM according to the HTML specification, resolving malformed and misplaced
|
|
+tags where appropriate. The tokenizer simply tokenizes the HTML presented to it,
|
|
+and as such does not resolve issues that may exist in the processed HTML,
|
|
+producing a literal interpretation of the input.
|
|
+
|
|
+If your use case requires semantically well-formed HTML, as defined by the
|
|
+WHATWG specifiction, the parser should be used rather than the tokenizer.
|
|
*/
|
|
package html // import "golang.org/x/net/html"
|
|
|
|
diff --git a/vendor/golang.org/x/net/html/escape.go b/vendor/golang.org/x/net/html/escape.go
|
|
index d8561396200..04c6bec2107 100644
|
|
--- a/vendor/golang.org/x/net/html/escape.go
|
|
+++ b/vendor/golang.org/x/net/html/escape.go
|
|
@@ -193,6 +193,87 @@ func lower(b []byte) []byte {
|
|
return b
|
|
}
|
|
|
|
+// escapeComment is like func escape but escapes its input bytes less often.
|
|
+// Per https://github.com/golang/go/issues/58246 some HTML comments are (1)
|
|
+// meaningful and (2) contain angle brackets that we'd like to avoid escaping
|
|
+// unless we have to.
|
|
+//
|
|
+// "We have to" includes the '&' byte, since that introduces other escapes.
|
|
+//
|
|
+// It also includes those bytes (not including EOF) that would otherwise end
|
|
+// the comment. Per the summary table at the bottom of comment_test.go, this is
|
|
+// the '>' byte that, per above, we'd like to avoid escaping unless we have to.
|
|
+//
|
|
+// Studying the summary table (and T actions in its '>' column) closely, we
|
|
+// only need to escape in states 43, 44, 49, 51 and 52. State 43 is at the
|
|
+// start of the comment data. State 52 is after a '!'. The other three states
|
|
+// are after a '-'.
|
|
+//
|
|
+// Our algorithm is thus to escape every '&' and to escape '>' if and only if:
|
|
+// - The '>' is after a '!' or '-' (in the unescaped data) or
|
|
+// - The '>' is at the start of the comment data (after the opening "<!--").
|
|
+func escapeComment(w writer, s string) error {
|
|
+ // When modifying this function, consider manually increasing the
|
|
+ // maxSuffixLen constant in func TestComments, from 6 to e.g. 9 or more.
|
|
+ // That increase should only be temporary, not committed, as it
|
|
+ // exponentially affects the test running time.
|
|
+
|
|
+ if len(s) == 0 {
|
|
+ return nil
|
|
+ }
|
|
+
|
|
+ // Loop:
|
|
+ // - Grow j such that s[i:j] does not need escaping.
|
|
+ // - If s[j] does need escaping, output s[i:j] and an escaped s[j],
|
|
+ // resetting i and j to point past that s[j] byte.
|
|
+ i := 0
|
|
+ for j := 0; j < len(s); j++ {
|
|
+ escaped := ""
|
|
+ switch s[j] {
|
|
+ case '&':
|
|
+ escaped = "&"
|
|
+
|
|
+ case '>':
|
|
+ if j > 0 {
|
|
+ if prev := s[j-1]; (prev != '!') && (prev != '-') {
|
|
+ continue
|
|
+ }
|
|
+ }
|
|
+ escaped = ">"
|
|
+
|
|
+ default:
|
|
+ continue
|
|
+ }
|
|
+
|
|
+ if i < j {
|
|
+ if _, err := w.WriteString(s[i:j]); err != nil {
|
|
+ return err
|
|
+ }
|
|
+ }
|
|
+ if _, err := w.WriteString(escaped); err != nil {
|
|
+ return err
|
|
+ }
|
|
+ i = j + 1
|
|
+ }
|
|
+
|
|
+ if i < len(s) {
|
|
+ if _, err := w.WriteString(s[i:]); err != nil {
|
|
+ return err
|
|
+ }
|
|
+ }
|
|
+ return nil
|
|
+}
|
|
+
|
|
+// escapeCommentString is to EscapeString as escapeComment is to escape.
|
|
+func escapeCommentString(s string) string {
|
|
+ if strings.IndexAny(s, "&>") == -1 {
|
|
+ return s
|
|
+ }
|
|
+ var buf bytes.Buffer
|
|
+ escapeComment(&buf, s)
|
|
+ return buf.String()
|
|
+}
|
|
+
|
|
const escapedChars = "&'<>\"\r"
|
|
|
|
func escape(w writer, s string) error {
|
|
diff --git a/vendor/golang.org/x/net/html/render.go b/vendor/golang.org/x/net/html/render.go
|
|
index b46d81ca6d2..8b3b9d83dd1 100644
|
|
--- a/vendor/golang.org/x/net/html/render.go
|
|
+++ b/vendor/golang.org/x/net/html/render.go
|
|
@@ -85,7 +85,7 @@ func render1(w writer, n *Node) error {
|
|
if _, err := w.WriteString("<!--"); err != nil {
|
|
return err
|
|
}
|
|
- if _, err := w.WriteString(n.Data); err != nil {
|
|
+ if err := escapeComment(w, n.Data); err != nil {
|
|
return err
|
|
}
|
|
if _, err := w.WriteString("-->"); err != nil {
|
|
diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go
|
|
index 877709f991b..6636fbd018e 100644
|
|
--- a/vendor/golang.org/x/net/html/token.go
|
|
+++ b/vendor/golang.org/x/net/html/token.go
|
|
@@ -110,7 +110,7 @@ func (t Token) String() string {
|
|
case SelfClosingTagToken:
|
|
return "<" + t.tagString() + "/>"
|
|
case CommentToken:
|
|
- return "<!--" + t.Data + "-->"
|
|
+ return "<!--" + escapeCommentString(t.Data) + "-->"
|
|
case DoctypeToken:
|
|
return "<!DOCTYPE " + t.Data + ">"
|
|
}
|
|
@@ -598,6 +598,11 @@ scriptDataDoubleEscapeEnd:
|
|
// readComment reads the next comment token starting with "<!--". The opening
|
|
// "<!--" has already been consumed.
|
|
func (z *Tokenizer) readComment() {
|
|
+ // When modifying this function, consider manually increasing the
|
|
+ // maxSuffixLen constant in func TestComments, from 6 to e.g. 9 or more.
|
|
+ // That increase should only be temporary, not committed, as it
|
|
+ // exponentially affects the test running time.
|
|
+
|
|
z.data.start = z.raw.end
|
|
defer func() {
|
|
if z.data.end < z.data.start {
|
|
diff --git a/vendor/golang.org/x/sync/singleflight/singleflight.go b/vendor/golang.org/x/sync/singleflight/singleflight.go
|
|
index 690eb850134..8473fb7922c 100644
|
|
--- a/vendor/golang.org/x/sync/singleflight/singleflight.go
|
|
+++ b/vendor/golang.org/x/sync/singleflight/singleflight.go
|
|
@@ -52,10 +52,6 @@ type call struct {
|
|
val interface{}
|
|
err error
|
|
|
|
- // forgotten indicates whether Forget was called with this call's key
|
|
- // while the call was still in flight.
|
|
- forgotten bool
|
|
-
|
|
// These fields are read and written with the singleflight
|
|
// mutex held before the WaitGroup is done, and are read but
|
|
// not written after the WaitGroup is done.
|
|
@@ -148,10 +144,10 @@ func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) {
|
|
c.err = errGoexit
|
|
}
|
|
|
|
- c.wg.Done()
|
|
g.mu.Lock()
|
|
defer g.mu.Unlock()
|
|
- if !c.forgotten {
|
|
+ c.wg.Done()
|
|
+ if g.m[key] == c {
|
|
delete(g.m, key)
|
|
}
|
|
|
|
@@ -204,9 +200,6 @@ func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) {
|
|
// an earlier call to complete.
|
|
func (g *Group) Forget(key string) {
|
|
g.mu.Lock()
|
|
- if c, ok := g.m[key]; ok {
|
|
- c.forgotten = true
|
|
- }
|
|
delete(g.m, key)
|
|
g.mu.Unlock()
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/cpu/hwcap_linux.go b/vendor/golang.org/x/sys/cpu/hwcap_linux.go
|
|
index f3baa379328..1d9d91f3ed8 100644
|
|
--- a/vendor/golang.org/x/sys/cpu/hwcap_linux.go
|
|
+++ b/vendor/golang.org/x/sys/cpu/hwcap_linux.go
|
|
@@ -24,6 +24,21 @@ var hwCap uint
|
|
var hwCap2 uint
|
|
|
|
func readHWCAP() error {
|
|
+ // For Go 1.21+, get auxv from the Go runtime.
|
|
+ if a := getAuxv(); len(a) > 0 {
|
|
+ for len(a) >= 2 {
|
|
+ tag, val := a[0], uint(a[1])
|
|
+ a = a[2:]
|
|
+ switch tag {
|
|
+ case _AT_HWCAP:
|
|
+ hwCap = val
|
|
+ case _AT_HWCAP2:
|
|
+ hwCap2 = val
|
|
+ }
|
|
+ }
|
|
+ return nil
|
|
+ }
|
|
+
|
|
buf, err := ioutil.ReadFile(procAuxv)
|
|
if err != nil {
|
|
// e.g. on android /proc/self/auxv is not accessible, so silently
|
|
diff --git a/vendor/golang.org/x/sys/cpu/runtime_auxv.go b/vendor/golang.org/x/sys/cpu/runtime_auxv.go
|
|
new file mode 100644
|
|
index 00000000000..5f92ac9a2e2
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/cpu/runtime_auxv.go
|
|
@@ -0,0 +1,16 @@
|
|
+// Copyright 2023 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package cpu
|
|
+
|
|
+// getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init)
|
|
+// on platforms that use auxv.
|
|
+var getAuxvFn func() []uintptr
|
|
+
|
|
+func getAuxv() []uintptr {
|
|
+ if getAuxvFn == nil {
|
|
+ return nil
|
|
+ }
|
|
+ return getAuxvFn()
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go b/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go
|
|
new file mode 100644
|
|
index 00000000000..b975ea2a04e
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go
|
|
@@ -0,0 +1,19 @@
|
|
+// Copyright 2023 The Go Authors. 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 go1.21
|
|
+// +build go1.21
|
|
+
|
|
+package cpu
|
|
+
|
|
+import (
|
|
+ _ "unsafe" // for linkname
|
|
+)
|
|
+
|
|
+//go:linkname runtime_getAuxv runtime.getAuxv
|
|
+func runtime_getAuxv() []uintptr
|
|
+
|
|
+func init() {
|
|
+ getAuxvFn = runtime_getAuxv
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/execabs/execabs.go b/vendor/golang.org/x/sys/execabs/execabs.go
|
|
index 78192498db0..bc335c8d3d0 100644
|
|
--- a/vendor/golang.org/x/sys/execabs/execabs.go
|
|
+++ b/vendor/golang.org/x/sys/execabs/execabs.go
|
|
@@ -63,7 +63,7 @@ func LookPath(file string) (string, error) {
|
|
}
|
|
|
|
func fixCmd(name string, cmd *exec.Cmd) {
|
|
- if filepath.Base(name) == name && !filepath.IsAbs(cmd.Path) {
|
|
+ if filepath.Base(name) == name && !filepath.IsAbs(cmd.Path) && !isGo119ErrFieldSet(cmd) {
|
|
// exec.Command was called with a bare binary name and
|
|
// exec.LookPath returned a path which is not absolute.
|
|
// Set cmd.lookPathErr and clear cmd.Path so that it
|
|
diff --git a/vendor/golang.org/x/sys/execabs/execabs_go118.go b/vendor/golang.org/x/sys/execabs/execabs_go118.go
|
|
new file mode 100644
|
|
index 00000000000..2000064a812
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/execabs/execabs_go118.go
|
|
@@ -0,0 +1,18 @@
|
|
+// Copyright 2022 The Go Authors. 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 !go1.19
|
|
+// +build !go1.19
|
|
+
|
|
+package execabs
|
|
+
|
|
+import "os/exec"
|
|
+
|
|
+func isGo119ErrDot(err error) bool {
|
|
+ return false
|
|
+}
|
|
+
|
|
+func isGo119ErrFieldSet(cmd *exec.Cmd) bool {
|
|
+ return false
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/execabs/execabs_go119.go b/vendor/golang.org/x/sys/execabs/execabs_go119.go
|
|
new file mode 100644
|
|
index 00000000000..f364b341892
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/execabs/execabs_go119.go
|
|
@@ -0,0 +1,21 @@
|
|
+// Copyright 2022 The Go Authors. 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 go1.19
|
|
+// +build go1.19
|
|
+
|
|
+package execabs
|
|
+
|
|
+import (
|
|
+ "errors"
|
|
+ "os/exec"
|
|
+)
|
|
+
|
|
+func isGo119ErrDot(err error) bool {
|
|
+ return errors.Is(err, exec.ErrDot)
|
|
+}
|
|
+
|
|
+func isGo119ErrFieldSet(cmd *exec.Cmd) bool {
|
|
+ return cmd.Err != nil
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ioctl.go b/vendor/golang.org/x/sys/unix/ioctl.go
|
|
index 6c7ad052e6b..01ed4093a40 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ioctl.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ioctl.go
|
|
@@ -8,7 +8,6 @@
|
|
package unix
|
|
|
|
import (
|
|
- "runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
@@ -27,7 +26,7 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|
// passing the integer value directly.
|
|
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
|
v := int32(value)
|
|
- return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
|
+ return ioctlPtr(fd, req, unsafe.Pointer(&v))
|
|
}
|
|
|
|
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
|
@@ -36,9 +35,7 @@ func IoctlSetPointerInt(fd int, req uint, value int) error {
|
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
// TODO: if we get the chance, remove the req parameter and
|
|
// hardcode TIOCSWINSZ.
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
- runtime.KeepAlive(value)
|
|
- return err
|
|
+ return ioctlPtr(fd, req, unsafe.Pointer(value))
|
|
}
|
|
|
|
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
|
@@ -46,9 +43,7 @@ func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
// The req value will usually be TCSETA or TIOCSETA.
|
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
|
// TODO: if we get the chance, remove the req parameter.
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
- runtime.KeepAlive(value)
|
|
- return err
|
|
+ return ioctlPtr(fd, req, unsafe.Pointer(value))
|
|
}
|
|
|
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
@@ -58,18 +53,18 @@ func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
|
// for those, IoctlRetInt should be used instead of this function.
|
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
var value int
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return value, err
|
|
}
|
|
|
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
var value Winsize
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return &value, err
|
|
}
|
|
|
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
var value Termios
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return &value, err
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ioctl_zos.go b/vendor/golang.org/x/sys/unix/ioctl_zos.go
|
|
index 5384e7d91d7..6532f09af2e 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ioctl_zos.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ioctl_zos.go
|
|
@@ -27,9 +27,7 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
// TODO: if we get the chance, remove the req parameter and
|
|
// hardcode TIOCSWINSZ.
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
- runtime.KeepAlive(value)
|
|
- return err
|
|
+ return ioctlPtr(fd, req, unsafe.Pointer(value))
|
|
}
|
|
|
|
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
|
@@ -51,13 +49,13 @@ func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
|
// for those, IoctlRetInt should be used instead of this function.
|
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
var value int
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return value, err
|
|
}
|
|
|
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
var value Winsize
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return &value, err
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ptrace_darwin.go b/vendor/golang.org/x/sys/unix/ptrace_darwin.go
|
|
index 463c3eff7fd..39dba6ca6a3 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ptrace_darwin.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ptrace_darwin.go
|
|
@@ -7,6 +7,12 @@
|
|
|
|
package unix
|
|
|
|
+import "unsafe"
|
|
+
|
|
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
|
return ptrace1(request, pid, addr, data)
|
|
}
|
|
+
|
|
+func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) error {
|
|
+ return ptrace1Ptr(request, pid, addr, data)
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ptrace_ios.go b/vendor/golang.org/x/sys/unix/ptrace_ios.go
|
|
index ed0509a0117..9ea66330a96 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ptrace_ios.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ptrace_ios.go
|
|
@@ -7,6 +7,12 @@
|
|
|
|
package unix
|
|
|
|
+import "unsafe"
|
|
+
|
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|
return ENOTSUP
|
|
}
|
|
+
|
|
+func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
|
+ return ENOTSUP
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go
|
|
index 4f55c8d9996..b747af2ea84 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_aix.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_aix.go
|
|
@@ -247,9 +247,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|
break
|
|
}
|
|
}
|
|
-
|
|
- bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
- sa.Name = string(bytes)
|
|
+ sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
|
return sa, nil
|
|
|
|
case AF_INET:
|
|
@@ -364,6 +362,7 @@ func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 }
|
|
func (w WaitStatus) TrapCause() int { return -1 }
|
|
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = ioctl
|
|
|
|
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
|
|
// There is no way to create a custom fcntl and to keep //sys fcntl easily,
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go
|
|
index 0ce45232611..407dfd54203 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_bsd.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go
|
|
@@ -245,8 +245,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|
break
|
|
}
|
|
}
|
|
- bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
- sa.Name = string(bytes)
|
|
+ sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
|
return sa, nil
|
|
|
|
case AF_INET:
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go
|
|
index 0eaab91314c..9167a8bbdd4 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_darwin.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go
|
|
@@ -14,7 +14,6 @@ package unix
|
|
|
|
import (
|
|
"fmt"
|
|
- "runtime"
|
|
"syscall"
|
|
"unsafe"
|
|
)
|
|
@@ -324,11 +323,10 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
|
|
func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
|
|
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
|
|
|
func IoctlCtlInfo(fd int, ctlInfo *CtlInfo) error {
|
|
- err := ioctl(fd, CTLIOCGINFO, uintptr(unsafe.Pointer(ctlInfo)))
|
|
- runtime.KeepAlive(ctlInfo)
|
|
- return err
|
|
+ return ioctlPtr(fd, CTLIOCGINFO, unsafe.Pointer(ctlInfo))
|
|
}
|
|
|
|
// IfreqMTU is struct ifreq used to get or set a network device's MTU.
|
|
@@ -342,16 +340,14 @@ type IfreqMTU struct {
|
|
func IoctlGetIfreqMTU(fd int, ifname string) (*IfreqMTU, error) {
|
|
var ifreq IfreqMTU
|
|
copy(ifreq.Name[:], ifname)
|
|
- err := ioctl(fd, SIOCGIFMTU, uintptr(unsafe.Pointer(&ifreq)))
|
|
+ err := ioctlPtr(fd, SIOCGIFMTU, unsafe.Pointer(&ifreq))
|
|
return &ifreq, err
|
|
}
|
|
|
|
// IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU
|
|
// of the network device specified by ifreq.Name.
|
|
func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error {
|
|
- err := ioctl(fd, SIOCSIFMTU, uintptr(unsafe.Pointer(ifreq)))
|
|
- runtime.KeepAlive(ifreq)
|
|
- return err
|
|
+ return ioctlPtr(fd, SIOCSIFMTU, unsafe.Pointer(ifreq))
|
|
}
|
|
|
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
|
|
index b37310ce9b4..9fa879806bc 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
|
|
@@ -47,5 +47,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
|
//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
|
|
+//sys ptrace1Ptr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) = SYS_ptrace
|
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
|
|
index d51ec996304..f17b8c526a5 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
|
|
@@ -47,5 +47,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
|
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
|
//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
|
|
+//sys ptrace1Ptr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) = SYS_ptrace
|
|
//sys Stat(path string, stat *Stat_t) (err error)
|
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
|
|
index 2e37c3167f3..1aac70a67bf 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
|
|
@@ -175,6 +175,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|
}
|
|
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
|
|
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
|
|
index 2f650ae665c..1eee74d3a23 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
|
|
@@ -194,12 +194,17 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|
return
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|
// used on Darwin for UtimesNano
|
|
return ENOSYS
|
|
}
|
|
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
+=======
|
|
+//sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
|
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
|
|
|
@@ -504,6 +509,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
}
|
|
|
|
//sys ptrace(request int, pid int, addr uintptr, data int) (err error)
|
|
+//sys ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) = SYS_PTRACE
|
|
|
|
func PtraceAttach(pid int) (err error) {
|
|
return ptrace(PTRACE_ATTACH, pid, 0, 0)
|
|
@@ -518,19 +524,49 @@ func PtraceDetach(pid int) (err error) {
|
|
}
|
|
|
|
func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
|
|
+<<<<<<< HEAD
|
|
return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
|
|
}
|
|
|
|
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
|
return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
|
|
+=======
|
|
+ return ptracePtr(PT_GETFPREGS, pid, unsafe.Pointer(fpregsout), 0)
|
|
+}
|
|
+
|
|
+func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
|
+ return ptracePtr(PT_GETREGS, pid, unsafe.Pointer(regsout), 0)
|
|
+}
|
|
+
|
|
+func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) {
|
|
+ ioDesc := PtraceIoDesc{
|
|
+ Op: int32(req),
|
|
+ Offs: offs,
|
|
+ }
|
|
+ if countin > 0 {
|
|
+ _ = out[:countin] // check bounds
|
|
+ ioDesc.Addr = &out[0]
|
|
+ } else if out != nil {
|
|
+ ioDesc.Addr = (*byte)(unsafe.Pointer(&_zero))
|
|
+ }
|
|
+ ioDesc.SetLen(countin)
|
|
+
|
|
+ err = ptracePtr(PT_IO, pid, unsafe.Pointer(&ioDesc), 0)
|
|
+ return int(ioDesc.Len), err
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
}
|
|
|
|
func PtraceLwpEvents(pid int, enable int) (err error) {
|
|
return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
func PtraceLwpInfo(pid int, info uintptr) (err error) {
|
|
return ptrace(PTRACE_LWPINFO, pid, info, int(unsafe.Sizeof(PtraceLwpInfoStruct{})))
|
|
+=======
|
|
+func PtraceLwpInfo(pid int, info *PtraceLwpInfoStruct) (err error) {
|
|
+ return ptracePtr(PT_LWPINFO, pid, unsafe.Pointer(info), int(unsafe.Sizeof(*info)))
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
}
|
|
|
|
func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
|
|
@@ -550,13 +586,29 @@ func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
|
|
}
|
|
|
|
func PtraceSetRegs(pid int, regs *Reg) (err error) {
|
|
+<<<<<<< HEAD
|
|
return ptrace(PTRACE_SETREGS, pid, uintptr(unsafe.Pointer(regs)), 0)
|
|
+=======
|
|
+ return ptracePtr(PT_SETREGS, pid, unsafe.Pointer(regs), 0)
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
}
|
|
|
|
func PtraceSingleStep(pid int) (err error) {
|
|
return ptrace(PTRACE_SINGLESTEP, pid, 1, 0)
|
|
}
|
|
|
|
+func Dup3(oldfd, newfd, flags int) error {
|
|
+ if oldfd == newfd || flags&^O_CLOEXEC != 0 {
|
|
+ return EINVAL
|
|
+ }
|
|
+ how := F_DUP2FD
|
|
+ if flags&O_CLOEXEC != 0 {
|
|
+ how = F_DUP2FD_CLOEXEC
|
|
+ }
|
|
+ _, err := fcntl(oldfd, how, newfd)
|
|
+ return err
|
|
+}
|
|
+
|
|
/*
|
|
* Exposed directly
|
|
*/
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
|
|
index 342fc32b168..4eed149c55d 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
|
|
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|
cmsg.Len = uint32(length)
|
|
}
|
|
|
|
+func (d *PtraceIoDesc) SetLen(length int) {
|
|
+ d.Len = uint32(length)
|
|
+}
|
|
+
|
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
var writtenOut uint64 = 0
|
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
|
|
@@ -57,6 +61,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
|
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|
+<<<<<<< HEAD
|
|
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
|
}
|
|
|
|
@@ -64,4 +69,7 @@ func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count in
|
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
return int(ioDesc.Len), err
|
|
+=======
|
|
+ return ptracePtr(PT_GETFSBASE, pid, unsafe.Pointer(fsbase), 0)
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
|
|
index a32d5aa4aed..bd859a9be55 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
|
|
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|
cmsg.Len = uint32(length)
|
|
}
|
|
|
|
+func (d *PtraceIoDesc) SetLen(length int) {
|
|
+ d.Len = uint64(length)
|
|
+}
|
|
+
|
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
var writtenOut uint64 = 0
|
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
|
@@ -57,6 +61,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
|
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|
+<<<<<<< HEAD
|
|
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
|
}
|
|
|
|
@@ -64,4 +69,7 @@ func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count in
|
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
return int(ioDesc.Len), err
|
|
+=======
|
|
+ return ptracePtr(PT_GETFSBASE, pid, unsafe.Pointer(fsbase), 0)
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
|
|
index 1e36d39abe0..f1a29375167 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
|
|
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|
cmsg.Len = uint32(length)
|
|
}
|
|
|
|
+func (d *PtraceIoDesc) SetLen(length int) {
|
|
+ d.Len = uint32(length)
|
|
+}
|
|
+
|
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
var writtenOut uint64 = 0
|
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
|
|
@@ -55,9 +59,12 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
}
|
|
|
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
+<<<<<<< HEAD
|
|
|
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
return int(ioDesc.Len), err
|
|
}
|
|
+=======
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
|
|
index a09a1537bd6..f460fe8c883 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
|
|
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|
cmsg.Len = uint32(length)
|
|
}
|
|
|
|
+func (d *PtraceIoDesc) SetLen(length int) {
|
|
+ d.Len = uint64(length)
|
|
+}
|
|
+
|
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
var writtenOut uint64 = 0
|
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
|
@@ -55,9 +59,12 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
}
|
|
|
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
+<<<<<<< HEAD
|
|
|
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
return int(ioDesc.Len), err
|
|
}
|
|
+=======
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
|
|
new file mode 100644
|
|
index 00000000000..d5cd64b3787
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
|
|
@@ -0,0 +1,61 @@
|
|
+// Copyright 2022 The Go Authors. 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 riscv64 && freebsd
|
|
+// +build riscv64,freebsd
|
|
+
|
|
+package unix
|
|
+
|
|
+import (
|
|
+ "syscall"
|
|
+ "unsafe"
|
|
+)
|
|
+
|
|
+func setTimespec(sec, nsec int64) Timespec {
|
|
+ return Timespec{Sec: sec, Nsec: nsec}
|
|
+}
|
|
+
|
|
+func setTimeval(sec, usec int64) Timeval {
|
|
+ return Timeval{Sec: sec, Usec: usec}
|
|
+}
|
|
+
|
|
+func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
|
+ k.Ident = uint64(fd)
|
|
+ k.Filter = int16(mode)
|
|
+ k.Flags = uint16(flags)
|
|
+}
|
|
+
|
|
+func (iov *Iovec) SetLen(length int) {
|
|
+ iov.Len = uint64(length)
|
|
+}
|
|
+
|
|
+func (msghdr *Msghdr) SetControllen(length int) {
|
|
+ msghdr.Controllen = uint32(length)
|
|
+}
|
|
+
|
|
+func (msghdr *Msghdr) SetIovlen(length int) {
|
|
+ msghdr.Iovlen = int32(length)
|
|
+}
|
|
+
|
|
+func (cmsg *Cmsghdr) SetLen(length int) {
|
|
+ cmsg.Len = uint32(length)
|
|
+}
|
|
+
|
|
+func (d *PtraceIoDesc) SetLen(length int) {
|
|
+ d.Len = uint64(length)
|
|
+}
|
|
+
|
|
+func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
+ var writtenOut uint64 = 0
|
|
+ _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
|
+
|
|
+ written = int(writtenOut)
|
|
+
|
|
+ if e1 != 0 {
|
|
+ err = e1
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_hurd.go b/vendor/golang.org/x/sys/unix/syscall_hurd.go
|
|
new file mode 100644
|
|
index 00000000000..381fd4673be
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_hurd.go
|
|
@@ -0,0 +1,30 @@
|
|
+// Copyright 2022 The Go Authors. 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 hurd
|
|
+// +build hurd
|
|
+
|
|
+package unix
|
|
+
|
|
+/*
|
|
+#include <stdint.h>
|
|
+int ioctl(int, unsigned long int, uintptr_t);
|
|
+*/
|
|
+import "C"
|
|
+
|
|
+func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
+ r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))
|
|
+ if r0 == -1 && er != nil {
|
|
+ err = er
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg)))
|
|
+ if r0 == -1 && er != nil {
|
|
+ err = er
|
|
+ }
|
|
+ return
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go
|
|
index f5915e23429..7d5097a7ee2 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go
|
|
@@ -1005,8 +1005,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
|
n++
|
|
}
|
|
- bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
- sa.Name = string(bytes)
|
|
+ sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
|
return sa, nil
|
|
|
|
case AF_INET:
|
|
@@ -1355,6 +1354,10 @@ func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) {
|
|
return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o)))
|
|
}
|
|
|
|
+func SetsockoptTCPMD5Sig(fd, level, opt int, s *TCPMD5Sig) error {
|
|
+ return setsockopt(fd, level, opt, unsafe.Pointer(s), unsafe.Sizeof(*s))
|
|
+}
|
|
+
|
|
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
|
|
|
// KeyctlInt calls keyctl commands in which each argument is an int.
|
|
@@ -1588,6 +1591,7 @@ func BindToDevice(fd int, device string) (err error) {
|
|
}
|
|
|
|
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
|
+//sys ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) = SYS_PTRACE
|
|
|
|
func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) {
|
|
// The peek requests are machine-size oriented, so we wrap it
|
|
@@ -1605,7 +1609,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
|
// boundary.
|
|
n := 0
|
|
if addr%SizeofPtr != 0 {
|
|
- err = ptrace(req, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
|
+ err = ptracePtr(req, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0]))
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
@@ -1617,7 +1621,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
|
for len(out) > 0 {
|
|
// We use an internal buffer to guarantee alignment.
|
|
// It's not documented if this is necessary, but we're paranoid.
|
|
- err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
|
+ err = ptracePtr(req, pid, addr+uintptr(n), unsafe.Pointer(&buf[0]))
|
|
if err != nil {
|
|
return n, err
|
|
}
|
|
@@ -1649,7 +1653,7 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
|
n := 0
|
|
if addr%SizeofPtr != 0 {
|
|
var buf [SizeofPtr]byte
|
|
- err = ptrace(peekReq, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
|
+ err = ptracePtr(peekReq, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0]))
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
@@ -1676,7 +1680,7 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
|
// Trailing edge.
|
|
if len(data) > 0 {
|
|
var buf [SizeofPtr]byte
|
|
- err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
|
+ err = ptracePtr(peekReq, pid, addr+uintptr(n), unsafe.Pointer(&buf[0]))
|
|
if err != nil {
|
|
return n, err
|
|
}
|
|
@@ -1705,11 +1709,11 @@ func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) {
|
|
}
|
|
|
|
func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
|
|
func PtraceSetOptions(pid int, options int) (err error) {
|
|
@@ -1718,7 +1722,7 @@ func PtraceSetOptions(pid int, options int) (err error) {
|
|
|
|
func PtraceGetEventMsg(pid int) (msg uint, err error) {
|
|
var data _C_long
|
|
- err = ptrace(PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data)))
|
|
+ err = ptracePtr(PTRACE_GETEVENTMSG, pid, 0, unsafe.Pointer(&data))
|
|
msg = uint(data)
|
|
return
|
|
}
|
|
@@ -2132,6 +2136,14 @@ func isGroupMember(gid int) bool {
|
|
return false
|
|
}
|
|
|
|
+func isCapDacOverrideSet() bool {
|
|
+ hdr := CapUserHeader{Version: LINUX_CAPABILITY_VERSION_3}
|
|
+ data := [2]CapUserData{}
|
|
+ err := Capget(&hdr, &data[0])
|
|
+
|
|
+ return err == nil && data[0].Effective&(1<<CAP_DAC_OVERRIDE) != 0
|
|
+}
|
|
+
|
|
//sys faccessat(dirfd int, path string, mode uint32) (err error)
|
|
//sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error)
|
|
|
|
@@ -2167,6 +2179,12 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
var uid int
|
|
if flags&AT_EACCESS != 0 {
|
|
uid = Geteuid()
|
|
+ if uid != 0 && isCapDacOverrideSet() {
|
|
+ // If CAP_DAC_OVERRIDE is set, file access check is
|
|
+ // done by the kernel in the same way as for root
|
|
+ // (see generic_permission() in the Linux sources).
|
|
+ uid = 0
|
|
+ }
|
|
} else {
|
|
uid = Getuid()
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
|
|
index 696fed496f6..c4f7f7acb5e 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
|
|
@@ -13,7 +13,6 @@
|
|
package unix
|
|
|
|
import (
|
|
- "runtime"
|
|
"syscall"
|
|
"unsafe"
|
|
)
|
|
@@ -169,13 +168,13 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|
}
|
|
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
|
|
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
|
|
|
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
|
var value Ptmget
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
- runtime.KeepAlive(value)
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return &value, err
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
|
|
index 11b1d419da9..44de4b96dd5 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
|
|
@@ -155,6 +155,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|
}
|
|
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
|
|
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go
|
|
index 5c813921e85..b4208374fc7 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_solaris.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go
|
|
@@ -408,8 +408,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
|
n++
|
|
}
|
|
- bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
- sa.Name = string(bytes)
|
|
+ sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
|
return sa, nil
|
|
|
|
case AF_INET:
|
|
@@ -565,21 +564,25 @@ func Minor(dev uint64) uint32 {
|
|
*/
|
|
|
|
//sys ioctlRet(fd int, req uint, arg uintptr) (ret int, err error) = libc.ioctl
|
|
+//sys ioctlPtrRet(fd int, req uint, arg unsafe.Pointer) (ret int, err error) = libc.ioctl
|
|
|
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
_, err = ioctlRet(fd, req, arg)
|
|
return err
|
|
}
|
|
|
|
-func IoctlSetTermio(fd int, req uint, value *Termio) error {
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
- runtime.KeepAlive(value)
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, err = ioctlPtrRet(fd, req, arg)
|
|
return err
|
|
}
|
|
|
|
+func IoctlSetTermio(fd int, req uint, value *Termio) error {
|
|
+ return ioctlPtr(fd, req, unsafe.Pointer(value))
|
|
+}
|
|
+
|
|
func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
|
var value Termio
|
|
- err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
|
return &value, err
|
|
}
|
|
|
|
@@ -978,5 +981,75 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
|
|
delete(e.paths, s[i].Path)
|
|
}
|
|
}
|
|
+<<<<<<< HEAD
|
|
return int(got), err
|
|
+=======
|
|
+
|
|
+ if err = getmsg(fd, clp, datap, &flags); err != nil {
|
|
+ return nil, nil, 0, err
|
|
+ }
|
|
+
|
|
+ if len(cl) > 0 {
|
|
+ retCl = cl[:clp.Len]
|
|
+ }
|
|
+ if len(data) > 0 {
|
|
+ retData = data[:datap.Len]
|
|
+ }
|
|
+ return retCl, retData, flags, nil
|
|
+}
|
|
+
|
|
+func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
|
|
+ return ioctlRet(fd, req, uintptr(arg))
|
|
+}
|
|
+
|
|
+func IoctlSetString(fd int, req uint, val string) error {
|
|
+ bs := make([]byte, len(val)+1)
|
|
+ copy(bs[:len(bs)-1], val)
|
|
+ err := ioctlPtr(fd, req, unsafe.Pointer(&bs[0]))
|
|
+ runtime.KeepAlive(&bs[0])
|
|
+ return err
|
|
+}
|
|
+
|
|
+// Lifreq Helpers
|
|
+
|
|
+func (l *Lifreq) SetName(name string) error {
|
|
+ if len(name) >= len(l.Name) {
|
|
+ return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
|
|
+ }
|
|
+ for i := range name {
|
|
+ l.Name[i] = int8(name[i])
|
|
+ }
|
|
+ return nil
|
|
+}
|
|
+
|
|
+func (l *Lifreq) SetLifruInt(d int) {
|
|
+ *(*int)(unsafe.Pointer(&l.Lifru[0])) = d
|
|
+}
|
|
+
|
|
+func (l *Lifreq) GetLifruInt() int {
|
|
+ return *(*int)(unsafe.Pointer(&l.Lifru[0]))
|
|
+}
|
|
+
|
|
+func (l *Lifreq) SetLifruUint(d uint) {
|
|
+ *(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
|
|
+}
|
|
+
|
|
+func (l *Lifreq) GetLifruUint() uint {
|
|
+ return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
|
+}
|
|
+
|
|
+func IoctlLifreq(fd int, req uint, l *Lifreq) error {
|
|
+ return ioctlPtr(fd, req, unsafe.Pointer(l))
|
|
+}
|
|
+
|
|
+// Strioctl Helpers
|
|
+
|
|
+func (s *Strioctl) SetInt(i int) {
|
|
+ s.Len = int32(unsafe.Sizeof(i))
|
|
+ s.Dp = (*int8)(unsafe.Pointer(&i))
|
|
+}
|
|
+
|
|
+func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
|
|
+ return ioctlPtrRet(fd, req, unsafe.Pointer(s))
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
|
|
index f8616f454ec..21ac0fa1ab7 100644
|
|
--- a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
|
|
+++ b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
|
|
@@ -131,8 +131,7 @@ func anyToSockaddr(_ int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|
for n < int(pp.Len) && pp.Path[n] != 0 {
|
|
n++
|
|
}
|
|
- bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
- sa.Name = string(bytes)
|
|
+ sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
|
return sa, nil
|
|
|
|
case AF_INET:
|
|
@@ -206,6 +205,7 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) = SYS_MMAP
|
|
//sys munmap(addr uintptr, length uintptr) (err error) = SYS_MUNMAP
|
|
//sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL
|
|
+//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
|
|
|
//sys Access(path string, mode uint32) (err error) = SYS___ACCESS_A
|
|
//sys Chdir(path string) (err error) = SYS___CHDIR_A
|
|
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go
|
|
index 664db640ae7..fd1c3e36ab2 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zerrors_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go
|
|
@@ -70,6 +70,7 @@ const (
|
|
ALG_SET_DRBG_ENTROPY = 0x6
|
|
ALG_SET_IV = 0x2
|
|
ALG_SET_KEY = 0x1
|
|
+ ALG_SET_KEY_BY_KEY_SERIAL = 0x7
|
|
ALG_SET_OP = 0x3
|
|
ANON_INODE_FS_MAGIC = 0x9041934
|
|
ARPHRD_6LOWPAN = 0x339
|
|
@@ -454,6 +455,8 @@ const (
|
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
|
DEVLINK_GENL_NAME = "devlink"
|
|
DEVLINK_GENL_VERSION = 0x1
|
|
+ DEVLINK_PORT_FN_CAP_MIGRATABLE = 0x2
|
|
+ DEVLINK_PORT_FN_CAP_ROCE = 0x1
|
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
|
DEVLINK_SUPPORTED_FLASH_OVERWRITE_SECTIONS = 0x3
|
|
DEVMEM_MAGIC = 0x454d444d
|
|
@@ -872,6 +875,8 @@ const (
|
|
FSCRYPT_MODE_AES_128_CTS = 0x6
|
|
FSCRYPT_MODE_AES_256_CTS = 0x4
|
|
FSCRYPT_MODE_AES_256_XTS = 0x1
|
|
+ FSCRYPT_MODE_SM4_CTS = 0x8
|
|
+ FSCRYPT_MODE_SM4_XTS = 0x7
|
|
FSCRYPT_POLICY_FLAGS_PAD_16 = 0x2
|
|
FSCRYPT_POLICY_FLAGS_PAD_32 = 0x3
|
|
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
|
|
@@ -890,8 +895,6 @@ const (
|
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
|
- FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
|
- FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
|
FS_IOC_ADD_ENCRYPTION_KEY = 0xc0506617
|
|
FS_IOC_GET_ENCRYPTION_KEY_STATUS = 0xc080661a
|
|
FS_IOC_GET_ENCRYPTION_POLICY_EX = 0xc0096616
|
|
@@ -1374,6 +1377,7 @@ const (
|
|
LANDLOCK_ACCESS_FS_READ_FILE = 0x4
|
|
LANDLOCK_ACCESS_FS_REMOVE_DIR = 0x10
|
|
LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20
|
|
+ LANDLOCK_ACCESS_FS_TRUNCATE = 0x4000
|
|
LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2
|
|
LANDLOCK_CREATE_RULESET_VERSION = 0x1
|
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
|
@@ -1413,6 +1417,7 @@ const (
|
|
LWTUNNEL_IP_OPT_GENEVE_MAX = 0x3
|
|
LWTUNNEL_IP_OPT_VXLAN_MAX = 0x1
|
|
MADV_COLD = 0x14
|
|
+ MADV_COLLAPSE = 0x19
|
|
MADV_DODUMP = 0x11
|
|
MADV_DOFORK = 0xb
|
|
MADV_DONTDUMP = 0x10
|
|
@@ -1764,6 +1769,7 @@ const (
|
|
PACKET_FANOUT_DATA = 0x16
|
|
PACKET_FANOUT_EBPF = 0x7
|
|
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
|
+ PACKET_FANOUT_FLAG_IGNORE_OUTGOING = 0x4000
|
|
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
|
PACKET_FANOUT_FLAG_UNIQUEID = 0x2000
|
|
PACKET_FANOUT_HASH = 0x0
|
|
diff --git a/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
|
|
index bd001a6e1cc..97f20ca282f 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
|
|
@@ -15,12 +15,12 @@ type PtraceRegsArm struct {
|
|
|
|
// PtraceGetRegsArm fetches the registers used by arm binaries.
|
|
func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsArm sets the registers used by arm binaries.
|
|
func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
|
|
// PtraceRegsArm64 is the registers used by arm64 binaries.
|
|
@@ -33,10 +33,10 @@ type PtraceRegsArm64 struct {
|
|
|
|
// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
|
|
func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
|
|
func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go b/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go
|
|
index 6cb6d688aa4..834d2856dd4 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go
|
|
@@ -7,11 +7,11 @@ import "unsafe"
|
|
// PtraceGetRegSetArm64 fetches the registers used by arm64 binaries.
|
|
func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error {
|
|
iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))}
|
|
- return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec)))
|
|
+ return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
|
|
}
|
|
|
|
// PtraceSetRegSetArm64 sets the registers used by arm64 binaries.
|
|
func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error {
|
|
iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))}
|
|
- return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec)))
|
|
+ return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go
|
|
index c34d0639be3..0b5f7943054 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go
|
|
@@ -21,12 +21,12 @@ type PtraceRegsMips struct {
|
|
|
|
// PtraceGetRegsMips fetches the registers used by mips binaries.
|
|
func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsMips sets the registers used by mips binaries.
|
|
func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
|
|
// PtraceRegsMips64 is the registers used by mips64 binaries.
|
|
@@ -42,10 +42,10 @@ type PtraceRegsMips64 struct {
|
|
|
|
// PtraceGetRegsMips64 fetches the registers used by mips64 binaries.
|
|
func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsMips64 sets the registers used by mips64 binaries.
|
|
func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go
|
|
index 3ccf0c0c4a8..2807f7e6460 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go
|
|
@@ -21,12 +21,12 @@ type PtraceRegsMipsle struct {
|
|
|
|
// PtraceGetRegsMipsle fetches the registers used by mipsle binaries.
|
|
func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsMipsle sets the registers used by mipsle binaries.
|
|
func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
|
|
// PtraceRegsMips64le is the registers used by mips64le binaries.
|
|
@@ -42,10 +42,10 @@ type PtraceRegsMips64le struct {
|
|
|
|
// PtraceGetRegsMips64le fetches the registers used by mips64le binaries.
|
|
func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsMips64le sets the registers used by mips64le binaries.
|
|
func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go b/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go
|
|
index 7d65857004c..281ea64e34a 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go
|
|
@@ -31,12 +31,12 @@ type PtraceRegs386 struct {
|
|
|
|
// PtraceGetRegs386 fetches the registers used by 386 binaries.
|
|
func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegs386 sets the registers used by 386 binaries.
|
|
func PtraceSetRegs386(pid int, regs *PtraceRegs386) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
|
|
// PtraceRegsAmd64 is the registers used by amd64 binaries.
|
|
@@ -72,10 +72,10 @@ type PtraceRegsAmd64 struct {
|
|
|
|
// PtraceGetRegsAmd64 fetches the registers used by amd64 binaries.
|
|
func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error {
|
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
+ return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
|
}
|
|
|
|
// PtraceSetRegsAmd64 sets the registers used by amd64 binaries.
|
|
func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error {
|
|
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
+ return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
|
|
index 85e0cc38667..cdf85be67ae 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
|
|
@@ -223,6 +223,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(uintptr(arg)))
|
|
+ if r0 == -1 && er != nil {
|
|
+ err = er
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
|
|
r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
|
|
r = int(r0)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
|
|
index f1d4a73b089..a2fdb2d7e87 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
|
|
@@ -103,6 +103,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, e1 := callioctl_ptr(fd, int(req), arg)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
|
|
r0, e1 := callfcntl(fd, cmd, uintptr(arg))
|
|
r = int(r0)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
|
|
index 2caa5adf950..d32a84cae27 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
|
|
@@ -423,6 +423,13 @@ func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func callioctl_ptr(fd int, req int, arg unsafe.Pointer) (r1 uintptr, e1 Errno) {
|
|
+ r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
|
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, fd, uintptr(cmd), arg, 0, 0, 0)
|
|
return
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
|
|
index 944a714b1ad..d7d8baf819c 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
|
|
@@ -191,6 +191,14 @@ func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func callioctl_ptr(fd int, req int, arg unsafe.Pointer) (r1 uintptr, e1 Errno) {
|
|
+ r1 = uintptr(C.ioctl(C.int(fd), C.int(req), C.uintptr_t(uintptr(arg))))
|
|
+ e1 = syscall.GetErrno()
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
|
|
r1 = uintptr(C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg)))
|
|
e1 = syscall.GetErrno()
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
|
|
index 0ae0ed4cb8a..5ba0acc4352 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
|
|
@@ -694,6 +694,14 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
var libc_ioctl_trampoline_addr uintptr
|
|
|
|
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
|
@@ -2447,6 +2455,14 @@ func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+func ptrace1Ptr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
var libc_ptrace_trampoline_addr uintptr
|
|
|
|
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
|
|
index cf71be3edb3..34d256637d6 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
|
|
@@ -694,6 +694,14 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
var libc_ioctl_trampoline_addr uintptr
|
|
|
|
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
|
@@ -2447,6 +2455,14 @@ func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+func ptrace1Ptr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
var libc_ptrace_trampoline_addr uintptr
|
|
|
|
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
|
|
index 1b6eedfa611..609a8c4246e 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
|
|
@@ -436,6 +436,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
|
|
index 3e9bddb7b22..449ce497994 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
|
|
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func Access(path string, mode uint32) (err error) {
|
|
var _p0 *byte
|
|
_p0, err = BytePtrFromString(path)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
|
|
index c72a462b91e..3d605684c49 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
|
|
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func Access(path string, mode uint32) (err error) {
|
|
var _p0 *byte
|
|
_p0, err = BytePtrFromString(path)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
|
|
index 530d5df90c0..99fb7142a20 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
|
|
@@ -404,6 +404,35 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(mib) > 0 {
|
|
+ _p0 = unsafe.Pointer(&mib[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
if e1 != 0 {
|
|
@@ -414,6 +443,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func Access(path string, mode uint32) (err error) {
|
|
var _p0 *byte
|
|
_p0, err = BytePtrFromString(path)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
|
|
index 71e7df9e855..20b7ab592d2 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
|
|
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func Access(path string, mode uint32) (err error) {
|
|
var _p0 *byte
|
|
_p0, err = BytePtrFromString(path)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go
|
|
new file mode 100644
|
|
index 00000000000..09a53a616c0
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go
|
|
@@ -0,0 +1,1919 @@
|
|
+// go run mksyscall.go -tags freebsd,riscv64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_riscv64.go
|
|
+// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
+
|
|
+//go:build freebsd && riscv64
|
|
+// +build freebsd,riscv64
|
|
+
|
|
+package unix
|
|
+
|
|
+import (
|
|
+ "syscall"
|
|
+ "unsafe"
|
|
+)
|
|
+
|
|
+var _ syscall.Errno
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
|
|
+ r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func setgroups(ngid int, gid *_Gid_t) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
|
|
+ r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
|
|
+ wpid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func socket(domain int, typ int, proto int) (fd int, err error) {
|
|
+ r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Shutdown(s int, how int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
|
|
+ _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
|
|
+ r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func utimes(path string, timeval *[2]Timeval) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func futimes(fd int, timeval *[2]Timeval) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Madvise(b []byte, behav int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mlock(b []byte) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mlockall(flags int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mprotect(b []byte, prot int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Msync(b []byte, flags int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Munlock(b []byte) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Munlockall() (err error) {
|
|
+ _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pipe2(p *[2]_C_int, flags int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getcwd(buf []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(mib) > 0 {
|
|
+ _p0 = unsafe.Pointer(&mib[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Access(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func CapEnter() (err error) {
|
|
+ _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func capRightsGet(version int, fd int, rightsp *CapRights) (err error) {
|
|
+ _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func capRightsLimit(fd int, rightsp *CapRights) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chdir(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chflags(path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chmod(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chown(path string, uid int, gid int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chroot(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ClockGettime(clockid int32, time *Timespec) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Close(fd int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup(fd int) (nfd int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
|
|
+ nfd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup2(from int, to int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Exit(code int) {
|
|
+ Syscall(SYS_EXIT, uintptr(code), 0, 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(file)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(file)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(file)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(file)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(attrname)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchdir(fd int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchflags(fd int, flags int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchmod(fd int, mode uint32) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchown(fd int, uid int, gid int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Flock(fd int, how int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fpathconf(fd int, name int) (val int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
|
|
+ val = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstat(fd int, stat *Stat_t) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fsync(fd int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Ftruncate(fd int, length int64) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getdtablesize() (size int) {
|
|
+ r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
|
|
+ size = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getegid() (egid int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
|
|
+ egid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Geteuid() (uid int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
|
|
+ uid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getgid() (gid int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
|
|
+ gid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpgid(pid int) (pgid int, err error) {
|
|
+ r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
|
|
+ pgid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpgrp() (pgrp int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
|
|
+ pgrp = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpid() (pid int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
|
|
+ pid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getppid() (ppid int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
|
|
+ ppid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpriority(which int, who int) (prio int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
|
|
+ prio = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrlimit(which int, lim *Rlimit) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrusage(who int, rusage *Rusage) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getsid(pid int) (sid int, err error) {
|
|
+ r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
|
|
+ sid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Gettimeofday(tv *Timeval) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getuid() (uid int) {
|
|
+ r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
|
|
+ uid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Issetugid() (tainted bool) {
|
|
+ r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
|
|
+ tainted = bool(r0 != 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Kill(pid int, signum syscall.Signal) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Kqueue() (fd int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Lchown(path string, uid int, gid int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Link(path string, link string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Listen(s int, backlog int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkdir(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkfifo(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Pathconf(path string, name int) (val int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
|
+ val = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pread(fd int, p []byte, offset int64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func read(fd int, p []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Readlink(path string, buf []byte) (n int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p1 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p1 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Rename(from string, to string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(from)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(to)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(from)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(to)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Revoke(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Rmdir(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
|
|
+ newoffset = int64(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
|
+ r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setegid(egid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Seteuid(euid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setgid(gid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setlogin(name string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(name)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setpgid(pid int, pgid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setpriority(which int, who int, prio int) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setregid(rgid int, egid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setreuid(ruid int, euid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setresgid(rgid int, egid int, sgid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setresuid(ruid int, euid int, suid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setsid() (pid int, err error) {
|
|
+ r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
|
+ pid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Settimeofday(tp *Timeval) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setuid(uid int) (err error) {
|
|
+ _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Statfs(path string, stat *Statfs_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Symlink(path string, link string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(oldpath)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(newpath)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Sync() (err error) {
|
|
+ _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Truncate(path string, length int64) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Umask(newmask int) (oldmask int) {
|
|
+ r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
|
|
+ oldmask = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Undelete(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unlink(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unlinkat(dirfd int, path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unmount(path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func write(fd int, p []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
|
+ r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
|
|
+ ret = uintptr(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func munmap(addr uintptr, length uintptr) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|
+ r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
|
|
+ r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
|
|
+ nfd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go
|
|
index 30fa4055ec1..d89176d2178 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go
|
|
@@ -369,6 +369,16 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
|
|
var _p0 *byte
|
|
_p0, err = BytePtrFromString(arg)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
|
|
index 51d0c0742bf..3217e01e89a 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
|
|
@@ -405,6 +405,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
|
|
index df2efb6db3f..8955f5b765c 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
|
|
@@ -405,6 +405,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
|
|
index c8536c2c9f0..1ae5b49c855 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
|
|
@@ -405,6 +405,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
|
|
index 8b981bfc2eb..d7ac6adc535 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
|
|
@@ -405,6 +405,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
var _p0 unsafe.Pointer
|
|
if len(mib) > 0 {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
|
|
index 8f80f4ade51..7732b2d2b8a 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
|
|
@@ -403,6 +403,21 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
|
|
index 3a47aca7bf7..43a0bed870b 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
|
|
@@ -403,6 +403,21 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
|
|
index 883a9b45e8e..11cda1e41f3 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
|
|
@@ -403,6 +403,21 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
|
|
index aac7fdc95e2..db53e1145c6 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
|
|
@@ -403,6 +403,21 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go
|
|
index 8776187462b..2f665ede518 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go
|
|
@@ -403,6 +403,21 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
return
|
|
}
|
|
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go
|
|
new file mode 100644
|
|
index 00000000000..47a07ee0c27
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go
|
|
@@ -0,0 +1,2243 @@
|
|
+// go run mksyscall.go -openbsd -libc -tags openbsd,ppc64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_ppc64.go
|
|
+// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
+
|
|
+//go:build openbsd && ppc64
|
|
+// +build openbsd,ppc64
|
|
+
|
|
+package unix
|
|
+
|
|
+import (
|
|
+ "syscall"
|
|
+ "unsafe"
|
|
+)
|
|
+
|
|
+var _ syscall.Errno
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getgroups_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func setgroups(ngid int, gid *_Gid_t) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setgroups_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
|
|
+ wpid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_wait4_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_accept_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_accept accept "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_bind_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_bind bind "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_connect_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_connect connect "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func socket(domain int, typ int, proto int) (fd int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_socket_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_socket socket "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
|
|
+ _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getsockopt_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
|
|
+ _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setsockopt_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpeername_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getsockname_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Shutdown(s int, how int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_shutdown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_socketpair_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_recvfrom_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sendto_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sendto sendto "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_recvmsg_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sendmsg_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_kevent_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_kevent kevent "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func utimes(path string, timeval *[2]Timeval) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_utimes_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_utimes utimes "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func futimes(fd int, timeval *[2]Timeval) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_futimes_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_futimes futimes "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_poll_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_poll poll "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Madvise(b []byte, behav int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_madvise_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_madvise madvise "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mlock(b []byte) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mlock_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mlock mlock "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mlockall(flags int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mlockall_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mprotect(b []byte, prot int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mprotect_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Msync(b []byte, flags int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_msync_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_msync msync "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Munlock(b []byte) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_munlock_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_munlock munlock "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Munlockall() (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_munlockall_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pipe2(p *[2]_C_int, flags int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pipe2_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getdents(fd int, buf []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getdents_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getdents getdents "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getcwd(buf []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getcwd_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(mib) > 0 {
|
|
+ _p0 = unsafe.Pointer(&mib[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sysctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ppoll_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Access(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_access_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_access access "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_adjtime_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chdir(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chdir chdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chflags(path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chflags_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chflags chflags "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chmod(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chmod_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chmod chmod "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chown(path string, uid int, gid int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chown chown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chroot(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chroot_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chroot chroot "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ClockGettime(clockid int32, time *Timespec) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_clock_gettime_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Close(fd int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_close_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_close close "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup(fd int) (nfd int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ nfd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_dup_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_dup dup "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup2(from int, to int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_dup2_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup3(from int, to int, flags int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_dup3_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Exit(code int) {
|
|
+ syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_exit_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_exit exit "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_faccessat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchdir(fd int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchflags(fd int, flags int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchflags_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchmod(fd int, mode uint32) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchmod_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchmodat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchown(fd int, uid int, gid int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchown fchown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchownat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Flock(fd int, how int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_flock_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_flock flock "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fpathconf(fd int, name int) (val int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0)
|
|
+ val = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fpathconf_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstat(fd int, stat *Stat_t) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fstat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fstat fstat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fstatat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fstatfs_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fsync(fd int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fsync_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fsync fsync "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Ftruncate(fd int, length int64) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ftruncate_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getegid() (egid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
|
|
+ egid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getegid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getegid getegid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Geteuid() (uid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
|
|
+ uid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_geteuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getgid() (gid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
|
|
+ gid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getgid getgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpgid(pid int) (pgid int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0)
|
|
+ pgid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpgrp() (pgrp int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
|
|
+ pgrp = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpgrp_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpid() (pid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
|
|
+ pid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpid getpid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getppid() (ppid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
|
|
+ ppid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getppid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getppid getppid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpriority(which int, who int) (prio int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0)
|
|
+ prio = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpriority_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrlimit(which int, lim *Rlimit) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getrlimit_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrtable() (rtable int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0)
|
|
+ rtable = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getrtable_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrusage(who int, rusage *Rusage) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getrusage_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getsid(pid int) (sid int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0)
|
|
+ sid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getsid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getsid getsid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Gettimeofday(tv *Timeval) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_gettimeofday_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getuid() (uid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
|
|
+ uid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getuid getuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Issetugid() (tainted bool) {
|
|
+ r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
|
|
+ tainted = bool(r0 != 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_issetugid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Kill(pid int, signum syscall.Signal) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_kill_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_kill kill "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Kqueue() (fd int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0)
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_kqueue_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Lchown(path string, uid int, gid int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_lchown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_lchown lchown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Link(path string, link string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_link_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_link link "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_linkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_linkat linkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Listen(s int, backlog int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_listen_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_listen listen "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Lstat(path string, stat *Stat_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_lstat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_lstat lstat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkdir(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkdirat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkfifo(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkfifo_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkfifoat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mknod(path string, mode uint32, dev int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mknod_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mknod mknod "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mknodat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_nanosleep_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_open_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_open open "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_openat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_openat openat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Pathconf(path string, name int) (val int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
|
+ val = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pathconf_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pread(fd int, p []byte, offset int64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pread_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pread pread "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pwrite_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func read(fd int, p []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_read_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_read read "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Readlink(path string, buf []byte) (n int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p1 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_readlink_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_readlink readlink "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p1 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_readlinkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Rename(from string, to string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(from)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(to)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_rename_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_rename rename "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(from)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(to)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_renameat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_renameat renameat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Revoke(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_revoke_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_revoke revoke "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Rmdir(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_rmdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence))
|
|
+ newoffset = int64(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_lseek_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_lseek lseek "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_select_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_select select "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setegid(egid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setegid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setegid setegid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Seteuid(euid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_seteuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setgid(gid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setgid setgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setlogin(name string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(name)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setlogin_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setpgid(pid int, pgid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setpgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setpriority(which int, who int, prio int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setpriority_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setregid(rgid int, egid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setregid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setregid setregid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setreuid(ruid int, euid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setreuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setresgid(rgid int, egid int, sgid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setresgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setresuid(ruid int, euid int, suid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setresuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setrlimit_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setrtable(rtable int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setrtable_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setsid() (pid int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
|
|
+ pid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setsid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setsid setsid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Settimeofday(tp *Timeval) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_settimeofday_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setuid(uid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setuid setuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Stat(path string, stat *Stat_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_stat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_stat stat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Statfs(path string, stat *Statfs_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_statfs_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_statfs statfs "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Symlink(path string, link string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_symlink_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_symlink symlink "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(oldpath)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(newpath)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_symlinkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Sync() (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sync_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sync sync "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Truncate(path string, length int64) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_truncate_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_truncate truncate "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Umask(newmask int) (oldmask int) {
|
|
+ r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0)
|
|
+ oldmask = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_umask_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_umask umask "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unlink(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_unlink_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_unlink unlink "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unlinkat(dirfd int, path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_unlinkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unmount(path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_unmount_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_unmount unmount "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func write(fd int, p []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_write_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_write write "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
|
|
+ ret = uintptr(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mmap_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mmap mmap "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func munmap(addr uintptr, length uintptr) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_munmap_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_munmap munmap "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_utimensat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go
|
|
new file mode 100644
|
|
index 00000000000..573378fdb96
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go
|
|
@@ -0,0 +1,2243 @@
|
|
+// go run mksyscall.go -openbsd -libc -tags openbsd,riscv64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_riscv64.go
|
|
+// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
+
|
|
+//go:build openbsd && riscv64
|
|
+// +build openbsd,riscv64
|
|
+
|
|
+package unix
|
|
+
|
|
+import (
|
|
+ "syscall"
|
|
+ "unsafe"
|
|
+)
|
|
+
|
|
+var _ syscall.Errno
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getgroups_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func setgroups(ngid int, gid *_Gid_t) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setgroups_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
|
|
+ wpid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_wait4_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_accept_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_accept accept "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_bind_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_bind bind "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_connect_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_connect connect "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func socket(domain int, typ int, proto int) (fd int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_socket_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_socket socket "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
|
|
+ _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getsockopt_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
|
|
+ _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setsockopt_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpeername_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getsockname_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Shutdown(s int, how int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_shutdown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_socketpair_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_recvfrom_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sendto_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sendto sendto "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_recvmsg_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sendmsg_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_kevent_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_kevent kevent "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func utimes(path string, timeval *[2]Timeval) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_utimes_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_utimes utimes "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func futimes(fd int, timeval *[2]Timeval) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_futimes_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_futimes futimes "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_poll_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_poll poll "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Madvise(b []byte, behav int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_madvise_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_madvise madvise "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mlock(b []byte) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mlock_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mlock mlock "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mlockall(flags int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mlockall_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mprotect(b []byte, prot int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mprotect_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Msync(b []byte, flags int) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_msync_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_msync msync "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Munlock(b []byte) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(b) > 0 {
|
|
+ _p0 = unsafe.Pointer(&b[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_munlock_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_munlock munlock "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Munlockall() (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_munlockall_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pipe2(p *[2]_C_int, flags int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pipe2_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getdents(fd int, buf []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getdents_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getdents getdents "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getcwd(buf []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p0 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getcwd_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ioctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(mib) > 0 {
|
|
+ _p0 = unsafe.Pointer(&mib[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sysctl_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ppoll_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Access(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_access_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_access access "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_adjtime_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chdir(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chdir chdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chflags(path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chflags_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chflags chflags "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chmod(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chmod_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chmod chmod "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chown(path string, uid int, gid int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chown chown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Chroot(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_chroot_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_chroot chroot "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func ClockGettime(clockid int32, time *Timespec) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_clock_gettime_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Close(fd int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_close_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_close close "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup(fd int) (nfd int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ nfd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_dup_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_dup dup "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup2(from int, to int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_dup2_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Dup3(from int, to int, flags int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_dup3_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Exit(code int) {
|
|
+ syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_exit_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_exit exit "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_faccessat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchdir(fd int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchflags(fd int, flags int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchflags_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchmod(fd int, mode uint32) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchmod_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchmodat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchown(fd int, uid int, gid int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchown fchown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fchownat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Flock(fd int, how int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_flock_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_flock flock "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fpathconf(fd int, name int) (val int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0)
|
|
+ val = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fpathconf_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstat(fd int, stat *Stat_t) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fstat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fstat fstat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fstatat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fstatfs_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Fsync(fd int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_fsync_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_fsync fsync "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Ftruncate(fd int, length int64) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_ftruncate_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getegid() (egid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
|
|
+ egid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getegid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getegid getegid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Geteuid() (uid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
|
|
+ uid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_geteuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getgid() (gid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
|
|
+ gid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getgid getgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpgid(pid int) (pgid int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0)
|
|
+ pgid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpgrp() (pgrp int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
|
|
+ pgrp = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpgrp_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpid() (pid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
|
|
+ pid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpid getpid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getppid() (ppid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
|
|
+ ppid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getppid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getppid getppid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getpriority(which int, who int) (prio int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0)
|
|
+ prio = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getpriority_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrlimit(which int, lim *Rlimit) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getrlimit_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrtable() (rtable int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0)
|
|
+ rtable = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getrtable_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getrusage(who int, rusage *Rusage) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getrusage_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getsid(pid int) (sid int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0)
|
|
+ sid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getsid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getsid getsid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Gettimeofday(tv *Timeval) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_gettimeofday_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Getuid() (uid int) {
|
|
+ r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
|
|
+ uid = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_getuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_getuid getuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Issetugid() (tainted bool) {
|
|
+ r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
|
|
+ tainted = bool(r0 != 0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_issetugid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Kill(pid int, signum syscall.Signal) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_kill_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_kill kill "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Kqueue() (fd int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0)
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_kqueue_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Lchown(path string, uid int, gid int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_lchown_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_lchown lchown "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Link(path string, link string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_link_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_link link "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_linkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_linkat linkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Listen(s int, backlog int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_listen_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_listen listen "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Lstat(path string, stat *Stat_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_lstat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_lstat lstat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkdir(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkdirat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkfifo(path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkfifo_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mkfifoat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mknod(path string, mode uint32, dev int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mknod_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mknod mknod "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mknodat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_nanosleep_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_open_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_open open "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
|
+ fd = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_openat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_openat openat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Pathconf(path string, name int) (val int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
|
+ val = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pathconf_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pread(fd int, p []byte, offset int64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pread_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pread pread "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_pwrite_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func read(fd int, p []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_read_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_read read "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Readlink(path string, buf []byte) (n int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p1 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_readlink_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_readlink readlink "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 unsafe.Pointer
|
|
+ if len(buf) > 0 {
|
|
+ _p1 = unsafe.Pointer(&buf[0])
|
|
+ } else {
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_readlinkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Rename(from string, to string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(from)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(to)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_rename_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_rename rename "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(from)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(to)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_renameat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_renameat renameat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Revoke(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_revoke_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_revoke revoke "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Rmdir(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_rmdir_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence))
|
|
+ newoffset = int64(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_lseek_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_lseek lseek "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_select_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_select select "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setegid(egid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setegid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setegid setegid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Seteuid(euid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_seteuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setgid(gid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setgid setgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setlogin(name string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(name)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setlogin_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setpgid(pid int, pgid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setpgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setpriority(which int, who int, prio int) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setpriority_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setregid(rgid int, egid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setregid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setregid setregid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setreuid(ruid int, euid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setreuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setresgid(rgid int, egid int, sgid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setresgid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setresuid(ruid int, euid int, suid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setresuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setrlimit_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setrtable(rtable int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setrtable_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setsid() (pid int, err error) {
|
|
+ r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
|
|
+ pid = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setsid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setsid setsid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Settimeofday(tp *Timeval) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_settimeofday_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Setuid(uid int) (err error) {
|
|
+ _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_setuid_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_setuid setuid "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Stat(path string, stat *Stat_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_stat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_stat stat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Statfs(path string, stat *Statfs_t) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_statfs_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_statfs statfs "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Symlink(path string, link string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(link)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_symlink_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_symlink symlink "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(oldpath)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ var _p1 *byte
|
|
+ _p1, err = BytePtrFromString(newpath)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_symlinkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Sync() (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_sync_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_sync sync "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Truncate(path string, length int64) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_truncate_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_truncate truncate "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Umask(newmask int) (oldmask int) {
|
|
+ r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0)
|
|
+ oldmask = int(r0)
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_umask_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_umask umask "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unlink(path string) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_unlink_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_unlink unlink "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unlinkat(dirfd int, path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_unlinkat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func Unmount(path string, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_unmount_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_unmount unmount "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func write(fd int, p []byte) (n int, err error) {
|
|
+ var _p0 unsafe.Pointer
|
|
+ if len(p) > 0 {
|
|
+ _p0 = unsafe.Pointer(&p[0])
|
|
+ } else {
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
+ }
|
|
+ r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_write_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_write write "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
|
+ r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
|
|
+ ret = uintptr(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_mmap_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_mmap mmap "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func munmap(addr uintptr, length uintptr) (err error) {
|
|
+ _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_munmap_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_munmap munmap "libc.so"
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|
+ r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
|
|
+ n = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
+func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
|
+ var _p0 *byte
|
|
+ _p0, err = BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+ _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+var libc_utimensat_trampoline_addr uintptr
|
|
+
|
|
+//go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
|
|
index b5f926cee2a..ad349ed8cb2 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
|
|
@@ -645,6 +645,17 @@ func ioctlRet(fd int, req uint, arg uintptr) (ret int, err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtrRet(fd int, req uint, arg unsafe.Pointer) (ret int, err error) {
|
|
+ r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
|
|
+ ret = int(r0)
|
|
+ if e1 != 0 {
|
|
+ err = e1
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpoll)), 3, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout), 0, 0, 0)
|
|
n = int(r0)
|
|
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
|
|
index f2079457c6b..07bfe2ef9ad 100644
|
|
--- a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
|
|
+++ b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
|
|
@@ -267,6 +267,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
+func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
|
+ _, _, e1 := syscall_syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
|
+ if e1 != 0 {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
+
|
|
func Access(path string, mode uint32) (err error) {
|
|
var _p0 *byte
|
|
_p0, err = BytePtrFromString(path)
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
|
|
index 4eec078e524..dc3387462ab 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
|
|
@@ -434,7 +434,7 @@ type FpReg struct {
|
|
|
|
type PtraceIoDesc struct {
|
|
Op int32
|
|
- Offs *byte
|
|
+ Offs uintptr
|
|
Addr *byte
|
|
Len uint32
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
|
|
index 7622904a532..af366c512ef 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
|
|
@@ -437,7 +437,7 @@ type FpReg struct {
|
|
|
|
type PtraceIoDesc struct {
|
|
Op int32
|
|
- Offs *byte
|
|
+ Offs uintptr
|
|
Addr *byte
|
|
Len uint64
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
|
|
index 19223ce8ecf..379d29b0a33 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
|
|
@@ -416,7 +416,7 @@ type FpReg struct {
|
|
|
|
type PtraceIoDesc struct {
|
|
Op int32
|
|
- Offs *byte
|
|
+ Offs uintptr
|
|
Addr *byte
|
|
Len uint32
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
|
|
index 8e3e33f6790..4a779629db8 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
|
|
@@ -415,7 +415,7 @@ type FpReg struct {
|
|
|
|
type PtraceIoDesc struct {
|
|
Op int32
|
|
- Offs *byte
|
|
+ Offs uintptr
|
|
Addr *byte
|
|
Len uint64
|
|
}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go
|
|
new file mode 100644
|
|
index 00000000000..698dc975e92
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go
|
|
@@ -0,0 +1,638 @@
|
|
+// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
|
|
+// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
+
|
|
+//go:build riscv64 && freebsd
|
|
+// +build riscv64,freebsd
|
|
+
|
|
+package unix
|
|
+
|
|
+const (
|
|
+ SizeofPtr = 0x8
|
|
+ SizeofShort = 0x2
|
|
+ SizeofInt = 0x4
|
|
+ SizeofLong = 0x8
|
|
+ SizeofLongLong = 0x8
|
|
+)
|
|
+
|
|
+type (
|
|
+ _C_short int16
|
|
+ _C_int int32
|
|
+ _C_long int64
|
|
+ _C_long_long int64
|
|
+)
|
|
+
|
|
+type Timespec struct {
|
|
+ Sec int64
|
|
+ Nsec int64
|
|
+}
|
|
+
|
|
+type Timeval struct {
|
|
+ Sec int64
|
|
+ Usec int64
|
|
+}
|
|
+
|
|
+type Time_t int64
|
|
+
|
|
+type Rusage struct {
|
|
+ Utime Timeval
|
|
+ Stime Timeval
|
|
+ Maxrss int64
|
|
+ Ixrss int64
|
|
+ Idrss int64
|
|
+ Isrss int64
|
|
+ Minflt int64
|
|
+ Majflt int64
|
|
+ Nswap int64
|
|
+ Inblock int64
|
|
+ Oublock int64
|
|
+ Msgsnd int64
|
|
+ Msgrcv int64
|
|
+ Nsignals int64
|
|
+ Nvcsw int64
|
|
+ Nivcsw int64
|
|
+}
|
|
+
|
|
+type Rlimit struct {
|
|
+ Cur int64
|
|
+ Max int64
|
|
+}
|
|
+
|
|
+type _Gid_t uint32
|
|
+
|
|
+const (
|
|
+ _statfsVersion = 0x20140518
|
|
+ _dirblksiz = 0x400
|
|
+)
|
|
+
|
|
+type Stat_t struct {
|
|
+ Dev uint64
|
|
+ Ino uint64
|
|
+ Nlink uint64
|
|
+ Mode uint16
|
|
+ _0 int16
|
|
+ Uid uint32
|
|
+ Gid uint32
|
|
+ _1 int32
|
|
+ Rdev uint64
|
|
+ Atim Timespec
|
|
+ Mtim Timespec
|
|
+ Ctim Timespec
|
|
+ Btim Timespec
|
|
+ Size int64
|
|
+ Blocks int64
|
|
+ Blksize int32
|
|
+ Flags uint32
|
|
+ Gen uint64
|
|
+ Spare [10]uint64
|
|
+}
|
|
+
|
|
+type Statfs_t struct {
|
|
+ Version uint32
|
|
+ Type uint32
|
|
+ Flags uint64
|
|
+ Bsize uint64
|
|
+ Iosize uint64
|
|
+ Blocks uint64
|
|
+ Bfree uint64
|
|
+ Bavail int64
|
|
+ Files uint64
|
|
+ Ffree int64
|
|
+ Syncwrites uint64
|
|
+ Asyncwrites uint64
|
|
+ Syncreads uint64
|
|
+ Asyncreads uint64
|
|
+ Spare [10]uint64
|
|
+ Namemax uint32
|
|
+ Owner uint32
|
|
+ Fsid Fsid
|
|
+ Charspare [80]int8
|
|
+ Fstypename [16]byte
|
|
+ Mntfromname [1024]byte
|
|
+ Mntonname [1024]byte
|
|
+}
|
|
+
|
|
+type Flock_t struct {
|
|
+ Start int64
|
|
+ Len int64
|
|
+ Pid int32
|
|
+ Type int16
|
|
+ Whence int16
|
|
+ Sysid int32
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type Dirent struct {
|
|
+ Fileno uint64
|
|
+ Off int64
|
|
+ Reclen uint16
|
|
+ Type uint8
|
|
+ Pad0 uint8
|
|
+ Namlen uint16
|
|
+ Pad1 uint16
|
|
+ Name [256]int8
|
|
+}
|
|
+
|
|
+type Fsid struct {
|
|
+ Val [2]int32
|
|
+}
|
|
+
|
|
+const (
|
|
+ PathMax = 0x400
|
|
+)
|
|
+
|
|
+const (
|
|
+ FADV_NORMAL = 0x0
|
|
+ FADV_RANDOM = 0x1
|
|
+ FADV_SEQUENTIAL = 0x2
|
|
+ FADV_WILLNEED = 0x3
|
|
+ FADV_DONTNEED = 0x4
|
|
+ FADV_NOREUSE = 0x5
|
|
+)
|
|
+
|
|
+type RawSockaddrInet4 struct {
|
|
+ Len uint8
|
|
+ Family uint8
|
|
+ Port uint16
|
|
+ Addr [4]byte /* in_addr */
|
|
+ Zero [8]int8
|
|
+}
|
|
+
|
|
+type RawSockaddrInet6 struct {
|
|
+ Len uint8
|
|
+ Family uint8
|
|
+ Port uint16
|
|
+ Flowinfo uint32
|
|
+ Addr [16]byte /* in6_addr */
|
|
+ Scope_id uint32
|
|
+}
|
|
+
|
|
+type RawSockaddrUnix struct {
|
|
+ Len uint8
|
|
+ Family uint8
|
|
+ Path [104]int8
|
|
+}
|
|
+
|
|
+type RawSockaddrDatalink struct {
|
|
+ Len uint8
|
|
+ Family uint8
|
|
+ Index uint16
|
|
+ Type uint8
|
|
+ Nlen uint8
|
|
+ Alen uint8
|
|
+ Slen uint8
|
|
+ Data [46]int8
|
|
+}
|
|
+
|
|
+type RawSockaddr struct {
|
|
+ Len uint8
|
|
+ Family uint8
|
|
+ Data [14]int8
|
|
+}
|
|
+
|
|
+type RawSockaddrAny struct {
|
|
+ Addr RawSockaddr
|
|
+ Pad [92]int8
|
|
+}
|
|
+
|
|
+type _Socklen uint32
|
|
+
|
|
+type Xucred struct {
|
|
+ Version uint32
|
|
+ Uid uint32
|
|
+ Ngroups int16
|
|
+ Groups [16]uint32
|
|
+ _ *byte
|
|
+}
|
|
+
|
|
+type Linger struct {
|
|
+ Onoff int32
|
|
+ Linger int32
|
|
+}
|
|
+
|
|
+type Iovec struct {
|
|
+ Base *byte
|
|
+ Len uint64
|
|
+}
|
|
+
|
|
+type IPMreq struct {
|
|
+ Multiaddr [4]byte /* in_addr */
|
|
+ Interface [4]byte /* in_addr */
|
|
+}
|
|
+
|
|
+type IPMreqn struct {
|
|
+ Multiaddr [4]byte /* in_addr */
|
|
+ Address [4]byte /* in_addr */
|
|
+ Ifindex int32
|
|
+}
|
|
+
|
|
+type IPv6Mreq struct {
|
|
+ Multiaddr [16]byte /* in6_addr */
|
|
+ Interface uint32
|
|
+}
|
|
+
|
|
+type Msghdr struct {
|
|
+ Name *byte
|
|
+ Namelen uint32
|
|
+ Iov *Iovec
|
|
+ Iovlen int32
|
|
+ Control *byte
|
|
+ Controllen uint32
|
|
+ Flags int32
|
|
+}
|
|
+
|
|
+type Cmsghdr struct {
|
|
+ Len uint32
|
|
+ Level int32
|
|
+ Type int32
|
|
+}
|
|
+
|
|
+type Inet6Pktinfo struct {
|
|
+ Addr [16]byte /* in6_addr */
|
|
+ Ifindex uint32
|
|
+}
|
|
+
|
|
+type IPv6MTUInfo struct {
|
|
+ Addr RawSockaddrInet6
|
|
+ Mtu uint32
|
|
+}
|
|
+
|
|
+type ICMPv6Filter struct {
|
|
+ Filt [8]uint32
|
|
+}
|
|
+
|
|
+const (
|
|
+ SizeofSockaddrInet4 = 0x10
|
|
+ SizeofSockaddrInet6 = 0x1c
|
|
+ SizeofSockaddrAny = 0x6c
|
|
+ SizeofSockaddrUnix = 0x6a
|
|
+ SizeofSockaddrDatalink = 0x36
|
|
+ SizeofXucred = 0x58
|
|
+ SizeofLinger = 0x8
|
|
+ SizeofIovec = 0x10
|
|
+ SizeofIPMreq = 0x8
|
|
+ SizeofIPMreqn = 0xc
|
|
+ SizeofIPv6Mreq = 0x14
|
|
+ SizeofMsghdr = 0x30
|
|
+ SizeofCmsghdr = 0xc
|
|
+ SizeofInet6Pktinfo = 0x14
|
|
+ SizeofIPv6MTUInfo = 0x20
|
|
+ SizeofICMPv6Filter = 0x20
|
|
+)
|
|
+
|
|
+const (
|
|
+ PTRACE_TRACEME = 0x0
|
|
+ PTRACE_CONT = 0x7
|
|
+ PTRACE_KILL = 0x8
|
|
+)
|
|
+
|
|
+type PtraceLwpInfoStruct struct {
|
|
+ Lwpid int32
|
|
+ Event int32
|
|
+ Flags int32
|
|
+ Sigmask Sigset_t
|
|
+ Siglist Sigset_t
|
|
+ Siginfo __PtraceSiginfo
|
|
+ Tdname [20]int8
|
|
+ Child_pid int32
|
|
+ Syscall_code uint32
|
|
+ Syscall_narg uint32
|
|
+}
|
|
+
|
|
+type __Siginfo struct {
|
|
+ Signo int32
|
|
+ Errno int32
|
|
+ Code int32
|
|
+ Pid int32
|
|
+ Uid uint32
|
|
+ Status int32
|
|
+ Addr *byte
|
|
+ Value [8]byte
|
|
+ _ [40]byte
|
|
+}
|
|
+
|
|
+type __PtraceSiginfo struct {
|
|
+ Signo int32
|
|
+ Errno int32
|
|
+ Code int32
|
|
+ Pid int32
|
|
+ Uid uint32
|
|
+ Status int32
|
|
+ Addr uintptr
|
|
+ Value [8]byte
|
|
+ _ [40]byte
|
|
+}
|
|
+
|
|
+type Sigset_t struct {
|
|
+ Val [4]uint32
|
|
+}
|
|
+
|
|
+type Reg struct {
|
|
+ Ra uint64
|
|
+ Sp uint64
|
|
+ Gp uint64
|
|
+ Tp uint64
|
|
+ T [7]uint64
|
|
+ S [12]uint64
|
|
+ A [8]uint64
|
|
+ Sepc uint64
|
|
+ Sstatus uint64
|
|
+}
|
|
+
|
|
+type FpReg struct {
|
|
+ X [32][2]uint64
|
|
+ Fcsr uint64
|
|
+}
|
|
+
|
|
+type FpExtendedPrecision struct{}
|
|
+
|
|
+type PtraceIoDesc struct {
|
|
+ Op int32
|
|
+ Offs uintptr
|
|
+ Addr *byte
|
|
+ Len uint64
|
|
+}
|
|
+
|
|
+type Kevent_t struct {
|
|
+ Ident uint64
|
|
+ Filter int16
|
|
+ Flags uint16
|
|
+ Fflags uint32
|
|
+ Data int64
|
|
+ Udata *byte
|
|
+ Ext [4]uint64
|
|
+}
|
|
+
|
|
+type FdSet struct {
|
|
+ Bits [16]uint64
|
|
+}
|
|
+
|
|
+const (
|
|
+ sizeofIfMsghdr = 0xa8
|
|
+ SizeofIfMsghdr = 0xa8
|
|
+ sizeofIfData = 0x98
|
|
+ SizeofIfData = 0x98
|
|
+ SizeofIfaMsghdr = 0x14
|
|
+ SizeofIfmaMsghdr = 0x10
|
|
+ SizeofIfAnnounceMsghdr = 0x18
|
|
+ SizeofRtMsghdr = 0x98
|
|
+ SizeofRtMetrics = 0x70
|
|
+)
|
|
+
|
|
+type ifMsghdr struct {
|
|
+ Msglen uint16
|
|
+ Version uint8
|
|
+ Type uint8
|
|
+ Addrs int32
|
|
+ Flags int32
|
|
+ Index uint16
|
|
+ _ uint16
|
|
+ Data ifData
|
|
+}
|
|
+
|
|
+type IfMsghdr struct {
|
|
+ Msglen uint16
|
|
+ Version uint8
|
|
+ Type uint8
|
|
+ Addrs int32
|
|
+ Flags int32
|
|
+ Index uint16
|
|
+ Data IfData
|
|
+}
|
|
+
|
|
+type ifData struct {
|
|
+ Type uint8
|
|
+ Physical uint8
|
|
+ Addrlen uint8
|
|
+ Hdrlen uint8
|
|
+ Link_state uint8
|
|
+ Vhid uint8
|
|
+ Datalen uint16
|
|
+ Mtu uint32
|
|
+ Metric uint32
|
|
+ Baudrate uint64
|
|
+ Ipackets uint64
|
|
+ Ierrors uint64
|
|
+ Opackets uint64
|
|
+ Oerrors uint64
|
|
+ Collisions uint64
|
|
+ Ibytes uint64
|
|
+ Obytes uint64
|
|
+ Imcasts uint64
|
|
+ Omcasts uint64
|
|
+ Iqdrops uint64
|
|
+ Oqdrops uint64
|
|
+ Noproto uint64
|
|
+ Hwassist uint64
|
|
+ _ [8]byte
|
|
+ _ [16]byte
|
|
+}
|
|
+
|
|
+type IfData struct {
|
|
+ Type uint8
|
|
+ Physical uint8
|
|
+ Addrlen uint8
|
|
+ Hdrlen uint8
|
|
+ Link_state uint8
|
|
+ Spare_char1 uint8
|
|
+ Spare_char2 uint8
|
|
+ Datalen uint8
|
|
+ Mtu uint64
|
|
+ Metric uint64
|
|
+ Baudrate uint64
|
|
+ Ipackets uint64
|
|
+ Ierrors uint64
|
|
+ Opackets uint64
|
|
+ Oerrors uint64
|
|
+ Collisions uint64
|
|
+ Ibytes uint64
|
|
+ Obytes uint64
|
|
+ Imcasts uint64
|
|
+ Omcasts uint64
|
|
+ Iqdrops uint64
|
|
+ Noproto uint64
|
|
+ Hwassist uint64
|
|
+ Epoch int64
|
|
+ Lastchange Timeval
|
|
+}
|
|
+
|
|
+type IfaMsghdr struct {
|
|
+ Msglen uint16
|
|
+ Version uint8
|
|
+ Type uint8
|
|
+ Addrs int32
|
|
+ Flags int32
|
|
+ Index uint16
|
|
+ _ uint16
|
|
+ Metric int32
|
|
+}
|
|
+
|
|
+type IfmaMsghdr struct {
|
|
+ Msglen uint16
|
|
+ Version uint8
|
|
+ Type uint8
|
|
+ Addrs int32
|
|
+ Flags int32
|
|
+ Index uint16
|
|
+ _ uint16
|
|
+}
|
|
+
|
|
+type IfAnnounceMsghdr struct {
|
|
+ Msglen uint16
|
|
+ Version uint8
|
|
+ Type uint8
|
|
+ Index uint16
|
|
+ Name [16]int8
|
|
+ What uint16
|
|
+}
|
|
+
|
|
+type RtMsghdr struct {
|
|
+ Msglen uint16
|
|
+ Version uint8
|
|
+ Type uint8
|
|
+ Index uint16
|
|
+ _ uint16
|
|
+ Flags int32
|
|
+ Addrs int32
|
|
+ Pid int32
|
|
+ Seq int32
|
|
+ Errno int32
|
|
+ Fmask int32
|
|
+ Inits uint64
|
|
+ Rmx RtMetrics
|
|
+}
|
|
+
|
|
+type RtMetrics struct {
|
|
+ Locks uint64
|
|
+ Mtu uint64
|
|
+ Hopcount uint64
|
|
+ Expire uint64
|
|
+ Recvpipe uint64
|
|
+ Sendpipe uint64
|
|
+ Ssthresh uint64
|
|
+ Rtt uint64
|
|
+ Rttvar uint64
|
|
+ Pksent uint64
|
|
+ Weight uint64
|
|
+ Nhidx uint64
|
|
+ Filler [2]uint64
|
|
+}
|
|
+
|
|
+const (
|
|
+ SizeofBpfVersion = 0x4
|
|
+ SizeofBpfStat = 0x8
|
|
+ SizeofBpfZbuf = 0x18
|
|
+ SizeofBpfProgram = 0x10
|
|
+ SizeofBpfInsn = 0x8
|
|
+ SizeofBpfHdr = 0x20
|
|
+ SizeofBpfZbufHeader = 0x20
|
|
+)
|
|
+
|
|
+type BpfVersion struct {
|
|
+ Major uint16
|
|
+ Minor uint16
|
|
+}
|
|
+
|
|
+type BpfStat struct {
|
|
+ Recv uint32
|
|
+ Drop uint32
|
|
+}
|
|
+
|
|
+type BpfZbuf struct {
|
|
+ Bufa *byte
|
|
+ Bufb *byte
|
|
+ Buflen uint64
|
|
+}
|
|
+
|
|
+type BpfProgram struct {
|
|
+ Len uint32
|
|
+ Insns *BpfInsn
|
|
+}
|
|
+
|
|
+type BpfInsn struct {
|
|
+ Code uint16
|
|
+ Jt uint8
|
|
+ Jf uint8
|
|
+ K uint32
|
|
+}
|
|
+
|
|
+type BpfHdr struct {
|
|
+ Tstamp Timeval
|
|
+ Caplen uint32
|
|
+ Datalen uint32
|
|
+ Hdrlen uint16
|
|
+ _ [6]byte
|
|
+}
|
|
+
|
|
+type BpfZbufHeader struct {
|
|
+ Kernel_gen uint32
|
|
+ Kernel_len uint32
|
|
+ User_gen uint32
|
|
+ _ [5]uint32
|
|
+}
|
|
+
|
|
+type Termios struct {
|
|
+ Iflag uint32
|
|
+ Oflag uint32
|
|
+ Cflag uint32
|
|
+ Lflag uint32
|
|
+ Cc [20]uint8
|
|
+ Ispeed uint32
|
|
+ Ospeed uint32
|
|
+}
|
|
+
|
|
+type Winsize struct {
|
|
+ Row uint16
|
|
+ Col uint16
|
|
+ Xpixel uint16
|
|
+ Ypixel uint16
|
|
+}
|
|
+
|
|
+const (
|
|
+ AT_FDCWD = -0x64
|
|
+ AT_EACCESS = 0x100
|
|
+ AT_SYMLINK_NOFOLLOW = 0x200
|
|
+ AT_SYMLINK_FOLLOW = 0x400
|
|
+ AT_REMOVEDIR = 0x800
|
|
+)
|
|
+
|
|
+type PollFd struct {
|
|
+ Fd int32
|
|
+ Events int16
|
|
+ Revents int16
|
|
+}
|
|
+
|
|
+const (
|
|
+ POLLERR = 0x8
|
|
+ POLLHUP = 0x10
|
|
+ POLLIN = 0x1
|
|
+ POLLINIGNEOF = 0x2000
|
|
+ POLLNVAL = 0x20
|
|
+ POLLOUT = 0x4
|
|
+ POLLPRI = 0x2
|
|
+ POLLRDBAND = 0x80
|
|
+ POLLRDNORM = 0x40
|
|
+ POLLWRBAND = 0x100
|
|
+ POLLWRNORM = 0x4
|
|
+)
|
|
+
|
|
+type CapRights struct {
|
|
+ Rights [2]uint64
|
|
+}
|
|
+
|
|
+type Utsname struct {
|
|
+ Sysname [256]byte
|
|
+ Nodename [256]byte
|
|
+ Release [256]byte
|
|
+ Version [256]byte
|
|
+ Machine [256]byte
|
|
+}
|
|
+
|
|
+const SizeofClockinfo = 0x14
|
|
+
|
|
+type Clockinfo struct {
|
|
+ Hz int32
|
|
+ Tick int32
|
|
+ Spare int32
|
|
+ Stathz int32
|
|
+ Profhz int32
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go
|
|
index 824cadb419c..1d1a57969c4 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go
|
|
@@ -420,36 +420,60 @@ type Ucred struct {
|
|
}
|
|
|
|
type TCPInfo struct {
|
|
- State uint8
|
|
- Ca_state uint8
|
|
- Retransmits uint8
|
|
- Probes uint8
|
|
- Backoff uint8
|
|
- Options uint8
|
|
- Rto uint32
|
|
- Ato uint32
|
|
- Snd_mss uint32
|
|
- Rcv_mss uint32
|
|
- Unacked uint32
|
|
- Sacked uint32
|
|
- Lost uint32
|
|
- Retrans uint32
|
|
- Fackets uint32
|
|
- Last_data_sent uint32
|
|
- Last_ack_sent uint32
|
|
- Last_data_recv uint32
|
|
- Last_ack_recv uint32
|
|
- Pmtu uint32
|
|
- Rcv_ssthresh uint32
|
|
- Rtt uint32
|
|
- Rttvar uint32
|
|
- Snd_ssthresh uint32
|
|
- Snd_cwnd uint32
|
|
- Advmss uint32
|
|
- Reordering uint32
|
|
- Rcv_rtt uint32
|
|
- Rcv_space uint32
|
|
- Total_retrans uint32
|
|
+ State uint8
|
|
+ Ca_state uint8
|
|
+ Retransmits uint8
|
|
+ Probes uint8
|
|
+ Backoff uint8
|
|
+ Options uint8
|
|
+ Rto uint32
|
|
+ Ato uint32
|
|
+ Snd_mss uint32
|
|
+ Rcv_mss uint32
|
|
+ Unacked uint32
|
|
+ Sacked uint32
|
|
+ Lost uint32
|
|
+ Retrans uint32
|
|
+ Fackets uint32
|
|
+ Last_data_sent uint32
|
|
+ Last_ack_sent uint32
|
|
+ Last_data_recv uint32
|
|
+ Last_ack_recv uint32
|
|
+ Pmtu uint32
|
|
+ Rcv_ssthresh uint32
|
|
+ Rtt uint32
|
|
+ Rttvar uint32
|
|
+ Snd_ssthresh uint32
|
|
+ Snd_cwnd uint32
|
|
+ Advmss uint32
|
|
+ Reordering uint32
|
|
+ Rcv_rtt uint32
|
|
+ Rcv_space uint32
|
|
+ Total_retrans uint32
|
|
+ Pacing_rate uint64
|
|
+ Max_pacing_rate uint64
|
|
+ Bytes_acked uint64
|
|
+ Bytes_received uint64
|
|
+ Segs_out uint32
|
|
+ Segs_in uint32
|
|
+ Notsent_bytes uint32
|
|
+ Min_rtt uint32
|
|
+ Data_segs_in uint32
|
|
+ Data_segs_out uint32
|
|
+ Delivery_rate uint64
|
|
+ Busy_time uint64
|
|
+ Rwnd_limited uint64
|
|
+ Sndbuf_limited uint64
|
|
+ Delivered uint32
|
|
+ Delivered_ce uint32
|
|
+ Bytes_sent uint64
|
|
+ Bytes_retrans uint64
|
|
+ Dsack_dups uint32
|
|
+ Reord_seen uint32
|
|
+ Rcv_ooopack uint32
|
|
+ Snd_wnd uint32
|
|
+ Rcv_wnd uint32
|
|
+ Rehash uint32
|
|
}
|
|
|
|
type CanFilter struct {
|
|
@@ -492,7 +516,7 @@ const (
|
|
SizeofIPv6MTUInfo = 0x20
|
|
SizeofICMPv6Filter = 0x20
|
|
SizeofUcred = 0xc
|
|
- SizeofTCPInfo = 0x68
|
|
+ SizeofTCPInfo = 0xf0
|
|
SizeofCanFilter = 0x8
|
|
SizeofTCPRepairOpt = 0x8
|
|
)
|
|
@@ -985,6 +1009,7 @@ const (
|
|
PerfBitCommExec = CBitFieldMaskBit24
|
|
PerfBitUseClockID = CBitFieldMaskBit25
|
|
PerfBitContextSwitch = CBitFieldMaskBit26
|
|
+ PerfBitWriteBackward = CBitFieldMaskBit27
|
|
)
|
|
|
|
const (
|
|
@@ -1173,7 +1198,7 @@ type TCPMD5Sig struct {
|
|
Flags uint8
|
|
Prefixlen uint8
|
|
Keylen uint16
|
|
- _ uint32
|
|
+ Ifindex int32
|
|
Key [80]uint8
|
|
}
|
|
|
|
@@ -1868,7 +1893,11 @@ const (
|
|
NFT_MSG_GETOBJ = 0x13
|
|
NFT_MSG_DELOBJ = 0x14
|
|
NFT_MSG_GETOBJ_RESET = 0x15
|
|
- NFT_MSG_MAX = 0x19
|
|
+ NFT_MSG_NEWFLOWTABLE = 0x16
|
|
+ NFT_MSG_GETFLOWTABLE = 0x17
|
|
+ NFT_MSG_DELFLOWTABLE = 0x18
|
|
+ NFT_MSG_GETRULE_RESET = 0x19
|
|
+ NFT_MSG_MAX = 0x1a
|
|
NFTA_LIST_UNSPEC = 0x0
|
|
NFTA_LIST_ELEM = 0x1
|
|
NFTA_HOOK_UNSPEC = 0x0
|
|
@@ -2372,9 +2401,11 @@ const (
|
|
SOF_TIMESTAMPING_OPT_STATS = 0x1000
|
|
SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000
|
|
SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000
|
|
+ SOF_TIMESTAMPING_BIND_PHC = 0x8000
|
|
+ SOF_TIMESTAMPING_OPT_ID_TCP = 0x10000
|
|
|
|
- SOF_TIMESTAMPING_LAST = 0x8000
|
|
- SOF_TIMESTAMPING_MASK = 0xffff
|
|
+ SOF_TIMESTAMPING_LAST = 0x10000
|
|
+ SOF_TIMESTAMPING_MASK = 0x1ffff
|
|
|
|
SCM_TSTAMP_SND = 0x0
|
|
SCM_TSTAMP_SCHED = 0x1
|
|
@@ -3179,7 +3210,13 @@ const (
|
|
DEVLINK_ATTR_RATE_NODE_NAME = 0xa8
|
|
DEVLINK_ATTR_RATE_PARENT_NODE_NAME = 0xa9
|
|
DEVLINK_ATTR_REGION_MAX_SNAPSHOTS = 0xaa
|
|
- DEVLINK_ATTR_MAX = 0xaa
|
|
+ DEVLINK_ATTR_LINECARD_INDEX = 0xab
|
|
+ DEVLINK_ATTR_LINECARD_STATE = 0xac
|
|
+ DEVLINK_ATTR_LINECARD_TYPE = 0xad
|
|
+ DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES = 0xae
|
|
+ DEVLINK_ATTR_NESTED_DEVLINK = 0xaf
|
|
+ DEVLINK_ATTR_SELFTESTS = 0xb0
|
|
+ DEVLINK_ATTR_MAX = 0xb3
|
|
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
|
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
|
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
|
@@ -3195,7 +3232,8 @@ const (
|
|
DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR = 0x1
|
|
DEVLINK_PORT_FN_ATTR_STATE = 0x2
|
|
DEVLINK_PORT_FN_ATTR_OPSTATE = 0x3
|
|
- DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x3
|
|
+ DEVLINK_PORT_FN_ATTR_CAPS = 0x4
|
|
+ DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x4
|
|
)
|
|
|
|
type FsverityDigest struct {
|
|
@@ -3483,7 +3521,10 @@ const (
|
|
ETHTOOL_MSG_PHC_VCLOCKS_GET = 0x21
|
|
ETHTOOL_MSG_MODULE_GET = 0x22
|
|
ETHTOOL_MSG_MODULE_SET = 0x23
|
|
- ETHTOOL_MSG_USER_MAX = 0x23
|
|
+ ETHTOOL_MSG_PSE_GET = 0x24
|
|
+ ETHTOOL_MSG_PSE_SET = 0x25
|
|
+ ETHTOOL_MSG_RSS_GET = 0x26
|
|
+ ETHTOOL_MSG_USER_MAX = 0x26
|
|
ETHTOOL_MSG_KERNEL_NONE = 0x0
|
|
ETHTOOL_MSG_STRSET_GET_REPLY = 0x1
|
|
ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2
|
|
@@ -3521,7 +3562,9 @@ const (
|
|
ETHTOOL_MSG_PHC_VCLOCKS_GET_REPLY = 0x22
|
|
ETHTOOL_MSG_MODULE_GET_REPLY = 0x23
|
|
ETHTOOL_MSG_MODULE_NTF = 0x24
|
|
- ETHTOOL_MSG_KERNEL_MAX = 0x24
|
|
+ ETHTOOL_MSG_PSE_GET_REPLY = 0x25
|
|
+ ETHTOOL_MSG_RSS_GET_REPLY = 0x26
|
|
+ ETHTOOL_MSG_KERNEL_MAX = 0x26
|
|
ETHTOOL_A_HEADER_UNSPEC = 0x0
|
|
ETHTOOL_A_HEADER_DEV_INDEX = 0x1
|
|
ETHTOOL_A_HEADER_DEV_NAME = 0x2
|
|
@@ -3588,7 +3631,8 @@ const (
|
|
ETHTOOL_A_LINKSTATE_SQI_MAX = 0x4
|
|
ETHTOOL_A_LINKSTATE_EXT_STATE = 0x5
|
|
ETHTOOL_A_LINKSTATE_EXT_SUBSTATE = 0x6
|
|
- ETHTOOL_A_LINKSTATE_MAX = 0x6
|
|
+ ETHTOOL_A_LINKSTATE_EXT_DOWN_CNT = 0x7
|
|
+ ETHTOOL_A_LINKSTATE_MAX = 0x7
|
|
ETHTOOL_A_DEBUG_UNSPEC = 0x0
|
|
ETHTOOL_A_DEBUG_HEADER = 0x1
|
|
ETHTOOL_A_DEBUG_MSGMASK = 0x2
|
|
@@ -4070,3 +4114,1611 @@ const (
|
|
NL_POLICY_TYPE_ATTR_MASK = 0xc
|
|
NL_POLICY_TYPE_ATTR_MAX = 0xc
|
|
)
|
|
+
|
|
+type CANBitTiming struct {
|
|
+ Bitrate uint32
|
|
+ Sample_point uint32
|
|
+ Tq uint32
|
|
+ Prop_seg uint32
|
|
+ Phase_seg1 uint32
|
|
+ Phase_seg2 uint32
|
|
+ Sjw uint32
|
|
+ Brp uint32
|
|
+}
|
|
+
|
|
+type CANBitTimingConst struct {
|
|
+ Name [16]uint8
|
|
+ Tseg1_min uint32
|
|
+ Tseg1_max uint32
|
|
+ Tseg2_min uint32
|
|
+ Tseg2_max uint32
|
|
+ Sjw_max uint32
|
|
+ Brp_min uint32
|
|
+ Brp_max uint32
|
|
+ Brp_inc uint32
|
|
+}
|
|
+
|
|
+type CANClock struct {
|
|
+ Freq uint32
|
|
+}
|
|
+
|
|
+type CANBusErrorCounters struct {
|
|
+ Txerr uint16
|
|
+ Rxerr uint16
|
|
+}
|
|
+
|
|
+type CANCtrlMode struct {
|
|
+ Mask uint32
|
|
+ Flags uint32
|
|
+}
|
|
+
|
|
+type CANDeviceStats struct {
|
|
+ Bus_error uint32
|
|
+ Error_warning uint32
|
|
+ Error_passive uint32
|
|
+ Bus_off uint32
|
|
+ Arbitration_lost uint32
|
|
+ Restarts uint32
|
|
+}
|
|
+
|
|
+const (
|
|
+ CAN_STATE_ERROR_ACTIVE = 0x0
|
|
+ CAN_STATE_ERROR_WARNING = 0x1
|
|
+ CAN_STATE_ERROR_PASSIVE = 0x2
|
|
+ CAN_STATE_BUS_OFF = 0x3
|
|
+ CAN_STATE_STOPPED = 0x4
|
|
+ CAN_STATE_SLEEPING = 0x5
|
|
+ CAN_STATE_MAX = 0x6
|
|
+)
|
|
+
|
|
+const (
|
|
+ IFLA_CAN_UNSPEC = 0x0
|
|
+ IFLA_CAN_BITTIMING = 0x1
|
|
+ IFLA_CAN_BITTIMING_CONST = 0x2
|
|
+ IFLA_CAN_CLOCK = 0x3
|
|
+ IFLA_CAN_STATE = 0x4
|
|
+ IFLA_CAN_CTRLMODE = 0x5
|
|
+ IFLA_CAN_RESTART_MS = 0x6
|
|
+ IFLA_CAN_RESTART = 0x7
|
|
+ IFLA_CAN_BERR_COUNTER = 0x8
|
|
+ IFLA_CAN_DATA_BITTIMING = 0x9
|
|
+ IFLA_CAN_DATA_BITTIMING_CONST = 0xa
|
|
+ IFLA_CAN_TERMINATION = 0xb
|
|
+ IFLA_CAN_TERMINATION_CONST = 0xc
|
|
+ IFLA_CAN_BITRATE_CONST = 0xd
|
|
+ IFLA_CAN_DATA_BITRATE_CONST = 0xe
|
|
+ IFLA_CAN_BITRATE_MAX = 0xf
|
|
+)
|
|
+
|
|
+type KCMAttach struct {
|
|
+ Fd int32
|
|
+ Bpf_fd int32
|
|
+}
|
|
+
|
|
+type KCMUnattach struct {
|
|
+ Fd int32
|
|
+}
|
|
+
|
|
+type KCMClone struct {
|
|
+ Fd int32
|
|
+}
|
|
+
|
|
+const (
|
|
+ NL80211_AC_BE = 0x2
|
|
+ NL80211_AC_BK = 0x3
|
|
+ NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0x0
|
|
+ NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 0x1
|
|
+ NL80211_AC_VI = 0x1
|
|
+ NL80211_AC_VO = 0x0
|
|
+ NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 0x1
|
|
+ NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 0x2
|
|
+ NL80211_AP_SME_SA_QUERY_OFFLOAD = 0x1
|
|
+ NL80211_ATTR_4ADDR = 0x53
|
|
+ NL80211_ATTR_ACK = 0x5c
|
|
+ NL80211_ATTR_ACK_SIGNAL = 0x107
|
|
+ NL80211_ATTR_ACL_POLICY = 0xa5
|
|
+ NL80211_ATTR_ADMITTED_TIME = 0xd4
|
|
+ NL80211_ATTR_AIRTIME_WEIGHT = 0x112
|
|
+ NL80211_ATTR_AKM_SUITES = 0x4c
|
|
+ NL80211_ATTR_AP_ISOLATE = 0x60
|
|
+ NL80211_ATTR_AP_SETTINGS_FLAGS = 0x135
|
|
+ NL80211_ATTR_AUTH_DATA = 0x9c
|
|
+ NL80211_ATTR_AUTH_TYPE = 0x35
|
|
+ NL80211_ATTR_BANDS = 0xef
|
|
+ NL80211_ATTR_BEACON_HEAD = 0xe
|
|
+ NL80211_ATTR_BEACON_INTERVAL = 0xc
|
|
+ NL80211_ATTR_BEACON_TAIL = 0xf
|
|
+ NL80211_ATTR_BG_SCAN_PERIOD = 0x98
|
|
+ NL80211_ATTR_BSS_BASIC_RATES = 0x24
|
|
+ NL80211_ATTR_BSS = 0x2f
|
|
+ NL80211_ATTR_BSS_CTS_PROT = 0x1c
|
|
+ NL80211_ATTR_BSS_HT_OPMODE = 0x6d
|
|
+ NL80211_ATTR_BSSID = 0xf5
|
|
+ NL80211_ATTR_BSS_SELECT = 0xe3
|
|
+ NL80211_ATTR_BSS_SHORT_PREAMBLE = 0x1d
|
|
+ NL80211_ATTR_BSS_SHORT_SLOT_TIME = 0x1e
|
|
+ NL80211_ATTR_CENTER_FREQ1 = 0xa0
|
|
+ NL80211_ATTR_CENTER_FREQ1_OFFSET = 0x123
|
|
+ NL80211_ATTR_CENTER_FREQ2 = 0xa1
|
|
+ NL80211_ATTR_CHANNEL_WIDTH = 0x9f
|
|
+ NL80211_ATTR_CH_SWITCH_BLOCK_TX = 0xb8
|
|
+ NL80211_ATTR_CH_SWITCH_COUNT = 0xb7
|
|
+ NL80211_ATTR_CIPHER_SUITE_GROUP = 0x4a
|
|
+ NL80211_ATTR_CIPHER_SUITES = 0x39
|
|
+ NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 0x49
|
|
+ NL80211_ATTR_CNTDWN_OFFS_BEACON = 0xba
|
|
+ NL80211_ATTR_CNTDWN_OFFS_PRESP = 0xbb
|
|
+ NL80211_ATTR_COALESCE_RULE = 0xb6
|
|
+ NL80211_ATTR_COALESCE_RULE_CONDITION = 0x2
|
|
+ NL80211_ATTR_COALESCE_RULE_DELAY = 0x1
|
|
+ NL80211_ATTR_COALESCE_RULE_MAX = 0x3
|
|
+ NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 0x3
|
|
+ NL80211_ATTR_COLOR_CHANGE_COLOR = 0x130
|
|
+ NL80211_ATTR_COLOR_CHANGE_COUNT = 0x12f
|
|
+ NL80211_ATTR_COLOR_CHANGE_ELEMS = 0x131
|
|
+ NL80211_ATTR_CONN_FAILED_REASON = 0x9b
|
|
+ NL80211_ATTR_CONTROL_PORT = 0x44
|
|
+ NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 0x66
|
|
+ NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 0x67
|
|
+ NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 0x11e
|
|
+ NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 0x108
|
|
+ NL80211_ATTR_COOKIE = 0x58
|
|
+ NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 0x8
|
|
+ NL80211_ATTR_CQM = 0x5e
|
|
+ NL80211_ATTR_CQM_MAX = 0x9
|
|
+ NL80211_ATTR_CQM_PKT_LOSS_EVENT = 0x4
|
|
+ NL80211_ATTR_CQM_RSSI_HYST = 0x2
|
|
+ NL80211_ATTR_CQM_RSSI_LEVEL = 0x9
|
|
+ NL80211_ATTR_CQM_RSSI_THOLD = 0x1
|
|
+ NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 0x3
|
|
+ NL80211_ATTR_CQM_TXE_INTVL = 0x7
|
|
+ NL80211_ATTR_CQM_TXE_PKTS = 0x6
|
|
+ NL80211_ATTR_CQM_TXE_RATE = 0x5
|
|
+ NL80211_ATTR_CRIT_PROT_ID = 0xb3
|
|
+ NL80211_ATTR_CSA_C_OFF_BEACON = 0xba
|
|
+ NL80211_ATTR_CSA_C_OFF_PRESP = 0xbb
|
|
+ NL80211_ATTR_CSA_C_OFFSETS_TX = 0xcd
|
|
+ NL80211_ATTR_CSA_IES = 0xb9
|
|
+ NL80211_ATTR_DEVICE_AP_SME = 0x8d
|
|
+ NL80211_ATTR_DFS_CAC_TIME = 0x7
|
|
+ NL80211_ATTR_DFS_REGION = 0x92
|
|
+ NL80211_ATTR_DISABLE_EHT = 0x137
|
|
+ NL80211_ATTR_DISABLE_HE = 0x12d
|
|
+ NL80211_ATTR_DISABLE_HT = 0x93
|
|
+ NL80211_ATTR_DISABLE_VHT = 0xaf
|
|
+ NL80211_ATTR_DISCONNECTED_BY_AP = 0x47
|
|
+ NL80211_ATTR_DONT_WAIT_FOR_ACK = 0x8e
|
|
+ NL80211_ATTR_DTIM_PERIOD = 0xd
|
|
+ NL80211_ATTR_DURATION = 0x57
|
|
+ NL80211_ATTR_EHT_CAPABILITY = 0x136
|
|
+ NL80211_ATTR_EML_CAPABILITY = 0x13d
|
|
+ NL80211_ATTR_EXT_CAPA = 0xa9
|
|
+ NL80211_ATTR_EXT_CAPA_MASK = 0xaa
|
|
+ NL80211_ATTR_EXTERNAL_AUTH_ACTION = 0x104
|
|
+ NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 0x105
|
|
+ NL80211_ATTR_EXT_FEATURES = 0xd9
|
|
+ NL80211_ATTR_FEATURE_FLAGS = 0x8f
|
|
+ NL80211_ATTR_FILS_CACHE_ID = 0xfd
|
|
+ NL80211_ATTR_FILS_DISCOVERY = 0x126
|
|
+ NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 0xfb
|
|
+ NL80211_ATTR_FILS_ERP_REALM = 0xfa
|
|
+ NL80211_ATTR_FILS_ERP_RRK = 0xfc
|
|
+ NL80211_ATTR_FILS_ERP_USERNAME = 0xf9
|
|
+ NL80211_ATTR_FILS_KEK = 0xf2
|
|
+ NL80211_ATTR_FILS_NONCES = 0xf3
|
|
+ NL80211_ATTR_FRAME = 0x33
|
|
+ NL80211_ATTR_FRAME_MATCH = 0x5b
|
|
+ NL80211_ATTR_FRAME_TYPE = 0x65
|
|
+ NL80211_ATTR_FREQ_AFTER = 0x3b
|
|
+ NL80211_ATTR_FREQ_BEFORE = 0x3a
|
|
+ NL80211_ATTR_FREQ_FIXED = 0x3c
|
|
+ NL80211_ATTR_FREQ_RANGE_END = 0x3
|
|
+ NL80211_ATTR_FREQ_RANGE_MAX_BW = 0x4
|
|
+ NL80211_ATTR_FREQ_RANGE_START = 0x2
|
|
+ NL80211_ATTR_FTM_RESPONDER = 0x10e
|
|
+ NL80211_ATTR_FTM_RESPONDER_STATS = 0x10f
|
|
+ NL80211_ATTR_GENERATION = 0x2e
|
|
+ NL80211_ATTR_HANDLE_DFS = 0xbf
|
|
+ NL80211_ATTR_HE_6GHZ_CAPABILITY = 0x125
|
|
+ NL80211_ATTR_HE_BSS_COLOR = 0x11b
|
|
+ NL80211_ATTR_HE_CAPABILITY = 0x10d
|
|
+ NL80211_ATTR_HE_OBSS_PD = 0x117
|
|
+ NL80211_ATTR_HIDDEN_SSID = 0x7e
|
|
+ NL80211_ATTR_HT_CAPABILITY = 0x1f
|
|
+ NL80211_ATTR_HT_CAPABILITY_MASK = 0x94
|
|
+ NL80211_ATTR_IE_ASSOC_RESP = 0x80
|
|
+ NL80211_ATTR_IE = 0x2a
|
|
+ NL80211_ATTR_IE_PROBE_RESP = 0x7f
|
|
+ NL80211_ATTR_IE_RIC = 0xb2
|
|
+ NL80211_ATTR_IFACE_SOCKET_OWNER = 0xcc
|
|
+ NL80211_ATTR_IFINDEX = 0x3
|
|
+ NL80211_ATTR_IFNAME = 0x4
|
|
+ NL80211_ATTR_IFTYPE_AKM_SUITES = 0x11c
|
|
+ NL80211_ATTR_IFTYPE = 0x5
|
|
+ NL80211_ATTR_IFTYPE_EXT_CAPA = 0xe6
|
|
+ NL80211_ATTR_INACTIVITY_TIMEOUT = 0x96
|
|
+ NL80211_ATTR_INTERFACE_COMBINATIONS = 0x78
|
|
+ NL80211_ATTR_KEY_CIPHER = 0x9
|
|
+ NL80211_ATTR_KEY = 0x50
|
|
+ NL80211_ATTR_KEY_DATA = 0x7
|
|
+ NL80211_ATTR_KEY_DEFAULT = 0xb
|
|
+ NL80211_ATTR_KEY_DEFAULT_MGMT = 0x28
|
|
+ NL80211_ATTR_KEY_DEFAULT_TYPES = 0x6e
|
|
+ NL80211_ATTR_KEY_IDX = 0x8
|
|
+ NL80211_ATTR_KEYS = 0x51
|
|
+ NL80211_ATTR_KEY_SEQ = 0xa
|
|
+ NL80211_ATTR_KEY_TYPE = 0x37
|
|
+ NL80211_ATTR_LOCAL_MESH_POWER_MODE = 0xa4
|
|
+ NL80211_ATTR_LOCAL_STATE_CHANGE = 0x5f
|
|
+ NL80211_ATTR_MAC_ACL_MAX = 0xa7
|
|
+ NL80211_ATTR_MAC_ADDRS = 0xa6
|
|
+ NL80211_ATTR_MAC = 0x6
|
|
+ NL80211_ATTR_MAC_HINT = 0xc8
|
|
+ NL80211_ATTR_MAC_MASK = 0xd7
|
|
+ NL80211_ATTR_MAX_AP_ASSOC_STA = 0xca
|
|
+ NL80211_ATTR_MAX = 0x141
|
|
+ NL80211_ATTR_MAX_CRIT_PROT_DURATION = 0xb4
|
|
+ NL80211_ATTR_MAX_CSA_COUNTERS = 0xce
|
|
+ NL80211_ATTR_MAX_MATCH_SETS = 0x85
|
|
+ NL80211_ATTR_MAX_NUM_AKM_SUITES = 0x13c
|
|
+ NL80211_ATTR_MAX_NUM_PMKIDS = 0x56
|
|
+ NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 0x2b
|
|
+ NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 0xde
|
|
+ NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 0x7b
|
|
+ NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 0x6f
|
|
+ NL80211_ATTR_MAX_SCAN_IE_LEN = 0x38
|
|
+ NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 0xdf
|
|
+ NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 0xe0
|
|
+ NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 0x7c
|
|
+ NL80211_ATTR_MBSSID_CONFIG = 0x132
|
|
+ NL80211_ATTR_MBSSID_ELEMS = 0x133
|
|
+ NL80211_ATTR_MCAST_RATE = 0x6b
|
|
+ NL80211_ATTR_MDID = 0xb1
|
|
+ NL80211_ATTR_MEASUREMENT_DURATION = 0xeb
|
|
+ NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 0xec
|
|
+ NL80211_ATTR_MESH_CONFIG = 0x23
|
|
+ NL80211_ATTR_MESH_ID = 0x18
|
|
+ NL80211_ATTR_MESH_PEER_AID = 0xed
|
|
+ NL80211_ATTR_MESH_SETUP = 0x70
|
|
+ NL80211_ATTR_MGMT_SUBTYPE = 0x29
|
|
+ NL80211_ATTR_MLD_ADDR = 0x13a
|
|
+ NL80211_ATTR_MLD_CAPA_AND_OPS = 0x13e
|
|
+ NL80211_ATTR_MLO_LINK_ID = 0x139
|
|
+ NL80211_ATTR_MLO_LINKS = 0x138
|
|
+ NL80211_ATTR_MLO_SUPPORT = 0x13b
|
|
+ NL80211_ATTR_MNTR_FLAGS = 0x17
|
|
+ NL80211_ATTR_MPATH_INFO = 0x1b
|
|
+ NL80211_ATTR_MPATH_NEXT_HOP = 0x1a
|
|
+ NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 0xf4
|
|
+ NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 0xe8
|
|
+ NL80211_ATTR_MU_MIMO_GROUP_DATA = 0xe7
|
|
+ NL80211_ATTR_NAN_FUNC = 0xf0
|
|
+ NL80211_ATTR_NAN_MASTER_PREF = 0xee
|
|
+ NL80211_ATTR_NAN_MATCH = 0xf1
|
|
+ NL80211_ATTR_NETNS_FD = 0xdb
|
|
+ NL80211_ATTR_NOACK_MAP = 0x95
|
|
+ NL80211_ATTR_NSS = 0x106
|
|
+ NL80211_ATTR_OBSS_COLOR_BITMAP = 0x12e
|
|
+ NL80211_ATTR_OFFCHANNEL_TX_OK = 0x6c
|
|
+ NL80211_ATTR_OPER_CLASS = 0xd6
|
|
+ NL80211_ATTR_OPMODE_NOTIF = 0xc2
|
|
+ NL80211_ATTR_P2P_CTWINDOW = 0xa2
|
|
+ NL80211_ATTR_P2P_OPPPS = 0xa3
|
|
+ NL80211_ATTR_PAD = 0xe5
|
|
+ NL80211_ATTR_PBSS = 0xe2
|
|
+ NL80211_ATTR_PEER_AID = 0xb5
|
|
+ NL80211_ATTR_PEER_MEASUREMENTS = 0x111
|
|
+ NL80211_ATTR_PID = 0x52
|
|
+ NL80211_ATTR_PMK = 0xfe
|
|
+ NL80211_ATTR_PMKID = 0x55
|
|
+ NL80211_ATTR_PMK_LIFETIME = 0x11f
|
|
+ NL80211_ATTR_PMKR0_NAME = 0x102
|
|
+ NL80211_ATTR_PMK_REAUTH_THRESHOLD = 0x120
|
|
+ NL80211_ATTR_PMKSA_CANDIDATE = 0x86
|
|
+ NL80211_ATTR_PORT_AUTHORIZED = 0x103
|
|
+ NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 0x5
|
|
+ NL80211_ATTR_POWER_RULE_MAX_EIRP = 0x6
|
|
+ NL80211_ATTR_PREV_BSSID = 0x4f
|
|
+ NL80211_ATTR_PRIVACY = 0x46
|
|
+ NL80211_ATTR_PROBE_RESP = 0x91
|
|
+ NL80211_ATTR_PROBE_RESP_OFFLOAD = 0x90
|
|
+ NL80211_ATTR_PROTOCOL_FEATURES = 0xad
|
|
+ NL80211_ATTR_PS_STATE = 0x5d
|
|
+ NL80211_ATTR_QOS_MAP = 0xc7
|
|
+ NL80211_ATTR_RADAR_BACKGROUND = 0x134
|
|
+ NL80211_ATTR_RADAR_EVENT = 0xa8
|
|
+ NL80211_ATTR_REASON_CODE = 0x36
|
|
+ NL80211_ATTR_RECEIVE_MULTICAST = 0x121
|
|
+ NL80211_ATTR_RECONNECT_REQUESTED = 0x12b
|
|
+ NL80211_ATTR_REG_ALPHA2 = 0x21
|
|
+ NL80211_ATTR_REG_INDOOR = 0xdd
|
|
+ NL80211_ATTR_REG_INITIATOR = 0x30
|
|
+ NL80211_ATTR_REG_RULE_FLAGS = 0x1
|
|
+ NL80211_ATTR_REG_RULES = 0x22
|
|
+ NL80211_ATTR_REG_TYPE = 0x31
|
|
+ NL80211_ATTR_REKEY_DATA = 0x7a
|
|
+ NL80211_ATTR_REQ_IE = 0x4d
|
|
+ NL80211_ATTR_RESP_IE = 0x4e
|
|
+ NL80211_ATTR_ROAM_SUPPORT = 0x83
|
|
+ NL80211_ATTR_RX_FRAME_TYPES = 0x64
|
|
+ NL80211_ATTR_RX_HW_TIMESTAMP = 0x140
|
|
+ NL80211_ATTR_RXMGMT_FLAGS = 0xbc
|
|
+ NL80211_ATTR_RX_SIGNAL_DBM = 0x97
|
|
+ NL80211_ATTR_S1G_CAPABILITY = 0x128
|
|
+ NL80211_ATTR_S1G_CAPABILITY_MASK = 0x129
|
|
+ NL80211_ATTR_SAE_DATA = 0x9c
|
|
+ NL80211_ATTR_SAE_PASSWORD = 0x115
|
|
+ NL80211_ATTR_SAE_PWE = 0x12a
|
|
+ NL80211_ATTR_SAR_SPEC = 0x12c
|
|
+ NL80211_ATTR_SCAN_FLAGS = 0x9e
|
|
+ NL80211_ATTR_SCAN_FREQ_KHZ = 0x124
|
|
+ NL80211_ATTR_SCAN_FREQUENCIES = 0x2c
|
|
+ NL80211_ATTR_SCAN_GENERATION = 0x2e
|
|
+ NL80211_ATTR_SCAN_SSIDS = 0x2d
|
|
+ NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 0xea
|
|
+ NL80211_ATTR_SCAN_START_TIME_TSF = 0xe9
|
|
+ NL80211_ATTR_SCAN_SUPP_RATES = 0x7d
|
|
+ NL80211_ATTR_SCHED_SCAN_DELAY = 0xdc
|
|
+ NL80211_ATTR_SCHED_SCAN_INTERVAL = 0x77
|
|
+ NL80211_ATTR_SCHED_SCAN_MATCH = 0x84
|
|
+ NL80211_ATTR_SCHED_SCAN_MATCH_SSID = 0x1
|
|
+ NL80211_ATTR_SCHED_SCAN_MAX_REQS = 0x100
|
|
+ NL80211_ATTR_SCHED_SCAN_MULTI = 0xff
|
|
+ NL80211_ATTR_SCHED_SCAN_PLANS = 0xe1
|
|
+ NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 0xf6
|
|
+ NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 0xf7
|
|
+ NL80211_ATTR_SMPS_MODE = 0xd5
|
|
+ NL80211_ATTR_SOCKET_OWNER = 0xcc
|
|
+ NL80211_ATTR_SOFTWARE_IFTYPES = 0x79
|
|
+ NL80211_ATTR_SPLIT_WIPHY_DUMP = 0xae
|
|
+ NL80211_ATTR_SSID = 0x34
|
|
+ NL80211_ATTR_STA_AID = 0x10
|
|
+ NL80211_ATTR_STA_CAPABILITY = 0xab
|
|
+ NL80211_ATTR_STA_EXT_CAPABILITY = 0xac
|
|
+ NL80211_ATTR_STA_FLAGS2 = 0x43
|
|
+ NL80211_ATTR_STA_FLAGS = 0x11
|
|
+ NL80211_ATTR_STA_INFO = 0x15
|
|
+ NL80211_ATTR_STA_LISTEN_INTERVAL = 0x12
|
|
+ NL80211_ATTR_STA_PLINK_ACTION = 0x19
|
|
+ NL80211_ATTR_STA_PLINK_STATE = 0x74
|
|
+ NL80211_ATTR_STA_SUPPORTED_CHANNELS = 0xbd
|
|
+ NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 0xbe
|
|
+ NL80211_ATTR_STA_SUPPORTED_RATES = 0x13
|
|
+ NL80211_ATTR_STA_SUPPORT_P2P_PS = 0xe4
|
|
+ NL80211_ATTR_STATUS_CODE = 0x48
|
|
+ NL80211_ATTR_STA_TX_POWER = 0x114
|
|
+ NL80211_ATTR_STA_TX_POWER_SETTING = 0x113
|
|
+ NL80211_ATTR_STA_VLAN = 0x14
|
|
+ NL80211_ATTR_STA_WME = 0x81
|
|
+ NL80211_ATTR_SUPPORT_10_MHZ = 0xc1
|
|
+ NL80211_ATTR_SUPPORT_5_MHZ = 0xc0
|
|
+ NL80211_ATTR_SUPPORT_AP_UAPSD = 0x82
|
|
+ NL80211_ATTR_SUPPORTED_COMMANDS = 0x32
|
|
+ NL80211_ATTR_SUPPORTED_IFTYPES = 0x20
|
|
+ NL80211_ATTR_SUPPORT_IBSS_RSN = 0x68
|
|
+ NL80211_ATTR_SUPPORT_MESH_AUTH = 0x73
|
|
+ NL80211_ATTR_SURVEY_INFO = 0x54
|
|
+ NL80211_ATTR_SURVEY_RADIO_STATS = 0xda
|
|
+ NL80211_ATTR_TD_BITMAP = 0x141
|
|
+ NL80211_ATTR_TDLS_ACTION = 0x88
|
|
+ NL80211_ATTR_TDLS_DIALOG_TOKEN = 0x89
|
|
+ NL80211_ATTR_TDLS_EXTERNAL_SETUP = 0x8c
|
|
+ NL80211_ATTR_TDLS_INITIATOR = 0xcf
|
|
+ NL80211_ATTR_TDLS_OPERATION = 0x8a
|
|
+ NL80211_ATTR_TDLS_PEER_CAPABILITY = 0xcb
|
|
+ NL80211_ATTR_TDLS_SUPPORT = 0x8b
|
|
+ NL80211_ATTR_TESTDATA = 0x45
|
|
+ NL80211_ATTR_TID_CONFIG = 0x11d
|
|
+ NL80211_ATTR_TIMED_OUT = 0x41
|
|
+ NL80211_ATTR_TIMEOUT = 0x110
|
|
+ NL80211_ATTR_TIMEOUT_REASON = 0xf8
|
|
+ NL80211_ATTR_TSID = 0xd2
|
|
+ NL80211_ATTR_TWT_RESPONDER = 0x116
|
|
+ NL80211_ATTR_TX_FRAME_TYPES = 0x63
|
|
+ NL80211_ATTR_TX_HW_TIMESTAMP = 0x13f
|
|
+ NL80211_ATTR_TX_NO_CCK_RATE = 0x87
|
|
+ NL80211_ATTR_TXQ_LIMIT = 0x10a
|
|
+ NL80211_ATTR_TXQ_MEMORY_LIMIT = 0x10b
|
|
+ NL80211_ATTR_TXQ_QUANTUM = 0x10c
|
|
+ NL80211_ATTR_TXQ_STATS = 0x109
|
|
+ NL80211_ATTR_TX_RATES = 0x5a
|
|
+ NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 0x127
|
|
+ NL80211_ATTR_UNSPEC = 0x0
|
|
+ NL80211_ATTR_USE_MFP = 0x42
|
|
+ NL80211_ATTR_USER_PRIO = 0xd3
|
|
+ NL80211_ATTR_USER_REG_HINT_TYPE = 0x9a
|
|
+ NL80211_ATTR_USE_RRM = 0xd0
|
|
+ NL80211_ATTR_VENDOR_DATA = 0xc5
|
|
+ NL80211_ATTR_VENDOR_EVENTS = 0xc6
|
|
+ NL80211_ATTR_VENDOR_ID = 0xc3
|
|
+ NL80211_ATTR_VENDOR_SUBCMD = 0xc4
|
|
+ NL80211_ATTR_VHT_CAPABILITY = 0x9d
|
|
+ NL80211_ATTR_VHT_CAPABILITY_MASK = 0xb0
|
|
+ NL80211_ATTR_VLAN_ID = 0x11a
|
|
+ NL80211_ATTR_WANT_1X_4WAY_HS = 0x101
|
|
+ NL80211_ATTR_WDEV = 0x99
|
|
+ NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 0x72
|
|
+ NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 0x71
|
|
+ NL80211_ATTR_WIPHY_ANTENNA_RX = 0x6a
|
|
+ NL80211_ATTR_WIPHY_ANTENNA_TX = 0x69
|
|
+ NL80211_ATTR_WIPHY_BANDS = 0x16
|
|
+ NL80211_ATTR_WIPHY_CHANNEL_TYPE = 0x27
|
|
+ NL80211_ATTR_WIPHY = 0x1
|
|
+ NL80211_ATTR_WIPHY_COVERAGE_CLASS = 0x59
|
|
+ NL80211_ATTR_WIPHY_DYN_ACK = 0xd1
|
|
+ NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 0x119
|
|
+ NL80211_ATTR_WIPHY_EDMG_CHANNELS = 0x118
|
|
+ NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 0x3f
|
|
+ NL80211_ATTR_WIPHY_FREQ = 0x26
|
|
+ NL80211_ATTR_WIPHY_FREQ_HINT = 0xc9
|
|
+ NL80211_ATTR_WIPHY_FREQ_OFFSET = 0x122
|
|
+ NL80211_ATTR_WIPHY_NAME = 0x2
|
|
+ NL80211_ATTR_WIPHY_RETRY_LONG = 0x3e
|
|
+ NL80211_ATTR_WIPHY_RETRY_SHORT = 0x3d
|
|
+ NL80211_ATTR_WIPHY_RTS_THRESHOLD = 0x40
|
|
+ NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 0xd8
|
|
+ NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 0x62
|
|
+ NL80211_ATTR_WIPHY_TX_POWER_SETTING = 0x61
|
|
+ NL80211_ATTR_WIPHY_TXQ_PARAMS = 0x25
|
|
+ NL80211_ATTR_WOWLAN_TRIGGERS = 0x75
|
|
+ NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 0x76
|
|
+ NL80211_ATTR_WPA_VERSIONS = 0x4b
|
|
+ NL80211_AUTHTYPE_AUTOMATIC = 0x8
|
|
+ NL80211_AUTHTYPE_FILS_PK = 0x7
|
|
+ NL80211_AUTHTYPE_FILS_SK = 0x5
|
|
+ NL80211_AUTHTYPE_FILS_SK_PFS = 0x6
|
|
+ NL80211_AUTHTYPE_FT = 0x2
|
|
+ NL80211_AUTHTYPE_MAX = 0x7
|
|
+ NL80211_AUTHTYPE_NETWORK_EAP = 0x3
|
|
+ NL80211_AUTHTYPE_OPEN_SYSTEM = 0x0
|
|
+ NL80211_AUTHTYPE_SAE = 0x4
|
|
+ NL80211_AUTHTYPE_SHARED_KEY = 0x1
|
|
+ NL80211_BAND_2GHZ = 0x0
|
|
+ NL80211_BAND_5GHZ = 0x1
|
|
+ NL80211_BAND_60GHZ = 0x2
|
|
+ NL80211_BAND_6GHZ = 0x3
|
|
+ NL80211_BAND_ATTR_EDMG_BW_CONFIG = 0xb
|
|
+ NL80211_BAND_ATTR_EDMG_CHANNELS = 0xa
|
|
+ NL80211_BAND_ATTR_FREQS = 0x1
|
|
+ NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 0x6
|
|
+ NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 0x5
|
|
+ NL80211_BAND_ATTR_HT_CAPA = 0x4
|
|
+ NL80211_BAND_ATTR_HT_MCS_SET = 0x3
|
|
+ NL80211_BAND_ATTR_IFTYPE_DATA = 0x9
|
|
+ NL80211_BAND_ATTR_MAX = 0xb
|
|
+ NL80211_BAND_ATTR_RATES = 0x2
|
|
+ NL80211_BAND_ATTR_VHT_CAPA = 0x8
|
|
+ NL80211_BAND_ATTR_VHT_MCS_SET = 0x7
|
|
+ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 0x8
|
|
+ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 0xa
|
|
+ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 0x9
|
|
+ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 0xb
|
|
+ NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 0x6
|
|
+ NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 0x2
|
|
+ NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 0x4
|
|
+ NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 0x3
|
|
+ NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 0x5
|
|
+ NL80211_BAND_IFTYPE_ATTR_IFTYPES = 0x1
|
|
+ NL80211_BAND_IFTYPE_ATTR_MAX = 0xb
|
|
+ NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 0x7
|
|
+ NL80211_BAND_LC = 0x5
|
|
+ NL80211_BAND_S1GHZ = 0x4
|
|
+ NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 0x2
|
|
+ NL80211_BITRATE_ATTR_MAX = 0x2
|
|
+ NL80211_BITRATE_ATTR_RATE = 0x1
|
|
+ NL80211_BSS_BEACON_IES = 0xb
|
|
+ NL80211_BSS_BEACON_INTERVAL = 0x4
|
|
+ NL80211_BSS_BEACON_TSF = 0xd
|
|
+ NL80211_BSS_BSSID = 0x1
|
|
+ NL80211_BSS_CAPABILITY = 0x5
|
|
+ NL80211_BSS_CHAIN_SIGNAL = 0x13
|
|
+ NL80211_BSS_CHAN_WIDTH_10 = 0x1
|
|
+ NL80211_BSS_CHAN_WIDTH_1 = 0x3
|
|
+ NL80211_BSS_CHAN_WIDTH_20 = 0x0
|
|
+ NL80211_BSS_CHAN_WIDTH_2 = 0x4
|
|
+ NL80211_BSS_CHAN_WIDTH_5 = 0x2
|
|
+ NL80211_BSS_CHAN_WIDTH = 0xc
|
|
+ NL80211_BSS_FREQUENCY = 0x2
|
|
+ NL80211_BSS_FREQUENCY_OFFSET = 0x14
|
|
+ NL80211_BSS_INFORMATION_ELEMENTS = 0x6
|
|
+ NL80211_BSS_LAST_SEEN_BOOTTIME = 0xf
|
|
+ NL80211_BSS_MAX = 0x16
|
|
+ NL80211_BSS_MLD_ADDR = 0x16
|
|
+ NL80211_BSS_MLO_LINK_ID = 0x15
|
|
+ NL80211_BSS_PAD = 0x10
|
|
+ NL80211_BSS_PARENT_BSSID = 0x12
|
|
+ NL80211_BSS_PARENT_TSF = 0x11
|
|
+ NL80211_BSS_PRESP_DATA = 0xe
|
|
+ NL80211_BSS_SEEN_MS_AGO = 0xa
|
|
+ NL80211_BSS_SELECT_ATTR_BAND_PREF = 0x2
|
|
+ NL80211_BSS_SELECT_ATTR_MAX = 0x3
|
|
+ NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 0x3
|
|
+ NL80211_BSS_SELECT_ATTR_RSSI = 0x1
|
|
+ NL80211_BSS_SIGNAL_MBM = 0x7
|
|
+ NL80211_BSS_SIGNAL_UNSPEC = 0x8
|
|
+ NL80211_BSS_STATUS_ASSOCIATED = 0x1
|
|
+ NL80211_BSS_STATUS_AUTHENTICATED = 0x0
|
|
+ NL80211_BSS_STATUS = 0x9
|
|
+ NL80211_BSS_STATUS_IBSS_JOINED = 0x2
|
|
+ NL80211_BSS_TSF = 0x3
|
|
+ NL80211_CHAN_HT20 = 0x1
|
|
+ NL80211_CHAN_HT40MINUS = 0x2
|
|
+ NL80211_CHAN_HT40PLUS = 0x3
|
|
+ NL80211_CHAN_NO_HT = 0x0
|
|
+ NL80211_CHAN_WIDTH_10 = 0x7
|
|
+ NL80211_CHAN_WIDTH_160 = 0x5
|
|
+ NL80211_CHAN_WIDTH_16 = 0xc
|
|
+ NL80211_CHAN_WIDTH_1 = 0x8
|
|
+ NL80211_CHAN_WIDTH_20 = 0x1
|
|
+ NL80211_CHAN_WIDTH_20_NOHT = 0x0
|
|
+ NL80211_CHAN_WIDTH_2 = 0x9
|
|
+ NL80211_CHAN_WIDTH_320 = 0xd
|
|
+ NL80211_CHAN_WIDTH_40 = 0x2
|
|
+ NL80211_CHAN_WIDTH_4 = 0xa
|
|
+ NL80211_CHAN_WIDTH_5 = 0x6
|
|
+ NL80211_CHAN_WIDTH_80 = 0x3
|
|
+ NL80211_CHAN_WIDTH_80P80 = 0x4
|
|
+ NL80211_CHAN_WIDTH_8 = 0xb
|
|
+ NL80211_CMD_ABORT_SCAN = 0x72
|
|
+ NL80211_CMD_ACTION = 0x3b
|
|
+ NL80211_CMD_ACTION_TX_STATUS = 0x3c
|
|
+ NL80211_CMD_ADD_LINK = 0x94
|
|
+ NL80211_CMD_ADD_LINK_STA = 0x96
|
|
+ NL80211_CMD_ADD_NAN_FUNCTION = 0x75
|
|
+ NL80211_CMD_ADD_TX_TS = 0x69
|
|
+ NL80211_CMD_ASSOC_COMEBACK = 0x93
|
|
+ NL80211_CMD_ASSOCIATE = 0x26
|
|
+ NL80211_CMD_AUTHENTICATE = 0x25
|
|
+ NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 0x38
|
|
+ NL80211_CMD_CHANGE_NAN_CONFIG = 0x77
|
|
+ NL80211_CMD_CHANNEL_SWITCH = 0x66
|
|
+ NL80211_CMD_CH_SWITCH_NOTIFY = 0x58
|
|
+ NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 0x6e
|
|
+ NL80211_CMD_COLOR_CHANGE_ABORTED = 0x90
|
|
+ NL80211_CMD_COLOR_CHANGE_COMPLETED = 0x91
|
|
+ NL80211_CMD_COLOR_CHANGE_REQUEST = 0x8e
|
|
+ NL80211_CMD_COLOR_CHANGE_STARTED = 0x8f
|
|
+ NL80211_CMD_CONNECT = 0x2e
|
|
+ NL80211_CMD_CONN_FAILED = 0x5b
|
|
+ NL80211_CMD_CONTROL_PORT_FRAME = 0x81
|
|
+ NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 0x8b
|
|
+ NL80211_CMD_CRIT_PROTOCOL_START = 0x62
|
|
+ NL80211_CMD_CRIT_PROTOCOL_STOP = 0x63
|
|
+ NL80211_CMD_DEAUTHENTICATE = 0x27
|
|
+ NL80211_CMD_DEL_BEACON = 0x10
|
|
+ NL80211_CMD_DEL_INTERFACE = 0x8
|
|
+ NL80211_CMD_DEL_KEY = 0xc
|
|
+ NL80211_CMD_DEL_MPATH = 0x18
|
|
+ NL80211_CMD_DEL_NAN_FUNCTION = 0x76
|
|
+ NL80211_CMD_DEL_PMK = 0x7c
|
|
+ NL80211_CMD_DEL_PMKSA = 0x35
|
|
+ NL80211_CMD_DEL_STATION = 0x14
|
|
+ NL80211_CMD_DEL_TX_TS = 0x6a
|
|
+ NL80211_CMD_DEL_WIPHY = 0x4
|
|
+ NL80211_CMD_DISASSOCIATE = 0x28
|
|
+ NL80211_CMD_DISCONNECT = 0x30
|
|
+ NL80211_CMD_EXTERNAL_AUTH = 0x7f
|
|
+ NL80211_CMD_FLUSH_PMKSA = 0x36
|
|
+ NL80211_CMD_FRAME = 0x3b
|
|
+ NL80211_CMD_FRAME_TX_STATUS = 0x3c
|
|
+ NL80211_CMD_FRAME_WAIT_CANCEL = 0x43
|
|
+ NL80211_CMD_FT_EVENT = 0x61
|
|
+ NL80211_CMD_GET_BEACON = 0xd
|
|
+ NL80211_CMD_GET_COALESCE = 0x64
|
|
+ NL80211_CMD_GET_FTM_RESPONDER_STATS = 0x82
|
|
+ NL80211_CMD_GET_INTERFACE = 0x5
|
|
+ NL80211_CMD_GET_KEY = 0x9
|
|
+ NL80211_CMD_GET_MESH_CONFIG = 0x1c
|
|
+ NL80211_CMD_GET_MESH_PARAMS = 0x1c
|
|
+ NL80211_CMD_GET_MPATH = 0x15
|
|
+ NL80211_CMD_GET_MPP = 0x6b
|
|
+ NL80211_CMD_GET_POWER_SAVE = 0x3e
|
|
+ NL80211_CMD_GET_PROTOCOL_FEATURES = 0x5f
|
|
+ NL80211_CMD_GET_REG = 0x1f
|
|
+ NL80211_CMD_GET_SCAN = 0x20
|
|
+ NL80211_CMD_GET_STATION = 0x11
|
|
+ NL80211_CMD_GET_SURVEY = 0x32
|
|
+ NL80211_CMD_GET_WIPHY = 0x1
|
|
+ NL80211_CMD_GET_WOWLAN = 0x49
|
|
+ NL80211_CMD_JOIN_IBSS = 0x2b
|
|
+ NL80211_CMD_JOIN_MESH = 0x44
|
|
+ NL80211_CMD_JOIN_OCB = 0x6c
|
|
+ NL80211_CMD_LEAVE_IBSS = 0x2c
|
|
+ NL80211_CMD_LEAVE_MESH = 0x45
|
|
+ NL80211_CMD_LEAVE_OCB = 0x6d
|
|
+ NL80211_CMD_MAX = 0x98
|
|
+ NL80211_CMD_MICHAEL_MIC_FAILURE = 0x29
|
|
+ NL80211_CMD_MODIFY_LINK_STA = 0x97
|
|
+ NL80211_CMD_NAN_MATCH = 0x78
|
|
+ NL80211_CMD_NEW_BEACON = 0xf
|
|
+ NL80211_CMD_NEW_INTERFACE = 0x7
|
|
+ NL80211_CMD_NEW_KEY = 0xb
|
|
+ NL80211_CMD_NEW_MPATH = 0x17
|
|
+ NL80211_CMD_NEW_PEER_CANDIDATE = 0x48
|
|
+ NL80211_CMD_NEW_SCAN_RESULTS = 0x22
|
|
+ NL80211_CMD_NEW_STATION = 0x13
|
|
+ NL80211_CMD_NEW_SURVEY_RESULTS = 0x33
|
|
+ NL80211_CMD_NEW_WIPHY = 0x3
|
|
+ NL80211_CMD_NOTIFY_CQM = 0x40
|
|
+ NL80211_CMD_NOTIFY_RADAR = 0x86
|
|
+ NL80211_CMD_OBSS_COLOR_COLLISION = 0x8d
|
|
+ NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 0x85
|
|
+ NL80211_CMD_PEER_MEASUREMENT_RESULT = 0x84
|
|
+ NL80211_CMD_PEER_MEASUREMENT_START = 0x83
|
|
+ NL80211_CMD_PMKSA_CANDIDATE = 0x50
|
|
+ NL80211_CMD_PORT_AUTHORIZED = 0x7d
|
|
+ NL80211_CMD_PROBE_CLIENT = 0x54
|
|
+ NL80211_CMD_PROBE_MESH_LINK = 0x88
|
|
+ NL80211_CMD_RADAR_DETECT = 0x5e
|
|
+ NL80211_CMD_REG_BEACON_HINT = 0x2a
|
|
+ NL80211_CMD_REG_CHANGE = 0x24
|
|
+ NL80211_CMD_REGISTER_ACTION = 0x3a
|
|
+ NL80211_CMD_REGISTER_BEACONS = 0x55
|
|
+ NL80211_CMD_REGISTER_FRAME = 0x3a
|
|
+ NL80211_CMD_RELOAD_REGDB = 0x7e
|
|
+ NL80211_CMD_REMAIN_ON_CHANNEL = 0x37
|
|
+ NL80211_CMD_REMOVE_LINK = 0x95
|
|
+ NL80211_CMD_REMOVE_LINK_STA = 0x98
|
|
+ NL80211_CMD_REQ_SET_REG = 0x1b
|
|
+ NL80211_CMD_ROAM = 0x2f
|
|
+ NL80211_CMD_SCAN_ABORTED = 0x23
|
|
+ NL80211_CMD_SCHED_SCAN_RESULTS = 0x4d
|
|
+ NL80211_CMD_SCHED_SCAN_STOPPED = 0x4e
|
|
+ NL80211_CMD_SET_BEACON = 0xe
|
|
+ NL80211_CMD_SET_BSS = 0x19
|
|
+ NL80211_CMD_SET_CHANNEL = 0x41
|
|
+ NL80211_CMD_SET_COALESCE = 0x65
|
|
+ NL80211_CMD_SET_CQM = 0x3f
|
|
+ NL80211_CMD_SET_FILS_AAD = 0x92
|
|
+ NL80211_CMD_SET_INTERFACE = 0x6
|
|
+ NL80211_CMD_SET_KEY = 0xa
|
|
+ NL80211_CMD_SET_MAC_ACL = 0x5d
|
|
+ NL80211_CMD_SET_MCAST_RATE = 0x5c
|
|
+ NL80211_CMD_SET_MESH_CONFIG = 0x1d
|
|
+ NL80211_CMD_SET_MESH_PARAMS = 0x1d
|
|
+ NL80211_CMD_SET_MGMT_EXTRA_IE = 0x1e
|
|
+ NL80211_CMD_SET_MPATH = 0x16
|
|
+ NL80211_CMD_SET_MULTICAST_TO_UNICAST = 0x79
|
|
+ NL80211_CMD_SET_NOACK_MAP = 0x57
|
|
+ NL80211_CMD_SET_PMK = 0x7b
|
|
+ NL80211_CMD_SET_PMKSA = 0x34
|
|
+ NL80211_CMD_SET_POWER_SAVE = 0x3d
|
|
+ NL80211_CMD_SET_QOS_MAP = 0x68
|
|
+ NL80211_CMD_SET_REG = 0x1a
|
|
+ NL80211_CMD_SET_REKEY_OFFLOAD = 0x4f
|
|
+ NL80211_CMD_SET_SAR_SPECS = 0x8c
|
|
+ NL80211_CMD_SET_STATION = 0x12
|
|
+ NL80211_CMD_SET_TID_CONFIG = 0x89
|
|
+ NL80211_CMD_SET_TX_BITRATE_MASK = 0x39
|
|
+ NL80211_CMD_SET_WDS_PEER = 0x42
|
|
+ NL80211_CMD_SET_WIPHY = 0x2
|
|
+ NL80211_CMD_SET_WIPHY_NETNS = 0x31
|
|
+ NL80211_CMD_SET_WOWLAN = 0x4a
|
|
+ NL80211_CMD_STA_OPMODE_CHANGED = 0x80
|
|
+ NL80211_CMD_START_AP = 0xf
|
|
+ NL80211_CMD_START_NAN = 0x73
|
|
+ NL80211_CMD_START_P2P_DEVICE = 0x59
|
|
+ NL80211_CMD_START_SCHED_SCAN = 0x4b
|
|
+ NL80211_CMD_STOP_AP = 0x10
|
|
+ NL80211_CMD_STOP_NAN = 0x74
|
|
+ NL80211_CMD_STOP_P2P_DEVICE = 0x5a
|
|
+ NL80211_CMD_STOP_SCHED_SCAN = 0x4c
|
|
+ NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 0x70
|
|
+ NL80211_CMD_TDLS_CHANNEL_SWITCH = 0x6f
|
|
+ NL80211_CMD_TDLS_MGMT = 0x52
|
|
+ NL80211_CMD_TDLS_OPER = 0x51
|
|
+ NL80211_CMD_TESTMODE = 0x2d
|
|
+ NL80211_CMD_TRIGGER_SCAN = 0x21
|
|
+ NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 0x56
|
|
+ NL80211_CMD_UNEXPECTED_FRAME = 0x53
|
|
+ NL80211_CMD_UNPROT_BEACON = 0x8a
|
|
+ NL80211_CMD_UNPROT_DEAUTHENTICATE = 0x46
|
|
+ NL80211_CMD_UNPROT_DISASSOCIATE = 0x47
|
|
+ NL80211_CMD_UNSPEC = 0x0
|
|
+ NL80211_CMD_UPDATE_CONNECT_PARAMS = 0x7a
|
|
+ NL80211_CMD_UPDATE_FT_IES = 0x60
|
|
+ NL80211_CMD_UPDATE_OWE_INFO = 0x87
|
|
+ NL80211_CMD_VENDOR = 0x67
|
|
+ NL80211_CMD_WIPHY_REG_CHANGE = 0x71
|
|
+ NL80211_COALESCE_CONDITION_MATCH = 0x0
|
|
+ NL80211_COALESCE_CONDITION_NO_MATCH = 0x1
|
|
+ NL80211_CONN_FAIL_BLOCKED_CLIENT = 0x1
|
|
+ NL80211_CONN_FAIL_MAX_CLIENTS = 0x0
|
|
+ NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 0x2
|
|
+ NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 0x1
|
|
+ NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0x0
|
|
+ NL80211_CQM_TXE_MAX_INTVL = 0x708
|
|
+ NL80211_CRIT_PROTO_APIPA = 0x3
|
|
+ NL80211_CRIT_PROTO_DHCP = 0x1
|
|
+ NL80211_CRIT_PROTO_EAPOL = 0x2
|
|
+ NL80211_CRIT_PROTO_MAX_DURATION = 0x1388
|
|
+ NL80211_CRIT_PROTO_UNSPEC = 0x0
|
|
+ NL80211_DFS_AVAILABLE = 0x2
|
|
+ NL80211_DFS_ETSI = 0x2
|
|
+ NL80211_DFS_FCC = 0x1
|
|
+ NL80211_DFS_JP = 0x3
|
|
+ NL80211_DFS_UNAVAILABLE = 0x1
|
|
+ NL80211_DFS_UNSET = 0x0
|
|
+ NL80211_DFS_USABLE = 0x0
|
|
+ NL80211_EDMG_BW_CONFIG_MAX = 0xf
|
|
+ NL80211_EDMG_BW_CONFIG_MIN = 0x4
|
|
+ NL80211_EDMG_CHANNELS_MAX = 0x3c
|
|
+ NL80211_EDMG_CHANNELS_MIN = 0x1
|
|
+ NL80211_EHT_MAX_CAPABILITY_LEN = 0x33
|
|
+ NL80211_EHT_MIN_CAPABILITY_LEN = 0xd
|
|
+ NL80211_EXTERNAL_AUTH_ABORT = 0x1
|
|
+ NL80211_EXTERNAL_AUTH_START = 0x0
|
|
+ NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 0x32
|
|
+ NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 0x10
|
|
+ NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 0xf
|
|
+ NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 0x12
|
|
+ NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 0x1b
|
|
+ NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 0x21
|
|
+ NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 0x22
|
|
+ NL80211_EXT_FEATURE_AQL = 0x28
|
|
+ NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 0x2e
|
|
+ NL80211_EXT_FEATURE_BEACON_PROTECTION = 0x29
|
|
+ NL80211_EXT_FEATURE_BEACON_RATE_HE = 0x36
|
|
+ NL80211_EXT_FEATURE_BEACON_RATE_HT = 0x7
|
|
+ NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 0x6
|
|
+ NL80211_EXT_FEATURE_BEACON_RATE_VHT = 0x8
|
|
+ NL80211_EXT_FEATURE_BSS_COLOR = 0x3a
|
|
+ NL80211_EXT_FEATURE_BSS_PARENT_TSF = 0x4
|
|
+ NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 0x1f
|
|
+ NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 0x2a
|
|
+ NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 0x1a
|
|
+ NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 0x30
|
|
+ NL80211_EXT_FEATURE_CQM_RSSI_LIST = 0xd
|
|
+ NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = 0x1b
|
|
+ NL80211_EXT_FEATURE_DEL_IBSS_STA = 0x2c
|
|
+ NL80211_EXT_FEATURE_DFS_OFFLOAD = 0x19
|
|
+ NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 0x20
|
|
+ NL80211_EXT_FEATURE_EXT_KEY_ID = 0x24
|
|
+ NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 0x3b
|
|
+ NL80211_EXT_FEATURE_FILS_DISCOVERY = 0x34
|
|
+ NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 0x11
|
|
+ NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 0xe
|
|
+ NL80211_EXT_FEATURE_FILS_STA = 0x9
|
|
+ NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 0x18
|
|
+ NL80211_EXT_FEATURE_LOW_POWER_SCAN = 0x17
|
|
+ NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 0x16
|
|
+ NL80211_EXT_FEATURE_MFP_OPTIONAL = 0x15
|
|
+ NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 0xa
|
|
+ NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 0xb
|
|
+ NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 0x2d
|
|
+ NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 0x2
|
|
+ NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 0x14
|
|
+ NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 0x13
|
|
+ NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 0x31
|
|
+ NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 0x3d
|
|
+ NL80211_EXT_FEATURE_PROTECTED_TWT = 0x2b
|
|
+ NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 0x39
|
|
+ NL80211_EXT_FEATURE_RADAR_BACKGROUND = 0x3c
|
|
+ NL80211_EXT_FEATURE_RRM = 0x1
|
|
+ NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 0x33
|
|
+ NL80211_EXT_FEATURE_SAE_OFFLOAD = 0x26
|
|
+ NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 0x2f
|
|
+ NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 0x1e
|
|
+ NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 0x1d
|
|
+ NL80211_EXT_FEATURE_SCAN_START_TIME = 0x3
|
|
+ NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 0x23
|
|
+ NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 0xc
|
|
+ NL80211_EXT_FEATURE_SECURE_LTF = 0x37
|
|
+ NL80211_EXT_FEATURE_SECURE_RTT = 0x38
|
|
+ NL80211_EXT_FEATURE_SET_SCAN_DWELL = 0x5
|
|
+ NL80211_EXT_FEATURE_STA_TX_PWR = 0x25
|
|
+ NL80211_EXT_FEATURE_TXQS = 0x1c
|
|
+ NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 0x35
|
|
+ NL80211_EXT_FEATURE_VHT_IBSS = 0x0
|
|
+ NL80211_EXT_FEATURE_VLAN_OFFLOAD = 0x27
|
|
+ NL80211_FEATURE_ACKTO_ESTIMATION = 0x800000
|
|
+ NL80211_FEATURE_ACTIVE_MONITOR = 0x20000
|
|
+ NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 0x4000
|
|
+ NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 0x40000
|
|
+ NL80211_FEATURE_AP_SCAN = 0x100
|
|
+ NL80211_FEATURE_CELL_BASE_REG_HINTS = 0x8
|
|
+ NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 0x80000
|
|
+ NL80211_FEATURE_DYNAMIC_SMPS = 0x2000000
|
|
+ NL80211_FEATURE_FULL_AP_CLIENT_STATE = 0x8000
|
|
+ NL80211_FEATURE_HT_IBSS = 0x2
|
|
+ NL80211_FEATURE_INACTIVITY_TIMER = 0x4
|
|
+ NL80211_FEATURE_LOW_PRIORITY_SCAN = 0x40
|
|
+ NL80211_FEATURE_MAC_ON_CREATE = 0x8000000
|
|
+ NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 0x80000000
|
|
+ NL80211_FEATURE_NEED_OBSS_SCAN = 0x400
|
|
+ NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 0x10
|
|
+ NL80211_FEATURE_P2P_GO_CTWIN = 0x800
|
|
+ NL80211_FEATURE_P2P_GO_OPPPS = 0x1000
|
|
+ NL80211_FEATURE_QUIET = 0x200000
|
|
+ NL80211_FEATURE_SAE = 0x20
|
|
+ NL80211_FEATURE_SCAN_FLUSH = 0x80
|
|
+ NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 0x20000000
|
|
+ NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 0x40000000
|
|
+ NL80211_FEATURE_SK_TX_STATUS = 0x1
|
|
+ NL80211_FEATURE_STATIC_SMPS = 0x1000000
|
|
+ NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 0x4000000
|
|
+ NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 0x10000000
|
|
+ NL80211_FEATURE_TX_POWER_INSERTION = 0x400000
|
|
+ NL80211_FEATURE_USERSPACE_MPM = 0x10000
|
|
+ NL80211_FEATURE_VIF_TXPOWER = 0x200
|
|
+ NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 0x100000
|
|
+ NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 0x2
|
|
+ NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 0x1
|
|
+ NL80211_FILS_DISCOVERY_ATTR_MAX = 0x3
|
|
+ NL80211_FILS_DISCOVERY_ATTR_TMPL = 0x3
|
|
+ NL80211_FILS_DISCOVERY_TMPL_MIN_LEN = 0x2a
|
|
+ NL80211_FREQUENCY_ATTR_16MHZ = 0x19
|
|
+ NL80211_FREQUENCY_ATTR_1MHZ = 0x15
|
|
+ NL80211_FREQUENCY_ATTR_2MHZ = 0x16
|
|
+ NL80211_FREQUENCY_ATTR_4MHZ = 0x17
|
|
+ NL80211_FREQUENCY_ATTR_8MHZ = 0x18
|
|
+ NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 0xd
|
|
+ NL80211_FREQUENCY_ATTR_DFS_STATE = 0x7
|
|
+ NL80211_FREQUENCY_ATTR_DFS_TIME = 0x8
|
|
+ NL80211_FREQUENCY_ATTR_DISABLED = 0x2
|
|
+ NL80211_FREQUENCY_ATTR_FREQ = 0x1
|
|
+ NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf
|
|
+ NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe
|
|
+ NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf
|
|
+ NL80211_FREQUENCY_ATTR_MAX = 0x1b
|
|
+ NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6
|
|
+ NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11
|
|
+ NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc
|
|
+ NL80211_FREQUENCY_ATTR_NO_20MHZ = 0x10
|
|
+ NL80211_FREQUENCY_ATTR_NO_320MHZ = 0x1a
|
|
+ NL80211_FREQUENCY_ATTR_NO_80MHZ = 0xb
|
|
+ NL80211_FREQUENCY_ATTR_NO_EHT = 0x1b
|
|
+ NL80211_FREQUENCY_ATTR_NO_HE = 0x13
|
|
+ NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 0x9
|
|
+ NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 0xa
|
|
+ NL80211_FREQUENCY_ATTR_NO_IBSS = 0x3
|
|
+ NL80211_FREQUENCY_ATTR_NO_IR = 0x3
|
|
+ NL80211_FREQUENCY_ATTR_OFFSET = 0x14
|
|
+ NL80211_FREQUENCY_ATTR_PASSIVE_SCAN = 0x3
|
|
+ NL80211_FREQUENCY_ATTR_RADAR = 0x5
|
|
+ NL80211_FREQUENCY_ATTR_WMM = 0x12
|
|
+ NL80211_FTM_RESP_ATTR_CIVICLOC = 0x3
|
|
+ NL80211_FTM_RESP_ATTR_ENABLED = 0x1
|
|
+ NL80211_FTM_RESP_ATTR_LCI = 0x2
|
|
+ NL80211_FTM_RESP_ATTR_MAX = 0x3
|
|
+ NL80211_FTM_STATS_ASAP_NUM = 0x4
|
|
+ NL80211_FTM_STATS_FAILED_NUM = 0x3
|
|
+ NL80211_FTM_STATS_MAX = 0xa
|
|
+ NL80211_FTM_STATS_NON_ASAP_NUM = 0x5
|
|
+ NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 0x9
|
|
+ NL80211_FTM_STATS_PAD = 0xa
|
|
+ NL80211_FTM_STATS_PARTIAL_NUM = 0x2
|
|
+ NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 0x8
|
|
+ NL80211_FTM_STATS_SUCCESS_NUM = 0x1
|
|
+ NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 0x6
|
|
+ NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 0x7
|
|
+ NL80211_GENL_NAME = "nl80211"
|
|
+ NL80211_HE_BSS_COLOR_ATTR_COLOR = 0x1
|
|
+ NL80211_HE_BSS_COLOR_ATTR_DISABLED = 0x2
|
|
+ NL80211_HE_BSS_COLOR_ATTR_MAX = 0x3
|
|
+ NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 0x3
|
|
+ NL80211_HE_MAX_CAPABILITY_LEN = 0x36
|
|
+ NL80211_HE_MIN_CAPABILITY_LEN = 0x10
|
|
+ NL80211_HE_NSS_MAX = 0x8
|
|
+ NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 0x4
|
|
+ NL80211_HE_OBSS_PD_ATTR_MAX = 0x6
|
|
+ NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 0x2
|
|
+ NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 0x1
|
|
+ NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 0x3
|
|
+ NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 0x5
|
|
+ NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 0x6
|
|
+ NL80211_HIDDEN_SSID_NOT_IN_USE = 0x0
|
|
+ NL80211_HIDDEN_SSID_ZERO_CONTENTS = 0x2
|
|
+ NL80211_HIDDEN_SSID_ZERO_LEN = 0x1
|
|
+ NL80211_HT_CAPABILITY_LEN = 0x1a
|
|
+ NL80211_IFACE_COMB_BI_MIN_GCD = 0x7
|
|
+ NL80211_IFACE_COMB_LIMITS = 0x1
|
|
+ NL80211_IFACE_COMB_MAXNUM = 0x2
|
|
+ NL80211_IFACE_COMB_NUM_CHANNELS = 0x4
|
|
+ NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 0x6
|
|
+ NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 0x5
|
|
+ NL80211_IFACE_COMB_STA_AP_BI_MATCH = 0x3
|
|
+ NL80211_IFACE_COMB_UNSPEC = 0x0
|
|
+ NL80211_IFACE_LIMIT_MAX = 0x1
|
|
+ NL80211_IFACE_LIMIT_TYPES = 0x2
|
|
+ NL80211_IFACE_LIMIT_UNSPEC = 0x0
|
|
+ NL80211_IFTYPE_ADHOC = 0x1
|
|
+ NL80211_IFTYPE_AKM_ATTR_IFTYPES = 0x1
|
|
+ NL80211_IFTYPE_AKM_ATTR_MAX = 0x2
|
|
+ NL80211_IFTYPE_AKM_ATTR_SUITES = 0x2
|
|
+ NL80211_IFTYPE_AP = 0x3
|
|
+ NL80211_IFTYPE_AP_VLAN = 0x4
|
|
+ NL80211_IFTYPE_MAX = 0xc
|
|
+ NL80211_IFTYPE_MESH_POINT = 0x7
|
|
+ NL80211_IFTYPE_MONITOR = 0x6
|
|
+ NL80211_IFTYPE_NAN = 0xc
|
|
+ NL80211_IFTYPE_OCB = 0xb
|
|
+ NL80211_IFTYPE_P2P_CLIENT = 0x8
|
|
+ NL80211_IFTYPE_P2P_DEVICE = 0xa
|
|
+ NL80211_IFTYPE_P2P_GO = 0x9
|
|
+ NL80211_IFTYPE_STATION = 0x2
|
|
+ NL80211_IFTYPE_UNSPECIFIED = 0x0
|
|
+ NL80211_IFTYPE_WDS = 0x5
|
|
+ NL80211_KCK_EXT_LEN = 0x18
|
|
+ NL80211_KCK_LEN = 0x10
|
|
+ NL80211_KEK_EXT_LEN = 0x20
|
|
+ NL80211_KEK_LEN = 0x10
|
|
+ NL80211_KEY_CIPHER = 0x3
|
|
+ NL80211_KEY_DATA = 0x1
|
|
+ NL80211_KEY_DEFAULT_BEACON = 0xa
|
|
+ NL80211_KEY_DEFAULT = 0x5
|
|
+ NL80211_KEY_DEFAULT_MGMT = 0x6
|
|
+ NL80211_KEY_DEFAULT_TYPE_MULTICAST = 0x2
|
|
+ NL80211_KEY_DEFAULT_TYPES = 0x8
|
|
+ NL80211_KEY_DEFAULT_TYPE_UNICAST = 0x1
|
|
+ NL80211_KEY_IDX = 0x2
|
|
+ NL80211_KEY_MAX = 0xa
|
|
+ NL80211_KEY_MODE = 0x9
|
|
+ NL80211_KEY_NO_TX = 0x1
|
|
+ NL80211_KEY_RX_TX = 0x0
|
|
+ NL80211_KEY_SEQ = 0x4
|
|
+ NL80211_KEY_SET_TX = 0x2
|
|
+ NL80211_KEY_TYPE = 0x7
|
|
+ NL80211_KEYTYPE_GROUP = 0x0
|
|
+ NL80211_KEYTYPE_PAIRWISE = 0x1
|
|
+ NL80211_KEYTYPE_PEERKEY = 0x2
|
|
+ NL80211_MAX_NR_AKM_SUITES = 0x2
|
|
+ NL80211_MAX_NR_CIPHER_SUITES = 0x5
|
|
+ NL80211_MAX_SUPP_HT_RATES = 0x4d
|
|
+ NL80211_MAX_SUPP_RATES = 0x20
|
|
+ NL80211_MAX_SUPP_REG_RULES = 0x80
|
|
+ NL80211_MBSSID_CONFIG_ATTR_EMA = 0x5
|
|
+ NL80211_MBSSID_CONFIG_ATTR_INDEX = 0x3
|
|
+ NL80211_MBSSID_CONFIG_ATTR_MAX = 0x5
|
|
+ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 0x2
|
|
+ NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 0x1
|
|
+ NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 0x4
|
|
+ NL80211_MESHCONF_ATTR_MAX = 0x1f
|
|
+ NL80211_MESHCONF_AUTO_OPEN_PLINKS = 0x7
|
|
+ NL80211_MESHCONF_AWAKE_WINDOW = 0x1b
|
|
+ NL80211_MESHCONF_CONFIRM_TIMEOUT = 0x2
|
|
+ NL80211_MESHCONF_CONNECTED_TO_AS = 0x1f
|
|
+ NL80211_MESHCONF_CONNECTED_TO_GATE = 0x1d
|
|
+ NL80211_MESHCONF_ELEMENT_TTL = 0xf
|
|
+ NL80211_MESHCONF_FORWARDING = 0x13
|
|
+ NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 0x11
|
|
+ NL80211_MESHCONF_HOLDING_TIMEOUT = 0x3
|
|
+ NL80211_MESHCONF_HT_OPMODE = 0x16
|
|
+ NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 0xb
|
|
+ NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 0x19
|
|
+ NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 0x8
|
|
+ NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 0xd
|
|
+ NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 0x17
|
|
+ NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 0x12
|
|
+ NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 0xc
|
|
+ NL80211_MESHCONF_HWMP_RANN_INTERVAL = 0x10
|
|
+ NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 0x18
|
|
+ NL80211_MESHCONF_HWMP_ROOTMODE = 0xe
|
|
+ NL80211_MESHCONF_MAX_PEER_LINKS = 0x4
|
|
+ NL80211_MESHCONF_MAX_RETRIES = 0x5
|
|
+ NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 0xa
|
|
+ NL80211_MESHCONF_NOLEARN = 0x1e
|
|
+ NL80211_MESHCONF_PATH_REFRESH_TIME = 0x9
|
|
+ NL80211_MESHCONF_PLINK_TIMEOUT = 0x1c
|
|
+ NL80211_MESHCONF_POWER_MODE = 0x1a
|
|
+ NL80211_MESHCONF_RETRY_TIMEOUT = 0x1
|
|
+ NL80211_MESHCONF_RSSI_THRESHOLD = 0x14
|
|
+ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 0x15
|
|
+ NL80211_MESHCONF_TTL = 0x6
|
|
+ NL80211_MESH_POWER_ACTIVE = 0x1
|
|
+ NL80211_MESH_POWER_DEEP_SLEEP = 0x3
|
|
+ NL80211_MESH_POWER_LIGHT_SLEEP = 0x2
|
|
+ NL80211_MESH_POWER_MAX = 0x3
|
|
+ NL80211_MESH_POWER_UNKNOWN = 0x0
|
|
+ NL80211_MESH_SETUP_ATTR_MAX = 0x8
|
|
+ NL80211_MESH_SETUP_AUTH_PROTOCOL = 0x8
|
|
+ NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 0x2
|
|
+ NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 0x1
|
|
+ NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 0x6
|
|
+ NL80211_MESH_SETUP_IE = 0x3
|
|
+ NL80211_MESH_SETUP_USERSPACE_AMPE = 0x5
|
|
+ NL80211_MESH_SETUP_USERSPACE_AUTH = 0x4
|
|
+ NL80211_MESH_SETUP_USERSPACE_MPM = 0x7
|
|
+ NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE = 0x3
|
|
+ NL80211_MFP_NO = 0x0
|
|
+ NL80211_MFP_OPTIONAL = 0x2
|
|
+ NL80211_MFP_REQUIRED = 0x1
|
|
+ NL80211_MIN_REMAIN_ON_CHANNEL_TIME = 0xa
|
|
+ NL80211_MNTR_FLAG_ACTIVE = 0x6
|
|
+ NL80211_MNTR_FLAG_CONTROL = 0x3
|
|
+ NL80211_MNTR_FLAG_COOK_FRAMES = 0x5
|
|
+ NL80211_MNTR_FLAG_FCSFAIL = 0x1
|
|
+ NL80211_MNTR_FLAG_MAX = 0x6
|
|
+ NL80211_MNTR_FLAG_OTHER_BSS = 0x4
|
|
+ NL80211_MNTR_FLAG_PLCPFAIL = 0x2
|
|
+ NL80211_MPATH_FLAG_ACTIVE = 0x1
|
|
+ NL80211_MPATH_FLAG_FIXED = 0x8
|
|
+ NL80211_MPATH_FLAG_RESOLVED = 0x10
|
|
+ NL80211_MPATH_FLAG_RESOLVING = 0x2
|
|
+ NL80211_MPATH_FLAG_SN_VALID = 0x4
|
|
+ NL80211_MPATH_INFO_DISCOVERY_RETRIES = 0x7
|
|
+ NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 0x6
|
|
+ NL80211_MPATH_INFO_EXPTIME = 0x4
|
|
+ NL80211_MPATH_INFO_FLAGS = 0x5
|
|
+ NL80211_MPATH_INFO_FRAME_QLEN = 0x1
|
|
+ NL80211_MPATH_INFO_HOP_COUNT = 0x8
|
|
+ NL80211_MPATH_INFO_MAX = 0x9
|
|
+ NL80211_MPATH_INFO_METRIC = 0x3
|
|
+ NL80211_MPATH_INFO_PATH_CHANGE = 0x9
|
|
+ NL80211_MPATH_INFO_SN = 0x2
|
|
+ NL80211_MULTICAST_GROUP_CONFIG = "config"
|
|
+ NL80211_MULTICAST_GROUP_MLME = "mlme"
|
|
+ NL80211_MULTICAST_GROUP_NAN = "nan"
|
|
+ NL80211_MULTICAST_GROUP_REG = "regulatory"
|
|
+ NL80211_MULTICAST_GROUP_SCAN = "scan"
|
|
+ NL80211_MULTICAST_GROUP_TESTMODE = "testmode"
|
|
+ NL80211_MULTICAST_GROUP_VENDOR = "vendor"
|
|
+ NL80211_NAN_FUNC_ATTR_MAX = 0x10
|
|
+ NL80211_NAN_FUNC_CLOSE_RANGE = 0x9
|
|
+ NL80211_NAN_FUNC_FOLLOW_UP = 0x2
|
|
+ NL80211_NAN_FUNC_FOLLOW_UP_DEST = 0x8
|
|
+ NL80211_NAN_FUNC_FOLLOW_UP_ID = 0x6
|
|
+ NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 0x7
|
|
+ NL80211_NAN_FUNC_INSTANCE_ID = 0xf
|
|
+ NL80211_NAN_FUNC_MAX_TYPE = 0x2
|
|
+ NL80211_NAN_FUNC_PUBLISH_BCAST = 0x4
|
|
+ NL80211_NAN_FUNC_PUBLISH = 0x0
|
|
+ NL80211_NAN_FUNC_PUBLISH_TYPE = 0x3
|
|
+ NL80211_NAN_FUNC_RX_MATCH_FILTER = 0xd
|
|
+ NL80211_NAN_FUNC_SERVICE_ID = 0x2
|
|
+ NL80211_NAN_FUNC_SERVICE_ID_LEN = 0x6
|
|
+ NL80211_NAN_FUNC_SERVICE_INFO = 0xb
|
|
+ NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN = 0xff
|
|
+ NL80211_NAN_FUNC_SRF = 0xc
|
|
+ NL80211_NAN_FUNC_SRF_MAX_LEN = 0xff
|
|
+ NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 0x5
|
|
+ NL80211_NAN_FUNC_SUBSCRIBE = 0x1
|
|
+ NL80211_NAN_FUNC_TERM_REASON = 0x10
|
|
+ NL80211_NAN_FUNC_TERM_REASON_ERROR = 0x2
|
|
+ NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 0x1
|
|
+ NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0x0
|
|
+ NL80211_NAN_FUNC_TTL = 0xa
|
|
+ NL80211_NAN_FUNC_TX_MATCH_FILTER = 0xe
|
|
+ NL80211_NAN_FUNC_TYPE = 0x1
|
|
+ NL80211_NAN_MATCH_ATTR_MAX = 0x2
|
|
+ NL80211_NAN_MATCH_FUNC_LOCAL = 0x1
|
|
+ NL80211_NAN_MATCH_FUNC_PEER = 0x2
|
|
+ NL80211_NAN_SOLICITED_PUBLISH = 0x1
|
|
+ NL80211_NAN_SRF_ATTR_MAX = 0x4
|
|
+ NL80211_NAN_SRF_BF = 0x2
|
|
+ NL80211_NAN_SRF_BF_IDX = 0x3
|
|
+ NL80211_NAN_SRF_INCLUDE = 0x1
|
|
+ NL80211_NAN_SRF_MAC_ADDRS = 0x4
|
|
+ NL80211_NAN_UNSOLICITED_PUBLISH = 0x2
|
|
+ NL80211_NUM_ACS = 0x4
|
|
+ NL80211_P2P_PS_SUPPORTED = 0x1
|
|
+ NL80211_P2P_PS_UNSUPPORTED = 0x0
|
|
+ NL80211_PKTPAT_MASK = 0x1
|
|
+ NL80211_PKTPAT_OFFSET = 0x3
|
|
+ NL80211_PKTPAT_PATTERN = 0x2
|
|
+ NL80211_PLINK_ACTION_BLOCK = 0x2
|
|
+ NL80211_PLINK_ACTION_NO_ACTION = 0x0
|
|
+ NL80211_PLINK_ACTION_OPEN = 0x1
|
|
+ NL80211_PLINK_BLOCKED = 0x6
|
|
+ NL80211_PLINK_CNF_RCVD = 0x3
|
|
+ NL80211_PLINK_ESTAB = 0x4
|
|
+ NL80211_PLINK_HOLDING = 0x5
|
|
+ NL80211_PLINK_LISTEN = 0x0
|
|
+ NL80211_PLINK_OPN_RCVD = 0x2
|
|
+ NL80211_PLINK_OPN_SNT = 0x1
|
|
+ NL80211_PMKSA_CANDIDATE_BSSID = 0x2
|
|
+ NL80211_PMKSA_CANDIDATE_INDEX = 0x1
|
|
+ NL80211_PMKSA_CANDIDATE_PREAUTH = 0x3
|
|
+ NL80211_PMSR_ATTR_MAX = 0x5
|
|
+ NL80211_PMSR_ATTR_MAX_PEERS = 0x1
|
|
+ NL80211_PMSR_ATTR_PEERS = 0x5
|
|
+ NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 0x3
|
|
+ NL80211_PMSR_ATTR_REPORT_AP_TSF = 0x2
|
|
+ NL80211_PMSR_ATTR_TYPE_CAPA = 0x4
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 0x1
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 0x6
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 0x7
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_MAX = 0xa
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 0x8
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 0x2
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 0xa
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 0x5
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 0x4
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 0x3
|
|
+ NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 0x9
|
|
+ NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 0x7
|
|
+ NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 0x5
|
|
+ NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 0x1
|
|
+ NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 0x6
|
|
+ NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 0x4
|
|
+ NL80211_PMSR_FTM_FAILURE_REJECTED = 0x2
|
|
+ NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0x0
|
|
+ NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 0x3
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_ASAP = 0x1
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 0xd
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 0x5
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 0x4
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 0x6
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 0xc
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_MAX = 0xd
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 0xb
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 0x3
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 0x7
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 0x2
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 0x9
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 0x8
|
|
+ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 0xa
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 0x7
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 0x2
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 0x5
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 0x14
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 0x10
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 0x12
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 0x11
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 0x1
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 0x8
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_LCI = 0x13
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_MAX = 0x15
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 0x6
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 0x3
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 0x4
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_PAD = 0x15
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 0x9
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 0xa
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 0xd
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 0xf
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 0xe
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 0xc
|
|
+ NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 0xb
|
|
+ NL80211_PMSR_PEER_ATTR_ADDR = 0x1
|
|
+ NL80211_PMSR_PEER_ATTR_CHAN = 0x2
|
|
+ NL80211_PMSR_PEER_ATTR_MAX = 0x4
|
|
+ NL80211_PMSR_PEER_ATTR_REQ = 0x3
|
|
+ NL80211_PMSR_PEER_ATTR_RESP = 0x4
|
|
+ NL80211_PMSR_REQ_ATTR_DATA = 0x1
|
|
+ NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 0x2
|
|
+ NL80211_PMSR_REQ_ATTR_MAX = 0x2
|
|
+ NL80211_PMSR_RESP_ATTR_AP_TSF = 0x4
|
|
+ NL80211_PMSR_RESP_ATTR_DATA = 0x1
|
|
+ NL80211_PMSR_RESP_ATTR_FINAL = 0x5
|
|
+ NL80211_PMSR_RESP_ATTR_HOST_TIME = 0x3
|
|
+ NL80211_PMSR_RESP_ATTR_MAX = 0x6
|
|
+ NL80211_PMSR_RESP_ATTR_PAD = 0x6
|
|
+ NL80211_PMSR_RESP_ATTR_STATUS = 0x2
|
|
+ NL80211_PMSR_STATUS_FAILURE = 0x3
|
|
+ NL80211_PMSR_STATUS_REFUSED = 0x1
|
|
+ NL80211_PMSR_STATUS_SUCCESS = 0x0
|
|
+ NL80211_PMSR_STATUS_TIMEOUT = 0x2
|
|
+ NL80211_PMSR_TYPE_FTM = 0x1
|
|
+ NL80211_PMSR_TYPE_INVALID = 0x0
|
|
+ NL80211_PMSR_TYPE_MAX = 0x1
|
|
+ NL80211_PREAMBLE_DMG = 0x3
|
|
+ NL80211_PREAMBLE_HE = 0x4
|
|
+ NL80211_PREAMBLE_HT = 0x1
|
|
+ NL80211_PREAMBLE_LEGACY = 0x0
|
|
+ NL80211_PREAMBLE_VHT = 0x2
|
|
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 0x8
|
|
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 0x4
|
|
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 0x2
|
|
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 0x1
|
|
+ NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 0x1
|
|
+ NL80211_PS_DISABLED = 0x0
|
|
+ NL80211_PS_ENABLED = 0x1
|
|
+ NL80211_RADAR_CAC_ABORTED = 0x2
|
|
+ NL80211_RADAR_CAC_FINISHED = 0x1
|
|
+ NL80211_RADAR_CAC_STARTED = 0x5
|
|
+ NL80211_RADAR_DETECTED = 0x0
|
|
+ NL80211_RADAR_NOP_FINISHED = 0x3
|
|
+ NL80211_RADAR_PRE_CAC_EXPIRED = 0x4
|
|
+ NL80211_RATE_INFO_10_MHZ_WIDTH = 0xb
|
|
+ NL80211_RATE_INFO_160_MHZ_WIDTH = 0xa
|
|
+ NL80211_RATE_INFO_320_MHZ_WIDTH = 0x12
|
|
+ NL80211_RATE_INFO_40_MHZ_WIDTH = 0x3
|
|
+ NL80211_RATE_INFO_5_MHZ_WIDTH = 0xc
|
|
+ NL80211_RATE_INFO_80_MHZ_WIDTH = 0x8
|
|
+ NL80211_RATE_INFO_80P80_MHZ_WIDTH = 0x9
|
|
+ NL80211_RATE_INFO_BITRATE32 = 0x5
|
|
+ NL80211_RATE_INFO_BITRATE = 0x1
|
|
+ NL80211_RATE_INFO_EHT_GI_0_8 = 0x0
|
|
+ NL80211_RATE_INFO_EHT_GI_1_6 = 0x1
|
|
+ NL80211_RATE_INFO_EHT_GI_3_2 = 0x2
|
|
+ NL80211_RATE_INFO_EHT_GI = 0x15
|
|
+ NL80211_RATE_INFO_EHT_MCS = 0x13
|
|
+ NL80211_RATE_INFO_EHT_NSS = 0x14
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 0x3
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 0x4
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 0x5
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0x0
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 0xb
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 0xc
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 0xd
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 0xe
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 0x6
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 0x7
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 0xf
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 0x1
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 0x2
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 0x8
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 0x9
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 0xa
|
|
+ NL80211_RATE_INFO_EHT_RU_ALLOC = 0x16
|
|
+ NL80211_RATE_INFO_HE_1XLTF = 0x0
|
|
+ NL80211_RATE_INFO_HE_2XLTF = 0x1
|
|
+ NL80211_RATE_INFO_HE_4XLTF = 0x2
|
|
+ NL80211_RATE_INFO_HE_DCM = 0x10
|
|
+ NL80211_RATE_INFO_HE_GI_0_8 = 0x0
|
|
+ NL80211_RATE_INFO_HE_GI_1_6 = 0x1
|
|
+ NL80211_RATE_INFO_HE_GI_3_2 = 0x2
|
|
+ NL80211_RATE_INFO_HE_GI = 0xf
|
|
+ NL80211_RATE_INFO_HE_MCS = 0xd
|
|
+ NL80211_RATE_INFO_HE_NSS = 0xe
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_106 = 0x2
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_242 = 0x3
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0x0
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 0x6
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_484 = 0x4
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_52 = 0x1
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC_996 = 0x5
|
|
+ NL80211_RATE_INFO_HE_RU_ALLOC = 0x11
|
|
+ NL80211_RATE_INFO_MAX = 0x16
|
|
+ NL80211_RATE_INFO_MCS = 0x2
|
|
+ NL80211_RATE_INFO_SHORT_GI = 0x4
|
|
+ NL80211_RATE_INFO_VHT_MCS = 0x6
|
|
+ NL80211_RATE_INFO_VHT_NSS = 0x7
|
|
+ NL80211_REGDOM_SET_BY_CORE = 0x0
|
|
+ NL80211_REGDOM_SET_BY_COUNTRY_IE = 0x3
|
|
+ NL80211_REGDOM_SET_BY_DRIVER = 0x2
|
|
+ NL80211_REGDOM_SET_BY_USER = 0x1
|
|
+ NL80211_REGDOM_TYPE_COUNTRY = 0x0
|
|
+ NL80211_REGDOM_TYPE_CUSTOM_WORLD = 0x2
|
|
+ NL80211_REGDOM_TYPE_INTERSECTION = 0x3
|
|
+ NL80211_REGDOM_TYPE_WORLD = 0x1
|
|
+ NL80211_REG_RULE_ATTR_MAX = 0x7
|
|
+ NL80211_REKEY_DATA_AKM = 0x4
|
|
+ NL80211_REKEY_DATA_KCK = 0x2
|
|
+ NL80211_REKEY_DATA_KEK = 0x1
|
|
+ NL80211_REKEY_DATA_REPLAY_CTR = 0x3
|
|
+ NL80211_REPLAY_CTR_LEN = 0x8
|
|
+ NL80211_RRF_AUTO_BW = 0x800
|
|
+ NL80211_RRF_DFS = 0x10
|
|
+ NL80211_RRF_GO_CONCURRENT = 0x1000
|
|
+ NL80211_RRF_IR_CONCURRENT = 0x1000
|
|
+ NL80211_RRF_NO_160MHZ = 0x10000
|
|
+ NL80211_RRF_NO_320MHZ = 0x40000
|
|
+ NL80211_RRF_NO_80MHZ = 0x8000
|
|
+ NL80211_RRF_NO_CCK = 0x2
|
|
+ NL80211_RRF_NO_HE = 0x20000
|
|
+ NL80211_RRF_NO_HT40 = 0x6000
|
|
+ NL80211_RRF_NO_HT40MINUS = 0x2000
|
|
+ NL80211_RRF_NO_HT40PLUS = 0x4000
|
|
+ NL80211_RRF_NO_IBSS = 0x80
|
|
+ NL80211_RRF_NO_INDOOR = 0x4
|
|
+ NL80211_RRF_NO_IR_ALL = 0x180
|
|
+ NL80211_RRF_NO_IR = 0x80
|
|
+ NL80211_RRF_NO_OFDM = 0x1
|
|
+ NL80211_RRF_NO_OUTDOOR = 0x8
|
|
+ NL80211_RRF_PASSIVE_SCAN = 0x80
|
|
+ NL80211_RRF_PTMP_ONLY = 0x40
|
|
+ NL80211_RRF_PTP_ONLY = 0x20
|
|
+ NL80211_RXMGMT_FLAG_ANSWERED = 0x1
|
|
+ NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 0x2
|
|
+ NL80211_SAE_PWE_BOTH = 0x3
|
|
+ NL80211_SAE_PWE_HASH_TO_ELEMENT = 0x2
|
|
+ NL80211_SAE_PWE_HUNT_AND_PECK = 0x1
|
|
+ NL80211_SAE_PWE_UNSPECIFIED = 0x0
|
|
+ NL80211_SAR_ATTR_MAX = 0x2
|
|
+ NL80211_SAR_ATTR_SPECS = 0x2
|
|
+ NL80211_SAR_ATTR_SPECS_END_FREQ = 0x4
|
|
+ NL80211_SAR_ATTR_SPECS_MAX = 0x4
|
|
+ NL80211_SAR_ATTR_SPECS_POWER = 0x1
|
|
+ NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 0x2
|
|
+ NL80211_SAR_ATTR_SPECS_START_FREQ = 0x3
|
|
+ NL80211_SAR_ATTR_TYPE = 0x1
|
|
+ NL80211_SAR_TYPE_POWER = 0x0
|
|
+ NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 0x20
|
|
+ NL80211_SCAN_FLAG_AP = 0x4
|
|
+ NL80211_SCAN_FLAG_COLOCATED_6GHZ = 0x4000
|
|
+ NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 0x10
|
|
+ NL80211_SCAN_FLAG_FLUSH = 0x2
|
|
+ NL80211_SCAN_FLAG_FREQ_KHZ = 0x2000
|
|
+ NL80211_SCAN_FLAG_HIGH_ACCURACY = 0x400
|
|
+ NL80211_SCAN_FLAG_LOW_POWER = 0x200
|
|
+ NL80211_SCAN_FLAG_LOW_PRIORITY = 0x1
|
|
+ NL80211_SCAN_FLAG_LOW_SPAN = 0x100
|
|
+ NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 0x1000
|
|
+ NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 0x80
|
|
+ NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 0x40
|
|
+ NL80211_SCAN_FLAG_RANDOM_ADDR = 0x8
|
|
+ NL80211_SCAN_FLAG_RANDOM_SN = 0x800
|
|
+ NL80211_SCAN_RSSI_THOLD_OFF = -0x12c
|
|
+ NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 0x5
|
|
+ NL80211_SCHED_SCAN_MATCH_ATTR_MAX = 0x6
|
|
+ NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 0x3
|
|
+ NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 0x4
|
|
+ NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 0x2
|
|
+ NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 0x1
|
|
+ NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 0x6
|
|
+ NL80211_SCHED_SCAN_PLAN_INTERVAL = 0x1
|
|
+ NL80211_SCHED_SCAN_PLAN_ITERATIONS = 0x2
|
|
+ NL80211_SCHED_SCAN_PLAN_MAX = 0x2
|
|
+ NL80211_SMPS_DYNAMIC = 0x2
|
|
+ NL80211_SMPS_MAX = 0x2
|
|
+ NL80211_SMPS_OFF = 0x0
|
|
+ NL80211_SMPS_STATIC = 0x1
|
|
+ NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 0x5
|
|
+ NL80211_STA_BSS_PARAM_CTS_PROT = 0x1
|
|
+ NL80211_STA_BSS_PARAM_DTIM_PERIOD = 0x4
|
|
+ NL80211_STA_BSS_PARAM_MAX = 0x5
|
|
+ NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 0x2
|
|
+ NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 0x3
|
|
+ NL80211_STA_FLAG_ASSOCIATED = 0x7
|
|
+ NL80211_STA_FLAG_AUTHENTICATED = 0x5
|
|
+ NL80211_STA_FLAG_AUTHORIZED = 0x1
|
|
+ NL80211_STA_FLAG_MAX = 0x7
|
|
+ NL80211_STA_FLAG_MAX_OLD_API = 0x6
|
|
+ NL80211_STA_FLAG_MFP = 0x4
|
|
+ NL80211_STA_FLAG_SHORT_PREAMBLE = 0x2
|
|
+ NL80211_STA_FLAG_TDLS_PEER = 0x6
|
|
+ NL80211_STA_FLAG_WME = 0x3
|
|
+ NL80211_STA_INFO_ACK_SIGNAL_AVG = 0x23
|
|
+ NL80211_STA_INFO_ACK_SIGNAL = 0x22
|
|
+ NL80211_STA_INFO_AIRTIME_LINK_METRIC = 0x29
|
|
+ NL80211_STA_INFO_AIRTIME_WEIGHT = 0x28
|
|
+ NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 0x2a
|
|
+ NL80211_STA_INFO_BEACON_LOSS = 0x12
|
|
+ NL80211_STA_INFO_BEACON_RX = 0x1d
|
|
+ NL80211_STA_INFO_BEACON_SIGNAL_AVG = 0x1e
|
|
+ NL80211_STA_INFO_BSS_PARAM = 0xf
|
|
+ NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 0x1a
|
|
+ NL80211_STA_INFO_CHAIN_SIGNAL = 0x19
|
|
+ NL80211_STA_INFO_CONNECTED_TIME = 0x10
|
|
+ NL80211_STA_INFO_CONNECTED_TO_AS = 0x2b
|
|
+ NL80211_STA_INFO_CONNECTED_TO_GATE = 0x26
|
|
+ NL80211_STA_INFO_DATA_ACK_SIGNAL_AVG = 0x23
|
|
+ NL80211_STA_INFO_EXPECTED_THROUGHPUT = 0x1b
|
|
+ NL80211_STA_INFO_FCS_ERROR_COUNT = 0x25
|
|
+ NL80211_STA_INFO_INACTIVE_TIME = 0x1
|
|
+ NL80211_STA_INFO_LLID = 0x4
|
|
+ NL80211_STA_INFO_LOCAL_PM = 0x14
|
|
+ NL80211_STA_INFO_MAX = 0x2b
|
|
+ NL80211_STA_INFO_NONPEER_PM = 0x16
|
|
+ NL80211_STA_INFO_PAD = 0x21
|
|
+ NL80211_STA_INFO_PEER_PM = 0x15
|
|
+ NL80211_STA_INFO_PLID = 0x5
|
|
+ NL80211_STA_INFO_PLINK_STATE = 0x6
|
|
+ NL80211_STA_INFO_RX_BITRATE = 0xe
|
|
+ NL80211_STA_INFO_RX_BYTES64 = 0x17
|
|
+ NL80211_STA_INFO_RX_BYTES = 0x2
|
|
+ NL80211_STA_INFO_RX_DROP_MISC = 0x1c
|
|
+ NL80211_STA_INFO_RX_DURATION = 0x20
|
|
+ NL80211_STA_INFO_RX_MPDUS = 0x24
|
|
+ NL80211_STA_INFO_RX_PACKETS = 0x9
|
|
+ NL80211_STA_INFO_SIGNAL_AVG = 0xd
|
|
+ NL80211_STA_INFO_SIGNAL = 0x7
|
|
+ NL80211_STA_INFO_STA_FLAGS = 0x11
|
|
+ NL80211_STA_INFO_TID_STATS = 0x1f
|
|
+ NL80211_STA_INFO_T_OFFSET = 0x13
|
|
+ NL80211_STA_INFO_TX_BITRATE = 0x8
|
|
+ NL80211_STA_INFO_TX_BYTES64 = 0x18
|
|
+ NL80211_STA_INFO_TX_BYTES = 0x3
|
|
+ NL80211_STA_INFO_TX_DURATION = 0x27
|
|
+ NL80211_STA_INFO_TX_FAILED = 0xc
|
|
+ NL80211_STA_INFO_TX_PACKETS = 0xa
|
|
+ NL80211_STA_INFO_TX_RETRIES = 0xb
|
|
+ NL80211_STA_WME_MAX = 0x2
|
|
+ NL80211_STA_WME_MAX_SP = 0x2
|
|
+ NL80211_STA_WME_UAPSD_QUEUES = 0x1
|
|
+ NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY = 0x5
|
|
+ NL80211_SURVEY_INFO_CHANNEL_TIME = 0x4
|
|
+ NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY = 0x6
|
|
+ NL80211_SURVEY_INFO_CHANNEL_TIME_RX = 0x7
|
|
+ NL80211_SURVEY_INFO_CHANNEL_TIME_TX = 0x8
|
|
+ NL80211_SURVEY_INFO_FREQUENCY = 0x1
|
|
+ NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 0xc
|
|
+ NL80211_SURVEY_INFO_IN_USE = 0x3
|
|
+ NL80211_SURVEY_INFO_MAX = 0xc
|
|
+ NL80211_SURVEY_INFO_NOISE = 0x2
|
|
+ NL80211_SURVEY_INFO_PAD = 0xa
|
|
+ NL80211_SURVEY_INFO_TIME_BSS_RX = 0xb
|
|
+ NL80211_SURVEY_INFO_TIME_BUSY = 0x5
|
|
+ NL80211_SURVEY_INFO_TIME = 0x4
|
|
+ NL80211_SURVEY_INFO_TIME_EXT_BUSY = 0x6
|
|
+ NL80211_SURVEY_INFO_TIME_RX = 0x7
|
|
+ NL80211_SURVEY_INFO_TIME_SCAN = 0x9
|
|
+ NL80211_SURVEY_INFO_TIME_TX = 0x8
|
|
+ NL80211_TDLS_DISABLE_LINK = 0x4
|
|
+ NL80211_TDLS_DISCOVERY_REQ = 0x0
|
|
+ NL80211_TDLS_ENABLE_LINK = 0x3
|
|
+ NL80211_TDLS_PEER_HE = 0x8
|
|
+ NL80211_TDLS_PEER_HT = 0x1
|
|
+ NL80211_TDLS_PEER_VHT = 0x2
|
|
+ NL80211_TDLS_PEER_WMM = 0x4
|
|
+ NL80211_TDLS_SETUP = 0x1
|
|
+ NL80211_TDLS_TEARDOWN = 0x2
|
|
+ NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 0x9
|
|
+ NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 0xb
|
|
+ NL80211_TID_CONFIG_ATTR_MAX = 0xd
|
|
+ NL80211_TID_CONFIG_ATTR_NOACK = 0x6
|
|
+ NL80211_TID_CONFIG_ATTR_OVERRIDE = 0x4
|
|
+ NL80211_TID_CONFIG_ATTR_PAD = 0x1
|
|
+ NL80211_TID_CONFIG_ATTR_PEER_SUPP = 0x3
|
|
+ NL80211_TID_CONFIG_ATTR_RETRY_LONG = 0x8
|
|
+ NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 0x7
|
|
+ NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 0xa
|
|
+ NL80211_TID_CONFIG_ATTR_TIDS = 0x5
|
|
+ NL80211_TID_CONFIG_ATTR_TX_RATE = 0xd
|
|
+ NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 0xc
|
|
+ NL80211_TID_CONFIG_ATTR_VIF_SUPP = 0x2
|
|
+ NL80211_TID_CONFIG_DISABLE = 0x1
|
|
+ NL80211_TID_CONFIG_ENABLE = 0x0
|
|
+ NL80211_TID_STATS_MAX = 0x6
|
|
+ NL80211_TID_STATS_PAD = 0x5
|
|
+ NL80211_TID_STATS_RX_MSDU = 0x1
|
|
+ NL80211_TID_STATS_TX_MSDU = 0x2
|
|
+ NL80211_TID_STATS_TX_MSDU_FAILED = 0x4
|
|
+ NL80211_TID_STATS_TX_MSDU_RETRIES = 0x3
|
|
+ NL80211_TID_STATS_TXQ_STATS = 0x6
|
|
+ NL80211_TIMEOUT_ASSOC = 0x3
|
|
+ NL80211_TIMEOUT_AUTH = 0x2
|
|
+ NL80211_TIMEOUT_SCAN = 0x1
|
|
+ NL80211_TIMEOUT_UNSPECIFIED = 0x0
|
|
+ NL80211_TKIP_DATA_OFFSET_ENCR_KEY = 0x0
|
|
+ NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY = 0x18
|
|
+ NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY = 0x10
|
|
+ NL80211_TX_POWER_AUTOMATIC = 0x0
|
|
+ NL80211_TX_POWER_FIXED = 0x2
|
|
+ NL80211_TX_POWER_LIMITED = 0x1
|
|
+ NL80211_TXQ_ATTR_AC = 0x1
|
|
+ NL80211_TXQ_ATTR_AIFS = 0x5
|
|
+ NL80211_TXQ_ATTR_CWMAX = 0x4
|
|
+ NL80211_TXQ_ATTR_CWMIN = 0x3
|
|
+ NL80211_TXQ_ATTR_MAX = 0x5
|
|
+ NL80211_TXQ_ATTR_QUEUE = 0x1
|
|
+ NL80211_TXQ_ATTR_TXOP = 0x2
|
|
+ NL80211_TXQ_Q_BE = 0x2
|
|
+ NL80211_TXQ_Q_BK = 0x3
|
|
+ NL80211_TXQ_Q_VI = 0x1
|
|
+ NL80211_TXQ_Q_VO = 0x0
|
|
+ NL80211_TXQ_STATS_BACKLOG_BYTES = 0x1
|
|
+ NL80211_TXQ_STATS_BACKLOG_PACKETS = 0x2
|
|
+ NL80211_TXQ_STATS_COLLISIONS = 0x8
|
|
+ NL80211_TXQ_STATS_DROPS = 0x4
|
|
+ NL80211_TXQ_STATS_ECN_MARKS = 0x5
|
|
+ NL80211_TXQ_STATS_FLOWS = 0x3
|
|
+ NL80211_TXQ_STATS_MAX = 0xb
|
|
+ NL80211_TXQ_STATS_MAX_FLOWS = 0xb
|
|
+ NL80211_TXQ_STATS_OVERLIMIT = 0x6
|
|
+ NL80211_TXQ_STATS_OVERMEMORY = 0x7
|
|
+ NL80211_TXQ_STATS_TX_BYTES = 0x9
|
|
+ NL80211_TXQ_STATS_TX_PACKETS = 0xa
|
|
+ NL80211_TX_RATE_AUTOMATIC = 0x0
|
|
+ NL80211_TXRATE_DEFAULT_GI = 0x0
|
|
+ NL80211_TX_RATE_FIXED = 0x2
|
|
+ NL80211_TXRATE_FORCE_LGI = 0x2
|
|
+ NL80211_TXRATE_FORCE_SGI = 0x1
|
|
+ NL80211_TXRATE_GI = 0x4
|
|
+ NL80211_TXRATE_HE = 0x5
|
|
+ NL80211_TXRATE_HE_GI = 0x6
|
|
+ NL80211_TXRATE_HE_LTF = 0x7
|
|
+ NL80211_TXRATE_HT = 0x2
|
|
+ NL80211_TXRATE_LEGACY = 0x1
|
|
+ NL80211_TX_RATE_LIMITED = 0x1
|
|
+ NL80211_TXRATE_MAX = 0x7
|
|
+ NL80211_TXRATE_MCS = 0x2
|
|
+ NL80211_TXRATE_VHT = 0x3
|
|
+ NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 0x1
|
|
+ NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX = 0x2
|
|
+ NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 0x2
|
|
+ NL80211_USER_REG_HINT_CELL_BASE = 0x1
|
|
+ NL80211_USER_REG_HINT_INDOOR = 0x2
|
|
+ NL80211_USER_REG_HINT_USER = 0x0
|
|
+ NL80211_VENDOR_ID_IS_LINUX = 0x80000000
|
|
+ NL80211_VHT_CAPABILITY_LEN = 0xc
|
|
+ NL80211_VHT_NSS_MAX = 0x8
|
|
+ NL80211_WIPHY_NAME_MAXLEN = 0x40
|
|
+ NL80211_WMMR_AIFSN = 0x3
|
|
+ NL80211_WMMR_CW_MAX = 0x2
|
|
+ NL80211_WMMR_CW_MIN = 0x1
|
|
+ NL80211_WMMR_MAX = 0x4
|
|
+ NL80211_WMMR_TXOP = 0x4
|
|
+ NL80211_WOWLAN_PKTPAT_MASK = 0x1
|
|
+ NL80211_WOWLAN_PKTPAT_OFFSET = 0x3
|
|
+ NL80211_WOWLAN_PKTPAT_PATTERN = 0x2
|
|
+ NL80211_WOWLAN_TCP_DATA_INTERVAL = 0x9
|
|
+ NL80211_WOWLAN_TCP_DATA_PAYLOAD = 0x6
|
|
+ NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 0x7
|
|
+ NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 0x8
|
|
+ NL80211_WOWLAN_TCP_DST_IPV4 = 0x2
|
|
+ NL80211_WOWLAN_TCP_DST_MAC = 0x3
|
|
+ NL80211_WOWLAN_TCP_DST_PORT = 0x5
|
|
+ NL80211_WOWLAN_TCP_SRC_IPV4 = 0x1
|
|
+ NL80211_WOWLAN_TCP_SRC_PORT = 0x4
|
|
+ NL80211_WOWLAN_TCP_WAKE_MASK = 0xb
|
|
+ NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 0xa
|
|
+ NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 0x8
|
|
+ NL80211_WOWLAN_TRIG_ANY = 0x1
|
|
+ NL80211_WOWLAN_TRIG_DISCONNECT = 0x2
|
|
+ NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 0x7
|
|
+ NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 0x6
|
|
+ NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 0x5
|
|
+ NL80211_WOWLAN_TRIG_MAGIC_PKT = 0x3
|
|
+ NL80211_WOWLAN_TRIG_NET_DETECT = 0x12
|
|
+ NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 0x13
|
|
+ NL80211_WOWLAN_TRIG_PKT_PATTERN = 0x4
|
|
+ NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 0x9
|
|
+ NL80211_WOWLAN_TRIG_TCP_CONNECTION = 0xe
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 0xa
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 0xb
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 0xc
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 0xd
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 0x10
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 0xf
|
|
+ NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 0x11
|
|
+ NL80211_WPA_VERSION_1 = 0x1
|
|
+ NL80211_WPA_VERSION_2 = 0x2
|
|
+ NL80211_WPA_VERSION_3 = 0x4
|
|
+)
|
|
+
|
|
+const (
|
|
+ FRA_UNSPEC = 0x0
|
|
+ FRA_DST = 0x1
|
|
+ FRA_SRC = 0x2
|
|
+ FRA_IIFNAME = 0x3
|
|
+ FRA_GOTO = 0x4
|
|
+ FRA_UNUSED2 = 0x5
|
|
+ FRA_PRIORITY = 0x6
|
|
+ FRA_UNUSED3 = 0x7
|
|
+ FRA_UNUSED4 = 0x8
|
|
+ FRA_UNUSED5 = 0x9
|
|
+ FRA_FWMARK = 0xa
|
|
+ FRA_FLOW = 0xb
|
|
+ FRA_TUN_ID = 0xc
|
|
+ FRA_SUPPRESS_IFGROUP = 0xd
|
|
+ FRA_SUPPRESS_PREFIXLEN = 0xe
|
|
+ FRA_TABLE = 0xf
|
|
+ FRA_FWMASK = 0x10
|
|
+ FRA_OIFNAME = 0x11
|
|
+ FRA_PAD = 0x12
|
|
+ FRA_L3MDEV = 0x13
|
|
+ FRA_UID_RANGE = 0x14
|
|
+ FRA_PROTOCOL = 0x15
|
|
+ FRA_IP_PROTO = 0x16
|
|
+ FRA_SPORT_RANGE = 0x17
|
|
+ FRA_DPORT_RANGE = 0x18
|
|
+ FR_ACT_UNSPEC = 0x0
|
|
+ FR_ACT_TO_TBL = 0x1
|
|
+ FR_ACT_GOTO = 0x2
|
|
+ FR_ACT_NOP = 0x3
|
|
+ FR_ACT_RES3 = 0x4
|
|
+ FR_ACT_RES4 = 0x5
|
|
+ FR_ACT_BLACKHOLE = 0x6
|
|
+ FR_ACT_UNREACHABLE = 0x7
|
|
+ FR_ACT_PROHIBIT = 0x8
|
|
+)
|
|
+
|
|
+const (
|
|
+ AUDIT_NLGRP_NONE = 0x0
|
|
+ AUDIT_NLGRP_READLOG = 0x1
|
|
+)
|
|
+
|
|
+const (
|
|
+ TUN_F_CSUM = 0x1
|
|
+ TUN_F_TSO4 = 0x2
|
|
+ TUN_F_TSO6 = 0x4
|
|
+ TUN_F_TSO_ECN = 0x8
|
|
+ TUN_F_UFO = 0x10
|
|
+)
|
|
+
|
|
+const (
|
|
+ VIRTIO_NET_HDR_F_NEEDS_CSUM = 0x1
|
|
+ VIRTIO_NET_HDR_F_DATA_VALID = 0x2
|
|
+ VIRTIO_NET_HDR_F_RSC_INFO = 0x4
|
|
+)
|
|
+
|
|
+const (
|
|
+ VIRTIO_NET_HDR_GSO_NONE = 0x0
|
|
+ VIRTIO_NET_HDR_GSO_TCPV4 = 0x1
|
|
+ VIRTIO_NET_HDR_GSO_UDP = 0x3
|
|
+ VIRTIO_NET_HDR_GSO_TCPV6 = 0x4
|
|
+ VIRTIO_NET_HDR_GSO_ECN = 0x80
|
|
+)
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
|
|
index bea2549455e..363619cc68c 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
|
|
@@ -388,7 +388,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [122]int8
|
|
+ Data [122]byte
|
|
_ uint32
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
|
|
index b8c8f289433..4dce10b6aa5 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
|
|
@@ -401,7 +401,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]int8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
|
|
index 4db44301632..7cbfe2ffd99 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
|
|
@@ -379,7 +379,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [122]uint8
|
|
+ Data [122]byte
|
|
_ uint32
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
|
|
index 3ebcad8a887..82d3e295b5c 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
|
|
@@ -380,7 +380,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]int8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
|
|
new file mode 100644
|
|
index 00000000000..3b0c5181345
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
|
|
@@ -0,0 +1,691 @@
|
|
+// cgo -godefs -objdir=/tmp/loong64/cgo -- -Wall -Werror -static -I/tmp/loong64/include linux/types.go | go run mkpost.go
|
|
+// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
+
|
|
+//go:build loong64 && linux
|
|
+// +build loong64,linux
|
|
+
|
|
+package unix
|
|
+
|
|
+const (
|
|
+ SizeofPtr = 0x8
|
|
+ SizeofLong = 0x8
|
|
+)
|
|
+
|
|
+type (
|
|
+ _C_long int64
|
|
+)
|
|
+
|
|
+type Timespec struct {
|
|
+ Sec int64
|
|
+ Nsec int64
|
|
+}
|
|
+
|
|
+type Timeval struct {
|
|
+ Sec int64
|
|
+ Usec int64
|
|
+}
|
|
+
|
|
+type Timex struct {
|
|
+ Modes uint32
|
|
+ Offset int64
|
|
+ Freq int64
|
|
+ Maxerror int64
|
|
+ Esterror int64
|
|
+ Status int32
|
|
+ Constant int64
|
|
+ Precision int64
|
|
+ Tolerance int64
|
|
+ Time Timeval
|
|
+ Tick int64
|
|
+ Ppsfreq int64
|
|
+ Jitter int64
|
|
+ Shift int32
|
|
+ Stabil int64
|
|
+ Jitcnt int64
|
|
+ Calcnt int64
|
|
+ Errcnt int64
|
|
+ Stbcnt int64
|
|
+ Tai int32
|
|
+ _ [44]byte
|
|
+}
|
|
+
|
|
+type Time_t int64
|
|
+
|
|
+type Tms struct {
|
|
+ Utime int64
|
|
+ Stime int64
|
|
+ Cutime int64
|
|
+ Cstime int64
|
|
+}
|
|
+
|
|
+type Utimbuf struct {
|
|
+ Actime int64
|
|
+ Modtime int64
|
|
+}
|
|
+
|
|
+type Rusage struct {
|
|
+ Utime Timeval
|
|
+ Stime Timeval
|
|
+ Maxrss int64
|
|
+ Ixrss int64
|
|
+ Idrss int64
|
|
+ Isrss int64
|
|
+ Minflt int64
|
|
+ Majflt int64
|
|
+ Nswap int64
|
|
+ Inblock int64
|
|
+ Oublock int64
|
|
+ Msgsnd int64
|
|
+ Msgrcv int64
|
|
+ Nsignals int64
|
|
+ Nvcsw int64
|
|
+ Nivcsw int64
|
|
+}
|
|
+
|
|
+type Stat_t struct {
|
|
+ Dev uint64
|
|
+ Ino uint64
|
|
+ Mode uint32
|
|
+ Nlink uint32
|
|
+ Uid uint32
|
|
+ Gid uint32
|
|
+ Rdev uint64
|
|
+ _ uint64
|
|
+ Size int64
|
|
+ Blksize int32
|
|
+ _ int32
|
|
+ Blocks int64
|
|
+ Atim Timespec
|
|
+ Mtim Timespec
|
|
+ Ctim Timespec
|
|
+ _ [2]int32
|
|
+}
|
|
+
|
|
+type Dirent struct {
|
|
+ Ino uint64
|
|
+ Off int64
|
|
+ Reclen uint16
|
|
+ Type uint8
|
|
+ Name [256]int8
|
|
+ _ [5]byte
|
|
+}
|
|
+
|
|
+type Flock_t struct {
|
|
+ Type int16
|
|
+ Whence int16
|
|
+ Start int64
|
|
+ Len int64
|
|
+ Pid int32
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type DmNameList struct {
|
|
+ Dev uint64
|
|
+ Next uint32
|
|
+ Name [0]byte
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+const (
|
|
+ FADV_DONTNEED = 0x4
|
|
+ FADV_NOREUSE = 0x5
|
|
+)
|
|
+
|
|
+type RawSockaddrNFCLLCP struct {
|
|
+ Sa_family uint16
|
|
+ Dev_idx uint32
|
|
+ Target_idx uint32
|
|
+ Nfc_protocol uint32
|
|
+ Dsap uint8
|
|
+ Ssap uint8
|
|
+ Service_name [63]uint8
|
|
+ Service_name_len uint64
|
|
+}
|
|
+
|
|
+type RawSockaddr struct {
|
|
+ Family uint16
|
|
+ Data [14]int8
|
|
+}
|
|
+
|
|
+type RawSockaddrAny struct {
|
|
+ Addr RawSockaddr
|
|
+ Pad [96]int8
|
|
+}
|
|
+
|
|
+type Iovec struct {
|
|
+ Base *byte
|
|
+ Len uint64
|
|
+}
|
|
+
|
|
+type Msghdr struct {
|
|
+ Name *byte
|
|
+ Namelen uint32
|
|
+ Iov *Iovec
|
|
+ Iovlen uint64
|
|
+ Control *byte
|
|
+ Controllen uint64
|
|
+ Flags int32
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type Cmsghdr struct {
|
|
+ Len uint64
|
|
+ Level int32
|
|
+ Type int32
|
|
+}
|
|
+
|
|
+type ifreq struct {
|
|
+ Ifrn [16]byte
|
|
+ Ifru [24]byte
|
|
+}
|
|
+
|
|
+const (
|
|
+ SizeofSockaddrNFCLLCP = 0x60
|
|
+ SizeofIovec = 0x10
|
|
+ SizeofMsghdr = 0x38
|
|
+ SizeofCmsghdr = 0x10
|
|
+)
|
|
+
|
|
+const (
|
|
+ SizeofSockFprog = 0x10
|
|
+)
|
|
+
|
|
+type PtraceRegs struct {
|
|
+ Regs [32]uint64
|
|
+ Orig_a0 uint64
|
|
+ Era uint64
|
|
+ Badv uint64
|
|
+ Reserved [10]uint64
|
|
+}
|
|
+
|
|
+type FdSet struct {
|
|
+ Bits [16]int64
|
|
+}
|
|
+
|
|
+type Sysinfo_t struct {
|
|
+ Uptime int64
|
|
+ Loads [3]uint64
|
|
+ Totalram uint64
|
|
+ Freeram uint64
|
|
+ Sharedram uint64
|
|
+ Bufferram uint64
|
|
+ Totalswap uint64
|
|
+ Freeswap uint64
|
|
+ Procs uint16
|
|
+ Pad uint16
|
|
+ Totalhigh uint64
|
|
+ Freehigh uint64
|
|
+ Unit uint32
|
|
+ _ [0]int8
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type Ustat_t struct {
|
|
+ Tfree int32
|
|
+ Tinode uint64
|
|
+ Fname [6]int8
|
|
+ Fpack [6]int8
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type EpollEvent struct {
|
|
+ Events uint32
|
|
+ _ int32
|
|
+ Fd int32
|
|
+ Pad int32
|
|
+}
|
|
+
|
|
+const (
|
|
+ OPEN_TREE_CLOEXEC = 0x80000
|
|
+)
|
|
+
|
|
+const (
|
|
+ POLLRDHUP = 0x2000
|
|
+)
|
|
+
|
|
+type Sigset_t struct {
|
|
+ Val [16]uint64
|
|
+}
|
|
+
|
|
+const _C__NSIG = 0x41
|
|
+
|
|
+const (
|
|
+ SIG_BLOCK = 0x0
|
|
+ SIG_UNBLOCK = 0x1
|
|
+ SIG_SETMASK = 0x2
|
|
+)
|
|
+
|
|
+type Siginfo struct {
|
|
+ Signo int32
|
|
+ Errno int32
|
|
+ Code int32
|
|
+ _ int32
|
|
+ _ [112]byte
|
|
+}
|
|
+
|
|
+type Termios struct {
|
|
+ Iflag uint32
|
|
+ Oflag uint32
|
|
+ Cflag uint32
|
|
+ Lflag uint32
|
|
+ Line uint8
|
|
+ Cc [19]uint8
|
|
+ Ispeed uint32
|
|
+ Ospeed uint32
|
|
+}
|
|
+
|
|
+type Taskstats struct {
|
|
+ Version uint16
|
|
+ Ac_exitcode uint32
|
|
+ Ac_flag uint8
|
|
+ Ac_nice uint8
|
|
+ Cpu_count uint64
|
|
+ Cpu_delay_total uint64
|
|
+ Blkio_count uint64
|
|
+ Blkio_delay_total uint64
|
|
+ Swapin_count uint64
|
|
+ Swapin_delay_total uint64
|
|
+ Cpu_run_real_total uint64
|
|
+ Cpu_run_virtual_total uint64
|
|
+ Ac_comm [32]int8
|
|
+ Ac_sched uint8
|
|
+ Ac_pad [3]uint8
|
|
+ _ [4]byte
|
|
+ Ac_uid uint32
|
|
+ Ac_gid uint32
|
|
+ Ac_pid uint32
|
|
+ Ac_ppid uint32
|
|
+ Ac_btime uint32
|
|
+ Ac_etime uint64
|
|
+ Ac_utime uint64
|
|
+ Ac_stime uint64
|
|
+ Ac_minflt uint64
|
|
+ Ac_majflt uint64
|
|
+ Coremem uint64
|
|
+ Virtmem uint64
|
|
+ Hiwater_rss uint64
|
|
+ Hiwater_vm uint64
|
|
+ Read_char uint64
|
|
+ Write_char uint64
|
|
+ Read_syscalls uint64
|
|
+ Write_syscalls uint64
|
|
+ Read_bytes uint64
|
|
+ Write_bytes uint64
|
|
+ Cancelled_write_bytes uint64
|
|
+ Nvcsw uint64
|
|
+ Nivcsw uint64
|
|
+ Ac_utimescaled uint64
|
|
+ Ac_stimescaled uint64
|
|
+ Cpu_scaled_run_real_total uint64
|
|
+ Freepages_count uint64
|
|
+ Freepages_delay_total uint64
|
|
+ Thrashing_count uint64
|
|
+ Thrashing_delay_total uint64
|
|
+ Ac_btime64 uint64
|
|
+ Compact_count uint64
|
|
+ Compact_delay_total uint64
|
|
+ Ac_tgid uint32
|
|
+ Ac_tgetime uint64
|
|
+ Ac_exe_dev uint64
|
|
+ Ac_exe_inode uint64
|
|
+ Wpcopy_count uint64
|
|
+ Wpcopy_delay_total uint64
|
|
+}
|
|
+
|
|
+type cpuMask uint64
|
|
+
|
|
+const (
|
|
+ _NCPUBITS = 0x40
|
|
+)
|
|
+
|
|
+const (
|
|
+ CBitFieldMaskBit0 = 0x1
|
|
+ CBitFieldMaskBit1 = 0x2
|
|
+ CBitFieldMaskBit2 = 0x4
|
|
+ CBitFieldMaskBit3 = 0x8
|
|
+ CBitFieldMaskBit4 = 0x10
|
|
+ CBitFieldMaskBit5 = 0x20
|
|
+ CBitFieldMaskBit6 = 0x40
|
|
+ CBitFieldMaskBit7 = 0x80
|
|
+ CBitFieldMaskBit8 = 0x100
|
|
+ CBitFieldMaskBit9 = 0x200
|
|
+ CBitFieldMaskBit10 = 0x400
|
|
+ CBitFieldMaskBit11 = 0x800
|
|
+ CBitFieldMaskBit12 = 0x1000
|
|
+ CBitFieldMaskBit13 = 0x2000
|
|
+ CBitFieldMaskBit14 = 0x4000
|
|
+ CBitFieldMaskBit15 = 0x8000
|
|
+ CBitFieldMaskBit16 = 0x10000
|
|
+ CBitFieldMaskBit17 = 0x20000
|
|
+ CBitFieldMaskBit18 = 0x40000
|
|
+ CBitFieldMaskBit19 = 0x80000
|
|
+ CBitFieldMaskBit20 = 0x100000
|
|
+ CBitFieldMaskBit21 = 0x200000
|
|
+ CBitFieldMaskBit22 = 0x400000
|
|
+ CBitFieldMaskBit23 = 0x800000
|
|
+ CBitFieldMaskBit24 = 0x1000000
|
|
+ CBitFieldMaskBit25 = 0x2000000
|
|
+ CBitFieldMaskBit26 = 0x4000000
|
|
+ CBitFieldMaskBit27 = 0x8000000
|
|
+ CBitFieldMaskBit28 = 0x10000000
|
|
+ CBitFieldMaskBit29 = 0x20000000
|
|
+ CBitFieldMaskBit30 = 0x40000000
|
|
+ CBitFieldMaskBit31 = 0x80000000
|
|
+ CBitFieldMaskBit32 = 0x100000000
|
|
+ CBitFieldMaskBit33 = 0x200000000
|
|
+ CBitFieldMaskBit34 = 0x400000000
|
|
+ CBitFieldMaskBit35 = 0x800000000
|
|
+ CBitFieldMaskBit36 = 0x1000000000
|
|
+ CBitFieldMaskBit37 = 0x2000000000
|
|
+ CBitFieldMaskBit38 = 0x4000000000
|
|
+ CBitFieldMaskBit39 = 0x8000000000
|
|
+ CBitFieldMaskBit40 = 0x10000000000
|
|
+ CBitFieldMaskBit41 = 0x20000000000
|
|
+ CBitFieldMaskBit42 = 0x40000000000
|
|
+ CBitFieldMaskBit43 = 0x80000000000
|
|
+ CBitFieldMaskBit44 = 0x100000000000
|
|
+ CBitFieldMaskBit45 = 0x200000000000
|
|
+ CBitFieldMaskBit46 = 0x400000000000
|
|
+ CBitFieldMaskBit47 = 0x800000000000
|
|
+ CBitFieldMaskBit48 = 0x1000000000000
|
|
+ CBitFieldMaskBit49 = 0x2000000000000
|
|
+ CBitFieldMaskBit50 = 0x4000000000000
|
|
+ CBitFieldMaskBit51 = 0x8000000000000
|
|
+ CBitFieldMaskBit52 = 0x10000000000000
|
|
+ CBitFieldMaskBit53 = 0x20000000000000
|
|
+ CBitFieldMaskBit54 = 0x40000000000000
|
|
+ CBitFieldMaskBit55 = 0x80000000000000
|
|
+ CBitFieldMaskBit56 = 0x100000000000000
|
|
+ CBitFieldMaskBit57 = 0x200000000000000
|
|
+ CBitFieldMaskBit58 = 0x400000000000000
|
|
+ CBitFieldMaskBit59 = 0x800000000000000
|
|
+ CBitFieldMaskBit60 = 0x1000000000000000
|
|
+ CBitFieldMaskBit61 = 0x2000000000000000
|
|
+ CBitFieldMaskBit62 = 0x4000000000000000
|
|
+ CBitFieldMaskBit63 = 0x8000000000000000
|
|
+)
|
|
+
|
|
+type SockaddrStorage struct {
|
|
+ Family uint16
|
|
+ Data [118]byte
|
|
+ _ uint64
|
|
+}
|
|
+
|
|
+type HDGeometry struct {
|
|
+ Heads uint8
|
|
+ Sectors uint8
|
|
+ Cylinders uint16
|
|
+ Start uint64
|
|
+}
|
|
+
|
|
+type Statfs_t struct {
|
|
+ Type int64
|
|
+ Bsize int64
|
|
+ Blocks uint64
|
|
+ Bfree uint64
|
|
+ Bavail uint64
|
|
+ Files uint64
|
|
+ Ffree uint64
|
|
+ Fsid Fsid
|
|
+ Namelen int64
|
|
+ Frsize int64
|
|
+ Flags int64
|
|
+ Spare [4]int64
|
|
+}
|
|
+
|
|
+type TpacketHdr struct {
|
|
+ Status uint64
|
|
+ Len uint32
|
|
+ Snaplen uint32
|
|
+ Mac uint16
|
|
+ Net uint16
|
|
+ Sec uint32
|
|
+ Usec uint32
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+const (
|
|
+ SizeofTpacketHdr = 0x20
|
|
+)
|
|
+
|
|
+type RTCPLLInfo struct {
|
|
+ Ctrl int32
|
|
+ Value int32
|
|
+ Max int32
|
|
+ Min int32
|
|
+ Posmult int32
|
|
+ Negmult int32
|
|
+ Clock int64
|
|
+}
|
|
+
|
|
+type BlkpgPartition struct {
|
|
+ Start int64
|
|
+ Length int64
|
|
+ Pno int32
|
|
+ Devname [64]uint8
|
|
+ Volname [64]uint8
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+const (
|
|
+ BLKPG = 0x1269
|
|
+)
|
|
+
|
|
+type XDPUmemReg struct {
|
|
+ Addr uint64
|
|
+ Len uint64
|
|
+ Size uint32
|
|
+ Headroom uint32
|
|
+ Flags uint32
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type CryptoUserAlg struct {
|
|
+ Name [64]int8
|
|
+ Driver_name [64]int8
|
|
+ Module_name [64]int8
|
|
+ Type uint32
|
|
+ Mask uint32
|
|
+ Refcnt uint32
|
|
+ Flags uint32
|
|
+}
|
|
+
|
|
+type CryptoStatAEAD struct {
|
|
+ Type [64]int8
|
|
+ Encrypt_cnt uint64
|
|
+ Encrypt_tlen uint64
|
|
+ Decrypt_cnt uint64
|
|
+ Decrypt_tlen uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatAKCipher struct {
|
|
+ Type [64]int8
|
|
+ Encrypt_cnt uint64
|
|
+ Encrypt_tlen uint64
|
|
+ Decrypt_cnt uint64
|
|
+ Decrypt_tlen uint64
|
|
+ Verify_cnt uint64
|
|
+ Sign_cnt uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatCipher struct {
|
|
+ Type [64]int8
|
|
+ Encrypt_cnt uint64
|
|
+ Encrypt_tlen uint64
|
|
+ Decrypt_cnt uint64
|
|
+ Decrypt_tlen uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatCompress struct {
|
|
+ Type [64]int8
|
|
+ Compress_cnt uint64
|
|
+ Compress_tlen uint64
|
|
+ Decompress_cnt uint64
|
|
+ Decompress_tlen uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatHash struct {
|
|
+ Type [64]int8
|
|
+ Hash_cnt uint64
|
|
+ Hash_tlen uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatKPP struct {
|
|
+ Type [64]int8
|
|
+ Setsecret_cnt uint64
|
|
+ Generate_public_key_cnt uint64
|
|
+ Compute_shared_secret_cnt uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatRNG struct {
|
|
+ Type [64]int8
|
|
+ Generate_cnt uint64
|
|
+ Generate_tlen uint64
|
|
+ Seed_cnt uint64
|
|
+ Err_cnt uint64
|
|
+}
|
|
+
|
|
+type CryptoStatLarval struct {
|
|
+ Type [64]int8
|
|
+}
|
|
+
|
|
+type CryptoReportLarval struct {
|
|
+ Type [64]int8
|
|
+}
|
|
+
|
|
+type CryptoReportHash struct {
|
|
+ Type [64]int8
|
|
+ Blocksize uint32
|
|
+ Digestsize uint32
|
|
+}
|
|
+
|
|
+type CryptoReportCipher struct {
|
|
+ Type [64]int8
|
|
+ Blocksize uint32
|
|
+ Min_keysize uint32
|
|
+ Max_keysize uint32
|
|
+}
|
|
+
|
|
+type CryptoReportBlkCipher struct {
|
|
+ Type [64]int8
|
|
+ Geniv [64]int8
|
|
+ Blocksize uint32
|
|
+ Min_keysize uint32
|
|
+ Max_keysize uint32
|
|
+ Ivsize uint32
|
|
+}
|
|
+
|
|
+type CryptoReportAEAD struct {
|
|
+ Type [64]int8
|
|
+ Geniv [64]int8
|
|
+ Blocksize uint32
|
|
+ Maxauthsize uint32
|
|
+ Ivsize uint32
|
|
+}
|
|
+
|
|
+type CryptoReportComp struct {
|
|
+ Type [64]int8
|
|
+}
|
|
+
|
|
+type CryptoReportRNG struct {
|
|
+ Type [64]int8
|
|
+ Seedsize uint32
|
|
+}
|
|
+
|
|
+type CryptoReportAKCipher struct {
|
|
+ Type [64]int8
|
|
+}
|
|
+
|
|
+type CryptoReportKPP struct {
|
|
+ Type [64]int8
|
|
+}
|
|
+
|
|
+type CryptoReportAcomp struct {
|
|
+ Type [64]int8
|
|
+}
|
|
+
|
|
+type LoopInfo struct {
|
|
+ Number int32
|
|
+ Device uint32
|
|
+ Inode uint64
|
|
+ Rdevice uint32
|
|
+ Offset int32
|
|
+ Encrypt_type int32
|
|
+ Encrypt_key_size int32
|
|
+ Flags int32
|
|
+ Name [64]int8
|
|
+ Encrypt_key [32]uint8
|
|
+ Init [2]uint64
|
|
+ Reserved [4]int8
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+type TIPCSubscr struct {
|
|
+ Seq TIPCServiceRange
|
|
+ Timeout uint32
|
|
+ Filter uint32
|
|
+ Handle [8]int8
|
|
+}
|
|
+
|
|
+type TIPCSIOCLNReq struct {
|
|
+ Peer uint32
|
|
+ Id uint32
|
|
+ Linkname [68]int8
|
|
+}
|
|
+
|
|
+type TIPCSIOCNodeIDReq struct {
|
|
+ Peer uint32
|
|
+ Id [16]int8
|
|
+}
|
|
+
|
|
+type PPSKInfo struct {
|
|
+ Assert_sequence uint32
|
|
+ Clear_sequence uint32
|
|
+ Assert_tu PPSKTime
|
|
+ Clear_tu PPSKTime
|
|
+ Current_mode int32
|
|
+ _ [4]byte
|
|
+}
|
|
+
|
|
+const (
|
|
+ PPS_GETPARAMS = 0x800870a1
|
|
+ PPS_SETPARAMS = 0x400870a2
|
|
+ PPS_GETCAP = 0x800870a3
|
|
+ PPS_FETCH = 0xc00870a4
|
|
+)
|
|
+
|
|
+const (
|
|
+ PIDFD_NONBLOCK = 0x800
|
|
+)
|
|
+
|
|
+type SysvIpcPerm struct {
|
|
+ Key int32
|
|
+ Uid uint32
|
|
+ Gid uint32
|
|
+ Cuid uint32
|
|
+ Cgid uint32
|
|
+ Mode uint32
|
|
+ _ [0]uint8
|
|
+ Seq uint16
|
|
+ _ uint16
|
|
+ _ uint64
|
|
+ _ uint64
|
|
+}
|
|
+type SysvShmDesc struct {
|
|
+ Perm SysvIpcPerm
|
|
+ Segsz uint64
|
|
+ Atime int64
|
|
+ Dtime int64
|
|
+ Ctime int64
|
|
+ Cpid int32
|
|
+ Lpid int32
|
|
+ Nattch uint64
|
|
+ _ uint64
|
|
+ _ uint64
|
|
+}
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
|
|
index 3eb33e48ab5..a38f8f3e6f9 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
|
|
@@ -384,7 +384,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [122]int8
|
|
+ Data [122]byte
|
|
_ uint32
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
|
|
index 79a94467252..60e4afd1e5b 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
|
|
@@ -383,7 +383,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]int8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
|
|
index 8f4b107cad3..d0e09026d3d 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
|
|
@@ -383,7 +383,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]int8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
|
|
index e4eb2179811..37c1d68ca03 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
|
|
@@ -384,7 +384,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [122]int8
|
|
+ Data [122]byte
|
|
_ uint32
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
|
|
index d5b21f0f7da..4ad5f610ea4 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
|
|
@@ -391,7 +391,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [122]uint8
|
|
+ Data [122]byte
|
|
_ uint32
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
|
|
index 5188d142b9f..0bbc0190a7f 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
|
|
@@ -390,7 +390,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]uint8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
|
|
index de4dd4c736e..264ac611c77 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
|
|
@@ -390,7 +390,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]uint8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
|
|
index dccbf9b0604..4bd9d06d679 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
|
|
@@ -408,7 +408,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]uint8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
|
|
index 6358806106f..720aec02e07 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
|
|
@@ -403,7 +403,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]int8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
|
|
index 765edc13ff2..ca721a9516c 100644
|
|
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
|
|
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
|
|
@@ -385,7 +385,7 @@ const (
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
- _ [118]int8
|
|
+ Data [118]byte
|
|
_ uint64
|
|
}
|
|
|
|
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
|
|
index cf44e693379..7b26e72459f 100644
|
|
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
|
|
+++ b/vendor/golang.org/x/sys/windows/syscall_windows.go
|
|
@@ -814,6 +814,9 @@ const socket_error = uintptr(^uint32(0))
|
|
//sys WSAStartup(verreq uint32, data *WSAData) (sockerr error) = ws2_32.WSAStartup
|
|
//sys WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
|
|
//sys WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
|
|
+//sys WSALookupServiceBegin(querySet *WSAQUERYSET, flags uint32, handle *Handle) (err error) [failretval==socket_error] = ws2_32.WSALookupServiceBeginW
|
|
+//sys WSALookupServiceNext(handle Handle, flags uint32, size *int32, querySet *WSAQUERYSET) (err error) [failretval==socket_error] = ws2_32.WSALookupServiceNextW
|
|
+//sys WSALookupServiceEnd(handle Handle) (err error) [failretval==socket_error] = ws2_32.WSALookupServiceEnd
|
|
//sys socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket
|
|
//sys sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (err error) [failretval==socket_error] = ws2_32.sendto
|
|
//sys recvfrom(s Handle, buf []byte, flags int32, from *RawSockaddrAny, fromlen *int32) (n int32, err error) [failretval==-1] = ws2_32.recvfrom
|
|
@@ -982,8 +985,7 @@ func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) {
|
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
|
n++
|
|
}
|
|
- bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
- sa.Name = string(bytes)
|
|
+ sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
|
return sa, nil
|
|
|
|
case AF_INET:
|
|
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
|
|
index e19471c6a85..43de25d1f2c 100644
|
|
--- a/vendor/golang.org/x/sys/windows/types_windows.go
|
|
+++ b/vendor/golang.org/x/sys/windows/types_windows.go
|
|
@@ -1239,6 +1239,51 @@ const (
|
|
DnsSectionAdditional = 0x0003
|
|
)
|
|
|
|
+const (
|
|
+ // flags of WSALookupService
|
|
+ LUP_DEEP = 0x0001
|
|
+ LUP_CONTAINERS = 0x0002
|
|
+ LUP_NOCONTAINERS = 0x0004
|
|
+ LUP_NEAREST = 0x0008
|
|
+ LUP_RETURN_NAME = 0x0010
|
|
+ LUP_RETURN_TYPE = 0x0020
|
|
+ LUP_RETURN_VERSION = 0x0040
|
|
+ LUP_RETURN_COMMENT = 0x0080
|
|
+ LUP_RETURN_ADDR = 0x0100
|
|
+ LUP_RETURN_BLOB = 0x0200
|
|
+ LUP_RETURN_ALIASES = 0x0400
|
|
+ LUP_RETURN_QUERY_STRING = 0x0800
|
|
+ LUP_RETURN_ALL = 0x0FF0
|
|
+ LUP_RES_SERVICE = 0x8000
|
|
+
|
|
+ LUP_FLUSHCACHE = 0x1000
|
|
+ LUP_FLUSHPREVIOUS = 0x2000
|
|
+
|
|
+ LUP_NON_AUTHORITATIVE = 0x4000
|
|
+ LUP_SECURE = 0x8000
|
|
+ LUP_RETURN_PREFERRED_NAMES = 0x10000
|
|
+ LUP_DNS_ONLY = 0x20000
|
|
+
|
|
+ LUP_ADDRCONFIG = 0x100000
|
|
+ LUP_DUAL_ADDR = 0x200000
|
|
+ LUP_FILESERVER = 0x400000
|
|
+ LUP_DISABLE_IDN_ENCODING = 0x00800000
|
|
+ LUP_API_ANSI = 0x01000000
|
|
+
|
|
+ LUP_RESOLUTION_HANDLE = 0x80000000
|
|
+)
|
|
+
|
|
+const (
|
|
+ // values of WSAQUERYSET's namespace
|
|
+ NS_ALL = 0
|
|
+ NS_DNS = 12
|
|
+ NS_NLA = 15
|
|
+ NS_BTH = 16
|
|
+ NS_EMAIL = 37
|
|
+ NS_PNRPNAME = 38
|
|
+ NS_PNRPCLOUD = 39
|
|
+)
|
|
+
|
|
type DNSSRVData struct {
|
|
Target *uint16
|
|
Priority uint16
|
|
@@ -3174,3 +3219,91 @@ type ModuleInfo struct {
|
|
}
|
|
|
|
const ALL_PROCESSOR_GROUPS = 0xFFFF
|
|
+<<<<<<< HEAD
|
|
+=======
|
|
+
|
|
+type Rect struct {
|
|
+ Left int32
|
|
+ Top int32
|
|
+ Right int32
|
|
+ Bottom int32
|
|
+}
|
|
+
|
|
+type GUIThreadInfo struct {
|
|
+ Size uint32
|
|
+ Flags uint32
|
|
+ Active HWND
|
|
+ Focus HWND
|
|
+ Capture HWND
|
|
+ MenuOwner HWND
|
|
+ MoveSize HWND
|
|
+ CaretHandle HWND
|
|
+ CaretRect Rect
|
|
+}
|
|
+
|
|
+const (
|
|
+ DWMWA_NCRENDERING_ENABLED = 1
|
|
+ DWMWA_NCRENDERING_POLICY = 2
|
|
+ DWMWA_TRANSITIONS_FORCEDISABLED = 3
|
|
+ DWMWA_ALLOW_NCPAINT = 4
|
|
+ DWMWA_CAPTION_BUTTON_BOUNDS = 5
|
|
+ DWMWA_NONCLIENT_RTL_LAYOUT = 6
|
|
+ DWMWA_FORCE_ICONIC_REPRESENTATION = 7
|
|
+ DWMWA_FLIP3D_POLICY = 8
|
|
+ DWMWA_EXTENDED_FRAME_BOUNDS = 9
|
|
+ DWMWA_HAS_ICONIC_BITMAP = 10
|
|
+ DWMWA_DISALLOW_PEEK = 11
|
|
+ DWMWA_EXCLUDED_FROM_PEEK = 12
|
|
+ DWMWA_CLOAK = 13
|
|
+ DWMWA_CLOAKED = 14
|
|
+ DWMWA_FREEZE_REPRESENTATION = 15
|
|
+ DWMWA_PASSIVE_UPDATE_MODE = 16
|
|
+ DWMWA_USE_HOSTBACKDROPBRUSH = 17
|
|
+ DWMWA_USE_IMMERSIVE_DARK_MODE = 20
|
|
+ DWMWA_WINDOW_CORNER_PREFERENCE = 33
|
|
+ DWMWA_BORDER_COLOR = 34
|
|
+ DWMWA_CAPTION_COLOR = 35
|
|
+ DWMWA_TEXT_COLOR = 36
|
|
+ DWMWA_VISIBLE_FRAME_BORDER_THICKNESS = 37
|
|
+)
|
|
+
|
|
+type WSAQUERYSET struct {
|
|
+ Size uint32
|
|
+ ServiceInstanceName *uint16
|
|
+ ServiceClassId *GUID
|
|
+ Version *WSAVersion
|
|
+ Comment *uint16
|
|
+ NameSpace uint32
|
|
+ NSProviderId *GUID
|
|
+ Context *uint16
|
|
+ NumberOfProtocols uint32
|
|
+ AfpProtocols *AFProtocols
|
|
+ QueryString *uint16
|
|
+ NumberOfCsAddrs uint32
|
|
+ SaBuffer *CSAddrInfo
|
|
+ OutputFlags uint32
|
|
+ Blob *BLOB
|
|
+}
|
|
+
|
|
+type WSAVersion struct {
|
|
+ Version uint32
|
|
+ EnumerationOfComparison int32
|
|
+}
|
|
+
|
|
+type AFProtocols struct {
|
|
+ AddressFamily int32
|
|
+ Protocol int32
|
|
+}
|
|
+
|
|
+type CSAddrInfo struct {
|
|
+ LocalAddr SocketAddress
|
|
+ RemoteAddr SocketAddress
|
|
+ SocketType int32
|
|
+ Protocol int32
|
|
+}
|
|
+
|
|
+type BLOB struct {
|
|
+ Size uint32
|
|
+ BlobData *byte
|
|
+}
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
|
|
index 9ea1a44f04d..314dc58f36d 100644
|
|
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
|
|
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
|
|
@@ -459,6 +459,9 @@ var (
|
|
procWSAEnumProtocolsW = modws2_32.NewProc("WSAEnumProtocolsW")
|
|
procWSAGetOverlappedResult = modws2_32.NewProc("WSAGetOverlappedResult")
|
|
procWSAIoctl = modws2_32.NewProc("WSAIoctl")
|
|
+ procWSALookupServiceBeginW = modws2_32.NewProc("WSALookupServiceBeginW")
|
|
+ procWSALookupServiceEnd = modws2_32.NewProc("WSALookupServiceEnd")
|
|
+ procWSALookupServiceNextW = modws2_32.NewProc("WSALookupServiceNextW")
|
|
procWSARecv = modws2_32.NewProc("WSARecv")
|
|
procWSARecvFrom = modws2_32.NewProc("WSARecvFrom")
|
|
procWSASend = modws2_32.NewProc("WSASend")
|
|
@@ -3954,6 +3957,30 @@ func WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbo
|
|
return
|
|
}
|
|
|
|
+func WSALookupServiceBegin(querySet *WSAQUERYSET, flags uint32, handle *Handle) (err error) {
|
|
+ r1, _, e1 := syscall.Syscall(procWSALookupServiceBeginW.Addr(), 3, uintptr(unsafe.Pointer(querySet)), uintptr(flags), uintptr(unsafe.Pointer(handle)))
|
|
+ if r1 == socket_error {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+func WSALookupServiceEnd(handle Handle) (err error) {
|
|
+ r1, _, e1 := syscall.Syscall(procWSALookupServiceEnd.Addr(), 1, uintptr(handle), 0, 0)
|
|
+ if r1 == socket_error {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
+func WSALookupServiceNext(handle Handle, flags uint32, size *int32, querySet *WSAQUERYSET) (err error) {
|
|
+ r1, _, e1 := syscall.Syscall6(procWSALookupServiceNextW.Addr(), 4, uintptr(handle), uintptr(flags), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(querySet)), 0, 0)
|
|
+ if r1 == socket_error {
|
|
+ err = errnoErr(e1)
|
|
+ }
|
|
+ return
|
|
+}
|
|
+
|
|
func WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) {
|
|
r1, _, e1 := syscall.Syscall9(procWSARecv.Addr(), 7, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0, 0)
|
|
if r1 == socket_error {
|
|
diff --git a/vendor/golang.org/x/text/encoding/internal/internal.go b/vendor/golang.org/x/text/encoding/internal/internal.go
|
|
index 75a5fd16582..413e6fc6d7e 100644
|
|
--- a/vendor/golang.org/x/text/encoding/internal/internal.go
|
|
+++ b/vendor/golang.org/x/text/encoding/internal/internal.go
|
|
@@ -64,7 +64,7 @@ func (e FuncEncoding) NewEncoder() *encoding.Encoder {
|
|
// byte.
|
|
type RepertoireError byte
|
|
|
|
-// Error implements the error interrface.
|
|
+// Error implements the error interface.
|
|
func (r RepertoireError) Error() string {
|
|
return "encoding: rune not supported by encoding."
|
|
}
|
|
diff --git a/vendor/golang.org/x/text/unicode/norm/forminfo.go b/vendor/golang.org/x/text/unicode/norm/forminfo.go
|
|
index 526c7033ac4..42c201c6b63 100644
|
|
--- a/vendor/golang.org/x/text/unicode/norm/forminfo.go
|
|
+++ b/vendor/golang.org/x/text/unicode/norm/forminfo.go
|
|
@@ -13,7 +13,7 @@ import "encoding/binary"
|
|
// a rune to a uint16. The values take two forms. For v >= 0x8000:
|
|
// bits
|
|
// 15: 1 (inverse of NFD_QC bit of qcInfo)
|
|
-// 13..7: qcInfo (see below). isYesD is always true (no decompostion).
|
|
+// 13..7: qcInfo (see below). isYesD is always true (no decomposition).
|
|
// 6..0: ccc (compressed CCC value).
|
|
// For v < 0x8000, the respective rune has a decomposition and v is an index
|
|
// into a byte array of UTF-8 decomposition sequences and additional info and
|
|
diff --git a/vendor/golang.org/x/tools/container/intsets/sparse.go b/vendor/golang.org/x/tools/container/intsets/sparse.go
|
|
index 2f1a0eaf314..691b784b27f 100644
|
|
--- a/vendor/golang.org/x/tools/container/intsets/sparse.go
|
|
+++ b/vendor/golang.org/x/tools/container/intsets/sparse.go
|
|
@@ -195,7 +195,7 @@ func (b *block) min(take bool) int {
|
|
if take {
|
|
b.bits[i] = w &^ (1 << uint(tz))
|
|
}
|
|
- return b.offset + int(i*bitsPerWord) + tz
|
|
+ return b.offset + i*bitsPerWord + tz
|
|
}
|
|
}
|
|
panic("BUG: empty block")
|
|
diff --git a/vendor/golang.org/x/tools/go/gcexportdata/gcexportdata.go b/vendor/golang.org/x/tools/go/gcexportdata/gcexportdata.go
|
|
index cec819d6410..9ac10c1926a 100644
|
|
--- a/vendor/golang.org/x/tools/go/gcexportdata/gcexportdata.go
|
|
+++ b/vendor/golang.org/x/tools/go/gcexportdata/gcexportdata.go
|
|
@@ -17,7 +17,6 @@
|
|
// developer tools, which will then be able to consume both Go 1.7 and
|
|
// Go 1.8 export data files, so they will work before and after the
|
|
// Go update. (See discussion at https://golang.org/issue/15651.)
|
|
-//
|
|
package gcexportdata // import "golang.org/x/tools/go/gcexportdata"
|
|
|
|
import (
|
|
@@ -27,9 +26,8 @@ import (
|
|
"go/token"
|
|
"go/types"
|
|
"io"
|
|
- "io/ioutil"
|
|
|
|
- "golang.org/x/tools/go/internal/gcimporter"
|
|
+ "golang.org/x/tools/internal/gcimporter"
|
|
)
|
|
|
|
// Find returns the name of an object (.o) or archive (.a) file
|
|
@@ -70,9 +68,26 @@ func NewReader(r io.Reader) (io.Reader, error) {
|
|
}
|
|
}
|
|
|
|
+// readAll works the same way as io.ReadAll, but avoids allocations and copies
|
|
+// by preallocating a byte slice of the necessary size if the size is known up
|
|
+// front. This is always possible when the input is an archive. In that case,
|
|
+// NewReader will return the known size using an io.LimitedReader.
|
|
+func readAll(r io.Reader) ([]byte, error) {
|
|
+ if lr, ok := r.(*io.LimitedReader); ok {
|
|
+ data := make([]byte, lr.N)
|
|
+ _, err := io.ReadFull(lr, data)
|
|
+ return data, err
|
|
+ }
|
|
+ return io.ReadAll(r)
|
|
+}
|
|
+
|
|
// Read reads export data from in, decodes it, and returns type
|
|
// information for the package.
|
|
-// The package name is specified by path.
|
|
+//
|
|
+// The package path (effectively its linker symbol prefix) is
|
|
+// specified by path, since unlike the package name, this information
|
|
+// may not be recorded in the export data.
|
|
+//
|
|
// File position information is added to fset.
|
|
//
|
|
// Read may inspect and add to the imports map to ensure that references
|
|
@@ -83,7 +98,7 @@ func NewReader(r io.Reader) (io.Reader, error) {
|
|
//
|
|
// On return, the state of the reader is undefined.
|
|
func Read(in io.Reader, fset *token.FileSet, imports map[string]*types.Package, path string) (*types.Package, error) {
|
|
- data, err := ioutil.ReadAll(in)
|
|
+ data, err := readAll(in)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("reading export data for %q: %v", path, err)
|
|
}
|
|
@@ -92,12 +107,6 @@ func Read(in io.Reader, fset *token.FileSet, imports map[string]*types.Package,
|
|
return nil, fmt.Errorf("can't read export data for %q directly from an archive file (call gcexportdata.NewReader first to extract export data)", path)
|
|
}
|
|
|
|
- // The App Engine Go runtime v1.6 uses the old export data format.
|
|
- // TODO(adonovan): delete once v1.7 has been around for a while.
|
|
- if bytes.HasPrefix(data, []byte("package ")) {
|
|
- return gcimporter.ImportData(imports, path, path, bytes.NewReader(data))
|
|
- }
|
|
-
|
|
// The indexed export format starts with an 'i'; the older
|
|
// binary export format starts with a 'c', 'd', or 'v'
|
|
// (from "version"). Select appropriate importer.
|
|
@@ -130,7 +139,7 @@ func Write(out io.Writer, fset *token.FileSet, pkg *types.Package) error {
|
|
//
|
|
// Experimental: This API is experimental and may change in the future.
|
|
func ReadBundle(in io.Reader, fset *token.FileSet, imports map[string]*types.Package) ([]*types.Package, error) {
|
|
- data, err := ioutil.ReadAll(in)
|
|
+ data, err := readAll(in)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("reading export bundle: %v", err)
|
|
}
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/gcimporter.go b/vendor/golang.org/x/tools/go/internal/gcimporter/gcimporter.go
|
|
deleted file mode 100644
|
|
index 3ab66830d74..00000000000
|
|
--- a/vendor/golang.org/x/tools/go/internal/gcimporter/gcimporter.go
|
|
+++ /dev/null
|
|
@@ -1,1084 +0,0 @@
|
|
-// Copyright 2011 The Go Authors. All rights reserved.
|
|
-// Use of this source code is governed by a BSD-style
|
|
-// license that can be found in the LICENSE file.
|
|
-
|
|
-// This file is a modified copy of $GOROOT/src/go/internal/gcimporter/gcimporter.go,
|
|
-// but it also contains the original source-based importer code for Go1.6.
|
|
-// Once we stop supporting 1.6, we can remove that code.
|
|
-
|
|
-// Package gcimporter provides various functions for reading
|
|
-// gc-generated object files that can be used to implement the
|
|
-// Importer interface defined by the Go 1.5 standard library package.
|
|
-package gcimporter // import "golang.org/x/tools/go/internal/gcimporter"
|
|
-
|
|
-import (
|
|
- "bufio"
|
|
- "errors"
|
|
- "fmt"
|
|
- "go/build"
|
|
- "go/constant"
|
|
- "go/token"
|
|
- "go/types"
|
|
- "io"
|
|
- "io/ioutil"
|
|
- "os"
|
|
- "path/filepath"
|
|
- "sort"
|
|
- "strconv"
|
|
- "strings"
|
|
- "text/scanner"
|
|
-)
|
|
-
|
|
-const (
|
|
- // Enable debug during development: it adds some additional checks, and
|
|
- // prevents errors from being recovered.
|
|
- debug = false
|
|
-
|
|
- // If trace is set, debugging output is printed to std out.
|
|
- trace = false
|
|
-)
|
|
-
|
|
-var pkgExts = [...]string{".a", ".o"}
|
|
-
|
|
-// FindPkg returns the filename and unique package id for an import
|
|
-// path based on package information provided by build.Import (using
|
|
-// the build.Default build.Context). A relative srcDir is interpreted
|
|
-// relative to the current working directory.
|
|
-// If no file was found, an empty filename is returned.
|
|
-//
|
|
-func FindPkg(path, srcDir string) (filename, id string) {
|
|
- if path == "" {
|
|
- return
|
|
- }
|
|
-
|
|
- var noext string
|
|
- switch {
|
|
- default:
|
|
- // "x" -> "$GOPATH/pkg/$GOOS_$GOARCH/x.ext", "x"
|
|
- // Don't require the source files to be present.
|
|
- if abs, err := filepath.Abs(srcDir); err == nil { // see issue 14282
|
|
- srcDir = abs
|
|
- }
|
|
- bp, _ := build.Import(path, srcDir, build.FindOnly|build.AllowBinary)
|
|
- if bp.PkgObj == "" {
|
|
- id = path // make sure we have an id to print in error message
|
|
- return
|
|
- }
|
|
- noext = strings.TrimSuffix(bp.PkgObj, ".a")
|
|
- id = bp.ImportPath
|
|
-
|
|
- case build.IsLocalImport(path):
|
|
- // "./x" -> "/this/directory/x.ext", "/this/directory/x"
|
|
- noext = filepath.Join(srcDir, path)
|
|
- id = noext
|
|
-
|
|
- case filepath.IsAbs(path):
|
|
- // for completeness only - go/build.Import
|
|
- // does not support absolute imports
|
|
- // "/x" -> "/x.ext", "/x"
|
|
- noext = path
|
|
- id = path
|
|
- }
|
|
-
|
|
- if false { // for debugging
|
|
- if path != id {
|
|
- fmt.Printf("%s -> %s\n", path, id)
|
|
- }
|
|
- }
|
|
-
|
|
- // try extensions
|
|
- for _, ext := range pkgExts {
|
|
- filename = noext + ext
|
|
- if f, err := os.Stat(filename); err == nil && !f.IsDir() {
|
|
- return
|
|
- }
|
|
- }
|
|
-
|
|
- filename = "" // not found
|
|
- return
|
|
-}
|
|
-
|
|
-// ImportData imports a package by reading the gc-generated export data,
|
|
-// adds the corresponding package object to the packages map indexed by id,
|
|
-// and returns the object.
|
|
-//
|
|
-// The packages map must contains all packages already imported. The data
|
|
-// reader position must be the beginning of the export data section. The
|
|
-// filename is only used in error messages.
|
|
-//
|
|
-// If packages[id] contains the completely imported package, that package
|
|
-// can be used directly, and there is no need to call this function (but
|
|
-// there is also no harm but for extra time used).
|
|
-//
|
|
-func ImportData(packages map[string]*types.Package, filename, id string, data io.Reader) (pkg *types.Package, err error) {
|
|
- // support for parser error handling
|
|
- defer func() {
|
|
- switch r := recover().(type) {
|
|
- case nil:
|
|
- // nothing to do
|
|
- case importError:
|
|
- err = r
|
|
- default:
|
|
- panic(r) // internal error
|
|
- }
|
|
- }()
|
|
-
|
|
- var p parser
|
|
- p.init(filename, id, data, packages)
|
|
- pkg = p.parseExport()
|
|
-
|
|
- return
|
|
-}
|
|
-
|
|
-// Import imports a gc-generated package given its import path and srcDir, adds
|
|
-// the corresponding package object to the packages map, and returns the object.
|
|
-// The packages map must contain all packages already imported.
|
|
-//
|
|
-func Import(packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) {
|
|
- var rc io.ReadCloser
|
|
- var filename, id string
|
|
- if lookup != nil {
|
|
- // With custom lookup specified, assume that caller has
|
|
- // converted path to a canonical import path for use in the map.
|
|
- if path == "unsafe" {
|
|
- return types.Unsafe, nil
|
|
- }
|
|
- id = path
|
|
-
|
|
- // No need to re-import if the package was imported completely before.
|
|
- if pkg = packages[id]; pkg != nil && pkg.Complete() {
|
|
- return
|
|
- }
|
|
- f, err := lookup(path)
|
|
- if err != nil {
|
|
- return nil, err
|
|
- }
|
|
- rc = f
|
|
- } else {
|
|
- filename, id = FindPkg(path, srcDir)
|
|
- if filename == "" {
|
|
- if path == "unsafe" {
|
|
- return types.Unsafe, nil
|
|
- }
|
|
- return nil, fmt.Errorf("can't find import: %q", id)
|
|
- }
|
|
-
|
|
- // no need to re-import if the package was imported completely before
|
|
- if pkg = packages[id]; pkg != nil && pkg.Complete() {
|
|
- return
|
|
- }
|
|
-
|
|
- // open file
|
|
- f, err := os.Open(filename)
|
|
- if err != nil {
|
|
- return nil, err
|
|
- }
|
|
- defer func() {
|
|
- if err != nil {
|
|
- // add file name to error
|
|
- err = fmt.Errorf("%s: %v", filename, err)
|
|
- }
|
|
- }()
|
|
- rc = f
|
|
- }
|
|
- defer rc.Close()
|
|
-
|
|
- var hdr string
|
|
- buf := bufio.NewReader(rc)
|
|
- if hdr, _, err = FindExportData(buf); err != nil {
|
|
- return
|
|
- }
|
|
-
|
|
- switch hdr {
|
|
- case "$$\n":
|
|
- // Work-around if we don't have a filename; happens only if lookup != nil.
|
|
- // Either way, the filename is only needed for importer error messages, so
|
|
- // this is fine.
|
|
- if filename == "" {
|
|
- filename = path
|
|
- }
|
|
- return ImportData(packages, filename, id, buf)
|
|
-
|
|
- case "$$B\n":
|
|
- var data []byte
|
|
- data, err = ioutil.ReadAll(buf)
|
|
- if err != nil {
|
|
- break
|
|
- }
|
|
-
|
|
- // TODO(gri): allow clients of go/importer to provide a FileSet.
|
|
- // Or, define a new standard go/types/gcexportdata package.
|
|
- fset := token.NewFileSet()
|
|
-
|
|
- // The indexed export format starts with an 'i'; the older
|
|
- // binary export format starts with a 'c', 'd', or 'v'
|
|
- // (from "version"). Select appropriate importer.
|
|
- if len(data) > 0 && data[0] == 'i' {
|
|
- _, pkg, err = IImportData(fset, packages, data[1:], id)
|
|
- } else {
|
|
- _, pkg, err = BImportData(fset, packages, data, id)
|
|
- }
|
|
-
|
|
- default:
|
|
- err = fmt.Errorf("unknown export data header: %q", hdr)
|
|
- }
|
|
-
|
|
- return
|
|
-}
|
|
-
|
|
-// ----------------------------------------------------------------------------
|
|
-// Parser
|
|
-
|
|
-// TODO(gri) Imported objects don't have position information.
|
|
-// Ideally use the debug table line info; alternatively
|
|
-// create some fake position (or the position of the
|
|
-// import). That way error messages referring to imported
|
|
-// objects can print meaningful information.
|
|
-
|
|
-// parser parses the exports inside a gc compiler-produced
|
|
-// object/archive file and populates its scope with the results.
|
|
-type parser struct {
|
|
- scanner scanner.Scanner
|
|
- tok rune // current token
|
|
- lit string // literal string; only valid for Ident, Int, String tokens
|
|
- id string // package id of imported package
|
|
- sharedPkgs map[string]*types.Package // package id -> package object (across importer)
|
|
- localPkgs map[string]*types.Package // package id -> package object (just this package)
|
|
-}
|
|
-
|
|
-func (p *parser) init(filename, id string, src io.Reader, packages map[string]*types.Package) {
|
|
- p.scanner.Init(src)
|
|
- p.scanner.Error = func(_ *scanner.Scanner, msg string) { p.error(msg) }
|
|
- p.scanner.Mode = scanner.ScanIdents | scanner.ScanInts | scanner.ScanChars | scanner.ScanStrings | scanner.ScanComments | scanner.SkipComments
|
|
- p.scanner.Whitespace = 1<<'\t' | 1<<' '
|
|
- p.scanner.Filename = filename // for good error messages
|
|
- p.next()
|
|
- p.id = id
|
|
- p.sharedPkgs = packages
|
|
- if debug {
|
|
- // check consistency of packages map
|
|
- for _, pkg := range packages {
|
|
- if pkg.Name() == "" {
|
|
- fmt.Printf("no package name for %s\n", pkg.Path())
|
|
- }
|
|
- }
|
|
- }
|
|
-}
|
|
-
|
|
-func (p *parser) next() {
|
|
- p.tok = p.scanner.Scan()
|
|
- switch p.tok {
|
|
- case scanner.Ident, scanner.Int, scanner.Char, scanner.String, '·':
|
|
- p.lit = p.scanner.TokenText()
|
|
- default:
|
|
- p.lit = ""
|
|
- }
|
|
- if debug {
|
|
- fmt.Printf("%s: %q -> %q\n", scanner.TokenString(p.tok), p.scanner.TokenText(), p.lit)
|
|
- }
|
|
-}
|
|
-
|
|
-func declTypeName(pkg *types.Package, name string) *types.TypeName {
|
|
- scope := pkg.Scope()
|
|
- if obj := scope.Lookup(name); obj != nil {
|
|
- return obj.(*types.TypeName)
|
|
- }
|
|
- obj := types.NewTypeName(token.NoPos, pkg, name, nil)
|
|
- // a named type may be referred to before the underlying type
|
|
- // is known - set it up
|
|
- types.NewNamed(obj, nil, nil)
|
|
- scope.Insert(obj)
|
|
- return obj
|
|
-}
|
|
-
|
|
-// ----------------------------------------------------------------------------
|
|
-// Error handling
|
|
-
|
|
-// Internal errors are boxed as importErrors.
|
|
-type importError struct {
|
|
- pos scanner.Position
|
|
- err error
|
|
-}
|
|
-
|
|
-func (e importError) Error() string {
|
|
- return fmt.Sprintf("import error %s (byte offset = %d): %s", e.pos, e.pos.Offset, e.err)
|
|
-}
|
|
-
|
|
-func (p *parser) error(err interface{}) {
|
|
- if s, ok := err.(string); ok {
|
|
- err = errors.New(s)
|
|
- }
|
|
- // panic with a runtime.Error if err is not an error
|
|
- panic(importError{p.scanner.Pos(), err.(error)})
|
|
-}
|
|
-
|
|
-func (p *parser) errorf(format string, args ...interface{}) {
|
|
- p.error(fmt.Sprintf(format, args...))
|
|
-}
|
|
-
|
|
-func (p *parser) expect(tok rune) string {
|
|
- lit := p.lit
|
|
- if p.tok != tok {
|
|
- p.errorf("expected %s, got %s (%s)", scanner.TokenString(tok), scanner.TokenString(p.tok), lit)
|
|
- }
|
|
- p.next()
|
|
- return lit
|
|
-}
|
|
-
|
|
-func (p *parser) expectSpecial(tok string) {
|
|
- sep := 'x' // not white space
|
|
- i := 0
|
|
- for i < len(tok) && p.tok == rune(tok[i]) && sep > ' ' {
|
|
- sep = p.scanner.Peek() // if sep <= ' ', there is white space before the next token
|
|
- p.next()
|
|
- i++
|
|
- }
|
|
- if i < len(tok) {
|
|
- p.errorf("expected %q, got %q", tok, tok[0:i])
|
|
- }
|
|
-}
|
|
-
|
|
-func (p *parser) expectKeyword(keyword string) {
|
|
- lit := p.expect(scanner.Ident)
|
|
- if lit != keyword {
|
|
- p.errorf("expected keyword %s, got %q", keyword, lit)
|
|
- }
|
|
-}
|
|
-
|
|
-// ----------------------------------------------------------------------------
|
|
-// Qualified and unqualified names
|
|
-
|
|
-// PackageId = string_lit .
|
|
-//
|
|
-func (p *parser) parsePackageID() string {
|
|
- id, err := strconv.Unquote(p.expect(scanner.String))
|
|
- if err != nil {
|
|
- p.error(err)
|
|
- }
|
|
- // id == "" stands for the imported package id
|
|
- // (only known at time of package installation)
|
|
- if id == "" {
|
|
- id = p.id
|
|
- }
|
|
- return id
|
|
-}
|
|
-
|
|
-// PackageName = ident .
|
|
-//
|
|
-func (p *parser) parsePackageName() string {
|
|
- return p.expect(scanner.Ident)
|
|
-}
|
|
-
|
|
-// dotIdentifier = ( ident | '·' ) { ident | int | '·' } .
|
|
-func (p *parser) parseDotIdent() string {
|
|
- ident := ""
|
|
- if p.tok != scanner.Int {
|
|
- sep := 'x' // not white space
|
|
- for (p.tok == scanner.Ident || p.tok == scanner.Int || p.tok == '·') && sep > ' ' {
|
|
- ident += p.lit
|
|
- sep = p.scanner.Peek() // if sep <= ' ', there is white space before the next token
|
|
- p.next()
|
|
- }
|
|
- }
|
|
- if ident == "" {
|
|
- p.expect(scanner.Ident) // use expect() for error handling
|
|
- }
|
|
- return ident
|
|
-}
|
|
-
|
|
-// QualifiedName = "@" PackageId "." ( "?" | dotIdentifier ) .
|
|
-//
|
|
-func (p *parser) parseQualifiedName() (id, name string) {
|
|
- p.expect('@')
|
|
- id = p.parsePackageID()
|
|
- p.expect('.')
|
|
- // Per rev f280b8a485fd (10/2/2013), qualified names may be used for anonymous fields.
|
|
- if p.tok == '?' {
|
|
- p.next()
|
|
- } else {
|
|
- name = p.parseDotIdent()
|
|
- }
|
|
- return
|
|
-}
|
|
-
|
|
-// getPkg returns the package for a given id. If the package is
|
|
-// not found, create the package and add it to the p.localPkgs
|
|
-// and p.sharedPkgs maps. name is the (expected) name of the
|
|
-// package. If name == "", the package name is expected to be
|
|
-// set later via an import clause in the export data.
|
|
-//
|
|
-// id identifies a package, usually by a canonical package path like
|
|
-// "encoding/json" but possibly by a non-canonical import path like
|
|
-// "./json".
|
|
-//
|
|
-func (p *parser) getPkg(id, name string) *types.Package {
|
|
- // package unsafe is not in the packages maps - handle explicitly
|
|
- if id == "unsafe" {
|
|
- return types.Unsafe
|
|
- }
|
|
-
|
|
- pkg := p.localPkgs[id]
|
|
- if pkg == nil {
|
|
- // first import of id from this package
|
|
- pkg = p.sharedPkgs[id]
|
|
- if pkg == nil {
|
|
- // first import of id by this importer;
|
|
- // add (possibly unnamed) pkg to shared packages
|
|
- pkg = types.NewPackage(id, name)
|
|
- p.sharedPkgs[id] = pkg
|
|
- }
|
|
- // add (possibly unnamed) pkg to local packages
|
|
- if p.localPkgs == nil {
|
|
- p.localPkgs = make(map[string]*types.Package)
|
|
- }
|
|
- p.localPkgs[id] = pkg
|
|
- } else if name != "" {
|
|
- // package exists already and we have an expected package name;
|
|
- // make sure names match or set package name if necessary
|
|
- if pname := pkg.Name(); pname == "" {
|
|
- pkg.SetName(name)
|
|
- } else if pname != name {
|
|
- p.errorf("%s package name mismatch: %s (given) vs %s (expected)", id, pname, name)
|
|
- }
|
|
- }
|
|
- return pkg
|
|
-}
|
|
-
|
|
-// parseExportedName is like parseQualifiedName, but
|
|
-// the package id is resolved to an imported *types.Package.
|
|
-//
|
|
-func (p *parser) parseExportedName() (pkg *types.Package, name string) {
|
|
- id, name := p.parseQualifiedName()
|
|
- pkg = p.getPkg(id, "")
|
|
- return
|
|
-}
|
|
-
|
|
-// ----------------------------------------------------------------------------
|
|
-// Types
|
|
-
|
|
-// BasicType = identifier .
|
|
-//
|
|
-func (p *parser) parseBasicType() types.Type {
|
|
- id := p.expect(scanner.Ident)
|
|
- obj := types.Universe.Lookup(id)
|
|
- if obj, ok := obj.(*types.TypeName); ok {
|
|
- return obj.Type()
|
|
- }
|
|
- p.errorf("not a basic type: %s", id)
|
|
- return nil
|
|
-}
|
|
-
|
|
-// ArrayType = "[" int_lit "]" Type .
|
|
-//
|
|
-func (p *parser) parseArrayType(parent *types.Package) types.Type {
|
|
- // "[" already consumed and lookahead known not to be "]"
|
|
- lit := p.expect(scanner.Int)
|
|
- p.expect(']')
|
|
- elem := p.parseType(parent)
|
|
- n, err := strconv.ParseInt(lit, 10, 64)
|
|
- if err != nil {
|
|
- p.error(err)
|
|
- }
|
|
- return types.NewArray(elem, n)
|
|
-}
|
|
-
|
|
-// MapType = "map" "[" Type "]" Type .
|
|
-//
|
|
-func (p *parser) parseMapType(parent *types.Package) types.Type {
|
|
- p.expectKeyword("map")
|
|
- p.expect('[')
|
|
- key := p.parseType(parent)
|
|
- p.expect(']')
|
|
- elem := p.parseType(parent)
|
|
- return types.NewMap(key, elem)
|
|
-}
|
|
-
|
|
-// Name = identifier | "?" | QualifiedName .
|
|
-//
|
|
-// For unqualified and anonymous names, the returned package is the parent
|
|
-// package unless parent == nil, in which case the returned package is the
|
|
-// package being imported. (The parent package is not nil if the name
|
|
-// is an unqualified struct field or interface method name belonging to a
|
|
-// type declared in another package.)
|
|
-//
|
|
-// For qualified names, the returned package is nil (and not created if
|
|
-// it doesn't exist yet) unless materializePkg is set (which creates an
|
|
-// unnamed package with valid package path). In the latter case, a
|
|
-// subsequent import clause is expected to provide a name for the package.
|
|
-//
|
|
-func (p *parser) parseName(parent *types.Package, materializePkg bool) (pkg *types.Package, name string) {
|
|
- pkg = parent
|
|
- if pkg == nil {
|
|
- pkg = p.sharedPkgs[p.id]
|
|
- }
|
|
- switch p.tok {
|
|
- case scanner.Ident:
|
|
- name = p.lit
|
|
- p.next()
|
|
- case '?':
|
|
- // anonymous
|
|
- p.next()
|
|
- case '@':
|
|
- // exported name prefixed with package path
|
|
- pkg = nil
|
|
- var id string
|
|
- id, name = p.parseQualifiedName()
|
|
- if materializePkg {
|
|
- pkg = p.getPkg(id, "")
|
|
- }
|
|
- default:
|
|
- p.error("name expected")
|
|
- }
|
|
- return
|
|
-}
|
|
-
|
|
-func deref(typ types.Type) types.Type {
|
|
- if p, _ := typ.(*types.Pointer); p != nil {
|
|
- return p.Elem()
|
|
- }
|
|
- return typ
|
|
-}
|
|
-
|
|
-// Field = Name Type [ string_lit ] .
|
|
-//
|
|
-func (p *parser) parseField(parent *types.Package) (*types.Var, string) {
|
|
- pkg, name := p.parseName(parent, true)
|
|
-
|
|
- if name == "_" {
|
|
- // Blank fields should be package-qualified because they
|
|
- // are unexported identifiers, but gc does not qualify them.
|
|
- // Assuming that the ident belongs to the current package
|
|
- // causes types to change during re-exporting, leading
|
|
- // to spurious "can't assign A to B" errors from go/types.
|
|
- // As a workaround, pretend all blank fields belong
|
|
- // to the same unique dummy package.
|
|
- const blankpkg = "<_>"
|
|
- pkg = p.getPkg(blankpkg, blankpkg)
|
|
- }
|
|
-
|
|
- typ := p.parseType(parent)
|
|
- anonymous := false
|
|
- if name == "" {
|
|
- // anonymous field - typ must be T or *T and T must be a type name
|
|
- switch typ := deref(typ).(type) {
|
|
- case *types.Basic: // basic types are named types
|
|
- pkg = nil // objects defined in Universe scope have no package
|
|
- name = typ.Name()
|
|
- case *types.Named:
|
|
- name = typ.Obj().Name()
|
|
- default:
|
|
- p.errorf("anonymous field expected")
|
|
- }
|
|
- anonymous = true
|
|
- }
|
|
- tag := ""
|
|
- if p.tok == scanner.String {
|
|
- s := p.expect(scanner.String)
|
|
- var err error
|
|
- tag, err = strconv.Unquote(s)
|
|
- if err != nil {
|
|
- p.errorf("invalid struct tag %s: %s", s, err)
|
|
- }
|
|
- }
|
|
- return types.NewField(token.NoPos, pkg, name, typ, anonymous), tag
|
|
-}
|
|
-
|
|
-// StructType = "struct" "{" [ FieldList ] "}" .
|
|
-// FieldList = Field { ";" Field } .
|
|
-//
|
|
-func (p *parser) parseStructType(parent *types.Package) types.Type {
|
|
- var fields []*types.Var
|
|
- var tags []string
|
|
-
|
|
- p.expectKeyword("struct")
|
|
- p.expect('{')
|
|
- for i := 0; p.tok != '}' && p.tok != scanner.EOF; i++ {
|
|
- if i > 0 {
|
|
- p.expect(';')
|
|
- }
|
|
- fld, tag := p.parseField(parent)
|
|
- if tag != "" && tags == nil {
|
|
- tags = make([]string, i)
|
|
- }
|
|
- if tags != nil {
|
|
- tags = append(tags, tag)
|
|
- }
|
|
- fields = append(fields, fld)
|
|
- }
|
|
- p.expect('}')
|
|
-
|
|
- return types.NewStruct(fields, tags)
|
|
-}
|
|
-
|
|
-// Parameter = ( identifier | "?" ) [ "..." ] Type [ string_lit ] .
|
|
-//
|
|
-func (p *parser) parseParameter() (par *types.Var, isVariadic bool) {
|
|
- _, name := p.parseName(nil, false)
|
|
- // remove gc-specific parameter numbering
|
|
- if i := strings.Index(name, "·"); i >= 0 {
|
|
- name = name[:i]
|
|
- }
|
|
- if p.tok == '.' {
|
|
- p.expectSpecial("...")
|
|
- isVariadic = true
|
|
- }
|
|
- typ := p.parseType(nil)
|
|
- if isVariadic {
|
|
- typ = types.NewSlice(typ)
|
|
- }
|
|
- // ignore argument tag (e.g. "noescape")
|
|
- if p.tok == scanner.String {
|
|
- p.next()
|
|
- }
|
|
- // TODO(gri) should we provide a package?
|
|
- par = types.NewVar(token.NoPos, nil, name, typ)
|
|
- return
|
|
-}
|
|
-
|
|
-// Parameters = "(" [ ParameterList ] ")" .
|
|
-// ParameterList = { Parameter "," } Parameter .
|
|
-//
|
|
-func (p *parser) parseParameters() (list []*types.Var, isVariadic bool) {
|
|
- p.expect('(')
|
|
- for p.tok != ')' && p.tok != scanner.EOF {
|
|
- if len(list) > 0 {
|
|
- p.expect(',')
|
|
- }
|
|
- par, variadic := p.parseParameter()
|
|
- list = append(list, par)
|
|
- if variadic {
|
|
- if isVariadic {
|
|
- p.error("... not on final argument")
|
|
- }
|
|
- isVariadic = true
|
|
- }
|
|
- }
|
|
- p.expect(')')
|
|
-
|
|
- return
|
|
-}
|
|
-
|
|
-// Signature = Parameters [ Result ] .
|
|
-// Result = Type | Parameters .
|
|
-//
|
|
-func (p *parser) parseSignature(recv *types.Var) *types.Signature {
|
|
- params, isVariadic := p.parseParameters()
|
|
-
|
|
- // optional result type
|
|
- var results []*types.Var
|
|
- if p.tok == '(' {
|
|
- var variadic bool
|
|
- results, variadic = p.parseParameters()
|
|
- if variadic {
|
|
- p.error("... not permitted on result type")
|
|
- }
|
|
- }
|
|
-
|
|
- return types.NewSignature(recv, types.NewTuple(params...), types.NewTuple(results...), isVariadic)
|
|
-}
|
|
-
|
|
-// InterfaceType = "interface" "{" [ MethodList ] "}" .
|
|
-// MethodList = Method { ";" Method } .
|
|
-// Method = Name Signature .
|
|
-//
|
|
-// The methods of embedded interfaces are always "inlined"
|
|
-// by the compiler and thus embedded interfaces are never
|
|
-// visible in the export data.
|
|
-//
|
|
-func (p *parser) parseInterfaceType(parent *types.Package) types.Type {
|
|
- var methods []*types.Func
|
|
-
|
|
- p.expectKeyword("interface")
|
|
- p.expect('{')
|
|
- for i := 0; p.tok != '}' && p.tok != scanner.EOF; i++ {
|
|
- if i > 0 {
|
|
- p.expect(';')
|
|
- }
|
|
- pkg, name := p.parseName(parent, true)
|
|
- sig := p.parseSignature(nil)
|
|
- methods = append(methods, types.NewFunc(token.NoPos, pkg, name, sig))
|
|
- }
|
|
- p.expect('}')
|
|
-
|
|
- // Complete requires the type's embedded interfaces to be fully defined,
|
|
- // but we do not define any
|
|
- return newInterface(methods, nil).Complete()
|
|
-}
|
|
-
|
|
-// ChanType = ( "chan" [ "<-" ] | "<-" "chan" ) Type .
|
|
-//
|
|
-func (p *parser) parseChanType(parent *types.Package) types.Type {
|
|
- dir := types.SendRecv
|
|
- if p.tok == scanner.Ident {
|
|
- p.expectKeyword("chan")
|
|
- if p.tok == '<' {
|
|
- p.expectSpecial("<-")
|
|
- dir = types.SendOnly
|
|
- }
|
|
- } else {
|
|
- p.expectSpecial("<-")
|
|
- p.expectKeyword("chan")
|
|
- dir = types.RecvOnly
|
|
- }
|
|
- elem := p.parseType(parent)
|
|
- return types.NewChan(dir, elem)
|
|
-}
|
|
-
|
|
-// Type =
|
|
-// BasicType | TypeName | ArrayType | SliceType | StructType |
|
|
-// PointerType | FuncType | InterfaceType | MapType | ChanType |
|
|
-// "(" Type ")" .
|
|
-//
|
|
-// BasicType = ident .
|
|
-// TypeName = ExportedName .
|
|
-// SliceType = "[" "]" Type .
|
|
-// PointerType = "*" Type .
|
|
-// FuncType = "func" Signature .
|
|
-//
|
|
-func (p *parser) parseType(parent *types.Package) types.Type {
|
|
- switch p.tok {
|
|
- case scanner.Ident:
|
|
- switch p.lit {
|
|
- default:
|
|
- return p.parseBasicType()
|
|
- case "struct":
|
|
- return p.parseStructType(parent)
|
|
- case "func":
|
|
- // FuncType
|
|
- p.next()
|
|
- return p.parseSignature(nil)
|
|
- case "interface":
|
|
- return p.parseInterfaceType(parent)
|
|
- case "map":
|
|
- return p.parseMapType(parent)
|
|
- case "chan":
|
|
- return p.parseChanType(parent)
|
|
- }
|
|
- case '@':
|
|
- // TypeName
|
|
- pkg, name := p.parseExportedName()
|
|
- return declTypeName(pkg, name).Type()
|
|
- case '[':
|
|
- p.next() // look ahead
|
|
- if p.tok == ']' {
|
|
- // SliceType
|
|
- p.next()
|
|
- return types.NewSlice(p.parseType(parent))
|
|
- }
|
|
- return p.parseArrayType(parent)
|
|
- case '*':
|
|
- // PointerType
|
|
- p.next()
|
|
- return types.NewPointer(p.parseType(parent))
|
|
- case '<':
|
|
- return p.parseChanType(parent)
|
|
- case '(':
|
|
- // "(" Type ")"
|
|
- p.next()
|
|
- typ := p.parseType(parent)
|
|
- p.expect(')')
|
|
- return typ
|
|
- }
|
|
- p.errorf("expected type, got %s (%q)", scanner.TokenString(p.tok), p.lit)
|
|
- return nil
|
|
-}
|
|
-
|
|
-// ----------------------------------------------------------------------------
|
|
-// Declarations
|
|
-
|
|
-// ImportDecl = "import" PackageName PackageId .
|
|
-//
|
|
-func (p *parser) parseImportDecl() {
|
|
- p.expectKeyword("import")
|
|
- name := p.parsePackageName()
|
|
- p.getPkg(p.parsePackageID(), name)
|
|
-}
|
|
-
|
|
-// int_lit = [ "+" | "-" ] { "0" ... "9" } .
|
|
-//
|
|
-func (p *parser) parseInt() string {
|
|
- s := ""
|
|
- switch p.tok {
|
|
- case '-':
|
|
- s = "-"
|
|
- p.next()
|
|
- case '+':
|
|
- p.next()
|
|
- }
|
|
- return s + p.expect(scanner.Int)
|
|
-}
|
|
-
|
|
-// number = int_lit [ "p" int_lit ] .
|
|
-//
|
|
-func (p *parser) parseNumber() (typ *types.Basic, val constant.Value) {
|
|
- // mantissa
|
|
- mant := constant.MakeFromLiteral(p.parseInt(), token.INT, 0)
|
|
- if mant == nil {
|
|
- panic("invalid mantissa")
|
|
- }
|
|
-
|
|
- if p.lit == "p" {
|
|
- // exponent (base 2)
|
|
- p.next()
|
|
- exp, err := strconv.ParseInt(p.parseInt(), 10, 0)
|
|
- if err != nil {
|
|
- p.error(err)
|
|
- }
|
|
- if exp < 0 {
|
|
- denom := constant.MakeInt64(1)
|
|
- denom = constant.Shift(denom, token.SHL, uint(-exp))
|
|
- typ = types.Typ[types.UntypedFloat]
|
|
- val = constant.BinaryOp(mant, token.QUO, denom)
|
|
- return
|
|
- }
|
|
- if exp > 0 {
|
|
- mant = constant.Shift(mant, token.SHL, uint(exp))
|
|
- }
|
|
- typ = types.Typ[types.UntypedFloat]
|
|
- val = mant
|
|
- return
|
|
- }
|
|
-
|
|
- typ = types.Typ[types.UntypedInt]
|
|
- val = mant
|
|
- return
|
|
-}
|
|
-
|
|
-// ConstDecl = "const" ExportedName [ Type ] "=" Literal .
|
|
-// Literal = bool_lit | int_lit | float_lit | complex_lit | rune_lit | string_lit .
|
|
-// bool_lit = "true" | "false" .
|
|
-// complex_lit = "(" float_lit "+" float_lit "i" ")" .
|
|
-// rune_lit = "(" int_lit "+" int_lit ")" .
|
|
-// string_lit = `"` { unicode_char } `"` .
|
|
-//
|
|
-func (p *parser) parseConstDecl() {
|
|
- p.expectKeyword("const")
|
|
- pkg, name := p.parseExportedName()
|
|
-
|
|
- var typ0 types.Type
|
|
- if p.tok != '=' {
|
|
- // constant types are never structured - no need for parent type
|
|
- typ0 = p.parseType(nil)
|
|
- }
|
|
-
|
|
- p.expect('=')
|
|
- var typ types.Type
|
|
- var val constant.Value
|
|
- switch p.tok {
|
|
- case scanner.Ident:
|
|
- // bool_lit
|
|
- if p.lit != "true" && p.lit != "false" {
|
|
- p.error("expected true or false")
|
|
- }
|
|
- typ = types.Typ[types.UntypedBool]
|
|
- val = constant.MakeBool(p.lit == "true")
|
|
- p.next()
|
|
-
|
|
- case '-', scanner.Int:
|
|
- // int_lit
|
|
- typ, val = p.parseNumber()
|
|
-
|
|
- case '(':
|
|
- // complex_lit or rune_lit
|
|
- p.next()
|
|
- if p.tok == scanner.Char {
|
|
- p.next()
|
|
- p.expect('+')
|
|
- typ = types.Typ[types.UntypedRune]
|
|
- _, val = p.parseNumber()
|
|
- p.expect(')')
|
|
- break
|
|
- }
|
|
- _, re := p.parseNumber()
|
|
- p.expect('+')
|
|
- _, im := p.parseNumber()
|
|
- p.expectKeyword("i")
|
|
- p.expect(')')
|
|
- typ = types.Typ[types.UntypedComplex]
|
|
- val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
|
|
-
|
|
- case scanner.Char:
|
|
- // rune_lit
|
|
- typ = types.Typ[types.UntypedRune]
|
|
- val = constant.MakeFromLiteral(p.lit, token.CHAR, 0)
|
|
- p.next()
|
|
-
|
|
- case scanner.String:
|
|
- // string_lit
|
|
- typ = types.Typ[types.UntypedString]
|
|
- val = constant.MakeFromLiteral(p.lit, token.STRING, 0)
|
|
- p.next()
|
|
-
|
|
- default:
|
|
- p.errorf("expected literal got %s", scanner.TokenString(p.tok))
|
|
- }
|
|
-
|
|
- if typ0 == nil {
|
|
- typ0 = typ
|
|
- }
|
|
-
|
|
- pkg.Scope().Insert(types.NewConst(token.NoPos, pkg, name, typ0, val))
|
|
-}
|
|
-
|
|
-// TypeDecl = "type" ExportedName Type .
|
|
-//
|
|
-func (p *parser) parseTypeDecl() {
|
|
- p.expectKeyword("type")
|
|
- pkg, name := p.parseExportedName()
|
|
- obj := declTypeName(pkg, name)
|
|
-
|
|
- // The type object may have been imported before and thus already
|
|
- // have a type associated with it. We still need to parse the type
|
|
- // structure, but throw it away if the object already has a type.
|
|
- // This ensures that all imports refer to the same type object for
|
|
- // a given type declaration.
|
|
- typ := p.parseType(pkg)
|
|
-
|
|
- if name := obj.Type().(*types.Named); name.Underlying() == nil {
|
|
- name.SetUnderlying(typ)
|
|
- }
|
|
-}
|
|
-
|
|
-// VarDecl = "var" ExportedName Type .
|
|
-//
|
|
-func (p *parser) parseVarDecl() {
|
|
- p.expectKeyword("var")
|
|
- pkg, name := p.parseExportedName()
|
|
- typ := p.parseType(pkg)
|
|
- pkg.Scope().Insert(types.NewVar(token.NoPos, pkg, name, typ))
|
|
-}
|
|
-
|
|
-// Func = Signature [ Body ] .
|
|
-// Body = "{" ... "}" .
|
|
-//
|
|
-func (p *parser) parseFunc(recv *types.Var) *types.Signature {
|
|
- sig := p.parseSignature(recv)
|
|
- if p.tok == '{' {
|
|
- p.next()
|
|
- for i := 1; i > 0; p.next() {
|
|
- switch p.tok {
|
|
- case '{':
|
|
- i++
|
|
- case '}':
|
|
- i--
|
|
- }
|
|
- }
|
|
- }
|
|
- return sig
|
|
-}
|
|
-
|
|
-// MethodDecl = "func" Receiver Name Func .
|
|
-// Receiver = "(" ( identifier | "?" ) [ "*" ] ExportedName ")" .
|
|
-//
|
|
-func (p *parser) parseMethodDecl() {
|
|
- // "func" already consumed
|
|
- p.expect('(')
|
|
- recv, _ := p.parseParameter() // receiver
|
|
- p.expect(')')
|
|
-
|
|
- // determine receiver base type object
|
|
- base := deref(recv.Type()).(*types.Named)
|
|
-
|
|
- // parse method name, signature, and possibly inlined body
|
|
- _, name := p.parseName(nil, false)
|
|
- sig := p.parseFunc(recv)
|
|
-
|
|
- // methods always belong to the same package as the base type object
|
|
- pkg := base.Obj().Pkg()
|
|
-
|
|
- // add method to type unless type was imported before
|
|
- // and method exists already
|
|
- // TODO(gri) This leads to a quadratic algorithm - ok for now because method counts are small.
|
|
- base.AddMethod(types.NewFunc(token.NoPos, pkg, name, sig))
|
|
-}
|
|
-
|
|
-// FuncDecl = "func" ExportedName Func .
|
|
-//
|
|
-func (p *parser) parseFuncDecl() {
|
|
- // "func" already consumed
|
|
- pkg, name := p.parseExportedName()
|
|
- typ := p.parseFunc(nil)
|
|
- pkg.Scope().Insert(types.NewFunc(token.NoPos, pkg, name, typ))
|
|
-}
|
|
-
|
|
-// Decl = [ ImportDecl | ConstDecl | TypeDecl | VarDecl | FuncDecl | MethodDecl ] "\n" .
|
|
-//
|
|
-func (p *parser) parseDecl() {
|
|
- if p.tok == scanner.Ident {
|
|
- switch p.lit {
|
|
- case "import":
|
|
- p.parseImportDecl()
|
|
- case "const":
|
|
- p.parseConstDecl()
|
|
- case "type":
|
|
- p.parseTypeDecl()
|
|
- case "var":
|
|
- p.parseVarDecl()
|
|
- case "func":
|
|
- p.next() // look ahead
|
|
- if p.tok == '(' {
|
|
- p.parseMethodDecl()
|
|
- } else {
|
|
- p.parseFuncDecl()
|
|
- }
|
|
- }
|
|
- }
|
|
- p.expect('\n')
|
|
-}
|
|
-
|
|
-// ----------------------------------------------------------------------------
|
|
-// Export
|
|
-
|
|
-// Export = "PackageClause { Decl } "$$" .
|
|
-// PackageClause = "package" PackageName [ "safe" ] "\n" .
|
|
-//
|
|
-func (p *parser) parseExport() *types.Package {
|
|
- p.expectKeyword("package")
|
|
- name := p.parsePackageName()
|
|
- if p.tok == scanner.Ident && p.lit == "safe" {
|
|
- // package was compiled with -u option - ignore
|
|
- p.next()
|
|
- }
|
|
- p.expect('\n')
|
|
-
|
|
- pkg := p.getPkg(p.id, name)
|
|
-
|
|
- for p.tok != '$' && p.tok != scanner.EOF {
|
|
- p.parseDecl()
|
|
- }
|
|
-
|
|
- if ch := p.scanner.Peek(); p.tok != '$' || ch != '$' {
|
|
- // don't call next()/expect() since reading past the
|
|
- // export data may cause scanner errors (e.g. NUL chars)
|
|
- p.errorf("expected '$$', got %s %c", scanner.TokenString(p.tok), ch)
|
|
- }
|
|
-
|
|
- if n := p.scanner.ErrorCount; n != 0 {
|
|
- p.errorf("expected no scanner errors, got %d", n)
|
|
- }
|
|
-
|
|
- // Record all locally referenced packages as imports.
|
|
- var imports []*types.Package
|
|
- for id, pkg2 := range p.localPkgs {
|
|
- if pkg2.Name() == "" {
|
|
- p.errorf("%s package has no name", id)
|
|
- }
|
|
- if id == p.id {
|
|
- continue // avoid self-edge
|
|
- }
|
|
- imports = append(imports, pkg2)
|
|
- }
|
|
- sort.Sort(byPath(imports))
|
|
- pkg.SetImports(imports)
|
|
-
|
|
- // package was imported completely and without errors
|
|
- pkg.MarkComplete()
|
|
-
|
|
- return pkg
|
|
-}
|
|
-
|
|
-type byPath []*types.Package
|
|
-
|
|
-func (a byPath) Len() int { return len(a) }
|
|
-func (a byPath) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
|
-func (a byPath) Less(i, j int) bool { return a[i].Path() < a[j].Path() }
|
|
diff --git a/vendor/golang.org/x/tools/go/packages/golist.go b/vendor/golang.org/x/tools/go/packages/golist.go
|
|
index 0e1e7f11fee..deb9ee48174 100644
|
|
--- a/vendor/golang.org/x/tools/go/packages/golist.go
|
|
+++ b/vendor/golang.org/x/tools/go/packages/golist.go
|
|
@@ -61,6 +61,7 @@ func (r *responseDeduper) addAll(dr *driverResponse) {
|
|
for _, root := range dr.Roots {
|
|
r.addRoot(root)
|
|
}
|
|
+ r.dr.GoVersion = dr.GoVersion
|
|
}
|
|
|
|
func (r *responseDeduper) addPackage(p *Package) {
|
|
@@ -444,15 +445,22 @@ func (state *golistState) createDriverResponse(words ...string) (*driverResponse
|
|
|
|
// Run "go list" for complete
|
|
// information on the specified packages.
|
|
+ goVersion, err := state.getGoVersion()
|
|
+ if err != nil {
|
|
+ return nil, err
|
|
+ }
|
|
buf, err := state.invokeGo("list", golistargs(state.cfg, words)...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
+
|
|
seen := make(map[string]*jsonPackage)
|
|
pkgs := make(map[string]*Package)
|
|
additionalErrors := make(map[string][]Error)
|
|
// Decode the JSON and convert it to Package form.
|
|
- var response driverResponse
|
|
+ response := &driverResponse{
|
|
+ GoVersion: goVersion,
|
|
+ }
|
|
for dec := json.NewDecoder(buf); dec.More(); {
|
|
p := new(jsonPackage)
|
|
if err := dec.Decode(p); err != nil {
|
|
@@ -592,17 +600,12 @@ func (state *golistState) createDriverResponse(words ...string) (*driverResponse
|
|
|
|
// Work around https://golang.org/issue/28749:
|
|
// cmd/go puts assembly, C, and C++ files in CompiledGoFiles.
|
|
- // Filter out any elements of CompiledGoFiles that are also in OtherFiles.
|
|
- // We have to keep this workaround in place until go1.12 is a distant memory.
|
|
- if len(pkg.OtherFiles) > 0 {
|
|
- other := make(map[string]bool, len(pkg.OtherFiles))
|
|
- for _, f := range pkg.OtherFiles {
|
|
- other[f] = true
|
|
- }
|
|
-
|
|
+ // Remove files from CompiledGoFiles that are non-go files
|
|
+ // (or are not files that look like they are from the cache).
|
|
+ if len(pkg.CompiledGoFiles) > 0 {
|
|
out := pkg.CompiledGoFiles[:0]
|
|
for _, f := range pkg.CompiledGoFiles {
|
|
- if other[f] {
|
|
+ if ext := filepath.Ext(f); ext != ".go" && ext != "" { // ext == "" means the file is from the cache, so probably cgo-processed file
|
|
continue
|
|
}
|
|
out = append(out, f)
|
|
@@ -722,7 +725,7 @@ func (state *golistState) createDriverResponse(words ...string) (*driverResponse
|
|
}
|
|
sort.Slice(response.Packages, func(i, j int) bool { return response.Packages[i].ID < response.Packages[j].ID })
|
|
|
|
- return &response, nil
|
|
+ return response, nil
|
|
}
|
|
|
|
func (state *golistState) shouldAddFilenameFromError(p *jsonPackage) bool {
|
|
@@ -748,6 +751,7 @@ func (state *golistState) shouldAddFilenameFromError(p *jsonPackage) bool {
|
|
return len(p.Error.ImportStack) == 0 || p.Error.ImportStack[len(p.Error.ImportStack)-1] == p.ImportPath
|
|
}
|
|
|
|
+// getGoVersion returns the effective minor version of the go command.
|
|
func (state *golistState) getGoVersion() (int, error) {
|
|
state.goVersionOnce.Do(func() {
|
|
state.goVersion, state.goVersionError = gocommand.GoVersion(state.ctx, state.cfgInvocation(), state.cfg.gocmdRunner)
|
|
diff --git a/vendor/golang.org/x/tools/go/packages/packages.go b/vendor/golang.org/x/tools/go/packages/packages.go
|
|
index 1b5424e78f7..8a14dadd467 100644
|
|
--- a/vendor/golang.org/x/tools/go/packages/packages.go
|
|
+++ b/vendor/golang.org/x/tools/go/packages/packages.go
|
|
@@ -15,10 +15,12 @@ import (
|
|
"go/scanner"
|
|
"go/token"
|
|
"go/types"
|
|
+ "io"
|
|
"io/ioutil"
|
|
"log"
|
|
"os"
|
|
"path/filepath"
|
|
+ "runtime"
|
|
"strings"
|
|
"sync"
|
|
"time"
|
|
@@ -220,6 +222,11 @@ type driverResponse struct {
|
|
// Imports will be connected and then type and syntax information added in a
|
|
// later pass (see refine).
|
|
Packages []*Package
|
|
+
|
|
+ // GoVersion is the minor version number used by the driver
|
|
+ // (e.g. the go command on the PATH) when selecting .go files.
|
|
+ // Zero means unknown.
|
|
+ GoVersion int
|
|
}
|
|
|
|
// Load loads and returns the Go packages named by the given patterns.
|
|
@@ -243,7 +250,7 @@ func Load(cfg *Config, patterns ...string) ([]*Package, error) {
|
|
return nil, err
|
|
}
|
|
l.sizes = response.Sizes
|
|
- return l.refine(response.Roots, response.Packages...)
|
|
+ return l.refine(response)
|
|
}
|
|
|
|
// defaultDriver is a driver that implements go/packages' fallback behavior.
|
|
@@ -284,6 +291,9 @@ type Package struct {
|
|
// of the package, or while parsing or type-checking its files.
|
|
Errors []Error
|
|
|
|
+ // TypeErrors contains the subset of errors produced during type checking.
|
|
+ TypeErrors []types.Error
|
|
+
|
|
// GoFiles lists the absolute file paths of the package's Go source files.
|
|
GoFiles []string
|
|
|
|
@@ -503,6 +513,7 @@ type loaderPackage struct {
|
|
needsrc bool // load from source (Mode >= LoadTypes)
|
|
needtypes bool // type information is either requested or depended on
|
|
initial bool // package was matched by a pattern
|
|
+ goVersion int // minor version number of go command on PATH
|
|
}
|
|
|
|
// loader holds the working state of a single call to load.
|
|
@@ -589,7 +600,8 @@ func newLoader(cfg *Config) *loader {
|
|
|
|
// refine connects the supplied packages into a graph and then adds type and
|
|
// and syntax information as requested by the LoadMode.
|
|
-func (ld *loader) refine(roots []string, list ...*Package) ([]*Package, error) {
|
|
+func (ld *loader) refine(response *driverResponse) ([]*Package, error) {
|
|
+ roots := response.Roots
|
|
rootMap := make(map[string]int, len(roots))
|
|
for i, root := range roots {
|
|
rootMap[root] = i
|
|
@@ -597,7 +609,7 @@ func (ld *loader) refine(roots []string, list ...*Package) ([]*Package, error) {
|
|
ld.pkgs = make(map[string]*loaderPackage)
|
|
// first pass, fixup and build the map and roots
|
|
var initial = make([]*loaderPackage, len(roots))
|
|
- for _, pkg := range list {
|
|
+ for _, pkg := range response.Packages {
|
|
rootIndex := -1
|
|
if i, found := rootMap[pkg.ID]; found {
|
|
rootIndex = i
|
|
@@ -619,6 +631,7 @@ func (ld *loader) refine(roots []string, list ...*Package) ([]*Package, error) {
|
|
Package: pkg,
|
|
needtypes: needtypes,
|
|
needsrc: needsrc,
|
|
+ goVersion: response.GoVersion,
|
|
}
|
|
ld.pkgs[lpkg.ID] = lpkg
|
|
if rootIndex >= 0 {
|
|
@@ -830,12 +843,19 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
|
|
// never has to create a types.Package for an indirect dependency,
|
|
// which would then require that such created packages be explicitly
|
|
// inserted back into the Import graph as a final step after export data loading.
|
|
+ // (Hence this return is after the Types assignment.)
|
|
// The Diamond test exercises this case.
|
|
if !lpkg.needtypes && !lpkg.needsrc {
|
|
return
|
|
}
|
|
if !lpkg.needsrc {
|
|
- ld.loadFromExportData(lpkg)
|
|
+ if err := ld.loadFromExportData(lpkg); err != nil {
|
|
+ lpkg.Errors = append(lpkg.Errors, Error{
|
|
+ Pos: "-",
|
|
+ Msg: err.Error(),
|
|
+ Kind: UnknownError, // e.g. can't find/open/parse export data
|
|
+ })
|
|
+ }
|
|
return // not a source package, don't get syntax trees
|
|
}
|
|
|
|
@@ -867,6 +887,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
|
|
|
|
case types.Error:
|
|
// from type checker
|
|
+ lpkg.TypeErrors = append(lpkg.TypeErrors, err)
|
|
errs = append(errs, Error{
|
|
Pos: err.Fset.Position(err.Pos).String(),
|
|
Msg: err.Msg,
|
|
@@ -888,11 +909,41 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
|
|
lpkg.Errors = append(lpkg.Errors, errs...)
|
|
}
|
|
|
|
+ // If the go command on the PATH is newer than the runtime,
|
|
+ // then the go/{scanner,ast,parser,types} packages from the
|
|
+ // standard library may be unable to process the files
|
|
+ // selected by go list.
|
|
+ //
|
|
+ // There is currently no way to downgrade the effective
|
|
+ // version of the go command (see issue 52078), so we proceed
|
|
+ // with the newer go command but, in case of parse or type
|
|
+ // errors, we emit an additional diagnostic.
|
|
+ //
|
|
+ // See:
|
|
+ // - golang.org/issue/52078 (flag to set release tags)
|
|
+ // - golang.org/issue/50825 (gopls legacy version support)
|
|
+ // - golang.org/issue/55883 (go/packages confusing error)
|
|
+ //
|
|
+ // Should we assert a hard minimum of (currently) go1.16 here?
|
|
+ var runtimeVersion int
|
|
+ if _, err := fmt.Sscanf(runtime.Version(), "go1.%d", &runtimeVersion); err == nil && runtimeVersion < lpkg.goVersion {
|
|
+ defer func() {
|
|
+ if len(lpkg.Errors) > 0 {
|
|
+ appendError(Error{
|
|
+ Pos: "-",
|
|
+ Msg: fmt.Sprintf("This application uses version go1.%d of the source-processing packages but runs version go1.%d of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.", runtimeVersion, lpkg.goVersion),
|
|
+ Kind: UnknownError,
|
|
+ })
|
|
+ }
|
|
+ }()
|
|
+ }
|
|
+
|
|
if ld.Config.Mode&NeedTypes != 0 && len(lpkg.CompiledGoFiles) == 0 && lpkg.ExportFile != "" {
|
|
// The config requested loading sources and types, but sources are missing.
|
|
// Add an error to the package and fall back to loading from export data.
|
|
appendError(Error{"-", fmt.Sprintf("sources missing for package %s", lpkg.ID), ParseError})
|
|
- ld.loadFromExportData(lpkg)
|
|
+ _ = ld.loadFromExportData(lpkg) // ignore any secondary errors
|
|
+
|
|
return // can't get syntax trees for this package
|
|
}
|
|
|
|
@@ -946,7 +997,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
|
|
tc := &types.Config{
|
|
Importer: importer,
|
|
|
|
- // Type-check bodies of functions only in non-initial packages.
|
|
+ // Type-check bodies of functions only in initial packages.
|
|
// Example: for import graph A->B->C and initial packages {A,C},
|
|
// we can ignore function bodies in B.
|
|
IgnoreFuncBodies: ld.Mode&NeedDeps == 0 && !lpkg.initial,
|
|
@@ -1118,9 +1169,10 @@ func sameFile(x, y string) bool {
|
|
return false
|
|
}
|
|
|
|
-// loadFromExportData returns type information for the specified
|
|
+// loadFromExportData ensures that type information is present for the specified
|
|
// package, loading it from an export data file on the first request.
|
|
-func (ld *loader) loadFromExportData(lpkg *loaderPackage) (*types.Package, error) {
|
|
+// On success it sets lpkg.Types to a new Package.
|
|
+func (ld *loader) loadFromExportData(lpkg *loaderPackage) error {
|
|
if lpkg.PkgPath == "" {
|
|
log.Fatalf("internal error: Package %s has no PkgPath", lpkg)
|
|
}
|
|
@@ -1131,8 +1183,8 @@ func (ld *loader) loadFromExportData(lpkg *loaderPackage) (*types.Package, error
|
|
// must be sequential. (Finer-grained locking would require
|
|
// changes to the gcexportdata API.)
|
|
//
|
|
- // The exportMu lock guards the Package.Pkg field and the
|
|
- // types.Package it points to, for each Package in the graph.
|
|
+ // The exportMu lock guards the lpkg.Types field and the
|
|
+ // types.Package it points to, for each loaderPackage in the graph.
|
|
//
|
|
// Not all accesses to Package.Pkg need to be protected by exportMu:
|
|
// graph ordering ensures that direct dependencies of source
|
|
@@ -1141,18 +1193,18 @@ func (ld *loader) loadFromExportData(lpkg *loaderPackage) (*types.Package, error
|
|
defer ld.exportMu.Unlock()
|
|
|
|
if tpkg := lpkg.Types; tpkg != nil && tpkg.Complete() {
|
|
- return tpkg, nil // cache hit
|
|
+ return nil // cache hit
|
|
}
|
|
|
|
lpkg.IllTyped = true // fail safe
|
|
|
|
if lpkg.ExportFile == "" {
|
|
// Errors while building export data will have been printed to stderr.
|
|
- return nil, fmt.Errorf("no export data file")
|
|
+ return fmt.Errorf("no export data file")
|
|
}
|
|
f, err := os.Open(lpkg.ExportFile)
|
|
if err != nil {
|
|
- return nil, err
|
|
+ return err
|
|
}
|
|
defer f.Close()
|
|
|
|
@@ -1164,7 +1216,7 @@ func (ld *loader) loadFromExportData(lpkg *loaderPackage) (*types.Package, error
|
|
// queries.)
|
|
r, err := gcexportdata.NewReader(f)
|
|
if err != nil {
|
|
- return nil, fmt.Errorf("reading %s: %v", lpkg.ExportFile, err)
|
|
+ return fmt.Errorf("reading %s: %v", lpkg.ExportFile, err)
|
|
}
|
|
|
|
// Build the view.
|
|
@@ -1208,7 +1260,7 @@ func (ld *loader) loadFromExportData(lpkg *loaderPackage) (*types.Package, error
|
|
// (May modify incomplete packages in view but not create new ones.)
|
|
tpkg, err := gcexportdata.Read(r, ld.Fset, view, lpkg.PkgPath)
|
|
if err != nil {
|
|
- return nil, fmt.Errorf("reading %s: %v", lpkg.ExportFile, err)
|
|
+ return fmt.Errorf("reading %s: %v", lpkg.ExportFile, err)
|
|
}
|
|
if viewLen != len(view) {
|
|
log.Fatalf("Unexpected package creation during export data loading")
|
|
@@ -1216,8 +1268,7 @@ func (ld *loader) loadFromExportData(lpkg *loaderPackage) (*types.Package, error
|
|
|
|
lpkg.Types = tpkg
|
|
lpkg.IllTyped = false
|
|
-
|
|
- return tpkg, nil
|
|
+ return nil
|
|
}
|
|
|
|
// impliedLoadMode returns loadMode with its dependencies.
|
|
@@ -1242,3 +1293,5 @@ func impliedLoadMode(loadMode LoadMode) LoadMode {
|
|
func usesExportData(cfg *Config) bool {
|
|
return cfg.Mode&NeedExportsFile != 0 || cfg.Mode&NeedTypes != 0 && cfg.Mode&NeedDeps == 0
|
|
}
|
|
+
|
|
+var _ interface{} = io.Discard // assert build toolchain is go1.16 or later
|
|
diff --git a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_darwin.go b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_darwin.go
|
|
new file mode 100644
|
|
index 00000000000..0ca55e0d56f
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_darwin.go
|
|
@@ -0,0 +1,119 @@
|
|
+// Copyright 2022 The Go Authors. 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 && cgo
|
|
+// +build darwin,cgo
|
|
+
|
|
+package fastwalk
|
|
+
|
|
+/*
|
|
+#include <dirent.h>
|
|
+
|
|
+// fastwalk_readdir_r wraps readdir_r so that we don't have to pass a dirent**
|
|
+// result pointer which triggers CGO's "Go pointer to Go pointer" check unless
|
|
+// we allocat the result dirent* with malloc.
|
|
+//
|
|
+// fastwalk_readdir_r returns 0 on success, -1 upon reaching the end of the
|
|
+// directory, or a positive error number to indicate failure.
|
|
+static int fastwalk_readdir_r(DIR *fd, struct dirent *entry) {
|
|
+ struct dirent *result;
|
|
+ int ret = readdir_r(fd, entry, &result);
|
|
+ if (ret == 0 && result == NULL) {
|
|
+ ret = -1; // EOF
|
|
+ }
|
|
+ return ret;
|
|
+}
|
|
+*/
|
|
+import "C"
|
|
+
|
|
+import (
|
|
+ "os"
|
|
+ "syscall"
|
|
+ "unsafe"
|
|
+)
|
|
+
|
|
+func readDir(dirName string, fn func(dirName, entName string, typ os.FileMode) error) error {
|
|
+ fd, err := openDir(dirName)
|
|
+ if err != nil {
|
|
+ return &os.PathError{Op: "opendir", Path: dirName, Err: err}
|
|
+ }
|
|
+ defer C.closedir(fd)
|
|
+
|
|
+ skipFiles := false
|
|
+ var dirent syscall.Dirent
|
|
+ for {
|
|
+ ret := int(C.fastwalk_readdir_r(fd, (*C.struct_dirent)(unsafe.Pointer(&dirent))))
|
|
+ if ret != 0 {
|
|
+ if ret == -1 {
|
|
+ break // EOF
|
|
+ }
|
|
+ if ret == int(syscall.EINTR) {
|
|
+ continue
|
|
+ }
|
|
+ return &os.PathError{Op: "readdir", Path: dirName, Err: syscall.Errno(ret)}
|
|
+ }
|
|
+ if dirent.Ino == 0 {
|
|
+ continue
|
|
+ }
|
|
+ typ := dtToType(dirent.Type)
|
|
+ if skipFiles && typ.IsRegular() {
|
|
+ continue
|
|
+ }
|
|
+ name := (*[len(syscall.Dirent{}.Name)]byte)(unsafe.Pointer(&dirent.Name))[:]
|
|
+ name = name[:dirent.Namlen]
|
|
+ for i, c := range name {
|
|
+ if c == 0 {
|
|
+ name = name[:i]
|
|
+ break
|
|
+ }
|
|
+ }
|
|
+ // Check for useless names before allocating a string.
|
|
+ if string(name) == "." || string(name) == ".." {
|
|
+ continue
|
|
+ }
|
|
+ if err := fn(dirName, string(name), typ); err != nil {
|
|
+ if err != ErrSkipFiles {
|
|
+ return err
|
|
+ }
|
|
+ skipFiles = true
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return nil
|
|
+}
|
|
+
|
|
+func dtToType(typ uint8) os.FileMode {
|
|
+ switch typ {
|
|
+ case syscall.DT_BLK:
|
|
+ return os.ModeDevice
|
|
+ case syscall.DT_CHR:
|
|
+ return os.ModeDevice | os.ModeCharDevice
|
|
+ case syscall.DT_DIR:
|
|
+ return os.ModeDir
|
|
+ case syscall.DT_FIFO:
|
|
+ return os.ModeNamedPipe
|
|
+ case syscall.DT_LNK:
|
|
+ return os.ModeSymlink
|
|
+ case syscall.DT_REG:
|
|
+ return 0
|
|
+ case syscall.DT_SOCK:
|
|
+ return os.ModeSocket
|
|
+ }
|
|
+ return ^os.FileMode(0)
|
|
+}
|
|
+
|
|
+// openDir wraps opendir(3) and handles any EINTR errors. The returned *DIR
|
|
+// needs to be closed with closedir(3).
|
|
+func openDir(path string) (*C.DIR, error) {
|
|
+ name, err := syscall.BytePtrFromString(path)
|
|
+ if err != nil {
|
|
+ return nil, err
|
|
+ }
|
|
+ for {
|
|
+ fd, err := C.opendir((*C.char)(unsafe.Pointer(name)))
|
|
+ if err != syscall.EINTR {
|
|
+ return fd, err
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go
|
|
index ea02b9ebfe8..d3922890b0b 100644
|
|
--- a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go
|
|
+++ b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go
|
|
@@ -2,8 +2,8 @@
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
-//go:build (linux || darwin) && !appengine
|
|
-// +build linux darwin
|
|
+//go:build (linux || (darwin && !cgo)) && !appengine
|
|
+// +build linux darwin,!cgo
|
|
// +build !appengine
|
|
|
|
package fastwalk
|
|
@@ -11,5 +11,5 @@ package fastwalk
|
|
import "syscall"
|
|
|
|
func direntInode(dirent *syscall.Dirent) uint64 {
|
|
- return uint64(dirent.Ino)
|
|
+ return dirent.Ino
|
|
}
|
|
diff --git a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go
|
|
index d5c9c321ed2..38a4db6af3a 100644
|
|
--- a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go
|
|
+++ b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go
|
|
@@ -2,8 +2,8 @@
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
-//go:build darwin || freebsd || openbsd || netbsd
|
|
-// +build darwin freebsd openbsd netbsd
|
|
+//go:build (darwin && !cgo) || freebsd || openbsd || netbsd
|
|
+// +build darwin,!cgo freebsd openbsd netbsd
|
|
|
|
package fastwalk
|
|
|
|
diff --git a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_unix.go b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_unix.go
|
|
index 58bd87841e1..f12f1a734cc 100644
|
|
--- a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_unix.go
|
|
+++ b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_unix.go
|
|
@@ -2,8 +2,8 @@
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
-//go:build (linux || darwin || freebsd || openbsd || netbsd) && !appengine
|
|
-// +build linux darwin freebsd openbsd netbsd
|
|
+//go:build (linux || freebsd || openbsd || netbsd || (darwin && !cgo)) && !appengine
|
|
+// +build linux freebsd openbsd netbsd darwin,!cgo
|
|
// +build !appengine
|
|
|
|
package fastwalk
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/bexport.go b/vendor/golang.org/x/tools/internal/gcimporter/bexport.go
|
|
similarity index 99%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/bexport.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/bexport.go
|
|
index 0a3cdb9a3b8..5e3ada8b1d3 100644
|
|
--- a/vendor/golang.org/x/tools/go/internal/gcimporter/bexport.go
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/bexport.go
|
|
@@ -12,7 +12,6 @@ import (
|
|
"bytes"
|
|
"encoding/binary"
|
|
"fmt"
|
|
- "go/ast"
|
|
"go/constant"
|
|
"go/token"
|
|
"go/types"
|
|
@@ -143,7 +142,7 @@ func BExportData(fset *token.FileSet, pkg *types.Package) (b []byte, err error)
|
|
objcount := 0
|
|
scope := pkg.Scope()
|
|
for _, name := range scope.Names() {
|
|
- if !ast.IsExported(name) {
|
|
+ if !token.IsExported(name) {
|
|
continue
|
|
}
|
|
if trace {
|
|
@@ -480,7 +479,7 @@ func (p *exporter) method(m *types.Func) {
|
|
|
|
p.pos(m)
|
|
p.string(m.Name())
|
|
- if m.Name() != "_" && !ast.IsExported(m.Name()) {
|
|
+ if m.Name() != "_" && !token.IsExported(m.Name()) {
|
|
p.pkg(m.Pkg(), false)
|
|
}
|
|
|
|
@@ -499,7 +498,7 @@ func (p *exporter) fieldName(f *types.Var) {
|
|
// 3) field name doesn't match base type name (alias name)
|
|
bname := basetypeName(f.Type())
|
|
if name == bname {
|
|
- if ast.IsExported(name) {
|
|
+ if token.IsExported(name) {
|
|
name = "" // 1) we don't need to know the field name or package
|
|
} else {
|
|
name = "?" // 2) use unexported name "?" to force package export
|
|
@@ -512,7 +511,7 @@ func (p *exporter) fieldName(f *types.Var) {
|
|
}
|
|
|
|
p.string(name)
|
|
- if name != "" && !ast.IsExported(name) {
|
|
+ if name != "" && !token.IsExported(name) {
|
|
p.pkg(f.Pkg(), false)
|
|
}
|
|
}
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/bimport.go b/vendor/golang.org/x/tools/internal/gcimporter/bimport.go
|
|
similarity index 100%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/bimport.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/bimport.go
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/exportdata.go b/vendor/golang.org/x/tools/internal/gcimporter/exportdata.go
|
|
similarity index 100%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/exportdata.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/exportdata.go
|
|
diff --git a/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go b/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go
|
|
new file mode 100644
|
|
index 00000000000..0372fb3a646
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go
|
|
@@ -0,0 +1,265 @@
|
|
+// Copyright 2011 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+// This file is a reduced copy of $GOROOT/src/go/internal/gcimporter/gcimporter.go.
|
|
+
|
|
+// Package gcimporter provides various functions for reading
|
|
+// gc-generated object files that can be used to implement the
|
|
+// Importer interface defined by the Go 1.5 standard library package.
|
|
+package gcimporter // import "golang.org/x/tools/internal/gcimporter"
|
|
+
|
|
+import (
|
|
+ "bufio"
|
|
+ "bytes"
|
|
+ "fmt"
|
|
+ "go/build"
|
|
+ "go/token"
|
|
+ "go/types"
|
|
+ "io"
|
|
+ "io/ioutil"
|
|
+ "os"
|
|
+ "os/exec"
|
|
+ "path/filepath"
|
|
+ "strings"
|
|
+ "sync"
|
|
+)
|
|
+
|
|
+const (
|
|
+ // Enable debug during development: it adds some additional checks, and
|
|
+ // prevents errors from being recovered.
|
|
+ debug = false
|
|
+
|
|
+ // If trace is set, debugging output is printed to std out.
|
|
+ trace = false
|
|
+)
|
|
+
|
|
+var exportMap sync.Map // package dir → func() (string, bool)
|
|
+
|
|
+// lookupGorootExport returns the location of the export data
|
|
+// (normally found in the build cache, but located in GOROOT/pkg
|
|
+// in prior Go releases) for the package located in pkgDir.
|
|
+//
|
|
+// (We use the package's directory instead of its import path
|
|
+// mainly to simplify handling of the packages in src/vendor
|
|
+// and cmd/vendor.)
|
|
+func lookupGorootExport(pkgDir string) (string, bool) {
|
|
+ f, ok := exportMap.Load(pkgDir)
|
|
+ if !ok {
|
|
+ var (
|
|
+ listOnce sync.Once
|
|
+ exportPath string
|
|
+ )
|
|
+ f, _ = exportMap.LoadOrStore(pkgDir, func() (string, bool) {
|
|
+ listOnce.Do(func() {
|
|
+ cmd := exec.Command("go", "list", "-export", "-f", "{{.Export}}", pkgDir)
|
|
+ cmd.Dir = build.Default.GOROOT
|
|
+ var output []byte
|
|
+ output, err := cmd.Output()
|
|
+ if err != nil {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ exports := strings.Split(string(bytes.TrimSpace(output)), "\n")
|
|
+ if len(exports) != 1 {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ exportPath = exports[0]
|
|
+ })
|
|
+
|
|
+ return exportPath, exportPath != ""
|
|
+ })
|
|
+ }
|
|
+
|
|
+ return f.(func() (string, bool))()
|
|
+}
|
|
+
|
|
+var pkgExts = [...]string{".a", ".o"}
|
|
+
|
|
+// FindPkg returns the filename and unique package id for an import
|
|
+// path based on package information provided by build.Import (using
|
|
+// the build.Default build.Context). A relative srcDir is interpreted
|
|
+// relative to the current working directory.
|
|
+// If no file was found, an empty filename is returned.
|
|
+func FindPkg(path, srcDir string) (filename, id string) {
|
|
+ if path == "" {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ var noext string
|
|
+ switch {
|
|
+ default:
|
|
+ // "x" -> "$GOPATH/pkg/$GOOS_$GOARCH/x.ext", "x"
|
|
+ // Don't require the source files to be present.
|
|
+ if abs, err := filepath.Abs(srcDir); err == nil { // see issue 14282
|
|
+ srcDir = abs
|
|
+ }
|
|
+ bp, _ := build.Import(path, srcDir, build.FindOnly|build.AllowBinary)
|
|
+ if bp.PkgObj == "" {
|
|
+ var ok bool
|
|
+ if bp.Goroot && bp.Dir != "" {
|
|
+ filename, ok = lookupGorootExport(bp.Dir)
|
|
+ }
|
|
+ if !ok {
|
|
+ id = path // make sure we have an id to print in error message
|
|
+ return
|
|
+ }
|
|
+ } else {
|
|
+ noext = strings.TrimSuffix(bp.PkgObj, ".a")
|
|
+ id = bp.ImportPath
|
|
+ }
|
|
+
|
|
+ case build.IsLocalImport(path):
|
|
+ // "./x" -> "/this/directory/x.ext", "/this/directory/x"
|
|
+ noext = filepath.Join(srcDir, path)
|
|
+ id = noext
|
|
+
|
|
+ case filepath.IsAbs(path):
|
|
+ // for completeness only - go/build.Import
|
|
+ // does not support absolute imports
|
|
+ // "/x" -> "/x.ext", "/x"
|
|
+ noext = path
|
|
+ id = path
|
|
+ }
|
|
+
|
|
+ if false { // for debugging
|
|
+ if path != id {
|
|
+ fmt.Printf("%s -> %s\n", path, id)
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if filename != "" {
|
|
+ if f, err := os.Stat(filename); err == nil && !f.IsDir() {
|
|
+ return
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // try extensions
|
|
+ for _, ext := range pkgExts {
|
|
+ filename = noext + ext
|
|
+ if f, err := os.Stat(filename); err == nil && !f.IsDir() {
|
|
+ return
|
|
+ }
|
|
+ }
|
|
+
|
|
+ filename = "" // not found
|
|
+ return
|
|
+}
|
|
+
|
|
+// Import imports a gc-generated package given its import path and srcDir, adds
|
|
+// the corresponding package object to the packages map, and returns the object.
|
|
+// The packages map must contain all packages already imported.
|
|
+func Import(packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) {
|
|
+ var rc io.ReadCloser
|
|
+ var filename, id string
|
|
+ if lookup != nil {
|
|
+ // With custom lookup specified, assume that caller has
|
|
+ // converted path to a canonical import path for use in the map.
|
|
+ if path == "unsafe" {
|
|
+ return types.Unsafe, nil
|
|
+ }
|
|
+ id = path
|
|
+
|
|
+ // No need to re-import if the package was imported completely before.
|
|
+ if pkg = packages[id]; pkg != nil && pkg.Complete() {
|
|
+ return
|
|
+ }
|
|
+ f, err := lookup(path)
|
|
+ if err != nil {
|
|
+ return nil, err
|
|
+ }
|
|
+ rc = f
|
|
+ } else {
|
|
+ filename, id = FindPkg(path, srcDir)
|
|
+ if filename == "" {
|
|
+ if path == "unsafe" {
|
|
+ return types.Unsafe, nil
|
|
+ }
|
|
+ return nil, fmt.Errorf("can't find import: %q", id)
|
|
+ }
|
|
+
|
|
+ // no need to re-import if the package was imported completely before
|
|
+ if pkg = packages[id]; pkg != nil && pkg.Complete() {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ // open file
|
|
+ f, err := os.Open(filename)
|
|
+ if err != nil {
|
|
+ return nil, err
|
|
+ }
|
|
+ defer func() {
|
|
+ if err != nil {
|
|
+ // add file name to error
|
|
+ err = fmt.Errorf("%s: %v", filename, err)
|
|
+ }
|
|
+ }()
|
|
+ rc = f
|
|
+ }
|
|
+ defer rc.Close()
|
|
+
|
|
+ var hdr string
|
|
+ var size int64
|
|
+ buf := bufio.NewReader(rc)
|
|
+ if hdr, size, err = FindExportData(buf); err != nil {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ switch hdr {
|
|
+ case "$$B\n":
|
|
+ var data []byte
|
|
+ data, err = ioutil.ReadAll(buf)
|
|
+ if err != nil {
|
|
+ break
|
|
+ }
|
|
+
|
|
+ // TODO(gri): allow clients of go/importer to provide a FileSet.
|
|
+ // Or, define a new standard go/types/gcexportdata package.
|
|
+ fset := token.NewFileSet()
|
|
+
|
|
+ // The indexed export format starts with an 'i'; the older
|
|
+ // binary export format starts with a 'c', 'd', or 'v'
|
|
+ // (from "version"). Select appropriate importer.
|
|
+ if len(data) > 0 {
|
|
+ switch data[0] {
|
|
+ case 'i':
|
|
+ _, pkg, err := IImportData(fset, packages, data[1:], id)
|
|
+ return pkg, err
|
|
+
|
|
+ case 'v', 'c', 'd':
|
|
+ _, pkg, err := BImportData(fset, packages, data, id)
|
|
+ return pkg, err
|
|
+
|
|
+ case 'u':
|
|
+ _, pkg, err := UImportData(fset, packages, data[1:size], id)
|
|
+ return pkg, err
|
|
+
|
|
+ default:
|
|
+ l := len(data)
|
|
+ if l > 10 {
|
|
+ l = 10
|
|
+ }
|
|
+ return nil, fmt.Errorf("unexpected export data with prefix %q for path %s", string(data[:l]), id)
|
|
+ }
|
|
+ }
|
|
+
|
|
+ default:
|
|
+ err = fmt.Errorf("unknown export data header: %q", hdr)
|
|
+ }
|
|
+
|
|
+ return
|
|
+}
|
|
+
|
|
+func deref(typ types.Type) types.Type {
|
|
+ if p, _ := typ.(*types.Pointer); p != nil {
|
|
+ return p.Elem()
|
|
+ }
|
|
+ return typ
|
|
+}
|
|
+
|
|
+type byPath []*types.Package
|
|
+
|
|
+func (a byPath) Len() int { return len(a) }
|
|
+func (a byPath) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
|
+func (a byPath) Less(i, j int) bool { return a[i].Path() < a[j].Path() }
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/iexport.go b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go
|
|
similarity index 78%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/iexport.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/iexport.go
|
|
index 209553409cb..1749fd0de82 100644
|
|
--- a/vendor/golang.org/x/tools/go/internal/gcimporter/iexport.go
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go
|
|
@@ -12,7 +12,6 @@ import (
|
|
"bytes"
|
|
"encoding/binary"
|
|
"fmt"
|
|
- "go/ast"
|
|
"go/constant"
|
|
"go/token"
|
|
"go/types"
|
|
@@ -23,9 +22,45 @@ import (
|
|
"strconv"
|
|
"strings"
|
|
|
|
+ "golang.org/x/tools/internal/tokeninternal"
|
|
"golang.org/x/tools/internal/typeparams"
|
|
)
|
|
|
|
+// IExportShallow encodes "shallow" export data for the specified package.
|
|
+//
|
|
+// No promises are made about the encoding other than that it can be
|
|
+// decoded by the same version of IIExportShallow. If you plan to save
|
|
+// export data in the file system, be sure to include a cryptographic
|
|
+// digest of the executable in the key to avoid version skew.
|
|
+func IExportShallow(fset *token.FileSet, pkg *types.Package) ([]byte, error) {
|
|
+ // In principle this operation can only fail if out.Write fails,
|
|
+ // but that's impossible for bytes.Buffer---and as a matter of
|
|
+ // fact iexportCommon doesn't even check for I/O errors.
|
|
+ // TODO(adonovan): handle I/O errors properly.
|
|
+ // TODO(adonovan): use byte slices throughout, avoiding copying.
|
|
+ const bundle, shallow = false, true
|
|
+ var out bytes.Buffer
|
|
+ err := iexportCommon(&out, fset, bundle, shallow, iexportVersion, []*types.Package{pkg})
|
|
+ return out.Bytes(), err
|
|
+}
|
|
+
|
|
+// IImportShallow decodes "shallow" types.Package data encoded by IExportShallow
|
|
+// in the same executable. This function cannot import data from
|
|
+// cmd/compile or gcexportdata.Write.
|
|
+func IImportShallow(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string, insert InsertType) (*types.Package, error) {
|
|
+ const bundle = false
|
|
+ pkgs, err := iimportCommon(fset, imports, data, bundle, path, insert)
|
|
+ if err != nil {
|
|
+ return nil, err
|
|
+ }
|
|
+ return pkgs[0], nil
|
|
+}
|
|
+
|
|
+// InsertType is the type of a function that creates a types.TypeName
|
|
+// object for a named type and inserts it into the scope of the
|
|
+// specified Package.
|
|
+type InsertType = func(pkg *types.Package, name string)
|
|
+
|
|
// Current bundled export format version. Increase with each format change.
|
|
// 0: initial implementation
|
|
const bundleVersion = 0
|
|
@@ -36,15 +71,17 @@ const bundleVersion = 0
|
|
// The package path of the top-level package will not be recorded,
|
|
// so that calls to IImportData can override with a provided package path.
|
|
func IExportData(out io.Writer, fset *token.FileSet, pkg *types.Package) error {
|
|
- return iexportCommon(out, fset, false, iexportVersion, []*types.Package{pkg})
|
|
+ const bundle, shallow = false, false
|
|
+ return iexportCommon(out, fset, bundle, shallow, iexportVersion, []*types.Package{pkg})
|
|
}
|
|
|
|
// IExportBundle writes an indexed export bundle for pkgs to out.
|
|
func IExportBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Package) error {
|
|
- return iexportCommon(out, fset, true, iexportVersion, pkgs)
|
|
+ const bundle, shallow = true, false
|
|
+ return iexportCommon(out, fset, bundle, shallow, iexportVersion, pkgs)
|
|
}
|
|
|
|
-func iexportCommon(out io.Writer, fset *token.FileSet, bundle bool, version int, pkgs []*types.Package) (err error) {
|
|
+func iexportCommon(out io.Writer, fset *token.FileSet, bundle, shallow bool, version int, pkgs []*types.Package) (err error) {
|
|
if !debug {
|
|
defer func() {
|
|
if e := recover(); e != nil {
|
|
@@ -61,6 +98,7 @@ func iexportCommon(out io.Writer, fset *token.FileSet, bundle bool, version int,
|
|
p := iexporter{
|
|
fset: fset,
|
|
version: version,
|
|
+ shallow: shallow,
|
|
allPkgs: map[*types.Package]bool{},
|
|
stringIndex: map[string]uint64{},
|
|
declIndex: map[types.Object]uint64{},
|
|
@@ -82,7 +120,7 @@ func iexportCommon(out io.Writer, fset *token.FileSet, bundle bool, version int,
|
|
for _, pkg := range pkgs {
|
|
scope := pkg.Scope()
|
|
for _, name := range scope.Names() {
|
|
- if ast.IsExported(name) {
|
|
+ if token.IsExported(name) {
|
|
p.pushDecl(scope.Lookup(name))
|
|
}
|
|
}
|
|
@@ -101,6 +139,17 @@ func iexportCommon(out io.Writer, fset *token.FileSet, bundle bool, version int,
|
|
p.doDecl(p.declTodo.popHead())
|
|
}
|
|
|
|
+ // Produce index of offset of each file record in files.
|
|
+ var files intWriter
|
|
+ var fileOffset []uint64 // fileOffset[i] is offset in files of file encoded as i
|
|
+ if p.shallow {
|
|
+ fileOffset = make([]uint64, len(p.fileInfos))
|
|
+ for i, info := range p.fileInfos {
|
|
+ fileOffset[i] = uint64(files.Len())
|
|
+ p.encodeFile(&files, info.file, info.needed)
|
|
+ }
|
|
+ }
|
|
+
|
|
// Append indices to data0 section.
|
|
dataLen := uint64(p.data0.Len())
|
|
w := p.newWriter()
|
|
@@ -126,16 +175,75 @@ func iexportCommon(out io.Writer, fset *token.FileSet, bundle bool, version int,
|
|
}
|
|
hdr.uint64(uint64(p.version))
|
|
hdr.uint64(uint64(p.strings.Len()))
|
|
+ if p.shallow {
|
|
+ hdr.uint64(uint64(files.Len()))
|
|
+ hdr.uint64(uint64(len(fileOffset)))
|
|
+ for _, offset := range fileOffset {
|
|
+ hdr.uint64(offset)
|
|
+ }
|
|
+ }
|
|
hdr.uint64(dataLen)
|
|
|
|
// Flush output.
|
|
io.Copy(out, &hdr)
|
|
io.Copy(out, &p.strings)
|
|
+ if p.shallow {
|
|
+ io.Copy(out, &files)
|
|
+ }
|
|
io.Copy(out, &p.data0)
|
|
|
|
return nil
|
|
}
|
|
|
|
+// encodeFile writes to w a representation of the file sufficient to
|
|
+// faithfully restore position information about all needed offsets.
|
|
+// Mutates the needed array.
|
|
+func (p *iexporter) encodeFile(w *intWriter, file *token.File, needed []uint64) {
|
|
+ _ = needed[0] // precondition: needed is non-empty
|
|
+
|
|
+ w.uint64(p.stringOff(file.Name()))
|
|
+
|
|
+ size := uint64(file.Size())
|
|
+ w.uint64(size)
|
|
+
|
|
+ // Sort the set of needed offsets. Duplicates are harmless.
|
|
+ sort.Slice(needed, func(i, j int) bool { return needed[i] < needed[j] })
|
|
+
|
|
+ lines := tokeninternal.GetLines(file) // byte offset of each line start
|
|
+ w.uint64(uint64(len(lines)))
|
|
+
|
|
+ // Rather than record the entire array of line start offsets,
|
|
+ // we save only a sparse list of (index, offset) pairs for
|
|
+ // the start of each line that contains a needed position.
|
|
+ var sparse [][2]int // (index, offset) pairs
|
|
+outer:
|
|
+ for i, lineStart := range lines {
|
|
+ lineEnd := size
|
|
+ if i < len(lines)-1 {
|
|
+ lineEnd = uint64(lines[i+1])
|
|
+ }
|
|
+ // Does this line contains a needed offset?
|
|
+ if needed[0] < lineEnd {
|
|
+ sparse = append(sparse, [2]int{i, lineStart})
|
|
+ for needed[0] < lineEnd {
|
|
+ needed = needed[1:]
|
|
+ if len(needed) == 0 {
|
|
+ break outer
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Delta-encode the columns.
|
|
+ w.uint64(uint64(len(sparse)))
|
|
+ var prev [2]int
|
|
+ for _, pair := range sparse {
|
|
+ w.uint64(uint64(pair[0] - prev[0]))
|
|
+ w.uint64(uint64(pair[1] - prev[1]))
|
|
+ prev = pair
|
|
+ }
|
|
+}
|
|
+
|
|
// writeIndex writes out an object index. mainIndex indicates whether
|
|
// we're writing out the main index, which is also read by
|
|
// non-compiler tools and includes a complete package description
|
|
@@ -205,7 +313,8 @@ type iexporter struct {
|
|
out *bytes.Buffer
|
|
version int
|
|
|
|
- localpkg *types.Package
|
|
+ shallow bool // don't put types from other packages in the index
|
|
+ localpkg *types.Package // (nil in bundle mode)
|
|
|
|
// allPkgs tracks all packages that have been referenced by
|
|
// the export data, so we can ensure to include them in the
|
|
@@ -217,6 +326,12 @@ type iexporter struct {
|
|
strings intWriter
|
|
stringIndex map[string]uint64
|
|
|
|
+ // In shallow mode, object positions are encoded as (file, offset).
|
|
+ // Each file is recorded as a line-number table.
|
|
+ // Only the lines of needed positions are saved faithfully.
|
|
+ fileInfo map[*token.File]uint64 // value is index in fileInfos
|
|
+ fileInfos []*filePositions
|
|
+
|
|
data0 intWriter
|
|
declIndex map[types.Object]uint64
|
|
tparamNames map[types.Object]string // typeparam->exported name
|
|
@@ -225,6 +340,11 @@ type iexporter struct {
|
|
indent int // for tracing support
|
|
}
|
|
|
|
+type filePositions struct {
|
|
+ file *token.File
|
|
+ needed []uint64 // unordered list of needed file offsets
|
|
+}
|
|
+
|
|
func (p *iexporter) trace(format string, args ...interface{}) {
|
|
if !trace {
|
|
// Call sites should also be guarded, but having this check here allows
|
|
@@ -248,11 +368,35 @@ func (p *iexporter) stringOff(s string) uint64 {
|
|
return off
|
|
}
|
|
|
|
+// fileIndexAndOffset returns the index of the token.File and the byte offset of pos within it.
|
|
+func (p *iexporter) fileIndexAndOffset(file *token.File, pos token.Pos) (uint64, uint64) {
|
|
+ index, ok := p.fileInfo[file]
|
|
+ if !ok {
|
|
+ index = uint64(len(p.fileInfo))
|
|
+ p.fileInfos = append(p.fileInfos, &filePositions{file: file})
|
|
+ if p.fileInfo == nil {
|
|
+ p.fileInfo = make(map[*token.File]uint64)
|
|
+ }
|
|
+ p.fileInfo[file] = index
|
|
+ }
|
|
+ // Record each needed offset.
|
|
+ info := p.fileInfos[index]
|
|
+ offset := uint64(file.Offset(pos))
|
|
+ info.needed = append(info.needed, offset)
|
|
+
|
|
+ return index, offset
|
|
+}
|
|
+
|
|
// pushDecl adds n to the declaration work queue, if not already present.
|
|
func (p *iexporter) pushDecl(obj types.Object) {
|
|
// Package unsafe is known to the compiler and predeclared.
|
|
assert(obj.Pkg() != types.Unsafe)
|
|
|
|
+ // Shallow export data: don't index decls from other packages.
|
|
+ if p.shallow && obj.Pkg() != p.localpkg {
|
|
+ return
|
|
+ }
|
|
+
|
|
if _, ok := p.declIndex[obj]; ok {
|
|
return
|
|
}
|
|
@@ -300,7 +444,13 @@ func (p *iexporter) doDecl(obj types.Object) {
|
|
case *types.Func:
|
|
sig, _ := obj.Type().(*types.Signature)
|
|
if sig.Recv() != nil {
|
|
- panic(internalErrorf("unexpected method: %v", sig))
|
|
+ // We shouldn't see methods in the package scope,
|
|
+ // but the type checker may repair "func () F() {}"
|
|
+ // to "func (Invalid) F()" and then treat it like "func F()",
|
|
+ // so allow that. See golang/go#57729.
|
|
+ if sig.Recv().Type() != types.Typ[types.Invalid] {
|
|
+ panic(internalErrorf("unexpected method: %v", sig))
|
|
+ }
|
|
}
|
|
|
|
// Function.
|
|
@@ -412,13 +562,30 @@ func (w *exportWriter) tag(tag byte) {
|
|
}
|
|
|
|
func (w *exportWriter) pos(pos token.Pos) {
|
|
- if w.p.version >= iexportVersionPosCol {
|
|
+ if w.p.shallow {
|
|
+ w.posV2(pos)
|
|
+ } else if w.p.version >= iexportVersionPosCol {
|
|
w.posV1(pos)
|
|
} else {
|
|
w.posV0(pos)
|
|
}
|
|
}
|
|
|
|
+// posV2 encoding (used only in shallow mode) records positions as
|
|
+// (file, offset), where file is the index in the token.File table
|
|
+// (which records the file name and newline offsets) and offset is a
|
|
+// byte offset. It effectively ignores //line directives.
|
|
+func (w *exportWriter) posV2(pos token.Pos) {
|
|
+ if pos == token.NoPos {
|
|
+ w.uint64(0)
|
|
+ return
|
|
+ }
|
|
+ file := w.p.fset.File(pos) // fset must be non-nil
|
|
+ index, offset := w.p.fileIndexAndOffset(file, pos)
|
|
+ w.uint64(1 + index)
|
|
+ w.uint64(offset)
|
|
+}
|
|
+
|
|
func (w *exportWriter) posV1(pos token.Pos) {
|
|
if w.p.fset == nil {
|
|
w.int64(0)
|
|
@@ -494,7 +661,7 @@ func (w *exportWriter) pkg(pkg *types.Package) {
|
|
w.string(w.exportPath(pkg))
|
|
}
|
|
|
|
-func (w *exportWriter) qualifiedIdent(obj types.Object) {
|
|
+func (w *exportWriter) qualifiedType(obj *types.TypeName) {
|
|
name := w.p.exportName(obj)
|
|
|
|
// Ensure any referenced declarations are written out too.
|
|
@@ -553,11 +720,11 @@ func (w *exportWriter) doTyp(t types.Type, pkg *types.Package) {
|
|
return
|
|
}
|
|
w.startType(definedType)
|
|
- w.qualifiedIdent(t.Obj())
|
|
+ w.qualifiedType(t.Obj())
|
|
|
|
case *typeparams.TypeParam:
|
|
w.startType(typeParamType)
|
|
- w.qualifiedIdent(t.Obj())
|
|
+ w.qualifiedType(t.Obj())
|
|
|
|
case *types.Pointer:
|
|
w.startType(pointerType)
|
|
@@ -599,14 +766,17 @@ func (w *exportWriter) doTyp(t types.Type, pkg *types.Package) {
|
|
|
|
case *types.Struct:
|
|
w.startType(structType)
|
|
- w.setPkg(pkg, true)
|
|
-
|
|
n := t.NumFields()
|
|
+ if n > 0 {
|
|
+ w.setPkg(t.Field(0).Pkg(), true) // qualifying package for field objects
|
|
+ } else {
|
|
+ w.setPkg(pkg, true)
|
|
+ }
|
|
w.uint64(uint64(n))
|
|
for i := 0; i < n; i++ {
|
|
f := t.Field(i)
|
|
w.pos(f.Pos())
|
|
- w.string(f.Name())
|
|
+ w.string(f.Name()) // unexported fields implicitly qualified by prior setPkg
|
|
w.typ(f.Type(), pkg)
|
|
w.bool(f.Anonymous())
|
|
w.string(t.Tag(i)) // note (or tag)
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/iimport.go b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go
|
|
similarity index 86%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/iimport.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/iimport.go
|
|
index 1a33cd5c6cd..c1dd1dc69af 100644
|
|
--- a/vendor/golang.org/x/tools/go/internal/gcimporter/iimport.go
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go
|
|
@@ -50,6 +50,8 @@ const (
|
|
iexportVersionPosCol = 1
|
|
iexportVersionGo1_18 = 2
|
|
iexportVersionGenerics = 2
|
|
+
|
|
+ iexportVersionCurrent = 2
|
|
)
|
|
|
|
type ident struct {
|
|
@@ -82,7 +84,7 @@ const (
|
|
// If the export data version is not recognized or the format is otherwise
|
|
// compromised, an error is returned.
|
|
func IImportData(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string) (int, *types.Package, error) {
|
|
- pkgs, err := iimportCommon(fset, imports, data, false, path)
|
|
+ pkgs, err := iimportCommon(fset, imports, data, false, path, nil)
|
|
if err != nil {
|
|
return 0, nil, err
|
|
}
|
|
@@ -91,11 +93,11 @@ func IImportData(fset *token.FileSet, imports map[string]*types.Package, data []
|
|
|
|
// IImportBundle imports a set of packages from the serialized package bundle.
|
|
func IImportBundle(fset *token.FileSet, imports map[string]*types.Package, data []byte) ([]*types.Package, error) {
|
|
- return iimportCommon(fset, imports, data, true, "")
|
|
+ return iimportCommon(fset, imports, data, true, "", nil)
|
|
}
|
|
|
|
-func iimportCommon(fset *token.FileSet, imports map[string]*types.Package, data []byte, bundle bool, path string) (pkgs []*types.Package, err error) {
|
|
- const currentVersion = 1
|
|
+func iimportCommon(fset *token.FileSet, imports map[string]*types.Package, data []byte, bundle bool, path string, insert InsertType) (pkgs []*types.Package, err error) {
|
|
+ const currentVersion = iexportVersionCurrent
|
|
version := int64(-1)
|
|
if !debug {
|
|
defer func() {
|
|
@@ -132,19 +134,34 @@ func iimportCommon(fset *token.FileSet, imports map[string]*types.Package, data
|
|
}
|
|
|
|
sLen := int64(r.uint64())
|
|
+ var fLen int64
|
|
+ var fileOffset []uint64
|
|
+ if insert != nil {
|
|
+ // Shallow mode uses a different position encoding.
|
|
+ fLen = int64(r.uint64())
|
|
+ fileOffset = make([]uint64, r.uint64())
|
|
+ for i := range fileOffset {
|
|
+ fileOffset[i] = r.uint64()
|
|
+ }
|
|
+ }
|
|
dLen := int64(r.uint64())
|
|
|
|
whence, _ := r.Seek(0, io.SeekCurrent)
|
|
stringData := data[whence : whence+sLen]
|
|
- declData := data[whence+sLen : whence+sLen+dLen]
|
|
- r.Seek(sLen+dLen, io.SeekCurrent)
|
|
+ fileData := data[whence+sLen : whence+sLen+fLen]
|
|
+ declData := data[whence+sLen+fLen : whence+sLen+fLen+dLen]
|
|
+ r.Seek(sLen+fLen+dLen, io.SeekCurrent)
|
|
|
|
p := iimporter{
|
|
version: int(version),
|
|
ipath: path,
|
|
+ insert: insert,
|
|
|
|
stringData: stringData,
|
|
stringCache: make(map[uint64]string),
|
|
+ fileOffset: fileOffset,
|
|
+ fileData: fileData,
|
|
+ fileCache: make([]*token.File, len(fileOffset)),
|
|
pkgCache: make(map[uint64]*types.Package),
|
|
|
|
declData: declData,
|
|
@@ -182,11 +199,18 @@ func iimportCommon(fset *token.FileSet, imports map[string]*types.Package, data
|
|
} else if pkg.Name() != pkgName {
|
|
errorf("conflicting names %s and %s for package %q", pkg.Name(), pkgName, path)
|
|
}
|
|
+ if i == 0 && !bundle {
|
|
+ p.localpkg = pkg
|
|
+ }
|
|
|
|
p.pkgCache[pkgPathOff] = pkg
|
|
|
|
+ // Read index for package.
|
|
nameIndex := make(map[string]uint64)
|
|
- for nSyms := r.uint64(); nSyms > 0; nSyms-- {
|
|
+ nSyms := r.uint64()
|
|
+ // In shallow mode we don't expect an index for other packages.
|
|
+ assert(nSyms == 0 || p.localpkg == pkg || p.insert == nil)
|
|
+ for ; nSyms > 0; nSyms-- {
|
|
name := p.stringAt(r.uint64())
|
|
nameIndex[name] = r.uint64()
|
|
}
|
|
@@ -248,8 +272,14 @@ type iimporter struct {
|
|
version int
|
|
ipath string
|
|
|
|
+ localpkg *types.Package
|
|
+ insert func(pkg *types.Package, name string) // "shallow" mode only
|
|
+
|
|
stringData []byte
|
|
stringCache map[uint64]string
|
|
+ fileOffset []uint64 // fileOffset[i] is offset in fileData for info about file encoded as i
|
|
+ fileData []byte
|
|
+ fileCache []*token.File // memoized decoding of file encoded as i
|
|
pkgCache map[uint64]*types.Package
|
|
|
|
declData []byte
|
|
@@ -288,6 +318,13 @@ func (p *iimporter) doDecl(pkg *types.Package, name string) {
|
|
|
|
off, ok := p.pkgIndex[pkg][name]
|
|
if !ok {
|
|
+ // In "shallow" mode, call back to the application to
|
|
+ // find the object and insert it into the package scope.
|
|
+ if p.insert != nil {
|
|
+ assert(pkg != p.localpkg)
|
|
+ p.insert(pkg, name) // "can't fail"
|
|
+ return
|
|
+ }
|
|
errorf("%v.%v not in index", pkg, name)
|
|
}
|
|
|
|
@@ -312,6 +349,55 @@ func (p *iimporter) stringAt(off uint64) string {
|
|
return s
|
|
}
|
|
|
|
+func (p *iimporter) fileAt(index uint64) *token.File {
|
|
+ file := p.fileCache[index]
|
|
+ if file == nil {
|
|
+ off := p.fileOffset[index]
|
|
+ file = p.decodeFile(intReader{bytes.NewReader(p.fileData[off:]), p.ipath})
|
|
+ p.fileCache[index] = file
|
|
+ }
|
|
+ return file
|
|
+}
|
|
+
|
|
+func (p *iimporter) decodeFile(rd intReader) *token.File {
|
|
+ filename := p.stringAt(rd.uint64())
|
|
+ size := int(rd.uint64())
|
|
+ file := p.fake.fset.AddFile(filename, -1, size)
|
|
+
|
|
+ // SetLines requires a nondecreasing sequence.
|
|
+ // Because it is common for clients to derive the interval
|
|
+ // [start, start+len(name)] from a start position, and we
|
|
+ // want to ensure that the end offset is on the same line,
|
|
+ // we fill in the gaps of the sparse encoding with values
|
|
+ // that strictly increase by the largest possible amount.
|
|
+ // This allows us to avoid having to record the actual end
|
|
+ // offset of each needed line.
|
|
+
|
|
+ lines := make([]int, int(rd.uint64()))
|
|
+ var index, offset int
|
|
+ for i, n := 0, int(rd.uint64()); i < n; i++ {
|
|
+ index += int(rd.uint64())
|
|
+ offset += int(rd.uint64())
|
|
+ lines[index] = offset
|
|
+
|
|
+ // Ensure monotonicity between points.
|
|
+ for j := index - 1; j > 0 && lines[j] == 0; j-- {
|
|
+ lines[j] = lines[j+1] - 1
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Ensure monotonicity after last point.
|
|
+ for j := len(lines) - 1; j > 0 && lines[j] == 0; j-- {
|
|
+ size--
|
|
+ lines[j] = size
|
|
+ }
|
|
+
|
|
+ if !file.SetLines(lines) {
|
|
+ errorf("SetLines failed: %d", lines) // can't happen
|
|
+ }
|
|
+ return file
|
|
+}
|
|
+
|
|
func (p *iimporter) pkgAt(off uint64) *types.Package {
|
|
if pkg, ok := p.pkgCache[off]; ok {
|
|
return pkg
|
|
@@ -622,6 +708,9 @@ func (r *importReader) qualifiedIdent() (*types.Package, string) {
|
|
}
|
|
|
|
func (r *importReader) pos() token.Pos {
|
|
+ if r.p.insert != nil { // shallow mode
|
|
+ return r.posv2()
|
|
+ }
|
|
if r.p.version >= iexportVersionPosCol {
|
|
r.posv1()
|
|
} else {
|
|
@@ -658,6 +747,15 @@ func (r *importReader) posv1() {
|
|
}
|
|
}
|
|
|
|
+func (r *importReader) posv2() token.Pos {
|
|
+ file := r.uint64()
|
|
+ if file == 0 {
|
|
+ return token.NoPos
|
|
+ }
|
|
+ tf := r.p.fileAt(file - 1)
|
|
+ return tf.Pos(int(r.uint64()))
|
|
+}
|
|
+
|
|
func (r *importReader) typ() types.Type {
|
|
return r.p.typAt(r.uint64(), nil)
|
|
}
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/newInterface10.go b/vendor/golang.org/x/tools/internal/gcimporter/newInterface10.go
|
|
similarity index 100%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/newInterface10.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/newInterface10.go
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.go b/vendor/golang.org/x/tools/internal/gcimporter/newInterface11.go
|
|
similarity index 100%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/newInterface11.go
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/support_go117.go b/vendor/golang.org/x/tools/internal/gcimporter/support_go117.go
|
|
similarity index 100%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/support_go117.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/support_go117.go
|
|
diff --git a/vendor/golang.org/x/tools/go/internal/gcimporter/support_go118.go b/vendor/golang.org/x/tools/internal/gcimporter/support_go118.go
|
|
similarity index 62%
|
|
rename from vendor/golang.org/x/tools/go/internal/gcimporter/support_go118.go
|
|
rename to vendor/golang.org/x/tools/internal/gcimporter/support_go118.go
|
|
index a993843230c..edbe6ea7041 100644
|
|
--- a/vendor/golang.org/x/tools/go/internal/gcimporter/support_go118.go
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/support_go118.go
|
|
@@ -21,3 +21,17 @@ func additionalPredeclared() []types.Type {
|
|
types.Universe.Lookup("any").Type(),
|
|
}
|
|
}
|
|
+
|
|
+// See cmd/compile/internal/types.SplitVargenSuffix.
|
|
+func splitVargenSuffix(name string) (base, suffix string) {
|
|
+ i := len(name)
|
|
+ for i > 0 && name[i-1] >= '0' && name[i-1] <= '9' {
|
|
+ i--
|
|
+ }
|
|
+ const dot = "·"
|
|
+ if i >= len(dot) && name[i-len(dot):i] == dot {
|
|
+ i -= len(dot)
|
|
+ return name[:i], name[i:]
|
|
+ }
|
|
+ return name, ""
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/gcimporter/unified_no.go b/vendor/golang.org/x/tools/internal/gcimporter/unified_no.go
|
|
new file mode 100644
|
|
index 00000000000..286bf445483
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/unified_no.go
|
|
@@ -0,0 +1,10 @@
|
|
+// Copyright 2022 The Go Authors. 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 !(go1.18 && goexperiment.unified)
|
|
+// +build !go1.18 !goexperiment.unified
|
|
+
|
|
+package gcimporter
|
|
+
|
|
+const unifiedIR = false
|
|
diff --git a/vendor/golang.org/x/tools/internal/gcimporter/unified_yes.go b/vendor/golang.org/x/tools/internal/gcimporter/unified_yes.go
|
|
new file mode 100644
|
|
index 00000000000..b5d69ffbe68
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/unified_yes.go
|
|
@@ -0,0 +1,10 @@
|
|
+// Copyright 2022 The Go Authors. 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 go1.18 && goexperiment.unified
|
|
+// +build go1.18,goexperiment.unified
|
|
+
|
|
+package gcimporter
|
|
+
|
|
+const unifiedIR = true
|
|
diff --git a/vendor/golang.org/x/tools/internal/gcimporter/ureader_no.go b/vendor/golang.org/x/tools/internal/gcimporter/ureader_no.go
|
|
new file mode 100644
|
|
index 00000000000..8eb20729c2a
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/ureader_no.go
|
|
@@ -0,0 +1,19 @@
|
|
+// Copyright 2022 The Go Authors. 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 !go1.18
|
|
+// +build !go1.18
|
|
+
|
|
+package gcimporter
|
|
+
|
|
+import (
|
|
+ "fmt"
|
|
+ "go/token"
|
|
+ "go/types"
|
|
+)
|
|
+
|
|
+func UImportData(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string) (_ int, pkg *types.Package, err error) {
|
|
+ err = fmt.Errorf("go/tools compiled with a Go version earlier than 1.18 cannot read unified IR export data")
|
|
+ return
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go
|
|
new file mode 100644
|
|
index 00000000000..b285a11ce25
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go
|
|
@@ -0,0 +1,738 @@
|
|
+// Copyright 2021 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+// Derived from go/internal/gcimporter/ureader.go
|
|
+
|
|
+//go:build go1.18
|
|
+// +build go1.18
|
|
+
|
|
+package gcimporter
|
|
+
|
|
+import (
|
|
+ "go/token"
|
|
+ "go/types"
|
|
+ "strings"
|
|
+
|
|
+ "golang.org/x/tools/internal/pkgbits"
|
|
+)
|
|
+
|
|
+// A pkgReader holds the shared state for reading a unified IR package
|
|
+// description.
|
|
+type pkgReader struct {
|
|
+ pkgbits.PkgDecoder
|
|
+
|
|
+ fake fakeFileSet
|
|
+
|
|
+ ctxt *types.Context
|
|
+ imports map[string]*types.Package // previously imported packages, indexed by path
|
|
+
|
|
+ // lazily initialized arrays corresponding to the unified IR
|
|
+ // PosBase, Pkg, and Type sections, respectively.
|
|
+ posBases []string // position bases (i.e., file names)
|
|
+ pkgs []*types.Package
|
|
+ typs []types.Type
|
|
+
|
|
+ // laterFns holds functions that need to be invoked at the end of
|
|
+ // import reading.
|
|
+ laterFns []func()
|
|
+ // laterFors is used in case of 'type A B' to ensure that B is processed before A.
|
|
+ laterFors map[types.Type]int
|
|
+
|
|
+ // ifaces holds a list of constructed Interfaces, which need to have
|
|
+ // Complete called after importing is done.
|
|
+ ifaces []*types.Interface
|
|
+}
|
|
+
|
|
+// later adds a function to be invoked at the end of import reading.
|
|
+func (pr *pkgReader) later(fn func()) {
|
|
+ pr.laterFns = append(pr.laterFns, fn)
|
|
+}
|
|
+
|
|
+// See cmd/compile/internal/noder.derivedInfo.
|
|
+type derivedInfo struct {
|
|
+ idx pkgbits.Index
|
|
+ needed bool
|
|
+}
|
|
+
|
|
+// See cmd/compile/internal/noder.typeInfo.
|
|
+type typeInfo struct {
|
|
+ idx pkgbits.Index
|
|
+ derived bool
|
|
+}
|
|
+
|
|
+func UImportData(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string) (_ int, pkg *types.Package, err error) {
|
|
+ s := string(data)
|
|
+ s = s[:strings.LastIndex(s, "\n$$\n")]
|
|
+ input := pkgbits.NewPkgDecoder(path, s)
|
|
+ pkg = readUnifiedPackage(fset, nil, imports, input)
|
|
+ return
|
|
+}
|
|
+
|
|
+// laterFor adds a function to be invoked at the end of import reading, and records the type that function is finishing.
|
|
+func (pr *pkgReader) laterFor(t types.Type, fn func()) {
|
|
+ if pr.laterFors == nil {
|
|
+ pr.laterFors = make(map[types.Type]int)
|
|
+ }
|
|
+ pr.laterFors[t] = len(pr.laterFns)
|
|
+ pr.laterFns = append(pr.laterFns, fn)
|
|
+}
|
|
+
|
|
+// readUnifiedPackage reads a package description from the given
|
|
+// unified IR export data decoder.
|
|
+func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[string]*types.Package, input pkgbits.PkgDecoder) *types.Package {
|
|
+ pr := pkgReader{
|
|
+ PkgDecoder: input,
|
|
+
|
|
+ fake: fakeFileSet{
|
|
+ fset: fset,
|
|
+ files: make(map[string]*fileInfo),
|
|
+ },
|
|
+
|
|
+ ctxt: ctxt,
|
|
+ imports: imports,
|
|
+
|
|
+ posBases: make([]string, input.NumElems(pkgbits.RelocPosBase)),
|
|
+ pkgs: make([]*types.Package, input.NumElems(pkgbits.RelocPkg)),
|
|
+ typs: make([]types.Type, input.NumElems(pkgbits.RelocType)),
|
|
+ }
|
|
+ defer pr.fake.setLines()
|
|
+
|
|
+ r := pr.newReader(pkgbits.RelocMeta, pkgbits.PublicRootIdx, pkgbits.SyncPublic)
|
|
+ pkg := r.pkg()
|
|
+ r.Bool() // has init
|
|
+
|
|
+ for i, n := 0, r.Len(); i < n; i++ {
|
|
+ // As if r.obj(), but avoiding the Scope.Lookup call,
|
|
+ // to avoid eager loading of imports.
|
|
+ r.Sync(pkgbits.SyncObject)
|
|
+ assert(!r.Bool())
|
|
+ r.p.objIdx(r.Reloc(pkgbits.RelocObj))
|
|
+ assert(r.Len() == 0)
|
|
+ }
|
|
+
|
|
+ r.Sync(pkgbits.SyncEOF)
|
|
+
|
|
+ for _, fn := range pr.laterFns {
|
|
+ fn()
|
|
+ }
|
|
+
|
|
+ for _, iface := range pr.ifaces {
|
|
+ iface.Complete()
|
|
+ }
|
|
+
|
|
+ pkg.MarkComplete()
|
|
+ return pkg
|
|
+}
|
|
+
|
|
+// A reader holds the state for reading a single unified IR element
|
|
+// within a package.
|
|
+type reader struct {
|
|
+ pkgbits.Decoder
|
|
+
|
|
+ p *pkgReader
|
|
+
|
|
+ dict *readerDict
|
|
+}
|
|
+
|
|
+// A readerDict holds the state for type parameters that parameterize
|
|
+// the current unified IR element.
|
|
+type readerDict struct {
|
|
+ // bounds is a slice of typeInfos corresponding to the underlying
|
|
+ // bounds of the element's type parameters.
|
|
+ bounds []typeInfo
|
|
+
|
|
+ // tparams is a slice of the constructed TypeParams for the element.
|
|
+ tparams []*types.TypeParam
|
|
+
|
|
+ // devived is a slice of types derived from tparams, which may be
|
|
+ // instantiated while reading the current element.
|
|
+ derived []derivedInfo
|
|
+ derivedTypes []types.Type // lazily instantiated from derived
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) newReader(k pkgbits.RelocKind, idx pkgbits.Index, marker pkgbits.SyncMarker) *reader {
|
|
+ return &reader{
|
|
+ Decoder: pr.NewDecoder(k, idx, marker),
|
|
+ p: pr,
|
|
+ }
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) tempReader(k pkgbits.RelocKind, idx pkgbits.Index, marker pkgbits.SyncMarker) *reader {
|
|
+ return &reader{
|
|
+ Decoder: pr.TempDecoder(k, idx, marker),
|
|
+ p: pr,
|
|
+ }
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) retireReader(r *reader) {
|
|
+ pr.RetireDecoder(&r.Decoder)
|
|
+}
|
|
+
|
|
+// @@@ Positions
|
|
+
|
|
+func (r *reader) pos() token.Pos {
|
|
+ r.Sync(pkgbits.SyncPos)
|
|
+ if !r.Bool() {
|
|
+ return token.NoPos
|
|
+ }
|
|
+
|
|
+ // TODO(mdempsky): Delta encoding.
|
|
+ posBase := r.posBase()
|
|
+ line := r.Uint()
|
|
+ col := r.Uint()
|
|
+ return r.p.fake.pos(posBase, int(line), int(col))
|
|
+}
|
|
+
|
|
+func (r *reader) posBase() string {
|
|
+ return r.p.posBaseIdx(r.Reloc(pkgbits.RelocPosBase))
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) posBaseIdx(idx pkgbits.Index) string {
|
|
+ if b := pr.posBases[idx]; b != "" {
|
|
+ return b
|
|
+ }
|
|
+
|
|
+ var filename string
|
|
+ {
|
|
+ r := pr.tempReader(pkgbits.RelocPosBase, idx, pkgbits.SyncPosBase)
|
|
+
|
|
+ // Within types2, position bases have a lot more details (e.g.,
|
|
+ // keeping track of where //line directives appeared exactly).
|
|
+ //
|
|
+ // For go/types, we just track the file name.
|
|
+
|
|
+ filename = r.String()
|
|
+
|
|
+ if r.Bool() { // file base
|
|
+ // Was: "b = token.NewTrimmedFileBase(filename, true)"
|
|
+ } else { // line base
|
|
+ pos := r.pos()
|
|
+ line := r.Uint()
|
|
+ col := r.Uint()
|
|
+
|
|
+ // Was: "b = token.NewLineBase(pos, filename, true, line, col)"
|
|
+ _, _, _ = pos, line, col
|
|
+ }
|
|
+ pr.retireReader(r)
|
|
+ }
|
|
+ b := filename
|
|
+ pr.posBases[idx] = b
|
|
+ return b
|
|
+}
|
|
+
|
|
+// @@@ Packages
|
|
+
|
|
+func (r *reader) pkg() *types.Package {
|
|
+ r.Sync(pkgbits.SyncPkg)
|
|
+ return r.p.pkgIdx(r.Reloc(pkgbits.RelocPkg))
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) pkgIdx(idx pkgbits.Index) *types.Package {
|
|
+ // TODO(mdempsky): Consider using some non-nil pointer to indicate
|
|
+ // the universe scope, so we don't need to keep re-reading it.
|
|
+ if pkg := pr.pkgs[idx]; pkg != nil {
|
|
+ return pkg
|
|
+ }
|
|
+
|
|
+ pkg := pr.newReader(pkgbits.RelocPkg, idx, pkgbits.SyncPkgDef).doPkg()
|
|
+ pr.pkgs[idx] = pkg
|
|
+ return pkg
|
|
+}
|
|
+
|
|
+func (r *reader) doPkg() *types.Package {
|
|
+ path := r.String()
|
|
+ switch path {
|
|
+ case "":
|
|
+ path = r.p.PkgPath()
|
|
+ case "builtin":
|
|
+ return nil // universe
|
|
+ case "unsafe":
|
|
+ return types.Unsafe
|
|
+ }
|
|
+
|
|
+ if pkg := r.p.imports[path]; pkg != nil {
|
|
+ return pkg
|
|
+ }
|
|
+
|
|
+ name := r.String()
|
|
+
|
|
+ pkg := types.NewPackage(path, name)
|
|
+ r.p.imports[path] = pkg
|
|
+
|
|
+ imports := make([]*types.Package, r.Len())
|
|
+ for i := range imports {
|
|
+ imports[i] = r.pkg()
|
|
+ }
|
|
+ pkg.SetImports(flattenImports(imports))
|
|
+
|
|
+ return pkg
|
|
+}
|
|
+
|
|
+// flattenImports returns the transitive closure of all imported
|
|
+// packages rooted from pkgs.
|
|
+func flattenImports(pkgs []*types.Package) []*types.Package {
|
|
+ var res []*types.Package
|
|
+ seen := make(map[*types.Package]struct{})
|
|
+ for _, pkg := range pkgs {
|
|
+ if _, ok := seen[pkg]; ok {
|
|
+ continue
|
|
+ }
|
|
+ seen[pkg] = struct{}{}
|
|
+ res = append(res, pkg)
|
|
+
|
|
+ // pkg.Imports() is already flattened.
|
|
+ for _, pkg := range pkg.Imports() {
|
|
+ if _, ok := seen[pkg]; ok {
|
|
+ continue
|
|
+ }
|
|
+ seen[pkg] = struct{}{}
|
|
+ res = append(res, pkg)
|
|
+ }
|
|
+ }
|
|
+ return res
|
|
+}
|
|
+
|
|
+// @@@ Types
|
|
+
|
|
+func (r *reader) typ() types.Type {
|
|
+ return r.p.typIdx(r.typInfo(), r.dict)
|
|
+}
|
|
+
|
|
+func (r *reader) typInfo() typeInfo {
|
|
+ r.Sync(pkgbits.SyncType)
|
|
+ if r.Bool() {
|
|
+ return typeInfo{idx: pkgbits.Index(r.Len()), derived: true}
|
|
+ }
|
|
+ return typeInfo{idx: r.Reloc(pkgbits.RelocType), derived: false}
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) typIdx(info typeInfo, dict *readerDict) types.Type {
|
|
+ idx := info.idx
|
|
+ var where *types.Type
|
|
+ if info.derived {
|
|
+ where = &dict.derivedTypes[idx]
|
|
+ idx = dict.derived[idx].idx
|
|
+ } else {
|
|
+ where = &pr.typs[idx]
|
|
+ }
|
|
+
|
|
+ if typ := *where; typ != nil {
|
|
+ return typ
|
|
+ }
|
|
+
|
|
+ var typ types.Type
|
|
+ {
|
|
+ r := pr.tempReader(pkgbits.RelocType, idx, pkgbits.SyncTypeIdx)
|
|
+ r.dict = dict
|
|
+
|
|
+ typ = r.doTyp()
|
|
+ assert(typ != nil)
|
|
+ pr.retireReader(r)
|
|
+ }
|
|
+ // See comment in pkgReader.typIdx explaining how this happens.
|
|
+ if prev := *where; prev != nil {
|
|
+ return prev
|
|
+ }
|
|
+
|
|
+ *where = typ
|
|
+ return typ
|
|
+}
|
|
+
|
|
+func (r *reader) doTyp() (res types.Type) {
|
|
+ switch tag := pkgbits.CodeType(r.Code(pkgbits.SyncType)); tag {
|
|
+ default:
|
|
+ errorf("unhandled type tag: %v", tag)
|
|
+ panic("unreachable")
|
|
+
|
|
+ case pkgbits.TypeBasic:
|
|
+ return types.Typ[r.Len()]
|
|
+
|
|
+ case pkgbits.TypeNamed:
|
|
+ obj, targs := r.obj()
|
|
+ name := obj.(*types.TypeName)
|
|
+ if len(targs) != 0 {
|
|
+ t, _ := types.Instantiate(r.p.ctxt, name.Type(), targs, false)
|
|
+ return t
|
|
+ }
|
|
+ return name.Type()
|
|
+
|
|
+ case pkgbits.TypeTypeParam:
|
|
+ return r.dict.tparams[r.Len()]
|
|
+
|
|
+ case pkgbits.TypeArray:
|
|
+ len := int64(r.Uint64())
|
|
+ return types.NewArray(r.typ(), len)
|
|
+ case pkgbits.TypeChan:
|
|
+ dir := types.ChanDir(r.Len())
|
|
+ return types.NewChan(dir, r.typ())
|
|
+ case pkgbits.TypeMap:
|
|
+ return types.NewMap(r.typ(), r.typ())
|
|
+ case pkgbits.TypePointer:
|
|
+ return types.NewPointer(r.typ())
|
|
+ case pkgbits.TypeSignature:
|
|
+ return r.signature(nil, nil, nil)
|
|
+ case pkgbits.TypeSlice:
|
|
+ return types.NewSlice(r.typ())
|
|
+ case pkgbits.TypeStruct:
|
|
+ return r.structType()
|
|
+ case pkgbits.TypeInterface:
|
|
+ return r.interfaceType()
|
|
+ case pkgbits.TypeUnion:
|
|
+ return r.unionType()
|
|
+ }
|
|
+}
|
|
+
|
|
+func (r *reader) structType() *types.Struct {
|
|
+ fields := make([]*types.Var, r.Len())
|
|
+ var tags []string
|
|
+ for i := range fields {
|
|
+ pos := r.pos()
|
|
+ pkg, name := r.selector()
|
|
+ ftyp := r.typ()
|
|
+ tag := r.String()
|
|
+ embedded := r.Bool()
|
|
+
|
|
+ fields[i] = types.NewField(pos, pkg, name, ftyp, embedded)
|
|
+ if tag != "" {
|
|
+ for len(tags) < i {
|
|
+ tags = append(tags, "")
|
|
+ }
|
|
+ tags = append(tags, tag)
|
|
+ }
|
|
+ }
|
|
+ return types.NewStruct(fields, tags)
|
|
+}
|
|
+
|
|
+func (r *reader) unionType() *types.Union {
|
|
+ terms := make([]*types.Term, r.Len())
|
|
+ for i := range terms {
|
|
+ terms[i] = types.NewTerm(r.Bool(), r.typ())
|
|
+ }
|
|
+ return types.NewUnion(terms)
|
|
+}
|
|
+
|
|
+func (r *reader) interfaceType() *types.Interface {
|
|
+ methods := make([]*types.Func, r.Len())
|
|
+ embeddeds := make([]types.Type, r.Len())
|
|
+ implicit := len(methods) == 0 && len(embeddeds) == 1 && r.Bool()
|
|
+
|
|
+ for i := range methods {
|
|
+ pos := r.pos()
|
|
+ pkg, name := r.selector()
|
|
+ mtyp := r.signature(nil, nil, nil)
|
|
+ methods[i] = types.NewFunc(pos, pkg, name, mtyp)
|
|
+ }
|
|
+
|
|
+ for i := range embeddeds {
|
|
+ embeddeds[i] = r.typ()
|
|
+ }
|
|
+
|
|
+ iface := types.NewInterfaceType(methods, embeddeds)
|
|
+ if implicit {
|
|
+ iface.MarkImplicit()
|
|
+ }
|
|
+
|
|
+ // We need to call iface.Complete(), but if there are any embedded
|
|
+ // defined types, then we may not have set their underlying
|
|
+ // interface type yet. So we need to defer calling Complete until
|
|
+ // after we've called SetUnderlying everywhere.
|
|
+ //
|
|
+ // TODO(mdempsky): After CL 424876 lands, it should be safe to call
|
|
+ // iface.Complete() immediately.
|
|
+ r.p.ifaces = append(r.p.ifaces, iface)
|
|
+
|
|
+ return iface
|
|
+}
|
|
+
|
|
+func (r *reader) signature(recv *types.Var, rtparams, tparams []*types.TypeParam) *types.Signature {
|
|
+ r.Sync(pkgbits.SyncSignature)
|
|
+
|
|
+ params := r.params()
|
|
+ results := r.params()
|
|
+ variadic := r.Bool()
|
|
+
|
|
+ return types.NewSignatureType(recv, rtparams, tparams, params, results, variadic)
|
|
+}
|
|
+
|
|
+func (r *reader) params() *types.Tuple {
|
|
+ r.Sync(pkgbits.SyncParams)
|
|
+
|
|
+ params := make([]*types.Var, r.Len())
|
|
+ for i := range params {
|
|
+ params[i] = r.param()
|
|
+ }
|
|
+
|
|
+ return types.NewTuple(params...)
|
|
+}
|
|
+
|
|
+func (r *reader) param() *types.Var {
|
|
+ r.Sync(pkgbits.SyncParam)
|
|
+
|
|
+ pos := r.pos()
|
|
+ pkg, name := r.localIdent()
|
|
+ typ := r.typ()
|
|
+
|
|
+ return types.NewParam(pos, pkg, name, typ)
|
|
+}
|
|
+
|
|
+// @@@ Objects
|
|
+
|
|
+func (r *reader) obj() (types.Object, []types.Type) {
|
|
+ r.Sync(pkgbits.SyncObject)
|
|
+
|
|
+ assert(!r.Bool())
|
|
+
|
|
+ pkg, name := r.p.objIdx(r.Reloc(pkgbits.RelocObj))
|
|
+ obj := pkgScope(pkg).Lookup(name)
|
|
+
|
|
+ targs := make([]types.Type, r.Len())
|
|
+ for i := range targs {
|
|
+ targs[i] = r.typ()
|
|
+ }
|
|
+
|
|
+ return obj, targs
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) objIdx(idx pkgbits.Index) (*types.Package, string) {
|
|
+
|
|
+ var objPkg *types.Package
|
|
+ var objName string
|
|
+ var tag pkgbits.CodeObj
|
|
+ {
|
|
+ rname := pr.tempReader(pkgbits.RelocName, idx, pkgbits.SyncObject1)
|
|
+
|
|
+ objPkg, objName = rname.qualifiedIdent()
|
|
+ assert(objName != "")
|
|
+
|
|
+ tag = pkgbits.CodeObj(rname.Code(pkgbits.SyncCodeObj))
|
|
+ pr.retireReader(rname)
|
|
+ }
|
|
+
|
|
+ if tag == pkgbits.ObjStub {
|
|
+ assert(objPkg == nil || objPkg == types.Unsafe)
|
|
+ return objPkg, objName
|
|
+ }
|
|
+
|
|
+ // Ignore local types promoted to global scope (#55110).
|
|
+ if _, suffix := splitVargenSuffix(objName); suffix != "" {
|
|
+ return objPkg, objName
|
|
+ }
|
|
+
|
|
+ if objPkg.Scope().Lookup(objName) == nil {
|
|
+ dict := pr.objDictIdx(idx)
|
|
+
|
|
+ r := pr.newReader(pkgbits.RelocObj, idx, pkgbits.SyncObject1)
|
|
+ r.dict = dict
|
|
+
|
|
+ declare := func(obj types.Object) {
|
|
+ objPkg.Scope().Insert(obj)
|
|
+ }
|
|
+
|
|
+ switch tag {
|
|
+ default:
|
|
+ panic("weird")
|
|
+
|
|
+ case pkgbits.ObjAlias:
|
|
+ pos := r.pos()
|
|
+ typ := r.typ()
|
|
+ declare(types.NewTypeName(pos, objPkg, objName, typ))
|
|
+
|
|
+ case pkgbits.ObjConst:
|
|
+ pos := r.pos()
|
|
+ typ := r.typ()
|
|
+ val := r.Value()
|
|
+ declare(types.NewConst(pos, objPkg, objName, typ, val))
|
|
+
|
|
+ case pkgbits.ObjFunc:
|
|
+ pos := r.pos()
|
|
+ tparams := r.typeParamNames()
|
|
+ sig := r.signature(nil, nil, tparams)
|
|
+ declare(types.NewFunc(pos, objPkg, objName, sig))
|
|
+
|
|
+ case pkgbits.ObjType:
|
|
+ pos := r.pos()
|
|
+
|
|
+ obj := types.NewTypeName(pos, objPkg, objName, nil)
|
|
+ named := types.NewNamed(obj, nil, nil)
|
|
+ declare(obj)
|
|
+
|
|
+ named.SetTypeParams(r.typeParamNames())
|
|
+
|
|
+ setUnderlying := func(underlying types.Type) {
|
|
+ // If the underlying type is an interface, we need to
|
|
+ // duplicate its methods so we can replace the receiver
|
|
+ // parameter's type (#49906).
|
|
+ if iface, ok := underlying.(*types.Interface); ok && iface.NumExplicitMethods() != 0 {
|
|
+ methods := make([]*types.Func, iface.NumExplicitMethods())
|
|
+ for i := range methods {
|
|
+ fn := iface.ExplicitMethod(i)
|
|
+ sig := fn.Type().(*types.Signature)
|
|
+
|
|
+ recv := types.NewVar(fn.Pos(), fn.Pkg(), "", named)
|
|
+ methods[i] = types.NewFunc(fn.Pos(), fn.Pkg(), fn.Name(), types.NewSignature(recv, sig.Params(), sig.Results(), sig.Variadic()))
|
|
+ }
|
|
+
|
|
+ embeds := make([]types.Type, iface.NumEmbeddeds())
|
|
+ for i := range embeds {
|
|
+ embeds[i] = iface.EmbeddedType(i)
|
|
+ }
|
|
+
|
|
+ newIface := types.NewInterfaceType(methods, embeds)
|
|
+ r.p.ifaces = append(r.p.ifaces, newIface)
|
|
+ underlying = newIface
|
|
+ }
|
|
+
|
|
+ named.SetUnderlying(underlying)
|
|
+ }
|
|
+
|
|
+ // Since go.dev/cl/455279, we can assume rhs.Underlying() will
|
|
+ // always be non-nil. However, to temporarily support users of
|
|
+ // older snapshot releases, we continue to fallback to the old
|
|
+ // behavior for now.
|
|
+ //
|
|
+ // TODO(mdempsky): Remove fallback code and simplify after
|
|
+ // allowing time for snapshot users to upgrade.
|
|
+ rhs := r.typ()
|
|
+ if underlying := rhs.Underlying(); underlying != nil {
|
|
+ setUnderlying(underlying)
|
|
+ } else {
|
|
+ pk := r.p
|
|
+ pk.laterFor(named, func() {
|
|
+ // First be sure that the rhs is initialized, if it needs to be initialized.
|
|
+ delete(pk.laterFors, named) // prevent cycles
|
|
+ if i, ok := pk.laterFors[rhs]; ok {
|
|
+ f := pk.laterFns[i]
|
|
+ pk.laterFns[i] = func() {} // function is running now, so replace it with a no-op
|
|
+ f() // initialize RHS
|
|
+ }
|
|
+ setUnderlying(rhs.Underlying())
|
|
+ })
|
|
+ }
|
|
+
|
|
+ for i, n := 0, r.Len(); i < n; i++ {
|
|
+ named.AddMethod(r.method())
|
|
+ }
|
|
+
|
|
+ case pkgbits.ObjVar:
|
|
+ pos := r.pos()
|
|
+ typ := r.typ()
|
|
+ declare(types.NewVar(pos, objPkg, objName, typ))
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return objPkg, objName
|
|
+}
|
|
+
|
|
+func (pr *pkgReader) objDictIdx(idx pkgbits.Index) *readerDict {
|
|
+
|
|
+ var dict readerDict
|
|
+
|
|
+ {
|
|
+ r := pr.tempReader(pkgbits.RelocObjDict, idx, pkgbits.SyncObject1)
|
|
+ if implicits := r.Len(); implicits != 0 {
|
|
+ errorf("unexpected object with %v implicit type parameter(s)", implicits)
|
|
+ }
|
|
+
|
|
+ dict.bounds = make([]typeInfo, r.Len())
|
|
+ for i := range dict.bounds {
|
|
+ dict.bounds[i] = r.typInfo()
|
|
+ }
|
|
+
|
|
+ dict.derived = make([]derivedInfo, r.Len())
|
|
+ dict.derivedTypes = make([]types.Type, len(dict.derived))
|
|
+ for i := range dict.derived {
|
|
+ dict.derived[i] = derivedInfo{r.Reloc(pkgbits.RelocType), r.Bool()}
|
|
+ }
|
|
+
|
|
+ pr.retireReader(r)
|
|
+ }
|
|
+ // function references follow, but reader doesn't need those
|
|
+
|
|
+ return &dict
|
|
+}
|
|
+
|
|
+func (r *reader) typeParamNames() []*types.TypeParam {
|
|
+ r.Sync(pkgbits.SyncTypeParamNames)
|
|
+
|
|
+ // Note: This code assumes it only processes objects without
|
|
+ // implement type parameters. This is currently fine, because
|
|
+ // reader is only used to read in exported declarations, which are
|
|
+ // always package scoped.
|
|
+
|
|
+ if len(r.dict.bounds) == 0 {
|
|
+ return nil
|
|
+ }
|
|
+
|
|
+ // Careful: Type parameter lists may have cycles. To allow for this,
|
|
+ // we construct the type parameter list in two passes: first we
|
|
+ // create all the TypeNames and TypeParams, then we construct and
|
|
+ // set the bound type.
|
|
+
|
|
+ r.dict.tparams = make([]*types.TypeParam, len(r.dict.bounds))
|
|
+ for i := range r.dict.bounds {
|
|
+ pos := r.pos()
|
|
+ pkg, name := r.localIdent()
|
|
+
|
|
+ tname := types.NewTypeName(pos, pkg, name, nil)
|
|
+ r.dict.tparams[i] = types.NewTypeParam(tname, nil)
|
|
+ }
|
|
+
|
|
+ typs := make([]types.Type, len(r.dict.bounds))
|
|
+ for i, bound := range r.dict.bounds {
|
|
+ typs[i] = r.p.typIdx(bound, r.dict)
|
|
+ }
|
|
+
|
|
+ // TODO(mdempsky): This is subtle, elaborate further.
|
|
+ //
|
|
+ // We have to save tparams outside of the closure, because
|
|
+ // typeParamNames() can be called multiple times with the same
|
|
+ // dictionary instance.
|
|
+ //
|
|
+ // Also, this needs to happen later to make sure SetUnderlying has
|
|
+ // been called.
|
|
+ //
|
|
+ // TODO(mdempsky): Is it safe to have a single "later" slice or do
|
|
+ // we need to have multiple passes? See comments on CL 386002 and
|
|
+ // go.dev/issue/52104.
|
|
+ tparams := r.dict.tparams
|
|
+ r.p.later(func() {
|
|
+ for i, typ := range typs {
|
|
+ tparams[i].SetConstraint(typ)
|
|
+ }
|
|
+ })
|
|
+
|
|
+ return r.dict.tparams
|
|
+}
|
|
+
|
|
+func (r *reader) method() *types.Func {
|
|
+ r.Sync(pkgbits.SyncMethod)
|
|
+ pos := r.pos()
|
|
+ pkg, name := r.selector()
|
|
+
|
|
+ rparams := r.typeParamNames()
|
|
+ sig := r.signature(r.param(), rparams, nil)
|
|
+
|
|
+ _ = r.pos() // TODO(mdempsky): Remove; this is a hacker for linker.go.
|
|
+ return types.NewFunc(pos, pkg, name, sig)
|
|
+}
|
|
+
|
|
+func (r *reader) qualifiedIdent() (*types.Package, string) { return r.ident(pkgbits.SyncSym) }
|
|
+func (r *reader) localIdent() (*types.Package, string) { return r.ident(pkgbits.SyncLocalIdent) }
|
|
+func (r *reader) selector() (*types.Package, string) { return r.ident(pkgbits.SyncSelector) }
|
|
+
|
|
+func (r *reader) ident(marker pkgbits.SyncMarker) (*types.Package, string) {
|
|
+ r.Sync(marker)
|
|
+ return r.pkg(), r.String()
|
|
+}
|
|
+
|
|
+// pkgScope returns pkg.Scope().
|
|
+// If pkg is nil, it returns types.Universe instead.
|
|
+//
|
|
+// TODO(mdempsky): Remove after x/tools can depend on Go 1.19.
|
|
+func pkgScope(pkg *types.Package) *types.Scope {
|
|
+ if pkg != nil {
|
|
+ return pkg.Scope()
|
|
+ }
|
|
+ return types.Universe
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/gocommand/invoke.go b/vendor/golang.org/x/tools/internal/gocommand/invoke.go
|
|
index f7533683465..1cd5819f52a 100644
|
|
--- a/vendor/golang.org/x/tools/internal/gocommand/invoke.go
|
|
+++ b/vendor/golang.org/x/tools/internal/gocommand/invoke.go
|
|
@@ -10,8 +10,10 @@ import (
|
|
"context"
|
|
"fmt"
|
|
"io"
|
|
+ "log"
|
|
"os"
|
|
"regexp"
|
|
+ "runtime"
|
|
"strconv"
|
|
"strings"
|
|
"sync"
|
|
@@ -232,6 +234,12 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
|
|
return runCmdContext(ctx, cmd)
|
|
}
|
|
|
|
+// DebugHangingGoCommands may be set by tests to enable additional
|
|
+// instrumentation (including panics) for debugging hanging Go commands.
|
|
+//
|
|
+// See golang/go#54461 for details.
|
|
+var DebugHangingGoCommands = false
|
|
+
|
|
// runCmdContext is like exec.CommandContext except it sends os.Interrupt
|
|
// before os.Kill.
|
|
func runCmdContext(ctx context.Context, cmd *exec.Cmd) error {
|
|
@@ -243,11 +251,24 @@ func runCmdContext(ctx context.Context, cmd *exec.Cmd) error {
|
|
resChan <- cmd.Wait()
|
|
}()
|
|
|
|
- select {
|
|
- case err := <-resChan:
|
|
- return err
|
|
- case <-ctx.Done():
|
|
+ // If we're interested in debugging hanging Go commands, stop waiting after a
|
|
+ // minute and panic with interesting information.
|
|
+ if DebugHangingGoCommands {
|
|
+ select {
|
|
+ case err := <-resChan:
|
|
+ return err
|
|
+ case <-time.After(1 * time.Minute):
|
|
+ HandleHangingGoCommand(cmd.Process)
|
|
+ case <-ctx.Done():
|
|
+ }
|
|
+ } else {
|
|
+ select {
|
|
+ case err := <-resChan:
|
|
+ return err
|
|
+ case <-ctx.Done():
|
|
+ }
|
|
}
|
|
+
|
|
// Cancelled. Interrupt and see if it ends voluntarily.
|
|
cmd.Process.Signal(os.Interrupt)
|
|
select {
|
|
@@ -255,11 +276,63 @@ func runCmdContext(ctx context.Context, cmd *exec.Cmd) error {
|
|
return err
|
|
case <-time.After(time.Second):
|
|
}
|
|
+
|
|
// Didn't shut down in response to interrupt. Kill it hard.
|
|
- cmd.Process.Kill()
|
|
+ // TODO(rfindley): per advice from bcmills@, it may be better to send SIGQUIT
|
|
+ // on certain platforms, such as unix.
|
|
+ if err := cmd.Process.Kill(); err != nil && DebugHangingGoCommands {
|
|
+ // Don't panic here as this reliably fails on windows with EINVAL.
|
|
+ log.Printf("error killing the Go command: %v", err)
|
|
+ }
|
|
+
|
|
+ // See above: don't wait indefinitely if we're debugging hanging Go commands.
|
|
+ if DebugHangingGoCommands {
|
|
+ select {
|
|
+ case err := <-resChan:
|
|
+ return err
|
|
+ case <-time.After(10 * time.Second): // a shorter wait as resChan should return quickly following Kill
|
|
+ HandleHangingGoCommand(cmd.Process)
|
|
+ }
|
|
+ }
|
|
return <-resChan
|
|
}
|
|
|
|
+func HandleHangingGoCommand(proc *os.Process) {
|
|
+ switch runtime.GOOS {
|
|
+ case "linux", "darwin", "freebsd", "netbsd":
|
|
+ fmt.Fprintln(os.Stderr, `DETECTED A HANGING GO COMMAND
|
|
+
|
|
+The gopls test runner has detected a hanging go command. In order to debug
|
|
+this, the output of ps and lsof/fstat is printed below.
|
|
+
|
|
+See golang/go#54461 for more details.`)
|
|
+
|
|
+ fmt.Fprintln(os.Stderr, "\nps axo ppid,pid,command:")
|
|
+ fmt.Fprintln(os.Stderr, "-------------------------")
|
|
+ psCmd := exec.Command("ps", "axo", "ppid,pid,command")
|
|
+ psCmd.Stdout = os.Stderr
|
|
+ psCmd.Stderr = os.Stderr
|
|
+ if err := psCmd.Run(); err != nil {
|
|
+ panic(fmt.Sprintf("running ps: %v", err))
|
|
+ }
|
|
+
|
|
+ listFiles := "lsof"
|
|
+ if runtime.GOOS == "freebsd" || runtime.GOOS == "netbsd" {
|
|
+ listFiles = "fstat"
|
|
+ }
|
|
+
|
|
+ fmt.Fprintln(os.Stderr, "\n"+listFiles+":")
|
|
+ fmt.Fprintln(os.Stderr, "-----")
|
|
+ listFilesCmd := exec.Command(listFiles)
|
|
+ listFilesCmd.Stdout = os.Stderr
|
|
+ listFilesCmd.Stderr = os.Stderr
|
|
+ if err := listFilesCmd.Run(); err != nil {
|
|
+ panic(fmt.Sprintf("running %s: %v", listFiles, err))
|
|
+ }
|
|
+ }
|
|
+ panic(fmt.Sprintf("detected hanging go command (pid %d): see golang/go#54461 for more details", proc.Pid))
|
|
+}
|
|
+
|
|
func cmdDebugStr(cmd *exec.Cmd) string {
|
|
env := make(map[string]string)
|
|
for _, kv := range cmd.Env {
|
|
diff --git a/vendor/golang.org/x/tools/internal/gocommand/version.go b/vendor/golang.org/x/tools/internal/gocommand/version.go
|
|
index 71304368020..307a76d474a 100644
|
|
--- a/vendor/golang.org/x/tools/internal/gocommand/version.go
|
|
+++ b/vendor/golang.org/x/tools/internal/gocommand/version.go
|
|
@@ -7,11 +7,19 @@ package gocommand
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
+ "regexp"
|
|
"strings"
|
|
)
|
|
|
|
-// GoVersion checks the go version by running "go list" with modules off.
|
|
-// It returns the X in Go 1.X.
|
|
+// GoVersion reports the minor version number of the highest release
|
|
+// tag built into the go command on the PATH.
|
|
+//
|
|
+// Note that this may be higher than the version of the go tool used
|
|
+// to build this application, and thus the versions of the standard
|
|
+// go/{scanner,parser,ast,types} packages that are linked into it.
|
|
+// In that case, callers should either downgrade to the version of
|
|
+// go used to build the application, or report an error that the
|
|
+// application is too old to use the go command on the PATH.
|
|
func GoVersion(ctx context.Context, inv Invocation, r *Runner) (int, error) {
|
|
inv.Verb = "list"
|
|
inv.Args = []string{"-e", "-f", `{{context.ReleaseTags}}`, `--`, `unsafe`}
|
|
@@ -38,7 +46,7 @@ func GoVersion(ctx context.Context, inv Invocation, r *Runner) (int, error) {
|
|
if len(stdout) < 3 {
|
|
return 0, fmt.Errorf("bad ReleaseTags output: %q", stdout)
|
|
}
|
|
- // Split up "[go1.1 go1.15]"
|
|
+ // Split up "[go1.1 go1.15]" and return highest go1.X value.
|
|
tags := strings.Fields(stdout[1 : len(stdout)-2])
|
|
for i := len(tags) - 1; i >= 0; i-- {
|
|
var version int
|
|
@@ -49,3 +57,25 @@ func GoVersion(ctx context.Context, inv Invocation, r *Runner) (int, error) {
|
|
}
|
|
return 0, fmt.Errorf("no parseable ReleaseTags in %v", tags)
|
|
}
|
|
+
|
|
+// GoVersionOutput returns the complete output of the go version command.
|
|
+func GoVersionOutput(ctx context.Context, inv Invocation, r *Runner) (string, error) {
|
|
+ inv.Verb = "version"
|
|
+ goVersion, err := r.Run(ctx, inv)
|
|
+ if err != nil {
|
|
+ return "", err
|
|
+ }
|
|
+ return goVersion.String(), nil
|
|
+}
|
|
+
|
|
+// ParseGoVersionOutput extracts the Go version string
|
|
+// from the output of the "go version" command.
|
|
+// Given an unrecognized form, it returns an empty string.
|
|
+func ParseGoVersionOutput(data string) string {
|
|
+ re := regexp.MustCompile(`^go version (go\S+|devel \S+)`)
|
|
+ m := re.FindStringSubmatch(data)
|
|
+ if len(m) != 2 {
|
|
+ return "" // unrecognized version
|
|
+ }
|
|
+ return m[1]
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/imports/fix.go b/vendor/golang.org/x/tools/internal/imports/fix.go
|
|
index d859617b774..413e2a6b63a 100644
|
|
--- a/vendor/golang.org/x/tools/internal/imports/fix.go
|
|
+++ b/vendor/golang.org/x/tools/internal/imports/fix.go
|
|
@@ -697,6 +697,9 @@ func candidateImportName(pkg *pkg) string {
|
|
|
|
// GetAllCandidates calls wrapped for each package whose name starts with
|
|
// searchPrefix, and can be imported from filename with the package name filePkg.
|
|
+//
|
|
+// Beware that the wrapped function may be called multiple times concurrently.
|
|
+// TODO(adonovan): encapsulate the concurrency.
|
|
func GetAllCandidates(ctx context.Context, wrapped func(ImportFix), searchPrefix, filename, filePkg string, env *ProcessEnv) error {
|
|
callback := &scanCallback{
|
|
rootFound: func(gopathwalk.Root) bool {
|
|
@@ -796,7 +799,7 @@ func GetPackageExports(ctx context.Context, wrapped func(PackageExport), searchP
|
|
return getCandidatePkgs(ctx, callback, filename, filePkg, env)
|
|
}
|
|
|
|
-var RequiredGoEnvVars = []string{"GO111MODULE", "GOFLAGS", "GOINSECURE", "GOMOD", "GOMODCACHE", "GONOPROXY", "GONOSUMDB", "GOPATH", "GOPROXY", "GOROOT", "GOSUMDB"}
|
|
+var requiredGoEnvVars = []string{"GO111MODULE", "GOFLAGS", "GOINSECURE", "GOMOD", "GOMODCACHE", "GONOPROXY", "GONOSUMDB", "GOPATH", "GOPROXY", "GOROOT", "GOSUMDB", "GOWORK"}
|
|
|
|
// ProcessEnv contains environment variables and settings that affect the use of
|
|
// the go command, the go/build package, etc.
|
|
@@ -807,6 +810,11 @@ type ProcessEnv struct {
|
|
ModFlag string
|
|
ModFile string
|
|
|
|
+ // SkipPathInScan returns true if the path should be skipped from scans of
|
|
+ // the RootCurrentModule root type. The function argument is a clean,
|
|
+ // absolute path.
|
|
+ SkipPathInScan func(string) bool
|
|
+
|
|
// Env overrides the OS environment, and can be used to specify
|
|
// GOPROXY, GO111MODULE, etc. PATH cannot be set here, because
|
|
// exec.Command will not honor it.
|
|
@@ -861,7 +869,7 @@ func (e *ProcessEnv) init() error {
|
|
}
|
|
|
|
foundAllRequired := true
|
|
- for _, k := range RequiredGoEnvVars {
|
|
+ for _, k := range requiredGoEnvVars {
|
|
if _, ok := e.Env[k]; !ok {
|
|
foundAllRequired = false
|
|
break
|
|
@@ -877,7 +885,7 @@ func (e *ProcessEnv) init() error {
|
|
}
|
|
|
|
goEnv := map[string]string{}
|
|
- stdout, err := e.invokeGo(context.TODO(), "env", append([]string{"-json"}, RequiredGoEnvVars...)...)
|
|
+ stdout, err := e.invokeGo(context.TODO(), "env", append([]string{"-json"}, requiredGoEnvVars...)...)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
@@ -1367,9 +1375,9 @@ func (r *gopathResolver) scan(ctx context.Context, callback *scanCallback) error
|
|
return err
|
|
}
|
|
var roots []gopathwalk.Root
|
|
- roots = append(roots, gopathwalk.Root{filepath.Join(goenv["GOROOT"], "src"), gopathwalk.RootGOROOT})
|
|
+ roots = append(roots, gopathwalk.Root{Path: filepath.Join(goenv["GOROOT"], "src"), Type: gopathwalk.RootGOROOT})
|
|
for _, p := range filepath.SplitList(goenv["GOPATH"]) {
|
|
- roots = append(roots, gopathwalk.Root{filepath.Join(p, "src"), gopathwalk.RootGOPATH})
|
|
+ roots = append(roots, gopathwalk.Root{Path: filepath.Join(p, "src"), Type: gopathwalk.RootGOPATH})
|
|
}
|
|
// The callback is not necessarily safe to use in the goroutine below. Process roots eagerly.
|
|
roots = filterRoots(roots, callback.rootFound)
|
|
diff --git a/vendor/golang.org/x/tools/internal/imports/mod.go b/vendor/golang.org/x/tools/internal/imports/mod.go
|
|
index dff6d55362c..c90a371a3bf 100644
|
|
--- a/vendor/golang.org/x/tools/internal/imports/mod.go
|
|
+++ b/vendor/golang.org/x/tools/internal/imports/mod.go
|
|
@@ -37,6 +37,8 @@ type ModuleResolver struct {
|
|
main *gocommand.ModuleJSON
|
|
modsByModPath []*gocommand.ModuleJSON // All modules, ordered by # of path components in module Path...
|
|
modsByDir []*gocommand.ModuleJSON // ...or Dir.
|
|
+ mainByDir map[string]*gocommand.ModuleJSON
|
|
+ mains []*gocommand.ModuleJSON
|
|
|
|
// moduleCacheCache stores information about the module cache.
|
|
moduleCacheCache *dirInfoCache
|
|
@@ -77,6 +79,7 @@ func (r *ModuleResolver) init() error {
|
|
if mainMod != nil && vendorEnabled {
|
|
// Vendor mode is on, so all the non-Main modules are irrelevant,
|
|
// and we need to search /vendor for everything.
|
|
+ r.mains = []*gocommand.ModuleJSON{mainMod, r.dummyVendorMod}
|
|
r.main = mainMod
|
|
r.dummyVendorMod = &gocommand.ModuleJSON{
|
|
Path: "",
|
|
@@ -120,20 +123,22 @@ func (r *ModuleResolver) init() error {
|
|
})
|
|
|
|
r.roots = []gopathwalk.Root{
|
|
- {filepath.Join(goenv["GOROOT"], "/src"), gopathwalk.RootGOROOT},
|
|
+ {Path: filepath.Join(goenv["GOROOT"], "/src"), Type: gopathwalk.RootGOROOT},
|
|
}
|
|
- if r.main != nil {
|
|
- r.roots = append(r.roots, gopathwalk.Root{r.main.Dir, gopathwalk.RootCurrentModule})
|
|
+ r.mainByDir = make(map[string]*gocommand.ModuleJSON)
|
|
+ for _, main := range r.mains {
|
|
+ r.roots = append(r.roots, gopathwalk.Root{Path: main.Dir, Type: gopathwalk.RootCurrentModule})
|
|
+ r.mainByDir[main.Dir] = main
|
|
}
|
|
if vendorEnabled {
|
|
- r.roots = append(r.roots, gopathwalk.Root{r.dummyVendorMod.Dir, gopathwalk.RootOther})
|
|
+ r.roots = append(r.roots, gopathwalk.Root{Path: r.dummyVendorMod.Dir, Type: gopathwalk.RootOther})
|
|
} else {
|
|
addDep := func(mod *gocommand.ModuleJSON) {
|
|
if mod.Replace == nil {
|
|
// This is redundant with the cache, but we'll skip it cheaply enough.
|
|
- r.roots = append(r.roots, gopathwalk.Root{mod.Dir, gopathwalk.RootModuleCache})
|
|
+ r.roots = append(r.roots, gopathwalk.Root{Path: mod.Dir, Type: gopathwalk.RootModuleCache})
|
|
} else {
|
|
- r.roots = append(r.roots, gopathwalk.Root{mod.Dir, gopathwalk.RootOther})
|
|
+ r.roots = append(r.roots, gopathwalk.Root{Path: mod.Dir, Type: gopathwalk.RootOther})
|
|
}
|
|
}
|
|
// Walk dependent modules before scanning the full mod cache, direct deps first.
|
|
@@ -147,7 +152,7 @@ func (r *ModuleResolver) init() error {
|
|
addDep(mod)
|
|
}
|
|
}
|
|
- r.roots = append(r.roots, gopathwalk.Root{r.moduleCacheDir, gopathwalk.RootModuleCache})
|
|
+ r.roots = append(r.roots, gopathwalk.Root{Path: r.moduleCacheDir, Type: gopathwalk.RootModuleCache})
|
|
}
|
|
|
|
r.scannedRoots = map[gopathwalk.Root]bool{}
|
|
@@ -455,6 +460,16 @@ func (r *ModuleResolver) scan(ctx context.Context, callback *scanCallback) error
|
|
// We assume cached directories are fully cached, including all their
|
|
// children, and have not changed. We can skip them.
|
|
skip := func(root gopathwalk.Root, dir string) bool {
|
|
+ if r.env.SkipPathInScan != nil && root.Type == gopathwalk.RootCurrentModule {
|
|
+ if root.Path == dir {
|
|
+ return false
|
|
+ }
|
|
+
|
|
+ if r.env.SkipPathInScan(filepath.Clean(dir)) {
|
|
+ return true
|
|
+ }
|
|
+ }
|
|
+
|
|
info, ok := r.cacheLoad(dir)
|
|
if !ok {
|
|
return false
|
|
diff --git a/vendor/golang.org/x/tools/internal/imports/sortimports.go b/vendor/golang.org/x/tools/internal/imports/sortimports.go
|
|
index dc52372e48a..7c775fc2e4f 100644
|
|
--- a/vendor/golang.org/x/tools/internal/imports/sortimports.go
|
|
+++ b/vendor/golang.org/x/tools/internal/imports/sortimports.go
|
|
@@ -49,6 +49,7 @@ func sortImports(localPrefix string, fset *token.FileSet, f *ast.File) {
|
|
d.Specs = specs
|
|
|
|
// Deduping can leave a blank line before the rparen; clean that up.
|
|
+ // Ignore line directives.
|
|
if len(d.Specs) > 0 {
|
|
lastSpec := d.Specs[len(d.Specs)-1]
|
|
lastLine := fset.Position(lastSpec.Pos()).Line
|
|
diff --git a/vendor/golang.org/x/tools/internal/imports/zstdlib.go b/vendor/golang.org/x/tools/internal/imports/zstdlib.go
|
|
index 7de2be9b4b7..29b2b2519d3 100644
|
|
--- a/vendor/golang.org/x/tools/internal/imports/zstdlib.go
|
|
+++ b/vendor/golang.org/x/tools/internal/imports/zstdlib.go
|
|
@@ -1,11 +1,16 @@
|
|
+// Copyright 2022 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
// Code generated by mkstdlib.go. DO NOT EDIT.
|
|
|
|
package imports
|
|
|
|
var stdlib = map[string][]string{
|
|
- "archive/tar": []string{
|
|
+ "archive/tar": {
|
|
"ErrFieldTooLong",
|
|
"ErrHeader",
|
|
+ "ErrInsecurePath",
|
|
"ErrWriteAfterClose",
|
|
"ErrWriteTooLong",
|
|
"FileInfoHeader",
|
|
@@ -34,13 +39,14 @@ var stdlib = map[string][]string{
|
|
"TypeXHeader",
|
|
"Writer",
|
|
},
|
|
- "archive/zip": []string{
|
|
+ "archive/zip": {
|
|
"Compressor",
|
|
"Decompressor",
|
|
"Deflate",
|
|
"ErrAlgorithm",
|
|
"ErrChecksum",
|
|
"ErrFormat",
|
|
+ "ErrInsecurePath",
|
|
"File",
|
|
"FileHeader",
|
|
"FileInfoHeader",
|
|
@@ -54,7 +60,7 @@ var stdlib = map[string][]string{
|
|
"Store",
|
|
"Writer",
|
|
},
|
|
- "bufio": []string{
|
|
+ "bufio": {
|
|
"ErrAdvanceTooFar",
|
|
"ErrBadReadCount",
|
|
"ErrBufferFull",
|
|
@@ -81,13 +87,17 @@ var stdlib = map[string][]string{
|
|
"SplitFunc",
|
|
"Writer",
|
|
},
|
|
- "bytes": []string{
|
|
+ "bytes": {
|
|
"Buffer",
|
|
+ "Clone",
|
|
"Compare",
|
|
"Contains",
|
|
"ContainsAny",
|
|
"ContainsRune",
|
|
"Count",
|
|
+ "Cut",
|
|
+ "CutPrefix",
|
|
+ "CutSuffix",
|
|
"Equal",
|
|
"EqualFold",
|
|
"ErrTooLarge",
|
|
@@ -137,11 +147,11 @@ var stdlib = map[string][]string{
|
|
"TrimSpace",
|
|
"TrimSuffix",
|
|
},
|
|
- "compress/bzip2": []string{
|
|
+ "compress/bzip2": {
|
|
"NewReader",
|
|
"StructuralError",
|
|
},
|
|
- "compress/flate": []string{
|
|
+ "compress/flate": {
|
|
"BestCompression",
|
|
"BestSpeed",
|
|
"CorruptInputError",
|
|
@@ -159,7 +169,7 @@ var stdlib = map[string][]string{
|
|
"WriteError",
|
|
"Writer",
|
|
},
|
|
- "compress/gzip": []string{
|
|
+ "compress/gzip": {
|
|
"BestCompression",
|
|
"BestSpeed",
|
|
"DefaultCompression",
|
|
@@ -174,7 +184,7 @@ var stdlib = map[string][]string{
|
|
"Reader",
|
|
"Writer",
|
|
},
|
|
- "compress/lzw": []string{
|
|
+ "compress/lzw": {
|
|
"LSB",
|
|
"MSB",
|
|
"NewReader",
|
|
@@ -183,7 +193,7 @@ var stdlib = map[string][]string{
|
|
"Reader",
|
|
"Writer",
|
|
},
|
|
- "compress/zlib": []string{
|
|
+ "compress/zlib": {
|
|
"BestCompression",
|
|
"BestSpeed",
|
|
"DefaultCompression",
|
|
@@ -200,7 +210,7 @@ var stdlib = map[string][]string{
|
|
"Resetter",
|
|
"Writer",
|
|
},
|
|
- "container/heap": []string{
|
|
+ "container/heap": {
|
|
"Fix",
|
|
"Init",
|
|
"Interface",
|
|
@@ -208,28 +218,31 @@ var stdlib = map[string][]string{
|
|
"Push",
|
|
"Remove",
|
|
},
|
|
- "container/list": []string{
|
|
+ "container/list": {
|
|
"Element",
|
|
"List",
|
|
"New",
|
|
},
|
|
- "container/ring": []string{
|
|
+ "container/ring": {
|
|
"New",
|
|
"Ring",
|
|
},
|
|
- "context": []string{
|
|
+ "context": {
|
|
"Background",
|
|
+ "CancelCauseFunc",
|
|
"CancelFunc",
|
|
"Canceled",
|
|
+ "Cause",
|
|
"Context",
|
|
"DeadlineExceeded",
|
|
"TODO",
|
|
"WithCancel",
|
|
+ "WithCancelCause",
|
|
"WithDeadline",
|
|
"WithTimeout",
|
|
"WithValue",
|
|
},
|
|
- "crypto": []string{
|
|
+ "crypto": {
|
|
"BLAKE2b_256",
|
|
"BLAKE2b_384",
|
|
"BLAKE2b_512",
|
|
@@ -258,12 +271,12 @@ var stdlib = map[string][]string{
|
|
"Signer",
|
|
"SignerOpts",
|
|
},
|
|
- "crypto/aes": []string{
|
|
+ "crypto/aes": {
|
|
"BlockSize",
|
|
"KeySizeError",
|
|
"NewCipher",
|
|
},
|
|
- "crypto/cipher": []string{
|
|
+ "crypto/cipher": {
|
|
"AEAD",
|
|
"Block",
|
|
"BlockMode",
|
|
@@ -280,13 +293,13 @@ var stdlib = map[string][]string{
|
|
"StreamReader",
|
|
"StreamWriter",
|
|
},
|
|
- "crypto/des": []string{
|
|
+ "crypto/des": {
|
|
"BlockSize",
|
|
"KeySizeError",
|
|
"NewCipher",
|
|
"NewTripleDESCipher",
|
|
},
|
|
- "crypto/dsa": []string{
|
|
+ "crypto/dsa": {
|
|
"ErrInvalidPublicKey",
|
|
"GenerateKey",
|
|
"GenerateParameters",
|
|
@@ -301,7 +314,16 @@ var stdlib = map[string][]string{
|
|
"Sign",
|
|
"Verify",
|
|
},
|
|
- "crypto/ecdsa": []string{
|
|
+ "crypto/ecdh": {
|
|
+ "Curve",
|
|
+ "P256",
|
|
+ "P384",
|
|
+ "P521",
|
|
+ "PrivateKey",
|
|
+ "PublicKey",
|
|
+ "X25519",
|
|
+ },
|
|
+ "crypto/ecdsa": {
|
|
"GenerateKey",
|
|
"PrivateKey",
|
|
"PublicKey",
|
|
@@ -310,9 +332,10 @@ var stdlib = map[string][]string{
|
|
"Verify",
|
|
"VerifyASN1",
|
|
},
|
|
- "crypto/ed25519": []string{
|
|
+ "crypto/ed25519": {
|
|
"GenerateKey",
|
|
"NewKeyFromSeed",
|
|
+ "Options",
|
|
"PrivateKey",
|
|
"PrivateKeySize",
|
|
"PublicKey",
|
|
@@ -321,8 +344,9 @@ var stdlib = map[string][]string{
|
|
"Sign",
|
|
"SignatureSize",
|
|
"Verify",
|
|
+ "VerifyWithOptions",
|
|
},
|
|
- "crypto/elliptic": []string{
|
|
+ "crypto/elliptic": {
|
|
"Curve",
|
|
"CurveParams",
|
|
"GenerateKey",
|
|
@@ -335,28 +359,28 @@ var stdlib = map[string][]string{
|
|
"Unmarshal",
|
|
"UnmarshalCompressed",
|
|
},
|
|
- "crypto/hmac": []string{
|
|
+ "crypto/hmac": {
|
|
"Equal",
|
|
"New",
|
|
},
|
|
- "crypto/md5": []string{
|
|
+ "crypto/md5": {
|
|
"BlockSize",
|
|
"New",
|
|
"Size",
|
|
"Sum",
|
|
},
|
|
- "crypto/rand": []string{
|
|
+ "crypto/rand": {
|
|
"Int",
|
|
"Prime",
|
|
"Read",
|
|
"Reader",
|
|
},
|
|
- "crypto/rc4": []string{
|
|
+ "crypto/rc4": {
|
|
"Cipher",
|
|
"KeySizeError",
|
|
"NewCipher",
|
|
},
|
|
- "crypto/rsa": []string{
|
|
+ "crypto/rsa": {
|
|
"CRTValue",
|
|
"DecryptOAEP",
|
|
"DecryptPKCS1v15",
|
|
@@ -381,13 +405,13 @@ var stdlib = map[string][]string{
|
|
"VerifyPKCS1v15",
|
|
"VerifyPSS",
|
|
},
|
|
- "crypto/sha1": []string{
|
|
+ "crypto/sha1": {
|
|
"BlockSize",
|
|
"New",
|
|
"Size",
|
|
"Sum",
|
|
},
|
|
- "crypto/sha256": []string{
|
|
+ "crypto/sha256": {
|
|
"BlockSize",
|
|
"New",
|
|
"New224",
|
|
@@ -396,7 +420,7 @@ var stdlib = map[string][]string{
|
|
"Sum224",
|
|
"Sum256",
|
|
},
|
|
- "crypto/sha512": []string{
|
|
+ "crypto/sha512": {
|
|
"BlockSize",
|
|
"New",
|
|
"New384",
|
|
@@ -411,17 +435,19 @@ var stdlib = map[string][]string{
|
|
"Sum512_224",
|
|
"Sum512_256",
|
|
},
|
|
- "crypto/subtle": []string{
|
|
+ "crypto/subtle": {
|
|
"ConstantTimeByteEq",
|
|
"ConstantTimeCompare",
|
|
"ConstantTimeCopy",
|
|
"ConstantTimeEq",
|
|
"ConstantTimeLessOrEq",
|
|
"ConstantTimeSelect",
|
|
+ "XORBytes",
|
|
},
|
|
- "crypto/tls": []string{
|
|
+ "crypto/tls": {
|
|
"Certificate",
|
|
"CertificateRequestInfo",
|
|
+ "CertificateVerificationError",
|
|
"CipherSuite",
|
|
"CipherSuiteName",
|
|
"CipherSuites",
|
|
@@ -505,7 +531,7 @@ var stdlib = map[string][]string{
|
|
"X25519",
|
|
"X509KeyPair",
|
|
},
|
|
- "crypto/x509": []string{
|
|
+ "crypto/x509": {
|
|
"CANotAuthorizedForExtKeyUsage",
|
|
"CANotAuthorizedForThisName",
|
|
"CertPool",
|
|
@@ -587,6 +613,7 @@ var stdlib = map[string][]string{
|
|
"ParsePKCS1PublicKey",
|
|
"ParsePKCS8PrivateKey",
|
|
"ParsePKIXPublicKey",
|
|
+ "ParseRevocationList",
|
|
"PublicKeyAlgorithm",
|
|
"PureEd25519",
|
|
"RSA",
|
|
@@ -598,6 +625,7 @@ var stdlib = map[string][]string{
|
|
"SHA384WithRSAPSS",
|
|
"SHA512WithRSA",
|
|
"SHA512WithRSAPSS",
|
|
+ "SetFallbackRoots",
|
|
"SignatureAlgorithm",
|
|
"SystemCertPool",
|
|
"SystemRootsError",
|
|
@@ -610,7 +638,7 @@ var stdlib = map[string][]string{
|
|
"UnknownSignatureAlgorithm",
|
|
"VerifyOptions",
|
|
},
|
|
- "crypto/x509/pkix": []string{
|
|
+ "crypto/x509/pkix": {
|
|
"AlgorithmIdentifier",
|
|
"AttributeTypeAndValue",
|
|
"AttributeTypeAndValueSET",
|
|
@@ -622,7 +650,7 @@ var stdlib = map[string][]string{
|
|
"RevokedCertificate",
|
|
"TBSCertificateList",
|
|
},
|
|
- "database/sql": []string{
|
|
+ "database/sql": {
|
|
"ColumnType",
|
|
"Conn",
|
|
"DB",
|
|
@@ -663,7 +691,7 @@ var stdlib = map[string][]string{
|
|
"Tx",
|
|
"TxOptions",
|
|
},
|
|
- "database/sql/driver": []string{
|
|
+ "database/sql/driver": {
|
|
"Bool",
|
|
"ColumnConverter",
|
|
"Conn",
|
|
@@ -711,7 +739,12 @@ var stdlib = map[string][]string{
|
|
"ValueConverter",
|
|
"Valuer",
|
|
},
|
|
- "debug/dwarf": []string{
|
|
+ "debug/buildinfo": {
|
|
+ "BuildInfo",
|
|
+ "Read",
|
|
+ "ReadFile",
|
|
+ },
|
|
+ "debug/dwarf": {
|
|
"AddrType",
|
|
"ArrayType",
|
|
"Attr",
|
|
@@ -962,7 +995,7 @@ var stdlib = map[string][]string{
|
|
"UnsupportedType",
|
|
"VoidType",
|
|
},
|
|
- "debug/elf": []string{
|
|
+ "debug/elf": {
|
|
"ARM_MAGIC_TRAMP_NUMBER",
|
|
"COMPRESS_HIOS",
|
|
"COMPRESS_HIPROC",
|
|
@@ -1232,6 +1265,7 @@ var stdlib = map[string][]string{
|
|
"EM_L10M",
|
|
"EM_LANAI",
|
|
"EM_LATTICEMICO32",
|
|
+ "EM_LOONGARCH",
|
|
"EM_M16C",
|
|
"EM_M32",
|
|
"EM_M32C",
|
|
@@ -1814,6 +1848,96 @@ var stdlib = map[string][]string{
|
|
"R_ARM_XPC25",
|
|
"R_INFO",
|
|
"R_INFO32",
|
|
+ "R_LARCH",
|
|
+ "R_LARCH_32",
|
|
+ "R_LARCH_32_PCREL",
|
|
+ "R_LARCH_64",
|
|
+ "R_LARCH_ABS64_HI12",
|
|
+ "R_LARCH_ABS64_LO20",
|
|
+ "R_LARCH_ABS_HI20",
|
|
+ "R_LARCH_ABS_LO12",
|
|
+ "R_LARCH_ADD16",
|
|
+ "R_LARCH_ADD24",
|
|
+ "R_LARCH_ADD32",
|
|
+ "R_LARCH_ADD64",
|
|
+ "R_LARCH_ADD8",
|
|
+ "R_LARCH_B16",
|
|
+ "R_LARCH_B21",
|
|
+ "R_LARCH_B26",
|
|
+ "R_LARCH_COPY",
|
|
+ "R_LARCH_GNU_VTENTRY",
|
|
+ "R_LARCH_GNU_VTINHERIT",
|
|
+ "R_LARCH_GOT64_HI12",
|
|
+ "R_LARCH_GOT64_LO20",
|
|
+ "R_LARCH_GOT64_PC_HI12",
|
|
+ "R_LARCH_GOT64_PC_LO20",
|
|
+ "R_LARCH_GOT_HI20",
|
|
+ "R_LARCH_GOT_LO12",
|
|
+ "R_LARCH_GOT_PC_HI20",
|
|
+ "R_LARCH_GOT_PC_LO12",
|
|
+ "R_LARCH_IRELATIVE",
|
|
+ "R_LARCH_JUMP_SLOT",
|
|
+ "R_LARCH_MARK_LA",
|
|
+ "R_LARCH_MARK_PCREL",
|
|
+ "R_LARCH_NONE",
|
|
+ "R_LARCH_PCALA64_HI12",
|
|
+ "R_LARCH_PCALA64_LO20",
|
|
+ "R_LARCH_PCALA_HI20",
|
|
+ "R_LARCH_PCALA_LO12",
|
|
+ "R_LARCH_RELATIVE",
|
|
+ "R_LARCH_RELAX",
|
|
+ "R_LARCH_SOP_ADD",
|
|
+ "R_LARCH_SOP_AND",
|
|
+ "R_LARCH_SOP_ASSERT",
|
|
+ "R_LARCH_SOP_IF_ELSE",
|
|
+ "R_LARCH_SOP_NOT",
|
|
+ "R_LARCH_SOP_POP_32_S_0_10_10_16_S2",
|
|
+ "R_LARCH_SOP_POP_32_S_0_5_10_16_S2",
|
|
+ "R_LARCH_SOP_POP_32_S_10_12",
|
|
+ "R_LARCH_SOP_POP_32_S_10_16",
|
|
+ "R_LARCH_SOP_POP_32_S_10_16_S2",
|
|
+ "R_LARCH_SOP_POP_32_S_10_5",
|
|
+ "R_LARCH_SOP_POP_32_S_5_20",
|
|
+ "R_LARCH_SOP_POP_32_U",
|
|
+ "R_LARCH_SOP_POP_32_U_10_12",
|
|
+ "R_LARCH_SOP_PUSH_ABSOLUTE",
|
|
+ "R_LARCH_SOP_PUSH_DUP",
|
|
+ "R_LARCH_SOP_PUSH_GPREL",
|
|
+ "R_LARCH_SOP_PUSH_PCREL",
|
|
+ "R_LARCH_SOP_PUSH_PLT_PCREL",
|
|
+ "R_LARCH_SOP_PUSH_TLS_GD",
|
|
+ "R_LARCH_SOP_PUSH_TLS_GOT",
|
|
+ "R_LARCH_SOP_PUSH_TLS_TPREL",
|
|
+ "R_LARCH_SOP_SL",
|
|
+ "R_LARCH_SOP_SR",
|
|
+ "R_LARCH_SOP_SUB",
|
|
+ "R_LARCH_SUB16",
|
|
+ "R_LARCH_SUB24",
|
|
+ "R_LARCH_SUB32",
|
|
+ "R_LARCH_SUB64",
|
|
+ "R_LARCH_SUB8",
|
|
+ "R_LARCH_TLS_DTPMOD32",
|
|
+ "R_LARCH_TLS_DTPMOD64",
|
|
+ "R_LARCH_TLS_DTPREL32",
|
|
+ "R_LARCH_TLS_DTPREL64",
|
|
+ "R_LARCH_TLS_GD_HI20",
|
|
+ "R_LARCH_TLS_GD_PC_HI20",
|
|
+ "R_LARCH_TLS_IE64_HI12",
|
|
+ "R_LARCH_TLS_IE64_LO20",
|
|
+ "R_LARCH_TLS_IE64_PC_HI12",
|
|
+ "R_LARCH_TLS_IE64_PC_LO20",
|
|
+ "R_LARCH_TLS_IE_HI20",
|
|
+ "R_LARCH_TLS_IE_LO12",
|
|
+ "R_LARCH_TLS_IE_PC_HI20",
|
|
+ "R_LARCH_TLS_IE_PC_LO12",
|
|
+ "R_LARCH_TLS_LD_HI20",
|
|
+ "R_LARCH_TLS_LD_PC_HI20",
|
|
+ "R_LARCH_TLS_LE64_HI12",
|
|
+ "R_LARCH_TLS_LE64_LO20",
|
|
+ "R_LARCH_TLS_LE_HI20",
|
|
+ "R_LARCH_TLS_LE_LO12",
|
|
+ "R_LARCH_TLS_TPREL32",
|
|
+ "R_LARCH_TLS_TPREL64",
|
|
"R_MIPS",
|
|
"R_MIPS_16",
|
|
"R_MIPS_26",
|
|
@@ -1875,15 +1999,25 @@ var stdlib = map[string][]string{
|
|
"R_PPC64_ADDR16_HIGH",
|
|
"R_PPC64_ADDR16_HIGHA",
|
|
"R_PPC64_ADDR16_HIGHER",
|
|
+ "R_PPC64_ADDR16_HIGHER34",
|
|
"R_PPC64_ADDR16_HIGHERA",
|
|
+ "R_PPC64_ADDR16_HIGHERA34",
|
|
"R_PPC64_ADDR16_HIGHEST",
|
|
+ "R_PPC64_ADDR16_HIGHEST34",
|
|
"R_PPC64_ADDR16_HIGHESTA",
|
|
+ "R_PPC64_ADDR16_HIGHESTA34",
|
|
"R_PPC64_ADDR16_LO",
|
|
"R_PPC64_ADDR16_LO_DS",
|
|
"R_PPC64_ADDR24",
|
|
"R_PPC64_ADDR32",
|
|
"R_PPC64_ADDR64",
|
|
"R_PPC64_ADDR64_LOCAL",
|
|
+ "R_PPC64_COPY",
|
|
+ "R_PPC64_D28",
|
|
+ "R_PPC64_D34",
|
|
+ "R_PPC64_D34_HA30",
|
|
+ "R_PPC64_D34_HI30",
|
|
+ "R_PPC64_D34_LO",
|
|
"R_PPC64_DTPMOD64",
|
|
"R_PPC64_DTPREL16",
|
|
"R_PPC64_DTPREL16_DS",
|
|
@@ -1897,8 +2031,12 @@ var stdlib = map[string][]string{
|
|
"R_PPC64_DTPREL16_HIGHESTA",
|
|
"R_PPC64_DTPREL16_LO",
|
|
"R_PPC64_DTPREL16_LO_DS",
|
|
+ "R_PPC64_DTPREL34",
|
|
"R_PPC64_DTPREL64",
|
|
"R_PPC64_ENTRY",
|
|
+ "R_PPC64_GLOB_DAT",
|
|
+ "R_PPC64_GNU_VTENTRY",
|
|
+ "R_PPC64_GNU_VTINHERIT",
|
|
"R_PPC64_GOT16",
|
|
"R_PPC64_GOT16_DS",
|
|
"R_PPC64_GOT16_HA",
|
|
@@ -1909,29 +2047,50 @@ var stdlib = map[string][]string{
|
|
"R_PPC64_GOT_DTPREL16_HA",
|
|
"R_PPC64_GOT_DTPREL16_HI",
|
|
"R_PPC64_GOT_DTPREL16_LO_DS",
|
|
+ "R_PPC64_GOT_DTPREL_PCREL34",
|
|
+ "R_PPC64_GOT_PCREL34",
|
|
"R_PPC64_GOT_TLSGD16",
|
|
"R_PPC64_GOT_TLSGD16_HA",
|
|
"R_PPC64_GOT_TLSGD16_HI",
|
|
"R_PPC64_GOT_TLSGD16_LO",
|
|
+ "R_PPC64_GOT_TLSGD_PCREL34",
|
|
"R_PPC64_GOT_TLSLD16",
|
|
"R_PPC64_GOT_TLSLD16_HA",
|
|
"R_PPC64_GOT_TLSLD16_HI",
|
|
"R_PPC64_GOT_TLSLD16_LO",
|
|
+ "R_PPC64_GOT_TLSLD_PCREL34",
|
|
"R_PPC64_GOT_TPREL16_DS",
|
|
"R_PPC64_GOT_TPREL16_HA",
|
|
"R_PPC64_GOT_TPREL16_HI",
|
|
"R_PPC64_GOT_TPREL16_LO_DS",
|
|
+ "R_PPC64_GOT_TPREL_PCREL34",
|
|
"R_PPC64_IRELATIVE",
|
|
"R_PPC64_JMP_IREL",
|
|
"R_PPC64_JMP_SLOT",
|
|
"R_PPC64_NONE",
|
|
+ "R_PPC64_PCREL28",
|
|
+ "R_PPC64_PCREL34",
|
|
+ "R_PPC64_PCREL_OPT",
|
|
+ "R_PPC64_PLT16_HA",
|
|
+ "R_PPC64_PLT16_HI",
|
|
+ "R_PPC64_PLT16_LO",
|
|
"R_PPC64_PLT16_LO_DS",
|
|
+ "R_PPC64_PLT32",
|
|
+ "R_PPC64_PLT64",
|
|
+ "R_PPC64_PLTCALL",
|
|
+ "R_PPC64_PLTCALL_NOTOC",
|
|
"R_PPC64_PLTGOT16",
|
|
"R_PPC64_PLTGOT16_DS",
|
|
"R_PPC64_PLTGOT16_HA",
|
|
"R_PPC64_PLTGOT16_HI",
|
|
"R_PPC64_PLTGOT16_LO",
|
|
"R_PPC64_PLTGOT_LO_DS",
|
|
+ "R_PPC64_PLTREL32",
|
|
+ "R_PPC64_PLTREL64",
|
|
+ "R_PPC64_PLTSEQ",
|
|
+ "R_PPC64_PLTSEQ_NOTOC",
|
|
+ "R_PPC64_PLT_PCREL34",
|
|
+ "R_PPC64_PLT_PCREL34_NOTOC",
|
|
"R_PPC64_REL14",
|
|
"R_PPC64_REL14_BRNTAKEN",
|
|
"R_PPC64_REL14_BRTAKEN",
|
|
@@ -1939,12 +2098,28 @@ var stdlib = map[string][]string{
|
|
"R_PPC64_REL16DX_HA",
|
|
"R_PPC64_REL16_HA",
|
|
"R_PPC64_REL16_HI",
|
|
+ "R_PPC64_REL16_HIGH",
|
|
+ "R_PPC64_REL16_HIGHA",
|
|
+ "R_PPC64_REL16_HIGHER",
|
|
+ "R_PPC64_REL16_HIGHER34",
|
|
+ "R_PPC64_REL16_HIGHERA",
|
|
+ "R_PPC64_REL16_HIGHERA34",
|
|
+ "R_PPC64_REL16_HIGHEST",
|
|
+ "R_PPC64_REL16_HIGHEST34",
|
|
+ "R_PPC64_REL16_HIGHESTA",
|
|
+ "R_PPC64_REL16_HIGHESTA34",
|
|
"R_PPC64_REL16_LO",
|
|
"R_PPC64_REL24",
|
|
"R_PPC64_REL24_NOTOC",
|
|
+ "R_PPC64_REL30",
|
|
"R_PPC64_REL32",
|
|
"R_PPC64_REL64",
|
|
+ "R_PPC64_RELATIVE",
|
|
+ "R_PPC64_SECTOFF",
|
|
"R_PPC64_SECTOFF_DS",
|
|
+ "R_PPC64_SECTOFF_HA",
|
|
+ "R_PPC64_SECTOFF_HI",
|
|
+ "R_PPC64_SECTOFF_LO",
|
|
"R_PPC64_SECTOFF_LO_DS",
|
|
"R_PPC64_TLS",
|
|
"R_PPC64_TLSGD",
|
|
@@ -1969,7 +2144,11 @@ var stdlib = map[string][]string{
|
|
"R_PPC64_TPREL16_HIGHESTA",
|
|
"R_PPC64_TPREL16_LO",
|
|
"R_PPC64_TPREL16_LO_DS",
|
|
+ "R_PPC64_TPREL34",
|
|
"R_PPC64_TPREL64",
|
|
+ "R_PPC64_UADDR16",
|
|
+ "R_PPC64_UADDR32",
|
|
+ "R_PPC64_UADDR64",
|
|
"R_PPC_ADDR14",
|
|
"R_PPC_ADDR14_BRNTAKEN",
|
|
"R_PPC_ADDR14_BRTAKEN",
|
|
@@ -2308,7 +2487,7 @@ var stdlib = map[string][]string{
|
|
"Type",
|
|
"Version",
|
|
},
|
|
- "debug/gosym": []string{
|
|
+ "debug/gosym": {
|
|
"DecodingError",
|
|
"Func",
|
|
"LineTable",
|
|
@@ -2320,7 +2499,7 @@ var stdlib = map[string][]string{
|
|
"UnknownFileError",
|
|
"UnknownLineError",
|
|
},
|
|
- "debug/macho": []string{
|
|
+ "debug/macho": {
|
|
"ARM64_RELOC_ADDEND",
|
|
"ARM64_RELOC_BRANCH26",
|
|
"ARM64_RELOC_GOT_LOAD_PAGE21",
|
|
@@ -2450,13 +2629,20 @@ var stdlib = map[string][]string{
|
|
"X86_64_RELOC_TLV",
|
|
"X86_64_RELOC_UNSIGNED",
|
|
},
|
|
- "debug/pe": []string{
|
|
+ "debug/pe": {
|
|
"COFFSymbol",
|
|
+ "COFFSymbolAuxFormat5",
|
|
"COFFSymbolSize",
|
|
"DataDirectory",
|
|
"File",
|
|
"FileHeader",
|
|
"FormatError",
|
|
+ "IMAGE_COMDAT_SELECT_ANY",
|
|
+ "IMAGE_COMDAT_SELECT_ASSOCIATIVE",
|
|
+ "IMAGE_COMDAT_SELECT_EXACT_MATCH",
|
|
+ "IMAGE_COMDAT_SELECT_LARGEST",
|
|
+ "IMAGE_COMDAT_SELECT_NODUPLICATES",
|
|
+ "IMAGE_COMDAT_SELECT_SAME_SIZE",
|
|
"IMAGE_DIRECTORY_ENTRY_ARCHITECTURE",
|
|
"IMAGE_DIRECTORY_ENTRY_BASERELOC",
|
|
"IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT",
|
|
@@ -2501,6 +2687,8 @@ var stdlib = map[string][]string{
|
|
"IMAGE_FILE_MACHINE_EBC",
|
|
"IMAGE_FILE_MACHINE_I386",
|
|
"IMAGE_FILE_MACHINE_IA64",
|
|
+ "IMAGE_FILE_MACHINE_LOONGARCH32",
|
|
+ "IMAGE_FILE_MACHINE_LOONGARCH64",
|
|
"IMAGE_FILE_MACHINE_M32R",
|
|
"IMAGE_FILE_MACHINE_MIPS16",
|
|
"IMAGE_FILE_MACHINE_MIPSFPU",
|
|
@@ -2508,6 +2696,9 @@ var stdlib = map[string][]string{
|
|
"IMAGE_FILE_MACHINE_POWERPC",
|
|
"IMAGE_FILE_MACHINE_POWERPCFP",
|
|
"IMAGE_FILE_MACHINE_R4000",
|
|
+ "IMAGE_FILE_MACHINE_RISCV128",
|
|
+ "IMAGE_FILE_MACHINE_RISCV32",
|
|
+ "IMAGE_FILE_MACHINE_RISCV64",
|
|
"IMAGE_FILE_MACHINE_SH3",
|
|
"IMAGE_FILE_MACHINE_SH3DSP",
|
|
"IMAGE_FILE_MACHINE_SH4",
|
|
@@ -2520,6 +2711,14 @@ var stdlib = map[string][]string{
|
|
"IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP",
|
|
"IMAGE_FILE_SYSTEM",
|
|
"IMAGE_FILE_UP_SYSTEM_ONLY",
|
|
+ "IMAGE_SCN_CNT_CODE",
|
|
+ "IMAGE_SCN_CNT_INITIALIZED_DATA",
|
|
+ "IMAGE_SCN_CNT_UNINITIALIZED_DATA",
|
|
+ "IMAGE_SCN_LNK_COMDAT",
|
|
+ "IMAGE_SCN_MEM_DISCARDABLE",
|
|
+ "IMAGE_SCN_MEM_EXECUTE",
|
|
+ "IMAGE_SCN_MEM_READ",
|
|
+ "IMAGE_SCN_MEM_WRITE",
|
|
"IMAGE_SUBSYSTEM_EFI_APPLICATION",
|
|
"IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER",
|
|
"IMAGE_SUBSYSTEM_EFI_ROM",
|
|
@@ -2546,7 +2745,8 @@ var stdlib = map[string][]string{
|
|
"StringTable",
|
|
"Symbol",
|
|
},
|
|
- "debug/plan9obj": []string{
|
|
+ "debug/plan9obj": {
|
|
+ "ErrNoSymbols",
|
|
"File",
|
|
"FileHeader",
|
|
"Magic386",
|
|
@@ -2559,16 +2759,16 @@ var stdlib = map[string][]string{
|
|
"SectionHeader",
|
|
"Sym",
|
|
},
|
|
- "embed": []string{
|
|
+ "embed": {
|
|
"FS",
|
|
},
|
|
- "encoding": []string{
|
|
+ "encoding": {
|
|
"BinaryMarshaler",
|
|
"BinaryUnmarshaler",
|
|
"TextMarshaler",
|
|
"TextUnmarshaler",
|
|
},
|
|
- "encoding/ascii85": []string{
|
|
+ "encoding/ascii85": {
|
|
"CorruptInputError",
|
|
"Decode",
|
|
"Encode",
|
|
@@ -2576,7 +2776,7 @@ var stdlib = map[string][]string{
|
|
"NewDecoder",
|
|
"NewEncoder",
|
|
},
|
|
- "encoding/asn1": []string{
|
|
+ "encoding/asn1": {
|
|
"BitString",
|
|
"ClassApplication",
|
|
"ClassContextSpecific",
|
|
@@ -2614,7 +2814,7 @@ var stdlib = map[string][]string{
|
|
"Unmarshal",
|
|
"UnmarshalWithParams",
|
|
},
|
|
- "encoding/base32": []string{
|
|
+ "encoding/base32": {
|
|
"CorruptInputError",
|
|
"Encoding",
|
|
"HexEncoding",
|
|
@@ -2625,7 +2825,7 @@ var stdlib = map[string][]string{
|
|
"StdEncoding",
|
|
"StdPadding",
|
|
},
|
|
- "encoding/base64": []string{
|
|
+ "encoding/base64": {
|
|
"CorruptInputError",
|
|
"Encoding",
|
|
"NewDecoder",
|
|
@@ -2638,7 +2838,10 @@ var stdlib = map[string][]string{
|
|
"StdPadding",
|
|
"URLEncoding",
|
|
},
|
|
- "encoding/binary": []string{
|
|
+ "encoding/binary": {
|
|
+ "AppendByteOrder",
|
|
+ "AppendUvarint",
|
|
+ "AppendVarint",
|
|
"BigEndian",
|
|
"ByteOrder",
|
|
"LittleEndian",
|
|
@@ -2655,7 +2858,7 @@ var stdlib = map[string][]string{
|
|
"Varint",
|
|
"Write",
|
|
},
|
|
- "encoding/csv": []string{
|
|
+ "encoding/csv": {
|
|
"ErrBareQuote",
|
|
"ErrFieldCount",
|
|
"ErrQuote",
|
|
@@ -2666,7 +2869,7 @@ var stdlib = map[string][]string{
|
|
"Reader",
|
|
"Writer",
|
|
},
|
|
- "encoding/gob": []string{
|
|
+ "encoding/gob": {
|
|
"CommonType",
|
|
"Decoder",
|
|
"Encoder",
|
|
@@ -2677,7 +2880,7 @@ var stdlib = map[string][]string{
|
|
"Register",
|
|
"RegisterName",
|
|
},
|
|
- "encoding/hex": []string{
|
|
+ "encoding/hex": {
|
|
"Decode",
|
|
"DecodeString",
|
|
"DecodedLen",
|
|
@@ -2691,7 +2894,7 @@ var stdlib = map[string][]string{
|
|
"NewDecoder",
|
|
"NewEncoder",
|
|
},
|
|
- "encoding/json": []string{
|
|
+ "encoding/json": {
|
|
"Compact",
|
|
"Decoder",
|
|
"Delim",
|
|
@@ -2718,13 +2921,13 @@ var stdlib = map[string][]string{
|
|
"UnsupportedValueError",
|
|
"Valid",
|
|
},
|
|
- "encoding/pem": []string{
|
|
+ "encoding/pem": {
|
|
"Block",
|
|
"Decode",
|
|
"Encode",
|
|
"EncodeToMemory",
|
|
},
|
|
- "encoding/xml": []string{
|
|
+ "encoding/xml": {
|
|
"Attr",
|
|
"CharData",
|
|
"Comment",
|
|
@@ -2758,13 +2961,14 @@ var stdlib = map[string][]string{
|
|
"UnmarshalerAttr",
|
|
"UnsupportedTypeError",
|
|
},
|
|
- "errors": []string{
|
|
+ "errors": {
|
|
"As",
|
|
"Is",
|
|
+ "Join",
|
|
"New",
|
|
"Unwrap",
|
|
},
|
|
- "expvar": []string{
|
|
+ "expvar": {
|
|
"Do",
|
|
"Float",
|
|
"Func",
|
|
@@ -2781,7 +2985,7 @@ var stdlib = map[string][]string{
|
|
"String",
|
|
"Var",
|
|
},
|
|
- "flag": []string{
|
|
+ "flag": {
|
|
"Arg",
|
|
"Args",
|
|
"Bool",
|
|
@@ -2814,6 +3018,7 @@ var stdlib = map[string][]string{
|
|
"Set",
|
|
"String",
|
|
"StringVar",
|
|
+ "TextVar",
|
|
"Uint",
|
|
"Uint64",
|
|
"Uint64Var",
|
|
@@ -2825,8 +3030,12 @@ var stdlib = map[string][]string{
|
|
"Visit",
|
|
"VisitAll",
|
|
},
|
|
- "fmt": []string{
|
|
+ "fmt": {
|
|
+ "Append",
|
|
+ "Appendf",
|
|
+ "Appendln",
|
|
"Errorf",
|
|
+ "FormatString",
|
|
"Formatter",
|
|
"Fprint",
|
|
"Fprintf",
|
|
@@ -2852,7 +3061,7 @@ var stdlib = map[string][]string{
|
|
"State",
|
|
"Stringer",
|
|
},
|
|
- "go/ast": []string{
|
|
+ "go/ast": {
|
|
"ArrayType",
|
|
"AssignStmt",
|
|
"Bad",
|
|
@@ -2954,7 +3163,7 @@ var stdlib = map[string][]string{
|
|
"Visitor",
|
|
"Walk",
|
|
},
|
|
- "go/build": []string{
|
|
+ "go/build": {
|
|
"AllowBinary",
|
|
"ArchChar",
|
|
"Context",
|
|
@@ -2971,7 +3180,7 @@ var stdlib = map[string][]string{
|
|
"Package",
|
|
"ToolDir",
|
|
},
|
|
- "go/build/constraint": []string{
|
|
+ "go/build/constraint": {
|
|
"AndExpr",
|
|
"Expr",
|
|
"IsGoBuild",
|
|
@@ -2983,7 +3192,7 @@ var stdlib = map[string][]string{
|
|
"SyntaxError",
|
|
"TagExpr",
|
|
},
|
|
- "go/constant": []string{
|
|
+ "go/constant": {
|
|
"BinaryOp",
|
|
"BitLen",
|
|
"Bool",
|
|
@@ -3024,7 +3233,7 @@ var stdlib = map[string][]string{
|
|
"Val",
|
|
"Value",
|
|
},
|
|
- "go/doc": []string{
|
|
+ "go/doc": {
|
|
"AllDecls",
|
|
"AllMethods",
|
|
"Example",
|
|
@@ -3045,17 +3254,35 @@ var stdlib = map[string][]string{
|
|
"Type",
|
|
"Value",
|
|
},
|
|
- "go/format": []string{
|
|
+ "go/doc/comment": {
|
|
+ "Block",
|
|
+ "Code",
|
|
+ "DefaultLookupPackage",
|
|
+ "Doc",
|
|
+ "DocLink",
|
|
+ "Heading",
|
|
+ "Italic",
|
|
+ "Link",
|
|
+ "LinkDef",
|
|
+ "List",
|
|
+ "ListItem",
|
|
+ "Paragraph",
|
|
+ "Parser",
|
|
+ "Plain",
|
|
+ "Printer",
|
|
+ "Text",
|
|
+ },
|
|
+ "go/format": {
|
|
"Node",
|
|
"Source",
|
|
},
|
|
- "go/importer": []string{
|
|
+ "go/importer": {
|
|
"Default",
|
|
"For",
|
|
"ForCompiler",
|
|
"Lookup",
|
|
},
|
|
- "go/parser": []string{
|
|
+ "go/parser": {
|
|
"AllErrors",
|
|
"DeclarationErrors",
|
|
"ImportsOnly",
|
|
@@ -3070,7 +3297,7 @@ var stdlib = map[string][]string{
|
|
"SpuriousErrors",
|
|
"Trace",
|
|
},
|
|
- "go/printer": []string{
|
|
+ "go/printer": {
|
|
"CommentedNode",
|
|
"Config",
|
|
"Fprint",
|
|
@@ -3080,7 +3307,7 @@ var stdlib = map[string][]string{
|
|
"TabIndent",
|
|
"UseSpaces",
|
|
},
|
|
- "go/scanner": []string{
|
|
+ "go/scanner": {
|
|
"Error",
|
|
"ErrorHandler",
|
|
"ErrorList",
|
|
@@ -3089,7 +3316,7 @@ var stdlib = map[string][]string{
|
|
"ScanComments",
|
|
"Scanner",
|
|
},
|
|
- "go/token": []string{
|
|
+ "go/token": {
|
|
"ADD",
|
|
"ADD_ASSIGN",
|
|
"AND",
|
|
@@ -3186,7 +3413,8 @@ var stdlib = map[string][]string{
|
|
"XOR",
|
|
"XOR_ASSIGN",
|
|
},
|
|
- "go/types": []string{
|
|
+ "go/types": {
|
|
+ "ArgumentError",
|
|
"Array",
|
|
"AssertableTo",
|
|
"AssignableTo",
|
|
@@ -3283,6 +3511,7 @@ var stdlib = map[string][]string{
|
|
"RecvOnly",
|
|
"RelativeTo",
|
|
"Rune",
|
|
+ "Satisfies",
|
|
"Scope",
|
|
"Selection",
|
|
"SelectionKind",
|
|
@@ -3323,17 +3552,17 @@ var stdlib = map[string][]string{
|
|
"WriteSignature",
|
|
"WriteType",
|
|
},
|
|
- "hash": []string{
|
|
+ "hash": {
|
|
"Hash",
|
|
"Hash32",
|
|
"Hash64",
|
|
},
|
|
- "hash/adler32": []string{
|
|
+ "hash/adler32": {
|
|
"Checksum",
|
|
"New",
|
|
"Size",
|
|
},
|
|
- "hash/crc32": []string{
|
|
+ "hash/crc32": {
|
|
"Castagnoli",
|
|
"Checksum",
|
|
"ChecksumIEEE",
|
|
@@ -3347,7 +3576,7 @@ var stdlib = map[string][]string{
|
|
"Table",
|
|
"Update",
|
|
},
|
|
- "hash/crc64": []string{
|
|
+ "hash/crc64": {
|
|
"Checksum",
|
|
"ECMA",
|
|
"ISO",
|
|
@@ -3357,7 +3586,7 @@ var stdlib = map[string][]string{
|
|
"Table",
|
|
"Update",
|
|
},
|
|
- "hash/fnv": []string{
|
|
+ "hash/fnv": {
|
|
"New128",
|
|
"New128a",
|
|
"New32",
|
|
@@ -3365,16 +3594,18 @@ var stdlib = map[string][]string{
|
|
"New64",
|
|
"New64a",
|
|
},
|
|
- "hash/maphash": []string{
|
|
+ "hash/maphash": {
|
|
+ "Bytes",
|
|
"Hash",
|
|
"MakeSeed",
|
|
"Seed",
|
|
+ "String",
|
|
},
|
|
- "html": []string{
|
|
+ "html": {
|
|
"EscapeString",
|
|
"UnescapeString",
|
|
},
|
|
- "html/template": []string{
|
|
+ "html/template": {
|
|
"CSS",
|
|
"ErrAmbigContext",
|
|
"ErrBadHTML",
|
|
@@ -3412,7 +3643,7 @@ var stdlib = map[string][]string{
|
|
"URL",
|
|
"URLQueryEscaper",
|
|
},
|
|
- "image": []string{
|
|
+ "image": {
|
|
"Alpha",
|
|
"Alpha16",
|
|
"Black",
|
|
@@ -3465,7 +3696,7 @@ var stdlib = map[string][]string{
|
|
"ZP",
|
|
"ZR",
|
|
},
|
|
- "image/color": []string{
|
|
+ "image/color": {
|
|
"Alpha",
|
|
"Alpha16",
|
|
"Alpha16Model",
|
|
@@ -3501,11 +3732,11 @@ var stdlib = map[string][]string{
|
|
"YCbCrModel",
|
|
"YCbCrToRGB",
|
|
},
|
|
- "image/color/palette": []string{
|
|
+ "image/color/palette": {
|
|
"Plan9",
|
|
"WebSafe",
|
|
},
|
|
- "image/draw": []string{
|
|
+ "image/draw": {
|
|
"Draw",
|
|
"DrawMask",
|
|
"Drawer",
|
|
@@ -3517,7 +3748,7 @@ var stdlib = map[string][]string{
|
|
"RGBA64Image",
|
|
"Src",
|
|
},
|
|
- "image/gif": []string{
|
|
+ "image/gif": {
|
|
"Decode",
|
|
"DecodeAll",
|
|
"DecodeConfig",
|
|
@@ -3529,7 +3760,7 @@ var stdlib = map[string][]string{
|
|
"GIF",
|
|
"Options",
|
|
},
|
|
- "image/jpeg": []string{
|
|
+ "image/jpeg": {
|
|
"Decode",
|
|
"DecodeConfig",
|
|
"DefaultQuality",
|
|
@@ -3539,7 +3770,7 @@ var stdlib = map[string][]string{
|
|
"Reader",
|
|
"UnsupportedError",
|
|
},
|
|
- "image/png": []string{
|
|
+ "image/png": {
|
|
"BestCompression",
|
|
"BestSpeed",
|
|
"CompressionLevel",
|
|
@@ -3554,11 +3785,11 @@ var stdlib = map[string][]string{
|
|
"NoCompression",
|
|
"UnsupportedError",
|
|
},
|
|
- "index/suffixarray": []string{
|
|
+ "index/suffixarray": {
|
|
"Index",
|
|
"New",
|
|
},
|
|
- "io": []string{
|
|
+ "io": {
|
|
"ByteReader",
|
|
"ByteScanner",
|
|
"ByteWriter",
|
|
@@ -3577,8 +3808,10 @@ var stdlib = map[string][]string{
|
|
"LimitedReader",
|
|
"MultiReader",
|
|
"MultiWriter",
|
|
+ "NewOffsetWriter",
|
|
"NewSectionReader",
|
|
"NopCloser",
|
|
+ "OffsetWriter",
|
|
"Pipe",
|
|
"PipeReader",
|
|
"PipeWriter",
|
|
@@ -3610,7 +3843,7 @@ var stdlib = map[string][]string{
|
|
"WriterAt",
|
|
"WriterTo",
|
|
},
|
|
- "io/fs": []string{
|
|
+ "io/fs": {
|
|
"DirEntry",
|
|
"ErrClosed",
|
|
"ErrExist",
|
|
@@ -3645,6 +3878,7 @@ var stdlib = map[string][]string{
|
|
"ReadDirFile",
|
|
"ReadFile",
|
|
"ReadFileFS",
|
|
+ "SkipAll",
|
|
"SkipDir",
|
|
"Stat",
|
|
"StatFS",
|
|
@@ -3654,7 +3888,7 @@ var stdlib = map[string][]string{
|
|
"WalkDir",
|
|
"WalkDirFunc",
|
|
},
|
|
- "io/ioutil": []string{
|
|
+ "io/ioutil": {
|
|
"Discard",
|
|
"NopCloser",
|
|
"ReadAll",
|
|
@@ -3664,7 +3898,7 @@ var stdlib = map[string][]string{
|
|
"TempFile",
|
|
"WriteFile",
|
|
},
|
|
- "log": []string{
|
|
+ "log": {
|
|
"Default",
|
|
"Fatal",
|
|
"Fatalf",
|
|
@@ -3693,7 +3927,7 @@ var stdlib = map[string][]string{
|
|
"SetPrefix",
|
|
"Writer",
|
|
},
|
|
- "log/syslog": []string{
|
|
+ "log/syslog": {
|
|
"Dial",
|
|
"LOG_ALERT",
|
|
"LOG_AUTH",
|
|
@@ -3728,7 +3962,7 @@ var stdlib = map[string][]string{
|
|
"Priority",
|
|
"Writer",
|
|
},
|
|
- "math": []string{
|
|
+ "math": {
|
|
"Abs",
|
|
"Acos",
|
|
"Acosh",
|
|
@@ -3827,7 +4061,7 @@ var stdlib = map[string][]string{
|
|
"Y1",
|
|
"Yn",
|
|
},
|
|
- "math/big": []string{
|
|
+ "math/big": {
|
|
"Above",
|
|
"Accuracy",
|
|
"AwayFromZero",
|
|
@@ -3854,7 +4088,7 @@ var stdlib = map[string][]string{
|
|
"ToZero",
|
|
"Word",
|
|
},
|
|
- "math/bits": []string{
|
|
+ "math/bits": {
|
|
"Add",
|
|
"Add32",
|
|
"Add64",
|
|
@@ -3906,7 +4140,7 @@ var stdlib = map[string][]string{
|
|
"TrailingZeros8",
|
|
"UintSize",
|
|
},
|
|
- "math/cmplx": []string{
|
|
+ "math/cmplx": {
|
|
"Abs",
|
|
"Acos",
|
|
"Acosh",
|
|
@@ -3935,7 +4169,7 @@ var stdlib = map[string][]string{
|
|
"Tan",
|
|
"Tanh",
|
|
},
|
|
- "math/rand": []string{
|
|
+ "math/rand": {
|
|
"ExpFloat64",
|
|
"Float32",
|
|
"Float64",
|
|
@@ -3960,7 +4194,7 @@ var stdlib = map[string][]string{
|
|
"Uint64",
|
|
"Zipf",
|
|
},
|
|
- "mime": []string{
|
|
+ "mime": {
|
|
"AddExtensionType",
|
|
"BEncoding",
|
|
"ErrInvalidMediaParameter",
|
|
@@ -3972,7 +4206,7 @@ var stdlib = map[string][]string{
|
|
"WordDecoder",
|
|
"WordEncoder",
|
|
},
|
|
- "mime/multipart": []string{
|
|
+ "mime/multipart": {
|
|
"ErrMessageTooLarge",
|
|
"File",
|
|
"FileHeader",
|
|
@@ -3983,13 +4217,13 @@ var stdlib = map[string][]string{
|
|
"Reader",
|
|
"Writer",
|
|
},
|
|
- "mime/quotedprintable": []string{
|
|
+ "mime/quotedprintable": {
|
|
"NewReader",
|
|
"NewWriter",
|
|
"Reader",
|
|
"Writer",
|
|
},
|
|
- "net": []string{
|
|
+ "net": {
|
|
"Addr",
|
|
"AddrError",
|
|
"Buffers",
|
|
@@ -4015,6 +4249,7 @@ var stdlib = map[string][]string{
|
|
"FlagLoopback",
|
|
"FlagMulticast",
|
|
"FlagPointToPoint",
|
|
+ "FlagRunning",
|
|
"FlagUp",
|
|
"Flags",
|
|
"HardwareAddr",
|
|
@@ -4089,7 +4324,7 @@ var stdlib = map[string][]string{
|
|
"UnixListener",
|
|
"UnknownNetworkError",
|
|
},
|
|
- "net/http": []string{
|
|
+ "net/http": {
|
|
"AllowQuerySemicolons",
|
|
"CanonicalHeaderKey",
|
|
"Client",
|
|
@@ -4142,6 +4377,8 @@ var stdlib = map[string][]string{
|
|
"ListenAndServe",
|
|
"ListenAndServeTLS",
|
|
"LocalAddrContextKey",
|
|
+ "MaxBytesError",
|
|
+ "MaxBytesHandler",
|
|
"MaxBytesReader",
|
|
"MethodConnect",
|
|
"MethodDelete",
|
|
@@ -4155,6 +4392,7 @@ var stdlib = map[string][]string{
|
|
"NewFileTransport",
|
|
"NewRequest",
|
|
"NewRequestWithContext",
|
|
+ "NewResponseController",
|
|
"NewServeMux",
|
|
"NoBody",
|
|
"NotFound",
|
|
@@ -4174,6 +4412,7 @@ var stdlib = map[string][]string{
|
|
"RedirectHandler",
|
|
"Request",
|
|
"Response",
|
|
+ "ResponseController",
|
|
"ResponseWriter",
|
|
"RoundTripper",
|
|
"SameSite",
|
|
@@ -4263,25 +4502,25 @@ var stdlib = map[string][]string{
|
|
"TrailerPrefix",
|
|
"Transport",
|
|
},
|
|
- "net/http/cgi": []string{
|
|
+ "net/http/cgi": {
|
|
"Handler",
|
|
"Request",
|
|
"RequestFromMap",
|
|
"Serve",
|
|
},
|
|
- "net/http/cookiejar": []string{
|
|
+ "net/http/cookiejar": {
|
|
"Jar",
|
|
"New",
|
|
"Options",
|
|
"PublicSuffixList",
|
|
},
|
|
- "net/http/fcgi": []string{
|
|
+ "net/http/fcgi": {
|
|
"ErrConnClosed",
|
|
"ErrRequestAborted",
|
|
"ProcessEnv",
|
|
"Serve",
|
|
},
|
|
- "net/http/httptest": []string{
|
|
+ "net/http/httptest": {
|
|
"DefaultRemoteAddr",
|
|
"NewRecorder",
|
|
"NewRequest",
|
|
@@ -4291,7 +4530,7 @@ var stdlib = map[string][]string{
|
|
"ResponseRecorder",
|
|
"Server",
|
|
},
|
|
- "net/http/httptrace": []string{
|
|
+ "net/http/httptrace": {
|
|
"ClientTrace",
|
|
"ContextClientTrace",
|
|
"DNSDoneInfo",
|
|
@@ -4300,7 +4539,7 @@ var stdlib = map[string][]string{
|
|
"WithClientTrace",
|
|
"WroteRequestInfo",
|
|
},
|
|
- "net/http/httputil": []string{
|
|
+ "net/http/httputil": {
|
|
"BufferPool",
|
|
"ClientConn",
|
|
"DumpRequest",
|
|
@@ -4316,10 +4555,11 @@ var stdlib = map[string][]string{
|
|
"NewProxyClientConn",
|
|
"NewServerConn",
|
|
"NewSingleHostReverseProxy",
|
|
+ "ProxyRequest",
|
|
"ReverseProxy",
|
|
"ServerConn",
|
|
},
|
|
- "net/http/pprof": []string{
|
|
+ "net/http/pprof": {
|
|
"Cmdline",
|
|
"Handler",
|
|
"Index",
|
|
@@ -4327,7 +4567,7 @@ var stdlib = map[string][]string{
|
|
"Symbol",
|
|
"Trace",
|
|
},
|
|
- "net/mail": []string{
|
|
+ "net/mail": {
|
|
"Address",
|
|
"AddressParser",
|
|
"ErrHeaderNotPresent",
|
|
@@ -4338,7 +4578,28 @@ var stdlib = map[string][]string{
|
|
"ParseDate",
|
|
"ReadMessage",
|
|
},
|
|
- "net/rpc": []string{
|
|
+ "net/netip": {
|
|
+ "Addr",
|
|
+ "AddrFrom16",
|
|
+ "AddrFrom4",
|
|
+ "AddrFromSlice",
|
|
+ "AddrPort",
|
|
+ "AddrPortFrom",
|
|
+ "IPv4Unspecified",
|
|
+ "IPv6LinkLocalAllNodes",
|
|
+ "IPv6LinkLocalAllRouters",
|
|
+ "IPv6Loopback",
|
|
+ "IPv6Unspecified",
|
|
+ "MustParseAddr",
|
|
+ "MustParseAddrPort",
|
|
+ "MustParsePrefix",
|
|
+ "ParseAddr",
|
|
+ "ParseAddrPort",
|
|
+ "ParsePrefix",
|
|
+ "Prefix",
|
|
+ "PrefixFrom",
|
|
+ },
|
|
+ "net/rpc": {
|
|
"Accept",
|
|
"Call",
|
|
"Client",
|
|
@@ -4365,14 +4626,14 @@ var stdlib = map[string][]string{
|
|
"ServerCodec",
|
|
"ServerError",
|
|
},
|
|
- "net/rpc/jsonrpc": []string{
|
|
+ "net/rpc/jsonrpc": {
|
|
"Dial",
|
|
"NewClient",
|
|
"NewClientCodec",
|
|
"NewServerCodec",
|
|
"ServeConn",
|
|
},
|
|
- "net/smtp": []string{
|
|
+ "net/smtp": {
|
|
"Auth",
|
|
"CRAMMD5Auth",
|
|
"Client",
|
|
@@ -4382,7 +4643,7 @@ var stdlib = map[string][]string{
|
|
"SendMail",
|
|
"ServerInfo",
|
|
},
|
|
- "net/textproto": []string{
|
|
+ "net/textproto": {
|
|
"CanonicalMIMEHeaderKey",
|
|
"Conn",
|
|
"Dial",
|
|
@@ -4398,10 +4659,11 @@ var stdlib = map[string][]string{
|
|
"TrimString",
|
|
"Writer",
|
|
},
|
|
- "net/url": []string{
|
|
+ "net/url": {
|
|
"Error",
|
|
"EscapeError",
|
|
"InvalidHostError",
|
|
+ "JoinPath",
|
|
"Parse",
|
|
"ParseQuery",
|
|
"ParseRequestURI",
|
|
@@ -4415,7 +4677,7 @@ var stdlib = map[string][]string{
|
|
"Userinfo",
|
|
"Values",
|
|
},
|
|
- "os": []string{
|
|
+ "os": {
|
|
"Args",
|
|
"Chdir",
|
|
"Chmod",
|
|
@@ -4531,16 +4793,18 @@ var stdlib = map[string][]string{
|
|
"UserHomeDir",
|
|
"WriteFile",
|
|
},
|
|
- "os/exec": []string{
|
|
+ "os/exec": {
|
|
"Cmd",
|
|
"Command",
|
|
"CommandContext",
|
|
+ "ErrDot",
|
|
"ErrNotFound",
|
|
+ "ErrWaitDelay",
|
|
"Error",
|
|
"ExitError",
|
|
"LookPath",
|
|
},
|
|
- "os/signal": []string{
|
|
+ "os/signal": {
|
|
"Ignore",
|
|
"Ignored",
|
|
"Notify",
|
|
@@ -4548,7 +4812,7 @@ var stdlib = map[string][]string{
|
|
"Reset",
|
|
"Stop",
|
|
},
|
|
- "os/user": []string{
|
|
+ "os/user": {
|
|
"Current",
|
|
"Group",
|
|
"Lookup",
|
|
@@ -4561,7 +4825,7 @@ var stdlib = map[string][]string{
|
|
"UnknownUserIdError",
|
|
"User",
|
|
},
|
|
- "path": []string{
|
|
+ "path": {
|
|
"Base",
|
|
"Clean",
|
|
"Dir",
|
|
@@ -4572,7 +4836,7 @@ var stdlib = map[string][]string{
|
|
"Match",
|
|
"Split",
|
|
},
|
|
- "path/filepath": []string{
|
|
+ "path/filepath": {
|
|
"Abs",
|
|
"Base",
|
|
"Clean",
|
|
@@ -4584,11 +4848,13 @@ var stdlib = map[string][]string{
|
|
"Glob",
|
|
"HasPrefix",
|
|
"IsAbs",
|
|
+ "IsLocal",
|
|
"Join",
|
|
"ListSeparator",
|
|
"Match",
|
|
"Rel",
|
|
"Separator",
|
|
+ "SkipAll",
|
|
"SkipDir",
|
|
"Split",
|
|
"SplitList",
|
|
@@ -4598,12 +4864,12 @@ var stdlib = map[string][]string{
|
|
"WalkDir",
|
|
"WalkFunc",
|
|
},
|
|
- "plugin": []string{
|
|
+ "plugin": {
|
|
"Open",
|
|
"Plugin",
|
|
"Symbol",
|
|
},
|
|
- "reflect": []string{
|
|
+ "reflect": {
|
|
"Append",
|
|
"AppendSlice",
|
|
"Array",
|
|
@@ -4676,7 +4942,7 @@ var stdlib = map[string][]string{
|
|
"VisibleFields",
|
|
"Zero",
|
|
},
|
|
- "regexp": []string{
|
|
+ "regexp": {
|
|
"Compile",
|
|
"CompilePOSIX",
|
|
"Match",
|
|
@@ -4687,7 +4953,7 @@ var stdlib = map[string][]string{
|
|
"QuoteMeta",
|
|
"Regexp",
|
|
},
|
|
- "regexp/syntax": []string{
|
|
+ "regexp/syntax": {
|
|
"ClassNL",
|
|
"Compile",
|
|
"DotNL",
|
|
@@ -4708,9 +4974,11 @@ var stdlib = map[string][]string{
|
|
"ErrInvalidRepeatOp",
|
|
"ErrInvalidRepeatSize",
|
|
"ErrInvalidUTF8",
|
|
+ "ErrLarge",
|
|
"ErrMissingBracket",
|
|
"ErrMissingParen",
|
|
"ErrMissingRepeatArgument",
|
|
+ "ErrNestingDepth",
|
|
"ErrTrailingBackslash",
|
|
"ErrUnexpectedParen",
|
|
"Error",
|
|
@@ -4765,7 +5033,7 @@ var stdlib = map[string][]string{
|
|
"UnicodeGroups",
|
|
"WasDollar",
|
|
},
|
|
- "runtime": []string{
|
|
+ "runtime": {
|
|
"BlockProfile",
|
|
"BlockProfileRecord",
|
|
"Breakpoint",
|
|
@@ -4813,11 +5081,19 @@ var stdlib = map[string][]string{
|
|
"UnlockOSThread",
|
|
"Version",
|
|
},
|
|
- "runtime/cgo": []string{
|
|
+ "runtime/cgo": {
|
|
"Handle",
|
|
+ "Incomplete",
|
|
"NewHandle",
|
|
},
|
|
- "runtime/debug": []string{
|
|
+ "runtime/coverage": {
|
|
+ "ClearCounters",
|
|
+ "WriteCounters",
|
|
+ "WriteCountersDir",
|
|
+ "WriteMeta",
|
|
+ "WriteMetaDir",
|
|
+ },
|
|
+ "runtime/debug": {
|
|
"BuildInfo",
|
|
"FreeOSMemory",
|
|
"GCStats",
|
|
@@ -4828,12 +5104,13 @@ var stdlib = map[string][]string{
|
|
"SetGCPercent",
|
|
"SetMaxStack",
|
|
"SetMaxThreads",
|
|
+ "SetMemoryLimit",
|
|
"SetPanicOnFault",
|
|
"SetTraceback",
|
|
"Stack",
|
|
"WriteHeapDump",
|
|
},
|
|
- "runtime/metrics": []string{
|
|
+ "runtime/metrics": {
|
|
"All",
|
|
"Description",
|
|
"Float64Histogram",
|
|
@@ -4846,7 +5123,7 @@ var stdlib = map[string][]string{
|
|
"Value",
|
|
"ValueKind",
|
|
},
|
|
- "runtime/pprof": []string{
|
|
+ "runtime/pprof": {
|
|
"Do",
|
|
"ForLabels",
|
|
"Label",
|
|
@@ -4862,7 +5139,7 @@ var stdlib = map[string][]string{
|
|
"WithLabels",
|
|
"WriteHeapProfile",
|
|
},
|
|
- "runtime/trace": []string{
|
|
+ "runtime/trace": {
|
|
"IsEnabled",
|
|
"Log",
|
|
"Logf",
|
|
@@ -4874,7 +5151,8 @@ var stdlib = map[string][]string{
|
|
"Task",
|
|
"WithRegion",
|
|
},
|
|
- "sort": []string{
|
|
+ "sort": {
|
|
+ "Find",
|
|
"Float64Slice",
|
|
"Float64s",
|
|
"Float64sAreSorted",
|
|
@@ -4897,7 +5175,7 @@ var stdlib = map[string][]string{
|
|
"Strings",
|
|
"StringsAreSorted",
|
|
},
|
|
- "strconv": []string{
|
|
+ "strconv": {
|
|
"AppendBool",
|
|
"AppendFloat",
|
|
"AppendInt",
|
|
@@ -4937,13 +5215,16 @@ var stdlib = map[string][]string{
|
|
"Unquote",
|
|
"UnquoteChar",
|
|
},
|
|
- "strings": []string{
|
|
+ "strings": {
|
|
"Builder",
|
|
"Compare",
|
|
"Contains",
|
|
"ContainsAny",
|
|
"ContainsRune",
|
|
"Count",
|
|
+ "Cut",
|
|
+ "CutPrefix",
|
|
+ "CutSuffix",
|
|
"EqualFold",
|
|
"Fields",
|
|
"FieldsFunc",
|
|
@@ -4989,7 +5270,7 @@ var stdlib = map[string][]string{
|
|
"TrimSpace",
|
|
"TrimSuffix",
|
|
},
|
|
- "sync": []string{
|
|
+ "sync": {
|
|
"Cond",
|
|
"Locker",
|
|
"Map",
|
|
@@ -5000,24 +5281,28 @@ var stdlib = map[string][]string{
|
|
"RWMutex",
|
|
"WaitGroup",
|
|
},
|
|
- "sync/atomic": []string{
|
|
+ "sync/atomic": {
|
|
"AddInt32",
|
|
"AddInt64",
|
|
"AddUint32",
|
|
"AddUint64",
|
|
"AddUintptr",
|
|
+ "Bool",
|
|
"CompareAndSwapInt32",
|
|
"CompareAndSwapInt64",
|
|
"CompareAndSwapPointer",
|
|
"CompareAndSwapUint32",
|
|
"CompareAndSwapUint64",
|
|
"CompareAndSwapUintptr",
|
|
+ "Int32",
|
|
+ "Int64",
|
|
"LoadInt32",
|
|
"LoadInt64",
|
|
"LoadPointer",
|
|
"LoadUint32",
|
|
"LoadUint64",
|
|
"LoadUintptr",
|
|
+ "Pointer",
|
|
"StoreInt32",
|
|
"StoreInt64",
|
|
"StorePointer",
|
|
@@ -5030,9 +5315,12 @@ var stdlib = map[string][]string{
|
|
"SwapUint32",
|
|
"SwapUint64",
|
|
"SwapUintptr",
|
|
+ "Uint32",
|
|
+ "Uint64",
|
|
+ "Uintptr",
|
|
"Value",
|
|
},
|
|
- "syscall": []string{
|
|
+ "syscall": {
|
|
"AF_ALG",
|
|
"AF_APPLETALK",
|
|
"AF_ARP",
|
|
@@ -5106,6 +5394,7 @@ var stdlib = map[string][]string{
|
|
"AF_TIPC",
|
|
"AF_UNIX",
|
|
"AF_UNSPEC",
|
|
+ "AF_UTUN",
|
|
"AF_VENDOR00",
|
|
"AF_VENDOR01",
|
|
"AF_VENDOR02",
|
|
@@ -5444,20 +5733,25 @@ var stdlib = map[string][]string{
|
|
"CLOCAL",
|
|
"CLONE_CHILD_CLEARTID",
|
|
"CLONE_CHILD_SETTID",
|
|
+ "CLONE_CLEAR_SIGHAND",
|
|
"CLONE_CSIGNAL",
|
|
"CLONE_DETACHED",
|
|
"CLONE_FILES",
|
|
"CLONE_FS",
|
|
+ "CLONE_INTO_CGROUP",
|
|
"CLONE_IO",
|
|
+ "CLONE_NEWCGROUP",
|
|
"CLONE_NEWIPC",
|
|
"CLONE_NEWNET",
|
|
"CLONE_NEWNS",
|
|
"CLONE_NEWPID",
|
|
+ "CLONE_NEWTIME",
|
|
"CLONE_NEWUSER",
|
|
"CLONE_NEWUTS",
|
|
"CLONE_PARENT",
|
|
"CLONE_PARENT_SETTID",
|
|
"CLONE_PID",
|
|
+ "CLONE_PIDFD",
|
|
"CLONE_PTRACE",
|
|
"CLONE_SETTLS",
|
|
"CLONE_SIGHAND",
|
|
@@ -6000,6 +6294,7 @@ var stdlib = map[string][]string{
|
|
"EPROTONOSUPPORT",
|
|
"EPROTOTYPE",
|
|
"EPWROFF",
|
|
+ "EQFULL",
|
|
"ERANGE",
|
|
"EREMCHG",
|
|
"EREMOTE",
|
|
@@ -6426,6 +6721,7 @@ var stdlib = map[string][]string{
|
|
"F_DUPFD",
|
|
"F_DUPFD_CLOEXEC",
|
|
"F_EXLCK",
|
|
+ "F_FINDSIGS",
|
|
"F_FLUSH_DATA",
|
|
"F_FREEZE_FS",
|
|
"F_FSCTL",
|
|
@@ -6436,6 +6732,7 @@ var stdlib = map[string][]string{
|
|
"F_FSPRIV",
|
|
"F_FSVOID",
|
|
"F_FULLFSYNC",
|
|
+ "F_GETCODEDIR",
|
|
"F_GETFD",
|
|
"F_GETFL",
|
|
"F_GETLEASE",
|
|
@@ -6449,6 +6746,7 @@ var stdlib = map[string][]string{
|
|
"F_GETPATH_MTMINFO",
|
|
"F_GETPIPE_SZ",
|
|
"F_GETPROTECTIONCLASS",
|
|
+ "F_GETPROTECTIONLEVEL",
|
|
"F_GETSIG",
|
|
"F_GLOBAL_NOCACHE",
|
|
"F_LOCK",
|
|
@@ -6481,6 +6779,7 @@ var stdlib = map[string][]string{
|
|
"F_SETLK64",
|
|
"F_SETLKW",
|
|
"F_SETLKW64",
|
|
+ "F_SETLKWTIMEOUT",
|
|
"F_SETLK_REMOTE",
|
|
"F_SETNOSIGPIPE",
|
|
"F_SETOWN",
|
|
@@ -6490,9 +6789,11 @@ var stdlib = map[string][]string{
|
|
"F_SETSIG",
|
|
"F_SETSIZE",
|
|
"F_SHLCK",
|
|
+ "F_SINGLE_WRITER",
|
|
"F_TEST",
|
|
"F_THAW_FS",
|
|
"F_TLOCK",
|
|
+ "F_TRANSCODEKEY",
|
|
"F_ULOCK",
|
|
"F_UNLCK",
|
|
"F_UNLCKSYS",
|
|
@@ -7688,12 +7989,20 @@ var stdlib = map[string][]string{
|
|
"NOFLSH",
|
|
"NOTE_ABSOLUTE",
|
|
"NOTE_ATTRIB",
|
|
+ "NOTE_BACKGROUND",
|
|
"NOTE_CHILD",
|
|
+ "NOTE_CRITICAL",
|
|
"NOTE_DELETE",
|
|
"NOTE_EOF",
|
|
"NOTE_EXEC",
|
|
"NOTE_EXIT",
|
|
"NOTE_EXITSTATUS",
|
|
+ "NOTE_EXIT_CSERROR",
|
|
+ "NOTE_EXIT_DECRYPTFAIL",
|
|
+ "NOTE_EXIT_DETAIL",
|
|
+ "NOTE_EXIT_DETAIL_MASK",
|
|
+ "NOTE_EXIT_MEMORY",
|
|
+ "NOTE_EXIT_REPARENTED",
|
|
"NOTE_EXTEND",
|
|
"NOTE_FFAND",
|
|
"NOTE_FFCOPY",
|
|
@@ -7702,6 +8011,7 @@ var stdlib = map[string][]string{
|
|
"NOTE_FFNOP",
|
|
"NOTE_FFOR",
|
|
"NOTE_FORK",
|
|
+ "NOTE_LEEWAY",
|
|
"NOTE_LINK",
|
|
"NOTE_LOWAT",
|
|
"NOTE_NONE",
|
|
@@ -7780,6 +8090,7 @@ var stdlib = map[string][]string{
|
|
"O_CREAT",
|
|
"O_DIRECT",
|
|
"O_DIRECTORY",
|
|
+ "O_DP_GETRAWENCRYPTED",
|
|
"O_DSYNC",
|
|
"O_EVTONLY",
|
|
"O_EXCL",
|
|
@@ -8069,6 +8380,7 @@ var stdlib = map[string][]string{
|
|
"RLIMIT_AS",
|
|
"RLIMIT_CORE",
|
|
"RLIMIT_CPU",
|
|
+ "RLIMIT_CPU_USAGE_MONITOR",
|
|
"RLIMIT_DATA",
|
|
"RLIMIT_FSIZE",
|
|
"RLIMIT_NOFILE",
|
|
@@ -8181,9 +8493,11 @@ var stdlib = map[string][]string{
|
|
"RTF_PROTO1",
|
|
"RTF_PROTO2",
|
|
"RTF_PROTO3",
|
|
+ "RTF_PROXY",
|
|
"RTF_REINSTATE",
|
|
"RTF_REJECT",
|
|
"RTF_RNH_LOCKED",
|
|
+ "RTF_ROUTER",
|
|
"RTF_SOURCE",
|
|
"RTF_SRC",
|
|
"RTF_STATIC",
|
|
@@ -8702,6 +9016,7 @@ var stdlib = map[string][]string{
|
|
"SO_NO_OFFLOAD",
|
|
"SO_NP_EXTENSIONS",
|
|
"SO_NREAD",
|
|
+ "SO_NUMRCVPKT",
|
|
"SO_NWRITE",
|
|
"SO_OOBINLINE",
|
|
"SO_OVERFLOWED",
|
|
@@ -8871,6 +9186,7 @@ var stdlib = map[string][]string{
|
|
"SYS_CREAT",
|
|
"SYS_CREATE_MODULE",
|
|
"SYS_CSOPS",
|
|
+ "SYS_CSOPS_AUDITTOKEN",
|
|
"SYS_DELETE",
|
|
"SYS_DELETE_MODULE",
|
|
"SYS_DUP",
|
|
@@ -9057,6 +9373,7 @@ var stdlib = map[string][]string{
|
|
"SYS_JAIL_GET",
|
|
"SYS_JAIL_REMOVE",
|
|
"SYS_JAIL_SET",
|
|
+ "SYS_KAS_INFO",
|
|
"SYS_KDEBUG_TRACE",
|
|
"SYS_KENV",
|
|
"SYS_KEVENT",
|
|
@@ -9084,6 +9401,7 @@ var stdlib = map[string][]string{
|
|
"SYS_LCHMOD",
|
|
"SYS_LCHOWN",
|
|
"SYS_LCHOWN32",
|
|
+ "SYS_LEDGER",
|
|
"SYS_LGETFH",
|
|
"SYS_LGETXATTR",
|
|
"SYS_LINK",
|
|
@@ -9180,6 +9498,7 @@ var stdlib = map[string][]string{
|
|
"SYS_OPENAT",
|
|
"SYS_OPENBSD_POLL",
|
|
"SYS_OPEN_BY_HANDLE_AT",
|
|
+ "SYS_OPEN_DPROTECTED_NP",
|
|
"SYS_OPEN_EXTENDED",
|
|
"SYS_OPEN_NOCANCEL",
|
|
"SYS_OVADVISE",
|
|
@@ -9811,6 +10130,7 @@ var stdlib = map[string][]string{
|
|
"TCP_CONNECTIONTIMEOUT",
|
|
"TCP_CORK",
|
|
"TCP_DEFER_ACCEPT",
|
|
+ "TCP_ENABLE_ECN",
|
|
"TCP_INFO",
|
|
"TCP_KEEPALIVE",
|
|
"TCP_KEEPCNT",
|
|
@@ -9833,11 +10153,13 @@ var stdlib = map[string][]string{
|
|
"TCP_NODELAY",
|
|
"TCP_NOOPT",
|
|
"TCP_NOPUSH",
|
|
+ "TCP_NOTSENT_LOWAT",
|
|
"TCP_NSTATES",
|
|
"TCP_QUICKACK",
|
|
"TCP_RXT_CONNDROPTIME",
|
|
"TCP_RXT_FINDROP",
|
|
"TCP_SACK_ENABLE",
|
|
+ "TCP_SENDMOREACKS",
|
|
"TCP_SYNCNT",
|
|
"TCP_VENDOR",
|
|
"TCP_WINDOW_CLAMP",
|
|
@@ -10181,7 +10503,7 @@ var stdlib = map[string][]string{
|
|
"XP1_UNI_RECV",
|
|
"XP1_UNI_SEND",
|
|
},
|
|
- "syscall/js": []string{
|
|
+ "syscall/js": {
|
|
"CopyBytesToGo",
|
|
"CopyBytesToJS",
|
|
"Error",
|
|
@@ -10204,7 +10526,7 @@ var stdlib = map[string][]string{
|
|
"ValueOf",
|
|
"Wrapper",
|
|
},
|
|
- "testing": []string{
|
|
+ "testing": {
|
|
"AllocsPerRun",
|
|
"B",
|
|
"Benchmark",
|
|
@@ -10230,12 +10552,12 @@ var stdlib = map[string][]string{
|
|
"TB",
|
|
"Verbose",
|
|
},
|
|
- "testing/fstest": []string{
|
|
+ "testing/fstest": {
|
|
"MapFS",
|
|
"MapFile",
|
|
"TestFS",
|
|
},
|
|
- "testing/iotest": []string{
|
|
+ "testing/iotest": {
|
|
"DataErrReader",
|
|
"ErrReader",
|
|
"ErrTimeout",
|
|
@@ -10247,7 +10569,7 @@ var stdlib = map[string][]string{
|
|
"TimeoutReader",
|
|
"TruncateWriter",
|
|
},
|
|
- "testing/quick": []string{
|
|
+ "testing/quick": {
|
|
"Check",
|
|
"CheckEqual",
|
|
"CheckEqualError",
|
|
@@ -10257,7 +10579,7 @@ var stdlib = map[string][]string{
|
|
"SetupError",
|
|
"Value",
|
|
},
|
|
- "text/scanner": []string{
|
|
+ "text/scanner": {
|
|
"Char",
|
|
"Comment",
|
|
"EOF",
|
|
@@ -10280,7 +10602,7 @@ var stdlib = map[string][]string{
|
|
"String",
|
|
"TokenString",
|
|
},
|
|
- "text/tabwriter": []string{
|
|
+ "text/tabwriter": {
|
|
"AlignRight",
|
|
"Debug",
|
|
"DiscardEmptyColumns",
|
|
@@ -10291,7 +10613,7 @@ var stdlib = map[string][]string{
|
|
"TabIndent",
|
|
"Writer",
|
|
},
|
|
- "text/template": []string{
|
|
+ "text/template": {
|
|
"ExecError",
|
|
"FuncMap",
|
|
"HTMLEscape",
|
|
@@ -10309,7 +10631,7 @@ var stdlib = map[string][]string{
|
|
"Template",
|
|
"URLQueryEscaper",
|
|
},
|
|
- "text/template/parse": []string{
|
|
+ "text/template/parse": {
|
|
"ActionNode",
|
|
"BoolNode",
|
|
"BranchNode",
|
|
@@ -10361,13 +10683,15 @@ var stdlib = map[string][]string{
|
|
"VariableNode",
|
|
"WithNode",
|
|
},
|
|
- "time": []string{
|
|
+ "time": {
|
|
"ANSIC",
|
|
"After",
|
|
"AfterFunc",
|
|
"April",
|
|
"August",
|
|
"Date",
|
|
+ "DateOnly",
|
|
+ "DateTime",
|
|
"December",
|
|
"Duration",
|
|
"February",
|
|
@@ -10422,6 +10746,7 @@ var stdlib = map[string][]string{
|
|
"Tick",
|
|
"Ticker",
|
|
"Time",
|
|
+ "TimeOnly",
|
|
"Timer",
|
|
"Tuesday",
|
|
"UTC",
|
|
@@ -10433,7 +10758,7 @@ var stdlib = map[string][]string{
|
|
"Wednesday",
|
|
"Weekday",
|
|
},
|
|
- "unicode": []string{
|
|
+ "unicode": {
|
|
"ASCII_Hex_Digit",
|
|
"Adlam",
|
|
"Ahom",
|
|
@@ -10719,14 +11044,16 @@ var stdlib = map[string][]string{
|
|
"Zp",
|
|
"Zs",
|
|
},
|
|
- "unicode/utf16": []string{
|
|
+ "unicode/utf16": {
|
|
+ "AppendRune",
|
|
"Decode",
|
|
"DecodeRune",
|
|
"Encode",
|
|
"EncodeRune",
|
|
"IsSurrogate",
|
|
},
|
|
- "unicode/utf8": []string{
|
|
+ "unicode/utf8": {
|
|
+ "AppendRune",
|
|
"DecodeLastRune",
|
|
"DecodeLastRuneInString",
|
|
"DecodeRune",
|
|
@@ -10746,11 +11073,15 @@ var stdlib = map[string][]string{
|
|
"ValidRune",
|
|
"ValidString",
|
|
},
|
|
- "unsafe": []string{
|
|
+ "unsafe": {
|
|
+ "Add",
|
|
"Alignof",
|
|
- "ArbitraryType",
|
|
"Offsetof",
|
|
"Pointer",
|
|
"Sizeof",
|
|
+ "Slice",
|
|
+ "SliceData",
|
|
+ "String",
|
|
+ "StringData",
|
|
},
|
|
}
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/codes.go b/vendor/golang.org/x/tools/internal/pkgbits/codes.go
|
|
new file mode 100644
|
|
index 00000000000..f0cabde96eb
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/codes.go
|
|
@@ -0,0 +1,77 @@
|
|
+// Copyright 2021 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+// A Code is an enum value that can be encoded into bitstreams.
|
|
+//
|
|
+// Code types are preferable for enum types, because they allow
|
|
+// Decoder to detect desyncs.
|
|
+type Code interface {
|
|
+ // Marker returns the SyncMarker for the Code's dynamic type.
|
|
+ Marker() SyncMarker
|
|
+
|
|
+ // Value returns the Code's ordinal value.
|
|
+ Value() int
|
|
+}
|
|
+
|
|
+// A CodeVal distinguishes among go/constant.Value encodings.
|
|
+type CodeVal int
|
|
+
|
|
+func (c CodeVal) Marker() SyncMarker { return SyncVal }
|
|
+func (c CodeVal) Value() int { return int(c) }
|
|
+
|
|
+// Note: These values are public and cannot be changed without
|
|
+// updating the go/types importers.
|
|
+
|
|
+const (
|
|
+ ValBool CodeVal = iota
|
|
+ ValString
|
|
+ ValInt64
|
|
+ ValBigInt
|
|
+ ValBigRat
|
|
+ ValBigFloat
|
|
+)
|
|
+
|
|
+// A CodeType distinguishes among go/types.Type encodings.
|
|
+type CodeType int
|
|
+
|
|
+func (c CodeType) Marker() SyncMarker { return SyncType }
|
|
+func (c CodeType) Value() int { return int(c) }
|
|
+
|
|
+// Note: These values are public and cannot be changed without
|
|
+// updating the go/types importers.
|
|
+
|
|
+const (
|
|
+ TypeBasic CodeType = iota
|
|
+ TypeNamed
|
|
+ TypePointer
|
|
+ TypeSlice
|
|
+ TypeArray
|
|
+ TypeChan
|
|
+ TypeMap
|
|
+ TypeSignature
|
|
+ TypeStruct
|
|
+ TypeInterface
|
|
+ TypeUnion
|
|
+ TypeTypeParam
|
|
+)
|
|
+
|
|
+// A CodeObj distinguishes among go/types.Object encodings.
|
|
+type CodeObj int
|
|
+
|
|
+func (c CodeObj) Marker() SyncMarker { return SyncCodeObj }
|
|
+func (c CodeObj) Value() int { return int(c) }
|
|
+
|
|
+// Note: These values are public and cannot be changed without
|
|
+// updating the go/types importers.
|
|
+
|
|
+const (
|
|
+ ObjAlias CodeObj = iota
|
|
+ ObjConst
|
|
+ ObjType
|
|
+ ObjFunc
|
|
+ ObjVar
|
|
+ ObjStub
|
|
+)
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/decoder.go b/vendor/golang.org/x/tools/internal/pkgbits/decoder.go
|
|
new file mode 100644
|
|
index 00000000000..b92e8e6eb32
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/decoder.go
|
|
@@ -0,0 +1,517 @@
|
|
+// Copyright 2021 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import (
|
|
+ "encoding/binary"
|
|
+ "errors"
|
|
+ "fmt"
|
|
+ "go/constant"
|
|
+ "go/token"
|
|
+ "io"
|
|
+ "math/big"
|
|
+ "os"
|
|
+ "runtime"
|
|
+ "strings"
|
|
+)
|
|
+
|
|
+// A PkgDecoder provides methods for decoding a package's Unified IR
|
|
+// export data.
|
|
+type PkgDecoder struct {
|
|
+ // version is the file format version.
|
|
+ version uint32
|
|
+
|
|
+ // sync indicates whether the file uses sync markers.
|
|
+ sync bool
|
|
+
|
|
+ // pkgPath is the package path for the package to be decoded.
|
|
+ //
|
|
+ // TODO(mdempsky): Remove; unneeded since CL 391014.
|
|
+ pkgPath string
|
|
+
|
|
+ // elemData is the full data payload of the encoded package.
|
|
+ // Elements are densely and contiguously packed together.
|
|
+ //
|
|
+ // The last 8 bytes of elemData are the package fingerprint.
|
|
+ elemData string
|
|
+
|
|
+ // elemEnds stores the byte-offset end positions of element
|
|
+ // bitstreams within elemData.
|
|
+ //
|
|
+ // For example, element I's bitstream data starts at elemEnds[I-1]
|
|
+ // (or 0, if I==0) and ends at elemEnds[I].
|
|
+ //
|
|
+ // Note: elemEnds is indexed by absolute indices, not
|
|
+ // section-relative indices.
|
|
+ elemEnds []uint32
|
|
+
|
|
+ // elemEndsEnds stores the index-offset end positions of relocation
|
|
+ // sections within elemEnds.
|
|
+ //
|
|
+ // For example, section K's end positions start at elemEndsEnds[K-1]
|
|
+ // (or 0, if K==0) and end at elemEndsEnds[K].
|
|
+ elemEndsEnds [numRelocs]uint32
|
|
+
|
|
+ scratchRelocEnt []RelocEnt
|
|
+}
|
|
+
|
|
+// PkgPath returns the package path for the package
|
|
+//
|
|
+// TODO(mdempsky): Remove; unneeded since CL 391014.
|
|
+func (pr *PkgDecoder) PkgPath() string { return pr.pkgPath }
|
|
+
|
|
+// SyncMarkers reports whether pr uses sync markers.
|
|
+func (pr *PkgDecoder) SyncMarkers() bool { return pr.sync }
|
|
+
|
|
+// NewPkgDecoder returns a PkgDecoder initialized to read the Unified
|
|
+// IR export data from input. pkgPath is the package path for the
|
|
+// compilation unit that produced the export data.
|
|
+//
|
|
+// TODO(mdempsky): Remove pkgPath parameter; unneeded since CL 391014.
|
|
+func NewPkgDecoder(pkgPath, input string) PkgDecoder {
|
|
+ pr := PkgDecoder{
|
|
+ pkgPath: pkgPath,
|
|
+ }
|
|
+
|
|
+ // TODO(mdempsky): Implement direct indexing of input string to
|
|
+ // avoid copying the position information.
|
|
+
|
|
+ r := strings.NewReader(input)
|
|
+
|
|
+ assert(binary.Read(r, binary.LittleEndian, &pr.version) == nil)
|
|
+
|
|
+ switch pr.version {
|
|
+ default:
|
|
+ panic(fmt.Errorf("unsupported version: %v", pr.version))
|
|
+ case 0:
|
|
+ // no flags
|
|
+ case 1:
|
|
+ var flags uint32
|
|
+ assert(binary.Read(r, binary.LittleEndian, &flags) == nil)
|
|
+ pr.sync = flags&flagSyncMarkers != 0
|
|
+ }
|
|
+
|
|
+ assert(binary.Read(r, binary.LittleEndian, pr.elemEndsEnds[:]) == nil)
|
|
+
|
|
+ pr.elemEnds = make([]uint32, pr.elemEndsEnds[len(pr.elemEndsEnds)-1])
|
|
+ assert(binary.Read(r, binary.LittleEndian, pr.elemEnds[:]) == nil)
|
|
+
|
|
+ pos, err := r.Seek(0, io.SeekCurrent)
|
|
+ assert(err == nil)
|
|
+
|
|
+ pr.elemData = input[pos:]
|
|
+ assert(len(pr.elemData)-8 == int(pr.elemEnds[len(pr.elemEnds)-1]))
|
|
+
|
|
+ return pr
|
|
+}
|
|
+
|
|
+// NumElems returns the number of elements in section k.
|
|
+func (pr *PkgDecoder) NumElems(k RelocKind) int {
|
|
+ count := int(pr.elemEndsEnds[k])
|
|
+ if k > 0 {
|
|
+ count -= int(pr.elemEndsEnds[k-1])
|
|
+ }
|
|
+ return count
|
|
+}
|
|
+
|
|
+// TotalElems returns the total number of elements across all sections.
|
|
+func (pr *PkgDecoder) TotalElems() int {
|
|
+ return len(pr.elemEnds)
|
|
+}
|
|
+
|
|
+// Fingerprint returns the package fingerprint.
|
|
+func (pr *PkgDecoder) Fingerprint() [8]byte {
|
|
+ var fp [8]byte
|
|
+ copy(fp[:], pr.elemData[len(pr.elemData)-8:])
|
|
+ return fp
|
|
+}
|
|
+
|
|
+// AbsIdx returns the absolute index for the given (section, index)
|
|
+// pair.
|
|
+func (pr *PkgDecoder) AbsIdx(k RelocKind, idx Index) int {
|
|
+ absIdx := int(idx)
|
|
+ if k > 0 {
|
|
+ absIdx += int(pr.elemEndsEnds[k-1])
|
|
+ }
|
|
+ if absIdx >= int(pr.elemEndsEnds[k]) {
|
|
+ errorf("%v:%v is out of bounds; %v", k, idx, pr.elemEndsEnds)
|
|
+ }
|
|
+ return absIdx
|
|
+}
|
|
+
|
|
+// DataIdx returns the raw element bitstream for the given (section,
|
|
+// index) pair.
|
|
+func (pr *PkgDecoder) DataIdx(k RelocKind, idx Index) string {
|
|
+ absIdx := pr.AbsIdx(k, idx)
|
|
+
|
|
+ var start uint32
|
|
+ if absIdx > 0 {
|
|
+ start = pr.elemEnds[absIdx-1]
|
|
+ }
|
|
+ end := pr.elemEnds[absIdx]
|
|
+
|
|
+ return pr.elemData[start:end]
|
|
+}
|
|
+
|
|
+// StringIdx returns the string value for the given string index.
|
|
+func (pr *PkgDecoder) StringIdx(idx Index) string {
|
|
+ return pr.DataIdx(RelocString, idx)
|
|
+}
|
|
+
|
|
+// NewDecoder returns a Decoder for the given (section, index) pair,
|
|
+// and decodes the given SyncMarker from the element bitstream.
|
|
+func (pr *PkgDecoder) NewDecoder(k RelocKind, idx Index, marker SyncMarker) Decoder {
|
|
+ r := pr.NewDecoderRaw(k, idx)
|
|
+ r.Sync(marker)
|
|
+ return r
|
|
+}
|
|
+
|
|
+// TempDecoder returns a Decoder for the given (section, index) pair,
|
|
+// and decodes the given SyncMarker from the element bitstream.
|
|
+// If possible the Decoder should be RetireDecoder'd when it is no longer
|
|
+// needed, this will avoid heap allocations.
|
|
+func (pr *PkgDecoder) TempDecoder(k RelocKind, idx Index, marker SyncMarker) Decoder {
|
|
+ r := pr.TempDecoderRaw(k, idx)
|
|
+ r.Sync(marker)
|
|
+ return r
|
|
+}
|
|
+
|
|
+func (pr *PkgDecoder) RetireDecoder(d *Decoder) {
|
|
+ pr.scratchRelocEnt = d.Relocs
|
|
+ d.Relocs = nil
|
|
+}
|
|
+
|
|
+// NewDecoderRaw returns a Decoder for the given (section, index) pair.
|
|
+//
|
|
+// Most callers should use NewDecoder instead.
|
|
+func (pr *PkgDecoder) NewDecoderRaw(k RelocKind, idx Index) Decoder {
|
|
+ r := Decoder{
|
|
+ common: pr,
|
|
+ k: k,
|
|
+ Idx: idx,
|
|
+ }
|
|
+
|
|
+ // TODO(mdempsky) r.data.Reset(...) after #44505 is resolved.
|
|
+ r.Data = *strings.NewReader(pr.DataIdx(k, idx))
|
|
+
|
|
+ r.Sync(SyncRelocs)
|
|
+ r.Relocs = make([]RelocEnt, r.Len())
|
|
+ for i := range r.Relocs {
|
|
+ r.Sync(SyncReloc)
|
|
+ r.Relocs[i] = RelocEnt{RelocKind(r.Len()), Index(r.Len())}
|
|
+ }
|
|
+
|
|
+ return r
|
|
+}
|
|
+
|
|
+func (pr *PkgDecoder) TempDecoderRaw(k RelocKind, idx Index) Decoder {
|
|
+ r := Decoder{
|
|
+ common: pr,
|
|
+ k: k,
|
|
+ Idx: idx,
|
|
+ }
|
|
+
|
|
+ r.Data.Reset(pr.DataIdx(k, idx))
|
|
+ r.Sync(SyncRelocs)
|
|
+ l := r.Len()
|
|
+ if cap(pr.scratchRelocEnt) >= l {
|
|
+ r.Relocs = pr.scratchRelocEnt[:l]
|
|
+ pr.scratchRelocEnt = nil
|
|
+ } else {
|
|
+ r.Relocs = make([]RelocEnt, l)
|
|
+ }
|
|
+ for i := range r.Relocs {
|
|
+ r.Sync(SyncReloc)
|
|
+ r.Relocs[i] = RelocEnt{RelocKind(r.Len()), Index(r.Len())}
|
|
+ }
|
|
+
|
|
+ return r
|
|
+}
|
|
+
|
|
+// A Decoder provides methods for decoding an individual element's
|
|
+// bitstream data.
|
|
+type Decoder struct {
|
|
+ common *PkgDecoder
|
|
+
|
|
+ Relocs []RelocEnt
|
|
+ Data strings.Reader
|
|
+
|
|
+ k RelocKind
|
|
+ Idx Index
|
|
+}
|
|
+
|
|
+func (r *Decoder) checkErr(err error) {
|
|
+ if err != nil {
|
|
+ errorf("unexpected decoding error: %w", err)
|
|
+ }
|
|
+}
|
|
+
|
|
+func (r *Decoder) rawUvarint() uint64 {
|
|
+ x, err := readUvarint(&r.Data)
|
|
+ r.checkErr(err)
|
|
+ return x
|
|
+}
|
|
+
|
|
+// readUvarint is a type-specialized copy of encoding/binary.ReadUvarint.
|
|
+// This avoids the interface conversion and thus has better escape properties,
|
|
+// which flows up the stack.
|
|
+func readUvarint(r *strings.Reader) (uint64, error) {
|
|
+ var x uint64
|
|
+ var s uint
|
|
+ for i := 0; i < binary.MaxVarintLen64; i++ {
|
|
+ b, err := r.ReadByte()
|
|
+ if err != nil {
|
|
+ if i > 0 && err == io.EOF {
|
|
+ err = io.ErrUnexpectedEOF
|
|
+ }
|
|
+ return x, err
|
|
+ }
|
|
+ if b < 0x80 {
|
|
+ if i == binary.MaxVarintLen64-1 && b > 1 {
|
|
+ return x, overflow
|
|
+ }
|
|
+ return x | uint64(b)<<s, nil
|
|
+ }
|
|
+ x |= uint64(b&0x7f) << s
|
|
+ s += 7
|
|
+ }
|
|
+ return x, overflow
|
|
+}
|
|
+
|
|
+var overflow = errors.New("pkgbits: readUvarint overflows a 64-bit integer")
|
|
+
|
|
+func (r *Decoder) rawVarint() int64 {
|
|
+ ux := r.rawUvarint()
|
|
+
|
|
+ // Zig-zag decode.
|
|
+ x := int64(ux >> 1)
|
|
+ if ux&1 != 0 {
|
|
+ x = ^x
|
|
+ }
|
|
+ return x
|
|
+}
|
|
+
|
|
+func (r *Decoder) rawReloc(k RelocKind, idx int) Index {
|
|
+ e := r.Relocs[idx]
|
|
+ assert(e.Kind == k)
|
|
+ return e.Idx
|
|
+}
|
|
+
|
|
+// Sync decodes a sync marker from the element bitstream and asserts
|
|
+// that it matches the expected marker.
|
|
+//
|
|
+// If r.common.sync is false, then Sync is a no-op.
|
|
+func (r *Decoder) Sync(mWant SyncMarker) {
|
|
+ if !r.common.sync {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ pos, _ := r.Data.Seek(0, io.SeekCurrent)
|
|
+ mHave := SyncMarker(r.rawUvarint())
|
|
+ writerPCs := make([]int, r.rawUvarint())
|
|
+ for i := range writerPCs {
|
|
+ writerPCs[i] = int(r.rawUvarint())
|
|
+ }
|
|
+
|
|
+ if mHave == mWant {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ // There's some tension here between printing:
|
|
+ //
|
|
+ // (1) full file paths that tools can recognize (e.g., so emacs
|
|
+ // hyperlinks the "file:line" text for easy navigation), or
|
|
+ //
|
|
+ // (2) short file paths that are easier for humans to read (e.g., by
|
|
+ // omitting redundant or irrelevant details, so it's easier to
|
|
+ // focus on the useful bits that remain).
|
|
+ //
|
|
+ // The current formatting favors the former, as it seems more
|
|
+ // helpful in practice. But perhaps the formatting could be improved
|
|
+ // to better address both concerns. For example, use relative file
|
|
+ // paths if they would be shorter, or rewrite file paths to contain
|
|
+ // "$GOROOT" (like objabi.AbsFile does) if tools can be taught how
|
|
+ // to reliably expand that again.
|
|
+
|
|
+ fmt.Printf("export data desync: package %q, section %v, index %v, offset %v\n", r.common.pkgPath, r.k, r.Idx, pos)
|
|
+
|
|
+ fmt.Printf("\nfound %v, written at:\n", mHave)
|
|
+ if len(writerPCs) == 0 {
|
|
+ fmt.Printf("\t[stack trace unavailable; recompile package %q with -d=syncframes]\n", r.common.pkgPath)
|
|
+ }
|
|
+ for _, pc := range writerPCs {
|
|
+ fmt.Printf("\t%s\n", r.common.StringIdx(r.rawReloc(RelocString, pc)))
|
|
+ }
|
|
+
|
|
+ fmt.Printf("\nexpected %v, reading at:\n", mWant)
|
|
+ var readerPCs [32]uintptr // TODO(mdempsky): Dynamically size?
|
|
+ n := runtime.Callers(2, readerPCs[:])
|
|
+ for _, pc := range fmtFrames(readerPCs[:n]...) {
|
|
+ fmt.Printf("\t%s\n", pc)
|
|
+ }
|
|
+
|
|
+ // We already printed a stack trace for the reader, so now we can
|
|
+ // simply exit. Printing a second one with panic or base.Fatalf
|
|
+ // would just be noise.
|
|
+ os.Exit(1)
|
|
+}
|
|
+
|
|
+// Bool decodes and returns a bool value from the element bitstream.
|
|
+func (r *Decoder) Bool() bool {
|
|
+ r.Sync(SyncBool)
|
|
+ x, err := r.Data.ReadByte()
|
|
+ r.checkErr(err)
|
|
+ assert(x < 2)
|
|
+ return x != 0
|
|
+}
|
|
+
|
|
+// Int64 decodes and returns an int64 value from the element bitstream.
|
|
+func (r *Decoder) Int64() int64 {
|
|
+ r.Sync(SyncInt64)
|
|
+ return r.rawVarint()
|
|
+}
|
|
+
|
|
+// Uint64 decodes and returns a uint64 value from the element bitstream.
|
|
+func (r *Decoder) Uint64() uint64 {
|
|
+ r.Sync(SyncUint64)
|
|
+ return r.rawUvarint()
|
|
+}
|
|
+
|
|
+// Len decodes and returns a non-negative int value from the element bitstream.
|
|
+func (r *Decoder) Len() int { x := r.Uint64(); v := int(x); assert(uint64(v) == x); return v }
|
|
+
|
|
+// Int decodes and returns an int value from the element bitstream.
|
|
+func (r *Decoder) Int() int { x := r.Int64(); v := int(x); assert(int64(v) == x); return v }
|
|
+
|
|
+// Uint decodes and returns a uint value from the element bitstream.
|
|
+func (r *Decoder) Uint() uint { x := r.Uint64(); v := uint(x); assert(uint64(v) == x); return v }
|
|
+
|
|
+// Code decodes a Code value from the element bitstream and returns
|
|
+// its ordinal value. It's the caller's responsibility to convert the
|
|
+// result to an appropriate Code type.
|
|
+//
|
|
+// TODO(mdempsky): Ideally this method would have signature "Code[T
|
|
+// Code] T" instead, but we don't allow generic methods and the
|
|
+// compiler can't depend on generics yet anyway.
|
|
+func (r *Decoder) Code(mark SyncMarker) int {
|
|
+ r.Sync(mark)
|
|
+ return r.Len()
|
|
+}
|
|
+
|
|
+// Reloc decodes a relocation of expected section k from the element
|
|
+// bitstream and returns an index to the referenced element.
|
|
+func (r *Decoder) Reloc(k RelocKind) Index {
|
|
+ r.Sync(SyncUseReloc)
|
|
+ return r.rawReloc(k, r.Len())
|
|
+}
|
|
+
|
|
+// String decodes and returns a string value from the element
|
|
+// bitstream.
|
|
+func (r *Decoder) String() string {
|
|
+ r.Sync(SyncString)
|
|
+ return r.common.StringIdx(r.Reloc(RelocString))
|
|
+}
|
|
+
|
|
+// Strings decodes and returns a variable-length slice of strings from
|
|
+// the element bitstream.
|
|
+func (r *Decoder) Strings() []string {
|
|
+ res := make([]string, r.Len())
|
|
+ for i := range res {
|
|
+ res[i] = r.String()
|
|
+ }
|
|
+ return res
|
|
+}
|
|
+
|
|
+// Value decodes and returns a constant.Value from the element
|
|
+// bitstream.
|
|
+func (r *Decoder) Value() constant.Value {
|
|
+ r.Sync(SyncValue)
|
|
+ isComplex := r.Bool()
|
|
+ val := r.scalar()
|
|
+ if isComplex {
|
|
+ val = constant.BinaryOp(val, token.ADD, constant.MakeImag(r.scalar()))
|
|
+ }
|
|
+ return val
|
|
+}
|
|
+
|
|
+func (r *Decoder) scalar() constant.Value {
|
|
+ switch tag := CodeVal(r.Code(SyncVal)); tag {
|
|
+ default:
|
|
+ panic(fmt.Errorf("unexpected scalar tag: %v", tag))
|
|
+
|
|
+ case ValBool:
|
|
+ return constant.MakeBool(r.Bool())
|
|
+ case ValString:
|
|
+ return constant.MakeString(r.String())
|
|
+ case ValInt64:
|
|
+ return constant.MakeInt64(r.Int64())
|
|
+ case ValBigInt:
|
|
+ return constant.Make(r.bigInt())
|
|
+ case ValBigRat:
|
|
+ num := r.bigInt()
|
|
+ denom := r.bigInt()
|
|
+ return constant.Make(new(big.Rat).SetFrac(num, denom))
|
|
+ case ValBigFloat:
|
|
+ return constant.Make(r.bigFloat())
|
|
+ }
|
|
+}
|
|
+
|
|
+func (r *Decoder) bigInt() *big.Int {
|
|
+ v := new(big.Int).SetBytes([]byte(r.String()))
|
|
+ if r.Bool() {
|
|
+ v.Neg(v)
|
|
+ }
|
|
+ return v
|
|
+}
|
|
+
|
|
+func (r *Decoder) bigFloat() *big.Float {
|
|
+ v := new(big.Float).SetPrec(512)
|
|
+ assert(v.UnmarshalText([]byte(r.String())) == nil)
|
|
+ return v
|
|
+}
|
|
+
|
|
+// @@@ Helpers
|
|
+
|
|
+// TODO(mdempsky): These should probably be removed. I think they're a
|
|
+// smell that the export data format is not yet quite right.
|
|
+
|
|
+// PeekPkgPath returns the package path for the specified package
|
|
+// index.
|
|
+func (pr *PkgDecoder) PeekPkgPath(idx Index) string {
|
|
+ var path string
|
|
+ {
|
|
+ r := pr.TempDecoder(RelocPkg, idx, SyncPkgDef)
|
|
+ path = r.String()
|
|
+ pr.RetireDecoder(&r)
|
|
+ }
|
|
+ if path == "" {
|
|
+ path = pr.pkgPath
|
|
+ }
|
|
+ return path
|
|
+}
|
|
+
|
|
+// PeekObj returns the package path, object name, and CodeObj for the
|
|
+// specified object index.
|
|
+func (pr *PkgDecoder) PeekObj(idx Index) (string, string, CodeObj) {
|
|
+ var ridx Index
|
|
+ var name string
|
|
+ var rcode int
|
|
+ {
|
|
+ r := pr.TempDecoder(RelocName, idx, SyncObject1)
|
|
+ r.Sync(SyncSym)
|
|
+ r.Sync(SyncPkg)
|
|
+ ridx = r.Reloc(RelocPkg)
|
|
+ name = r.String()
|
|
+ rcode = r.Code(SyncCodeObj)
|
|
+ pr.RetireDecoder(&r)
|
|
+ }
|
|
+
|
|
+ path := pr.PeekPkgPath(ridx)
|
|
+ assert(name != "")
|
|
+
|
|
+ tag := CodeObj(rcode)
|
|
+
|
|
+ return path, name, tag
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/doc.go b/vendor/golang.org/x/tools/internal/pkgbits/doc.go
|
|
new file mode 100644
|
|
index 00000000000..c8a2796b5e4
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/doc.go
|
|
@@ -0,0 +1,32 @@
|
|
+// Copyright 2022 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+// Package pkgbits implements low-level coding abstractions for
|
|
+// Unified IR's export data format.
|
|
+//
|
|
+// At a low-level, a package is a collection of bitstream elements.
|
|
+// Each element has a "kind" and a dense, non-negative index.
|
|
+// Elements can be randomly accessed given their kind and index.
|
|
+//
|
|
+// Individual elements are sequences of variable-length values (e.g.,
|
|
+// integers, booleans, strings, go/constant values, cross-references
|
|
+// to other elements). Package pkgbits provides APIs for encoding and
|
|
+// decoding these low-level values, but the details of mapping
|
|
+// higher-level Go constructs into elements is left to higher-level
|
|
+// abstractions.
|
|
+//
|
|
+// Elements may cross-reference each other with "relocations." For
|
|
+// example, an element representing a pointer type has a relocation
|
|
+// referring to the element type.
|
|
+//
|
|
+// Go constructs may be composed as a constellation of multiple
|
|
+// elements. For example, a declared function may have one element to
|
|
+// describe the object (e.g., its name, type, position), and a
|
|
+// separate element to describe its function body. This allows readers
|
|
+// some flexibility in efficiently seeking or re-reading data (e.g.,
|
|
+// inlining requires re-reading the function body for each inlined
|
|
+// call, without needing to re-read the object-level details).
|
|
+//
|
|
+// This is a copy of internal/pkgbits in the Go implementation.
|
|
+package pkgbits
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/encoder.go b/vendor/golang.org/x/tools/internal/pkgbits/encoder.go
|
|
new file mode 100644
|
|
index 00000000000..6482617a4fc
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/encoder.go
|
|
@@ -0,0 +1,383 @@
|
|
+// Copyright 2021 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import (
|
|
+ "bytes"
|
|
+ "crypto/md5"
|
|
+ "encoding/binary"
|
|
+ "go/constant"
|
|
+ "io"
|
|
+ "math/big"
|
|
+ "runtime"
|
|
+)
|
|
+
|
|
+// currentVersion is the current version number.
|
|
+//
|
|
+// - v0: initial prototype
|
|
+//
|
|
+// - v1: adds the flags uint32 word
|
|
+const currentVersion uint32 = 1
|
|
+
|
|
+// A PkgEncoder provides methods for encoding a package's Unified IR
|
|
+// export data.
|
|
+type PkgEncoder struct {
|
|
+ // elems holds the bitstream for previously encoded elements.
|
|
+ elems [numRelocs][]string
|
|
+
|
|
+ // stringsIdx maps previously encoded strings to their index within
|
|
+ // the RelocString section, to allow deduplication. That is,
|
|
+ // elems[RelocString][stringsIdx[s]] == s (if present).
|
|
+ stringsIdx map[string]Index
|
|
+
|
|
+ // syncFrames is the number of frames to write at each sync
|
|
+ // marker. A negative value means sync markers are omitted.
|
|
+ syncFrames int
|
|
+}
|
|
+
|
|
+// SyncMarkers reports whether pw uses sync markers.
|
|
+func (pw *PkgEncoder) SyncMarkers() bool { return pw.syncFrames >= 0 }
|
|
+
|
|
+// NewPkgEncoder returns an initialized PkgEncoder.
|
|
+//
|
|
+// syncFrames is the number of caller frames that should be serialized
|
|
+// at Sync points. Serializing additional frames results in larger
|
|
+// export data files, but can help diagnosing desync errors in
|
|
+// higher-level Unified IR reader/writer code. If syncFrames is
|
|
+// negative, then sync markers are omitted entirely.
|
|
+func NewPkgEncoder(syncFrames int) PkgEncoder {
|
|
+ return PkgEncoder{
|
|
+ stringsIdx: make(map[string]Index),
|
|
+ syncFrames: syncFrames,
|
|
+ }
|
|
+}
|
|
+
|
|
+// DumpTo writes the package's encoded data to out0 and returns the
|
|
+// package fingerprint.
|
|
+func (pw *PkgEncoder) DumpTo(out0 io.Writer) (fingerprint [8]byte) {
|
|
+ h := md5.New()
|
|
+ out := io.MultiWriter(out0, h)
|
|
+
|
|
+ writeUint32 := func(x uint32) {
|
|
+ assert(binary.Write(out, binary.LittleEndian, x) == nil)
|
|
+ }
|
|
+
|
|
+ writeUint32(currentVersion)
|
|
+
|
|
+ var flags uint32
|
|
+ if pw.SyncMarkers() {
|
|
+ flags |= flagSyncMarkers
|
|
+ }
|
|
+ writeUint32(flags)
|
|
+
|
|
+ // Write elemEndsEnds.
|
|
+ var sum uint32
|
|
+ for _, elems := range &pw.elems {
|
|
+ sum += uint32(len(elems))
|
|
+ writeUint32(sum)
|
|
+ }
|
|
+
|
|
+ // Write elemEnds.
|
|
+ sum = 0
|
|
+ for _, elems := range &pw.elems {
|
|
+ for _, elem := range elems {
|
|
+ sum += uint32(len(elem))
|
|
+ writeUint32(sum)
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Write elemData.
|
|
+ for _, elems := range &pw.elems {
|
|
+ for _, elem := range elems {
|
|
+ _, err := io.WriteString(out, elem)
|
|
+ assert(err == nil)
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Write fingerprint.
|
|
+ copy(fingerprint[:], h.Sum(nil))
|
|
+ _, err := out0.Write(fingerprint[:])
|
|
+ assert(err == nil)
|
|
+
|
|
+ return
|
|
+}
|
|
+
|
|
+// StringIdx adds a string value to the strings section, if not
|
|
+// already present, and returns its index.
|
|
+func (pw *PkgEncoder) StringIdx(s string) Index {
|
|
+ if idx, ok := pw.stringsIdx[s]; ok {
|
|
+ assert(pw.elems[RelocString][idx] == s)
|
|
+ return idx
|
|
+ }
|
|
+
|
|
+ idx := Index(len(pw.elems[RelocString]))
|
|
+ pw.elems[RelocString] = append(pw.elems[RelocString], s)
|
|
+ pw.stringsIdx[s] = idx
|
|
+ return idx
|
|
+}
|
|
+
|
|
+// NewEncoder returns an Encoder for a new element within the given
|
|
+// section, and encodes the given SyncMarker as the start of the
|
|
+// element bitstream.
|
|
+func (pw *PkgEncoder) NewEncoder(k RelocKind, marker SyncMarker) Encoder {
|
|
+ e := pw.NewEncoderRaw(k)
|
|
+ e.Sync(marker)
|
|
+ return e
|
|
+}
|
|
+
|
|
+// NewEncoderRaw returns an Encoder for a new element within the given
|
|
+// section.
|
|
+//
|
|
+// Most callers should use NewEncoder instead.
|
|
+func (pw *PkgEncoder) NewEncoderRaw(k RelocKind) Encoder {
|
|
+ idx := Index(len(pw.elems[k]))
|
|
+ pw.elems[k] = append(pw.elems[k], "") // placeholder
|
|
+
|
|
+ return Encoder{
|
|
+ p: pw,
|
|
+ k: k,
|
|
+ Idx: idx,
|
|
+ }
|
|
+}
|
|
+
|
|
+// An Encoder provides methods for encoding an individual element's
|
|
+// bitstream data.
|
|
+type Encoder struct {
|
|
+ p *PkgEncoder
|
|
+
|
|
+ Relocs []RelocEnt
|
|
+ RelocMap map[RelocEnt]uint32
|
|
+ Data bytes.Buffer // accumulated element bitstream data
|
|
+
|
|
+ encodingRelocHeader bool
|
|
+
|
|
+ k RelocKind
|
|
+ Idx Index // index within relocation section
|
|
+}
|
|
+
|
|
+// Flush finalizes the element's bitstream and returns its Index.
|
|
+func (w *Encoder) Flush() Index {
|
|
+ var sb bytes.Buffer // TODO(mdempsky): strings.Builder after #44505 is resolved
|
|
+
|
|
+ // Backup the data so we write the relocations at the front.
|
|
+ var tmp bytes.Buffer
|
|
+ io.Copy(&tmp, &w.Data)
|
|
+
|
|
+ // TODO(mdempsky): Consider writing these out separately so they're
|
|
+ // easier to strip, along with function bodies, so that we can prune
|
|
+ // down to just the data that's relevant to go/types.
|
|
+ if w.encodingRelocHeader {
|
|
+ panic("encodingRelocHeader already true; recursive flush?")
|
|
+ }
|
|
+ w.encodingRelocHeader = true
|
|
+ w.Sync(SyncRelocs)
|
|
+ w.Len(len(w.Relocs))
|
|
+ for _, rEnt := range w.Relocs {
|
|
+ w.Sync(SyncReloc)
|
|
+ w.Len(int(rEnt.Kind))
|
|
+ w.Len(int(rEnt.Idx))
|
|
+ }
|
|
+
|
|
+ io.Copy(&sb, &w.Data)
|
|
+ io.Copy(&sb, &tmp)
|
|
+ w.p.elems[w.k][w.Idx] = sb.String()
|
|
+
|
|
+ return w.Idx
|
|
+}
|
|
+
|
|
+func (w *Encoder) checkErr(err error) {
|
|
+ if err != nil {
|
|
+ errorf("unexpected encoding error: %v", err)
|
|
+ }
|
|
+}
|
|
+
|
|
+func (w *Encoder) rawUvarint(x uint64) {
|
|
+ var buf [binary.MaxVarintLen64]byte
|
|
+ n := binary.PutUvarint(buf[:], x)
|
|
+ _, err := w.Data.Write(buf[:n])
|
|
+ w.checkErr(err)
|
|
+}
|
|
+
|
|
+func (w *Encoder) rawVarint(x int64) {
|
|
+ // Zig-zag encode.
|
|
+ ux := uint64(x) << 1
|
|
+ if x < 0 {
|
|
+ ux = ^ux
|
|
+ }
|
|
+
|
|
+ w.rawUvarint(ux)
|
|
+}
|
|
+
|
|
+func (w *Encoder) rawReloc(r RelocKind, idx Index) int {
|
|
+ e := RelocEnt{r, idx}
|
|
+ if w.RelocMap != nil {
|
|
+ if i, ok := w.RelocMap[e]; ok {
|
|
+ return int(i)
|
|
+ }
|
|
+ } else {
|
|
+ w.RelocMap = make(map[RelocEnt]uint32)
|
|
+ }
|
|
+
|
|
+ i := len(w.Relocs)
|
|
+ w.RelocMap[e] = uint32(i)
|
|
+ w.Relocs = append(w.Relocs, e)
|
|
+ return i
|
|
+}
|
|
+
|
|
+func (w *Encoder) Sync(m SyncMarker) {
|
|
+ if !w.p.SyncMarkers() {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ // Writing out stack frame string references requires working
|
|
+ // relocations, but writing out the relocations themselves involves
|
|
+ // sync markers. To prevent infinite recursion, we simply trim the
|
|
+ // stack frame for sync markers within the relocation header.
|
|
+ var frames []string
|
|
+ if !w.encodingRelocHeader && w.p.syncFrames > 0 {
|
|
+ pcs := make([]uintptr, w.p.syncFrames)
|
|
+ n := runtime.Callers(2, pcs)
|
|
+ frames = fmtFrames(pcs[:n]...)
|
|
+ }
|
|
+
|
|
+ // TODO(mdempsky): Save space by writing out stack frames as a
|
|
+ // linked list so we can share common stack frames.
|
|
+ w.rawUvarint(uint64(m))
|
|
+ w.rawUvarint(uint64(len(frames)))
|
|
+ for _, frame := range frames {
|
|
+ w.rawUvarint(uint64(w.rawReloc(RelocString, w.p.StringIdx(frame))))
|
|
+ }
|
|
+}
|
|
+
|
|
+// Bool encodes and writes a bool value into the element bitstream,
|
|
+// and then returns the bool value.
|
|
+//
|
|
+// For simple, 2-alternative encodings, the idiomatic way to call Bool
|
|
+// is something like:
|
|
+//
|
|
+// if w.Bool(x != 0) {
|
|
+// // alternative #1
|
|
+// } else {
|
|
+// // alternative #2
|
|
+// }
|
|
+//
|
|
+// For multi-alternative encodings, use Code instead.
|
|
+func (w *Encoder) Bool(b bool) bool {
|
|
+ w.Sync(SyncBool)
|
|
+ var x byte
|
|
+ if b {
|
|
+ x = 1
|
|
+ }
|
|
+ err := w.Data.WriteByte(x)
|
|
+ w.checkErr(err)
|
|
+ return b
|
|
+}
|
|
+
|
|
+// Int64 encodes and writes an int64 value into the element bitstream.
|
|
+func (w *Encoder) Int64(x int64) {
|
|
+ w.Sync(SyncInt64)
|
|
+ w.rawVarint(x)
|
|
+}
|
|
+
|
|
+// Uint64 encodes and writes a uint64 value into the element bitstream.
|
|
+func (w *Encoder) Uint64(x uint64) {
|
|
+ w.Sync(SyncUint64)
|
|
+ w.rawUvarint(x)
|
|
+}
|
|
+
|
|
+// Len encodes and writes a non-negative int value into the element bitstream.
|
|
+func (w *Encoder) Len(x int) { assert(x >= 0); w.Uint64(uint64(x)) }
|
|
+
|
|
+// Int encodes and writes an int value into the element bitstream.
|
|
+func (w *Encoder) Int(x int) { w.Int64(int64(x)) }
|
|
+
|
|
+// Uint encodes and writes a uint value into the element bitstream.
|
|
+func (w *Encoder) Uint(x uint) { w.Uint64(uint64(x)) }
|
|
+
|
|
+// Reloc encodes and writes a relocation for the given (section,
|
|
+// index) pair into the element bitstream.
|
|
+//
|
|
+// Note: Only the index is formally written into the element
|
|
+// bitstream, so bitstream decoders must know from context which
|
|
+// section an encoded relocation refers to.
|
|
+func (w *Encoder) Reloc(r RelocKind, idx Index) {
|
|
+ w.Sync(SyncUseReloc)
|
|
+ w.Len(w.rawReloc(r, idx))
|
|
+}
|
|
+
|
|
+// Code encodes and writes a Code value into the element bitstream.
|
|
+func (w *Encoder) Code(c Code) {
|
|
+ w.Sync(c.Marker())
|
|
+ w.Len(c.Value())
|
|
+}
|
|
+
|
|
+// String encodes and writes a string value into the element
|
|
+// bitstream.
|
|
+//
|
|
+// Internally, strings are deduplicated by adding them to the strings
|
|
+// section (if not already present), and then writing a relocation
|
|
+// into the element bitstream.
|
|
+func (w *Encoder) String(s string) {
|
|
+ w.Sync(SyncString)
|
|
+ w.Reloc(RelocString, w.p.StringIdx(s))
|
|
+}
|
|
+
|
|
+// Strings encodes and writes a variable-length slice of strings into
|
|
+// the element bitstream.
|
|
+func (w *Encoder) Strings(ss []string) {
|
|
+ w.Len(len(ss))
|
|
+ for _, s := range ss {
|
|
+ w.String(s)
|
|
+ }
|
|
+}
|
|
+
|
|
+// Value encodes and writes a constant.Value into the element
|
|
+// bitstream.
|
|
+func (w *Encoder) Value(val constant.Value) {
|
|
+ w.Sync(SyncValue)
|
|
+ if w.Bool(val.Kind() == constant.Complex) {
|
|
+ w.scalar(constant.Real(val))
|
|
+ w.scalar(constant.Imag(val))
|
|
+ } else {
|
|
+ w.scalar(val)
|
|
+ }
|
|
+}
|
|
+
|
|
+func (w *Encoder) scalar(val constant.Value) {
|
|
+ switch v := constant.Val(val).(type) {
|
|
+ default:
|
|
+ errorf("unhandled %v (%v)", val, val.Kind())
|
|
+ case bool:
|
|
+ w.Code(ValBool)
|
|
+ w.Bool(v)
|
|
+ case string:
|
|
+ w.Code(ValString)
|
|
+ w.String(v)
|
|
+ case int64:
|
|
+ w.Code(ValInt64)
|
|
+ w.Int64(v)
|
|
+ case *big.Int:
|
|
+ w.Code(ValBigInt)
|
|
+ w.bigInt(v)
|
|
+ case *big.Rat:
|
|
+ w.Code(ValBigRat)
|
|
+ w.bigInt(v.Num())
|
|
+ w.bigInt(v.Denom())
|
|
+ case *big.Float:
|
|
+ w.Code(ValBigFloat)
|
|
+ w.bigFloat(v)
|
|
+ }
|
|
+}
|
|
+
|
|
+func (w *Encoder) bigInt(v *big.Int) {
|
|
+ b := v.Bytes()
|
|
+ w.String(string(b)) // TODO: More efficient encoding.
|
|
+ w.Bool(v.Sign() < 0)
|
|
+}
|
|
+
|
|
+func (w *Encoder) bigFloat(v *big.Float) {
|
|
+ b := v.Append(nil, 'p', -1)
|
|
+ w.String(string(b)) // TODO: More efficient encoding.
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/flags.go b/vendor/golang.org/x/tools/internal/pkgbits/flags.go
|
|
new file mode 100644
|
|
index 00000000000..654222745fa
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/flags.go
|
|
@@ -0,0 +1,9 @@
|
|
+// Copyright 2022 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+const (
|
|
+ flagSyncMarkers = 1 << iota // file format contains sync markers
|
|
+)
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/frames_go1.go b/vendor/golang.org/x/tools/internal/pkgbits/frames_go1.go
|
|
new file mode 100644
|
|
index 00000000000..5294f6a63ed
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/frames_go1.go
|
|
@@ -0,0 +1,21 @@
|
|
+// Copyright 2021 The Go Authors. 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 !go1.7
|
|
+// +build !go1.7
|
|
+
|
|
+// TODO(mdempsky): Remove after #44505 is resolved
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import "runtime"
|
|
+
|
|
+func walkFrames(pcs []uintptr, visit frameVisitor) {
|
|
+ for _, pc := range pcs {
|
|
+ fn := runtime.FuncForPC(pc)
|
|
+ file, line := fn.FileLine(pc)
|
|
+
|
|
+ visit(file, line, fn.Name(), pc-fn.Entry())
|
|
+ }
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go b/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
|
|
new file mode 100644
|
|
index 00000000000..2324ae7adfe
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
|
|
@@ -0,0 +1,28 @@
|
|
+// Copyright 2021 The Go Authors. 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 go1.7
|
|
+// +build go1.7
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import "runtime"
|
|
+
|
|
+// walkFrames calls visit for each call frame represented by pcs.
|
|
+//
|
|
+// pcs should be a slice of PCs, as returned by runtime.Callers.
|
|
+func walkFrames(pcs []uintptr, visit frameVisitor) {
|
|
+ if len(pcs) == 0 {
|
|
+ return
|
|
+ }
|
|
+
|
|
+ frames := runtime.CallersFrames(pcs)
|
|
+ for {
|
|
+ frame, more := frames.Next()
|
|
+ visit(frame.File, frame.Line, frame.Function, frame.PC-frame.Entry)
|
|
+ if !more {
|
|
+ return
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/reloc.go b/vendor/golang.org/x/tools/internal/pkgbits/reloc.go
|
|
new file mode 100644
|
|
index 00000000000..fcdfb97ca99
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/reloc.go
|
|
@@ -0,0 +1,42 @@
|
|
+// Copyright 2021 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+// A RelocKind indicates a particular section within a unified IR export.
|
|
+type RelocKind int32
|
|
+
|
|
+// An Index represents a bitstream element index within a particular
|
|
+// section.
|
|
+type Index int32
|
|
+
|
|
+// A relocEnt (relocation entry) is an entry in an element's local
|
|
+// reference table.
|
|
+//
|
|
+// TODO(mdempsky): Rename this too.
|
|
+type RelocEnt struct {
|
|
+ Kind RelocKind
|
|
+ Idx Index
|
|
+}
|
|
+
|
|
+// Reserved indices within the meta relocation section.
|
|
+const (
|
|
+ PublicRootIdx Index = 0
|
|
+ PrivateRootIdx Index = 1
|
|
+)
|
|
+
|
|
+const (
|
|
+ RelocString RelocKind = iota
|
|
+ RelocMeta
|
|
+ RelocPosBase
|
|
+ RelocPkg
|
|
+ RelocName
|
|
+ RelocType
|
|
+ RelocObj
|
|
+ RelocObjExt
|
|
+ RelocObjDict
|
|
+ RelocBody
|
|
+
|
|
+ numRelocs = iota
|
|
+)
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/support.go b/vendor/golang.org/x/tools/internal/pkgbits/support.go
|
|
new file mode 100644
|
|
index 00000000000..ad26d3b28ca
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/support.go
|
|
@@ -0,0 +1,17 @@
|
|
+// Copyright 2022 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import "fmt"
|
|
+
|
|
+func assert(b bool) {
|
|
+ if !b {
|
|
+ panic("assertion failed")
|
|
+ }
|
|
+}
|
|
+
|
|
+func errorf(format string, args ...interface{}) {
|
|
+ panic(fmt.Errorf(format, args...))
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/sync.go b/vendor/golang.org/x/tools/internal/pkgbits/sync.go
|
|
new file mode 100644
|
|
index 00000000000..5bd51ef7170
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/sync.go
|
|
@@ -0,0 +1,113 @@
|
|
+// Copyright 2021 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import (
|
|
+ "fmt"
|
|
+ "strings"
|
|
+)
|
|
+
|
|
+// fmtFrames formats a backtrace for reporting reader/writer desyncs.
|
|
+func fmtFrames(pcs ...uintptr) []string {
|
|
+ res := make([]string, 0, len(pcs))
|
|
+ walkFrames(pcs, func(file string, line int, name string, offset uintptr) {
|
|
+ // Trim package from function name. It's just redundant noise.
|
|
+ name = strings.TrimPrefix(name, "cmd/compile/internal/noder.")
|
|
+
|
|
+ res = append(res, fmt.Sprintf("%s:%v: %s +0x%v", file, line, name, offset))
|
|
+ })
|
|
+ return res
|
|
+}
|
|
+
|
|
+type frameVisitor func(file string, line int, name string, offset uintptr)
|
|
+
|
|
+// SyncMarker is an enum type that represents markers that may be
|
|
+// written to export data to ensure the reader and writer stay
|
|
+// synchronized.
|
|
+type SyncMarker int
|
|
+
|
|
+//go:generate stringer -type=SyncMarker -trimprefix=Sync
|
|
+
|
|
+const (
|
|
+ _ SyncMarker = iota
|
|
+
|
|
+ // Public markers (known to go/types importers).
|
|
+
|
|
+ // Low-level coding markers.
|
|
+ SyncEOF
|
|
+ SyncBool
|
|
+ SyncInt64
|
|
+ SyncUint64
|
|
+ SyncString
|
|
+ SyncValue
|
|
+ SyncVal
|
|
+ SyncRelocs
|
|
+ SyncReloc
|
|
+ SyncUseReloc
|
|
+
|
|
+ // Higher-level object and type markers.
|
|
+ SyncPublic
|
|
+ SyncPos
|
|
+ SyncPosBase
|
|
+ SyncObject
|
|
+ SyncObject1
|
|
+ SyncPkg
|
|
+ SyncPkgDef
|
|
+ SyncMethod
|
|
+ SyncType
|
|
+ SyncTypeIdx
|
|
+ SyncTypeParamNames
|
|
+ SyncSignature
|
|
+ SyncParams
|
|
+ SyncParam
|
|
+ SyncCodeObj
|
|
+ SyncSym
|
|
+ SyncLocalIdent
|
|
+ SyncSelector
|
|
+
|
|
+ // Private markers (only known to cmd/compile).
|
|
+ SyncPrivate
|
|
+
|
|
+ SyncFuncExt
|
|
+ SyncVarExt
|
|
+ SyncTypeExt
|
|
+ SyncPragma
|
|
+
|
|
+ SyncExprList
|
|
+ SyncExprs
|
|
+ SyncExpr
|
|
+ SyncExprType
|
|
+ SyncAssign
|
|
+ SyncOp
|
|
+ SyncFuncLit
|
|
+ SyncCompLit
|
|
+
|
|
+ SyncDecl
|
|
+ SyncFuncBody
|
|
+ SyncOpenScope
|
|
+ SyncCloseScope
|
|
+ SyncCloseAnotherScope
|
|
+ SyncDeclNames
|
|
+ SyncDeclName
|
|
+
|
|
+ SyncStmts
|
|
+ SyncBlockStmt
|
|
+ SyncIfStmt
|
|
+ SyncForStmt
|
|
+ SyncSwitchStmt
|
|
+ SyncRangeStmt
|
|
+ SyncCaseClause
|
|
+ SyncCommClause
|
|
+ SyncSelectStmt
|
|
+ SyncDecls
|
|
+ SyncLabeledStmt
|
|
+ SyncUseObjLocal
|
|
+ SyncAddLocal
|
|
+ SyncLinkname
|
|
+ SyncStmt1
|
|
+ SyncStmtsEnd
|
|
+ SyncLabel
|
|
+ SyncOptLabel
|
|
+)
|
|
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/syncmarker_string.go b/vendor/golang.org/x/tools/internal/pkgbits/syncmarker_string.go
|
|
new file mode 100644
|
|
index 00000000000..4a5b0ca5f2f
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/pkgbits/syncmarker_string.go
|
|
@@ -0,0 +1,89 @@
|
|
+// Code generated by "stringer -type=SyncMarker -trimprefix=Sync"; DO NOT EDIT.
|
|
+
|
|
+package pkgbits
|
|
+
|
|
+import "strconv"
|
|
+
|
|
+func _() {
|
|
+ // An "invalid array index" compiler error signifies that the constant values have changed.
|
|
+ // Re-run the stringer command to generate them again.
|
|
+ var x [1]struct{}
|
|
+ _ = x[SyncEOF-1]
|
|
+ _ = x[SyncBool-2]
|
|
+ _ = x[SyncInt64-3]
|
|
+ _ = x[SyncUint64-4]
|
|
+ _ = x[SyncString-5]
|
|
+ _ = x[SyncValue-6]
|
|
+ _ = x[SyncVal-7]
|
|
+ _ = x[SyncRelocs-8]
|
|
+ _ = x[SyncReloc-9]
|
|
+ _ = x[SyncUseReloc-10]
|
|
+ _ = x[SyncPublic-11]
|
|
+ _ = x[SyncPos-12]
|
|
+ _ = x[SyncPosBase-13]
|
|
+ _ = x[SyncObject-14]
|
|
+ _ = x[SyncObject1-15]
|
|
+ _ = x[SyncPkg-16]
|
|
+ _ = x[SyncPkgDef-17]
|
|
+ _ = x[SyncMethod-18]
|
|
+ _ = x[SyncType-19]
|
|
+ _ = x[SyncTypeIdx-20]
|
|
+ _ = x[SyncTypeParamNames-21]
|
|
+ _ = x[SyncSignature-22]
|
|
+ _ = x[SyncParams-23]
|
|
+ _ = x[SyncParam-24]
|
|
+ _ = x[SyncCodeObj-25]
|
|
+ _ = x[SyncSym-26]
|
|
+ _ = x[SyncLocalIdent-27]
|
|
+ _ = x[SyncSelector-28]
|
|
+ _ = x[SyncPrivate-29]
|
|
+ _ = x[SyncFuncExt-30]
|
|
+ _ = x[SyncVarExt-31]
|
|
+ _ = x[SyncTypeExt-32]
|
|
+ _ = x[SyncPragma-33]
|
|
+ _ = x[SyncExprList-34]
|
|
+ _ = x[SyncExprs-35]
|
|
+ _ = x[SyncExpr-36]
|
|
+ _ = x[SyncExprType-37]
|
|
+ _ = x[SyncAssign-38]
|
|
+ _ = x[SyncOp-39]
|
|
+ _ = x[SyncFuncLit-40]
|
|
+ _ = x[SyncCompLit-41]
|
|
+ _ = x[SyncDecl-42]
|
|
+ _ = x[SyncFuncBody-43]
|
|
+ _ = x[SyncOpenScope-44]
|
|
+ _ = x[SyncCloseScope-45]
|
|
+ _ = x[SyncCloseAnotherScope-46]
|
|
+ _ = x[SyncDeclNames-47]
|
|
+ _ = x[SyncDeclName-48]
|
|
+ _ = x[SyncStmts-49]
|
|
+ _ = x[SyncBlockStmt-50]
|
|
+ _ = x[SyncIfStmt-51]
|
|
+ _ = x[SyncForStmt-52]
|
|
+ _ = x[SyncSwitchStmt-53]
|
|
+ _ = x[SyncRangeStmt-54]
|
|
+ _ = x[SyncCaseClause-55]
|
|
+ _ = x[SyncCommClause-56]
|
|
+ _ = x[SyncSelectStmt-57]
|
|
+ _ = x[SyncDecls-58]
|
|
+ _ = x[SyncLabeledStmt-59]
|
|
+ _ = x[SyncUseObjLocal-60]
|
|
+ _ = x[SyncAddLocal-61]
|
|
+ _ = x[SyncLinkname-62]
|
|
+ _ = x[SyncStmt1-63]
|
|
+ _ = x[SyncStmtsEnd-64]
|
|
+ _ = x[SyncLabel-65]
|
|
+ _ = x[SyncOptLabel-66]
|
|
+}
|
|
+
|
|
+const _SyncMarker_name = "EOFBoolInt64Uint64StringValueValRelocsRelocUseRelocPublicPosPosBaseObjectObject1PkgPkgDefMethodTypeTypeIdxTypeParamNamesSignatureParamsParamCodeObjSymLocalIdentSelectorPrivateFuncExtVarExtTypeExtPragmaExprListExprsExprExprTypeAssignOpFuncLitCompLitDeclFuncBodyOpenScopeCloseScopeCloseAnotherScopeDeclNamesDeclNameStmtsBlockStmtIfStmtForStmtSwitchStmtRangeStmtCaseClauseCommClauseSelectStmtDeclsLabeledStmtUseObjLocalAddLocalLinknameStmt1StmtsEndLabelOptLabel"
|
|
+
|
|
+var _SyncMarker_index = [...]uint16{0, 3, 7, 12, 18, 24, 29, 32, 38, 43, 51, 57, 60, 67, 73, 80, 83, 89, 95, 99, 106, 120, 129, 135, 140, 147, 150, 160, 168, 175, 182, 188, 195, 201, 209, 214, 218, 226, 232, 234, 241, 248, 252, 260, 269, 279, 296, 305, 313, 318, 327, 333, 340, 350, 359, 369, 379, 389, 394, 405, 416, 424, 432, 437, 445, 450, 458}
|
|
+
|
|
+func (i SyncMarker) String() string {
|
|
+ i -= 1
|
|
+ if i < 0 || i >= SyncMarker(len(_SyncMarker_index)-1) {
|
|
+ return "SyncMarker(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
|
+ }
|
|
+ return _SyncMarker_name[_SyncMarker_index[i]:_SyncMarker_index[i+1]]
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go b/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go
|
|
new file mode 100644
|
|
index 00000000000..a3fb2d4f29d
|
|
--- /dev/null
|
|
+++ b/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go
|
|
@@ -0,0 +1,59 @@
|
|
+// Copyright 2023 The Go Authors. All rights reserved.
|
|
+// Use of this source code is governed by a BSD-style
|
|
+// license that can be found in the LICENSE file.
|
|
+
|
|
+// package tokeninternal provides access to some internal features of the token
|
|
+// package.
|
|
+package tokeninternal
|
|
+
|
|
+import (
|
|
+ "go/token"
|
|
+ "sync"
|
|
+ "unsafe"
|
|
+)
|
|
+
|
|
+// GetLines returns the table of line-start offsets from a token.File.
|
|
+func GetLines(file *token.File) []int {
|
|
+ // token.File has a Lines method on Go 1.21 and later.
|
|
+ if file, ok := (interface{})(file).(interface{ Lines() []int }); ok {
|
|
+ return file.Lines()
|
|
+ }
|
|
+
|
|
+ // This declaration must match that of token.File.
|
|
+ // This creates a risk of dependency skew.
|
|
+ // For now we check that the size of the two
|
|
+ // declarations is the same, on the (fragile) assumption
|
|
+ // that future changes would add fields.
|
|
+ type tokenFile119 struct {
|
|
+ _ string
|
|
+ _ int
|
|
+ _ int
|
|
+ mu sync.Mutex // we're not complete monsters
|
|
+ lines []int
|
|
+ _ []struct{}
|
|
+ }
|
|
+ type tokenFile118 struct {
|
|
+ _ *token.FileSet // deleted in go1.19
|
|
+ tokenFile119
|
|
+ }
|
|
+
|
|
+ type uP = unsafe.Pointer
|
|
+ switch unsafe.Sizeof(*file) {
|
|
+ case unsafe.Sizeof(tokenFile118{}):
|
|
+ var ptr *tokenFile118
|
|
+ *(*uP)(uP(&ptr)) = uP(file)
|
|
+ ptr.mu.Lock()
|
|
+ defer ptr.mu.Unlock()
|
|
+ return ptr.lines
|
|
+
|
|
+ case unsafe.Sizeof(tokenFile119{}):
|
|
+ var ptr *tokenFile119
|
|
+ *(*uP)(uP(&ptr)) = uP(file)
|
|
+ ptr.mu.Lock()
|
|
+ defer ptr.mu.Unlock()
|
|
+ return ptr.lines
|
|
+
|
|
+ default:
|
|
+ panic("unexpected token.File size")
|
|
+ }
|
|
+}
|
|
diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
|
|
index fa2834e2ab8..07484073a57 100644
|
|
--- a/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
|
|
+++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
|
|
@@ -30,6 +30,12 @@ type ErrorCode int
|
|
// convention that "bad" implies a problem with syntax, and "invalid" implies a
|
|
// problem with types.
|
|
|
|
+const (
|
|
+ // InvalidSyntaxTree occurs if an invalid syntax tree is provided
|
|
+ // to the type checker. It should never happen.
|
|
+ InvalidSyntaxTree ErrorCode = -1
|
|
+)
|
|
+
|
|
const (
|
|
_ ErrorCode = iota
|
|
|
|
@@ -153,12 +159,12 @@ const (
|
|
|
|
/* decls > var (+ other variable assignment codes) */
|
|
|
|
- // UntypedNil occurs when the predeclared (untyped) value nil is used to
|
|
+ // UntypedNilUse occurs when the predeclared (untyped) value nil is used to
|
|
// initialize a variable declared without an explicit type.
|
|
//
|
|
// Example:
|
|
// var x = nil
|
|
- UntypedNil
|
|
+ UntypedNilUse
|
|
|
|
// WrongAssignCount occurs when the number of values on the right-hand side
|
|
// of an assignment or or initialization expression does not match the number
|
|
@@ -1365,4 +1371,190 @@ const (
|
|
// return i
|
|
// }
|
|
InvalidGo
|
|
+
|
|
+ // All codes below were added in Go 1.17.
|
|
+
|
|
+ /* decl */
|
|
+
|
|
+ // BadDecl occurs when a declaration has invalid syntax.
|
|
+ BadDecl
|
|
+
|
|
+ // RepeatedDecl occurs when an identifier occurs more than once on the left
|
|
+ // hand side of a short variable declaration.
|
|
+ //
|
|
+ // Example:
|
|
+ // func _() {
|
|
+ // x, y, y := 1, 2, 3
|
|
+ // }
|
|
+ RepeatedDecl
|
|
+
|
|
+ /* unsafe */
|
|
+
|
|
+ // InvalidUnsafeAdd occurs when unsafe.Add is called with a
|
|
+ // length argument that is not of integer type.
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var p unsafe.Pointer
|
|
+ // var _ = unsafe.Add(p, float64(1))
|
|
+ InvalidUnsafeAdd
|
|
+
|
|
+ // InvalidUnsafeSlice occurs when unsafe.Slice is called with a
|
|
+ // pointer argument that is not of pointer type or a length argument
|
|
+ // that is not of integer type, negative, or out of bounds.
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var x int
|
|
+ // var _ = unsafe.Slice(x, 1)
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var x int
|
|
+ // var _ = unsafe.Slice(&x, float64(1))
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var x int
|
|
+ // var _ = unsafe.Slice(&x, -1)
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var x int
|
|
+ // var _ = unsafe.Slice(&x, uint64(1) << 63)
|
|
+ InvalidUnsafeSlice
|
|
+
|
|
+ // All codes below were added in Go 1.18.
|
|
+
|
|
+ /* features */
|
|
+
|
|
+ // UnsupportedFeature occurs when a language feature is used that is not
|
|
+ // supported at this Go version.
|
|
+ UnsupportedFeature
|
|
+
|
|
+ /* type params */
|
|
+
|
|
+ // NotAGenericType occurs when a non-generic type is used where a generic
|
|
+ // type is expected: in type or function instantiation.
|
|
+ //
|
|
+ // Example:
|
|
+ // type T int
|
|
+ //
|
|
+ // var _ T[int]
|
|
+ NotAGenericType
|
|
+
|
|
+ // WrongTypeArgCount occurs when a type or function is instantiated with an
|
|
+ // incorrent number of type arguments, including when a generic type or
|
|
+ // function is used without instantiation.
|
|
+ //
|
|
+ // Errors inolving failed type inference are assigned other error codes.
|
|
+ //
|
|
+ // Example:
|
|
+ // type T[p any] int
|
|
+ //
|
|
+ // var _ T[int, string]
|
|
+ //
|
|
+ // Example:
|
|
+ // func f[T any]() {}
|
|
+ //
|
|
+ // var x = f
|
|
+ WrongTypeArgCount
|
|
+
|
|
+ // CannotInferTypeArgs occurs when type or function type argument inference
|
|
+ // fails to infer all type arguments.
|
|
+ //
|
|
+ // Example:
|
|
+ // func f[T any]() {}
|
|
+ //
|
|
+ // func _() {
|
|
+ // f()
|
|
+ // }
|
|
+ //
|
|
+ // Example:
|
|
+ // type N[P, Q any] struct{}
|
|
+ //
|
|
+ // var _ N[int]
|
|
+ CannotInferTypeArgs
|
|
+
|
|
+ // InvalidTypeArg occurs when a type argument does not satisfy its
|
|
+ // corresponding type parameter constraints.
|
|
+ //
|
|
+ // Example:
|
|
+ // type T[P ~int] struct{}
|
|
+ //
|
|
+ // var _ T[string]
|
|
+ InvalidTypeArg // arguments? InferenceFailed
|
|
+
|
|
+ // InvalidInstanceCycle occurs when an invalid cycle is detected
|
|
+ // within the instantiation graph.
|
|
+ //
|
|
+ // Example:
|
|
+ // func f[T any]() { f[*T]() }
|
|
+ InvalidInstanceCycle
|
|
+
|
|
+ // InvalidUnion occurs when an embedded union or approximation element is
|
|
+ // not valid.
|
|
+ //
|
|
+ // Example:
|
|
+ // type _ interface {
|
|
+ // ~int | interface{ m() }
|
|
+ // }
|
|
+ InvalidUnion
|
|
+
|
|
+ // MisplacedConstraintIface occurs when a constraint-type interface is used
|
|
+ // outside of constraint position.
|
|
+ //
|
|
+ // Example:
|
|
+ // type I interface { ~int }
|
|
+ //
|
|
+ // var _ I
|
|
+ MisplacedConstraintIface
|
|
+
|
|
+ // InvalidMethodTypeParams occurs when methods have type parameters.
|
|
+ //
|
|
+ // It cannot be encountered with an AST parsed using go/parser.
|
|
+ InvalidMethodTypeParams
|
|
+
|
|
+ // MisplacedTypeParam occurs when a type parameter is used in a place where
|
|
+ // it is not permitted.
|
|
+ //
|
|
+ // Example:
|
|
+ // type T[P any] P
|
|
+ //
|
|
+ // Example:
|
|
+ // type T[P any] struct{ *P }
|
|
+ MisplacedTypeParam
|
|
+
|
|
+ // InvalidUnsafeSliceData occurs when unsafe.SliceData is called with
|
|
+ // an argument that is not of slice type. It also occurs if it is used
|
|
+ // in a package compiled for a language version before go1.20.
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var x int
|
|
+ // var _ = unsafe.SliceData(x)
|
|
+ InvalidUnsafeSliceData
|
|
+
|
|
+ // InvalidUnsafeString occurs when unsafe.String is called with
|
|
+ // a length argument that is not of integer type, negative, or
|
|
+ // out of bounds. It also occurs if it is used in a package
|
|
+ // compiled for a language version before go1.20.
|
|
+ //
|
|
+ // Example:
|
|
+ // import "unsafe"
|
|
+ //
|
|
+ // var b [10]byte
|
|
+ // var _ = unsafe.String(&b[0], -1)
|
|
+ InvalidUnsafeString
|
|
+
|
|
+ // InvalidUnsafeStringData occurs if it is used in a package
|
|
+ // compiled for a language version before go1.20.
|
|
+ _ // not used anymore
|
|
+
|
|
)
|
|
diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
|
|
index 3e5842a5f0f..15ecf7c5ded 100644
|
|
--- a/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
|
|
+++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
|
|
@@ -8,6 +8,7 @@ func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
+ _ = x[InvalidSyntaxTree - -1]
|
|
_ = x[Test-1]
|
|
_ = x[BlankPkgName-2]
|
|
_ = x[MismatchedPkgName-3]
|
|
@@ -23,7 +24,7 @@ func _() {
|
|
_ = x[InvalidConstInit-13]
|
|
_ = x[InvalidConstVal-14]
|
|
_ = x[InvalidConstType-15]
|
|
- _ = x[UntypedNil-16]
|
|
+ _ = x[UntypedNilUse-16]
|
|
_ = x[WrongAssignCount-17]
|
|
_ = x[UnassignableOperand-18]
|
|
_ = x[NoNewVar-19]
|
|
@@ -138,16 +139,41 @@ func _() {
|
|
_ = x[UnusedResults-128]
|
|
_ = x[InvalidDefer-129]
|
|
_ = x[InvalidGo-130]
|
|
+ _ = x[BadDecl-131]
|
|
+ _ = x[RepeatedDecl-132]
|
|
+ _ = x[InvalidUnsafeAdd-133]
|
|
+ _ = x[InvalidUnsafeSlice-134]
|
|
+ _ = x[UnsupportedFeature-135]
|
|
+ _ = x[NotAGenericType-136]
|
|
+ _ = x[WrongTypeArgCount-137]
|
|
+ _ = x[CannotInferTypeArgs-138]
|
|
+ _ = x[InvalidTypeArg-139]
|
|
+ _ = x[InvalidInstanceCycle-140]
|
|
+ _ = x[InvalidUnion-141]
|
|
+ _ = x[MisplacedConstraintIface-142]
|
|
+ _ = x[InvalidMethodTypeParams-143]
|
|
+ _ = x[MisplacedTypeParam-144]
|
|
+ _ = x[InvalidUnsafeSliceData-145]
|
|
+ _ = x[InvalidUnsafeString-146]
|
|
}
|
|
|
|
-const _ErrorCode_name = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadImportPathBrokenImportImportCRenamedUnusedImportInvalidInitCycleDuplicateDeclInvalidDeclCycleInvalidTypeCycleInvalidConstInitInvalidConstValInvalidConstTypeUntypedNilWrongAssignCountUnassignableOperandNoNewVarMultiValAssignOpInvalidIfaceAssignInvalidChanAssignIncompatibleAssignUnaddressableFieldAssignNotATypeInvalidArrayLenBlankIfaceMethodIncomparableMapKeyInvalidIfaceEmbedInvalidPtrEmbedBadRecvInvalidRecvDuplicateFieldAndMethodDuplicateMethodInvalidBlankInvalidIotaMissingInitBodyInvalidInitSigInvalidInitDeclInvalidMainDeclTooManyValuesNotAnExprTruncatedFloatNumericOverflowUndefinedOpMismatchedTypesDivByZeroNonNumericIncDecUnaddressableOperandInvalidIndirectionNonIndexableOperandInvalidIndexSwappedSliceIndicesNonSliceableOperandInvalidSliceExprInvalidShiftCountInvalidShiftOperandInvalidReceiveInvalidSendDuplicateLitKeyMissingLitKeyInvalidLitIndexOversizeArrayLitMixedStructLitInvalidStructLitMissingLitFieldDuplicateLitFieldUnexportedLitFieldInvalidLitFieldUntypedLitInvalidLitAmbiguousSelectorUndeclaredImportedNameUnexportedNameUndeclaredNameMissingFieldOrMethodBadDotDotDotSyntaxNonVariadicDotDotDotMisplacedDotDotDotInvalidDotDotDotOperandInvalidDotDotDotUncalledBuiltinInvalidAppendInvalidCapInvalidCloseInvalidCopyInvalidComplexInvalidDeleteInvalidImagInvalidLenSwappedMakeArgsInvalidMakeInvalidRealInvalidAssertImpossibleAssertInvalidConversionInvalidUntypedConversionBadOffsetofSyntaxInvalidOffsetofUnusedExprUnusedVarMissingReturnWrongResultCountOutOfScopeResultInvalidCondInvalidPostDeclInvalidChanRangeInvalidIterVarInvalidRangeExprMisplacedBreakMisplacedContinueMisplacedFallthroughDuplicateCaseDuplicateDefaultBadTypeKeywordInvalidTypeSwitchInvalidExprSwitchInvalidSelectCaseUndeclaredLabelDuplicateLabelMisplacedLabelUnusedLabelJumpOverDeclJumpIntoBlockInvalidMethodExprWrongArgCountInvalidCallUnusedResultsInvalidDeferInvalidGo"
|
|
+const (
|
|
+ _ErrorCode_name_0 = "InvalidSyntaxTree"
|
|
+ _ErrorCode_name_1 = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadImportPathBrokenImportImportCRenamedUnusedImportInvalidInitCycleDuplicateDeclInvalidDeclCycleInvalidTypeCycleInvalidConstInitInvalidConstValInvalidConstTypeUntypedNilUseWrongAssignCountUnassignableOperandNoNewVarMultiValAssignOpInvalidIfaceAssignInvalidChanAssignIncompatibleAssignUnaddressableFieldAssignNotATypeInvalidArrayLenBlankIfaceMethodIncomparableMapKeyInvalidIfaceEmbedInvalidPtrEmbedBadRecvInvalidRecvDuplicateFieldAndMethodDuplicateMethodInvalidBlankInvalidIotaMissingInitBodyInvalidInitSigInvalidInitDeclInvalidMainDeclTooManyValuesNotAnExprTruncatedFloatNumericOverflowUndefinedOpMismatchedTypesDivByZeroNonNumericIncDecUnaddressableOperandInvalidIndirectionNonIndexableOperandInvalidIndexSwappedSliceIndicesNonSliceableOperandInvalidSliceExprInvalidShiftCountInvalidShiftOperandInvalidReceiveInvalidSendDuplicateLitKeyMissingLitKeyInvalidLitIndexOversizeArrayLitMixedStructLitInvalidStructLitMissingLitFieldDuplicateLitFieldUnexportedLitFieldInvalidLitFieldUntypedLitInvalidLitAmbiguousSelectorUndeclaredImportedNameUnexportedNameUndeclaredNameMissingFieldOrMethodBadDotDotDotSyntaxNonVariadicDotDotDotMisplacedDotDotDotInvalidDotDotDotOperandInvalidDotDotDotUncalledBuiltinInvalidAppendInvalidCapInvalidCloseInvalidCopyInvalidComplexInvalidDeleteInvalidImagInvalidLenSwappedMakeArgsInvalidMakeInvalidRealInvalidAssertImpossibleAssertInvalidConversionInvalidUntypedConversionBadOffsetofSyntaxInvalidOffsetofUnusedExprUnusedVarMissingReturnWrongResultCountOutOfScopeResultInvalidCondInvalidPostDeclInvalidChanRangeInvalidIterVarInvalidRangeExprMisplacedBreakMisplacedContinueMisplacedFallthroughDuplicateCaseDuplicateDefaultBadTypeKeywordInvalidTypeSwitchInvalidExprSwitchInvalidSelectCaseUndeclaredLabelDuplicateLabelMisplacedLabelUnusedLabelJumpOverDeclJumpIntoBlockInvalidMethodExprWrongArgCountInvalidCallUnusedResultsInvalidDeferInvalidGoBadDeclRepeatedDeclInvalidUnsafeAddInvalidUnsafeSliceUnsupportedFeatureNotAGenericTypeWrongTypeArgCountCannotInferTypeArgsInvalidTypeArgInvalidInstanceCycleInvalidUnionMisplacedConstraintIfaceInvalidMethodTypeParamsMisplacedTypeParamInvalidUnsafeSliceDataInvalidUnsafeString"
|
|
+)
|
|
|
|
-var _ErrorCode_index = [...]uint16{0, 4, 16, 33, 46, 59, 71, 85, 97, 113, 126, 142, 158, 174, 189, 205, 215, 231, 250, 258, 274, 292, 309, 327, 351, 359, 374, 390, 408, 425, 440, 447, 458, 481, 496, 508, 519, 534, 548, 563, 578, 591, 600, 614, 629, 640, 655, 664, 680, 700, 718, 737, 749, 768, 787, 803, 820, 839, 853, 864, 879, 892, 907, 923, 937, 953, 968, 985, 1003, 1018, 1028, 1038, 1055, 1077, 1091, 1105, 1125, 1143, 1163, 1181, 1204, 1220, 1235, 1248, 1258, 1270, 1281, 1295, 1308, 1319, 1329, 1344, 1355, 1366, 1379, 1395, 1412, 1436, 1453, 1468, 1478, 1487, 1500, 1516, 1532, 1543, 1558, 1574, 1588, 1604, 1618, 1635, 1655, 1668, 1684, 1698, 1715, 1732, 1749, 1764, 1778, 1792, 1803, 1815, 1828, 1845, 1858, 1869, 1882, 1894, 1903}
|
|
+var (
|
|
+ _ErrorCode_index_1 = [...]uint16{0, 4, 16, 33, 46, 59, 71, 85, 97, 113, 126, 142, 158, 174, 189, 205, 218, 234, 253, 261, 277, 295, 312, 330, 354, 362, 377, 393, 411, 428, 443, 450, 461, 484, 499, 511, 522, 537, 551, 566, 581, 594, 603, 617, 632, 643, 658, 667, 683, 703, 721, 740, 752, 771, 790, 806, 823, 842, 856, 867, 882, 895, 910, 926, 940, 956, 971, 988, 1006, 1021, 1031, 1041, 1058, 1080, 1094, 1108, 1128, 1146, 1166, 1184, 1207, 1223, 1238, 1251, 1261, 1273, 1284, 1298, 1311, 1322, 1332, 1347, 1358, 1369, 1382, 1398, 1415, 1439, 1456, 1471, 1481, 1490, 1503, 1519, 1535, 1546, 1561, 1577, 1591, 1607, 1621, 1638, 1658, 1671, 1687, 1701, 1718, 1735, 1752, 1767, 1781, 1795, 1806, 1818, 1831, 1848, 1861, 1872, 1885, 1897, 1906, 1913, 1925, 1941, 1959, 1977, 1992, 2009, 2028, 2042, 2062, 2074, 2098, 2121, 2139, 2161, 2180}
|
|
+)
|
|
|
|
func (i ErrorCode) String() string {
|
|
- i -= 1
|
|
- if i < 0 || i >= ErrorCode(len(_ErrorCode_index)-1) {
|
|
- return "ErrorCode(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
|
+ switch {
|
|
+ case i == -1:
|
|
+ return _ErrorCode_name_0
|
|
+ case 1 <= i && i <= 146:
|
|
+ i -= 1
|
|
+ return _ErrorCode_name_1[_ErrorCode_index_1[i]:_ErrorCode_index_1[i+1]]
|
|
+ default:
|
|
+ return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
- return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
|
|
}
|
|
diff --git a/vendor/modules.txt b/vendor/modules.txt
|
|
index f3860c0c9ff..07eb79f23ef 100644
|
|
--- a/vendor/modules.txt
|
|
+++ b/vendor/modules.txt
|
|
@@ -596,8 +596,13 @@ github.com/onsi/gomega/matchers/support/goraph/util
|
|
github.com/onsi/gomega/types
|
|
# github.com/opencontainers/go-digest v1.0.0 => github.com/opencontainers/go-digest v1.0.0
|
|
github.com/opencontainers/go-digest
|
|
+<<<<<<< HEAD
|
|
# github.com/opencontainers/runc v1.1.1 => github.com/opencontainers/runc v1.1.1
|
|
## explicit
|
|
+=======
|
|
+# github.com/opencontainers/runc v1.1.6 => github.com/opencontainers/runc v1.1.6
|
|
+## explicit; go 1.17
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
github.com/opencontainers/runc/libcontainer
|
|
github.com/opencontainers/runc/libcontainer/apparmor
|
|
github.com/opencontainers/runc/libcontainer/capabilities
|
|
@@ -673,7 +678,12 @@ github.com/rubiojr/go-vhd/vhd
|
|
github.com/russross/blackfriday
|
|
# github.com/russross/blackfriday/v2 v2.1.0 => github.com/russross/blackfriday/v2 v2.1.0
|
|
github.com/russross/blackfriday/v2
|
|
+<<<<<<< HEAD
|
|
# github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921 => github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921
|
|
+=======
|
|
+# github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646 => github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646
|
|
+## explicit; go 1.14
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
github.com/seccomp/libseccomp-golang
|
|
# github.com/sirupsen/logrus v1.8.1 => github.com/sirupsen/logrus v1.8.1
|
|
github.com/sirupsen/logrus
|
|
@@ -964,6 +974,7 @@ golang.org/x/crypto/salsa20/salsa
|
|
golang.org/x/crypto/ssh
|
|
golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
|
|
# golang.org/x/exp v0.0.0-20210220032938-85be41e4509f => golang.org/x/exp v0.0.0-20210220032938-85be41e4509f
|
|
+<<<<<<< HEAD
|
|
## explicit
|
|
# golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 => golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
|
|
golang.org/x/mod/internal/lazyregexp
|
|
@@ -971,6 +982,16 @@ golang.org/x/mod/module
|
|
golang.org/x/mod/semver
|
|
# golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd => golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
## explicit
|
|
+=======
|
|
+## explicit; go 1.12
|
|
+# golang.org/x/mod v0.8.0 => golang.org/x/mod v0.8.0
|
|
+## explicit; go 1.17
|
|
+golang.org/x/mod/internal/lazyregexp
|
|
+golang.org/x/mod/module
|
|
+golang.org/x/mod/semver
|
|
+# golang.org/x/net v0.8.0 => golang.org/x/net v0.8.0
|
|
+## explicit; go 1.17
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
golang.org/x/net/bpf
|
|
golang.org/x/net/context
|
|
golang.org/x/net/context/ctxhttp
|
|
@@ -995,11 +1016,19 @@ golang.org/x/oauth2/google/internal/externalaccount
|
|
golang.org/x/oauth2/internal
|
|
golang.org/x/oauth2/jws
|
|
golang.org/x/oauth2/jwt
|
|
+<<<<<<< HEAD
|
|
# golang.org/x/sync v0.0.0-20210220032951-036812b2e83c => golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
|
## explicit
|
|
golang.org/x/sync/singleflight
|
|
# golang.org/x/sys v0.0.0-20220209214540-3681064d5158 => golang.org/x/sys v0.0.0-20220209214540-3681064d5158
|
|
## explicit
|
|
+=======
|
|
+# golang.org/x/sync v0.1.0 => golang.org/x/sync v0.1.0
|
|
+## explicit
|
|
+golang.org/x/sync/singleflight
|
|
+# golang.org/x/sys v0.6.0 => golang.org/x/sys v0.6.0
|
|
+## explicit; go 1.17
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
golang.org/x/sys/cpu
|
|
golang.org/x/sys/execabs
|
|
golang.org/x/sys/internal/unsafeheader
|
|
@@ -1009,10 +1038,18 @@ golang.org/x/sys/windows
|
|
golang.org/x/sys/windows/registry
|
|
golang.org/x/sys/windows/svc
|
|
golang.org/x/sys/windows/svc/mgr
|
|
+<<<<<<< HEAD
|
|
# golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 => golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
|
## explicit
|
|
golang.org/x/term
|
|
# golang.org/x/text v0.3.7 => golang.org/x/text v0.3.7
|
|
+=======
|
|
+# golang.org/x/term v0.6.0 => golang.org/x/term v0.6.0
|
|
+## explicit; go 1.17
|
|
+golang.org/x/term
|
|
+# golang.org/x/text v0.8.0 => golang.org/x/text v0.8.0
|
|
+## explicit; go 1.17
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
golang.org/x/text/encoding
|
|
golang.org/x/text/encoding/charmap
|
|
golang.org/x/text/encoding/htmlindex
|
|
@@ -1037,13 +1074,17 @@ golang.org/x/text/width
|
|
# golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 => golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
|
## explicit
|
|
golang.org/x/time/rate
|
|
+<<<<<<< HEAD
|
|
# golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717 => golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717
|
|
## explicit
|
|
+=======
|
|
+# golang.org/x/tools v0.6.0 => golang.org/x/tools v0.6.0
|
|
+## explicit; go 1.18
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
golang.org/x/tools/benchmark/parse
|
|
golang.org/x/tools/container/intsets
|
|
golang.org/x/tools/go/ast/astutil
|
|
golang.org/x/tools/go/gcexportdata
|
|
-golang.org/x/tools/go/internal/gcimporter
|
|
golang.org/x/tools/go/internal/packagesdriver
|
|
golang.org/x/tools/go/packages
|
|
golang.org/x/tools/imports
|
|
@@ -1052,10 +1093,13 @@ golang.org/x/tools/internal/event/core
|
|
golang.org/x/tools/internal/event/keys
|
|
golang.org/x/tools/internal/event/label
|
|
golang.org/x/tools/internal/fastwalk
|
|
+golang.org/x/tools/internal/gcimporter
|
|
golang.org/x/tools/internal/gocommand
|
|
golang.org/x/tools/internal/gopathwalk
|
|
golang.org/x/tools/internal/imports
|
|
golang.org/x/tools/internal/packagesinternal
|
|
+golang.org/x/tools/internal/pkgbits
|
|
+golang.org/x/tools/internal/tokeninternal
|
|
golang.org/x/tools/internal/typeparams
|
|
golang.org/x/tools/internal/typesinternal
|
|
# golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 => golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
|
|
@@ -2619,7 +2663,7 @@ sigs.k8s.io/yaml
|
|
# github.com/onsi/gomega => github.com/onsi/gomega v1.10.1
|
|
# github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.0
|
|
# github.com/opencontainers/image-spec => github.com/opencontainers/image-spec v1.0.2
|
|
-# github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.1
|
|
+# github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.6
|
|
# github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
|
|
# github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.10.0
|
|
# github.com/opentracing/opentracing-go => github.com/opentracing/opentracing-go v1.1.0
|
|
@@ -2640,8 +2684,9 @@ sigs.k8s.io/yaml
|
|
# github.com/rubiojr/go-vhd => github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021
|
|
# github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2
|
|
# github.com/russross/blackfriday/v2 => github.com/russross/blackfriday/v2 v2.1.0
|
|
-# github.com/seccomp/libseccomp-golang => github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921
|
|
+# github.com/seccomp/libseccomp-golang => github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646
|
|
# github.com/sergi/go-diff => github.com/sergi/go-diff v1.1.0
|
|
+# github.com/shurcooL/sanitized_anchor_name => github.com/shurcooL/sanitized_anchor_name v1.0.0
|
|
# github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.8.1
|
|
# github.com/smartystreets/assertions => github.com/smartystreets/assertions v1.1.0
|
|
# github.com/smartystreets/goconvey => github.com/smartystreets/goconvey v1.6.4
|
|
@@ -2695,6 +2740,7 @@ sigs.k8s.io/yaml
|
|
# golang.org/x/image => golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
|
# golang.org/x/lint => golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
|
|
# golang.org/x/mobile => golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f
|
|
+<<<<<<< HEAD
|
|
# golang.org/x/mod => golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
|
|
# golang.org/x/net => golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
# golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
|
@@ -2704,6 +2750,17 @@ sigs.k8s.io/yaml
|
|
# golang.org/x/text => golang.org/x/text v0.3.7
|
|
# golang.org/x/time => golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
|
# golang.org/x/tools => golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717
|
|
+=======
|
|
+# golang.org/x/mod => golang.org/x/mod v0.8.0
|
|
+# golang.org/x/net => golang.org/x/net v0.8.0
|
|
+# golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
|
+# golang.org/x/sync => golang.org/x/sync v0.1.0
|
|
+# golang.org/x/sys => golang.org/x/sys v0.6.0
|
|
+# golang.org/x/term => golang.org/x/term v0.6.0
|
|
+# golang.org/x/text => golang.org/x/text v0.8.0
|
|
+# golang.org/x/time => golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
|
+# golang.org/x/tools => golang.org/x/tools v0.6.0
|
|
+>>>>>>> bce91ce265f... [1.24] vendor: bump runc to 1.1.6
|
|
# golang.org/x/xerrors => golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
|
|
# gonum.org/v1/gonum => gonum.org/v1/gonum v0.6.2
|
|
# gonum.org/v1/netlib => gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e
|
|
--
|
|
2.25.1
|
|
|