aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2019-04-15 14:00:19 +0200
committerGitHub <noreply@github.com>2019-04-15 14:00:19 +0200
commite71e9f5a2fea95f19f7740c8c97861bb6ef94337 (patch)
treeeed1c00a87a3d49bf0d65bdc498b4f69bb5726fa
parentb1298677aa13a5f48dd5303120fa4a4bd4579ab9 (diff)
downloadprometheus_node_collector-e71e9f5a2fea95f19f7740c8c97861bb6ef94337.tar.bz2
prometheus_node_collector-e71e9f5a2fea95f19f7740c8c97861bb6ef94337.tar.xz
prometheus_node_collector-e71e9f5a2fea95f19f7740c8c97861bb6ef94337.zip
Update vendoring (#1304)
Update to current vendoring. Signed-off-by: Ben Kochie <superq@gmail.com>
-rw-r--r--go.mod14
-rw-r--r--go.sum31
-rw-r--r--vendor/github.com/coreos/go-systemd/dbus/methods.go6
-rw-r--r--vendor/github.com/coreos/go-systemd/dbus/subscription.go2
-rw-r--r--vendor/github.com/golang/protobuf/proto/decode.go1
-rw-r--r--vendor/github.com/golang/protobuf/proto/deprecated.go63
-rw-r--r--vendor/github.com/golang/protobuf/proto/equal.go3
-rw-r--r--vendor/github.com/golang/protobuf/proto/extensions.go78
-rw-r--r--vendor/github.com/golang/protobuf/proto/lib.go38
-rw-r--r--vendor/github.com/golang/protobuf/proto/message_set.go137
-rw-r--r--vendor/github.com/golang/protobuf/proto/pointer_reflect.go5
-rw-r--r--vendor/github.com/golang/protobuf/proto/pointer_unsafe.go15
-rw-r--r--vendor/github.com/golang/protobuf/proto/properties.go31
-rw-r--r--vendor/github.com/golang/protobuf/proto/table_marshal.go45
-rw-r--r--vendor/github.com/golang/protobuf/proto/table_unmarshal.go72
-rw-r--r--vendor/github.com/konsorten/go-windows-terminal-sequences/README.md1
-rw-r--r--vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go11
-rw-r--r--vendor/github.com/mattn/go-xmlrpc/go.mod3
-rw-r--r--vendor/github.com/sirupsen/logrus/.travis.yml65
-rw-r--r--vendor/github.com/sirupsen/logrus/CHANGELOG.md33
-rw-r--r--vendor/github.com/sirupsen/logrus/README.md1
-rw-r--r--vendor/github.com/sirupsen/logrus/alt_exit.go18
-rw-r--r--vendor/github.com/sirupsen/logrus/entry.go32
-rw-r--r--vendor/github.com/sirupsen/logrus/exported.go6
-rw-r--r--vendor/github.com/sirupsen/logrus/go.mod1
-rw-r--r--vendor/github.com/sirupsen/logrus/go.sum2
-rw-r--r--vendor/github.com/sirupsen/logrus/json_formatter.go22
-rw-r--r--vendor/github.com/sirupsen/logrus/logger.go12
-rw-r--r--vendor/github.com/sirupsen/logrus/logrus.go2
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_aix.go9
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_bsd.go13
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go6
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_unix.go13
-rw-r--r--vendor/github.com/sirupsen/logrus/text_formatter.go60
-rw-r--r--vendor/golang.org/x/crypto/AUTHORS3
-rw-r--r--vendor/golang.org/x/crypto/CONTRIBUTORS3
-rw-r--r--vendor/golang.org/x/crypto/LICENSE27
-rw-r--r--vendor/golang.org/x/crypto/PATENTS22
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/terminal.go955
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util.go114
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_aix.go12
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go12
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_linux.go10
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go58
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go124
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_windows.go103
-rw-r--r--vendor/golang.org/x/net/internal/socket/rawconn.go2
-rw-r--r--vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go1
-rw-r--r--vendor/golang.org/x/net/internal/socket/rawconn_msg.go1
-rw-r--r--vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go7
-rw-r--r--vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go7
-rw-r--r--vendor/golang.org/x/net/internal/socket/rawconn_stub.go25
-rw-r--r--vendor/golang.org/x/net/internal/socket/reflect.go62
-rw-r--r--vendor/golang.org/x/net/internal/socket/socket.go3
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys.go2
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_bsd.go6
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_bsdvar.go2
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_posix.go1
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_solaris.go5
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_stub.go15
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_windows.go9
-rw-r--r--vendor/golang.org/x/net/ipv4/batch.go8
-rw-r--r--vendor/golang.org/x/net/ipv4/control_stub.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/control_windows.go8
-rw-r--r--vendor/golang.org/x/net/ipv4/dgramopt.go30
-rw-r--r--vendor/golang.org/x/net/ipv4/doc.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/endpoint.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/genericopt.go8
-rw-r--r--vendor/golang.org/x/net/ipv4/header.go11
-rw-r--r--vendor/golang.org/x/net/ipv4/helper.go21
-rw-r--r--vendor/golang.org/x/net/ipv4/packet.go53
-rw-r--r--vendor/golang.org/x/net/ipv4/packet_go1_8.go56
-rw-r--r--vendor/golang.org/x/net/ipv4/packet_go1_9.go67
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_cmsg.go57
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go59
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go67
-rw-r--r--vendor/golang.org/x/net/ipv4/sockopt_posix.go4
-rw-r--r--vendor/golang.org/x/net/ipv4/sockopt_stub.go14
-rw-r--r--vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go6
-rw-r--r--vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go4
-rw-r--r--vendor/golang.org/x/net/ipv4/sys_bpf_stub.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/sys_freebsd.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/sys_ssmreq.go6
-rw-r--r--vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go4
-rw-r--r--vendor/golang.org/x/sys/unix/README.md16
-rw-r--r--vendor/golang.org/x/sys/unix/mkall.sh6
-rw-r--r--vendor/golang.org/x/sys/unix/mkerrors.sh2
-rw-r--r--vendor/golang.org/x/sys/unix/mksyscall.go2
-rw-r--r--vendor/golang.org/x/sys/unix/mksyscall_solaris.go335
-rw-r--r--vendor/golang.org/x/sys/unix/mksyscall_solaris.pl294
-rw-r--r--vendor/golang.org/x/sys/unix/sockcmsg_unix.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_aix.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin.go17
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux.go54
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_arm.go6
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_arm64.go13
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go13
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_openbsd.go17
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_unix.go48
-rw-r--r--vendor/golang.org/x/sys/unix/types_darwin.go6
-rw-r--r--vendor/golang.org/x/sys/unix/types_openbsd.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_386.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go57
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go8
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go10
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go9
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_386.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go31
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go36
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go36
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_386.go10
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go10
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go10
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go10
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_386.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go76
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go10
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go10
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go10
-rw-r--r--vendor/golang.org/x/sys/windows/dll_windows.go8
-rw-r--r--vendor/golang.org/x/sys/windows/security_windows.go173
-rw-r--r--vendor/golang.org/x/sys/windows/syscall_windows.go1
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows.go16
-rw-r--r--vendor/golang.org/x/sys/windows/zsyscall_windows.go46
-rw-r--r--vendor/modules.txt18
160 files changed, 3453 insertions, 2729 deletions
diff --git a/go.mod b/go.mod
index c87f413..d9e7939 100644
--- a/go.mod
+++ b/go.mod
@@ -2,12 +2,14 @@ module github.com/prometheus/node_exporter
2 2
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-20181031085051-9002847aa142 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-20180104102928-b307c22d3ce7
7 github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968 7 github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968
8 github.com/golang/protobuf v1.3.1 // indirect
8 github.com/google/go-cmp v0.2.0 // indirect 9 github.com/google/go-cmp v0.2.0 // indirect
10 github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
9 github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 11 github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3
10 github.com/mattn/go-xmlrpc v0.0.0-20180914005235-ceecee2c45b7 12 github.com/mattn/go-xmlrpc v0.0.1
11 github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 // indirect 13 github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 // indirect
12 github.com/mdlayher/netlink v0.0.0-20181210160939-e069752bc835 // indirect 14 github.com/mdlayher/netlink v0.0.0-20181210160939-e069752bc835 // indirect
13 github.com/mdlayher/wifi v0.0.0-20180727163819-efdf3f4195d9 15 github.com/mdlayher/wifi v0.0.0-20180727163819-efdf3f4195d9
@@ -16,11 +18,11 @@ require (
16 github.com/prometheus/common v0.2.0 18 github.com/prometheus/common v0.2.0
17 github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd 19 github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd
18 github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 20 github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745
19 github.com/sirupsen/logrus v1.3.0 // indirect 21 github.com/sirupsen/logrus v1.4.1 // indirect
20 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a 22 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a
21 github.com/stretchr/testify v1.3.0 // indirect 23 github.com/stretchr/testify v1.3.0 // indirect
22 golang.org/x/crypto v0.0.0-20190208162236-193df9c0f06f // indirect 24 golang.org/x/net v0.0.0-20190328230028-74de082e2cca // indirect
23 golang.org/x/net v0.0.0-20190206173232-65e2d4e15006 // indirect 25 golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 // indirect
24 golang.org/x/sys v0.0.0-20190209173611-3b5209105503 26 golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c
25 gopkg.in/alecthomas/kingpin.v2 v2.2.6 27 gopkg.in/alecthomas/kingpin.v2 v2.2.6
26) 28)
diff --git a/go.sum b/go.sum
index 0aa2771..5e592b3 100644
--- a/go.sum
+++ b/go.sum
@@ -6,8 +6,8 @@ github.com/beevik/ntp v0.2.0 h1:sGsd+kAXzT0bfVfzJfce04g+dSRfrs+tbQW8lweuYgw=
6github.com/beevik/ntp v0.2.0/go.mod h1:hIHWr+l3+/clUnF44zdK+CWW7fO8dR5cIylAQ76NRpg= 6github.com/beevik/ntp v0.2.0/go.mod h1:hIHWr+l3+/clUnF44zdK+CWW7fO8dR5cIylAQ76NRpg=
7github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0= 7github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0=
8github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 8github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
9github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142 h1:3jFq2xL4ZajGK4aZY8jz+DAF0FHjI51BXjjSwCzS1Dk= 9github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=
10github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 10github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
11github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 11github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
12github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 12github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
13github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 13github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -22,16 +22,20 @@ github.com/gogo/protobuf v1.1.1 h1:72R+M5VuhED/KujmZVcIquuo8mBgX4oVda//DQb3PXo=
22github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 22github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
23github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= 23github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
24github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 24github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
25github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
26github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
25github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ= 27github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
26github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 28github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
27github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 29github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
28github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= 30github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
29github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 31github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
32github.com/konsorten/go-windows-terminal-sequences v1.0.2 h1:DB17ag19krx9CFsz4o3enTrPXyIXCl+2iCXH/aMAp9s=
33github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
30github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 34github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
31github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 h1:XGhvld9vIpj929Gri5ybjukYZeyZwKkFkqgATqBQiOs= 35github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 h1:XGhvld9vIpj929Gri5ybjukYZeyZwKkFkqgATqBQiOs=
32github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3/go.mod h1:lRgtFVamD7L7GaXOSwBiuXMwU3Aicfn5h66LVs4u2SA= 36github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3/go.mod h1:lRgtFVamD7L7GaXOSwBiuXMwU3Aicfn5h66LVs4u2SA=
33github.com/mattn/go-xmlrpc v0.0.0-20180914005235-ceecee2c45b7 h1:BFoDwzrzyagR6/NO4av33U5jZCA5e0+PGzVrctY5Vu0= 37github.com/mattn/go-xmlrpc v0.0.1 h1:JY8G+sH4jcjzZvxAY5P+wNrWA2WYC+aK+2bsYOl4z0Q=
34github.com/mattn/go-xmlrpc v0.0.0-20180914005235-ceecee2c45b7/go.mod h1:jPxKbOGukjFCw9jFB7RRh3ZRQUehV22ryHP8IpREEx4= 38github.com/mattn/go-xmlrpc v0.0.1/go.mod h1:mqc2dz7tP5x5BKlCahN/n+hs7OSZKJkS9JsHNBRlrxA=
35github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 39github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
36github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 40github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
37github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 h1:2uvgdCvQ/MUubxqVhOFkeTaI0EZLcjPLVIwgZGWPgxs= 41github.com/mdlayher/genetlink v0.0.0-20181016160152-e97704c1b795 h1:2uvgdCvQ/MUubxqVhOFkeTaI0EZLcjPLVIwgZGWPgxs=
@@ -62,8 +66,8 @@ github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd/go.mod h1:TjEm7z
62github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA= 66github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA=
63github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8= 67github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8=
64github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 68github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
65github.com/sirupsen/logrus v1.3.0 h1:hI/7Q+DtNZ2kINb6qt/lS+IyXnHQe9e90POfeewL/ME= 69github.com/sirupsen/logrus v1.4.1 h1:GL2rEmy6nsikmW0r8opw9JIRScdMF5hA8cOYLH7In1k=
66github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 70github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
67github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a h1:os5OBNhwOwybXZMNLqT96XqtjdTtwRFw2w08uluvNeI= 71github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a h1:os5OBNhwOwybXZMNLqT96XqtjdTtwRFw2w08uluvNeI=
68github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a/go.mod h1:LeFCbQYJ3KJlPs/FvPz2dy1tkpxyeNESVyCNNzRXFR0= 72github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a/go.mod h1:LeFCbQYJ3KJlPs/FvPz2dy1tkpxyeNESVyCNNzRXFR0=
69github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 73github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -73,20 +77,23 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
73github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= 77github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
74github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 78github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
75golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 79golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
76golang.org/x/crypto v0.0.0-20190208162236-193df9c0f06f h1:ETU2VEl7TnT5bl7IvuKEzTDpplg5wzGYsOCAPhdoEIg= 80golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
77golang.org/x/crypto v0.0.0-20190208162236-193df9c0f06f/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
78golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 81golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
79golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 82golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
80golang.org/x/net v0.0.0-20190206173232-65e2d4e15006 h1:bfLnR+k0tq5Lqt6dflRLcZiz6UaXCMt3vhYJ1l4FQ80= 83golang.org/x/net v0.0.0-20190328230028-74de082e2cca h1:hyA6yiAgbUwuWqtscNvWAI7U1CtlaD1KilQ6iudt1aI=
81golang.org/x/net v0.0.0-20190206173232-65e2d4e15006/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 84golang.org/x/net v0.0.0-20190328230028-74de082e2cca/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
82golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ= 85golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ=
83golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 86golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
84golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= 87golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
85golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 88golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
89golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 h1:bjcUS9ztw9kFmmIxJInhon/0Is3p+EHBKNgquIzo1OI=
90golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
86golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 91golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
87golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 92golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
88golang.org/x/sys v0.0.0-20190209173611-3b5209105503 h1:5SvYFrOM3W8Mexn9/oA44Ji7vhXAZQ9hiP+1Q/DMrWg= 93golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
89golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 94golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c h1:3xiKTkef8QqBJ8q+4fVUDMRoxnI0H/MVNFswa+aExbo=
95golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
96golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
90gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 97gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=
91gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 98gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
92gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 99gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
diff --git a/vendor/github.com/coreos/go-systemd/dbus/methods.go b/vendor/github.com/coreos/go-systemd/dbus/methods.go
index 6a0aa65..5f2790a 100644
--- a/vendor/github.com/coreos/go-systemd/dbus/methods.go
+++ b/vendor/github.com/coreos/go-systemd/dbus/methods.go
@@ -117,13 +117,13 @@ func (c *Conn) TryRestartUnit(name string, mode string, ch chan<- string) (int,
117 return c.startJob(ch, "org.freedesktop.systemd1.Manager.TryRestartUnit", name, mode) 117 return c.startJob(ch, "org.freedesktop.systemd1.Manager.TryRestartUnit", name, mode)
118} 118}
119 119
120// ReloadOrRestart attempts a reload if the unit supports it and use a restart 120// ReloadOrRestartUnit attempts a reload if the unit supports it and use a restart
121// otherwise. 121// otherwise.
122func (c *Conn) ReloadOrRestartUnit(name string, mode string, ch chan<- string) (int, error) { 122func (c *Conn) ReloadOrRestartUnit(name string, mode string, ch chan<- string) (int, error) {
123 return c.startJob(ch, "org.freedesktop.systemd1.Manager.ReloadOrRestartUnit", name, mode) 123 return c.startJob(ch, "org.freedesktop.systemd1.Manager.ReloadOrRestartUnit", name, mode)
124} 124}
125 125
126// ReloadOrTryRestart attempts a reload if the unit supports it and use a "Try" 126// ReloadOrTryRestartUnit attempts a reload if the unit supports it and use a "Try"
127// flavored restart otherwise. 127// flavored restart otherwise.
128func (c *Conn) ReloadOrTryRestartUnit(name string, mode string, ch chan<- string) (int, error) { 128func (c *Conn) ReloadOrTryRestartUnit(name string, mode string, ch chan<- string) (int, error) {
129 return c.startJob(ch, "org.freedesktop.systemd1.Manager.ReloadOrTryRestartUnit", name, mode) 129 return c.startJob(ch, "org.freedesktop.systemd1.Manager.ReloadOrTryRestartUnit", name, mode)
@@ -192,7 +192,7 @@ func (c *Conn) GetUnitProperties(unit string) (map[string]interface{}, error) {
192 return c.getProperties(path, "org.freedesktop.systemd1.Unit") 192 return c.getProperties(path, "org.freedesktop.systemd1.Unit")
193} 193}
194 194
195// GetUnitProperties takes the (escaped) unit path and returns all of its dbus object properties. 195// GetUnitPathProperties takes the (escaped) unit path and returns all of its dbus object properties.
196func (c *Conn) GetUnitPathProperties(path dbus.ObjectPath) (map[string]interface{}, error) { 196func (c *Conn) GetUnitPathProperties(path dbus.ObjectPath) (map[string]interface{}, error) {
197 return c.getProperties(path, "org.freedesktop.systemd1.Unit") 197 return c.getProperties(path, "org.freedesktop.systemd1.Unit")
198} 198}
diff --git a/vendor/github.com/coreos/go-systemd/dbus/subscription.go b/vendor/github.com/coreos/go-systemd/dbus/subscription.go
index 70e63a6..f6d7a08 100644
--- a/vendor/github.com/coreos/go-systemd/dbus/subscription.go
+++ b/vendor/github.com/coreos/go-systemd/dbus/subscription.go
@@ -94,7 +94,7 @@ func (c *Conn) dispatch() {
94 }() 94 }()
95} 95}
96 96
97// Returns two unbuffered channels which will receive all changed units every 97// SubscribeUnits returns two unbuffered channels which will receive all changed units every
98// interval. Deleted units are sent as nil. 98// interval. Deleted units are sent as nil.
99func (c *Conn) SubscribeUnits(interval time.Duration) (<-chan map[string]*UnitStatus, <-chan error) { 99func (c *Conn) SubscribeUnits(interval time.Duration) (<-chan map[string]*UnitStatus, <-chan error) {
100 return c.SubscribeUnitsCustom(interval, 0, func(u1, u2 *UnitStatus) bool { return *u1 != *u2 }, nil) 100 return c.SubscribeUnitsCustom(interval, 0, func(u1, u2 *UnitStatus) bool { return *u1 != *u2 }, nil)
diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go
index d9aa3c4..63b0f08 100644
--- a/vendor/github.com/golang/protobuf/proto/decode.go
+++ b/vendor/github.com/golang/protobuf/proto/decode.go
@@ -186,7 +186,6 @@ func (p *Buffer) DecodeVarint() (x uint64, err error) {
186 if b&0x80 == 0 { 186 if b&0x80 == 0 {
187 goto done 187 goto done
188 } 188 }
189 // x -= 0x80 << 63 // Always zero.
190 189
191 return 0, errOverflow 190 return 0, errOverflow
192 191
diff --git a/vendor/github.com/golang/protobuf/proto/deprecated.go b/vendor/github.com/golang/protobuf/proto/deprecated.go
new file mode 100644
index 0000000..35b882c
--- /dev/null
+++ b/vendor/github.com/golang/protobuf/proto/deprecated.go
@@ -0,0 +1,63 @@
1// Go support for Protocol Buffers - Google's data interchange format
2//
3// Copyright 2018 The Go Authors. All rights reserved.
4// https://github.com/golang/protobuf
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met:
9//
10// * Redistributions of source code must retain the above copyright
11// notice, this list of conditions and the following disclaimer.
12// * Redistributions in binary form must reproduce the above
13// copyright notice, this list of conditions and the following disclaimer
14// in the documentation and/or other materials provided with the
15// distribution.
16// * Neither the name of Google Inc. nor the names of its
17// contributors may be used to endorse or promote products derived from
18// this software without specific prior written permission.
19//
20// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32package proto
33
34import "errors"
35
36// Deprecated: do not use.
37type Stats struct{ Emalloc, Dmalloc, Encode, Decode, Chit, Cmiss, Size uint64 }
38
39// Deprecated: do not use.
40func GetStats() Stats { return Stats{} }
41
42// Deprecated: do not use.
43func MarshalMessageSet(interface{}) ([]byte, error) {
44 return nil, errors.New("proto: not implemented")
45}
46
47// Deprecated: do not use.
48func UnmarshalMessageSet([]byte, interface{}) error {
49 return errors.New("proto: not implemented")
50}
51
52// Deprecated: do not use.
53func MarshalMessageSetJSON(interface{}) ([]byte, error) {
54 return nil, errors.New("proto: not implemented")
55}
56
57// Deprecated: do not use.
58func UnmarshalMessageSetJSON([]byte, interface{}) error {
59 return errors.New("proto: not implemented")
60}
61
62// Deprecated: do not use.
63func RegisterMessageSetType(Message, int32, string) {}
diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.go
index d4db5a1..f9b6e41 100644
--- a/vendor/github.com/golang/protobuf/proto/equal.go
+++ b/vendor/github.com/golang/protobuf/proto/equal.go
@@ -246,7 +246,8 @@ func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool {
246 return false 246 return false
247 } 247 }
248 248
249 m1, m2 := e1.value, e2.value 249 m1 := extensionAsLegacyType(e1.value)
250 m2 := extensionAsLegacyType(e2.value)
250 251
251 if m1 == nil && m2 == nil { 252 if m1 == nil && m2 == nil {
252 // Both have only encoded form. 253 // Both have only encoded form.
diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go
index 816a3b9..fa88add 100644
--- a/vendor/github.com/golang/protobuf/proto/extensions.go
+++ b/vendor/github.com/golang/protobuf/proto/extensions.go
@@ -185,9 +185,25 @@ type Extension struct {
185 // extension will have only enc set. When such an extension is 185 // extension will have only enc set. When such an extension is
186 // accessed using GetExtension (or GetExtensions) desc and value 186 // accessed using GetExtension (or GetExtensions) desc and value
187 // will be set. 187 // will be set.
188 desc *ExtensionDesc 188 desc *ExtensionDesc
189
190 // value is a concrete value for the extension field. Let the type of
191 // desc.ExtensionType be the "API type" and the type of Extension.value
192 // be the "storage type". The API type and storage type are the same except:
193 // * For scalars (except []byte), the API type uses *T,
194 // while the storage type uses T.
195 // * For repeated fields, the API type uses []T, while the storage type
196 // uses *[]T.
197 //
198 // The reason for the divergence is so that the storage type more naturally
199 // matches what is expected of when retrieving the values through the
200 // protobuf reflection APIs.
201 //
202 // The value may only be populated if desc is also populated.
189 value interface{} 203 value interface{}
190 enc []byte 204
205 // enc is the raw bytes for the extension field.
206 enc []byte
191} 207}
192 208
193// SetRawExtension is for testing only. 209// SetRawExtension is for testing only.
@@ -334,7 +350,7 @@ func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) {
334 // descriptors with the same field number. 350 // descriptors with the same field number.
335 return nil, errors.New("proto: descriptor conflict") 351 return nil, errors.New("proto: descriptor conflict")
336 } 352 }
337 return e.value, nil 353 return extensionAsLegacyType(e.value), nil
338 } 354 }
339 355
340 if extension.ExtensionType == nil { 356 if extension.ExtensionType == nil {
@@ -349,11 +365,11 @@ func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) {
349 365
350 // Remember the decoded version and drop the encoded version. 366 // Remember the decoded version and drop the encoded version.
351 // That way it is safe to mutate what we return. 367 // That way it is safe to mutate what we return.
352 e.value = v 368 e.value = extensionAsStorageType(v)
353 e.desc = extension 369 e.desc = extension
354 e.enc = nil 370 e.enc = nil
355 emap[extension.Field] = e 371 emap[extension.Field] = e
356 return e.value, nil 372 return extensionAsLegacyType(e.value), nil
357} 373}
358 374
359// defaultExtensionValue returns the default value for extension. 375// defaultExtensionValue returns the default value for extension.
@@ -488,7 +504,7 @@ func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error
488 } 504 }
489 typ := reflect.TypeOf(extension.ExtensionType) 505 typ := reflect.TypeOf(extension.ExtensionType)
490 if typ != reflect.TypeOf(value) { 506 if typ != reflect.TypeOf(value) {
491 return errors.New("proto: bad extension value type") 507 return fmt.Errorf("proto: bad extension value type. got: %T, want: %T", value, extension.ExtensionType)
492 } 508 }
493 // nil extension values need to be caught early, because the 509 // nil extension values need to be caught early, because the
494 // encoder can't distinguish an ErrNil due to a nil extension 510 // encoder can't distinguish an ErrNil due to a nil extension
@@ -500,7 +516,7 @@ func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error
500 } 516 }
501 517
502 extmap := epb.extensionsWrite() 518 extmap := epb.extensionsWrite()
503 extmap[extension.Field] = Extension{desc: extension, value: value} 519 extmap[extension.Field] = Extension{desc: extension, value: extensionAsStorageType(value)}
504 return nil 520 return nil
505} 521}
506 522
@@ -541,3 +557,51 @@ func RegisterExtension(desc *ExtensionDesc) {
541func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { 557func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc {
542 return extensionMaps[reflect.TypeOf(pb).Elem()] 558 return extensionMaps[reflect.TypeOf(pb).Elem()]
543} 559}
560
561// extensionAsLegacyType converts an value in the storage type as the API type.
562// See Extension.value.
563func extensionAsLegacyType(v interface{}) interface{} {
564 switch rv := reflect.ValueOf(v); rv.Kind() {
565 case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String:
566 // Represent primitive types as a pointer to the value.
567 rv2 := reflect.New(rv.Type())
568 rv2.Elem().Set(rv)
569 v = rv2.Interface()
570 case reflect.Ptr:
571 // Represent slice types as the value itself.
572 switch rv.Type().Elem().Kind() {
573 case reflect.Slice:
574 if rv.IsNil() {
575 v = reflect.Zero(rv.Type().Elem()).Interface()
576 } else {
577 v = rv.Elem().Interface()
578 }
579 }
580 }
581 return v
582}
583
584// extensionAsStorageType converts an value in the API type as the storage type.
585// See Extension.value.
586func extensionAsStorageType(v interface{}) interface{} {
587 switch rv := reflect.ValueOf(v); rv.Kind() {
588 case reflect.Ptr:
589 // Represent slice types as the value itself.
590 switch rv.Type().Elem().Kind() {
591 case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String:
592 if rv.IsNil() {
593 v = reflect.Zero(rv.Type().Elem()).Interface()
594 } else {
595 v = rv.Elem().Interface()
596 }
597 }
598 case reflect.Slice:
599 // Represent slice types as a pointer to the value.
600 if rv.Type().Elem().Kind() != reflect.Uint8 {
601 rv2 := reflect.New(rv.Type())
602 rv2.Elem().Set(rv)
603 v = rv2.Interface()
604 }
605 }
606 return v
607}
diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go
index 75565cc..fdd328b 100644
--- a/vendor/github.com/golang/protobuf/proto/lib.go
+++ b/vendor/github.com/golang/protobuf/proto/lib.go
@@ -341,26 +341,6 @@ type Message interface {
341 ProtoMessage() 341 ProtoMessage()
342} 342}
343 343
344// Stats records allocation details about the protocol buffer encoders
345// and decoders. Useful for tuning the library itself.
346type Stats struct {
347 Emalloc uint64 // mallocs in encode
348 Dmalloc uint64 // mallocs in decode
349 Encode uint64 // number of encodes
350 Decode uint64 // number of decodes
351 Chit uint64 // number of cache hits
352 Cmiss uint64 // number of cache misses
353 Size uint64 // number of sizes
354}
355
356// Set to true to enable stats collection.
357const collectStats = false
358
359var stats Stats
360
361// GetStats returns a copy of the global Stats structure.
362func GetStats() Stats { return stats }
363
364// A Buffer is a buffer manager for marshaling and unmarshaling 344// A Buffer is a buffer manager for marshaling and unmarshaling
365// protocol buffers. It may be reused between invocations to 345// protocol buffers. It may be reused between invocations to
366// reduce memory usage. It is not necessary to use a Buffer; 346// reduce memory usage. It is not necessary to use a Buffer;
@@ -960,13 +940,19 @@ func isProto3Zero(v reflect.Value) bool {
960 return false 940 return false
961} 941}
962 942
963// ProtoPackageIsVersion2 is referenced from generated protocol buffer files 943const (
964// to assert that that code is compatible with this version of the proto package. 944 // ProtoPackageIsVersion3 is referenced from generated protocol buffer files
965const ProtoPackageIsVersion2 = true 945 // to assert that that code is compatible with this version of the proto package.
946 ProtoPackageIsVersion3 = true
947
948 // ProtoPackageIsVersion2 is referenced from generated protocol buffer files
949 // to assert that that code is compatible with this version of the proto package.
950 ProtoPackageIsVersion2 = true
966 951
967// ProtoPackageIsVersion1 is referenced from generated protocol buffer files 952 // ProtoPackageIsVersion1 is referenced from generated protocol buffer files
968// to assert that that code is compatible with this version of the proto package. 953 // to assert that that code is compatible with this version of the proto package.
969const ProtoPackageIsVersion1 = true 954 ProtoPackageIsVersion1 = true
955)
970 956
971// InternalMessageInfo is a type used internally by generated .pb.go files. 957// InternalMessageInfo is a type used internally by generated .pb.go files.
972// This type is not intended to be used by non-generated code. 958// This type is not intended to be used by non-generated code.
diff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.go
index 3b6ca41..f48a756 100644
--- a/vendor/github.com/golang/protobuf/proto/message_set.go
+++ b/vendor/github.com/golang/protobuf/proto/message_set.go
@@ -36,13 +36,7 @@ package proto
36 */ 36 */
37 37
38import ( 38import (
39 "bytes"
40 "encoding/json"
41 "errors" 39 "errors"
42 "fmt"
43 "reflect"
44 "sort"
45 "sync"
46) 40)
47 41
48// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. 42// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID.
@@ -145,46 +139,9 @@ func skipVarint(buf []byte) []byte {
145 return buf[i+1:] 139 return buf[i+1:]
146} 140}
147 141
148// MarshalMessageSet encodes the extension map represented by m in the message set wire format. 142// unmarshalMessageSet decodes the extension map encoded in buf in the message set wire format.
149// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option.
150func MarshalMessageSet(exts interface{}) ([]byte, error) {
151 return marshalMessageSet(exts, false)
152}
153
154// marshaMessageSet implements above function, with the opt to turn on / off deterministic during Marshal.
155func marshalMessageSet(exts interface{}, deterministic bool) ([]byte, error) {
156 switch exts := exts.(type) {
157 case *XXX_InternalExtensions:
158 var u marshalInfo
159 siz := u.sizeMessageSet(exts)
160 b := make([]byte, 0, siz)
161 return u.appendMessageSet(b, exts, deterministic)
162
163 case map[int32]Extension:
164 // This is an old-style extension map.
165 // Wrap it in a new-style XXX_InternalExtensions.
166 ie := XXX_InternalExtensions{
167 p: &struct {
168 mu sync.Mutex
169 extensionMap map[int32]Extension
170 }{
171 extensionMap: exts,
172 },
173 }
174
175 var u marshalInfo
176 siz := u.sizeMessageSet(&ie)
177 b := make([]byte, 0, siz)
178 return u.appendMessageSet(b, &ie, deterministic)
179
180 default:
181 return nil, errors.New("proto: not an extension map")
182 }
183}
184
185// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format.
186// It is called by Unmarshal methods on protocol buffer messages with the message_set_wire_format option. 143// It is called by Unmarshal methods on protocol buffer messages with the message_set_wire_format option.
187func UnmarshalMessageSet(buf []byte, exts interface{}) error { 144func unmarshalMessageSet(buf []byte, exts interface{}) error {
188 var m map[int32]Extension 145 var m map[int32]Extension
189 switch exts := exts.(type) { 146 switch exts := exts.(type) {
190 case *XXX_InternalExtensions: 147 case *XXX_InternalExtensions:
@@ -222,93 +179,3 @@ func UnmarshalMessageSet(buf []byte, exts interface{}) error {
222 } 179 }
223 return nil 180 return nil
224} 181}
225
226// MarshalMessageSetJSON encodes the extension map represented by m in JSON format.
227// It is called by generated MarshalJSON methods on protocol buffer messages with the message_set_wire_format option.
228func MarshalMessageSetJSON(exts interface{}) ([]byte, error) {
229 var m map[int32]Extension
230 switch exts := exts.(type) {
231 case *XXX_InternalExtensions:
232 var mu sync.Locker
233 m, mu = exts.extensionsRead()
234 if m != nil {
235 // Keep the extensions map locked until we're done marshaling to prevent
236 // races between marshaling and unmarshaling the lazily-{en,de}coded
237 // values.
238 mu.Lock()
239 defer mu.Unlock()
240 }
241 case map[int32]Extension:
242 m = exts
243 default:
244 return nil, errors.New("proto: not an extension map")
245 }
246 var b bytes.Buffer
247 b.WriteByte('{')
248
249 // Process the map in key order for deterministic output.
250 ids := make([]int32, 0, len(m))
251 for id := range m {
252 ids = append(ids, id)
253 }
254 sort.Sort(int32Slice(ids)) // int32Slice defined in text.go
255
256 for i, id := range ids {
257 ext := m[id]
258 msd, ok := messageSetMap[id]
259 if !ok {
260 // Unknown type; we can't render it, so skip it.
261 continue
262 }
263
264 if i > 0 && b.Len() > 1 {
265 b.WriteByte(',')
266 }
267
268 fmt.Fprintf(&b, `"[%s]":`, msd.name)
269
270 x := ext.value
271 if x == nil {
272 x = reflect.New(msd.t.Elem()).Interface()
273 if err := Unmarshal(ext.enc, x.(Message)); err != nil {
274 return nil, err
275 }
276 }
277 d, err := json.Marshal(x)
278 if err != nil {
279 return nil, err
280 }
281 b.Write(d)
282 }
283 b.WriteByte('}')
284 return b.Bytes(), nil
285}
286
287// UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format.
288// It is called by generated UnmarshalJSON methods on protocol buffer messages with the message_set_wire_format option.
289func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error {
290 // Common-case fast path.
291 if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) {
292 return nil
293 }
294
295 // This is fairly tricky, and it's not clear that it is needed.
296 return errors.New("TODO: UnmarshalMessageSetJSON not yet implemented")
297}
298
299// A global registry of types that can be used in a MessageSet.
300
301var messageSetMap = make(map[int32]messageSetDesc)
302
303type messageSetDesc struct {
304 t reflect.Type // pointer to struct
305 name string
306}
307
308// RegisterMessageSetType is called from the generated code.
309func RegisterMessageSetType(m Message, fieldNum int32, name string) {
310 messageSetMap[fieldNum] = messageSetDesc{
311 t: reflect.TypeOf(m),
312 name: name,
313 }
314}
diff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
index b6cad90..94fa919 100644
--- a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
+++ b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
@@ -79,10 +79,13 @@ func toPointer(i *Message) pointer {
79 79
80// toAddrPointer converts an interface to a pointer that points to 80// toAddrPointer converts an interface to a pointer that points to
81// the interface data. 81// the interface data.
82func toAddrPointer(i *interface{}, isptr bool) pointer { 82func toAddrPointer(i *interface{}, isptr, deref bool) pointer {
83 v := reflect.ValueOf(*i) 83 v := reflect.ValueOf(*i)
84 u := reflect.New(v.Type()) 84 u := reflect.New(v.Type())
85 u.Elem().Set(v) 85 u.Elem().Set(v)
86 if deref {
87 u = u.Elem()
88 }
86 return pointer{v: u} 89 return pointer{v: u}
87} 90}
88 91
diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
index d55a335..dbfffe0 100644
--- a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
+++ b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
@@ -85,16 +85,21 @@ func toPointer(i *Message) pointer {
85 85
86// toAddrPointer converts an interface to a pointer that points to 86// toAddrPointer converts an interface to a pointer that points to
87// the interface data. 87// the interface data.
88func toAddrPointer(i *interface{}, isptr bool) pointer { 88func toAddrPointer(i *interface{}, isptr, deref bool) (p pointer) {
89 // Super-tricky - read or get the address of data word of interface value. 89 // Super-tricky - read or get the address of data word of interface value.
90 if isptr { 90 if isptr {
91 // The interface is of pointer type, thus it is a direct interface. 91 // The interface is of pointer type, thus it is a direct interface.
92 // The data word is the pointer data itself. We take its address. 92 // The data word is the pointer data itself. We take its address.
93 return pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)} 93 p = pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)}
94 } else {
95 // The interface is not of pointer type. The data word is the pointer
96 // to the data.
97 p = pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
94 } 98 }
95 // The interface is not of pointer type. The data word is the pointer 99 if deref {
96 // to the data. 100 p.p = *(*unsafe.Pointer)(p.p)
97 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} 101 }
102 return p
98} 103}
99 104
100// valToPointer converts v to a pointer. v must be of pointer type. 105// valToPointer converts v to a pointer. v must be of pointer type.
diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go
index 50b99b8..79668ff 100644
--- a/vendor/github.com/golang/protobuf/proto/properties.go
+++ b/vendor/github.com/golang/protobuf/proto/properties.go
@@ -334,9 +334,6 @@ func GetProperties(t reflect.Type) *StructProperties {
334 sprop, ok := propertiesMap[t] 334 sprop, ok := propertiesMap[t]
335 propertiesMu.RUnlock() 335 propertiesMu.RUnlock()
336 if ok { 336 if ok {
337 if collectStats {
338 stats.Chit++
339 }
340 return sprop 337 return sprop
341 } 338 }
342 339
@@ -346,17 +343,20 @@ func GetProperties(t reflect.Type) *StructProperties {
346 return sprop 343 return sprop
347} 344}
348 345
346type (
347 oneofFuncsIface interface {
348 XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{})
349 }
350 oneofWrappersIface interface {
351 XXX_OneofWrappers() []interface{}
352 }
353)
354
349// getPropertiesLocked requires that propertiesMu is held. 355// getPropertiesLocked requires that propertiesMu is held.
350func getPropertiesLocked(t reflect.Type) *StructProperties { 356func getPropertiesLocked(t reflect.Type) *StructProperties {
351 if prop, ok := propertiesMap[t]; ok { 357 if prop, ok := propertiesMap[t]; ok {
352 if collectStats {
353 stats.Chit++
354 }
355 return prop 358 return prop
356 } 359 }
357 if collectStats {
358 stats.Cmiss++
359 }
360 360
361 prop := new(StructProperties) 361 prop := new(StructProperties)
362 // in case of recursive protos, fill this in now. 362 // in case of recursive protos, fill this in now.
@@ -391,13 +391,14 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
391 // Re-order prop.order. 391 // Re-order prop.order.
392 sort.Sort(prop) 392 sort.Sort(prop)
393 393
394 type oneofMessage interface { 394 var oots []interface{}
395 XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) 395 switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) {
396 case oneofFuncsIface:
397 _, _, _, oots = m.XXX_OneofFuncs()
398 case oneofWrappersIface:
399 oots = m.XXX_OneofWrappers()
396 } 400 }
397 if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { 401 if len(oots) > 0 {
398 var oots []interface{}
399 _, _, _, oots = om.XXX_OneofFuncs()
400
401 // Interpret oneof metadata. 402 // Interpret oneof metadata.
402 prop.OneofTypes = make(map[string]*OneofProperties) 403 prop.OneofTypes = make(map[string]*OneofProperties)
403 for _, oot := range oots { 404 for _, oot := range oots {
diff --git a/vendor/github.com/golang/protobuf/proto/table_marshal.go b/vendor/github.com/golang/protobuf/proto/table_marshal.go
index b167944..5cb11fa 100644
--- a/vendor/github.com/golang/protobuf/proto/table_marshal.go
+++ b/vendor/github.com/golang/protobuf/proto/table_marshal.go
@@ -87,6 +87,7 @@ type marshalElemInfo struct {
87 sizer sizer 87 sizer sizer
88 marshaler marshaler 88 marshaler marshaler
89 isptr bool // elem is pointer typed, thus interface of this type is a direct interface (extension only) 89 isptr bool // elem is pointer typed, thus interface of this type is a direct interface (extension only)
90 deref bool // dereference the pointer before operating on it; implies isptr
90} 91}
91 92
92var ( 93var (
@@ -320,8 +321,11 @@ func (u *marshalInfo) computeMarshalInfo() {
320 321
321 // get oneof implementers 322 // get oneof implementers
322 var oneofImplementers []interface{} 323 var oneofImplementers []interface{}
323 if m, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { 324 switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) {
325 case oneofFuncsIface:
324 _, _, _, oneofImplementers = m.XXX_OneofFuncs() 326 _, _, _, oneofImplementers = m.XXX_OneofFuncs()
327 case oneofWrappersIface:
328 oneofImplementers = m.XXX_OneofWrappers()
325 } 329 }
326 330
327 n := t.NumField() 331 n := t.NumField()
@@ -407,13 +411,22 @@ func (u *marshalInfo) getExtElemInfo(desc *ExtensionDesc) *marshalElemInfo {
407 panic("tag is not an integer") 411 panic("tag is not an integer")
408 } 412 }
409 wt := wiretype(tags[0]) 413 wt := wiretype(tags[0])
414 if t.Kind() == reflect.Ptr && t.Elem().Kind() != reflect.Struct {
415 t = t.Elem()
416 }
410 sizer, marshaler := typeMarshaler(t, tags, false, false) 417 sizer, marshaler := typeMarshaler(t, tags, false, false)
418 var deref bool
419 if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 {
420 t = reflect.PtrTo(t)
421 deref = true
422 }
411 e = &marshalElemInfo{ 423 e = &marshalElemInfo{
412 wiretag: uint64(tag)<<3 | wt, 424 wiretag: uint64(tag)<<3 | wt,
413 tagsize: SizeVarint(uint64(tag) << 3), 425 tagsize: SizeVarint(uint64(tag) << 3),
414 sizer: sizer, 426 sizer: sizer,
415 marshaler: marshaler, 427 marshaler: marshaler,
416 isptr: t.Kind() == reflect.Ptr, 428 isptr: t.Kind() == reflect.Ptr,
429 deref: deref,
417 } 430 }
418 431
419 // update cache 432 // update cache
@@ -448,7 +461,7 @@ func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) {
448 461
449func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) { 462func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) {
450 fi.field = toField(f) 463 fi.field = toField(f)
451 fi.wiretag = 1<<31 - 1 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire. 464 fi.wiretag = math.MaxInt32 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire.
452 fi.isPointer = true 465 fi.isPointer = true
453 fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f) 466 fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f)
454 fi.oneofElems = make(map[reflect.Type]*marshalElemInfo) 467 fi.oneofElems = make(map[reflect.Type]*marshalElemInfo)
@@ -476,10 +489,6 @@ func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofI
476 } 489 }
477} 490}
478 491
479type oneofMessage interface {
480 XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{})
481}
482
483// wiretype returns the wire encoding of the type. 492// wiretype returns the wire encoding of the type.
484func wiretype(encoding string) uint64 { 493func wiretype(encoding string) uint64 {
485 switch encoding { 494 switch encoding {
@@ -2310,8 +2319,8 @@ func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) {
2310 for _, k := range m.MapKeys() { 2319 for _, k := range m.MapKeys() {
2311 ki := k.Interface() 2320 ki := k.Interface()
2312 vi := m.MapIndex(k).Interface() 2321 vi := m.MapIndex(k).Interface()
2313 kaddr := toAddrPointer(&ki, false) // pointer to key 2322 kaddr := toAddrPointer(&ki, false, false) // pointer to key
2314 vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value 2323 vaddr := toAddrPointer(&vi, valIsPtr, false) // pointer to value
2315 siz := keySizer(kaddr, 1) + valSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) 2324 siz := keySizer(kaddr, 1) + valSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1)
2316 n += siz + SizeVarint(uint64(siz)) + tagsize 2325 n += siz + SizeVarint(uint64(siz)) + tagsize
2317 } 2326 }
@@ -2329,8 +2338,8 @@ func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) {
2329 for _, k := range keys { 2338 for _, k := range keys {
2330 ki := k.Interface() 2339 ki := k.Interface()
2331 vi := m.MapIndex(k).Interface() 2340 vi := m.MapIndex(k).Interface()
2332 kaddr := toAddrPointer(&ki, false) // pointer to key 2341 kaddr := toAddrPointer(&ki, false, false) // pointer to key
2333 vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value 2342 vaddr := toAddrPointer(&vi, valIsPtr, false) // pointer to value
2334 b = appendVarint(b, tag) 2343 b = appendVarint(b, tag)
2335 siz := keySizer(kaddr, 1) + valCachedSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) 2344 siz := keySizer(kaddr, 1) + valCachedSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1)
2336 b = appendVarint(b, uint64(siz)) 2345 b = appendVarint(b, uint64(siz))
@@ -2399,7 +2408,7 @@ func (u *marshalInfo) sizeExtensions(ext *XXX_InternalExtensions) int {
2399 // the last time this function was called. 2408 // the last time this function was called.
2400 ei := u.getExtElemInfo(e.desc) 2409 ei := u.getExtElemInfo(e.desc)
2401 v := e.value 2410 v := e.value
2402 p := toAddrPointer(&v, ei.isptr) 2411 p := toAddrPointer(&v, ei.isptr, ei.deref)
2403 n += ei.sizer(p, ei.tagsize) 2412 n += ei.sizer(p, ei.tagsize)
2404 } 2413 }
2405 mu.Unlock() 2414 mu.Unlock()
@@ -2434,7 +2443,7 @@ func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, de
2434 2443
2435 ei := u.getExtElemInfo(e.desc) 2444 ei := u.getExtElemInfo(e.desc)
2436 v := e.value 2445 v := e.value
2437 p := toAddrPointer(&v, ei.isptr) 2446 p := toAddrPointer(&v, ei.isptr, ei.deref)
2438 b, err = ei.marshaler(b, p, ei.wiretag, deterministic) 2447 b, err = ei.marshaler(b, p, ei.wiretag, deterministic)
2439 if !nerr.Merge(err) { 2448 if !nerr.Merge(err) {
2440 return b, err 2449 return b, err
@@ -2465,7 +2474,7 @@ func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, de
2465 2474
2466 ei := u.getExtElemInfo(e.desc) 2475 ei := u.getExtElemInfo(e.desc)
2467 v := e.value 2476 v := e.value
2468 p := toAddrPointer(&v, ei.isptr) 2477 p := toAddrPointer(&v, ei.isptr, ei.deref)
2469 b, err = ei.marshaler(b, p, ei.wiretag, deterministic) 2478 b, err = ei.marshaler(b, p, ei.wiretag, deterministic)
2470 if !nerr.Merge(err) { 2479 if !nerr.Merge(err) {
2471 return b, err 2480 return b, err
@@ -2510,7 +2519,7 @@ func (u *marshalInfo) sizeMessageSet(ext *XXX_InternalExtensions) int {
2510 2519
2511 ei := u.getExtElemInfo(e.desc) 2520 ei := u.getExtElemInfo(e.desc)
2512 v := e.value 2521 v := e.value
2513 p := toAddrPointer(&v, ei.isptr) 2522 p := toAddrPointer(&v, ei.isptr, ei.deref)
2514 n += ei.sizer(p, 1) // message, tag = 3 (size=1) 2523 n += ei.sizer(p, 1) // message, tag = 3 (size=1)
2515 } 2524 }
2516 mu.Unlock() 2525 mu.Unlock()
@@ -2553,7 +2562,7 @@ func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, de
2553 2562
2554 ei := u.getExtElemInfo(e.desc) 2563 ei := u.getExtElemInfo(e.desc)
2555 v := e.value 2564 v := e.value
2556 p := toAddrPointer(&v, ei.isptr) 2565 p := toAddrPointer(&v, ei.isptr, ei.deref)
2557 b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) 2566 b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic)
2558 if !nerr.Merge(err) { 2567 if !nerr.Merge(err) {
2559 return b, err 2568 return b, err
@@ -2591,7 +2600,7 @@ func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, de
2591 2600
2592 ei := u.getExtElemInfo(e.desc) 2601 ei := u.getExtElemInfo(e.desc)
2593 v := e.value 2602 v := e.value
2594 p := toAddrPointer(&v, ei.isptr) 2603 p := toAddrPointer(&v, ei.isptr, ei.deref)
2595 b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) 2604 b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic)
2596 b = append(b, 1<<3|WireEndGroup) 2605 b = append(b, 1<<3|WireEndGroup)
2597 if !nerr.Merge(err) { 2606 if !nerr.Merge(err) {
@@ -2621,7 +2630,7 @@ func (u *marshalInfo) sizeV1Extensions(m map[int32]Extension) int {
2621 2630
2622 ei := u.getExtElemInfo(e.desc) 2631 ei := u.getExtElemInfo(e.desc)
2623 v := e.value 2632 v := e.value
2624 p := toAddrPointer(&v, ei.isptr) 2633 p := toAddrPointer(&v, ei.isptr, ei.deref)
2625 n += ei.sizer(p, ei.tagsize) 2634 n += ei.sizer(p, ei.tagsize)
2626 } 2635 }
2627 return n 2636 return n
@@ -2656,7 +2665,7 @@ func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, determ
2656 2665
2657 ei := u.getExtElemInfo(e.desc) 2666 ei := u.getExtElemInfo(e.desc)
2658 v := e.value 2667 v := e.value
2659 p := toAddrPointer(&v, ei.isptr) 2668 p := toAddrPointer(&v, ei.isptr, ei.deref)
2660 b, err = ei.marshaler(b, p, ei.wiretag, deterministic) 2669 b, err = ei.marshaler(b, p, ei.wiretag, deterministic)
2661 if !nerr.Merge(err) { 2670 if !nerr.Merge(err) {
2662 return b, err 2671 return b, err
diff --git a/vendor/github.com/golang/protobuf/proto/table_unmarshal.go b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go
index ebf1caa..acee2fc 100644
--- a/vendor/github.com/golang/protobuf/proto/table_unmarshal.go
+++ b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go
@@ -136,7 +136,7 @@ func (u *unmarshalInfo) unmarshal(m pointer, b []byte) error {
136 u.computeUnmarshalInfo() 136 u.computeUnmarshalInfo()
137 } 137 }
138 if u.isMessageSet { 138 if u.isMessageSet {
139 return UnmarshalMessageSet(b, m.offset(u.extensions).toExtensions()) 139 return unmarshalMessageSet(b, m.offset(u.extensions).toExtensions())
140 } 140 }
141 var reqMask uint64 // bitmask of required fields we've seen. 141 var reqMask uint64 // bitmask of required fields we've seen.
142 var errLater error 142 var errLater error
@@ -362,46 +362,48 @@ func (u *unmarshalInfo) computeUnmarshalInfo() {
362 } 362 }
363 363
364 // Find any types associated with oneof fields. 364 // Find any types associated with oneof fields.
365 // TODO: XXX_OneofFuncs returns more info than we need. Get rid of some of it? 365 var oneofImplementers []interface{}
366 fn := reflect.Zero(reflect.PtrTo(t)).MethodByName("XXX_OneofFuncs") 366 switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) {
367 if fn.IsValid() { 367 case oneofFuncsIface:
368 res := fn.Call(nil)[3] // last return value from XXX_OneofFuncs: []interface{} 368 _, _, _, oneofImplementers = m.XXX_OneofFuncs()
369 for i := res.Len() - 1; i >= 0; i-- { 369 case oneofWrappersIface:
370 v := res.Index(i) // interface{} 370 oneofImplementers = m.XXX_OneofWrappers()
371 tptr := reflect.ValueOf(v.Interface()).Type() // *Msg_X 371 }
372 typ := tptr.Elem() // Msg_X 372 for _, v := range oneofImplementers {
373 373 tptr := reflect.TypeOf(v) // *Msg_X
374 f := typ.Field(0) // oneof implementers have one field 374 typ := tptr.Elem() // Msg_X
375 baseUnmarshal := fieldUnmarshaler(&f) 375
376 tags := strings.Split(f.Tag.Get("protobuf"), ",") 376 f := typ.Field(0) // oneof implementers have one field
377 fieldNum, err := strconv.Atoi(tags[1]) 377 baseUnmarshal := fieldUnmarshaler(&f)
378 if err != nil { 378 tags := strings.Split(f.Tag.Get("protobuf"), ",")
379 panic("protobuf tag field not an integer: " + tags[1]) 379 fieldNum, err := strconv.Atoi(tags[1])
380 } 380 if err != nil {
381 var name string 381 panic("protobuf tag field not an integer: " + tags[1])
382 for _, tag := range tags { 382 }
383 if strings.HasPrefix(tag, "name=") { 383 var name string
384 name = strings.TrimPrefix(tag, "name=") 384 for _, tag := range tags {
385 break 385 if strings.HasPrefix(tag, "name=") {
386 } 386 name = strings.TrimPrefix(tag, "name=")
387 break
387 } 388 }
389 }
388 390
389 // Find the oneof field that this struct implements. 391 // Find the oneof field that this struct implements.
390 // Might take O(n^2) to process all of the oneofs, but who cares. 392 // Might take O(n^2) to process all of the oneofs, but who cares.
391 for _, of := range oneofFields { 393 for _, of := range oneofFields {
392 if tptr.Implements(of.ityp) { 394 if tptr.Implements(of.ityp) {
393 // We have found the corresponding interface for this struct. 395 // We have found the corresponding interface for this struct.
394 // That lets us know where this struct should be stored 396 // That lets us know where this struct should be stored
395 // when we encounter it during unmarshaling. 397 // when we encounter it during unmarshaling.
396 unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal) 398 unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal)
397 u.setTag(fieldNum, of.field, unmarshal, 0, name) 399 u.setTag(fieldNum, of.field, unmarshal, 0, name)
398 }
399 } 400 }
400 } 401 }
402
401 } 403 }
402 404
403 // Get extension ranges, if any. 405 // Get extension ranges, if any.
404 fn = reflect.Zero(reflect.PtrTo(t)).MethodByName("ExtensionRangeArray") 406 fn := reflect.Zero(reflect.PtrTo(t)).MethodByName("ExtensionRangeArray")
405 if fn.IsValid() { 407 if fn.IsValid() {
406 if !u.extensions.IsValid() && !u.oldExtensions.IsValid() { 408 if !u.extensions.IsValid() && !u.oldExtensions.IsValid() {
407 panic("a message with extensions, but no extensions field in " + t.Name()) 409 panic("a message with extensions, but no extensions field in " + t.Name())
@@ -1948,7 +1950,7 @@ func encodeVarint(b []byte, x uint64) []byte {
1948// If there is an error, it returns 0,0. 1950// If there is an error, it returns 0,0.
1949func decodeVarint(b []byte) (uint64, int) { 1951func decodeVarint(b []byte) (uint64, int) {
1950 var x, y uint64 1952 var x, y uint64
1951 if len(b) <= 0 { 1953 if len(b) == 0 {
1952 goto bad 1954 goto bad
1953 } 1955 }
1954 x = uint64(b[0]) 1956 x = uint64(b[0])
diff --git a/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md b/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
index 949b77e..195333e 100644
--- a/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
+++ b/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
@@ -26,6 +26,7 @@ The tool is sponsored by the [marvin + konsorten GmbH](http://www.konsorten.de).
26We thank all the authors who provided code to this library: 26We thank all the authors who provided code to this library:
27 27
28* Felix Kollmann 28* Felix Kollmann
29* Nicolas Perraut
29 30
30## License 31## License
31 32
diff --git a/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go b/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go
new file mode 100644
index 0000000..df61a6f
--- /dev/null
+++ b/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go
@@ -0,0 +1,11 @@
1// +build linux darwin
2
3package sequences
4
5import (
6 "fmt"
7)
8
9func EnableVirtualTerminalProcessing(stream uintptr, enable bool) error {
10 return fmt.Errorf("windows only package")
11}
diff --git a/vendor/github.com/mattn/go-xmlrpc/go.mod b/vendor/github.com/mattn/go-xmlrpc/go.mod
new file mode 100644
index 0000000..eea7136
--- /dev/null
+++ b/vendor/github.com/mattn/go-xmlrpc/go.mod
@@ -0,0 +1,3 @@
1module github.com/mattn/go-xmlrpc
2
3go 1.10
diff --git a/vendor/github.com/sirupsen/logrus/.travis.yml b/vendor/github.com/sirupsen/logrus/.travis.yml
index a8f1545..7e54dc6 100644
--- a/vendor/github.com/sirupsen/logrus/.travis.yml
+++ b/vendor/github.com/sirupsen/logrus/.travis.yml
@@ -1,52 +1,21 @@
1language: go 1language: go
2go_import_path: github.com/sirupsen/logrus 2go_import_path: github.com/sirupsen/logrus
3git:
4 depth: 1
3env: 5env:
4 - GOMAXPROCS=4 GORACE=halt_on_error=1 6 - GO111MODULE=on
7 - GO111MODULE=off
8go: [ 1.10.x, 1.11.x, 1.12.x ]
9os: [ linux, osx, windows ]
5matrix: 10matrix:
6 include: 11 exclude:
7 - go: 1.10.x 12 - env: GO111MODULE=on
8 install: 13 go: 1.10.x
9 - go get github.com/stretchr/testify/assert 14install:
10 - go get golang.org/x/crypto/ssh/terminal 15 - if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi
11 - go get golang.org/x/sys/unix 16 - if [[ "$GO111MODULE" == "off" ]]; then go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences; fi
12 - go get golang.org/x/sys/windows 17script:
13 script: 18 - export GOMAXPROCS=4
14 - go test -race -v ./... 19 - export GORACE=halt_on_error=1
15 - go: 1.11.x 20 - go test -race -v ./...
16 env: GO111MODULE=on 21 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi
17 install:
18 - go mod download
19 script:
20 - go test -race -v ./...
21 - go: 1.11.x
22 env: GO111MODULE=off
23 install:
24 - go get github.com/stretchr/testify/assert
25 - go get golang.org/x/crypto/ssh/terminal
26 - go get golang.org/x/sys/unix
27 - go get golang.org/x/sys/windows
28 script:
29 - go test -race -v ./...
30 - go: 1.10.x
31 install:
32 - go get github.com/stretchr/testify/assert
33 - go get golang.org/x/crypto/ssh/terminal
34 - go get golang.org/x/sys/unix
35 - go get golang.org/x/sys/windows
36 script:
37 - go test -race -v -tags appengine ./...
38 - go: 1.11.x
39 env: GO111MODULE=on
40 install:
41 - go mod download
42 script:
43 - go test -race -v -tags appengine ./...
44 - go: 1.11.x
45 env: GO111MODULE=off
46 install:
47 - go get github.com/stretchr/testify/assert
48 - go get golang.org/x/crypto/ssh/terminal
49 - go get golang.org/x/sys/unix
50 - go get golang.org/x/sys/windows
51 script:
52 - go test -race -v -tags appengine ./...
diff --git a/vendor/github.com/sirupsen/logrus/CHANGELOG.md b/vendor/github.com/sirupsen/logrus/CHANGELOG.md
index cb85d9f..f62cbd2 100644
--- a/vendor/github.com/sirupsen/logrus/CHANGELOG.md
+++ b/vendor/github.com/sirupsen/logrus/CHANGELOG.md
@@ -1,3 +1,36 @@
1# 1.4.1
2This new release introduces:
3 * Enhance TextFormatter to not print caller information when they are empty (#944)
4 * Remove dependency on golang.org/x/crypto (#932, #943)
5
6Fixes:
7 * Fix Entry.WithContext method to return a copy of the initial entry (#941)
8
9# 1.4.0
10This new release introduces:
11 * Add `DeferExitHandler`, similar to `RegisterExitHandler` but prepending the handler to the list of handlers (semantically like `defer`) (#848).
12 * Add `CallerPrettyfier` to `JSONFormatter` and `TextFormatter (#909, #911)
13 * Add `Entry.WithContext()` and `Entry.Context`, to set a context on entries to be used e.g. in hooks (#919).
14
15Fixes:
16 * Fix wrong method calls `Logger.Print` and `Logger.Warningln` (#893).
17 * Update `Entry.Logf` to not do string formatting unless the log level is enabled (#903)
18 * Fix infinite recursion on unknown `Level.String()` (#907)
19 * Fix race condition in `getCaller` (#916).
20
21
22# 1.3.0
23This new release introduces:
24 * Log, Logf, Logln functions for Logger and Entry that take a Level
25
26Fixes:
27 * Building prometheus node_exporter on AIX (#840)
28 * Race condition in TextFormatter (#468)
29 * Travis CI import path (#868)
30 * Remove coloured output on Windows (#862)
31 * Pointer to func as field in JSONFormatter (#870)
32 * Properly marshal Levels (#873)
33
1# 1.2.0 34# 1.2.0
2This new release introduces: 35This new release introduces:
3 * A new method `SetReportCaller` in the `Logger` to enable the file, line and calling function from which the trace has been issued 36 * A new method `SetReportCaller` in the `Logger` to enable the file, line and calling function from which the trace has been issued
diff --git a/vendor/github.com/sirupsen/logrus/README.md b/vendor/github.com/sirupsen/logrus/README.md
index 3987310..a4796eb 100644
--- a/vendor/github.com/sirupsen/logrus/README.md
+++ b/vendor/github.com/sirupsen/logrus/README.md
@@ -365,6 +365,7 @@ Third party logging formatters:
365* [`logstash`](https://github.com/bshuster-repo/logrus-logstash-hook). Logs fields as [Logstash](http://logstash.net) Events. 365* [`logstash`](https://github.com/bshuster-repo/logrus-logstash-hook). Logs fields as [Logstash](http://logstash.net) Events.
366* [`prefixed`](https://github.com/x-cray/logrus-prefixed-formatter). Displays log entry source along with alternative layout. 366* [`prefixed`](https://github.com/x-cray/logrus-prefixed-formatter). Displays log entry source along with alternative layout.
367* [`zalgo`](https://github.com/aybabtme/logzalgo). Invoking the P͉̫o̳̼̊w̖͈̰͎e̬͔̭͂r͚̼̹̲ ̫͓͉̳͈ō̠͕͖̚f̝͍̠ ͕̲̞͖͑Z̖̫̤̫ͪa͉̬͈̗l͖͎g̳̥o̰̥̅!̣͔̲̻͊̄ ̙̘̦̹̦. 367* [`zalgo`](https://github.com/aybabtme/logzalgo). Invoking the P͉̫o̳̼̊w̖͈̰͎e̬͔̭͂r͚̼̹̲ ̫͓͉̳͈ō̠͕͖̚f̝͍̠ ͕̲̞͖͑Z̖̫̤̫ͪa͉̬͈̗l͖͎g̳̥o̰̥̅!̣͔̲̻͊̄ ̙̘̦̹̦.
368* [`nested-logrus-formatter`](https://github.com/antonfisher/nested-logrus-formatter). Converts logrus fields to a nested structure.
368 369
369You can define your formatter by implementing the `Formatter` interface, 370You can define your formatter by implementing the `Formatter` interface,
370requiring a `Format` method. `Format` takes an `*Entry`. `entry.Data` is a 371requiring a `Format` method. `Format` takes an `*Entry`. `entry.Data` is a
diff --git a/vendor/github.com/sirupsen/logrus/alt_exit.go b/vendor/github.com/sirupsen/logrus/alt_exit.go
index 8af9063..8fd189e 100644
--- a/vendor/github.com/sirupsen/logrus/alt_exit.go
+++ b/vendor/github.com/sirupsen/logrus/alt_exit.go
@@ -51,9 +51,9 @@ func Exit(code int) {
51 os.Exit(code) 51 os.Exit(code)
52} 52}
53 53
54// RegisterExitHandler adds a Logrus Exit handler, call logrus.Exit to invoke 54// RegisterExitHandler appends a Logrus Exit handler to the list of handlers,
55// all handlers. The handlers will also be invoked when any Fatal log entry is 55// call logrus.Exit to invoke all handlers. The handlers will also be invoked when
56// made. 56// any Fatal log entry is made.
57// 57//
58// This method is useful when a caller wishes to use logrus to log a fatal 58// This method is useful when a caller wishes to use logrus to log a fatal
59// message but also needs to gracefully shutdown. An example usecase could be 59// message but also needs to gracefully shutdown. An example usecase could be
@@ -62,3 +62,15 @@ func Exit(code int) {
62func RegisterExitHandler(handler func()) { 62func RegisterExitHandler(handler func()) {
63 handlers = append(handlers, handler) 63 handlers = append(handlers, handler)
64} 64}
65
66// DeferExitHandler prepends a Logrus Exit handler to the list of handlers,
67// call logrus.Exit to invoke all handlers. The handlers will also be invoked when
68// any Fatal log entry is made.
69//
70// This method is useful when a caller wishes to use logrus to log a fatal
71// message but also needs to gracefully shutdown. An example usecase could be
72// closing database connections, or sending a alert that the application is
73// closing.
74func DeferExitHandler(handler func()) {
75 handlers = append([]func(){handler}, handlers...)
76}
diff --git a/vendor/github.com/sirupsen/logrus/entry.go b/vendor/github.com/sirupsen/logrus/entry.go
index df6d188..63e2558 100644
--- a/vendor/github.com/sirupsen/logrus/entry.go
+++ b/vendor/github.com/sirupsen/logrus/entry.go
@@ -2,6 +2,7 @@ package logrus
2 2
3import ( 3import (
4 "bytes" 4 "bytes"
5 "context"
5 "fmt" 6 "fmt"
6 "os" 7 "os"
7 "reflect" 8 "reflect"
@@ -69,6 +70,9 @@ type Entry struct {
69 // When formatter is called in entry.log(), a Buffer may be set to entry 70 // When formatter is called in entry.log(), a Buffer may be set to entry
70 Buffer *bytes.Buffer 71 Buffer *bytes.Buffer
71 72
73 // Contains the context set by the user. Useful for hook processing etc.
74 Context context.Context
75
72 // err may contain a field formatting error 76 // err may contain a field formatting error
73 err string 77 err string
74} 78}
@@ -97,6 +101,11 @@ func (entry *Entry) WithError(err error) *Entry {
97 return entry.WithField(ErrorKey, err) 101 return entry.WithField(ErrorKey, err)
98} 102}
99 103
104// Add a context to the Entry.
105func (entry *Entry) WithContext(ctx context.Context) *Entry {
106 return &Entry{Logger: entry.Logger, Data: entry.Data, Time: entry.Time, err: entry.err, Context: ctx}
107}
108
100// Add a single field to the Entry. 109// Add a single field to the Entry.
101func (entry *Entry) WithField(key string, value interface{}) *Entry { 110func (entry *Entry) WithField(key string, value interface{}) *Entry {
102 return entry.WithFields(Fields{key: value}) 111 return entry.WithFields(Fields{key: value})
@@ -130,12 +139,12 @@ func (entry *Entry) WithFields(fields Fields) *Entry {
130 data[k] = v 139 data[k] = v
131 } 140 }
132 } 141 }
133 return &Entry{Logger: entry.Logger, Data: data, Time: entry.Time, err: fieldErr} 142 return &Entry{Logger: entry.Logger, Data: data, Time: entry.Time, err: fieldErr, Context: entry.Context}
134} 143}
135 144
136// Overrides the time of the Entry. 145// Overrides the time of the Entry.
137func (entry *Entry) WithTime(t time.Time) *Entry { 146func (entry *Entry) WithTime(t time.Time) *Entry {
138 return &Entry{Logger: entry.Logger, Data: entry.Data, Time: t, err: entry.err} 147 return &Entry{Logger: entry.Logger, Data: entry.Data, Time: t, err: entry.err, Context: entry.Context}
139} 148}
140 149
141// getPackageName reduces a fully qualified function name to the package name 150// getPackageName reduces a fully qualified function name to the package name
@@ -156,20 +165,23 @@ func getPackageName(f string) string {
156 165
157// getCaller retrieves the name of the first non-logrus calling function 166// getCaller retrieves the name of the first non-logrus calling function
158func getCaller() *runtime.Frame { 167func getCaller() *runtime.Frame {
159 // Restrict the lookback frames to avoid runaway lookups
160 pcs := make([]uintptr, maximumCallerDepth)
161 depth := runtime.Callers(minimumCallerDepth, pcs)
162 frames := runtime.CallersFrames(pcs[:depth])
163 168
164 // cache this package's fully-qualified name 169 // cache this package's fully-qualified name
165 callerInitOnce.Do(func() { 170 callerInitOnce.Do(func() {
166 logrusPackage = getPackageName(runtime.FuncForPC(pcs[0]).Name()) 171 pcs := make([]uintptr, 2)
172 _ = runtime.Callers(0, pcs)
173 logrusPackage = getPackageName(runtime.FuncForPC(pcs[1]).Name())
167 174
168 // now that we have the cache, we can skip a minimum count of known-logrus functions 175 // now that we have the cache, we can skip a minimum count of known-logrus functions
169 // XXX this is dubious, the number of frames may vary store an entry in a logger interface 176 // XXX this is dubious, the number of frames may vary
170 minimumCallerDepth = knownLogrusFrames 177 minimumCallerDepth = knownLogrusFrames
171 }) 178 })
172 179
180 // Restrict the lookback frames to avoid runaway lookups
181 pcs := make([]uintptr, maximumCallerDepth)
182 depth := runtime.Callers(minimumCallerDepth, pcs)
183 frames := runtime.CallersFrames(pcs[:depth])
184
173 for f, again := frames.Next(); again; f, again = frames.Next() { 185 for f, again := frames.Next(); again; f, again = frames.Next() {
174 pkg := getPackageName(f.Function) 186 pkg := getPackageName(f.Function)
175 187
@@ -298,7 +310,9 @@ func (entry *Entry) Panic(args ...interface{}) {
298// Entry Printf family functions 310// Entry Printf family functions
299 311
300func (entry *Entry) Logf(level Level, format string, args ...interface{}) { 312func (entry *Entry) Logf(level Level, format string, args ...interface{}) {
301 entry.Log(level, fmt.Sprintf(format, args...)) 313 if entry.Logger.IsLevelEnabled(level) {
314 entry.Log(level, fmt.Sprintf(format, args...))
315 }
302} 316}
303 317
304func (entry *Entry) Tracef(format string, args ...interface{}) { 318func (entry *Entry) Tracef(format string, args ...interface{}) {
diff --git a/vendor/github.com/sirupsen/logrus/exported.go b/vendor/github.com/sirupsen/logrus/exported.go
index 7342613..62fc2f2 100644
--- a/vendor/github.com/sirupsen/logrus/exported.go
+++ b/vendor/github.com/sirupsen/logrus/exported.go
@@ -1,6 +1,7 @@
1package logrus 1package logrus
2 2
3import ( 3import (
4 "context"
4 "io" 5 "io"
5 "time" 6 "time"
6) 7)
@@ -55,6 +56,11 @@ func WithError(err error) *Entry {
55 return std.WithField(ErrorKey, err) 56 return std.WithField(ErrorKey, err)
56} 57}
57 58
59// WithContext creates an entry from the standard logger and adds a context to it.
60func WithContext(ctx context.Context) *Entry {
61 return std.WithContext(ctx)
62}
63
58// WithField creates an entry from the standard logger and adds a field to 64// WithField creates an entry from the standard logger and adds a field to
59// it. If you want multiple fields, use `WithFields`. 65// it. If you want multiple fields, use `WithFields`.
60// 66//
diff --git a/vendor/github.com/sirupsen/logrus/go.mod b/vendor/github.com/sirupsen/logrus/go.mod
index 94574cc..8261a2b 100644
--- a/vendor/github.com/sirupsen/logrus/go.mod
+++ b/vendor/github.com/sirupsen/logrus/go.mod
@@ -6,6 +6,5 @@ require (
6 github.com/pmezard/go-difflib v1.0.0 // indirect 6 github.com/pmezard/go-difflib v1.0.0 // indirect
7 github.com/stretchr/objx v0.1.1 // indirect 7 github.com/stretchr/objx v0.1.1 // indirect
8 github.com/stretchr/testify v1.2.2 8 github.com/stretchr/testify v1.2.2
9 golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
10 golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 9 golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
11) 10)
diff --git a/vendor/github.com/sirupsen/logrus/go.sum b/vendor/github.com/sirupsen/logrus/go.sum
index 133d34a..2d787be 100644
--- a/vendor/github.com/sirupsen/logrus/go.sum
+++ b/vendor/github.com/sirupsen/logrus/go.sum
@@ -9,7 +9,5 @@ github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
9github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 9github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
10github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= 10github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
11github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 11github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
12golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 h1:u+LnwYTOOW7Ukr/fppxEb1Nwz0AtPflrblfvUudpo+I=
13golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
14golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8= 12golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8=
15golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 13golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
diff --git a/vendor/github.com/sirupsen/logrus/json_formatter.go b/vendor/github.com/sirupsen/logrus/json_formatter.go
index 2605753..098a21a 100644
--- a/vendor/github.com/sirupsen/logrus/json_formatter.go
+++ b/vendor/github.com/sirupsen/logrus/json_formatter.go
@@ -4,6 +4,7 @@ import (
4 "bytes" 4 "bytes"
5 "encoding/json" 5 "encoding/json"
6 "fmt" 6 "fmt"
7 "runtime"
7) 8)
8 9
9type fieldKey string 10type fieldKey string
@@ -42,6 +43,12 @@ type JSONFormatter struct {
42 // } 43 // }
43 FieldMap FieldMap 44 FieldMap FieldMap
44 45
46 // CallerPrettyfier can be set by the user to modify the content
47 // of the function and file keys in the json data when ReportCaller is
48 // activated. If any of the returned value is the empty string the
49 // corresponding key will be removed from json fields.
50 CallerPrettyfier func(*runtime.Frame) (function string, file string)
51
45 // PrettyPrint will indent all json logs 52 // PrettyPrint will indent all json logs
46 PrettyPrint bool 53 PrettyPrint bool
47} 54}
@@ -82,8 +89,17 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
82 data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message 89 data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message
83 data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String() 90 data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String()
84 if entry.HasCaller() { 91 if entry.HasCaller() {
85 data[f.FieldMap.resolve(FieldKeyFunc)] = entry.Caller.Function 92 funcVal := entry.Caller.Function
86 data[f.FieldMap.resolve(FieldKeyFile)] = fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line) 93 fileVal := fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line)
94 if f.CallerPrettyfier != nil {
95 funcVal, fileVal = f.CallerPrettyfier(entry.Caller)
96 }
97 if funcVal != "" {
98 data[f.FieldMap.resolve(FieldKeyFunc)] = funcVal
99 }
100 if fileVal != "" {
101 data[f.FieldMap.resolve(FieldKeyFile)] = fileVal
102 }
87 } 103 }
88 104
89 var b *bytes.Buffer 105 var b *bytes.Buffer
@@ -98,7 +114,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
98 encoder.SetIndent("", " ") 114 encoder.SetIndent("", " ")
99 } 115 }
100 if err := encoder.Encode(data); err != nil { 116 if err := encoder.Encode(data); err != nil {
101 return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err) 117 return nil, fmt.Errorf("failed to marshal fields to JSON, %v", err)
102 } 118 }
103 119
104 return b.Bytes(), nil 120 return b.Bytes(), nil
diff --git a/vendor/github.com/sirupsen/logrus/logger.go b/vendor/github.com/sirupsen/logrus/logger.go
index 9bf64e2..c0c0b1e 100644
--- a/vendor/github.com/sirupsen/logrus/logger.go
+++ b/vendor/github.com/sirupsen/logrus/logger.go
@@ -1,6 +1,7 @@
1package logrus 1package logrus
2 2
3import ( 3import (
4 "context"
4 "io" 5 "io"
5 "os" 6 "os"
6 "sync" 7 "sync"
@@ -124,6 +125,13 @@ func (logger *Logger) WithError(err error) *Entry {
124 return entry.WithError(err) 125 return entry.WithError(err)
125} 126}
126 127
128// Add a context to the log entry.
129func (logger *Logger) WithContext(ctx context.Context) *Entry {
130 entry := logger.newEntry()
131 defer logger.releaseEntry(entry)
132 return entry.WithContext(ctx)
133}
134
127// Overrides the time of the log entry. 135// Overrides the time of the log entry.
128func (logger *Logger) WithTime(t time.Time) *Entry { 136func (logger *Logger) WithTime(t time.Time) *Entry {
129 entry := logger.newEntry() 137 entry := logger.newEntry()
@@ -200,7 +208,7 @@ func (logger *Logger) Info(args ...interface{}) {
200 208
201func (logger *Logger) Print(args ...interface{}) { 209func (logger *Logger) Print(args ...interface{}) {
202 entry := logger.newEntry() 210 entry := logger.newEntry()
203 entry.Info(args...) 211 entry.Print(args...)
204 logger.releaseEntry(entry) 212 logger.releaseEntry(entry)
205} 213}
206 214
@@ -256,7 +264,7 @@ func (logger *Logger) Warnln(args ...interface{}) {
256} 264}
257 265
258func (logger *Logger) Warningln(args ...interface{}) { 266func (logger *Logger) Warningln(args ...interface{}) {
259 logger.Warn(args...) 267 logger.Warnln(args...)
260} 268}
261 269
262func (logger *Logger) Errorln(args ...interface{}) { 270func (logger *Logger) Errorln(args ...interface{}) {
diff --git a/vendor/github.com/sirupsen/logrus/logrus.go b/vendor/github.com/sirupsen/logrus/logrus.go
index c1ca889..8644761 100644
--- a/vendor/github.com/sirupsen/logrus/logrus.go
+++ b/vendor/github.com/sirupsen/logrus/logrus.go
@@ -74,7 +74,7 @@ func (level Level) MarshalText() ([]byte, error) {
74 return []byte("panic"), nil 74 return []byte("panic"), nil
75 } 75 }
76 76
77 return nil, fmt.Errorf("not a valid lorus level %q", level) 77 return nil, fmt.Errorf("not a valid logrus level %d", level)
78} 78}
79 79
80// A constant exposing all logging levels 80// A constant exposing all logging levels
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_aix.go b/vendor/github.com/sirupsen/logrus/terminal_check_aix.go
deleted file mode 100644
index 04fdb7b..0000000
--- a/vendor/github.com/sirupsen/logrus/terminal_check_aix.go
+++ /dev/null
@@ -1,9 +0,0 @@
1// +build !appengine,!js,!windows,aix
2
3package logrus
4
5import "io"
6
7func checkIfTerminal(w io.Writer) bool {
8 return false
9}
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go b/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go
new file mode 100644
index 0000000..3c4f43f
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go
@@ -0,0 +1,13 @@
1// +build darwin dragonfly freebsd netbsd openbsd
2
3package logrus
4
5import "golang.org/x/sys/unix"
6
7const ioctlReadTermios = unix.TIOCGETA
8
9func isTerminal(fd int) bool {
10 _, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
11 return err == nil
12}
13
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go b/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
index d465565..7be2d87 100644
--- a/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
+++ b/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
@@ -1,18 +1,16 @@
1// +build !appengine,!js,!windows,!aix 1// +build !appengine,!js,!windows
2 2
3package logrus 3package logrus
4 4
5import ( 5import (
6 "io" 6 "io"
7 "os" 7 "os"
8
9 "golang.org/x/crypto/ssh/terminal"
10) 8)
11 9
12func checkIfTerminal(w io.Writer) bool { 10func checkIfTerminal(w io.Writer) bool {
13 switch v := w.(type) { 11 switch v := w.(type) {
14 case *os.File: 12 case *os.File:
15 return terminal.IsTerminal(int(v.Fd())) 13 return isTerminal(int(v.Fd()))
16 default: 14 default:
17 return false 15 return false
18 } 16 }
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_unix.go b/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
new file mode 100644
index 0000000..355dc96
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
@@ -0,0 +1,13 @@
1// +build linux aix
2
3package logrus
4
5import "golang.org/x/sys/unix"
6
7const ioctlReadTermios = unix.TCGETS
8
9func isTerminal(fd int) bool {
10 _, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
11 return err == nil
12}
13
diff --git a/vendor/github.com/sirupsen/logrus/text_formatter.go b/vendor/github.com/sirupsen/logrus/text_formatter.go
index fb21649..1569161 100644
--- a/vendor/github.com/sirupsen/logrus/text_formatter.go
+++ b/vendor/github.com/sirupsen/logrus/text_formatter.go
@@ -12,18 +12,13 @@ import (
12) 12)
13 13
14const ( 14const (
15 nocolor = 0 15 red = 31
16 red = 31 16 yellow = 33
17 green = 32 17 blue = 36
18 yellow = 33 18 gray = 37
19 blue = 36
20 gray = 37
21) 19)
22 20
23var ( 21var baseTimestamp time.Time
24 baseTimestamp time.Time
25 emptyFieldMap FieldMap
26)
27 22
28func init() { 23func init() {
29 baseTimestamp = time.Now() 24 baseTimestamp = time.Now()
@@ -77,6 +72,12 @@ type TextFormatter struct {
77 // FieldKeyMsg: "@message"}} 72 // FieldKeyMsg: "@message"}}
78 FieldMap FieldMap 73 FieldMap FieldMap
79 74
75 // CallerPrettyfier can be set by the user to modify the content
76 // of the function and file keys in the data when ReportCaller is
77 // activated. If any of the returned value is the empty string the
78 // corresponding key will be removed from fields.
79 CallerPrettyfier func(*runtime.Frame) (function string, file string)
80
80 terminalInitOnce sync.Once 81 terminalInitOnce sync.Once
81} 82}
82 83
@@ -118,6 +119,8 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
118 keys = append(keys, k) 119 keys = append(keys, k)
119 } 120 }
120 121
122 var funcVal, fileVal string
123
121 fixedKeys := make([]string, 0, 4+len(data)) 124 fixedKeys := make([]string, 0, 4+len(data))
122 if !f.DisableTimestamp { 125 if !f.DisableTimestamp {
123 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyTime)) 126 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyTime))
@@ -130,8 +133,19 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
130 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyLogrusError)) 133 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyLogrusError))
131 } 134 }
132 if entry.HasCaller() { 135 if entry.HasCaller() {
133 fixedKeys = append(fixedKeys, 136 if f.CallerPrettyfier != nil {
134 f.FieldMap.resolve(FieldKeyFunc), f.FieldMap.resolve(FieldKeyFile)) 137 funcVal, fileVal = f.CallerPrettyfier(entry.Caller)
138 } else {
139 funcVal = entry.Caller.Function
140 fileVal = fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line)
141 }
142
143 if funcVal != "" {
144 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyFunc))
145 }
146 if fileVal != "" {
147 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyFile))
148 }
135 } 149 }
136 150
137 if !f.DisableSorting { 151 if !f.DisableSorting {
@@ -166,6 +180,7 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
166 if f.isColored() { 180 if f.isColored() {
167 f.printColored(b, entry, keys, data, timestampFormat) 181 f.printColored(b, entry, keys, data, timestampFormat)
168 } else { 182 } else {
183
169 for _, key := range fixedKeys { 184 for _, key := range fixedKeys {
170 var value interface{} 185 var value interface{}
171 switch { 186 switch {
@@ -178,9 +193,9 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
178 case key == f.FieldMap.resolve(FieldKeyLogrusError): 193 case key == f.FieldMap.resolve(FieldKeyLogrusError):
179 value = entry.err 194 value = entry.err
180 case key == f.FieldMap.resolve(FieldKeyFunc) && entry.HasCaller(): 195 case key == f.FieldMap.resolve(FieldKeyFunc) && entry.HasCaller():
181 value = entry.Caller.Function 196 value = funcVal
182 case key == f.FieldMap.resolve(FieldKeyFile) && entry.HasCaller(): 197 case key == f.FieldMap.resolve(FieldKeyFile) && entry.HasCaller():
183 value = fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line) 198 value = fileVal
184 default: 199 default:
185 value = data[key] 200 value = data[key]
186 } 201 }
@@ -215,10 +230,21 @@ func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []strin
215 entry.Message = strings.TrimSuffix(entry.Message, "\n") 230 entry.Message = strings.TrimSuffix(entry.Message, "\n")
216 231
217 caller := "" 232 caller := ""
218
219 if entry.HasCaller() { 233 if entry.HasCaller() {
220 caller = fmt.Sprintf("%s:%d %s()", 234 funcVal := fmt.Sprintf("%s()", entry.Caller.Function)
221 entry.Caller.File, entry.Caller.Line, entry.Caller.Function) 235 fileVal := fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line)
236
237 if f.CallerPrettyfier != nil {
238 funcVal, fileVal = f.CallerPrettyfier(entry.Caller)
239 }
240
241 if fileVal == "" {
242 caller = funcVal
243 } else if funcVal == "" {
244 caller = fileVal
245 } else {
246 caller = fileVal + " " + funcVal
247 }
222 } 248 }
223 249
224 if f.DisableTimestamp { 250 if f.DisableTimestamp {
diff --git a/vendor/golang.org/x/crypto/AUTHORS b/vendor/golang.org/x/crypto/AUTHORS
deleted file mode 100644
index 2b00ddb..0000000
--- a/vendor/golang.org/x/crypto/AUTHORS
+++ /dev/null
@@ -1,3 +0,0 @@
1# This source code refers to The Go Authors for copyright purposes.
2# The master list of authors is in the main Go distribution,
3# visible at https://tip.golang.org/AUTHORS.
diff --git a/vendor/golang.org/x/crypto/CONTRIBUTORS b/vendor/golang.org/x/crypto/CONTRIBUTORS
deleted file mode 100644
index 1fbd3e9..0000000
--- a/vendor/golang.org/x/crypto/CONTRIBUTORS
+++ /dev/null
@@ -1,3 +0,0 @@
1# This source code was written by the Go contributors.
2# The master list of contributors is in the main Go distribution,
3# visible at https://tip.golang.org/CONTRIBUTORS.
diff --git a/vendor/golang.org/x/crypto/LICENSE b/vendor/golang.org/x/crypto/LICENSE
deleted file mode 100644
index 6a66aea..0000000
--- a/vendor/golang.org/x/crypto/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
1Copyright (c) 2009 The Go Authors. All rights reserved.
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are
5met:
6
7 * Redistributions of source code must retain the above copyright
8notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above
10copyright notice, this list of conditions and the following disclaimer
11in the documentation and/or other materials provided with the
12distribution.
13 * Neither the name of Google Inc. nor the names of its
14contributors may be used to endorse or promote products derived from
15this software without specific prior written permission.
16
17THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/golang.org/x/crypto/PATENTS b/vendor/golang.org/x/crypto/PATENTS
deleted file mode 100644
index 7330990..0000000
--- a/vendor/golang.org/x/crypto/PATENTS
+++ /dev/null
@@ -1,22 +0,0 @@
1Additional IP Rights Grant (Patents)
2
3"This implementation" means the copyrightable works distributed by
4Google as part of the Go project.
5
6Google hereby grants to You a perpetual, worldwide, non-exclusive,
7no-charge, royalty-free, irrevocable (except as stated in this section)
8patent license to make, have made, use, offer to sell, sell, import,
9transfer and otherwise run, modify and propagate the contents of this
10implementation of Go, where such license applies only to those patent
11claims, both currently owned or controlled by Google and acquired in
12the future, licensable by Google that are necessarily infringed by this
13implementation of Go. This grant does not include claims that would be
14infringed only as a consequence of further modification of this
15implementation. If you or your agent or exclusive licensee institute or
16order or agree to the institution of patent litigation against any
17entity (including a cross-claim or counterclaim in a lawsuit) alleging
18that this implementation of Go or any code incorporated within this
19implementation of Go constitutes direct or contributory patent
20infringement, or inducement of patent infringement, then any patent
21rights granted to you under this License for this implementation of Go
22shall terminate as of the date such litigation is filed.
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/terminal.go b/vendor/golang.org/x/crypto/ssh/terminal/terminal.go
deleted file mode 100644
index 9d666ff..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/terminal.go
+++ /dev/null
@@ -1,955 +0,0 @@
1// Copyright 2011 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
5package terminal
6
7import (
8 "bytes"
9 "io"
10 "sync"
11 "unicode/utf8"
12)
13
14// EscapeCodes contains escape sequences that can be written to the terminal in
15// order to achieve different styles of text.
16type EscapeCodes struct {
17 // Foreground colors
18 Black, Red, Green, Yellow, Blue, Magenta, Cyan, White []byte
19
20 // Reset all attributes
21 Reset []byte
22}
23
24var vt100EscapeCodes = EscapeCodes{
25 Black: []byte{keyEscape, '[', '3', '0', 'm'},
26 Red: []byte{keyEscape, '[', '3', '1', 'm'},
27 Green: []byte{keyEscape, '[', '3', '2', 'm'},
28 Yellow: []byte{keyEscape, '[', '3', '3', 'm'},
29 Blue: []byte{keyEscape, '[', '3', '4', 'm'},
30 Magenta: []byte{keyEscape, '[', '3', '5', 'm'},
31 Cyan: []byte{keyEscape, '[', '3', '6', 'm'},
32 White: []byte{keyEscape, '[', '3', '7', 'm'},
33
34 Reset: []byte{keyEscape, '[', '0', 'm'},
35}
36
37// Terminal contains the state for running a VT100 terminal that is capable of
38// reading lines of input.
39type Terminal struct {
40 // AutoCompleteCallback, if non-null, is called for each keypress with
41 // the full input line and the current position of the cursor (in
42 // bytes, as an index into |line|). If it returns ok=false, the key
43 // press is processed normally. Otherwise it returns a replacement line
44 // and the new cursor position.
45 AutoCompleteCallback func(line string, pos int, key rune) (newLine string, newPos int, ok bool)
46
47 // Escape contains a pointer to the escape codes for this terminal.
48 // It's always a valid pointer, although the escape codes themselves
49 // may be empty if the terminal doesn't support them.
50 Escape *EscapeCodes
51
52 // lock protects the terminal and the state in this object from
53 // concurrent processing of a key press and a Write() call.
54 lock sync.Mutex
55
56 c io.ReadWriter
57 prompt []rune
58
59 // line is the current line being entered.
60 line []rune
61 // pos is the logical position of the cursor in line
62 pos int
63 // echo is true if local echo is enabled
64 echo bool
65 // pasteActive is true iff there is a bracketed paste operation in
66 // progress.
67 pasteActive bool
68
69 // cursorX contains the current X value of the cursor where the left
70 // edge is 0. cursorY contains the row number where the first row of
71 // the current line is 0.
72 cursorX, cursorY int
73 // maxLine is the greatest value of cursorY so far.
74 maxLine int
75
76 termWidth, termHeight int
77
78 // outBuf contains the terminal data to be sent.
79 outBuf []byte
80 // remainder contains the remainder of any partial key sequences after
81 // a read. It aliases into inBuf.
82 remainder []byte
83 inBuf [256]byte
84
85 // history contains previously entered commands so that they can be
86 // accessed with the up and down keys.
87 history stRingBuffer
88 // historyIndex stores the currently accessed history entry, where zero
89 // means the immediately previous entry.
90 historyIndex int
91 // When navigating up and down the history it's possible to return to
92 // the incomplete, initial line. That value is stored in
93 // historyPending.
94 historyPending string
95}
96
97// NewTerminal runs a VT100 terminal on the given ReadWriter. If the ReadWriter is
98// a local terminal, that terminal must first have been put into raw mode.
99// prompt is a string that is written at the start of each input line (i.e.
100// "> ").
101func NewTerminal(c io.ReadWriter, prompt string) *Terminal {
102 return &Terminal{
103 Escape: &vt100EscapeCodes,
104 c: c,
105 prompt: []rune(prompt),
106 termWidth: 80,
107 termHeight: 24,
108 echo: true,
109 historyIndex: -1,
110 }
111}
112
113const (
114 keyCtrlD = 4
115 keyCtrlU = 21
116 keyEnter = '\r'
117 keyEscape = 27
118 keyBackspace = 127
119 keyUnknown = 0xd800 /* UTF-16 surrogate area */ + iota
120 keyUp
121 keyDown
122 keyLeft
123 keyRight
124 keyAltLeft
125 keyAltRight
126 keyHome
127 keyEnd
128 keyDeleteWord
129 keyDeleteLine
130 keyClearScreen
131 keyPasteStart
132 keyPasteEnd
133)
134
135var (
136 crlf = []byte{'\r', '\n'}
137 pasteStart = []byte{keyEscape, '[', '2', '0', '0', '~'}
138 pasteEnd = []byte{keyEscape, '[', '2', '0', '1', '~'}
139)
140
141// bytesToKey tries to parse a key sequence from b. If successful, it returns
142// the key and the remainder of the input. Otherwise it returns utf8.RuneError.
143func bytesToKey(b []byte, pasteActive bool) (rune, []byte) {
144 if len(b) == 0 {
145 return utf8.RuneError, nil
146 }
147
148 if !pasteActive {
149 switch b[0] {
150 case 1: // ^A
151 return keyHome, b[1:]
152 case 5: // ^E
153 return keyEnd, b[1:]
154 case 8: // ^H
155 return keyBackspace, b[1:]
156 case 11: // ^K
157 return keyDeleteLine, b[1:]
158 case 12: // ^L
159 return keyClearScreen, b[1:]
160 case 23: // ^W
161 return keyDeleteWord, b[1:]
162 case 14: // ^N
163 return keyDown, b[1:]
164 case 16: // ^P
165 return keyUp, b[1:]
166 }
167 }
168
169 if b[0] != keyEscape {
170 if !utf8.FullRune(b) {
171 return utf8.RuneError, b
172 }
173 r, l := utf8.DecodeRune(b)
174 return r, b[l:]
175 }
176
177 if !pasteActive && len(b) >= 3 && b[0] == keyEscape && b[1] == '[' {
178 switch b[2] {
179 case 'A':
180 return keyUp, b[3:]
181 case 'B':
182 return keyDown, b[3:]
183 case 'C':
184 return keyRight, b[3:]
185 case 'D':
186 return keyLeft, b[3:]
187 case 'H':
188 return keyHome, b[3:]
189 case 'F':
190 return keyEnd, b[3:]
191 }
192 }
193
194 if !pasteActive && len(b) >= 6 && b[0] == keyEscape && b[1] == '[' && b[2] == '1' && b[3] == ';' && b[4] == '3' {
195 switch b[5] {
196 case 'C':
197 return keyAltRight, b[6:]
198 case 'D':
199 return keyAltLeft, b[6:]
200 }
201 }
202
203 if !pasteActive && len(b) >= 6 && bytes.Equal(b[:6], pasteStart) {
204 return keyPasteStart, b[6:]
205 }
206
207 if pasteActive && len(b) >= 6 && bytes.Equal(b[:6], pasteEnd) {
208 return keyPasteEnd, b[6:]
209 }
210
211 // If we get here then we have a key that we don't recognise, or a
212 // partial sequence. It's not clear how one should find the end of a
213 // sequence without knowing them all, but it seems that [a-zA-Z~] only
214 // appears at the end of a sequence.
215 for i, c := range b[0:] {
216 if c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '~' {
217 return keyUnknown, b[i+1:]
218 }
219 }
220
221 return utf8.RuneError, b
222}
223
224// queue appends data to the end of t.outBuf
225func (t *Terminal) queue(data []rune) {
226 t.outBuf = append(t.outBuf, []byte(string(data))...)
227}
228
229var eraseUnderCursor = []rune{' ', keyEscape, '[', 'D'}
230var space = []rune{' '}
231
232func isPrintable(key rune) bool {
233 isInSurrogateArea := key >= 0xd800 && key <= 0xdbff
234 return key >= 32 && !isInSurrogateArea
235}
236
237// moveCursorToPos appends data to t.outBuf which will move the cursor to the
238// given, logical position in the text.
239func (t *Terminal) moveCursorToPos(pos int) {
240 if !t.echo {
241 return
242 }
243
244 x := visualLength(t.prompt) + pos
245 y := x / t.termWidth
246 x = x % t.termWidth
247
248 up := 0
249 if y < t.cursorY {
250 up = t.cursorY - y
251 }
252
253 down := 0
254 if y > t.cursorY {
255 down = y - t.cursorY
256 }
257
258 left := 0
259 if x < t.cursorX {
260 left = t.cursorX - x
261 }
262
263 right := 0
264 if x > t.cursorX {
265 right = x - t.cursorX
266 }
267
268 t.cursorX = x
269 t.cursorY = y
270 t.move(up, down, left, right)
271}
272
273func (t *Terminal) move(up, down, left, right int) {
274 movement := make([]rune, 3*(up+down+left+right))
275 m := movement
276 for i := 0; i < up; i++ {
277 m[0] = keyEscape
278 m[1] = '['
279 m[2] = 'A'
280 m = m[3:]
281 }
282 for i := 0; i < down; i++ {
283 m[0] = keyEscape
284 m[1] = '['
285 m[2] = 'B'
286 m = m[3:]
287 }
288 for i := 0; i < left; i++ {
289 m[0] = keyEscape
290 m[1] = '['
291 m[2] = 'D'
292 m = m[3:]
293 }
294 for i := 0; i < right; i++ {
295 m[0] = keyEscape
296 m[1] = '['
297 m[2] = 'C'
298 m = m[3:]
299 }
300
301 t.queue(movement)
302}
303
304func (t *Terminal) clearLineToRight() {
305 op := []rune{keyEscape, '[', 'K'}
306 t.queue(op)
307}
308
309const maxLineLength = 4096
310
311func (t *Terminal) setLine(newLine []rune, newPos int) {
312 if t.echo {
313 t.moveCursorToPos(0)
314 t.writeLine(newLine)
315 for i := len(newLine); i < len(t.line); i++ {
316 t.writeLine(space)
317 }
318 t.moveCursorToPos(newPos)
319 }
320 t.line = newLine
321 t.pos = newPos
322}
323
324func (t *Terminal) advanceCursor(places int) {
325 t.cursorX += places
326 t.cursorY += t.cursorX / t.termWidth
327 if t.cursorY > t.maxLine {
328 t.maxLine = t.cursorY
329 }
330 t.cursorX = t.cursorX % t.termWidth
331
332 if places > 0 && t.cursorX == 0 {
333 // Normally terminals will advance the current position
334 // when writing a character. But that doesn't happen
335 // for the last character in a line. However, when
336 // writing a character (except a new line) that causes
337 // a line wrap, the position will be advanced two
338 // places.
339 //
340 // So, if we are stopping at the end of a line, we
341 // need to write a newline so that our cursor can be
342 // advanced to the next line.
343 t.outBuf = append(t.outBuf, '\r', '\n')
344 }
345}
346
347func (t *Terminal) eraseNPreviousChars(n int) {
348 if n == 0 {
349 return
350 }
351
352 if t.pos < n {
353 n = t.pos
354 }
355 t.pos -= n
356 t.moveCursorToPos(t.pos)
357
358 copy(t.line[t.pos:], t.line[n+t.pos:])
359 t.line = t.line[:len(t.line)-n]
360 if t.echo {
361 t.writeLine(t.line[t.pos:])
362 for i := 0; i < n; i++ {
363 t.queue(space)
364 }
365 t.advanceCursor(n)
366 t.moveCursorToPos(t.pos)
367 }
368}
369
370// countToLeftWord returns then number of characters from the cursor to the
371// start of the previous word.
372func (t *Terminal) countToLeftWord() int {
373 if t.pos == 0 {
374 return 0
375 }
376
377 pos := t.pos - 1
378 for pos > 0 {
379 if t.line[pos] != ' ' {
380 break
381 }
382 pos--
383 }
384 for pos > 0 {
385 if t.line[pos] == ' ' {
386 pos++
387 break
388 }
389 pos--
390 }
391
392 return t.pos - pos
393}
394
395// countToRightWord returns then number of characters from the cursor to the
396// start of the next word.
397func (t *Terminal) countToRightWord() int {
398 pos := t.pos
399 for pos < len(t.line) {
400 if t.line[pos] == ' ' {
401 break
402 }
403 pos++
404 }
405 for pos < len(t.line) {
406 if t.line[pos] != ' ' {
407 break
408 }
409 pos++
410 }
411 return pos - t.pos
412}
413
414// visualLength returns the number of visible glyphs in s.
415func visualLength(runes []rune) int {
416 inEscapeSeq := false
417 length := 0
418
419 for _, r := range runes {
420 switch {
421 case inEscapeSeq:
422 if (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') {
423 inEscapeSeq = false
424 }
425 case r == '\x1b':
426 inEscapeSeq = true
427 default:
428 length++
429 }
430 }
431
432 return length
433}
434
435// handleKey processes the given key and, optionally, returns a line of text
436// that the user has entered.
437func (t *Terminal) handleKey(key rune) (line string, ok bool) {
438 if t.pasteActive && key != keyEnter {
439 t.addKeyToLine(key)
440 return
441 }
442
443 switch key {
444 case keyBackspace:
445 if t.pos == 0 {
446 return
447 }
448 t.eraseNPreviousChars(1)
449 case keyAltLeft:
450 // move left by a word.
451 t.pos -= t.countToLeftWord()
452 t.moveCursorToPos(t.pos)
453 case keyAltRight:
454 // move right by a word.
455 t.pos += t.countToRightWord()
456 t.moveCursorToPos(t.pos)
457 case keyLeft:
458 if t.pos == 0 {
459 return
460 }
461 t.pos--
462 t.moveCursorToPos(t.pos)
463 case keyRight:
464 if t.pos == len(t.line) {
465 return
466 }
467 t.pos++
468 t.moveCursorToPos(t.pos)
469 case keyHome:
470 if t.pos == 0 {
471 return
472 }
473 t.pos = 0
474 t.moveCursorToPos(t.pos)
475 case keyEnd:
476 if t.pos == len(t.line) {
477 return
478 }
479 t.pos = len(t.line)
480 t.moveCursorToPos(t.pos)
481 case keyUp:
482 entry, ok := t.history.NthPreviousEntry(t.historyIndex + 1)
483 if !ok {
484 return "", false
485 }
486 if t.historyIndex == -1 {
487 t.historyPending = string(t.line)
488 }
489 t.historyIndex++
490 runes := []rune(entry)
491 t.setLine(runes, len(runes))
492 case keyDown:
493 switch t.historyIndex {
494 case -1:
495 return
496 case 0:
497 runes := []rune(t.historyPending)
498 t.setLine(runes, len(runes))
499 t.historyIndex--
500 default:
501 entry, ok := t.history.NthPreviousEntry(t.historyIndex - 1)
502 if ok {
503 t.historyIndex--
504 runes := []rune(entry)
505 t.setLine(runes, len(runes))
506 }
507 }
508 case keyEnter:
509 t.moveCursorToPos(len(t.line))
510 t.queue([]rune("\r\n"))
511 line = string(t.line)
512 ok = true
513 t.line = t.line[:0]
514 t.pos = 0
515 t.cursorX = 0
516 t.cursorY = 0
517 t.maxLine = 0
518 case keyDeleteWord:
519 // Delete zero or more spaces and then one or more characters.
520 t.eraseNPreviousChars(t.countToLeftWord())
521 case keyDeleteLine:
522 // Delete everything from the current cursor position to the
523 // end of line.
524 for i := t.pos; i < len(t.line); i++ {
525 t.queue(space)
526 t.advanceCursor(1)
527 }
528 t.line = t.line[:t.pos]
529 t.moveCursorToPos(t.pos)
530 case keyCtrlD:
531 // Erase the character under the current position.
532 // The EOF case when the line is empty is handled in
533 // readLine().
534 if t.pos < len(t.line) {
535 t.pos++
536 t.eraseNPreviousChars(1)
537 }
538 case keyCtrlU:
539 t.eraseNPreviousChars(t.pos)
540 case keyClearScreen:
541 // Erases the screen and moves the cursor to the home position.
542 t.queue([]rune("\x1b[2J\x1b[H"))
543 t.queue(t.prompt)
544 t.cursorX, t.cursorY = 0, 0
545 t.advanceCursor(visualLength(t.prompt))
546 t.setLine(t.line, t.pos)
547 default:
548 if t.AutoCompleteCallback != nil {
549 prefix := string(t.line[:t.pos])
550 suffix := string(t.line[t.pos:])
551
552 t.lock.Unlock()
553 newLine, newPos, completeOk := t.AutoCompleteCallback(prefix+suffix, len(prefix), key)
554 t.lock.Lock()
555
556 if completeOk {
557 t.setLine([]rune(newLine), utf8.RuneCount([]byte(newLine)[:newPos]))
558 return
559 }
560 }
561 if !isPrintable(key) {
562 return
563 }
564 if len(t.line) == maxLineLength {
565 return
566 }
567 t.addKeyToLine(key)
568 }
569 return
570}
571
572// addKeyToLine inserts the given key at the current position in the current
573// line.
574func (t *Terminal) addKeyToLine(key rune) {
575 if len(t.line) == cap(t.line) {
576 newLine := make([]rune, len(t.line), 2*(1+len(t.line)))
577 copy(newLine, t.line)
578 t.line = newLine
579 }
580 t.line = t.line[:len(t.line)+1]
581 copy(t.line[t.pos+1:], t.line[t.pos:])
582 t.line[t.pos] = key
583 if t.echo {
584 t.writeLine(t.line[t.pos:])
585 }
586 t.pos++
587 t.moveCursorToPos(t.pos)
588}
589
590func (t *Terminal) writeLine(line []rune) {
591 for len(line) != 0 {
592 remainingOnLine := t.termWidth - t.cursorX
593 todo := len(line)
594 if todo > remainingOnLine {
595 todo = remainingOnLine
596 }
597 t.queue(line[:todo])
598 t.advanceCursor(visualLength(line[:todo]))
599 line = line[todo:]
600 }
601}
602
603// writeWithCRLF writes buf to w but replaces all occurrences of \n with \r\n.
604func writeWithCRLF(w io.Writer, buf []byte) (n int, err error) {
605 for len(buf) > 0 {
606 i := bytes.IndexByte(buf, '\n')
607 todo := len(buf)
608 if i >= 0 {
609 todo = i
610 }
611
612 var nn int
613 nn, err = w.Write(buf[:todo])
614 n += nn
615 if err != nil {
616 return n, err
617 }
618 buf = buf[todo:]
619
620 if i >= 0 {
621 if _, err = w.Write(crlf); err != nil {
622 return n, err
623 }
624 n++
625 buf = buf[1:]
626 }
627 }
628
629 return n, nil
630}
631
632func (t *Terminal) Write(buf []byte) (n int, err error) {
633 t.lock.Lock()
634 defer t.lock.Unlock()
635
636 if t.cursorX == 0 && t.cursorY == 0 {
637 // This is the easy case: there's nothing on the screen that we
638 // have to move out of the way.
639 return writeWithCRLF(t.c, buf)
640 }
641
642 // We have a prompt and possibly user input on the screen. We
643 // have to clear it first.
644 t.move(0 /* up */, 0 /* down */, t.cursorX /* left */, 0 /* right */)
645 t.cursorX = 0
646 t.clearLineToRight()
647
648 for t.cursorY > 0 {
649 t.move(1 /* up */, 0, 0, 0)
650 t.cursorY--
651 t.clearLineToRight()
652 }
653
654 if _, err = t.c.Write(t.outBuf); err != nil {
655 return
656 }
657 t.outBuf = t.outBuf[:0]
658
659 if n, err = writeWithCRLF(t.c, buf); err != nil {
660 return
661 }
662
663 t.writeLine(t.prompt)
664 if t.echo {
665 t.writeLine(t.line)
666 }
667
668 t.moveCursorToPos(t.pos)
669
670 if _, err = t.c.Write(t.outBuf); err != nil {
671 return
672 }
673 t.outBuf = t.outBuf[:0]
674 return
675}
676
677// ReadPassword temporarily changes the prompt and reads a password, without
678// echo, from the terminal.
679func (t *Terminal) ReadPassword(prompt string) (line string, err error) {
680 t.lock.Lock()
681 defer t.lock.Unlock()
682
683 oldPrompt := t.prompt
684 t.prompt = []rune(prompt)
685 t.echo = false
686
687 line, err = t.readLine()
688
689 t.prompt = oldPrompt
690 t.echo = true
691
692 return
693}
694
695// ReadLine returns a line of input from the terminal.
696func (t *Terminal) ReadLine() (line string, err error) {
697 t.lock.Lock()
698 defer t.lock.Unlock()
699
700 return t.readLine()
701}
702
703func (t *Terminal) readLine() (line string, err error) {
704 // t.lock must be held at this point
705
706 if t.cursorX == 0 && t.cursorY == 0 {
707 t.writeLine(t.prompt)
708 t.c.Write(t.outBuf)
709 t.outBuf = t.outBuf[:0]
710 }
711
712 lineIsPasted := t.pasteActive
713
714 for {
715 rest := t.remainder
716 lineOk := false
717 for !lineOk {
718 var key rune
719 key, rest = bytesToKey(rest, t.pasteActive)
720 if key == utf8.RuneError {
721 break
722 }
723 if !t.pasteActive {
724 if key == keyCtrlD {
725 if len(t.line) == 0 {
726 return "", io.EOF
727 }
728 }
729 if key == keyPasteStart {
730 t.pasteActive = true
731 if len(t.line) == 0 {
732 lineIsPasted = true
733 }
734 continue
735 }
736 } else if key == keyPasteEnd {
737 t.pasteActive = false
738 continue
739 }
740 if !t.pasteActive {
741 lineIsPasted = false
742 }
743 line, lineOk = t.handleKey(key)
744 }
745 if len(rest) > 0 {
746 n := copy(t.inBuf[:], rest)
747 t.remainder = t.inBuf[:n]
748 } else {
749 t.remainder = nil
750 }
751 t.c.Write(t.outBuf)
752 t.outBuf = t.outBuf[:0]
753 if lineOk {
754 if t.echo {
755 t.historyIndex = -1
756 t.history.Add(line)
757 }
758 if lineIsPasted {
759 err = ErrPasteIndicator
760 }
761 return
762 }
763
764 // t.remainder is a slice at the beginning of t.inBuf
765 // containing a partial key sequence
766 readBuf := t.inBuf[len(t.remainder):]
767 var n int
768
769 t.lock.Unlock()
770 n, err = t.c.Read(readBuf)
771 t.lock.Lock()
772
773 if err != nil {
774 return
775 }
776
777 t.remainder = t.inBuf[:n+len(t.remainder)]
778 }
779}
780
781// SetPrompt sets the prompt to be used when reading subsequent lines.
782func (t *Terminal) SetPrompt(prompt string) {
783 t.lock.Lock()
784 defer t.lock.Unlock()
785
786 t.prompt = []rune(prompt)
787}
788
789func (t *Terminal) clearAndRepaintLinePlusNPrevious(numPrevLines int) {
790 // Move cursor to column zero at the start of the line.
791 t.move(t.cursorY, 0, t.cursorX, 0)
792 t.cursorX, t.cursorY = 0, 0
793 t.clearLineToRight()
794 for t.cursorY < numPrevLines {
795 // Move down a line
796 t.move(0, 1, 0, 0)
797 t.cursorY++
798 t.clearLineToRight()
799 }
800 // Move back to beginning.
801 t.move(t.cursorY, 0, 0, 0)
802 t.cursorX, t.cursorY = 0, 0
803
804 t.queue(t.prompt)
805 t.advanceCursor(visualLength(t.prompt))
806 t.writeLine(t.line)
807 t.moveCursorToPos(t.pos)
808}
809
810func (t *Terminal) SetSize(width, height int) error {
811 t.lock.Lock()
812 defer t.lock.Unlock()
813
814 if width == 0 {
815 width = 1
816 }
817
818 oldWidth := t.termWidth
819 t.termWidth, t.termHeight = width, height
820
821 switch {
822 case width == oldWidth:
823 // If the width didn't change then nothing else needs to be
824 // done.
825 return nil
826 case len(t.line) == 0 && t.cursorX == 0 && t.cursorY == 0:
827 // If there is nothing on current line and no prompt printed,
828 // just do nothing
829 return nil
830 case width < oldWidth:
831 // Some terminals (e.g. xterm) will truncate lines that were
832 // too long when shinking. Others, (e.g. gnome-terminal) will
833 // attempt to wrap them. For the former, repainting t.maxLine
834 // works great, but that behaviour goes badly wrong in the case
835 // of the latter because they have doubled every full line.
836
837 // We assume that we are working on a terminal that wraps lines
838 // and adjust the cursor position based on every previous line
839 // wrapping and turning into two. This causes the prompt on
840 // xterms to move upwards, which isn't great, but it avoids a
841 // huge mess with gnome-terminal.
842 if t.cursorX >= t.termWidth {
843 t.cursorX = t.termWidth - 1
844 }
845 t.cursorY *= 2
846 t.clearAndRepaintLinePlusNPrevious(t.maxLine * 2)
847 case width > oldWidth:
848 // If the terminal expands then our position calculations will
849 // be wrong in the future because we think the cursor is
850 // |t.pos| chars into the string, but there will be a gap at
851 // the end of any wrapped line.
852 //
853 // But the position will actually be correct until we move, so
854 // we can move back to the beginning and repaint everything.
855 t.clearAndRepaintLinePlusNPrevious(t.maxLine)
856 }
857
858 _, err := t.c.Write(t.outBuf)
859 t.outBuf = t.outBuf[:0]
860 return err
861}
862
863type pasteIndicatorError struct{}
864
865func (pasteIndicatorError) Error() string {
866 return "terminal: ErrPasteIndicator not correctly handled"
867}
868
869// ErrPasteIndicator may be returned from ReadLine as the error, in addition
870// to valid line data. It indicates that bracketed paste mode is enabled and
871// that the returned line consists only of pasted data. Programs may wish to
872// interpret pasted data more literally than typed data.
873var ErrPasteIndicator = pasteIndicatorError{}
874
875// SetBracketedPasteMode requests that the terminal bracket paste operations
876// with markers. Not all terminals support this but, if it is supported, then
877// enabling this mode will stop any autocomplete callback from running due to
878// pastes. Additionally, any lines that are completely pasted will be returned
879// from ReadLine with the error set to ErrPasteIndicator.
880func (t *Terminal) SetBracketedPasteMode(on bool) {
881 if on {
882 io.WriteString(t.c, "\x1b[?2004h")
883 } else {
884 io.WriteString(t.c, "\x1b[?2004l")
885 }
886}
887
888// stRingBuffer is a ring buffer of strings.
889type stRingBuffer struct {
890 // entries contains max elements.
891 entries []string
892 max int
893 // head contains the index of the element most recently added to the ring.
894 head int
895 // size contains the number of elements in the ring.
896 size int
897}
898
899func (s *stRingBuffer) Add(a string) {
900 if s.entries == nil {
901 const defaultNumEntries = 100
902 s.entries = make([]string, defaultNumEntries)
903 s.max = defaultNumEntries
904 }
905
906 s.head = (s.head + 1) % s.max
907 s.entries[s.head] = a
908 if s.size < s.max {
909 s.size++
910 }
911}
912
913// NthPreviousEntry returns the value passed to the nth previous call to Add.
914// If n is zero then the immediately prior value is returned, if one, then the
915// next most recent, and so on. If such an element doesn't exist then ok is
916// false.
917func (s *stRingBuffer) NthPreviousEntry(n int) (value string, ok bool) {
918 if n >= s.size {
919 return "", false
920 }
921 index := s.head - n
922 if index < 0 {
923 index += s.max
924 }
925 return s.entries[index], true
926}
927
928// readPasswordLine reads from reader until it finds \n or io.EOF.
929// The slice returned does not include the \n.
930// readPasswordLine also ignores any \r it finds.
931func readPasswordLine(reader io.Reader) ([]byte, error) {
932 var buf [1]byte
933 var ret []byte
934
935 for {
936 n, err := reader.Read(buf[:])
937 if n > 0 {
938 switch buf[0] {
939 case '\n':
940 return ret, nil
941 case '\r':
942 // remove \r from passwords on Windows
943 default:
944 ret = append(ret, buf[0])
945 }
946 continue
947 }
948 if err != nil {
949 if err == io.EOF && len(ret) > 0 {
950 return ret, nil
951 }
952 return ret, err
953 }
954 }
955}
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util.go b/vendor/golang.org/x/crypto/ssh/terminal/util.go
deleted file mode 100644
index 3911040..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util.go
+++ /dev/null
@@ -1,114 +0,0 @@
1// Copyright 2011 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,!appengine netbsd openbsd
6
7// Package terminal provides support functions for dealing with terminals, as
8// commonly found on UNIX systems.
9//
10// Putting a terminal into raw mode is the most common requirement:
11//
12// oldState, err := terminal.MakeRaw(0)
13// if err != nil {
14// panic(err)
15// }
16// defer terminal.Restore(0, oldState)
17package terminal // import "golang.org/x/crypto/ssh/terminal"
18
19import (
20 "golang.org/x/sys/unix"
21)
22
23// State contains the state of a terminal.
24type State struct {
25 termios unix.Termios
26}
27
28// IsTerminal returns whether the given file descriptor is a terminal.
29func IsTerminal(fd int) bool {
30 _, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
31 return err == nil
32}
33
34// MakeRaw put the terminal connected to the given file descriptor into raw
35// mode and returns the previous state of the terminal so that it can be
36// restored.
37func MakeRaw(fd int) (*State, error) {
38 termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
39 if err != nil {
40 return nil, err
41 }
42
43 oldState := State{termios: *termios}
44
45 // This attempts to replicate the behaviour documented for cfmakeraw in
46 // the termios(3) manpage.
47 termios.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON
48 termios.Oflag &^= unix.OPOST
49 termios.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN
50 termios.Cflag &^= unix.CSIZE | unix.PARENB
51 termios.Cflag |= unix.CS8
52 termios.Cc[unix.VMIN] = 1
53 termios.Cc[unix.VTIME] = 0
54 if err := unix.IoctlSetTermios(fd, ioctlWriteTermios, termios); err != nil {
55 return nil, err
56 }
57
58 return &oldState, nil
59}
60
61// GetState returns the current state of a terminal which may be useful to
62// restore the terminal after a signal.
63func GetState(fd int) (*State, error) {
64 termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
65 if err != nil {
66 return nil, err
67 }
68
69 return &State{termios: *termios}, nil
70}
71
72// Restore restores the terminal connected to the given file descriptor to a
73// previous state.
74func Restore(fd int, state *State) error {
75 return unix.IoctlSetTermios(fd, ioctlWriteTermios, &state.termios)
76}
77
78// GetSize returns the dimensions of the given terminal.
79func GetSize(fd int) (width, height int, err error) {
80 ws, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ)
81 if err != nil {
82 return -1, -1, err
83 }
84 return int(ws.Col), int(ws.Row), nil
85}
86
87// passwordReader is an io.Reader that reads from a specific file descriptor.
88type passwordReader int
89
90func (r passwordReader) Read(buf []byte) (int, error) {
91 return unix.Read(int(r), buf)
92}
93
94// ReadPassword reads a line of input from a terminal without local echo. This
95// is commonly used for inputting passwords and other sensitive data. The slice
96// returned does not include the \n.
97func ReadPassword(fd int) ([]byte, error) {
98 termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
99 if err != nil {
100 return nil, err
101 }
102
103 newState := *termios
104 newState.Lflag &^= unix.ECHO
105 newState.Lflag |= unix.ICANON | unix.ISIG
106 newState.Iflag |= unix.ICRNL
107 if err := unix.IoctlSetTermios(fd, ioctlWriteTermios, &newState); err != nil {
108 return nil, err
109 }
110
111 defer unix.IoctlSetTermios(fd, ioctlWriteTermios, termios)
112
113 return readPasswordLine(passwordReader(fd))
114}
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_aix.go b/vendor/golang.org/x/crypto/ssh/terminal/util_aix.go
deleted file mode 100644
index dfcd627..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_aix.go
+++ /dev/null
@@ -1,12 +0,0 @@
1// Copyright 2018 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
6
7package terminal
8
9import "golang.org/x/sys/unix"
10
11const ioctlReadTermios = unix.TCGETS
12const ioctlWriteTermios = unix.TCSETS
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go b/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go
deleted file mode 100644
index cb23a59..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go
+++ /dev/null
@@ -1,12 +0,0 @@
1// Copyright 2013 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 dragonfly freebsd netbsd openbsd
6
7package terminal
8
9import "golang.org/x/sys/unix"
10
11const ioctlReadTermios = unix.TIOCGETA
12const ioctlWriteTermios = unix.TIOCSETA
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go b/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go
deleted file mode 100644
index 5fadfe8..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go
+++ /dev/null
@@ -1,10 +0,0 @@
1// Copyright 2013 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
5package terminal
6
7import "golang.org/x/sys/unix"
8
9const ioctlReadTermios = unix.TCGETS
10const ioctlWriteTermios = unix.TCSETS
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go b/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go
deleted file mode 100644
index 9317ac7..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go
+++ /dev/null
@@ -1,58 +0,0 @@
1// Copyright 2016 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// Package terminal provides support functions for dealing with terminals, as
6// commonly found on UNIX systems.
7//
8// Putting a terminal into raw mode is the most common requirement:
9//
10// oldState, err := terminal.MakeRaw(0)
11// if err != nil {
12// panic(err)
13// }
14// defer terminal.Restore(0, oldState)
15package terminal
16
17import (
18 "fmt"
19 "runtime"
20)
21
22type State struct{}
23
24// IsTerminal returns whether the given file descriptor is a terminal.
25func IsTerminal(fd int) bool {
26 return false
27}
28
29// MakeRaw put the terminal connected to the given file descriptor into raw
30// mode and returns the previous state of the terminal so that it can be
31// restored.
32func MakeRaw(fd int) (*State, error) {
33 return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
34}
35
36// GetState returns the current state of a terminal which may be useful to
37// restore the terminal after a signal.
38func GetState(fd int) (*State, error) {
39 return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
40}
41
42// Restore restores the terminal connected to the given file descriptor to a
43// previous state.
44func Restore(fd int, state *State) error {
45 return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
46}
47
48// GetSize returns the dimensions of the given terminal.
49func GetSize(fd int) (width, height int, err error) {
50 return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
51}
52
53// ReadPassword reads a line of input from a terminal without local echo. This
54// is commonly used for inputting passwords and other sensitive data. The slice
55// returned does not include the \n.
56func ReadPassword(fd int) ([]byte, error) {
57 return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
58}
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go b/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go
deleted file mode 100644
index 3d5f06a..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go
+++ /dev/null
@@ -1,124 +0,0 @@
1// Copyright 2015 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 solaris
6
7package terminal // import "golang.org/x/crypto/ssh/terminal"
8
9import (
10 "golang.org/x/sys/unix"
11 "io"
12 "syscall"
13)
14
15// State contains the state of a terminal.
16type State struct {
17 termios unix.Termios
18}
19
20// IsTerminal returns whether the given file descriptor is a terminal.
21func IsTerminal(fd int) bool {
22 _, err := unix.IoctlGetTermio(fd, unix.TCGETA)
23 return err == nil
24}
25
26// ReadPassword reads a line of input from a terminal without local echo. This
27// is commonly used for inputting passwords and other sensitive data. The slice
28// returned does not include the \n.
29func ReadPassword(fd int) ([]byte, error) {
30 // see also: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libast/common/uwin/getpass.c
31 val, err := unix.IoctlGetTermios(fd, unix.TCGETS)
32 if err != nil {
33 return nil, err
34 }
35 oldState := *val
36
37 newState := oldState
38 newState.Lflag &^= syscall.ECHO
39 newState.Lflag |= syscall.ICANON | syscall.ISIG
40 newState.Iflag |= syscall.ICRNL
41 err = unix.IoctlSetTermios(fd, unix.TCSETS, &newState)
42 if err != nil {
43 return nil, err
44 }
45
46 defer unix.IoctlSetTermios(fd, unix.TCSETS, &oldState)
47
48 var buf [16]byte
49 var ret []byte
50 for {
51 n, err := syscall.Read(fd, buf[:])
52 if err != nil {
53 return nil, err
54 }
55 if n == 0 {
56 if len(ret) == 0 {
57 return nil, io.EOF
58 }
59 break
60 }
61 if buf[n-1] == '\n' {
62 n--
63 }
64 ret = append(ret, buf[:n]...)
65 if n < len(buf) {
66 break
67 }
68 }
69
70 return ret, nil
71}
72
73// MakeRaw puts the terminal connected to the given file descriptor into raw
74// mode and returns the previous state of the terminal so that it can be
75// restored.
76// see http://cr.illumos.org/~webrev/andy_js/1060/
77func MakeRaw(fd int) (*State, error) {
78 termios, err := unix.IoctlGetTermios(fd, unix.TCGETS)
79 if err != nil {
80 return nil, err
81 }
82
83 oldState := State{termios: *termios}
84
85 termios.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON
86 termios.Oflag &^= unix.OPOST
87 termios.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN
88 termios.Cflag &^= unix.CSIZE | unix.PARENB
89 termios.Cflag |= unix.CS8
90 termios.Cc[unix.VMIN] = 1
91 termios.Cc[unix.VTIME] = 0
92
93 if err := unix.IoctlSetTermios(fd, unix.TCSETS, termios); err != nil {
94 return nil, err
95 }
96
97 return &oldState, nil
98}
99
100// Restore restores the terminal connected to the given file descriptor to a
101// previous state.
102func Restore(fd int, oldState *State) error {
103 return unix.IoctlSetTermios(fd, unix.TCSETS, &oldState.termios)
104}
105
106// GetState returns the current state of a terminal which may be useful to
107// restore the terminal after a signal.
108func GetState(fd int) (*State, error) {
109 termios, err := unix.IoctlGetTermios(fd, unix.TCGETS)
110 if err != nil {
111 return nil, err
112 }
113
114 return &State{termios: *termios}, nil
115}
116
117// GetSize returns the dimensions of the given terminal.
118func GetSize(fd int) (width, height int, err error) {
119 ws, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ)
120 if err != nil {
121 return 0, 0, err
122 }
123 return int(ws.Col), int(ws.Row), nil
124}
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
deleted file mode 100644
index 6cb8a95..0000000
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
+++ /dev/null
@@ -1,103 +0,0 @@
1// Copyright 2011 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 windows
6
7// Package terminal provides support functions for dealing with terminals, as
8// commonly found on UNIX systems.
9//
10// Putting a terminal into raw mode is the most common requirement:
11//
12// oldState, err := terminal.MakeRaw(0)
13// if err != nil {
14// panic(err)
15// }
16// defer terminal.Restore(0, oldState)
17package terminal
18
19import (
20 "os"
21
22 "golang.org/x/sys/windows"
23)
24
25type State struct {
26 mode uint32
27}
28
29// IsTerminal returns whether the given file descriptor is a terminal.
30func IsTerminal(fd int) bool {
31 var st uint32
32 err := windows.GetConsoleMode(windows.Handle(fd), &st)
33 return err == nil
34}
35
36// MakeRaw put the terminal connected to the given file descriptor into raw
37// mode and returns the previous state of the terminal so that it can be
38// restored.
39func MakeRaw(fd int) (*State, error) {
40 var st uint32
41 if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil {
42 return nil, err
43 }
44 raw := st &^ (windows.ENABLE_ECHO_INPUT | windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT)
45 if err := windows.SetConsoleMode(windows.Handle(fd), raw); err != nil {
46 return nil, err
47 }
48 return &State{st}, nil
49}
50
51// GetState returns the current state of a terminal which may be useful to
52// restore the terminal after a signal.
53func GetState(fd int) (*State, error) {
54 var st uint32
55 if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil {
56 return nil, err
57 }
58 return &State{st}, nil
59}
60
61// Restore restores the terminal connected to the given file descriptor to a
62// previous state.
63func Restore(fd int, state *State) error {
64 return windows.SetConsoleMode(windows.Handle(fd), state.mode)
65}
66
67// GetSize returns the dimensions of the given terminal.
68func GetSize(fd int) (width, height int, err error) {
69 var info windows.ConsoleScreenBufferInfo
70 if err := windows.GetConsoleScreenBufferInfo(windows.Handle(fd), &info); err != nil {
71 return 0, 0, err
72 }
73 return int(info.Size.X), int(info.Size.Y), nil
74}
75
76// ReadPassword reads a line of input from a terminal without local echo. This
77// is commonly used for inputting passwords and other sensitive data. The slice
78// returned does not include the \n.
79func ReadPassword(fd int) ([]byte, error) {
80 var st uint32
81 if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil {
82 return nil, err
83 }
84 old := st
85
86 st &^= (windows.ENABLE_ECHO_INPUT)
87 st |= (windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT)
88 if err := windows.SetConsoleMode(windows.Handle(fd), st); err != nil {
89 return nil, err
90 }
91
92 defer windows.SetConsoleMode(windows.Handle(fd), old)
93
94 var h windows.Handle
95 p, _ := windows.GetCurrentProcess()
96 if err := windows.DuplicateHandle(p, windows.Handle(fd), p, &h, 0, false, windows.DUPLICATE_SAME_ACCESS); err != nil {
97 return nil, err
98 }
99
100 f := os.NewFile(uintptr(h), "stdin")
101 defer f.Close()
102 return readPasswordLine(f)
103}
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn.go b/vendor/golang.org/x/net/internal/socket/rawconn.go
index d6871d5..b07b890 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn.go
@@ -2,8 +2,6 @@
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 go1.9
6
7package socket 5package socket
8 6
9import ( 7import (
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go b/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
index 499164a..1f4cb3b 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
@@ -2,7 +2,6 @@
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 go1.9
6// +build linux 5// +build linux
7 6
8package socket 7package socket
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_msg.go b/vendor/golang.org/x/net/internal/socket/rawconn_msg.go
index b21d2e6..76fea30 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn_msg.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn_msg.go
@@ -2,7 +2,6 @@
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 go1.9
6// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows 5// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
7 6
8package socket 7package socket
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go b/vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go
index f78832a..fe5bb94 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go
@@ -2,17 +2,14 @@
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 go1.9
6// +build !linux 5// +build !linux
7 6
8package socket 7package socket
9 8
10import "errors"
11
12func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) { 9func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) {
13 return 0, errors.New("not implemented") 10 return 0, errNotImplemented
14} 11}
15 12
16func (c *Conn) sendMsgs(ms []Message, flags int) (int, error) { 13func (c *Conn) sendMsgs(ms []Message, flags int) (int, error) {
17 return 0, errors.New("not implemented") 14 return 0, errNotImplemented
18} 15}
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go b/vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go
index 96733cb..404b469 100644
--- a/vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go
+++ b/vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go
@@ -2,17 +2,14 @@
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 go1.9
6// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 5// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
7 6
8package socket 7package socket
9 8
10import "errors"
11
12func (c *Conn) recvMsg(m *Message, flags int) error { 9func (c *Conn) recvMsg(m *Message, flags int) error {
13 return errors.New("not implemented") 10 return errNotImplemented
14} 11}
15 12
16func (c *Conn) sendMsg(m *Message, flags int) error { 13func (c *Conn) sendMsg(m *Message, flags int) error {
17 return errors.New("not implemented") 14 return errNotImplemented
18} 15}
diff --git a/vendor/golang.org/x/net/internal/socket/rawconn_stub.go b/vendor/golang.org/x/net/internal/socket/rawconn_stub.go
deleted file mode 100644
index d2add1a..0000000
--- a/vendor/golang.org/x/net/internal/socket/rawconn_stub.go
+++ /dev/null
@@ -1,25 +0,0 @@
1// Copyright 2017 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 !go1.9
6
7package socket
8
9import "errors"
10
11func (c *Conn) recvMsg(m *Message, flags int) error {
12 return errors.New("not implemented")
13}
14
15func (c *Conn) sendMsg(m *Message, flags int) error {
16 return errors.New("not implemented")
17}
18
19func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) {
20 return 0, errors.New("not implemented")
21}
22
23func (c *Conn) sendMsgs(ms []Message, flags int) (int, error) {
24 return 0, errors.New("not implemented")
25}
diff --git a/vendor/golang.org/x/net/internal/socket/reflect.go b/vendor/golang.org/x/net/internal/socket/reflect.go
deleted file mode 100644
index bb179f1..0000000
--- a/vendor/golang.org/x/net/internal/socket/reflect.go
+++ /dev/null
@@ -1,62 +0,0 @@
1// Copyright 2017 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 !go1.9
6
7package socket
8
9import (
10 "errors"
11 "net"
12 "os"
13 "reflect"
14 "runtime"
15)
16
17// A Conn represents a raw connection.
18type Conn struct {
19 c net.Conn
20}
21
22// NewConn returns a new raw connection.
23func NewConn(c net.Conn) (*Conn, error) {
24 return &Conn{c: c}, nil
25}
26
27func (o *Option) get(c *Conn, b []byte) (int, error) {
28 s, err := socketOf(c.c)
29 if err != nil {
30 return 0, err
31 }
32 n, err := getsockopt(s, o.Level, o.Name, b)
33 return n, os.NewSyscallError("getsockopt", err)
34}
35
36func (o *Option) set(c *Conn, b []byte) error {
37 s, err := socketOf(c.c)
38 if err != nil {
39 return err
40 }
41 return os.NewSyscallError("setsockopt", setsockopt(s, o.Level, o.Name, b))
42}
43
44func socketOf(c net.Conn) (uintptr, error) {
45 switch c.(type) {
46 case *net.TCPConn, *net.UDPConn, *net.IPConn:
47 v := reflect.ValueOf(c)
48 switch e := v.Elem(); e.Kind() {
49 case reflect.Struct:
50 fd := e.FieldByName("conn").FieldByName("fd")
51 switch e := fd.Elem(); e.Kind() {
52 case reflect.Struct:
53 sysfd := e.FieldByName("sysfd")
54 if runtime.GOOS == "windows" {
55 return uintptr(sysfd.Uint()), nil
56 }
57 return uintptr(sysfd.Int()), nil
58 }
59 }
60 }
61 return 0, errors.New("invalid type")
62}
diff --git a/vendor/golang.org/x/net/internal/socket/socket.go b/vendor/golang.org/x/net/internal/socket/socket.go
index 5f9730e..23571b8 100644
--- a/vendor/golang.org/x/net/internal/socket/socket.go
+++ b/vendor/golang.org/x/net/internal/socket/socket.go
@@ -9,9 +9,12 @@ package socket // import "golang.org/x/net/internal/socket"
9import ( 9import (
10 "errors" 10 "errors"
11 "net" 11 "net"
12 "runtime"
12 "unsafe" 13 "unsafe"
13) 14)
14 15
16var errNotImplemented = errors.New("not implemented on " + runtime.GOOS + "/" + runtime.GOARCH)
17
15// An Option represents a sticky socket option. 18// An Option represents a sticky socket option.
16type Option struct { 19type Option struct {
17 Level int // level 20 Level int // level
diff --git a/vendor/golang.org/x/net/internal/socket/sys.go b/vendor/golang.org/x/net/internal/socket/sys.go
index 4f0eead..ee492ba 100644
--- a/vendor/golang.org/x/net/internal/socket/sys.go
+++ b/vendor/golang.org/x/net/internal/socket/sys.go
@@ -29,5 +29,5 @@ func init() {
29} 29}
30 30
31func roundup(l int) int { 31func roundup(l int) int {
32 return (l + kernelAlign - 1) & ^(kernelAlign - 1) 32 return (l + kernelAlign - 1) &^ (kernelAlign - 1)
33} 33}
diff --git a/vendor/golang.org/x/net/internal/socket/sys_bsd.go b/vendor/golang.org/x/net/internal/socket/sys_bsd.go
index f13e14f..a15c9e3 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_bsd.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_bsd.go
@@ -6,12 +6,10 @@
6 6
7package socket 7package socket
8 8
9import "errors"
10
11func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 9func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
12 return 0, errors.New("not implemented") 10 return 0, errNotImplemented
13} 11}
14 12
15func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 13func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
16 return 0, errors.New("not implemented") 14 return 0, errNotImplemented
17} 15}
diff --git a/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go b/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
index 164ddfc..02e5606 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
@@ -12,7 +12,7 @@ import (
12) 12)
13 13
14func probeProtocolStack() int { 14func probeProtocolStack() int {
15 if runtime.GOOS == "openbsd" && runtime.GOARCH == "arm" { 15 if (runtime.GOOS == "netbsd" || runtime.GOOS == "openbsd") && runtime.GOARCH == "arm" {
16 return 8 16 return 8
17 } 17 }
18 var p uintptr 18 var p uintptr
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 9a9bc47..fbac72d 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_posix.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_posix.go
@@ -2,7 +2,6 @@
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 go1.9
6// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows 5// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
7 6
8package socket 7package socket
diff --git a/vendor/golang.org/x/net/internal/socket/sys_solaris.go b/vendor/golang.org/x/net/internal/socket/sys_solaris.go
index cced74e..66b5547 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_solaris.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_solaris.go
@@ -5,7 +5,6 @@
5package socket 5package socket
6 6
7import ( 7import (
8 "errors"
9 "runtime" 8 "runtime"
10 "syscall" 9 "syscall"
11 "unsafe" 10 "unsafe"
@@ -63,9 +62,9 @@ func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
63} 62}
64 63
65func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 64func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
66 return 0, errors.New("not implemented") 65 return 0, errNotImplemented
67} 66}
68 67
69func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 68func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
70 return 0, errors.New("not implemented") 69 return 0, errNotImplemented
71} 70}
diff --git a/vendor/golang.org/x/net/internal/socket/sys_stub.go b/vendor/golang.org/x/net/internal/socket/sys_stub.go
index d9f06d0..e895290 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_stub.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_stub.go
@@ -7,7 +7,6 @@
7package socket 7package socket
8 8
9import ( 9import (
10 "errors"
11 "net" 10 "net"
12 "runtime" 11 "runtime"
13 "unsafe" 12 "unsafe"
@@ -36,29 +35,29 @@ func marshalInetAddr(ip net.IP, port int, zone string) []byte {
36} 35}
37 36
38func parseInetAddr(b []byte, network string) (net.Addr, error) { 37func parseInetAddr(b []byte, network string) (net.Addr, error) {
39 return nil, errors.New("not implemented") 38 return nil, errNotImplemented
40} 39}
41 40
42func getsockopt(s uintptr, level, name int, b []byte) (int, error) { 41func getsockopt(s uintptr, level, name int, b []byte) (int, error) {
43 return 0, errors.New("not implemented") 42 return 0, errNotImplemented
44} 43}
45 44
46func setsockopt(s uintptr, level, name int, b []byte) error { 45func setsockopt(s uintptr, level, name int, b []byte) error {
47 return errors.New("not implemented") 46 return errNotImplemented
48} 47}
49 48
50func recvmsg(s uintptr, h *msghdr, flags int) (int, error) { 49func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
51 return 0, errors.New("not implemented") 50 return 0, errNotImplemented
52} 51}
53 52
54func sendmsg(s uintptr, h *msghdr, flags int) (int, error) { 53func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
55 return 0, errors.New("not implemented") 54 return 0, errNotImplemented
56} 55}
57 56
58func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 57func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
59 return 0, errors.New("not implemented") 58 return 0, errNotImplemented
60} 59}
61 60
62func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 61func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
63 return 0, errors.New("not implemented") 62 return 0, errNotImplemented
64} 63}
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 54a470e..924e327 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_windows.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_windows.go
@@ -5,7 +5,6 @@
5package socket 5package socket
6 6
7import ( 7import (
8 "errors"
9 "syscall" 8 "syscall"
10 "unsafe" 9 "unsafe"
11) 10)
@@ -54,17 +53,17 @@ func setsockopt(s uintptr, level, name int, b []byte) error {
54} 53}
55 54
56func recvmsg(s uintptr, h *msghdr, flags int) (int, error) { 55func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
57 return 0, errors.New("not implemented") 56 return 0, errNotImplemented
58} 57}
59 58
60func sendmsg(s uintptr, h *msghdr, flags int) (int, error) { 59func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
61 return 0, errors.New("not implemented") 60 return 0, errNotImplemented
62} 61}
63 62
64func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 63func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
65 return 0, errors.New("not implemented") 64 return 0, errNotImplemented
66} 65}
67 66
68func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) { 67func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
69 return 0, errors.New("not implemented") 68 return 0, errNotImplemented
70} 69}
diff --git a/vendor/golang.org/x/net/ipv4/batch.go b/vendor/golang.org/x/net/ipv4/batch.go
index 5ce9b35..1a3a4fc 100644
--- a/vendor/golang.org/x/net/ipv4/batch.go
+++ b/vendor/golang.org/x/net/ipv4/batch.go
@@ -2,8 +2,6 @@
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 go1.9
6
7package ipv4 5package ipv4
8 6
9import ( 7import (
@@ -91,6 +89,9 @@ func (c *payloadHandler) ReadBatch(ms []Message, flags int) (int, error) {
91 n = 0 89 n = 0
92 err = &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err} 90 err = &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
93 } 91 }
92 if compatFreeBSD32 && ms[0].NN > 0 {
93 adjustFreeBSD32(&ms[0])
94 }
94 return n, err 95 return n, err
95 } 96 }
96} 97}
@@ -154,6 +155,9 @@ func (c *packetHandler) ReadBatch(ms []Message, flags int) (int, error) {
154 n = 0 155 n = 0
155 err = &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err} 156 err = &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
156 } 157 }
158 if compatFreeBSD32 && ms[0].NN > 0 {
159 adjustFreeBSD32(&ms[0])
160 }
157 return n, err 161 return n, err
158 } 162 }
159} 163}
diff --git a/vendor/golang.org/x/net/ipv4/control_stub.go b/vendor/golang.org/x/net/ipv4/control_stub.go
index 5a2f7d8..a4bcfad 100644
--- a/vendor/golang.org/x/net/ipv4/control_stub.go
+++ b/vendor/golang.org/x/net/ipv4/control_stub.go
@@ -9,5 +9,5 @@ package ipv4
9import "golang.org/x/net/internal/socket" 9import "golang.org/x/net/internal/socket"
10 10
11func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error { 11func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
12 return errOpNoSupport 12 return errNotImplemented
13} 13}
diff --git a/vendor/golang.org/x/net/ipv4/control_windows.go b/vendor/golang.org/x/net/ipv4/control_windows.go
index ce55c66..82c6306 100644
--- a/vendor/golang.org/x/net/ipv4/control_windows.go
+++ b/vendor/golang.org/x/net/ipv4/control_windows.go
@@ -4,13 +4,9 @@
4 4
5package ipv4 5package ipv4
6 6
7import ( 7import "golang.org/x/net/internal/socket"
8 "syscall"
9
10 "golang.org/x/net/internal/socket"
11)
12 8
13func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error { 9func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
14 // TODO(mikio): implement this 10 // TODO(mikio): implement this
15 return syscall.EWINDOWS 11 return errNotImplemented
16} 12}
diff --git a/vendor/golang.org/x/net/ipv4/dgramopt.go b/vendor/golang.org/x/net/ipv4/dgramopt.go
index 3676449..c191c22 100644
--- a/vendor/golang.org/x/net/ipv4/dgramopt.go
+++ b/vendor/golang.org/x/net/ipv4/dgramopt.go
@@ -18,7 +18,7 @@ func (c *dgramOpt) MulticastTTL() (int, error) {
18 } 18 }
19 so, ok := sockOpts[ssoMulticastTTL] 19 so, ok := sockOpts[ssoMulticastTTL]
20 if !ok { 20 if !ok {
21 return 0, errOpNoSupport 21 return 0, errNotImplemented
22 } 22 }
23 return so.GetInt(c.Conn) 23 return so.GetInt(c.Conn)
24} 24}
@@ -31,7 +31,7 @@ func (c *dgramOpt) SetMulticastTTL(ttl int) error {
31 } 31 }
32 so, ok := sockOpts[ssoMulticastTTL] 32 so, ok := sockOpts[ssoMulticastTTL]
33 if !ok { 33 if !ok {
34 return errOpNoSupport 34 return errNotImplemented
35 } 35 }
36 return so.SetInt(c.Conn, ttl) 36 return so.SetInt(c.Conn, ttl)
37} 37}
@@ -44,7 +44,7 @@ func (c *dgramOpt) MulticastInterface() (*net.Interface, error) {
44 } 44 }
45 so, ok := sockOpts[ssoMulticastInterface] 45 so, ok := sockOpts[ssoMulticastInterface]
46 if !ok { 46 if !ok {
47 return nil, errOpNoSupport 47 return nil, errNotImplemented
48 } 48 }
49 return so.getMulticastInterface(c.Conn) 49 return so.getMulticastInterface(c.Conn)
50} 50}
@@ -57,7 +57,7 @@ func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error {
57 } 57 }
58 so, ok := sockOpts[ssoMulticastInterface] 58 so, ok := sockOpts[ssoMulticastInterface]
59 if !ok { 59 if !ok {
60 return errOpNoSupport 60 return errNotImplemented
61 } 61 }
62 return so.setMulticastInterface(c.Conn, ifi) 62 return so.setMulticastInterface(c.Conn, ifi)
63} 63}
@@ -70,7 +70,7 @@ func (c *dgramOpt) MulticastLoopback() (bool, error) {
70 } 70 }
71 so, ok := sockOpts[ssoMulticastLoopback] 71 so, ok := sockOpts[ssoMulticastLoopback]
72 if !ok { 72 if !ok {
73 return false, errOpNoSupport 73 return false, errNotImplemented
74 } 74 }
75 on, err := so.GetInt(c.Conn) 75 on, err := so.GetInt(c.Conn)
76 if err != nil { 76 if err != nil {
@@ -87,7 +87,7 @@ func (c *dgramOpt) SetMulticastLoopback(on bool) error {
87 } 87 }
88 so, ok := sockOpts[ssoMulticastLoopback] 88 so, ok := sockOpts[ssoMulticastLoopback]
89 if !ok { 89 if !ok {
90 return errOpNoSupport 90 return errNotImplemented
91 } 91 }
92 return so.SetInt(c.Conn, boolint(on)) 92 return so.SetInt(c.Conn, boolint(on))
93} 93}
@@ -107,7 +107,7 @@ func (c *dgramOpt) JoinGroup(ifi *net.Interface, group net.Addr) error {
107 } 107 }
108 so, ok := sockOpts[ssoJoinGroup] 108 so, ok := sockOpts[ssoJoinGroup]
109 if !ok { 109 if !ok {
110 return errOpNoSupport 110 return errNotImplemented
111 } 111 }
112 grp := netAddrToIP4(group) 112 grp := netAddrToIP4(group)
113 if grp == nil { 113 if grp == nil {
@@ -125,7 +125,7 @@ func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
125 } 125 }
126 so, ok := sockOpts[ssoLeaveGroup] 126 so, ok := sockOpts[ssoLeaveGroup]
127 if !ok { 127 if !ok {
128 return errOpNoSupport 128 return errNotImplemented
129 } 129 }
130 grp := netAddrToIP4(group) 130 grp := netAddrToIP4(group)
131 if grp == nil { 131 if grp == nil {
@@ -146,7 +146,7 @@ func (c *dgramOpt) JoinSourceSpecificGroup(ifi *net.Interface, group, source net
146 } 146 }
147 so, ok := sockOpts[ssoJoinSourceGroup] 147 so, ok := sockOpts[ssoJoinSourceGroup]
148 if !ok { 148 if !ok {
149 return errOpNoSupport 149 return errNotImplemented
150 } 150 }
151 grp := netAddrToIP4(group) 151 grp := netAddrToIP4(group)
152 if grp == nil { 152 if grp == nil {
@@ -167,7 +167,7 @@ func (c *dgramOpt) LeaveSourceSpecificGroup(ifi *net.Interface, group, source ne
167 } 167 }
168 so, ok := sockOpts[ssoLeaveSourceGroup] 168 so, ok := sockOpts[ssoLeaveSourceGroup]
169 if !ok { 169 if !ok {
170 return errOpNoSupport 170 return errNotImplemented
171 } 171 }
172 grp := netAddrToIP4(group) 172 grp := netAddrToIP4(group)
173 if grp == nil { 173 if grp == nil {
@@ -189,7 +189,7 @@ func (c *dgramOpt) ExcludeSourceSpecificGroup(ifi *net.Interface, group, source
189 } 189 }
190 so, ok := sockOpts[ssoBlockSourceGroup] 190 so, ok := sockOpts[ssoBlockSourceGroup]
191 if !ok { 191 if !ok {
192 return errOpNoSupport 192 return errNotImplemented
193 } 193 }
194 grp := netAddrToIP4(group) 194 grp := netAddrToIP4(group)
195 if grp == nil { 195 if grp == nil {
@@ -210,7 +210,7 @@ func (c *dgramOpt) IncludeSourceSpecificGroup(ifi *net.Interface, group, source
210 } 210 }
211 so, ok := sockOpts[ssoUnblockSourceGroup] 211 so, ok := sockOpts[ssoUnblockSourceGroup]
212 if !ok { 212 if !ok {
213 return errOpNoSupport 213 return errNotImplemented
214 } 214 }
215 grp := netAddrToIP4(group) 215 grp := netAddrToIP4(group)
216 if grp == nil { 216 if grp == nil {
@@ -231,7 +231,7 @@ func (c *dgramOpt) ICMPFilter() (*ICMPFilter, error) {
231 } 231 }
232 so, ok := sockOpts[ssoICMPFilter] 232 so, ok := sockOpts[ssoICMPFilter]
233 if !ok { 233 if !ok {
234 return nil, errOpNoSupport 234 return nil, errNotImplemented
235 } 235 }
236 return so.getICMPFilter(c.Conn) 236 return so.getICMPFilter(c.Conn)
237} 237}
@@ -244,7 +244,7 @@ func (c *dgramOpt) SetICMPFilter(f *ICMPFilter) error {
244 } 244 }
245 so, ok := sockOpts[ssoICMPFilter] 245 so, ok := sockOpts[ssoICMPFilter]
246 if !ok { 246 if !ok {
247 return errOpNoSupport 247 return errNotImplemented
248 } 248 }
249 return so.setICMPFilter(c.Conn, f) 249 return so.setICMPFilter(c.Conn, f)
250} 250}
@@ -258,7 +258,7 @@ func (c *dgramOpt) SetBPF(filter []bpf.RawInstruction) error {
258 } 258 }
259 so, ok := sockOpts[ssoAttachFilter] 259 so, ok := sockOpts[ssoAttachFilter]
260 if !ok { 260 if !ok {
261 return errOpNoSupport 261 return errNotImplemented
262 } 262 }
263 return so.setBPF(c.Conn, filter) 263 return so.setBPF(c.Conn, filter)
264} 264}
diff --git a/vendor/golang.org/x/net/ipv4/doc.go b/vendor/golang.org/x/net/ipv4/doc.go
index 863d55b..c324f29 100644
--- a/vendor/golang.org/x/net/ipv4/doc.go
+++ b/vendor/golang.org/x/net/ipv4/doc.go
@@ -209,7 +209,7 @@
209// LeaveSourceSpecificGroup for the operation known as "include" mode, 209// LeaveSourceSpecificGroup for the operation known as "include" mode,
210// 210//
211// ssmgroup := net.UDPAddr{IP: net.IPv4(232, 7, 8, 9)} 211// ssmgroup := net.UDPAddr{IP: net.IPv4(232, 7, 8, 9)}
212// ssmsource := net.UDPAddr{IP: net.IPv4(192, 168, 0, 1)}) 212// ssmsource := net.UDPAddr{IP: net.IPv4(192, 168, 0, 1)}
213// if err := p.JoinSourceSpecificGroup(en0, &ssmgroup, &ssmsource); err != nil { 213// if err := p.JoinSourceSpecificGroup(en0, &ssmgroup, &ssmsource); err != nil {
214// // error handling 214// // error handling
215// } 215// }
diff --git a/vendor/golang.org/x/net/ipv4/endpoint.go b/vendor/golang.org/x/net/ipv4/endpoint.go
index 5009463..4a6d7a8 100644
--- a/vendor/golang.org/x/net/ipv4/endpoint.go
+++ b/vendor/golang.org/x/net/ipv4/endpoint.go
@@ -177,7 +177,7 @@ func NewRawConn(c net.PacketConn) (*RawConn, error) {
177 } 177 }
178 so, ok := sockOpts[ssoHeaderPrepend] 178 so, ok := sockOpts[ssoHeaderPrepend]
179 if !ok { 179 if !ok {
180 return nil, errOpNoSupport 180 return nil, errNotImplemented
181 } 181 }
182 if err := so.SetInt(r.dgramOpt.Conn, boolint(true)); err != nil { 182 if err := so.SetInt(r.dgramOpt.Conn, boolint(true)); err != nil {
183 return nil, err 183 return nil, err
diff --git a/vendor/golang.org/x/net/ipv4/genericopt.go b/vendor/golang.org/x/net/ipv4/genericopt.go
index 587ae4a..51c1237 100644
--- a/vendor/golang.org/x/net/ipv4/genericopt.go
+++ b/vendor/golang.org/x/net/ipv4/genericopt.go
@@ -11,7 +11,7 @@ func (c *genericOpt) TOS() (int, error) {
11 } 11 }
12 so, ok := sockOpts[ssoTOS] 12 so, ok := sockOpts[ssoTOS]
13 if !ok { 13 if !ok {
14 return 0, errOpNoSupport 14 return 0, errNotImplemented
15 } 15 }
16 return so.GetInt(c.Conn) 16 return so.GetInt(c.Conn)
17} 17}
@@ -24,7 +24,7 @@ func (c *genericOpt) SetTOS(tos int) error {
24 } 24 }
25 so, ok := sockOpts[ssoTOS] 25 so, ok := sockOpts[ssoTOS]
26 if !ok { 26 if !ok {
27 return errOpNoSupport 27 return errNotImplemented
28 } 28 }
29 return so.SetInt(c.Conn, tos) 29 return so.SetInt(c.Conn, tos)
30} 30}
@@ -36,7 +36,7 @@ func (c *genericOpt) TTL() (int, error) {
36 } 36 }
37 so, ok := sockOpts[ssoTTL] 37 so, ok := sockOpts[ssoTTL]
38 if !ok { 38 if !ok {
39 return 0, errOpNoSupport 39 return 0, errNotImplemented
40 } 40 }
41 return so.GetInt(c.Conn) 41 return so.GetInt(c.Conn)
42} 42}
@@ -49,7 +49,7 @@ func (c *genericOpt) SetTTL(ttl int) error {
49 } 49 }
50 so, ok := sockOpts[ssoTTL] 50 so, ok := sockOpts[ssoTTL]
51 if !ok { 51 if !ok {
52 return errOpNoSupport 52 return errNotImplemented
53 } 53 }
54 return so.SetInt(c.Conn, ttl) 54 return so.SetInt(c.Conn, ttl)
55} 55}
diff --git a/vendor/golang.org/x/net/ipv4/header.go b/vendor/golang.org/x/net/ipv4/header.go
index a8c8f7a..701bd4b 100644
--- a/vendor/golang.org/x/net/ipv4/header.go
+++ b/vendor/golang.org/x/net/ipv4/header.go
@@ -57,7 +57,7 @@ func (h *Header) String() string {
57// This may differ from the wire format, depending on the system. 57// This may differ from the wire format, depending on the system.
58func (h *Header) Marshal() ([]byte, error) { 58func (h *Header) Marshal() ([]byte, error) {
59 if h == nil { 59 if h == nil {
60 return nil, errInvalidConn 60 return nil, errNilHeader
61 } 61 }
62 if h.Len < HeaderLen { 62 if h.Len < HeaderLen {
63 return nil, errHeaderTooShort 63 return nil, errHeaderTooShort
@@ -107,12 +107,15 @@ func (h *Header) Marshal() ([]byte, error) {
107// local system. 107// local system.
108// This may differ from the wire format, depending on the system. 108// This may differ from the wire format, depending on the system.
109func (h *Header) Parse(b []byte) error { 109func (h *Header) Parse(b []byte) error {
110 if h == nil || len(b) < HeaderLen { 110 if h == nil || b == nil {
111 return errNilHeader
112 }
113 if len(b) < HeaderLen {
111 return errHeaderTooShort 114 return errHeaderTooShort
112 } 115 }
113 hdrlen := int(b[0]&0x0f) << 2 116 hdrlen := int(b[0]&0x0f) << 2
114 if hdrlen > len(b) { 117 if len(b) < hdrlen {
115 return errBufferTooShort 118 return errExtHeaderTooShort
116 } 119 }
117 h.Version = int(b[0] >> 4) 120 h.Version = int(b[0] >> 4)
118 h.Len = hdrlen 121 h.Len = hdrlen
diff --git a/vendor/golang.org/x/net/ipv4/helper.go b/vendor/golang.org/x/net/ipv4/helper.go
index 8d8ff98..a4457d6 100644
--- a/vendor/golang.org/x/net/ipv4/helper.go
+++ b/vendor/golang.org/x/net/ipv4/helper.go
@@ -7,23 +7,38 @@ package ipv4
7import ( 7import (
8 "errors" 8 "errors"
9 "net" 9 "net"
10 "runtime"
11
12 "golang.org/x/net/internal/socket"
10) 13)
11 14
12var ( 15var (
13 errInvalidConn = errors.New("invalid connection") 16 errInvalidConn = errors.New("invalid connection")
14 errMissingAddress = errors.New("missing address") 17 errMissingAddress = errors.New("missing address")
15 errMissingHeader = errors.New("missing header") 18 errMissingHeader = errors.New("missing header")
19 errNilHeader = errors.New("nil header")
16 errHeaderTooShort = errors.New("header too short") 20 errHeaderTooShort = errors.New("header too short")
17 errBufferTooShort = errors.New("buffer too short") 21 errExtHeaderTooShort = errors.New("extension header too short")
18 errInvalidConnType = errors.New("invalid conn type") 22 errInvalidConnType = errors.New("invalid conn type")
19 errOpNoSupport = errors.New("operation not supported")
20 errNoSuchInterface = errors.New("no such interface") 23 errNoSuchInterface = errors.New("no such interface")
21 errNoSuchMulticastInterface = errors.New("no such multicast interface") 24 errNoSuchMulticastInterface = errors.New("no such multicast interface")
25 errNotImplemented = errors.New("not implemented on " + runtime.GOOS + "/" + runtime.GOARCH)
22 26
23 // See http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html. 27 // See http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html.
24 freebsdVersion uint32 28 freebsdVersion uint32
29 compatFreeBSD32 bool // 386 emulation on amd64
25) 30)
26 31
32// See golang.org/issue/30899.
33func adjustFreeBSD32(m *socket.Message) {
34 if freebsdVersion >= 1103000 {
35 l := (m.NN + 4 - 1) &^ (4 - 1)
36 if m.NN < l && l <= len(m.OOB) {
37 m.NN = l
38 }
39 }
40}
41
27func boolint(b bool) int { 42func boolint(b bool) int {
28 if b { 43 if b {
29 return 1 44 return 1
diff --git a/vendor/golang.org/x/net/ipv4/packet.go b/vendor/golang.org/x/net/ipv4/packet.go
index 966bb77..7d784e0 100644
--- a/vendor/golang.org/x/net/ipv4/packet.go
+++ b/vendor/golang.org/x/net/ipv4/packet.go
@@ -29,7 +29,35 @@ func (c *packetHandler) ReadFrom(b []byte) (h *Header, p []byte, cm *ControlMess
29 if !c.ok() { 29 if !c.ok() {
30 return nil, nil, nil, errInvalidConn 30 return nil, nil, nil, errInvalidConn
31 } 31 }
32 return c.readFrom(b) 32 c.rawOpt.RLock()
33 m := socket.Message{
34 Buffers: [][]byte{b},
35 OOB: NewControlMessage(c.rawOpt.cflags),
36 }
37 c.rawOpt.RUnlock()
38 if err := c.RecvMsg(&m, 0); err != nil {
39 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
40 }
41 var hs []byte
42 if hs, p, err = slicePacket(b[:m.N]); err != nil {
43 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
44 }
45 if h, err = ParseHeader(hs); err != nil {
46 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
47 }
48 if m.NN > 0 {
49 if compatFreeBSD32 {
50 adjustFreeBSD32(&m)
51 }
52 cm = new(ControlMessage)
53 if err := cm.Parse(m.OOB[:m.NN]); err != nil {
54 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
55 }
56 }
57 if src, ok := m.Addr.(*net.IPAddr); ok && cm != nil {
58 cm.Src = src.IP
59 }
60 return
33} 61}
34 62
35func slicePacket(b []byte) (h, p []byte, err error) { 63func slicePacket(b []byte) (h, p []byte, err error) {
@@ -64,5 +92,26 @@ func (c *packetHandler) WriteTo(h *Header, p []byte, cm *ControlMessage) error {
64 if !c.ok() { 92 if !c.ok() {
65 return errInvalidConn 93 return errInvalidConn
66 } 94 }
67 return c.writeTo(h, p, cm) 95 m := socket.Message{
96 OOB: cm.Marshal(),
97 }
98 wh, err := h.Marshal()
99 if err != nil {
100 return err
101 }
102 m.Buffers = [][]byte{wh, p}
103 dst := new(net.IPAddr)
104 if cm != nil {
105 if ip := cm.Dst.To4(); ip != nil {
106 dst.IP = ip
107 }
108 }
109 if dst.IP == nil {
110 dst.IP = h.Dst
111 }
112 m.Addr = dst
113 if err := c.SendMsg(&m, 0); err != nil {
114 return &net.OpError{Op: "write", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Addr: opAddr(dst), Err: err}
115 }
116 return nil
68} 117}
diff --git a/vendor/golang.org/x/net/ipv4/packet_go1_8.go b/vendor/golang.org/x/net/ipv4/packet_go1_8.go
deleted file mode 100644
index b47d186..0000000
--- a/vendor/golang.org/x/net/ipv4/packet_go1_8.go
+++ /dev/null
@@ -1,56 +0,0 @@
1// Copyright 2012 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 !go1.9
6
7package ipv4
8
9import "net"
10
11func (c *packetHandler) readFrom(b []byte) (h *Header, p []byte, cm *ControlMessage, err error) {
12 c.rawOpt.RLock()
13 oob := NewControlMessage(c.rawOpt.cflags)
14 c.rawOpt.RUnlock()
15 n, nn, _, src, err := c.ReadMsgIP(b, oob)
16 if err != nil {
17 return nil, nil, nil, err
18 }
19 var hs []byte
20 if hs, p, err = slicePacket(b[:n]); err != nil {
21 return nil, nil, nil, err
22 }
23 if h, err = ParseHeader(hs); err != nil {
24 return nil, nil, nil, err
25 }
26 if nn > 0 {
27 cm = new(ControlMessage)
28 if err := cm.Parse(oob[:nn]); err != nil {
29 return nil, nil, nil, err
30 }
31 }
32 if src != nil && cm != nil {
33 cm.Src = src.IP
34 }
35 return
36}
37
38func (c *packetHandler) writeTo(h *Header, p []byte, cm *ControlMessage) error {
39 oob := cm.Marshal()
40 wh, err := h.Marshal()
41 if err != nil {
42 return err
43 }
44 dst := new(net.IPAddr)
45 if cm != nil {
46 if ip := cm.Dst.To4(); ip != nil {
47 dst.IP = ip
48 }
49 }
50 if dst.IP == nil {
51 dst.IP = h.Dst
52 }
53 wh = append(wh, p...)
54 _, _, err = c.WriteMsgIP(wh, oob, dst)
55 return err
56}
diff --git a/vendor/golang.org/x/net/ipv4/packet_go1_9.go b/vendor/golang.org/x/net/ipv4/packet_go1_9.go
deleted file mode 100644
index 082c36d..0000000
--- a/vendor/golang.org/x/net/ipv4/packet_go1_9.go
+++ /dev/null
@@ -1,67 +0,0 @@
1// Copyright 2017 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 go1.9
6
7package ipv4
8
9import (
10 "net"
11
12 "golang.org/x/net/internal/socket"
13)
14
15func (c *packetHandler) readFrom(b []byte) (h *Header, p []byte, cm *ControlMessage, err error) {
16 c.rawOpt.RLock()
17 m := socket.Message{
18 Buffers: [][]byte{b},
19 OOB: NewControlMessage(c.rawOpt.cflags),
20 }
21 c.rawOpt.RUnlock()
22 if err := c.RecvMsg(&m, 0); err != nil {
23 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
24 }
25 var hs []byte
26 if hs, p, err = slicePacket(b[:m.N]); err != nil {
27 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
28 }
29 if h, err = ParseHeader(hs); err != nil {
30 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
31 }
32 if m.NN > 0 {
33 cm = new(ControlMessage)
34 if err := cm.Parse(m.OOB[:m.NN]); err != nil {
35 return nil, nil, nil, &net.OpError{Op: "read", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Err: err}
36 }
37 }
38 if src, ok := m.Addr.(*net.IPAddr); ok && cm != nil {
39 cm.Src = src.IP
40 }
41 return
42}
43
44func (c *packetHandler) writeTo(h *Header, p []byte, cm *ControlMessage) error {
45 m := socket.Message{
46 OOB: cm.Marshal(),
47 }
48 wh, err := h.Marshal()
49 if err != nil {
50 return err
51 }
52 m.Buffers = [][]byte{wh, p}
53 dst := new(net.IPAddr)
54 if cm != nil {
55 if ip := cm.Dst.To4(); ip != nil {
56 dst.IP = ip
57 }
58 }
59 if dst.IP == nil {
60 dst.IP = h.Dst
61 }
62 m.Addr = dst
63 if err := c.SendMsg(&m, 0); err != nil {
64 return &net.OpError{Op: "write", Net: c.IPConn.LocalAddr().Network(), Source: c.IPConn.LocalAddr(), Addr: opAddr(dst), Err: err}
65 }
66 return nil
67}
diff --git a/vendor/golang.org/x/net/ipv4/payload_cmsg.go b/vendor/golang.org/x/net/ipv4/payload_cmsg.go
index a7c892d..0693067 100644
--- a/vendor/golang.org/x/net/ipv4/payload_cmsg.go
+++ b/vendor/golang.org/x/net/ipv4/payload_cmsg.go
@@ -6,7 +6,11 @@
6 6
7package ipv4 7package ipv4
8 8
9import "net" 9import (
10 "net"
11
12 "golang.org/x/net/internal/socket"
13)
10 14
11// ReadFrom reads a payload of the received IPv4 datagram, from the 15// ReadFrom reads a payload of the received IPv4 datagram, from the
12// endpoint c, copying the payload into b. It returns the number of 16// endpoint c, copying the payload into b. It returns the number of
@@ -16,7 +20,45 @@ func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.
16 if !c.ok() { 20 if !c.ok() {
17 return 0, nil, nil, errInvalidConn 21 return 0, nil, nil, errInvalidConn
18 } 22 }
19 return c.readFrom(b) 23 c.rawOpt.RLock()
24 m := socket.Message{
25 OOB: NewControlMessage(c.rawOpt.cflags),
26 }
27 c.rawOpt.RUnlock()
28 switch c.PacketConn.(type) {
29 case *net.UDPConn:
30 m.Buffers = [][]byte{b}
31 if err := c.RecvMsg(&m, 0); err != nil {
32 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
33 }
34 case *net.IPConn:
35 h := make([]byte, HeaderLen)
36 m.Buffers = [][]byte{h, b}
37 if err := c.RecvMsg(&m, 0); err != nil {
38 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
39 }
40 hdrlen := int(h[0]&0x0f) << 2
41 if hdrlen > len(h) {
42 d := hdrlen - len(h)
43 copy(b, b[d:])
44 m.N -= d
45 } else {
46 m.N -= hdrlen
47 }
48 default:
49 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: errInvalidConnType}
50 }
51 if m.NN > 0 {
52 if compatFreeBSD32 {
53 adjustFreeBSD32(&m)
54 }
55 cm = new(ControlMessage)
56 if err := cm.Parse(m.OOB[:m.NN]); err != nil {
57 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
58 }
59 cm.Src = netAddrToIP4(m.Addr)
60 }
61 return m.N, cm, m.Addr, nil
20} 62}
21 63
22// WriteTo writes a payload of the IPv4 datagram, to the destination 64// WriteTo writes a payload of the IPv4 datagram, to the destination
@@ -29,5 +71,14 @@ func (c *payloadHandler) WriteTo(b []byte, cm *ControlMessage, dst net.Addr) (n
29 if !c.ok() { 71 if !c.ok() {
30 return 0, errInvalidConn 72 return 0, errInvalidConn
31 } 73 }
32 return c.writeTo(b, cm, dst) 74 m := socket.Message{
75 Buffers: [][]byte{b},
76 OOB: cm.Marshal(),
77 Addr: dst,
78 }
79 err = c.SendMsg(&m, 0)
80 if err != nil {
81 err = &net.OpError{Op: "write", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Addr: opAddr(dst), Err: err}
82 }
83 return m.N, err
33} 84}
diff --git a/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go b/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go
deleted file mode 100644
index 15a27b7..0000000
--- a/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go
+++ /dev/null
@@ -1,59 +0,0 @@
1// Copyright 2012 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 !go1.9
6// +build darwin dragonfly freebsd linux netbsd openbsd solaris
7
8package ipv4
9
10import "net"
11
12func (c *payloadHandler) readFrom(b []byte) (n int, cm *ControlMessage, src net.Addr, err error) {
13 c.rawOpt.RLock()
14 oob := NewControlMessage(c.rawOpt.cflags)
15 c.rawOpt.RUnlock()
16 var nn int
17 switch c := c.PacketConn.(type) {
18 case *net.UDPConn:
19 if n, nn, _, src, err = c.ReadMsgUDP(b, oob); err != nil {
20 return 0, nil, nil, err
21 }
22 case *net.IPConn:
23 nb := make([]byte, maxHeaderLen+len(b))
24 if n, nn, _, src, err = c.ReadMsgIP(nb, oob); err != nil {
25 return 0, nil, nil, err
26 }
27 hdrlen := int(nb[0]&0x0f) << 2
28 copy(b, nb[hdrlen:])
29 n -= hdrlen
30 default:
31 return 0, nil, nil, &net.OpError{Op: "read", Net: c.LocalAddr().Network(), Source: c.LocalAddr(), Err: errInvalidConnType}
32 }
33 if nn > 0 {
34 cm = new(ControlMessage)
35 if err = cm.Parse(oob[:nn]); err != nil {
36 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
37 }
38 }
39 if cm != nil {
40 cm.Src = netAddrToIP4(src)
41 }
42 return
43}
44
45func (c *payloadHandler) writeTo(b []byte, cm *ControlMessage, dst net.Addr) (n int, err error) {
46 oob := cm.Marshal()
47 if dst == nil {
48 return 0, &net.OpError{Op: "write", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: errMissingAddress}
49 }
50 switch c := c.PacketConn.(type) {
51 case *net.UDPConn:
52 n, _, err = c.WriteMsgUDP(b, oob, dst.(*net.UDPAddr))
53 case *net.IPConn:
54 n, _, err = c.WriteMsgIP(b, oob, dst.(*net.IPAddr))
55 default:
56 return 0, &net.OpError{Op: "write", Net: c.LocalAddr().Network(), Source: c.LocalAddr(), Addr: opAddr(dst), Err: errInvalidConnType}
57 }
58 return
59}
diff --git a/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go b/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go
deleted file mode 100644
index aab3b22..0000000
--- a/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go
+++ /dev/null
@@ -1,67 +0,0 @@
1// Copyright 2017 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 go1.9
6// +build darwin dragonfly freebsd linux netbsd openbsd solaris
7
8package ipv4
9
10import (
11 "net"
12
13 "golang.org/x/net/internal/socket"
14)
15
16func (c *payloadHandler) readFrom(b []byte) (int, *ControlMessage, net.Addr, error) {
17 c.rawOpt.RLock()
18 m := socket.Message{
19 OOB: NewControlMessage(c.rawOpt.cflags),
20 }
21 c.rawOpt.RUnlock()
22 switch c.PacketConn.(type) {
23 case *net.UDPConn:
24 m.Buffers = [][]byte{b}
25 if err := c.RecvMsg(&m, 0); err != nil {
26 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
27 }
28 case *net.IPConn:
29 h := make([]byte, HeaderLen)
30 m.Buffers = [][]byte{h, b}
31 if err := c.RecvMsg(&m, 0); err != nil {
32 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
33 }
34 hdrlen := int(h[0]&0x0f) << 2
35 if hdrlen > len(h) {
36 d := hdrlen - len(h)
37 copy(b, b[d:])
38 m.N -= d
39 } else {
40 m.N -= hdrlen
41 }
42 default:
43 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: errInvalidConnType}
44 }
45 var cm *ControlMessage
46 if m.NN > 0 {
47 cm = new(ControlMessage)
48 if err := cm.Parse(m.OOB[:m.NN]); err != nil {
49 return 0, nil, nil, &net.OpError{Op: "read", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Err: err}
50 }
51 cm.Src = netAddrToIP4(m.Addr)
52 }
53 return m.N, cm, m.Addr, nil
54}
55
56func (c *payloadHandler) writeTo(b []byte, cm *ControlMessage, dst net.Addr) (int, error) {
57 m := socket.Message{
58 Buffers: [][]byte{b},
59 OOB: cm.Marshal(),
60 Addr: dst,
61 }
62 err := c.SendMsg(&m, 0)
63 if err != nil {
64 err = &net.OpError{Op: "write", Net: c.PacketConn.LocalAddr().Network(), Source: c.PacketConn.LocalAddr(), Addr: opAddr(dst), Err: err}
65 }
66 return m.N, err
67}
diff --git a/vendor/golang.org/x/net/ipv4/sockopt_posix.go b/vendor/golang.org/x/net/ipv4/sockopt_posix.go
index e96955b..79ac27f 100644
--- a/vendor/golang.org/x/net/ipv4/sockopt_posix.go
+++ b/vendor/golang.org/x/net/ipv4/sockopt_posix.go
@@ -39,7 +39,7 @@ func (so *sockOpt) getICMPFilter(c *socket.Conn) (*ICMPFilter, error) {
39 return nil, err 39 return nil, err
40 } 40 }
41 if n != sizeofICMPFilter { 41 if n != sizeofICMPFilter {
42 return nil, errOpNoSupport 42 return nil, errNotImplemented
43 } 43 }
44 return (*ICMPFilter)(unsafe.Pointer(&b[0])), nil 44 return (*ICMPFilter)(unsafe.Pointer(&b[0])), nil
45} 45}
@@ -58,7 +58,7 @@ func (so *sockOpt) setGroup(c *socket.Conn, ifi *net.Interface, grp net.IP) erro
58 case ssoTypeGroupReq: 58 case ssoTypeGroupReq:
59 return so.setGroupReq(c, ifi, grp) 59 return so.setGroupReq(c, ifi, grp)
60 default: 60 default:
61 return errOpNoSupport 61 return errNotImplemented
62 } 62 }
63} 63}
64 64
diff --git a/vendor/golang.org/x/net/ipv4/sockopt_stub.go b/vendor/golang.org/x/net/ipv4/sockopt_stub.go
index 23249b7..445d3c2 100644
--- a/vendor/golang.org/x/net/ipv4/sockopt_stub.go
+++ b/vendor/golang.org/x/net/ipv4/sockopt_stub.go
@@ -14,29 +14,29 @@ import (
14) 14)
15 15
16func (so *sockOpt) getMulticastInterface(c *socket.Conn) (*net.Interface, error) { 16func (so *sockOpt) getMulticastInterface(c *socket.Conn) (*net.Interface, error) {
17 return nil, errOpNoSupport 17 return nil, errNotImplemented
18} 18}
19 19
20func (so *sockOpt) setMulticastInterface(c *socket.Conn, ifi *net.Interface) error { 20func (so *sockOpt) setMulticastInterface(c *socket.Conn, ifi *net.Interface) error {
21 return errOpNoSupport 21 return errNotImplemented
22} 22}
23 23
24func (so *sockOpt) getICMPFilter(c *socket.Conn) (*ICMPFilter, error) { 24func (so *sockOpt) getICMPFilter(c *socket.Conn) (*ICMPFilter, error) {
25 return nil, errOpNoSupport 25 return nil, errNotImplemented
26} 26}
27 27
28func (so *sockOpt) setICMPFilter(c *socket.Conn, f *ICMPFilter) error { 28func (so *sockOpt) setICMPFilter(c *socket.Conn, f *ICMPFilter) error {
29 return errOpNoSupport 29 return errNotImplemented
30} 30}
31 31
32func (so *sockOpt) setGroup(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 32func (so *sockOpt) setGroup(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
33 return errOpNoSupport 33 return errNotImplemented
34} 34}
35 35
36func (so *sockOpt) setSourceGroup(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error { 36func (so *sockOpt) setSourceGroup(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error {
37 return errOpNoSupport 37 return errNotImplemented
38} 38}
39 39
40func (so *sockOpt) setBPF(c *socket.Conn, f []bpf.RawInstruction) error { 40func (so *sockOpt) setBPF(c *socket.Conn, f []bpf.RawInstruction) error {
41 return errOpNoSupport 41 return errNotImplemented
42} 42}
diff --git a/vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go b/vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go
index f391920..dc82806 100644
--- a/vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go
+++ b/vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go
@@ -13,13 +13,13 @@ import (
13) 13)
14 14
15func (so *sockOpt) setIPMreq(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 15func (so *sockOpt) setIPMreq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
16 return errOpNoSupport 16 return errNotImplemented
17} 17}
18 18
19func (so *sockOpt) getMulticastIf(c *socket.Conn) (*net.Interface, error) { 19func (so *sockOpt) getMulticastIf(c *socket.Conn) (*net.Interface, error) {
20 return nil, errOpNoSupport 20 return nil, errNotImplemented
21} 21}
22 22
23func (so *sockOpt) setMulticastIf(c *socket.Conn, ifi *net.Interface) error { 23func (so *sockOpt) setMulticastIf(c *socket.Conn, ifi *net.Interface) error {
24 return errOpNoSupport 24 return errNotImplemented
25} 25}
diff --git a/vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go b/vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go
index 0711d3d..48ef556 100644
--- a/vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go
+++ b/vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go
@@ -13,9 +13,9 @@ import (
13) 13)
14 14
15func (so *sockOpt) getIPMreqn(c *socket.Conn) (*net.Interface, error) { 15func (so *sockOpt) getIPMreqn(c *socket.Conn) (*net.Interface, error) {
16 return nil, errOpNoSupport 16 return nil, errNotImplemented
17} 17}
18 18
19func (so *sockOpt) setIPMreqn(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 19func (so *sockOpt) setIPMreqn(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
20 return errOpNoSupport 20 return errNotImplemented
21} 21}
diff --git a/vendor/golang.org/x/net/ipv4/sys_bpf_stub.go b/vendor/golang.org/x/net/ipv4/sys_bpf_stub.go
index 9a21320..5c98642 100644
--- a/vendor/golang.org/x/net/ipv4/sys_bpf_stub.go
+++ b/vendor/golang.org/x/net/ipv4/sys_bpf_stub.go
@@ -12,5 +12,5 @@ import (
12) 12)
13 13
14func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error { 14func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error {
15 return errOpNoSupport 15 return errNotImplemented
16} 16}
diff --git a/vendor/golang.org/x/net/ipv4/sys_freebsd.go b/vendor/golang.org/x/net/ipv4/sys_freebsd.go
index b800324..482873d 100644
--- a/vendor/golang.org/x/net/ipv4/sys_freebsd.go
+++ b/vendor/golang.org/x/net/ipv4/sys_freebsd.go
@@ -50,7 +50,7 @@ func init() {
50 archs, _ := syscall.Sysctl("kern.supported_archs") 50 archs, _ := syscall.Sysctl("kern.supported_archs")
51 for _, s := range strings.Fields(archs) { 51 for _, s := range strings.Fields(archs) {
52 if s == "amd64" { 52 if s == "amd64" {
53 freebsd32o64 = true 53 compatFreeBSD32 = true
54 break 54 break
55 } 55 }
56 } 56 }
diff --git a/vendor/golang.org/x/net/ipv4/sys_ssmreq.go b/vendor/golang.org/x/net/ipv4/sys_ssmreq.go
index ae5704e..eeced7f 100644
--- a/vendor/golang.org/x/net/ipv4/sys_ssmreq.go
+++ b/vendor/golang.org/x/net/ipv4/sys_ssmreq.go
@@ -13,8 +13,6 @@ import (
13 "golang.org/x/net/internal/socket" 13 "golang.org/x/net/internal/socket"
14) 14)
15 15
16var freebsd32o64 bool
17
18func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 16func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
19 var gr groupReq 17 var gr groupReq
20 if ifi != nil { 18 if ifi != nil {
@@ -22,7 +20,7 @@ func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) e
22 } 20 }
23 gr.setGroup(grp) 21 gr.setGroup(grp)
24 var b []byte 22 var b []byte
25 if freebsd32o64 { 23 if compatFreeBSD32 {
26 var d [sizeofGroupReq + 4]byte 24 var d [sizeofGroupReq + 4]byte
27 s := (*[sizeofGroupReq]byte)(unsafe.Pointer(&gr)) 25 s := (*[sizeofGroupReq]byte)(unsafe.Pointer(&gr))
28 copy(d[:4], s[:4]) 26 copy(d[:4], s[:4])
@@ -41,7 +39,7 @@ func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, sr
41 } 39 }
42 gsr.setSourceGroup(grp, src) 40 gsr.setSourceGroup(grp, src)
43 var b []byte 41 var b []byte
44 if freebsd32o64 { 42 if compatFreeBSD32 {
45 var d [sizeofGroupSourceReq + 4]byte 43 var d [sizeofGroupSourceReq + 4]byte
46 s := (*[sizeofGroupSourceReq]byte)(unsafe.Pointer(&gsr)) 44 s := (*[sizeofGroupSourceReq]byte)(unsafe.Pointer(&gsr))
47 copy(d[:4], s[:4]) 45 copy(d[:4], s[:4])
diff --git a/vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go b/vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go
index e6b7623..c092167 100644
--- a/vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go
+++ b/vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go
@@ -13,9 +13,9 @@ import (
13) 13)
14 14
15func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 15func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
16 return errOpNoSupport 16 return errNotImplemented
17} 17}
18 18
19func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error { 19func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error {
20 return errOpNoSupport 20 return errNotImplemented
21} 21}
diff --git a/vendor/golang.org/x/sys/unix/README.md b/vendor/golang.org/x/sys/unix/README.md
index 2bf415f..eb2f78a 100644
--- a/vendor/golang.org/x/sys/unix/README.md
+++ b/vendor/golang.org/x/sys/unix/README.md
@@ -32,7 +32,7 @@ To build the files for your current OS and architecture, make sure GOOS and
32GOARCH are set correctly and run `mkall.sh`. This will generate the files for 32GOARCH are set correctly and run `mkall.sh`. This will generate the files for
33your specific system. Running `mkall.sh -n` shows the commands that will be run. 33your specific system. Running `mkall.sh -n` shows the commands that will be run.
34 34
35Requirements: bash, perl, go 35Requirements: bash, go
36 36
37### New Build System (currently for `GOOS == "linux"`) 37### New Build System (currently for `GOOS == "linux"`)
38 38
@@ -52,14 +52,14 @@ system and have your GOOS and GOARCH set accordingly. Running `mkall.sh` will
52then generate all of the files for all of the GOOS/GOARCH pairs in the new build 52then generate all of the files for all of the GOOS/GOARCH pairs in the new build
53system. Running `mkall.sh -n` shows the commands that will be run. 53system. Running `mkall.sh -n` shows the commands that will be run.
54 54
55Requirements: bash, perl, go, docker 55Requirements: bash, go, docker
56 56
57## Component files 57## Component files
58 58
59This section describes the various files used in the code generation process. 59This section describes the various files used in the code generation process.
60It also contains instructions on how to modify these files to add a new 60It also contains instructions on how to modify these files to add a new
61architecture/OS or to add additional syscalls, types, or constants. Note that 61architecture/OS or to add additional syscalls, types, or constants. Note that
62if you are using the new build system, the scripts cannot be called normally. 62if you are using the new build system, the scripts/programs cannot be called normally.
63They must be called from within the docker container. 63They must be called from within the docker container.
64 64
65### asm files 65### asm files
@@ -81,8 +81,8 @@ each GOOS/GOARCH pair.
81 81
82### mksysnum 82### mksysnum
83 83
84Mksysnum is a script located at `${GOOS}/mksysnum.pl` (or `mksysnum_${GOOS}.pl` 84Mksysnum is a Go program located at `${GOOS}/mksysnum.go` (or `mksysnum_${GOOS}.go`
85for the old system). This script takes in a list of header files containing the 85for the old system). This program takes in a list of header files containing the
86syscall number declarations and parses them to produce the corresponding list of 86syscall number declarations and parses them to produce the corresponding list of
87Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated 87Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated
88constants. 88constants.
@@ -92,14 +92,14 @@ new installation of the target OS (or updating the source checkouts for the
92new build system). However, depending on the OS, you make need to update the 92new build system). However, depending on the OS, you make need to update the
93parsing in mksysnum. 93parsing in mksysnum.
94 94
95### mksyscall.pl 95### mksyscall.go
96 96
97The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are 97The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are
98hand-written Go files which implement system calls (for unix, the specific OS, 98hand-written Go files which implement system calls (for unix, the specific OS,
99or the specific OS/Architecture pair respectively) that need special handling 99or the specific OS/Architecture pair respectively) that need special handling
100and list `//sys` comments giving prototypes for ones that can be generated. 100and list `//sys` comments giving prototypes for ones that can be generated.
101 101
102The mksyscall.pl script takes the `//sys` and `//sysnb` comments and converts 102The mksyscall.go program takes the `//sys` and `//sysnb` comments and converts
103them into syscalls. This requires the name of the prototype in the comment to 103them into syscalls. This requires the name of the prototype in the comment to
104match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function 104match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function
105prototype can be exported (capitalized) or not. 105prototype can be exported (capitalized) or not.
@@ -160,7 +160,7 @@ signal numbers, and constants. Generated by `mkerrors.sh` (see above).
160### `zsyscall_${GOOS}_${GOARCH}.go` 160### `zsyscall_${GOOS}_${GOARCH}.go`
161 161
162A file containing all the generated syscalls for a specific GOOS and GOARCH. 162A file containing all the generated syscalls for a specific GOOS and GOARCH.
163Generated by `mksyscall.pl` (see above). 163Generated by `mksyscall.go` (see above).
164 164
165### `zsysnum_${GOOS}_${GOARCH}.go` 165### `zsysnum_${GOOS}_${GOARCH}.go`
166 166
diff --git a/vendor/golang.org/x/sys/unix/mkall.sh b/vendor/golang.org/x/sys/unix/mkall.sh
index d74115a..1e5c59d 100644
--- a/vendor/golang.org/x/sys/unix/mkall.sh
+++ b/vendor/golang.org/x/sys/unix/mkall.sh
@@ -170,7 +170,7 @@ openbsd_arm)
170 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 170 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
171 ;; 171 ;;
172solaris_amd64) 172solaris_amd64)
173 mksyscall="./mksyscall_solaris.pl" 173 mksyscall="go run mksyscall_solaris.go"
174 mkerrors="$mkerrors -m64" 174 mkerrors="$mkerrors -m64"
175 mksysnum= 175 mksysnum=
176 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 176 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
@@ -207,8 +207,6 @@ esac
207 esac 207 esac
208 if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi 208 if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
209 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi 209 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
210 if [ -n "$mktypes" ]; then 210 if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
211 echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go";
212 if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi 211 if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi
213 fi
214) | $run 212) | $run
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh
index 6a23484..cfb61ba 100644
--- a/vendor/golang.org/x/sys/unix/mkerrors.sh
+++ b/vendor/golang.org/x/sys/unix/mkerrors.sh
@@ -192,6 +192,7 @@ struct ltchars {
192#include <linux/if_packet.h> 192#include <linux/if_packet.h>
193#include <linux/if_addr.h> 193#include <linux/if_addr.h>
194#include <linux/falloc.h> 194#include <linux/falloc.h>
195#include <linux/fanotify.h>
195#include <linux/filter.h> 196#include <linux/filter.h>
196#include <linux/fs.h> 197#include <linux/fs.h>
197#include <linux/kexec.h> 198#include <linux/kexec.h>
@@ -501,6 +502,7 @@ ccflags="$@"
501 $2 !~ "WMESGLEN" && 502 $2 !~ "WMESGLEN" &&
502 $2 ~ /^W[A-Z0-9]+$/ || 503 $2 ~ /^W[A-Z0-9]+$/ ||
503 $2 ~/^PPPIOC/ || 504 $2 ~/^PPPIOC/ ||
505 $2 ~ /^FAN_|FANOTIFY_/ ||
504 $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)} 506 $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
505 $2 ~ /^__WCOREFLAG$/ {next} 507 $2 ~ /^__WCOREFLAG$/ {next}
506 $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)} 508 $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
diff --git a/vendor/golang.org/x/sys/unix/mksyscall.go b/vendor/golang.org/x/sys/unix/mksyscall.go
index e06e425..bed93d4 100644
--- a/vendor/golang.org/x/sys/unix/mksyscall.go
+++ b/vendor/golang.org/x/sys/unix/mksyscall.go
@@ -228,7 +228,7 @@ func main() {
228 } else { 228 } else {
229 args = append(args, fmt.Sprintf("uintptr(%s)", p.Name)) 229 args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
230 } 230 }
231 } else if p.Type == "int64" && endianness != "" { 231 } else if (p.Type == "int64" || p.Type == "uint64") && endianness != "" {
232 if len(args)%2 == 1 && *arm { 232 if len(args)%2 == 1 && *arm {
233 // arm abi specifies 64-bit argument uses 233 // arm abi specifies 64-bit argument uses
234 // (even, odd) pair 234 // (even, odd) pair
diff --git a/vendor/golang.org/x/sys/unix/mksyscall_solaris.go b/vendor/golang.org/x/sys/unix/mksyscall_solaris.go
new file mode 100644
index 0000000..3d86473
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/mksyscall_solaris.go
@@ -0,0 +1,335 @@
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 ignore
6
7/*
8 This program reads a file containing function prototypes
9 (like syscall_solaris.go) and generates system call bodies.
10 The prototypes are marked by lines beginning with "//sys"
11 and read like func declarations if //sys is replaced by func, but:
12 * The parameter lists must give a name for each argument.
13 This includes return parameters.
14 * The parameter lists must give a type for each argument:
15 the (x, y, z int) shorthand is not allowed.
16 * If the return parameter is an error number, it must be named err.
17 * If go func name needs to be different than its libc name,
18 * or the function is not in libc, name could be specified
19 * at the end, after "=" sign, like
20 //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
21*/
22
23package main
24
25import (
26 "bufio"
27 "flag"
28 "fmt"
29 "os"
30 "regexp"
31 "strings"
32)
33
34var (
35 b32 = flag.Bool("b32", false, "32bit big-endian")
36 l32 = flag.Bool("l32", false, "32bit little-endian")
37 tags = flag.String("tags", "", "build tags")
38)
39
40// cmdLine returns this programs's commandline arguments
41func cmdLine() string {
42 return "go run mksyscall_solaris.go " + strings.Join(os.Args[1:], " ")
43}
44
45// buildTags returns build tags
46func buildTags() string {
47 return *tags
48}
49
50// Param is function parameter
51type Param struct {
52 Name string
53 Type string
54}
55
56// usage prints the program usage
57func usage() {
58 fmt.Fprintf(os.Stderr, "usage: go run mksyscall_solaris.go [-b32 | -l32] [-tags x,y] [file ...]\n")
59 os.Exit(1)
60}
61
62// parseParamList parses parameter list and returns a slice of parameters
63func parseParamList(list string) []string {
64 list = strings.TrimSpace(list)
65 if list == "" {
66 return []string{}
67 }
68 return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
69}
70
71// parseParam splits a parameter into name and type
72func parseParam(p string) Param {
73 ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
74 if ps == nil {
75 fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
76 os.Exit(1)
77 }
78 return Param{ps[1], ps[2]}
79}
80
81func main() {
82 flag.Usage = usage
83 flag.Parse()
84 if len(flag.Args()) <= 0 {
85 fmt.Fprintf(os.Stderr, "no files to parse provided\n")
86 usage()
87 }
88
89 endianness := ""
90 if *b32 {
91 endianness = "big-endian"
92 } else if *l32 {
93 endianness = "little-endian"
94 }
95
96 pack := ""
97 text := ""
98 dynimports := ""
99 linknames := ""
100 var vars []string
101 for _, path := range flag.Args() {
102 file, err := os.Open(path)
103 if err != nil {
104 fmt.Fprintf(os.Stderr, err.Error())
105 os.Exit(1)
106 }
107 s := bufio.NewScanner(file)
108 for s.Scan() {
109 t := s.Text()
110 t = strings.TrimSpace(t)
111 t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
112 if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
113 pack = p[1]
114 }
115 nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
116 if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
117 continue
118 }
119
120 // Line must be of the form
121 // func Open(path string, mode int, perm int) (fd int, err error)
122 // Split into name, in params, out params.
123 f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
124 if f == nil {
125 fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
126 os.Exit(1)
127 }
128 funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
129
130 // Split argument lists on comma.
131 in := parseParamList(inps)
132 out := parseParamList(outps)
133
134 inps = strings.Join(in, ", ")
135 outps = strings.Join(out, ", ")
136
137 // Try in vain to keep people from editing this file.
138 // The theory is that they jump into the middle of the file
139 // without reading the header.
140 text += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
141
142 // So file name.
143 if modname == "" {
144 modname = "libc"
145 }
146
147 // System call name.
148 if sysname == "" {
149 sysname = funct
150 }
151
152 // System call pointer variable name.
153 sysvarname := fmt.Sprintf("proc%s", sysname)
154
155 strconvfunc := "BytePtrFromString"
156 strconvtype := "*byte"
157
158 sysname = strings.ToLower(sysname) // All libc functions are lowercase.
159
160 // Runtime import of function to allow cross-platform builds.
161 dynimports += fmt.Sprintf("//go:cgo_import_dynamic libc_%s %s \"%s.so\"\n", sysname, sysname, modname)
162 // Link symbol to proc address variable.
163 linknames += fmt.Sprintf("//go:linkname %s libc_%s\n", sysvarname, sysname)
164 // Library proc address variable.
165 vars = append(vars, sysvarname)
166
167 // Go function header.
168 outlist := strings.Join(out, ", ")
169 if outlist != "" {
170 outlist = fmt.Sprintf(" (%s)", outlist)
171 }
172 if text != "" {
173 text += "\n"
174 }
175 text += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outlist)
176
177 // Check if err return available
178 errvar := ""
179 for _, param := range out {
180 p := parseParam(param)
181 if p.Type == "error" {
182 errvar = p.Name
183 continue
184 }
185 }
186
187 // Prepare arguments to Syscall.
188 var args []string
189 n := 0
190 for _, param := range in {
191 p := parseParam(param)
192 if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
193 args = append(args, "uintptr(unsafe.Pointer("+p.Name+"))")
194 } else if p.Type == "string" && errvar != "" {
195 text += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
196 text += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
197 text += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
198 args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
199 n++
200 } else if p.Type == "string" {
201 fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
202 text += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
203 text += fmt.Sprintf("\t_p%d, _ = %s(%s)\n", n, strconvfunc, p.Name)
204 args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
205 n++
206 } else if s := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); s != nil {
207 // Convert slice into pointer, length.
208 // Have to be careful not to take address of &a[0] if len == 0:
209 // pass nil in that case.
210 text += fmt.Sprintf("\tvar _p%d *%s\n", n, s[1])
211 text += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
212 args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n), fmt.Sprintf("uintptr(len(%s))", p.Name))
213 n++
214 } else if p.Type == "int64" && endianness != "" {
215 if endianness == "big-endian" {
216 args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
217 } else {
218 args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
219 }
220 } else if p.Type == "bool" {
221 text += fmt.Sprintf("\tvar _p%d uint32\n", n)
222 text += fmt.Sprintf("\tif %s {\n\t\t_p%d = 1\n\t} else {\n\t\t_p%d = 0\n\t}\n", p.Name, n, n)
223 args = append(args, fmt.Sprintf("uintptr(_p%d)", n))
224 n++
225 } else {
226 args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
227 }
228 }
229 nargs := len(args)
230
231 // Determine which form to use; pad args with zeros.
232 asm := "sysvicall6"
233 if nonblock != nil {
234 asm = "rawSysvicall6"
235 }
236 if len(args) <= 6 {
237 for len(args) < 6 {
238 args = append(args, "0")
239 }
240 } else {
241 fmt.Fprintf(os.Stderr, "%s: too many arguments to system call\n", path)
242 os.Exit(1)
243 }
244
245 // Actual call.
246 arglist := strings.Join(args, ", ")
247 call := fmt.Sprintf("%s(uintptr(unsafe.Pointer(&%s)), %d, %s)", asm, sysvarname, nargs, arglist)
248
249 // Assign return values.
250 body := ""
251 ret := []string{"_", "_", "_"}
252 doErrno := false
253 for i := 0; i < len(out); i++ {
254 p := parseParam(out[i])
255 reg := ""
256 if p.Name == "err" {
257 reg = "e1"
258 ret[2] = reg
259 doErrno = true
260 } else {
261 reg = fmt.Sprintf("r%d", i)
262 ret[i] = reg
263 }
264 if p.Type == "bool" {
265 reg = fmt.Sprintf("%d != 0", reg)
266 }
267 if p.Type == "int64" && endianness != "" {
268 // 64-bit number in r1:r0 or r0:r1.
269 if i+2 > len(out) {
270 fmt.Fprintf(os.Stderr, "%s: not enough registers for int64 return\n", path)
271 os.Exit(1)
272 }
273 if endianness == "big-endian" {
274 reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i, i+1)
275 } else {
276 reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i+1, i)
277 }
278 ret[i] = fmt.Sprintf("r%d", i)
279 ret[i+1] = fmt.Sprintf("r%d", i+1)
280 }
281 if reg != "e1" {
282 body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
283 }
284 }
285 if ret[0] == "_" && ret[1] == "_" && ret[2] == "_" {
286 text += fmt.Sprintf("\t%s\n", call)
287 } else {
288 text += fmt.Sprintf("\t%s, %s, %s := %s\n", ret[0], ret[1], ret[2], call)
289 }
290 text += body
291
292 if doErrno {
293 text += "\tif e1 != 0 {\n"
294 text += "\t\terr = e1\n"
295 text += "\t}\n"
296 }
297 text += "\treturn\n"
298 text += "}\n"
299 }
300 if err := s.Err(); err != nil {
301 fmt.Fprintf(os.Stderr, err.Error())
302 os.Exit(1)
303 }
304 file.Close()
305 }
306 imp := ""
307 if pack != "unix" {
308 imp = "import \"golang.org/x/sys/unix\"\n"
309
310 }
311 vardecls := "\t" + strings.Join(vars, ",\n\t")
312 vardecls += " syscallFunc"
313 fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, imp, dynimports, linknames, vardecls, text)
314}
315
316const srcTemplate = `// %s
317// Code generated by the command above; see README.md. DO NOT EDIT.
318
319// +build %s
320
321package %s
322
323import (
324 "syscall"
325 "unsafe"
326)
327%s
328%s
329%s
330var (
331%s
332)
333
334%s
335`
diff --git a/vendor/golang.org/x/sys/unix/mksyscall_solaris.pl b/vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
deleted file mode 100644
index a354df5..0000000
--- a/vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
+++ /dev/null
@@ -1,294 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6# This program reads a file containing function prototypes
7# (like syscall_solaris.go) and generates system call bodies.
8# The prototypes are marked by lines beginning with "//sys"
9# and read like func declarations if //sys is replaced by func, but:
10# * The parameter lists must give a name for each argument.
11# This includes return parameters.
12# * The parameter lists must give a type for each argument:
13# the (x, y, z int) shorthand is not allowed.
14# * If the return parameter is an error number, it must be named err.
15# * If go func name needs to be different than its libc name,
16# * or the function is not in libc, name could be specified
17# * at the end, after "=" sign, like
18# //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
19
20use strict;
21
22my $cmdline = "mksyscall_solaris.pl " . join(' ', @ARGV);
23my $errors = 0;
24my $_32bit = "";
25my $tags = ""; # build tags
26
27binmode STDOUT;
28
29if($ARGV[0] eq "-b32") {
30 $_32bit = "big-endian";
31 shift;
32} elsif($ARGV[0] eq "-l32") {
33 $_32bit = "little-endian";
34 shift;
35}
36if($ARGV[0] eq "-tags") {
37 shift;
38 $tags = $ARGV[0];
39 shift;
40}
41
42if($ARGV[0] =~ /^-/) {
43 print STDERR "usage: mksyscall_solaris.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
44 exit 1;
45}
46
47sub parseparamlist($) {
48 my ($list) = @_;
49 $list =~ s/^\s*//;
50 $list =~ s/\s*$//;
51 if($list eq "") {
52 return ();
53 }
54 return split(/\s*,\s*/, $list);
55}
56
57sub parseparam($) {
58 my ($p) = @_;
59 if($p !~ /^(\S*) (\S*)$/) {
60 print STDERR "$ARGV:$.: malformed parameter: $p\n";
61 $errors = 1;
62 return ("xx", "int");
63 }
64 return ($1, $2);
65}
66
67my $package = "";
68my $text = "";
69my $dynimports = "";
70my $linknames = "";
71my @vars = ();
72while(<>) {
73 chomp;
74 s/\s+/ /g;
75 s/^\s+//;
76 s/\s+$//;
77 $package = $1 if !$package && /^package (\S+)$/;
78 my $nonblock = /^\/\/sysnb /;
79 next if !/^\/\/sys / && !$nonblock;
80
81 # Line must be of the form
82 # func Open(path string, mode int, perm int) (fd int, err error)
83 # Split into name, in params, out params.
84 if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$/) {
85 print STDERR "$ARGV:$.: malformed //sys declaration\n";
86 $errors = 1;
87 next;
88 }
89 my ($nb, $func, $in, $out, $modname, $sysname) = ($1, $2, $3, $4, $5, $6);
90
91 # Split argument lists on comma.
92 my @in = parseparamlist($in);
93 my @out = parseparamlist($out);
94
95 # Try in vain to keep people from editing this file.
96 # The theory is that they jump into the middle of the file
97 # without reading the header.
98 $text .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
99
100 # So file name.
101 if($modname eq "") {
102 $modname = "libc";
103 }
104
105 # System call name.
106 if($sysname eq "") {
107 $sysname = "$func";
108 }
109
110 # System call pointer variable name.
111 my $sysvarname = "proc$sysname";
112
113 my $strconvfunc = "BytePtrFromString";
114 my $strconvtype = "*byte";
115
116 $sysname =~ y/A-Z/a-z/; # All libc functions are lowercase.
117
118 # Runtime import of function to allow cross-platform builds.
119 $dynimports .= "//go:cgo_import_dynamic libc_${sysname} ${sysname} \"$modname.so\"\n";
120 # Link symbol to proc address variable.
121 $linknames .= "//go:linkname ${sysvarname} libc_${sysname}\n";
122 # Library proc address variable.
123 push @vars, $sysvarname;
124
125 # Go function header.
126 $out = join(', ', @out);
127 if($out ne "") {
128 $out = " ($out)";
129 }
130 if($text ne "") {
131 $text .= "\n"
132 }
133 $text .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out;
134
135 # Check if err return available
136 my $errvar = "";
137 foreach my $p (@out) {
138 my ($name, $type) = parseparam($p);
139 if($type eq "error") {
140 $errvar = $name;
141 last;
142 }
143 }
144
145 # Prepare arguments to Syscall.
146 my @args = ();
147 my $n = 0;
148 foreach my $p (@in) {
149 my ($name, $type) = parseparam($p);
150 if($type =~ /^\*/) {
151 push @args, "uintptr(unsafe.Pointer($name))";
152 } elsif($type eq "string" && $errvar ne "") {
153 $text .= "\tvar _p$n $strconvtype\n";
154 $text .= "\t_p$n, $errvar = $strconvfunc($name)\n";
155 $text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
156 push @args, "uintptr(unsafe.Pointer(_p$n))";
157 $n++;
158 } elsif($type eq "string") {
159 print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
160 $text .= "\tvar _p$n $strconvtype\n";
161 $text .= "\t_p$n, _ = $strconvfunc($name)\n";
162 push @args, "uintptr(unsafe.Pointer(_p$n))";
163 $n++;
164 } elsif($type =~ /^\[\](.*)/) {
165 # Convert slice into pointer, length.
166 # Have to be careful not to take address of &a[0] if len == 0:
167 # pass nil in that case.
168 $text .= "\tvar _p$n *$1\n";
169 $text .= "\tif len($name) > 0 {\n\t\t_p$n = \&$name\[0]\n\t}\n";
170 push @args, "uintptr(unsafe.Pointer(_p$n))", "uintptr(len($name))";
171 $n++;
172 } elsif($type eq "int64" && $_32bit ne "") {
173 if($_32bit eq "big-endian") {
174 push @args, "uintptr($name >> 32)", "uintptr($name)";
175 } else {
176 push @args, "uintptr($name)", "uintptr($name >> 32)";
177 }
178 } elsif($type eq "bool") {
179 $text .= "\tvar _p$n uint32\n";
180 $text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
181 push @args, "uintptr(_p$n)";
182 $n++;
183 } else {
184 push @args, "uintptr($name)";
185 }
186 }
187 my $nargs = @args;
188
189 # Determine which form to use; pad args with zeros.
190 my $asm = "sysvicall6";
191 if ($nonblock) {
192 $asm = "rawSysvicall6";
193 }
194 if(@args <= 6) {
195 while(@args < 6) {
196 push @args, "0";
197 }
198 } else {
199 print STDERR "$ARGV:$.: too many arguments to system call\n";
200 }
201
202 # Actual call.
203 my $args = join(', ', @args);
204 my $call = "$asm(uintptr(unsafe.Pointer(&$sysvarname)), $nargs, $args)";
205
206 # Assign return values.
207 my $body = "";
208 my $failexpr = "";
209 my @ret = ("_", "_", "_");
210 my @pout= ();
211 my $do_errno = 0;
212 for(my $i=0; $i<@out; $i++) {
213 my $p = $out[$i];
214 my ($name, $type) = parseparam($p);
215 my $reg = "";
216 if($name eq "err") {
217 $reg = "e1";
218 $ret[2] = $reg;
219 $do_errno = 1;
220 } else {
221 $reg = sprintf("r%d", $i);
222 $ret[$i] = $reg;
223 }
224 if($type eq "bool") {
225 $reg = "$reg != 0";
226 }
227 if($type eq "int64" && $_32bit ne "") {
228 # 64-bit number in r1:r0 or r0:r1.
229 if($i+2 > @out) {
230 print STDERR "$ARGV:$.: not enough registers for int64 return\n";
231 }
232 if($_32bit eq "big-endian") {
233 $reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i, $i+1);
234 } else {
235 $reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i+1, $i);
236 }
237 $ret[$i] = sprintf("r%d", $i);
238 $ret[$i+1] = sprintf("r%d", $i+1);
239 }
240 if($reg ne "e1") {
241 $body .= "\t$name = $type($reg)\n";
242 }
243 }
244 if ($ret[0] eq "_" && $ret[1] eq "_" && $ret[2] eq "_") {
245 $text .= "\t$call\n";
246 } else {
247 $text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
248 }
249 $text .= $body;
250
251 if ($do_errno) {
252 $text .= "\tif e1 != 0 {\n";
253 $text .= "\t\terr = e1\n";
254 $text .= "\t}\n";
255 }
256 $text .= "\treturn\n";
257 $text .= "}\n";
258}
259
260if($errors) {
261 exit 1;
262}
263
264print <<EOF;
265// $cmdline
266// Code generated by the command above; see README.md. DO NOT EDIT.
267
268// +build $tags
269
270package $package
271
272import (
273 "syscall"
274 "unsafe"
275)
276EOF
277
278print "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
279
280my $vardecls = "\t" . join(",\n\t", @vars);
281$vardecls .= " syscallFunc";
282
283chomp($_=<<EOF);
284
285$dynimports
286$linknames
287var (
288$vardecls
289)
290
291$text
292EOF
293print $_;
294exit 0;
diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
index 5f9ae23..26e8b36 100644
--- a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
+++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
@@ -25,8 +25,8 @@ func cmsgAlignOf(salen int) int {
25 if SizeofPtr == 8 { 25 if SizeofPtr == 8 {
26 salign = 4 26 salign = 4
27 } 27 }
28 case "openbsd": 28 case "netbsd", "openbsd":
29 // OpenBSD armv7 requires 64-bit alignment. 29 // NetBSD and OpenBSD armv7 require 64-bit alignment.
30 if runtime.GOARCH == "arm" { 30 if runtime.GOARCH == "arm" {
31 salign = 8 31 salign = 8
32 } 32 }
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go
index a76826f..fd83d87 100644
--- a/vendor/golang.org/x/sys/unix/syscall_aix.go
+++ b/vendor/golang.org/x/sys/unix/syscall_aix.go
@@ -545,3 +545,5 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
545//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error) 545//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error)
546//sysnb Time(t *Time_t) (tt Time_t, err error) 546//sysnb Time(t *Time_t) (tt Time_t, err error)
547//sys Utime(path string, buf *Utimbuf) (err error) 547//sys Utime(path string, buf *Utimbuf) (err error)
548
549//sys Getsystemcfg(label int) (n uint64)
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go
index a2e3688..2120091 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go
@@ -144,6 +144,23 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
144 144
145//sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) 145//sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
146 146
147func SysctlClockinfo(name string) (*Clockinfo, error) {
148 mib, err := sysctlmib(name)
149 if err != nil {
150 return nil, err
151 }
152
153 n := uintptr(SizeofClockinfo)
154 var ci Clockinfo
155 if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
156 return nil, err
157 }
158 if n != SizeofClockinfo {
159 return nil, EIO
160 }
161 return &ci, nil
162}
163
147//sysnb pipe() (r int, w int, err error) 164//sysnb pipe() (r int, w int, err error)
148 165
149func Pipe(p []int) (err error) { 166func Pipe(p []int) (err error) {
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go
index a07ee49..7e429ab 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go
@@ -39,6 +39,20 @@ func Creat(path string, mode uint32) (fd int, err error) {
39 return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) 39 return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
40} 40}
41 41
42//sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error)
43//sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error)
44
45func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) {
46 if pathname == "" {
47 return fanotifyMark(fd, flags, mask, dirFd, nil)
48 }
49 p, err := BytePtrFromString(pathname)
50 if err != nil {
51 return err
52 }
53 return fanotifyMark(fd, flags, mask, dirFd, p)
54}
55
42//sys fchmodat(dirfd int, path string, mode uint32) (err error) 56//sys fchmodat(dirfd int, path string, mode uint32) (err error)
43 57
44func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { 58func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
@@ -990,10 +1004,50 @@ func GetsockoptString(fd, level, opt int) (string, error) {
990 return string(buf[:vallen-1]), nil 1004 return string(buf[:vallen-1]), nil
991} 1005}
992 1006
1007func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) {
1008 var value TpacketStats
1009 vallen := _Socklen(SizeofTpacketStats)
1010 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
1011 return &value, err
1012}
1013
1014func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) {
1015 var value TpacketStatsV3
1016 vallen := _Socklen(SizeofTpacketStatsV3)
1017 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
1018 return &value, err
1019}
1020
993func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { 1021func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
994 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) 1022 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
995} 1023}
996 1024
1025func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error {
1026 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
1027}
1028
1029// SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a
1030// socket to filter incoming packets. See 'man 7 socket' for usage information.
1031func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error {
1032 return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog))
1033}
1034
1035func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error {
1036 var p unsafe.Pointer
1037 if len(filter) > 0 {
1038 p = unsafe.Pointer(&filter[0])
1039 }
1040 return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter))
1041}
1042
1043func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error {
1044 return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
1045}
1046
1047func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {
1048 return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
1049}
1050
997// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) 1051// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
998 1052
999// KeyctlInt calls keyctl commands in which each argument is an int. 1053// KeyctlInt calls keyctl commands in which each argument is an int.
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
index cda3559..3a3c37b 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
@@ -19,12 +19,18 @@ func setTimeval(sec, usec int64) Timeval {
19 return Timeval{Sec: int32(sec), Usec: int32(usec)} 19 return Timeval{Sec: int32(sec), Usec: int32(usec)}
20} 20}
21 21
22//sysnb pipe(p *[2]_C_int) (err error)
23
22func Pipe(p []int) (err error) { 24func Pipe(p []int) (err error) {
23 if len(p) != 2 { 25 if len(p) != 2 {
24 return EINVAL 26 return EINVAL
25 } 27 }
26 var pp [2]_C_int 28 var pp [2]_C_int
29 // Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
27 err = pipe2(&pp, 0) 30 err = pipe2(&pp, 0)
31 if err == ENOSYS {
32 err = pipe(&pp)
33 }
28 p[0] = int(pp[0]) 34 p[0] = int(pp[0])
29 p[1] = int(pp[1]) 35 p[1] = int(pp[1])
30 return 36 return
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
index 6d56722..cb20b15 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
@@ -208,3 +208,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
208 } 208 }
209 return ppoll(&fds[0], len(fds), ts, nil) 209 return ppoll(&fds[0], len(fds), ts, nil)
210} 210}
211
212//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
213
214func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
215 cmdlineLen := len(cmdline)
216 if cmdlineLen > 0 {
217 // Account for the additional NULL byte added by
218 // BytePtrFromString in kexecFileLoad. The kexec_file_load
219 // syscall expects a NULL-terminated string.
220 cmdlineLen++
221 }
222 return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
223}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
index f23ca45..6230f64 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
@@ -211,3 +211,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
211func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 211func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
212 return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0) 212 return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0)
213} 213}
214
215//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
216
217func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
218 cmdlineLen := len(cmdline)
219 if cmdlineLen > 0 {
220 // Account for the additional NULL byte added by
221 // BytePtrFromString in kexecFileLoad. The kexec_file_load
222 // syscall expects a NULL-terminated string.
223 cmdlineLen++
224 }
225 return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
226}
diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
index 6879995..c8648ec 100644
--- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
@@ -43,6 +43,23 @@ func nametomib(name string) (mib []_C_int, err error) {
43 return nil, EINVAL 43 return nil, EINVAL
44} 44}
45 45
46func SysctlClockinfo(name string) (*Clockinfo, error) {
47 mib, err := sysctlmib(name)
48 if err != nil {
49 return nil, err
50 }
51
52 n := uintptr(SizeofClockinfo)
53 var ci Clockinfo
54 if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
55 return nil, err
56 }
57 if n != SizeofClockinfo {
58 return nil, EIO
59 }
60 return &ci, nil
61}
62
46func SysctlUvmexp(name string) (*Uvmexp, error) { 63func SysctlUvmexp(name string) (*Uvmexp, error) {
47 mib, err := sysctlmib(name) 64 mib, err := sysctlmib(name)
48 if err != nil { 65 if err != nil {
diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go
index 33583a2..0ed1d58 100644
--- a/vendor/golang.org/x/sys/unix/syscall_unix.go
+++ b/vendor/golang.org/x/sys/unix/syscall_unix.go
@@ -28,6 +28,11 @@ var (
28 errENOENT error = syscall.ENOENT 28 errENOENT error = syscall.ENOENT
29) 29)
30 30
31var (
32 signalNameMapOnce sync.Once
33 signalNameMap map[string]syscall.Signal
34)
35
31// errnoErr returns common boxed Errno values, to prevent 36// errnoErr returns common boxed Errno values, to prevent
32// allocations at runtime. 37// allocations at runtime.
33func errnoErr(e syscall.Errno) error { 38func errnoErr(e syscall.Errno) error {
@@ -66,6 +71,19 @@ func SignalName(s syscall.Signal) string {
66 return "" 71 return ""
67} 72}
68 73
74// SignalNum returns the syscall.Signal for signal named s,
75// or 0 if a signal with such name is not found.
76// The signal name should start with "SIG".
77func SignalNum(s string) syscall.Signal {
78 signalNameMapOnce.Do(func() {
79 signalNameMap = make(map[string]syscall.Signal)
80 for _, signal := range signalList {
81 signalNameMap[signal.name] = signal.num
82 }
83 })
84 return signalNameMap[s]
85}
86
69// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte. 87// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
70func clen(n []byte) int { 88func clen(n []byte) int {
71 i := bytes.IndexByte(n, 0) 89 i := bytes.IndexByte(n, 0)
@@ -276,6 +294,13 @@ func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {
276 return &tv, err 294 return &tv, err
277} 295}
278 296
297func GetsockoptUint64(fd, level, opt int) (value uint64, err error) {
298 var n uint64
299 vallen := _Socklen(8)
300 err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
301 return n, err
302}
303
279func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { 304func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
280 var rsa RawSockaddrAny 305 var rsa RawSockaddrAny
281 var len _Socklen = SizeofSockaddrAny 306 var len _Socklen = SizeofSockaddrAny
@@ -333,6 +358,10 @@ func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {
333 return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv)) 358 return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
334} 359}
335 360
361func SetsockoptUint64(fd, level, opt int, value uint64) (err error) {
362 return setsockopt(fd, level, opt, unsafe.Pointer(&value), 8)
363}
364
336func Socket(domain, typ, proto int) (fd int, err error) { 365func Socket(domain, typ, proto int) (fd int, err error) {
337 if domain == AF_INET6 && SocketDisableIPv6 { 366 if domain == AF_INET6 && SocketDisableIPv6 {
338 return -1, EAFNOSUPPORT 367 return -1, EAFNOSUPPORT
@@ -377,3 +406,22 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
377func Exec(argv0 string, argv []string, envv []string) error { 406func Exec(argv0 string, argv []string, envv []string) error {
378 return syscall.Exec(argv0, argv, envv) 407 return syscall.Exec(argv0, argv, envv)
379} 408}
409
410// Lutimes sets the access and modification times tv on path. If path refers to
411// a symlink, it is not dereferenced and the timestamps are set on the symlink.
412// If tv is nil, the access and modification times are set to the current time.
413// Otherwise tv must contain exactly 2 elements, with access time as the first
414// element and modification time as the second element.
415func Lutimes(path string, tv []Timeval) error {
416 if tv == nil {
417 return UtimesNanoAt(AT_FDCWD, path, nil, AT_SYMLINK_NOFOLLOW)
418 }
419 if len(tv) != 2 {
420 return EINVAL
421 }
422 ts := []Timespec{
423 NsecToTimespec(TimevalToNsec(tv[0])),
424 NsecToTimespec(TimevalToNsec(tv[1])),
425 }
426 return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
427}
diff --git a/vendor/golang.org/x/sys/unix/types_darwin.go b/vendor/golang.org/x/sys/unix/types_darwin.go
index 9fd2aaa..155c2e6 100644
--- a/vendor/golang.org/x/sys/unix/types_darwin.go
+++ b/vendor/golang.org/x/sys/unix/types_darwin.go
@@ -275,3 +275,9 @@ const (
275// uname 275// uname
276 276
277type Utsname C.struct_utsname 277type Utsname C.struct_utsname
278
279// Clockinfo
280
281const SizeofClockinfo = C.sizeof_struct_clockinfo
282
283type Clockinfo C.struct_clockinfo
diff --git a/vendor/golang.org/x/sys/unix/types_openbsd.go b/vendor/golang.org/x/sys/unix/types_openbsd.go
index 4e5e57f..8aafbe4 100644
--- a/vendor/golang.org/x/sys/unix/types_openbsd.go
+++ b/vendor/golang.org/x/sys/unix/types_openbsd.go
@@ -274,3 +274,9 @@ type Utsname C.struct_utsname
274const SizeofUvmexp = C.sizeof_struct_uvmexp 274const SizeofUvmexp = C.sizeof_struct_uvmexp
275 275
276type Uvmexp C.struct_uvmexp 276type Uvmexp C.struct_uvmexp
277
278// Clockinfo
279
280const SizeofClockinfo = C.sizeof_struct_clockinfo
281
282type Clockinfo C.struct_clockinfo
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 cb89df8..9e99d67 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80041270 179 BLKBSZGET = 0x80041270
179 BLKBSZSET = 0x40041271 180 BLKBSZSET = 0x40041271
@@ -486,6 +487,50 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
@@ -493,6 +538,7 @@ const (
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x1000 539 FLUSHO = 0x1000
495 FP_XSTATE_MAGIC2 = 0x46505845 540 FP_XSTATE_MAGIC2 = 0x46505845
541 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
496 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 542 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
497 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 543 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
498 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 544 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -514,7 +560,7 @@ const (
514 FS_POLICY_FLAGS_PAD_4 = 0x0 560 FS_POLICY_FLAGS_PAD_4 = 0x0
515 FS_POLICY_FLAGS_PAD_8 = 0x1 561 FS_POLICY_FLAGS_PAD_8 = 0x1
516 FS_POLICY_FLAGS_PAD_MASK = 0x3 562 FS_POLICY_FLAGS_PAD_MASK = 0x3
517 FS_POLICY_FLAGS_VALID = 0x3 563 FS_POLICY_FLAGS_VALID = 0x7
518 FUTEXFS_SUPER_MAGIC = 0xbad1dea 564 FUTEXFS_SUPER_MAGIC = 0xbad1dea
519 F_ADD_SEALS = 0x409 565 F_ADD_SEALS = 0x409
520 F_DUPFD = 0x0 566 F_DUPFD = 0x0
@@ -1134,7 +1180,7 @@ const (
1134 NETLINK_UNUSED = 0x1 1180 NETLINK_UNUSED = 0x1
1135 NETLINK_USERSOCK = 0x2 1181 NETLINK_USERSOCK = 0x2
1136 NETLINK_XFRM = 0x6 1182 NETLINK_XFRM = 0x6
1137 NETNSA_MAX = 0x3 1183 NETNSA_MAX = 0x5
1138 NETNSA_NSID_NOT_ASSIGNED = -0x1 1184 NETNSA_NSID_NOT_ASSIGNED = -0x1
1139 NFNETLINK_V0 = 0x0 1185 NFNETLINK_V0 = 0x0
1140 NFNLGRP_ACCT_QUOTA = 0x8 1186 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1398,6 +1444,12 @@ const (
1398 PR_MCE_KILL_SET = 0x1 1444 PR_MCE_KILL_SET = 0x1
1399 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1445 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1400 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1446 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1447 PR_PAC_APDAKEY = 0x4
1448 PR_PAC_APDBKEY = 0x8
1449 PR_PAC_APGAKEY = 0x10
1450 PR_PAC_APIAKEY = 0x1
1451 PR_PAC_APIBKEY = 0x2
1452 PR_PAC_RESET_KEYS = 0x36
1401 PR_SET_CHILD_SUBREAPER = 0x24 1453 PR_SET_CHILD_SUBREAPER = 0x24
1402 PR_SET_DUMPABLE = 0x4 1454 PR_SET_DUMPABLE = 0x4
1403 PR_SET_ENDIAN = 0x14 1455 PR_SET_ENDIAN = 0x14
@@ -2232,6 +2284,7 @@ const (
2232 TUNGETVNETBE = 0x800454df 2284 TUNGETVNETBE = 0x800454df
2233 TUNGETVNETHDRSZ = 0x800454d7 2285 TUNGETVNETHDRSZ = 0x800454d7
2234 TUNGETVNETLE = 0x800454dd 2286 TUNGETVNETLE = 0x800454dd
2287 TUNSETCARRIER = 0x400454e2
2235 TUNSETDEBUG = 0x400454c9 2288 TUNSETDEBUG = 0x400454c9
2236 TUNSETFILTEREBPF = 0x800454e1 2289 TUNSETFILTEREBPF = 0x800454e1
2237 TUNSETGROUP = 0x400454ce 2290 TUNSETGROUP = 0x400454ce
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 73c9b88..e3091f1 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80081270 179 BLKBSZGET = 0x80081270
179 BLKBSZSET = 0x40081271 180 BLKBSZSET = 0x40081271
@@ -486,6 +487,50 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
@@ -493,6 +538,7 @@ const (
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x1000 539 FLUSHO = 0x1000
495 FP_XSTATE_MAGIC2 = 0x46505845 540 FP_XSTATE_MAGIC2 = 0x46505845
541 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
496 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 542 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
497 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 543 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
498 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 544 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -514,7 +560,7 @@ const (
514 FS_POLICY_FLAGS_PAD_4 = 0x0 560 FS_POLICY_FLAGS_PAD_4 = 0x0
515 FS_POLICY_FLAGS_PAD_8 = 0x1 561 FS_POLICY_FLAGS_PAD_8 = 0x1
516 FS_POLICY_FLAGS_PAD_MASK = 0x3 562 FS_POLICY_FLAGS_PAD_MASK = 0x3
517 FS_POLICY_FLAGS_VALID = 0x3 563 FS_POLICY_FLAGS_VALID = 0x7
518 FUTEXFS_SUPER_MAGIC = 0xbad1dea 564 FUTEXFS_SUPER_MAGIC = 0xbad1dea
519 F_ADD_SEALS = 0x409 565 F_ADD_SEALS = 0x409
520 F_DUPFD = 0x0 566 F_DUPFD = 0x0
@@ -1134,7 +1180,7 @@ const (
1134 NETLINK_UNUSED = 0x1 1180 NETLINK_UNUSED = 0x1
1135 NETLINK_USERSOCK = 0x2 1181 NETLINK_USERSOCK = 0x2
1136 NETLINK_XFRM = 0x6 1182 NETLINK_XFRM = 0x6
1137 NETNSA_MAX = 0x3 1183 NETNSA_MAX = 0x5
1138 NETNSA_NSID_NOT_ASSIGNED = -0x1 1184 NETNSA_NSID_NOT_ASSIGNED = -0x1
1139 NFNETLINK_V0 = 0x0 1185 NFNETLINK_V0 = 0x0
1140 NFNLGRP_ACCT_QUOTA = 0x8 1186 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1398,6 +1444,12 @@ const (
1398 PR_MCE_KILL_SET = 0x1 1444 PR_MCE_KILL_SET = 0x1
1399 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1445 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1400 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1446 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1447 PR_PAC_APDAKEY = 0x4
1448 PR_PAC_APDBKEY = 0x8
1449 PR_PAC_APGAKEY = 0x10
1450 PR_PAC_APIAKEY = 0x1
1451 PR_PAC_APIBKEY = 0x2
1452 PR_PAC_RESET_KEYS = 0x36
1401 PR_SET_CHILD_SUBREAPER = 0x24 1453 PR_SET_CHILD_SUBREAPER = 0x24
1402 PR_SET_DUMPABLE = 0x4 1454 PR_SET_DUMPABLE = 0x4
1403 PR_SET_ENDIAN = 0x14 1455 PR_SET_ENDIAN = 0x14
@@ -2233,6 +2285,7 @@ const (
2233 TUNGETVNETBE = 0x800454df 2285 TUNGETVNETBE = 0x800454df
2234 TUNGETVNETHDRSZ = 0x800454d7 2286 TUNGETVNETHDRSZ = 0x800454d7
2235 TUNGETVNETLE = 0x800454dd 2287 TUNGETVNETLE = 0x800454dd
2288 TUNSETCARRIER = 0x400454e2
2236 TUNSETDEBUG = 0x400454c9 2289 TUNSETDEBUG = 0x400454c9
2237 TUNSETFILTEREBPF = 0x800454e1 2290 TUNSETFILTEREBPF = 0x800454e1
2238 TUNSETGROUP = 0x400454ce 2291 TUNSETGROUP = 0x400454ce
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 f1ef82f..a75dfeb 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80041270 179 BLKBSZGET = 0x80041270
179 BLKBSZSET = 0x40041271 180 BLKBSZSET = 0x40041271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x1000 539 FLUSHO = 0x1000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2239,6 +2291,7 @@ const (
2239 TUNGETVNETBE = 0x800454df 2291 TUNGETVNETBE = 0x800454df
2240 TUNGETVNETHDRSZ = 0x800454d7 2292 TUNGETVNETHDRSZ = 0x800454d7
2241 TUNGETVNETLE = 0x800454dd 2293 TUNGETVNETLE = 0x800454dd
2294 TUNSETCARRIER = 0x400454e2
2242 TUNSETDEBUG = 0x400454c9 2295 TUNSETDEBUG = 0x400454c9
2243 TUNSETFILTEREBPF = 0x800454e1 2296 TUNSETFILTEREBPF = 0x800454e1
2244 TUNSETGROUP = 0x400454ce 2297 TUNSETGROUP = 0x400454ce
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 cf17c99..393ad7c 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80081270 179 BLKBSZGET = 0x80081270
179 BLKBSZSET = 0x40081271 180 BLKBSZSET = 0x40081271
@@ -488,6 +489,50 @@ const (
488 FALLOC_FL_PUNCH_HOLE = 0x2 489 FALLOC_FL_PUNCH_HOLE = 0x2
489 FALLOC_FL_UNSHARE_RANGE = 0x40 490 FALLOC_FL_UNSHARE_RANGE = 0x40
490 FALLOC_FL_ZERO_RANGE = 0x10 491 FALLOC_FL_ZERO_RANGE = 0x10
492 FANOTIFY_METADATA_VERSION = 0x3
493 FAN_ACCESS = 0x1
494 FAN_ACCESS_PERM = 0x20000
495 FAN_ALLOW = 0x1
496 FAN_ALL_CLASS_BITS = 0xc
497 FAN_ALL_EVENTS = 0x3b
498 FAN_ALL_INIT_FLAGS = 0x3f
499 FAN_ALL_MARK_FLAGS = 0xff
500 FAN_ALL_OUTGOING_EVENTS = 0x3403b
501 FAN_ALL_PERM_EVENTS = 0x30000
502 FAN_AUDIT = 0x10
503 FAN_CLASS_CONTENT = 0x4
504 FAN_CLASS_NOTIF = 0x0
505 FAN_CLASS_PRE_CONTENT = 0x8
506 FAN_CLOEXEC = 0x1
507 FAN_CLOSE = 0x18
508 FAN_CLOSE_NOWRITE = 0x10
509 FAN_CLOSE_WRITE = 0x8
510 FAN_DENY = 0x2
511 FAN_ENABLE_AUDIT = 0x40
512 FAN_EVENT_METADATA_LEN = 0x18
513 FAN_EVENT_ON_CHILD = 0x8000000
514 FAN_MARK_ADD = 0x1
515 FAN_MARK_DONT_FOLLOW = 0x4
516 FAN_MARK_FILESYSTEM = 0x100
517 FAN_MARK_FLUSH = 0x80
518 FAN_MARK_IGNORED_MASK = 0x20
519 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
520 FAN_MARK_INODE = 0x0
521 FAN_MARK_MOUNT = 0x10
522 FAN_MARK_ONLYDIR = 0x8
523 FAN_MARK_REMOVE = 0x2
524 FAN_MODIFY = 0x2
525 FAN_NOFD = -0x1
526 FAN_NONBLOCK = 0x2
527 FAN_ONDIR = 0x40000000
528 FAN_OPEN = 0x20
529 FAN_OPEN_EXEC = 0x1000
530 FAN_OPEN_EXEC_PERM = 0x40000
531 FAN_OPEN_PERM = 0x10000
532 FAN_Q_OVERFLOW = 0x4000
533 FAN_REPORT_TID = 0x100
534 FAN_UNLIMITED_MARKS = 0x20
535 FAN_UNLIMITED_QUEUE = 0x10
491 FD_CLOEXEC = 0x1 536 FD_CLOEXEC = 0x1
492 FD_SETSIZE = 0x400 537 FD_SETSIZE = 0x400
493 FF0 = 0x0 538 FF0 = 0x0
@@ -495,6 +540,7 @@ const (
495 FFDLY = 0x8000 540 FFDLY = 0x8000
496 FLUSHO = 0x1000 541 FLUSHO = 0x1000
497 FPSIMD_MAGIC = 0x46508001 542 FPSIMD_MAGIC = 0x46508001
543 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
498 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 544 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
499 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 545 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
500 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 546 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -516,7 +562,7 @@ const (
516 FS_POLICY_FLAGS_PAD_4 = 0x0 562 FS_POLICY_FLAGS_PAD_4 = 0x0
517 FS_POLICY_FLAGS_PAD_8 = 0x1 563 FS_POLICY_FLAGS_PAD_8 = 0x1
518 FS_POLICY_FLAGS_PAD_MASK = 0x3 564 FS_POLICY_FLAGS_PAD_MASK = 0x3
519 FS_POLICY_FLAGS_VALID = 0x3 565 FS_POLICY_FLAGS_VALID = 0x7
520 FUTEXFS_SUPER_MAGIC = 0xbad1dea 566 FUTEXFS_SUPER_MAGIC = 0xbad1dea
521 F_ADD_SEALS = 0x409 567 F_ADD_SEALS = 0x409
522 F_DUPFD = 0x0 568 F_DUPFD = 0x0
@@ -1135,7 +1181,7 @@ const (
1135 NETLINK_UNUSED = 0x1 1181 NETLINK_UNUSED = 0x1
1136 NETLINK_USERSOCK = 0x2 1182 NETLINK_USERSOCK = 0x2
1137 NETLINK_XFRM = 0x6 1183 NETLINK_XFRM = 0x6
1138 NETNSA_MAX = 0x3 1184 NETNSA_MAX = 0x5
1139 NETNSA_NSID_NOT_ASSIGNED = -0x1 1185 NETNSA_NSID_NOT_ASSIGNED = -0x1
1140 NFNETLINK_V0 = 0x0 1186 NFNETLINK_V0 = 0x0
1141 NFNLGRP_ACCT_QUOTA = 0x8 1187 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1399,6 +1445,12 @@ const (
1399 PR_MCE_KILL_SET = 0x1 1445 PR_MCE_KILL_SET = 0x1
1400 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1446 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1401 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1447 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1448 PR_PAC_APDAKEY = 0x4
1449 PR_PAC_APDBKEY = 0x8
1450 PR_PAC_APGAKEY = 0x10
1451 PR_PAC_APIAKEY = 0x1
1452 PR_PAC_APIBKEY = 0x2
1453 PR_PAC_RESET_KEYS = 0x36
1402 PR_SET_CHILD_SUBREAPER = 0x24 1454 PR_SET_CHILD_SUBREAPER = 0x24
1403 PR_SET_DUMPABLE = 0x4 1455 PR_SET_DUMPABLE = 0x4
1404 PR_SET_ENDIAN = 0x14 1456 PR_SET_ENDIAN = 0x14
@@ -2224,6 +2276,7 @@ const (
2224 TUNGETVNETBE = 0x800454df 2276 TUNGETVNETBE = 0x800454df
2225 TUNGETVNETHDRSZ = 0x800454d7 2277 TUNGETVNETHDRSZ = 0x800454d7
2226 TUNGETVNETLE = 0x800454dd 2278 TUNGETVNETLE = 0x800454dd
2279 TUNSETCARRIER = 0x400454e2
2227 TUNSETDEBUG = 0x400454c9 2280 TUNSETDEBUG = 0x400454c9
2228 TUNSETFILTEREBPF = 0x800454e1 2281 TUNSETFILTEREBPF = 0x800454e1
2229 TUNSETGROUP = 0x400454ce 2282 TUNSETGROUP = 0x400454ce
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 380913c..ba1beb9 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x40041270 179 BLKBSZGET = 0x40041270
179 BLKBSZSET = 0x80041271 180 BLKBSZSET = 0x80041271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x2000 539 FLUSHO = 0x2000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2234,6 +2286,7 @@ const (
2234 TUNGETVNETBE = 0x400454df 2286 TUNGETVNETBE = 0x400454df
2235 TUNGETVNETHDRSZ = 0x400454d7 2287 TUNGETVNETHDRSZ = 0x400454d7
2236 TUNGETVNETLE = 0x400454dd 2288 TUNGETVNETLE = 0x400454dd
2289 TUNSETCARRIER = 0x800454e2
2237 TUNSETDEBUG = 0x800454c9 2290 TUNSETDEBUG = 0x800454c9
2238 TUNSETFILTEREBPF = 0x400454e1 2291 TUNSETFILTEREBPF = 0x400454e1
2239 TUNSETGROUP = 0x800454ce 2292 TUNSETGROUP = 0x800454ce
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 fb82529..efba3e5 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x40081270 179 BLKBSZGET = 0x40081270
179 BLKBSZSET = 0x80081271 180 BLKBSZSET = 0x80081271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x2000 539 FLUSHO = 0x2000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2234,6 +2286,7 @@ const (
2234 TUNGETVNETBE = 0x400454df 2286 TUNGETVNETBE = 0x400454df
2235 TUNGETVNETHDRSZ = 0x400454d7 2287 TUNGETVNETHDRSZ = 0x400454d7
2236 TUNGETVNETLE = 0x400454dd 2288 TUNGETVNETLE = 0x400454dd
2289 TUNSETCARRIER = 0x800454e2
2237 TUNSETDEBUG = 0x800454c9 2290 TUNSETDEBUG = 0x800454c9
2238 TUNSETFILTEREBPF = 0x400454e1 2291 TUNSETFILTEREBPF = 0x400454e1
2239 TUNSETGROUP = 0x800454ce 2292 TUNSETGROUP = 0x800454ce
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 677d904..d3f6e90 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x40081270 179 BLKBSZGET = 0x40081270
179 BLKBSZSET = 0x80081271 180 BLKBSZSET = 0x80081271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x2000 539 FLUSHO = 0x2000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2234,6 +2286,7 @@ const (
2234 TUNGETVNETBE = 0x400454df 2286 TUNGETVNETBE = 0x400454df
2235 TUNGETVNETHDRSZ = 0x400454d7 2287 TUNGETVNETHDRSZ = 0x400454d7
2236 TUNGETVNETLE = 0x400454dd 2288 TUNGETVNETLE = 0x400454dd
2289 TUNSETCARRIER = 0x800454e2
2237 TUNSETDEBUG = 0x800454c9 2290 TUNSETDEBUG = 0x800454c9
2238 TUNSETFILTEREBPF = 0x400454e1 2291 TUNSETFILTEREBPF = 0x400454e1
2239 TUNSETGROUP = 0x800454ce 2292 TUNSETGROUP = 0x800454ce
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 7ddd09d..7275cd8 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x40041270 179 BLKBSZGET = 0x40041270
179 BLKBSZSET = 0x80041271 180 BLKBSZSET = 0x80041271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x2000 539 FLUSHO = 0x2000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2234,6 +2286,7 @@ const (
2234 TUNGETVNETBE = 0x400454df 2286 TUNGETVNETBE = 0x400454df
2235 TUNGETVNETHDRSZ = 0x400454d7 2287 TUNGETVNETHDRSZ = 0x400454d7
2236 TUNGETVNETLE = 0x400454dd 2288 TUNGETVNETLE = 0x400454dd
2289 TUNSETCARRIER = 0x800454e2
2237 TUNSETDEBUG = 0x800454c9 2290 TUNSETDEBUG = 0x800454c9
2238 TUNSETFILTEREBPF = 0x400454e1 2291 TUNSETFILTEREBPF = 0x400454e1
2239 TUNSETGROUP = 0x800454ce 2292 TUNSETGROUP = 0x800454ce
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 ebaca41..7586a13 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x40081270 179 BLKBSZGET = 0x40081270
179 BLKBSZSET = 0x80081271 180 BLKBSZSET = 0x80081271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x4000 537 FF1 = 0x4000
493 FFDLY = 0x4000 538 FFDLY = 0x4000
494 FLUSHO = 0x800000 539 FLUSHO = 0x800000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1131,7 +1177,7 @@ const (
1131 NETLINK_UNUSED = 0x1 1177 NETLINK_UNUSED = 0x1
1132 NETLINK_USERSOCK = 0x2 1178 NETLINK_USERSOCK = 0x2
1133 NETLINK_XFRM = 0x6 1179 NETLINK_XFRM = 0x6
1134 NETNSA_MAX = 0x3 1180 NETNSA_MAX = 0x5
1135 NETNSA_NSID_NOT_ASSIGNED = -0x1 1181 NETNSA_NSID_NOT_ASSIGNED = -0x1
1136 NFNETLINK_V0 = 0x0 1182 NFNETLINK_V0 = 0x0
1137 NFNLGRP_ACCT_QUOTA = 0x8 1183 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1398,6 +1444,12 @@ const (
1398 PR_MCE_KILL_SET = 0x1 1444 PR_MCE_KILL_SET = 0x1
1399 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1445 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1400 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1446 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1447 PR_PAC_APDAKEY = 0x4
1448 PR_PAC_APDBKEY = 0x8
1449 PR_PAC_APGAKEY = 0x10
1450 PR_PAC_APIAKEY = 0x1
1451 PR_PAC_APIBKEY = 0x2
1452 PR_PAC_RESET_KEYS = 0x36
1401 PR_SET_CHILD_SUBREAPER = 0x24 1453 PR_SET_CHILD_SUBREAPER = 0x24
1402 PR_SET_DUMPABLE = 0x4 1454 PR_SET_DUMPABLE = 0x4
1403 PR_SET_ENDIAN = 0x14 1455 PR_SET_ENDIAN = 0x14
@@ -2294,6 +2346,7 @@ const (
2294 TUNGETVNETBE = 0x400454df 2346 TUNGETVNETBE = 0x400454df
2295 TUNGETVNETHDRSZ = 0x400454d7 2347 TUNGETVNETHDRSZ = 0x400454d7
2296 TUNGETVNETLE = 0x400454dd 2348 TUNGETVNETLE = 0x400454dd
2349 TUNSETCARRIER = 0x800454e2
2297 TUNSETDEBUG = 0x800454c9 2350 TUNSETDEBUG = 0x800454c9
2298 TUNSETFILTEREBPF = 0x400454e1 2351 TUNSETFILTEREBPF = 0x400454e1
2299 TUNSETGROUP = 0x800454ce 2352 TUNSETGROUP = 0x800454ce
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 02938cb..b861ec7 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x40081270 179 BLKBSZGET = 0x40081270
179 BLKBSZSET = 0x80081271 180 BLKBSZSET = 0x80081271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x4000 537 FF1 = 0x4000
493 FFDLY = 0x4000 538 FFDLY = 0x4000
494 FLUSHO = 0x800000 539 FLUSHO = 0x800000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1131,7 +1177,7 @@ const (
1131 NETLINK_UNUSED = 0x1 1177 NETLINK_UNUSED = 0x1
1132 NETLINK_USERSOCK = 0x2 1178 NETLINK_USERSOCK = 0x2
1133 NETLINK_XFRM = 0x6 1179 NETLINK_XFRM = 0x6
1134 NETNSA_MAX = 0x3 1180 NETNSA_MAX = 0x5
1135 NETNSA_NSID_NOT_ASSIGNED = -0x1 1181 NETNSA_NSID_NOT_ASSIGNED = -0x1
1136 NFNETLINK_V0 = 0x0 1182 NFNETLINK_V0 = 0x0
1137 NFNLGRP_ACCT_QUOTA = 0x8 1183 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1398,6 +1444,12 @@ const (
1398 PR_MCE_KILL_SET = 0x1 1444 PR_MCE_KILL_SET = 0x1
1399 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1445 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1400 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1446 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1447 PR_PAC_APDAKEY = 0x4
1448 PR_PAC_APDBKEY = 0x8
1449 PR_PAC_APGAKEY = 0x10
1450 PR_PAC_APIAKEY = 0x1
1451 PR_PAC_APIBKEY = 0x2
1452 PR_PAC_RESET_KEYS = 0x36
1401 PR_SET_CHILD_SUBREAPER = 0x24 1453 PR_SET_CHILD_SUBREAPER = 0x24
1402 PR_SET_DUMPABLE = 0x4 1454 PR_SET_DUMPABLE = 0x4
1403 PR_SET_ENDIAN = 0x14 1455 PR_SET_ENDIAN = 0x14
@@ -2294,6 +2346,7 @@ const (
2294 TUNGETVNETBE = 0x400454df 2346 TUNGETVNETBE = 0x400454df
2295 TUNGETVNETHDRSZ = 0x400454d7 2347 TUNGETVNETHDRSZ = 0x400454d7
2296 TUNGETVNETLE = 0x400454dd 2348 TUNGETVNETLE = 0x400454dd
2349 TUNSETCARRIER = 0x800454e2
2297 TUNSETDEBUG = 0x800454c9 2350 TUNSETDEBUG = 0x800454c9
2298 TUNSETFILTEREBPF = 0x400454e1 2351 TUNSETFILTEREBPF = 0x400454e1
2299 TUNSETGROUP = 0x800454ce 2352 TUNSETGROUP = 0x800454ce
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 5aea4b9..a321ec2 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80081270 179 BLKBSZGET = 0x80081270
179 BLKBSZSET = 0x40081271 180 BLKBSZSET = 0x40081271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x1000 539 FLUSHO = 0x1000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2220,6 +2272,7 @@ const (
2220 TUNGETVNETBE = 0x800454df 2272 TUNGETVNETBE = 0x800454df
2221 TUNGETVNETHDRSZ = 0x800454d7 2273 TUNGETVNETHDRSZ = 0x800454d7
2222 TUNGETVNETLE = 0x800454dd 2274 TUNGETVNETLE = 0x800454dd
2275 TUNSETCARRIER = 0x400454e2
2223 TUNSETDEBUG = 0x400454c9 2276 TUNSETDEBUG = 0x400454c9
2224 TUNSETFILTEREBPF = 0x800454e1 2277 TUNSETFILTEREBPF = 0x800454e1
2225 TUNSETGROUP = 0x400454ce 2278 TUNSETGROUP = 0x400454ce
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 7f7c2e3..f6c9916 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
@@ -174,6 +174,7 @@ const (
174 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366 175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576 176 BDEVFS_MAGIC = 0x62646576
177 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
177 BINFMTFS_MAGIC = 0x42494e4d 178 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80081270 179 BLKBSZGET = 0x80081270
179 BLKBSZSET = 0x40081271 180 BLKBSZSET = 0x40081271
@@ -486,12 +487,57 @@ const (
486 FALLOC_FL_PUNCH_HOLE = 0x2 487 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40 488 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10 489 FALLOC_FL_ZERO_RANGE = 0x10
490 FANOTIFY_METADATA_VERSION = 0x3
491 FAN_ACCESS = 0x1
492 FAN_ACCESS_PERM = 0x20000
493 FAN_ALLOW = 0x1
494 FAN_ALL_CLASS_BITS = 0xc
495 FAN_ALL_EVENTS = 0x3b
496 FAN_ALL_INIT_FLAGS = 0x3f
497 FAN_ALL_MARK_FLAGS = 0xff
498 FAN_ALL_OUTGOING_EVENTS = 0x3403b
499 FAN_ALL_PERM_EVENTS = 0x30000
500 FAN_AUDIT = 0x10
501 FAN_CLASS_CONTENT = 0x4
502 FAN_CLASS_NOTIF = 0x0
503 FAN_CLASS_PRE_CONTENT = 0x8
504 FAN_CLOEXEC = 0x1
505 FAN_CLOSE = 0x18
506 FAN_CLOSE_NOWRITE = 0x10
507 FAN_CLOSE_WRITE = 0x8
508 FAN_DENY = 0x2
509 FAN_ENABLE_AUDIT = 0x40
510 FAN_EVENT_METADATA_LEN = 0x18
511 FAN_EVENT_ON_CHILD = 0x8000000
512 FAN_MARK_ADD = 0x1
513 FAN_MARK_DONT_FOLLOW = 0x4
514 FAN_MARK_FILESYSTEM = 0x100
515 FAN_MARK_FLUSH = 0x80
516 FAN_MARK_IGNORED_MASK = 0x20
517 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
518 FAN_MARK_INODE = 0x0
519 FAN_MARK_MOUNT = 0x10
520 FAN_MARK_ONLYDIR = 0x8
521 FAN_MARK_REMOVE = 0x2
522 FAN_MODIFY = 0x2
523 FAN_NOFD = -0x1
524 FAN_NONBLOCK = 0x2
525 FAN_ONDIR = 0x40000000
526 FAN_OPEN = 0x20
527 FAN_OPEN_EXEC = 0x1000
528 FAN_OPEN_EXEC_PERM = 0x40000
529 FAN_OPEN_PERM = 0x10000
530 FAN_Q_OVERFLOW = 0x4000
531 FAN_REPORT_TID = 0x100
532 FAN_UNLIMITED_MARKS = 0x20
533 FAN_UNLIMITED_QUEUE = 0x10
489 FD_CLOEXEC = 0x1 534 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400 535 FD_SETSIZE = 0x400
491 FF0 = 0x0 536 FF0 = 0x0
492 FF1 = 0x8000 537 FF1 = 0x8000
493 FFDLY = 0x8000 538 FFDLY = 0x8000
494 FLUSHO = 0x1000 539 FLUSHO = 0x1000
540 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 541 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 542 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 543 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -513,7 +559,7 @@ const (
513 FS_POLICY_FLAGS_PAD_4 = 0x0 559 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1 560 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3 561 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3 562 FS_POLICY_FLAGS_VALID = 0x7
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea 563 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409 564 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0 565 F_DUPFD = 0x0
@@ -1132,7 +1178,7 @@ const (
1132 NETLINK_UNUSED = 0x1 1178 NETLINK_UNUSED = 0x1
1133 NETLINK_USERSOCK = 0x2 1179 NETLINK_USERSOCK = 0x2
1134 NETLINK_XFRM = 0x6 1180 NETLINK_XFRM = 0x6
1135 NETNSA_MAX = 0x3 1181 NETNSA_MAX = 0x5
1136 NETNSA_NSID_NOT_ASSIGNED = -0x1 1182 NETNSA_NSID_NOT_ASSIGNED = -0x1
1137 NFNETLINK_V0 = 0x0 1183 NFNETLINK_V0 = 0x0
1138 NFNLGRP_ACCT_QUOTA = 0x8 1184 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1396,6 +1442,12 @@ const (
1396 PR_MCE_KILL_SET = 0x1 1442 PR_MCE_KILL_SET = 0x1
1397 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1443 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1398 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1444 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1445 PR_PAC_APDAKEY = 0x4
1446 PR_PAC_APDBKEY = 0x8
1447 PR_PAC_APGAKEY = 0x10
1448 PR_PAC_APIAKEY = 0x1
1449 PR_PAC_APIBKEY = 0x2
1450 PR_PAC_RESET_KEYS = 0x36
1399 PR_SET_CHILD_SUBREAPER = 0x24 1451 PR_SET_CHILD_SUBREAPER = 0x24
1400 PR_SET_DUMPABLE = 0x4 1452 PR_SET_DUMPABLE = 0x4
1401 PR_SET_ENDIAN = 0x14 1453 PR_SET_ENDIAN = 0x14
@@ -2293,6 +2345,7 @@ const (
2293 TUNGETVNETBE = 0x800454df 2345 TUNGETVNETBE = 0x800454df
2294 TUNGETVNETHDRSZ = 0x800454d7 2346 TUNGETVNETHDRSZ = 0x800454d7
2295 TUNGETVNETLE = 0x800454dd 2347 TUNGETVNETLE = 0x800454dd
2348 TUNSETCARRIER = 0x400454e2
2296 TUNSETDEBUG = 0x400454c9 2349 TUNSETDEBUG = 0x400454c9
2297 TUNSETFILTEREBPF = 0x800454e1 2350 TUNSETFILTEREBPF = 0x800454e1
2298 TUNSETGROUP = 0x400454ce 2351 TUNSETGROUP = 0x400454ce
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 968e21f..c1e95e2 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
@@ -177,6 +177,7 @@ const (
177 B9600 = 0xd 177 B9600 = 0xd
178 BALLOON_KVM_MAGIC = 0x13661366 178 BALLOON_KVM_MAGIC = 0x13661366
179 BDEVFS_MAGIC = 0x62646576 179 BDEVFS_MAGIC = 0x62646576
180 BINDERFS_SUPER_MAGIC = 0x6c6f6f70
180 BINFMTFS_MAGIC = 0x42494e4d 181 BINFMTFS_MAGIC = 0x42494e4d
181 BLKBSZGET = 0x40081270 182 BLKBSZGET = 0x40081270
182 BLKBSZSET = 0x80081271 183 BLKBSZSET = 0x80081271
@@ -490,12 +491,57 @@ const (
490 FALLOC_FL_PUNCH_HOLE = 0x2 491 FALLOC_FL_PUNCH_HOLE = 0x2
491 FALLOC_FL_UNSHARE_RANGE = 0x40 492 FALLOC_FL_UNSHARE_RANGE = 0x40
492 FALLOC_FL_ZERO_RANGE = 0x10 493 FALLOC_FL_ZERO_RANGE = 0x10
494 FANOTIFY_METADATA_VERSION = 0x3
495 FAN_ACCESS = 0x1
496 FAN_ACCESS_PERM = 0x20000
497 FAN_ALLOW = 0x1
498 FAN_ALL_CLASS_BITS = 0xc
499 FAN_ALL_EVENTS = 0x3b
500 FAN_ALL_INIT_FLAGS = 0x3f
501 FAN_ALL_MARK_FLAGS = 0xff
502 FAN_ALL_OUTGOING_EVENTS = 0x3403b
503 FAN_ALL_PERM_EVENTS = 0x30000
504 FAN_AUDIT = 0x10
505 FAN_CLASS_CONTENT = 0x4
506 FAN_CLASS_NOTIF = 0x0
507 FAN_CLASS_PRE_CONTENT = 0x8
508 FAN_CLOEXEC = 0x1
509 FAN_CLOSE = 0x18
510 FAN_CLOSE_NOWRITE = 0x10
511 FAN_CLOSE_WRITE = 0x8
512 FAN_DENY = 0x2
513 FAN_ENABLE_AUDIT = 0x40
514 FAN_EVENT_METADATA_LEN = 0x18
515 FAN_EVENT_ON_CHILD = 0x8000000
516 FAN_MARK_ADD = 0x1
517 FAN_MARK_DONT_FOLLOW = 0x4
518 FAN_MARK_FILESYSTEM = 0x100
519 FAN_MARK_FLUSH = 0x80
520 FAN_MARK_IGNORED_MASK = 0x20
521 FAN_MARK_IGNORED_SURV_MODIFY = 0x40
522 FAN_MARK_INODE = 0x0
523 FAN_MARK_MOUNT = 0x10
524 FAN_MARK_ONLYDIR = 0x8
525 FAN_MARK_REMOVE = 0x2
526 FAN_MODIFY = 0x2
527 FAN_NOFD = -0x1
528 FAN_NONBLOCK = 0x2
529 FAN_ONDIR = 0x40000000
530 FAN_OPEN = 0x20
531 FAN_OPEN_EXEC = 0x1000
532 FAN_OPEN_EXEC_PERM = 0x40000
533 FAN_OPEN_PERM = 0x10000
534 FAN_Q_OVERFLOW = 0x4000
535 FAN_REPORT_TID = 0x100
536 FAN_UNLIMITED_MARKS = 0x20
537 FAN_UNLIMITED_QUEUE = 0x10
493 FD_CLOEXEC = 0x1 538 FD_CLOEXEC = 0x1
494 FD_SETSIZE = 0x400 539 FD_SETSIZE = 0x400
495 FF0 = 0x0 540 FF0 = 0x0
496 FF1 = 0x8000 541 FF1 = 0x8000
497 FFDLY = 0x8000 542 FFDLY = 0x8000
498 FLUSHO = 0x1000 543 FLUSHO = 0x1000
544 FS_ENCRYPTION_MODE_ADIANTUM = 0x9
499 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 545 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
500 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 546 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
501 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 547 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -517,7 +563,7 @@ const (
517 FS_POLICY_FLAGS_PAD_4 = 0x0 563 FS_POLICY_FLAGS_PAD_4 = 0x0
518 FS_POLICY_FLAGS_PAD_8 = 0x1 564 FS_POLICY_FLAGS_PAD_8 = 0x1
519 FS_POLICY_FLAGS_PAD_MASK = 0x3 565 FS_POLICY_FLAGS_PAD_MASK = 0x3
520 FS_POLICY_FLAGS_VALID = 0x3 566 FS_POLICY_FLAGS_VALID = 0x7
521 FUTEXFS_SUPER_MAGIC = 0xbad1dea 567 FUTEXFS_SUPER_MAGIC = 0xbad1dea
522 F_ADD_SEALS = 0x409 568 F_ADD_SEALS = 0x409
523 F_DUPFD = 0x0 569 F_DUPFD = 0x0
@@ -1136,7 +1182,7 @@ const (
1136 NETLINK_UNUSED = 0x1 1182 NETLINK_UNUSED = 0x1
1137 NETLINK_USERSOCK = 0x2 1183 NETLINK_USERSOCK = 0x2
1138 NETLINK_XFRM = 0x6 1184 NETLINK_XFRM = 0x6
1139 NETNSA_MAX = 0x3 1185 NETNSA_MAX = 0x5
1140 NETNSA_NSID_NOT_ASSIGNED = -0x1 1186 NETNSA_NSID_NOT_ASSIGNED = -0x1
1141 NFNETLINK_V0 = 0x0 1187 NFNETLINK_V0 = 0x0
1142 NFNLGRP_ACCT_QUOTA = 0x8 1188 NFNLGRP_ACCT_QUOTA = 0x8
@@ -1400,6 +1446,12 @@ const (
1400 PR_MCE_KILL_SET = 0x1 1446 PR_MCE_KILL_SET = 0x1
1401 PR_MPX_DISABLE_MANAGEMENT = 0x2c 1447 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1402 PR_MPX_ENABLE_MANAGEMENT = 0x2b 1448 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1449 PR_PAC_APDAKEY = 0x4
1450 PR_PAC_APDBKEY = 0x8
1451 PR_PAC_APGAKEY = 0x10
1452 PR_PAC_APIAKEY = 0x1
1453 PR_PAC_APIBKEY = 0x2
1454 PR_PAC_RESET_KEYS = 0x36
1403 PR_SET_CHILD_SUBREAPER = 0x24 1455 PR_SET_CHILD_SUBREAPER = 0x24
1404 PR_SET_DUMPABLE = 0x4 1456 PR_SET_DUMPABLE = 0x4
1405 PR_SET_ENDIAN = 0x14 1457 PR_SET_ENDIAN = 0x14
@@ -2282,6 +2334,7 @@ const (
2282 TUNGETVNETBE = 0x400454df 2334 TUNGETVNETBE = 0x400454df
2283 TUNGETVNETHDRSZ = 0x400454d7 2335 TUNGETVNETHDRSZ = 0x400454d7
2284 TUNGETVNETLE = 0x400454dd 2336 TUNGETVNETLE = 0x400454dd
2337 TUNSETCARRIER = 0x800454e2
2285 TUNSETDEBUG = 0x800454c9 2338 TUNSETDEBUG = 0x800454c9
2286 TUNSETFILTEREBPF = 0x400454e1 2339 TUNSETFILTEREBPF = 0x400454e1
2287 TUNSETGROUP = 0x800454ce 2340 TUNSETGROUP = 0x800454ce
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
index e645a05..52802bf 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
@@ -1367,6 +1367,14 @@ func Utime(path string, buf *Utimbuf) (err error) {
1367 1367
1368// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1368// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1369 1369
1370func Getsystemcfg(label int) (n uint64) {
1371 r0, _ := callgetsystemcfg(label)
1372 n = uint64(r0)
1373 return
1374}
1375
1376// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1377
1370func Getrlimit(resource int, rlim *Rlimit) (err error) { 1378func Getrlimit(resource int, rlim *Rlimit) (err error) {
1371 _, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim))) 1379 _, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
1372 if e1 != 0 { 1380 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
index 0b8eb72..a2b24e4 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
@@ -120,6 +120,7 @@ import (
120//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o" 120//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
121//go:cgo_import_dynamic libc_time time "libc.a/shr_64.o" 121//go:cgo_import_dynamic libc_time time "libc.a/shr_64.o"
122//go:cgo_import_dynamic libc_utime utime "libc.a/shr_64.o" 122//go:cgo_import_dynamic libc_utime utime "libc.a/shr_64.o"
123//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o"
123//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o" 124//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o"
124//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o" 125//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
125//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o" 126//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
@@ -235,6 +236,7 @@ import (
235//go:linkname libc_gettimeofday libc_gettimeofday 236//go:linkname libc_gettimeofday libc_gettimeofday
236//go:linkname libc_time libc_time 237//go:linkname libc_time libc_time
237//go:linkname libc_utime libc_utime 238//go:linkname libc_utime libc_utime
239//go:linkname libc_getsystemcfg libc_getsystemcfg
238//go:linkname libc_getrlimit libc_getrlimit 240//go:linkname libc_getrlimit libc_getrlimit
239//go:linkname libc_setrlimit libc_setrlimit 241//go:linkname libc_setrlimit libc_setrlimit
240//go:linkname libc_lseek libc_lseek 242//go:linkname libc_lseek libc_lseek
@@ -353,6 +355,7 @@ var (
353 libc_gettimeofday, 355 libc_gettimeofday,
354 libc_time, 356 libc_time,
355 libc_utime, 357 libc_utime,
358 libc_getsystemcfg,
356 libc_getrlimit, 359 libc_getrlimit,
357 libc_setrlimit, 360 libc_setrlimit,
358 libc_lseek, 361 libc_lseek,
@@ -1135,6 +1138,13 @@ func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
1135 1138
1136// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1137 1140
1141func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
1142 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsystemcfg)), 1, uintptr(label), 0, 0, 0, 0, 0)
1143 return
1144}
1145
1146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1147
1138func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) { 1148func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
1139 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0) 1149 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
1140 return 1150 return
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
index e88a442..5491c89 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
@@ -118,6 +118,7 @@ int poll(uintptr_t, int, int);
118int gettimeofday(uintptr_t, uintptr_t); 118int gettimeofday(uintptr_t, uintptr_t);
119int time(uintptr_t); 119int time(uintptr_t);
120int utime(uintptr_t, uintptr_t); 120int utime(uintptr_t, uintptr_t);
121unsigned long long getsystemcfg(int);
121int getrlimit(int, uintptr_t); 122int getrlimit(int, uintptr_t);
122int setrlimit(int, uintptr_t); 123int setrlimit(int, uintptr_t);
123long long lseek(int, long long, int); 124long long lseek(int, long long, int);
@@ -1011,6 +1012,14 @@ func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
1011 1012
1012// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1013// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1013 1014
1015func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
1016 r1 = uintptr(C.getsystemcfg(C.int(label)))
1017 e1 = syscall.GetErrno()
1018 return
1019}
1020
1021// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1022
1014func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) { 1023func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
1015 r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim))) 1024 r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim)))
1016 e1 = syscall.GetErrno() 1025 e1 = syscall.GetErrno()
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 c8b4510..9855afa 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 2aac318..773e251 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 13c06c2..ccea621 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _p0, err = BytePtrFromString(path)
@@ -1658,6 +1679,16 @@ func faccessat(dirfd int, path string, mode uint32) (err error) {
1658 1679
1659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1680// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1660 1681
1682func pipe(p *[2]_C_int) (err error) {
1683 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
1684 if e1 != 0 {
1685 err = errnoErr(e1)
1686 }
1687 return
1688}
1689
1690// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1691
1661func pipe2(p *[2]_C_int, flags int) (err error) { 1692func pipe2(p *[2]_C_int, flags int) (err error) {
1662 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 1693 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1663 if e1 != 0 { 1694 if e1 != 0 {
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 737fa8d..712c7a3 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _p0, err = BytePtrFromString(path)
@@ -2206,3 +2227,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
2206 } 2227 }
2207 return 2228 return
2208} 2229}
2230
2231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2232
2233func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
2234 var _p0 *byte
2235 _p0, err = BytePtrFromString(cmdline)
2236 if err != nil {
2237 return
2238 }
2239 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2240 if e1 != 0 {
2241 err = errnoErr(e1)
2242 }
2243 return
2244}
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 0a85f3f..68b3251 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 ec7007e..a8be407 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 c5bb25d..1351028 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 26ada04..327b4f9 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 2da9cb7..c145bd3 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 772733d..cd8179c 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 996eba5..2e90cf0 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _p0, err = BytePtrFromString(path)
@@ -2186,3 +2207,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
2186 } 2207 }
2187 return 2208 return
2188} 2209}
2210
2211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2212
2213func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
2214 var _p0 *byte
2215 _p0, err = BytePtrFromString(cmdline)
2216 if err != nil {
2217 return
2218 }
2219 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2220 if e1 != 0 {
2221 err = errnoErr(e1)
2222 }
2223 return
2224}
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 cb9072a..fe9c7e1 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _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 5e48a10..d4a2100 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
@@ -14,6 +14,27 @@ var _ syscall.Errno
14 14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16 16
17func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
19 fd = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
17func fchmodat(dirfd int, path string, mode uint32) (err error) { 38func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte 39 var _p0 *byte
19 _p0, err = BytePtrFromString(path) 40 _p0, err = BytePtrFromString(path)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
index 97b22a4..5f61476 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
@@ -1,4 +1,4 @@
1// mksyscall_solaris.pl -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go 1// go run mksyscall_solaris.go -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go
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 solaris,amd64 4// +build solaris,amd64
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 3206967..b81d508 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
@@ -285,4 +285,5 @@ const (
285 SYS_STATX = 291 285 SYS_STATX = 291
286 SYS_IO_PGETEVENTS = 292 286 SYS_IO_PGETEVENTS = 292
287 SYS_RSEQ = 293 287 SYS_RSEQ = 293
288 SYS_KEXEC_FILE_LOAD = 294
288) 289)
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 473c746..2c8c46a 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
@@ -284,4 +284,5 @@ const (
284 SYS_STATX = 291 284 SYS_STATX = 291
285 SYS_IO_PGETEVENTS = 292 285 SYS_IO_PGETEVENTS = 292
286 SYS_RSEQ = 293 286 SYS_RSEQ = 293
287 SYS_KEXEC_FILE_LOAD = 294
287) 288)
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 93480fc..6ed3063 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
@@ -253,6 +253,7 @@ const (
253 SYS_TIMER_GETOVERRUN = 264 253 SYS_TIMER_GETOVERRUN = 264
254 SYS_TIMER_DELETE = 265 254 SYS_TIMER_DELETE = 265
255 SYS_TIMER_CREATE = 266 255 SYS_TIMER_CREATE = 266
256 SYS_VSERVER = 267
256 SYS_IO_SETUP = 268 257 SYS_IO_SETUP = 268
257 SYS_IO_DESTROY = 269 258 SYS_IO_DESTROY = 269
258 SYS_IO_SUBMIT = 270 259 SYS_IO_SUBMIT = 270
diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
index 2aeb52a..cefe2f8 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
@@ -487,3 +487,13 @@ type Utsname struct {
487 Version [256]byte 487 Version [256]byte
488 Machine [256]byte 488 Machine [256]byte
489} 489}
490
491const SizeofClockinfo = 0x14
492
493type Clockinfo struct {
494 Hz int32
495 Tick int32
496 Tickadj int32
497 Stathz int32
498 Profhz int32
499}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
index 0d0d9f2..c6bb883 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
@@ -497,3 +497,13 @@ type Utsname struct {
497 Version [256]byte 497 Version [256]byte
498 Machine [256]byte 498 Machine [256]byte
499} 499}
500
501const SizeofClockinfo = 0x14
502
503type Clockinfo struct {
504 Hz int32
505 Tick int32
506 Tickadj int32
507 Stathz int32
508 Profhz int32
509}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
index 04e344b..94c23bc 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
@@ -488,3 +488,13 @@ type Utsname struct {
488 Version [256]byte 488 Version [256]byte
489 Machine [256]byte 489 Machine [256]byte
490} 490}
491
492const SizeofClockinfo = 0x14
493
494type Clockinfo struct {
495 Hz int32
496 Tick int32
497 Tickadj int32
498 Stathz int32
499 Profhz int32
500}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
index 9fec185..c82a930 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
@@ -497,3 +497,13 @@ type Utsname struct {
497 Version [256]byte 497 Version [256]byte
498 Machine [256]byte 498 Machine [256]byte
499} 499}
500
501const SizeofClockinfo = 0x14
502
503type Clockinfo struct {
504 Hz int32
505 Tick int32
506 Tickadj int32
507 Stathz int32
508 Profhz int32
509}
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 d262150..6dfe56b 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
@@ -405,6 +405,11 @@ type TCPInfo struct {
405 Total_retrans uint32 405 Total_retrans uint32
406} 406}
407 407
408type CanFilter struct {
409 Id uint32
410 Mask uint32
411}
412
408const ( 413const (
409 SizeofSockaddrInet4 = 0x10 414 SizeofSockaddrInet4 = 0x10
410 SizeofSockaddrInet6 = 0x1c 415 SizeofSockaddrInet6 = 0x1c
@@ -434,6 +439,7 @@ const (
434 SizeofICMPv6Filter = 0x20 439 SizeofICMPv6Filter = 0x20
435 SizeofUcred = 0xc 440 SizeofUcred = 0xc
436 SizeofTCPInfo = 0x68 441 SizeofTCPInfo = 0x68
442 SizeofCanFilter = 0x8
437) 443)
438 444
439const ( 445const (
@@ -569,6 +575,7 @@ const (
569 SizeofIfAddrmsg = 0x8 575 SizeofIfAddrmsg = 0x8
570 SizeofRtMsg = 0xc 576 SizeofRtMsg = 0xc
571 SizeofRtNexthop = 0x8 577 SizeofRtNexthop = 0x8
578 SizeofNdUseroptmsg = 0x10
572) 579)
573 580
574type NlMsghdr struct { 581type NlMsghdr struct {
@@ -634,6 +641,17 @@ type RtNexthop struct {
634 Ifindex int32 641 Ifindex int32
635} 642}
636 643
644type NdUseroptmsg struct {
645 Family uint8
646 Pad1 uint8
647 Opts_len uint16
648 Ifindex int32
649 Icmp_type uint8
650 Icmp_code uint8
651 Pad2 uint16
652 Pad3 uint32
653}
654
637const ( 655const (
638 SizeofSockFilter = 0x8 656 SizeofSockFilter = 0x8
639 SizeofSockFprog = 0x8 657 SizeofSockFprog = 0x8
@@ -955,7 +973,8 @@ type PerfEventAttr struct {
955 Clockid int32 973 Clockid int32
956 Sample_regs_intr uint64 974 Sample_regs_intr uint64
957 Aux_watermark uint32 975 Aux_watermark uint32
958 _ uint32 976 Sample_max_stack uint16
977 _ uint16
959} 978}
960 979
961type PerfEventMmapPage struct { 980type PerfEventMmapPage struct {
@@ -1058,6 +1077,7 @@ const (
1058 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1077 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1059 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1078 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1060 PERF_COUNT_SW_DUMMY = 0x9 1079 PERF_COUNT_SW_DUMMY = 0x9
1080 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1061 1081
1062 PERF_SAMPLE_IP = 0x1 1082 PERF_SAMPLE_IP = 0x1
1063 PERF_SAMPLE_TID = 0x2 1083 PERF_SAMPLE_TID = 0x2
@@ -1079,21 +1099,38 @@ const (
1079 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1099 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1080 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1100 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1081 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1101 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1102 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1103 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1104 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1105 PERF_SAMPLE_BRANCH_COND = 0x400
1106 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1107 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1108 PERF_SAMPLE_BRANCH_CALL = 0x2000
1109 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1110 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1111 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1082 1112
1083 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1113 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1084 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1114 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1085 PERF_FORMAT_ID = 0x4 1115 PERF_FORMAT_ID = 0x4
1086 PERF_FORMAT_GROUP = 0x8 1116 PERF_FORMAT_GROUP = 0x8
1087 1117
1088 PERF_RECORD_MMAP = 0x1 1118 PERF_RECORD_MMAP = 0x1
1089 PERF_RECORD_LOST = 0x2 1119 PERF_RECORD_LOST = 0x2
1090 PERF_RECORD_COMM = 0x3 1120 PERF_RECORD_COMM = 0x3
1091 PERF_RECORD_EXIT = 0x4 1121 PERF_RECORD_EXIT = 0x4
1092 PERF_RECORD_THROTTLE = 0x5 1122 PERF_RECORD_THROTTLE = 0x5
1093 PERF_RECORD_UNTHROTTLE = 0x6 1123 PERF_RECORD_UNTHROTTLE = 0x6
1094 PERF_RECORD_FORK = 0x7 1124 PERF_RECORD_FORK = 0x7
1095 PERF_RECORD_READ = 0x8 1125 PERF_RECORD_READ = 0x8
1096 PERF_RECORD_SAMPLE = 0x9 1126 PERF_RECORD_SAMPLE = 0x9
1127 PERF_RECORD_MMAP2 = 0xa
1128 PERF_RECORD_AUX = 0xb
1129 PERF_RECORD_ITRACE_START = 0xc
1130 PERF_RECORD_LOST_SAMPLES = 0xd
1131 PERF_RECORD_SWITCH = 0xe
1132 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1133 PERF_RECORD_NAMESPACES = 0x10
1097 1134
1098 PERF_CONTEXT_HV = -0x20 1135 PERF_CONTEXT_HV = -0x20
1099 PERF_CONTEXT_KERNEL = -0x80 1136 PERF_CONTEXT_KERNEL = -0x80
@@ -1106,6 +1143,7 @@ const (
1106 PERF_FLAG_FD_NO_GROUP = 0x1 1143 PERF_FLAG_FD_NO_GROUP = 0x1
1107 PERF_FLAG_FD_OUTPUT = 0x2 1144 PERF_FLAG_FD_OUTPUT = 0x2
1108 PERF_FLAG_PID_CGROUP = 0x4 1145 PERF_FLAG_PID_CGROUP = 0x4
1146 PERF_FLAG_FD_CLOEXEC = 0x8
1109) 1147)
1110 1148
1111const ( 1149const (
@@ -1410,6 +1448,9 @@ const (
1410 SizeofTpacketHdr = 0x18 1448 SizeofTpacketHdr = 0x18
1411 SizeofTpacket2Hdr = 0x20 1449 SizeofTpacket2Hdr = 0x20
1412 SizeofTpacket3Hdr = 0x30 1450 SizeofTpacket3Hdr = 0x30
1451
1452 SizeofTpacketStats = 0x8
1453 SizeofTpacketStatsV3 = 0xc
1413) 1454)
1414 1455
1415const ( 1456const (
@@ -2025,3 +2066,18 @@ type SockExtendedErr struct {
2025 Info uint32 2066 Info uint32
2026 Data uint32 2067 Data uint32
2027} 2068}
2069
2070type FanotifyEventMetadata struct {
2071 Event_len uint32
2072 Vers uint8
2073 Reserved uint8
2074 Metadata_len uint16
2075 Mask uint64
2076 Fd int32
2077 Pid int32
2078}
2079
2080type FanotifyResponse struct {
2081 Fd int32
2082 Response uint32
2083}
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 e492caa..9f8cbf4 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
@@ -406,6 +406,11 @@ type TCPInfo struct {
406 Total_retrans uint32 406 Total_retrans uint32
407} 407}
408 408
409type CanFilter struct {
410 Id uint32
411 Mask uint32
412}
413
409const ( 414const (
410 SizeofSockaddrInet4 = 0x10 415 SizeofSockaddrInet4 = 0x10
411 SizeofSockaddrInet6 = 0x1c 416 SizeofSockaddrInet6 = 0x1c
@@ -435,6 +440,7 @@ const (
435 SizeofICMPv6Filter = 0x20 440 SizeofICMPv6Filter = 0x20
436 SizeofUcred = 0xc 441 SizeofUcred = 0xc
437 SizeofTCPInfo = 0x68 442 SizeofTCPInfo = 0x68
443 SizeofCanFilter = 0x8
438) 444)
439 445
440const ( 446const (
@@ -570,6 +576,7 @@ const (
570 SizeofIfAddrmsg = 0x8 576 SizeofIfAddrmsg = 0x8
571 SizeofRtMsg = 0xc 577 SizeofRtMsg = 0xc
572 SizeofRtNexthop = 0x8 578 SizeofRtNexthop = 0x8
579 SizeofNdUseroptmsg = 0x10
573) 580)
574 581
575type NlMsghdr struct { 582type NlMsghdr struct {
@@ -635,6 +642,17 @@ type RtNexthop struct {
635 Ifindex int32 642 Ifindex int32
636} 643}
637 644
645type NdUseroptmsg struct {
646 Family uint8
647 Pad1 uint8
648 Opts_len uint16
649 Ifindex int32
650 Icmp_type uint8
651 Icmp_code uint8
652 Pad2 uint16
653 Pad3 uint32
654}
655
638const ( 656const (
639 SizeofSockFilter = 0x8 657 SizeofSockFilter = 0x8
640 SizeofSockFprog = 0x10 658 SizeofSockFprog = 0x10
@@ -966,7 +984,8 @@ type PerfEventAttr struct {
966 Clockid int32 984 Clockid int32
967 Sample_regs_intr uint64 985 Sample_regs_intr uint64
968 Aux_watermark uint32 986 Aux_watermark uint32
969 _ uint32 987 Sample_max_stack uint16
988 _ uint16
970} 989}
971 990
972type PerfEventMmapPage struct { 991type PerfEventMmapPage struct {
@@ -1069,6 +1088,7 @@ const (
1069 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1088 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1070 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1089 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1071 PERF_COUNT_SW_DUMMY = 0x9 1090 PERF_COUNT_SW_DUMMY = 0x9
1091 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1072 1092
1073 PERF_SAMPLE_IP = 0x1 1093 PERF_SAMPLE_IP = 0x1
1074 PERF_SAMPLE_TID = 0x2 1094 PERF_SAMPLE_TID = 0x2
@@ -1090,21 +1110,38 @@ const (
1090 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1110 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1091 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1111 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1092 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1112 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1113 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1114 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1115 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1116 PERF_SAMPLE_BRANCH_COND = 0x400
1117 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1118 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1119 PERF_SAMPLE_BRANCH_CALL = 0x2000
1120 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1121 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1122 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1093 1123
1094 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1124 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1095 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1125 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1096 PERF_FORMAT_ID = 0x4 1126 PERF_FORMAT_ID = 0x4
1097 PERF_FORMAT_GROUP = 0x8 1127 PERF_FORMAT_GROUP = 0x8
1098 1128
1099 PERF_RECORD_MMAP = 0x1 1129 PERF_RECORD_MMAP = 0x1
1100 PERF_RECORD_LOST = 0x2 1130 PERF_RECORD_LOST = 0x2
1101 PERF_RECORD_COMM = 0x3 1131 PERF_RECORD_COMM = 0x3
1102 PERF_RECORD_EXIT = 0x4 1132 PERF_RECORD_EXIT = 0x4
1103 PERF_RECORD_THROTTLE = 0x5 1133 PERF_RECORD_THROTTLE = 0x5
1104 PERF_RECORD_UNTHROTTLE = 0x6 1134 PERF_RECORD_UNTHROTTLE = 0x6
1105 PERF_RECORD_FORK = 0x7 1135 PERF_RECORD_FORK = 0x7
1106 PERF_RECORD_READ = 0x8 1136 PERF_RECORD_READ = 0x8
1107 PERF_RECORD_SAMPLE = 0x9 1137 PERF_RECORD_SAMPLE = 0x9
1138 PERF_RECORD_MMAP2 = 0xa
1139 PERF_RECORD_AUX = 0xb
1140 PERF_RECORD_ITRACE_START = 0xc
1141 PERF_RECORD_LOST_SAMPLES = 0xd
1142 PERF_RECORD_SWITCH = 0xe
1143 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1144 PERF_RECORD_NAMESPACES = 0x10
1108 1145
1109 PERF_CONTEXT_HV = -0x20 1146 PERF_CONTEXT_HV = -0x20
1110 PERF_CONTEXT_KERNEL = -0x80 1147 PERF_CONTEXT_KERNEL = -0x80
@@ -1117,6 +1154,7 @@ const (
1117 PERF_FLAG_FD_NO_GROUP = 0x1 1154 PERF_FLAG_FD_NO_GROUP = 0x1
1118 PERF_FLAG_FD_OUTPUT = 0x2 1155 PERF_FLAG_FD_OUTPUT = 0x2
1119 PERF_FLAG_PID_CGROUP = 0x4 1156 PERF_FLAG_PID_CGROUP = 0x4
1157 PERF_FLAG_FD_CLOEXEC = 0x8
1120) 1158)
1121 1159
1122const ( 1160const (
@@ -1422,6 +1460,9 @@ const (
1422 SizeofTpacketHdr = 0x20 1460 SizeofTpacketHdr = 0x20
1423 SizeofTpacket2Hdr = 0x20 1461 SizeofTpacket2Hdr = 0x20
1424 SizeofTpacket3Hdr = 0x30 1462 SizeofTpacket3Hdr = 0x30
1463
1464 SizeofTpacketStats = 0x8
1465 SizeofTpacketStatsV3 = 0xc
1425) 1466)
1426 1467
1427const ( 1468const (
@@ -2038,3 +2079,18 @@ type SockExtendedErr struct {
2038 Info uint32 2079 Info uint32
2039 Data uint32 2080 Data uint32
2040} 2081}
2082
2083type FanotifyEventMetadata struct {
2084 Event_len uint32
2085 Vers uint8
2086 Reserved uint8
2087 Metadata_len uint16
2088 Mask uint64
2089 Fd int32
2090 Pid int32
2091}
2092
2093type FanotifyResponse struct {
2094 Fd int32
2095 Response uint32
2096}
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 ad43421..cbbf19a 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
@@ -409,6 +409,11 @@ type TCPInfo struct {
409 Total_retrans uint32 409 Total_retrans uint32
410} 410}
411 411
412type CanFilter struct {
413 Id uint32
414 Mask uint32
415}
416
412const ( 417const (
413 SizeofSockaddrInet4 = 0x10 418 SizeofSockaddrInet4 = 0x10
414 SizeofSockaddrInet6 = 0x1c 419 SizeofSockaddrInet6 = 0x1c
@@ -438,6 +443,7 @@ const (
438 SizeofICMPv6Filter = 0x20 443 SizeofICMPv6Filter = 0x20
439 SizeofUcred = 0xc 444 SizeofUcred = 0xc
440 SizeofTCPInfo = 0x68 445 SizeofTCPInfo = 0x68
446 SizeofCanFilter = 0x8
441) 447)
442 448
443const ( 449const (
@@ -573,6 +579,7 @@ const (
573 SizeofIfAddrmsg = 0x8 579 SizeofIfAddrmsg = 0x8
574 SizeofRtMsg = 0xc 580 SizeofRtMsg = 0xc
575 SizeofRtNexthop = 0x8 581 SizeofRtNexthop = 0x8
582 SizeofNdUseroptmsg = 0x10
576) 583)
577 584
578type NlMsghdr struct { 585type NlMsghdr struct {
@@ -638,6 +645,17 @@ type RtNexthop struct {
638 Ifindex int32 645 Ifindex int32
639} 646}
640 647
648type NdUseroptmsg struct {
649 Family uint8
650 Pad1 uint8
651 Opts_len uint16
652 Ifindex int32
653 Icmp_type uint8
654 Icmp_code uint8
655 Pad2 uint16
656 Pad3 uint32
657}
658
641const ( 659const (
642 SizeofSockFilter = 0x8 660 SizeofSockFilter = 0x8
643 SizeofSockFprog = 0x8 661 SizeofSockFprog = 0x8
@@ -944,7 +962,8 @@ type PerfEventAttr struct {
944 Clockid int32 962 Clockid int32
945 Sample_regs_intr uint64 963 Sample_regs_intr uint64
946 Aux_watermark uint32 964 Aux_watermark uint32
947 _ uint32 965 Sample_max_stack uint16
966 _ uint16
948} 967}
949 968
950type PerfEventMmapPage struct { 969type PerfEventMmapPage struct {
@@ -1047,6 +1066,7 @@ const (
1047 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1066 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1048 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1067 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1049 PERF_COUNT_SW_DUMMY = 0x9 1068 PERF_COUNT_SW_DUMMY = 0x9
1069 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1050 1070
1051 PERF_SAMPLE_IP = 0x1 1071 PERF_SAMPLE_IP = 0x1
1052 PERF_SAMPLE_TID = 0x2 1072 PERF_SAMPLE_TID = 0x2
@@ -1068,21 +1088,38 @@ const (
1068 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1088 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1069 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1089 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1070 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1090 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1091 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1092 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1093 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1094 PERF_SAMPLE_BRANCH_COND = 0x400
1095 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1096 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1097 PERF_SAMPLE_BRANCH_CALL = 0x2000
1098 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1099 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1100 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1071 1101
1072 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1102 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1073 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1103 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1074 PERF_FORMAT_ID = 0x4 1104 PERF_FORMAT_ID = 0x4
1075 PERF_FORMAT_GROUP = 0x8 1105 PERF_FORMAT_GROUP = 0x8
1076 1106
1077 PERF_RECORD_MMAP = 0x1 1107 PERF_RECORD_MMAP = 0x1
1078 PERF_RECORD_LOST = 0x2 1108 PERF_RECORD_LOST = 0x2
1079 PERF_RECORD_COMM = 0x3 1109 PERF_RECORD_COMM = 0x3
1080 PERF_RECORD_EXIT = 0x4 1110 PERF_RECORD_EXIT = 0x4
1081 PERF_RECORD_THROTTLE = 0x5 1111 PERF_RECORD_THROTTLE = 0x5
1082 PERF_RECORD_UNTHROTTLE = 0x6 1112 PERF_RECORD_UNTHROTTLE = 0x6
1083 PERF_RECORD_FORK = 0x7 1113 PERF_RECORD_FORK = 0x7
1084 PERF_RECORD_READ = 0x8 1114 PERF_RECORD_READ = 0x8
1085 PERF_RECORD_SAMPLE = 0x9 1115 PERF_RECORD_SAMPLE = 0x9
1116 PERF_RECORD_MMAP2 = 0xa
1117 PERF_RECORD_AUX = 0xb
1118 PERF_RECORD_ITRACE_START = 0xc
1119 PERF_RECORD_LOST_SAMPLES = 0xd
1120 PERF_RECORD_SWITCH = 0xe
1121 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1122 PERF_RECORD_NAMESPACES = 0x10
1086 1123
1087 PERF_CONTEXT_HV = -0x20 1124 PERF_CONTEXT_HV = -0x20
1088 PERF_CONTEXT_KERNEL = -0x80 1125 PERF_CONTEXT_KERNEL = -0x80
@@ -1095,6 +1132,7 @@ const (
1095 PERF_FLAG_FD_NO_GROUP = 0x1 1132 PERF_FLAG_FD_NO_GROUP = 0x1
1096 PERF_FLAG_FD_OUTPUT = 0x2 1133 PERF_FLAG_FD_OUTPUT = 0x2
1097 PERF_FLAG_PID_CGROUP = 0x4 1134 PERF_FLAG_PID_CGROUP = 0x4
1135 PERF_FLAG_FD_CLOEXEC = 0x8
1098) 1136)
1099 1137
1100const ( 1138const (
@@ -1400,6 +1438,9 @@ const (
1400 SizeofTpacketHdr = 0x18 1438 SizeofTpacketHdr = 0x18
1401 SizeofTpacket2Hdr = 0x20 1439 SizeofTpacket2Hdr = 0x20
1402 SizeofTpacket3Hdr = 0x30 1440 SizeofTpacket3Hdr = 0x30
1441
1442 SizeofTpacketStats = 0x8
1443 SizeofTpacketStatsV3 = 0xc
1403) 1444)
1404 1445
1405const ( 1446const (
@@ -2016,3 +2057,18 @@ type SockExtendedErr struct {
2016 Info uint32 2057 Info uint32
2017 Data uint32 2058 Data uint32
2018} 2059}
2060
2061type FanotifyEventMetadata struct {
2062 Event_len uint32
2063 Vers uint8
2064 Reserved uint8
2065 Metadata_len uint16
2066 Mask uint64
2067 Fd int32
2068 Pid int32
2069}
2070
2071type FanotifyResponse struct {
2072 Fd int32
2073 Response uint32
2074}
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 ef76a36..be21189 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
@@ -407,6 +407,11 @@ type TCPInfo struct {
407 Total_retrans uint32 407 Total_retrans uint32
408} 408}
409 409
410type CanFilter struct {
411 Id uint32
412 Mask uint32
413}
414
410const ( 415const (
411 SizeofSockaddrInet4 = 0x10 416 SizeofSockaddrInet4 = 0x10
412 SizeofSockaddrInet6 = 0x1c 417 SizeofSockaddrInet6 = 0x1c
@@ -436,6 +441,7 @@ const (
436 SizeofICMPv6Filter = 0x20 441 SizeofICMPv6Filter = 0x20
437 SizeofUcred = 0xc 442 SizeofUcred = 0xc
438 SizeofTCPInfo = 0x68 443 SizeofTCPInfo = 0x68
444 SizeofCanFilter = 0x8
439) 445)
440 446
441const ( 447const (
@@ -571,6 +577,7 @@ const (
571 SizeofIfAddrmsg = 0x8 577 SizeofIfAddrmsg = 0x8
572 SizeofRtMsg = 0xc 578 SizeofRtMsg = 0xc
573 SizeofRtNexthop = 0x8 579 SizeofRtNexthop = 0x8
580 SizeofNdUseroptmsg = 0x10
574) 581)
575 582
576type NlMsghdr struct { 583type NlMsghdr struct {
@@ -636,6 +643,17 @@ type RtNexthop struct {
636 Ifindex int32 643 Ifindex int32
637} 644}
638 645
646type NdUseroptmsg struct {
647 Family uint8
648 Pad1 uint8
649 Opts_len uint16
650 Ifindex int32
651 Icmp_type uint8
652 Icmp_code uint8
653 Pad2 uint16
654 Pad3 uint32
655}
656
639const ( 657const (
640 SizeofSockFilter = 0x8 658 SizeofSockFilter = 0x8
641 SizeofSockFprog = 0x10 659 SizeofSockFprog = 0x10
@@ -945,7 +963,8 @@ type PerfEventAttr struct {
945 Clockid int32 963 Clockid int32
946 Sample_regs_intr uint64 964 Sample_regs_intr uint64
947 Aux_watermark uint32 965 Aux_watermark uint32
948 _ uint32 966 Sample_max_stack uint16
967 _ uint16
949} 968}
950 969
951type PerfEventMmapPage struct { 970type PerfEventMmapPage struct {
@@ -1048,6 +1067,7 @@ const (
1048 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1067 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1049 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1068 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1050 PERF_COUNT_SW_DUMMY = 0x9 1069 PERF_COUNT_SW_DUMMY = 0x9
1070 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1051 1071
1052 PERF_SAMPLE_IP = 0x1 1072 PERF_SAMPLE_IP = 0x1
1053 PERF_SAMPLE_TID = 0x2 1073 PERF_SAMPLE_TID = 0x2
@@ -1069,21 +1089,38 @@ const (
1069 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1089 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1070 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1090 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1071 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1091 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1092 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1093 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1094 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1095 PERF_SAMPLE_BRANCH_COND = 0x400
1096 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1097 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1098 PERF_SAMPLE_BRANCH_CALL = 0x2000
1099 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1100 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1101 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1072 1102
1073 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1103 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1074 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1104 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1075 PERF_FORMAT_ID = 0x4 1105 PERF_FORMAT_ID = 0x4
1076 PERF_FORMAT_GROUP = 0x8 1106 PERF_FORMAT_GROUP = 0x8
1077 1107
1078 PERF_RECORD_MMAP = 0x1 1108 PERF_RECORD_MMAP = 0x1
1079 PERF_RECORD_LOST = 0x2 1109 PERF_RECORD_LOST = 0x2
1080 PERF_RECORD_COMM = 0x3 1110 PERF_RECORD_COMM = 0x3
1081 PERF_RECORD_EXIT = 0x4 1111 PERF_RECORD_EXIT = 0x4
1082 PERF_RECORD_THROTTLE = 0x5 1112 PERF_RECORD_THROTTLE = 0x5
1083 PERF_RECORD_UNTHROTTLE = 0x6 1113 PERF_RECORD_UNTHROTTLE = 0x6
1084 PERF_RECORD_FORK = 0x7 1114 PERF_RECORD_FORK = 0x7
1085 PERF_RECORD_READ = 0x8 1115 PERF_RECORD_READ = 0x8
1086 PERF_RECORD_SAMPLE = 0x9 1116 PERF_RECORD_SAMPLE = 0x9
1117 PERF_RECORD_MMAP2 = 0xa
1118 PERF_RECORD_AUX = 0xb
1119 PERF_RECORD_ITRACE_START = 0xc
1120 PERF_RECORD_LOST_SAMPLES = 0xd
1121 PERF_RECORD_SWITCH = 0xe
1122 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1123 PERF_RECORD_NAMESPACES = 0x10
1087 1124
1088 PERF_CONTEXT_HV = -0x20 1125 PERF_CONTEXT_HV = -0x20
1089 PERF_CONTEXT_KERNEL = -0x80 1126 PERF_CONTEXT_KERNEL = -0x80
@@ -1096,6 +1133,7 @@ const (
1096 PERF_FLAG_FD_NO_GROUP = 0x1 1133 PERF_FLAG_FD_NO_GROUP = 0x1
1097 PERF_FLAG_FD_OUTPUT = 0x2 1134 PERF_FLAG_FD_OUTPUT = 0x2
1098 PERF_FLAG_PID_CGROUP = 0x4 1135 PERF_FLAG_PID_CGROUP = 0x4
1136 PERF_FLAG_FD_CLOEXEC = 0x8
1099) 1137)
1100 1138
1101const ( 1139const (
@@ -1401,6 +1439,9 @@ const (
1401 SizeofTpacketHdr = 0x20 1439 SizeofTpacketHdr = 0x20
1402 SizeofTpacket2Hdr = 0x20 1440 SizeofTpacket2Hdr = 0x20
1403 SizeofTpacket3Hdr = 0x30 1441 SizeofTpacket3Hdr = 0x30
1442
1443 SizeofTpacketStats = 0x8
1444 SizeofTpacketStatsV3 = 0xc
1404) 1445)
1405 1446
1406const ( 1447const (
@@ -2017,3 +2058,18 @@ type SockExtendedErr struct {
2017 Info uint32 2058 Info uint32
2018 Data uint32 2059 Data uint32
2019} 2060}
2061
2062type FanotifyEventMetadata struct {
2063 Event_len uint32
2064 Vers uint8
2065 Reserved uint8
2066 Metadata_len uint16
2067 Mask uint64
2068 Fd int32
2069 Pid int32
2070}
2071
2072type FanotifyResponse struct {
2073 Fd int32
2074 Response uint32
2075}
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 dbf0590..d599ca2 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
@@ -408,6 +408,11 @@ type TCPInfo struct {
408 Total_retrans uint32 408 Total_retrans uint32
409} 409}
410 410
411type CanFilter struct {
412 Id uint32
413 Mask uint32
414}
415
411const ( 416const (
412 SizeofSockaddrInet4 = 0x10 417 SizeofSockaddrInet4 = 0x10
413 SizeofSockaddrInet6 = 0x1c 418 SizeofSockaddrInet6 = 0x1c
@@ -437,6 +442,7 @@ const (
437 SizeofICMPv6Filter = 0x20 442 SizeofICMPv6Filter = 0x20
438 SizeofUcred = 0xc 443 SizeofUcred = 0xc
439 SizeofTCPInfo = 0x68 444 SizeofTCPInfo = 0x68
445 SizeofCanFilter = 0x8
440) 446)
441 447
442const ( 448const (
@@ -572,6 +578,7 @@ const (
572 SizeofIfAddrmsg = 0x8 578 SizeofIfAddrmsg = 0x8
573 SizeofRtMsg = 0xc 579 SizeofRtMsg = 0xc
574 SizeofRtNexthop = 0x8 580 SizeofRtNexthop = 0x8
581 SizeofNdUseroptmsg = 0x10
575) 582)
576 583
577type NlMsghdr struct { 584type NlMsghdr struct {
@@ -637,6 +644,17 @@ type RtNexthop struct {
637 Ifindex int32 644 Ifindex int32
638} 645}
639 646
647type NdUseroptmsg struct {
648 Family uint8
649 Pad1 uint8
650 Opts_len uint16
651 Ifindex int32
652 Icmp_type uint8
653 Icmp_code uint8
654 Pad2 uint16
655 Pad3 uint32
656}
657
640const ( 658const (
641 SizeofSockFilter = 0x8 659 SizeofSockFilter = 0x8
642 SizeofSockFprog = 0x8 660 SizeofSockFprog = 0x8
@@ -949,7 +967,8 @@ type PerfEventAttr struct {
949 Clockid int32 967 Clockid int32
950 Sample_regs_intr uint64 968 Sample_regs_intr uint64
951 Aux_watermark uint32 969 Aux_watermark uint32
952 _ uint32 970 Sample_max_stack uint16
971 _ uint16
953} 972}
954 973
955type PerfEventMmapPage struct { 974type PerfEventMmapPage struct {
@@ -1052,6 +1071,7 @@ const (
1052 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1071 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1053 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1072 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1054 PERF_COUNT_SW_DUMMY = 0x9 1073 PERF_COUNT_SW_DUMMY = 0x9
1074 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1055 1075
1056 PERF_SAMPLE_IP = 0x1 1076 PERF_SAMPLE_IP = 0x1
1057 PERF_SAMPLE_TID = 0x2 1077 PERF_SAMPLE_TID = 0x2
@@ -1073,21 +1093,38 @@ const (
1073 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1093 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1074 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1094 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1075 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1095 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1096 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1097 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1098 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1099 PERF_SAMPLE_BRANCH_COND = 0x400
1100 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1101 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1102 PERF_SAMPLE_BRANCH_CALL = 0x2000
1103 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1104 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1105 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1076 1106
1077 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1107 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1078 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1108 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1079 PERF_FORMAT_ID = 0x4 1109 PERF_FORMAT_ID = 0x4
1080 PERF_FORMAT_GROUP = 0x8 1110 PERF_FORMAT_GROUP = 0x8
1081 1111
1082 PERF_RECORD_MMAP = 0x1 1112 PERF_RECORD_MMAP = 0x1
1083 PERF_RECORD_LOST = 0x2 1113 PERF_RECORD_LOST = 0x2
1084 PERF_RECORD_COMM = 0x3 1114 PERF_RECORD_COMM = 0x3
1085 PERF_RECORD_EXIT = 0x4 1115 PERF_RECORD_EXIT = 0x4
1086 PERF_RECORD_THROTTLE = 0x5 1116 PERF_RECORD_THROTTLE = 0x5
1087 PERF_RECORD_UNTHROTTLE = 0x6 1117 PERF_RECORD_UNTHROTTLE = 0x6
1088 PERF_RECORD_FORK = 0x7 1118 PERF_RECORD_FORK = 0x7
1089 PERF_RECORD_READ = 0x8 1119 PERF_RECORD_READ = 0x8
1090 PERF_RECORD_SAMPLE = 0x9 1120 PERF_RECORD_SAMPLE = 0x9
1121 PERF_RECORD_MMAP2 = 0xa
1122 PERF_RECORD_AUX = 0xb
1123 PERF_RECORD_ITRACE_START = 0xc
1124 PERF_RECORD_LOST_SAMPLES = 0xd
1125 PERF_RECORD_SWITCH = 0xe
1126 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1127 PERF_RECORD_NAMESPACES = 0x10
1091 1128
1092 PERF_CONTEXT_HV = -0x20 1129 PERF_CONTEXT_HV = -0x20
1093 PERF_CONTEXT_KERNEL = -0x80 1130 PERF_CONTEXT_KERNEL = -0x80
@@ -1100,6 +1137,7 @@ const (
1100 PERF_FLAG_FD_NO_GROUP = 0x1 1137 PERF_FLAG_FD_NO_GROUP = 0x1
1101 PERF_FLAG_FD_OUTPUT = 0x2 1138 PERF_FLAG_FD_OUTPUT = 0x2
1102 PERF_FLAG_PID_CGROUP = 0x4 1139 PERF_FLAG_PID_CGROUP = 0x4
1140 PERF_FLAG_FD_CLOEXEC = 0x8
1103) 1141)
1104 1142
1105const ( 1143const (
@@ -1406,6 +1444,9 @@ const (
1406 SizeofTpacketHdr = 0x18 1444 SizeofTpacketHdr = 0x18
1407 SizeofTpacket2Hdr = 0x20 1445 SizeofTpacket2Hdr = 0x20
1408 SizeofTpacket3Hdr = 0x30 1446 SizeofTpacket3Hdr = 0x30
1447
1448 SizeofTpacketStats = 0x8
1449 SizeofTpacketStatsV3 = 0xc
1409) 1450)
1410 1451
1411const ( 1452const (
@@ -2022,3 +2063,18 @@ type SockExtendedErr struct {
2022 Info uint32 2063 Info uint32
2023 Data uint32 2064 Data uint32
2024} 2065}
2066
2067type FanotifyEventMetadata struct {
2068 Event_len uint32
2069 Vers uint8
2070 Reserved uint8
2071 Metadata_len uint16
2072 Mask uint64
2073 Fd int32
2074 Pid int32
2075}
2076
2077type FanotifyResponse struct {
2078 Fd int32
2079 Response uint32
2080}
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 1b7e670..011be86 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
@@ -407,6 +407,11 @@ type TCPInfo struct {
407 Total_retrans uint32 407 Total_retrans uint32
408} 408}
409 409
410type CanFilter struct {
411 Id uint32
412 Mask uint32
413}
414
410const ( 415const (
411 SizeofSockaddrInet4 = 0x10 416 SizeofSockaddrInet4 = 0x10
412 SizeofSockaddrInet6 = 0x1c 417 SizeofSockaddrInet6 = 0x1c
@@ -436,6 +441,7 @@ const (
436 SizeofICMPv6Filter = 0x20 441 SizeofICMPv6Filter = 0x20
437 SizeofUcred = 0xc 442 SizeofUcred = 0xc
438 SizeofTCPInfo = 0x68 443 SizeofTCPInfo = 0x68
444 SizeofCanFilter = 0x8
439) 445)
440 446
441const ( 447const (
@@ -571,6 +577,7 @@ const (
571 SizeofIfAddrmsg = 0x8 577 SizeofIfAddrmsg = 0x8
572 SizeofRtMsg = 0xc 578 SizeofRtMsg = 0xc
573 SizeofRtNexthop = 0x8 579 SizeofRtNexthop = 0x8
580 SizeofNdUseroptmsg = 0x10
574) 581)
575 582
576type NlMsghdr struct { 583type NlMsghdr struct {
@@ -636,6 +643,17 @@ type RtNexthop struct {
636 Ifindex int32 643 Ifindex int32
637} 644}
638 645
646type NdUseroptmsg struct {
647 Family uint8
648 Pad1 uint8
649 Opts_len uint16
650 Ifindex int32
651 Icmp_type uint8
652 Icmp_code uint8
653 Pad2 uint16
654 Pad3 uint32
655}
656
639const ( 657const (
640 SizeofSockFilter = 0x8 658 SizeofSockFilter = 0x8
641 SizeofSockFprog = 0x10 659 SizeofSockFprog = 0x10
@@ -947,7 +965,8 @@ type PerfEventAttr struct {
947 Clockid int32 965 Clockid int32
948 Sample_regs_intr uint64 966 Sample_regs_intr uint64
949 Aux_watermark uint32 967 Aux_watermark uint32
950 _ uint32 968 Sample_max_stack uint16
969 _ uint16
951} 970}
952 971
953type PerfEventMmapPage struct { 972type PerfEventMmapPage struct {
@@ -1050,6 +1069,7 @@ const (
1050 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1069 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1051 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1070 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1052 PERF_COUNT_SW_DUMMY = 0x9 1071 PERF_COUNT_SW_DUMMY = 0x9
1072 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1053 1073
1054 PERF_SAMPLE_IP = 0x1 1074 PERF_SAMPLE_IP = 0x1
1055 PERF_SAMPLE_TID = 0x2 1075 PERF_SAMPLE_TID = 0x2
@@ -1071,21 +1091,38 @@ const (
1071 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1091 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1072 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1092 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1073 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1093 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1094 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1095 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1096 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1097 PERF_SAMPLE_BRANCH_COND = 0x400
1098 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1099 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1100 PERF_SAMPLE_BRANCH_CALL = 0x2000
1101 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1102 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1103 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1074 1104
1075 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1105 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1076 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1106 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1077 PERF_FORMAT_ID = 0x4 1107 PERF_FORMAT_ID = 0x4
1078 PERF_FORMAT_GROUP = 0x8 1108 PERF_FORMAT_GROUP = 0x8
1079 1109
1080 PERF_RECORD_MMAP = 0x1 1110 PERF_RECORD_MMAP = 0x1
1081 PERF_RECORD_LOST = 0x2 1111 PERF_RECORD_LOST = 0x2
1082 PERF_RECORD_COMM = 0x3 1112 PERF_RECORD_COMM = 0x3
1083 PERF_RECORD_EXIT = 0x4 1113 PERF_RECORD_EXIT = 0x4
1084 PERF_RECORD_THROTTLE = 0x5 1114 PERF_RECORD_THROTTLE = 0x5
1085 PERF_RECORD_UNTHROTTLE = 0x6 1115 PERF_RECORD_UNTHROTTLE = 0x6
1086 PERF_RECORD_FORK = 0x7 1116 PERF_RECORD_FORK = 0x7
1087 PERF_RECORD_READ = 0x8 1117 PERF_RECORD_READ = 0x8
1088 PERF_RECORD_SAMPLE = 0x9 1118 PERF_RECORD_SAMPLE = 0x9
1119 PERF_RECORD_MMAP2 = 0xa
1120 PERF_RECORD_AUX = 0xb
1121 PERF_RECORD_ITRACE_START = 0xc
1122 PERF_RECORD_LOST_SAMPLES = 0xd
1123 PERF_RECORD_SWITCH = 0xe
1124 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1125 PERF_RECORD_NAMESPACES = 0x10
1089 1126
1090 PERF_CONTEXT_HV = -0x20 1127 PERF_CONTEXT_HV = -0x20
1091 PERF_CONTEXT_KERNEL = -0x80 1128 PERF_CONTEXT_KERNEL = -0x80
@@ -1098,6 +1135,7 @@ const (
1098 PERF_FLAG_FD_NO_GROUP = 0x1 1135 PERF_FLAG_FD_NO_GROUP = 0x1
1099 PERF_FLAG_FD_OUTPUT = 0x2 1136 PERF_FLAG_FD_OUTPUT = 0x2
1100 PERF_FLAG_PID_CGROUP = 0x4 1137 PERF_FLAG_PID_CGROUP = 0x4
1138 PERF_FLAG_FD_CLOEXEC = 0x8
1101) 1139)
1102 1140
1103const ( 1141const (
@@ -1403,6 +1441,9 @@ const (
1403 SizeofTpacketHdr = 0x20 1441 SizeofTpacketHdr = 0x20
1404 SizeofTpacket2Hdr = 0x20 1442 SizeofTpacket2Hdr = 0x20
1405 SizeofTpacket3Hdr = 0x30 1443 SizeofTpacket3Hdr = 0x30
1444
1445 SizeofTpacketStats = 0x8
1446 SizeofTpacketStatsV3 = 0xc
1406) 1447)
1407 1448
1408const ( 1449const (
@@ -2019,3 +2060,18 @@ type SockExtendedErr struct {
2019 Info uint32 2060 Info uint32
2020 Data uint32 2061 Data uint32
2021} 2062}
2063
2064type FanotifyEventMetadata struct {
2065 Event_len uint32
2066 Vers uint8
2067 Reserved uint8
2068 Metadata_len uint16
2069 Mask uint64
2070 Fd int32
2071 Pid int32
2072}
2073
2074type FanotifyResponse struct {
2075 Fd int32
2076 Response uint32
2077}
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 5737900..8163445 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
@@ -407,6 +407,11 @@ type TCPInfo struct {
407 Total_retrans uint32 407 Total_retrans uint32
408} 408}
409 409
410type CanFilter struct {
411 Id uint32
412 Mask uint32
413}
414
410const ( 415const (
411 SizeofSockaddrInet4 = 0x10 416 SizeofSockaddrInet4 = 0x10
412 SizeofSockaddrInet6 = 0x1c 417 SizeofSockaddrInet6 = 0x1c
@@ -436,6 +441,7 @@ const (
436 SizeofICMPv6Filter = 0x20 441 SizeofICMPv6Filter = 0x20
437 SizeofUcred = 0xc 442 SizeofUcred = 0xc
438 SizeofTCPInfo = 0x68 443 SizeofTCPInfo = 0x68
444 SizeofCanFilter = 0x8
439) 445)
440 446
441const ( 447const (
@@ -571,6 +577,7 @@ const (
571 SizeofIfAddrmsg = 0x8 577 SizeofIfAddrmsg = 0x8
572 SizeofRtMsg = 0xc 578 SizeofRtMsg = 0xc
573 SizeofRtNexthop = 0x8 579 SizeofRtNexthop = 0x8
580 SizeofNdUseroptmsg = 0x10
574) 581)
575 582
576type NlMsghdr struct { 583type NlMsghdr struct {
@@ -636,6 +643,17 @@ type RtNexthop struct {
636 Ifindex int32 643 Ifindex int32
637} 644}
638 645
646type NdUseroptmsg struct {
647 Family uint8
648 Pad1 uint8
649 Opts_len uint16
650 Ifindex int32
651 Icmp_type uint8
652 Icmp_code uint8
653 Pad2 uint16
654 Pad3 uint32
655}
656
639const ( 657const (
640 SizeofSockFilter = 0x8 658 SizeofSockFilter = 0x8
641 SizeofSockFprog = 0x10 659 SizeofSockFprog = 0x10
@@ -947,7 +965,8 @@ type PerfEventAttr struct {
947 Clockid int32 965 Clockid int32
948 Sample_regs_intr uint64 966 Sample_regs_intr uint64
949 Aux_watermark uint32 967 Aux_watermark uint32
950 _ uint32 968 Sample_max_stack uint16
969 _ uint16
951} 970}
952 971
953type PerfEventMmapPage struct { 972type PerfEventMmapPage struct {
@@ -1050,6 +1069,7 @@ const (
1050 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1069 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1051 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1070 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1052 PERF_COUNT_SW_DUMMY = 0x9 1071 PERF_COUNT_SW_DUMMY = 0x9
1072 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1053 1073
1054 PERF_SAMPLE_IP = 0x1 1074 PERF_SAMPLE_IP = 0x1
1055 PERF_SAMPLE_TID = 0x2 1075 PERF_SAMPLE_TID = 0x2
@@ -1071,21 +1091,38 @@ const (
1071 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1091 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1072 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1092 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1073 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1093 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1094 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1095 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1096 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1097 PERF_SAMPLE_BRANCH_COND = 0x400
1098 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1099 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1100 PERF_SAMPLE_BRANCH_CALL = 0x2000
1101 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1102 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1103 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1074 1104
1075 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1105 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1076 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1106 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1077 PERF_FORMAT_ID = 0x4 1107 PERF_FORMAT_ID = 0x4
1078 PERF_FORMAT_GROUP = 0x8 1108 PERF_FORMAT_GROUP = 0x8
1079 1109
1080 PERF_RECORD_MMAP = 0x1 1110 PERF_RECORD_MMAP = 0x1
1081 PERF_RECORD_LOST = 0x2 1111 PERF_RECORD_LOST = 0x2
1082 PERF_RECORD_COMM = 0x3 1112 PERF_RECORD_COMM = 0x3
1083 PERF_RECORD_EXIT = 0x4 1113 PERF_RECORD_EXIT = 0x4
1084 PERF_RECORD_THROTTLE = 0x5 1114 PERF_RECORD_THROTTLE = 0x5
1085 PERF_RECORD_UNTHROTTLE = 0x6 1115 PERF_RECORD_UNTHROTTLE = 0x6
1086 PERF_RECORD_FORK = 0x7 1116 PERF_RECORD_FORK = 0x7
1087 PERF_RECORD_READ = 0x8 1117 PERF_RECORD_READ = 0x8
1088 PERF_RECORD_SAMPLE = 0x9 1118 PERF_RECORD_SAMPLE = 0x9
1119 PERF_RECORD_MMAP2 = 0xa
1120 PERF_RECORD_AUX = 0xb
1121 PERF_RECORD_ITRACE_START = 0xc
1122 PERF_RECORD_LOST_SAMPLES = 0xd
1123 PERF_RECORD_SWITCH = 0xe
1124 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1125 PERF_RECORD_NAMESPACES = 0x10
1089 1126
1090 PERF_CONTEXT_HV = -0x20 1127 PERF_CONTEXT_HV = -0x20
1091 PERF_CONTEXT_KERNEL = -0x80 1128 PERF_CONTEXT_KERNEL = -0x80
@@ -1098,6 +1135,7 @@ const (
1098 PERF_FLAG_FD_NO_GROUP = 0x1 1135 PERF_FLAG_FD_NO_GROUP = 0x1
1099 PERF_FLAG_FD_OUTPUT = 0x2 1136 PERF_FLAG_FD_OUTPUT = 0x2
1100 PERF_FLAG_PID_CGROUP = 0x4 1137 PERF_FLAG_PID_CGROUP = 0x4
1138 PERF_FLAG_FD_CLOEXEC = 0x8
1101) 1139)
1102 1140
1103const ( 1141const (
@@ -1403,6 +1441,9 @@ const (
1403 SizeofTpacketHdr = 0x20 1441 SizeofTpacketHdr = 0x20
1404 SizeofTpacket2Hdr = 0x20 1442 SizeofTpacket2Hdr = 0x20
1405 SizeofTpacket3Hdr = 0x30 1443 SizeofTpacket3Hdr = 0x30
1444
1445 SizeofTpacketStats = 0x8
1446 SizeofTpacketStatsV3 = 0xc
1406) 1447)
1407 1448
1408const ( 1449const (
@@ -2019,3 +2060,18 @@ type SockExtendedErr struct {
2019 Info uint32 2060 Info uint32
2020 Data uint32 2061 Data uint32
2021} 2062}
2063
2064type FanotifyEventMetadata struct {
2065 Event_len uint32
2066 Vers uint8
2067 Reserved uint8
2068 Metadata_len uint16
2069 Mask uint64
2070 Fd int32
2071 Pid int32
2072}
2073
2074type FanotifyResponse struct {
2075 Fd int32
2076 Response uint32
2077}
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 0e88bf4..4ecf7a8 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
@@ -408,6 +408,11 @@ type TCPInfo struct {
408 Total_retrans uint32 408 Total_retrans uint32
409} 409}
410 410
411type CanFilter struct {
412 Id uint32
413 Mask uint32
414}
415
411const ( 416const (
412 SizeofSockaddrInet4 = 0x10 417 SizeofSockaddrInet4 = 0x10
413 SizeofSockaddrInet6 = 0x1c 418 SizeofSockaddrInet6 = 0x1c
@@ -437,6 +442,7 @@ const (
437 SizeofICMPv6Filter = 0x20 442 SizeofICMPv6Filter = 0x20
438 SizeofUcred = 0xc 443 SizeofUcred = 0xc
439 SizeofTCPInfo = 0x68 444 SizeofTCPInfo = 0x68
445 SizeofCanFilter = 0x8
440) 446)
441 447
442const ( 448const (
@@ -572,6 +578,7 @@ const (
572 SizeofIfAddrmsg = 0x8 578 SizeofIfAddrmsg = 0x8
573 SizeofRtMsg = 0xc 579 SizeofRtMsg = 0xc
574 SizeofRtNexthop = 0x8 580 SizeofRtNexthop = 0x8
581 SizeofNdUseroptmsg = 0x10
575) 582)
576 583
577type NlMsghdr struct { 584type NlMsghdr struct {
@@ -637,6 +644,17 @@ type RtNexthop struct {
637 Ifindex int32 644 Ifindex int32
638} 645}
639 646
647type NdUseroptmsg struct {
648 Family uint8
649 Pad1 uint8
650 Opts_len uint16
651 Ifindex int32
652 Icmp_type uint8
653 Icmp_code uint8
654 Pad2 uint16
655 Pad3 uint32
656}
657
640const ( 658const (
641 SizeofSockFilter = 0x8 659 SizeofSockFilter = 0x8
642 SizeofSockFprog = 0x8 660 SizeofSockFprog = 0x8
@@ -949,7 +967,8 @@ type PerfEventAttr struct {
949 Clockid int32 967 Clockid int32
950 Sample_regs_intr uint64 968 Sample_regs_intr uint64
951 Aux_watermark uint32 969 Aux_watermark uint32
952 _ uint32 970 Sample_max_stack uint16
971 _ uint16
953} 972}
954 973
955type PerfEventMmapPage struct { 974type PerfEventMmapPage struct {
@@ -1052,6 +1071,7 @@ const (
1052 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1071 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1053 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1072 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1054 PERF_COUNT_SW_DUMMY = 0x9 1073 PERF_COUNT_SW_DUMMY = 0x9
1074 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1055 1075
1056 PERF_SAMPLE_IP = 0x1 1076 PERF_SAMPLE_IP = 0x1
1057 PERF_SAMPLE_TID = 0x2 1077 PERF_SAMPLE_TID = 0x2
@@ -1073,21 +1093,38 @@ const (
1073 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1093 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1074 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1094 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1075 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1095 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1096 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1097 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1098 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1099 PERF_SAMPLE_BRANCH_COND = 0x400
1100 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1101 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1102 PERF_SAMPLE_BRANCH_CALL = 0x2000
1103 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1104 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1105 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1076 1106
1077 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1107 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1078 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1108 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1079 PERF_FORMAT_ID = 0x4 1109 PERF_FORMAT_ID = 0x4
1080 PERF_FORMAT_GROUP = 0x8 1110 PERF_FORMAT_GROUP = 0x8
1081 1111
1082 PERF_RECORD_MMAP = 0x1 1112 PERF_RECORD_MMAP = 0x1
1083 PERF_RECORD_LOST = 0x2 1113 PERF_RECORD_LOST = 0x2
1084 PERF_RECORD_COMM = 0x3 1114 PERF_RECORD_COMM = 0x3
1085 PERF_RECORD_EXIT = 0x4 1115 PERF_RECORD_EXIT = 0x4
1086 PERF_RECORD_THROTTLE = 0x5 1116 PERF_RECORD_THROTTLE = 0x5
1087 PERF_RECORD_UNTHROTTLE = 0x6 1117 PERF_RECORD_UNTHROTTLE = 0x6
1088 PERF_RECORD_FORK = 0x7 1118 PERF_RECORD_FORK = 0x7
1089 PERF_RECORD_READ = 0x8 1119 PERF_RECORD_READ = 0x8
1090 PERF_RECORD_SAMPLE = 0x9 1120 PERF_RECORD_SAMPLE = 0x9
1121 PERF_RECORD_MMAP2 = 0xa
1122 PERF_RECORD_AUX = 0xb
1123 PERF_RECORD_ITRACE_START = 0xc
1124 PERF_RECORD_LOST_SAMPLES = 0xd
1125 PERF_RECORD_SWITCH = 0xe
1126 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1127 PERF_RECORD_NAMESPACES = 0x10
1091 1128
1092 PERF_CONTEXT_HV = -0x20 1129 PERF_CONTEXT_HV = -0x20
1093 PERF_CONTEXT_KERNEL = -0x80 1130 PERF_CONTEXT_KERNEL = -0x80
@@ -1100,6 +1137,7 @@ const (
1100 PERF_FLAG_FD_NO_GROUP = 0x1 1137 PERF_FLAG_FD_NO_GROUP = 0x1
1101 PERF_FLAG_FD_OUTPUT = 0x2 1138 PERF_FLAG_FD_OUTPUT = 0x2
1102 PERF_FLAG_PID_CGROUP = 0x4 1139 PERF_FLAG_PID_CGROUP = 0x4
1140 PERF_FLAG_FD_CLOEXEC = 0x8
1103) 1141)
1104 1142
1105const ( 1143const (
@@ -1406,6 +1444,9 @@ const (
1406 SizeofTpacketHdr = 0x18 1444 SizeofTpacketHdr = 0x18
1407 SizeofTpacket2Hdr = 0x20 1445 SizeofTpacket2Hdr = 0x20
1408 SizeofTpacket3Hdr = 0x30 1446 SizeofTpacket3Hdr = 0x30
1447
1448 SizeofTpacketStats = 0x8
1449 SizeofTpacketStatsV3 = 0xc
1409) 1450)
1410 1451
1411const ( 1452const (
@@ -2022,3 +2063,18 @@ type SockExtendedErr struct {
2022 Info uint32 2063 Info uint32
2023 Data uint32 2064 Data uint32
2024} 2065}
2066
2067type FanotifyEventMetadata struct {
2068 Event_len uint32
2069 Vers uint8
2070 Reserved uint8
2071 Metadata_len uint16
2072 Mask uint64
2073 Fd int32
2074 Pid int32
2075}
2076
2077type FanotifyResponse struct {
2078 Fd int32
2079 Response uint32
2080}
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 5ac91b3..ea817ba 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
@@ -408,6 +408,11 @@ type TCPInfo struct {
408 Total_retrans uint32 408 Total_retrans uint32
409} 409}
410 410
411type CanFilter struct {
412 Id uint32
413 Mask uint32
414}
415
411const ( 416const (
412 SizeofSockaddrInet4 = 0x10 417 SizeofSockaddrInet4 = 0x10
413 SizeofSockaddrInet6 = 0x1c 418 SizeofSockaddrInet6 = 0x1c
@@ -437,6 +442,7 @@ const (
437 SizeofICMPv6Filter = 0x20 442 SizeofICMPv6Filter = 0x20
438 SizeofUcred = 0xc 443 SizeofUcred = 0xc
439 SizeofTCPInfo = 0x68 444 SizeofTCPInfo = 0x68
445 SizeofCanFilter = 0x8
440) 446)
441 447
442const ( 448const (
@@ -572,6 +578,7 @@ const (
572 SizeofIfAddrmsg = 0x8 578 SizeofIfAddrmsg = 0x8
573 SizeofRtMsg = 0xc 579 SizeofRtMsg = 0xc
574 SizeofRtNexthop = 0x8 580 SizeofRtNexthop = 0x8
581 SizeofNdUseroptmsg = 0x10
575) 582)
576 583
577type NlMsghdr struct { 584type NlMsghdr struct {
@@ -637,6 +644,17 @@ type RtNexthop struct {
637 Ifindex int32 644 Ifindex int32
638} 645}
639 646
647type NdUseroptmsg struct {
648 Family uint8
649 Pad1 uint8
650 Opts_len uint16
651 Ifindex int32
652 Icmp_type uint8
653 Icmp_code uint8
654 Pad2 uint16
655 Pad3 uint32
656}
657
640const ( 658const (
641 SizeofSockFilter = 0x8 659 SizeofSockFilter = 0x8
642 SizeofSockFprog = 0x10 660 SizeofSockFprog = 0x10
@@ -955,7 +973,8 @@ type PerfEventAttr struct {
955 Clockid int32 973 Clockid int32
956 Sample_regs_intr uint64 974 Sample_regs_intr uint64
957 Aux_watermark uint32 975 Aux_watermark uint32
958 _ uint32 976 Sample_max_stack uint16
977 _ uint16
959} 978}
960 979
961type PerfEventMmapPage struct { 980type PerfEventMmapPage struct {
@@ -1058,6 +1077,7 @@ const (
1058 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1077 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1059 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1078 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1060 PERF_COUNT_SW_DUMMY = 0x9 1079 PERF_COUNT_SW_DUMMY = 0x9
1080 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1061 1081
1062 PERF_SAMPLE_IP = 0x1 1082 PERF_SAMPLE_IP = 0x1
1063 PERF_SAMPLE_TID = 0x2 1083 PERF_SAMPLE_TID = 0x2
@@ -1079,21 +1099,38 @@ const (
1079 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1099 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1080 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1100 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1081 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1101 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1102 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1103 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1104 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1105 PERF_SAMPLE_BRANCH_COND = 0x400
1106 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1107 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1108 PERF_SAMPLE_BRANCH_CALL = 0x2000
1109 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1110 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1111 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1082 1112
1083 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1113 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1084 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1114 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1085 PERF_FORMAT_ID = 0x4 1115 PERF_FORMAT_ID = 0x4
1086 PERF_FORMAT_GROUP = 0x8 1116 PERF_FORMAT_GROUP = 0x8
1087 1117
1088 PERF_RECORD_MMAP = 0x1 1118 PERF_RECORD_MMAP = 0x1
1089 PERF_RECORD_LOST = 0x2 1119 PERF_RECORD_LOST = 0x2
1090 PERF_RECORD_COMM = 0x3 1120 PERF_RECORD_COMM = 0x3
1091 PERF_RECORD_EXIT = 0x4 1121 PERF_RECORD_EXIT = 0x4
1092 PERF_RECORD_THROTTLE = 0x5 1122 PERF_RECORD_THROTTLE = 0x5
1093 PERF_RECORD_UNTHROTTLE = 0x6 1123 PERF_RECORD_UNTHROTTLE = 0x6
1094 PERF_RECORD_FORK = 0x7 1124 PERF_RECORD_FORK = 0x7
1095 PERF_RECORD_READ = 0x8 1125 PERF_RECORD_READ = 0x8
1096 PERF_RECORD_SAMPLE = 0x9 1126 PERF_RECORD_SAMPLE = 0x9
1127 PERF_RECORD_MMAP2 = 0xa
1128 PERF_RECORD_AUX = 0xb
1129 PERF_RECORD_ITRACE_START = 0xc
1130 PERF_RECORD_LOST_SAMPLES = 0xd
1131 PERF_RECORD_SWITCH = 0xe
1132 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1133 PERF_RECORD_NAMESPACES = 0x10
1097 1134
1098 PERF_CONTEXT_HV = -0x20 1135 PERF_CONTEXT_HV = -0x20
1099 PERF_CONTEXT_KERNEL = -0x80 1136 PERF_CONTEXT_KERNEL = -0x80
@@ -1106,6 +1143,7 @@ const (
1106 PERF_FLAG_FD_NO_GROUP = 0x1 1143 PERF_FLAG_FD_NO_GROUP = 0x1
1107 PERF_FLAG_FD_OUTPUT = 0x2 1144 PERF_FLAG_FD_OUTPUT = 0x2
1108 PERF_FLAG_PID_CGROUP = 0x4 1145 PERF_FLAG_PID_CGROUP = 0x4
1146 PERF_FLAG_FD_CLOEXEC = 0x8
1109) 1147)
1110 1148
1111const ( 1149const (
@@ -1411,6 +1449,9 @@ const (
1411 SizeofTpacketHdr = 0x20 1449 SizeofTpacketHdr = 0x20
1412 SizeofTpacket2Hdr = 0x20 1450 SizeofTpacket2Hdr = 0x20
1413 SizeofTpacket3Hdr = 0x30 1451 SizeofTpacket3Hdr = 0x30
1452
1453 SizeofTpacketStats = 0x8
1454 SizeofTpacketStatsV3 = 0xc
1414) 1455)
1415 1456
1416const ( 1457const (
@@ -2027,3 +2068,18 @@ type SockExtendedErr struct {
2027 Info uint32 2068 Info uint32
2028 Data uint32 2069 Data uint32
2029} 2070}
2071
2072type FanotifyEventMetadata struct {
2073 Event_len uint32
2074 Vers uint8
2075 Reserved uint8
2076 Metadata_len uint16
2077 Mask uint64
2078 Fd int32
2079 Pid int32
2080}
2081
2082type FanotifyResponse struct {
2083 Fd int32
2084 Response uint32
2085}
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 1e59b45..192ea3b 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
@@ -408,6 +408,11 @@ type TCPInfo struct {
408 Total_retrans uint32 408 Total_retrans uint32
409} 409}
410 410
411type CanFilter struct {
412 Id uint32
413 Mask uint32
414}
415
411const ( 416const (
412 SizeofSockaddrInet4 = 0x10 417 SizeofSockaddrInet4 = 0x10
413 SizeofSockaddrInet6 = 0x1c 418 SizeofSockaddrInet6 = 0x1c
@@ -437,6 +442,7 @@ const (
437 SizeofICMPv6Filter = 0x20 442 SizeofICMPv6Filter = 0x20
438 SizeofUcred = 0xc 443 SizeofUcred = 0xc
439 SizeofTCPInfo = 0x68 444 SizeofTCPInfo = 0x68
445 SizeofCanFilter = 0x8
440) 446)
441 447
442const ( 448const (
@@ -572,6 +578,7 @@ const (
572 SizeofIfAddrmsg = 0x8 578 SizeofIfAddrmsg = 0x8
573 SizeofRtMsg = 0xc 579 SizeofRtMsg = 0xc
574 SizeofRtNexthop = 0x8 580 SizeofRtNexthop = 0x8
581 SizeofNdUseroptmsg = 0x10
575) 582)
576 583
577type NlMsghdr struct { 584type NlMsghdr struct {
@@ -637,6 +644,17 @@ type RtNexthop struct {
637 Ifindex int32 644 Ifindex int32
638} 645}
639 646
647type NdUseroptmsg struct {
648 Family uint8
649 Pad1 uint8
650 Opts_len uint16
651 Ifindex int32
652 Icmp_type uint8
653 Icmp_code uint8
654 Pad2 uint16
655 Pad3 uint32
656}
657
640const ( 658const (
641 SizeofSockFilter = 0x8 659 SizeofSockFilter = 0x8
642 SizeofSockFprog = 0x10 660 SizeofSockFprog = 0x10
@@ -955,7 +973,8 @@ type PerfEventAttr struct {
955 Clockid int32 973 Clockid int32
956 Sample_regs_intr uint64 974 Sample_regs_intr uint64
957 Aux_watermark uint32 975 Aux_watermark uint32
958 _ uint32 976 Sample_max_stack uint16
977 _ uint16
959} 978}
960 979
961type PerfEventMmapPage struct { 980type PerfEventMmapPage struct {
@@ -1058,6 +1077,7 @@ const (
1058 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1077 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1059 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1078 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1060 PERF_COUNT_SW_DUMMY = 0x9 1079 PERF_COUNT_SW_DUMMY = 0x9
1080 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1061 1081
1062 PERF_SAMPLE_IP = 0x1 1082 PERF_SAMPLE_IP = 0x1
1063 PERF_SAMPLE_TID = 0x2 1083 PERF_SAMPLE_TID = 0x2
@@ -1079,21 +1099,38 @@ const (
1079 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1099 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1080 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1100 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1081 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1101 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1102 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1103 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1104 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1105 PERF_SAMPLE_BRANCH_COND = 0x400
1106 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1107 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1108 PERF_SAMPLE_BRANCH_CALL = 0x2000
1109 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1110 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1111 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1082 1112
1083 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1113 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1084 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1114 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1085 PERF_FORMAT_ID = 0x4 1115 PERF_FORMAT_ID = 0x4
1086 PERF_FORMAT_GROUP = 0x8 1116 PERF_FORMAT_GROUP = 0x8
1087 1117
1088 PERF_RECORD_MMAP = 0x1 1118 PERF_RECORD_MMAP = 0x1
1089 PERF_RECORD_LOST = 0x2 1119 PERF_RECORD_LOST = 0x2
1090 PERF_RECORD_COMM = 0x3 1120 PERF_RECORD_COMM = 0x3
1091 PERF_RECORD_EXIT = 0x4 1121 PERF_RECORD_EXIT = 0x4
1092 PERF_RECORD_THROTTLE = 0x5 1122 PERF_RECORD_THROTTLE = 0x5
1093 PERF_RECORD_UNTHROTTLE = 0x6 1123 PERF_RECORD_UNTHROTTLE = 0x6
1094 PERF_RECORD_FORK = 0x7 1124 PERF_RECORD_FORK = 0x7
1095 PERF_RECORD_READ = 0x8 1125 PERF_RECORD_READ = 0x8
1096 PERF_RECORD_SAMPLE = 0x9 1126 PERF_RECORD_SAMPLE = 0x9
1127 PERF_RECORD_MMAP2 = 0xa
1128 PERF_RECORD_AUX = 0xb
1129 PERF_RECORD_ITRACE_START = 0xc
1130 PERF_RECORD_LOST_SAMPLES = 0xd
1131 PERF_RECORD_SWITCH = 0xe
1132 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1133 PERF_RECORD_NAMESPACES = 0x10
1097 1134
1098 PERF_CONTEXT_HV = -0x20 1135 PERF_CONTEXT_HV = -0x20
1099 PERF_CONTEXT_KERNEL = -0x80 1136 PERF_CONTEXT_KERNEL = -0x80
@@ -1106,6 +1143,7 @@ const (
1106 PERF_FLAG_FD_NO_GROUP = 0x1 1143 PERF_FLAG_FD_NO_GROUP = 0x1
1107 PERF_FLAG_FD_OUTPUT = 0x2 1144 PERF_FLAG_FD_OUTPUT = 0x2
1108 PERF_FLAG_PID_CGROUP = 0x4 1145 PERF_FLAG_PID_CGROUP = 0x4
1146 PERF_FLAG_FD_CLOEXEC = 0x8
1109) 1147)
1110 1148
1111const ( 1149const (
@@ -1411,6 +1449,9 @@ const (
1411 SizeofTpacketHdr = 0x20 1449 SizeofTpacketHdr = 0x20
1412 SizeofTpacket2Hdr = 0x20 1450 SizeofTpacket2Hdr = 0x20
1413 SizeofTpacket3Hdr = 0x30 1451 SizeofTpacket3Hdr = 0x30
1452
1453 SizeofTpacketStats = 0x8
1454 SizeofTpacketStatsV3 = 0xc
1414) 1455)
1415 1456
1416const ( 1457const (
@@ -2027,3 +2068,18 @@ type SockExtendedErr struct {
2027 Info uint32 2068 Info uint32
2028 Data uint32 2069 Data uint32
2029} 2070}
2071
2072type FanotifyEventMetadata struct {
2073 Event_len uint32
2074 Vers uint8
2075 Reserved uint8
2076 Metadata_len uint16
2077 Mask uint64
2078 Fd int32
2079 Pid int32
2080}
2081
2082type FanotifyResponse struct {
2083 Fd int32
2084 Response uint32
2085}
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 508885f..673e5e7 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
@@ -407,6 +407,11 @@ type TCPInfo struct {
407 Total_retrans uint32 407 Total_retrans uint32
408} 408}
409 409
410type CanFilter struct {
411 Id uint32
412 Mask uint32
413}
414
410const ( 415const (
411 SizeofSockaddrInet4 = 0x10 416 SizeofSockaddrInet4 = 0x10
412 SizeofSockaddrInet6 = 0x1c 417 SizeofSockaddrInet6 = 0x1c
@@ -436,6 +441,7 @@ const (
436 SizeofICMPv6Filter = 0x20 441 SizeofICMPv6Filter = 0x20
437 SizeofUcred = 0xc 442 SizeofUcred = 0xc
438 SizeofTCPInfo = 0x68 443 SizeofTCPInfo = 0x68
444 SizeofCanFilter = 0x8
439) 445)
440 446
441const ( 447const (
@@ -571,6 +577,7 @@ const (
571 SizeofIfAddrmsg = 0x8 577 SizeofIfAddrmsg = 0x8
572 SizeofRtMsg = 0xc 578 SizeofRtMsg = 0xc
573 SizeofRtNexthop = 0x8 579 SizeofRtNexthop = 0x8
580 SizeofNdUseroptmsg = 0x10
574) 581)
575 582
576type NlMsghdr struct { 583type NlMsghdr struct {
@@ -636,6 +643,17 @@ type RtNexthop struct {
636 Ifindex int32 643 Ifindex int32
637} 644}
638 645
646type NdUseroptmsg struct {
647 Family uint8
648 Pad1 uint8
649 Opts_len uint16
650 Ifindex int32
651 Icmp_type uint8
652 Icmp_code uint8
653 Pad2 uint16
654 Pad3 uint32
655}
656
639const ( 657const (
640 SizeofSockFilter = 0x8 658 SizeofSockFilter = 0x8
641 SizeofSockFprog = 0x10 659 SizeofSockFprog = 0x10
@@ -972,7 +990,8 @@ type PerfEventAttr struct {
972 Clockid int32 990 Clockid int32
973 Sample_regs_intr uint64 991 Sample_regs_intr uint64
974 Aux_watermark uint32 992 Aux_watermark uint32
975 _ uint32 993 Sample_max_stack uint16
994 _ uint16
976} 995}
977 996
978type PerfEventMmapPage struct { 997type PerfEventMmapPage struct {
@@ -1075,6 +1094,7 @@ const (
1075 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1094 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1076 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1095 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1077 PERF_COUNT_SW_DUMMY = 0x9 1096 PERF_COUNT_SW_DUMMY = 0x9
1097 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1078 1098
1079 PERF_SAMPLE_IP = 0x1 1099 PERF_SAMPLE_IP = 0x1
1080 PERF_SAMPLE_TID = 0x2 1100 PERF_SAMPLE_TID = 0x2
@@ -1096,21 +1116,38 @@ const (
1096 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1116 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1097 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1117 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1098 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1118 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1119 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1120 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1121 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1122 PERF_SAMPLE_BRANCH_COND = 0x400
1123 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1124 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1125 PERF_SAMPLE_BRANCH_CALL = 0x2000
1126 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1127 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1128 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1099 1129
1100 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1130 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1101 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1131 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1102 PERF_FORMAT_ID = 0x4 1132 PERF_FORMAT_ID = 0x4
1103 PERF_FORMAT_GROUP = 0x8 1133 PERF_FORMAT_GROUP = 0x8
1104 1134
1105 PERF_RECORD_MMAP = 0x1 1135 PERF_RECORD_MMAP = 0x1
1106 PERF_RECORD_LOST = 0x2 1136 PERF_RECORD_LOST = 0x2
1107 PERF_RECORD_COMM = 0x3 1137 PERF_RECORD_COMM = 0x3
1108 PERF_RECORD_EXIT = 0x4 1138 PERF_RECORD_EXIT = 0x4
1109 PERF_RECORD_THROTTLE = 0x5 1139 PERF_RECORD_THROTTLE = 0x5
1110 PERF_RECORD_UNTHROTTLE = 0x6 1140 PERF_RECORD_UNTHROTTLE = 0x6
1111 PERF_RECORD_FORK = 0x7 1141 PERF_RECORD_FORK = 0x7
1112 PERF_RECORD_READ = 0x8 1142 PERF_RECORD_READ = 0x8
1113 PERF_RECORD_SAMPLE = 0x9 1143 PERF_RECORD_SAMPLE = 0x9
1144 PERF_RECORD_MMAP2 = 0xa
1145 PERF_RECORD_AUX = 0xb
1146 PERF_RECORD_ITRACE_START = 0xc
1147 PERF_RECORD_LOST_SAMPLES = 0xd
1148 PERF_RECORD_SWITCH = 0xe
1149 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1150 PERF_RECORD_NAMESPACES = 0x10
1114 1151
1115 PERF_CONTEXT_HV = -0x20 1152 PERF_CONTEXT_HV = -0x20
1116 PERF_CONTEXT_KERNEL = -0x80 1153 PERF_CONTEXT_KERNEL = -0x80
@@ -1123,6 +1160,7 @@ const (
1123 PERF_FLAG_FD_NO_GROUP = 0x1 1160 PERF_FLAG_FD_NO_GROUP = 0x1
1124 PERF_FLAG_FD_OUTPUT = 0x2 1161 PERF_FLAG_FD_OUTPUT = 0x2
1125 PERF_FLAG_PID_CGROUP = 0x4 1162 PERF_FLAG_PID_CGROUP = 0x4
1163 PERF_FLAG_FD_CLOEXEC = 0x8
1126) 1164)
1127 1165
1128const ( 1166const (
@@ -1428,6 +1466,9 @@ const (
1428 SizeofTpacketHdr = 0x20 1466 SizeofTpacketHdr = 0x20
1429 SizeofTpacket2Hdr = 0x20 1467 SizeofTpacket2Hdr = 0x20
1430 SizeofTpacket3Hdr = 0x30 1468 SizeofTpacket3Hdr = 0x30
1469
1470 SizeofTpacketStats = 0x8
1471 SizeofTpacketStatsV3 = 0xc
1431) 1472)
1432 1473
1433const ( 1474const (
@@ -2044,3 +2085,18 @@ type SockExtendedErr struct {
2044 Info uint32 2085 Info uint32
2045 Data uint32 2086 Data uint32
2046} 2087}
2088
2089type FanotifyEventMetadata struct {
2090 Event_len uint32
2091 Vers uint8
2092 Reserved uint8
2093 Metadata_len uint16
2094 Mask uint64
2095 Fd int32
2096 Pid int32
2097}
2098
2099type FanotifyResponse struct {
2100 Fd int32
2101 Response uint32
2102}
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 d315f2c..faafcdd 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
@@ -406,6 +406,11 @@ type TCPInfo struct {
406 Total_retrans uint32 406 Total_retrans uint32
407} 407}
408 408
409type CanFilter struct {
410 Id uint32
411 Mask uint32
412}
413
409const ( 414const (
410 SizeofSockaddrInet4 = 0x10 415 SizeofSockaddrInet4 = 0x10
411 SizeofSockaddrInet6 = 0x1c 416 SizeofSockaddrInet6 = 0x1c
@@ -435,6 +440,7 @@ const (
435 SizeofICMPv6Filter = 0x20 440 SizeofICMPv6Filter = 0x20
436 SizeofUcred = 0xc 441 SizeofUcred = 0xc
437 SizeofTCPInfo = 0x68 442 SizeofTCPInfo = 0x68
443 SizeofCanFilter = 0x8
438) 444)
439 445
440const ( 446const (
@@ -570,6 +576,7 @@ const (
570 SizeofIfAddrmsg = 0x8 576 SizeofIfAddrmsg = 0x8
571 SizeofRtMsg = 0xc 577 SizeofRtMsg = 0xc
572 SizeofRtNexthop = 0x8 578 SizeofRtNexthop = 0x8
579 SizeofNdUseroptmsg = 0x10
573) 580)
574 581
575type NlMsghdr struct { 582type NlMsghdr struct {
@@ -635,6 +642,17 @@ type RtNexthop struct {
635 Ifindex int32 642 Ifindex int32
636} 643}
637 644
645type NdUseroptmsg struct {
646 Family uint8
647 Pad1 uint8
648 Opts_len uint16
649 Ifindex int32
650 Icmp_type uint8
651 Icmp_code uint8
652 Pad2 uint16
653 Pad3 uint32
654}
655
638const ( 656const (
639 SizeofSockFilter = 0x8 657 SizeofSockFilter = 0x8
640 SizeofSockFprog = 0x10 658 SizeofSockFprog = 0x10
@@ -968,7 +986,8 @@ type PerfEventAttr struct {
968 Clockid int32 986 Clockid int32
969 Sample_regs_intr uint64 987 Sample_regs_intr uint64
970 Aux_watermark uint32 988 Aux_watermark uint32
971 _ uint32 989 Sample_max_stack uint16
990 _ uint16
972} 991}
973 992
974type PerfEventMmapPage struct { 993type PerfEventMmapPage struct {
@@ -1071,6 +1090,7 @@ const (
1071 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1090 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1072 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1091 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1073 PERF_COUNT_SW_DUMMY = 0x9 1092 PERF_COUNT_SW_DUMMY = 0x9
1093 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1074 1094
1075 PERF_SAMPLE_IP = 0x1 1095 PERF_SAMPLE_IP = 0x1
1076 PERF_SAMPLE_TID = 0x2 1096 PERF_SAMPLE_TID = 0x2
@@ -1092,21 +1112,38 @@ const (
1092 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1112 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1093 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1113 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1094 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1114 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1115 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1116 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1117 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1118 PERF_SAMPLE_BRANCH_COND = 0x400
1119 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1120 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1121 PERF_SAMPLE_BRANCH_CALL = 0x2000
1122 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1123 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1124 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1095 1125
1096 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1126 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1097 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1127 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1098 PERF_FORMAT_ID = 0x4 1128 PERF_FORMAT_ID = 0x4
1099 PERF_FORMAT_GROUP = 0x8 1129 PERF_FORMAT_GROUP = 0x8
1100 1130
1101 PERF_RECORD_MMAP = 0x1 1131 PERF_RECORD_MMAP = 0x1
1102 PERF_RECORD_LOST = 0x2 1132 PERF_RECORD_LOST = 0x2
1103 PERF_RECORD_COMM = 0x3 1133 PERF_RECORD_COMM = 0x3
1104 PERF_RECORD_EXIT = 0x4 1134 PERF_RECORD_EXIT = 0x4
1105 PERF_RECORD_THROTTLE = 0x5 1135 PERF_RECORD_THROTTLE = 0x5
1106 PERF_RECORD_UNTHROTTLE = 0x6 1136 PERF_RECORD_UNTHROTTLE = 0x6
1107 PERF_RECORD_FORK = 0x7 1137 PERF_RECORD_FORK = 0x7
1108 PERF_RECORD_READ = 0x8 1138 PERF_RECORD_READ = 0x8
1109 PERF_RECORD_SAMPLE = 0x9 1139 PERF_RECORD_SAMPLE = 0x9
1140 PERF_RECORD_MMAP2 = 0xa
1141 PERF_RECORD_AUX = 0xb
1142 PERF_RECORD_ITRACE_START = 0xc
1143 PERF_RECORD_LOST_SAMPLES = 0xd
1144 PERF_RECORD_SWITCH = 0xe
1145 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1146 PERF_RECORD_NAMESPACES = 0x10
1110 1147
1111 PERF_CONTEXT_HV = -0x20 1148 PERF_CONTEXT_HV = -0x20
1112 PERF_CONTEXT_KERNEL = -0x80 1149 PERF_CONTEXT_KERNEL = -0x80
@@ -1119,6 +1156,7 @@ const (
1119 PERF_FLAG_FD_NO_GROUP = 0x1 1156 PERF_FLAG_FD_NO_GROUP = 0x1
1120 PERF_FLAG_FD_OUTPUT = 0x2 1157 PERF_FLAG_FD_OUTPUT = 0x2
1121 PERF_FLAG_PID_CGROUP = 0x4 1158 PERF_FLAG_PID_CGROUP = 0x4
1159 PERF_FLAG_FD_CLOEXEC = 0x8
1122) 1160)
1123 1161
1124const ( 1162const (
@@ -1425,6 +1463,9 @@ const (
1425 SizeofTpacketHdr = 0x20 1463 SizeofTpacketHdr = 0x20
1426 SizeofTpacket2Hdr = 0x20 1464 SizeofTpacket2Hdr = 0x20
1427 SizeofTpacket3Hdr = 0x30 1465 SizeofTpacket3Hdr = 0x30
1466
1467 SizeofTpacketStats = 0x8
1468 SizeofTpacketStatsV3 = 0xc
1428) 1469)
1429 1470
1430const ( 1471const (
@@ -2041,3 +2082,18 @@ type SockExtendedErr struct {
2041 Info uint32 2082 Info uint32
2042 Data uint32 2083 Data uint32
2043} 2084}
2085
2086type FanotifyEventMetadata struct {
2087 Event_len uint32
2088 Vers uint8
2089 Reserved uint8
2090 Metadata_len uint16
2091 Mask uint64
2092 Fd int32
2093 Pid int32
2094}
2095
2096type FanotifyResponse struct {
2097 Fd int32
2098 Response uint32
2099}
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 a1a9279..392dd73 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
@@ -410,6 +410,11 @@ type TCPInfo struct {
410 Total_retrans uint32 410 Total_retrans uint32
411} 411}
412 412
413type CanFilter struct {
414 Id uint32
415 Mask uint32
416}
417
413const ( 418const (
414 SizeofSockaddrInet4 = 0x10 419 SizeofSockaddrInet4 = 0x10
415 SizeofSockaddrInet6 = 0x1c 420 SizeofSockaddrInet6 = 0x1c
@@ -439,6 +444,7 @@ const (
439 SizeofICMPv6Filter = 0x20 444 SizeofICMPv6Filter = 0x20
440 SizeofUcred = 0xc 445 SizeofUcred = 0xc
441 SizeofTCPInfo = 0x68 446 SizeofTCPInfo = 0x68
447 SizeofCanFilter = 0x8
442) 448)
443 449
444const ( 450const (
@@ -574,6 +580,7 @@ const (
574 SizeofIfAddrmsg = 0x8 580 SizeofIfAddrmsg = 0x8
575 SizeofRtMsg = 0xc 581 SizeofRtMsg = 0xc
576 SizeofRtNexthop = 0x8 582 SizeofRtNexthop = 0x8
583 SizeofNdUseroptmsg = 0x10
577) 584)
578 585
579type NlMsghdr struct { 586type NlMsghdr struct {
@@ -639,6 +646,17 @@ type RtNexthop struct {
639 Ifindex int32 646 Ifindex int32
640} 647}
641 648
649type NdUseroptmsg struct {
650 Family uint8
651 Pad1 uint8
652 Opts_len uint16
653 Ifindex int32
654 Icmp_type uint8
655 Icmp_code uint8
656 Pad2 uint16
657 Pad3 uint32
658}
659
642const ( 660const (
643 SizeofSockFilter = 0x8 661 SizeofSockFilter = 0x8
644 SizeofSockFprog = 0x10 662 SizeofSockFprog = 0x10
@@ -950,7 +968,8 @@ type PerfEventAttr struct {
950 Clockid int32 968 Clockid int32
951 Sample_regs_intr uint64 969 Sample_regs_intr uint64
952 Aux_watermark uint32 970 Aux_watermark uint32
953 _ uint32 971 Sample_max_stack uint16
972 _ uint16
954} 973}
955 974
956type PerfEventMmapPage struct { 975type PerfEventMmapPage struct {
@@ -1053,6 +1072,7 @@ const (
1053 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 1072 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1054 PERF_COUNT_SW_EMULATION_FAULTS = 0x8 1073 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1055 PERF_COUNT_SW_DUMMY = 0x9 1074 PERF_COUNT_SW_DUMMY = 0x9
1075 PERF_COUNT_SW_BPF_OUTPUT = 0xa
1056 1076
1057 PERF_SAMPLE_IP = 0x1 1077 PERF_SAMPLE_IP = 0x1
1058 PERF_SAMPLE_TID = 0x2 1078 PERF_SAMPLE_TID = 0x2
@@ -1074,21 +1094,38 @@ const (
1074 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 1094 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1075 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 1095 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1076 PERF_SAMPLE_BRANCH_IND_CALL = 0x40 1096 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1097 PERF_SAMPLE_BRANCH_ABORT_TX = 0x80
1098 PERF_SAMPLE_BRANCH_IN_TX = 0x100
1099 PERF_SAMPLE_BRANCH_NO_TX = 0x200
1100 PERF_SAMPLE_BRANCH_COND = 0x400
1101 PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
1102 PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000
1103 PERF_SAMPLE_BRANCH_CALL = 0x2000
1104 PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000
1105 PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000
1106 PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
1077 1107
1078 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 1108 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1079 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 1109 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1080 PERF_FORMAT_ID = 0x4 1110 PERF_FORMAT_ID = 0x4
1081 PERF_FORMAT_GROUP = 0x8 1111 PERF_FORMAT_GROUP = 0x8
1082 1112
1083 PERF_RECORD_MMAP = 0x1 1113 PERF_RECORD_MMAP = 0x1
1084 PERF_RECORD_LOST = 0x2 1114 PERF_RECORD_LOST = 0x2
1085 PERF_RECORD_COMM = 0x3 1115 PERF_RECORD_COMM = 0x3
1086 PERF_RECORD_EXIT = 0x4 1116 PERF_RECORD_EXIT = 0x4
1087 PERF_RECORD_THROTTLE = 0x5 1117 PERF_RECORD_THROTTLE = 0x5
1088 PERF_RECORD_UNTHROTTLE = 0x6 1118 PERF_RECORD_UNTHROTTLE = 0x6
1089 PERF_RECORD_FORK = 0x7 1119 PERF_RECORD_FORK = 0x7
1090 PERF_RECORD_READ = 0x8 1120 PERF_RECORD_READ = 0x8
1091 PERF_RECORD_SAMPLE = 0x9 1121 PERF_RECORD_SAMPLE = 0x9
1122 PERF_RECORD_MMAP2 = 0xa
1123 PERF_RECORD_AUX = 0xb
1124 PERF_RECORD_ITRACE_START = 0xc
1125 PERF_RECORD_LOST_SAMPLES = 0xd
1126 PERF_RECORD_SWITCH = 0xe
1127 PERF_RECORD_SWITCH_CPU_WIDE = 0xf
1128 PERF_RECORD_NAMESPACES = 0x10
1092 1129
1093 PERF_CONTEXT_HV = -0x20 1130 PERF_CONTEXT_HV = -0x20
1094 PERF_CONTEXT_KERNEL = -0x80 1131 PERF_CONTEXT_KERNEL = -0x80
@@ -1101,6 +1138,7 @@ const (
1101 PERF_FLAG_FD_NO_GROUP = 0x1 1138 PERF_FLAG_FD_NO_GROUP = 0x1
1102 PERF_FLAG_FD_OUTPUT = 0x2 1139 PERF_FLAG_FD_OUTPUT = 0x2
1103 PERF_FLAG_PID_CGROUP = 0x4 1140 PERF_FLAG_PID_CGROUP = 0x4
1141 PERF_FLAG_FD_CLOEXEC = 0x8
1104) 1142)
1105 1143
1106const ( 1144const (
@@ -1406,6 +1444,9 @@ const (
1406 SizeofTpacketHdr = 0x20 1444 SizeofTpacketHdr = 0x20
1407 SizeofTpacket2Hdr = 0x20 1445 SizeofTpacket2Hdr = 0x20
1408 SizeofTpacket3Hdr = 0x30 1446 SizeofTpacket3Hdr = 0x30
1447
1448 SizeofTpacketStats = 0x8
1449 SizeofTpacketStatsV3 = 0xc
1409) 1450)
1410 1451
1411const ( 1452const (
@@ -2022,3 +2063,18 @@ type SockExtendedErr struct {
2022 Info uint32 2063 Info uint32
2023 Data uint32 2064 Data uint32
2024} 2065}
2066
2067type FanotifyEventMetadata struct {
2068 Event_len uint32
2069 Vers uint8
2070 Reserved uint8
2071 Metadata_len uint16
2072 Mask uint64
2073 Fd int32
2074 Pid int32
2075}
2076
2077type FanotifyResponse struct {
2078 Fd int32
2079 Response uint32
2080}
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 8b37d83..900fb44 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
@@ -558,3 +558,13 @@ type Uvmexp struct {
558 Fpswtch int32 558 Fpswtch int32
559 Kmapent int32 559 Kmapent int32
560} 560}
561
562const SizeofClockinfo = 0x14
563
564type Clockinfo struct {
565 Hz int32
566 Tick int32
567 Tickadj int32
568 Stathz int32
569 Profhz int32
570}
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 6efea46..028fa78 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
@@ -558,3 +558,13 @@ type Uvmexp struct {
558 Fpswtch int32 558 Fpswtch int32
559 Kmapent int32 559 Kmapent int32
560} 560}
561
562const SizeofClockinfo = 0x14
563
564type Clockinfo struct {
565 Hz int32
566 Tick int32
567 Tickadj int32
568 Stathz int32
569 Profhz int32
570}
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 510efc3..b45d5ee 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
@@ -559,3 +559,13 @@ type Uvmexp struct {
559 Fpswtch int32 559 Fpswtch int32
560 Kmapent int32 560 Kmapent int32
561} 561}
562
563const SizeofClockinfo = 0x14
564
565type Clockinfo struct {
566 Hz int32
567 Tick int32
568 Tickadj int32
569 Stathz int32
570 Profhz int32
571}
diff --git a/vendor/golang.org/x/sys/windows/dll_windows.go b/vendor/golang.org/x/sys/windows/dll_windows.go
index e92c05b..ba67658 100644
--- a/vendor/golang.org/x/sys/windows/dll_windows.go
+++ b/vendor/golang.org/x/sys/windows/dll_windows.go
@@ -359,11 +359,11 @@ func loadLibraryEx(name string, system bool) (*DLL, error) {
359 // trying to load "foo.dll" out of the system 359 // trying to load "foo.dll" out of the system
360 // folder, but LoadLibraryEx doesn't support 360 // folder, but LoadLibraryEx doesn't support
361 // that yet on their system, so emulate it. 361 // that yet on their system, so emulate it.
362 windir, _ := Getenv("WINDIR") // old var; apparently works on XP 362 systemdir, err := GetSystemDirectory()
363 if windir == "" { 363 if err != nil {
364 return nil, errString("%WINDIR% not defined") 364 return nil, err
365 } 365 }
366 loadDLL = windir + "\\System32\\" + name 366 loadDLL = systemdir + "\\" + name
367 } 367 }
368 } 368 }
369 h, err := LoadLibraryEx(loadDLL, 0, flags) 369 h, err := LoadLibraryEx(loadDLL, 0, flags)
diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go
index 4f17a33..da06406 100644
--- a/vendor/golang.org/x/sys/windows/security_windows.go
+++ b/vendor/golang.org/x/sys/windows/security_windows.go
@@ -149,7 +149,7 @@ const (
149 DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS = 0x22b 149 DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS = 0x22b
150 DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS = 0x22c 150 DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS = 0x22c
151 DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = 0x22d 151 DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = 0x22d
152 DOMAIN_ALIAS_RID_MONITORING_USERS = 0X22e 152 DOMAIN_ALIAS_RID_MONITORING_USERS = 0x22e
153 DOMAIN_ALIAS_RID_LOGGING_USERS = 0x22f 153 DOMAIN_ALIAS_RID_LOGGING_USERS = 0x22f
154 DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS = 0x230 154 DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS = 0x230
155 DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS = 0x231 155 DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS = 0x231
@@ -169,6 +169,7 @@ const (
169//sys GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid 169//sys GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid
170//sys CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) = advapi32.CopySid 170//sys CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) = advapi32.CopySid
171//sys AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) = advapi32.AllocateAndInitializeSid 171//sys AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) = advapi32.AllocateAndInitializeSid
172//sys createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) = advapi32.CreateWellKnownSid
172//sys FreeSid(sid *SID) (err error) [failretval!=0] = advapi32.FreeSid 173//sys FreeSid(sid *SID) (err error) [failretval!=0] = advapi32.FreeSid
173//sys EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) = advapi32.EqualSid 174//sys EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) = advapi32.EqualSid
174 175
@@ -286,6 +287,158 @@ func (sid *SID) LookupAccount(system string) (account, domain string, accType ui
286 } 287 }
287} 288}
288 289
290// Various types of pre-specified sids that can be synthesized at runtime.
291type WELL_KNOWN_SID_TYPE uint32
292
293const (
294 WinNullSid = 0
295 WinWorldSid = 1
296 WinLocalSid = 2
297 WinCreatorOwnerSid = 3
298 WinCreatorGroupSid = 4
299 WinCreatorOwnerServerSid = 5
300 WinCreatorGroupServerSid = 6
301 WinNtAuthoritySid = 7
302 WinDialupSid = 8
303 WinNetworkSid = 9
304 WinBatchSid = 10
305 WinInteractiveSid = 11
306 WinServiceSid = 12
307 WinAnonymousSid = 13
308 WinProxySid = 14
309 WinEnterpriseControllersSid = 15
310 WinSelfSid = 16
311 WinAuthenticatedUserSid = 17
312 WinRestrictedCodeSid = 18
313 WinTerminalServerSid = 19
314 WinRemoteLogonIdSid = 20
315 WinLogonIdsSid = 21
316 WinLocalSystemSid = 22
317 WinLocalServiceSid = 23
318 WinNetworkServiceSid = 24
319 WinBuiltinDomainSid = 25
320 WinBuiltinAdministratorsSid = 26
321 WinBuiltinUsersSid = 27
322 WinBuiltinGuestsSid = 28
323 WinBuiltinPowerUsersSid = 29
324 WinBuiltinAccountOperatorsSid = 30
325 WinBuiltinSystemOperatorsSid = 31
326 WinBuiltinPrintOperatorsSid = 32
327 WinBuiltinBackupOperatorsSid = 33
328 WinBuiltinReplicatorSid = 34
329 WinBuiltinPreWindows2000CompatibleAccessSid = 35
330 WinBuiltinRemoteDesktopUsersSid = 36
331 WinBuiltinNetworkConfigurationOperatorsSid = 37
332 WinAccountAdministratorSid = 38
333 WinAccountGuestSid = 39
334 WinAccountKrbtgtSid = 40
335 WinAccountDomainAdminsSid = 41
336 WinAccountDomainUsersSid = 42
337 WinAccountDomainGuestsSid = 43
338 WinAccountComputersSid = 44
339 WinAccountControllersSid = 45
340 WinAccountCertAdminsSid = 46
341 WinAccountSchemaAdminsSid = 47
342 WinAccountEnterpriseAdminsSid = 48
343 WinAccountPolicyAdminsSid = 49
344 WinAccountRasAndIasServersSid = 50
345 WinNTLMAuthenticationSid = 51
346 WinDigestAuthenticationSid = 52
347 WinSChannelAuthenticationSid = 53
348 WinThisOrganizationSid = 54
349 WinOtherOrganizationSid = 55
350 WinBuiltinIncomingForestTrustBuildersSid = 56
351 WinBuiltinPerfMonitoringUsersSid = 57
352 WinBuiltinPerfLoggingUsersSid = 58
353 WinBuiltinAuthorizationAccessSid = 59
354 WinBuiltinTerminalServerLicenseServersSid = 60
355 WinBuiltinDCOMUsersSid = 61
356 WinBuiltinIUsersSid = 62
357 WinIUserSid = 63
358 WinBuiltinCryptoOperatorsSid = 64
359 WinUntrustedLabelSid = 65
360 WinLowLabelSid = 66
361 WinMediumLabelSid = 67
362 WinHighLabelSid = 68
363 WinSystemLabelSid = 69
364 WinWriteRestrictedCodeSid = 70
365 WinCreatorOwnerRightsSid = 71
366 WinCacheablePrincipalsGroupSid = 72
367 WinNonCacheablePrincipalsGroupSid = 73
368 WinEnterpriseReadonlyControllersSid = 74
369 WinAccountReadonlyControllersSid = 75
370 WinBuiltinEventLogReadersGroup = 76
371 WinNewEnterpriseReadonlyControllersSid = 77
372 WinBuiltinCertSvcDComAccessGroup = 78
373 WinMediumPlusLabelSid = 79
374 WinLocalLogonSid = 80
375 WinConsoleLogonSid = 81
376 WinThisOrganizationCertificateSid = 82
377 WinApplicationPackageAuthoritySid = 83
378 WinBuiltinAnyPackageSid = 84
379 WinCapabilityInternetClientSid = 85
380 WinCapabilityInternetClientServerSid = 86
381 WinCapabilityPrivateNetworkClientServerSid = 87
382 WinCapabilityPicturesLibrarySid = 88
383 WinCapabilityVideosLibrarySid = 89
384 WinCapabilityMusicLibrarySid = 90
385 WinCapabilityDocumentsLibrarySid = 91
386 WinCapabilitySharedUserCertificatesSid = 92
387 WinCapabilityEnterpriseAuthenticationSid = 93
388 WinCapabilityRemovableStorageSid = 94
389 WinBuiltinRDSRemoteAccessServersSid = 95
390 WinBuiltinRDSEndpointServersSid = 96
391 WinBuiltinRDSManagementServersSid = 97
392 WinUserModeDriversSid = 98
393 WinBuiltinHyperVAdminsSid = 99
394 WinAccountCloneableControllersSid = 100
395 WinBuiltinAccessControlAssistanceOperatorsSid = 101
396 WinBuiltinRemoteManagementUsersSid = 102
397 WinAuthenticationAuthorityAssertedSid = 103
398 WinAuthenticationServiceAssertedSid = 104
399 WinLocalAccountSid = 105
400 WinLocalAccountAndAdministratorSid = 106
401 WinAccountProtectedUsersSid = 107
402 WinCapabilityAppointmentsSid = 108
403 WinCapabilityContactsSid = 109
404 WinAccountDefaultSystemManagedSid = 110
405 WinBuiltinDefaultSystemManagedGroupSid = 111
406 WinBuiltinStorageReplicaAdminsSid = 112
407 WinAccountKeyAdminsSid = 113
408 WinAccountEnterpriseKeyAdminsSid = 114
409 WinAuthenticationKeyTrustSid = 115
410 WinAuthenticationKeyPropertyMFASid = 116
411 WinAuthenticationKeyPropertyAttestationSid = 117
412 WinAuthenticationFreshKeyAuthSid = 118
413 WinBuiltinDeviceOwnersSid = 119
414)
415
416// Creates a sid for a well-known predefined alias, generally using the constants of the form
417// Win*Sid, for the local machine.
418func CreateWellKnownSid(sidType WELL_KNOWN_SID_TYPE) (*SID, error) {
419 return CreateWellKnownDomainSid(sidType, nil)
420}
421
422// Creates a sid for a well-known predefined alias, generally using the constants of the form
423// Win*Sid, for the domain specified by the domainSid parameter.
424func CreateWellKnownDomainSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID) (*SID, error) {
425 n := uint32(50)
426 for {
427 b := make([]byte, n)
428 sid := (*SID)(unsafe.Pointer(&b[0]))
429 err := createWellKnownSid(sidType, domainSid, sid, &n)
430 if err == nil {
431 return sid, nil
432 }
433 if err != ERROR_INSUFFICIENT_BUFFER {
434 return nil, err
435 }
436 if n <= uint32(len(b)) {
437 return nil, err
438 }
439 }
440}
441
289const ( 442const (
290 // do not reorder 443 // do not reorder
291 TOKEN_ASSIGN_PRIMARY = 1 << iota 444 TOKEN_ASSIGN_PRIMARY = 1 << iota
@@ -372,6 +525,7 @@ type Tokengroups struct {
372//sys OpenProcessToken(h Handle, access uint32, token *Token) (err error) = advapi32.OpenProcessToken 525//sys OpenProcessToken(h Handle, access uint32, token *Token) (err error) = advapi32.OpenProcessToken
373//sys GetTokenInformation(t Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) = advapi32.GetTokenInformation 526//sys GetTokenInformation(t Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) = advapi32.GetTokenInformation
374//sys GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW 527//sys GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW
528//sys getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemDirectoryW
375 529
376// An access token contains the security information for a logon session. 530// An access token contains the security information for a logon session.
377// The system creates an access token when a user logs on, and every 531// The system creates an access token when a user logs on, and every
@@ -468,6 +622,23 @@ func (t Token) GetUserProfileDirectory() (string, error) {
468 } 622 }
469} 623}
470 624
625// GetSystemDirectory retrieves path to current location of the system
626// directory, which is typically, though not always, C:\Windows\System32.
627func GetSystemDirectory() (string, error) {
628 n := uint32(MAX_PATH)
629 for {
630 b := make([]uint16, n)
631 l, e := getSystemDirectory(&b[0], n)
632 if e != nil {
633 return "", e
634 }
635 if l <= n {
636 return UTF16ToString(b[:l]), nil
637 }
638 n = l
639 }
640}
641
471// IsMember reports whether the access token t is a member of the provided SID. 642// IsMember reports whether the access token t is a member of the provided SID.
472func (t Token) IsMember(sid *SID) (bool, error) { 643func (t Token) IsMember(sid *SID) (bool, error) {
473 var b int32 644 var b int32
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
index f72fa55..7aff0d0 100644
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/syscall_windows.go
@@ -137,6 +137,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
137//sys CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) [failretval==InvalidHandle] = CreateFileW 137//sys CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) [failretval==InvalidHandle] = CreateFileW
138//sys ReadFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) 138//sys ReadFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error)
139//sys WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) 139//sys WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error)
140//sys GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wait bool) (err error)
140//sys SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) [failretval==0xffffffff] 141//sys SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) [failretval==0xffffffff]
141//sys CloseHandle(handle Handle) (err error) 142//sys CloseHandle(handle Handle) (err error)
142//sys GetStdHandle(stdhandle uint32) (handle Handle, err error) [failretval==InvalidHandle] 143//sys GetStdHandle(stdhandle uint32) (handle Handle, err error) [failretval==InvalidHandle]
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
index 141ca81..bbf19f0 100644
--- a/vendor/golang.org/x/sys/windows/types_windows.go
+++ b/vendor/golang.org/x/sys/windows/types_windows.go
@@ -126,9 +126,19 @@ const (
126 OPEN_ALWAYS = 4 126 OPEN_ALWAYS = 4
127 TRUNCATE_EXISTING = 5 127 TRUNCATE_EXISTING = 5
128 128
129 FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000 129 FILE_FLAG_OPEN_REQUIRING_OPLOCK = 0x00040000
130 FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 130 FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000
131 FILE_FLAG_OVERLAPPED = 0x40000000 131 FILE_FLAG_OPEN_NO_RECALL = 0x00100000
132 FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000
133 FILE_FLAG_SESSION_AWARE = 0x00800000
134 FILE_FLAG_POSIX_SEMANTICS = 0x01000000
135 FILE_FLAG_BACKUP_SEMANTICS = 0x02000000
136 FILE_FLAG_DELETE_ON_CLOSE = 0x04000000
137 FILE_FLAG_SEQUENTIAL_SCAN = 0x08000000
138 FILE_FLAG_RANDOM_ACCESS = 0x10000000
139 FILE_FLAG_NO_BUFFERING = 0x20000000
140 FILE_FLAG_OVERLAPPED = 0x40000000
141 FILE_FLAG_WRITE_THROUGH = 0x80000000
132 142
133 HANDLE_FLAG_INHERIT = 0x00000001 143 HANDLE_FLAG_INHERIT = 0x00000001
134 STARTF_USESTDHANDLES = 0x00000100 144 STARTF_USESTDHANDLES = 0x00000100
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
index e4b54e2..eb9f062 100644
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
@@ -77,6 +77,7 @@ var (
77 procCreateFileW = modkernel32.NewProc("CreateFileW") 77 procCreateFileW = modkernel32.NewProc("CreateFileW")
78 procReadFile = modkernel32.NewProc("ReadFile") 78 procReadFile = modkernel32.NewProc("ReadFile")
79 procWriteFile = modkernel32.NewProc("WriteFile") 79 procWriteFile = modkernel32.NewProc("WriteFile")
80 procGetOverlappedResult = modkernel32.NewProc("GetOverlappedResult")
80 procSetFilePointer = modkernel32.NewProc("SetFilePointer") 81 procSetFilePointer = modkernel32.NewProc("SetFilePointer")
81 procCloseHandle = modkernel32.NewProc("CloseHandle") 82 procCloseHandle = modkernel32.NewProc("CloseHandle")
82 procGetStdHandle = modkernel32.NewProc("GetStdHandle") 83 procGetStdHandle = modkernel32.NewProc("GetStdHandle")
@@ -246,12 +247,14 @@ var (
246 procGetLengthSid = modadvapi32.NewProc("GetLengthSid") 247 procGetLengthSid = modadvapi32.NewProc("GetLengthSid")
247 procCopySid = modadvapi32.NewProc("CopySid") 248 procCopySid = modadvapi32.NewProc("CopySid")
248 procAllocateAndInitializeSid = modadvapi32.NewProc("AllocateAndInitializeSid") 249 procAllocateAndInitializeSid = modadvapi32.NewProc("AllocateAndInitializeSid")
250 procCreateWellKnownSid = modadvapi32.NewProc("CreateWellKnownSid")
249 procFreeSid = modadvapi32.NewProc("FreeSid") 251 procFreeSid = modadvapi32.NewProc("FreeSid")
250 procEqualSid = modadvapi32.NewProc("EqualSid") 252 procEqualSid = modadvapi32.NewProc("EqualSid")
251 procCheckTokenMembership = modadvapi32.NewProc("CheckTokenMembership") 253 procCheckTokenMembership = modadvapi32.NewProc("CheckTokenMembership")
252 procOpenProcessToken = modadvapi32.NewProc("OpenProcessToken") 254 procOpenProcessToken = modadvapi32.NewProc("OpenProcessToken")
253 procGetTokenInformation = modadvapi32.NewProc("GetTokenInformation") 255 procGetTokenInformation = modadvapi32.NewProc("GetTokenInformation")
254 procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW") 256 procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW")
257 procGetSystemDirectoryW = modkernel32.NewProc("GetSystemDirectoryW")
255) 258)
256 259
257func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) { 260func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) {
@@ -652,6 +655,24 @@ func WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped)
652 return 655 return
653} 656}
654 657
658func GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wait bool) (err error) {
659 var _p0 uint32
660 if wait {
661 _p0 = 1
662 } else {
663 _p0 = 0
664 }
665 r1, _, e1 := syscall.Syscall6(procGetOverlappedResult.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(done)), uintptr(_p0), 0, 0)
666 if r1 == 0 {
667 if e1 != 0 {
668 err = errnoErr(e1)
669 } else {
670 err = syscall.EINVAL
671 }
672 }
673 return
674}
675
655func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) { 676func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) {
656 r0, _, e1 := syscall.Syscall6(procSetFilePointer.Addr(), 4, uintptr(handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence), 0, 0) 677 r0, _, e1 := syscall.Syscall6(procSetFilePointer.Addr(), 4, uintptr(handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence), 0, 0)
657 newlowoffset = uint32(r0) 678 newlowoffset = uint32(r0)
@@ -2653,6 +2674,18 @@ func AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, s
2653 return 2674 return
2654} 2675}
2655 2676
2677func createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) {
2678 r1, _, e1 := syscall.Syscall6(procCreateWellKnownSid.Addr(), 4, uintptr(sidType), uintptr(unsafe.Pointer(domainSid)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sizeSid)), 0, 0)
2679 if r1 == 0 {
2680 if e1 != 0 {
2681 err = errnoErr(e1)
2682 } else {
2683 err = syscall.EINVAL
2684 }
2685 }
2686 return
2687}
2688
2656func FreeSid(sid *SID) (err error) { 2689func FreeSid(sid *SID) (err error) {
2657 r1, _, e1 := syscall.Syscall(procFreeSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0) 2690 r1, _, e1 := syscall.Syscall(procFreeSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
2658 if r1 != 0 { 2691 if r1 != 0 {
@@ -2718,3 +2751,16 @@ func GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) {
2718 } 2751 }
2719 return 2752 return
2720} 2753}
2754
2755func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
2756 r0, _, e1 := syscall.Syscall(procGetSystemDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
2757 len = uint32(r0)
2758 if len == 0 {
2759 if e1 != 0 {
2760 err = errnoErr(e1)
2761 } else {
2762 err = syscall.EINVAL
2763 }
2764 }
2765 return
2766}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 2d919b2..bf892cb 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -7,19 +7,19 @@ github.com/alecthomas/units
7github.com/beevik/ntp 7github.com/beevik/ntp
8# github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 8# github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
9github.com/beorn7/perks/quantile 9github.com/beorn7/perks/quantile
10# github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142 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-20180104102928-b307c22d3ce7
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
16# github.com/golang/protobuf v1.2.0 16# github.com/golang/protobuf v1.3.1
17github.com/golang/protobuf/proto 17github.com/golang/protobuf/proto
18# github.com/konsorten/go-windows-terminal-sequences v1.0.1 18# github.com/konsorten/go-windows-terminal-sequences v1.0.2
19github.com/konsorten/go-windows-terminal-sequences 19github.com/konsorten/go-windows-terminal-sequences
20# github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 20# github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3
21github.com/lufia/iostat 21github.com/lufia/iostat
22# github.com/mattn/go-xmlrpc v0.0.0-20180914005235-ceecee2c45b7 22# github.com/mattn/go-xmlrpc v0.0.1
23github.com/mattn/go-xmlrpc 23github.com/mattn/go-xmlrpc
24# github.com/matttproud/golang_protobuf_extensions v1.0.1 24# github.com/matttproud/golang_protobuf_extensions v1.0.1
25github.com/matttproud/golang_protobuf_extensions/pbutil 25github.com/matttproud/golang_protobuf_extensions/pbutil
@@ -52,20 +52,18 @@ github.com/prometheus/procfs/xfs
52github.com/prometheus/procfs/internal/util 52github.com/prometheus/procfs/internal/util
53# github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 53# github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745
54github.com/siebenmann/go-kstat 54github.com/siebenmann/go-kstat
55# github.com/sirupsen/logrus v1.3.0 55# github.com/sirupsen/logrus v1.4.1
56github.com/sirupsen/logrus 56github.com/sirupsen/logrus
57# github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a 57# github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a
58github.com/soundcloud/go-runit/runit 58github.com/soundcloud/go-runit/runit
59# golang.org/x/crypto v0.0.0-20190208162236-193df9c0f06f 59# golang.org/x/net v0.0.0-20190328230028-74de082e2cca
60golang.org/x/crypto/ssh/terminal
61# golang.org/x/net v0.0.0-20190206173232-65e2d4e15006
62golang.org/x/net/ipv4 60golang.org/x/net/ipv4
63golang.org/x/net/bpf 61golang.org/x/net/bpf
64golang.org/x/net/internal/iana 62golang.org/x/net/internal/iana
65golang.org/x/net/internal/socket 63golang.org/x/net/internal/socket
66# golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 64# golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
67golang.org/x/sync/errgroup 65golang.org/x/sync/errgroup
68# golang.org/x/sys v0.0.0-20190209173611-3b5209105503 66# golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c
69golang.org/x/sys/unix 67golang.org/x/sys/unix
70golang.org/x/sys/windows/svc/eventlog 68golang.org/x/sys/windows/svc/eventlog
71golang.org/x/sys/windows 69golang.org/x/sys/windows