aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2019-09-05 15:35:13 +0200
committerGitHub <noreply@github.com>2019-09-05 15:35:13 +0200
commit0e77317955c4aa9345d1918ec82460eda82b2961 (patch)
treed49ffe918e0bc4a8844e752a9501a5ff19fb852c
parent8c3de12c2213c775217290d2b97f465c23f7bff6 (diff)
downloadprometheus_node_collector-0e77317955c4aa9345d1918ec82460eda82b2961.tar.bz2
prometheus_node_collector-0e77317955c4aa9345d1918ec82460eda82b2961.tar.xz
prometheus_node_collector-0e77317955c4aa9345d1918ec82460eda82b2961.zip
Update netlink vendoring (#1471)
* github.com/ema/qdisc * github.com/mdlayher/genetlink * github.com/mdlayher/wifi Signed-off-by: Ben Kochie <superq@gmail.com>
-rw-r--r--go.mod10
-rw-r--r--go.sum35
-rw-r--r--vendor/github.com/ema/qdisc/.travis.yml8
-rw-r--r--vendor/github.com/ema/qdisc/get.go10
-rw-r--r--vendor/github.com/ema/qdisc/go.mod9
-rw-r--r--vendor/github.com/ema/qdisc/go.sum20
-rw-r--r--vendor/github.com/mdlayher/genetlink/.travis.yml16
-rw-r--r--vendor/github.com/mdlayher/genetlink/README.md8
-rw-r--r--vendor/github.com/mdlayher/genetlink/conn.go122
-rw-r--r--vendor/github.com/mdlayher/genetlink/doc.go4
-rw-r--r--vendor/github.com/mdlayher/genetlink/family_linux.go12
-rw-r--r--vendor/github.com/mdlayher/genetlink/family_others.go10
-rw-r--r--vendor/github.com/mdlayher/genetlink/go.mod10
-rw-r--r--vendor/github.com/mdlayher/genetlink/go.sum18
-rw-r--r--vendor/github.com/mdlayher/genetlink/message.go20
-rw-r--r--vendor/github.com/mdlayher/netlink/.gitignore1
-rw-r--r--vendor/github.com/mdlayher/netlink/.travis.yml17
-rw-r--r--vendor/github.com/mdlayher/netlink/LICENSE.md2
-rw-r--r--vendor/github.com/mdlayher/netlink/README.md42
-rw-r--r--vendor/github.com/mdlayher/netlink/align.go4
-rw-r--r--vendor/github.com/mdlayher/netlink/attribute.go14
-rw-r--r--vendor/github.com/mdlayher/netlink/conn.go315
-rw-r--r--vendor/github.com/mdlayher/netlink/conn_linux.go529
-rw-r--r--vendor/github.com/mdlayher/netlink/conn_others.go10
-rw-r--r--vendor/github.com/mdlayher/netlink/debug.go6
-rw-r--r--vendor/github.com/mdlayher/netlink/doc.go14
-rw-r--r--vendor/github.com/mdlayher/netlink/errors.go119
-rw-r--r--vendor/github.com/mdlayher/netlink/fdcall_gteq_1.12.go44
-rw-r--r--vendor/github.com/mdlayher/netlink/fdcall_lt_1.12.go29
-rw-r--r--vendor/github.com/mdlayher/netlink/fuzz.go2
-rw-r--r--vendor/github.com/mdlayher/netlink/go.mod10
-rw-r--r--vendor/github.com/mdlayher/netlink/go.sum16
-rw-r--r--vendor/github.com/mdlayher/netlink/message.go112
-rw-r--r--vendor/github.com/mdlayher/netlink/netlink.dot86
-rw-r--r--vendor/github.com/mdlayher/netlink/netlink.svg436
-rw-r--r--vendor/github.com/mdlayher/netlink/netns_linux.go90
-rw-r--r--vendor/github.com/mdlayher/netlink/nlenc/endian.go4
-rw-r--r--vendor/github.com/mdlayher/netlink/nlenc/string.go6
-rw-r--r--vendor/github.com/mdlayher/netlink/rawconn_gteq_1.12.go12
-rw-r--r--vendor/github.com/mdlayher/netlink/rawconn_lt_1.12.go32
-rw-r--r--vendor/github.com/mdlayher/netlink/sockopt_linux.go27
-rw-r--r--vendor/github.com/mdlayher/netlink/sockopt_linux_386.go36
-rw-r--r--vendor/github.com/mdlayher/netlink/sockopt_linux_386.s6
-rw-r--r--vendor/github.com/mdlayher/wifi/.travis.yml2
-rw-r--r--vendor/github.com/mdlayher/wifi/client_linux.go7
-rw-r--r--vendor/github.com/mdlayher/wifi/internal/nl80211/const.go2
-rw-r--r--vendor/github.com/prometheus/procfs/arp.go85
-rw-r--r--vendor/github.com/prometheus/procfs/crypto.go131
-rw-r--r--vendor/github.com/prometheus/procfs/net_softnet.go91
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/class_cooling_device.go90
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/vulnerability.go84
-rw-r--r--vendor/golang.org/x/net/bpf/vm_instructions.go3
-rw-r--r--vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go2
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_aix.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_darwin.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_dragonfly.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_freebsd.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_linux.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_netbsd.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_openbsd.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/defs_solaris.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/iovec_64bit.go2
-rw-r--r--vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go2
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_const_unix.go17
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.go12
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_posix.go6
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_windows.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go8
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go53
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_386.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go59
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm64.go60
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go10
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm64.go53
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go10
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_darwin.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_dragonfly.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_386.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_arm.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_mips.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go151
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_netbsd.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_openbsd.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/zsys_solaris.go2
-rw-r--r--vendor/golang.org/x/sys/unix/affinity_linux.go42
-rw-r--r--vendor/golang.org/x/sys/unix/dirent.go91
-rw-r--r--vendor/golang.org/x/sys/unix/endian_little.go2
-rw-r--r--vendor/golang.org/x/sys/unix/ioctl.go41
-rw-r--r--vendor/golang.org/x/sys/unix/mkall.sh8
-rw-r--r--vendor/golang.org/x/sys/unix/mkerrors.sh6
-rw-r--r--vendor/golang.org/x/sys/unix/mkpost.go4
-rw-r--r--vendor/golang.org/x/sys/unix/mksysnum.go2
-rw-r--r--vendor/golang.org/x/sys/unix/readdirent_getdents.go12
-rw-r--r--vendor/golang.org/x/sys/unix/readdirent_getdirentries.go19
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_aix.go57
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_bsd.go12
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin.go50
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_arm.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_dragonfly.go54
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_freebsd.go131
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux.go70
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_netbsd.go74
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_openbsd.go74
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_solaris.go47
-rw-r--r--vendor/golang.org/x/sys/unix/types_freebsd.go50
-rw-r--r--vendor/golang.org/x/sys/unix/types_netbsd.go1
-rw-r--r--vendor/golang.org/x/sys/unix/types_openbsd.go1
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_386.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go79
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go30
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s4
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go30
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s4
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go15
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go15
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go17
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go12
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go12
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go12
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go12
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_386.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go20
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go23
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go23
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go23
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go445
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_386.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go103
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go110
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go87
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go88
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_386.go54
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm.go54
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips.go54
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go54
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go56
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go55
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go1
-rw-r--r--vendor/golang.org/x/sys/windows/mkerrors.bash2
-rw-r--r--vendor/golang.org/x/sys/windows/mkknownfolderids.bash27
-rw-r--r--vendor/golang.org/x/sys/windows/security_windows.go44
-rw-r--r--vendor/golang.org/x/sys/windows/service.go4
-rw-r--r--vendor/golang.org/x/sys/windows/syscall_windows.go52
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows.go62
-rw-r--r--vendor/golang.org/x/sys/windows/zerrors_windows.go2
-rw-r--r--vendor/golang.org/x/sys/windows/zknownfolderids_windows.go149
-rw-r--r--vendor/golang.org/x/sys/windows/zsyscall_windows.go183
-rw-r--r--vendor/modules.txt12
245 files changed, 6515 insertions, 1699 deletions
diff --git a/go.mod b/go.mod
index a9ad1d3..4c26dd2 100644
--- a/go.mod
+++ b/go.mod
@@ -3,15 +3,14 @@ module github.com/prometheus/node_exporter
3require ( 3require (
4 github.com/beevik/ntp v0.2.0 4 github.com/beevik/ntp v0.2.0
5 github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e 5 github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
6 github.com/ema/qdisc v0.0.0-20180104102928-b307c22d3ce7 6 github.com/ema/qdisc v0.0.0-20190904071900-b82c76788043
7 github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968 7 github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968
8 github.com/hodgesds/perf-utils v0.0.7 8 github.com/hodgesds/perf-utils v0.0.7
9 github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect 9 github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
10 github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 10 github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3
11 github.com/mattn/go-xmlrpc v0.0.1 11 github.com/mattn/go-xmlrpc v0.0.1
12 github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 // indirect 12 github.com/mdlayher/genetlink v0.0.0-20190828143517-e35f2bf499b9 // indirect
13 github.com/mdlayher/netlink v0.0.0-20181210160939-e069752bc835 // indirect 13 github.com/mdlayher/wifi v0.0.0-20190303161829-b1436901ddee
14 github.com/mdlayher/wifi v0.0.0-20180727163819-efdf3f4195d9
15 github.com/prometheus/client_golang v1.0.0 14 github.com/prometheus/client_golang v1.0.0
16 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 15 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
17 github.com/prometheus/common v0.4.1 16 github.com/prometheus/common v0.4.1
@@ -21,8 +20,7 @@ require (
21 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a 20 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a
22 go.uber.org/atomic v1.3.2 // indirect 21 go.uber.org/atomic v1.3.2 // indirect
23 go.uber.org/multierr v1.1.0 // indirect 22 go.uber.org/multierr v1.1.0 // indirect
24 golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c // indirect
25 golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect 23 golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
26 golang.org/x/sys v0.0.0-20190610081024-1e42afee0f76 24 golang.org/x/sys v0.0.0-20190902133755-9109b7679e13
27 gopkg.in/alecthomas/kingpin.v2 v2.2.6 25 gopkg.in/alecthomas/kingpin.v2 v2.2.6
28) 26)
diff --git a/go.sum b/go.sum
index 9a5f762..b9c3d45 100644
--- a/go.sum
+++ b/go.sum
@@ -13,8 +13,8 @@ github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7
13github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 13github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
14github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 14github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
15github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 15github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
16github.com/ema/qdisc v0.0.0-20180104102928-b307c22d3ce7 h1:jzWRD7cjz7ditpwbTbQdnHzFFW3KIFAVw9Ia5C0n/zs= 16github.com/ema/qdisc v0.0.0-20190904071900-b82c76788043 h1:I3hLsM87FSASssIrIOGwJCio31dvLkvpYDKn2+r31ec=
17github.com/ema/qdisc v0.0.0-20180104102928-b307c22d3ce7/go.mod h1:kXuKAameaga9ciOgiYWAM85FQP+wt5aN4uX+9OHVJe4= 17github.com/ema/qdisc v0.0.0-20190904071900-b82c76788043/go.mod h1:ix4kG2zvdUd8kEKSW0ZTr1XLks0epFpI4j745DXxlNE=
18github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 18github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
19github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 19github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
20github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 20github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
@@ -26,10 +26,16 @@ github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM
26github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 26github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
27github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg= 27github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
28github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 28github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
29github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
29github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= 30github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
30github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 31github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
32github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
33github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
31github.com/hodgesds/perf-utils v0.0.7 h1:V/5aRKeXn/membOpFdzAgd+fFvmtvTYD6moDuZ7K7SM= 34github.com/hodgesds/perf-utils v0.0.7 h1:V/5aRKeXn/membOpFdzAgd+fFvmtvTYD6moDuZ7K7SM=
32github.com/hodgesds/perf-utils v0.0.7/go.mod h1:F6TfvsbtrF88i++hou29dTXlI2sfsJv+gRZDtmTJkAs= 35github.com/hodgesds/perf-utils v0.0.7/go.mod h1:F6TfvsbtrF88i++hou29dTXlI2sfsJv+gRZDtmTJkAs=
36github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
37github.com/jsimonetti/rtnetlink v0.0.0-20190830100107-3784a6c7c552 h1:Ve/e6edHdAHn+8/24Xco7IhQCv3u5Dab2qZNvR9e5/U=
38github.com/jsimonetti/rtnetlink v0.0.0-20190830100107-3784a6c7c552/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
33github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 39github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
34github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 40github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
35github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= 41github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
@@ -43,12 +49,13 @@ github.com/mattn/go-xmlrpc v0.0.1 h1:JY8G+sH4jcjzZvxAY5P+wNrWA2WYC+aK+2bsYOl4z0Q
43github.com/mattn/go-xmlrpc v0.0.1/go.mod h1:mqc2dz7tP5x5BKlCahN/n+hs7OSZKJkS9JsHNBRlrxA= 49github.com/mattn/go-xmlrpc v0.0.1/go.mod h1:mqc2dz7tP5x5BKlCahN/n+hs7OSZKJkS9JsHNBRlrxA=
44github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 50github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
45github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 51github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
46github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 h1:2uvgdCvQ/MUubxqVhOFkeTaI0EZLcjPLVIwgZGWPgxs= 52github.com/mdlayher/genetlink v0.0.0-20190828143517-e35f2bf499b9 h1:o+ckyx58UC6Itoo7sEwmXMpHcnI31lRK6w4M5gQMIMw=
47github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795/go.mod h1:EOrmeik1bDMaRduo2B+uAYe1HmTq6yF2IMDmJi1GoWk= 53github.com/mdlayher/genetlink v0.0.0-20190828143517-e35f2bf499b9/go.mod h1:jdlTGSEt8SRUJPk5+vLsPyojmLVAxsOKNjVkqrixnJ8=
48github.com/mdlayher/netlink v0.0.0-20181210160939-e069752bc835 h1:WpZONc7LNdfPrld0YIt2aOiy9T66FfRCqZDrsDkWJX0= 54github.com/mdlayher/netlink v0.0.0-20190409211403-11939a169225/go.mod h1:eQB3mZE4aiYnlUsyGGCOpPETfdQq4Jhsgf1fk3cwQaA=
49github.com/mdlayher/netlink v0.0.0-20181210160939-e069752bc835/go.mod h1:a3TlQHkJH2m32RF224Z7LhD5N4mpyR8eUbCoYHywrwg= 55github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09 h1:U2vuol6i4UF6MSpZJclH4HHiLRMoq1NAzxpIpCUJK/Y=
50github.com/mdlayher/wifi v0.0.0-20180727163819-efdf3f4195d9 h1:ag57ienknXLMhoSbkYvaZLF9Taxu9GtBHUJ4jP5ER8s= 56github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09/go.mod h1:KxeJAFOFLG6AjpyDkQ/iIhxygIUKD+vcwqcnu43w/+M=
51github.com/mdlayher/wifi v0.0.0-20180727163819-efdf3f4195d9/go.mod h1:Evt/EIne46u9PtQbeTx2NTcqURpr5K4SvKtGmBuDPN8= 57github.com/mdlayher/wifi v0.0.0-20190303161829-b1436901ddee h1:hZDujBrW3ye2xxdKNFYT59D4yCH5Q0zLuNBNtysKtok=
58github.com/mdlayher/wifi v0.0.0-20190303161829-b1436901ddee/go.mod h1:Evt/EIne46u9PtQbeTx2NTcqURpr5K4SvKtGmBuDPN8=
52github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 59github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
53github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 60github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
54github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 61github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
@@ -90,8 +97,9 @@ go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/
90golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 97golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
91golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 98golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
92golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 99golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
93golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c h1:uOCk1iQW6Vc18bnC13MfzScl+wdKBmM9Y9kU7Z83/lw= 100golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
94golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 101golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 h1:k7pJ2yAPLPgbskkFdhRCsA77k2fySZ1zf2zCjvQCiIM=
102golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
95golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ= 103golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ=
96golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 104golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
97golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= 105golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
@@ -101,9 +109,12 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
101golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 109golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
102golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 110golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
103golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 111golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
112golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
113golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
104golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 114golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
105golang.org/x/sys v0.0.0-20190610081024-1e42afee0f76 h1:QSmW7Q3mFdAGjtAd0byXmFJ55inUydyZ4WQmiuItAIQ= 115golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
106golang.org/x/sys v0.0.0-20190610081024-1e42afee0f76/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 116golang.org/x/sys v0.0.0-20190902133755-9109b7679e13 h1:tdsQdquKbTNMsSZLqnLELJGzCANp9oXhu6zFBW6ODx4=
117golang.org/x/sys v0.0.0-20190902133755-9109b7679e13/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
107golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 118golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
108gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 119gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=
109gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 120gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
diff --git a/vendor/github.com/ema/qdisc/.travis.yml b/vendor/github.com/ema/qdisc/.travis.yml
index 7c9b451..50a132a 100644
--- a/vendor/github.com/ema/qdisc/.travis.yml
+++ b/vendor/github.com/ema/qdisc/.travis.yml
@@ -1,16 +1,16 @@
1language: go 1language: go
2go: 2go:
3 - 1.x 3 - 1.x
4env:
5 - GO111MODULE=on
4os: 6os:
5 - linux 7 - linux
6sudo: required 8sudo: required
7before_install: 9before_install:
8 - go get github.com/golang/lint/golint 10 - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
9 - go get honnef.co/go/tools/cmd/staticcheck
10 - go get -d ./... 11 - go get -d ./...
11script: 12script:
12 - go build -tags=gofuzz ./... 13 - go build -tags=gofuzz ./...
13 - go vet ./... 14 - go vet ./...
14 - staticcheck ./... 15 - golangci-lint run ./...
15 #- golint -set_exit_status ./...
16 - go test -v -race -tags=integration ./... 16 - go test -v -race -tags=integration ./...
diff --git a/vendor/github.com/ema/qdisc/get.go b/vendor/github.com/ema/qdisc/get.go
index b0e8430..9191594 100644
--- a/vendor/github.com/ema/qdisc/get.go
+++ b/vendor/github.com/ema/qdisc/get.go
@@ -19,7 +19,7 @@ const (
19 TCA_FCNT 19 TCA_FCNT
20 TCA_STATS2 20 TCA_STATS2
21 TCA_STAB 21 TCA_STAB
22 __TCA_MAX 22 // __TCA_MAX
23) 23)
24 24
25const ( 25const (
@@ -29,7 +29,7 @@ const (
29 TCA_STATS_QUEUE 29 TCA_STATS_QUEUE
30 TCA_STATS_APP 30 TCA_STATS_APP
31 TCA_STATS_RATE_EST64 31 TCA_STATS_RATE_EST64
32 __TCA_STATS_MAX 32 // __TCA_STATS_MAX
33) 33)
34 34
35// See struct tc_stats in /usr/include/linux/pkt_sched.h 35// See struct tc_stats in /usr/include/linux/pkt_sched.h
@@ -157,10 +157,10 @@ func parseTC_Fq_Qd_Stats(attr netlink.Attribute) (TC_Fq_Qd_Stats, error) {
157func getQdiscMsgs(c *netlink.Conn) ([]netlink.Message, error) { 157func getQdiscMsgs(c *netlink.Conn) ([]netlink.Message, error) {
158 req := netlink.Message{ 158 req := netlink.Message{
159 Header: netlink.Header{ 159 Header: netlink.Header{
160 Flags: netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump, 160 Flags: netlink.Request | netlink.Dump,
161 Type: 38, // RTM_GETQDISC 161 Type: 38, // RTM_GETQDISC
162 }, 162 },
163 Data: []byte{0}, 163 Data: make([]byte, 20),
164 } 164 }
165 165
166 // Perform a request, receive replies, and validate the replies 166 // Perform a request, receive replies, and validate the replies
@@ -192,7 +192,7 @@ func parseMessage(msg netlink.Message) (QdiscInfo, error) {
192 */ 192 */
193 193
194 if len(msg.Data) < 20 { 194 if len(msg.Data) < 20 {
195 return m, fmt.Errorf("Short message, len=%d", len(msg.Data)) 195 return m, fmt.Errorf("short message, len=%d", len(msg.Data))
196 } 196 }
197 197
198 ifaceIdx := nlenc.Uint32(msg.Data[4:8]) 198 ifaceIdx := nlenc.Uint32(msg.Data[4:8])
diff --git a/vendor/github.com/ema/qdisc/go.mod b/vendor/github.com/ema/qdisc/go.mod
new file mode 100644
index 0000000..38279a3
--- /dev/null
+++ b/vendor/github.com/ema/qdisc/go.mod
@@ -0,0 +1,9 @@
1module github.com/ema/qdisc
2
3go 1.12
4
5require (
6 github.com/jsimonetti/rtnetlink v0.0.0-20190830100107-3784a6c7c552 // indirect
7 github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09
8 golang.org/x/sys v0.0.0-20190902133755-9109b7679e13 // indirect
9)
diff --git a/vendor/github.com/ema/qdisc/go.sum b/vendor/github.com/ema/qdisc/go.sum
new file mode 100644
index 0000000..116818b
--- /dev/null
+++ b/vendor/github.com/ema/qdisc/go.sum
@@ -0,0 +1,20 @@
1github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
2github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
3github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
4github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
5github.com/jsimonetti/rtnetlink v0.0.0-20190830100107-3784a6c7c552 h1:Ve/e6edHdAHn+8/24Xco7IhQCv3u5Dab2qZNvR9e5/U=
6github.com/jsimonetti/rtnetlink v0.0.0-20190830100107-3784a6c7c552/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
7github.com/mdlayher/netlink v0.0.0-20190409211403-11939a169225/go.mod h1:eQB3mZE4aiYnlUsyGGCOpPETfdQq4Jhsgf1fk3cwQaA=
8github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09 h1:U2vuol6i4UF6MSpZJclH4HHiLRMoq1NAzxpIpCUJK/Y=
9github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09/go.mod h1:KxeJAFOFLG6AjpyDkQ/iIhxygIUKD+vcwqcnu43w/+M=
10golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
11golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
12golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 h1:k7pJ2yAPLPgbskkFdhRCsA77k2fySZ1zf2zCjvQCiIM=
13golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
14golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
15golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
16golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
17golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
18golang.org/x/sys v0.0.0-20190902133755-9109b7679e13 h1:tdsQdquKbTNMsSZLqnLELJGzCANp9oXhu6zFBW6ODx4=
19golang.org/x/sys v0.0.0-20190902133755-9109b7679e13/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
20golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/mdlayher/genetlink/.travis.yml b/vendor/github.com/mdlayher/genetlink/.travis.yml
deleted file mode 100644
index 6bb1115..0000000
--- a/vendor/github.com/mdlayher/genetlink/.travis.yml
+++ /dev/null
@@ -1,16 +0,0 @@
1language: go
2go:
3 - 1.x
4os:
5 - linux
6sudo: required
7before_install:
8 - go get golang.org/x/lint/golint
9 - go get honnef.co/go/tools/cmd/staticcheck
10 - go get -d ./...
11script:
12 - go build -tags=gofuzz ./...
13 - go vet ./...
14 - staticcheck ./...
15 - golint -set_exit_status ./...
16 - go test -v -race -tags=integration ./...
diff --git a/vendor/github.com/mdlayher/genetlink/README.md b/vendor/github.com/mdlayher/genetlink/README.md
index 9da0a60..9a190b3 100644
--- a/vendor/github.com/mdlayher/genetlink/README.md
+++ b/vendor/github.com/mdlayher/genetlink/README.md
@@ -1,8 +1,12 @@
1genetlink [![Build Status](https://travis-ci.org/mdlayher/genetlink.svg?branch=master)](https://travis-ci.org/mdlayher/genetlink) [![GoDoc](https://godoc.org/github.com/mdlayher/genetlink?status.svg)](https://godoc.org/github.com/mdlayher/genetlink) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/genetlink)](https://goreportcard.com/report/github.com/mdlayher/genetlink) 1genetlink [![builds.sr.ht status](https://builds.sr.ht/~mdlayher/genetlink.svg)](https://builds.sr.ht/~mdlayher/genetlink?) [![GoDoc](https://godoc.org/github.com/mdlayher/genetlink?status.svg)](https://godoc.org/github.com/mdlayher/genetlink) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/genetlink)](https://goreportcard.com/report/github.com/mdlayher/genetlink)
2========= 2=========
3 3
4Package `genetlink` implements generic netlink interactions and data types. 4Package `genetlink` implements generic netlink interactions and data types.
5MIT Licensed. 5MIT Licensed.
6 6
7For more information about how netlink and generic netlink work, 7For more information about how netlink and generic netlink work,
8check out my blog series on [Linux, Netlink, and Go](https://medium.com/@mdlayher/linux-netlink-and-go-part-1-netlink-4781aaeeaca8). \ No newline at end of file 8check out my blog series on [Linux, Netlink, and Go](https://mdlayher.com/blog/linux-netlink-and-go-part-1-netlink/).
9
10If you have any questions or you'd like some guidance, please join us on
11[Gophers Slack](https://invite.slack.golangbridge.org) in the `#networking`
12channel!
diff --git a/vendor/github.com/mdlayher/genetlink/conn.go b/vendor/github.com/mdlayher/genetlink/conn.go
index ca5fed3..43a667b 100644
--- a/vendor/github.com/mdlayher/genetlink/conn.go
+++ b/vendor/github.com/mdlayher/genetlink/conn.go
@@ -2,6 +2,7 @@ package genetlink
2 2
3import ( 3import (
4 "syscall" 4 "syscall"
5 "time"
5 6
6 "github.com/mdlayher/netlink" 7 "github.com/mdlayher/netlink"
7 "golang.org/x/net/bpf" 8 "golang.org/x/net/bpf"
@@ -10,8 +11,12 @@ import (
10// Protocol is the netlink protocol constant used to specify generic netlink. 11// Protocol is the netlink protocol constant used to specify generic netlink.
11const Protocol = 0x10 // unix.NETLINK_GENERIC 12const Protocol = 0x10 // unix.NETLINK_GENERIC
12 13
13// A Conn is a generic netlink connection. A Conn can be used to send and 14// A Conn is a generic netlink connection. A Conn can be used to send and
14// receive generic netlink messages to and from netlink. 15// receive generic netlink messages to and from netlink.
16//
17// A Conn is safe for concurrent use, but to avoid contention in
18// high-throughput applications, the caller should almost certainly create a
19// pool of Conns and distribute them among workers.
15type Conn struct { 20type Conn struct {
16 // Operating system-specific netlink connection. 21 // Operating system-specific netlink connection.
17 c *netlink.Conn 22 c *netlink.Conn
@@ -38,13 +43,16 @@ func NewConn(c *netlink.Conn) *Conn {
38 return &Conn{c: c} 43 return &Conn{c: c}
39} 44}
40 45
41// Close closes the connection. 46// Close closes the connection. Close will unblock any concurrent calls to
47// Receive which are waiting on a response from the kernel.
42func (c *Conn) Close() error { 48func (c *Conn) Close() error {
43 return c.c.Close() 49 return c.c.Close()
44} 50}
45 51
46// GetFamily retrieves a generic netlink family with the specified name. If the 52// GetFamily retrieves a generic netlink family with the specified name.
47// family does not exist, the error value can be checked using os.IsNotExist. 53//
54// If the family does not exist, the error value can be checked using
55// netlink.IsNotExist.
48func (c *Conn) GetFamily(name string) (Family, error) { 56func (c *Conn) GetFamily(name string) (Family, error) {
49 return c.getFamily(name) 57 return c.getFamily(name)
50} 58}
@@ -94,8 +102,10 @@ func (c *Conn) SetWriteBuffer(bytes int) error {
94// SyscallConn returns a raw network connection. This implements the 102// SyscallConn returns a raw network connection. This implements the
95// syscall.Conn interface. 103// syscall.Conn interface.
96// 104//
97// Only the Control method of the returned syscall.RawConn is currently 105// On Go 1.12+, all methods of the returned syscall.RawConn are supported and
98// implemented. 106// the Conn is integrated with the runtime network poller. On versions of Go
107// prior to Go 1.12, only the Control method of the returned syscall.RawConn
108// is implemented.
99// 109//
100// SyscallConn is intended for advanced use cases, such as getting and setting 110// SyscallConn is intended for advanced use cases, such as getting and setting
101// arbitrary socket options using the netlink socket's file descriptor. 111// arbitrary socket options using the netlink socket's file descriptor.
@@ -107,23 +117,39 @@ func (c *Conn) SyscallConn() (syscall.RawConn, error) {
107 return c.c.SyscallConn() 117 return c.c.SyscallConn()
108} 118}
109 119
120// SetDeadline sets the read and write deadlines associated with the connection.
121//
122// Deadline functionality is only supported on Go 1.12+. Calling this function
123// on older versions of Go will result in an error.
124func (c *Conn) SetDeadline(t time.Time) error {
125 return c.c.SetDeadline(t)
126}
127
128// SetReadDeadline sets the read deadline associated with the connection.
129//
130// Deadline functionality is only supported on Go 1.12+. Calling this function
131// on older versions of Go will result in an error.
132func (c *Conn) SetReadDeadline(t time.Time) error {
133 return c.c.SetReadDeadline(t)
134}
135
136// SetWriteDeadline sets the write deadline associated with the connection.
137//
138// Deadline functionality is only supported on Go 1.12+. Calling this function
139// on older versions of Go will result in an error.
140func (c *Conn) SetWriteDeadline(t time.Time) error {
141 return c.c.SetWriteDeadline(t)
142}
143
110// Send sends a single Message to netlink, wrapping it in a netlink.Message 144// Send sends a single Message to netlink, wrapping it in a netlink.Message
111// using the specified generic netlink family and flags. On success, Send 145// using the specified generic netlink family and flags. On success, Send
112// returns a copy of the netlink.Message with all parameters populated, for 146// returns a copy of the netlink.Message with all parameters populated, for
113// later validation. 147// later validation.
114func (c *Conn) Send(m Message, family uint16, flags netlink.HeaderFlags) (netlink.Message, error) { 148func (c *Conn) Send(m Message, family uint16, flags netlink.HeaderFlags) (netlink.Message, error) {
115 nm := netlink.Message{ 149 nm, err := packMessage(m, family, flags)
116 Header: netlink.Header{
117 Type: netlink.HeaderType(family),
118 Flags: flags,
119 },
120 }
121
122 mb, err := m.MarshalBinary()
123 if err != nil { 150 if err != nil {
124 return netlink.Message{}, err 151 return netlink.Message{}, err
125 } 152 }
126 nm.Data = mb
127 153
128 reqnm, err := c.c.Send(nm) 154 reqnm, err := c.c.Send(nm)
129 if err != nil { 155 if err != nil {
@@ -141,39 +167,69 @@ func (c *Conn) Receive() ([]Message, []netlink.Message, error) {
141 return nil, nil, err 167 return nil, nil, err
142 } 168 }
143 169
144 gmsgs := make([]Message, 0, len(msgs)) 170 gmsgs, err := unpackMessages(msgs)
145 for _, nm := range msgs { 171 if err != nil {
146 var gm Message 172 return nil, nil, err
147 if err := (&gm).UnmarshalBinary(nm.Data); err != nil {
148 return nil, nil, err
149 }
150
151 gmsgs = append(gmsgs, gm)
152 } 173 }
153 174
154 return gmsgs, msgs, nil 175 return gmsgs, msgs, nil
155} 176}
156 177
157// Execute sends a single Message to netlink using Conn.Send, receives one or 178// Execute sends a single Message to netlink using Send, receives one or more
158// more replies using Conn.Receive, and then checks the validity of the replies 179// replies using Receive, and then checks the validity of the replies against
159// against the request using netlink.Validate. 180// the request using netlink.Validate.
181//
182// Execute acquires a lock for the duration of the function call which blocks
183// concurrent calls to Send and Receive, in order to ensure consistency between
184// generic netlink request/reply messages.
160// 185//
161// See the documentation of Conn.Send, Conn.Receive, and netlink.Validate for 186// See the documentation of Send, Receive, and netlink.Validate for details
162// details about each function. 187// about each function.
163func (c *Conn) Execute(m Message, family uint16, flags netlink.HeaderFlags) ([]Message, error) { 188func (c *Conn) Execute(m Message, family uint16, flags netlink.HeaderFlags) ([]Message, error) {
164 req, err := c.Send(m, family, flags) 189 nm, err := packMessage(m, family, flags)
165 if err != nil { 190 if err != nil {
166 return nil, err 191 return nil, err
167 } 192 }
168 193
169 msgs, replies, err := c.Receive() 194 // Locking behavior handled by netlink.Conn.Execute.
195 msgs, err := c.c.Execute(nm)
170 if err != nil { 196 if err != nil {
171 return nil, err 197 return nil, err
172 } 198 }
173 199
174 if err := netlink.Validate(req, replies); err != nil { 200 return unpackMessages(msgs)
175 return nil, err 201}
202
203// packMessage packs a generic netlink Message into a netlink.Message with the
204// appropriate generic netlink family and netlink flags.
205func packMessage(m Message, family uint16, flags netlink.HeaderFlags) (netlink.Message, error) {
206 nm := netlink.Message{
207 Header: netlink.Header{
208 Type: netlink.HeaderType(family),
209 Flags: flags,
210 },
211 }
212
213 mb, err := m.MarshalBinary()
214 if err != nil {
215 return netlink.Message{}, err
216 }
217 nm.Data = mb
218
219 return nm, nil
220}
221
222// unpackMessages unpacks generic netlink Messages from a slice of netlink.Messages.
223func unpackMessages(msgs []netlink.Message) ([]Message, error) {
224 gmsgs := make([]Message, 0, len(msgs))
225 for _, nm := range msgs {
226 var gm Message
227 if err := (&gm).UnmarshalBinary(nm.Data); err != nil {
228 return nil, err
229 }
230
231 gmsgs = append(gmsgs, gm)
176 } 232 }
177 233
178 return msgs, nil 234 return gmsgs, nil
179} 235}
diff --git a/vendor/github.com/mdlayher/genetlink/doc.go b/vendor/github.com/mdlayher/genetlink/doc.go
index f183e6c..9bc3530 100644
--- a/vendor/github.com/mdlayher/genetlink/doc.go
+++ b/vendor/github.com/mdlayher/genetlink/doc.go
@@ -1,2 +1,6 @@
1// Package genetlink implements generic netlink interactions and data types. 1// Package genetlink implements generic netlink interactions and data types.
2//
3// If you have any questions or you'd like some guidance, please join us on
4// Gophers Slack (https://invite.slack.golangbridge.org) in the #networking
5// channel!
2package genetlink 6package genetlink
diff --git a/vendor/github.com/mdlayher/genetlink/family_linux.go b/vendor/github.com/mdlayher/genetlink/family_linux.go
index 9b8f0d6..9c1b7ff 100644
--- a/vendor/github.com/mdlayher/genetlink/family_linux.go
+++ b/vendor/github.com/mdlayher/genetlink/family_linux.go
@@ -12,11 +12,9 @@ import (
12 "golang.org/x/sys/unix" 12 "golang.org/x/sys/unix"
13) 13)
14 14
15var ( 15// errInvalidFamilyVersion is returned when a family's version is greater
16 // errInvalidFamilyVersion is returned when a family's version is greater 16// than an 8-bit integer.
17 // than an 8-bit integer. 17var errInvalidFamilyVersion = errors.New("invalid family version attribute")
18 errInvalidFamilyVersion = errors.New("invalid family version attribute")
19)
20 18
21// getFamily retrieves a generic netlink family with the specified name. 19// getFamily retrieves a generic netlink family with the specified name.
22func (c *Conn) getFamily(name string) (Family, error) { 20func (c *Conn) getFamily(name string) (Family, error) {
@@ -37,7 +35,7 @@ func (c *Conn) getFamily(name string) (Family, error) {
37 Data: b, 35 Data: b,
38 } 36 }
39 37
40 msgs, err := c.Execute(req, unix.GENL_ID_CTRL, netlink.HeaderFlagsRequest) 38 msgs, err := c.Execute(req, unix.GENL_ID_CTRL, netlink.Request)
41 if err != nil { 39 if err != nil {
42 return Family{}, err 40 return Family{}, err
43 } 41 }
@@ -67,7 +65,7 @@ func (c *Conn) listFamilies() ([]Family, error) {
67 }, 65 },
68 } 66 }
69 67
70 flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump 68 flags := netlink.Request | netlink.Dump
71 msgs, err := c.Execute(req, unix.GENL_ID_CTRL, flags) 69 msgs, err := c.Execute(req, unix.GENL_ID_CTRL, flags)
72 if err != nil { 70 if err != nil {
73 return nil, err 71 return nil, err
diff --git a/vendor/github.com/mdlayher/genetlink/family_others.go b/vendor/github.com/mdlayher/genetlink/family_others.go
index 1b66c17..19be1b9 100644
--- a/vendor/github.com/mdlayher/genetlink/family_others.go
+++ b/vendor/github.com/mdlayher/genetlink/family_others.go
@@ -7,12 +7,10 @@ import (
7 "runtime" 7 "runtime"
8) 8)
9 9
10var ( 10// errUnimplemented is returned by all functions on platforms that
11 // errUnimplemented is returned by all functions on platforms that 11// cannot make use of generic netlink.
12 // cannot make use of generic netlink. 12var errUnimplemented = fmt.Errorf("generic netlink not implemented on %s/%s",
13 errUnimplemented = fmt.Errorf("generic netlink not implemented on %s/%s", 13 runtime.GOOS, runtime.GOARCH)
14 runtime.GOOS, runtime.GOARCH)
15)
16 14
17// getFamily always returns an error. 15// getFamily always returns an error.
18func (c *Conn) getFamily(name string) (Family, error) { 16func (c *Conn) getFamily(name string) (Family, error) {
diff --git a/vendor/github.com/mdlayher/genetlink/go.mod b/vendor/github.com/mdlayher/genetlink/go.mod
new file mode 100644
index 0000000..a7285b5
--- /dev/null
+++ b/vendor/github.com/mdlayher/genetlink/go.mod
@@ -0,0 +1,10 @@
1module github.com/mdlayher/genetlink
2
3go 1.12
4
5require (
6 github.com/google/go-cmp v0.3.1
7 github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09
8 golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297
9 golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456
10)
diff --git a/vendor/github.com/mdlayher/genetlink/go.sum b/vendor/github.com/mdlayher/genetlink/go.sum
new file mode 100644
index 0000000..167aafc
--- /dev/null
+++ b/vendor/github.com/mdlayher/genetlink/go.sum
@@ -0,0 +1,18 @@
1github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
2github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
3github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
4github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a h1:84IpUNXj4mCR9CuCEvSiCArMbzr/TMbuPIadKDwypkI=
5github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
6github.com/mdlayher/netlink v0.0.0-20190409211403-11939a169225/go.mod h1:eQB3mZE4aiYnlUsyGGCOpPETfdQq4Jhsgf1fk3cwQaA=
7github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09 h1:U2vuol6i4UF6MSpZJclH4HHiLRMoq1NAzxpIpCUJK/Y=
8github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09/go.mod h1:KxeJAFOFLG6AjpyDkQ/iIhxygIUKD+vcwqcnu43w/+M=
9golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
10golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
11golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 h1:k7pJ2yAPLPgbskkFdhRCsA77k2fySZ1zf2zCjvQCiIM=
12golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
13golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
14golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
15golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
16golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 h1:ng0gs1AKnRRuEMZoTLLlbOd+C17zUDepwGQBb/n+JVg=
17golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
18golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/mdlayher/genetlink/message.go b/vendor/github.com/mdlayher/genetlink/message.go
index 14306ca..6b34044 100644
--- a/vendor/github.com/mdlayher/genetlink/message.go
+++ b/vendor/github.com/mdlayher/genetlink/message.go
@@ -1,15 +1,11 @@
1package genetlink 1package genetlink
2 2
3import ( 3import "errors"
4 "errors"
5)
6 4
7var ( 5// errInvalidMessage is returned when a Message is malformed.
8 // errInvalidMessage is returned when a Message is malformed. 6var errInvalidMessage = errors.New("generic netlink message is invalid or too short")
9 errInvalidMessage = errors.New("generic netlink message is invalid or too short")
10)
11 7
12// A Header is a generic netlink header. A Header is sent and received with 8// A Header is a generic netlink header. A Header is sent and received with
13// each generic netlink message to indicate metadata regarding a Message. 9// each generic netlink message to indicate metadata regarding a Message.
14type Header struct { 10type Header struct {
15 // Command specifies a command to issue to netlink. 11 // Command specifies a command to issue to netlink.
@@ -22,13 +18,13 @@ type Header struct {
22// headerLen is the length of a Header. 18// headerLen is the length of a Header.
23const headerLen = 4 // unix.GENL_HDRLEN 19const headerLen = 4 // unix.GENL_HDRLEN
24 20
25// A Message is a generic netlink message. It contains a Header and an 21// A Message is a generic netlink message. It contains a Header and an
26// arbitrary byte payload, which may be decoded using information from the 22// arbitrary byte payload, which may be decoded using information from the
27// Header. 23// Header.
28// 24//
29// Data is encoded using the native endianness of the host system. Use 25// Data is encoded using the native endianness of the host system. Use
30// the netlink.Uint* and netlink.PutUint* functions to encode and decode 26// the netlink.AttributeDecoder and netlink.AttributeEncoder types to decode
31// integers. 27// and encode data.
32type Message struct { 28type Message struct {
33 Header Header 29 Header Header
34 Data []byte 30 Data []byte
diff --git a/vendor/github.com/mdlayher/netlink/.gitignore b/vendor/github.com/mdlayher/netlink/.gitignore
index 30111b6..cc75a0d 100644
--- a/vendor/github.com/mdlayher/netlink/.gitignore
+++ b/vendor/github.com/mdlayher/netlink/.gitignore
@@ -1 +1,2 @@
1cmd/nlstress/nlstress 1cmd/nlstress/nlstress
2netlink.test
diff --git a/vendor/github.com/mdlayher/netlink/.travis.yml b/vendor/github.com/mdlayher/netlink/.travis.yml
deleted file mode 100644
index 7334124..0000000
--- a/vendor/github.com/mdlayher/netlink/.travis.yml
+++ /dev/null
@@ -1,17 +0,0 @@
1language: go
2go:
3 - "1.x"
4os:
5 - linux
6 - osx
7sudo: required
8before_install:
9 - go get golang.org/x/lint/golint
10 - go get honnef.co/go/tools/cmd/staticcheck
11 - go get -d ./...
12script:
13 - go build -tags=gofuzz ./...
14 - go vet ./...
15 - staticcheck ./...
16 - golint -set_exit_status ./...
17 - go test -v -race -tags=integration ./...
diff --git a/vendor/github.com/mdlayher/netlink/LICENSE.md b/vendor/github.com/mdlayher/netlink/LICENSE.md
index 255dbe6..0018ed3 100644
--- a/vendor/github.com/mdlayher/netlink/LICENSE.md
+++ b/vendor/github.com/mdlayher/netlink/LICENSE.md
@@ -1,7 +1,7 @@
1MIT License 1MIT License
2=========== 2===========
3 3
4Copyright (C) 2016-2017 Matt Layher 4Copyright (C) 2016-2019 Matt Layher
5 5
6Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7 7
diff --git a/vendor/github.com/mdlayher/netlink/README.md b/vendor/github.com/mdlayher/netlink/README.md
index 7cd8b31..122168c 100644
--- a/vendor/github.com/mdlayher/netlink/README.md
+++ b/vendor/github.com/mdlayher/netlink/README.md
@@ -1,27 +1,49 @@
1netlink [![Build Status](https://travis-ci.org/mdlayher/netlink.svg?branch=master)](https://travis-ci.org/mdlayher/netlink) [![GoDoc](https://godoc.org/github.com/mdlayher/netlink?status.svg)](https://godoc.org/github.com/mdlayher/netlink) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/netlink)](https://goreportcard.com/report/github.com/mdlayher/netlink) 1# netlink [![builds.sr.ht status](https://builds.sr.ht/~mdlayher/netlink.svg)](https://builds.sr.ht/~mdlayher/netlink?) [![GoDoc](https://godoc.org/github.com/mdlayher/netlink?status.svg)](https://godoc.org/github.com/mdlayher/netlink) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/netlink)](https://goreportcard.com/report/github.com/mdlayher/netlink)
2=======
3 2
4Package `netlink` provides low-level access to Linux netlink sockets. 3Package `netlink` provides low-level access to Linux netlink sockets.
5MIT Licensed. 4MIT Licensed.
6 5
7For more information about how netlink works, check out my blog series 6For more information about how netlink works, check out my blog series
8on [Linux, Netlink, and Go](https://medium.com/@mdlayher/linux-netlink-and-go-part-1-netlink-4781aaeeaca8). 7on [Linux, Netlink, and Go](https://mdlayher.com/blog/linux-netlink-and-go-part-1-netlink/).
9 8
10If you're looking for package `genetlink`, it's been moved to its own 9If you have any questions or you'd like some guidance, please join us on
11repository at [`github.com/mdlayher/genetlink`](https://github.com/mdlayher/genetlink). 10[Gophers Slack](https://invite.slack.golangbridge.org) in the `#networking`
11channel!
12 12
13Why? 13## Stability
14---- 14
15At this time, package `netlink` is in a pre-v1.0.0 state. Changes are being made
16which may impact the exported API of this package and others in its ecosystem.
17To follow along on the status of a v1.0.0 release, [see the associated issue](https://github.com/mdlayher/netlink/issues/123).
18
19The general policy of this package is to only support the latest, stable version
20of Go. Compatibility shims may be added for prior versions of Go on an as-needed
21basis. If you would like to raise a concern, please [file an issue](https://github.com/mdlayher/netlink/issues/new).
22
23**If you depend on this package in your applications, please vendor it or use Go
24modules when building your application.**
25
26## Design
15 27
16A [number of netlink packages](https://godoc.org/?q=netlink) are already 28A [number of netlink packages](https://godoc.org/?q=netlink) are already
17available for Go, but I wasn't able to find one that aligned with what 29available for Go, but I wasn't able to find one that aligned with what
18I wanted in a netlink package: 30I wanted in a netlink package:
19 31
20- Simple, idiomatic API 32- Straightforward, idiomatic API
21- Well tested 33- Well tested
22- Well documented 34- Well documented
23- Makes use of Go best practices 35- Doesn't use package/global variables or state
24- Doesn't need root to work 36- Doesn't necessarily need root to work
25 37
26My goal for this package is to use it as a building block for the creation 38My goal for this package is to use it as a building block for the creation
27of other netlink family packages. 39of other netlink family packages.
40
41## Ecosystem
42
43Over time, an ecosystem of Go packages has developed around package `netlink`.
44Many of these packages provide building blocks for further interactions with
45various netlink families, such as `NETLINK_GENERIC` or `NETLINK_ROUTE`.
46
47To have your package included in this diagram, please send a pull request!
48
49![netlink ecosystem](./netlink.svg)
diff --git a/vendor/github.com/mdlayher/netlink/align.go b/vendor/github.com/mdlayher/netlink/align.go
index e02e28b..20892c7 100644
--- a/vendor/github.com/mdlayher/netlink/align.go
+++ b/vendor/github.com/mdlayher/netlink/align.go
@@ -1,8 +1,6 @@
1package netlink 1package netlink
2 2
3import ( 3import "unsafe"
4 "unsafe"
5)
6 4
7// Functions and values used to properly align netlink messages, headers, 5// Functions and values used to properly align netlink messages, headers,
8// and attributes. Definitions taken from Linux kernel source. 6// and attributes. Definitions taken from Linux kernel source.
diff --git a/vendor/github.com/mdlayher/netlink/attribute.go b/vendor/github.com/mdlayher/netlink/attribute.go
index 45d5d46..1e40a72 100644
--- a/vendor/github.com/mdlayher/netlink/attribute.go
+++ b/vendor/github.com/mdlayher/netlink/attribute.go
@@ -8,10 +8,8 @@ import (
8 "github.com/mdlayher/netlink/nlenc" 8 "github.com/mdlayher/netlink/nlenc"
9) 9)
10 10
11var ( 11// errInvalidAttribute specifies if an Attribute's length is incorrect.
12 // errInvalidAttribute specifies if an Attribute's length is incorrect. 12var errInvalidAttribute = errors.New("invalid attribute; length too short or too large")
13 errInvalidAttribute = errors.New("invalid attribute; length too short or too large")
14)
15 13
16// An Attribute is a netlink attribute. Attributes are packed and unpacked 14// An Attribute is a netlink attribute. Attributes are packed and unpacked
17// to and from the Data field of Message for some netlink families. 15// to and from the Data field of Message for some netlink families.
@@ -180,12 +178,8 @@ func (ad *AttributeDecoder) Next() bool {
180 178
181 ad.i++ 179 ad.i++
182 180
183 if len(ad.attrs) < ad.i { 181 // More attributes?
184 // No more attributes, stop iteration. 182 return len(ad.attrs) >= ad.i
185 return false
186 }
187
188 return true
189} 183}
190 184
191// Type returns the Attribute.Type field of the current netlink attribute 185// Type returns the Attribute.Type field of the current netlink attribute
diff --git a/vendor/github.com/mdlayher/netlink/conn.go b/vendor/github.com/mdlayher/netlink/conn.go
index 4ccbdca..46e0c30 100644
--- a/vendor/github.com/mdlayher/netlink/conn.go
+++ b/vendor/github.com/mdlayher/netlink/conn.go
@@ -2,9 +2,9 @@ package netlink
2 2
3import ( 3import (
4 "errors" 4 "errors"
5 "io"
6 "math/rand" 5 "math/rand"
7 "os" 6 "os"
7 "sync"
8 "sync/atomic" 8 "sync/atomic"
9 "syscall" 9 "syscall"
10 "time" 10 "time"
@@ -12,30 +12,16 @@ import (
12 "golang.org/x/net/bpf" 12 "golang.org/x/net/bpf"
13) 13)
14 14
15// Error messages which can be returned by Validate.
16var (
17 errMismatchedSequence = errors.New("mismatched sequence in netlink reply")
18 errMismatchedPID = errors.New("mismatched PID in netlink reply")
19 errShortErrorMessage = errors.New("not enough data for netlink error code")
20)
21
22// Errors which can be returned by a Socket that does not implement
23// all exposed methods of Conn.
24var (
25 errReadWriteCloserNotSupported = errors.New("raw read/write/closer not supported")
26 errMulticastGroupsNotSupported = errors.New("multicast groups not supported")
27 errBPFFiltersNotSupported = errors.New("BPF filters not supported")
28 errOptionsNotSupported = errors.New("options not supported")
29 errSetBufferNotSupported = errors.New("setting buffer sizes not supported")
30 errSyscallConnNotSupported = errors.New("syscall.RawConn operation not supported")
31)
32
33// A Conn is a connection to netlink. A Conn can be used to send and 15// A Conn is a connection to netlink. A Conn can be used to send and
34// receives messages to and from netlink. 16// receives messages to and from netlink.
35// 17//
36// A Conn is safe for concurrent use, but to avoid contention in 18// A Conn is safe for concurrent use, but to avoid contention in
37// high-throughput applications, the caller should almost certainly create a 19// high-throughput applications, the caller should almost certainly create a
38// pool of Conns and distribute them among workers. 20// pool of Conns and distribute them among workers.
21//
22// A Conn is capable of manipulating netlink subsystems from within a specific
23// Linux network namespace, but special care must be taken when doing so. See
24// the documentation of Config for details.
39type Conn struct { 25type Conn struct {
40 // sock is the operating system-specific implementation of 26 // sock is the operating system-specific implementation of
41 // a netlink sockets connection. 27 // a netlink sockets connection.
@@ -50,6 +36,10 @@ type Conn struct {
50 36
51 // d provides debugging capabilities for a Conn if not nil. 37 // d provides debugging capabilities for a Conn if not nil.
52 d *debugger 38 d *debugger
39
40 // mu serializes access to the netlink socket for the request/response
41 // transaction within Execute.
42 mu sync.RWMutex
53} 43}
54 44
55// A Socket is an operating-system specific implementation of netlink 45// A Socket is an operating-system specific implementation of netlink
@@ -107,24 +97,40 @@ func (c *Conn) debug(fn func(d *debugger)) {
107 fn(c.d) 97 fn(c.d)
108} 98}
109 99
110// Close closes the connection. 100// Close closes the connection. Close will unblock any concurrent calls to
101// Receive which are waiting on a response from the kernel.
111func (c *Conn) Close() error { 102func (c *Conn) Close() error {
112 return c.sock.Close() 103 // Close does not acquire a lock because it must be able to interrupt any
104 // blocked system calls, such as when Receive is waiting on a multicast
105 // group message.
106 //
107 // We rely on the kernel to deal with concurrent operations to the netlink
108 // socket itself.
109 return newOpError("close", c.sock.Close())
113} 110}
114 111
115// Execute sends a single Message to netlink using Conn.Send, receives one or more 112// Execute sends a single Message to netlink using Send, receives one or more
116// replies using Conn.Receive, and then checks the validity of the replies against 113// replies using Receive, and then checks the validity of the replies against
117// the request using Validate. 114// the request using Validate.
118// 115//
119// See the documentation of Conn.Send, Conn.Receive, and Validate for details about 116// Execute acquires a lock for the duration of the function call which blocks
117// concurrent calls to Send, SendMessages, and Receive, in order to ensure
118// consistency between netlink request/reply messages.
119//
120// See the documentation of Send, Receive, and Validate for details about
120// each function. 121// each function.
121func (c *Conn) Execute(message Message) ([]Message, error) { 122func (c *Conn) Execute(message Message) ([]Message, error) {
122 req, err := c.Send(message) 123 // Acquire the write lock and invoke the internal implementations of Send
124 // and Receive which require the lock already be held.
125 c.mu.Lock()
126 defer c.mu.Unlock()
127
128 req, err := c.lockedSend(message)
123 if err != nil { 129 if err != nil {
124 return nil, err 130 return nil, err
125 } 131 }
126 132
127 replies, err := c.Receive() 133 replies, err := c.lockedReceive()
128 if err != nil { 134 if err != nil {
129 return nil, err 135 return nil, err
130 } 136 }
@@ -136,24 +142,14 @@ func (c *Conn) Execute(message Message) ([]Message, error) {
136 return replies, nil 142 return replies, nil
137} 143}
138 144
139func (c *Conn) fixMsg(m *Message, ml int) {
140 if m.Header.Length == 0 {
141 m.Header.Length = uint32(nlmsgAlign(ml))
142 }
143
144 if m.Header.Sequence == 0 {
145 m.Header.Sequence = c.nextSequence()
146 }
147
148 if m.Header.PID == 0 {
149 m.Header.PID = c.pid
150 }
151}
152
153// SendMessages sends multiple Messages to netlink. The handling of 145// SendMessages sends multiple Messages to netlink. The handling of
154// a Header's Length, Sequence and PID fields is the same as when 146// a Header's Length, Sequence and PID fields is the same as when
155// calling Send. 147// calling Send.
156func (c *Conn) SendMessages(messages []Message) ([]Message, error) { 148func (c *Conn) SendMessages(messages []Message) ([]Message, error) {
149 // Wait for any concurrent calls to Execute to finish before proceeding.
150 c.mu.RLock()
151 defer c.mu.RUnlock()
152
157 for idx, m := range messages { 153 for idx, m := range messages {
158 ml := nlmsgLength(len(m.Data)) 154 ml := nlmsgLength(len(m.Data))
159 155
@@ -176,7 +172,7 @@ func (c *Conn) SendMessages(messages []Message) ([]Message, error) {
176 d.debugf(1, "send msgs: err: %v", err) 172 d.debugf(1, "send msgs: err: %v", err)
177 }) 173 })
178 174
179 return nil, err 175 return nil, newOpError("send-messages", err)
180 } 176 }
181 177
182 return messages, nil 178 return messages, nil
@@ -196,6 +192,17 @@ func (c *Conn) SendMessages(messages []Message) ([]Message, error) {
196// If Header.PID is 0, it will be automatically populated using a PID 192// If Header.PID is 0, it will be automatically populated using a PID
197// assigned by netlink. 193// assigned by netlink.
198func (c *Conn) Send(message Message) (Message, error) { 194func (c *Conn) Send(message Message) (Message, error) {
195 // Wait for any concurrent calls to Execute to finish before proceeding.
196 c.mu.RLock()
197 defer c.mu.RUnlock()
198
199 return c.lockedSend(message)
200}
201
202// lockedSend implements Send, but must be called with c.mu acquired for reading.
203// We rely on the kernel to deal with concurrent reads and writes to the netlink
204// socket itself.
205func (c *Conn) lockedSend(message Message) (Message, error) {
199 ml := nlmsgLength(len(message.Data)) 206 ml := nlmsgLength(len(message.Data))
200 207
201 // TODO(mdlayher): fine-tune this limit. 208 // TODO(mdlayher): fine-tune this limit.
@@ -214,7 +221,7 @@ func (c *Conn) Send(message Message) (Message, error) {
214 d.debugf(1, "send: err: %v", err) 221 d.debugf(1, "send: err: %v", err)
215 }) 222 })
216 223
217 return Message{}, err 224 return Message{}, newOpError("send", err)
218 } 225 }
219 226
220 return message, nil 227 return message, nil
@@ -226,6 +233,17 @@ func (c *Conn) Send(message Message) (Message, error) {
226// 233//
227// If any of the messages indicate a netlink error, that error will be returned. 234// If any of the messages indicate a netlink error, that error will be returned.
228func (c *Conn) Receive() ([]Message, error) { 235func (c *Conn) Receive() ([]Message, error) {
236 // Wait for any concurrent calls to Execute to finish before proceeding.
237 c.mu.RLock()
238 defer c.mu.RUnlock()
239
240 return c.lockedReceive()
241}
242
243// lockedReceive implements Receive, but must be called with c.mu acquired for reading.
244// We rely on the kernel to deal with concurrent reads and writes to the netlink
245// socket itself.
246func (c *Conn) lockedReceive() ([]Message, error) {
229 msgs, err := c.receive() 247 msgs, err := c.receive()
230 if err != nil { 248 if err != nil {
231 c.debug(func(d *debugger) { 249 c.debug(func(d *debugger) {
@@ -248,7 +266,7 @@ func (c *Conn) Receive() ([]Message, error) {
248 266
249 // Trim the final message with multi-part done indicator if 267 // Trim the final message with multi-part done indicator if
250 // present. 268 // present.
251 if m := msgs[len(msgs)-1]; m.Header.Flags&HeaderFlagsMulti != 0 && m.Header.Type == HeaderTypeDone { 269 if m := msgs[len(msgs)-1]; m.Header.Flags&Multi != 0 && m.Header.Type == Done {
252 return msgs[:len(msgs)-1], nil 270 return msgs[:len(msgs)-1], nil
253 } 271 }
254 272
@@ -258,11 +276,18 @@ func (c *Conn) Receive() ([]Message, error) {
258// receive is the internal implementation of Conn.Receive, which can be called 276// receive is the internal implementation of Conn.Receive, which can be called
259// recursively to handle multi-part messages. 277// recursively to handle multi-part messages.
260func (c *Conn) receive() ([]Message, error) { 278func (c *Conn) receive() ([]Message, error) {
279 // NB: All non-nil errors returned from this function *must* be of type
280 // OpError in order to maintain the appropriate contract with callers of
281 // this package.
282 //
283 // This contract also applies to functions called within this function,
284 // such as checkMessage.
285
261 var res []Message 286 var res []Message
262 for { 287 for {
263 msgs, err := c.sock.Receive() 288 msgs, err := c.sock.Receive()
264 if err != nil { 289 if err != nil {
265 return nil, err 290 return nil, newOpError("receive", err)
266 } 291 }
267 292
268 // If this message is multi-part, we will need to perform an recursive call 293 // If this message is multi-part, we will need to perform an recursive call
@@ -275,14 +300,14 @@ func (c *Conn) receive() ([]Message, error) {
275 } 300 }
276 301
277 // Does this message indicate a multi-part message? 302 // Does this message indicate a multi-part message?
278 if m.Header.Flags&HeaderFlagsMulti == 0 { 303 if m.Header.Flags&Multi == 0 {
279 // No, check the next messages. 304 // No, check the next messages.
280 continue 305 continue
281 } 306 }
282 307
283 // Does this message indicate the last message in a series of 308 // Does this message indicate the last message in a series of
284 // multi-part messages from a single read? 309 // multi-part messages from a single read?
285 multi = m.Header.Type != HeaderTypeDone 310 multi = m.Header.Type != Done
286 } 311 }
287 312
288 res = append(res, msgs...) 313 res = append(res, msgs...)
@@ -294,51 +319,6 @@ func (c *Conn) receive() ([]Message, error) {
294 } 319 }
295} 320}
296 321
297// An fder is a Socket that supports retrieving its raw file descriptor.
298type fder interface {
299 Socket
300 FD() int
301}
302
303var _ io.ReadWriteCloser = &fileReadWriteCloser{}
304
305// A fileReadWriteCloser is a limited *os.File which only allows access to its
306// Read and Write methods.
307type fileReadWriteCloser struct {
308 f *os.File
309}
310
311// Read implements io.ReadWriteCloser.
312func (rwc *fileReadWriteCloser) Read(b []byte) (int, error) { return rwc.f.Read(b) }
313
314// Write implements io.ReadWriteCloser.
315func (rwc *fileReadWriteCloser) Write(b []byte) (int, error) { return rwc.f.Write(b) }
316
317// Close implements io.ReadWriteCloser.
318func (rwc *fileReadWriteCloser) Close() error { return rwc.f.Close() }
319
320// ReadWriteCloser returns a raw io.ReadWriteCloser backed by the connection
321// of the Conn.
322//
323// ReadWriteCloser is intended for advanced use cases, such as those that do
324// not involve standard netlink message passing.
325//
326// Once invoked, it is the caller's responsibility to ensure that operations
327// performed using Conn and the raw io.ReadWriteCloser do not conflict with
328// each other. In almost all scenarios, only one of the two should be used.
329func (c *Conn) ReadWriteCloser() (io.ReadWriteCloser, error) {
330 fc, ok := c.sock.(fder)
331 if !ok {
332 return nil, errReadWriteCloserNotSupported
333 }
334
335 return &fileReadWriteCloser{
336 // Backing the io.ReadWriteCloser with an *os.File enables easy reading
337 // and writing without more system call boilerplate.
338 f: os.NewFile(uintptr(fc.FD()), "netlink"),
339 }, nil
340}
341
342// A groupJoinLeaver is a Socket that supports joining and leaving 322// A groupJoinLeaver is a Socket that supports joining and leaving
343// netlink multicast groups. 323// netlink multicast groups.
344type groupJoinLeaver interface { 324type groupJoinLeaver interface {
@@ -349,22 +329,22 @@ type groupJoinLeaver interface {
349 329
350// JoinGroup joins a netlink multicast group by its ID. 330// JoinGroup joins a netlink multicast group by its ID.
351func (c *Conn) JoinGroup(group uint32) error { 331func (c *Conn) JoinGroup(group uint32) error {
352 gc, ok := c.sock.(groupJoinLeaver) 332 conn, ok := c.sock.(groupJoinLeaver)
353 if !ok { 333 if !ok {
354 return errMulticastGroupsNotSupported 334 return notSupported("join-group")
355 } 335 }
356 336
357 return gc.JoinGroup(group) 337 return newOpError("join-group", conn.JoinGroup(group))
358} 338}
359 339
360// LeaveGroup leaves a netlink multicast group by its ID. 340// LeaveGroup leaves a netlink multicast group by its ID.
361func (c *Conn) LeaveGroup(group uint32) error { 341func (c *Conn) LeaveGroup(group uint32) error {
362 gc, ok := c.sock.(groupJoinLeaver) 342 conn, ok := c.sock.(groupJoinLeaver)
363 if !ok { 343 if !ok {
364 return errMulticastGroupsNotSupported 344 return notSupported("leave-group")
365 } 345 }
366 346
367 return gc.LeaveGroup(group) 347 return newOpError("leave-group", conn.LeaveGroup(group))
368} 348}
369 349
370// A bpfSetter is a Socket that supports setting and removing BPF filters. 350// A bpfSetter is a Socket that supports setting and removing BPF filters.
@@ -376,22 +356,69 @@ type bpfSetter interface {
376 356
377// SetBPF attaches an assembled BPF program to a Conn. 357// SetBPF attaches an assembled BPF program to a Conn.
378func (c *Conn) SetBPF(filter []bpf.RawInstruction) error { 358func (c *Conn) SetBPF(filter []bpf.RawInstruction) error {
379 bc, ok := c.sock.(bpfSetter) 359 conn, ok := c.sock.(bpfSetter)
380 if !ok { 360 if !ok {
381 return errBPFFiltersNotSupported 361 return notSupported("set-bpf")
382 } 362 }
383 363
384 return bc.SetBPF(filter) 364 return newOpError("set-bpf", conn.SetBPF(filter))
385} 365}
386 366
387// RemoveBPF removes a BPF filter from a Conn. 367// RemoveBPF removes a BPF filter from a Conn.
388func (c *Conn) RemoveBPF() error { 368func (c *Conn) RemoveBPF() error {
389 s, ok := c.sock.(bpfSetter) 369 conn, ok := c.sock.(bpfSetter)
370 if !ok {
371 return notSupported("remove-bpf")
372 }
373
374 return newOpError("remove-bpf", conn.RemoveBPF())
375}
376
377// A deadlineSetter is a Socket that supports setting deadlines.
378type deadlineSetter interface {
379 Socket
380 SetDeadline(time.Time) error
381 SetReadDeadline(time.Time) error
382 SetWriteDeadline(time.Time) error
383}
384
385// SetDeadline sets the read and write deadlines associated with the connection.
386//
387// Deadline functionality is only supported on Go 1.12+. Calling this function
388// on older versions of Go will result in an error.
389func (c *Conn) SetDeadline(t time.Time) error {
390 conn, ok := c.sock.(deadlineSetter)
390 if !ok { 391 if !ok {
391 return errBPFFiltersNotSupported 392 return notSupported("set-deadline")
392 } 393 }
393 394
394 return s.RemoveBPF() 395 return newOpError("set-deadline", conn.SetDeadline(t))
396}
397
398// SetReadDeadline sets the read deadline associated with the connection.
399//
400// Deadline functionality is only supported on Go 1.12+. Calling this function
401// on older versions of Go will result in an error.
402func (c *Conn) SetReadDeadline(t time.Time) error {
403 conn, ok := c.sock.(deadlineSetter)
404 if !ok {
405 return notSupported("set-read-deadline")
406 }
407
408 return newOpError("set-read-deadline", conn.SetReadDeadline(t))
409}
410
411// SetWriteDeadline sets the write deadline associated with the connection.
412//
413// Deadline functionality is only supported on Go 1.12+. Calling this function
414// on older versions of Go will result in an error.
415func (c *Conn) SetWriteDeadline(t time.Time) error {
416 conn, ok := c.sock.(deadlineSetter)
417 if !ok {
418 return notSupported("set-write-deadline")
419 }
420
421 return newOpError("set-write-deadline", conn.SetWriteDeadline(t))
395} 422}
396 423
397// A ConnOption is a boolean option that may be set for a Conn. 424// A ConnOption is a boolean option that may be set for a Conn.
@@ -405,6 +432,7 @@ const (
405 NoENOBUFS 432 NoENOBUFS
406 ListenAllNSID 433 ListenAllNSID
407 CapAcknowledge 434 CapAcknowledge
435 ExtendedAcknowledge
408) 436)
409 437
410// An optionSetter is a Socket that supports setting netlink options. 438// An optionSetter is a Socket that supports setting netlink options.
@@ -415,12 +443,12 @@ type optionSetter interface {
415 443
416// SetOption enables or disables a netlink socket option for the Conn. 444// SetOption enables or disables a netlink socket option for the Conn.
417func (c *Conn) SetOption(option ConnOption, enable bool) error { 445func (c *Conn) SetOption(option ConnOption, enable bool) error {
418 fc, ok := c.sock.(optionSetter) 446 conn, ok := c.sock.(optionSetter)
419 if !ok { 447 if !ok {
420 return errOptionsNotSupported 448 return notSupported("set-option")
421 } 449 }
422 450
423 return fc.SetOption(option, enable) 451 return newOpError("set-option", conn.SetOption(option, enable))
424} 452}
425 453
426// A bufferSetter is a Socket that supports setting connection buffer sizes. 454// A bufferSetter is a Socket that supports setting connection buffer sizes.
@@ -435,10 +463,10 @@ type bufferSetter interface {
435func (c *Conn) SetReadBuffer(bytes int) error { 463func (c *Conn) SetReadBuffer(bytes int) error {
436 conn, ok := c.sock.(bufferSetter) 464 conn, ok := c.sock.(bufferSetter)
437 if !ok { 465 if !ok {
438 return errSetBufferNotSupported 466 return notSupported("set-read-buffer")
439 } 467 }
440 468
441 return conn.SetReadBuffer(bytes) 469 return newOpError("set-read-buffer", conn.SetReadBuffer(bytes))
442} 470}
443 471
444// SetWriteBuffer sets the size of the operating system's transmit buffer 472// SetWriteBuffer sets the size of the operating system's transmit buffer
@@ -446,10 +474,16 @@ func (c *Conn) SetReadBuffer(bytes int) error {
446func (c *Conn) SetWriteBuffer(bytes int) error { 474func (c *Conn) SetWriteBuffer(bytes int) error {
447 conn, ok := c.sock.(bufferSetter) 475 conn, ok := c.sock.(bufferSetter)
448 if !ok { 476 if !ok {
449 return errSetBufferNotSupported 477 return notSupported("set-write-buffer")
450 } 478 }
451 479
452 return conn.SetWriteBuffer(bytes) 480 return newOpError("set-write-buffer", conn.SetWriteBuffer(bytes))
481}
482
483// A filer is a Socket that supports retrieving its associated *os.File.
484type filer interface {
485 Socket
486 File() *os.File
453} 487}
454 488
455var _ syscall.Conn = &Conn{} 489var _ syscall.Conn = &Conn{}
@@ -460,8 +494,10 @@ var _ syscall.Conn = &Conn{}
460// SyscallConn returns a raw network connection. This implements the 494// SyscallConn returns a raw network connection. This implements the
461// syscall.Conn interface. 495// syscall.Conn interface.
462// 496//
463// Only the Control method of the returned syscall.RawConn is currently 497// On Go 1.12+, all methods of the returned syscall.RawConn are supported and
464// implemented. 498// the Conn is integrated with the runtime network poller. On versions of Go
499// prior to Go 1.12, only the Control method of the returned syscall.RawConn
500// is implemented.
465// 501//
466// SyscallConn is intended for advanced use cases, such as getting and setting 502// SyscallConn is intended for advanced use cases, such as getting and setting
467// arbitrary socket options using the netlink socket's file descriptor. 503// arbitrary socket options using the netlink socket's file descriptor.
@@ -470,33 +506,29 @@ var _ syscall.Conn = &Conn{}
470// performed using Conn and the syscall.RawConn do not conflict with 506// performed using Conn and the syscall.RawConn do not conflict with
471// each other. 507// each other.
472func (c *Conn) SyscallConn() (syscall.RawConn, error) { 508func (c *Conn) SyscallConn() (syscall.RawConn, error) {
473 conn, ok := c.sock.(fder) 509 fc, ok := c.sock.(filer)
474 if !ok { 510 if !ok {
475 return nil, errSyscallConnNotSupported 511 return nil, notSupported("syscall-conn")
476 } 512 }
477 513
478 return &rawConn{ 514 return newRawConn(fc.File())
479 fd: uintptr(conn.FD()),
480 }, nil
481} 515}
482 516
483var _ syscall.RawConn = &rawConn{} 517// fixMsg updates the fields of m using the logic specified in Send.
518func (c *Conn) fixMsg(m *Message, ml int) {
519 if m.Header.Length == 0 {
520 m.Header.Length = uint32(nlmsgAlign(ml))
521 }
484 522
485// A rawConn is a syscall.RawConn. 523 if m.Header.Sequence == 0 {
486type rawConn struct { 524 m.Header.Sequence = c.nextSequence()
487 fd uintptr 525 }
488}
489 526
490func (rc *rawConn) Control(f func(fd uintptr)) error { 527 if m.Header.PID == 0 {
491 f(rc.fd) 528 m.Header.PID = c.pid
492 return nil 529 }
493} 530}
494 531
495// TODO(mdlayher): implement Read and Write?
496
497func (rc *rawConn) Read(_ func(fd uintptr) (done bool)) error { return errSyscallConnNotSupported }
498func (rc *rawConn) Write(_ func(fd uintptr) (done bool)) error { return errSyscallConnNotSupported }
499
500// nextSequence atomically increments Conn's sequence number and returns 532// nextSequence atomically increments Conn's sequence number and returns
501// the incremented value. 533// the incremented value.
502func (c *Conn) nextSequence() uint32 { 534func (c *Conn) nextSequence() uint32 {
@@ -511,7 +543,7 @@ func Validate(request Message, replies []Message) error {
511 // - request had no sequence, meaning we are probably validating 543 // - request had no sequence, meaning we are probably validating
512 // a multicast reply 544 // a multicast reply
513 if m.Header.Sequence != request.Header.Sequence && request.Header.Sequence != 0 { 545 if m.Header.Sequence != request.Header.Sequence && request.Header.Sequence != 0 {
514 return errMismatchedSequence 546 return newOpError("validate", errMismatchedSequence)
515 } 547 }
516 548
517 // Check for mismatched PID, unless: 549 // Check for mismatched PID, unless:
@@ -520,7 +552,7 @@ func Validate(request Message, replies []Message) error {
520 // - netlink has not yet assigned us a PID 552 // - netlink has not yet assigned us a PID
521 // - response had no PID, meaning it's from the kernel as a multicast reply 553 // - response had no PID, meaning it's from the kernel as a multicast reply
522 if m.Header.PID != request.Header.PID && request.Header.PID != 0 && m.Header.PID != 0 { 554 if m.Header.PID != request.Header.PID && request.Header.PID != 0 && m.Header.PID != 0 {
523 return errMismatchedPID 555 return newOpError("validate", errMismatchedPID)
524 } 556 }
525 } 557 }
526 558
@@ -533,7 +565,22 @@ type Config struct {
533 // no multicast group subscriptions will be made. 565 // no multicast group subscriptions will be made.
534 Groups uint32 566 Groups uint32
535 567
536 // Network namespace the Conn needs to operate in. If set to 0, 568 // NetNS specifies the network namespace the Conn will operate in.
537 // no network namespace will be entered. 569 //
570 // If set (non-zero), Conn will enter the specified network namespace and
571 // an error will occur in Dial if the operation fails.
572 //
573 // If not set (zero), a best-effort attempt will be made to enter the
574 // network namespace of the calling thread: this means that any changes made
575 // to the calling thread's network namespace will also be reflected in Conn.
576 // If this operation fails (due to lack of permissions or because network
577 // namespaces are disabled by kernel configuration), Dial will not return
578 // an error, and the Conn will operate in the default network namespace of
579 // the process. This enables non-privileged use of Conn in applications
580 // which do not require elevated privileges.
581 //
582 // Entering a network namespace is a privileged operation (root or
583 // CAP_SYS_ADMIN are required), and most applications should leave this set
584 // to 0.
538 NetNS int 585 NetNS int
539} 586}
diff --git a/vendor/github.com/mdlayher/netlink/conn_linux.go b/vendor/github.com/mdlayher/netlink/conn_linux.go
index d25679e..7ac144c 100644
--- a/vendor/github.com/mdlayher/netlink/conn_linux.go
+++ b/vendor/github.com/mdlayher/netlink/conn_linux.go
@@ -3,25 +3,26 @@
3package netlink 3package netlink
4 4
5import ( 5import (
6 "errors" 6 "math"
7 "os" 7 "os"
8 "runtime" 8 "runtime"
9 "sync" 9 "sync"
10 "syscall" 10 "syscall"
11 "time"
11 "unsafe" 12 "unsafe"
12 13
13 "golang.org/x/net/bpf" 14 "golang.org/x/net/bpf"
14 "golang.org/x/sys/unix" 15 "golang.org/x/sys/unix"
15) 16)
16 17
17var (
18 errInvalidSockaddr = errors.New("expected unix.SockaddrNetlink but received different unix.Sockaddr")
19 errInvalidFamily = errors.New("received invalid netlink family")
20)
21
22var _ Socket = &conn{} 18var _ Socket = &conn{}
23 19
20var _ deadlineSetter = &conn{}
21
24// A conn is the Linux implementation of a netlink sockets connection. 22// A conn is the Linux implementation of a netlink sockets connection.
23//
24// All conn methods must wrap system call errors with os.NewSyscallError to
25// enable more intelligible error messages in OpError.
25type conn struct { 26type conn struct {
26 s socket 27 s socket
27 sa *unix.SockaddrNetlink 28 sa *unix.SockaddrNetlink
@@ -32,10 +33,15 @@ type socket interface {
32 Bind(sa unix.Sockaddr) error 33 Bind(sa unix.Sockaddr) error
33 Close() error 34 Close() error
34 FD() int 35 FD() int
36 File() *os.File
35 Getsockname() (unix.Sockaddr, error) 37 Getsockname() (unix.Sockaddr, error)
36 Recvmsg(p, oob []byte, flags int) (n int, oobn int, recvflags int, from unix.Sockaddr, err error) 38 Recvmsg(p, oob []byte, flags int) (n int, oobn int, recvflags int, from unix.Sockaddr, err error)
37 Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error 39 Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error
38 SetSockopt(level, name int, v unsafe.Pointer, l uint32) error 40 SetDeadline(t time.Time) error
41 SetReadDeadline(t time.Time) error
42 SetWriteDeadline(t time.Time) error
43 SetSockoptSockFprog(level, opt int, fprog *unix.SockFprog) error
44 SetSockoptInt(level, opt, value int) error
39} 45}
40 46
41// dial is the entry point for Dial. dial opens a netlink socket using 47// dial is the entry point for Dial. dial opens a netlink socket using
@@ -56,7 +62,7 @@ func dial(family int, config *Config) (*conn, uint32, error) {
56 } 62 }
57 63
58 if err := sock.Socket(family); err != nil { 64 if err := sock.Socket(family); err != nil {
59 return nil, 0, err 65 return nil, 0, os.NewSyscallError("socket", err)
60 } 66 }
61 67
62 return bind(sock, config) 68 return bind(sock, config)
@@ -79,13 +85,13 @@ func bind(s socket, config *Config) (*conn, uint32, error) {
79 85
80 if err := s.Bind(addr); err != nil { 86 if err := s.Bind(addr); err != nil {
81 _ = s.Close() 87 _ = s.Close()
82 return nil, 0, err 88 return nil, 0, os.NewSyscallError("bind", err)
83 } 89 }
84 90
85 sa, err := s.Getsockname() 91 sa, err := s.Getsockname()
86 if err != nil { 92 if err != nil {
87 _ = s.Close() 93 _ = s.Close()
88 return nil, 0, err 94 return nil, 0, os.NewSyscallError("getsockname", err)
89 } 95 }
90 96
91 pid := sa.(*unix.SockaddrNetlink).Pid 97 pid := sa.(*unix.SockaddrNetlink).Pid
@@ -112,7 +118,7 @@ func (c *conn) SendMessages(messages []Message) error {
112 Family: unix.AF_NETLINK, 118 Family: unix.AF_NETLINK,
113 } 119 }
114 120
115 return c.s.Sendmsg(buf, nil, addr, 0) 121 return os.NewSyscallError("sendmsg", c.s.Sendmsg(buf, nil, addr, 0))
116} 122}
117 123
118// Send sends a single Message to netlink. 124// Send sends a single Message to netlink.
@@ -126,7 +132,7 @@ func (c *conn) Send(m Message) error {
126 Family: unix.AF_NETLINK, 132 Family: unix.AF_NETLINK,
127 } 133 }
128 134
129 return c.s.Sendmsg(b, nil, addr, 0) 135 return os.NewSyscallError("sendmsg", c.s.Sendmsg(b, nil, addr, 0))
130} 136}
131 137
132// Receive receives one or more Messages from netlink. 138// Receive receives one or more Messages from netlink.
@@ -139,7 +145,7 @@ func (c *conn) Receive() ([]Message, error) {
139 // when PacketInfo ConnOption is true. 145 // when PacketInfo ConnOption is true.
140 n, _, _, _, err := c.s.Recvmsg(b, nil, unix.MSG_PEEK) 146 n, _, _, _, err := c.s.Recvmsg(b, nil, unix.MSG_PEEK)
141 if err != nil { 147 if err != nil {
142 return nil, err 148 return nil, os.NewSyscallError("recvmsg", err)
143 } 149 }
144 150
145 // Break when we can read all messages 151 // Break when we can read all messages
@@ -152,17 +158,9 @@ func (c *conn) Receive() ([]Message, error) {
152 } 158 }
153 159
154 // Read out all available messages 160 // Read out all available messages
155 n, _, _, from, err := c.s.Recvmsg(b, nil, 0) 161 n, _, _, _, err := c.s.Recvmsg(b, nil, 0)
156 if err != nil { 162 if err != nil {
157 return nil, err 163 return nil, os.NewSyscallError("recvmsg", err)
158 }
159
160 addr, ok := from.(*unix.SockaddrNetlink)
161 if !ok {
162 return nil, errInvalidSockaddr
163 }
164 if addr.Family != unix.AF_NETLINK {
165 return nil, errInvalidFamily
166 } 164 }
167 165
168 n = nlmsgAlign(n) 166 n = nlmsgAlign(n)
@@ -187,7 +185,7 @@ func (c *conn) Receive() ([]Message, error) {
187 185
188// Close closes the connection. 186// Close closes the connection.
189func (c *conn) Close() error { 187func (c *conn) Close() error {
190 return c.s.Close() 188 return os.NewSyscallError("close", c.s.Close())
191} 189}
192 190
193// FD retrieves the file descriptor of the Conn. 191// FD retrieves the file descriptor of the Conn.
@@ -195,24 +193,27 @@ func (c *conn) FD() int {
195 return c.s.FD() 193 return c.s.FD()
196} 194}
197 195
196// File retrieves the *os.File associated with the Conn.
197func (c *conn) File() *os.File {
198 return c.s.File()
199}
200
198// JoinGroup joins a multicast group by ID. 201// JoinGroup joins a multicast group by ID.
199func (c *conn) JoinGroup(group uint32) error { 202func (c *conn) JoinGroup(group uint32) error {
200 return c.s.SetSockopt( 203 return os.NewSyscallError("setsockopt", c.s.SetSockoptInt(
201 unix.SOL_NETLINK, 204 unix.SOL_NETLINK,
202 unix.NETLINK_ADD_MEMBERSHIP, 205 unix.NETLINK_ADD_MEMBERSHIP,
203 unsafe.Pointer(&group), 206 int(group),
204 uint32(unsafe.Sizeof(group)), 207 ))
205 )
206} 208}
207 209
208// LeaveGroup leaves a multicast group by ID. 210// LeaveGroup leaves a multicast group by ID.
209func (c *conn) LeaveGroup(group uint32) error { 211func (c *conn) LeaveGroup(group uint32) error {
210 return c.s.SetSockopt( 212 return os.NewSyscallError("setsockopt", c.s.SetSockoptInt(
211 unix.SOL_NETLINK, 213 unix.SOL_NETLINK,
212 unix.NETLINK_DROP_MEMBERSHIP, 214 unix.NETLINK_DROP_MEMBERSHIP,
213 unsafe.Pointer(&group), 215 int(group),
214 uint32(unsafe.Sizeof(group)), 216 ))
215 )
216} 217}
217 218
218// SetBPF attaches an assembled BPF program to a conn. 219// SetBPF attaches an assembled BPF program to a conn.
@@ -222,25 +223,21 @@ func (c *conn) SetBPF(filter []bpf.RawInstruction) error {
222 Filter: (*unix.SockFilter)(unsafe.Pointer(&filter[0])), 223 Filter: (*unix.SockFilter)(unsafe.Pointer(&filter[0])),
223 } 224 }
224 225
225 return c.s.SetSockopt( 226 return os.NewSyscallError("setsockopt", c.s.SetSockoptSockFprog(
226 unix.SOL_SOCKET, 227 unix.SOL_SOCKET,
227 unix.SO_ATTACH_FILTER, 228 unix.SO_ATTACH_FILTER,
228 unsafe.Pointer(&prog), 229 &prog,
229 uint32(unsafe.Sizeof(prog)), 230 ))
230 )
231} 231}
232 232
233// RemoveBPF removes a BPF filter from a conn. 233// RemoveBPF removes a BPF filter from a conn.
234func (c *conn) RemoveBPF() error { 234func (c *conn) RemoveBPF() error {
235 // dummy is ignored as argument to SO_DETACH_FILTER 235 // 0 argument is ignored by SO_DETACH_FILTER.
236 // but SetSockopt requires it as an argument 236 return os.NewSyscallError("setsockopt", c.s.SetSockoptInt(
237 var dummy uint32
238 return c.s.SetSockopt(
239 unix.SOL_SOCKET, 237 unix.SOL_SOCKET,
240 unix.SO_DETACH_FILTER, 238 unix.SO_DETACH_FILTER,
241 unsafe.Pointer(&dummy), 239 0,
242 uint32(unsafe.Sizeof(dummy)), 240 ))
243 )
244} 241}
245 242
246// SetOption enables or disables a netlink socket option for the Conn. 243// SetOption enables or disables a netlink socket option for the Conn.
@@ -248,46 +245,51 @@ func (c *conn) SetOption(option ConnOption, enable bool) error {
248 o, ok := linuxOption(option) 245 o, ok := linuxOption(option)
249 if !ok { 246 if !ok {
250 // Return the typical Linux error for an unknown ConnOption. 247 // Return the typical Linux error for an unknown ConnOption.
251 return unix.ENOPROTOOPT 248 return os.NewSyscallError("setsockopt", unix.ENOPROTOOPT)
252 } 249 }
253 250
254 var v uint32 251 var v int
255 if enable { 252 if enable {
256 v = 1 253 v = 1
257 } 254 }
258 255
259 return c.s.SetSockopt( 256 return os.NewSyscallError("setsockopt", c.s.SetSockoptInt(
260 unix.SOL_NETLINK, 257 unix.SOL_NETLINK,
261 o, 258 o,
262 unsafe.Pointer(&v), 259 v,
263 uint32(unsafe.Sizeof(v)), 260 ))
264 ) 261}
262
263func (c *conn) SetDeadline(t time.Time) error {
264 return c.s.SetDeadline(t)
265}
266
267func (c *conn) SetReadDeadline(t time.Time) error {
268 return c.s.SetReadDeadline(t)
269}
270
271func (c *conn) SetWriteDeadline(t time.Time) error {
272 return c.s.SetWriteDeadline(t)
265} 273}
266 274
267// SetReadBuffer sets the size of the operating system's receive buffer 275// SetReadBuffer sets the size of the operating system's receive buffer
268// associated with the Conn. 276// associated with the Conn.
269func (c *conn) SetReadBuffer(bytes int) error { 277func (c *conn) SetReadBuffer(bytes int) error {
270 v := uint32(bytes) 278 return os.NewSyscallError("setsockopt", c.s.SetSockoptInt(
271
272 return c.s.SetSockopt(
273 unix.SOL_SOCKET, 279 unix.SOL_SOCKET,
274 unix.SO_RCVBUF, 280 unix.SO_RCVBUF,
275 unsafe.Pointer(&v), 281 bytes,
276 uint32(unsafe.Sizeof(v)), 282 ))
277 )
278} 283}
279 284
280// SetReadBuffer sets the size of the operating system's transmit buffer 285// SetReadBuffer sets the size of the operating system's transmit buffer
281// associated with the Conn. 286// associated with the Conn.
282func (c *conn) SetWriteBuffer(bytes int) error { 287func (c *conn) SetWriteBuffer(bytes int) error {
283 v := uint32(bytes) 288 return os.NewSyscallError("setsockopt", c.s.SetSockoptInt(
284
285 return c.s.SetSockopt(
286 unix.SOL_SOCKET, 289 unix.SOL_SOCKET,
287 unix.SO_SNDBUF, 290 unix.SO_SNDBUF,
288 unsafe.Pointer(&v), 291 bytes,
289 uint32(unsafe.Sizeof(v)), 292 ))
290 )
291} 293}
292 294
293// linuxOption converts a ConnOption to its Linux value. 295// linuxOption converts a ConnOption to its Linux value.
@@ -303,6 +305,8 @@ func linuxOption(o ConnOption) (int, bool) {
303 return unix.NETLINK_LISTEN_ALL_NSID, true 305 return unix.NETLINK_LISTEN_ALL_NSID, true
304 case CapAcknowledge: 306 case CapAcknowledge:
305 return unix.NETLINK_CAP_ACK, true 307 return unix.NETLINK_CAP_ACK, true
308 case ExtendedAcknowledge:
309 return unix.NETLINK_EXT_ACK, true
306 default: 310 default:
307 return 0, false 311 return 0, false
308 } 312 }
@@ -325,120 +329,86 @@ var _ socket = &sysSocket{}
325 329
326// A sysSocket is a socket which uses system calls for socket operations. 330// A sysSocket is a socket which uses system calls for socket operations.
327type sysSocket struct { 331type sysSocket struct {
328 fd int 332 mu sync.RWMutex
329 333 fd *os.File
330 wg *sync.WaitGroup 334 closed bool
331 funcC chan<- func() 335 g *lockedNetNSGoroutine
332
333 mu sync.RWMutex
334
335 done bool
336 doneC chan<- bool
337} 336}
338 337
339// newSysSocket creates a sysSocket that optionally locks its internal goroutine 338// newSysSocket creates a sysSocket that optionally locks its internal goroutine
340// to a single thread. 339// to a single thread.
341func newSysSocket(config *Config) (*sysSocket, error) { 340func newSysSocket(config *Config) (*sysSocket, error) {
342 var wg sync.WaitGroup 341 // Determine network namespaces using the threadNetNS function.
343 wg.Add(1) 342 g, err := newLockedNetNSGoroutine(config.NetNS, threadNetNS)
344 343 if err != nil {
345 // This system call loop strategy was inspired by:
346 // https://github.com/golang/go/wiki/LockOSThread. Thanks to squeed on
347 // Gophers Slack for providing this useful link.
348
349 funcC := make(chan func())
350 doneC := make(chan bool)
351 errC := make(chan error)
352
353 go func() {
354 // It is important to lock this goroutine to its OS thread for the duration
355 // of the netlink socket being used, or else the kernel may end up routing
356 // messages to the wrong places.
357 // See: http://lists.infradead.org/pipermail/libnl/2017-February/002293.html.
358 //
359 // The intent is to never unlock the OS thread, so that the thread
360 // will terminate when the goroutine exits starting in Go 1.10:
361 // https://go-review.googlesource.com/c/go/+/46038.
362 //
363 // However, due to recent instability and a potential bad interaction
364 // with the Go runtime for threads which are not unlocked, we have
365 // elected to temporarily unlock the thread when the goroutine terminates:
366 // https://github.com/golang/go/issues/25128#issuecomment-410764489.
367
368 runtime.LockOSThread()
369 defer runtime.UnlockOSThread()
370 defer wg.Done()
371
372 // The user requested the Conn to operate in a non-default network namespace.
373 if config.NetNS != 0 {
374
375 // Get the current namespace of the thread the goroutine is locked to.
376 origNetNS, err := getThreadNetNS()
377 if err != nil {
378 errC <- err
379 return
380 }
381
382 // Set the network namespace of the current thread using
383 // the file descriptor provided by the user.
384 err = setThreadNetNS(config.NetNS)
385 if err != nil {
386 errC <- err
387 return
388 }
389
390 // Once the thread's namespace has been successfully manipulated,
391 // make sure we change it back when the goroutine returns.
392 defer setThreadNetNS(origNetNS)
393 }
394
395 // Signal to caller that initialization was successful.
396 errC <- nil
397
398 for {
399 select {
400 case <-doneC:
401 return
402 case f := <-funcC:
403 f()
404 }
405 }
406 }()
407
408 // Wait for the goroutine to return err or nil.
409 if err := <-errC; err != nil {
410 return nil, err 344 return nil, err
411 } 345 }
412
413 return &sysSocket{ 346 return &sysSocket{
414 wg: &wg, 347 g: g,
415 funcC: funcC,
416 doneC: doneC,
417 }, nil 348 }, nil
418} 349}
419 350
420// do runs f in a worker goroutine which can be locked to one thread. 351// do runs f in a worker goroutine which can be locked to one thread.
421func (s *sysSocket) do(f func()) error { 352func (s *sysSocket) do(f func()) error {
422 done := make(chan bool, 1)
423
424 // All operations handled by this function are assumed to only 353 // All operations handled by this function are assumed to only
425 // read from s.done. 354 // read from s.done.
426 s.mu.RLock() 355 s.mu.RLock()
356 defer s.mu.RUnlock()
427 357
428 if s.done { 358 if s.closed {
429 s.mu.RUnlock()
430 return syscall.EBADF 359 return syscall.EBADF
431 } 360 }
432 361
433 s.funcC <- func() { 362 s.g.run(f)
434 f() 363 return nil
435 done <- true 364}
365
366// read executes f, a read function, against the associated file descriptor.
367func (s *sysSocket) read(f func(fd int) bool) error {
368 s.mu.RLock()
369 defer s.mu.RUnlock()
370
371 if s.closed {
372 return syscall.EBADF
436 } 373 }
437 <-done
438 374
439 s.mu.RUnlock() 375 var err error
376 s.g.run(func() {
377 err = fdread(s.fd, f)
378 })
379 return err
380}
440 381
441 return nil 382// write executes f, a write function, against the associated file descriptor.
383func (s *sysSocket) write(f func(fd int) bool) error {
384 s.mu.RLock()
385 defer s.mu.RUnlock()
386
387 if s.closed {
388 return syscall.EBADF
389 }
390
391 var err error
392 s.g.run(func() {
393 err = fdwrite(s.fd, f)
394 })
395 return err
396}
397
398// control executes f, a control function, against the associated file descriptor.
399func (s *sysSocket) control(f func(fd int)) error {
400 s.mu.RLock()
401 defer s.mu.RUnlock()
402
403 if s.closed {
404 return syscall.EBADF
405 }
406
407 var err error
408 s.g.run(func() {
409 err = fdcontrol(s.fd, f)
410 })
411 return err
442} 412}
443 413
444func (s *sysSocket) Socket(family int) error { 414func (s *sysSocket) Socket(family int) error {
@@ -448,11 +418,47 @@ func (s *sysSocket) Socket(family int) error {
448 ) 418 )
449 419
450 doErr := s.do(func() { 420 doErr := s.do(func() {
421 // Mirror what the standard library does when creating file
422 // descriptors: avoid racing a fork/exec with the creation
423 // of new file descriptors, so that child processes do not
424 // inherit netlink socket file descriptors unexpectedly.
425 //
426 // On Linux, SOCK_CLOEXEC was introduced in 2.6.27. OTOH,
427 // Go supports Linux 2.6.23 and above. If we get EINVAL on
428 // the first try, it may be that we are running on a kernel
429 // older than 2.6.27. In that case, take syscall.ForkLock
430 // and try again without SOCK_CLOEXEC.
431 //
432 // SOCK_NONBLOCK was also added in 2.6.27, but we don't
433 // use SOCK_NONBLOCK here for now, not until we remove support
434 // for Go 1.11, since we still support the old blocking file
435 // descriptor behavior.
436 //
437 // For a more thorough explanation, see similar work in the
438 // Go tree: func sysSocket in net/sock_cloexec.go, as well
439 // as the detailed comment in syscall/exec_unix.go.
440 //
441 // TODO(acln): update this to mirror net.sysSocket completely:
442 // use SOCK_NONBLOCK as well, and remove the separate
443 // setBlockingMode step once Go 1.11 support is removed and
444 // we switch to using entirely non-blocking file descriptors.
451 fd, err = unix.Socket( 445 fd, err = unix.Socket(
452 unix.AF_NETLINK, 446 unix.AF_NETLINK,
453 unix.SOCK_RAW, 447 unix.SOCK_RAW|unix.SOCK_CLOEXEC,
454 family, 448 family,
455 ) 449 )
450 if err == unix.EINVAL {
451 syscall.ForkLock.RLock()
452 fd, err = unix.Socket(
453 unix.AF_NETLINK,
454 unix.SOCK_RAW,
455 family,
456 )
457 if err == nil {
458 unix.CloseOnExec(fd)
459 }
460 syscall.ForkLock.RUnlock()
461 }
456 }) 462 })
457 if doErr != nil { 463 if doErr != nil {
458 return doErr 464 return doErr
@@ -461,14 +467,24 @@ func (s *sysSocket) Socket(family int) error {
461 return err 467 return err
462 } 468 }
463 469
464 s.fd = fd 470 if err := setBlockingMode(fd); err != nil {
471 return err
472 }
473
474 // When using Go 1.12+, the setBlockingMode call we just did puts the
475 // file descriptor into non-blocking mode. In that case, os.NewFile
476 // registers the file descriptor with the runtime poller, which is
477 // then used for all subsequent operations.
478 //
479 // See also: https://golang.org/pkg/os/#NewFile
480 s.fd = os.NewFile(uintptr(fd), "netlink")
465 return nil 481 return nil
466} 482}
467 483
468func (s *sysSocket) Bind(sa unix.Sockaddr) error { 484func (s *sysSocket) Bind(sa unix.Sockaddr) error {
469 var err error 485 var err error
470 doErr := s.do(func() { 486 doErr := s.control(func(fd int) {
471 err = unix.Bind(s.fd, sa) 487 err = unix.Bind(fd, sa)
472 }) 488 })
473 if doErr != nil { 489 if doErr != nil {
474 return doErr 490 return doErr
@@ -478,7 +494,6 @@ func (s *sysSocket) Bind(sa unix.Sockaddr) error {
478} 494}
479 495
480func (s *sysSocket) Close() error { 496func (s *sysSocket) Close() error {
481
482 // Be sure to acquire a write lock because we need to stop any other 497 // Be sure to acquire a write lock because we need to stop any other
483 // goroutines from sending system call requests after close. 498 // goroutines from sending system call requests after close.
484 // Any invocation of do() after this write lock unlocks is guaranteed 499 // Any invocation of do() after this write lock unlocks is guaranteed
@@ -488,19 +503,18 @@ func (s *sysSocket) Close() error {
488 503
489 // Close the socket from the main thread, this operation has no risk 504 // Close the socket from the main thread, this operation has no risk
490 // of routing data to the wrong socket. 505 // of routing data to the wrong socket.
491 err := unix.Close(s.fd) 506 err := s.fd.Close()
492 s.done = true 507 s.closed = true
493 508
494 // Signal the syscall worker to exit, wait for the WaitGroup to join, 509 // Stop the associated goroutine and wait for it to return.
495 // and close the job channel only when the worker is guaranteed to have stopped. 510 s.g.stop()
496 close(s.doneC)
497 s.wg.Wait()
498 close(s.funcC)
499 511
500 return err 512 return err
501} 513}
502 514
503func (s *sysSocket) FD() int { return s.fd } 515func (s *sysSocket) FD() int { return int(s.fd.Fd()) }
516
517func (s *sysSocket) File() *os.File { return s.fd }
504 518
505func (s *sysSocket) Getsockname() (unix.Sockaddr, error) { 519func (s *sysSocket) Getsockname() (unix.Sockaddr, error) {
506 var ( 520 var (
@@ -508,8 +522,8 @@ func (s *sysSocket) Getsockname() (unix.Sockaddr, error) {
508 err error 522 err error
509 ) 523 )
510 524
511 doErr := s.do(func() { 525 doErr := s.control(func(fd int) {
512 sa, err = unix.Getsockname(s.fd) 526 sa, err = unix.Getsockname(fd)
513 }) 527 })
514 if doErr != nil { 528 if doErr != nil {
515 return nil, doErr 529 return nil, doErr
@@ -525,8 +539,16 @@ func (s *sysSocket) Recvmsg(p, oob []byte, flags int) (int, int, int, unix.Socka
525 err error 539 err error
526 ) 540 )
527 541
528 doErr := s.do(func() { 542 doErr := s.read(func(fd int) bool {
529 n, oobn, recvflags, from, err = unix.Recvmsg(s.fd, p, oob, flags) 543 n, oobn, recvflags, from, err = unix.Recvmsg(fd, p, oob, flags)
544
545 // When the socket is in non-blocking mode, we might see
546 // EAGAIN and end up here. In that case, return false to
547 // let the poller wait for readiness. See the source code
548 // for internal/poll.FD.RawRead for more details.
549 //
550 // If the socket is in blocking mode, EAGAIN should never occur.
551 return err != syscall.EAGAIN
530 }) 552 })
531 if doErr != nil { 553 if doErr != nil {
532 return 0, 0, 0, nil, doErr 554 return 0, 0, 0, nil, doErr
@@ -537,8 +559,11 @@ func (s *sysSocket) Recvmsg(p, oob []byte, flags int) (int, int, int, unix.Socka
537 559
538func (s *sysSocket) Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error { 560func (s *sysSocket) Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error {
539 var err error 561 var err error
540 doErr := s.do(func() { 562 doErr := s.write(func(fd int) bool {
541 err = unix.Sendmsg(s.fd, p, oob, to, flags) 563 err = unix.Sendmsg(fd, p, oob, to, flags)
564
565 // Analogous to Recvmsg. See the comments there.
566 return err != syscall.EAGAIN
542 }) 567 })
543 if doErr != nil { 568 if doErr != nil {
544 return doErr 569 return doErr
@@ -547,10 +572,39 @@ func (s *sysSocket) Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error {
547 return err 572 return err
548} 573}
549 574
550func (s *sysSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error { 575func (s *sysSocket) SetDeadline(t time.Time) error {
576 return s.fd.SetDeadline(t)
577}
578
579func (s *sysSocket) SetReadDeadline(t time.Time) error {
580 return s.fd.SetReadDeadline(t)
581}
582
583func (s *sysSocket) SetWriteDeadline(t time.Time) error {
584 return s.fd.SetWriteDeadline(t)
585}
586
587func (s *sysSocket) SetSockoptInt(level, opt, value int) error {
588 // Value must be in range of a C integer.
589 if value < math.MinInt32 || value > math.MaxInt32 {
590 return unix.EINVAL
591 }
592
551 var err error 593 var err error
552 doErr := s.do(func() { 594 doErr := s.control(func(fd int) {
553 err = setsockopt(s.fd, level, name, v, l) 595 err = unix.SetsockoptInt(fd, level, opt, value)
596 })
597 if doErr != nil {
598 return doErr
599 }
600
601 return err
602}
603
604func (s *sysSocket) SetSockoptSockFprog(level, opt int, fprog *unix.SockFprog) error {
605 var err error
606 doErr := s.control(func(fd int) {
607 err = unix.SetsockoptSockFprog(fd, level, opt, fprog)
554 }) 608 })
555 if doErr != nil { 609 if doErr != nil {
556 return doErr 610 return doErr
@@ -558,3 +612,130 @@ func (s *sysSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) erro
558 612
559 return err 613 return err
560} 614}
615
616// lockedNetNSGoroutine is a worker goroutine locked to an operating system
617// thread, optionally configured to run in a non-default network namespace.
618type lockedNetNSGoroutine struct {
619 wg sync.WaitGroup
620 doneC chan struct{}
621 funcC chan func()
622}
623
624// newLockedNetNSGoroutine creates a lockedNetNSGoroutine that will enter the
625// specified network namespace netNS (by file descriptor), and will use the
626// getNS function to produce netNS handles.
627func newLockedNetNSGoroutine(netNS int, getNS func() (*netNS, error)) (*lockedNetNSGoroutine, error) {
628 // Any bare syscall errors (e.g. setns) should be wrapped with
629 // os.NewSyscallError for the remainder of this function.
630
631 callerNS, err := getNS()
632 if err != nil {
633 return nil, err
634 }
635 defer callerNS.Close()
636
637 g := &lockedNetNSGoroutine{
638 doneC: make(chan struct{}),
639 funcC: make(chan func()),
640 }
641
642 errC := make(chan error)
643 g.wg.Add(1)
644
645 go func() {
646 // It is important to lock this goroutine to its OS thread for the duration
647 // of the netlink socket being used, or else the kernel may end up routing
648 // messages to the wrong places.
649 // See: http://lists.infradead.org/pipermail/libnl/2017-February/002293.html.
650 //
651 //
652 // In addition, the OS thread must also remain locked because we attempt
653 // to manipulate the network namespace of the thread within this goroutine.
654 //
655 // The intent is to never unlock the OS thread, so that the thread
656 // will terminate when the goroutine exits starting in Go 1.10:
657 // https://go-review.googlesource.com/c/go/+/46038.
658 //
659 // However, due to recent instability and a potential bad interaction
660 // with the Go runtime for threads which are not unlocked, we have
661 // elected to temporarily unlock the thread when the goroutine terminates:
662 // https://github.com/golang/go/issues/25128#issuecomment-410764489.
663
664 runtime.LockOSThread()
665 defer runtime.UnlockOSThread()
666 defer g.wg.Done()
667
668 // Get the current namespace of the thread the goroutine is locked to.
669 threadNS, err := getNS()
670 if err != nil {
671 errC <- err
672 return
673 }
674 defer threadNS.Close()
675
676 // Attempt to set the network namespace of the current thread to either:
677 // - the namespace referred to by the provided file descriptor from config
678 // - the calling thread's namespace
679 //
680 // See the rules specified in the Config.NetNS documentation.
681 explicitNS := true
682 if netNS == 0 {
683 explicitNS = false
684 netNS = int(callerNS.FD())
685 }
686
687 // Only return an error if the network namespace was explicitly
688 // configured; implicit configuration by zero value should be ignored.
689 err = threadNS.Set(netNS)
690 switch {
691 case err != nil && explicitNS:
692 errC <- err
693 return
694 case err == nil:
695 // If the thread's namespace has been successfully manipulated,
696 // make sure we change it back when the goroutine returns.
697 defer threadNS.Restore()
698 default:
699 // We couldn't successfully set the namespace, but the caller didn't
700 // explicitly ask for it to be set either. Continue.
701 }
702
703 // Signal to caller that initialization was successful.
704 errC <- nil
705
706 for {
707 select {
708 case <-g.doneC:
709 return
710 case f := <-g.funcC:
711 f()
712 }
713 }
714 }()
715
716 // Wait for the goroutine to return err or nil.
717 if err := <-errC; err != nil {
718 return nil, err
719 }
720
721 return g, nil
722}
723
724// stop signals the goroutine to stop and blocks until it does.
725//
726// It is invalid to call run concurrently with stop. It is also invalid to
727// call run after stop has returned.
728func (g *lockedNetNSGoroutine) stop() {
729 close(g.doneC)
730 g.wg.Wait()
731}
732
733// run runs f on the worker goroutine.
734func (g *lockedNetNSGoroutine) run(f func()) {
735 done := make(chan struct{})
736 g.funcC <- func() {
737 defer close(done)
738 f()
739 }
740 <-done
741}
diff --git a/vendor/github.com/mdlayher/netlink/conn_others.go b/vendor/github.com/mdlayher/netlink/conn_others.go
index 447aaa5..41ebca9 100644
--- a/vendor/github.com/mdlayher/netlink/conn_others.go
+++ b/vendor/github.com/mdlayher/netlink/conn_others.go
@@ -7,12 +7,10 @@ import (
7 "runtime" 7 "runtime"
8) 8)
9 9
10var ( 10// errUnimplemented is returned by all functions on platforms that
11 // errUnimplemented is returned by all functions on platforms that 11// cannot make use of netlink sockets.
12 // cannot make use of netlink sockets. 12var errUnimplemented = fmt.Errorf("netlink: not implemented on %s/%s",
13 errUnimplemented = fmt.Errorf("netlink: not implemented on %s/%s", 13 runtime.GOOS, runtime.GOARCH)
14 runtime.GOOS, runtime.GOARCH)
15)
16 14
17var _ Socket = &conn{} 15var _ Socket = &conn{}
18 16
diff --git a/vendor/github.com/mdlayher/netlink/debug.go b/vendor/github.com/mdlayher/netlink/debug.go
index 3d2e05a..d39d66c 100644
--- a/vendor/github.com/mdlayher/netlink/debug.go
+++ b/vendor/github.com/mdlayher/netlink/debug.go
@@ -8,10 +8,8 @@ import (
8 "strings" 8 "strings"
9) 9)
10 10
11var ( 11// Arguments used to create a debugger.
12 // Arguments used to create a debugger. 12var debugArgs []string
13 debugArgs []string
14)
15 13
16func init() { 14func init() {
17 // Is netlink debugging enabled? 15 // Is netlink debugging enabled?
diff --git a/vendor/github.com/mdlayher/netlink/doc.go b/vendor/github.com/mdlayher/netlink/doc.go
index 0768be2..7948beb 100644
--- a/vendor/github.com/mdlayher/netlink/doc.go
+++ b/vendor/github.com/mdlayher/netlink/doc.go
@@ -1,5 +1,17 @@
1// Package netlink provides low-level access to Linux netlink sockets. 1// Package netlink provides low-level access to Linux netlink sockets.
2// 2//
3// If you have any questions or you'd like some guidance, please join us on
4// Gophers Slack (https://invite.slack.golangbridge.org) in the #networking
5// channel!
6//
7//
8// Network namespaces
9//
10// This package is aware of Linux network namespaces, and can enter different
11// network namespaces either implicitly or explicitly, depending on
12// configuration. The Config structure passed to Dial to create a Conn controls
13// these behaviors. See the documentation of Config.NetNS for details.
14//
3// 15//
4// Debugging 16// Debugging
5// 17//
@@ -20,3 +32,5 @@
20// 32//
21// level=N: specify the debugging level (only "1" is currently supported) 33// level=N: specify the debugging level (only "1" is currently supported)
22package netlink 34package netlink
35
36//go:generate dot netlink.dot -T svg -o netlink.svg
diff --git a/vendor/github.com/mdlayher/netlink/errors.go b/vendor/github.com/mdlayher/netlink/errors.go
new file mode 100644
index 0000000..1d93eb9
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/errors.go
@@ -0,0 +1,119 @@
1package netlink
2
3import (
4 "errors"
5 "fmt"
6 "net"
7 "os"
8)
9
10// Error messages which can be returned by Validate.
11var (
12 errMismatchedSequence = errors.New("mismatched sequence in netlink reply")
13 errMismatchedPID = errors.New("mismatched PID in netlink reply")
14 errShortErrorMessage = errors.New("not enough data for netlink error code")
15)
16
17// Errors which can be returned by a Socket that does not implement
18// all exposed methods of Conn.
19
20var errNotSupported = errors.New("operation not supported")
21
22// notSupported provides a concise constructor for "not supported" errors.
23func notSupported(op string) error {
24 return newOpError(op, errNotSupported)
25}
26
27// IsNotExist determines if an error is produced as the result of querying some
28// file, object, resource, etc. which does not exist. Users of this package
29// should always use netlink.IsNotExist, rather than os.IsNotExist, when
30// checking for specific netlink-related errors.
31//
32// Errors types created by this package, such as OpError, can be used with
33// IsNotExist, but this function also defers to the behavior of os.IsNotExist
34// for unrecognized error types.
35func IsNotExist(err error) bool {
36 switch err := err.(type) {
37 case *OpError:
38 // TODO(mdlayher): more error handling logic?
39
40 // Unwrap the inner error and use the stdlib's logic.
41 return os.IsNotExist(err.Err)
42 default:
43 return os.IsNotExist(err)
44 }
45}
46
47var _ error = &OpError{}
48var _ net.Error = &OpError{}
49
50// An OpError is an error produced as the result of a failed netlink operation.
51type OpError struct {
52 // Op is the operation which caused this OpError, such as "send"
53 // or "receive".
54 Op string
55
56 // Err is the underlying error which caused this OpError.
57 //
58 // If Err was produced by a system call error, Err will be of type
59 // *os.SyscallError. If Err was produced by an error code in a netlink
60 // message, Err will contain a raw error value type such as a unix.Errno.
61 //
62 // Most callers should inspect Err using a helper such as IsNotExist.
63 Err error
64}
65
66// newOpError is a small wrapper for creating an OpError. As a convenience, it
67// returns nil if the input err is nil: akin to os.NewSyscallError.
68func newOpError(op string, err error) error {
69 if err == nil {
70 return nil
71 }
72
73 return &OpError{
74 Op: op,
75 Err: err,
76 }
77}
78
79func (e *OpError) Error() string {
80 if e == nil {
81 return "<nil>"
82 }
83
84 return fmt.Sprintf("netlink %s: %v", e.Op, e.Err)
85}
86
87// Portions of this code taken from the Go standard library:
88//
89// Copyright 2009 The Go Authors. All rights reserved.
90// Use of this source code is governed by a BSD-style
91// license that can be found in the LICENSE file.
92
93type timeout interface {
94 Timeout() bool
95}
96
97// Timeout reports whether the error was caused by an I/O timeout.
98func (e *OpError) Timeout() bool {
99 if ne, ok := e.Err.(*os.SyscallError); ok {
100 t, ok := ne.Err.(timeout)
101 return ok && t.Timeout()
102 }
103 t, ok := e.Err.(timeout)
104 return ok && t.Timeout()
105}
106
107type temporary interface {
108 Temporary() bool
109}
110
111// Temporary reports whether an operation may succeed if retried.
112func (e *OpError) Temporary() bool {
113 if ne, ok := e.Err.(*os.SyscallError); ok {
114 t, ok := ne.Err.(temporary)
115 return ok && t.Temporary()
116 }
117 t, ok := e.Err.(temporary)
118 return ok && t.Temporary()
119}
diff --git a/vendor/github.com/mdlayher/netlink/fdcall_gteq_1.12.go b/vendor/github.com/mdlayher/netlink/fdcall_gteq_1.12.go
new file mode 100644
index 0000000..4391092
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/fdcall_gteq_1.12.go
@@ -0,0 +1,44 @@
1//+build go1.12,linux
2
3package netlink
4
5import (
6 "os"
7
8 "golang.org/x/sys/unix"
9)
10
11// setBlockingMode puts the file descriptor into non-blocking mode.
12func setBlockingMode(sysfd int) error {
13 return unix.SetNonblock(sysfd, true)
14}
15
16func fdread(fd *os.File, f func(int) (done bool)) error {
17 rc, err := fd.SyscallConn()
18 if err != nil {
19 return err
20 }
21 return rc.Read(func(sysfd uintptr) bool {
22 return f(int(sysfd))
23 })
24}
25
26func fdwrite(fd *os.File, f func(int) (done bool)) error {
27 rc, err := fd.SyscallConn()
28 if err != nil {
29 return err
30 }
31 return rc.Write(func(sysfd uintptr) bool {
32 return f(int(sysfd))
33 })
34}
35
36func fdcontrol(fd *os.File, f func(int)) error {
37 rc, err := fd.SyscallConn()
38 if err != nil {
39 return err
40 }
41 return rc.Control(func(sysfd uintptr) {
42 f(int(sysfd))
43 })
44}
diff --git a/vendor/github.com/mdlayher/netlink/fdcall_lt_1.12.go b/vendor/github.com/mdlayher/netlink/fdcall_lt_1.12.go
new file mode 100644
index 0000000..1bee370
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/fdcall_lt_1.12.go
@@ -0,0 +1,29 @@
1//+build !go1.12,linux
2
3package netlink
4
5import "os"
6
7// setBlockingMode exists for compatibility reasons: prior to Go 1.12,
8// package netlink used blocking file descriptors, and did not support
9// deadlines. This variant of setBlockingMode, which does nothing (i.e.
10// it leaves the file descriptor in blocking mode), maintains compatibility
11// for users up to and including Go 1.11.
12func setBlockingMode(sysfd int) error {
13 return nil
14}
15
16func fdread(fd *os.File, f func(int) (done bool)) error {
17 f(int(fd.Fd()))
18 return nil
19}
20
21func fdwrite(fd *os.File, f func(int) (done bool)) error {
22 f(int(fd.Fd()))
23 return nil
24}
25
26func fdcontrol(fd *os.File, f func(int)) error {
27 f(int(fd.Fd()))
28 return nil
29}
diff --git a/vendor/github.com/mdlayher/netlink/fuzz.go b/vendor/github.com/mdlayher/netlink/fuzz.go
index eb8d4c4..2f37e58 100644
--- a/vendor/github.com/mdlayher/netlink/fuzz.go
+++ b/vendor/github.com/mdlayher/netlink/fuzz.go
@@ -4,7 +4,7 @@ package netlink
4 4
5func Fuzz(data []byte) int { 5func Fuzz(data []byte) int {
6 return fuzzAttributes(data) 6 return fuzzAttributes(data)
7 //return fuzzMessage(data) 7 // return fuzzMessage(data)
8} 8}
9 9
10func fuzzAttributes(data []byte) int { 10func fuzzAttributes(data []byte) int {
diff --git a/vendor/github.com/mdlayher/netlink/go.mod b/vendor/github.com/mdlayher/netlink/go.mod
new file mode 100644
index 0000000..85a1ab2
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/go.mod
@@ -0,0 +1,10 @@
1module github.com/mdlayher/netlink
2
3go 1.12
4
5require (
6 github.com/google/go-cmp v0.3.1
7 github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a
8 golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297
9 golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456
10)
diff --git a/vendor/github.com/mdlayher/netlink/go.sum b/vendor/github.com/mdlayher/netlink/go.sum
new file mode 100644
index 0000000..91479d6
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/go.sum
@@ -0,0 +1,16 @@
1github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
2github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
3github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
4github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a h1:84IpUNXj4mCR9CuCEvSiCArMbzr/TMbuPIadKDwypkI=
5github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
6github.com/mdlayher/netlink v0.0.0-20190409211403-11939a169225/go.mod h1:eQB3mZE4aiYnlUsyGGCOpPETfdQq4Jhsgf1fk3cwQaA=
7golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
8golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
9golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 h1:k7pJ2yAPLPgbskkFdhRCsA77k2fySZ1zf2zCjvQCiIM=
10golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
11golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
12golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
13golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
14golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 h1:ng0gs1AKnRRuEMZoTLLlbOd+C17zUDepwGQBb/n+JVg=
15golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
16golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/mdlayher/netlink/message.go b/vendor/github.com/mdlayher/netlink/message.go
index 30f025b..4cd2972 100644
--- a/vendor/github.com/mdlayher/netlink/message.go
+++ b/vendor/github.com/mdlayher/netlink/message.go
@@ -21,61 +21,56 @@ type HeaderFlags uint16
21const ( 21const (
22 // General netlink communication flags. 22 // General netlink communication flags.
23 23
24 // HeaderFlagsRequest indicates a request to netlink. 24 // Request indicates a request to netlink.
25 HeaderFlagsRequest HeaderFlags = 1 25 Request HeaderFlags = 1
26 26
27 // HeaderFlagsMulti indicates a multi-part message, terminated 27 // Multi indicates a multi-part message, terminated by Done on the
28 // by HeaderTypeDone on the last message. 28 // last message.
29 HeaderFlagsMulti HeaderFlags = 2 29 Multi HeaderFlags = 2
30 30
31 // HeaderFlagsAcknowledge requests that netlink reply with 31 // Acknowledge requests that netlink reply with an acknowledgement
32 // an acknowledgement using HeaderTypeError and, if needed, 32 // using Error and, if needed, an error code.
33 // an error code. 33 Acknowledge HeaderFlags = 4
34 HeaderFlagsAcknowledge HeaderFlags = 4
35 34
36 // HeaderFlagsEcho requests that netlink echo this request 35 // Echo requests that netlink echo this request back to the sender.
37 // back to the sender. 36 Echo HeaderFlags = 8
38 HeaderFlagsEcho HeaderFlags = 8
39 37
40 // HeaderFlagsDumpInterrupted indicates that a dump was 38 // DumpInterrupted indicates that a dump was inconsistent due to a
41 // inconsistent due to a sequence change. 39 // sequence change.
42 HeaderFlagsDumpInterrupted HeaderFlags = 16 40 DumpInterrupted HeaderFlags = 16
43 41
44 // HeaderFlagsDumpFiltered indicates that a dump was filtered 42 // DumpFiltered indicates that a dump was filtered as requested.
45 // as requested. 43 DumpFiltered HeaderFlags = 32
46 HeaderFlagsDumpFiltered HeaderFlags = 32
47 44
48 // Flags used to retrieve data from netlink. 45 // Flags used to retrieve data from netlink.
49 46
50 // HeaderFlagsRoot requests that netlink return a complete table instead 47 // Root requests that netlink return a complete table instead of a
51 // of a single entry. 48 // single entry.
52 HeaderFlagsRoot HeaderFlags = 0x100 49 Root HeaderFlags = 0x100
53 50
54 // HeaderFlagsMatch requests that netlink return a list of all matching 51 // Match requests that netlink return a list of all matching entries.
55 // entries. 52 Match HeaderFlags = 0x200
56 HeaderFlagsMatch HeaderFlags = 0x200
57 53
58 // HeaderFlagsAtomic requests that netlink send an atomic snapshot of 54 // Atomic requests that netlink send an atomic snapshot of its entries.
59 // its entries. Requires CAP_NET_ADMIN or an effective UID of 0. 55 // Requires CAP_NET_ADMIN or an effective UID of 0.
60 HeaderFlagsAtomic HeaderFlags = 0x400 56 Atomic HeaderFlags = 0x400
61 57
62 // HeaderFlagsDump requests that netlink return a complete list of 58 // Dump requests that netlink return a complete list of all entries.
63 // all entries. 59 Dump HeaderFlags = Root | Match
64 HeaderFlagsDump HeaderFlags = HeaderFlagsRoot | HeaderFlagsMatch
65 60
66 // Flags used to create objects. 61 // Flags used to create objects.
67 62
68 // HeaderFlagsReplace indicates request replaces an existing matching object. 63 // Replace indicates request replaces an existing matching object.
69 HeaderFlagsReplace HeaderFlags = 0x100 64 Replace HeaderFlags = 0x100
70 65
71 // HeaderFlagsExcl indicates request does not replace the object if it already exists. 66 // Excl indicates request does not replace the object if it already exists.
72 HeaderFlagsExcl HeaderFlags = 0x200 67 Excl HeaderFlags = 0x200
73 68
74 // HeaderFlagsCreate indicates request creates an object if it doesn't already exist. 69 // Create indicates request creates an object if it doesn't already exist.
75 HeaderFlagsCreate HeaderFlags = 0x400 70 Create HeaderFlags = 0x400
76 71
77 // HeaderFlagsAppend indicates request adds to the end of the object list. 72 // Append indicates request adds to the end of the object list.
78 HeaderFlagsAppend HeaderFlags = 0x800 73 Append HeaderFlags = 0x800
79) 74)
80 75
81// String returns the string representation of a HeaderFlags. 76// String returns the string representation of a HeaderFlags.
@@ -123,30 +118,30 @@ func (f HeaderFlags) String() string {
123type HeaderType uint16 118type HeaderType uint16
124 119
125const ( 120const (
126 // HeaderTypeNoop indicates that no action was taken. 121 // Noop indicates that no action was taken.
127 HeaderTypeNoop HeaderType = 0x1 122 Noop HeaderType = 0x1
128 123
129 // HeaderTypeError indicates an error code is present, which is also 124 // Error indicates an error code is present, which is also used to indicate
130 // used to indicate success when the code is 0. 125 // success when the code is 0.
131 HeaderTypeError HeaderType = 0x2 126 Error HeaderType = 0x2
132 127
133 // HeaderTypeDone indicates the end of a multi-part message. 128 // Done indicates the end of a multi-part message.
134 HeaderTypeDone HeaderType = 0x3 129 Done HeaderType = 0x3
135 130
136 // HeaderTypeOverrun indicates that data was lost from this message. 131 // Overrun indicates that data was lost from this message.
137 HeaderTypeOverrun HeaderType = 0x4 132 Overrun HeaderType = 0x4
138) 133)
139 134
140// String returns the string representation of a HeaderType. 135// String returns the string representation of a HeaderType.
141func (t HeaderType) String() string { 136func (t HeaderType) String() string {
142 switch t { 137 switch t {
143 case HeaderTypeNoop: 138 case Noop:
144 return "noop" 139 return "noop"
145 case HeaderTypeError: 140 case Error:
146 return "error" 141 return "error"
147 case HeaderTypeDone: 142 case Done:
148 return "done" 143 return "done"
149 case HeaderTypeOverrun: 144 case Overrun:
150 return "overrun" 145 return "overrun"
151 default: 146 default:
152 return fmt.Sprintf("unknown(%d)", t) 147 return fmt.Sprintf("unknown(%d)", t)
@@ -231,6 +226,10 @@ func (m *Message) UnmarshalBinary(b []byte) error {
231 226
232// checkMessage checks a single Message for netlink errors. 227// checkMessage checks a single Message for netlink errors.
233func checkMessage(m Message) error { 228func checkMessage(m Message) error {
229 // NB: All non-nil errors returned from this function *must* be of type
230 // OpError in order to maintain the appropriate contract with callers of
231 // this package.
232
234 const success = 0 233 const success = 0
235 234
236 // Per libnl documentation, only messages that indicate type error can 235 // Per libnl documentation, only messages that indicate type error can
@@ -242,18 +241,19 @@ func checkMessage(m Message) error {
242 // it is unknown whether this change was correct or not. If you run into 241 // it is unknown whether this change was correct or not. If you run into
243 // a problem with your application because of this change, please file 242 // a problem with your application because of this change, please file
244 // an issue. 243 // an issue.
245 if m.Header.Type != HeaderTypeError { 244 if m.Header.Type != Error {
246 return nil 245 return nil
247 } 246 }
248 247
249 if len(m.Data) < 4 { 248 if len(m.Data) < 4 {
250 return errShortErrorMessage 249 return newOpError("receive", errShortErrorMessage)
251 } 250 }
252 251
253 if c := nlenc.Int32(m.Data[0:4]); c != success { 252 if c := nlenc.Int32(m.Data[0:4]); c != success {
254 // Error code is a negative integer, convert it into 253 // Error code is a negative integer, convert it into an OS-specific raw
255 // an OS-specific system call error 254 // system call error, but do not wrap with os.NewSyscallError to signify
256 return newError(-1 * int(c)) 255 // that this error was produced by a netlink message; not a system call.
256 return newOpError("receive", newError(-1*int(c)))
257 } 257 }
258 258
259 return nil 259 return nil
diff --git a/vendor/github.com/mdlayher/netlink/netlink.dot b/vendor/github.com/mdlayher/netlink/netlink.dot
new file mode 100644
index 0000000..d324b0b
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/netlink.dot
@@ -0,0 +1,86 @@
1digraph {
2 rankdir = LR
3
4 subgraph cluster_netlink {
5 "github.com/mdlayher/netlink" [URL="https://github.com/mdlayher/netlink"]
6 }
7
8 subgraph cluster_connector {
9 label = "NETLINK_CONNECTOR";
10
11 {
12 "github.com/fearful-symmetry/garlic" [URL="https://github.com/fearful-symmetry/garlic"]
13 } -> "github.com/mdlayher/netlink"
14 }
15
16 subgraph cluster_crypto {
17 label = "NETLINK_CRYPTO";
18
19 {
20 "github.com/mdlayher/cryptonl" [URL="https://github.com/mdlayher/cryptonl"]
21 } -> "github.com/mdlayher/netlink"
22 }
23
24 subgraph cluster_generic {
25 label = "NETLINK_GENERIC (genetlink)";
26 "github.com/mdlayher/genetlink" [URL="https://github.com/mdlayher/genetlink"]
27 "github.com/mdlayher/genetlink" -> "github.com/mdlayher/netlink"
28
29 {
30 "github.com/axatrax/l2tp" [URL="https://github.com/axatrax/l2tp"]
31 "github.com/digitalocean/go-openvswitch" [URL="https://github.com/digitalocean/go-openvswitch"]
32 "github.com/mdlayher/devlink" [URL="https://github.com/mdlayher/devlink"]
33 "github.com/mdlayher/quota" [URL="https://github.com/mdlayher/quota"]
34 "github.com/mdlayher/taskstats" [URL="https://github.com/mdlayher/taskstats"]
35 "github.com/mdlayher/wifi" [URL="https://github.com/mdlayher/wifi"]
36 "github.com/Merovius/nbd" [URL="https://github.com/Merovius/nbd"]
37 "github.com/rtr7/router7" [URL="https://github.com/rtr7/router7"]
38 "github.com/u-root/u-bmc" [URL="https://github.com/u-root/u-bmc"]
39 "golang.zx2c4.com/wireguard/wgctrl" [URL="https://golang.zx2c4.com/wireguard/wgctrl"]
40 } -> "github.com/mdlayher/genetlink"
41 }
42
43 subgraph cluster_kobject_uevent {
44 label = "NETLINK_KOBJECT_UEVENT";
45
46 {
47 "github.com/mdlayher/kobject" [URL="https://github.com/mdlayher/kobject"]
48 } -> "github.com/mdlayher/netlink"
49 }
50
51 subgraph cluster_netfilter {
52 label = "NETLINK_NETFILTER (nfnetlink)";
53
54 {
55 "github.com/florianl/go-conntrack" [URL="https://github.com/florianl/go-conntrack"]
56 "github.com/florianl/go-nflog" [URL="https://github.com/florianl/go-nflog"]
57 "github.com/florianl/go-nfqueue" [URL="https://github.com/florianl/go-nfqueue"]
58 "github.com/google/nftables" [URL="https://github.com/google/nftables"]
59 "github.com/ti-mo/netfilter" [URL="https://github.com/ti-mo/netfilter"]
60 } -> "github.com/mdlayher/netlink"
61
62 {
63 "github.com/ti-mo/conntrack" [URL="https://github.com/ti-mo/conntrack"]
64 } -> "github.com/ti-mo/netfilter"
65 }
66
67 subgraph cluster_route {
68 label = "NETLINK_ROUTE (rtnetlink)";
69
70 {
71 "github.com/ema/qdisc" [URL="https://github.com/ema/qdisc"]
72 "github.com/florianl/go-tc" [URL="https://github.com/florianl/go-tc"]
73 "github.com/jsimonetti/rtnetlink" [URL="https://github.com/jsimonetti/rtnetlink"]
74 "gitlab.com/mergetb/tech/rtnl" [URL="https://gitlab.com/mergetb/tech/rtnl"]
75 } -> "github.com/mdlayher/netlink"
76 }
77
78 subgraph cluster_w1 {
79 label = "NETLINK_W1";
80
81 {
82 "github.com/SpComb/go-onewire" [URL="https://github.com/SpComb/go-onewire"]
83 } -> "github.com/mdlayher/netlink"
84 }
85}
86
diff --git a/vendor/github.com/mdlayher/netlink/netlink.svg b/vendor/github.com/mdlayher/netlink/netlink.svg
new file mode 100644
index 0000000..639f0c9
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/netlink.svg
@@ -0,0 +1,436 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4<!-- Generated by graphviz version 2.40.1 (20161225.0304)
5 -->
6<!-- Title: %3 Pages: 1 -->
7<svg width="928pt" height="1461pt"
8 viewBox="0.00 0.00 928.33 1461.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 1457)">
10<title>%3</title>
11<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-1457 924.3276,-1457 924.3276,4 -4,4"/>
12<g id="clust1" class="cluster">
13<title>cluster_netlink</title>
14<polygon fill="none" stroke="#000000" points="667.5479,-417 667.5479,-469 912.3276,-469 912.3276,-417 667.5479,-417"/>
15</g>
16<g id="clust2" class="cluster">
17<title>cluster_connector</title>
18<polygon fill="none" stroke="#000000" points="354.6724,-1370 354.6724,-1445 647.5479,-1445 647.5479,-1370 354.6724,-1370"/>
19<text text-anchor="middle" x="501.1102" y="-1429.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_CONNECTOR</text>
20</g>
21<g id="clust4" class="cluster">
22<title>cluster_crypto</title>
23<polygon fill="none" stroke="#000000" points="374.1707,-1287 374.1707,-1362 628.0496,-1362 628.0496,-1287 374.1707,-1287"/>
24<text text-anchor="middle" x="501.1102" y="-1346.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_CRYPTO</text>
25</g>
26<g id="clust6" class="cluster">
27<title>cluster_generic</title>
28<polygon fill="none" stroke="#000000" points="8,-718 8,-1279 631.2993,-1279 631.2993,-718 8,-718"/>
29<text text-anchor="middle" x="319.6497" y="-1263.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_GENERIC (genetlink)</text>
30</g>
31<g id="clust8" class="cluster">
32<title>cluster_kobject_uevent</title>
33<polygon fill="none" stroke="#000000" points="377.4204,-635 377.4204,-710 624.7999,-710 624.7999,-635 377.4204,-635"/>
34<text text-anchor="middle" x="501.1102" y="-694.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_KOBJECT_UEVENT</text>
35</g>
36<g id="clust10" class="cluster">
37<title>cluster_netfilter</title>
38<polygon fill="none" stroke="#000000" points="35.2976,-336 35.2976,-627 612.451,-627 612.451,-336 35.2976,-336"/>
39<text text-anchor="middle" x="323.8743" y="-611.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_NETFILTER (nfnetlink)</text>
40</g>
41<g id="clust13" class="cluster">
42<title>cluster_route</title>
43<polygon fill="none" stroke="#000000" points="371.5709,-91 371.5709,-328 630.6494,-328 630.6494,-91 371.5709,-91"/>
44<text text-anchor="middle" x="501.1102" y="-312.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_ROUTE (rtnetlink)</text>
45</g>
46<g id="clust15" class="cluster">
47<title>cluster_w1</title>
48<polygon fill="none" stroke="#000000" points="365.7215,-8 365.7215,-83 636.4988,-83 636.4988,-8 365.7215,-8"/>
49<text text-anchor="middle" x="501.1102" y="-67.8" font-family="Times,serif" font-size="14.00" fill="#000000">NETLINK_W1</text>
50</g>
51<!-- github.com/mdlayher/netlink -->
52<g id="node1" class="node">
53<title>github.com/mdlayher/netlink</title>
54<g id="a_node1"><a xlink:href="https://github.com/mdlayher/netlink" xlink:title="github.com/mdlayher/netlink">
55<ellipse fill="none" stroke="#000000" cx="789.9377" cy="-443" rx="114.2798" ry="18"/>
56<text text-anchor="middle" x="789.9377" y="-439.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/netlink</text>
57</a>
58</g>
59</g>
60<!-- github.com/fearful&#45;symmetry/garlic -->
61<g id="node2" class="node">
62<title>github.com/fearful&#45;symmetry/garlic</title>
63<g id="a_node2"><a xlink:href="https://github.com/fearful-symmetry/garlic" xlink:title="github.com/fearful&#45;symmetry/garlic">
64<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-1396" rx="138.3755" ry="18"/>
65<text text-anchor="middle" x="501.1102" y="-1392.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/fearful&#45;symmetry/garlic</text>
66</a>
67</g>
68</g>
69<!-- github.com/fearful&#45;symmetry/garlic&#45;&gt;github.com/mdlayher/netlink -->
70<g id="edge1" class="edge">
71<title>github.com/fearful&#45;symmetry/garlic&#45;&gt;github.com/mdlayher/netlink</title>
72<path fill="none" stroke="#000000" d="M618.0901,-1386.1685C629.0968,-1381.2937 639.2266,-1374.7394 647.5479,-1366 711.2893,-1299.0557 774.4581,-618.9655 787.4947,-471.2237"/>
73<polygon fill="#000000" stroke="#000000" points="790.9911,-471.4178 788.3785,-461.1501 784.0178,-470.8059 790.9911,-471.4178"/>
74</g>
75<!-- github.com/mdlayher/cryptonl -->
76<g id="node3" class="node">
77<title>github.com/mdlayher/cryptonl</title>
78<g id="a_node3"><a xlink:href="https://github.com/mdlayher/cryptonl" xlink:title="github.com/mdlayher/cryptonl">
79<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-1313" rx="118.8789" ry="18"/>
80<text text-anchor="middle" x="501.1102" y="-1309.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/cryptonl</text>
81</a>
82</g>
83</g>
84<!-- github.com/mdlayher/cryptonl&#45;&gt;github.com/mdlayher/netlink -->
85<g id="edge2" class="edge">
86<title>github.com/mdlayher/cryptonl&#45;&gt;github.com/mdlayher/netlink</title>
87<path fill="none" stroke="#000000" d="M610.7334,-1305.9481C624.5338,-1300.8942 637.3585,-1293.5434 647.5479,-1283 763.2734,-1163.2529 785.5805,-604.2973 789.275,-471.404"/>
88<polygon fill="#000000" stroke="#000000" points="792.7785,-471.3145 789.5441,-461.2255 785.7809,-471.1294 792.7785,-471.3145"/>
89</g>
90<!-- github.com/mdlayher/genetlink -->
91<g id="node4" class="node">
92<title>github.com/mdlayher/genetlink</title>
93<g id="a_node4"><a xlink:href="https://github.com/mdlayher/genetlink" xlink:title="github.com/mdlayher/genetlink">
94<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-960" rx="122.3786" ry="18"/>
95<text text-anchor="middle" x="501.1102" y="-956.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/genetlink</text>
96</a>
97</g>
98</g>
99<!-- github.com/mdlayher/genetlink&#45;&gt;github.com/mdlayher/netlink -->
100<g id="edge3" class="edge">
101<title>github.com/mdlayher/genetlink&#45;&gt;github.com/mdlayher/netlink</title>
102<path fill="none" stroke="#000000" d="M512.2824,-941.9846C537.2353,-901.5876 599.1109,-800.521 647.5479,-714 696.8353,-625.9599 751.3273,-519.464 776.1997,-470.3016"/>
103<polygon fill="#000000" stroke="#000000" points="779.3841,-471.76 780.7689,-461.256 773.136,-468.6038 779.3841,-471.76"/>
104</g>
105<!-- github.com/axatrax/l2tp -->
106<g id="node5" class="node">
107<title>github.com/axatrax/l2tp</title>
108<g id="a_node5"><a xlink:href="https://github.com/axatrax/l2tp" xlink:title="github.com/axatrax/l2tp">
109<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-1230" rx="95.5831" ry="18"/>
110<text text-anchor="middle" x="171.3362" y="-1226.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/axatrax/l2tp</text>
111</a>
112</g>
113</g>
114<!-- github.com/axatrax/l2tp&#45;&gt;github.com/mdlayher/genetlink -->
115<g id="edge4" class="edge">
116<title>github.com/axatrax/l2tp&#45;&gt;github.com/mdlayher/genetlink</title>
117<path fill="none" stroke="#000000" d="M264.3393,-1225.7596C285.9946,-1221.6342 308.121,-1214.6346 326.6724,-1203 411.4328,-1149.8426 467.4112,-1039.0703 489.9239,-987.5067"/>
118<polygon fill="#000000" stroke="#000000" points="493.2676,-988.589 493.9789,-978.018 486.8307,-985.8382 493.2676,-988.589"/>
119</g>
120<!-- github.com/digitalocean/go&#45;openvswitch -->
121<g id="node6" class="node">
122<title>github.com/digitalocean/go&#45;openvswitch</title>
123<g id="a_node6"><a xlink:href="https://github.com/digitalocean/go-openvswitch" xlink:title="github.com/digitalocean/go&#45;openvswitch">
124<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-1176" rx="155.1726" ry="18"/>
125<text text-anchor="middle" x="171.3362" y="-1172.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/digitalocean/go&#45;openvswitch</text>
126</a>
127</g>
128</g>
129<!-- github.com/digitalocean/go&#45;openvswitch&#45;&gt;github.com/mdlayher/genetlink -->
130<g id="edge5" class="edge">
131<title>github.com/digitalocean/go&#45;openvswitch&#45;&gt;github.com/mdlayher/genetlink</title>
132<path fill="none" stroke="#000000" d="M288.675,-1164.1733C301.9335,-1160.3648 314.894,-1155.4158 326.6724,-1149 399.005,-1109.5999 457.6675,-1028.8489 484.8041,-986.7962"/>
133<polygon fill="#000000" stroke="#000000" points="487.8588,-988.5148 490.2614,-978.196 481.9483,-984.7643 487.8588,-988.5148"/>
134</g>
135<!-- github.com/mdlayher/devlink -->
136<g id="node7" class="node">
137<title>github.com/mdlayher/devlink</title>
138<g id="a_node7"><a xlink:href="https://github.com/mdlayher/devlink" xlink:title="github.com/mdlayher/devlink">
139<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-1122" rx="116.1796" ry="18"/>
140<text text-anchor="middle" x="171.3362" y="-1118.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/devlink</text>
141</a>
142</g>
143</g>
144<!-- github.com/mdlayher/devlink&#45;&gt;github.com/mdlayher/genetlink -->
145<g id="edge6" class="edge">
146<title>github.com/mdlayher/devlink&#45;&gt;github.com/mdlayher/genetlink</title>
147<path fill="none" stroke="#000000" d="M270.0065,-1112.2812C289.3033,-1108.3328 309.0157,-1102.787 326.6724,-1095 387.0749,-1068.361 445.2293,-1016.3812 476.7727,-985.2696"/>
148<polygon fill="#000000" stroke="#000000" points="479.6082,-987.3837 484.204,-977.8376 474.6582,-982.4342 479.6082,-987.3837"/>
149</g>
150<!-- github.com/mdlayher/quota -->
151<g id="node8" class="node">
152<title>github.com/mdlayher/quota</title>
153<g id="a_node8"><a xlink:href="https://github.com/mdlayher/quota" xlink:title="github.com/mdlayher/quota">
154<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-1068" rx="109.381" ry="18"/>
155<text text-anchor="middle" x="171.3362" y="-1064.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/quota</text>
156</a>
157</g>
158</g>
159<!-- github.com/mdlayher/quota&#45;&gt;github.com/mdlayher/genetlink -->
160<g id="edge7" class="edge">
161<title>github.com/mdlayher/quota&#45;&gt;github.com/mdlayher/genetlink</title>
162<path fill="none" stroke="#000000" d="M258.1644,-1057.0454C280.7514,-1053.0754 304.8604,-1047.8288 326.6724,-1041 374.644,-1025.9812 426.5199,-1000.6145 461.1179,-982.2644"/>
163<polygon fill="#000000" stroke="#000000" points="462.802,-985.3329 469.9641,-977.5255 459.4965,-979.1625 462.802,-985.3329"/>
164</g>
165<!-- github.com/mdlayher/taskstats -->
166<g id="node9" class="node">
167<title>github.com/mdlayher/taskstats</title>
168<g id="a_node9"><a xlink:href="https://github.com/mdlayher/taskstats" xlink:title="github.com/mdlayher/taskstats">
169<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-1014" rx="119.6788" ry="18"/>
170<text text-anchor="middle" x="171.3362" y="-1010.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/taskstats</text>
171</a>
172</g>
173</g>
174<!-- github.com/mdlayher/taskstats&#45;&gt;github.com/mdlayher/genetlink -->
175<g id="edge8" class="edge">
176<title>github.com/mdlayher/taskstats&#45;&gt;github.com/mdlayher/genetlink</title>
177<path fill="none" stroke="#000000" d="M252.4304,-1000.721C299.8893,-992.9496 359.9621,-983.1128 409.1751,-975.0542"/>
178<polygon fill="#000000" stroke="#000000" points="409.8812,-978.4853 419.1842,-973.4153 408.75,-971.5773 409.8812,-978.4853"/>
179</g>
180<!-- github.com/mdlayher/wifi -->
181<g id="node10" class="node">
182<title>github.com/mdlayher/wifi</title>
183<g id="a_node10"><a xlink:href="https://github.com/mdlayher/wifi" xlink:title="github.com/mdlayher/wifi">
184<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-960" rx="103.9815" ry="18"/>
185<text text-anchor="middle" x="171.3362" y="-956.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/wifi</text>
186</a>
187</g>
188</g>
189<!-- github.com/mdlayher/wifi&#45;&gt;github.com/mdlayher/genetlink -->
190<g id="edge9" class="edge">
191<title>github.com/mdlayher/wifi&#45;&gt;github.com/mdlayher/genetlink</title>
192<path fill="none" stroke="#000000" d="M275.6788,-960C305.0928,-960 337.4919,-960 368.3321,-960"/>
193<polygon fill="#000000" stroke="#000000" points="368.7246,-963.5001 378.7246,-960 368.7245,-956.5001 368.7246,-963.5001"/>
194</g>
195<!-- github.com/Merovius/nbd -->
196<g id="node11" class="node">
197<title>github.com/Merovius/nbd</title>
198<g id="a_node11"><a xlink:href="https://github.com/Merovius/nbd" xlink:title="github.com/Merovius/nbd">
199<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-906" rx="103.1819" ry="18"/>
200<text text-anchor="middle" x="171.3362" y="-902.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/Merovius/nbd</text>
201</a>
202</g>
203</g>
204<!-- github.com/Merovius/nbd&#45;&gt;github.com/mdlayher/genetlink -->
205<g id="edge10" class="edge">
206<title>github.com/Merovius/nbd&#45;&gt;github.com/mdlayher/genetlink</title>
207<path fill="none" stroke="#000000" d="M246.993,-918.3887C295.2157,-926.2851 358.0096,-936.5675 409.1103,-944.9352"/>
208<polygon fill="#000000" stroke="#000000" points="408.7326,-948.4198 419.1668,-946.5819 409.8638,-941.5119 408.7326,-948.4198"/>
209</g>
210<!-- github.com/rtr7/router7 -->
211<g id="node12" class="node">
212<title>github.com/rtr7/router7</title>
213<g id="a_node12"><a xlink:href="https://github.com/rtr7/router7" xlink:title="github.com/rtr7/router7">
214<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-852" rx="94.4839" ry="18"/>
215<text text-anchor="middle" x="171.3362" y="-848.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/rtr7/router7</text>
216</a>
217</g>
218</g>
219<!-- github.com/rtr7/router7&#45;&gt;github.com/mdlayher/genetlink -->
220<g id="edge11" class="edge">
221<title>github.com/rtr7/router7&#45;&gt;github.com/mdlayher/genetlink</title>
222<path fill="none" stroke="#000000" d="M250.9186,-861.7151C275.5276,-865.812 302.5094,-871.4351 326.6724,-879 374.644,-894.0188 426.5199,-919.3855 461.1179,-937.7356"/>
223<polygon fill="#000000" stroke="#000000" points="459.4965,-940.8375 469.9641,-942.4745 462.802,-934.6671 459.4965,-940.8375"/>
224</g>
225<!-- github.com/u&#45;root/u&#45;bmc -->
226<g id="node13" class="node">
227<title>github.com/u&#45;root/u&#45;bmc</title>
228<g id="a_node13"><a xlink:href="https://github.com/u-root/u-bmc" xlink:title="github.com/u&#45;root/u&#45;bmc">
229<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-798" rx="100.9827" ry="18"/>
230<text text-anchor="middle" x="171.3362" y="-794.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/u&#45;root/u&#45;bmc</text>
231</a>
232</g>
233</g>
234<!-- github.com/u&#45;root/u&#45;bmc&#45;&gt;github.com/mdlayher/genetlink -->
235<g id="edge12" class="edge">
236<title>github.com/u&#45;root/u&#45;bmc&#45;&gt;github.com/mdlayher/genetlink</title>
237<path fill="none" stroke="#000000" d="M261.4204,-806.0589C283.386,-810.065 306.386,-816.0532 326.6724,-825 387.0749,-851.639 445.2293,-903.6188 476.7727,-934.7304"/>
238<polygon fill="#000000" stroke="#000000" points="474.6582,-937.5658 484.204,-942.1624 479.6082,-932.6163 474.6582,-937.5658"/>
239</g>
240<!-- golang.zx2c4.com/wireguard/wgctrl -->
241<g id="node14" class="node">
242<title>golang.zx2c4.com/wireguard/wgctrl</title>
243<g id="a_node14"><a xlink:href="https://golang.zx2c4.com/wireguard/wgctrl" xlink:title="golang.zx2c4.com/wireguard/wgctrl">
244<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-744" rx="139.1754" ry="18"/>
245<text text-anchor="middle" x="171.3362" y="-740.3" font-family="Times,serif" font-size="14.00" fill="#000000">golang.zx2c4.com/wireguard/wgctrl</text>
246</a>
247</g>
248</g>
249<!-- golang.zx2c4.com/wireguard/wgctrl&#45;&gt;github.com/mdlayher/genetlink -->
250<g id="edge13" class="edge">
251<title>golang.zx2c4.com/wireguard/wgctrl&#45;&gt;github.com/mdlayher/genetlink</title>
252<path fill="none" stroke="#000000" d="M284.2004,-754.5868C299.0091,-758.5427 313.5719,-763.864 326.6724,-771 399.005,-810.4001 457.6675,-891.1511 484.8041,-933.2038"/>
253<polygon fill="#000000" stroke="#000000" points="481.9483,-935.2357 490.2614,-941.804 487.8588,-931.4852 481.9483,-935.2357"/>
254</g>
255<!-- github.com/mdlayher/kobject -->
256<g id="node15" class="node">
257<title>github.com/mdlayher/kobject</title>
258<g id="a_node15"><a xlink:href="https://github.com/mdlayher/kobject" xlink:title="github.com/mdlayher/kobject">
259<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-661" rx="115.8798" ry="18"/>
260<text text-anchor="middle" x="501.1102" y="-657.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/mdlayher/kobject</text>
261</a>
262</g>
263</g>
264<!-- github.com/mdlayher/kobject&#45;&gt;github.com/mdlayher/netlink -->
265<g id="edge14" class="edge">
266<title>github.com/mdlayher/kobject&#45;&gt;github.com/mdlayher/netlink</title>
267<path fill="none" stroke="#000000" d="M598.6533,-651.2474C615.7971,-646.7428 632.8379,-640.2701 647.5479,-631 711.0165,-591.0025 756.5745,-511.9527 777.347,-470.2422"/>
268<polygon fill="#000000" stroke="#000000" points="780.5136,-471.7338 781.7468,-461.2109 774.2206,-468.668 780.5136,-471.7338"/>
269</g>
270<!-- github.com/florianl/go&#45;conntrack -->
271<g id="node16" class="node">
272<title>github.com/florianl/go&#45;conntrack</title>
273<g id="a_node16"><a xlink:href="https://github.com/florianl/go-conntrack" xlink:title="github.com/florianl/go&#45;conntrack">
274<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-524" rx="128.0773" ry="18"/>
275<text text-anchor="middle" x="171.3362" y="-520.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/florianl/go&#45;conntrack</text>
276</a>
277</g>
278</g>
279<!-- github.com/florianl/go&#45;conntrack&#45;&gt;github.com/mdlayher/netlink -->
280<g id="edge15" class="edge">
281<title>github.com/florianl/go&#45;conntrack&#45;&gt;github.com/mdlayher/netlink</title>
282<path fill="none" stroke="#000000" d="M277.0466,-513.8001C373.7222,-503.9954 520.5725,-487.9044 647.5479,-469 667.216,-466.0718 688.3299,-462.4696 708.1165,-458.8899"/>
283<polygon fill="#000000" stroke="#000000" points="708.8102,-462.3212 718.0183,-457.0808 707.5521,-455.4352 708.8102,-462.3212"/>
284</g>
285<!-- github.com/florianl/go&#45;nflog -->
286<g id="node17" class="node">
287<title>github.com/florianl/go&#45;nflog</title>
288<g id="a_node17"><a xlink:href="https://github.com/florianl/go-nflog" xlink:title="github.com/florianl/go&#45;nflog">
289<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-470" rx="112.3801" ry="18"/>
290<text text-anchor="middle" x="171.3362" y="-466.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/florianl/go&#45;nflog</text>
291</a>
292</g>
293</g>
294<!-- github.com/florianl/go&#45;nflog&#45;&gt;github.com/mdlayher/netlink -->
295<g id="edge16" class="edge">
296<title>github.com/florianl/go&#45;nflog&#45;&gt;github.com/mdlayher/netlink</title>
297<path fill="none" stroke="#000000" d="M280.1508,-465.2506C389.1846,-460.4916 556.624,-453.1834 669.5731,-448.2535"/>
298<polygon fill="#000000" stroke="#000000" points="669.81,-451.7466 679.6479,-447.8138 669.5047,-444.7533 669.81,-451.7466"/>
299</g>
300<!-- github.com/florianl/go&#45;nfqueue -->
301<g id="node18" class="node">
302<title>github.com/florianl/go&#45;nfqueue</title>
303<g id="a_node18"><a xlink:href="https://github.com/florianl/go-nfqueue" xlink:title="github.com/florianl/go&#45;nfqueue">
304<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-416" rx="122.3786" ry="18"/>
305<text text-anchor="middle" x="171.3362" y="-412.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/florianl/go&#45;nfqueue</text>
306</a>
307</g>
308</g>
309<!-- github.com/florianl/go&#45;nfqueue&#45;&gt;github.com/mdlayher/netlink -->
310<g id="edge17" class="edge">
311<title>github.com/florianl/go&#45;nfqueue&#45;&gt;github.com/mdlayher/netlink</title>
312<path fill="none" stroke="#000000" d="M288.7819,-421.1261C397.8587,-425.887 559.5469,-432.9442 669.5556,-437.7457"/>
313<polygon fill="#000000" stroke="#000000" points="669.5611,-441.2492 679.7043,-438.1887 669.8664,-434.2558 669.5611,-441.2492"/>
314</g>
315<!-- github.com/google/nftables -->
316<g id="node19" class="node">
317<title>github.com/google/nftables</title>
318<g id="a_node19"><a xlink:href="https://github.com/google/nftables" xlink:title="github.com/google/nftables">
319<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-362" rx="107.781" ry="18"/>
320<text text-anchor="middle" x="171.3362" y="-358.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/google/nftables</text>
321</a>
322</g>
323</g>
324<!-- github.com/google/nftables&#45;&gt;github.com/mdlayher/netlink -->
325<g id="edge18" class="edge">
326<title>github.com/google/nftables&#45;&gt;github.com/mdlayher/netlink</title>
327<path fill="none" stroke="#000000" d="M261.4388,-371.9156C357.3042,-382.7128 513.3379,-400.995 647.5479,-420 664.9576,-422.4653 683.5294,-425.3087 701.3161,-428.1371"/>
328<polygon fill="#000000" stroke="#000000" points="701.2554,-431.6719 711.6832,-429.7978 702.3627,-424.7601 701.2554,-431.6719"/>
329</g>
330<!-- github.com/ti&#45;mo/netfilter -->
331<g id="node20" class="node">
332<title>github.com/ti&#45;mo/netfilter</title>
333<g id="a_node20"><a xlink:href="https://github.com/ti-mo/netfilter" xlink:title="github.com/ti&#45;mo/netfilter">
334<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-572" rx="103.1819" ry="18"/>
335<text text-anchor="middle" x="501.1102" y="-568.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/ti&#45;mo/netfilter</text>
336</a>
337</g>
338</g>
339<!-- github.com/ti&#45;mo/netfilter&#45;&gt;github.com/mdlayher/netlink -->
340<g id="edge19" class="edge">
341<title>github.com/ti&#45;mo/netfilter&#45;&gt;github.com/mdlayher/netlink</title>
342<path fill="none" stroke="#000000" d="M564.7651,-557.7322C590.9674,-550.8436 621.2746,-541.5409 647.5479,-530 687.2088,-512.5784 729.1179,-485.8262 757.1173,-466.5875"/>
343<polygon fill="#000000" stroke="#000000" points="759.1243,-469.455 765.3424,-460.8767 755.132,-463.7051 759.1243,-469.455"/>
344</g>
345<!-- github.com/ti&#45;mo/conntrack -->
346<g id="node21" class="node">
347<title>github.com/ti&#45;mo/conntrack</title>
348<g id="a_node21"><a xlink:href="https://github.com/ti-mo/conntrack" xlink:title="github.com/ti&#45;mo/conntrack">
349<ellipse fill="none" stroke="#000000" cx="171.3362" cy="-578" rx="110.4804" ry="18"/>
350<text text-anchor="middle" x="171.3362" y="-574.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/ti&#45;mo/conntrack</text>
351</a>
352</g>
353</g>
354<!-- github.com/ti&#45;mo/conntrack&#45;&gt;github.com/ti&#45;mo/netfilter -->
355<g id="edge20" class="edge">
356<title>github.com/ti&#45;mo/conntrack&#45;&gt;github.com/ti&#45;mo/netfilter</title>
357<path fill="none" stroke="#000000" d="M281.1462,-576.0021C315.5084,-575.3769 353.4762,-574.6861 388.0577,-574.0569"/>
358<polygon fill="#000000" stroke="#000000" points="388.2582,-577.5539 398.1929,-573.8725 388.1308,-570.5551 388.2582,-577.5539"/>
359</g>
360<!-- github.com/ema/qdisc -->
361<g id="node22" class="node">
362<title>github.com/ema/qdisc</title>
363<g id="a_node22"><a xlink:href="https://github.com/ema/qdisc" xlink:title="github.com/ema/qdisc">
364<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-279" rx="89.8845" ry="18"/>
365<text text-anchor="middle" x="501.1102" y="-275.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/ema/qdisc</text>
366</a>
367</g>
368</g>
369<!-- github.com/ema/qdisc&#45;&gt;github.com/mdlayher/netlink -->
370<g id="edge21" class="edge">
371<title>github.com/ema/qdisc&#45;&gt;github.com/mdlayher/netlink</title>
372<path fill="none" stroke="#000000" d="M553.6635,-293.5936C582.3585,-302.6386 617.9653,-315.6578 647.5479,-332 691.4973,-356.2788 736.197,-393.6346 763.5001,-418.1958"/>
373<polygon fill="#000000" stroke="#000000" points="761.3065,-420.9318 771.0595,-425.0704 766.0161,-415.753 761.3065,-420.9318"/>
374</g>
375<!-- github.com/florianl/go&#45;tc -->
376<g id="node23" class="node">
377<title>github.com/florianl/go&#45;tc</title>
378<g id="a_node23"><a xlink:href="https://github.com/florianl/go-tc" xlink:title="github.com/florianl/go&#45;tc">
379<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-225" rx="100.1823" ry="18"/>
380<text text-anchor="middle" x="501.1102" y="-221.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/florianl/go&#45;tc</text>
381</a>
382</g>
383</g>
384<!-- github.com/florianl/go&#45;tc&#45;&gt;github.com/mdlayher/netlink -->
385<g id="edge22" class="edge">
386<title>github.com/florianl/go&#45;tc&#45;&gt;github.com/mdlayher/netlink</title>
387<path fill="none" stroke="#000000" d="M594.8153,-231.5626C613.2418,-235.7365 631.7408,-242.172 647.5479,-252 712.2318,-292.2171 757.5371,-373.4108 777.8719,-415.8163"/>
388<polygon fill="#000000" stroke="#000000" points="774.7542,-417.4118 782.1666,-424.982 781.0929,-414.4417 774.7542,-417.4118"/>
389</g>
390<!-- github.com/jsimonetti/rtnetlink -->
391<g id="node24" class="node">
392<title>github.com/jsimonetti/rtnetlink</title>
393<g id="a_node24"><a xlink:href="https://github.com/jsimonetti/rtnetlink" xlink:title="github.com/jsimonetti/rtnetlink">
394<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-171" rx="121.5784" ry="18"/>
395<text text-anchor="middle" x="501.1102" y="-167.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/jsimonetti/rtnetlink</text>
396</a>
397</g>
398</g>
399<!-- github.com/jsimonetti/rtnetlink&#45;&gt;github.com/mdlayher/netlink -->
400<g id="edge23" class="edge">
401<title>github.com/jsimonetti/rtnetlink&#45;&gt;github.com/mdlayher/netlink</title>
402<path fill="none" stroke="#000000" d="M608.2934,-179.5458C622.2871,-183.7949 635.8152,-189.7416 647.5479,-198 724.8917,-252.4412 766.3728,-363.2908 782.2353,-415.1194"/>
403<polygon fill="#000000" stroke="#000000" points="778.9529,-416.3615 785.1523,-424.9532 785.6639,-414.3707 778.9529,-416.3615"/>
404</g>
405<!-- gitlab.com/mergetb/tech/rtnl -->
406<g id="node25" class="node">
407<title>gitlab.com/mergetb/tech/rtnl</title>
408<g id="a_node25"><a xlink:href="https://gitlab.com/mergetb/tech/rtnl" xlink:title="gitlab.com/mergetb/tech/rtnl">
409<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-117" rx="112.3801" ry="18"/>
410<text text-anchor="middle" x="501.1102" y="-113.3" font-family="Times,serif" font-size="14.00" fill="#000000">gitlab.com/mergetb/tech/rtnl</text>
411</a>
412</g>
413</g>
414<!-- gitlab.com/mergetb/tech/rtnl&#45;&gt;github.com/mdlayher/netlink -->
415<g id="edge24" class="edge">
416<title>gitlab.com/mergetb/tech/rtnl&#45;&gt;github.com/mdlayher/netlink</title>
417<path fill="none" stroke="#000000" d="M605.9213,-123.7549C620.9013,-128.1694 635.3432,-134.6381 647.5479,-144 738.1381,-213.4898 773.8638,-355.0819 785.3329,-415.1061"/>
418<polygon fill="#000000" stroke="#000000" points="781.9009,-415.7955 787.1431,-425.0025 788.7866,-414.536 781.9009,-415.7955"/>
419</g>
420<!-- github.com/SpComb/go&#45;onewire -->
421<g id="node26" class="node">
422<title>github.com/SpComb/go&#45;onewire</title>
423<g id="a_node26"><a xlink:href="https://github.com/SpComb/go-onewire" xlink:title="github.com/SpComb/go&#45;onewire">
424<ellipse fill="none" stroke="#000000" cx="501.1102" cy="-34" rx="127.2775" ry="18"/>
425<text text-anchor="middle" x="501.1102" y="-30.3" font-family="Times,serif" font-size="14.00" fill="#000000">github.com/SpComb/go&#45;onewire</text>
426</a>
427</g>
428</g>
429<!-- github.com/SpComb/go&#45;onewire&#45;&gt;github.com/mdlayher/netlink -->
430<g id="edge25" class="edge">
431<title>github.com/SpComb/go&#45;onewire&#45;&gt;github.com/mdlayher/netlink</title>
432<path fill="none" stroke="#000000" d="M577.4569,-48.4733C602.3155,-56.3703 628.4063,-68.484 647.5479,-87 744.3092,-180.5992 777.0533,-348.493 786.5385,-414.8793"/>
433<polygon fill="#000000" stroke="#000000" points="783.0981,-415.5551 787.9134,-424.9924 790.0343,-414.612 783.0981,-415.5551"/>
434</g>
435</g>
436</svg>
diff --git a/vendor/github.com/mdlayher/netlink/netns_linux.go b/vendor/github.com/mdlayher/netlink/netns_linux.go
index 8173d4d..8de5440 100644
--- a/vendor/github.com/mdlayher/netlink/netns_linux.go
+++ b/vendor/github.com/mdlayher/netlink/netns_linux.go
@@ -3,25 +3,91 @@
3package netlink 3package netlink
4 4
5import ( 5import (
6 "errors"
6 "fmt" 7 "fmt"
7 "os" 8 "os"
8 9
9 "golang.org/x/sys/unix" 10 "golang.org/x/sys/unix"
10) 11)
11 12
12// getThreadNetNS gets the network namespace file descriptor of the thread the current goroutine 13// errNetNSDisabled is returned when network namespaces are unavailable on
13// is running on. Make sure to call runtime.LockOSThread() before this so the goroutine does not 14// a given system.
14// get scheduled on another thread in the meantime. 15var errNetNSDisabled = errors.New("netlink: network namespaces are not enabled on this system")
15func getThreadNetNS() (int, error) { 16
16 file, err := os.Open(fmt.Sprintf("/proc/%d/task/%d/ns/net", unix.Getpid(), unix.Gettid())) 17// A netNS is a handle that can manipulate network namespaces.
17 if err != nil { 18//
18 return -1, err 19// Operations performed on a netNS must use runtime.LockOSThread before
20// manipulating any network namespaces.
21type netNS struct {
22 // The handle to a network namespace.
23 f *os.File
24
25 // Indicates if network namespaces are disabled on this system, and thus
26 // operations should become a no-op or return errors.
27 disabled bool
28}
29
30// threadNetNS constructs a netNS using the network namespace of the calling
31// thread. If the namespace is not the default namespace, runtime.LockOSThread
32// should be invoked first.
33func threadNetNS() (*netNS, error) {
34 return fileNetNS(fmt.Sprintf("/proc/self/task/%d/ns/net", unix.Gettid()))
35}
36
37// fileNetNS opens file and creates a netNS. fileNetNS should only be called
38// directly in tests.
39func fileNetNS(file string) (*netNS, error) {
40 f, err := os.Open(file)
41 switch {
42 case err == nil:
43 return &netNS{f: f}, nil
44 case os.IsNotExist(err):
45 // Network namespaces are not enabled on this system. Use this signal
46 // to return errors elsewhere if the caller explicitly asks for a
47 // network namespace to be set.
48 return &netNS{disabled: true}, nil
49 default:
50 return nil, err
51 }
52}
53
54// Close releases the handle to a network namespace.
55func (n *netNS) Close() error {
56 return n.do(func() error {
57 return n.f.Close()
58 })
59}
60
61// FD returns a file descriptor which represents the network namespace.
62func (n *netNS) FD() int {
63 if n.disabled {
64 // No reasonable file descriptor value in this case, so specify a
65 // non-existent one.
66 return -1
19 } 67 }
20 return int(file.Fd()), nil 68
69 return int(n.f.Fd())
70}
71
72// Restore restores the original network namespace for the calling thread.
73func (n *netNS) Restore() error {
74 return n.do(func() error {
75 return n.Set(n.FD())
76 })
21} 77}
22 78
23// setThreadNetNS sets the network namespace of the thread of the current goroutine to 79// Set sets a new network namespace for the current thread using fd.
24// the namespace described by the user-provided file descriptor. 80func (n *netNS) Set(fd int) error {
25func setThreadNetNS(fd int) error { 81 return n.do(func() error {
26 return unix.Setns(fd, unix.CLONE_NEWNET) 82 return os.NewSyscallError("setns", unix.Setns(fd, unix.CLONE_NEWNET))
83 })
84}
85
86// do runs fn if network namespaces are enabled on this system.
87func (n *netNS) do(fn func() error) error {
88 if n.disabled {
89 return errNetNSDisabled
90 }
91
92 return fn()
27} 93}
diff --git a/vendor/github.com/mdlayher/netlink/nlenc/endian.go b/vendor/github.com/mdlayher/netlink/nlenc/endian.go
index 332f487..b1487d2 100644
--- a/vendor/github.com/mdlayher/netlink/nlenc/endian.go
+++ b/vendor/github.com/mdlayher/netlink/nlenc/endian.go
@@ -1,8 +1,6 @@
1package nlenc 1package nlenc
2 2
3import ( 3import "encoding/binary"
4 "encoding/binary"
5)
6 4
7// NativeEndian returns the native byte order of this system. 5// NativeEndian returns the native byte order of this system.
8func NativeEndian() binary.ByteOrder { 6func NativeEndian() binary.ByteOrder {
diff --git a/vendor/github.com/mdlayher/netlink/nlenc/string.go b/vendor/github.com/mdlayher/netlink/nlenc/string.go
index 48b8498..c0b166d 100644
--- a/vendor/github.com/mdlayher/netlink/nlenc/string.go
+++ b/vendor/github.com/mdlayher/netlink/nlenc/string.go
@@ -10,5 +10,9 @@ func Bytes(s string) []byte {
10// String returns a string with the contents of b from a null-terminated 10// String returns a string with the contents of b from a null-terminated
11// byte slice. 11// byte slice.
12func String(b []byte) string { 12func String(b []byte) string {
13 return string(bytes.TrimSuffix(b, []byte{0x00})) 13 // If the string has more than one NULL terminator byte, we want to remove
14 // all of them before returning the string to the caller; hence the use of
15 // strings.TrimRight instead of strings.TrimSuffix (which previously only
16 // removed a single NULL).
17 return string(bytes.TrimRight(b, "\x00"))
14} 18}
diff --git a/vendor/github.com/mdlayher/netlink/rawconn_gteq_1.12.go b/vendor/github.com/mdlayher/netlink/rawconn_gteq_1.12.go
new file mode 100644
index 0000000..93d822a
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/rawconn_gteq_1.12.go
@@ -0,0 +1,12 @@
1//+build go1.12
2
3package netlink
4
5import (
6 "os"
7 "syscall"
8)
9
10func newRawConn(fd *os.File) (syscall.RawConn, error) {
11 return fd.SyscallConn()
12}
diff --git a/vendor/github.com/mdlayher/netlink/rawconn_lt_1.12.go b/vendor/github.com/mdlayher/netlink/rawconn_lt_1.12.go
new file mode 100644
index 0000000..f494173
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/rawconn_lt_1.12.go
@@ -0,0 +1,32 @@
1//+build !go1.12
2
3package netlink
4
5import (
6 "os"
7 "syscall"
8)
9
10func newRawConn(fd *os.File) (syscall.RawConn, error) {
11 return &rawConn{fd: fd.Fd()}, nil
12}
13
14var _ syscall.RawConn = &rawConn{}
15
16// A rawConn is a syscall.RawConn.
17type rawConn struct {
18 fd uintptr
19}
20
21func (rc *rawConn) Control(f func(fd uintptr)) error {
22 f(rc.fd)
23 return nil
24}
25
26func (rc *rawConn) Read(_ func(fd uintptr) (done bool)) error {
27 return notSupported("syscall-conn-read")
28}
29
30func (rc *rawConn) Write(_ func(fd uintptr) (done bool)) error {
31 return notSupported("syscall-conn-write")
32}
diff --git a/vendor/github.com/mdlayher/netlink/sockopt_linux.go b/vendor/github.com/mdlayher/netlink/sockopt_linux.go
deleted file mode 100644
index 1993965..0000000
--- a/vendor/github.com/mdlayher/netlink/sockopt_linux.go
+++ /dev/null
@@ -1,27 +0,0 @@
1// +build linux,!386
2
3package netlink
4
5import (
6 "unsafe"
7
8 "golang.org/x/sys/unix"
9)
10
11// setsockopt provides access to the setsockopt syscall.
12func setsockopt(fd, level, name int, v unsafe.Pointer, l uint32) error {
13 _, _, errno := unix.Syscall6(
14 unix.SYS_SETSOCKOPT,
15 uintptr(fd),
16 uintptr(level),
17 uintptr(name),
18 uintptr(v),
19 uintptr(l),
20 0,
21 )
22 if errno != 0 {
23 return error(errno)
24 }
25
26 return nil
27}
diff --git a/vendor/github.com/mdlayher/netlink/sockopt_linux_386.go b/vendor/github.com/mdlayher/netlink/sockopt_linux_386.go
deleted file mode 100644
index 2355e45..0000000
--- a/vendor/github.com/mdlayher/netlink/sockopt_linux_386.go
+++ /dev/null
@@ -1,36 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build linux,386
6
7package netlink
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14const (
15 sysSETSOCKOPT = 0xe
16)
17
18func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno)
19
20// setsockopt provides access to the setsockopt syscall.
21func setsockopt(fd, level, name int, v unsafe.Pointer, l uint32) error {
22 _, errno := socketcall(
23 sysSETSOCKOPT,
24 uintptr(fd),
25 uintptr(level),
26 uintptr(name),
27 uintptr(v),
28 uintptr(l),
29 0,
30 )
31 if errno != 0 {
32 return error(errno)
33 }
34
35 return nil
36}
diff --git a/vendor/github.com/mdlayher/netlink/sockopt_linux_386.s b/vendor/github.com/mdlayher/netlink/sockopt_linux_386.s
deleted file mode 100644
index 6592246..0000000
--- a/vendor/github.com/mdlayher/netlink/sockopt_linux_386.s
+++ /dev/null
@@ -1,6 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5TEXT ·socketcall(SB),4,$0-36
6 JMP syscall·socketcall(SB)
diff --git a/vendor/github.com/mdlayher/wifi/.travis.yml b/vendor/github.com/mdlayher/wifi/.travis.yml
index b8a82fe..d829a0b 100644
--- a/vendor/github.com/mdlayher/wifi/.travis.yml
+++ b/vendor/github.com/mdlayher/wifi/.travis.yml
@@ -5,7 +5,7 @@ os:
5 - linux 5 - linux
6sudo: required 6sudo: required
7before_install: 7before_install:
8 - go get github.com/golang/lint/golint 8 - go get golang.org/x/lint/golint
9 - go get honnef.co/go/tools/cmd/staticcheck 9 - go get honnef.co/go/tools/cmd/staticcheck
10 - go get -d -t ./... 10 - go get -d -t ./...
11script: 11script:
diff --git a/vendor/github.com/mdlayher/wifi/client_linux.go b/vendor/github.com/mdlayher/wifi/client_linux.go
index 4edb9bc..828bd3d 100644
--- a/vendor/github.com/mdlayher/wifi/client_linux.go
+++ b/vendor/github.com/mdlayher/wifi/client_linux.go
@@ -76,7 +76,7 @@ func (c *client) Interfaces() ([]*Interface, error) {
76 }, 76 },
77 } 77 }
78 78
79 flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump 79 flags := netlink.Request | netlink.Dump
80 msgs, err := c.c.Execute(req, c.familyID, flags) 80 msgs, err := c.c.Execute(req, c.familyID, flags)
81 if err != nil { 81 if err != nil {
82 return nil, err 82 return nil, err
@@ -106,7 +106,7 @@ func (c *client) BSS(ifi *Interface) (*BSS, error) {
106 Data: b, 106 Data: b,
107 } 107 }
108 108
109 flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump 109 flags := netlink.Request | netlink.Dump
110 msgs, err := c.c.Execute(req, c.familyID, flags) 110 msgs, err := c.c.Execute(req, c.familyID, flags)
111 if err != nil { 111 if err != nil {
112 return nil, err 112 return nil, err
@@ -140,7 +140,7 @@ func (c *client) StationInfo(ifi *Interface) ([]*StationInfo, error) {
140 Data: b, 140 Data: b,
141 } 141 }
142 142
143 flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump 143 flags := netlink.Request | netlink.Dump
144 msgs, err := c.c.Execute(req, c.familyID, flags) 144 msgs, err := c.c.Execute(req, c.familyID, flags)
145 if err != nil { 145 if err != nil {
146 return nil, err 146 return nil, err
@@ -164,7 +164,6 @@ func (c *client) StationInfo(ifi *Interface) ([]*StationInfo, error) {
164 return stations, nil 164 return stations, nil
165} 165}
166 166
167
168// checkMessages verifies that response messages from generic netlink contain 167// checkMessages verifies that response messages from generic netlink contain
169// the command and family version we expect. 168// the command and family version we expect.
170func (c *client) checkMessages(msgs []genetlink.Message, command uint8) error { 169func (c *client) checkMessages(msgs []genetlink.Message, command uint8) error {
diff --git a/vendor/github.com/mdlayher/wifi/internal/nl80211/const.go b/vendor/github.com/mdlayher/wifi/internal/nl80211/const.go
index 9a03fb6..c40d596 100644
--- a/vendor/github.com/mdlayher/wifi/internal/nl80211/const.go
+++ b/vendor/github.com/mdlayher/wifi/internal/nl80211/const.go
@@ -1,6 +1,8 @@
1// WARNING: This file has automatically been generated on Thu, 29 Dec 2016 08:53:57 EST. 1// WARNING: This file has automatically been generated on Thu, 29 Dec 2016 08:53:57 EST.
2// By https://git.io/cgogen. DO NOT EDIT. 2// By https://git.io/cgogen. DO NOT EDIT.
3 3
4//lint:file-ignore U1000 Ignore all unused code, it's generated.
5
4package nl80211 6package nl80211
5 7
6const ( 8const (
diff --git a/vendor/github.com/prometheus/procfs/arp.go b/vendor/github.com/prometheus/procfs/arp.go
new file mode 100644
index 0000000..916c918
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/arp.go
@@ -0,0 +1,85 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "fmt"
18 "io/ioutil"
19 "net"
20 "strings"
21)
22
23// ARPEntry contains a single row of the columnar data represented in
24// /proc/net/arp.
25type ARPEntry struct {
26 // IP address
27 IPAddr net.IP
28 // MAC address
29 HWAddr net.HardwareAddr
30 // Name of the device
31 Device string
32}
33
34// GatherARPEntries retrieves all the ARP entries, parse the relevant columns,
35// and then return a slice of ARPEntry's.
36func (fs FS) GatherARPEntries() ([]ARPEntry, error) {
37 data, err := ioutil.ReadFile(fs.proc.Path("net/arp"))
38 if err != nil {
39 return nil, fmt.Errorf("error reading arp %s: %s", fs.proc.Path("net/arp"), err)
40 }
41
42 return parseARPEntries(data)
43}
44
45func parseARPEntries(data []byte) ([]ARPEntry, error) {
46 lines := strings.Split(string(data), "\n")
47 entries := make([]ARPEntry, 0)
48 var err error
49 const (
50 expectedDataWidth = 6
51 expectedHeaderWidth = 9
52 )
53 for _, line := range lines {
54 columns := strings.Fields(line)
55 width := len(columns)
56
57 if width == expectedHeaderWidth || width == 0 {
58 continue
59 } else if width == expectedDataWidth {
60 entry, err := parseARPEntry(columns)
61 if err != nil {
62 return []ARPEntry{}, fmt.Errorf("failed to parse ARP entry: %s", err)
63 }
64 entries = append(entries, entry)
65 } else {
66 return []ARPEntry{}, fmt.Errorf("%d columns were detected, but %d were expected", width, expectedDataWidth)
67 }
68
69 }
70
71 return entries, err
72}
73
74func parseARPEntry(columns []string) (ARPEntry, error) {
75 ip := net.ParseIP(columns[0])
76 mac := net.HardwareAddr(columns[3])
77
78 entry := ARPEntry{
79 IPAddr: ip,
80 HWAddr: mac,
81 Device: columns[5],
82 }
83
84 return entry, nil
85}
diff --git a/vendor/github.com/prometheus/procfs/crypto.go b/vendor/github.com/prometheus/procfs/crypto.go
new file mode 100644
index 0000000..19d4041
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/crypto.go
@@ -0,0 +1,131 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "bytes"
18 "fmt"
19 "io/ioutil"
20 "strconv"
21 "strings"
22
23 "github.com/prometheus/procfs/internal/util"
24)
25
26// Crypto holds info parsed from /proc/crypto.
27type Crypto struct {
28 Alignmask *uint64
29 Async bool
30 Blocksize *uint64
31 Chunksize *uint64
32 Ctxsize *uint64
33 Digestsize *uint64
34 Driver string
35 Geniv string
36 Internal string
37 Ivsize *uint64
38 Maxauthsize *uint64
39 MaxKeysize *uint64
40 MinKeysize *uint64
41 Module string
42 Name string
43 Priority *int64
44 Refcnt *int64
45 Seedsize *uint64
46 Selftest string
47 Type string
48 Walksize *uint64
49}
50
51// Crypto parses an crypto-file (/proc/crypto) and returns a slice of
52// structs containing the relevant info. More information available here:
53// https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html
54func (fs FS) Crypto() ([]Crypto, error) {
55 data, err := ioutil.ReadFile(fs.proc.Path("crypto"))
56 if err != nil {
57 return nil, fmt.Errorf("error parsing crypto %s: %s", fs.proc.Path("crypto"), err)
58 }
59 crypto, err := parseCrypto(data)
60 if err != nil {
61 return nil, fmt.Errorf("error parsing crypto %s: %s", fs.proc.Path("crypto"), err)
62 }
63 return crypto, nil
64}
65
66func parseCrypto(cryptoData []byte) ([]Crypto, error) {
67 crypto := []Crypto{}
68
69 cryptoBlocks := bytes.Split(cryptoData, []byte("\n\n"))
70
71 for _, block := range cryptoBlocks {
72 var newCryptoElem Crypto
73
74 lines := strings.Split(string(block), "\n")
75 for _, line := range lines {
76 if strings.TrimSpace(line) == "" || line[0] == ' ' {
77 continue
78 }
79 fields := strings.Split(line, ":")
80 key := strings.TrimSpace(fields[0])
81 value := strings.TrimSpace(fields[1])
82 vp := util.NewValueParser(value)
83
84 switch strings.TrimSpace(key) {
85 case "async":
86 b, err := strconv.ParseBool(value)
87 if err == nil {
88 newCryptoElem.Async = b
89 }
90 case "blocksize":
91 newCryptoElem.Blocksize = vp.PUInt64()
92 case "chunksize":
93 newCryptoElem.Chunksize = vp.PUInt64()
94 case "digestsize":
95 newCryptoElem.Digestsize = vp.PUInt64()
96 case "driver":
97 newCryptoElem.Driver = value
98 case "geniv":
99 newCryptoElem.Geniv = value
100 case "internal":
101 newCryptoElem.Internal = value
102 case "ivsize":
103 newCryptoElem.Ivsize = vp.PUInt64()
104 case "maxauthsize":
105 newCryptoElem.Maxauthsize = vp.PUInt64()
106 case "max keysize":
107 newCryptoElem.MaxKeysize = vp.PUInt64()
108 case "min keysize":
109 newCryptoElem.MinKeysize = vp.PUInt64()
110 case "module":
111 newCryptoElem.Module = value
112 case "name":
113 newCryptoElem.Name = value
114 case "priority":
115 newCryptoElem.Priority = vp.PInt64()
116 case "refcnt":
117 newCryptoElem.Refcnt = vp.PInt64()
118 case "seedsize":
119 newCryptoElem.Seedsize = vp.PUInt64()
120 case "selftest":
121 newCryptoElem.Selftest = value
122 case "type":
123 newCryptoElem.Type = value
124 case "walksize":
125 newCryptoElem.Walksize = vp.PUInt64()
126 }
127 }
128 crypto = append(crypto, newCryptoElem)
129 }
130 return crypto, nil
131}
diff --git a/vendor/github.com/prometheus/procfs/net_softnet.go b/vendor/github.com/prometheus/procfs/net_softnet.go
new file mode 100644
index 0000000..6fcad20
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/net_softnet.go
@@ -0,0 +1,91 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "fmt"
18 "io/ioutil"
19 "strconv"
20 "strings"
21)
22
23// For the proc file format details,
24// see https://elixir.bootlin.com/linux/v4.17/source/net/core/net-procfs.c#L162
25// and https://elixir.bootlin.com/linux/v4.17/source/include/linux/netdevice.h#L2810.
26
27// SoftnetEntry contains a single row of data from /proc/net/softnet_stat
28type SoftnetEntry struct {
29 // Number of processed packets
30 Processed uint
31 // Number of dropped packets
32 Dropped uint
33 // Number of times processing packets ran out of quota
34 TimeSqueezed uint
35}
36
37// GatherSoftnetStats reads /proc/net/softnet_stat, parse the relevant columns,
38// and then return a slice of SoftnetEntry's.
39func (fs FS) GatherSoftnetStats() ([]SoftnetEntry, error) {
40 data, err := ioutil.ReadFile(fs.proc.Path("net/softnet_stat"))
41 if err != nil {
42 return nil, fmt.Errorf("error reading softnet %s: %s", fs.proc.Path("net/softnet_stat"), err)
43 }
44
45 return parseSoftnetEntries(data)
46}
47
48func parseSoftnetEntries(data []byte) ([]SoftnetEntry, error) {
49 lines := strings.Split(string(data), "\n")
50 entries := make([]SoftnetEntry, 0)
51 var err error
52 const (
53 expectedColumns = 11
54 )
55 for _, line := range lines {
56 columns := strings.Fields(line)
57 width := len(columns)
58 if width == 0 {
59 continue
60 }
61 if width != expectedColumns {
62 return []SoftnetEntry{}, fmt.Errorf("%d columns were detected, but %d were expected", width, expectedColumns)
63 }
64 var entry SoftnetEntry
65 if entry, err = parseSoftnetEntry(columns); err != nil {
66 return []SoftnetEntry{}, err
67 }
68 entries = append(entries, entry)
69 }
70
71 return entries, nil
72}
73
74func parseSoftnetEntry(columns []string) (SoftnetEntry, error) {
75 var err error
76 var processed, dropped, timeSqueezed uint64
77 if processed, err = strconv.ParseUint(columns[0], 16, 32); err != nil {
78 return SoftnetEntry{}, fmt.Errorf("Unable to parse column 0: %s", err)
79 }
80 if dropped, err = strconv.ParseUint(columns[1], 16, 32); err != nil {
81 return SoftnetEntry{}, fmt.Errorf("Unable to parse column 1: %s", err)
82 }
83 if timeSqueezed, err = strconv.ParseUint(columns[2], 16, 32); err != nil {
84 return SoftnetEntry{}, fmt.Errorf("Unable to parse column 2: %s", err)
85 }
86 return SoftnetEntry{
87 Processed: uint(processed),
88 Dropped: uint(dropped),
89 TimeSqueezed: uint(timeSqueezed),
90 }, nil
91}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/class_cooling_device.go b/vendor/github.com/prometheus/procfs/sysfs/class_cooling_device.go
new file mode 100644
index 0000000..8927b02
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/sysfs/class_cooling_device.go
@@ -0,0 +1,90 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// +build !windows
15
16package sysfs
17
18import (
19 "path/filepath"
20 "strconv"
21 "strings"
22
23 "github.com/prometheus/procfs/internal/util"
24)
25
26// ClassCoolingDeviceStats contains info from files in /sys/class/thermal/cooling_device[0-9]*
27// for a single device.
28// https://www.kernel.org/doc/Documentation/thermal/sysfs-api.txt
29type ClassCoolingDeviceStats struct {
30 Name string // The name of the cooling device.
31 Type string // Type of the cooling device(processor/fan/...)
32 MaxState int64 // Maximum cooling state of the cooling device
33 CurState int64 // Current cooling state of the cooling device
34}
35
36func (fs FS) ClassCoolingDeviceStats() ([]ClassCoolingDeviceStats, error) {
37 cds, err := filepath.Glob(fs.sys.Path("class/thermal/cooling_device[0-9]*"))
38 if err != nil {
39 return []ClassCoolingDeviceStats{}, err
40 }
41
42 var coolingDeviceStats = ClassCoolingDeviceStats{}
43 stats := make([]ClassCoolingDeviceStats, len(cds))
44 for i, cd := range cds {
45 cdName := strings.TrimPrefix(filepath.Base(cd), "cooling_device")
46
47 coolingDeviceStats, err = parseCoolingDeviceStats(cd)
48 if err != nil {
49 return []ClassCoolingDeviceStats{}, err
50 }
51
52 coolingDeviceStats.Name = cdName
53 stats[i] = coolingDeviceStats
54 }
55 return stats, nil
56}
57
58func parseCoolingDeviceStats(cd string) (ClassCoolingDeviceStats, error) {
59 cdType, err := util.SysReadFile(filepath.Join(cd, "type"))
60 if err != nil {
61 return ClassCoolingDeviceStats{}, err
62 }
63
64 cdMaxStateString, err := util.SysReadFile(filepath.Join(cd, "max_state"))
65 if err != nil {
66 return ClassCoolingDeviceStats{}, err
67 }
68 cdMaxStateInt, err := strconv.ParseInt(cdMaxStateString, 10, 64)
69 if err != nil {
70 return ClassCoolingDeviceStats{}, err
71 }
72
73 // cur_state can be -1, eg intel powerclamp
74 // https://www.kernel.org/doc/Documentation/thermal/intel_powerclamp.txt
75 cdCurStateString, err := util.SysReadFile(filepath.Join(cd, "cur_state"))
76 if err != nil {
77 return ClassCoolingDeviceStats{}, err
78 }
79
80 cdCurStateInt, err := strconv.ParseInt(cdCurStateString, 10, 64)
81 if err != nil {
82 return ClassCoolingDeviceStats{}, err
83 }
84
85 return ClassCoolingDeviceStats{
86 Type: cdType,
87 MaxState: cdMaxStateInt,
88 CurState: cdCurStateInt,
89 }, nil
90}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/vulnerability.go b/vendor/github.com/prometheus/procfs/sysfs/vulnerability.go
new file mode 100644
index 0000000..d41ecfb
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/sysfs/vulnerability.go
@@ -0,0 +1,84 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package sysfs
15
16import (
17 "fmt"
18 "io/ioutil"
19 "path/filepath"
20 "strings"
21)
22
23const (
24 notAffected = "Not Affected"
25 vulnerable = "Vulnerable"
26 mitigation = "Mitigation"
27)
28
29// CPUVulnerabilities retrieves a map of vulnerability names to their mitigations.
30func (fs FS) CPUVulnerabilities() ([]Vulnerability, error) {
31 matches, err := filepath.Glob(fs.sys.Path("devices/system/cpu/vulnerabilities/*"))
32 if err != nil {
33 return nil, err
34 }
35
36 vulnerabilities := make([]Vulnerability, 0, len(matches))
37 for _, match := range matches {
38 name := filepath.Base(match)
39
40 value, err := ioutil.ReadFile(match)
41 if err != nil {
42 return nil, err
43 }
44
45 v, err := parseVulnerability(name, string(value))
46 if err != nil {
47 return nil, err
48 }
49
50 vulnerabilities = append(vulnerabilities, v)
51 }
52
53 return vulnerabilities, nil
54}
55
56// Vulnerability represents a single vulnerability extracted from /sys/devices/system/cpu/vulnerabilities/
57type Vulnerability struct {
58 CodeName string
59 State string
60 Mitigation string
61}
62
63func parseVulnerability(name, value string) (Vulnerability, error) {
64 v := Vulnerability{CodeName: name}
65 value = strings.TrimSpace(value)
66 if value == notAffected {
67 v.State = notAffected
68 return v, nil
69 }
70
71 if strings.HasPrefix(value, vulnerable) {
72 v.State = vulnerable
73 v.Mitigation = strings.TrimPrefix(strings.TrimPrefix(value, vulnerable), ": ")
74 return v, nil
75 }
76
77 if strings.HasPrefix(value, mitigation) {
78 v.State = mitigation
79 v.Mitigation = strings.TrimPrefix(strings.TrimPrefix(value, mitigation), ": ")
80 return v, nil
81 }
82
83 return v, fmt.Errorf("unknown vulnerability state for %s: %s", name, value)
84}
diff --git a/vendor/golang.org/x/net/bpf/vm_instructions.go b/vendor/golang.org/x/net/bpf/vm_instructions.go
index f0d2e55..cf8947c 100644
--- a/vendor/golang.org/x/net/bpf/vm_instructions.go
+++ b/vendor/golang.org/x/net/bpf/vm_instructions.go
@@ -129,7 +129,8 @@ func loadIndirect(ins LoadIndirect, in []byte, regX uint32) (uint32, bool) {
129func loadMemShift(ins LoadMemShift, in []byte) (uint32, bool) { 129func loadMemShift(ins LoadMemShift, in []byte) (uint32, bool) {
130 offset := int(ins.Off) 130 offset := int(ins.Off)
131 131
132 if !inBounds(len(in), offset, 0) { 132 // Size of LoadMemShift is always 1 byte
133 if !inBounds(len(in), offset, 1) {
133 return 0, false 134 return 0, false
134 } 135 }
135 136
diff --git a/vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go b/vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go
index 63f0534..27be0ef 100644
--- a/vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go
+++ b/vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build arm64 amd64 ppc64 ppc64le mips64 mips64le s390x 5// +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
6// +build linux 6// +build linux
7 7
8package socket 8package socket
diff --git a/vendor/golang.org/x/net/internal/socket/defs_aix.go b/vendor/golang.org/x/net/internal/socket/defs_aix.go
index ed6f807..c9d05b2 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_aix.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_aix.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_darwin.go b/vendor/golang.org/x/net/internal/socket/defs_darwin.go
index 14e28c0..b780bc6 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_darwin.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_darwin.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_dragonfly.go b/vendor/golang.org/x/net/internal/socket/defs_dragonfly.go
index 14e28c0..b780bc6 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_dragonfly.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_dragonfly.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_freebsd.go b/vendor/golang.org/x/net/internal/socket/defs_freebsd.go
index 14e28c0..b780bc6 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_freebsd.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_freebsd.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_linux.go b/vendor/golang.org/x/net/internal/socket/defs_linux.go
index ce9ec2f..6c5c11d 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_linux.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_linux.go
@@ -18,14 +18,6 @@ package socket
18*/ 18*/
19import "C" 19import "C"
20 20
21const (
22 sysAF_UNSPEC = C.AF_UNSPEC
23 sysAF_INET = C.AF_INET
24 sysAF_INET6 = C.AF_INET6
25
26 sysSOCK_RAW = C.SOCK_RAW
27)
28
29type iovec C.struct_iovec 21type iovec C.struct_iovec
30 22
31type msghdr C.struct_msghdr 23type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_netbsd.go b/vendor/golang.org/x/net/internal/socket/defs_netbsd.go
index 3f84335..3d3b776 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_netbsd.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_netbsd.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_openbsd.go b/vendor/golang.org/x/net/internal/socket/defs_openbsd.go
index 14e28c0..b780bc6 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_openbsd.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_openbsd.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/defs_solaris.go b/vendor/golang.org/x/net/internal/socket/defs_solaris.go
index 14e28c0..b780bc6 100644
--- a/vendor/golang.org/x/net/internal/socket/defs_solaris.go
+++ b/vendor/golang.org/x/net/internal/socket/defs_solaris.go
@@ -16,14 +16,6 @@ package socket
16*/ 16*/
17import "C" 17import "C"
18 18
19const (
20 sysAF_UNSPEC = C.AF_UNSPEC
21 sysAF_INET = C.AF_INET
22 sysAF_INET6 = C.AF_INET6
23
24 sysSOCK_RAW = C.SOCK_RAW
25)
26
27type iovec C.struct_iovec 19type iovec C.struct_iovec
28 20
29type msghdr C.struct_msghdr 21type msghdr C.struct_msghdr
diff --git a/vendor/golang.org/x/net/internal/socket/iovec_64bit.go b/vendor/golang.org/x/net/internal/socket/iovec_64bit.go
index 0773882..dfeda75 100644
--- a/vendor/golang.org/x/net/internal/socket/iovec_64bit.go
+++ b/vendor/golang.org/x/net/internal/socket/iovec_64bit.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build arm64 amd64 ppc64 ppc64le mips64 mips64le s390x 5// +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
6// +build aix darwin dragonfly freebsd linux netbsd openbsd 6// +build aix darwin dragonfly freebsd linux netbsd openbsd
7 7
8package socket 8package socket
diff --git a/vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go b/vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go
index 610fc4f..e731833 100644
--- a/vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go
+++ b/vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build arm64 amd64 ppc64 ppc64le mips64 mips64le s390x 5// +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
6// +build linux 6// +build linux
7 7
8package socket 8package socket
diff --git a/vendor/golang.org/x/net/internal/socket/sys_const_unix.go b/vendor/golang.org/x/net/internal/socket/sys_const_unix.go
new file mode 100644
index 0000000..43797d6
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/sys_const_unix.go
@@ -0,0 +1,17 @@
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6
7package socket
8
9import "golang.org/x/sys/unix"
10
11const (
12 sysAF_UNSPEC = unix.AF_UNSPEC
13 sysAF_INET = unix.AF_INET
14 sysAF_INET6 = unix.AF_INET6
15
16 sysSOCK_RAW = unix.SOCK_RAW
17)
diff --git a/vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.go b/vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.go
new file mode 100644
index 0000000..64f69f1
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.go
@@ -0,0 +1,12 @@
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build riscv64
6
7package socket
8
9const (
10 sysRECVMMSG = 0xf3
11 sysSENDMMSG = 0x10d
12)
diff --git a/vendor/golang.org/x/net/internal/socket/sys_posix.go b/vendor/golang.org/x/net/internal/socket/sys_posix.go
index 24fbb69..22eae80 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_posix.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_posix.go
@@ -33,7 +33,7 @@ func marshalSockaddr(ip net.IP, port int, zone string) []byte {
33 if ip4 := ip.To4(); ip4 != nil { 33 if ip4 := ip.To4(); ip4 != nil {
34 b := make([]byte, sizeofSockaddrInet) 34 b := make([]byte, sizeofSockaddrInet)
35 switch runtime.GOOS { 35 switch runtime.GOOS {
36 case "android", "linux", "solaris", "windows": 36 case "android", "illumos", "linux", "solaris", "windows":
37 NativeEndian.PutUint16(b[:2], uint16(sysAF_INET)) 37 NativeEndian.PutUint16(b[:2], uint16(sysAF_INET))
38 default: 38 default:
39 b[0] = sizeofSockaddrInet 39 b[0] = sizeofSockaddrInet
@@ -46,7 +46,7 @@ func marshalSockaddr(ip net.IP, port int, zone string) []byte {
46 if ip6 := ip.To16(); ip6 != nil && ip.To4() == nil { 46 if ip6 := ip.To16(); ip6 != nil && ip.To4() == nil {
47 b := make([]byte, sizeofSockaddrInet6) 47 b := make([]byte, sizeofSockaddrInet6)
48 switch runtime.GOOS { 48 switch runtime.GOOS {
49 case "android", "linux", "solaris", "windows": 49 case "android", "illumos", "linux", "solaris", "windows":
50 NativeEndian.PutUint16(b[:2], uint16(sysAF_INET6)) 50 NativeEndian.PutUint16(b[:2], uint16(sysAF_INET6))
51 default: 51 default:
52 b[0] = sizeofSockaddrInet6 52 b[0] = sizeofSockaddrInet6
@@ -68,7 +68,7 @@ func parseInetAddr(b []byte, network string) (net.Addr, error) {
68 } 68 }
69 var af int 69 var af int
70 switch runtime.GOOS { 70 switch runtime.GOOS {
71 case "android", "linux", "solaris", "windows": 71 case "android", "illumos", "linux", "solaris", "windows":
72 af = int(NativeEndian.Uint16(b[:2])) 72 af = int(NativeEndian.Uint16(b[:2]))
73 default: 73 default:
74 af = int(b[1]) 74 af = int(b[1])
diff --git a/vendor/golang.org/x/net/internal/socket/sys_windows.go b/vendor/golang.org/x/net/internal/socket/sys_windows.go
index 924e327..d556a44 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_windows.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_windows.go
@@ -7,6 +7,8 @@ package socket
7import ( 7import (
8 "syscall" 8 "syscall"
9 "unsafe" 9 "unsafe"
10
11 "golang.org/x/sys/windows"
10) 12)
11 13
12func probeProtocolStack() int { 14func probeProtocolStack() int {
@@ -15,11 +17,11 @@ func probeProtocolStack() int {
15} 17}
16 18
17const ( 19const (
18 sysAF_UNSPEC = 0x0 20 sysAF_UNSPEC = windows.AF_UNSPEC
19 sysAF_INET = 0x2 21 sysAF_INET = windows.AF_INET
20 sysAF_INET6 = 0x17 22 sysAF_INET6 = windows.AF_INET6
21 23
22 sysSOCK_RAW = 0x3 24 sysSOCK_RAW = windows.SOCK_RAW
23) 25)
24 26
25type sockaddrInet struct { 27type sockaddrInet struct {
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go b/vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go
index 3a825f4..813385a 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go
@@ -6,14 +6,6 @@
6 6
7package socket 7package socket
8 8
9const (
10 sysAF_UNSPEC = 0x0
11 sysAF_INET = 0x2
12 sysAF_INET6 = 0x18
13
14 sysSOCK_RAW = 0x3
15)
16
17type iovec struct { 9type iovec struct {
18 Base *byte 10 Base *byte
19 Len uint64 11 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go b/vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go
index 26f8fef..083bda5 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_darwin.go 2// cgo -godefs defs_darwin.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1e
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go
index e2987f7..55c6c9f 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_darwin.go 2// cgo -godefs defs_darwin.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1e
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go b/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go
index 26f8fef..083bda5 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_darwin.go 2// cgo -godefs defs_darwin.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1e
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go b/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go
index e2987f7..55c6c9f 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_darwin.go 2// cgo -godefs defs_darwin.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1e
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go
index c582abd..8b7d161 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_dragonfly.go 2// cgo -godefs defs_dragonfly.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1c
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go
index 04a2488..3e71ff5 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go 2// cgo -godefs defs_freebsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1c
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go
index 35c7cb9..238d90d 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go 2// cgo -godefs defs_freebsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1c
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go
index 04a2488..3e71ff5 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go 2// cgo -godefs defs_freebsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1c
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go
new file mode 100644
index 0000000..238d90d
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go
@@ -0,0 +1,53 @@
1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go
3
4package socket
5
6type iovec struct {
7 Base *byte
8 Len uint64
9}
10
11type msghdr struct {
12 Name *byte
13 Namelen uint32
14 Pad_cgo_0 [4]byte
15 Iov *iovec
16 Iovlen int32
17 Pad_cgo_1 [4]byte
18 Control *byte
19 Controllen uint32
20 Flags int32
21}
22
23type cmsghdr struct {
24 Len uint32
25 Level int32
26 Type int32
27}
28
29type sockaddrInet struct {
30 Len uint8
31 Family uint8
32 Port uint16
33 Addr [4]byte /* in_addr */
34 Zero [8]int8
35}
36
37type sockaddrInet6 struct {
38 Len uint8
39 Family uint8
40 Port uint16
41 Flowinfo uint32
42 Addr [16]byte /* in6_addr */
43 Scope_id uint32
44}
45
46const (
47 sizeofIovec = 0x10
48 sizeofMsghdr = 0x30
49 sizeofCmsghdr = 0xc
50
51 sizeofSockaddrInet = 0x10
52 sizeofSockaddrInet6 = 0x1c
53)
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_386.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_386.go
index 4302069..72d8b25 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_386.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_386.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go
index 4302069..72d8b25 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go
index 4302069..72d8b25 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go
index 4302069..72d8b25 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go
new file mode 100644
index 0000000..dbff234
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go
@@ -0,0 +1,59 @@
1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go
3
4// +build riscv64
5
6package socket
7
8type iovec struct {
9 Base *byte
10 Len uint64
11}
12
13type msghdr struct {
14 Name *byte
15 Namelen uint32
16 Iov *iovec
17 Iovlen uint64
18 Control *byte
19 Controllen uint64
20 Flags int32
21 Pad_cgo_0 [4]byte
22}
23
24type mmsghdr struct {
25 Hdr msghdr
26 Len uint32
27 Pad_cgo_0 [4]byte
28}
29
30type cmsghdr struct {
31 Len uint64
32 Level int32
33 Type int32
34}
35
36type sockaddrInet struct {
37 Family uint16
38 Port uint16
39 Addr [4]byte /* in_addr */
40 X__pad [8]uint8
41}
42
43type sockaddrInet6 struct {
44 Family uint16
45 Port uint16
46 Flowinfo uint32
47 Addr [16]byte /* in6_addr */
48 Scope_id uint32
49}
50
51const (
52 sizeofIovec = 0x10
53 sizeofMsghdr = 0x38
54 sizeofMmsghdr = 0x40
55 sizeofCmsghdr = 0x10
56
57 sizeofSockaddrInet = 0x10
58 sizeofSockaddrInet6 = 0x1c
59)
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go b/vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go
index 1502f6c..3545319 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go
index db60491..bf8f47c 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_netbsd.go 2// cgo -godefs defs_netbsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x18
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go
index 2a1a799..a46eff9 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_netbsd.go 2// cgo -godefs defs_netbsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x18
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go
index db60491..bf8f47c 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_netbsd.go 2// cgo -godefs defs_netbsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x18
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm64.go b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm64.go
new file mode 100644
index 0000000..a46eff9
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm64.go
@@ -0,0 +1,60 @@
1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_netbsd.go
3
4package socket
5
6type iovec struct {
7 Base *byte
8 Len uint64
9}
10
11type msghdr struct {
12 Name *byte
13 Namelen uint32
14 Pad_cgo_0 [4]byte
15 Iov *iovec
16 Iovlen int32
17 Pad_cgo_1 [4]byte
18 Control *byte
19 Controllen uint32
20 Flags int32
21}
22
23type mmsghdr struct {
24 Hdr msghdr
25 Len uint32
26 Pad_cgo_0 [4]byte
27}
28
29type cmsghdr struct {
30 Len uint32
31 Level int32
32 Type int32
33}
34
35type sockaddrInet struct {
36 Len uint8
37 Family uint8
38 Port uint16
39 Addr [4]byte /* in_addr */
40 Zero [8]int8
41}
42
43type sockaddrInet6 struct {
44 Len uint8
45 Family uint8
46 Port uint16
47 Flowinfo uint32
48 Addr [16]byte /* in6_addr */
49 Scope_id uint32
50}
51
52const (
53 sizeofIovec = 0x10
54 sizeofMsghdr = 0x30
55 sizeofMmsghdr = 0x40
56 sizeofCmsghdr = 0xc
57
58 sizeofSockaddrInet = 0x10
59 sizeofSockaddrInet6 = 0x1c
60)
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go
index 1c83636..73655a1 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_openbsd.go 2// cgo -godefs defs_openbsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x18
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go
index a6c0bf4..0a4de80 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_openbsd.go 2// cgo -godefs defs_openbsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x18
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go
index 1c83636..73655a1 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_openbsd.go 2// cgo -godefs defs_openbsd.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x18
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct { 6type iovec struct {
15 Base *byte 7 Base *byte
16 Len uint32 8 Len uint32
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm64.go b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm64.go
new file mode 100644
index 0000000..0a4de80
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm64.go
@@ -0,0 +1,53 @@
1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_openbsd.go
3
4package socket
5
6type iovec struct {
7 Base *byte
8 Len uint64
9}
10
11type msghdr struct {
12 Name *byte
13 Namelen uint32
14 Pad_cgo_0 [4]byte
15 Iov *iovec
16 Iovlen uint32
17 Pad_cgo_1 [4]byte
18 Control *byte
19 Controllen uint32
20 Flags int32
21}
22
23type cmsghdr struct {
24 Len uint32
25 Level int32
26 Type int32
27}
28
29type sockaddrInet struct {
30 Len uint8
31 Family uint8
32 Port uint16
33 Addr [4]byte /* in_addr */
34 Zero [8]int8
35}
36
37type sockaddrInet6 struct {
38 Len uint8
39 Family uint8
40 Port uint16
41 Flowinfo uint32
42 Addr [16]byte /* in6_addr */
43 Scope_id uint32
44}
45
46const (
47 sizeofIovec = 0x10
48 sizeofMsghdr = 0x30
49 sizeofCmsghdr = 0xc
50
51 sizeofSockaddrInet = 0x10
52 sizeofSockaddrInet6 = 0x1c
53)
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go b/vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go
index 327c632..353cd5f 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go
@@ -1,16 +1,8 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_solaris.go 2// cgo -godefs defs_solaris.go
3 3
4package socket 4package socket
5 5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0x1a
10
11 sysSOCK_RAW = 0x4
12)
13
14type iovec struct { 6type iovec struct {
15 Base *int8 7 Base *int8
16 Len uint64 8 Len uint64
diff --git a/vendor/golang.org/x/net/ipv4/zsys_darwin.go b/vendor/golang.org/x/net/ipv4/zsys_darwin.go
index c07cc88..e05a251 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_darwin.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_darwin.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_darwin.go 2// cgo -godefs defs_darwin.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_dragonfly.go b/vendor/golang.org/x/net/ipv4/zsys_dragonfly.go
index c4365e9..6d65e9f 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_dragonfly.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_dragonfly.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_dragonfly.go 2// cgo -godefs defs_dragonfly.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go b/vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go
index 8c4aec9..136e2b8 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go 2// cgo -godefs defs_freebsd.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go b/vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go
index 4b10b7c..4f730f1 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go 2// cgo -godefs defs_freebsd.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go b/vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go
index 4b10b7c..4f730f1 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_freebsd.go 2// cgo -godefs defs_freebsd.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_386.go b/vendor/golang.org/x/net/ipv4/zsys_linux_386.go
index c0260f0..43ef8e5 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_386.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_386.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go b/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go
index c0260f0..43ef8e5 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_arm.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go
index c0260f0..43ef8e5 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mips.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go b/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go
index c0260f0..43ef8e5 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go
index f65bd9a..fa1b6bc 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go b/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go
new file mode 100644
index 0000000..0c0d480
--- /dev/null
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go
@@ -0,0 +1,151 @@
1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go
3
4// +build riscv64
5
6package ipv4
7
8const (
9 sysIP_TOS = 0x1
10 sysIP_TTL = 0x2
11 sysIP_HDRINCL = 0x3
12 sysIP_OPTIONS = 0x4
13 sysIP_ROUTER_ALERT = 0x5
14 sysIP_RECVOPTS = 0x6
15 sysIP_RETOPTS = 0x7
16 sysIP_PKTINFO = 0x8
17 sysIP_PKTOPTIONS = 0x9
18 sysIP_MTU_DISCOVER = 0xa
19 sysIP_RECVERR = 0xb
20 sysIP_RECVTTL = 0xc
21 sysIP_RECVTOS = 0xd
22 sysIP_MTU = 0xe
23 sysIP_FREEBIND = 0xf
24 sysIP_TRANSPARENT = 0x13
25 sysIP_RECVRETOPTS = 0x7
26 sysIP_ORIGDSTADDR = 0x14
27 sysIP_RECVORIGDSTADDR = 0x14
28 sysIP_MINTTL = 0x15
29 sysIP_NODEFRAG = 0x16
30 sysIP_UNICAST_IF = 0x32
31
32 sysIP_MULTICAST_IF = 0x20
33 sysIP_MULTICAST_TTL = 0x21
34 sysIP_MULTICAST_LOOP = 0x22
35 sysIP_ADD_MEMBERSHIP = 0x23
36 sysIP_DROP_MEMBERSHIP = 0x24
37 sysIP_UNBLOCK_SOURCE = 0x25
38 sysIP_BLOCK_SOURCE = 0x26
39 sysIP_ADD_SOURCE_MEMBERSHIP = 0x27
40 sysIP_DROP_SOURCE_MEMBERSHIP = 0x28
41 sysIP_MSFILTER = 0x29
42 sysMCAST_JOIN_GROUP = 0x2a
43 sysMCAST_LEAVE_GROUP = 0x2d
44 sysMCAST_JOIN_SOURCE_GROUP = 0x2e
45 sysMCAST_LEAVE_SOURCE_GROUP = 0x2f
46 sysMCAST_BLOCK_SOURCE = 0x2b
47 sysMCAST_UNBLOCK_SOURCE = 0x2c
48 sysMCAST_MSFILTER = 0x30
49 sysIP_MULTICAST_ALL = 0x31
50
51 sysICMP_FILTER = 0x1
52
53 sysSO_EE_ORIGIN_NONE = 0x0
54 sysSO_EE_ORIGIN_LOCAL = 0x1
55 sysSO_EE_ORIGIN_ICMP = 0x2
56 sysSO_EE_ORIGIN_ICMP6 = 0x3
57 sysSO_EE_ORIGIN_TXSTATUS = 0x4
58 sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
59
60 sysSOL_SOCKET = 0x1
61 sysSO_ATTACH_FILTER = 0x1a
62
63 sizeofKernelSockaddrStorage = 0x80
64 sizeofSockaddrInet = 0x10
65 sizeofInetPktinfo = 0xc
66 sizeofSockExtendedErr = 0x10
67
68 sizeofIPMreq = 0x8
69 sizeofIPMreqn = 0xc
70 sizeofIPMreqSource = 0xc
71 sizeofGroupReq = 0x88
72 sizeofGroupSourceReq = 0x108
73
74 sizeofICMPFilter = 0x4
75
76 sizeofSockFprog = 0x10
77)
78
79type kernelSockaddrStorage struct {
80 Family uint16
81 X__data [126]int8
82}
83
84type sockaddrInet struct {
85 Family uint16
86 Port uint16
87 Addr [4]byte /* in_addr */
88 X__pad [8]uint8
89}
90
91type inetPktinfo struct {
92 Ifindex int32
93 Spec_dst [4]byte /* in_addr */
94 Addr [4]byte /* in_addr */
95}
96
97type sockExtendedErr struct {
98 Errno uint32
99 Origin uint8
100 Type uint8
101 Code uint8
102 Pad uint8
103 Info uint32
104 Data uint32
105}
106
107type ipMreq struct {
108 Multiaddr [4]byte /* in_addr */
109 Interface [4]byte /* in_addr */
110}
111
112type ipMreqn struct {
113 Multiaddr [4]byte /* in_addr */
114 Address [4]byte /* in_addr */
115 Ifindex int32
116}
117
118type ipMreqSource struct {
119 Multiaddr uint32
120 Interface uint32
121 Sourceaddr uint32
122}
123
124type groupReq struct {
125 Interface uint32
126 Pad_cgo_0 [4]byte
127 Group kernelSockaddrStorage
128}
129
130type groupSourceReq struct {
131 Interface uint32
132 Pad_cgo_0 [4]byte
133 Group kernelSockaddrStorage
134 Source kernelSockaddrStorage
135}
136
137type icmpFilter struct {
138 Data uint32
139}
140
141type sockFProg struct {
142 Len uint16
143 Filter *sockFilter
144}
145
146type sockFilter struct {
147 Code uint16
148 Jt uint8
149 Jf uint8
150 K uint32
151}
diff --git a/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go b/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go
index 9c967ea..ee8204d 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go 2// cgo -godefs defs_linux.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_netbsd.go b/vendor/golang.org/x/net/ipv4/zsys_netbsd.go
index fd3624d..8cfc648 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_netbsd.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_netbsd.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_netbsd.go 2// cgo -godefs defs_netbsd.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_openbsd.go b/vendor/golang.org/x/net/ipv4/zsys_openbsd.go
index 12f36be..37629cb 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_openbsd.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_openbsd.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_openbsd.go 2// cgo -godefs defs_openbsd.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/net/ipv4/zsys_solaris.go b/vendor/golang.org/x/net/ipv4/zsys_solaris.go
index 0a3875c..cb80a30 100644
--- a/vendor/golang.org/x/net/ipv4/zsys_solaris.go
+++ b/vendor/golang.org/x/net/ipv4/zsys_solaris.go
@@ -1,4 +1,4 @@
1// Created by cgo -godefs - DO NOT EDIT 1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_solaris.go 2// cgo -godefs defs_solaris.go
3 3
4package ipv4 4package ipv4
diff --git a/vendor/golang.org/x/sys/unix/affinity_linux.go b/vendor/golang.org/x/sys/unix/affinity_linux.go
index 72afe33..6e5c81a 100644
--- a/vendor/golang.org/x/sys/unix/affinity_linux.go
+++ b/vendor/golang.org/x/sys/unix/affinity_linux.go
@@ -7,6 +7,7 @@
7package unix 7package unix
8 8
9import ( 9import (
10 "math/bits"
10 "unsafe" 11 "unsafe"
11) 12)
12 13
@@ -79,46 +80,7 @@ func (s *CPUSet) IsSet(cpu int) bool {
79func (s *CPUSet) Count() int { 80func (s *CPUSet) Count() int {
80 c := 0 81 c := 0
81 for _, b := range s { 82 for _, b := range s {
82 c += onesCount64(uint64(b)) 83 c += bits.OnesCount64(uint64(b))
83 } 84 }
84 return c 85 return c
85} 86}
86
87// onesCount64 is a copy of Go 1.9's math/bits.OnesCount64.
88// Once this package can require Go 1.9, we can delete this
89// and update the caller to use bits.OnesCount64.
90func onesCount64(x uint64) int {
91 const m0 = 0x5555555555555555 // 01010101 ...
92 const m1 = 0x3333333333333333 // 00110011 ...
93 const m2 = 0x0f0f0f0f0f0f0f0f // 00001111 ...
94 const m3 = 0x00ff00ff00ff00ff // etc.
95 const m4 = 0x0000ffff0000ffff
96
97 // Implementation: Parallel summing of adjacent bits.
98 // See "Hacker's Delight", Chap. 5: Counting Bits.
99 // The following pattern shows the general approach:
100 //
101 // x = x>>1&(m0&m) + x&(m0&m)
102 // x = x>>2&(m1&m) + x&(m1&m)
103 // x = x>>4&(m2&m) + x&(m2&m)
104 // x = x>>8&(m3&m) + x&(m3&m)
105 // x = x>>16&(m4&m) + x&(m4&m)
106 // x = x>>32&(m5&m) + x&(m5&m)
107 // return int(x)
108 //
109 // Masking (& operations) can be left away when there's no
110 // danger that a field's sum will carry over into the next
111 // field: Since the result cannot be > 64, 8 bits is enough
112 // and we can ignore the masks for the shifts by 8 and up.
113 // Per "Hacker's Delight", the first line can be simplified
114 // more, but it saves at best one instruction, so we leave
115 // it alone for clarity.
116 const m = 1<<64 - 1
117 x = x>>1&(m0&m) + x&(m0&m)
118 x = x>>2&(m1&m) + x&(m1&m)
119 x = (x>>4 + x) & (m2 & m)
120 x += x >> 8
121 x += x >> 16
122 x += x >> 32
123 return int(x) & (1<<7 - 1)
124}
diff --git a/vendor/golang.org/x/sys/unix/dirent.go b/vendor/golang.org/x/sys/unix/dirent.go
index 4407c50..304016b 100644
--- a/vendor/golang.org/x/sys/unix/dirent.go
+++ b/vendor/golang.org/x/sys/unix/dirent.go
@@ -2,16 +2,101 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7package unix 7package unix
8 8
9import "syscall" 9import "unsafe"
10
11// readInt returns the size-bytes unsigned integer in native byte order at offset off.
12func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
13 if len(b) < int(off+size) {
14 return 0, false
15 }
16 if isBigEndian {
17 return readIntBE(b[off:], size), true
18 }
19 return readIntLE(b[off:], size), true
20}
21
22func readIntBE(b []byte, size uintptr) uint64 {
23 switch size {
24 case 1:
25 return uint64(b[0])
26 case 2:
27 _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
28 return uint64(b[1]) | uint64(b[0])<<8
29 case 4:
30 _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
31 return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24
32 case 8:
33 _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
34 return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 |
35 uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56
36 default:
37 panic("syscall: readInt with unsupported size")
38 }
39}
40
41func readIntLE(b []byte, size uintptr) uint64 {
42 switch size {
43 case 1:
44 return uint64(b[0])
45 case 2:
46 _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
47 return uint64(b[0]) | uint64(b[1])<<8
48 case 4:
49 _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
50 return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24
51 case 8:
52 _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
53 return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 |
54 uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
55 default:
56 panic("syscall: readInt with unsupported size")
57 }
58}
10 59
11// ParseDirent parses up to max directory entries in buf, 60// ParseDirent parses up to max directory entries in buf,
12// appending the names to names. It returns the number of 61// appending the names to names. It returns the number of
13// bytes consumed from buf, the number of entries added 62// bytes consumed from buf, the number of entries added
14// to names, and the new names slice. 63// to names, and the new names slice.
15func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { 64func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
16 return syscall.ParseDirent(buf, max, names) 65 origlen := len(buf)
66 count = 0
67 for max != 0 && len(buf) > 0 {
68 reclen, ok := direntReclen(buf)
69 if !ok || reclen > uint64(len(buf)) {
70 return origlen, count, names
71 }
72 rec := buf[:reclen]
73 buf = buf[reclen:]
74 ino, ok := direntIno(rec)
75 if !ok {
76 break
77 }
78 if ino == 0 { // File absent in directory.
79 continue
80 }
81 const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
82 namlen, ok := direntNamlen(rec)
83 if !ok || namoff+namlen > uint64(len(rec)) {
84 break
85 }
86 name := rec[namoff : namoff+namlen]
87 for i, c := range name {
88 if c == 0 {
89 name = name[:i]
90 break
91 }
92 }
93 // Check for useless names before allocating a string.
94 if string(name) == "." || string(name) == ".." {
95 continue
96 }
97 max--
98 count++
99 names = append(names, string(name))
100 }
101 return origlen - len(buf), count, names
17} 102}
diff --git a/vendor/golang.org/x/sys/unix/endian_little.go b/vendor/golang.org/x/sys/unix/endian_little.go
index 085df2d..bcdb5d3 100644
--- a/vendor/golang.org/x/sys/unix/endian_little.go
+++ b/vendor/golang.org/x/sys/unix/endian_little.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4// 4//
5// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 5// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64
6 6
7package unix 7package unix
8 8
diff --git a/vendor/golang.org/x/sys/unix/ioctl.go b/vendor/golang.org/x/sys/unix/ioctl.go
index f121a8d..3559e5d 100644
--- a/vendor/golang.org/x/sys/unix/ioctl.go
+++ b/vendor/golang.org/x/sys/unix/ioctl.go
@@ -6,7 +6,19 @@
6 6
7package unix 7package unix
8 8
9import "runtime" 9import (
10 "runtime"
11 "unsafe"
12)
13
14// ioctl itself should not be exposed directly, but additional get/set
15// functions for specific types are permissible.
16
17// IoctlSetInt performs an ioctl operation which sets an integer value
18// on fd, using the specified request number.
19func IoctlSetInt(fd int, req uint, value int) error {
20 return ioctl(fd, req, uintptr(value))
21}
10 22
11// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument. 23// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
12// 24//
@@ -14,7 +26,7 @@ import "runtime"
14func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 26func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
15 // TODO: if we get the chance, remove the req parameter and 27 // TODO: if we get the chance, remove the req parameter and
16 // hardcode TIOCSWINSZ. 28 // hardcode TIOCSWINSZ.
17 err := ioctlSetWinsize(fd, req, value) 29 err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
18 runtime.KeepAlive(value) 30 runtime.KeepAlive(value)
19 return err 31 return err
20} 32}
@@ -24,7 +36,30 @@ func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
24// The req value will usually be TCSETA or TIOCSETA. 36// The req value will usually be TCSETA or TIOCSETA.
25func IoctlSetTermios(fd int, req uint, value *Termios) error { 37func IoctlSetTermios(fd int, req uint, value *Termios) error {
26 // TODO: if we get the chance, remove the req parameter. 38 // TODO: if we get the chance, remove the req parameter.
27 err := ioctlSetTermios(fd, req, value) 39 err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
28 runtime.KeepAlive(value) 40 runtime.KeepAlive(value)
29 return err 41 return err
30} 42}
43
44// IoctlGetInt performs an ioctl operation which gets an integer value
45// from fd, using the specified request number.
46//
47// A few ioctl requests use the return value as an output parameter;
48// for those, IoctlRetInt should be used instead of this function.
49func IoctlGetInt(fd int, req uint) (int, error) {
50 var value int
51 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
52 return value, err
53}
54
55func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
56 var value Winsize
57 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
58 return &value, err
59}
60
61func IoctlGetTermios(fd int, req uint) (*Termios, error) {
62 var value Termios
63 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
64 return &value, err
65}
diff --git a/vendor/golang.org/x/sys/unix/mkall.sh b/vendor/golang.org/x/sys/unix/mkall.sh
index 80d0070..5a22eca 100644
--- a/vendor/golang.org/x/sys/unix/mkall.sh
+++ b/vendor/golang.org/x/sys/unix/mkall.sh
@@ -105,25 +105,25 @@ dragonfly_amd64)
105freebsd_386) 105freebsd_386)
106 mkerrors="$mkerrors -m32" 106 mkerrors="$mkerrors -m32"
107 mksyscall="go run mksyscall.go -l32" 107 mksyscall="go run mksyscall.go -l32"
108 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'" 108 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
109 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 109 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
110 ;; 110 ;;
111freebsd_amd64) 111freebsd_amd64)
112 mkerrors="$mkerrors -m64" 112 mkerrors="$mkerrors -m64"
113 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'" 113 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
114 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 114 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
115 ;; 115 ;;
116freebsd_arm) 116freebsd_arm)
117 mkerrors="$mkerrors" 117 mkerrors="$mkerrors"
118 mksyscall="go run mksyscall.go -l32 -arm" 118 mksyscall="go run mksyscall.go -l32 -arm"
119 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'" 119 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
120 # Let the type of C char be signed for making the bare syscall 120 # Let the type of C char be signed for making the bare syscall
121 # API consistent across platforms. 121 # API consistent across platforms.
122 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 122 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
123 ;; 123 ;;
124freebsd_arm64) 124freebsd_arm64)
125 mkerrors="$mkerrors -m64" 125 mkerrors="$mkerrors -m64"
126 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'" 126 mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
127 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 127 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
128 ;; 128 ;;
129netbsd_386) 129netbsd_386)
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh
index 4c91159..85cfbd0 100644
--- a/vendor/golang.org/x/sys/unix/mkerrors.sh
+++ b/vendor/golang.org/x/sys/unix/mkerrors.sh
@@ -183,6 +183,7 @@ struct ltchars {
183#include <sys/socket.h> 183#include <sys/socket.h>
184#include <sys/xattr.h> 184#include <sys/xattr.h>
185#include <linux/bpf.h> 185#include <linux/bpf.h>
186#include <linux/capability.h>
186#include <linux/errqueue.h> 187#include <linux/errqueue.h>
187#include <linux/if.h> 188#include <linux/if.h>
188#include <linux/if_alg.h> 189#include <linux/if_alg.h>
@@ -198,12 +199,14 @@ struct ltchars {
198#include <linux/fs.h> 199#include <linux/fs.h>
199#include <linux/kexec.h> 200#include <linux/kexec.h>
200#include <linux/keyctl.h> 201#include <linux/keyctl.h>
202#include <linux/loop.h>
201#include <linux/magic.h> 203#include <linux/magic.h>
202#include <linux/memfd.h> 204#include <linux/memfd.h>
203#include <linux/module.h> 205#include <linux/module.h>
204#include <linux/netfilter/nfnetlink.h> 206#include <linux/netfilter/nfnetlink.h>
205#include <linux/netlink.h> 207#include <linux/netlink.h>
206#include <linux/net_namespace.h> 208#include <linux/net_namespace.h>
209#include <linux/nsfs.h>
207#include <linux/perf_event.h> 210#include <linux/perf_event.h>
208#include <linux/random.h> 211#include <linux/random.h>
209#include <linux/reboot.h> 212#include <linux/reboot.h>
@@ -434,6 +437,8 @@ ccflags="$@"
434 $2 ~ /^TC[IO](ON|OFF)$/ || 437 $2 ~ /^TC[IO](ON|OFF)$/ ||
435 $2 ~ /^IN_/ || 438 $2 ~ /^IN_/ ||
436 $2 ~ /^LOCK_(SH|EX|NB|UN)$/ || 439 $2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
440 $2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
441 $2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
437 $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ || 442 $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
438 $2 ~ /^TP_STATUS_/ || 443 $2 ~ /^TP_STATUS_/ ||
439 $2 ~ /^FALLOC_/ || 444 $2 ~ /^FALLOC_/ ||
@@ -447,6 +452,7 @@ ccflags="$@"
447 $2 ~ /^SYSCTL_VERS/ || 452 $2 ~ /^SYSCTL_VERS/ ||
448 $2 !~ "MNT_BITS" && 453 $2 !~ "MNT_BITS" &&
449 $2 ~ /^(MS|MNT|UMOUNT)_/ || 454 $2 ~ /^(MS|MNT|UMOUNT)_/ ||
455 $2 ~ /^NS_GET_/ ||
450 $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || 456 $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
451 $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ || 457 $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
452 $2 ~ /^KEXEC_/ || 458 $2 ~ /^KEXEC_/ ||
diff --git a/vendor/golang.org/x/sys/unix/mkpost.go b/vendor/golang.org/x/sys/unix/mkpost.go
index 4d5b531..eb43320 100644
--- a/vendor/golang.org/x/sys/unix/mkpost.go
+++ b/vendor/golang.org/x/sys/unix/mkpost.go
@@ -50,8 +50,8 @@ func main() {
50 } 50 }
51 51
52 // Intentionally export __val fields in Fsid and Sigset_t 52 // Intentionally export __val fields in Fsid and Sigset_t
53 valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`) 53 valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__(bits|val)(\s+\S+\s+)}`)
54 b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}")) 54 b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$4}"))
55 55
56 // Intentionally export __fds_bits field in FdSet 56 // Intentionally export __fds_bits field in FdSet
57 fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`) 57 fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`)
diff --git a/vendor/golang.org/x/sys/unix/mksysnum.go b/vendor/golang.org/x/sys/unix/mksysnum.go
index 07f8960..baa6ecd 100644
--- a/vendor/golang.org/x/sys/unix/mksysnum.go
+++ b/vendor/golang.org/x/sys/unix/mksysnum.go
@@ -139,7 +139,7 @@ func main() {
139 text += format(name, num, proto) 139 text += format(name, num, proto)
140 } 140 }
141 case "freebsd": 141 case "freebsd":
142 if t.Match(`^([0-9]+)\s+\S+\s+(?:NO)?STD\s+({ \S+\s+(\w+).*)$`) { 142 if t.Match(`^([0-9]+)\s+\S+\s+(?:(?:NO)?STD|COMPAT10)\s+({ \S+\s+(\w+).*)$`) {
143 num, proto := t.sub[1], t.sub[2] 143 num, proto := t.sub[1], t.sub[2]
144 name := fmt.Sprintf("SYS_%s", t.sub[3]) 144 name := fmt.Sprintf("SYS_%s", t.sub[3])
145 text += format(name, num, proto) 145 text += format(name, num, proto)
diff --git a/vendor/golang.org/x/sys/unix/readdirent_getdents.go b/vendor/golang.org/x/sys/unix/readdirent_getdents.go
new file mode 100644
index 0000000..3a90aa6
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/readdirent_getdents.go
@@ -0,0 +1,12 @@
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build aix dragonfly freebsd linux netbsd openbsd
6
7package unix
8
9// ReadDirent reads directory entries from fd and writes them into buf.
10func ReadDirent(fd int, buf []byte) (n int, err error) {
11 return Getdents(fd, buf)
12}
diff --git a/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go b/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
new file mode 100644
index 0000000..5fdae40
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
@@ -0,0 +1,19 @@
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin
6
7package unix
8
9import "unsafe"
10
11// ReadDirent reads directory entries from fd and writes them into buf.
12func ReadDirent(fd int, buf []byte) (n int, err error) {
13 // Final argument is (basep *uintptr) and the syscall doesn't take nil.
14 // 64 bits should be enough. (32 bits isn't even on 386). Since the
15 // actual system call is getdirentries64, 64 is a good guess.
16 // TODO(rsc): Can we use a single global basep for all calls?
17 var base = (*uintptr)(unsafe.Pointer(new(uint64)))
18 return Getdirentries(fd, buf, base)
19}
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go
index 45e12fb..9ad8a0d 100644
--- a/vendor/golang.org/x/sys/unix/syscall_aix.go
+++ b/vendor/golang.org/x/sys/unix/syscall_aix.go
@@ -280,8 +280,24 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
280 return -1, ENOSYS 280 return -1, ENOSYS
281} 281}
282 282
283func direntIno(buf []byte) (uint64, bool) {
284 return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
285}
286
287func direntReclen(buf []byte) (uint64, bool) {
288 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
289}
290
291func direntNamlen(buf []byte) (uint64, bool) {
292 reclen, ok := direntReclen(buf)
293 if !ok {
294 return 0, false
295 }
296 return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
297}
298
283//sys getdirent(fd int, buf []byte) (n int, err error) 299//sys getdirent(fd int, buf []byte) (n int, err error)
284func ReadDirent(fd int, buf []byte) (n int, err error) { 300func Getdents(fd int, buf []byte) (n int, err error) {
285 return getdirent(fd, buf) 301 return getdirent(fd, buf)
286} 302}
287 303
@@ -334,49 +350,12 @@ func (w WaitStatus) Signal() Signal {
334 350
335func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 } 351func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
336 352
337func (w WaitStatus) CoreDump() bool { return w&0x200 != 0 } 353func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 }
338 354
339func (w WaitStatus) TrapCause() int { return -1 } 355func (w WaitStatus) TrapCause() int { return -1 }
340 356
341//sys ioctl(fd int, req uint, arg uintptr) (err error) 357//sys ioctl(fd int, req uint, arg uintptr) (err error)
342 358
343// ioctl itself should not be exposed directly, but additional get/set
344// functions for specific types are permissible.
345
346// IoctlSetInt performs an ioctl operation which sets an integer value
347// on fd, using the specified request number.
348func IoctlSetInt(fd int, req uint, value int) error {
349 return ioctl(fd, req, uintptr(value))
350}
351
352func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
353 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
354}
355
356func ioctlSetTermios(fd int, req uint, value *Termios) error {
357 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
358}
359
360// IoctlGetInt performs an ioctl operation which gets an integer value
361// from fd, using the specified request number.
362func IoctlGetInt(fd int, req uint) (int, error) {
363 var value int
364 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
365 return value, err
366}
367
368func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
369 var value Winsize
370 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
371 return &value, err
372}
373
374func IoctlGetTermios(fd int, req uint) (*Termios, error) {
375 var value Termios
376 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
377 return &value, err
378}
379
380// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX 359// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
381// There is no way to create a custom fcntl and to keep //sys fcntl easily, 360// There is no way to create a custom fcntl and to keep //sys fcntl easily,
382// Therefore, the programmer must call dup2 instead of fcntl in this case. 361// Therefore, the programmer must call dup2 instead of fcntl in this case.
diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go
index 33c8b5f..97a8eef 100644
--- a/vendor/golang.org/x/sys/unix/syscall_bsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go
@@ -63,15 +63,6 @@ func Setgroups(gids []int) (err error) {
63 return setgroups(len(a), &a[0]) 63 return setgroups(len(a), &a[0])
64} 64}
65 65
66func ReadDirent(fd int, buf []byte) (n int, err error) {
67 // Final argument is (basep *uintptr) and the syscall doesn't take nil.
68 // 64 bits should be enough. (32 bits isn't even on 386). Since the
69 // actual system call is getdirentries64, 64 is a good guess.
70 // TODO(rsc): Can we use a single global basep for all calls?
71 var base = (*uintptr)(unsafe.Pointer(new(uint64)))
72 return Getdirentries(fd, buf, base)
73}
74
75// Wait status is 7 bits at bottom, either 0 (exited), 66// Wait status is 7 bits at bottom, either 0 (exited),
76// 0x7F (stopped), or a signal number that caused an exit. 67// 0x7F (stopped), or a signal number that caused an exit.
77// The 0x80 bit is whether there was a core dump. 68// The 0x80 bit is whether there was a core dump.
@@ -86,6 +77,7 @@ const (
86 shift = 8 77 shift = 8
87 78
88 exited = 0 79 exited = 0
80 killed = 9
89 stopped = 0x7F 81 stopped = 0x7F
90) 82)
91 83
@@ -112,6 +104,8 @@ func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
112 104
113func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP } 105func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
114 106
107func (w WaitStatus) Killed() bool { return w&mask == killed && syscall.Signal(w>>shift) != SIGKILL }
108
115func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP } 109func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
116 110
117func (w WaitStatus) StopSignal() syscall.Signal { 111func (w WaitStatus) StopSignal() syscall.Signal {
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go
index 2120091..f26a19e 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go
@@ -77,7 +77,18 @@ func nametomib(name string) (mib []_C_int, err error) {
77 return buf[0 : n/siz], nil 77 return buf[0 : n/siz], nil
78} 78}
79 79
80//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) 80func direntIno(buf []byte) (uint64, bool) {
81 return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
82}
83
84func direntReclen(buf []byte) (uint64, bool) {
85 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
86}
87
88func direntNamlen(buf []byte) (uint64, bool) {
89 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
90}
91
81func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } 92func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
82func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } 93func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
83 94
@@ -328,43 +339,6 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
328 339
329//sys ioctl(fd int, req uint, arg uintptr) (err error) 340//sys ioctl(fd int, req uint, arg uintptr) (err error)
330 341
331// ioctl itself should not be exposed directly, but additional get/set
332// functions for specific types are permissible.
333
334// IoctlSetInt performs an ioctl operation which sets an integer value
335// on fd, using the specified request number.
336func IoctlSetInt(fd int, req uint, value int) error {
337 return ioctl(fd, req, uintptr(value))
338}
339
340func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
341 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
342}
343
344func ioctlSetTermios(fd int, req uint, value *Termios) error {
345 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
346}
347
348// IoctlGetInt performs an ioctl operation which gets an integer value
349// from fd, using the specified request number.
350func IoctlGetInt(fd int, req uint) (int, error) {
351 var value int
352 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
353 return value, err
354}
355
356func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
357 var value Winsize
358 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
359 return &value, err
360}
361
362func IoctlGetTermios(fd int, req uint) (*Termios, error) {
363 var value Termios
364 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
365 return &value, err
366}
367
368func Uname(uname *Utsname) error { 342func Uname(uname *Utsname) error {
369 mib := []_C_int{CTL_KERN, KERN_OSTYPE} 343 mib := []_C_int{CTL_KERN, KERN_OSTYPE}
370 n := unsafe.Sizeof(uname.Sysname) 344 n := unsafe.Sizeof(uname.Sysname)
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go
index 489726f..cd8be18 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go
@@ -10,6 +10,8 @@ import (
10 "syscall" 10 "syscall"
11) 11)
12 12
13//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
14
13func setTimespec(sec, nsec int64) Timespec { 15func setTimespec(sec, nsec int64) Timespec {
14 return Timespec{Sec: int32(sec), Nsec: int32(nsec)} 16 return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
15} 17}
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 914b89b..d0d0724 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
@@ -10,6 +10,8 @@ import (
10 "syscall" 10 "syscall"
11) 11)
12 12
13//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
14
13func setTimespec(sec, nsec int64) Timespec { 15func setTimespec(sec, nsec int64) Timespec {
14 return Timespec{Sec: sec, Nsec: nsec} 16 return Timespec{Sec: sec, Nsec: nsec}
15} 17}
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
index 4a284cf..01e8a38 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
@@ -8,6 +8,10 @@ import (
8 "syscall" 8 "syscall"
9) 9)
10 10
11func ptrace(request int, pid int, addr uintptr, data uintptr) error {
12 return ENOTSUP
13}
14
11func setTimespec(sec, nsec int64) Timespec { 15func setTimespec(sec, nsec int64) Timespec {
12 return Timespec{Sec: int32(sec), Nsec: int32(nsec)} 16 return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
13} 17}
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 52dcd88..e674f81 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
@@ -10,6 +10,10 @@ import (
10 "syscall" 10 "syscall"
11) 11)
12 12
13func ptrace(request int, pid int, addr uintptr, data uintptr) error {
14 return ENOTSUP
15}
16
13func setTimespec(sec, nsec int64) Timespec { 17func setTimespec(sec, nsec int64) Timespec {
14 return Timespec{Sec: sec, Nsec: nsec} 18 return Timespec{Sec: sec, Nsec: nsec}
15} 19}
diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
index 962eee3..474181c 100644
--- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
+++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
@@ -57,6 +57,22 @@ func nametomib(name string) (mib []_C_int, err error) {
57 return buf[0 : n/siz], nil 57 return buf[0 : n/siz], nil
58} 58}
59 59
60func direntIno(buf []byte) (uint64, bool) {
61 return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
62}
63
64func direntReclen(buf []byte) (uint64, bool) {
65 namlen, ok := direntNamlen(buf)
66 if !ok {
67 return 0, false
68 }
69 return (16 + namlen + 1 + 7) &^ 7, true
70}
71
72func direntNamlen(buf []byte) (uint64, bool) {
73 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
74}
75
60//sysnb pipe() (r int, w int, err error) 76//sysnb pipe() (r int, w int, err error)
61 77
62func Pipe(p []int) (err error) { 78func Pipe(p []int) (err error) {
@@ -134,43 +150,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
134 150
135//sys ioctl(fd int, req uint, arg uintptr) (err error) 151//sys ioctl(fd int, req uint, arg uintptr) (err error)
136 152
137// ioctl itself should not be exposed directly, but additional get/set
138// functions for specific types are permissible.
139
140// IoctlSetInt performs an ioctl operation which sets an integer value
141// on fd, using the specified request number.
142func IoctlSetInt(fd int, req uint, value int) error {
143 return ioctl(fd, req, uintptr(value))
144}
145
146func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
147 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
148}
149
150func ioctlSetTermios(fd int, req uint, value *Termios) error {
151 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
152}
153
154// IoctlGetInt performs an ioctl operation which gets an integer value
155// from fd, using the specified request number.
156func IoctlGetInt(fd int, req uint) (int, error) {
157 var value int
158 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
159 return value, err
160}
161
162func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
163 var value Winsize
164 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
165 return &value, err
166}
167
168func IoctlGetTermios(fd int, req uint) (*Termios, error) {
169 var value Termios
170 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
171 return &value, err
172}
173
174func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error { 153func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error {
175 err := sysctl(mib, old, oldlen, nil, 0) 154 err := sysctl(mib, old, oldlen, nil, 0)
176 if err != nil { 155 if err != nil {
@@ -269,6 +248,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
269//sys Fstatfs(fd int, stat *Statfs_t) (err error) 248//sys Fstatfs(fd int, stat *Statfs_t) (err error)
270//sys Fsync(fd int) (err error) 249//sys Fsync(fd int) (err error)
271//sys Ftruncate(fd int, length int64) (err error) 250//sys Ftruncate(fd int, length int64) (err error)
251//sys Getdents(fd int, buf []byte) (n int, err error)
272//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) 252//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
273//sys Getdtablesize() (size int) 253//sys Getdtablesize() (size int)
274//sysnb Getegid() (egid int) 254//sysnb Getegid() (egid int)
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
index f135812..d95c443 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
@@ -82,6 +82,18 @@ func nametomib(name string) (mib []_C_int, err error) {
82 return buf[0 : n/siz], nil 82 return buf[0 : n/siz], nil
83} 83}
84 84
85func direntIno(buf []byte) (uint64, bool) {
86 return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
87}
88
89func direntReclen(buf []byte) (uint64, bool) {
90 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
91}
92
93func direntNamlen(buf []byte) (uint64, bool) {
94 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
95}
96
85func Pipe(p []int) (err error) { 97func Pipe(p []int) (err error) {
86 return Pipe2(p, 0) 98 return Pipe2(p, 0)
87} 99}
@@ -189,43 +201,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
189 201
190//sys ioctl(fd int, req uint, arg uintptr) (err error) 202//sys ioctl(fd int, req uint, arg uintptr) (err error)
191 203
192// ioctl itself should not be exposed directly, but additional get/set
193// functions for specific types are permissible.
194
195// IoctlSetInt performs an ioctl operation which sets an integer value
196// on fd, using the specified request number.
197func IoctlSetInt(fd int, req uint, value int) error {
198 return ioctl(fd, req, uintptr(value))
199}
200
201func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
202 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
203}
204
205func ioctlSetTermios(fd int, req uint, value *Termios) error {
206 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
207}
208
209// IoctlGetInt performs an ioctl operation which gets an integer value
210// from fd, using the specified request number.
211func IoctlGetInt(fd int, req uint) (int, error) {
212 var value int
213 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
214 return value, err
215}
216
217func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
218 var value Winsize
219 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
220 return &value, err
221}
222
223func IoctlGetTermios(fd int, req uint) (*Termios, error) {
224 var value Termios
225 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
226 return &value, err
227}
228
229func Uname(uname *Utsname) error { 204func Uname(uname *Utsname) error {
230 mib := []_C_int{CTL_KERN, KERN_OSTYPE} 205 mib := []_C_int{CTL_KERN, KERN_OSTYPE}
231 n := unsafe.Sizeof(uname.Sysname) 206 n := unsafe.Sizeof(uname.Sysname)
@@ -362,7 +337,21 @@ func Getdents(fd int, buf []byte) (n int, err error) {
362 337
363func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 338func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
364 if supportsABI(_ino64First) { 339 if supportsABI(_ino64First) {
365 return getdirentries_freebsd12(fd, buf, basep) 340 if basep == nil || unsafe.Sizeof(*basep) == 8 {
341 return getdirentries_freebsd12(fd, buf, (*uint64)(unsafe.Pointer(basep)))
342 }
343 // The freebsd12 syscall needs a 64-bit base. On 32-bit machines
344 // we can't just use the basep passed in. See #32498.
345 var base uint64 = uint64(*basep)
346 n, err = getdirentries_freebsd12(fd, buf, &base)
347 *basep = uintptr(base)
348 if base>>32 != 0 {
349 // We can't stuff the base back into a uintptr, so any
350 // future calls would be suspect. Generate an error.
351 // EIO is allowed by getdirentries.
352 err = EIO
353 }
354 return
366 } 355 }
367 356
368 // The old syscall entries are smaller than the new. Use 1/4 of the original 357 // The old syscall entries are smaller than the new. Use 1/4 of the original
@@ -507,6 +496,70 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
507 return sendfile(outfd, infd, offset, count) 496 return sendfile(outfd, infd, offset, count)
508} 497}
509 498
499//sys ptrace(request int, pid int, addr uintptr, data int) (err error)
500
501func PtraceAttach(pid int) (err error) {
502 return ptrace(PTRACE_ATTACH, pid, 0, 0)
503}
504
505func PtraceCont(pid int, signal int) (err error) {
506 return ptrace(PTRACE_CONT, pid, 1, signal)
507}
508
509func PtraceDetach(pid int) (err error) {
510 return ptrace(PTRACE_DETACH, pid, 1, 0)
511}
512
513func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
514 return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
515}
516
517func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
518 return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
519}
520
521func PtraceGetRegs(pid int, regsout *Reg) (err error) {
522 return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
523}
524
525func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
526 ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint(countin)}
527 err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
528 return int(ioDesc.Len), err
529}
530
531func PtraceLwpEvents(pid int, enable int) (err error) {
532 return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
533}
534
535func PtraceLwpInfo(pid int, info uintptr) (err error) {
536 return ptrace(PTRACE_LWPINFO, pid, info, int(unsafe.Sizeof(PtraceLwpInfoStruct{})))
537}
538
539func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
540 return PtraceIO(PIOD_READ_D, pid, addr, out, SizeofLong)
541}
542
543func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) {
544 return PtraceIO(PIOD_READ_I, pid, addr, out, SizeofLong)
545}
546
547func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
548 return PtraceIO(PIOD_WRITE_D, pid, addr, data, SizeofLong)
549}
550
551func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
552 return PtraceIO(PIOD_WRITE_I, pid, addr, data, SizeofLong)
553}
554
555func PtraceSetRegs(pid int, regs *Reg) (err error) {
556 return ptrace(PTRACE_SETREGS, pid, uintptr(unsafe.Pointer(regs)), 0)
557}
558
559func PtraceSingleStep(pid int) (err error) {
560 return ptrace(PTRACE_SINGLESTEP, pid, 1, 0)
561}
562
510/* 563/*
511 * Exposed directly 564 * Exposed directly
512 */ 565 */
@@ -555,7 +608,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
555//sys Fsync(fd int) (err error) 608//sys Fsync(fd int) (err error)
556//sys Ftruncate(fd int, length int64) (err error) 609//sys Ftruncate(fd int, length int64) (err error)
557//sys getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) 610//sys getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
558//sys getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) 611//sys getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error)
559//sys Getdtablesize() (size int) 612//sys Getdtablesize() (size int)
560//sysnb Getegid() (egid int) 613//sysnb Getegid() (egid int)
561//sysnb Geteuid() (uid int) 614//sysnb Geteuid() (uid int)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go
index c92545e..fe30b95 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go
@@ -13,7 +13,6 @@ package unix
13 13
14import ( 14import (
15 "encoding/binary" 15 "encoding/binary"
16 "net"
17 "runtime" 16 "runtime"
18 "syscall" 17 "syscall"
19 "unsafe" 18 "unsafe"
@@ -72,6 +71,17 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
72// ioctl itself should not be exposed directly, but additional get/set 71// ioctl itself should not be exposed directly, but additional get/set
73// functions for specific types are permissible. 72// functions for specific types are permissible.
74 73
74// IoctlRetInt performs an ioctl operation specified by req on a device
75// associated with opened file descriptor fd, and returns a non-negative
76// integer that is returned by the ioctl syscall.
77func IoctlRetInt(fd int, req uint) (int, error) {
78 ret, _, err := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), 0)
79 if err != 0 {
80 return 0, err
81 }
82 return int(ret), nil
83}
84
75// IoctlSetPointerInt performs an ioctl operation which sets an 85// IoctlSetPointerInt performs an ioctl operation which sets an
76// integer value on fd, using the specified request number. The ioctl 86// integer value on fd, using the specified request number. The ioctl
77// argument is called with a pointer to the integer value, rather than 87// argument is called with a pointer to the integer value, rather than
@@ -81,52 +91,18 @@ func IoctlSetPointerInt(fd int, req uint, value int) error {
81 return ioctl(fd, req, uintptr(unsafe.Pointer(&v))) 91 return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
82} 92}
83 93
84// IoctlSetInt performs an ioctl operation which sets an integer value
85// on fd, using the specified request number.
86func IoctlSetInt(fd int, req uint, value int) error {
87 return ioctl(fd, req, uintptr(value))
88}
89
90func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
91 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
92}
93
94func ioctlSetTermios(fd int, req uint, value *Termios) error {
95 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
96}
97
98func IoctlSetRTCTime(fd int, value *RTCTime) error { 94func IoctlSetRTCTime(fd int, value *RTCTime) error {
99 err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value))) 95 err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
100 runtime.KeepAlive(value) 96 runtime.KeepAlive(value)
101 return err 97 return err
102} 98}
103 99
104// IoctlGetInt performs an ioctl operation which gets an integer value
105// from fd, using the specified request number.
106func IoctlGetInt(fd int, req uint) (int, error) {
107 var value int
108 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
109 return value, err
110}
111
112func IoctlGetUint32(fd int, req uint) (uint32, error) { 100func IoctlGetUint32(fd int, req uint) (uint32, error) {
113 var value uint32 101 var value uint32
114 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) 102 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
115 return value, err 103 return value, err
116} 104}
117 105
118func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
119 var value Winsize
120 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
121 return &value, err
122}
123
124func IoctlGetTermios(fd int, req uint) (*Termios, error) {
125 var value Termios
126 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
127 return &value, err
128}
129
130func IoctlGetRTCTime(fd int) (*RTCTime, error) { 106func IoctlGetRTCTime(fd int) (*RTCTime, error) {
131 var value RTCTime 107 var value RTCTime
132 err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value))) 108 err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
@@ -765,7 +741,7 @@ const px_proto_oe = 0
765 741
766type SockaddrPPPoE struct { 742type SockaddrPPPoE struct {
767 SID uint16 743 SID uint16
768 Remote net.HardwareAddr 744 Remote []byte
769 Dev string 745 Dev string
770 raw RawSockaddrPPPoX 746 raw RawSockaddrPPPoX
771} 747}
@@ -916,7 +892,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
916 } 892 }
917 sa := &SockaddrPPPoE{ 893 sa := &SockaddrPPPoE{
918 SID: binary.BigEndian.Uint16(pp[6:8]), 894 SID: binary.BigEndian.Uint16(pp[6:8]),
919 Remote: net.HardwareAddr(pp[8:14]), 895 Remote: pp[8:14],
920 } 896 }
921 for i := 14; i < 14+IFNAMSIZ; i++ { 897 for i := 14; i < 14+IFNAMSIZ; i++ {
922 if pp[i] == 0 { 898 if pp[i] == 0 {
@@ -1414,8 +1390,20 @@ func Reboot(cmd int) (err error) {
1414 return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "") 1390 return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
1415} 1391}
1416 1392
1417func ReadDirent(fd int, buf []byte) (n int, err error) { 1393func direntIno(buf []byte) (uint64, bool) {
1418 return Getdents(fd, buf) 1394 return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
1395}
1396
1397func direntReclen(buf []byte) (uint64, bool) {
1398 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
1399}
1400
1401func direntNamlen(buf []byte) (uint64, bool) {
1402 reclen, ok := direntReclen(buf)
1403 if !ok {
1404 return 0, false
1405 }
1406 return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
1419} 1407}
1420 1408
1421//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) 1409//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
@@ -1450,6 +1438,8 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
1450//sys Acct(path string) (err error) 1438//sys Acct(path string) (err error)
1451//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) 1439//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
1452//sys Adjtimex(buf *Timex) (state int, err error) 1440//sys Adjtimex(buf *Timex) (state int, err error)
1441//sys Capget(hdr *CapUserHeader, data *CapUserData) (err error)
1442//sys Capset(hdr *CapUserHeader, data *CapUserData) (err error)
1453//sys Chdir(path string) (err error) 1443//sys Chdir(path string) (err error)
1454//sys Chroot(path string) (err error) 1444//sys Chroot(path string) (err error)
1455//sys ClockGetres(clockid int32, res *Timespec) (err error) 1445//sys ClockGetres(clockid int32, res *Timespec) (err error)
@@ -1755,8 +1745,6 @@ func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err erro
1755// Alarm 1745// Alarm
1756// ArchPrctl 1746// ArchPrctl
1757// Brk 1747// Brk
1758// Capget
1759// Capset
1760// ClockNanosleep 1748// ClockNanosleep
1761// ClockSettime 1749// ClockSettime
1762// Clone 1750// Clone
diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
index 5240e16..7f9812b 100644
--- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
@@ -94,6 +94,18 @@ func nametomib(name string) (mib []_C_int, err error) {
94 return mib, nil 94 return mib, nil
95} 95}
96 96
97func direntIno(buf []byte) (uint64, bool) {
98 return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
99}
100
101func direntReclen(buf []byte) (uint64, bool) {
102 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
103}
104
105func direntNamlen(buf []byte) (uint64, bool) {
106 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
107}
108
97func SysctlClockinfo(name string) (*Clockinfo, error) { 109func SysctlClockinfo(name string) (*Clockinfo, error) {
98 mib, err := sysctlmib(name) 110 mib, err := sysctlmib(name)
99 if err != nil { 111 if err != nil {
@@ -120,9 +132,30 @@ func Pipe(p []int) (err error) {
120 return 132 return
121} 133}
122 134
123//sys getdents(fd int, buf []byte) (n int, err error) 135//sys Getdents(fd int, buf []byte) (n int, err error)
124func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 136func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
125 return getdents(fd, buf) 137 n, err = Getdents(fd, buf)
138 if err != nil || basep == nil {
139 return
140 }
141
142 var off int64
143 off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
144 if err != nil {
145 *basep = ^uintptr(0)
146 return
147 }
148 *basep = uintptr(off)
149 if unsafe.Sizeof(*basep) == 8 {
150 return
151 }
152 if off>>32 != 0 {
153 // We can't stuff the offset back into a uintptr, so any
154 // future calls would be suspect. Generate an error.
155 // EIO is allowed by getdirentries.
156 err = EIO
157 }
158 return
126} 159}
127 160
128const ImplementsGetwd = true 161const ImplementsGetwd = true
@@ -154,43 +187,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
154 187
155//sys ioctl(fd int, req uint, arg uintptr) (err error) 188//sys ioctl(fd int, req uint, arg uintptr) (err error)
156 189
157// ioctl itself should not be exposed directly, but additional get/set
158// functions for specific types are permissible.
159
160// IoctlSetInt performs an ioctl operation which sets an integer value
161// on fd, using the specified request number.
162func IoctlSetInt(fd int, req uint, value int) error {
163 return ioctl(fd, req, uintptr(value))
164}
165
166func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
167 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
168}
169
170func ioctlSetTermios(fd int, req uint, value *Termios) error {
171 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
172}
173
174// IoctlGetInt performs an ioctl operation which gets an integer value
175// from fd, using the specified request number.
176func IoctlGetInt(fd int, req uint) (int, error) {
177 var value int
178 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
179 return value, err
180}
181
182func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
183 var value Winsize
184 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
185 return &value, err
186}
187
188func IoctlGetTermios(fd int, req uint) (*Termios, error) {
189 var value Termios
190 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
191 return &value, err
192}
193
194func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) { 190func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
195 var value Ptmget 191 var value Ptmget
196 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) 192 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
index c8648ec..9a26768 100644
--- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
@@ -43,6 +43,18 @@ func nametomib(name string) (mib []_C_int, err error) {
43 return nil, EINVAL 43 return nil, EINVAL
44} 44}
45 45
46func direntIno(buf []byte) (uint64, bool) {
47 return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
48}
49
50func direntReclen(buf []byte) (uint64, bool) {
51 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
52}
53
54func direntNamlen(buf []byte) (uint64, bool) {
55 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
56}
57
46func SysctlClockinfo(name string) (*Clockinfo, error) { 58func SysctlClockinfo(name string) (*Clockinfo, error) {
47 mib, err := sysctlmib(name) 59 mib, err := sysctlmib(name)
48 if err != nil { 60 if err != nil {
@@ -89,9 +101,30 @@ func Pipe(p []int) (err error) {
89 return 101 return
90} 102}
91 103
92//sys getdents(fd int, buf []byte) (n int, err error) 104//sys Getdents(fd int, buf []byte) (n int, err error)
93func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 105func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
94 return getdents(fd, buf) 106 n, err = Getdents(fd, buf)
107 if err != nil || basep == nil {
108 return
109 }
110
111 var off int64
112 off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
113 if err != nil {
114 *basep = ^uintptr(0)
115 return
116 }
117 *basep = uintptr(off)
118 if unsafe.Sizeof(*basep) == 8 {
119 return
120 }
121 if off>>32 != 0 {
122 // We can't stuff the offset back into a uintptr, so any
123 // future calls would be suspect. Generate an error.
124 // EIO was allowed by getdirentries.
125 err = EIO
126 }
127 return
95} 128}
96 129
97const ImplementsGetwd = true 130const ImplementsGetwd = true
@@ -145,43 +178,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
145 178
146//sys ioctl(fd int, req uint, arg uintptr) (err error) 179//sys ioctl(fd int, req uint, arg uintptr) (err error)
147 180
148// ioctl itself should not be exposed directly, but additional get/set
149// functions for specific types are permissible.
150
151// IoctlSetInt performs an ioctl operation which sets an integer value
152// on fd, using the specified request number.
153func IoctlSetInt(fd int, req uint, value int) error {
154 return ioctl(fd, req, uintptr(value))
155}
156
157func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
158 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
159}
160
161func ioctlSetTermios(fd int, req uint, value *Termios) error {
162 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
163}
164
165// IoctlGetInt performs an ioctl operation which gets an integer value
166// from fd, using the specified request number.
167func IoctlGetInt(fd int, req uint) (int, error) {
168 var value int
169 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
170 return value, err
171}
172
173func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
174 var value Winsize
175 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
176 return &value, err
177}
178
179func IoctlGetTermios(fd int, req uint) (*Termios, error) {
180 var value Termios
181 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
182 return &value, err
183}
184
185//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) 181//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
186 182
187func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 183func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go
index e478012..1610f55 100644
--- a/vendor/golang.org/x/sys/unix/syscall_solaris.go
+++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go
@@ -35,6 +35,22 @@ type SockaddrDatalink struct {
35 raw RawSockaddrDatalink 35 raw RawSockaddrDatalink
36} 36}
37 37
38func direntIno(buf []byte) (uint64, bool) {
39 return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
40}
41
42func direntReclen(buf []byte) (uint64, bool) {
43 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
44}
45
46func direntNamlen(buf []byte) (uint64, bool) {
47 reclen, ok := direntReclen(buf)
48 if !ok {
49 return 0, false
50 }
51 return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
52}
53
38//sysnb pipe(p *[2]_C_int) (n int, err error) 54//sysnb pipe(p *[2]_C_int) (n int, err error)
39 55
40func Pipe(p []int) (err error) { 56func Pipe(p []int) (err error) {
@@ -189,6 +205,7 @@ func Setgroups(gids []int) (err error) {
189 return setgroups(len(a), &a[0]) 205 return setgroups(len(a), &a[0])
190} 206}
191 207
208// ReadDirent reads directory entries from fd and writes them into buf.
192func ReadDirent(fd int, buf []byte) (n int, err error) { 209func ReadDirent(fd int, buf []byte) (n int, err error) {
193 // Final argument is (basep *uintptr) and the syscall doesn't take nil. 210 // Final argument is (basep *uintptr) and the syscall doesn't take nil.
194 // TODO(rsc): Can we use a single global basep for all calls? 211 // TODO(rsc): Can we use a single global basep for all calls?
@@ -536,40 +553,10 @@ func Minor(dev uint64) uint32 {
536 553
537//sys ioctl(fd int, req uint, arg uintptr) (err error) 554//sys ioctl(fd int, req uint, arg uintptr) (err error)
538 555
539func IoctlSetInt(fd int, req uint, value int) (err error) {
540 return ioctl(fd, req, uintptr(value))
541}
542
543func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
544 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
545}
546
547func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
548 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
549}
550
551func IoctlSetTermio(fd int, req uint, value *Termio) (err error) { 556func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
552 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 557 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
553} 558}
554 559
555func IoctlGetInt(fd int, req uint) (int, error) {
556 var value int
557 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
558 return value, err
559}
560
561func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
562 var value Winsize
563 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
564 return &value, err
565}
566
567func IoctlGetTermios(fd int, req uint) (*Termios, error) {
568 var value Termios
569 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
570 return &value, err
571}
572
573func IoctlGetTermio(fd int, req uint) (*Termio, error) { 560func IoctlGetTermio(fd int, req uint) (*Termio, error) {
574 var value Termio 561 var value Termio
575 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) 562 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
diff --git a/vendor/golang.org/x/sys/unix/types_freebsd.go b/vendor/golang.org/x/sys/unix/types_freebsd.go
index 7470798..a121dc3 100644
--- a/vendor/golang.org/x/sys/unix/types_freebsd.go
+++ b/vendor/golang.org/x/sys/unix/types_freebsd.go
@@ -243,11 +243,55 @@ const (
243// Ptrace requests 243// Ptrace requests
244 244
245const ( 245const (
246 PTRACE_TRACEME = C.PT_TRACE_ME 246 PTRACE_ATTACH = C.PT_ATTACH
247 PTRACE_CONT = C.PT_CONTINUE 247 PTRACE_CONT = C.PT_CONTINUE
248 PTRACE_KILL = C.PT_KILL 248 PTRACE_DETACH = C.PT_DETACH
249 PTRACE_GETFPREGS = C.PT_GETFPREGS
250 PTRACE_GETFSBASE = C.PT_GETFSBASE
251 PTRACE_GETLWPLIST = C.PT_GETLWPLIST
252 PTRACE_GETNUMLWPS = C.PT_GETNUMLWPS
253 PTRACE_GETREGS = C.PT_GETREGS
254 PTRACE_GETXSTATE = C.PT_GETXSTATE
255 PTRACE_IO = C.PT_IO
256 PTRACE_KILL = C.PT_KILL
257 PTRACE_LWPEVENTS = C.PT_LWP_EVENTS
258 PTRACE_LWPINFO = C.PT_LWPINFO
259 PTRACE_SETFPREGS = C.PT_SETFPREGS
260 PTRACE_SETREGS = C.PT_SETREGS
261 PTRACE_SINGLESTEP = C.PT_STEP
262 PTRACE_TRACEME = C.PT_TRACE_ME
249) 263)
250 264
265const (
266 PIOD_READ_D = C.PIOD_READ_D
267 PIOD_WRITE_D = C.PIOD_WRITE_D
268 PIOD_READ_I = C.PIOD_READ_I
269 PIOD_WRITE_I = C.PIOD_WRITE_I
270)
271
272const (
273 PL_FLAG_BORN = C.PL_FLAG_BORN
274 PL_FLAG_EXITED = C.PL_FLAG_EXITED
275 PL_FLAG_SI = C.PL_FLAG_SI
276)
277
278const (
279 TRAP_BRKPT = C.TRAP_BRKPT
280 TRAP_TRACE = C.TRAP_TRACE
281)
282
283type PtraceLwpInfoStruct C.struct_ptrace_lwpinfo
284
285type __Siginfo C.struct___siginfo
286
287type Sigset_t C.sigset_t
288
289type Reg C.struct_reg
290
291type FpReg C.struct_fpreg
292
293type PtraceIoDesc C.struct_ptrace_io_desc
294
251// Events (kqueue, kevent) 295// Events (kqueue, kevent)
252 296
253type Kevent_t C.struct_kevent_freebsd11 297type Kevent_t C.struct_kevent_freebsd11
diff --git a/vendor/golang.org/x/sys/unix/types_netbsd.go b/vendor/golang.org/x/sys/unix/types_netbsd.go
index 2dd4f95..4a96d72 100644
--- a/vendor/golang.org/x/sys/unix/types_netbsd.go
+++ b/vendor/golang.org/x/sys/unix/types_netbsd.go
@@ -254,6 +254,7 @@ type Ptmget C.struct_ptmget
254 254
255const ( 255const (
256 AT_FDCWD = C.AT_FDCWD 256 AT_FDCWD = C.AT_FDCWD
257 AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
257 AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW 258 AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
258) 259)
259 260
diff --git a/vendor/golang.org/x/sys/unix/types_openbsd.go b/vendor/golang.org/x/sys/unix/types_openbsd.go
index 8aafbe4..775cb57 100644
--- a/vendor/golang.org/x/sys/unix/types_openbsd.go
+++ b/vendor/golang.org/x/sys/unix/types_openbsd.go
@@ -241,6 +241,7 @@ type Winsize C.struct_winsize
241 241
242const ( 242const (
243 AT_FDCWD = C.AT_FDCWD 243 AT_FDCWD = C.AT_FDCWD
244 AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
244 AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW 245 AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
245) 246)
246 247
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
index 881e69f..2839b3d 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -669,6 +722,7 @@ const (
669 F_OFD_SETLKW = 0x26 722 F_OFD_SETLKW = 0x26
670 F_OK = 0x0 723 F_OK = 0x0
671 F_RDLCK = 0x0 724 F_RDLCK = 0x0
725 F_SEAL_FUTURE_WRITE = 0x10
672 F_SEAL_GROW = 0x4 726 F_SEAL_GROW = 0x4
673 F_SEAL_SEAL = 0x1 727 F_SEAL_SEAL = 0x1
674 F_SEAL_SHRINK = 0x2 728 F_SEAL_SHRINK = 0x2
@@ -934,6 +988,7 @@ const (
934 IPV6_RECVRTHDR = 0x38 988 IPV6_RECVRTHDR = 0x38
935 IPV6_RECVTCLASS = 0x42 989 IPV6_RECVTCLASS = 0x42
936 IPV6_ROUTER_ALERT = 0x16 990 IPV6_ROUTER_ALERT = 0x16
991 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
937 IPV6_RTHDR = 0x39 992 IPV6_RTHDR = 0x39
938 IPV6_RTHDRDSTOPTS = 0x37 993 IPV6_RTHDRDSTOPTS = 0x37
939 IPV6_RTHDR_LOOSE = 0x0 994 IPV6_RTHDR_LOOSE = 0x0
@@ -1096,6 +1151,20 @@ const (
1096 LOCK_NB = 0x4 1151 LOCK_NB = 0x4
1097 LOCK_SH = 0x1 1152 LOCK_SH = 0x1
1098 LOCK_UN = 0x8 1153 LOCK_UN = 0x8
1154 LOOP_CLR_FD = 0x4c01
1155 LOOP_CTL_ADD = 0x4c80
1156 LOOP_CTL_GET_FREE = 0x4c82
1157 LOOP_CTL_REMOVE = 0x4c81
1158 LOOP_GET_STATUS = 0x4c03
1159 LOOP_GET_STATUS64 = 0x4c05
1160 LOOP_SET_BLOCK_SIZE = 0x4c09
1161 LOOP_SET_CAPACITY = 0x4c07
1162 LOOP_SET_DIRECT_IO = 0x4c08
1163 LOOP_SET_FD = 0x4c00
1164 LOOP_SET_STATUS = 0x4c02
1165 LOOP_SET_STATUS64 = 0x4c04
1166 LO_KEY_SIZE = 0x20
1167 LO_NAME_SIZE = 0x40
1099 MADV_DODUMP = 0x11 1168 MADV_DODUMP = 0x11
1100 MADV_DOFORK = 0xb 1169 MADV_DOFORK = 0xb
1101 MADV_DONTDUMP = 0x10 1170 MADV_DONTDUMP = 0x10
@@ -1339,6 +1408,10 @@ const (
1339 NLM_F_ROOT = 0x100 1408 NLM_F_ROOT = 0x100
1340 NOFLSH = 0x80 1409 NOFLSH = 0x80
1341 NSFS_MAGIC = 0x6e736673 1410 NSFS_MAGIC = 0x6e736673
1411 NS_GET_NSTYPE = 0xb703
1412 NS_GET_OWNER_UID = 0xb704
1413 NS_GET_PARENT = 0xb702
1414 NS_GET_USERNS = 0xb701
1342 OCFS2_SUPER_MAGIC = 0x7461636f 1415 OCFS2_SUPER_MAGIC = 0x7461636f
1343 OCRNL = 0x8 1416 OCRNL = 0x8
1344 OFDEL = 0x80 1417 OFDEL = 0x80
@@ -1958,6 +2031,10 @@ const (
1958 SIOCGSKNS = 0x894c 2031 SIOCGSKNS = 0x894c
1959 SIOCGSTAMP = 0x8906 2032 SIOCGSTAMP = 0x8906
1960 SIOCGSTAMPNS = 0x8907 2033 SIOCGSTAMPNS = 0x8907
2034 SIOCGSTAMPNS_NEW = 0x80108907
2035 SIOCGSTAMPNS_OLD = 0x8907
2036 SIOCGSTAMP_NEW = 0x80108906
2037 SIOCGSTAMP_OLD = 0x8906
1961 SIOCINQ = 0x541b 2038 SIOCINQ = 0x541b
1962 SIOCOUTQ = 0x5411 2039 SIOCOUTQ = 0x5411
1963 SIOCOUTQNSD = 0x894b 2040 SIOCOUTQNSD = 0x894b
@@ -2165,6 +2242,7 @@ const (
2165 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2242 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2166 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2243 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2167 SYNC_FILE_RANGE_WRITE = 0x2 2244 SYNC_FILE_RANGE_WRITE = 0x2
2245 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2168 SYSFS_MAGIC = 0x62656572 2246 SYSFS_MAGIC = 0x62656572
2169 S_BLKSIZE = 0x200 2247 S_BLKSIZE = 0x200
2170 S_IEXEC = 0x40 2248 S_IEXEC = 0x40
@@ -2384,6 +2462,7 @@ const (
2384 TS_COMM_LEN = 0x20 2462 TS_COMM_LEN = 0x20
2385 TUNATTACHFILTER = 0x400854d5 2463 TUNATTACHFILTER = 0x400854d5
2386 TUNDETACHFILTER = 0x400854d6 2464 TUNDETACHFILTER = 0x400854d6
2465 TUNGETDEVNETNS = 0x54e3
2387 TUNGETFEATURES = 0x800454cf 2466 TUNGETFEATURES = 0x800454cf
2388 TUNGETFILTER = 0x800854db 2467 TUNGETFILTER = 0x800854db
2389 TUNGETIFF = 0x800454d2 2468 TUNGETIFF = 0x800454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
index 039b007..99e3a3d 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -669,6 +722,7 @@ const (
669 F_OFD_SETLKW = 0x26 722 F_OFD_SETLKW = 0x26
670 F_OK = 0x0 723 F_OK = 0x0
671 F_RDLCK = 0x0 724 F_RDLCK = 0x0
725 F_SEAL_FUTURE_WRITE = 0x10
672 F_SEAL_GROW = 0x4 726 F_SEAL_GROW = 0x4
673 F_SEAL_SEAL = 0x1 727 F_SEAL_SEAL = 0x1
674 F_SEAL_SHRINK = 0x2 728 F_SEAL_SHRINK = 0x2
@@ -934,6 +988,7 @@ const (
934 IPV6_RECVRTHDR = 0x38 988 IPV6_RECVRTHDR = 0x38
935 IPV6_RECVTCLASS = 0x42 989 IPV6_RECVTCLASS = 0x42
936 IPV6_ROUTER_ALERT = 0x16 990 IPV6_ROUTER_ALERT = 0x16
991 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
937 IPV6_RTHDR = 0x39 992 IPV6_RTHDR = 0x39
938 IPV6_RTHDRDSTOPTS = 0x37 993 IPV6_RTHDRDSTOPTS = 0x37
939 IPV6_RTHDR_LOOSE = 0x0 994 IPV6_RTHDR_LOOSE = 0x0
@@ -1096,6 +1151,20 @@ const (
1096 LOCK_NB = 0x4 1151 LOCK_NB = 0x4
1097 LOCK_SH = 0x1 1152 LOCK_SH = 0x1
1098 LOCK_UN = 0x8 1153 LOCK_UN = 0x8
1154 LOOP_CLR_FD = 0x4c01
1155 LOOP_CTL_ADD = 0x4c80
1156 LOOP_CTL_GET_FREE = 0x4c82
1157 LOOP_CTL_REMOVE = 0x4c81
1158 LOOP_GET_STATUS = 0x4c03
1159 LOOP_GET_STATUS64 = 0x4c05
1160 LOOP_SET_BLOCK_SIZE = 0x4c09
1161 LOOP_SET_CAPACITY = 0x4c07
1162 LOOP_SET_DIRECT_IO = 0x4c08
1163 LOOP_SET_FD = 0x4c00
1164 LOOP_SET_STATUS = 0x4c02
1165 LOOP_SET_STATUS64 = 0x4c04
1166 LO_KEY_SIZE = 0x20
1167 LO_NAME_SIZE = 0x40
1099 MADV_DODUMP = 0x11 1168 MADV_DODUMP = 0x11
1100 MADV_DOFORK = 0xb 1169 MADV_DOFORK = 0xb
1101 MADV_DONTDUMP = 0x10 1170 MADV_DONTDUMP = 0x10
@@ -1339,6 +1408,10 @@ const (
1339 NLM_F_ROOT = 0x100 1408 NLM_F_ROOT = 0x100
1340 NOFLSH = 0x80 1409 NOFLSH = 0x80
1341 NSFS_MAGIC = 0x6e736673 1410 NSFS_MAGIC = 0x6e736673
1411 NS_GET_NSTYPE = 0xb703
1412 NS_GET_OWNER_UID = 0xb704
1413 NS_GET_PARENT = 0xb702
1414 NS_GET_USERNS = 0xb701
1342 OCFS2_SUPER_MAGIC = 0x7461636f 1415 OCFS2_SUPER_MAGIC = 0x7461636f
1343 OCRNL = 0x8 1416 OCRNL = 0x8
1344 OFDEL = 0x80 1417 OFDEL = 0x80
@@ -1959,6 +2032,10 @@ const (
1959 SIOCGSKNS = 0x894c 2032 SIOCGSKNS = 0x894c
1960 SIOCGSTAMP = 0x8906 2033 SIOCGSTAMP = 0x8906
1961 SIOCGSTAMPNS = 0x8907 2034 SIOCGSTAMPNS = 0x8907
2035 SIOCGSTAMPNS_NEW = 0x80108907
2036 SIOCGSTAMPNS_OLD = 0x8907
2037 SIOCGSTAMP_NEW = 0x80108906
2038 SIOCGSTAMP_OLD = 0x8906
1962 SIOCINQ = 0x541b 2039 SIOCINQ = 0x541b
1963 SIOCOUTQ = 0x5411 2040 SIOCOUTQ = 0x5411
1964 SIOCOUTQNSD = 0x894b 2041 SIOCOUTQNSD = 0x894b
@@ -2166,6 +2243,7 @@ const (
2166 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2243 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2167 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2244 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2168 SYNC_FILE_RANGE_WRITE = 0x2 2245 SYNC_FILE_RANGE_WRITE = 0x2
2246 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2169 SYSFS_MAGIC = 0x62656572 2247 SYSFS_MAGIC = 0x62656572
2170 S_BLKSIZE = 0x200 2248 S_BLKSIZE = 0x200
2171 S_IEXEC = 0x40 2249 S_IEXEC = 0x40
@@ -2385,6 +2463,7 @@ const (
2385 TS_COMM_LEN = 0x20 2463 TS_COMM_LEN = 0x20
2386 TUNATTACHFILTER = 0x401054d5 2464 TUNATTACHFILTER = 0x401054d5
2387 TUNDETACHFILTER = 0x401054d6 2465 TUNDETACHFILTER = 0x401054d6
2466 TUNGETDEVNETNS = 0x54e3
2388 TUNGETFEATURES = 0x800454cf 2467 TUNGETFEATURES = 0x800454cf
2389 TUNGETFILTER = 0x801054db 2468 TUNGETFILTER = 0x801054db
2390 TUNGETIFF = 0x800454d2 2469 TUNGETIFF = 0x800454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
index 97ed569..f5f5ee5 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0xb703
1410 NS_GET_OWNER_UID = 0xb704
1411 NS_GET_PARENT = 0xb702
1412 NS_GET_USERNS = 0xb701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -1965,6 +2038,10 @@ const (
1965 SIOCGSKNS = 0x894c 2038 SIOCGSKNS = 0x894c
1966 SIOCGSTAMP = 0x8906 2039 SIOCGSTAMP = 0x8906
1967 SIOCGSTAMPNS = 0x8907 2040 SIOCGSTAMPNS = 0x8907
2041 SIOCGSTAMPNS_NEW = 0x80108907
2042 SIOCGSTAMPNS_OLD = 0x8907
2043 SIOCGSTAMP_NEW = 0x80108906
2044 SIOCGSTAMP_OLD = 0x8906
1968 SIOCINQ = 0x541b 2045 SIOCINQ = 0x541b
1969 SIOCOUTQ = 0x5411 2046 SIOCOUTQ = 0x5411
1970 SIOCOUTQNSD = 0x894b 2047 SIOCOUTQNSD = 0x894b
@@ -2172,6 +2249,7 @@ const (
2172 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2249 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2173 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2250 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2174 SYNC_FILE_RANGE_WRITE = 0x2 2251 SYNC_FILE_RANGE_WRITE = 0x2
2252 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2175 SYSFS_MAGIC = 0x62656572 2253 SYSFS_MAGIC = 0x62656572
2176 S_BLKSIZE = 0x200 2254 S_BLKSIZE = 0x200
2177 S_IEXEC = 0x40 2255 S_IEXEC = 0x40
@@ -2391,6 +2469,7 @@ const (
2391 TS_COMM_LEN = 0x20 2469 TS_COMM_LEN = 0x20
2392 TUNATTACHFILTER = 0x400854d5 2470 TUNATTACHFILTER = 0x400854d5
2393 TUNDETACHFILTER = 0x400854d6 2471 TUNDETACHFILTER = 0x400854d6
2472 TUNGETDEVNETNS = 0x54e3
2394 TUNGETFEATURES = 0x800454cf 2473 TUNGETFEATURES = 0x800454cf
2395 TUNGETFILTER = 0x800854db 2474 TUNGETFILTER = 0x800854db
2396 TUNGETIFF = 0x800454d2 2475 TUNGETIFF = 0x800454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
index d47f3ba..64573bd 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -489,6 +541,7 @@ const (
489 ETH_P_DNA_RC = 0x6002 541 ETH_P_DNA_RC = 0x6002
490 ETH_P_DNA_RT = 0x6003 542 ETH_P_DNA_RT = 0x6003
491 ETH_P_DSA = 0x1b 543 ETH_P_DSA = 0x1b
544 ETH_P_DSA_8021Q = 0xdadb
492 ETH_P_ECONET = 0x18 545 ETH_P_ECONET = 0x18
493 ETH_P_EDSA = 0xdada 546 ETH_P_EDSA = 0xdada
494 ETH_P_ERSPAN = 0x88be 547 ETH_P_ERSPAN = 0x88be
@@ -671,6 +724,7 @@ const (
671 F_OFD_SETLKW = 0x26 724 F_OFD_SETLKW = 0x26
672 F_OK = 0x0 725 F_OK = 0x0
673 F_RDLCK = 0x0 726 F_RDLCK = 0x0
727 F_SEAL_FUTURE_WRITE = 0x10
674 F_SEAL_GROW = 0x4 728 F_SEAL_GROW = 0x4
675 F_SEAL_SEAL = 0x1 729 F_SEAL_SEAL = 0x1
676 F_SEAL_SHRINK = 0x2 730 F_SEAL_SHRINK = 0x2
@@ -936,6 +990,7 @@ const (
936 IPV6_RECVRTHDR = 0x38 990 IPV6_RECVRTHDR = 0x38
937 IPV6_RECVTCLASS = 0x42 991 IPV6_RECVTCLASS = 0x42
938 IPV6_ROUTER_ALERT = 0x16 992 IPV6_ROUTER_ALERT = 0x16
993 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
939 IPV6_RTHDR = 0x39 994 IPV6_RTHDR = 0x39
940 IPV6_RTHDRDSTOPTS = 0x37 995 IPV6_RTHDRDSTOPTS = 0x37
941 IPV6_RTHDR_LOOSE = 0x0 996 IPV6_RTHDR_LOOSE = 0x0
@@ -1098,6 +1153,20 @@ const (
1098 LOCK_NB = 0x4 1153 LOCK_NB = 0x4
1099 LOCK_SH = 0x1 1154 LOCK_SH = 0x1
1100 LOCK_UN = 0x8 1155 LOCK_UN = 0x8
1156 LOOP_CLR_FD = 0x4c01
1157 LOOP_CTL_ADD = 0x4c80
1158 LOOP_CTL_GET_FREE = 0x4c82
1159 LOOP_CTL_REMOVE = 0x4c81
1160 LOOP_GET_STATUS = 0x4c03
1161 LOOP_GET_STATUS64 = 0x4c05
1162 LOOP_SET_BLOCK_SIZE = 0x4c09
1163 LOOP_SET_CAPACITY = 0x4c07
1164 LOOP_SET_DIRECT_IO = 0x4c08
1165 LOOP_SET_FD = 0x4c00
1166 LOOP_SET_STATUS = 0x4c02
1167 LOOP_SET_STATUS64 = 0x4c04
1168 LO_KEY_SIZE = 0x20
1169 LO_NAME_SIZE = 0x40
1101 MADV_DODUMP = 0x11 1170 MADV_DODUMP = 0x11
1102 MADV_DOFORK = 0xb 1171 MADV_DOFORK = 0xb
1103 MADV_DONTDUMP = 0x10 1172 MADV_DONTDUMP = 0x10
@@ -1340,6 +1409,10 @@ const (
1340 NLM_F_ROOT = 0x100 1409 NLM_F_ROOT = 0x100
1341 NOFLSH = 0x80 1410 NOFLSH = 0x80
1342 NSFS_MAGIC = 0x6e736673 1411 NSFS_MAGIC = 0x6e736673
1412 NS_GET_NSTYPE = 0xb703
1413 NS_GET_OWNER_UID = 0xb704
1414 NS_GET_PARENT = 0xb702
1415 NS_GET_USERNS = 0xb701
1343 OCFS2_SUPER_MAGIC = 0x7461636f 1416 OCFS2_SUPER_MAGIC = 0x7461636f
1344 OCRNL = 0x8 1417 OCRNL = 0x8
1345 OFDEL = 0x80 1418 OFDEL = 0x80
@@ -1949,6 +2022,10 @@ const (
1949 SIOCGSKNS = 0x894c 2022 SIOCGSKNS = 0x894c
1950 SIOCGSTAMP = 0x8906 2023 SIOCGSTAMP = 0x8906
1951 SIOCGSTAMPNS = 0x8907 2024 SIOCGSTAMPNS = 0x8907
2025 SIOCGSTAMPNS_NEW = 0x80108907
2026 SIOCGSTAMPNS_OLD = 0x8907
2027 SIOCGSTAMP_NEW = 0x80108906
2028 SIOCGSTAMP_OLD = 0x8906
1952 SIOCINQ = 0x541b 2029 SIOCINQ = 0x541b
1953 SIOCOUTQ = 0x5411 2030 SIOCOUTQ = 0x5411
1954 SIOCOUTQNSD = 0x894b 2031 SIOCOUTQNSD = 0x894b
@@ -2157,6 +2234,7 @@ const (
2157 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2234 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2158 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2235 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2159 SYNC_FILE_RANGE_WRITE = 0x2 2236 SYNC_FILE_RANGE_WRITE = 0x2
2237 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2160 SYSFS_MAGIC = 0x62656572 2238 SYSFS_MAGIC = 0x62656572
2161 S_BLKSIZE = 0x200 2239 S_BLKSIZE = 0x200
2162 S_IEXEC = 0x40 2240 S_IEXEC = 0x40
@@ -2376,6 +2454,7 @@ const (
2376 TS_COMM_LEN = 0x20 2454 TS_COMM_LEN = 0x20
2377 TUNATTACHFILTER = 0x401054d5 2455 TUNATTACHFILTER = 0x401054d5
2378 TUNDETACHFILTER = 0x401054d6 2456 TUNDETACHFILTER = 0x401054d6
2457 TUNGETDEVNETNS = 0x54e3
2379 TUNGETFEATURES = 0x800454cf 2458 TUNGETFEATURES = 0x800454cf
2380 TUNGETFILTER = 0x801054db 2459 TUNGETFILTER = 0x801054db
2381 TUNGETIFF = 0x800454d2 2460 TUNGETIFF = 0x800454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
index 0ae030e..3e948be 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0x2000b703
1410 NS_GET_OWNER_UID = 0x2000b704
1411 NS_GET_PARENT = 0x2000b702
1412 NS_GET_USERNS = 0x2000b701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -1958,6 +2031,10 @@ const (
1958 SIOCGSKNS = 0x894c 2031 SIOCGSKNS = 0x894c
1959 SIOCGSTAMP = 0x8906 2032 SIOCGSTAMP = 0x8906
1960 SIOCGSTAMPNS = 0x8907 2033 SIOCGSTAMPNS = 0x8907
2034 SIOCGSTAMPNS_NEW = 0x40108907
2035 SIOCGSTAMPNS_OLD = 0x8907
2036 SIOCGSTAMP_NEW = 0x40108906
2037 SIOCGSTAMP_OLD = 0x8906
1961 SIOCINQ = 0x467f 2038 SIOCINQ = 0x467f
1962 SIOCOUTQ = 0x7472 2039 SIOCOUTQ = 0x7472
1963 SIOCOUTQNSD = 0x894b 2040 SIOCOUTQNSD = 0x894b
@@ -2166,6 +2243,7 @@ const (
2166 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2243 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2167 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2244 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2168 SYNC_FILE_RANGE_WRITE = 0x2 2245 SYNC_FILE_RANGE_WRITE = 0x2
2246 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2169 SYSFS_MAGIC = 0x62656572 2247 SYSFS_MAGIC = 0x62656572
2170 S_BLKSIZE = 0x200 2248 S_BLKSIZE = 0x200
2171 S_IEXEC = 0x40 2249 S_IEXEC = 0x40
@@ -2386,6 +2464,7 @@ const (
2386 TS_COMM_LEN = 0x20 2464 TS_COMM_LEN = 0x20
2387 TUNATTACHFILTER = 0x800854d5 2465 TUNATTACHFILTER = 0x800854d5
2388 TUNDETACHFILTER = 0x800854d6 2466 TUNDETACHFILTER = 0x800854d6
2467 TUNGETDEVNETNS = 0x200054e3
2389 TUNGETFEATURES = 0x400454cf 2468 TUNGETFEATURES = 0x400454cf
2390 TUNGETFILTER = 0x400854db 2469 TUNGETFILTER = 0x400854db
2391 TUNGETIFF = 0x400454d2 2470 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
index 91b49dd..8ac128b 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0x2000b703
1410 NS_GET_OWNER_UID = 0x2000b704
1411 NS_GET_PARENT = 0x2000b702
1412 NS_GET_USERNS = 0x2000b701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -1958,6 +2031,10 @@ const (
1958 SIOCGSKNS = 0x894c 2031 SIOCGSKNS = 0x894c
1959 SIOCGSTAMP = 0x8906 2032 SIOCGSTAMP = 0x8906
1960 SIOCGSTAMPNS = 0x8907 2033 SIOCGSTAMPNS = 0x8907
2034 SIOCGSTAMPNS_NEW = 0x40108907
2035 SIOCGSTAMPNS_OLD = 0x8907
2036 SIOCGSTAMP_NEW = 0x40108906
2037 SIOCGSTAMP_OLD = 0x8906
1961 SIOCINQ = 0x467f 2038 SIOCINQ = 0x467f
1962 SIOCOUTQ = 0x7472 2039 SIOCOUTQ = 0x7472
1963 SIOCOUTQNSD = 0x894b 2040 SIOCOUTQNSD = 0x894b
@@ -2166,6 +2243,7 @@ const (
2166 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2243 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2167 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2244 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2168 SYNC_FILE_RANGE_WRITE = 0x2 2245 SYNC_FILE_RANGE_WRITE = 0x2
2246 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2169 SYSFS_MAGIC = 0x62656572 2247 SYSFS_MAGIC = 0x62656572
2170 S_BLKSIZE = 0x200 2248 S_BLKSIZE = 0x200
2171 S_IEXEC = 0x40 2249 S_IEXEC = 0x40
@@ -2386,6 +2464,7 @@ const (
2386 TS_COMM_LEN = 0x20 2464 TS_COMM_LEN = 0x20
2387 TUNATTACHFILTER = 0x801054d5 2465 TUNATTACHFILTER = 0x801054d5
2388 TUNDETACHFILTER = 0x801054d6 2466 TUNDETACHFILTER = 0x801054d6
2467 TUNGETDEVNETNS = 0x200054e3
2389 TUNGETFEATURES = 0x400454cf 2468 TUNGETFEATURES = 0x400454cf
2390 TUNGETFILTER = 0x401054db 2469 TUNGETFILTER = 0x401054db
2391 TUNGETIFF = 0x400454d2 2470 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
index 7f1ef04..e8845a7 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0x2000b703
1410 NS_GET_OWNER_UID = 0x2000b704
1411 NS_GET_PARENT = 0x2000b702
1412 NS_GET_USERNS = 0x2000b701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -1958,6 +2031,10 @@ const (
1958 SIOCGSKNS = 0x894c 2031 SIOCGSKNS = 0x894c
1959 SIOCGSTAMP = 0x8906 2032 SIOCGSTAMP = 0x8906
1960 SIOCGSTAMPNS = 0x8907 2033 SIOCGSTAMPNS = 0x8907
2034 SIOCGSTAMPNS_NEW = 0x40108907
2035 SIOCGSTAMPNS_OLD = 0x8907
2036 SIOCGSTAMP_NEW = 0x40108906
2037 SIOCGSTAMP_OLD = 0x8906
1961 SIOCINQ = 0x467f 2038 SIOCINQ = 0x467f
1962 SIOCOUTQ = 0x7472 2039 SIOCOUTQ = 0x7472
1963 SIOCOUTQNSD = 0x894b 2040 SIOCOUTQNSD = 0x894b
@@ -2166,6 +2243,7 @@ const (
2166 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2243 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2167 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2244 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2168 SYNC_FILE_RANGE_WRITE = 0x2 2245 SYNC_FILE_RANGE_WRITE = 0x2
2246 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2169 SYSFS_MAGIC = 0x62656572 2247 SYSFS_MAGIC = 0x62656572
2170 S_BLKSIZE = 0x200 2248 S_BLKSIZE = 0x200
2171 S_IEXEC = 0x40 2249 S_IEXEC = 0x40
@@ -2386,6 +2464,7 @@ const (
2386 TS_COMM_LEN = 0x20 2464 TS_COMM_LEN = 0x20
2387 TUNATTACHFILTER = 0x801054d5 2465 TUNATTACHFILTER = 0x801054d5
2388 TUNDETACHFILTER = 0x801054d6 2466 TUNDETACHFILTER = 0x801054d6
2467 TUNGETDEVNETNS = 0x200054e3
2389 TUNGETFEATURES = 0x400454cf 2468 TUNGETFEATURES = 0x400454cf
2390 TUNGETFILTER = 0x401054db 2469 TUNGETFILTER = 0x401054db
2391 TUNGETIFF = 0x400454d2 2470 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
index 724a244..338c044 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0x2000b703
1410 NS_GET_OWNER_UID = 0x2000b704
1411 NS_GET_PARENT = 0x2000b702
1412 NS_GET_USERNS = 0x2000b701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -1958,6 +2031,10 @@ const (
1958 SIOCGSKNS = 0x894c 2031 SIOCGSKNS = 0x894c
1959 SIOCGSTAMP = 0x8906 2032 SIOCGSTAMP = 0x8906
1960 SIOCGSTAMPNS = 0x8907 2033 SIOCGSTAMPNS = 0x8907
2034 SIOCGSTAMPNS_NEW = 0x40108907
2035 SIOCGSTAMPNS_OLD = 0x8907
2036 SIOCGSTAMP_NEW = 0x40108906
2037 SIOCGSTAMP_OLD = 0x8906
1961 SIOCINQ = 0x467f 2038 SIOCINQ = 0x467f
1962 SIOCOUTQ = 0x7472 2039 SIOCOUTQ = 0x7472
1963 SIOCOUTQNSD = 0x894b 2040 SIOCOUTQNSD = 0x894b
@@ -2166,6 +2243,7 @@ const (
2166 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2243 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2167 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2244 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2168 SYNC_FILE_RANGE_WRITE = 0x2 2245 SYNC_FILE_RANGE_WRITE = 0x2
2246 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2169 SYSFS_MAGIC = 0x62656572 2247 SYSFS_MAGIC = 0x62656572
2170 S_BLKSIZE = 0x200 2248 S_BLKSIZE = 0x200
2171 S_IEXEC = 0x40 2249 S_IEXEC = 0x40
@@ -2386,6 +2464,7 @@ const (
2386 TS_COMM_LEN = 0x20 2464 TS_COMM_LEN = 0x20
2387 TUNATTACHFILTER = 0x800854d5 2465 TUNATTACHFILTER = 0x800854d5
2388 TUNDETACHFILTER = 0x800854d6 2466 TUNDETACHFILTER = 0x800854d6
2467 TUNGETDEVNETNS = 0x200054e3
2389 TUNGETFEATURES = 0x400454cf 2468 TUNGETFEATURES = 0x400454cf
2390 TUNGETFILTER = 0x400854db 2469 TUNGETFILTER = 0x400854db
2391 TUNGETIFF = 0x400454d2 2470 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
index 2504462..a696532 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0xff 388 CBAUD = 0xff
338 CBAUDEX = 0x0 389 CBAUDEX = 0x0
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1338,6 +1407,10 @@ const (
1338 NLM_F_ROOT = 0x100 1407 NLM_F_ROOT = 0x100
1339 NOFLSH = 0x80000000 1408 NOFLSH = 0x80000000
1340 NSFS_MAGIC = 0x6e736673 1409 NSFS_MAGIC = 0x6e736673
1410 NS_GET_NSTYPE = 0x2000b703
1411 NS_GET_OWNER_UID = 0x2000b704
1412 NS_GET_PARENT = 0x2000b702
1413 NS_GET_USERNS = 0x2000b701
1341 OCFS2_SUPER_MAGIC = 0x7461636f 1414 OCFS2_SUPER_MAGIC = 0x7461636f
1342 OCRNL = 0x8 1415 OCRNL = 0x8
1343 OFDEL = 0x80 1416 OFDEL = 0x80
@@ -2016,6 +2089,10 @@ const (
2016 SIOCGSKNS = 0x894c 2089 SIOCGSKNS = 0x894c
2017 SIOCGSTAMP = 0x8906 2090 SIOCGSTAMP = 0x8906
2018 SIOCGSTAMPNS = 0x8907 2091 SIOCGSTAMPNS = 0x8907
2092 SIOCGSTAMPNS_NEW = 0x40108907
2093 SIOCGSTAMPNS_OLD = 0x8907
2094 SIOCGSTAMP_NEW = 0x40108906
2095 SIOCGSTAMP_OLD = 0x8906
2019 SIOCINQ = 0x4004667f 2096 SIOCINQ = 0x4004667f
2020 SIOCOUTQ = 0x40047473 2097 SIOCOUTQ = 0x40047473
2021 SIOCOUTQNSD = 0x894b 2098 SIOCOUTQNSD = 0x894b
@@ -2223,6 +2300,7 @@ const (
2223 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2300 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2224 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2301 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2225 SYNC_FILE_RANGE_WRITE = 0x2 2302 SYNC_FILE_RANGE_WRITE = 0x2
2303 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2226 SYSFS_MAGIC = 0x62656572 2304 SYSFS_MAGIC = 0x62656572
2227 S_BLKSIZE = 0x200 2305 S_BLKSIZE = 0x200
2228 S_IEXEC = 0x40 2306 S_IEXEC = 0x40
@@ -2446,6 +2524,7 @@ const (
2446 TS_COMM_LEN = 0x20 2524 TS_COMM_LEN = 0x20
2447 TUNATTACHFILTER = 0x801054d5 2525 TUNATTACHFILTER = 0x801054d5
2448 TUNDETACHFILTER = 0x801054d6 2526 TUNDETACHFILTER = 0x801054d6
2527 TUNGETDEVNETNS = 0x200054e3
2449 TUNGETFEATURES = 0x400454cf 2528 TUNGETFEATURES = 0x400454cf
2450 TUNGETFILTER = 0x401054db 2529 TUNGETFILTER = 0x401054db
2451 TUNGETIFF = 0x400454d2 2530 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
index e7c4991..9197b33 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0xff 388 CBAUD = 0xff
338 CBAUDEX = 0x0 389 CBAUDEX = 0x0
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1338,6 +1407,10 @@ const (
1338 NLM_F_ROOT = 0x100 1407 NLM_F_ROOT = 0x100
1339 NOFLSH = 0x80000000 1408 NOFLSH = 0x80000000
1340 NSFS_MAGIC = 0x6e736673 1409 NSFS_MAGIC = 0x6e736673
1410 NS_GET_NSTYPE = 0x2000b703
1411 NS_GET_OWNER_UID = 0x2000b704
1412 NS_GET_PARENT = 0x2000b702
1413 NS_GET_USERNS = 0x2000b701
1341 OCFS2_SUPER_MAGIC = 0x7461636f 1414 OCFS2_SUPER_MAGIC = 0x7461636f
1342 OCRNL = 0x8 1415 OCRNL = 0x8
1343 OFDEL = 0x80 1416 OFDEL = 0x80
@@ -2016,6 +2089,10 @@ const (
2016 SIOCGSKNS = 0x894c 2089 SIOCGSKNS = 0x894c
2017 SIOCGSTAMP = 0x8906 2090 SIOCGSTAMP = 0x8906
2018 SIOCGSTAMPNS = 0x8907 2091 SIOCGSTAMPNS = 0x8907
2092 SIOCGSTAMPNS_NEW = 0x40108907
2093 SIOCGSTAMPNS_OLD = 0x8907
2094 SIOCGSTAMP_NEW = 0x40108906
2095 SIOCGSTAMP_OLD = 0x8906
2019 SIOCINQ = 0x4004667f 2096 SIOCINQ = 0x4004667f
2020 SIOCOUTQ = 0x40047473 2097 SIOCOUTQ = 0x40047473
2021 SIOCOUTQNSD = 0x894b 2098 SIOCOUTQNSD = 0x894b
@@ -2223,6 +2300,7 @@ const (
2223 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2300 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2224 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2301 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2225 SYNC_FILE_RANGE_WRITE = 0x2 2302 SYNC_FILE_RANGE_WRITE = 0x2
2303 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2226 SYSFS_MAGIC = 0x62656572 2304 SYSFS_MAGIC = 0x62656572
2227 S_BLKSIZE = 0x200 2305 S_BLKSIZE = 0x200
2228 S_IEXEC = 0x40 2306 S_IEXEC = 0x40
@@ -2446,6 +2524,7 @@ const (
2446 TS_COMM_LEN = 0x20 2524 TS_COMM_LEN = 0x20
2447 TUNATTACHFILTER = 0x801054d5 2525 TUNATTACHFILTER = 0x801054d5
2448 TUNDETACHFILTER = 0x801054d6 2526 TUNDETACHFILTER = 0x801054d6
2527 TUNGETDEVNETNS = 0x200054e3
2449 TUNGETFEATURES = 0x400454cf 2528 TUNGETFEATURES = 0x400454cf
2450 TUNGETFILTER = 0x401054db 2529 TUNGETFILTER = 0x401054db
2451 TUNGETIFF = 0x400454d2 2530 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
index 0373d65..d1e023e 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0xb703
1410 NS_GET_OWNER_UID = 0xb704
1411 NS_GET_PARENT = 0xb702
1412 NS_GET_USERNS = 0xb701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -1946,6 +2019,10 @@ const (
1946 SIOCGSKNS = 0x894c 2019 SIOCGSKNS = 0x894c
1947 SIOCGSTAMP = 0x8906 2020 SIOCGSTAMP = 0x8906
1948 SIOCGSTAMPNS = 0x8907 2021 SIOCGSTAMPNS = 0x8907
2022 SIOCGSTAMPNS_NEW = 0x80108907
2023 SIOCGSTAMPNS_OLD = 0x8907
2024 SIOCGSTAMP_NEW = 0x80108906
2025 SIOCGSTAMP_OLD = 0x8906
1949 SIOCINQ = 0x541b 2026 SIOCINQ = 0x541b
1950 SIOCOUTQ = 0x5411 2027 SIOCOUTQ = 0x5411
1951 SIOCOUTQNSD = 0x894b 2028 SIOCOUTQNSD = 0x894b
@@ -2153,6 +2230,7 @@ const (
2153 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2230 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2154 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2231 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2155 SYNC_FILE_RANGE_WRITE = 0x2 2232 SYNC_FILE_RANGE_WRITE = 0x2
2233 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2156 SYSFS_MAGIC = 0x62656572 2234 SYSFS_MAGIC = 0x62656572
2157 S_BLKSIZE = 0x200 2235 S_BLKSIZE = 0x200
2158 S_IEXEC = 0x40 2236 S_IEXEC = 0x40
@@ -2372,6 +2450,7 @@ const (
2372 TS_COMM_LEN = 0x20 2450 TS_COMM_LEN = 0x20
2373 TUNATTACHFILTER = 0x401054d5 2451 TUNATTACHFILTER = 0x401054d5
2374 TUNDETACHFILTER = 0x401054d6 2452 TUNDETACHFILTER = 0x401054d6
2453 TUNGETDEVNETNS = 0x54e3
2375 TUNGETFEATURES = 0x800454cf 2454 TUNGETFEATURES = 0x800454cf
2376 TUNGETFILTER = 0x801054db 2455 TUNGETFILTER = 0x801054db
2377 TUNGETIFF = 0x800454d2 2456 TUNGETIFF = 0x800454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
index b2ed7ee..1dfacf1 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
@@ -196,6 +196,8 @@ const (
196 BPF_A = 0x10 196 BPF_A = 0x10
197 BPF_ABS = 0x20 197 BPF_ABS = 0x20
198 BPF_ADD = 0x0 198 BPF_ADD = 0x0
199 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
200 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
199 BPF_ALU = 0x4 201 BPF_ALU = 0x4
200 BPF_ALU64 = 0x7 202 BPF_ALU64 = 0x7
201 BPF_AND = 0x50 203 BPF_AND = 0x50
@@ -217,6 +219,11 @@ const (
217 BPF_FROM_BE = 0x8 219 BPF_FROM_BE = 0x8
218 BPF_FROM_LE = 0x0 220 BPF_FROM_LE = 0x0
219 BPF_FS_MAGIC = 0xcafe4a11 221 BPF_FS_MAGIC = 0xcafe4a11
222 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
223 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
224 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
225 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
226 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
220 BPF_F_ALLOW_MULTI = 0x2 227 BPF_F_ALLOW_MULTI = 0x2
221 BPF_F_ALLOW_OVERRIDE = 0x1 228 BPF_F_ALLOW_OVERRIDE = 0x1
222 BPF_F_ANY_ALIGNMENT = 0x2 229 BPF_F_ANY_ALIGNMENT = 0x2
@@ -238,16 +245,19 @@ const (
238 BPF_F_PSEUDO_HDR = 0x10 245 BPF_F_PSEUDO_HDR = 0x10
239 BPF_F_QUERY_EFFECTIVE = 0x1 246 BPF_F_QUERY_EFFECTIVE = 0x1
240 BPF_F_RDONLY = 0x8 247 BPF_F_RDONLY = 0x8
248 BPF_F_RDONLY_PROG = 0x80
241 BPF_F_RECOMPUTE_CSUM = 0x1 249 BPF_F_RECOMPUTE_CSUM = 0x1
242 BPF_F_REUSE_STACKID = 0x400 250 BPF_F_REUSE_STACKID = 0x400
243 BPF_F_SEQ_NUMBER = 0x8 251 BPF_F_SEQ_NUMBER = 0x8
244 BPF_F_SKIP_FIELD_MASK = 0xff 252 BPF_F_SKIP_FIELD_MASK = 0xff
245 BPF_F_STACK_BUILD_ID = 0x20 253 BPF_F_STACK_BUILD_ID = 0x20
246 BPF_F_STRICT_ALIGNMENT = 0x1 254 BPF_F_STRICT_ALIGNMENT = 0x1
255 BPF_F_SYSCTL_BASE_NAME = 0x1
247 BPF_F_TUNINFO_IPV6 = 0x1 256 BPF_F_TUNINFO_IPV6 = 0x1
248 BPF_F_USER_BUILD_ID = 0x800 257 BPF_F_USER_BUILD_ID = 0x800
249 BPF_F_USER_STACK = 0x100 258 BPF_F_USER_STACK = 0x100
250 BPF_F_WRONLY = 0x10 259 BPF_F_WRONLY = 0x10
260 BPF_F_WRONLY_PROG = 0x100
251 BPF_F_ZERO_CSUM_TX = 0x2 261 BPF_F_ZERO_CSUM_TX = 0x2
252 BPF_F_ZERO_SEED = 0x40 262 BPF_F_ZERO_SEED = 0x40
253 BPF_H = 0x8 263 BPF_H = 0x8
@@ -290,8 +300,10 @@ const (
290 BPF_OR = 0x40 300 BPF_OR = 0x40
291 BPF_PSEUDO_CALL = 0x1 301 BPF_PSEUDO_CALL = 0x1
292 BPF_PSEUDO_MAP_FD = 0x1 302 BPF_PSEUDO_MAP_FD = 0x1
303 BPF_PSEUDO_MAP_VALUE = 0x2
293 BPF_RET = 0x6 304 BPF_RET = 0x6
294 BPF_RSH = 0x70 305 BPF_RSH = 0x70
306 BPF_SK_STORAGE_GET_F_CREATE = 0x1
295 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 307 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
296 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 308 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
297 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 309 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -334,6 +346,45 @@ const (
334 CAN_SFF_MASK = 0x7ff 346 CAN_SFF_MASK = 0x7ff
335 CAN_TP16 = 0x3 347 CAN_TP16 = 0x3
336 CAN_TP20 = 0x4 348 CAN_TP20 = 0x4
349 CAP_AUDIT_CONTROL = 0x1e
350 CAP_AUDIT_READ = 0x25
351 CAP_AUDIT_WRITE = 0x1d
352 CAP_BLOCK_SUSPEND = 0x24
353 CAP_CHOWN = 0x0
354 CAP_DAC_OVERRIDE = 0x1
355 CAP_DAC_READ_SEARCH = 0x2
356 CAP_FOWNER = 0x3
357 CAP_FSETID = 0x4
358 CAP_IPC_LOCK = 0xe
359 CAP_IPC_OWNER = 0xf
360 CAP_KILL = 0x5
361 CAP_LAST_CAP = 0x25
362 CAP_LEASE = 0x1c
363 CAP_LINUX_IMMUTABLE = 0x9
364 CAP_MAC_ADMIN = 0x21
365 CAP_MAC_OVERRIDE = 0x20
366 CAP_MKNOD = 0x1b
367 CAP_NET_ADMIN = 0xc
368 CAP_NET_BIND_SERVICE = 0xa
369 CAP_NET_BROADCAST = 0xb
370 CAP_NET_RAW = 0xd
371 CAP_SETFCAP = 0x1f
372 CAP_SETGID = 0x6
373 CAP_SETPCAP = 0x8
374 CAP_SETUID = 0x7
375 CAP_SYSLOG = 0x22
376 CAP_SYS_ADMIN = 0x15
377 CAP_SYS_BOOT = 0x16
378 CAP_SYS_CHROOT = 0x12
379 CAP_SYS_MODULE = 0x10
380 CAP_SYS_NICE = 0x17
381 CAP_SYS_PACCT = 0x14
382 CAP_SYS_PTRACE = 0x13
383 CAP_SYS_RAWIO = 0x11
384 CAP_SYS_RESOURCE = 0x18
385 CAP_SYS_TIME = 0x19
386 CAP_SYS_TTY_CONFIG = 0x1a
387 CAP_WAKE_ALARM = 0x23
337 CBAUD = 0x100f 388 CBAUD = 0x100f
338 CBAUDEX = 0x1000 389 CBAUDEX = 0x1000
339 CFLUSH = 0xf 390 CFLUSH = 0xf
@@ -372,6 +423,7 @@ const (
372 CLONE_NEWUTS = 0x4000000 423 CLONE_NEWUTS = 0x4000000
373 CLONE_PARENT = 0x8000 424 CLONE_PARENT = 0x8000
374 CLONE_PARENT_SETTID = 0x100000 425 CLONE_PARENT_SETTID = 0x100000
426 CLONE_PIDFD = 0x1000
375 CLONE_PTRACE = 0x2000 427 CLONE_PTRACE = 0x2000
376 CLONE_SETTLS = 0x80000 428 CLONE_SETTLS = 0x80000
377 CLONE_SIGHAND = 0x800 429 CLONE_SIGHAND = 0x800
@@ -488,6 +540,7 @@ const (
488 ETH_P_DNA_RC = 0x6002 540 ETH_P_DNA_RC = 0x6002
489 ETH_P_DNA_RT = 0x6003 541 ETH_P_DNA_RT = 0x6003
490 ETH_P_DSA = 0x1b 542 ETH_P_DSA = 0x1b
543 ETH_P_DSA_8021Q = 0xdadb
491 ETH_P_ECONET = 0x18 544 ETH_P_ECONET = 0x18
492 ETH_P_EDSA = 0xdada 545 ETH_P_EDSA = 0xdada
493 ETH_P_ERSPAN = 0x88be 546 ETH_P_ERSPAN = 0x88be
@@ -668,6 +721,7 @@ const (
668 F_OFD_SETLKW = 0x26 721 F_OFD_SETLKW = 0x26
669 F_OK = 0x0 722 F_OK = 0x0
670 F_RDLCK = 0x0 723 F_RDLCK = 0x0
724 F_SEAL_FUTURE_WRITE = 0x10
671 F_SEAL_GROW = 0x4 725 F_SEAL_GROW = 0x4
672 F_SEAL_SEAL = 0x1 726 F_SEAL_SEAL = 0x1
673 F_SEAL_SHRINK = 0x2 727 F_SEAL_SHRINK = 0x2
@@ -933,6 +987,7 @@ const (
933 IPV6_RECVRTHDR = 0x38 987 IPV6_RECVRTHDR = 0x38
934 IPV6_RECVTCLASS = 0x42 988 IPV6_RECVTCLASS = 0x42
935 IPV6_ROUTER_ALERT = 0x16 989 IPV6_ROUTER_ALERT = 0x16
990 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
936 IPV6_RTHDR = 0x39 991 IPV6_RTHDR = 0x39
937 IPV6_RTHDRDSTOPTS = 0x37 992 IPV6_RTHDRDSTOPTS = 0x37
938 IPV6_RTHDR_LOOSE = 0x0 993 IPV6_RTHDR_LOOSE = 0x0
@@ -1095,6 +1150,20 @@ const (
1095 LOCK_NB = 0x4 1150 LOCK_NB = 0x4
1096 LOCK_SH = 0x1 1151 LOCK_SH = 0x1
1097 LOCK_UN = 0x8 1152 LOCK_UN = 0x8
1153 LOOP_CLR_FD = 0x4c01
1154 LOOP_CTL_ADD = 0x4c80
1155 LOOP_CTL_GET_FREE = 0x4c82
1156 LOOP_CTL_REMOVE = 0x4c81
1157 LOOP_GET_STATUS = 0x4c03
1158 LOOP_GET_STATUS64 = 0x4c05
1159 LOOP_SET_BLOCK_SIZE = 0x4c09
1160 LOOP_SET_CAPACITY = 0x4c07
1161 LOOP_SET_DIRECT_IO = 0x4c08
1162 LOOP_SET_FD = 0x4c00
1163 LOOP_SET_STATUS = 0x4c02
1164 LOOP_SET_STATUS64 = 0x4c04
1165 LO_KEY_SIZE = 0x20
1166 LO_NAME_SIZE = 0x40
1098 MADV_DODUMP = 0x11 1167 MADV_DODUMP = 0x11
1099 MADV_DOFORK = 0xb 1168 MADV_DOFORK = 0xb
1100 MADV_DONTDUMP = 0x10 1169 MADV_DONTDUMP = 0x10
@@ -1337,6 +1406,10 @@ const (
1337 NLM_F_ROOT = 0x100 1406 NLM_F_ROOT = 0x100
1338 NOFLSH = 0x80 1407 NOFLSH = 0x80
1339 NSFS_MAGIC = 0x6e736673 1408 NSFS_MAGIC = 0x6e736673
1409 NS_GET_NSTYPE = 0xb703
1410 NS_GET_OWNER_UID = 0xb704
1411 NS_GET_PARENT = 0xb702
1412 NS_GET_USERNS = 0xb701
1340 OCFS2_SUPER_MAGIC = 0x7461636f 1413 OCFS2_SUPER_MAGIC = 0x7461636f
1341 OCRNL = 0x8 1414 OCRNL = 0x8
1342 OFDEL = 0x80 1415 OFDEL = 0x80
@@ -2019,6 +2092,10 @@ const (
2019 SIOCGSKNS = 0x894c 2092 SIOCGSKNS = 0x894c
2020 SIOCGSTAMP = 0x8906 2093 SIOCGSTAMP = 0x8906
2021 SIOCGSTAMPNS = 0x8907 2094 SIOCGSTAMPNS = 0x8907
2095 SIOCGSTAMPNS_NEW = 0x80108907
2096 SIOCGSTAMPNS_OLD = 0x8907
2097 SIOCGSTAMP_NEW = 0x80108906
2098 SIOCGSTAMP_OLD = 0x8906
2022 SIOCINQ = 0x541b 2099 SIOCINQ = 0x541b
2023 SIOCOUTQ = 0x5411 2100 SIOCOUTQ = 0x5411
2024 SIOCOUTQNSD = 0x894b 2101 SIOCOUTQNSD = 0x894b
@@ -2226,6 +2303,7 @@ const (
2226 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2303 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2227 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2304 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2228 SYNC_FILE_RANGE_WRITE = 0x2 2305 SYNC_FILE_RANGE_WRITE = 0x2
2306 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2229 SYSFS_MAGIC = 0x62656572 2307 SYSFS_MAGIC = 0x62656572
2230 S_BLKSIZE = 0x200 2308 S_BLKSIZE = 0x200
2231 S_IEXEC = 0x40 2309 S_IEXEC = 0x40
@@ -2445,6 +2523,7 @@ const (
2445 TS_COMM_LEN = 0x20 2523 TS_COMM_LEN = 0x20
2446 TUNATTACHFILTER = 0x401054d5 2524 TUNATTACHFILTER = 0x401054d5
2447 TUNDETACHFILTER = 0x401054d6 2525 TUNDETACHFILTER = 0x401054d6
2526 TUNGETDEVNETNS = 0x54e3
2448 TUNGETFEATURES = 0x800454cf 2527 TUNGETFEATURES = 0x800454cf
2449 TUNGETFILTER = 0x801054db 2528 TUNGETFILTER = 0x801054db
2450 TUNGETIFF = 0x800454d2 2529 TUNGETIFF = 0x800454d2
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
index 58067c5..b78e49f 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
@@ -199,6 +199,8 @@ const (
199 BPF_A = 0x10 199 BPF_A = 0x10
200 BPF_ABS = 0x20 200 BPF_ABS = 0x20
201 BPF_ADD = 0x0 201 BPF_ADD = 0x0
202 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
203 BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
202 BPF_ALU = 0x4 204 BPF_ALU = 0x4
203 BPF_ALU64 = 0x7 205 BPF_ALU64 = 0x7
204 BPF_AND = 0x50 206 BPF_AND = 0x50
@@ -220,6 +222,11 @@ const (
220 BPF_FROM_BE = 0x8 222 BPF_FROM_BE = 0x8
221 BPF_FROM_LE = 0x0 223 BPF_FROM_LE = 0x0
222 BPF_FS_MAGIC = 0xcafe4a11 224 BPF_FS_MAGIC = 0xcafe4a11
225 BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
226 BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
227 BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
228 BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
229 BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
223 BPF_F_ALLOW_MULTI = 0x2 230 BPF_F_ALLOW_MULTI = 0x2
224 BPF_F_ALLOW_OVERRIDE = 0x1 231 BPF_F_ALLOW_OVERRIDE = 0x1
225 BPF_F_ANY_ALIGNMENT = 0x2 232 BPF_F_ANY_ALIGNMENT = 0x2
@@ -241,16 +248,19 @@ const (
241 BPF_F_PSEUDO_HDR = 0x10 248 BPF_F_PSEUDO_HDR = 0x10
242 BPF_F_QUERY_EFFECTIVE = 0x1 249 BPF_F_QUERY_EFFECTIVE = 0x1
243 BPF_F_RDONLY = 0x8 250 BPF_F_RDONLY = 0x8
251 BPF_F_RDONLY_PROG = 0x80
244 BPF_F_RECOMPUTE_CSUM = 0x1 252 BPF_F_RECOMPUTE_CSUM = 0x1
245 BPF_F_REUSE_STACKID = 0x400 253 BPF_F_REUSE_STACKID = 0x400
246 BPF_F_SEQ_NUMBER = 0x8 254 BPF_F_SEQ_NUMBER = 0x8
247 BPF_F_SKIP_FIELD_MASK = 0xff 255 BPF_F_SKIP_FIELD_MASK = 0xff
248 BPF_F_STACK_BUILD_ID = 0x20 256 BPF_F_STACK_BUILD_ID = 0x20
249 BPF_F_STRICT_ALIGNMENT = 0x1 257 BPF_F_STRICT_ALIGNMENT = 0x1
258 BPF_F_SYSCTL_BASE_NAME = 0x1
250 BPF_F_TUNINFO_IPV6 = 0x1 259 BPF_F_TUNINFO_IPV6 = 0x1
251 BPF_F_USER_BUILD_ID = 0x800 260 BPF_F_USER_BUILD_ID = 0x800
252 BPF_F_USER_STACK = 0x100 261 BPF_F_USER_STACK = 0x100
253 BPF_F_WRONLY = 0x10 262 BPF_F_WRONLY = 0x10
263 BPF_F_WRONLY_PROG = 0x100
254 BPF_F_ZERO_CSUM_TX = 0x2 264 BPF_F_ZERO_CSUM_TX = 0x2
255 BPF_F_ZERO_SEED = 0x40 265 BPF_F_ZERO_SEED = 0x40
256 BPF_H = 0x8 266 BPF_H = 0x8
@@ -293,8 +303,10 @@ const (
293 BPF_OR = 0x40 303 BPF_OR = 0x40
294 BPF_PSEUDO_CALL = 0x1 304 BPF_PSEUDO_CALL = 0x1
295 BPF_PSEUDO_MAP_FD = 0x1 305 BPF_PSEUDO_MAP_FD = 0x1
306 BPF_PSEUDO_MAP_VALUE = 0x2
296 BPF_RET = 0x6 307 BPF_RET = 0x6
297 BPF_RSH = 0x70 308 BPF_RSH = 0x70
309 BPF_SK_STORAGE_GET_F_CREATE = 0x1
298 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 310 BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
299 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 311 BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
300 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 312 BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
@@ -337,6 +349,45 @@ const (
337 CAN_SFF_MASK = 0x7ff 349 CAN_SFF_MASK = 0x7ff
338 CAN_TP16 = 0x3 350 CAN_TP16 = 0x3
339 CAN_TP20 = 0x4 351 CAN_TP20 = 0x4
352 CAP_AUDIT_CONTROL = 0x1e
353 CAP_AUDIT_READ = 0x25
354 CAP_AUDIT_WRITE = 0x1d
355 CAP_BLOCK_SUSPEND = 0x24
356 CAP_CHOWN = 0x0
357 CAP_DAC_OVERRIDE = 0x1
358 CAP_DAC_READ_SEARCH = 0x2
359 CAP_FOWNER = 0x3
360 CAP_FSETID = 0x4
361 CAP_IPC_LOCK = 0xe
362 CAP_IPC_OWNER = 0xf
363 CAP_KILL = 0x5
364 CAP_LAST_CAP = 0x25
365 CAP_LEASE = 0x1c
366 CAP_LINUX_IMMUTABLE = 0x9
367 CAP_MAC_ADMIN = 0x21
368 CAP_MAC_OVERRIDE = 0x20
369 CAP_MKNOD = 0x1b
370 CAP_NET_ADMIN = 0xc
371 CAP_NET_BIND_SERVICE = 0xa
372 CAP_NET_BROADCAST = 0xb
373 CAP_NET_RAW = 0xd
374 CAP_SETFCAP = 0x1f
375 CAP_SETGID = 0x6
376 CAP_SETPCAP = 0x8
377 CAP_SETUID = 0x7
378 CAP_SYSLOG = 0x22
379 CAP_SYS_ADMIN = 0x15
380 CAP_SYS_BOOT = 0x16
381 CAP_SYS_CHROOT = 0x12
382 CAP_SYS_MODULE = 0x10
383 CAP_SYS_NICE = 0x17
384 CAP_SYS_PACCT = 0x14
385 CAP_SYS_PTRACE = 0x13
386 CAP_SYS_RAWIO = 0x11
387 CAP_SYS_RESOURCE = 0x18
388 CAP_SYS_TIME = 0x19
389 CAP_SYS_TTY_CONFIG = 0x1a
390 CAP_WAKE_ALARM = 0x23
340 CBAUD = 0x100f 391 CBAUD = 0x100f
341 CBAUDEX = 0x1000 392 CBAUDEX = 0x1000
342 CFLUSH = 0xf 393 CFLUSH = 0xf
@@ -375,6 +426,7 @@ const (
375 CLONE_NEWUTS = 0x4000000 426 CLONE_NEWUTS = 0x4000000
376 CLONE_PARENT = 0x8000 427 CLONE_PARENT = 0x8000
377 CLONE_PARENT_SETTID = 0x100000 428 CLONE_PARENT_SETTID = 0x100000
429 CLONE_PIDFD = 0x1000
378 CLONE_PTRACE = 0x2000 430 CLONE_PTRACE = 0x2000
379 CLONE_SETTLS = 0x80000 431 CLONE_SETTLS = 0x80000
380 CLONE_SIGHAND = 0x800 432 CLONE_SIGHAND = 0x800
@@ -492,6 +544,7 @@ const (
492 ETH_P_DNA_RC = 0x6002 544 ETH_P_DNA_RC = 0x6002
493 ETH_P_DNA_RT = 0x6003 545 ETH_P_DNA_RT = 0x6003
494 ETH_P_DSA = 0x1b 546 ETH_P_DSA = 0x1b
547 ETH_P_DSA_8021Q = 0xdadb
495 ETH_P_ECONET = 0x18 548 ETH_P_ECONET = 0x18
496 ETH_P_EDSA = 0xdada 549 ETH_P_EDSA = 0xdada
497 ETH_P_ERSPAN = 0x88be 550 ETH_P_ERSPAN = 0x88be
@@ -672,6 +725,7 @@ const (
672 F_OFD_SETLKW = 0x26 725 F_OFD_SETLKW = 0x26
673 F_OK = 0x0 726 F_OK = 0x0
674 F_RDLCK = 0x1 727 F_RDLCK = 0x1
728 F_SEAL_FUTURE_WRITE = 0x10
675 F_SEAL_GROW = 0x4 729 F_SEAL_GROW = 0x4
676 F_SEAL_SEAL = 0x1 730 F_SEAL_SEAL = 0x1
677 F_SEAL_SHRINK = 0x2 731 F_SEAL_SHRINK = 0x2
@@ -937,6 +991,7 @@ const (
937 IPV6_RECVRTHDR = 0x38 991 IPV6_RECVRTHDR = 0x38
938 IPV6_RECVTCLASS = 0x42 992 IPV6_RECVTCLASS = 0x42
939 IPV6_ROUTER_ALERT = 0x16 993 IPV6_ROUTER_ALERT = 0x16
994 IPV6_ROUTER_ALERT_ISOLATE = 0x1e
940 IPV6_RTHDR = 0x39 995 IPV6_RTHDR = 0x39
941 IPV6_RTHDRDSTOPTS = 0x37 996 IPV6_RTHDRDSTOPTS = 0x37
942 IPV6_RTHDR_LOOSE = 0x0 997 IPV6_RTHDR_LOOSE = 0x0
@@ -1099,6 +1154,20 @@ const (
1099 LOCK_NB = 0x4 1154 LOCK_NB = 0x4
1100 LOCK_SH = 0x1 1155 LOCK_SH = 0x1
1101 LOCK_UN = 0x8 1156 LOCK_UN = 0x8
1157 LOOP_CLR_FD = 0x4c01
1158 LOOP_CTL_ADD = 0x4c80
1159 LOOP_CTL_GET_FREE = 0x4c82
1160 LOOP_CTL_REMOVE = 0x4c81
1161 LOOP_GET_STATUS = 0x4c03
1162 LOOP_GET_STATUS64 = 0x4c05
1163 LOOP_SET_BLOCK_SIZE = 0x4c09
1164 LOOP_SET_CAPACITY = 0x4c07
1165 LOOP_SET_DIRECT_IO = 0x4c08
1166 LOOP_SET_FD = 0x4c00
1167 LOOP_SET_STATUS = 0x4c02
1168 LOOP_SET_STATUS64 = 0x4c04
1169 LO_KEY_SIZE = 0x20
1170 LO_NAME_SIZE = 0x40
1102 MADV_DODUMP = 0x11 1171 MADV_DODUMP = 0x11
1103 MADV_DOFORK = 0xb 1172 MADV_DOFORK = 0xb
1104 MADV_DONTDUMP = 0x10 1173 MADV_DONTDUMP = 0x10
@@ -1341,6 +1410,10 @@ const (
1341 NLM_F_ROOT = 0x100 1410 NLM_F_ROOT = 0x100
1342 NOFLSH = 0x80 1411 NOFLSH = 0x80
1343 NSFS_MAGIC = 0x6e736673 1412 NSFS_MAGIC = 0x6e736673
1413 NS_GET_NSTYPE = 0x2000b703
1414 NS_GET_OWNER_UID = 0x2000b704
1415 NS_GET_PARENT = 0x2000b702
1416 NS_GET_USERNS = 0x2000b701
1344 OCFS2_SUPER_MAGIC = 0x7461636f 1417 OCFS2_SUPER_MAGIC = 0x7461636f
1345 OCRNL = 0x8 1418 OCRNL = 0x8
1346 OFDEL = 0x80 1419 OFDEL = 0x80
@@ -2011,6 +2084,10 @@ const (
2011 SIOCGSKNS = 0x894c 2084 SIOCGSKNS = 0x894c
2012 SIOCGSTAMP = 0x8906 2085 SIOCGSTAMP = 0x8906
2013 SIOCGSTAMPNS = 0x8907 2086 SIOCGSTAMPNS = 0x8907
2087 SIOCGSTAMPNS_NEW = 0x40108907
2088 SIOCGSTAMPNS_OLD = 0x8907
2089 SIOCGSTAMP_NEW = 0x40108906
2090 SIOCGSTAMP_OLD = 0x8906
2014 SIOCINQ = 0x4004667f 2091 SIOCINQ = 0x4004667f
2015 SIOCOUTQ = 0x40047473 2092 SIOCOUTQ = 0x40047473
2016 SIOCOUTQNSD = 0x894b 2093 SIOCOUTQNSD = 0x894b
@@ -2218,6 +2295,7 @@ const (
2218 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 2295 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
2219 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 2296 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
2220 SYNC_FILE_RANGE_WRITE = 0x2 2297 SYNC_FILE_RANGE_WRITE = 0x2
2298 SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
2221 SYSFS_MAGIC = 0x62656572 2299 SYSFS_MAGIC = 0x62656572
2222 S_BLKSIZE = 0x200 2300 S_BLKSIZE = 0x200
2223 S_IEXEC = 0x40 2301 S_IEXEC = 0x40
@@ -2434,6 +2512,7 @@ const (
2434 TS_COMM_LEN = 0x20 2512 TS_COMM_LEN = 0x20
2435 TUNATTACHFILTER = 0x801054d5 2513 TUNATTACHFILTER = 0x801054d5
2436 TUNDETACHFILTER = 0x801054d6 2514 TUNDETACHFILTER = 0x801054d6
2515 TUNGETDEVNETNS = 0x200054e3
2437 TUNGETFEATURES = 0x400454cf 2516 TUNGETFEATURES = 0x400454cf
2438 TUNGETFILTER = 0x401054db 2517 TUNGETFILTER = 0x401054db
2439 TUNGETIFF = 0x400454d2 2518 TUNGETIFF = 0x400454d2
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
index c4ec7ff..dd5ea36 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
@@ -377,16 +377,6 @@ func Munlockall() (err error) {
377 377
378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379 379
380func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
381 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { 380func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
391 _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) 381 _, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
392 if e1 != 0 { 382 if e1 != 0 {
@@ -1691,6 +1681,16 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1691 1681
1692// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1693 1683
1684func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
1685 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
1686 if e1 != 0 {
1687 err = errnoErr(e1)
1688 }
1689 return
1690}
1691
1692// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1693
1694func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { 1694func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
1695 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1695 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1696 sec = int32(r0) 1696 sec = int32(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
index 23346dc..78ca923 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
527 527
528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 529
530func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
531 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
532 if e1 != 0 {
533 err = errnoErr(e1)
534 }
535 return
536}
537
538func libc_ptrace_trampoline()
539
540//go:linkname libc_ptrace libc_ptrace
541//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
542
543// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
544
545func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { 530func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
546 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) 531 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
547 if e1 != 0 { 532 if e1 != 0 {
@@ -2341,6 +2326,21 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
2341 2326
2342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2327// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2343 2328
2329func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2330 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
2331 if e1 != 0 {
2332 err = errnoErr(e1)
2333 }
2334 return
2335}
2336
2337func libc_ptrace_trampoline()
2338
2339//go:linkname libc_ptrace libc_ptrace
2340//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
2341
2342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2343
2344func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { 2344func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
2345 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) 2345 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2346 sec = int32(r0) 2346 sec = int32(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
index 37b85b4..f40465c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
64 JMP libc_munlock(SB) 64 JMP libc_munlock(SB)
65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
66 JMP libc_munlockall(SB) 66 JMP libc_munlockall(SB)
67TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
68 JMP libc_ptrace(SB)
69TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 67TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
70 JMP libc_getattrlist(SB) 68 JMP libc_getattrlist(SB)
71TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 69TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
@@ -264,6 +262,8 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
264 JMP libc_mmap(SB) 262 JMP libc_mmap(SB)
265TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0 263TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
266 JMP libc_munmap(SB) 264 JMP libc_munmap(SB)
265TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
266 JMP libc_ptrace(SB)
267TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0 267TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
268 JMP libc_gettimeofday(SB) 268 JMP libc_gettimeofday(SB)
269TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0 269TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
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 c142e33..64df03c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
527 527
528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 529
530func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
531 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
532 if e1 != 0 {
533 err = errnoErr(e1)
534 }
535 return
536}
537
538func libc_ptrace_trampoline()
539
540//go:linkname libc_ptrace libc_ptrace
541//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
542
543// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
544
545func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { 530func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
546 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) 531 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
547 if e1 != 0 { 532 if e1 != 0 {
@@ -2356,6 +2341,21 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
2356 2341
2357// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2358 2343
2344func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2345 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
2346 if e1 != 0 {
2347 err = errnoErr(e1)
2348 }
2349 return
2350}
2351
2352func libc_ptrace_trampoline()
2353
2354//go:linkname libc_ptrace libc_ptrace
2355//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
2356
2357// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2358
2359func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { 2359func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
2360 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) 2360 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2361 sec = int64(r0) 2361 sec = int64(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
index 1a39151..debcb8e 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
64 JMP libc_munlock(SB) 64 JMP libc_munlock(SB)
65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
66 JMP libc_munlockall(SB) 66 JMP libc_munlockall(SB)
67TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
68 JMP libc_ptrace(SB)
69TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 67TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
70 JMP libc_getattrlist(SB) 68 JMP libc_getattrlist(SB)
71TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 69TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
@@ -266,6 +264,8 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
266 JMP libc_mmap(SB) 264 JMP libc_mmap(SB)
267TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0 265TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
268 JMP libc_munmap(SB) 266 JMP libc_munmap(SB)
267TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
268 JMP libc_ptrace(SB)
269TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0 269TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
270 JMP libc_gettimeofday(SB) 270 JMP libc_gettimeofday(SB)
271TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0 271TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
index 01cffbf..ed33062 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
527 527
528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 529
530func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
531 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
532 if e1 != 0 {
533 err = errnoErr(e1)
534 }
535 return
536}
537
538func libc_ptrace_trampoline()
539
540//go:linkname libc_ptrace libc_ptrace
541//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
542
543// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
544
545func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { 530func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
546 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) 531 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
547 if e1 != 0 { 532 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
index 994056f..66af9f4 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
64 JMP libc_munlock(SB) 64 JMP libc_munlock(SB)
65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
66 JMP libc_munlockall(SB) 66 JMP libc_munlockall(SB)
67TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
68 JMP libc_ptrace(SB)
69TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 67TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
70 JMP libc_getattrlist(SB) 68 JMP libc_getattrlist(SB)
71TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 69TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
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 8f2691d..5258a73 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
527 527
528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 529
530func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
531 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
532 if e1 != 0 {
533 err = errnoErr(e1)
534 }
535 return
536}
537
538func libc_ptrace_trampoline()
539
540//go:linkname libc_ptrace libc_ptrace
541//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
542
543// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
544
545func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { 530func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
546 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) 531 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
547 if e1 != 0 { 532 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
index 61dc0d4..f57f48f 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
64 JMP libc_munlock(SB) 64 JMP libc_munlock(SB)
65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0 65TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
66 JMP libc_munlockall(SB) 66 JMP libc_munlockall(SB)
67TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
68 JMP libc_ptrace(SB)
69TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0 67TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
70 JMP libc_getattrlist(SB) 68 JMP libc_getattrlist(SB)
71TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0 69TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
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 ae9f1a2..cdfe931 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
@@ -749,6 +749,23 @@ func Ftruncate(fd int, length int64) (err error) {
749 749
750// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 750// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
751 751
752func Getdents(fd int, buf []byte) (n int, err error) {
753 var _p0 unsafe.Pointer
754 if len(buf) > 0 {
755 _p0 = unsafe.Pointer(&buf[0])
756 } else {
757 _p0 = unsafe.Pointer(&_zero)
758 }
759 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
760 n = int(r0)
761 if e1 != 0 {
762 err = errnoErr(e1)
763 }
764 return
765}
766
767// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
768
752func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 769func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
753 var _p0 unsafe.Pointer 770 var _p0 unsafe.Pointer
754 if len(buf) > 0 { 771 if len(buf) > 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 80903e4..a783306 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
@@ -387,6 +387,16 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func ptrace(request int, pid int, addr uintptr, data int) (err error) {
391 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
392 if e1 != 0 {
393 err = errnoErr(e1)
394 }
395 return
396}
397
398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
399
390func Getcwd(buf []byte) (n int, err error) { 400func Getcwd(buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 401 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 402 if len(buf) > 0 {
@@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
1019 1029
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021 1031
1022func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) { 1032func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
1023 var _p0 unsafe.Pointer 1033 var _p0 unsafe.Pointer
1024 if len(buf) > 0 { 1034 if len(buf) > 0 {
1025 _p0 = unsafe.Pointer(&buf[0]) 1035 _p0 = unsafe.Pointer(&buf[0])
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 cd250ff..f995520 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
@@ -387,6 +387,16 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func ptrace(request int, pid int, addr uintptr, data int) (err error) {
391 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
392 if e1 != 0 {
393 err = errnoErr(e1)
394 }
395 return
396}
397
398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
399
390func Getcwd(buf []byte) (n int, err error) { 400func Getcwd(buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 401 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 402 if len(buf) > 0 {
@@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
1019 1029
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021 1031
1022func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) { 1032func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
1023 var _p0 unsafe.Pointer 1033 var _p0 unsafe.Pointer
1024 if len(buf) > 0 { 1034 if len(buf) > 0 {
1025 _p0 = unsafe.Pointer(&buf[0]) 1035 _p0 = unsafe.Pointer(&buf[0])
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 290a9c2..d681acd 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
@@ -387,6 +387,16 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func ptrace(request int, pid int, addr uintptr, data int) (err error) {
391 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
392 if e1 != 0 {
393 err = errnoErr(e1)
394 }
395 return
396}
397
398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
399
390func Getcwd(buf []byte) (n int, err error) { 400func Getcwd(buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 401 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 402 if len(buf) > 0 {
@@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
1019 1029
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021 1031
1022func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) { 1032func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
1023 var _p0 unsafe.Pointer 1033 var _p0 unsafe.Pointer
1024 if len(buf) > 0 { 1034 if len(buf) > 0 {
1025 _p0 = unsafe.Pointer(&buf[0]) 1035 _p0 = unsafe.Pointer(&buf[0])
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 c6df9d2..5049b2e 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
@@ -404,6 +404,16 @@ func Getcwd(buf []byte) (n int, err error) {
404 404
405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
406 406
407func ptrace(request int, pid int, addr uintptr, data int) (err error) {
408 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
409 if e1 != 0 {
410 err = errnoErr(e1)
411 }
412 return
413}
414
415// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
416
407func ioctl(fd int, req uint, arg uintptr) (err error) { 417func ioctl(fd int, req uint, arg uintptr) (err error) {
408 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 418 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
409 if e1 != 0 { 419 if e1 != 0 {
@@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
1019 1029
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021 1031
1022func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) { 1032func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
1023 var _p0 unsafe.Pointer 1033 var _p0 unsafe.Pointer
1024 if len(buf) > 0 { 1034 if len(buf) > 0 {
1025 _p0 = unsafe.Pointer(&buf[0]) 1035 _p0 = unsafe.Pointer(&buf[0])
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
index 81d90a2..c5e46e4 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
index 0c18458..da8819e 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
index 18ef8a6..6ad9be6 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
index 2fba25d..f883317 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
index c330f4f..8eebc6c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
index 8e9e009..ecf62a6 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
index c22d626..1ba0f7b 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
index 700a99e..20012b2 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
index cec4c10..2b520de 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
index 677ef5a..d9f044c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
index 565034c..9feed65 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
index 7feb2c6..0a65150 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
index 07655c4..e27f669 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
@@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
408 408
409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 409// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
410 410
411func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
412 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
413 if e1 != 0 {
414 err = errnoErr(e1)
415 }
416 return
417}
418
419// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
420
421func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
422 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
423 if e1 != 0 {
424 err = errnoErr(e1)
425 }
426 return
427}
428
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430
411func Chdir(path string) (err error) { 431func Chdir(path string) (err error) {
412 var _p0 *byte 432 var _p0 *byte
413 _p0, err = BytePtrFromString(path) 433 _p0, err = BytePtrFromString(path)
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 642db76..7e05826 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
@@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
389 389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391 391
392func getdents(fd int, buf []byte) (n int, err error) { 392func Getdents(fd int, buf []byte) (n int, err error) {
393 var _p0 unsafe.Pointer 393 var _p0 unsafe.Pointer
394 if len(buf) > 0 { 394 if len(buf) > 0 {
395 _p0 = unsafe.Pointer(&buf[0]) 395 _p0 = unsafe.Pointer(&buf[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 59585fe..d94d076 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
@@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
389 389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391 391
392func getdents(fd int, buf []byte) (n int, err error) { 392func Getdents(fd int, buf []byte) (n int, err error) {
393 var _p0 unsafe.Pointer 393 var _p0 unsafe.Pointer
394 if len(buf) > 0 { 394 if len(buf) > 0 {
395 _p0 = unsafe.Pointer(&buf[0]) 395 _p0 = unsafe.Pointer(&buf[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 6ec3143..cf5bf3d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
@@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
389 389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391 391
392func getdents(fd int, buf []byte) (n int, err error) { 392func Getdents(fd int, buf []byte) (n int, err error) {
393 var _p0 unsafe.Pointer 393 var _p0 unsafe.Pointer
394 if len(buf) > 0 { 394 if len(buf) > 0 {
395 _p0 = unsafe.Pointer(&buf[0]) 395 _p0 = unsafe.Pointer(&buf[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 603d144..243a931 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
@@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
389 389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391 391
392func getdents(fd int, buf []byte) (n int, err error) { 392func Getdents(fd int, buf []byte) (n int, err error) {
393 var _p0 unsafe.Pointer 393 var _p0 unsafe.Pointer
394 if len(buf) > 0 { 394 if len(buf) > 0 {
395 _p0 = unsafe.Pointer(&buf[0]) 395 _p0 = unsafe.Pointer(&buf[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 6a489fa..a9532d0 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
@@ -387,7 +387,7 @@ func pipe(p *[2]_C_int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func getdents(fd int, buf []byte) (n int, err error) { 390func Getdents(fd int, buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 391 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 392 if len(buf) > 0 {
393 _p0 = unsafe.Pointer(&buf[0]) 393 _p0 = unsafe.Pointer(&buf[0])
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 30cba43..0cb9f01 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
@@ -387,7 +387,7 @@ func pipe(p *[2]_C_int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func getdents(fd int, buf []byte) (n int, err error) { 390func Getdents(fd int, buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 391 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 392 if len(buf) > 0 {
393 _p0 = unsafe.Pointer(&buf[0]) 393 _p0 = unsafe.Pointer(&buf[0])
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 fa1beda..6fc99b5 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
@@ -387,7 +387,7 @@ func pipe(p *[2]_C_int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func getdents(fd int, buf []byte) (n int, err error) { 390func Getdents(fd int, buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 391 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 392 if len(buf) > 0 {
393 _p0 = unsafe.Pointer(&buf[0]) 393 _p0 = unsafe.Pointer(&buf[0])
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 eb58990..27878a7 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
@@ -387,7 +387,7 @@ func pipe(p *[2]_C_int) (err error) {
387 387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 389
390func getdents(fd int, buf []byte) (n int, err error) { 390func Getdents(fd int, buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer 391 var _p0 unsafe.Pointer
392 if len(buf) > 0 { 392 if len(buf) > 0 {
393 _p0 = unsafe.Pointer(&buf[0]) 393 _p0 = unsafe.Pointer(&buf[0])
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
index 55c3a32..9474974 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
@@ -1,4 +1,4 @@
1// go run mksysnum.go https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master 1// go run mksysnum.go https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master
2// Code generated by the command above; see README.md. DO NOT EDIT. 2// Code generated by the command above; see README.md. DO NOT EDIT.
3 3
4// +build 386,freebsd 4// +build 386,freebsd
@@ -118,8 +118,6 @@ const (
118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); }
119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); }
120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); }
121 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); }
122 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); }
123 SYS_SETFIB = 175 // { int setfib(int fibnum); } 121 SYS_SETFIB = 175 // { int setfib(int fibnum); }
124 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 122 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
125 SYS_SETGID = 181 // { int setgid(gid_t gid); } 123 SYS_SETGID = 181 // { int setgid(gid_t gid); }
@@ -133,10 +131,6 @@ const (
133 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int 131 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
134 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int 132 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
135 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); } 133 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
136 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); }
137 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, off_t offset, int whence); }
138 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, off_t length); }
139 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, off_t length); }
140 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int 134 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int
141 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 135 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
142 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 136 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
@@ -164,6 +158,7 @@ const (
164 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 158 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
165 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); } 159 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); }
166 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); } 160 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); }
161 SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); }
167 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); } 162 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); }
168 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 163 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
169 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } 164 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
@@ -197,13 +192,10 @@ const (
197 SYS_GETSID = 310 // { int getsid(pid_t pid); } 192 SYS_GETSID = 310 // { int getsid(pid_t pid); }
198 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } 193 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
199 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } 194 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
200 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); } 195 SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); }
201 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } 196 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
202 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } 197 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
203 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } 198 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
204 SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
205 SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
206 SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, struct oaiocb * const *acb_list, int nent, struct osigevent *sig); }
207 SYS_YIELD = 321 // { int yield(void); } 199 SYS_YIELD = 321 // { int yield(void); }
208 SYS_MLOCKALL = 324 // { int mlockall(int how); } 200 SYS_MLOCKALL = 324 // { int mlockall(int how); }
209 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 201 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
@@ -236,7 +228,7 @@ const (
236 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } 228 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
237 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } 229 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
238 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } 230 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
239 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); } 231 SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); }
240 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } 232 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
241 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } 233 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
242 SYS_KQUEUE = 362 // { int kqueue(void); } 234 SYS_KQUEUE = 362 // { int kqueue(void); }
@@ -258,7 +250,7 @@ const (
258 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } 250 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
259 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } 251 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
260 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } 252 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); }
261 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int flags); } 253 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int mode); }
262 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); } 254 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); }
263 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 255 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
264 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } 256 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
@@ -293,8 +285,6 @@ const (
293 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 285 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
294 SYS_THR_SELF = 432 // { int thr_self(long *id); } 286 SYS_THR_SELF = 432 // { int thr_self(long *id); }
295 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 287 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
296 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
297 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
298 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 288 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
299 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } 289 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
300 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); } 290 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); }
@@ -400,4 +390,7 @@ const (
400 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } 390 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); }
401 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } 391 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); }
402 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } 392 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); }
393 SYS_NUMA_GETAFFINITY = 548 // { int numa_getaffinity(cpuwhich_t which, id_t id, struct vm_domain_policy_entry *policy); }
394 SYS_NUMA_SETAFFINITY = 549 // { int numa_setaffinity(cpuwhich_t which, id_t id, const struct vm_domain_policy_entry *policy); }
395 SYS_FDATASYNC = 550 // { int fdatasync(int fd); }
403) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
index b39be6c..48a7bea 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
@@ -1,4 +1,4 @@
1// go run mksysnum.go https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master 1// go run mksysnum.go https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master
2// Code generated by the command above; see README.md. DO NOT EDIT. 2// Code generated by the command above; see README.md. DO NOT EDIT.
3 3
4// +build amd64,freebsd 4// +build amd64,freebsd
@@ -118,8 +118,6 @@ const (
118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); }
119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); }
120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); }
121 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); }
122 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); }
123 SYS_SETFIB = 175 // { int setfib(int fibnum); } 121 SYS_SETFIB = 175 // { int setfib(int fibnum); }
124 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 122 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
125 SYS_SETGID = 181 // { int setgid(gid_t gid); } 123 SYS_SETGID = 181 // { int setgid(gid_t gid); }
@@ -133,10 +131,6 @@ const (
133 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int 131 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
134 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int 132 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
135 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); } 133 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
136 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); }
137 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, off_t offset, int whence); }
138 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, off_t length); }
139 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, off_t length); }
140 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int 134 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int
141 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 135 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
142 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 136 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
@@ -164,6 +158,7 @@ const (
164 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 158 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
165 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); } 159 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); }
166 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); } 160 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); }
161 SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); }
167 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); } 162 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); }
168 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 163 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
169 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } 164 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
@@ -197,13 +192,10 @@ const (
197 SYS_GETSID = 310 // { int getsid(pid_t pid); } 192 SYS_GETSID = 310 // { int getsid(pid_t pid); }
198 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } 193 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
199 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } 194 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
200 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); } 195 SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); }
201 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } 196 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
202 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } 197 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
203 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } 198 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
204 SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
205 SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
206 SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, struct oaiocb * const *acb_list, int nent, struct osigevent *sig); }
207 SYS_YIELD = 321 // { int yield(void); } 199 SYS_YIELD = 321 // { int yield(void); }
208 SYS_MLOCKALL = 324 // { int mlockall(int how); } 200 SYS_MLOCKALL = 324 // { int mlockall(int how); }
209 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 201 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
@@ -236,7 +228,7 @@ const (
236 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } 228 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
237 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } 229 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
238 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } 230 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
239 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); } 231 SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); }
240 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } 232 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
241 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } 233 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
242 SYS_KQUEUE = 362 // { int kqueue(void); } 234 SYS_KQUEUE = 362 // { int kqueue(void); }
@@ -258,7 +250,7 @@ const (
258 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } 250 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
259 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } 251 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
260 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } 252 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); }
261 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int flags); } 253 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int mode); }
262 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); } 254 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); }
263 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 255 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
264 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } 256 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
@@ -293,8 +285,6 @@ const (
293 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 285 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
294 SYS_THR_SELF = 432 // { int thr_self(long *id); } 286 SYS_THR_SELF = 432 // { int thr_self(long *id); }
295 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 287 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
296 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
297 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
298 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 288 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
299 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } 289 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
300 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); } 290 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); }
@@ -400,4 +390,7 @@ const (
400 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } 390 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); }
401 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } 391 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); }
402 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } 392 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); }
393 SYS_NUMA_GETAFFINITY = 548 // { int numa_getaffinity(cpuwhich_t which, id_t id, struct vm_domain_policy_entry *policy); }
394 SYS_NUMA_SETAFFINITY = 549 // { int numa_setaffinity(cpuwhich_t which, id_t id, const struct vm_domain_policy_entry *policy); }
395 SYS_FDATASYNC = 550 // { int fdatasync(int fd); }
403) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
index 44ffd4c..4a6dfd4 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
@@ -1,4 +1,4 @@
1// go run mksysnum.go https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master 1// go run mksysnum.go https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master
2// Code generated by the command above; see README.md. DO NOT EDIT. 2// Code generated by the command above; see README.md. DO NOT EDIT.
3 3
4// +build arm,freebsd 4// +build arm,freebsd
@@ -118,8 +118,6 @@ const (
118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); }
119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); }
120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); }
121 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); }
122 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); }
123 SYS_SETFIB = 175 // { int setfib(int fibnum); } 121 SYS_SETFIB = 175 // { int setfib(int fibnum); }
124 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 122 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
125 SYS_SETGID = 181 // { int setgid(gid_t gid); } 123 SYS_SETGID = 181 // { int setgid(gid_t gid); }
@@ -133,10 +131,6 @@ const (
133 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int 131 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
134 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int 132 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
135 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); } 133 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
136 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); }
137 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, off_t offset, int whence); }
138 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, off_t length); }
139 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, off_t length); }
140 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int 134 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int
141 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 135 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
142 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 136 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
@@ -164,6 +158,7 @@ const (
164 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 158 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
165 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); } 159 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); }
166 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); } 160 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); }
161 SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); }
167 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); } 162 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); }
168 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 163 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
169 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } 164 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
@@ -197,13 +192,10 @@ const (
197 SYS_GETSID = 310 // { int getsid(pid_t pid); } 192 SYS_GETSID = 310 // { int getsid(pid_t pid); }
198 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } 193 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
199 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } 194 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
200 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); } 195 SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); }
201 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } 196 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
202 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } 197 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
203 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } 198 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
204 SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
205 SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
206 SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, struct oaiocb * const *acb_list, int nent, struct osigevent *sig); }
207 SYS_YIELD = 321 // { int yield(void); } 199 SYS_YIELD = 321 // { int yield(void); }
208 SYS_MLOCKALL = 324 // { int mlockall(int how); } 200 SYS_MLOCKALL = 324 // { int mlockall(int how); }
209 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 201 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
@@ -236,7 +228,7 @@ const (
236 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } 228 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
237 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } 229 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
238 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } 230 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
239 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); } 231 SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); }
240 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } 232 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
241 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } 233 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
242 SYS_KQUEUE = 362 // { int kqueue(void); } 234 SYS_KQUEUE = 362 // { int kqueue(void); }
@@ -258,7 +250,7 @@ const (
258 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } 250 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
259 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } 251 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
260 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } 252 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); }
261 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int flags); } 253 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int mode); }
262 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); } 254 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); }
263 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 255 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
264 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } 256 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
@@ -293,8 +285,6 @@ const (
293 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 285 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
294 SYS_THR_SELF = 432 // { int thr_self(long *id); } 286 SYS_THR_SELF = 432 // { int thr_self(long *id); }
295 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 287 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
296 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
297 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
298 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 288 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
299 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } 289 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
300 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); } 290 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); }
@@ -400,4 +390,7 @@ const (
400 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } 390 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); }
401 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } 391 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); }
402 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } 392 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); }
393 SYS_NUMA_GETAFFINITY = 548 // { int numa_getaffinity(cpuwhich_t which, id_t id, struct vm_domain_policy_entry *policy); }
394 SYS_NUMA_SETAFFINITY = 549 // { int numa_setaffinity(cpuwhich_t which, id_t id, const struct vm_domain_policy_entry *policy); }
395 SYS_FDATASYNC = 550 // { int fdatasync(int fd); }
403) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go
index 9f21e95..3e51af8 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go
@@ -1,4 +1,4 @@
1// go run mksysnum.go https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master 1// go run mksysnum.go https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master
2// Code generated by the command above; see README.md. DO NOT EDIT. 2// Code generated by the command above; see README.md. DO NOT EDIT.
3 3
4// +build arm64,freebsd 4// +build arm64,freebsd
@@ -7,13 +7,13 @@ package unix
7 7
8const ( 8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int 9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ 10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit sys_exit_args void
11 SYS_FORK = 2 // { int fork(void); } 11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ 12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); }
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ 13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); }
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } 14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); } 15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ 16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); }
17 SYS_LINK = 9 // { int link(char *path, char *link); } 17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); } 18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); } 19 SYS_CHDIR = 12 // { int chdir(char *path); }
@@ -21,20 +21,20 @@ const (
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } 21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); } 22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } 23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ 24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int
25 SYS_GETPID = 20 // { pid_t getpid(void); } 25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \ 26 SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); }
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } 27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); } 28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); } 29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); } 30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ 31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ 32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ 33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, int flags); }
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ 34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, struct sockaddr * __restrict from, __socklen_t * __restrict fromlenaddr); }
35 SYS_ACCEPT = 30 // { int accept(int s, \ 35 SYS_ACCEPT = 30 // { int accept(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen); }
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ 36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); }
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ 37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); }
38 SYS_ACCESS = 33 // { int access(char *path, int amode); } 38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } 39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } 40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
@@ -42,56 +42,57 @@ const (
42 SYS_KILL = 37 // { int kill(int pid, int signum); } 42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); } 43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); } 44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); }
45 SYS_GETEGID = 43 // { gid_t getegid(void); } 46 SYS_GETEGID = 43 // { gid_t getegid(void); }
46 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ 47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); }
47 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ 48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); }
48 SYS_GETGID = 47 // { gid_t getgid(void); } 49 SYS_GETGID = 47 // { gid_t getgid(void); }
49 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ 50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); }
50 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } 51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
51 SYS_ACCT = 51 // { int acct(char *path); } 52 SYS_ACCT = 51 // { int acct(char *path); }
52 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ 53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); }
53 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ 54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
54 SYS_REBOOT = 55 // { int reboot(int opt); } 55 SYS_REBOOT = 55 // { int reboot(int opt); }
55 SYS_REVOKE = 56 // { int revoke(char *path); } 56 SYS_REVOKE = 56 // { int revoke(char *path); }
56 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } 57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
57 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ 58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, size_t count); }
58 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ 59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); }
59 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ 60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int
60 SYS_CHROOT = 61 // { int chroot(char *path); } 61 SYS_CHROOT = 61 // { int chroot(char *path); }
61 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ 62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); }
62 SYS_VFORK = 66 // { int vfork(void); } 63 SYS_VFORK = 66 // { int vfork(void); }
63 SYS_SBRK = 69 // { int sbrk(int incr); } 64 SYS_SBRK = 69 // { int sbrk(int incr); }
64 SYS_SSTK = 70 // { int sstk(int incr); } 65 SYS_SSTK = 70 // { int sstk(int incr); }
65 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ 66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise ovadvise_args int
66 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } 67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
67 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ 68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, int prot); }
68 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ 69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); }
69 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ 70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); }
70 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ 71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
71 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ 72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
72 SYS_GETPGRP = 81 // { int getpgrp(void); } 73 SYS_GETPGRP = 81 // { int getpgrp(void); }
73 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } 74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
74 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ 75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
75 SYS_SWAPON = 85 // { int swapon(char *name); } 76 SYS_SWAPON = 85 // { int swapon(char *name); }
76 SYS_GETITIMER = 86 // { int getitimer(u_int which, \ 77 SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
77 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } 78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
78 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } 79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
79 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } 80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
80 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ 81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
81 SYS_FSYNC = 95 // { int fsync(int fd); } 82 SYS_FSYNC = 95 // { int fsync(int fd); }
82 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ 83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); }
83 SYS_SOCKET = 97 // { int socket(int domain, int type, \ 84 SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); }
84 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ 85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); }
85 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } 86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
86 SYS_BIND = 104 // { int bind(int s, caddr_t name, \ 87 SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); }
87 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ 88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); }
88 SYS_LISTEN = 106 // { int listen(int s, int backlog); } 89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
89 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ 90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
90 SYS_GETRUSAGE = 117 // { int getrusage(int who, \ 91 SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); }
91 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ 92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); }
92 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ 93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
93 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ 94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); }
94 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ 95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
95 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } 96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
96 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } 97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
97 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } 98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
@@ -99,24 +100,24 @@ const (
99 SYS_RENAME = 128 // { int rename(char *from, char *to); } 100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
100 SYS_FLOCK = 131 // { int flock(int fd, int how); } 101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
101 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } 102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
102 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ 103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); }
103 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } 104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
104 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ 105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); }
105 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } 106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
106 SYS_RMDIR = 137 // { int rmdir(char *path); } 107 SYS_RMDIR = 137 // { int rmdir(char *path); }
107 SYS_UTIMES = 138 // { int utimes(char *path, \ 108 SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); }
108 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ 109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
109 SYS_SETSID = 147 // { int setsid(void); } 110 SYS_SETSID = 147 // { int setsid(void); }
110 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ 111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
111 SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); } 112 SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
112 SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); } 113 SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
113 SYS_LGETFH = 160 // { int lgetfh(char *fname, \ 114 SYS_LGETFH = 160 // { int lgetfh(char *fname, struct fhandle *fhp); }
114 SYS_GETFH = 161 // { int getfh(char *fname, \ 115 SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); }
115 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } 116 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
116 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ 117 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); }
117 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \ 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); }
118 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \ 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); }
119 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \ 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); }
120 SYS_SETFIB = 175 // { int setfib(int fibnum); } 121 SYS_SETFIB = 175 // { int setfib(int fibnum); }
121 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 122 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
122 SYS_SETGID = 181 // { int setgid(gid_t gid); } 123 SYS_SETGID = 181 // { int setgid(gid_t gid); }
@@ -127,269 +128,269 @@ const (
127 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } 128 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
128 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } 129 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
129 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } 130 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
130 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ 131 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
131 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ 132 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
132 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ 133 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
133 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ 134 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int
134 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 135 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
135 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 136 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
136 SYS_UNDELETE = 205 // { int undelete(char *path); } 137 SYS_UNDELETE = 205 // { int undelete(char *path); }
137 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } 138 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
138 SYS_GETPGID = 207 // { int getpgid(pid_t pid); } 139 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
139 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ 140 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); }
140 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \ 141 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); }
141 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \ 142 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, size_t nsops); }
142 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } 143 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
143 SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \ 144 SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
144 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \ 145 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
145 SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \ 146 SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, int shmflg); }
146 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } 147 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
147 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \ 148 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); }
148 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ 149 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); }
149 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ 150 SYS_CLOCK_SETTIME = 233 // { int clock_settime( clockid_t clock_id, const struct timespec *tp); }
150 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ 151 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); }
151 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ 152 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); }
152 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } 153 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
153 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ 154 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); }
154 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ 155 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct itimerspec *value); }
155 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } 156 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
156 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ 157 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
157 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 158 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
158 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ 159 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( struct ffclock_estimate *cest); }
159 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ 160 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( struct ffclock_estimate *cest); }
160 SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, \ 161 SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); }
161 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ 162 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,int which, clockid_t *clock_id); }
162 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 163 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
163 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ 164 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
164 SYS_RFORK = 251 // { int rfork(int flags); } 165 SYS_RFORK = 251 // { int rfork(int flags); }
165 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ 166 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, u_int nfds, int timeout); }
166 SYS_ISSETUGID = 253 // { int issetugid(void); } 167 SYS_ISSETUGID = 253 // { int issetugid(void); }
167 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } 168 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
168 SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); } 169 SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
169 SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); } 170 SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
170 SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \ 171 SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
171 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ 172 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, size_t count); }
172 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } 173 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
173 SYS_LUTIMES = 276 // { int lutimes(char *path, \ 174 SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); }
174 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } 175 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
175 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } 176 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
176 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } 177 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
177 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ 178 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); }
178 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ 179 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); }
179 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ 180 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); }
180 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ 181 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
181 SYS_MODNEXT = 300 // { int modnext(int modid); } 182 SYS_MODNEXT = 300 // { int modnext(int modid); }
182 SYS_MODSTAT = 301 // { int modstat(int modid, \ 183 SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat *stat); }
183 SYS_MODFNEXT = 302 // { int modfnext(int modid); } 184 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
184 SYS_MODFIND = 303 // { int modfind(const char *name); } 185 SYS_MODFIND = 303 // { int modfind(const char *name); }
185 SYS_KLDLOAD = 304 // { int kldload(const char *file); } 186 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
186 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } 187 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
187 SYS_KLDFIND = 306 // { int kldfind(const char *file); } 188 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
188 SYS_KLDNEXT = 307 // { int kldnext(int fileid); } 189 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
189 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ 190 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat* stat); }
190 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } 191 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
191 SYS_GETSID = 310 // { int getsid(pid_t pid); } 192 SYS_GETSID = 310 // { int getsid(pid_t pid); }
192 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ 193 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
193 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ 194 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
194 SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); } 195 SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); }
195 SYS_AIO_SUSPEND = 315 // { int aio_suspend( \ 196 SYS_AIO_SUSPEND = 315 // { int aio_suspend( struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
196 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \ 197 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
197 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } 198 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
198 SYS_YIELD = 321 // { int yield(void); } 199 SYS_YIELD = 321 // { int yield(void); }
199 SYS_MLOCKALL = 324 // { int mlockall(int how); } 200 SYS_MLOCKALL = 324 // { int mlockall(int how); }
200 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 201 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
201 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } 202 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
202 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ 203 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); }
203 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ 204 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); }
204 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ 205 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
205 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } 206 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
206 SYS_SCHED_YIELD = 331 // { int sched_yield (void); } 207 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
207 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } 208 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
208 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } 209 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
209 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ 210 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
210 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } 211 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
211 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ 212 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); }
212 SYS_JAIL = 338 // { int jail(struct jail *jail); } 213 SYS_JAIL = 338 // { int jail(struct jail *jail); }
213 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ 214 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); }
214 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } 215 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
215 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } 216 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
216 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ 217 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); }
217 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ 218 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, siginfo_t *info); }
218 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ 219 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); }
219 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ 220 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); }
220 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ 221 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); }
221 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ 222 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); }
222 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ 223 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); }
223 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ 224 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); }
224 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ 225 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); }
225 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ 226 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); }
226 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ 227 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); }
227 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ 228 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
228 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ 229 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
229 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ 230 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
230 SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete( \ 231 SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete( struct aiocb **aiocbp, struct timespec *timeout); }
231 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ 232 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
232 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ 233 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
233 SYS_KQUEUE = 362 // { int kqueue(void); } 234 SYS_KQUEUE = 362 // { int kqueue(void); }
234 SYS_KEVENT = 363 // { int kevent(int fd, \ 235 SYS_KEVENT = 363 // { int kevent(int fd, struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
235 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ 236 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
236 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ 237 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
237 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ 238 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, int attrnamespace, const char *attrname); }
238 SYS___SETUGID = 374 // { int __setugid(int flag); } 239 SYS___SETUGID = 374 // { int __setugid(int flag); }
239 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } 240 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
240 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ 241 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, unsigned int iovcnt, int flags); }
241 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } 242 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
242 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } 243 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
243 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ 244 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, struct mac *mac_p); }
244 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ 245 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, struct mac *mac_p); }
245 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ 246 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, struct mac *mac_p); }
246 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ 247 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, struct mac *mac_p); }
247 SYS_KENV = 390 // { int kenv(int what, const char *name, \ 248 SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); }
248 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ 249 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); }
249 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ 250 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
250 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ 251 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
251 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ 252 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); }
252 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ 253 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, long bufsize, int mode); }
253 SYS_STATFS = 396 // { int statfs(char *path, \ 254 SYS_STATFS = 396 // { int statfs(char *path, struct statfs *buf); }
254 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 255 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
255 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ 256 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
256 SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); } 257 SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
257 SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); } 258 SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
258 SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); } 259 SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
259 SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); } 260 SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
260 SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \ 261 SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, unsigned int value); }
261 SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \ 262 SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode, unsigned int value); }
262 SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); } 263 SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
263 SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); } 264 SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
264 SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); } 265 SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
265 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ 266 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
266 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ 267 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, struct mac *mac_p); }
267 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ 268 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, struct mac *mac_p); }
268 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ 269 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
269 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ 270 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
270 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ 271 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( const char *path, int attrnamespace, const char *attrname); }
271 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ 272 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, char **envv, struct mac *mac_p); }
272 SYS_SIGACTION = 416 // { int sigaction(int sig, \ 273 SYS_SIGACTION = 416 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); }
273 SYS_SIGRETURN = 417 // { int sigreturn( \ 274 SYS_SIGRETURN = 417 // { int sigreturn( const struct __ucontext *sigcntxp); }
274 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } 275 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
275 SYS_SETCONTEXT = 422 // { int setcontext( \ 276 SYS_SETCONTEXT = 422 // { int setcontext( const struct __ucontext *ucp); }
276 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ 277 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, const struct __ucontext *ucp); }
277 SYS_SWAPOFF = 424 // { int swapoff(const char *name); } 278 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
278 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ 279 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, acl_type_t type, struct acl *aclp); }
279 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ 280 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, acl_type_t type, struct acl *aclp); }
280 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ 281 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, acl_type_t type); }
281 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ 282 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, acl_type_t type, struct acl *aclp); }
282 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ 283 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, int *sig); }
283 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ 284 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, int flags); }
284 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 285 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
285 SYS_THR_SELF = 432 // { int thr_self(long *id); } 286 SYS_THR_SELF = 432 // { int thr_self(long *id); }
286 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 287 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
287 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 288 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
288 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ 289 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
289 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ 290 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( const char *path, int attrnamespace, void *data, size_t nbytes); }
290 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ 291 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( const char *path, int attrnamespace, void *data, size_t nbytes); }
291 SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \ 292 SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, const struct timespec *abstime); }
292 SYS_THR_SUSPEND = 442 // { int thr_suspend( \ 293 SYS_THR_SUSPEND = 442 // { int thr_suspend( const struct timespec *timeout); }
293 SYS_THR_WAKE = 443 // { int thr_wake(long id); } 294 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
294 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } 295 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
295 SYS_AUDIT = 445 // { int audit(const void *record, \ 296 SYS_AUDIT = 445 // { int audit(const void *record, u_int length); }
296 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ 297 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, u_int length); }
297 SYS_GETAUID = 447 // { int getauid(uid_t *auid); } 298 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
298 SYS_SETAUID = 448 // { int setauid(uid_t *auid); } 299 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
299 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } 300 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
300 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } 301 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
301 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ 302 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( struct auditinfo_addr *auditinfo_addr, u_int length); }
302 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ 303 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( struct auditinfo_addr *auditinfo_addr, u_int length); }
303 SYS_AUDITCTL = 453 // { int auditctl(char *path); } 304 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
304 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ 305 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, u_long val, void *uaddr1, void *uaddr2); }
305 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ 306 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, int param_size); }
306 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } 307 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
307 SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \ 308 SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, mode_t mode, const struct mq_attr *attr); }
308 SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \ 309 SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, const struct mq_attr *attr, struct mq_attr *oattr); }
309 SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \ 310 SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); }
310 SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \ 311 SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, const char *msg_ptr, size_t msg_len,unsigned msg_prio, const struct timespec *abs_timeout);}
311 SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \ 312 SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, const struct sigevent *sigev); }
312 SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); } 313 SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
313 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } 314 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
314 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } 315 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
315 SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); } 316 SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
316 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ 317 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, lwpid_t lwpid, struct rtprio *rtp); }
317 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } 318 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
318 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ 319 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); }
319 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ 320 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); }
320 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ 321 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, struct sockaddr * from, __socklen_t *fromlenaddr, struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
321 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ 322 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset); }
322 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ 323 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset); }
323 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ 324 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
324 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ 325 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, int whence); }
325 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } 326 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
326 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } 327 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
327 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } 328 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
328 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ 329 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, mode_t mode); }
329 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } 330 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
330 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } 331 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
331 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ 332 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); }
332 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ 333 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid); }
333 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ 334 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *mask); }
334 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ 335 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *mask); }
335 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ 336 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, int flag); }
336 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ 337 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, int flag); }
337 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ 338 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag); }
338 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ 339 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, char **envv); }
339 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ 340 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, struct stat *buf, int flag); }
340 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ 341 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, struct timeval *times); }
341 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ 342 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); }
342 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } 343 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
343 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } 344 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
344 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ 345 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); }
345 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ 346 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, mode_t mode); }
346 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ 347 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, size_t bufsize); }
347 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ 348 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, char *new); }
348 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ 349 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, char *path2); }
349 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } 350 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
350 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } 351 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
351 SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); } 352 SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
352 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ 353 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, unsigned int iovcnt, int flags); }
353 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ 354 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, unsigned int iovcnt, int flags); }
354 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } 355 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
355 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } 356 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
356 SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \ 357 SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); }
357 SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \ 358 SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
358 SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \ 359 SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
359 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } 360 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
360 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ 361 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, int fd, cap_rights_t *rightsp); }
361 SYS_CAP_ENTER = 516 // { int cap_enter(void); } 362 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
362 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } 363 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
363 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } 364 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
364 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } 365 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
365 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } 366 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
366 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ 367 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sm); }
367 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ 368 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, size_t namelen); }
368 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } 369 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
369 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ 370 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); }
370 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ 371 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); }
371 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ 372 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); }
372 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ 373 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); }
373 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ 374 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); }
374 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ 375 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, off_t offset, off_t len); }
375 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ 376 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, off_t len, int advice); }
376 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ 377 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); }
377 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ 378 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, cap_rights_t *rightsp); }
378 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ 379 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, const u_long *cmds, size_t ncmds); }
379 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ 380 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, u_long *cmds, size_t maxcmds); }
380 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ 381 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, uint32_t fcntlrights); }
381 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ 382 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, uint32_t *fcntlrightsp); }
382 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ 383 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, int namelen); }
383 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ 384 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, int namelen); }
384 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ 385 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, u_long flags, int atflag); }
385 SYS_ACCEPT4 = 541 // { int accept4(int s, \ 386 SYS_ACCEPT4 = 541 // { int accept4(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen, int flags); }
386 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } 387 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
387 SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); } 388 SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
388 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ 389 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, int com, void *data); }
389 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ 390 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); }
390 SYS_FUTIMENS = 546 // { int futimens(int fd, \ 391 SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); }
391 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ 392 SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); }
392 SYS_NUMA_GETAFFINITY = 548 // { int numa_getaffinity(cpuwhich_t which, \ 393 SYS_NUMA_GETAFFINITY = 548 // { int numa_getaffinity(cpuwhich_t which, id_t id, struct vm_domain_policy_entry *policy); }
393 SYS_NUMA_SETAFFINITY = 549 // { int numa_setaffinity(cpuwhich_t which, \ 394 SYS_NUMA_SETAFFINITY = 549 // { int numa_setaffinity(cpuwhich_t which, id_t id, const struct vm_domain_policy_entry *policy); }
394 SYS_FDATASYNC = 550 // { int fdatasync(int fd); } 395 SYS_FDATASYNC = 550 // { int fdatasync(int fd); }
395) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
index 33b6e4d..e869c06 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
@@ -423,4 +423,10 @@ const (
423 SYS_IO_URING_SETUP = 425 423 SYS_IO_URING_SETUP = 425
424 SYS_IO_URING_ENTER = 426 424 SYS_IO_URING_ENTER = 426
425 SYS_IO_URING_REGISTER = 427 425 SYS_IO_URING_REGISTER = 427
426 SYS_OPEN_TREE = 428
427 SYS_MOVE_MOUNT = 429
428 SYS_FSOPEN = 430
429 SYS_FSCONFIG = 431
430 SYS_FSMOUNT = 432
431 SYS_FSPICK = 433
426) 432)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
index 9ba2078..4917b8a 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
@@ -345,4 +345,10 @@ const (
345 SYS_IO_URING_SETUP = 425 345 SYS_IO_URING_SETUP = 425
346 SYS_IO_URING_ENTER = 426 346 SYS_IO_URING_ENTER = 426
347 SYS_IO_URING_REGISTER = 427 347 SYS_IO_URING_REGISTER = 427
348 SYS_OPEN_TREE = 428
349 SYS_MOVE_MOUNT = 429
350 SYS_FSOPEN = 430
351 SYS_FSCONFIG = 431
352 SYS_FSMOUNT = 432
353 SYS_FSPICK = 433
348) 354)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
index 94f68f1..f85fcb4 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
@@ -387,4 +387,10 @@ const (
387 SYS_IO_URING_SETUP = 425 387 SYS_IO_URING_SETUP = 425
388 SYS_IO_URING_ENTER = 426 388 SYS_IO_URING_ENTER = 426
389 SYS_IO_URING_REGISTER = 427 389 SYS_IO_URING_REGISTER = 427
390 SYS_OPEN_TREE = 428
391 SYS_MOVE_MOUNT = 429
392 SYS_FSOPEN = 430
393 SYS_FSCONFIG = 431
394 SYS_FSMOUNT = 432
395 SYS_FSPICK = 433
390) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
index 15c4135..678a119 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
@@ -290,4 +290,10 @@ const (
290 SYS_IO_URING_SETUP = 425 290 SYS_IO_URING_SETUP = 425
291 SYS_IO_URING_ENTER = 426 291 SYS_IO_URING_ENTER = 426
292 SYS_IO_URING_REGISTER = 427 292 SYS_IO_URING_REGISTER = 427
293 SYS_OPEN_TREE = 428
294 SYS_MOVE_MOUNT = 429
295 SYS_FSOPEN = 430
296 SYS_FSCONFIG = 431
297 SYS_FSMOUNT = 432
298 SYS_FSPICK = 433
293) 299)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
index 638465b..222c9f9 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
@@ -408,4 +408,10 @@ const (
408 SYS_IO_URING_SETUP = 4425 408 SYS_IO_URING_SETUP = 4425
409 SYS_IO_URING_ENTER = 4426 409 SYS_IO_URING_ENTER = 4426
410 SYS_IO_URING_REGISTER = 4427 410 SYS_IO_URING_REGISTER = 4427
411 SYS_OPEN_TREE = 4428
412 SYS_MOVE_MOUNT = 4429
413 SYS_FSOPEN = 4430
414 SYS_FSCONFIG = 4431
415 SYS_FSMOUNT = 4432
416 SYS_FSPICK = 4433
411) 417)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
index 57ec82a..28e6d0e 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
@@ -338,4 +338,10 @@ const (
338 SYS_IO_URING_SETUP = 5425 338 SYS_IO_URING_SETUP = 5425
339 SYS_IO_URING_ENTER = 5426 339 SYS_IO_URING_ENTER = 5426
340 SYS_IO_URING_REGISTER = 5427 340 SYS_IO_URING_REGISTER = 5427
341 SYS_OPEN_TREE = 5428
342 SYS_MOVE_MOUNT = 5429
343 SYS_FSOPEN = 5430
344 SYS_FSCONFIG = 5431
345 SYS_FSMOUNT = 5432
346 SYS_FSPICK = 5433
341) 347)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
index 825a3e3..e643c6f 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
@@ -338,4 +338,10 @@ const (
338 SYS_IO_URING_SETUP = 5425 338 SYS_IO_URING_SETUP = 5425
339 SYS_IO_URING_ENTER = 5426 339 SYS_IO_URING_ENTER = 5426
340 SYS_IO_URING_REGISTER = 5427 340 SYS_IO_URING_REGISTER = 5427
341 SYS_OPEN_TREE = 5428
342 SYS_MOVE_MOUNT = 5429
343 SYS_FSOPEN = 5430
344 SYS_FSCONFIG = 5431
345 SYS_FSMOUNT = 5432
346 SYS_FSPICK = 5433
341) 347)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
index f152dfd..01d93c4 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
@@ -408,4 +408,10 @@ const (
408 SYS_IO_URING_SETUP = 4425 408 SYS_IO_URING_SETUP = 4425
409 SYS_IO_URING_ENTER = 4426 409 SYS_IO_URING_ENTER = 4426
410 SYS_IO_URING_REGISTER = 4427 410 SYS_IO_URING_REGISTER = 4427
411 SYS_OPEN_TREE = 4428
412 SYS_MOVE_MOUNT = 4429
413 SYS_FSOPEN = 4430
414 SYS_FSCONFIG = 4431
415 SYS_FSMOUNT = 4432
416 SYS_FSPICK = 4433
411) 417)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
index 7cbe78b..5744149 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
@@ -387,4 +387,10 @@ const (
387 SYS_IO_URING_SETUP = 425 387 SYS_IO_URING_SETUP = 425
388 SYS_IO_URING_ENTER = 426 388 SYS_IO_URING_ENTER = 426
389 SYS_IO_URING_REGISTER = 427 389 SYS_IO_URING_REGISTER = 427
390 SYS_OPEN_TREE = 428
391 SYS_MOVE_MOUNT = 429
392 SYS_FSOPEN = 430
393 SYS_FSCONFIG = 431
394 SYS_FSMOUNT = 432
395 SYS_FSPICK = 433
390) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
index 51a2f12..21c8320 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
@@ -387,4 +387,10 @@ const (
387 SYS_IO_URING_SETUP = 425 387 SYS_IO_URING_SETUP = 425
388 SYS_IO_URING_ENTER = 426 388 SYS_IO_URING_ENTER = 426
389 SYS_IO_URING_REGISTER = 427 389 SYS_IO_URING_REGISTER = 427
390 SYS_OPEN_TREE = 428
391 SYS_MOVE_MOUNT = 429
392 SYS_FSOPEN = 430
393 SYS_FSCONFIG = 431
394 SYS_FSMOUNT = 432
395 SYS_FSPICK = 433
390) 396)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
index 323432a..c1bb6d8 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
@@ -289,4 +289,10 @@ const (
289 SYS_IO_URING_SETUP = 425 289 SYS_IO_URING_SETUP = 425
290 SYS_IO_URING_ENTER = 426 290 SYS_IO_URING_ENTER = 426
291 SYS_IO_URING_REGISTER = 427 291 SYS_IO_URING_REGISTER = 427
292 SYS_OPEN_TREE = 428
293 SYS_MOVE_MOUNT = 429
294 SYS_FSOPEN = 430
295 SYS_FSCONFIG = 431
296 SYS_FSMOUNT = 432
297 SYS_FSPICK = 433
292) 298)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
index 9dca974..bc3cc6b 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
@@ -352,4 +352,10 @@ const (
352 SYS_IO_URING_SETUP = 425 352 SYS_IO_URING_SETUP = 425
353 SYS_IO_URING_ENTER = 426 353 SYS_IO_URING_ENTER = 426
354 SYS_IO_URING_REGISTER = 427 354 SYS_IO_URING_REGISTER = 427
355 SYS_OPEN_TREE = 428
356 SYS_MOVE_MOUNT = 429
357 SYS_FSOPEN = 430
358 SYS_FSCONFIG = 431
359 SYS_FSMOUNT = 432
360 SYS_FSPICK = 433
355) 361)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
index d3da46f..0a2841b 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
@@ -367,4 +367,10 @@ const (
367 SYS_IO_URING_SETUP = 425 367 SYS_IO_URING_SETUP = 425
368 SYS_IO_URING_ENTER = 426 368 SYS_IO_URING_ENTER = 426
369 SYS_IO_URING_REGISTER = 427 369 SYS_IO_URING_REGISTER = 427
370 SYS_OPEN_TREE = 428
371 SYS_MOVE_MOUNT = 429
372 SYS_FSOPEN = 430
373 SYS_FSCONFIG = 431
374 SYS_FSMOUNT = 432
375 SYS_FSPICK = 433
370) 376)
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 0edc540..7312e95 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
@@ -324,11 +324,108 @@ const (
324) 324)
325 325
326const ( 326const (
327 PTRACE_TRACEME = 0x0 327 PTRACE_ATTACH = 0xa
328 PTRACE_CONT = 0x7 328 PTRACE_CONT = 0x7
329 PTRACE_KILL = 0x8 329 PTRACE_DETACH = 0xb
330 PTRACE_GETFPREGS = 0x23
331 PTRACE_GETFSBASE = 0x47
332 PTRACE_GETLWPLIST = 0xf
333 PTRACE_GETNUMLWPS = 0xe
334 PTRACE_GETREGS = 0x21
335 PTRACE_GETXSTATE = 0x45
336 PTRACE_IO = 0xc
337 PTRACE_KILL = 0x8
338 PTRACE_LWPEVENTS = 0x18
339 PTRACE_LWPINFO = 0xd
340 PTRACE_SETFPREGS = 0x24
341 PTRACE_SETREGS = 0x22
342 PTRACE_SINGLESTEP = 0x9
343 PTRACE_TRACEME = 0x0
330) 344)
331 345
346const (
347 PIOD_READ_D = 0x1
348 PIOD_WRITE_D = 0x2
349 PIOD_READ_I = 0x3
350 PIOD_WRITE_I = 0x4
351)
352
353const (
354 PL_FLAG_BORN = 0x100
355 PL_FLAG_EXITED = 0x200
356 PL_FLAG_SI = 0x20
357)
358
359const (
360 TRAP_BRKPT = 0x1
361 TRAP_TRACE = 0x2
362)
363
364type PtraceLwpInfoStruct struct {
365 Lwpid int32
366 Event int32
367 Flags int32
368 Sigmask Sigset_t
369 Siglist Sigset_t
370 Siginfo __Siginfo
371 Tdname [20]int8
372 Child_pid int32
373 Syscall_code uint32
374 Syscall_narg uint32
375}
376
377type __Siginfo struct {
378 Signo int32
379 Errno int32
380 Code int32
381 Pid int32
382 Uid uint32
383 Status int32
384 Addr *byte
385 Value [4]byte
386 X_reason [32]byte
387}
388
389type Sigset_t struct {
390 Val [4]uint32
391}
392
393type Reg struct {
394 Fs uint32
395 Es uint32
396 Ds uint32
397 Edi uint32
398 Esi uint32
399 Ebp uint32
400 Isp uint32
401 Ebx uint32
402 Edx uint32
403 Ecx uint32
404 Eax uint32
405 Trapno uint32
406 Err uint32
407 Eip uint32
408 Cs uint32
409 Eflags uint32
410 Esp uint32
411 Ss uint32
412 Gs uint32
413}
414
415type FpReg struct {
416 Env [7]uint32
417 Acc [8][10]uint8
418 Ex_sw uint32
419 Pad [64]uint8
420}
421
422type PtraceIoDesc struct {
423 Op int32
424 Offs *byte
425 Addr *byte
426 Len uint
427}
428
332type Kevent_t struct { 429type Kevent_t struct {
333 Ident uint32 430 Ident uint32
334 Filter int16 431 Filter int16
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 8881ce8..29ba2f5 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
@@ -322,11 +322,115 @@ const (
322) 322)
323 323
324const ( 324const (
325 PTRACE_TRACEME = 0x0 325 PTRACE_ATTACH = 0xa
326 PTRACE_CONT = 0x7 326 PTRACE_CONT = 0x7
327 PTRACE_KILL = 0x8 327 PTRACE_DETACH = 0xb
328 PTRACE_GETFPREGS = 0x23
329 PTRACE_GETFSBASE = 0x47
330 PTRACE_GETLWPLIST = 0xf
331 PTRACE_GETNUMLWPS = 0xe
332 PTRACE_GETREGS = 0x21
333 PTRACE_GETXSTATE = 0x45
334 PTRACE_IO = 0xc
335 PTRACE_KILL = 0x8
336 PTRACE_LWPEVENTS = 0x18
337 PTRACE_LWPINFO = 0xd
338 PTRACE_SETFPREGS = 0x24
339 PTRACE_SETREGS = 0x22
340 PTRACE_SINGLESTEP = 0x9
341 PTRACE_TRACEME = 0x0
328) 342)
329 343
344const (
345 PIOD_READ_D = 0x1
346 PIOD_WRITE_D = 0x2
347 PIOD_READ_I = 0x3
348 PIOD_WRITE_I = 0x4
349)
350
351const (
352 PL_FLAG_BORN = 0x100
353 PL_FLAG_EXITED = 0x200
354 PL_FLAG_SI = 0x20
355)
356
357const (
358 TRAP_BRKPT = 0x1
359 TRAP_TRACE = 0x2
360)
361
362type PtraceLwpInfoStruct struct {
363 Lwpid int32
364 Event int32
365 Flags int32
366 Sigmask Sigset_t
367 Siglist Sigset_t
368 Siginfo __Siginfo
369 Tdname [20]int8
370 Child_pid int32
371 Syscall_code uint32
372 Syscall_narg uint32
373}
374
375type __Siginfo struct {
376 Signo int32
377 Errno int32
378 Code int32
379 Pid int32
380 Uid uint32
381 Status int32
382 Addr *byte
383 Value [8]byte
384 _ [40]byte
385}
386
387type Sigset_t struct {
388 Val [4]uint32
389}
390
391type Reg struct {
392 R15 int64
393 R14 int64
394 R13 int64
395 R12 int64
396 R11 int64
397 R10 int64
398 R9 int64
399 R8 int64
400 Rdi int64
401 Rsi int64
402 Rbp int64
403 Rbx int64
404 Rdx int64
405 Rcx int64
406 Rax int64
407 Trapno uint32
408 Fs uint16
409 Gs uint16
410 Err uint32
411 Es uint16
412 Ds uint16
413 Rip int64
414 Cs int64
415 Rflags int64
416 Rsp int64
417 Ss int64
418}
419
420type FpReg struct {
421 Env [4]uint64
422 Acc [8][16]uint8
423 Xacc [16][16]uint8
424 Spare [12]uint64
425}
426
427type PtraceIoDesc struct {
428 Op int32
429 Offs *byte
430 Addr *byte
431 Len uint
432}
433
330type Kevent_t struct { 434type Kevent_t struct {
331 Ident uint64 435 Ident uint64
332 Filter int16 436 Filter int16
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 fc71399..b4090ef 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
@@ -322,11 +322,92 @@ const (
322) 322)
323 323
324const ( 324const (
325 PTRACE_TRACEME = 0x0 325 PTRACE_ATTACH = 0xa
326 PTRACE_CONT = 0x7 326 PTRACE_CONT = 0x7
327 PTRACE_KILL = 0x8 327 PTRACE_DETACH = 0xb
328 PTRACE_GETFPREGS = 0x23
329 PTRACE_GETFSBASE = 0x47
330 PTRACE_GETLWPLIST = 0xf
331 PTRACE_GETNUMLWPS = 0xe
332 PTRACE_GETREGS = 0x21
333 PTRACE_GETXSTATE = 0x45
334 PTRACE_IO = 0xc
335 PTRACE_KILL = 0x8
336 PTRACE_LWPEVENTS = 0x18
337 PTRACE_LWPINFO = 0xd
338 PTRACE_SETFPREGS = 0x24
339 PTRACE_SETREGS = 0x22
340 PTRACE_SINGLESTEP = 0x9
341 PTRACE_TRACEME = 0x0
328) 342)
329 343
344const (
345 PIOD_READ_D = 0x1
346 PIOD_WRITE_D = 0x2
347 PIOD_READ_I = 0x3
348 PIOD_WRITE_I = 0x4
349)
350
351const (
352 PL_FLAG_BORN = 0x100
353 PL_FLAG_EXITED = 0x200
354 PL_FLAG_SI = 0x20
355)
356
357const (
358 TRAP_BRKPT = 0x1
359 TRAP_TRACE = 0x2
360)
361
362type PtraceLwpInfoStruct struct {
363 Lwpid int32
364 Event int32
365 Flags int32
366 Sigmask Sigset_t
367 Siglist Sigset_t
368 Siginfo __Siginfo
369 Tdname [20]int8
370 Child_pid int32
371 Syscall_code uint32
372 Syscall_narg uint32
373}
374
375type __Siginfo struct {
376 Signo int32
377 Errno int32
378 Code int32
379 Pid int32
380 Uid uint32
381 Status int32
382 Addr *byte
383 Value [4]byte
384 X_reason [32]byte
385}
386
387type Sigset_t struct {
388 Val [4]uint32
389}
390
391type Reg struct {
392 R [13]uint32
393 R_sp uint32
394 R_lr uint32
395 R_pc uint32
396 R_cpsr uint32
397}
398
399type FpReg struct {
400 Fpr_fpsr uint32
401 Fpr [8][3]uint32
402}
403
404type PtraceIoDesc struct {
405 Op int32
406 Offs *byte
407 Addr *byte
408 Len uint
409}
410
330type Kevent_t struct { 411type Kevent_t struct {
331 Ident uint32 412 Ident uint32
332 Filter int16 413 Filter int16
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 5a0753e..1542a87 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
@@ -322,11 +322,93 @@ const (
322) 322)
323 323
324const ( 324const (
325 PTRACE_TRACEME = 0x0 325 PTRACE_ATTACH = 0xa
326 PTRACE_CONT = 0x7 326 PTRACE_CONT = 0x7
327 PTRACE_KILL = 0x8 327 PTRACE_DETACH = 0xb
328 PTRACE_GETFPREGS = 0x23
329 PTRACE_GETFSBASE = 0x47
330 PTRACE_GETLWPLIST = 0xf
331 PTRACE_GETNUMLWPS = 0xe
332 PTRACE_GETREGS = 0x21
333 PTRACE_GETXSTATE = 0x45
334 PTRACE_IO = 0xc
335 PTRACE_KILL = 0x8
336 PTRACE_LWPEVENTS = 0x18
337 PTRACE_LWPINFO = 0xd
338 PTRACE_SETFPREGS = 0x24
339 PTRACE_SETREGS = 0x22
340 PTRACE_SINGLESTEP = 0x9
341 PTRACE_TRACEME = 0x0
328) 342)
329 343
344const (
345 PIOD_READ_D = 0x1
346 PIOD_WRITE_D = 0x2
347 PIOD_READ_I = 0x3
348 PIOD_WRITE_I = 0x4
349)
350
351const (
352 PL_FLAG_BORN = 0x100
353 PL_FLAG_EXITED = 0x200
354 PL_FLAG_SI = 0x20
355)
356
357const (
358 TRAP_BRKPT = 0x1
359 TRAP_TRACE = 0x2
360)
361
362type PtraceLwpInfoStruct struct {
363 Lwpid int32
364 Event int32
365 Flags int32
366 Sigmask Sigset_t
367 Siglist Sigset_t
368 Siginfo __Siginfo
369 Tdname [20]int8
370 Child_pid int32
371 Syscall_code uint32
372 Syscall_narg uint32
373}
374
375type __Siginfo struct {
376 Signo int32
377 Errno int32
378 Code int32
379 Pid int32
380 Uid uint32
381 Status int32
382 Addr *byte
383 Value [8]byte
384 X_reason [40]byte
385}
386
387type Sigset_t struct {
388 Val [4]uint32
389}
390
391type Reg struct {
392 X [30]uint64
393 Lr uint64
394 Sp uint64
395 Elr uint64
396 Spsr uint32
397}
398
399type FpReg struct {
400 Fp_q [32]uint128
401 Fp_sr uint32
402 Fp_cr uint32
403}
404
405type PtraceIoDesc struct {
406 Op int32
407 Offs *byte
408 Addr *byte
409 Len uint
410}
411
330type Kevent_t struct { 412type Kevent_t struct {
331 Ident uint64 413 Ident uint64
332 Filter int16 414 Filter int16
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 06e3a3f..50bc412 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
@@ -2467,3 +2467,57 @@ const (
2467 BPF_FD_TYPE_UPROBE = 0x4 2467 BPF_FD_TYPE_UPROBE = 0x4
2468 BPF_FD_TYPE_URETPROBE = 0x5 2468 BPF_FD_TYPE_URETPROBE = 0x5
2469) 2469)
2470
2471type CapUserHeader struct {
2472 Version uint32
2473 Pid int32
2474}
2475
2476type CapUserData struct {
2477 Effective uint32
2478 Permitted uint32
2479 Inheritable uint32
2480}
2481
2482const (
2483 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2484 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2485 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2486)
2487
2488const (
2489 LO_FLAGS_READ_ONLY = 0x1
2490 LO_FLAGS_AUTOCLEAR = 0x4
2491 LO_FLAGS_PARTSCAN = 0x8
2492 LO_FLAGS_DIRECT_IO = 0x10
2493)
2494
2495type LoopInfo struct {
2496 Number int32
2497 Device uint16
2498 Inode uint32
2499 Rdevice uint16
2500 Offset int32
2501 Encrypt_type int32
2502 Encrypt_key_size int32
2503 Flags int32
2504 Name [64]int8
2505 Encrypt_key [32]uint8
2506 Init [2]uint32
2507 Reserved [4]int8
2508}
2509type LoopInfo64 struct {
2510 Device uint64
2511 Inode uint64
2512 Rdevice uint64
2513 Offset uint64
2514 Sizelimit uint64
2515 Number uint32
2516 Encrypt_type uint32
2517 Encrypt_key_size uint32
2518 Flags uint32
2519 File_name [64]uint8
2520 Crypt_name [64]uint8
2521 Encrypt_key [32]uint8
2522 Init [2]uint64
2523}
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 cef25e7..055eaa7 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
@@ -2480,3 +2480,58 @@ const (
2480 BPF_FD_TYPE_UPROBE = 0x4 2480 BPF_FD_TYPE_UPROBE = 0x4
2481 BPF_FD_TYPE_URETPROBE = 0x5 2481 BPF_FD_TYPE_URETPROBE = 0x5
2482) 2482)
2483
2484type CapUserHeader struct {
2485 Version uint32
2486 Pid int32
2487}
2488
2489type CapUserData struct {
2490 Effective uint32
2491 Permitted uint32
2492 Inheritable uint32
2493}
2494
2495const (
2496 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2497 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2498 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2499)
2500
2501const (
2502 LO_FLAGS_READ_ONLY = 0x1
2503 LO_FLAGS_AUTOCLEAR = 0x4
2504 LO_FLAGS_PARTSCAN = 0x8
2505 LO_FLAGS_DIRECT_IO = 0x10
2506)
2507
2508type LoopInfo struct {
2509 Number int32
2510 Device uint64
2511 Inode uint64
2512 Rdevice uint64
2513 Offset int32
2514 Encrypt_type int32
2515 Encrypt_key_size int32
2516 Flags int32
2517 Name [64]int8
2518 Encrypt_key [32]uint8
2519 Init [2]uint64
2520 Reserved [4]int8
2521 _ [4]byte
2522}
2523type LoopInfo64 struct {
2524 Device uint64
2525 Inode uint64
2526 Rdevice uint64
2527 Offset uint64
2528 Sizelimit uint64
2529 Number uint32
2530 Encrypt_type uint32
2531 Encrypt_key_size uint32
2532 Flags uint32
2533 File_name [64]uint8
2534 Crypt_name [64]uint8
2535 Encrypt_key [32]uint8
2536 Init [2]uint64
2537}
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 c436936..66019c9 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
@@ -2458,3 +2458,57 @@ const (
2458 BPF_FD_TYPE_UPROBE = 0x4 2458 BPF_FD_TYPE_UPROBE = 0x4
2459 BPF_FD_TYPE_URETPROBE = 0x5 2459 BPF_FD_TYPE_URETPROBE = 0x5
2460) 2460)
2461
2462type CapUserHeader struct {
2463 Version uint32
2464 Pid int32
2465}
2466
2467type CapUserData struct {
2468 Effective uint32
2469 Permitted uint32
2470 Inheritable uint32
2471}
2472
2473const (
2474 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2475 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2476 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2477)
2478
2479const (
2480 LO_FLAGS_READ_ONLY = 0x1
2481 LO_FLAGS_AUTOCLEAR = 0x4
2482 LO_FLAGS_PARTSCAN = 0x8
2483 LO_FLAGS_DIRECT_IO = 0x10
2484)
2485
2486type LoopInfo struct {
2487 Number int32
2488 Device uint16
2489 Inode uint32
2490 Rdevice uint16
2491 Offset int32
2492 Encrypt_type int32
2493 Encrypt_key_size int32
2494 Flags int32
2495 Name [64]uint8
2496 Encrypt_key [32]uint8
2497 Init [2]uint32
2498 Reserved [4]uint8
2499}
2500type LoopInfo64 struct {
2501 Device uint64
2502 Inode uint64
2503 Rdevice uint64
2504 Offset uint64
2505 Sizelimit uint64
2506 Number uint32
2507 Encrypt_type uint32
2508 Encrypt_key_size uint32
2509 Flags uint32
2510 File_name [64]uint8
2511 Crypt_name [64]uint8
2512 Encrypt_key [32]uint8
2513 Init [2]uint64
2514}
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 76c55e0..3104798 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
@@ -2459,3 +2459,58 @@ const (
2459 BPF_FD_TYPE_UPROBE = 0x4 2459 BPF_FD_TYPE_UPROBE = 0x4
2460 BPF_FD_TYPE_URETPROBE = 0x5 2460 BPF_FD_TYPE_URETPROBE = 0x5
2461) 2461)
2462
2463type CapUserHeader struct {
2464 Version uint32
2465 Pid int32
2466}
2467
2468type CapUserData struct {
2469 Effective uint32
2470 Permitted uint32
2471 Inheritable uint32
2472}
2473
2474const (
2475 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2476 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2477 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2478)
2479
2480const (
2481 LO_FLAGS_READ_ONLY = 0x1
2482 LO_FLAGS_AUTOCLEAR = 0x4
2483 LO_FLAGS_PARTSCAN = 0x8
2484 LO_FLAGS_DIRECT_IO = 0x10
2485)
2486
2487type LoopInfo struct {
2488 Number int32
2489 Device uint32
2490 Inode uint64
2491 Rdevice uint32
2492 Offset int32
2493 Encrypt_type int32
2494 Encrypt_key_size int32
2495 Flags int32
2496 Name [64]int8
2497 Encrypt_key [32]uint8
2498 Init [2]uint64
2499 Reserved [4]int8
2500 _ [4]byte
2501}
2502type LoopInfo64 struct {
2503 Device uint64
2504 Inode uint64
2505 Rdevice uint64
2506 Offset uint64
2507 Sizelimit uint64
2508 Number uint32
2509 Encrypt_type uint32
2510 Encrypt_key_size uint32
2511 Flags uint32
2512 File_name [64]uint8
2513 Crypt_name [64]uint8
2514 Encrypt_key [32]uint8
2515 Init [2]uint64
2516}
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 4302d57..46c8602 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
@@ -2464,3 +2464,57 @@ const (
2464 BPF_FD_TYPE_UPROBE = 0x4 2464 BPF_FD_TYPE_UPROBE = 0x4
2465 BPF_FD_TYPE_URETPROBE = 0x5 2465 BPF_FD_TYPE_URETPROBE = 0x5
2466) 2466)
2467
2468type CapUserHeader struct {
2469 Version uint32
2470 Pid int32
2471}
2472
2473type CapUserData struct {
2474 Effective uint32
2475 Permitted uint32
2476 Inheritable uint32
2477}
2478
2479const (
2480 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2481 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2482 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2483)
2484
2485const (
2486 LO_FLAGS_READ_ONLY = 0x1
2487 LO_FLAGS_AUTOCLEAR = 0x4
2488 LO_FLAGS_PARTSCAN = 0x8
2489 LO_FLAGS_DIRECT_IO = 0x10
2490)
2491
2492type LoopInfo struct {
2493 Number int32
2494 Device uint32
2495 Inode uint32
2496 Rdevice uint32
2497 Offset int32
2498 Encrypt_type int32
2499 Encrypt_key_size int32
2500 Flags int32
2501 Name [64]int8
2502 Encrypt_key [32]uint8
2503 Init [2]uint32
2504 Reserved [4]int8
2505}
2506type LoopInfo64 struct {
2507 Device uint64
2508 Inode uint64
2509 Rdevice uint64
2510 Offset uint64
2511 Sizelimit uint64
2512 Number uint32
2513 Encrypt_type uint32
2514 Encrypt_key_size uint32
2515 Flags uint32
2516 File_name [64]uint8
2517 Crypt_name [64]uint8
2518 Encrypt_key [32]uint8
2519 Init [2]uint64
2520}
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 7ea742b..c2fe1a6 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
@@ -2461,3 +2461,58 @@ const (
2461 BPF_FD_TYPE_UPROBE = 0x4 2461 BPF_FD_TYPE_UPROBE = 0x4
2462 BPF_FD_TYPE_URETPROBE = 0x5 2462 BPF_FD_TYPE_URETPROBE = 0x5
2463) 2463)
2464
2465type CapUserHeader struct {
2466 Version uint32
2467 Pid int32
2468}
2469
2470type CapUserData struct {
2471 Effective uint32
2472 Permitted uint32
2473 Inheritable uint32
2474}
2475
2476const (
2477 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2478 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2479 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2480)
2481
2482const (
2483 LO_FLAGS_READ_ONLY = 0x1
2484 LO_FLAGS_AUTOCLEAR = 0x4
2485 LO_FLAGS_PARTSCAN = 0x8
2486 LO_FLAGS_DIRECT_IO = 0x10
2487)
2488
2489type LoopInfo struct {
2490 Number int32
2491 Device uint32
2492 Inode uint64
2493 Rdevice uint32
2494 Offset int32
2495 Encrypt_type int32
2496 Encrypt_key_size int32
2497 Flags int32
2498 Name [64]int8
2499 Encrypt_key [32]uint8
2500 Init [2]uint64
2501 Reserved [4]int8
2502 _ [4]byte
2503}
2504type LoopInfo64 struct {
2505 Device uint64
2506 Inode uint64
2507 Rdevice uint64
2508 Offset uint64
2509 Sizelimit uint64
2510 Number uint32
2511 Encrypt_type uint32
2512 Encrypt_key_size uint32
2513 Flags uint32
2514 File_name [64]uint8
2515 Crypt_name [64]uint8
2516 Encrypt_key [32]uint8
2517 Init [2]uint64
2518}
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 8f2b8ad..f1eb0d3 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
@@ -2461,3 +2461,58 @@ const (
2461 BPF_FD_TYPE_UPROBE = 0x4 2461 BPF_FD_TYPE_UPROBE = 0x4
2462 BPF_FD_TYPE_URETPROBE = 0x5 2462 BPF_FD_TYPE_URETPROBE = 0x5
2463) 2463)
2464
2465type CapUserHeader struct {
2466 Version uint32
2467 Pid int32
2468}
2469
2470type CapUserData struct {
2471 Effective uint32
2472 Permitted uint32
2473 Inheritable uint32
2474}
2475
2476const (
2477 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2478 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2479 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2480)
2481
2482const (
2483 LO_FLAGS_READ_ONLY = 0x1
2484 LO_FLAGS_AUTOCLEAR = 0x4
2485 LO_FLAGS_PARTSCAN = 0x8
2486 LO_FLAGS_DIRECT_IO = 0x10
2487)
2488
2489type LoopInfo struct {
2490 Number int32
2491 Device uint32
2492 Inode uint64
2493 Rdevice uint32
2494 Offset int32
2495 Encrypt_type int32
2496 Encrypt_key_size int32
2497 Flags int32
2498 Name [64]int8
2499 Encrypt_key [32]uint8
2500 Init [2]uint64
2501 Reserved [4]int8
2502 _ [4]byte
2503}
2504type LoopInfo64 struct {
2505 Device uint64
2506 Inode uint64
2507 Rdevice uint64
2508 Offset uint64
2509 Sizelimit uint64
2510 Number uint32
2511 Encrypt_type uint32
2512 Encrypt_key_size uint32
2513 Flags uint32
2514 File_name [64]uint8
2515 Crypt_name [64]uint8
2516 Encrypt_key [32]uint8
2517 Init [2]uint64
2518}
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 865bf57..8759bc3 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
@@ -2464,3 +2464,57 @@ const (
2464 BPF_FD_TYPE_UPROBE = 0x4 2464 BPF_FD_TYPE_UPROBE = 0x4
2465 BPF_FD_TYPE_URETPROBE = 0x5 2465 BPF_FD_TYPE_URETPROBE = 0x5
2466) 2466)
2467
2468type CapUserHeader struct {
2469 Version uint32
2470 Pid int32
2471}
2472
2473type CapUserData struct {
2474 Effective uint32
2475 Permitted uint32
2476 Inheritable uint32
2477}
2478
2479const (
2480 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2481 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2482 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2483)
2484
2485const (
2486 LO_FLAGS_READ_ONLY = 0x1
2487 LO_FLAGS_AUTOCLEAR = 0x4
2488 LO_FLAGS_PARTSCAN = 0x8
2489 LO_FLAGS_DIRECT_IO = 0x10
2490)
2491
2492type LoopInfo struct {
2493 Number int32
2494 Device uint32
2495 Inode uint32
2496 Rdevice uint32
2497 Offset int32
2498 Encrypt_type int32
2499 Encrypt_key_size int32
2500 Flags int32
2501 Name [64]int8
2502 Encrypt_key [32]uint8
2503 Init [2]uint32
2504 Reserved [4]int8
2505}
2506type LoopInfo64 struct {
2507 Device uint64
2508 Inode uint64
2509 Rdevice uint64
2510 Offset uint64
2511 Sizelimit uint64
2512 Number uint32
2513 Encrypt_type uint32
2514 Encrypt_key_size uint32
2515 Flags uint32
2516 File_name [64]uint8
2517 Crypt_name [64]uint8
2518 Encrypt_key [32]uint8
2519 Init [2]uint64
2520}
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 2b68027..a812005 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
@@ -2469,3 +2469,58 @@ const (
2469 BPF_FD_TYPE_UPROBE = 0x4 2469 BPF_FD_TYPE_UPROBE = 0x4
2470 BPF_FD_TYPE_URETPROBE = 0x5 2470 BPF_FD_TYPE_URETPROBE = 0x5
2471) 2471)
2472
2473type CapUserHeader struct {
2474 Version uint32
2475 Pid int32
2476}
2477
2478type CapUserData struct {
2479 Effective uint32
2480 Permitted uint32
2481 Inheritable uint32
2482}
2483
2484const (
2485 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2486 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2487 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2488)
2489
2490const (
2491 LO_FLAGS_READ_ONLY = 0x1
2492 LO_FLAGS_AUTOCLEAR = 0x4
2493 LO_FLAGS_PARTSCAN = 0x8
2494 LO_FLAGS_DIRECT_IO = 0x10
2495)
2496
2497type LoopInfo struct {
2498 Number int32
2499 Device uint64
2500 Inode uint64
2501 Rdevice uint64
2502 Offset int32
2503 Encrypt_type int32
2504 Encrypt_key_size int32
2505 Flags int32
2506 Name [64]uint8
2507 Encrypt_key [32]uint8
2508 Init [2]uint64
2509 Reserved [4]uint8
2510 _ [4]byte
2511}
2512type LoopInfo64 struct {
2513 Device uint64
2514 Inode uint64
2515 Rdevice uint64
2516 Offset uint64
2517 Sizelimit uint64
2518 Number uint32
2519 Encrypt_type uint32
2520 Encrypt_key_size uint32
2521 Flags uint32
2522 File_name [64]uint8
2523 Crypt_name [64]uint8
2524 Encrypt_key [32]uint8
2525 Init [2]uint64
2526}
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 76cd7e6..74b7a91 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
@@ -2469,3 +2469,58 @@ const (
2469 BPF_FD_TYPE_UPROBE = 0x4 2469 BPF_FD_TYPE_UPROBE = 0x4
2470 BPF_FD_TYPE_URETPROBE = 0x5 2470 BPF_FD_TYPE_URETPROBE = 0x5
2471) 2471)
2472
2473type CapUserHeader struct {
2474 Version uint32
2475 Pid int32
2476}
2477
2478type CapUserData struct {
2479 Effective uint32
2480 Permitted uint32
2481 Inheritable uint32
2482}
2483
2484const (
2485 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2486 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2487 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2488)
2489
2490const (
2491 LO_FLAGS_READ_ONLY = 0x1
2492 LO_FLAGS_AUTOCLEAR = 0x4
2493 LO_FLAGS_PARTSCAN = 0x8
2494 LO_FLAGS_DIRECT_IO = 0x10
2495)
2496
2497type LoopInfo struct {
2498 Number int32
2499 Device uint64
2500 Inode uint64
2501 Rdevice uint64
2502 Offset int32
2503 Encrypt_type int32
2504 Encrypt_key_size int32
2505 Flags int32
2506 Name [64]uint8
2507 Encrypt_key [32]uint8
2508 Init [2]uint64
2509 Reserved [4]uint8
2510 _ [4]byte
2511}
2512type LoopInfo64 struct {
2513 Device uint64
2514 Inode uint64
2515 Rdevice uint64
2516 Offset uint64
2517 Sizelimit uint64
2518 Number uint32
2519 Encrypt_type uint32
2520 Encrypt_key_size uint32
2521 Flags uint32
2522 File_name [64]uint8
2523 Crypt_name [64]uint8
2524 Encrypt_key [32]uint8
2525 Init [2]uint64
2526}
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 f99f061..ccea3e6 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
@@ -808,6 +808,7 @@ type Ustat_t struct {
808 808
809type EpollEvent struct { 809type EpollEvent struct {
810 Events uint32 810 Events uint32
811 _ int32
811 Fd int32 812 Fd int32
812 Pad int32 813 Pad int32
813} 814}
@@ -2486,3 +2487,58 @@ const (
2486 BPF_FD_TYPE_UPROBE = 0x4 2487 BPF_FD_TYPE_UPROBE = 0x4
2487 BPF_FD_TYPE_URETPROBE = 0x5 2488 BPF_FD_TYPE_URETPROBE = 0x5
2488) 2489)
2490
2491type CapUserHeader struct {
2492 Version uint32
2493 Pid int32
2494}
2495
2496type CapUserData struct {
2497 Effective uint32
2498 Permitted uint32
2499 Inheritable uint32
2500}
2501
2502const (
2503 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2504 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2505 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2506)
2507
2508const (
2509 LO_FLAGS_READ_ONLY = 0x1
2510 LO_FLAGS_AUTOCLEAR = 0x4
2511 LO_FLAGS_PARTSCAN = 0x8
2512 LO_FLAGS_DIRECT_IO = 0x10
2513)
2514
2515type LoopInfo struct {
2516 Number int32
2517 Device uint32
2518 Inode uint64
2519 Rdevice uint32
2520 Offset int32
2521 Encrypt_type int32
2522 Encrypt_key_size int32
2523 Flags int32
2524 Name [64]uint8
2525 Encrypt_key [32]uint8
2526 Init [2]uint64
2527 Reserved [4]uint8
2528 _ [4]byte
2529}
2530type LoopInfo64 struct {
2531 Device uint64
2532 Inode uint64
2533 Rdevice uint64
2534 Offset uint64
2535 Sizelimit uint64
2536 Number uint32
2537 Encrypt_type uint32
2538 Encrypt_key_size uint32
2539 Flags uint32
2540 File_name [64]uint8
2541 Crypt_name [64]uint8
2542 Encrypt_key [32]uint8
2543 Init [2]uint64
2544}
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 d9d03ae..d8fc0bc 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
@@ -2483,3 +2483,58 @@ const (
2483 BPF_FD_TYPE_UPROBE = 0x4 2483 BPF_FD_TYPE_UPROBE = 0x4
2484 BPF_FD_TYPE_URETPROBE = 0x5 2484 BPF_FD_TYPE_URETPROBE = 0x5
2485) 2485)
2486
2487type CapUserHeader struct {
2488 Version uint32
2489 Pid int32
2490}
2491
2492type CapUserData struct {
2493 Effective uint32
2494 Permitted uint32
2495 Inheritable uint32
2496}
2497
2498const (
2499 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2500 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2501 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2502)
2503
2504const (
2505 LO_FLAGS_READ_ONLY = 0x1
2506 LO_FLAGS_AUTOCLEAR = 0x4
2507 LO_FLAGS_PARTSCAN = 0x8
2508 LO_FLAGS_DIRECT_IO = 0x10
2509)
2510
2511type LoopInfo struct {
2512 Number int32
2513 Device uint16
2514 Inode uint64
2515 Rdevice uint16
2516 Offset int32
2517 Encrypt_type int32
2518 Encrypt_key_size int32
2519 Flags int32
2520 Name [64]int8
2521 Encrypt_key [32]uint8
2522 Init [2]uint64
2523 Reserved [4]int8
2524 _ [4]byte
2525}
2526type LoopInfo64 struct {
2527 Device uint64
2528 Inode uint64
2529 Rdevice uint64
2530 Offset uint64
2531 Sizelimit uint64
2532 Number uint32
2533 Encrypt_type uint32
2534 Encrypt_key_size uint32
2535 Flags uint32
2536 File_name [64]uint8
2537 Crypt_name [64]uint8
2538 Encrypt_key [32]uint8
2539 Init [2]uint64
2540}
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 b247fe9..5e0ab93 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
@@ -2464,3 +2464,58 @@ const (
2464 BPF_FD_TYPE_UPROBE = 0x4 2464 BPF_FD_TYPE_UPROBE = 0x4
2465 BPF_FD_TYPE_URETPROBE = 0x5 2465 BPF_FD_TYPE_URETPROBE = 0x5
2466) 2466)
2467
2468type CapUserHeader struct {
2469 Version uint32
2470 Pid int32
2471}
2472
2473type CapUserData struct {
2474 Effective uint32
2475 Permitted uint32
2476 Inheritable uint32
2477}
2478
2479const (
2480 LINUX_CAPABILITY_VERSION_1 = 0x19980330
2481 LINUX_CAPABILITY_VERSION_2 = 0x20071026
2482 LINUX_CAPABILITY_VERSION_3 = 0x20080522
2483)
2484
2485const (
2486 LO_FLAGS_READ_ONLY = 0x1
2487 LO_FLAGS_AUTOCLEAR = 0x4
2488 LO_FLAGS_PARTSCAN = 0x8
2489 LO_FLAGS_DIRECT_IO = 0x10
2490)
2491
2492type LoopInfo struct {
2493 Number int32
2494 Device uint32
2495 Inode uint64
2496 Rdevice uint32
2497 Offset int32
2498 Encrypt_type int32
2499 Encrypt_key_size int32
2500 Flags int32
2501 Name [64]int8
2502 Encrypt_key [32]uint8
2503 Init [2]uint64
2504 Reserved [4]int8
2505 _ [4]byte
2506}
2507type LoopInfo64 struct {
2508 Device uint64
2509 Inode uint64
2510 Rdevice uint64
2511 Offset uint64
2512 Sizelimit uint64
2513 Number uint32
2514 Encrypt_type uint32
2515 Encrypt_key_size uint32
2516 Flags uint32
2517 File_name [64]uint8
2518 Crypt_name [64]uint8
2519 Encrypt_key [32]uint8
2520 Init [2]uint64
2521}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
index a2268b4..86736ab 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
@@ -411,6 +411,7 @@ type Ptmget struct {
411 411
412const ( 412const (
413 AT_FDCWD = -0x64 413 AT_FDCWD = -0x64
414 AT_SYMLINK_FOLLOW = 0x400
414 AT_SYMLINK_NOFOLLOW = 0x200 415 AT_SYMLINK_NOFOLLOW = 0x200
415) 416)
416 417
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
index 59e1da0..3427811 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
@@ -418,6 +418,7 @@ type Ptmget struct {
418 418
419const ( 419const (
420 AT_FDCWD = -0x64 420 AT_FDCWD = -0x64
421 AT_SYMLINK_FOLLOW = 0x400
421 AT_SYMLINK_NOFOLLOW = 0x200 422 AT_SYMLINK_NOFOLLOW = 0x200
422) 423)
423 424
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
index 1f1f0f3..399f37a 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
@@ -416,6 +416,7 @@ type Ptmget struct {
416 416
417const ( 417const (
418 AT_FDCWD = -0x64 418 AT_FDCWD = -0x64
419 AT_SYMLINK_FOLLOW = 0x400
419 AT_SYMLINK_NOFOLLOW = 0x200 420 AT_SYMLINK_NOFOLLOW = 0x200
420) 421)
421 422
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go
index 8dca204..32f0c15 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go
@@ -418,6 +418,7 @@ type Ptmget struct {
418 418
419const ( 419const (
420 AT_FDCWD = -0x64 420 AT_FDCWD = -0x64
421 AT_SYMLINK_FOLLOW = 0x400
421 AT_SYMLINK_NOFOLLOW = 0x200 422 AT_SYMLINK_NOFOLLOW = 0x200
422) 423)
423 424
diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
index 900fb44..61ea001 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
@@ -436,6 +436,7 @@ type Winsize struct {
436 436
437const ( 437const (
438 AT_FDCWD = -0x64 438 AT_FDCWD = -0x64
439 AT_SYMLINK_FOLLOW = 0x4
439 AT_SYMLINK_NOFOLLOW = 0x2 440 AT_SYMLINK_NOFOLLOW = 0x2
440) 441)
441 442
diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
index 028fa78..87a493f 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
@@ -436,6 +436,7 @@ type Winsize struct {
436 436
437const ( 437const (
438 AT_FDCWD = -0x64 438 AT_FDCWD = -0x64
439 AT_SYMLINK_FOLLOW = 0x4
439 AT_SYMLINK_NOFOLLOW = 0x2 440 AT_SYMLINK_NOFOLLOW = 0x2
440) 441)
441 442
diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
index b45d5ee..d80836e 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
@@ -437,6 +437,7 @@ type Winsize struct {
437 437
438const ( 438const (
439 AT_FDCWD = -0x64 439 AT_FDCWD = -0x64
440 AT_SYMLINK_FOLLOW = 0x4
440 AT_SYMLINK_NOFOLLOW = 0x2 441 AT_SYMLINK_NOFOLLOW = 0x2
441) 442)
442 443
diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go
index fa369a3..4e15874 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go
@@ -430,6 +430,7 @@ type Winsize struct {
430 430
431const ( 431const (
432 AT_FDCWD = -0x64 432 AT_FDCWD = -0x64
433 AT_SYMLINK_FOLLOW = 0x4
433 AT_SYMLINK_NOFOLLOW = 0x2 434 AT_SYMLINK_NOFOLLOW = 0x2
434) 435)
435 436
diff --git a/vendor/golang.org/x/sys/windows/mkerrors.bash b/vendor/golang.org/x/sys/windows/mkerrors.bash
index f5c6888..2163843 100644
--- a/vendor/golang.org/x/sys/windows/mkerrors.bash
+++ b/vendor/golang.org/x/sys/windows/mkerrors.bash
@@ -13,7 +13,7 @@ winerror="$(printf '%s\n' "/mnt/c/Program Files (x86)/Windows Kits/"/*/Include/*
13declare -A errors 13declare -A errors
14 14
15{ 15{
16 echo "// Code generated by 'go generate'; DO NOT EDIT." 16 echo "// Code generated by 'mkerrors.bash'; DO NOT EDIT."
17 echo 17 echo
18 echo "package windows" 18 echo "package windows"
19 echo "import \"syscall\"" 19 echo "import \"syscall\""
diff --git a/vendor/golang.org/x/sys/windows/mkknownfolderids.bash b/vendor/golang.org/x/sys/windows/mkknownfolderids.bash
new file mode 100644
index 0000000..ab8924e
--- /dev/null
+++ b/vendor/golang.org/x/sys/windows/mkknownfolderids.bash
@@ -0,0 +1,27 @@
1#!/bin/bash
2
3# Copyright 2019 The Go Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7set -e
8shopt -s nullglob
9
10knownfolders="$(printf '%s\n' "/mnt/c/Program Files (x86)/Windows Kits/"/*/Include/*/um/KnownFolders.h | sort -Vr | head -n 1)"
11[[ -n $knownfolders ]] || { echo "Unable to find KnownFolders.h" >&2; exit 1; }
12
13{
14 echo "// Code generated by 'mkknownfolderids.bash'; DO NOT EDIT."
15 echo
16 echo "package windows"
17 echo "type KNOWNFOLDERID GUID"
18 echo "var ("
19 while read -r line; do
20 [[ $line =~ DEFINE_KNOWN_FOLDER\((FOLDERID_[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+)\) ]] || continue
21 printf "%s = &KNOWNFOLDERID{0x%08x, 0x%04x, 0x%04x, [8]byte{0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x}}\n" \
22 "${BASH_REMATCH[1]}" $(( "${BASH_REMATCH[2]}" )) $(( "${BASH_REMATCH[3]}" )) $(( "${BASH_REMATCH[4]}" )) \
23 $(( "${BASH_REMATCH[5]}" )) $(( "${BASH_REMATCH[6]}" )) $(( "${BASH_REMATCH[7]}" )) $(( "${BASH_REMATCH[8]}" )) \
24 $(( "${BASH_REMATCH[9]}" )) $(( "${BASH_REMATCH[10]}" )) $(( "${BASH_REMATCH[11]}" )) $(( "${BASH_REMATCH[12]}" ))
25 done < "$knownfolders"
26 echo ")"
27} | gofmt > "zknownfolderids_windows.go"
diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go
index 61b4964..7b2cfb9 100644
--- a/vendor/golang.org/x/sys/windows/security_windows.go
+++ b/vendor/golang.org/x/sys/windows/security_windows.go
@@ -644,6 +644,8 @@ func (tml *Tokenmandatorylabel) Size() uint32 {
644//sys DuplicateTokenEx(existingToken Token, desiredAccess uint32, tokenAttributes *SecurityAttributes, impersonationLevel uint32, tokenType uint32, newToken *Token) (err error) = advapi32.DuplicateTokenEx 644//sys DuplicateTokenEx(existingToken Token, desiredAccess uint32, tokenAttributes *SecurityAttributes, impersonationLevel uint32, tokenType uint32, newToken *Token) (err error) = advapi32.DuplicateTokenEx
645//sys GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW 645//sys GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW
646//sys getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemDirectoryW 646//sys getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemDirectoryW
647//sys getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetWindowsDirectoryW
648//sys getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemWindowsDirectoryW
647 649
648// An access token contains the security information for a logon session. 650// An access token contains the security information for a logon session.
649// The system creates an access token when a user logs on, and every 651// The system creates an access token when a user logs on, and every
@@ -664,7 +666,7 @@ func OpenCurrentProcessToken() (Token, error) {
664 return 0, e 666 return 0, e
665 } 667 }
666 var t Token 668 var t Token
667 e = OpenProcessToken(p, TOKEN_QUERY, &t) 669 e = OpenProcessToken(p, TOKEN_QUERY|TOKEN_DUPLICATE, &t)
668 if e != nil { 670 if e != nil {
669 return 0, e 671 return 0, e
670 } 672 }
@@ -785,8 +787,8 @@ func (token Token) GetLinkedToken() (Token, error) {
785 return linkedToken, nil 787 return linkedToken, nil
786} 788}
787 789
788// GetSystemDirectory retrieves path to current location of the system 790// GetSystemDirectory retrieves the path to current location of the system
789// directory, which is typically, though not always, C:\Windows\System32. 791// directory, which is typically, though not always, `C:\Windows\System32`.
790func GetSystemDirectory() (string, error) { 792func GetSystemDirectory() (string, error) {
791 n := uint32(MAX_PATH) 793 n := uint32(MAX_PATH)
792 for { 794 for {
@@ -802,6 +804,42 @@ func GetSystemDirectory() (string, error) {
802 } 804 }
803} 805}
804 806
807// GetWindowsDirectory retrieves the path to current location of the Windows
808// directory, which is typically, though not always, `C:\Windows`. This may
809// be a private user directory in the case that the application is running
810// under a terminal server.
811func GetWindowsDirectory() (string, error) {
812 n := uint32(MAX_PATH)
813 for {
814 b := make([]uint16, n)
815 l, e := getWindowsDirectory(&b[0], n)
816 if e != nil {
817 return "", e
818 }
819 if l <= n {
820 return UTF16ToString(b[:l]), nil
821 }
822 n = l
823 }
824}
825
826// GetSystemWindowsDirectory retrieves the path to current location of the
827// Windows directory, which is typically, though not always, `C:\Windows`.
828func GetSystemWindowsDirectory() (string, error) {
829 n := uint32(MAX_PATH)
830 for {
831 b := make([]uint16, n)
832 l, e := getSystemWindowsDirectory(&b[0], n)
833 if e != nil {
834 return "", e
835 }
836 if l <= n {
837 return UTF16ToString(b[:l]), nil
838 }
839 n = l
840 }
841}
842
805// IsMember reports whether the access token t is a member of the provided SID. 843// IsMember reports whether the access token t is a member of the provided SID.
806func (t Token) IsMember(sid *SID) (bool, error) { 844func (t Token) IsMember(sid *SID) (bool, error) {
807 var b int32 845 var b int32
diff --git a/vendor/golang.org/x/sys/windows/service.go b/vendor/golang.org/x/sys/windows/service.go
index 03383f1..847e00b 100644
--- a/vendor/golang.org/x/sys/windows/service.go
+++ b/vendor/golang.org/x/sys/windows/service.go
@@ -159,6 +159,10 @@ type SERVICE_DESCRIPTION struct {
159 Description *uint16 159 Description *uint16
160} 160}
161 161
162type SERVICE_DELAYED_AUTO_START_INFO struct {
163 IsDelayedAutoStartUp uint32
164}
165
162type SERVICE_STATUS_PROCESS struct { 166type SERVICE_STATUS_PROCESS struct {
163 ServiceType uint32 167 ServiceType uint32
164 CurrentState uint32 168 CurrentState uint32
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
index 6abf498..abdefc3 100644
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/syscall_windows.go
@@ -172,8 +172,9 @@ func NewCallbackCDecl(fn interface{}) uintptr {
172//sys CancelIo(s Handle) (err error) 172//sys CancelIo(s Handle) (err error)
173//sys CancelIoEx(s Handle, o *Overlapped) (err error) 173//sys CancelIoEx(s Handle, o *Overlapped) (err error)
174//sys CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW 174//sys CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW
175//sys OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error) 175//sys OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error)
176//sys ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) = shell32.ShellExecuteW 176//sys ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) = shell32.ShellExecuteW
177//sys shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) = shell32.SHGetKnownFolderPath
177//sys TerminateProcess(handle Handle, exitcode uint32) (err error) 178//sys TerminateProcess(handle Handle, exitcode uint32) (err error)
178//sys GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) 179//sys GetExitCodeProcess(handle Handle, exitcode *uint32) (err error)
179//sys GetStartupInfo(startupInfo *StartupInfo) (err error) = GetStartupInfoW 180//sys GetStartupInfo(startupInfo *StartupInfo) (err error) = GetStartupInfoW
@@ -256,6 +257,10 @@ func NewCallbackCDecl(fn interface{}) uintptr {
256//sys SetEvent(event Handle) (err error) = kernel32.SetEvent 257//sys SetEvent(event Handle) (err error) = kernel32.SetEvent
257//sys ResetEvent(event Handle) (err error) = kernel32.ResetEvent 258//sys ResetEvent(event Handle) (err error) = kernel32.ResetEvent
258//sys PulseEvent(event Handle) (err error) = kernel32.PulseEvent 259//sys PulseEvent(event Handle) (err error) = kernel32.PulseEvent
260//sys CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16) (handle Handle, err error) = kernel32.CreateMutexW
261//sys CreateMutexEx(mutexAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) = kernel32.CreateMutexExW
262//sys OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) = kernel32.OpenMutexW
263//sys ReleaseMutex(mutex Handle) (err error) = kernel32.ReleaseMutex
259//sys SleepEx(milliseconds uint32, alertable bool) (ret uint32) = kernel32.SleepEx 264//sys SleepEx(milliseconds uint32, alertable bool) (ret uint32) = kernel32.SleepEx
260//sys CreateJobObject(jobAttr *SecurityAttributes, name *uint16) (handle Handle, err error) = kernel32.CreateJobObjectW 265//sys CreateJobObject(jobAttr *SecurityAttributes, name *uint16) (handle Handle, err error) = kernel32.CreateJobObjectW
261//sys AssignProcessToJobObject(job Handle, process Handle) (err error) = kernel32.AssignProcessToJobObject 266//sys AssignProcessToJobObject(job Handle, process Handle) (err error) = kernel32.AssignProcessToJobObject
@@ -266,6 +271,9 @@ func NewCallbackCDecl(fn interface{}) uintptr {
266//sys GetPriorityClass(process Handle) (ret uint32, err error) = kernel32.GetPriorityClass 271//sys GetPriorityClass(process Handle) (ret uint32, err error) = kernel32.GetPriorityClass
267//sys SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error) 272//sys SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error)
268//sys GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error) 273//sys GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error)
274//sys GetProcessId(process Handle) (id uint32, err error)
275//sys OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (handle Handle, err error)
276//sys SetProcessPriorityBoost(process Handle, disable bool) (err error) = kernel32.SetProcessPriorityBoost
269 277
270// Volume Management Functions 278// Volume Management Functions
271//sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW 279//sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW
@@ -291,6 +299,9 @@ func NewCallbackCDecl(fn interface{}) uintptr {
291//sys clsidFromString(lpsz *uint16, pclsid *GUID) (ret error) = ole32.CLSIDFromString 299//sys clsidFromString(lpsz *uint16, pclsid *GUID) (ret error) = ole32.CLSIDFromString
292//sys stringFromGUID2(rguid *GUID, lpsz *uint16, cchMax int32) (chars int32) = ole32.StringFromGUID2 300//sys stringFromGUID2(rguid *GUID, lpsz *uint16, cchMax int32) (chars int32) = ole32.StringFromGUID2
293//sys coCreateGuid(pguid *GUID) (ret error) = ole32.CoCreateGuid 301//sys coCreateGuid(pguid *GUID) (ret error) = ole32.CoCreateGuid
302//sys CoTaskMemFree(address unsafe.Pointer) = ole32.CoTaskMemFree
303//sys rtlGetVersion(info *OsVersionInfoEx) (ret error) = ntdll.RtlGetVersion
304//sys rtlGetNtVersionNumbers(majorVersion *uint32, minorVersion *uint32, buildNumber *uint32) = ntdll.RtlGetNtVersionNumbers
294 305
295// syscall interface implementation for other packages 306// syscall interface implementation for other packages
296 307
@@ -1282,3 +1293,42 @@ func (guid GUID) String() string {
1282 } 1293 }
1283 return string(utf16.Decode(str[:chars-1])) 1294 return string(utf16.Decode(str[:chars-1]))
1284} 1295}
1296
1297// KnownFolderPath returns a well-known folder path for the current user, specified by one of
1298// the FOLDERID_ constants, and chosen and optionally created based on a KF_ flag.
1299func KnownFolderPath(folderID *KNOWNFOLDERID, flags uint32) (string, error) {
1300 return Token(0).KnownFolderPath(folderID, flags)
1301}
1302
1303// KnownFolderPath returns a well-known folder path for the user token, specified by one of
1304// the FOLDERID_ constants, and chosen and optionally created based on a KF_ flag.
1305func (t Token) KnownFolderPath(folderID *KNOWNFOLDERID, flags uint32) (string, error) {
1306 var p *uint16
1307 err := shGetKnownFolderPath(folderID, flags, t, &p)
1308 if err != nil {
1309 return "", err
1310 }
1311 defer CoTaskMemFree(unsafe.Pointer(p))
1312 return UTF16ToString((*[(1 << 30) - 1]uint16)(unsafe.Pointer(p))[:]), nil
1313}
1314
1315// RtlGetVersion returns the version of the underlying operating system, ignoring
1316// manifest semantics but is affected by the application compatibility layer.
1317func RtlGetVersion() *OsVersionInfoEx {
1318 info := &OsVersionInfoEx{}
1319 info.osVersionInfoSize = uint32(unsafe.Sizeof(*info))
1320 // According to documentation, this function always succeeds.
1321 // The function doesn't even check the validity of the
1322 // osVersionInfoSize member. Disassembling ntdll.dll indicates
1323 // that the documentation is indeed correct about that.
1324 _ = rtlGetVersion(info)
1325 return info
1326}
1327
1328// RtlGetNtVersionNumbers returns the version of the underlying operating system,
1329// ignoring manifest semantics and the application compatibility layer.
1330func RtlGetNtVersionNumbers() (majorVersion, minorVersion, buildNumber uint32) {
1331 rtlGetNtVersionNumbers(&majorVersion, &minorVersion, &buildNumber)
1332 buildNumber &= 0xffff
1333 return
1334}
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
index 8d207ea..1ef80cd 100644
--- a/vendor/golang.org/x/sys/windows/types_windows.go
+++ b/vendor/golang.org/x/sys/windows/types_windows.go
@@ -197,8 +197,11 @@ const (
197 FILE_MAP_READ = 0x04 197 FILE_MAP_READ = 0x04
198 FILE_MAP_EXECUTE = 0x20 198 FILE_MAP_EXECUTE = 0x20
199 199
200 CTRL_C_EVENT = 0 200 CTRL_C_EVENT = 0
201 CTRL_BREAK_EVENT = 1 201 CTRL_BREAK_EVENT = 1
202 CTRL_CLOSE_EVENT = 2
203 CTRL_LOGOFF_EVENT = 5
204 CTRL_SHUTDOWN_EVENT = 6
202 205
203 // Windows reserves errors >= 1<<29 for application use. 206 // Windows reserves errors >= 1<<29 for application use.
204 APPLICATION_ERROR = 1 << 29 207 APPLICATION_ERROR = 1 << 29
@@ -1187,6 +1190,28 @@ const (
1187 REG_QWORD = REG_QWORD_LITTLE_ENDIAN 1190 REG_QWORD = REG_QWORD_LITTLE_ENDIAN
1188) 1191)
1189 1192
1193const (
1194 EVENT_MODIFY_STATE = 0x0002
1195 EVENT_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3
1196
1197 MUTANT_QUERY_STATE = 0x0001
1198 MUTANT_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | MUTANT_QUERY_STATE
1199
1200 SEMAPHORE_MODIFY_STATE = 0x0002
1201 SEMAPHORE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3
1202
1203 TIMER_QUERY_STATE = 0x0001
1204 TIMER_MODIFY_STATE = 0x0002
1205 TIMER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | TIMER_QUERY_STATE | TIMER_MODIFY_STATE
1206
1207 MUTEX_MODIFY_STATE = MUTANT_QUERY_STATE
1208 MUTEX_ALL_ACCESS = MUTANT_ALL_ACCESS
1209
1210 CREATE_EVENT_MANUAL_RESET = 0x1
1211 CREATE_EVENT_INITIAL_SET = 0x2
1212 CREATE_MUTEX_INITIAL_OWNER = 0x1
1213)
1214
1190type AddrinfoW struct { 1215type AddrinfoW struct {
1191 Flags int32 1216 Flags int32
1192 Family int32 1217 Family int32
@@ -1630,3 +1655,36 @@ const (
1630 JobObjectNotificationLimitInformation2 = 34 1655 JobObjectNotificationLimitInformation2 = 34
1631 JobObjectSecurityLimitInformation = 5 1656 JobObjectSecurityLimitInformation = 5
1632) 1657)
1658
1659const (
1660 KF_FLAG_DEFAULT = 0x00000000
1661 KF_FLAG_FORCE_APP_DATA_REDIRECTION = 0x00080000
1662 KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET = 0x00040000
1663 KF_FLAG_FORCE_PACKAGE_REDIRECTION = 0x00020000
1664 KF_FLAG_NO_PACKAGE_REDIRECTION = 0x00010000
1665 KF_FLAG_FORCE_APPCONTAINER_REDIRECTION = 0x00020000
1666 KF_FLAG_NO_APPCONTAINER_REDIRECTION = 0x00010000
1667 KF_FLAG_CREATE = 0x00008000
1668 KF_FLAG_DONT_VERIFY = 0x00004000
1669 KF_FLAG_DONT_UNEXPAND = 0x00002000
1670 KF_FLAG_NO_ALIAS = 0x00001000
1671 KF_FLAG_INIT = 0x00000800
1672 KF_FLAG_DEFAULT_PATH = 0x00000400
1673 KF_FLAG_NOT_PARENT_RELATIVE = 0x00000200
1674 KF_FLAG_SIMPLE_IDLIST = 0x00000100
1675 KF_FLAG_ALIAS_ONLY = 0x80000000
1676)
1677
1678type OsVersionInfoEx struct {
1679 osVersionInfoSize uint32
1680 MajorVersion uint32
1681 MinorVersion uint32
1682 BuildNumber uint32
1683 PlatformId uint32
1684 CsdVersion [128]uint16
1685 ServicePackMajor uint16
1686 ServicePackMinor uint16
1687 SuiteMask uint16
1688 ProductType byte
1689 _ byte
1690}
diff --git a/vendor/golang.org/x/sys/windows/zerrors_windows.go b/vendor/golang.org/x/sys/windows/zerrors_windows.go
index 2b4cea5..f021200 100644
--- a/vendor/golang.org/x/sys/windows/zerrors_windows.go
+++ b/vendor/golang.org/x/sys/windows/zerrors_windows.go
@@ -1,4 +1,4 @@
1// Code generated by 'go generate'; DO NOT EDIT. 1// Code generated by 'mkerrors.bash'; DO NOT EDIT.
2 2
3package windows 3package windows
4 4
diff --git a/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go b/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go
new file mode 100644
index 0000000..6048ac6
--- /dev/null
+++ b/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go
@@ -0,0 +1,149 @@
1// Code generated by 'mkknownfolderids.bash'; DO NOT EDIT.
2
3package windows
4
5type KNOWNFOLDERID GUID
6
7var (
8 FOLDERID_NetworkFolder = &KNOWNFOLDERID{0xd20beec4, 0x5ca8, 0x4905, [8]byte{0xae, 0x3b, 0xbf, 0x25, 0x1e, 0xa0, 0x9b, 0x53}}
9 FOLDERID_ComputerFolder = &KNOWNFOLDERID{0x0ac0837c, 0xbbf8, 0x452a, [8]byte{0x85, 0x0d, 0x79, 0xd0, 0x8e, 0x66, 0x7c, 0xa7}}
10 FOLDERID_InternetFolder = &KNOWNFOLDERID{0x4d9f7874, 0x4e0c, 0x4904, [8]byte{0x96, 0x7b, 0x40, 0xb0, 0xd2, 0x0c, 0x3e, 0x4b}}
11 FOLDERID_ControlPanelFolder = &KNOWNFOLDERID{0x82a74aeb, 0xaeb4, 0x465c, [8]byte{0xa0, 0x14, 0xd0, 0x97, 0xee, 0x34, 0x6d, 0x63}}
12 FOLDERID_PrintersFolder = &KNOWNFOLDERID{0x76fc4e2d, 0xd6ad, 0x4519, [8]byte{0xa6, 0x63, 0x37, 0xbd, 0x56, 0x06, 0x81, 0x85}}
13 FOLDERID_SyncManagerFolder = &KNOWNFOLDERID{0x43668bf8, 0xc14e, 0x49b2, [8]byte{0x97, 0xc9, 0x74, 0x77, 0x84, 0xd7, 0x84, 0xb7}}
14 FOLDERID_SyncSetupFolder = &KNOWNFOLDERID{0x0f214138, 0xb1d3, 0x4a90, [8]byte{0xbb, 0xa9, 0x27, 0xcb, 0xc0, 0xc5, 0x38, 0x9a}}
15 FOLDERID_ConflictFolder = &KNOWNFOLDERID{0x4bfefb45, 0x347d, 0x4006, [8]byte{0xa5, 0xbe, 0xac, 0x0c, 0xb0, 0x56, 0x71, 0x92}}
16 FOLDERID_SyncResultsFolder = &KNOWNFOLDERID{0x289a9a43, 0xbe44, 0x4057, [8]byte{0xa4, 0x1b, 0x58, 0x7a, 0x76, 0xd7, 0xe7, 0xf9}}
17 FOLDERID_RecycleBinFolder = &KNOWNFOLDERID{0xb7534046, 0x3ecb, 0x4c18, [8]byte{0xbe, 0x4e, 0x64, 0xcd, 0x4c, 0xb7, 0xd6, 0xac}}
18 FOLDERID_ConnectionsFolder = &KNOWNFOLDERID{0x6f0cd92b, 0x2e97, 0x45d1, [8]byte{0x88, 0xff, 0xb0, 0xd1, 0x86, 0xb8, 0xde, 0xdd}}
19 FOLDERID_Fonts = &KNOWNFOLDERID{0xfd228cb7, 0xae11, 0x4ae3, [8]byte{0x86, 0x4c, 0x16, 0xf3, 0x91, 0x0a, 0xb8, 0xfe}}
20 FOLDERID_Desktop = &KNOWNFOLDERID{0xb4bfcc3a, 0xdb2c, 0x424c, [8]byte{0xb0, 0x29, 0x7f, 0xe9, 0x9a, 0x87, 0xc6, 0x41}}
21 FOLDERID_Startup = &KNOWNFOLDERID{0xb97d20bb, 0xf46a, 0x4c97, [8]byte{0xba, 0x10, 0x5e, 0x36, 0x08, 0x43, 0x08, 0x54}}
22 FOLDERID_Programs = &KNOWNFOLDERID{0xa77f5d77, 0x2e2b, 0x44c3, [8]byte{0xa6, 0xa2, 0xab, 0xa6, 0x01, 0x05, 0x4a, 0x51}}
23 FOLDERID_StartMenu = &KNOWNFOLDERID{0x625b53c3, 0xab48, 0x4ec1, [8]byte{0xba, 0x1f, 0xa1, 0xef, 0x41, 0x46, 0xfc, 0x19}}
24 FOLDERID_Recent = &KNOWNFOLDERID{0xae50c081, 0xebd2, 0x438a, [8]byte{0x86, 0x55, 0x8a, 0x09, 0x2e, 0x34, 0x98, 0x7a}}
25 FOLDERID_SendTo = &KNOWNFOLDERID{0x8983036c, 0x27c0, 0x404b, [8]byte{0x8f, 0x08, 0x10, 0x2d, 0x10, 0xdc, 0xfd, 0x74}}
26 FOLDERID_Documents = &KNOWNFOLDERID{0xfdd39ad0, 0x238f, 0x46af, [8]byte{0xad, 0xb4, 0x6c, 0x85, 0x48, 0x03, 0x69, 0xc7}}
27 FOLDERID_Favorites = &KNOWNFOLDERID{0x1777f761, 0x68ad, 0x4d8a, [8]byte{0x87, 0xbd, 0x30, 0xb7, 0x59, 0xfa, 0x33, 0xdd}}
28 FOLDERID_NetHood = &KNOWNFOLDERID{0xc5abbf53, 0xe17f, 0x4121, [8]byte{0x89, 0x00, 0x86, 0x62, 0x6f, 0xc2, 0xc9, 0x73}}
29 FOLDERID_PrintHood = &KNOWNFOLDERID{0x9274bd8d, 0xcfd1, 0x41c3, [8]byte{0xb3, 0x5e, 0xb1, 0x3f, 0x55, 0xa7, 0x58, 0xf4}}
30 FOLDERID_Templates = &KNOWNFOLDERID{0xa63293e8, 0x664e, 0x48db, [8]byte{0xa0, 0x79, 0xdf, 0x75, 0x9e, 0x05, 0x09, 0xf7}}
31 FOLDERID_CommonStartup = &KNOWNFOLDERID{0x82a5ea35, 0xd9cd, 0x47c5, [8]byte{0x96, 0x29, 0xe1, 0x5d, 0x2f, 0x71, 0x4e, 0x6e}}
32 FOLDERID_CommonPrograms = &KNOWNFOLDERID{0x0139d44e, 0x6afe, 0x49f2, [8]byte{0x86, 0x90, 0x3d, 0xaf, 0xca, 0xe6, 0xff, 0xb8}}
33 FOLDERID_CommonStartMenu = &KNOWNFOLDERID{0xa4115719, 0xd62e, 0x491d, [8]byte{0xaa, 0x7c, 0xe7, 0x4b, 0x8b, 0xe3, 0xb0, 0x67}}
34 FOLDERID_PublicDesktop = &KNOWNFOLDERID{0xc4aa340d, 0xf20f, 0x4863, [8]byte{0xaf, 0xef, 0xf8, 0x7e, 0xf2, 0xe6, 0xba, 0x25}}
35 FOLDERID_ProgramData = &KNOWNFOLDERID{0x62ab5d82, 0xfdc1, 0x4dc3, [8]byte{0xa9, 0xdd, 0x07, 0x0d, 0x1d, 0x49, 0x5d, 0x97}}
36 FOLDERID_CommonTemplates = &KNOWNFOLDERID{0xb94237e7, 0x57ac, 0x4347, [8]byte{0x91, 0x51, 0xb0, 0x8c, 0x6c, 0x32, 0xd1, 0xf7}}
37 FOLDERID_PublicDocuments = &KNOWNFOLDERID{0xed4824af, 0xdce4, 0x45a8, [8]byte{0x81, 0xe2, 0xfc, 0x79, 0x65, 0x08, 0x36, 0x34}}
38 FOLDERID_RoamingAppData = &KNOWNFOLDERID{0x3eb685db, 0x65f9, 0x4cf6, [8]byte{0xa0, 0x3a, 0xe3, 0xef, 0x65, 0x72, 0x9f, 0x3d}}
39 FOLDERID_LocalAppData = &KNOWNFOLDERID{0xf1b32785, 0x6fba, 0x4fcf, [8]byte{0x9d, 0x55, 0x7b, 0x8e, 0x7f, 0x15, 0x70, 0x91}}
40 FOLDERID_LocalAppDataLow = &KNOWNFOLDERID{0xa520a1a4, 0x1780, 0x4ff6, [8]byte{0xbd, 0x18, 0x16, 0x73, 0x43, 0xc5, 0xaf, 0x16}}
41 FOLDERID_InternetCache = &KNOWNFOLDERID{0x352481e8, 0x33be, 0x4251, [8]byte{0xba, 0x85, 0x60, 0x07, 0xca, 0xed, 0xcf, 0x9d}}
42 FOLDERID_Cookies = &KNOWNFOLDERID{0x2b0f765d, 0xc0e9, 0x4171, [8]byte{0x90, 0x8e, 0x08, 0xa6, 0x11, 0xb8, 0x4f, 0xf6}}
43 FOLDERID_History = &KNOWNFOLDERID{0xd9dc8a3b, 0xb784, 0x432e, [8]byte{0xa7, 0x81, 0x5a, 0x11, 0x30, 0xa7, 0x59, 0x63}}
44 FOLDERID_System = &KNOWNFOLDERID{0x1ac14e77, 0x02e7, 0x4e5d, [8]byte{0xb7, 0x44, 0x2e, 0xb1, 0xae, 0x51, 0x98, 0xb7}}
45 FOLDERID_SystemX86 = &KNOWNFOLDERID{0xd65231b0, 0xb2f1, 0x4857, [8]byte{0xa4, 0xce, 0xa8, 0xe7, 0xc6, 0xea, 0x7d, 0x27}}
46 FOLDERID_Windows = &KNOWNFOLDERID{0xf38bf404, 0x1d43, 0x42f2, [8]byte{0x93, 0x05, 0x67, 0xde, 0x0b, 0x28, 0xfc, 0x23}}
47 FOLDERID_Profile = &KNOWNFOLDERID{0x5e6c858f, 0x0e22, 0x4760, [8]byte{0x9a, 0xfe, 0xea, 0x33, 0x17, 0xb6, 0x71, 0x73}}
48 FOLDERID_Pictures = &KNOWNFOLDERID{0x33e28130, 0x4e1e, 0x4676, [8]byte{0x83, 0x5a, 0x98, 0x39, 0x5c, 0x3b, 0xc3, 0xbb}}
49 FOLDERID_ProgramFilesX86 = &KNOWNFOLDERID{0x7c5a40ef, 0xa0fb, 0x4bfc, [8]byte{0x87, 0x4a, 0xc0, 0xf2, 0xe0, 0xb9, 0xfa, 0x8e}}
50 FOLDERID_ProgramFilesCommonX86 = &KNOWNFOLDERID{0xde974d24, 0xd9c6, 0x4d3e, [8]byte{0xbf, 0x91, 0xf4, 0x45, 0x51, 0x20, 0xb9, 0x17}}
51 FOLDERID_ProgramFilesX64 = &KNOWNFOLDERID{0x6d809377, 0x6af0, 0x444b, [8]byte{0x89, 0x57, 0xa3, 0x77, 0x3f, 0x02, 0x20, 0x0e}}
52 FOLDERID_ProgramFilesCommonX64 = &KNOWNFOLDERID{0x6365d5a7, 0x0f0d, 0x45e5, [8]byte{0x87, 0xf6, 0x0d, 0xa5, 0x6b, 0x6a, 0x4f, 0x7d}}
53 FOLDERID_ProgramFiles = &KNOWNFOLDERID{0x905e63b6, 0xc1bf, 0x494e, [8]byte{0xb2, 0x9c, 0x65, 0xb7, 0x32, 0xd3, 0xd2, 0x1a}}
54 FOLDERID_ProgramFilesCommon = &KNOWNFOLDERID{0xf7f1ed05, 0x9f6d, 0x47a2, [8]byte{0xaa, 0xae, 0x29, 0xd3, 0x17, 0xc6, 0xf0, 0x66}}
55 FOLDERID_UserProgramFiles = &KNOWNFOLDERID{0x5cd7aee2, 0x2219, 0x4a67, [8]byte{0xb8, 0x5d, 0x6c, 0x9c, 0xe1, 0x56, 0x60, 0xcb}}
56 FOLDERID_UserProgramFilesCommon = &KNOWNFOLDERID{0xbcbd3057, 0xca5c, 0x4622, [8]byte{0xb4, 0x2d, 0xbc, 0x56, 0xdb, 0x0a, 0xe5, 0x16}}
57 FOLDERID_AdminTools = &KNOWNFOLDERID{0x724ef170, 0xa42d, 0x4fef, [8]byte{0x9f, 0x26, 0xb6, 0x0e, 0x84, 0x6f, 0xba, 0x4f}}
58 FOLDERID_CommonAdminTools = &KNOWNFOLDERID{0xd0384e7d, 0xbac3, 0x4797, [8]byte{0x8f, 0x14, 0xcb, 0xa2, 0x29, 0xb3, 0x92, 0xb5}}
59 FOLDERID_Music = &KNOWNFOLDERID{0x4bd8d571, 0x6d19, 0x48d3, [8]byte{0xbe, 0x97, 0x42, 0x22, 0x20, 0x08, 0x0e, 0x43}}
60 FOLDERID_Videos = &KNOWNFOLDERID{0x18989b1d, 0x99b5, 0x455b, [8]byte{0x84, 0x1c, 0xab, 0x7c, 0x74, 0xe4, 0xdd, 0xfc}}
61 FOLDERID_Ringtones = &KNOWNFOLDERID{0xc870044b, 0xf49e, 0x4126, [8]byte{0xa9, 0xc3, 0xb5, 0x2a, 0x1f, 0xf4, 0x11, 0xe8}}
62 FOLDERID_PublicPictures = &KNOWNFOLDERID{0xb6ebfb86, 0x6907, 0x413c, [8]byte{0x9a, 0xf7, 0x4f, 0xc2, 0xab, 0xf0, 0x7c, 0xc5}}
63 FOLDERID_PublicMusic = &KNOWNFOLDERID{0x3214fab5, 0x9757, 0x4298, [8]byte{0xbb, 0x61, 0x92, 0xa9, 0xde, 0xaa, 0x44, 0xff}}
64 FOLDERID_PublicVideos = &KNOWNFOLDERID{0x2400183a, 0x6185, 0x49fb, [8]byte{0xa2, 0xd8, 0x4a, 0x39, 0x2a, 0x60, 0x2b, 0xa3}}
65 FOLDERID_PublicRingtones = &KNOWNFOLDERID{0xe555ab60, 0x153b, 0x4d17, [8]byte{0x9f, 0x04, 0xa5, 0xfe, 0x99, 0xfc, 0x15, 0xec}}
66 FOLDERID_ResourceDir = &KNOWNFOLDERID{0x8ad10c31, 0x2adb, 0x4296, [8]byte{0xa8, 0xf7, 0xe4, 0x70, 0x12, 0x32, 0xc9, 0x72}}
67 FOLDERID_LocalizedResourcesDir = &KNOWNFOLDERID{0x2a00375e, 0x224c, 0x49de, [8]byte{0xb8, 0xd1, 0x44, 0x0d, 0xf7, 0xef, 0x3d, 0xdc}}
68 FOLDERID_CommonOEMLinks = &KNOWNFOLDERID{0xc1bae2d0, 0x10df, 0x4334, [8]byte{0xbe, 0xdd, 0x7a, 0xa2, 0x0b, 0x22, 0x7a, 0x9d}}
69 FOLDERID_CDBurning = &KNOWNFOLDERID{0x9e52ab10, 0xf80d, 0x49df, [8]byte{0xac, 0xb8, 0x43, 0x30, 0xf5, 0x68, 0x78, 0x55}}
70 FOLDERID_UserProfiles = &KNOWNFOLDERID{0x0762d272, 0xc50a, 0x4bb0, [8]byte{0xa3, 0x82, 0x69, 0x7d, 0xcd, 0x72, 0x9b, 0x80}}
71 FOLDERID_Playlists = &KNOWNFOLDERID{0xde92c1c7, 0x837f, 0x4f69, [8]byte{0xa3, 0xbb, 0x86, 0xe6, 0x31, 0x20, 0x4a, 0x23}}
72 FOLDERID_SamplePlaylists = &KNOWNFOLDERID{0x15ca69b3, 0x30ee, 0x49c1, [8]byte{0xac, 0xe1, 0x6b, 0x5e, 0xc3, 0x72, 0xaf, 0xb5}}
73 FOLDERID_SampleMusic = &KNOWNFOLDERID{0xb250c668, 0xf57d, 0x4ee1, [8]byte{0xa6, 0x3c, 0x29, 0x0e, 0xe7, 0xd1, 0xaa, 0x1f}}
74 FOLDERID_SamplePictures = &KNOWNFOLDERID{0xc4900540, 0x2379, 0x4c75, [8]byte{0x84, 0x4b, 0x64, 0xe6, 0xfa, 0xf8, 0x71, 0x6b}}
75 FOLDERID_SampleVideos = &KNOWNFOLDERID{0x859ead94, 0x2e85, 0x48ad, [8]byte{0xa7, 0x1a, 0x09, 0x69, 0xcb, 0x56, 0xa6, 0xcd}}
76 FOLDERID_PhotoAlbums = &KNOWNFOLDERID{0x69d2cf90, 0xfc33, 0x4fb7, [8]byte{0x9a, 0x0c, 0xeb, 0xb0, 0xf0, 0xfc, 0xb4, 0x3c}}
77 FOLDERID_Public = &KNOWNFOLDERID{0xdfdf76a2, 0xc82a, 0x4d63, [8]byte{0x90, 0x6a, 0x56, 0x44, 0xac, 0x45, 0x73, 0x85}}
78 FOLDERID_ChangeRemovePrograms = &KNOWNFOLDERID{0xdf7266ac, 0x9274, 0x4867, [8]byte{0x8d, 0x55, 0x3b, 0xd6, 0x61, 0xde, 0x87, 0x2d}}
79 FOLDERID_AppUpdates = &KNOWNFOLDERID{0xa305ce99, 0xf527, 0x492b, [8]byte{0x8b, 0x1a, 0x7e, 0x76, 0xfa, 0x98, 0xd6, 0xe4}}
80 FOLDERID_AddNewPrograms = &KNOWNFOLDERID{0xde61d971, 0x5ebc, 0x4f02, [8]byte{0xa3, 0xa9, 0x6c, 0x82, 0x89, 0x5e, 0x5c, 0x04}}
81 FOLDERID_Downloads = &KNOWNFOLDERID{0x374de290, 0x123f, 0x4565, [8]byte{0x91, 0x64, 0x39, 0xc4, 0x92, 0x5e, 0x46, 0x7b}}
82 FOLDERID_PublicDownloads = &KNOWNFOLDERID{0x3d644c9b, 0x1fb8, 0x4f30, [8]byte{0x9b, 0x45, 0xf6, 0x70, 0x23, 0x5f, 0x79, 0xc0}}
83 FOLDERID_SavedSearches = &KNOWNFOLDERID{0x7d1d3a04, 0xdebb, 0x4115, [8]byte{0x95, 0xcf, 0x2f, 0x29, 0xda, 0x29, 0x20, 0xda}}
84 FOLDERID_QuickLaunch = &KNOWNFOLDERID{0x52a4f021, 0x7b75, 0x48a9, [8]byte{0x9f, 0x6b, 0x4b, 0x87, 0xa2, 0x10, 0xbc, 0x8f}}
85 FOLDERID_Contacts = &KNOWNFOLDERID{0x56784854, 0xc6cb, 0x462b, [8]byte{0x81, 0x69, 0x88, 0xe3, 0x50, 0xac, 0xb8, 0x82}}
86 FOLDERID_SidebarParts = &KNOWNFOLDERID{0xa75d362e, 0x50fc, 0x4fb7, [8]byte{0xac, 0x2c, 0xa8, 0xbe, 0xaa, 0x31, 0x44, 0x93}}
87 FOLDERID_SidebarDefaultParts = &KNOWNFOLDERID{0x7b396e54, 0x9ec5, 0x4300, [8]byte{0xbe, 0x0a, 0x24, 0x82, 0xeb, 0xae, 0x1a, 0x26}}
88 FOLDERID_PublicGameTasks = &KNOWNFOLDERID{0xdebf2536, 0xe1a8, 0x4c59, [8]byte{0xb6, 0xa2, 0x41, 0x45, 0x86, 0x47, 0x6a, 0xea}}
89 FOLDERID_GameTasks = &KNOWNFOLDERID{0x054fae61, 0x4dd8, 0x4787, [8]byte{0x80, 0xb6, 0x09, 0x02, 0x20, 0xc4, 0xb7, 0x00}}
90 FOLDERID_SavedGames = &KNOWNFOLDERID{0x4c5c32ff, 0xbb9d, 0x43b0, [8]byte{0xb5, 0xb4, 0x2d, 0x72, 0xe5, 0x4e, 0xaa, 0xa4}}
91 FOLDERID_Games = &KNOWNFOLDERID{0xcac52c1a, 0xb53d, 0x4edc, [8]byte{0x92, 0xd7, 0x6b, 0x2e, 0x8a, 0xc1, 0x94, 0x34}}
92 FOLDERID_SEARCH_MAPI = &KNOWNFOLDERID{0x98ec0e18, 0x2098, 0x4d44, [8]byte{0x86, 0x44, 0x66, 0x97, 0x93, 0x15, 0xa2, 0x81}}
93 FOLDERID_SEARCH_CSC = &KNOWNFOLDERID{0xee32e446, 0x31ca, 0x4aba, [8]byte{0x81, 0x4f, 0xa5, 0xeb, 0xd2, 0xfd, 0x6d, 0x5e}}
94 FOLDERID_Links = &KNOWNFOLDERID{0xbfb9d5e0, 0xc6a9, 0x404c, [8]byte{0xb2, 0xb2, 0xae, 0x6d, 0xb6, 0xaf, 0x49, 0x68}}
95 FOLDERID_UsersFiles = &KNOWNFOLDERID{0xf3ce0f7c, 0x4901, 0x4acc, [8]byte{0x86, 0x48, 0xd5, 0xd4, 0x4b, 0x04, 0xef, 0x8f}}
96 FOLDERID_UsersLibraries = &KNOWNFOLDERID{0xa302545d, 0xdeff, 0x464b, [8]byte{0xab, 0xe8, 0x61, 0xc8, 0x64, 0x8d, 0x93, 0x9b}}
97 FOLDERID_SearchHome = &KNOWNFOLDERID{0x190337d1, 0xb8ca, 0x4121, [8]byte{0xa6, 0x39, 0x6d, 0x47, 0x2d, 0x16, 0x97, 0x2a}}
98 FOLDERID_OriginalImages = &KNOWNFOLDERID{0x2c36c0aa, 0x5812, 0x4b87, [8]byte{0xbf, 0xd0, 0x4c, 0xd0, 0xdf, 0xb1, 0x9b, 0x39}}
99 FOLDERID_DocumentsLibrary = &KNOWNFOLDERID{0x7b0db17d, 0x9cd2, 0x4a93, [8]byte{0x97, 0x33, 0x46, 0xcc, 0x89, 0x02, 0x2e, 0x7c}}
100 FOLDERID_MusicLibrary = &KNOWNFOLDERID{0x2112ab0a, 0xc86a, 0x4ffe, [8]byte{0xa3, 0x68, 0x0d, 0xe9, 0x6e, 0x47, 0x01, 0x2e}}
101 FOLDERID_PicturesLibrary = &KNOWNFOLDERID{0xa990ae9f, 0xa03b, 0x4e80, [8]byte{0x94, 0xbc, 0x99, 0x12, 0xd7, 0x50, 0x41, 0x04}}
102 FOLDERID_VideosLibrary = &KNOWNFOLDERID{0x491e922f, 0x5643, 0x4af4, [8]byte{0xa7, 0xeb, 0x4e, 0x7a, 0x13, 0x8d, 0x81, 0x74}}
103 FOLDERID_RecordedTVLibrary = &KNOWNFOLDERID{0x1a6fdba2, 0xf42d, 0x4358, [8]byte{0xa7, 0x98, 0xb7, 0x4d, 0x74, 0x59, 0x26, 0xc5}}
104 FOLDERID_HomeGroup = &KNOWNFOLDERID{0x52528a6b, 0xb9e3, 0x4add, [8]byte{0xb6, 0x0d, 0x58, 0x8c, 0x2d, 0xba, 0x84, 0x2d}}
105 FOLDERID_HomeGroupCurrentUser = &KNOWNFOLDERID{0x9b74b6a3, 0x0dfd, 0x4f11, [8]byte{0x9e, 0x78, 0x5f, 0x78, 0x00, 0xf2, 0xe7, 0x72}}
106 FOLDERID_DeviceMetadataStore = &KNOWNFOLDERID{0x5ce4a5e9, 0xe4eb, 0x479d, [8]byte{0xb8, 0x9f, 0x13, 0x0c, 0x02, 0x88, 0x61, 0x55}}
107 FOLDERID_Libraries = &KNOWNFOLDERID{0x1b3ea5dc, 0xb587, 0x4786, [8]byte{0xb4, 0xef, 0xbd, 0x1d, 0xc3, 0x32, 0xae, 0xae}}
108 FOLDERID_PublicLibraries = &KNOWNFOLDERID{0x48daf80b, 0xe6cf, 0x4f4e, [8]byte{0xb8, 0x00, 0x0e, 0x69, 0xd8, 0x4e, 0xe3, 0x84}}
109 FOLDERID_UserPinned = &KNOWNFOLDERID{0x9e3995ab, 0x1f9c, 0x4f13, [8]byte{0xb8, 0x27, 0x48, 0xb2, 0x4b, 0x6c, 0x71, 0x74}}
110 FOLDERID_ImplicitAppShortcuts = &KNOWNFOLDERID{0xbcb5256f, 0x79f6, 0x4cee, [8]byte{0xb7, 0x25, 0xdc, 0x34, 0xe4, 0x02, 0xfd, 0x46}}
111 FOLDERID_AccountPictures = &KNOWNFOLDERID{0x008ca0b1, 0x55b4, 0x4c56, [8]byte{0xb8, 0xa8, 0x4d, 0xe4, 0xb2, 0x99, 0xd3, 0xbe}}
112 FOLDERID_PublicUserTiles = &KNOWNFOLDERID{0x0482af6c, 0x08f1, 0x4c34, [8]byte{0x8c, 0x90, 0xe1, 0x7e, 0xc9, 0x8b, 0x1e, 0x17}}
113 FOLDERID_AppsFolder = &KNOWNFOLDERID{0x1e87508d, 0x89c2, 0x42f0, [8]byte{0x8a, 0x7e, 0x64, 0x5a, 0x0f, 0x50, 0xca, 0x58}}
114 FOLDERID_StartMenuAllPrograms = &KNOWNFOLDERID{0xf26305ef, 0x6948, 0x40b9, [8]byte{0xb2, 0x55, 0x81, 0x45, 0x3d, 0x09, 0xc7, 0x85}}
115 FOLDERID_CommonStartMenuPlaces = &KNOWNFOLDERID{0xa440879f, 0x87a0, 0x4f7d, [8]byte{0xb7, 0x00, 0x02, 0x07, 0xb9, 0x66, 0x19, 0x4a}}
116 FOLDERID_ApplicationShortcuts = &KNOWNFOLDERID{0xa3918781, 0xe5f2, 0x4890, [8]byte{0xb3, 0xd9, 0xa7, 0xe5, 0x43, 0x32, 0x32, 0x8c}}
117 FOLDERID_RoamingTiles = &KNOWNFOLDERID{0x00bcfc5a, 0xed94, 0x4e48, [8]byte{0x96, 0xa1, 0x3f, 0x62, 0x17, 0xf2, 0x19, 0x90}}
118 FOLDERID_RoamedTileImages = &KNOWNFOLDERID{0xaaa8d5a5, 0xf1d6, 0x4259, [8]byte{0xba, 0xa8, 0x78, 0xe7, 0xef, 0x60, 0x83, 0x5e}}
119 FOLDERID_Screenshots = &KNOWNFOLDERID{0xb7bede81, 0xdf94, 0x4682, [8]byte{0xa7, 0xd8, 0x57, 0xa5, 0x26, 0x20, 0xb8, 0x6f}}
120 FOLDERID_CameraRoll = &KNOWNFOLDERID{0xab5fb87b, 0x7ce2, 0x4f83, [8]byte{0x91, 0x5d, 0x55, 0x08, 0x46, 0xc9, 0x53, 0x7b}}
121 FOLDERID_SkyDrive = &KNOWNFOLDERID{0xa52bba46, 0xe9e1, 0x435f, [8]byte{0xb3, 0xd9, 0x28, 0xda, 0xa6, 0x48, 0xc0, 0xf6}}
122 FOLDERID_OneDrive = &KNOWNFOLDERID{0xa52bba46, 0xe9e1, 0x435f, [8]byte{0xb3, 0xd9, 0x28, 0xda, 0xa6, 0x48, 0xc0, 0xf6}}
123 FOLDERID_SkyDriveDocuments = &KNOWNFOLDERID{0x24d89e24, 0x2f19, 0x4534, [8]byte{0x9d, 0xde, 0x6a, 0x66, 0x71, 0xfb, 0xb8, 0xfe}}
124 FOLDERID_SkyDrivePictures = &KNOWNFOLDERID{0x339719b5, 0x8c47, 0x4894, [8]byte{0x94, 0xc2, 0xd8, 0xf7, 0x7a, 0xdd, 0x44, 0xa6}}
125 FOLDERID_SkyDriveMusic = &KNOWNFOLDERID{0xc3f2459e, 0x80d6, 0x45dc, [8]byte{0xbf, 0xef, 0x1f, 0x76, 0x9f, 0x2b, 0xe7, 0x30}}
126 FOLDERID_SkyDriveCameraRoll = &KNOWNFOLDERID{0x767e6811, 0x49cb, 0x4273, [8]byte{0x87, 0xc2, 0x20, 0xf3, 0x55, 0xe1, 0x08, 0x5b}}
127 FOLDERID_SearchHistory = &KNOWNFOLDERID{0x0d4c3db6, 0x03a3, 0x462f, [8]byte{0xa0, 0xe6, 0x08, 0x92, 0x4c, 0x41, 0xb5, 0xd4}}
128 FOLDERID_SearchTemplates = &KNOWNFOLDERID{0x7e636bfe, 0xdfa9, 0x4d5e, [8]byte{0xb4, 0x56, 0xd7, 0xb3, 0x98, 0x51, 0xd8, 0xa9}}
129 FOLDERID_CameraRollLibrary = &KNOWNFOLDERID{0x2b20df75, 0x1eda, 0x4039, [8]byte{0x80, 0x97, 0x38, 0x79, 0x82, 0x27, 0xd5, 0xb7}}
130 FOLDERID_SavedPictures = &KNOWNFOLDERID{0x3b193882, 0xd3ad, 0x4eab, [8]byte{0x96, 0x5a, 0x69, 0x82, 0x9d, 0x1f, 0xb5, 0x9f}}
131 FOLDERID_SavedPicturesLibrary = &KNOWNFOLDERID{0xe25b5812, 0xbe88, 0x4bd9, [8]byte{0x94, 0xb0, 0x29, 0x23, 0x34, 0x77, 0xb6, 0xc3}}
132 FOLDERID_RetailDemo = &KNOWNFOLDERID{0x12d4c69e, 0x24ad, 0x4923, [8]byte{0xbe, 0x19, 0x31, 0x32, 0x1c, 0x43, 0xa7, 0x67}}
133 FOLDERID_Device = &KNOWNFOLDERID{0x1c2ac1dc, 0x4358, 0x4b6c, [8]byte{0x97, 0x33, 0xaf, 0x21, 0x15, 0x65, 0x76, 0xf0}}
134 FOLDERID_DevelopmentFiles = &KNOWNFOLDERID{0xdbe8e08e, 0x3053, 0x4bbc, [8]byte{0xb1, 0x83, 0x2a, 0x7b, 0x2b, 0x19, 0x1e, 0x59}}
135 FOLDERID_Objects3D = &KNOWNFOLDERID{0x31c0dd25, 0x9439, 0x4f12, [8]byte{0xbf, 0x41, 0x7f, 0xf4, 0xed, 0xa3, 0x87, 0x22}}
136 FOLDERID_AppCaptures = &KNOWNFOLDERID{0xedc0fe71, 0x98d8, 0x4f4a, [8]byte{0xb9, 0x20, 0xc8, 0xdc, 0x13, 0x3c, 0xb1, 0x65}}
137 FOLDERID_LocalDocuments = &KNOWNFOLDERID{0xf42ee2d3, 0x909f, 0x4907, [8]byte{0x88, 0x71, 0x4c, 0x22, 0xfc, 0x0b, 0xf7, 0x56}}
138 FOLDERID_LocalPictures = &KNOWNFOLDERID{0x0ddd015d, 0xb06c, 0x45d5, [8]byte{0x8c, 0x4c, 0xf5, 0x97, 0x13, 0x85, 0x46, 0x39}}
139 FOLDERID_LocalVideos = &KNOWNFOLDERID{0x35286a68, 0x3c57, 0x41a1, [8]byte{0xbb, 0xb1, 0x0e, 0xae, 0x73, 0xd7, 0x6c, 0x95}}
140 FOLDERID_LocalMusic = &KNOWNFOLDERID{0xa0c69a99, 0x21c8, 0x4671, [8]byte{0x87, 0x03, 0x79, 0x34, 0x16, 0x2f, 0xcf, 0x1d}}
141 FOLDERID_LocalDownloads = &KNOWNFOLDERID{0x7d83ee9b, 0x2244, 0x4e70, [8]byte{0xb1, 0xf5, 0x53, 0x93, 0x04, 0x2a, 0xf1, 0xe4}}
142 FOLDERID_RecordedCalls = &KNOWNFOLDERID{0x2f8b40c2, 0x83ed, 0x48ee, [8]byte{0xb3, 0x83, 0xa1, 0xf1, 0x57, 0xec, 0x6f, 0x9a}}
143 FOLDERID_AllAppMods = &KNOWNFOLDERID{0x7ad67899, 0x66af, 0x43ba, [8]byte{0x91, 0x56, 0x6a, 0xad, 0x42, 0xe6, 0xc5, 0x96}}
144 FOLDERID_CurrentAppMods = &KNOWNFOLDERID{0x3db40b20, 0x2a30, 0x4dbe, [8]byte{0x91, 0x7e, 0x77, 0x1d, 0xd2, 0x1d, 0xd0, 0x99}}
145 FOLDERID_AppDataDesktop = &KNOWNFOLDERID{0xb2c5e279, 0x7add, 0x439f, [8]byte{0xb2, 0x8c, 0xc4, 0x1f, 0xe1, 0xbb, 0xf6, 0x72}}
146 FOLDERID_AppDataDocuments = &KNOWNFOLDERID{0x7be16610, 0x1f7f, 0x44ac, [8]byte{0xbf, 0xf0, 0x83, 0xe1, 0x5f, 0x2f, 0xfc, 0xa1}}
147 FOLDERID_AppDataFavorites = &KNOWNFOLDERID{0x7cfbefbc, 0xde1f, 0x45aa, [8]byte{0xb8, 0x43, 0xa5, 0x42, 0xac, 0x53, 0x6c, 0xc9}}
148 FOLDERID_AppDataProgramData = &KNOWNFOLDERID{0x559d40a3, 0xa036, 0x40fa, [8]byte{0xaf, 0x61, 0x84, 0xcb, 0x43, 0x0a, 0x4d, 0x34}}
149)
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
index 23da089..9c448be 100644
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
@@ -43,6 +43,7 @@ var (
43 modcrypt32 = NewLazySystemDLL("crypt32.dll") 43 modcrypt32 = NewLazySystemDLL("crypt32.dll")
44 moduser32 = NewLazySystemDLL("user32.dll") 44 moduser32 = NewLazySystemDLL("user32.dll")
45 modole32 = NewLazySystemDLL("ole32.dll") 45 modole32 = NewLazySystemDLL("ole32.dll")
46 modntdll = NewLazySystemDLL("ntdll.dll")
46 modws2_32 = NewLazySystemDLL("ws2_32.dll") 47 modws2_32 = NewLazySystemDLL("ws2_32.dll")
47 moddnsapi = NewLazySystemDLL("dnsapi.dll") 48 moddnsapi = NewLazySystemDLL("dnsapi.dll")
48 modiphlpapi = NewLazySystemDLL("iphlpapi.dll") 49 modiphlpapi = NewLazySystemDLL("iphlpapi.dll")
@@ -114,6 +115,7 @@ var (
114 procCreateProcessW = modkernel32.NewProc("CreateProcessW") 115 procCreateProcessW = modkernel32.NewProc("CreateProcessW")
115 procOpenProcess = modkernel32.NewProc("OpenProcess") 116 procOpenProcess = modkernel32.NewProc("OpenProcess")
116 procShellExecuteW = modshell32.NewProc("ShellExecuteW") 117 procShellExecuteW = modshell32.NewProc("ShellExecuteW")
118 procSHGetKnownFolderPath = modshell32.NewProc("SHGetKnownFolderPath")
117 procTerminateProcess = modkernel32.NewProc("TerminateProcess") 119 procTerminateProcess = modkernel32.NewProc("TerminateProcess")
118 procGetExitCodeProcess = modkernel32.NewProc("GetExitCodeProcess") 120 procGetExitCodeProcess = modkernel32.NewProc("GetExitCodeProcess")
119 procGetStartupInfoW = modkernel32.NewProc("GetStartupInfoW") 121 procGetStartupInfoW = modkernel32.NewProc("GetStartupInfoW")
@@ -195,6 +197,10 @@ var (
195 procSetEvent = modkernel32.NewProc("SetEvent") 197 procSetEvent = modkernel32.NewProc("SetEvent")
196 procResetEvent = modkernel32.NewProc("ResetEvent") 198 procResetEvent = modkernel32.NewProc("ResetEvent")
197 procPulseEvent = modkernel32.NewProc("PulseEvent") 199 procPulseEvent = modkernel32.NewProc("PulseEvent")
200 procCreateMutexW = modkernel32.NewProc("CreateMutexW")
201 procCreateMutexExW = modkernel32.NewProc("CreateMutexExW")
202 procOpenMutexW = modkernel32.NewProc("OpenMutexW")
203 procReleaseMutex = modkernel32.NewProc("ReleaseMutex")
198 procSleepEx = modkernel32.NewProc("SleepEx") 204 procSleepEx = modkernel32.NewProc("SleepEx")
199 procCreateJobObjectW = modkernel32.NewProc("CreateJobObjectW") 205 procCreateJobObjectW = modkernel32.NewProc("CreateJobObjectW")
200 procAssignProcessToJobObject = modkernel32.NewProc("AssignProcessToJobObject") 206 procAssignProcessToJobObject = modkernel32.NewProc("AssignProcessToJobObject")
@@ -205,6 +211,9 @@ var (
205 procGetPriorityClass = modkernel32.NewProc("GetPriorityClass") 211 procGetPriorityClass = modkernel32.NewProc("GetPriorityClass")
206 procSetInformationJobObject = modkernel32.NewProc("SetInformationJobObject") 212 procSetInformationJobObject = modkernel32.NewProc("SetInformationJobObject")
207 procGenerateConsoleCtrlEvent = modkernel32.NewProc("GenerateConsoleCtrlEvent") 213 procGenerateConsoleCtrlEvent = modkernel32.NewProc("GenerateConsoleCtrlEvent")
214 procGetProcessId = modkernel32.NewProc("GetProcessId")
215 procOpenThread = modkernel32.NewProc("OpenThread")
216 procSetProcessPriorityBoost = modkernel32.NewProc("SetProcessPriorityBoost")
208 procDefineDosDeviceW = modkernel32.NewProc("DefineDosDeviceW") 217 procDefineDosDeviceW = modkernel32.NewProc("DefineDosDeviceW")
209 procDeleteVolumeMountPointW = modkernel32.NewProc("DeleteVolumeMountPointW") 218 procDeleteVolumeMountPointW = modkernel32.NewProc("DeleteVolumeMountPointW")
210 procFindFirstVolumeW = modkernel32.NewProc("FindFirstVolumeW") 219 procFindFirstVolumeW = modkernel32.NewProc("FindFirstVolumeW")
@@ -228,6 +237,9 @@ var (
228 procCLSIDFromString = modole32.NewProc("CLSIDFromString") 237 procCLSIDFromString = modole32.NewProc("CLSIDFromString")
229 procStringFromGUID2 = modole32.NewProc("StringFromGUID2") 238 procStringFromGUID2 = modole32.NewProc("StringFromGUID2")
230 procCoCreateGuid = modole32.NewProc("CoCreateGuid") 239 procCoCreateGuid = modole32.NewProc("CoCreateGuid")
240 procCoTaskMemFree = modole32.NewProc("CoTaskMemFree")
241 procRtlGetVersion = modntdll.NewProc("RtlGetVersion")
242 procRtlGetNtVersionNumbers = modntdll.NewProc("RtlGetNtVersionNumbers")
231 procWSAStartup = modws2_32.NewProc("WSAStartup") 243 procWSAStartup = modws2_32.NewProc("WSAStartup")
232 procWSACleanup = modws2_32.NewProc("WSACleanup") 244 procWSACleanup = modws2_32.NewProc("WSACleanup")
233 procWSAIoctl = modws2_32.NewProc("WSAIoctl") 245 procWSAIoctl = modws2_32.NewProc("WSAIoctl")
@@ -297,6 +309,8 @@ var (
297 procDuplicateTokenEx = modadvapi32.NewProc("DuplicateTokenEx") 309 procDuplicateTokenEx = modadvapi32.NewProc("DuplicateTokenEx")
298 procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW") 310 procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW")
299 procGetSystemDirectoryW = modkernel32.NewProc("GetSystemDirectoryW") 311 procGetSystemDirectoryW = modkernel32.NewProc("GetSystemDirectoryW")
312 procGetWindowsDirectoryW = modkernel32.NewProc("GetWindowsDirectoryW")
313 procGetSystemWindowsDirectoryW = modkernel32.NewProc("GetSystemWindowsDirectoryW")
300 procWTSQueryUserToken = modwtsapi32.NewProc("WTSQueryUserToken") 314 procWTSQueryUserToken = modwtsapi32.NewProc("WTSQueryUserToken")
301 procWTSEnumerateSessionsW = modwtsapi32.NewProc("WTSEnumerateSessionsW") 315 procWTSEnumerateSessionsW = modwtsapi32.NewProc("WTSEnumerateSessionsW")
302 procWTSFreeMemory = modwtsapi32.NewProc("WTSFreeMemory") 316 procWTSFreeMemory = modwtsapi32.NewProc("WTSFreeMemory")
@@ -1084,14 +1098,14 @@ func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityA
1084 return 1098 return
1085} 1099}
1086 1100
1087func OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error) { 1101func OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error) {
1088 var _p0 uint32 1102 var _p0 uint32
1089 if inheritHandle { 1103 if inheritHandle {
1090 _p0 = 1 1104 _p0 = 1
1091 } else { 1105 } else {
1092 _p0 = 0 1106 _p0 = 0
1093 } 1107 }
1094 r0, _, e1 := syscall.Syscall(procOpenProcess.Addr(), 3, uintptr(da), uintptr(_p0), uintptr(pid)) 1108 r0, _, e1 := syscall.Syscall(procOpenProcess.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(processId))
1095 handle = Handle(r0) 1109 handle = Handle(r0)
1096 if handle == 0 { 1110 if handle == 0 {
1097 if e1 != 0 { 1111 if e1 != 0 {
@@ -1115,6 +1129,14 @@ func ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *ui
1115 return 1129 return
1116} 1130}
1117 1131
1132func shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) {
1133 r0, _, _ := syscall.Syscall6(procSHGetKnownFolderPath.Addr(), 4, uintptr(unsafe.Pointer(id)), uintptr(flags), uintptr(token), uintptr(unsafe.Pointer(path)), 0, 0)
1134 if r0 != 0 {
1135 ret = syscall.Errno(r0)
1136 }
1137 return
1138}
1139
1118func TerminateProcess(handle Handle, exitcode uint32) (err error) { 1140func TerminateProcess(handle Handle, exitcode uint32) (err error) {
1119 r1, _, e1 := syscall.Syscall(procTerminateProcess.Addr(), 2, uintptr(handle), uintptr(exitcode), 0) 1141 r1, _, e1 := syscall.Syscall(procTerminateProcess.Addr(), 2, uintptr(handle), uintptr(exitcode), 0)
1120 if r1 == 0 { 1142 if r1 == 0 {
@@ -2091,6 +2113,69 @@ func PulseEvent(event Handle) (err error) {
2091 return 2113 return
2092} 2114}
2093 2115
2116func CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16) (handle Handle, err error) {
2117 var _p0 uint32
2118 if initialOwner {
2119 _p0 = 1
2120 } else {
2121 _p0 = 0
2122 }
2123 r0, _, e1 := syscall.Syscall(procCreateMutexW.Addr(), 3, uintptr(unsafe.Pointer(mutexAttrs)), uintptr(_p0), uintptr(unsafe.Pointer(name)))
2124 handle = Handle(r0)
2125 if handle == 0 {
2126 if e1 != 0 {
2127 err = errnoErr(e1)
2128 } else {
2129 err = syscall.EINVAL
2130 }
2131 }
2132 return
2133}
2134
2135func CreateMutexEx(mutexAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) {
2136 r0, _, e1 := syscall.Syscall6(procCreateMutexExW.Addr(), 4, uintptr(unsafe.Pointer(mutexAttrs)), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(desiredAccess), 0, 0)
2137 handle = Handle(r0)
2138 if handle == 0 {
2139 if e1 != 0 {
2140 err = errnoErr(e1)
2141 } else {
2142 err = syscall.EINVAL
2143 }
2144 }
2145 return
2146}
2147
2148func OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) {
2149 var _p0 uint32
2150 if inheritHandle {
2151 _p0 = 1
2152 } else {
2153 _p0 = 0
2154 }
2155 r0, _, e1 := syscall.Syscall(procOpenMutexW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
2156 handle = Handle(r0)
2157 if handle == 0 {
2158 if e1 != 0 {
2159 err = errnoErr(e1)
2160 } else {
2161 err = syscall.EINVAL
2162 }
2163 }
2164 return
2165}
2166
2167func ReleaseMutex(mutex Handle) (err error) {
2168 r1, _, e1 := syscall.Syscall(procReleaseMutex.Addr(), 1, uintptr(mutex), 0, 0)
2169 if r1 == 0 {
2170 if e1 != 0 {
2171 err = errnoErr(e1)
2172 } else {
2173 err = syscall.EINVAL
2174 }
2175 }
2176 return
2177}
2178
2094func SleepEx(milliseconds uint32, alertable bool) (ret uint32) { 2179func SleepEx(milliseconds uint32, alertable bool) (ret uint32) {
2095 var _p0 uint32 2180 var _p0 uint32
2096 if alertable { 2181 if alertable {
@@ -2209,6 +2294,56 @@ func GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err erro
2209 return 2294 return
2210} 2295}
2211 2296
2297func GetProcessId(process Handle) (id uint32, err error) {
2298 r0, _, e1 := syscall.Syscall(procGetProcessId.Addr(), 1, uintptr(process), 0, 0)
2299 id = uint32(r0)
2300 if id == 0 {
2301 if e1 != 0 {
2302 err = errnoErr(e1)
2303 } else {
2304 err = syscall.EINVAL
2305 }
2306 }
2307 return
2308}
2309
2310func OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (handle Handle, err error) {
2311 var _p0 uint32
2312 if inheritHandle {
2313 _p0 = 1
2314 } else {
2315 _p0 = 0
2316 }
2317 r0, _, e1 := syscall.Syscall(procOpenThread.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(threadId))
2318 handle = Handle(r0)
2319 if handle == 0 {
2320 if e1 != 0 {
2321 err = errnoErr(e1)
2322 } else {
2323 err = syscall.EINVAL
2324 }
2325 }
2326 return
2327}
2328
2329func SetProcessPriorityBoost(process Handle, disable bool) (err error) {
2330 var _p0 uint32
2331 if disable {
2332 _p0 = 1
2333 } else {
2334 _p0 = 0
2335 }
2336 r1, _, e1 := syscall.Syscall(procSetProcessPriorityBoost.Addr(), 2, uintptr(process), uintptr(_p0), 0)
2337 if r1 == 0 {
2338 if e1 != 0 {
2339 err = errnoErr(e1)
2340 } else {
2341 err = syscall.EINVAL
2342 }
2343 }
2344 return
2345}
2346
2212func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) { 2347func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) {
2213 r1, _, e1 := syscall.Syscall(procDefineDosDeviceW.Addr(), 3, uintptr(flags), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath))) 2348 r1, _, e1 := syscall.Syscall(procDefineDosDeviceW.Addr(), 3, uintptr(flags), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath)))
2214 if r1 == 0 { 2349 if r1 == 0 {
@@ -2471,6 +2606,24 @@ func coCreateGuid(pguid *GUID) (ret error) {
2471 return 2606 return
2472} 2607}
2473 2608
2609func CoTaskMemFree(address unsafe.Pointer) {
2610 syscall.Syscall(procCoTaskMemFree.Addr(), 1, uintptr(address), 0, 0)
2611 return
2612}
2613
2614func rtlGetVersion(info *OsVersionInfoEx) (ret error) {
2615 r0, _, _ := syscall.Syscall(procRtlGetVersion.Addr(), 1, uintptr(unsafe.Pointer(info)), 0, 0)
2616 if r0 != 0 {
2617 ret = syscall.Errno(r0)
2618 }
2619 return
2620}
2621
2622func rtlGetNtVersionNumbers(majorVersion *uint32, minorVersion *uint32, buildNumber *uint32) {
2623 syscall.Syscall(procRtlGetNtVersionNumbers.Addr(), 3, uintptr(unsafe.Pointer(majorVersion)), uintptr(unsafe.Pointer(minorVersion)), uintptr(unsafe.Pointer(buildNumber)))
2624 return
2625}
2626
2474func WSAStartup(verreq uint32, data *WSAData) (sockerr error) { 2627func WSAStartup(verreq uint32, data *WSAData) (sockerr error) {
2475 r0, _, _ := syscall.Syscall(procWSAStartup.Addr(), 2, uintptr(verreq), uintptr(unsafe.Pointer(data)), 0) 2628 r0, _, _ := syscall.Syscall(procWSAStartup.Addr(), 2, uintptr(verreq), uintptr(unsafe.Pointer(data)), 0)
2476 if r0 != 0 { 2629 if r0 != 0 {
@@ -3248,6 +3401,32 @@ func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
3248 return 3401 return
3249} 3402}
3250 3403
3404func getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
3405 r0, _, e1 := syscall.Syscall(procGetWindowsDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
3406 len = uint32(r0)
3407 if len == 0 {
3408 if e1 != 0 {
3409 err = errnoErr(e1)
3410 } else {
3411 err = syscall.EINVAL
3412 }
3413 }
3414 return
3415}
3416
3417func getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
3418 r0, _, e1 := syscall.Syscall(procGetSystemWindowsDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
3419 len = uint32(r0)
3420 if len == 0 {
3421 if e1 != 0 {
3422 err = errnoErr(e1)
3423 } else {
3424 err = syscall.EINVAL
3425 }
3426 }
3427 return
3428}
3429
3251func WTSQueryUserToken(session uint32, token *Token) (err error) { 3430func WTSQueryUserToken(session uint32, token *Token) (err error) {
3252 r1, _, e1 := syscall.Syscall(procWTSQueryUserToken.Addr(), 2, uintptr(session), uintptr(unsafe.Pointer(token)), 0) 3431 r1, _, e1 := syscall.Syscall(procWTSQueryUserToken.Addr(), 2, uintptr(session), uintptr(unsafe.Pointer(token)), 0)
3253 if r1 == 0 { 3432 if r1 == 0 {
diff --git a/vendor/modules.txt b/vendor/modules.txt
index a74d6d7..df588fb 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -9,7 +9,7 @@ github.com/beevik/ntp
9github.com/beorn7/perks/quantile 9github.com/beorn7/perks/quantile
10# github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e 10# github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
11github.com/coreos/go-systemd/dbus 11github.com/coreos/go-systemd/dbus
12# github.com/ema/qdisc v0.0.0-20180104102928-b307c22d3ce7 12# github.com/ema/qdisc v0.0.0-20190904071900-b82c76788043
13github.com/ema/qdisc 13github.com/ema/qdisc
14# github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968 14# github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968
15github.com/godbus/dbus 15github.com/godbus/dbus
@@ -25,12 +25,12 @@ github.com/lufia/iostat
25github.com/mattn/go-xmlrpc 25github.com/mattn/go-xmlrpc
26# github.com/matttproud/golang_protobuf_extensions v1.0.1 26# github.com/matttproud/golang_protobuf_extensions v1.0.1
27github.com/matttproud/golang_protobuf_extensions/pbutil 27github.com/matttproud/golang_protobuf_extensions/pbutil
28# github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 28# github.com/mdlayher/genetlink v0.0.0-20190828143517-e35f2bf499b9
29github.com/mdlayher/genetlink 29github.com/mdlayher/genetlink
30# github.com/mdlayher/netlink v0.0.0-20181210160939-e069752bc835 30# github.com/mdlayher/netlink v0.0.0-20190828143259-340058475d09
31github.com/mdlayher/netlink 31github.com/mdlayher/netlink
32github.com/mdlayher/netlink/nlenc 32github.com/mdlayher/netlink/nlenc
33# github.com/mdlayher/wifi v0.0.0-20180727163819-efdf3f4195d9 33# github.com/mdlayher/wifi v0.0.0-20190303161829-b1436901ddee
34github.com/mdlayher/wifi 34github.com/mdlayher/wifi
35github.com/mdlayher/wifi/internal/nl80211 35github.com/mdlayher/wifi/internal/nl80211
36# github.com/prometheus/client_golang v1.0.0 36# github.com/prometheus/client_golang v1.0.0
@@ -63,14 +63,14 @@ github.com/soundcloud/go-runit/runit
63go.uber.org/atomic 63go.uber.org/atomic
64# go.uber.org/multierr v1.1.0 64# go.uber.org/multierr v1.1.0
65go.uber.org/multierr 65go.uber.org/multierr
66# golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c 66# golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297
67golang.org/x/net/ipv4 67golang.org/x/net/ipv4
68golang.org/x/net/bpf 68golang.org/x/net/bpf
69golang.org/x/net/internal/iana 69golang.org/x/net/internal/iana
70golang.org/x/net/internal/socket 70golang.org/x/net/internal/socket
71# golang.org/x/sync v0.0.0-20190423024810-112230192c58 71# golang.org/x/sync v0.0.0-20190423024810-112230192c58
72golang.org/x/sync/errgroup 72golang.org/x/sync/errgroup
73# golang.org/x/sys v0.0.0-20190610081024-1e42afee0f76 73# golang.org/x/sys v0.0.0-20190902133755-9109b7679e13
74golang.org/x/sys/unix 74golang.org/x/sys/unix
75golang.org/x/sys/windows 75golang.org/x/sys/windows
76golang.org/x/sys/windows/svc/eventlog 76golang.org/x/sys/windows/svc/eventlog